]> git.proxmox.com Git - mirror_zfs-debian.git/blame - configure
Imported Upstream version 0.6.2
[mirror_zfs-debian.git] / configure
CommitLineData
0e3762ca
CALP
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486else
487 as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$lt_ECHO in
534X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537 ;;
538esac
539
540ECHO=${lt_ECHO-echo}
541if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559$*
560_LT_EOF
561 exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
580
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
589 #
590 # So, first we look for a working echo in the user's PATH.
591
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
604
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
645
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
653
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666fi
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673fi
674
675
676
677
678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME=
700PACKAGE_TARNAME=
701PACKAGE_VERSION=
702PACKAGE_STRING=
703PACKAGE_BUGREPORT=
704PACKAGE_URL=
705
706# Factoring default headers for most tests.
707ac_includes_default="\
708#include <stdio.h>
709#ifdef HAVE_SYS_TYPES_H
710# include <sys/types.h>
711#endif
712#ifdef HAVE_SYS_STAT_H
713# include <sys/stat.h>
714#endif
715#ifdef STDC_HEADERS
716# include <stdlib.h>
717# include <stddef.h>
718#else
719# ifdef HAVE_STDLIB_H
720# include <stdlib.h>
721# endif
722#endif
723#ifdef HAVE_STRING_H
724# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725# include <memory.h>
726# endif
727# include <string.h>
728#endif
729#ifdef HAVE_STRINGS_H
730# include <strings.h>
731#endif
732#ifdef HAVE_INTTYPES_H
733# include <inttypes.h>
734#endif
735#ifdef HAVE_STDINT_H
736# include <stdint.h>
737#endif
738#ifdef HAVE_UNISTD_H
739# include <unistd.h>
740#endif"
741
742ac_subst_vars='am__EXEEXT_FALSE
743am__EXEEXT_TRUE
744LTLIBOBJS
745LIBOBJS
746DEBUG_DMU_TX
747DEBUG_ZFS
748DEBUG_STACKFLAGS
749DEBUG_CFLAGS
750CONFIG_KERNEL_FALSE
751CONFIG_KERNEL_TRUE
752CONFIG_USER_FALSE
753CONFIG_USER_TRUE
754FRAME_LARGER_THAN
755LIBSELINUX
756LIBBLKID
757LIBUUID
758ZLIB
759dracutdir
760udevruledir
761udevdir
762KERNELCPPFLAGS
763KERNELMAKE_PARAMS
764SPL_SYMBOLS
765SPL_VERSION
766SPL_OBJ
767SPL
768LINUX_SYMBOLS
769LINUX_VERSION
770LINUX_OBJ
771LINUX
772NO_UNUSED_BUT_SET_VARIABLE
773ZFS_CONFIG
774TARGET_ASM_DIR
775ALIEN_VERSION
776ALIEN
777HAVE_ALIEN
778DPKGBUILD_VERSION
779DPKGBUILD
780HAVE_DPKGBUILD
781DPKG_VERSION
782DPKG
783HAVE_DPKG
784SRPM_DEFINE_COMMON
785SRPM_DEFINE_DKMS
786SRPM_DEFINE_KMOD
787SRPM_DEFINE_UTIL
788RPM_DEFINE_COMMON
789RPM_DEFINE_DKMS
790RPM_DEFINE_KMOD
791RPM_DEFINE_UTIL
792RPM_SPEC_DIR
793RPMBUILD_VERSION
794RPMBUILD
795HAVE_RPMBUILD
796RPM_VERSION
797RPM
798HAVE_RPM
799DEFAULT_INIT_SCRIPT
800DEFAULT_INIT_DIR
801DEFAULT_PACKAGE
802VENDOR
803am__fastdepCCAS_FALSE
804am__fastdepCCAS_TRUE
805CCASDEPMODE
806CCASFLAGS
807CCAS
808CPP
809OTOOL64
810OTOOL
811LIPO
812NMEDIT
813DSYMUTIL
814lt_ECHO
815RANLIB
816AR
817OBJDUMP
818LN_S
819NM
820ac_ct_DUMPBIN
821DUMPBIN
822LD
823FGREP
824EGREP
825GREP
826SED
827LIBTOOL
828am__fastdepCC_FALSE
829am__fastdepCC_TRUE
830CCDEPMODE
831AMDEPBACKSLASH
832AMDEP_FALSE
833AMDEP_TRUE
834am__quote
835am__include
836DEPDIR
837OBJEXT
838EXEEXT
839ac_ct_CC
840CPPFLAGS
841LDFLAGS
842CFLAGS
843CC
844am__untar
845am__tar
846AMTAR
847am__leading_dot
848SET_MAKE
0e3762ca
CALP
849mkdir_p
850MKDIR_P
851INSTALL_STRIP_PROGRAM
852STRIP
853install_sh
854MAKEINFO
855AUTOHEADER
856AUTOMAKE
857AUTOCONF
858ACLOCAL
859VERSION
860PACKAGE
861CYGPATH_W
862am__isrc
863INSTALL_DATA
864INSTALL_SCRIPT
865INSTALL_PROGRAM
866AM_BACKSLASH
867AM_DEFAULT_VERBOSITY
868MAINT
869MAINTAINER_MODE_FALSE
870MAINTAINER_MODE_TRUE
871target_os
872target_vendor
873target_cpu
874target
875host_os
876host_vendor
877host_cpu
878host
879build_os
880build_vendor
881build_cpu
882build
883ZFS_META_LT_AGE
884ZFS_META_LT_REVISION
885ZFS_META_LT_CURRENT
886ZFS_META_AUTHOR
887ZFS_META_DATA
888ZFS_META_ALIAS
889ZFS_META_LICENSE
890RELEASE
891ZFS_META_RELEASE
892ZFS_META_VERSION
893ZFS_META_NAME
c06d4368 894AWK
0e3762ca
CALP
895target_alias
896host_alias
897build_alias
898LIBS
899ECHO_T
900ECHO_N
901ECHO_C
902DEFS
903mandir
904localedir
905libdir
906psdir
907pdfdir
908dvidir
909htmldir
910infodir
911docdir
912oldincludedir
913includedir
914localstatedir
915sharedstatedir
916sysconfdir
917datadir
918datarootdir
919libexecdir
920sbindir
921bindir
922program_transform_name
923prefix
924exec_prefix
925PACKAGE_URL
926PACKAGE_BUGREPORT
927PACKAGE_STRING
928PACKAGE_VERSION
929PACKAGE_TARNAME
930PACKAGE_NAME
931PATH_SEPARATOR
932SHELL'
933ac_subst_files=''
934ac_user_opts='
935enable_option_checking
936enable_maintainer_mode
937enable_silent_rules
938enable_dependency_tracking
939enable_shared
940enable_static
941with_pic
942enable_fast_install
943with_gnu_ld
944enable_libtool_lock
945with_spec
946with_config
947enable_linux_builtin
948with_linux
949with_linux_obj
950with_spl
951with_spl_obj
952with_spl_timeout
953with_udevdir
954with_udevruledir
955with_dracutdir
956with_blkid
957with_selinux
958enable_debug
959enable_debug_dmu_tx
960'
961 ac_precious_vars='build_alias
962host_alias
963target_alias
964CC
965CFLAGS
966LDFLAGS
967LIBS
968CPPFLAGS
969CPP
970CCAS
971CCASFLAGS'
972
973
974# Initialize some variables set by options.
975ac_init_help=
976ac_init_version=false
977ac_unrecognized_opts=
978ac_unrecognized_sep=
979# The variables have the same names as the options, with
980# dashes changed to underlines.
981cache_file=/dev/null
982exec_prefix=NONE
983no_create=
984no_recursion=
985prefix=NONE
986program_prefix=NONE
987program_suffix=NONE
988program_transform_name=s,x,x,
989silent=
990site=
991srcdir=
992verbose=
993x_includes=NONE
994x_libraries=NONE
995
996# Installation directory options.
997# These are left unexpanded so users can "make install exec_prefix=/foo"
998# and all the variables that are supposed to be based on exec_prefix
999# by default will actually change.
1000# Use braces instead of parens because sh, perl, etc. also accept them.
1001# (The list follows the same order as the GNU Coding Standards.)
1002bindir='${exec_prefix}/bin'
1003sbindir='${exec_prefix}/sbin'
1004libexecdir='${exec_prefix}/libexec'
1005datarootdir='${prefix}/share'
1006datadir='${datarootdir}'
1007sysconfdir='${prefix}/etc'
1008sharedstatedir='${prefix}/com'
1009localstatedir='${prefix}/var'
1010includedir='${prefix}/include'
1011oldincludedir='/usr/include'
1012docdir='${datarootdir}/doc/${PACKAGE}'
1013infodir='${datarootdir}/info'
1014htmldir='${docdir}'
1015dvidir='${docdir}'
1016pdfdir='${docdir}'
1017psdir='${docdir}'
1018libdir='${exec_prefix}/lib'
1019localedir='${datarootdir}/locale'
1020mandir='${datarootdir}/man'
1021
1022ac_prev=
1023ac_dashdash=
1024for ac_option
1025do
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\$ac_option
1029 ac_prev=
1030 continue
1031 fi
1032
1033 case $ac_option in
1034 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 *=) ac_optarg= ;;
1036 *) ac_optarg=yes ;;
1037 esac
1038
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1040
1041 case $ac_dashdash$ac_option in
1042 --)
1043 ac_dashdash=yes ;;
1044
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1046 ac_prev=bindir ;;
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1049
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1054
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1061
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1064
1065 -datadir | --datadir | --datadi | --datad)
1066 ac_prev=datadir ;;
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1069
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1076
1077 -disable-* | --disable-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 as_fn_error $? "invalid feature name: $ac_useropt"
1082 ac_useropt_orig=$ac_useropt
1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"enable_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1091 eval enable_$ac_useropt=no ;;
1092
1093 -docdir | --docdir | --docdi | --doc | --do)
1094 ac_prev=docdir ;;
1095 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1096 docdir=$ac_optarg ;;
1097
1098 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1099 ac_prev=dvidir ;;
1100 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1101 dvidir=$ac_optarg ;;
1102
1103 -enable-* | --enable-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid feature name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1111 *"
1112"enable_$ac_useropt"
1113"*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval enable_$ac_useropt=\$ac_optarg ;;
1118
1119 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1120 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1121 | --exec | --exe | --ex)
1122 ac_prev=exec_prefix ;;
1123 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1124 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1125 | --exec=* | --exe=* | --ex=*)
1126 exec_prefix=$ac_optarg ;;
1127
1128 -gas | --gas | --ga | --g)
1129 # Obsolete; use --with-gas.
1130 with_gas=yes ;;
1131
1132 -help | --help | --hel | --he | -h)
1133 ac_init_help=long ;;
1134 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1135 ac_init_help=recursive ;;
1136 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1137 ac_init_help=short ;;
1138
1139 -host | --host | --hos | --ho)
1140 ac_prev=host_alias ;;
1141 -host=* | --host=* | --hos=* | --ho=*)
1142 host_alias=$ac_optarg ;;
1143
1144 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1145 ac_prev=htmldir ;;
1146 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1147 | --ht=*)
1148 htmldir=$ac_optarg ;;
1149
1150 -includedir | --includedir | --includedi | --included | --include \
1151 | --includ | --inclu | --incl | --inc)
1152 ac_prev=includedir ;;
1153 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1154 | --includ=* | --inclu=* | --incl=* | --inc=*)
1155 includedir=$ac_optarg ;;
1156
1157 -infodir | --infodir | --infodi | --infod | --info | --inf)
1158 ac_prev=infodir ;;
1159 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1160 infodir=$ac_optarg ;;
1161
1162 -libdir | --libdir | --libdi | --libd)
1163 ac_prev=libdir ;;
1164 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1165 libdir=$ac_optarg ;;
1166
1167 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1168 | --libexe | --libex | --libe)
1169 ac_prev=libexecdir ;;
1170 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1171 | --libexe=* | --libex=* | --libe=*)
1172 libexecdir=$ac_optarg ;;
1173
1174 -localedir | --localedir | --localedi | --localed | --locale)
1175 ac_prev=localedir ;;
1176 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1177 localedir=$ac_optarg ;;
1178
1179 -localstatedir | --localstatedir | --localstatedi | --localstated \
1180 | --localstate | --localstat | --localsta | --localst | --locals)
1181 ac_prev=localstatedir ;;
1182 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1183 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1184 localstatedir=$ac_optarg ;;
1185
1186 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1187 ac_prev=mandir ;;
1188 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1189 mandir=$ac_optarg ;;
1190
1191 -nfp | --nfp | --nf)
1192 # Obsolete; use --without-fp.
1193 with_fp=no ;;
1194
1195 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1196 | --no-cr | --no-c | -n)
1197 no_create=yes ;;
1198
1199 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1200 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1201 no_recursion=yes ;;
1202
1203 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1204 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1205 | --oldin | --oldi | --old | --ol | --o)
1206 ac_prev=oldincludedir ;;
1207 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1208 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1209 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1210 oldincludedir=$ac_optarg ;;
1211
1212 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1213 ac_prev=prefix ;;
1214 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1215 prefix=$ac_optarg ;;
1216
1217 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1218 | --program-pre | --program-pr | --program-p)
1219 ac_prev=program_prefix ;;
1220 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1221 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1222 program_prefix=$ac_optarg ;;
1223
1224 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1225 | --program-suf | --program-su | --program-s)
1226 ac_prev=program_suffix ;;
1227 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1228 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1229 program_suffix=$ac_optarg ;;
1230
1231 -program-transform-name | --program-transform-name \
1232 | --program-transform-nam | --program-transform-na \
1233 | --program-transform-n | --program-transform- \
1234 | --program-transform | --program-transfor \
1235 | --program-transfo | --program-transf \
1236 | --program-trans | --program-tran \
1237 | --progr-tra | --program-tr | --program-t)
1238 ac_prev=program_transform_name ;;
1239 -program-transform-name=* | --program-transform-name=* \
1240 | --program-transform-nam=* | --program-transform-na=* \
1241 | --program-transform-n=* | --program-transform-=* \
1242 | --program-transform=* | --program-transfor=* \
1243 | --program-transfo=* | --program-transf=* \
1244 | --program-trans=* | --program-tran=* \
1245 | --progr-tra=* | --program-tr=* | --program-t=*)
1246 program_transform_name=$ac_optarg ;;
1247
1248 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1249 ac_prev=pdfdir ;;
1250 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1251 pdfdir=$ac_optarg ;;
1252
1253 -psdir | --psdir | --psdi | --psd | --ps)
1254 ac_prev=psdir ;;
1255 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1256 psdir=$ac_optarg ;;
1257
1258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1259 | -silent | --silent | --silen | --sile | --sil)
1260 silent=yes ;;
1261
1262 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1263 ac_prev=sbindir ;;
1264 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1265 | --sbi=* | --sb=*)
1266 sbindir=$ac_optarg ;;
1267
1268 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1269 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1270 | --sharedst | --shareds | --shared | --share | --shar \
1271 | --sha | --sh)
1272 ac_prev=sharedstatedir ;;
1273 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1274 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1275 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1276 | --sha=* | --sh=*)
1277 sharedstatedir=$ac_optarg ;;
1278
1279 -site | --site | --sit)
1280 ac_prev=site ;;
1281 -site=* | --site=* | --sit=*)
1282 site=$ac_optarg ;;
1283
1284 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1285 ac_prev=srcdir ;;
1286 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1287 srcdir=$ac_optarg ;;
1288
1289 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1290 | --syscon | --sysco | --sysc | --sys | --sy)
1291 ac_prev=sysconfdir ;;
1292 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1293 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1294 sysconfdir=$ac_optarg ;;
1295
1296 -target | --target | --targe | --targ | --tar | --ta | --t)
1297 ac_prev=target_alias ;;
1298 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1299 target_alias=$ac_optarg ;;
1300
1301 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1302 verbose=yes ;;
1303
1304 -version | --version | --versio | --versi | --vers | -V)
1305 ac_init_version=: ;;
1306
1307 -with-* | --with-*)
1308 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error $? "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316"with_$ac_useropt"
1317"*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=\$ac_optarg ;;
1322
1323 -without-* | --without-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error $? "invalid package name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332"with_$ac_useropt"
1333"*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=no ;;
1338
1339 --x)
1340 # Obsolete; use --with-x.
1341 with_x=yes ;;
1342
1343 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1344 | --x-incl | --x-inc | --x-in | --x-i)
1345 ac_prev=x_includes ;;
1346 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1347 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1348 x_includes=$ac_optarg ;;
1349
1350 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1351 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1352 ac_prev=x_libraries ;;
1353 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1354 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1355 x_libraries=$ac_optarg ;;
1356
1357 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1358Try \`$0 --help' for more information"
1359 ;;
1360
1361 *=*)
1362 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 case $ac_envvar in #(
1365 '' | [0-9]* | *[!_$as_cr_alnum]* )
1366 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1367 esac
1368 eval $ac_envvar=\$ac_optarg
1369 export $ac_envvar ;;
1370
1371 *)
1372 # FIXME: should be removed in autoconf 3.0.
1373 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1375 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1376 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1377 ;;
1378
1379 esac
1380done
1381
1382if test -n "$ac_prev"; then
1383 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1384 as_fn_error $? "missing argument to $ac_option"
1385fi
1386
1387if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1389 no) ;;
1390 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392 esac
1393fi
1394
1395# Check all directory arguments for consistency.
1396for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1400do
1401 eval ac_val=\$$ac_var
1402 # Remove trailing slashes.
1403 case $ac_val in
1404 */ )
1405 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\$ac_val;;
1407 esac
1408 # Be sure to have absolute directory names.
1409 case $ac_val in
1410 [\\/$]* | ?:[\\/]* ) continue;;
1411 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412 esac
1413 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1414done
1415
1416# There might be people who depend on the old broken behavior: `$host'
1417# used to hold the argument of --host etc.
1418# FIXME: To remove some day.
1419build=$build_alias
1420host=$host_alias
1421target=$target_alias
1422
1423# FIXME: To remove some day.
1424if test "x$host_alias" != x; then
1425 if test "x$build_alias" = x; then
1426 cross_compiling=maybe
1427 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1428 If a cross compiler is detected then cross compile mode will be used" >&2
1429 elif test "x$build_alias" != "x$host_alias"; then
1430 cross_compiling=yes
1431 fi
1432fi
1433
1434ac_tool_prefix=
1435test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437test "$silent" = yes && exec 6>/dev/null
1438
1439
1440ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441ac_ls_di=`ls -di .` &&
1442ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $? "working directory cannot be determined"
1444test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $? "pwd does not report name of working directory"
1446
1447
1448# Find the source files, if location was not specified.
1449if test -z "$srcdir"; then
1450 ac_srcdir_defaulted=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir=`$as_dirname -- "$as_myself" ||
1453$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457$as_echo X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)[^/].*/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\/\)$/{
1467 s//\1/
1468 q
1469 }
1470 /^X\(\/\).*/{
1471 s//\1/
1472 q
1473 }
1474 s/.*/./; q'`
1475 srcdir=$ac_confdir
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 srcdir=..
1478 fi
1479else
1480 ac_srcdir_defaulted=no
1481fi
1482if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485fi
1486ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487ac_abs_confdir=`(
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489 pwd)`
1490# When building in place, set srcdir=.
1491if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 srcdir=.
1493fi
1494# Remove unnecessary trailing slashes from srcdir.
1495# Double slashes in file names in object file debugging info
1496# mess up M-x gdb in Emacs.
1497case $srcdir in
1498*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499esac
1500for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505done
1506
1507#
1508# Report the --help message.
1509#
1510if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1513 cat <<_ACEOF
1514\`configure' configures this package to adapt to many kinds of systems.
1515
1516Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519VAR=VALUE. See below for descriptions of some of the useful variables.
1520
1521Defaults for the options are specified in brackets.
1522
1523Configuration:
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533
1534Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 [PREFIX]
1539
1540By default, \`make install' will install all the files in
1541\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543for instance \`--prefix=\$HOME'.
1544
1545For better control, use the options below.
1546
1547Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1567_ACEOF
1568
1569 cat <<\_ACEOF
1570
1571Program names:
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575
1576System types:
1577 --build=BUILD configure for building on BUILD [guessed]
1578 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1579 --target=TARGET configure for building compilers for TARGET [HOST]
1580_ACEOF
1581fi
1582
1583if test -n "$ac_init_help"; then
1584
1585 cat <<\_ACEOF
1586
1587Optional Features:
1588 --disable-option-checking ignore unrecognized --enable/--with options
1589 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1590 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1591 --enable-maintainer-mode enable make rules and dependencies not useful
1592 (and sometimes confusing) to the casual installer
1593 --enable-silent-rules less verbose build output (undo: `make V=1')
1594 --disable-silent-rules verbose build output (undo: `make V=0')
1595 --disable-dependency-tracking speeds up one-time build
1596 --enable-dependency-tracking do not reject slow dependency extractors
1597 --enable-shared[=PKGS] build shared libraries [default=yes]
1598 --enable-static[=PKGS] build static libraries [default=yes]
1599 --enable-fast-install[=PKGS]
1600 optimize for fast installation [default=yes]
1601 --disable-libtool-lock avoid locking (might break parallel builds)
1602 --enable-linux-builtin Configure for builtin in-tree kernel modules
1603 [default=no]
1604 --enable-debug Enable generic debug support [default=no]
1605 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1606
1607Optional Packages:
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1611 both]
1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1613 --with-spec=SPEC Spec files 'generic|fedora'
1614 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1615 --with-linux=PATH Path to kernel source
1616 --with-linux-obj=PATH Path to kernel build objects
1617 --with-spl=PATH Path to spl source
1618 --with-spl-obj=PATH Path to spl build objects
c06d4368 1619 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
0e3762ca
CALP
1620 --with-udevdir=DIR install udev helpers [[EPREFIX/lib/udev]]
1621 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1622 --with-dracutdir=DIR install dracut helpers [[EPREFIX/lib/dracut]]
1623 --with-blkid support blkid caching [default=check]
1624 --with-selinux support selinux [default=check]
1625
1626Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CPP C preprocessor
1635 CCAS assembler compiler command (defaults to CC)
1636 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1637
1638Use these variables to override the choices made by `configure' or to help
1639it to find libraries and programs with nonstandard names/locations.
1640
1641Report bugs to the package provider.
1642_ACEOF
1643ac_status=$?
1644fi
1645
1646if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 continue
1652 ac_builddir=.
1653
1654case "$ac_dir" in
1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656*)
1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664esac
1665ac_abs_top_builddir=$ac_pwd
1666ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667# for backward compatibility:
1668ac_top_builddir=$ac_top_build_prefix
1669
1670case $srcdir in
1671 .) # We are building in place.
1672 ac_srcdir=.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683esac
1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1694 else
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1698 done
1699fi
1700
1701test -n "$ac_init_help" && exit $ac_status
1702if $ac_init_version; then
1703 cat <<\_ACEOF
1704configure
1705generated by GNU Autoconf 2.67
1706
1707Copyright (C) 2010 Free Software Foundation, Inc.
1708This configure script is free software; the Free Software Foundation
1709gives unlimited permission to copy, distribute and modify it.
1710_ACEOF
1711 exit
1712fi
1713
1714## ------------------------ ##
1715## Autoconf initialization. ##
1716## ------------------------ ##
1717
1718# ac_fn_c_try_compile LINENO
1719# --------------------------
1720# Try to compile conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_compile ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_compile
1755
1756# ac_fn_c_try_link LINENO
1757# -----------------------
1758# Try to link conftest.$ac_ext, and return whether this succeeded.
1759ac_fn_c_try_link ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 $as_test_x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786else
1787 $as_echo "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 as_fn_set_status $ac_retval
1799
1800} # ac_fn_c_try_link
1801
1802# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1803# -------------------------------------------------------
1804# Tests whether HEADER exists and can be compiled using the include files in
1805# INCLUDES, setting the cache variable VAR accordingly.
1806ac_fn_c_check_header_compile ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
1811if eval "test \"\${$3+set}\"" = set; then :
1812 $as_echo_n "(cached) " >&6
1813else
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h. */
1816$4
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"; then :
1820 eval "$3=yes"
1821else
1822 eval "$3=no"
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825fi
1826eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830
1831} # ac_fn_c_check_header_compile
1832
1833# ac_fn_c_try_cpp LINENO
1834# ----------------------
1835# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_c_try_cpp ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 as_fn_set_status $ac_retval
1867
1868} # ac_fn_c_try_cpp
1869
1870# ac_fn_c_try_run LINENO
1871# ----------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1873# that executables *can* be run.
1874ac_fn_c_try_run ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1888 { { case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891esac
1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893$as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_try") 2>&5
1895 ac_status=$?
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; }; }; then :
1898 ac_retval=0
1899else
1900 $as_echo "$as_me: program exited with status $ac_status" >&5
1901 $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=$ac_status
1905fi
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 as_fn_set_status $ac_retval
1909
1910} # ac_fn_c_try_run
1911
1912# ac_fn_c_check_func LINENO FUNC VAR
1913# ----------------------------------
1914# Tests whether FUNC exists, setting the cache variable VAR accordingly
1915ac_fn_c_check_func ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval "test \"\${$3+set}\"" = set; then :
1921 $as_echo_n "(cached) " >&6
1922else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924/* end confdefs.h. */
1925/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1927#define $2 innocuous_$2
1928
1929/* System header to define __stub macros and hopefully few prototypes,
1930 which can conflict with char $2 (); below.
1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932 <limits.h> exists even on freestanding compilers. */
1933
1934#ifdef __STDC__
1935# include <limits.h>
1936#else
1937# include <assert.h>
1938#endif
1939
1940#undef $2
1941
1942/* Override any GCC internal prototype to avoid an error.
1943 Use char because int might match the return type of a GCC
1944 builtin and then its argument prototype would still apply. */
1945#ifdef __cplusplus
1946extern "C"
1947#endif
1948char $2 ();
1949/* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952#if defined __stub_$2 || defined __stub___$2
1953choke me
1954#endif
1955
1956int
1957main ()
1958{
1959return $2 ();
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_link "$LINENO"; then :
1965 eval "$3=yes"
1966else
1967 eval "$3=no"
1968fi
1969rm -f core conftest.err conftest.$ac_objext \
1970 conftest$ac_exeext conftest.$ac_ext
1971fi
1972eval ac_res=\$$3
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974$as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977} # ac_fn_c_check_func
1978
1979# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980# -------------------------------------------------------
1981# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982# the include files in INCLUDES and setting the cache variable VAR
1983# accordingly.
1984ac_fn_c_check_header_mongrel ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if eval "test \"\${$3+set}\"" = set; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989$as_echo_n "checking for $2... " >&6; }
1990if eval "test \"\${$3+set}\"" = set; then :
1991 $as_echo_n "(cached) " >&6
1992fi
1993eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995$as_echo "$ac_res" >&6; }
1996else
1997 # Is the header compilable?
1998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999$as_echo_n "checking $2 usability... " >&6; }
2000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h. */
2002$4
2003#include <$2>
2004_ACEOF
2005if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2007else
2008 ac_header_compiler=no
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012$as_echo "$ac_header_compiler" >&6; }
2013
2014# Is the header present?
2015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016$as_echo_n "checking $2 presence... " >&6; }
2017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019#include <$2>
2020_ACEOF
2021if ac_fn_c_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2023else
2024 ac_header_preproc=no
2025fi
2026rm -f conftest.err conftest.i conftest.$ac_ext
2027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028$as_echo "$ac_header_preproc" >&6; }
2029
2030# So? What about this header?
2031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2032 yes:no: )
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 ;;
2038 no:yes:* )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2049 ;;
2050esac
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052$as_echo_n "checking for $2... " >&6; }
2053if eval "test \"\${$3+set}\"" = set; then :
2054 $as_echo_n "(cached) " >&6
2055else
2056 eval "$3=\$ac_header_compiler"
2057fi
2058eval ac_res=\$$3
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060$as_echo "$ac_res" >&6; }
2061fi
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063
2064} # ac_fn_c_check_header_mongrel
2065cat >config.log <<_ACEOF
2066This file contains any messages produced by compilers while
2067running configure, to aid debugging if configure makes a mistake.
2068
2069It was created by $as_me, which was
2070generated by GNU Autoconf 2.67. Invocation command line was
2071
2072 $ $0 $@
2073
2074_ACEOF
2075exec 5>>config.log
2076{
2077cat <<_ASUNAME
2078## --------- ##
2079## Platform. ##
2080## --------- ##
2081
2082hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2083uname -m = `(uname -m) 2>/dev/null || echo unknown`
2084uname -r = `(uname -r) 2>/dev/null || echo unknown`
2085uname -s = `(uname -s) 2>/dev/null || echo unknown`
2086uname -v = `(uname -v) 2>/dev/null || echo unknown`
2087
2088/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2089/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2090
2091/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2092/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2093/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2094/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2095/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2096/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2097/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2098
2099_ASUNAME
2100
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104 IFS=$as_save_IFS
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2107 done
2108IFS=$as_save_IFS
2109
2110} >&5
2111
2112cat >&5 <<_ACEOF
2113
2114
2115## ----------- ##
2116## Core tests. ##
2117## ----------- ##
2118
2119_ACEOF
2120
2121
2122# Keep a trace of the command line.
2123# Strip out --no-create and --no-recursion so they do not pile up.
2124# Strip out --silent because we don't want to record it for future runs.
2125# Also quote any args containing shell meta-characters.
2126# Make two passes to allow for proper duplicate-argument suppression.
2127ac_configure_args=
2128ac_configure_args0=
2129ac_configure_args1=
2130ac_must_keep_next=false
2131for ac_pass in 1 2
2132do
2133 for ac_arg
2134 do
2135 case $ac_arg in
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2139 continue ;;
2140 *\'*)
2141 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2142 esac
2143 case $ac_pass in
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2145 2)
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2149 else
2150 case $ac_arg in
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2157 esac
2158 ;;
2159 -* ) ac_must_keep_next=true ;;
2160 esac
2161 fi
2162 as_fn_append ac_configure_args " '$ac_arg'"
2163 ;;
2164 esac
2165 done
2166done
2167{ ac_configure_args0=; unset ac_configure_args0;}
2168{ ac_configure_args1=; unset ac_configure_args1;}
2169
2170# When interrupted or exit'd, cleanup temporary files, and complete
2171# config.log. We remove comments because anyway the quotes in there
2172# would cause problems or look ugly.
2173# WARNING: Use '\'' to represent an apostrophe within the trap.
2174# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2177 {
2178 echo
2179
2180 $as_echo "## ---------------- ##
2181## Cache variables. ##
2182## ---------------- ##"
2183 echo
2184 # The following way of writing the cache mishandles newlines in values,
2185(
2186 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2187 eval ac_val=\$$ac_var
2188 case $ac_val in #(
2189 *${as_nl}*)
2190 case $ac_var in #(
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2193 esac
2194 case $ac_var in #(
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2198 esac ;;
2199 esac
2200 done
2201 (set) 2>&1 |
2202 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2204 sed -n \
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2207 ;; #(
2208 *)
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 ;;
2211 esac |
2212 sort
2213)
2214 echo
2215
2216 $as_echo "## ----------------- ##
2217## Output variables. ##
2218## ----------------- ##"
2219 echo
2220 for ac_var in $ac_subst_vars
2221 do
2222 eval ac_val=\$$ac_var
2223 case $ac_val in
2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225 esac
2226 $as_echo "$ac_var='\''$ac_val'\''"
2227 done | sort
2228 echo
2229
2230 if test -n "$ac_subst_files"; then
2231 $as_echo "## ------------------- ##
2232## File substitutions. ##
2233## ------------------- ##"
2234 echo
2235 for ac_var in $ac_subst_files
2236 do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240 esac
2241 $as_echo "$ac_var='\''$ac_val'\''"
2242 done | sort
2243 echo
2244 fi
2245
2246 if test -s confdefs.h; then
2247 $as_echo "## ----------- ##
2248## confdefs.h. ##
2249## ----------- ##"
2250 echo
2251 cat confdefs.h
2252 echo
2253 fi
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2257 } >&5
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2260 exit $exit_status
2261' 0
2262for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2264done
2265ac_signal=0
2266
2267# confdefs.h avoids OS command line length limits that DEFS can exceed.
2268rm -f -r conftest* confdefs.h
2269
2270$as_echo "/* confdefs.h */" > confdefs.h
2271
2272# Predefined preprocessor variables.
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_NAME "$PACKAGE_NAME"
2276_ACEOF
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2280_ACEOF
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_VERSION "$PACKAGE_VERSION"
2284_ACEOF
2285
2286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_STRING "$PACKAGE_STRING"
2288_ACEOF
2289
2290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2292_ACEOF
2293
2294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_URL "$PACKAGE_URL"
2296_ACEOF
2297
2298
2299# Let the site file select an alternate cache file if it wants to.
2300# Prefer an explicitly selected file to automatically selected ones.
2301ac_site_file1=NONE
2302ac_site_file2=NONE
2303if test -n "$CONFIG_SITE"; then
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2309 esac
2310elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2313else
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2316fi
2317for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2318do
2319 test "x$ac_site_file" = xNONE && continue
2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2324 . "$ac_site_file" \
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327as_fn_error $? "failed to load site script $ac_site_file
2328See \`config.log' for more details" "$LINENO" 5 ; }
2329 fi
2330done
2331
2332if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337$as_echo "$as_me: loading cache $cache_file" >&6;}
2338 case $cache_file in
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2341 esac
2342 fi
2343else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345$as_echo "$as_me: creating cache $cache_file" >&6;}
2346 >$cache_file
2347fi
2348
2349# Check that the precious variables saved in the cache have kept the same
2350# value.
2351ac_cache_corrupted=false
2352for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2358 set,)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2360$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,set)
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2364$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2366 ,);;
2367 *)
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x $ac_old_val`
2371 ac_new_val_w=`echo x $ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2375 ac_cache_corrupted=:
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2378$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2385 fi;;
2386 esac
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2389 case $ac_new_val in
2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2392 esac
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2396 esac
2397 fi
2398done
2399if $ac_cache_corrupted; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2405fi
2406## -------------------- ##
2407## Main body of script. ##
2408## -------------------- ##
2409
2410ac_ext=c
2411ac_cpp='$CPP $CPPFLAGS'
2412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415
2416
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422
2423
2424
2425
2426
c06d4368
AX
2427 for ac_prog in gawk mawk nawk awk
2428do
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430set dummy $ac_prog; ac_word=$2
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432$as_echo_n "checking for $ac_word... " >&6; }
2433if test "${ac_cv_prog_AWK+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
2435else
2436 if test -n "$AWK"; then
2437 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_AWK="$ac_prog"
2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 break 2
2449 fi
2450done
2451 done
2452IFS=$as_save_IFS
2453
2454fi
2455fi
2456AWK=$ac_cv_prog_AWK
2457if test -n "$AWK"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2459$as_echo "$AWK" >&6; }
2460else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462$as_echo "no" >&6; }
2463fi
2464
2465
2466 test -n "$AWK" && break
2467done
2468
0e3762ca
CALP
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2470$as_echo_n "checking metadata... " >&6; }
2471
2472 META="$srcdir/META"
2473 _zfs_ac_meta_type="none"
2474 if test -f "$META"; then
2475 _zfs_ac_meta_type="META file"
2476
c06d4368 2477 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
0e3762ca
CALP
2478 if test -n "$ZFS_META_NAME"; then
2479
2480cat >>confdefs.h <<_ACEOF
2481#define ZFS_META_NAME "$ZFS_META_NAME"
2482_ACEOF
2483
2484
2485 fi
2486
c06d4368 2487 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
0e3762ca
CALP
2488 if test -n "$ZFS_META_VERSION"; then
2489
2490cat >>confdefs.h <<_ACEOF
2491#define ZFS_META_VERSION "$ZFS_META_VERSION"
2492_ACEOF
2493
2494
2495 fi
2496
c06d4368
AX
2497 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2498 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
0e3762ca
CALP
2499 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}*"
2500 _alias=$(git describe --match=${_match} 2>/dev/null)
2501 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2502 if test -n "${_release}"; then
2503 ZFS_META_RELEASE=${_release}
2504 _zfs_ac_meta_type="git describe"
2505 fi
2506 fi
2507
2508 if test -n "$ZFS_META_RELEASE"; then
2509
2510cat >>confdefs.h <<_ACEOF
2511#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2512_ACEOF
2513
2514
2515
2516 RELEASE="$ZFS_META_RELEASE"
2517
2518 fi
2519
c06d4368 2520 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
0e3762ca
CALP
2521 if test -n "$ZFS_META_LICENSE"; then
2522
2523cat >>confdefs.h <<_ACEOF
2524#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2525_ACEOF
2526
2527
2528 fi
2529
2530 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2531 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2532 test -n "$ZFS_META_RELEASE" &&
2533 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2534
2535cat >>confdefs.h <<_ACEOF
2536#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2537_ACEOF
2538
2539
2540 fi
2541
c06d4368 2542 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
0e3762ca
CALP
2543 if test -n "$ZFS_META_DATA"; then
2544
2545cat >>confdefs.h <<_ACEOF
2546#define ZFS_META_DATA "$ZFS_META_DATA"
2547_ACEOF
2548
2549
2550 fi
2551
c06d4368 2552 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
0e3762ca
CALP
2553 if test -n "$ZFS_META_AUTHOR"; then
2554
2555cat >>confdefs.h <<_ACEOF
2556#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2557_ACEOF
2558
2559
2560 fi
2561
2562
c06d4368
AX
2563 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2564 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2565 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
0e3762ca
CALP
2566 if test -n "$ZFS_META_LT_CURRENT" \
2567 -o -n "$ZFS_META_LT_REVISION" \
2568 -o -n "$ZFS_META_LT_AGE"; then
2569 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2570 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2571 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2572
2573cat >>confdefs.h <<_ACEOF
2574#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2575_ACEOF
2576
2577
2578cat >>confdefs.h <<_ACEOF
2579#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2580_ACEOF
2581
2582
2583cat >>confdefs.h <<_ACEOF
2584#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2585_ACEOF
2586
2587
2588
2589
2590 fi
2591 fi
2592
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2594$as_echo "$_zfs_ac_meta_type" >&6; }
2595
2596
2597ac_aux_dir=
2598for ac_dir in config "$srcdir"/config; do
2599 if test -f "$ac_dir/install-sh"; then
2600 ac_aux_dir=$ac_dir
2601 ac_install_sh="$ac_aux_dir/install-sh -c"
2602 break
2603 elif test -f "$ac_dir/install.sh"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/install.sh -c"
2606 break
2607 elif test -f "$ac_dir/shtool"; then
2608 ac_aux_dir=$ac_dir
2609 ac_install_sh="$ac_aux_dir/shtool install -c"
2610 break
2611 fi
2612done
2613if test -z "$ac_aux_dir"; then
2614 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2615fi
2616
2617# These three variables are undocumented and unsupported,
2618# and are intended to be withdrawn in a future Autoconf release.
2619# They can cause serious problems if a builder's source tree is in a directory
2620# whose full name contains unusual characters.
2621ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624
2625
c06d4368 2626
0e3762ca
CALP
2627# Make sure we can run config.sub.
2628$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2629 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2630
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2632$as_echo_n "checking build system type... " >&6; }
2633if test "${ac_cv_build+set}" = set; then :
2634 $as_echo_n "(cached) " >&6
2635else
2636 ac_build_alias=$build_alias
2637test "x$ac_build_alias" = x &&
2638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2639test "x$ac_build_alias" = x &&
2640 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2641ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2642 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2643
2644fi
2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2646$as_echo "$ac_cv_build" >&6; }
2647case $ac_cv_build in
2648*-*-*) ;;
2649*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2650esac
2651build=$ac_cv_build
2652ac_save_IFS=$IFS; IFS='-'
2653set x $ac_cv_build
2654shift
2655build_cpu=$1
2656build_vendor=$2
2657shift; shift
2658# Remember, the first character of IFS is used to create $*,
2659# except with old shells:
2660build_os=$*
2661IFS=$ac_save_IFS
2662case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2663
2664
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2666$as_echo_n "checking host system type... " >&6; }
2667if test "${ac_cv_host+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 if test "x$host_alias" = x; then
2671 ac_cv_host=$ac_cv_build
2672else
2673 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675fi
2676
2677fi
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2679$as_echo "$ac_cv_host" >&6; }
2680case $ac_cv_host in
2681*-*-*) ;;
2682*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2683esac
2684host=$ac_cv_host
2685ac_save_IFS=$IFS; IFS='-'
2686set x $ac_cv_host
2687shift
2688host_cpu=$1
2689host_vendor=$2
2690shift; shift
2691# Remember, the first character of IFS is used to create $*,
2692# except with old shells:
2693host_os=$*
2694IFS=$ac_save_IFS
2695case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2696
2697
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2699$as_echo_n "checking target system type... " >&6; }
2700if test "${ac_cv_target+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 if test "x$target_alias" = x; then
2704 ac_cv_target=$ac_cv_host
2705else
2706 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2707 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2708fi
2709
2710fi
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2712$as_echo "$ac_cv_target" >&6; }
2713case $ac_cv_target in
2714*-*-*) ;;
2715*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2716esac
2717target=$ac_cv_target
2718ac_save_IFS=$IFS; IFS='-'
2719set x $ac_cv_target
2720shift
2721target_cpu=$1
2722target_vendor=$2
2723shift; shift
2724# Remember, the first character of IFS is used to create $*,
2725# except with old shells:
2726target_os=$*
2727IFS=$ac_save_IFS
2728case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2729
2730
2731# The aliases save the names the user supplied, while $host etc.
2732# will get canonicalized.
2733test -n "$target_alias" &&
2734 test "$program_prefix$program_suffix$program_transform_name" = \
2735 NONENONEs,x,x, &&
2736 program_prefix=${target_alias}-
2737
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2740$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2741 # Check whether --enable-maintainer-mode was given.
2742if test "${enable_maintainer_mode+set}" = set; then :
2743 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2744else
2745 USE_MAINTAINER_MODE=no
2746fi
2747
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2749$as_echo "$USE_MAINTAINER_MODE" >&6; }
2750 if test $USE_MAINTAINER_MODE = yes; then
2751 MAINTAINER_MODE_TRUE=
2752 MAINTAINER_MODE_FALSE='#'
2753else
2754 MAINTAINER_MODE_TRUE='#'
2755 MAINTAINER_MODE_FALSE=
2756fi
2757
2758 MAINT=$MAINTAINER_MODE_TRUE
2759
2760
2761# Check whether --enable-silent-rules was given.
2762if test "${enable_silent_rules+set}" = set; then :
2763 enableval=$enable_silent_rules;
2764fi
2765
2766case $enable_silent_rules in
2767yes) AM_DEFAULT_VERBOSITY=0;;
2768no) AM_DEFAULT_VERBOSITY=1;;
c06d4368 2769*) AM_DEFAULT_VERBOSITY=0;;
0e3762ca
CALP
2770esac
2771AM_BACKSLASH='\'
2772
2773am__api_version='1.11'
2774
2775# Find a good install program. We prefer a C program (faster),
2776# so one script is as good as another. But avoid the broken or
2777# incompatible versions:
2778# SysV /etc/install, /usr/sbin/install
2779# SunOS /usr/etc/install
2780# IRIX /sbin/install
2781# AIX /bin/install
2782# AmigaOS /C/install, which installs bootblocks on floppy discs
2783# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2784# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2785# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2786# OS/2's system install, which has a completely different semantic
2787# ./install, which can be erroneously created by make from ./install.sh.
2788# Reject install programs that cannot install multiple files.
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2790$as_echo_n "checking for a BSD-compatible install... " >&6; }
2791if test -z "$INSTALL"; then
2792if test "${ac_cv_path_install+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 # Account for people who put trailing slashes in PATH elements.
2801case $as_dir/ in #((
2802 ./ | .// | /[cC]/* | \
2803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2805 /usr/ucb/* ) ;;
2806 *)
2807 # OSF1 and SCO ODT 3.0 have their own names for install.
2808 # Don't use installbsd from OSF since it installs stuff as root
2809 # by default.
2810 for ac_prog in ginstall scoinst install; do
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2813 if test $ac_prog = install &&
2814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2815 # AIX install. It has an incompatible calling convention.
2816 :
2817 elif test $ac_prog = install &&
2818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2819 # program-specific install script used by HP pwplus--don't use.
2820 :
2821 else
2822 rm -rf conftest.one conftest.two conftest.dir
2823 echo one > conftest.one
2824 echo two > conftest.two
2825 mkdir conftest.dir
2826 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2827 test -s conftest.one && test -s conftest.two &&
2828 test -s conftest.dir/conftest.one &&
2829 test -s conftest.dir/conftest.two
2830 then
2831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2832 break 3
2833 fi
2834 fi
2835 fi
2836 done
2837 done
2838 ;;
2839esac
2840
2841 done
2842IFS=$as_save_IFS
2843
2844rm -rf conftest.one conftest.two conftest.dir
2845
2846fi
2847 if test "${ac_cv_path_install+set}" = set; then
2848 INSTALL=$ac_cv_path_install
2849 else
2850 # As a last resort, use the slow shell script. Don't cache a
2851 # value for INSTALL within a source directory, because that will
2852 # break other packages using the cache if that directory is
2853 # removed, or if the value is a relative name.
2854 INSTALL=$ac_install_sh
2855 fi
2856fi
2857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2858$as_echo "$INSTALL" >&6; }
2859
2860# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2861# It thinks the first close brace ends the variable substitution.
2862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2863
2864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2865
2866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2867
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2869$as_echo_n "checking whether build environment is sane... " >&6; }
2870# Just in case
2871sleep 1
2872echo timestamp > conftest.file
2873# Reject unsafe characters in $srcdir or the absolute working directory
2874# name. Accept space and tab only in the latter.
2875am_lf='
2876'
2877case `pwd` in
2878 *[\\\"\#\$\&\'\`$am_lf]*)
2879 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2880esac
2881case $srcdir in
2882 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2883 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2884esac
2885
2886# Do `set' in a subshell so we don't clobber the current shell's
2887# arguments. Must try -L first in case configure is actually a
2888# symlink; some systems play weird games with the mod time of symlinks
2889# (eg FreeBSD returns the mod time of the symlink's containing
2890# directory).
2891if (
2892 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2893 if test "$*" = "X"; then
2894 # -L didn't work.
2895 set X `ls -t "$srcdir/configure" conftest.file`
2896 fi
2897 rm -f conftest.file
2898 if test "$*" != "X $srcdir/configure conftest.file" \
2899 && test "$*" != "X conftest.file $srcdir/configure"; then
2900
2901 # If neither matched, then we have a broken ls. This can happen
2902 # if, for instance, CONFIG_SHELL is bash and it inherits a
2903 # broken ls alias from the environment. This has actually
2904 # happened. Such a system could not be considered "sane".
2905 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2906alias in your environment" "$LINENO" 5
2907 fi
2908
2909 test "$2" = conftest.file
2910 )
2911then
2912 # Ok.
2913 :
2914else
2915 as_fn_error $? "newly created file is older than distributed files!
2916Check your system clock" "$LINENO" 5
2917fi
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919$as_echo "yes" >&6; }
2920test "$program_prefix" != NONE &&
2921 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2922# Use a double $ so make ignores it.
2923test "$program_suffix" != NONE &&
2924 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2925# Double any \ or $.
2926# By default was `s,x,x', remove it if useless.
2927ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2928program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2929
2930# expand $ac_aux_dir to an absolute path
2931am_aux_dir=`cd $ac_aux_dir && pwd`
2932
2933if test x"${MISSING+set}" != xset; then
2934 case $am_aux_dir in
2935 *\ * | *\ *)
2936 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2937 *)
2938 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2939 esac
2940fi
2941# Use eval to expand $SHELL
2942if eval "$MISSING --run true"; then
2943 am_missing_run="$MISSING --run "
2944else
2945 am_missing_run=
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2947$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2948fi
2949
2950if test x"${install_sh}" != xset; then
2951 case $am_aux_dir in
2952 *\ * | *\ *)
2953 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2954 *)
2955 install_sh="\${SHELL} $am_aux_dir/install-sh"
2956 esac
2957fi
2958
2959# Installed binaries are usually stripped using `strip' when the user
2960# run `make install-strip'. However `strip' might not be the right
2961# tool to use in cross-compilation environments, therefore Automake
2962# will honor the `STRIP' environment variable to overrule this program.
2963if test "$cross_compiling" != no; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2966set dummy ${ac_tool_prefix}strip; ac_word=$2
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
2969if test "${ac_cv_prog_STRIP+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971else
2972 if test -n "$STRIP"; then
2973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986done
2987 done
2988IFS=$as_save_IFS
2989
2990fi
2991fi
2992STRIP=$ac_cv_prog_STRIP
2993if test -n "$STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2995$as_echo "$STRIP" >&6; }
2996else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
2999fi
3000
3001
3002fi
3003if test -z "$ac_cv_prog_STRIP"; then
3004 ac_ct_STRIP=$STRIP
3005 # Extract the first word of "strip", so it can be a program name with args.
3006set dummy strip; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011else
3012 if test -n "$ac_ct_STRIP"; then
3013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_ac_ct_STRIP="strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026done
3027 done
3028IFS=$as_save_IFS
3029
3030fi
3031fi
3032ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3033if test -n "$ac_ct_STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3035$as_echo "$ac_ct_STRIP" >&6; }
3036else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041 if test "x$ac_ct_STRIP" = x; then
3042 STRIP=":"
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045yes:)
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048ac_tool_warned=yes ;;
3049esac
3050 STRIP=$ac_ct_STRIP
3051 fi
3052else
3053 STRIP="$ac_cv_prog_STRIP"
3054fi
3055
3056fi
3057INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3058
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3060$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3061if test -z "$MKDIR_P"; then
3062 if test "${ac_cv_path_mkdir+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_prog in mkdir gmkdir; do
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3073 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3074 'mkdir (GNU coreutils) '* | \
3075 'mkdir (coreutils) '* | \
3076 'mkdir (fileutils) '4.1*)
3077 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3078 break 3;;
3079 esac
3080 done
3081 done
3082 done
3083IFS=$as_save_IFS
3084
3085fi
3086
3087 test -d ./--version && rmdir ./--version
3088 if test "${ac_cv_path_mkdir+set}" = set; then
3089 MKDIR_P="$ac_cv_path_mkdir -p"
3090 else
3091 # As a last resort, use the slow shell script. Don't cache a
3092 # value for MKDIR_P within a source directory, because that will
3093 # break other packages using the cache if that directory is
3094 # removed, or if the value is a relative name.
3095 MKDIR_P="$ac_install_sh -d"
3096 fi
3097fi
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3099$as_echo "$MKDIR_P" >&6; }
3100
3101mkdir_p="$MKDIR_P"
3102case $mkdir_p in
3103 [\\/$]* | ?:[\\/]*) ;;
3104 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3105esac
3106
0e3762ca
CALP
3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3108$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3109set x ${MAKE-make}
3110ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3111if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3112 $as_echo_n "(cached) " >&6
3113else
3114 cat >conftest.make <<\_ACEOF
3115SHELL = /bin/sh
3116all:
3117 @echo '@@@%%%=$(MAKE)=@@@%%%'
3118_ACEOF
3119# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3120case `${MAKE-make} -f conftest.make 2>/dev/null` in
3121 *@@@%%%=?*=@@@%%%*)
3122 eval ac_cv_prog_make_${ac_make}_set=yes;;
3123 *)
3124 eval ac_cv_prog_make_${ac_make}_set=no;;
3125esac
3126rm -f conftest.make
3127fi
3128if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130$as_echo "yes" >&6; }
3131 SET_MAKE=
3132else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135 SET_MAKE="MAKE=${MAKE-make}"
3136fi
3137
3138rm -rf .tst 2>/dev/null
3139mkdir .tst 2>/dev/null
3140if test -d .tst; then
3141 am__leading_dot=.
3142else
3143 am__leading_dot=_
3144fi
3145rmdir .tst 2>/dev/null
3146
3147if test "`cd $srcdir && pwd`" != "`pwd`"; then
3148 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3149 # is not polluted with repeated "-I."
3150 am__isrc=' -I$(srcdir)'
3151 # test to see if srcdir already configured
3152 if test -f $srcdir/config.status; then
3153 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3154 fi
3155fi
3156
3157# test whether we have cygpath
3158if test -z "$CYGPATH_W"; then
3159 if (cygpath --version) >/dev/null 2>/dev/null; then
3160 CYGPATH_W='cygpath -w'
3161 else
3162 CYGPATH_W=echo
3163 fi
3164fi
3165
3166
3167# Define the identity of the package.
3168 PACKAGE=$ZFS_META_NAME
3169 VERSION=$ZFS_META_VERSION
3170
3171
3172cat >>confdefs.h <<_ACEOF
3173#define PACKAGE "$PACKAGE"
3174_ACEOF
3175
3176
3177cat >>confdefs.h <<_ACEOF
3178#define VERSION "$VERSION"
3179_ACEOF
3180
3181# Some tools Automake needs.
3182
3183ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3184
3185
3186AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3187
3188
3189AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3190
3191
3192AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3193
3194
3195MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3196
3197# We need awk for the "check" target. The system "awk" is bad on
3198# some platforms.
3199# Always define AMTAR for backward compatibility.
3200
3201AMTAR=${AMTAR-"${am_missing_run}tar"}
3202
3203am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3204
3205
3206
3207
3208
3209ac_config_headers="$ac_config_headers zfs_config.h"
3210
3211
3212
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218if test -n "$ac_tool_prefix"; then
3219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3220set dummy ${ac_tool_prefix}gcc; ac_word=$2
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222$as_echo_n "checking for $ac_word... " >&6; }
3223if test "${ac_cv_prog_CC+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3225else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228else
3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230for as_dir in $PATH
3231do
3232 IFS=$as_save_IFS
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240done
3241 done
3242IFS=$as_save_IFS
3243
3244fi
3245fi
3246CC=$ac_cv_prog_CC
3247if test -n "$CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3249$as_echo "$CC" >&6; }
3250else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
3253fi
3254
3255
3256fi
3257if test -z "$ac_cv_prog_CC"; then
3258 ac_ct_CC=$CC
3259 # Extract the first word of "gcc", so it can be a program name with args.
3260set dummy gcc; ac_word=$2
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
3263if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
3265else
3266 if test -n "$ac_ct_CC"; then
3267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_ac_ct_CC="gcc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280done
3281 done
3282IFS=$as_save_IFS
3283
3284fi
3285fi
3286ac_ct_CC=$ac_cv_prog_ac_ct_CC
3287if test -n "$ac_ct_CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3289$as_echo "$ac_ct_CC" >&6; }
3290else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
3293fi
3294
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299yes:)
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302ac_tool_warned=yes ;;
3303esac
3304 CC=$ac_ct_CC
3305 fi
3306else
3307 CC="$ac_cv_prog_CC"
3308fi
3309
3310if test -z "$CC"; then
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3313set dummy ${ac_tool_prefix}cc; ac_word=$2
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
3316if test "${ac_cv_prog_CC+set}" = set; then :
3317 $as_echo_n "(cached) " >&6
3318else
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 ac_cv_prog_CC="${ac_tool_prefix}cc"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333done
3334 done
3335IFS=$as_save_IFS
3336
3337fi
3338fi
3339CC=$ac_cv_prog_CC
3340if test -n "$CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342$as_echo "$CC" >&6; }
3343else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
3346fi
3347
3348
3349 fi
3350fi
3351if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353set dummy cc; ac_word=$2
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355$as_echo_n "checking for $ac_word... " >&6; }
3356if test "${ac_cv_prog_CC+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3358else
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3361else
3362 ac_prog_rejected=no
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3371 ac_prog_rejected=yes
3372 continue
3373 fi
3374 ac_cv_prog_CC="cc"
3375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 break 2
3377 fi
3378done
3379 done
3380IFS=$as_save_IFS
3381
3382if test $ac_prog_rejected = yes; then
3383 # We found a bogon in the path, so make sure we never use it.
3384 set dummy $ac_cv_prog_CC
3385 shift
3386 if test $# != 0; then
3387 # We chose a different compiler from the bogus one.
3388 # However, it has the same basename, so the bogon will be chosen
3389 # first if we set CC to just the basename; use the full file name.
3390 shift
3391 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3392 fi
3393fi
3394fi
3395fi
3396CC=$ac_cv_prog_CC
3397if test -n "$CC"; then
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3399$as_echo "$CC" >&6; }
3400else
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3402$as_echo "no" >&6; }
3403fi
3404
3405
3406fi
3407if test -z "$CC"; then
3408 if test -n "$ac_tool_prefix"; then
3409 for ac_prog in cl.exe
3410 do
3411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3412set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if test "${ac_cv_prog_CC+set}" = set; then :
3416 $as_echo_n "(cached) " >&6
3417else
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC="$CC" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432done
3433 done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438CC=$ac_cv_prog_CC
3439if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441$as_echo "$CC" >&6; }
3442else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448 test -n "$CC" && break
3449 done
3450fi
3451if test -z "$CC"; then
3452 ac_ct_CC=$CC
3453 for ac_prog in cl.exe
3454do
3455 # Extract the first word of "$ac_prog", so it can be a program name with args.
3456set dummy $ac_prog; ac_word=$2
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458$as_echo_n "checking for $ac_word... " >&6; }
3459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461else
3462 if test -n "$ac_ct_CC"; then
3463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_ac_ct_CC="$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476done
3477 done
3478IFS=$as_save_IFS
3479
3480fi
3481fi
3482ac_ct_CC=$ac_cv_prog_ac_ct_CC
3483if test -n "$ac_ct_CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3485$as_echo "$ac_ct_CC" >&6; }
3486else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492 test -n "$ac_ct_CC" && break
3493done
3494
3495 if test "x$ac_ct_CC" = x; then
3496 CC=""
3497 else
3498 case $cross_compiling:$ac_tool_warned in
3499yes:)
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502ac_tool_warned=yes ;;
3503esac
3504 CC=$ac_ct_CC
3505 fi
3506fi
3507
3508fi
3509
3510
3511test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error $? "no acceptable C compiler found in \$PATH
3514See \`config.log' for more details" "$LINENO" 5 ; }
3515
3516# Provide some information about the compiler.
3517$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518set X $ac_compile
3519ac_compiler=$2
3520for ac_option in --version -v -V -qversion; do
3521 { { ac_try="$ac_compiler $ac_option >&5"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527$as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3529 ac_status=$?
3530 if test -s conftest.err; then
3531 sed '10a\
3532... rest of stderr output deleted ...
3533 10q' conftest.err >conftest.er1
3534 cat conftest.er1 >&5
3535 fi
3536 rm -f conftest.er1 conftest.err
3537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }
3539done
3540
3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h. */
3543
3544int
3545main ()
3546{
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
3552ac_clean_files_save=$ac_clean_files
3553ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3554# Try to create an executable without -o first, disregard a.out.
3555# It will help us diagnose broken compilers, and finding out an intuition
3556# of exeext.
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3558$as_echo_n "checking whether the C compiler works... " >&6; }
3559ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3560
3561# The possible output files:
3562ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3563
3564ac_rmfiles=
3565for ac_file in $ac_files
3566do
3567 case $ac_file in
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3570 esac
3571done
3572rm -f $ac_rmfiles
3573
3574if { { ac_try="$ac_link_default"
3575case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link_default") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3586# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3587# in a Makefile. We should not override ac_cv_exeext if it was cached,
3588# so that the user can short-circuit this test for compilers unknown to
3589# Autoconf.
3590for ac_file in $ac_files ''
3591do
3592 test -f "$ac_file" || continue
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3595 ;;
3596 [ab].out )
3597 # We found the default executable, but exeext='' is most
3598 # certainly right.
3599 break;;
3600 *.* )
3601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3602 then :; else
3603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 fi
3605 # We set ac_cv_exeext here because the later test for it is not
3606 # safe: cross compilers may not add the suffix if given an `-o'
3607 # argument, so we may need to know it at that point already.
3608 # Even if this section looks crufty: it has the advantage of
3609 # actually working.
3610 break;;
3611 * )
3612 break;;
3613 esac
3614done
3615test "$ac_cv_exeext" = no && ac_cv_exeext=
3616
3617else
3618 ac_file=''
3619fi
3620if test -z "$ac_file"; then :
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
3623$as_echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628as_fn_error 77 "C compiler cannot create executables
3629See \`config.log' for more details" "$LINENO" 5 ; }
3630else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3632$as_echo "yes" >&6; }
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3635$as_echo_n "checking for C compiler default output file name... " >&6; }
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3637$as_echo "$ac_file" >&6; }
3638ac_exeext=$ac_cv_exeext
3639
3640rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3641ac_clean_files=$ac_clean_files_save
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3643$as_echo_n "checking for suffix of executables... " >&6; }
3644if { { ac_try="$ac_link"
3645case "(($ac_try" in
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3648esac
3649eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3650$as_echo "$ac_try_echo"; } >&5
3651 (eval "$ac_link") 2>&5
3652 ac_status=$?
3653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3654 test $ac_status = 0; }; then :
3655 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3656# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3657# work properly (i.e., refer to `conftest.exe'), while it won't with
3658# `rm'.
3659for ac_file in conftest.exe conftest conftest.*; do
3660 test -f "$ac_file" || continue
3661 case $ac_file in
3662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 break;;
3665 * ) break;;
3666 esac
3667done
3668else
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3672See \`config.log' for more details" "$LINENO" 5 ; }
3673fi
3674rm -f conftest conftest$ac_cv_exeext
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3676$as_echo "$ac_cv_exeext" >&6; }
3677
3678rm -f conftest.$ac_ext
3679EXEEXT=$ac_cv_exeext
3680ac_exeext=$EXEEXT
3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682/* end confdefs.h. */
3683#include <stdio.h>
3684int
3685main ()
3686{
3687FILE *f = fopen ("conftest.out", "w");
3688 return ferror (f) || fclose (f) != 0;
3689
3690 ;
3691 return 0;
3692}
3693_ACEOF
3694ac_clean_files="$ac_clean_files conftest.out"
3695# Check that the compiler produces executables we can run. If not, either
3696# the compiler is broken, or we cross compile.
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3698$as_echo_n "checking whether we are cross compiling... " >&6; }
3699if test "$cross_compiling" != yes; then
3700 { { ac_try="$ac_link"
3701case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706$as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_link") 2>&5
3708 ac_status=$?
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }
3711 if { ac_try='./conftest$ac_cv_exeext'
3712 { { case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3715esac
3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3717$as_echo "$ac_try_echo"; } >&5
3718 (eval "$ac_try") 2>&5
3719 ac_status=$?
3720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }; }; then
3722 cross_compiling=no
3723 else
3724 if test "$cross_compiling" = maybe; then
3725 cross_compiling=yes
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;}
3729as_fn_error $? "cannot run C compiled programs.
3730If you meant to cross compile, use \`--host'.
3731See \`config.log' for more details" "$LINENO" 5 ; }
3732 fi
3733 fi
3734fi
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3736$as_echo "$cross_compiling" >&6; }
3737
3738rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3739ac_clean_files=$ac_clean_files_save
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3741$as_echo_n "checking for suffix of object files... " >&6; }
3742if test "${ac_cv_objext+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744else
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746/* end confdefs.h. */
3747
3748int
3749main ()
3750{
3751
3752 ;
3753 return 0;
3754}
3755_ACEOF
3756rm -f conftest.o conftest.obj
3757if { { ac_try="$ac_compile"
3758case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761esac
3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763$as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_compile") 2>&5
3765 ac_status=$?
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }; then :
3768 for ac_file in conftest.o conftest.obj conftest.*; do
3769 test -f "$ac_file" || continue;
3770 case $ac_file in
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3772 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3773 break;;
3774 esac
3775done
3776else
3777 $as_echo "$as_me: failed program was:" >&5
3778sed 's/^/| /' conftest.$ac_ext >&5
3779
3780{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782as_fn_error $? "cannot compute suffix of object files: cannot compile
3783See \`config.log' for more details" "$LINENO" 5 ; }
3784fi
3785rm -f conftest.$ac_cv_objext conftest.$ac_ext
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3788$as_echo "$ac_cv_objext" >&6; }
3789OBJEXT=$ac_cv_objext
3790ac_objext=$OBJEXT
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3792$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3793if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h. */
3798
3799int
3800main ()
3801{
3802#ifndef __GNUC__
3803 choke me
3804#endif
3805
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810if ac_fn_c_try_compile "$LINENO"; then :
3811 ac_compiler_gnu=yes
3812else
3813 ac_compiler_gnu=no
3814fi
3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816ac_cv_c_compiler_gnu=$ac_compiler_gnu
3817
3818fi
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3820$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3821if test $ac_compiler_gnu = yes; then
3822 GCC=yes
3823else
3824 GCC=
3825fi
3826ac_test_CFLAGS=${CFLAGS+set}
3827ac_save_CFLAGS=$CFLAGS
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3829$as_echo_n "checking whether $CC accepts -g... " >&6; }
3830if test "${ac_cv_prog_cc_g+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3832else
3833 ac_save_c_werror_flag=$ac_c_werror_flag
3834 ac_c_werror_flag=yes
3835 ac_cv_prog_cc_g=no
3836 CFLAGS="-g"
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h. */
3839
3840int
3841main ()
3842{
3843
3844 ;
3845 return 0;
3846}
3847_ACEOF
3848if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_cv_prog_cc_g=yes
3850else
3851 CFLAGS=""
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853/* end confdefs.h. */
3854
3855int
3856main ()
3857{
3858
3859 ;
3860 return 0;
3861}
3862_ACEOF
3863if ac_fn_c_try_compile "$LINENO"; then :
3864
3865else
3866 ac_c_werror_flag=$ac_save_c_werror_flag
3867 CFLAGS="-g"
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869/* end confdefs.h. */
3870
3871int
3872main ()
3873{
3874
3875 ;
3876 return 0;
3877}
3878_ACEOF
3879if ac_fn_c_try_compile "$LINENO"; then :
3880 ac_cv_prog_cc_g=yes
3881fi
3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883fi
3884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885fi
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 ac_c_werror_flag=$ac_save_c_werror_flag
3888fi
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3890$as_echo "$ac_cv_prog_cc_g" >&6; }
3891if test "$ac_test_CFLAGS" = set; then
3892 CFLAGS=$ac_save_CFLAGS
3893elif test $ac_cv_prog_cc_g = yes; then
3894 if test "$GCC" = yes; then
3895 CFLAGS="-g -O2"
3896 else
3897 CFLAGS="-g"
3898 fi
3899else
3900 if test "$GCC" = yes; then
3901 CFLAGS="-O2"
3902 else
3903 CFLAGS=
3904 fi
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3907$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3908if test "${ac_cv_prog_cc_c89+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3910else
3911 ac_cv_prog_cc_c89=no
3912ac_save_CC=$CC
3913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h. */
3915#include <stdarg.h>
3916#include <stdio.h>
3917#include <sys/types.h>
3918#include <sys/stat.h>
3919/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3920struct buf { int x; };
3921FILE * (*rcsopen) (struct buf *, struct stat *, int);
3922static char *e (p, i)
3923 char **p;
3924 int i;
3925{
3926 return p[i];
3927}
3928static char *f (char * (*g) (char **, int), char **p, ...)
3929{
3930 char *s;
3931 va_list v;
3932 va_start (v,p);
3933 s = g (p, va_arg (v,int));
3934 va_end (v);
3935 return s;
3936}
3937
3938/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3939 function prototypes and stuff, but not '\xHH' hex character constants.
3940 These don't provoke an error unfortunately, instead are silently treated
3941 as 'x'. The following induces an error, until -std is added to get
3942 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3943 array size at least. It's necessary to write '\x00'==0 to get something
3944 that's true only with -std. */
3945int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3946
3947/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948 inside strings and character constants. */
3949#define FOO(x) 'x'
3950int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3951
3952int test (int i, double x);
3953struct s1 {int (*f) (int a);};
3954struct s2 {int (*f) (double a);};
3955int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3956int argc;
3957char **argv;
3958int
3959main ()
3960{
3961return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3967 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3968do
3969 CC="$ac_save_CC $ac_arg"
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 ac_cv_prog_cc_c89=$ac_arg
3972fi
3973rm -f core conftest.err conftest.$ac_objext
3974 test "x$ac_cv_prog_cc_c89" != "xno" && break
3975done
3976rm -f conftest.$ac_ext
3977CC=$ac_save_CC
3978
3979fi
3980# AC_CACHE_VAL
3981case "x$ac_cv_prog_cc_c89" in
3982 x)
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3984$as_echo "none needed" >&6; } ;;
3985 xno)
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3987$as_echo "unsupported" >&6; } ;;
3988 *)
3989 CC="$CC $ac_cv_prog_cc_c89"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3991$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3992esac
3993if test "x$ac_cv_prog_cc_c89" != xno; then :
3994
3995fi
3996
3997ac_ext=c
3998ac_cpp='$CPP $CPPFLAGS'
3999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4001ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002DEPDIR="${am__leading_dot}deps"
4003
4004ac_config_commands="$ac_config_commands depfiles"
4005
4006
4007am_make=${MAKE-make}
4008cat > confinc << 'END'
4009am__doit:
4010 @echo this is the am__doit target
4011.PHONY: am__doit
4012END
4013# If we don't find an include directive, just comment out the code.
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4015$as_echo_n "checking for style of include used by $am_make... " >&6; }
4016am__include="#"
4017am__quote=
4018_am_result=none
4019# First try GNU make style include.
4020echo "include confinc" > confmf
4021# Ignore all kinds of additional output from `make'.
4022case `$am_make -s -f confmf 2> /dev/null` in #(
4023*the\ am__doit\ target*)
4024 am__include=include
4025 am__quote=
4026 _am_result=GNU
4027 ;;
4028esac
4029# Now try BSD make style include.
4030if test "$am__include" = "#"; then
4031 echo '.include "confinc"' > confmf
4032 case `$am_make -s -f confmf 2> /dev/null` in #(
4033 *the\ am__doit\ target*)
4034 am__include=.include
4035 am__quote="\""
4036 _am_result=BSD
4037 ;;
4038 esac
4039fi
4040
4041
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4043$as_echo "$_am_result" >&6; }
4044rm -f confinc confmf
4045
4046# Check whether --enable-dependency-tracking was given.
4047if test "${enable_dependency_tracking+set}" = set; then :
4048 enableval=$enable_dependency_tracking;
4049fi
4050
4051if test "x$enable_dependency_tracking" != xno; then
4052 am_depcomp="$ac_aux_dir/depcomp"
4053 AMDEPBACKSLASH='\'
4054fi
4055 if test "x$enable_dependency_tracking" != xno; then
4056 AMDEP_TRUE=
4057 AMDEP_FALSE='#'
4058else
4059 AMDEP_TRUE='#'
4060 AMDEP_FALSE=
4061fi
4062
4063
4064
4065depcc="$CC" am_compiler_list=
4066
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4068$as_echo_n "checking dependency style of $depcc... " >&6; }
4069if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071else
4072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4073 # We make a subdir and do the tests there. Otherwise we can end up
4074 # making bogus files that we don't know about and never remove. For
4075 # instance it was reported that on HP-UX the gcc test will end up
4076 # making a dummy file named `D' -- because `-MD' means `put the output
4077 # in D'.
4078 mkdir conftest.dir
4079 # Copy depcomp to subdir because otherwise we won't find it if we're
4080 # using a relative directory.
4081 cp "$am_depcomp" conftest.dir
4082 cd conftest.dir
4083 # We will build objects and dependencies in a subdirectory because
4084 # it helps to detect inapplicable dependency modes. For instance
4085 # both Tru64's cc and ICC support -MD to output dependencies as a
4086 # side effect of compilation, but ICC will put the dependencies in
4087 # the current directory while Tru64 will put them in the object
4088 # directory.
4089 mkdir sub
4090
4091 am_cv_CC_dependencies_compiler_type=none
4092 if test "$am_compiler_list" = ""; then
4093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4094 fi
4095 am__universal=false
4096 case " $depcc " in #(
4097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4098 esac
4099
4100 for depmode in $am_compiler_list; do
4101 # Setup a source with many dependencies, because some compilers
4102 # like to wrap large dependency lists on column 80 (with \), and
4103 # we should not choose a depcomp mode which is confused by this.
4104 #
4105 # We need to recreate these files for each test, as the compiler may
4106 # overwrite some of them when testing with obscure command lines.
4107 # This happens at least with the AIX C compiler.
4108 : > sub/conftest.c
4109 for i in 1 2 3 4 5 6; do
4110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4112 # Solaris 8's {/usr,}/bin/sh.
4113 touch sub/conftst$i.h
4114 done
4115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4116
4117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4118 # mode. It turns out that the SunPro C++ compiler does not properly
4119 # handle `-M -o', and we need to detect this. Also, some Intel
4120 # versions had trouble with output in subdirs
4121 am__obj=sub/conftest.${OBJEXT-o}
4122 am__minus_obj="-o $am__obj"
4123 case $depmode in
4124 gcc)
4125 # This depmode causes a compiler race in universal mode.
4126 test "$am__universal" = false || continue
4127 ;;
4128 nosideeffect)
4129 # after this tag, mechanisms are not by side-effect, so they'll
4130 # only be used when explicitly requested
4131 if test "x$enable_dependency_tracking" = xyes; then
4132 continue
4133 else
4134 break
4135 fi
4136 ;;
4137 msvisualcpp | msvcmsys)
4138 # This compiler won't grok `-c -o', but also, the minuso test has
4139 # not run yet. These depmodes are late enough in the game, and
4140 # so weak that their functioning should not be impacted.
4141 am__obj=conftest.${OBJEXT-o}
4142 am__minus_obj=
4143 ;;
4144 none) break ;;
4145 esac
4146 if depmode=$depmode \
4147 source=sub/conftest.c object=$am__obj \
4148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4150 >/dev/null 2>conftest.err &&
4151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4155 # icc doesn't choke on unknown options, it will just issue warnings
4156 # or remarks (even with -Werror). So we grep stderr for any message
4157 # that says an option was ignored or not supported.
4158 # When given -MP, icc 7.0 and 7.1 complain thusly:
4159 # icc: Command line warning: ignoring option '-M'; no argument required
4160 # The diagnosis changed in icc 8.0:
4161 # icc: Command line remark: option '-MP' not supported
4162 if (grep 'ignoring option' conftest.err ||
4163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4164 am_cv_CC_dependencies_compiler_type=$depmode
4165 break
4166 fi
4167 fi
4168 done
4169
4170 cd ..
4171 rm -rf conftest.dir
4172else
4173 am_cv_CC_dependencies_compiler_type=none
4174fi
4175
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4178$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4179CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4180
4181 if
4182 test "x$enable_dependency_tracking" != xno \
4183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4184 am__fastdepCC_TRUE=
4185 am__fastdepCC_FALSE='#'
4186else
4187 am__fastdepCC_TRUE='#'
4188 am__fastdepCC_FALSE=
4189fi
4190
4191
4192case `pwd` in
4193 *\ * | *\ *)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4195$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4196esac
4197
4198
4199
4200macro_version='2.2.6b'
4201macro_revision='1.3017'
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215ltmain="$ac_aux_dir/ltmain.sh"
4216
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4218$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4219if test "${ac_cv_path_SED+set}" = set; then :
4220 $as_echo_n "(cached) " >&6
4221else
4222 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4223 for ac_i in 1 2 3 4 5 6 7; do
4224 ac_script="$ac_script$as_nl$ac_script"
4225 done
4226 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4227 { ac_script=; unset ac_script;}
4228 if test -z "$SED"; then
4229 ac_path_SED_found=false
4230 # Loop through the user's path and test for each of PROGNAME-LIST
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_prog in sed gsed; do
4237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4239 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4240# Check for GNU ac_path_SED and select it if it is found.
4241 # Check for GNU $ac_path_SED
4242case `"$ac_path_SED" --version 2>&1` in
4243*GNU*)
4244 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4245*)
4246 ac_count=0
4247 $as_echo_n 0123456789 >"conftest.in"
4248 while :
4249 do
4250 cat "conftest.in" "conftest.in" >"conftest.tmp"
4251 mv "conftest.tmp" "conftest.in"
4252 cp "conftest.in" "conftest.nl"
4253 $as_echo '' >> "conftest.nl"
4254 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256 as_fn_arith $ac_count + 1 && ac_count=$as_val
4257 if test $ac_count -gt ${ac_path_SED_max-0}; then
4258 # Best one so far, save it but keep looking for a better one
4259 ac_cv_path_SED="$ac_path_SED"
4260 ac_path_SED_max=$ac_count
4261 fi
4262 # 10*(2^10) chars as input seems more than enough
4263 test $ac_count -gt 10 && break
4264 done
4265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266esac
4267
4268 $ac_path_SED_found && break 3
4269 done
4270 done
4271 done
4272IFS=$as_save_IFS
4273 if test -z "$ac_cv_path_SED"; then
4274 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4275 fi
4276else
4277 ac_cv_path_SED=$SED
4278fi
4279
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4282$as_echo "$ac_cv_path_SED" >&6; }
4283 SED="$ac_cv_path_SED"
4284 rm -f conftest.sed
4285
4286test -z "$SED" && SED=sed
4287Xsed="$SED -e 1s/^X//"
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4300$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4301if test "${ac_cv_path_GREP+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4303else
4304 if test -z "$GREP"; then
4305 ac_path_GREP_found=false
4306 # Loop through the user's path and test for each of PROGNAME-LIST
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4309do
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_prog in grep ggrep; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4315 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4316# Check for GNU ac_path_GREP and select it if it is found.
4317 # Check for GNU $ac_path_GREP
4318case `"$ac_path_GREP" --version 2>&1` in
4319*GNU*)
4320 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4321*)
4322 ac_count=0
4323 $as_echo_n 0123456789 >"conftest.in"
4324 while :
4325 do
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo 'GREP' >> "conftest.nl"
4330 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332 as_fn_arith $ac_count + 1 && ac_count=$as_val
4333 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_GREP="$ac_path_GREP"
4336 ac_path_GREP_max=$ac_count
4337 fi
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4340 done
4341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342esac
4343
4344 $ac_path_GREP_found && break 3
4345 done
4346 done
4347 done
4348IFS=$as_save_IFS
4349 if test -z "$ac_cv_path_GREP"; then
4350 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4351 fi
4352else
4353 ac_cv_path_GREP=$GREP
4354fi
4355
4356fi
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4358$as_echo "$ac_cv_path_GREP" >&6; }
4359 GREP="$ac_cv_path_GREP"
4360
4361
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4363$as_echo_n "checking for egrep... " >&6; }
4364if test "${ac_cv_path_EGREP+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4366else
4367 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4368 then ac_cv_path_EGREP="$GREP -E"
4369 else
4370 if test -z "$EGREP"; then
4371 ac_path_EGREP_found=false
4372 # Loop through the user's path and test for each of PROGNAME-LIST
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_prog in egrep; do
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4381 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4382# Check for GNU ac_path_EGREP and select it if it is found.
4383 # Check for GNU $ac_path_EGREP
4384case `"$ac_path_EGREP" --version 2>&1` in
4385*GNU*)
4386 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4387*)
4388 ac_count=0
4389 $as_echo_n 0123456789 >"conftest.in"
4390 while :
4391 do
4392 cat "conftest.in" "conftest.in" >"conftest.tmp"
4393 mv "conftest.tmp" "conftest.in"
4394 cp "conftest.in" "conftest.nl"
4395 $as_echo 'EGREP' >> "conftest.nl"
4396 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4398 as_fn_arith $ac_count + 1 && ac_count=$as_val
4399 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4400 # Best one so far, save it but keep looking for a better one
4401 ac_cv_path_EGREP="$ac_path_EGREP"
4402 ac_path_EGREP_max=$ac_count
4403 fi
4404 # 10*(2^10) chars as input seems more than enough
4405 test $ac_count -gt 10 && break
4406 done
4407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4408esac
4409
4410 $ac_path_EGREP_found && break 3
4411 done
4412 done
4413 done
4414IFS=$as_save_IFS
4415 if test -z "$ac_cv_path_EGREP"; then
4416 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4417 fi
4418else
4419 ac_cv_path_EGREP=$EGREP
4420fi
4421
4422 fi
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4425$as_echo "$ac_cv_path_EGREP" >&6; }
4426 EGREP="$ac_cv_path_EGREP"
4427
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4430$as_echo_n "checking for fgrep... " >&6; }
4431if test "${ac_cv_path_FGREP+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433else
4434 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4435 then ac_cv_path_FGREP="$GREP -F"
4436 else
4437 if test -z "$FGREP"; then
4438 ac_path_FGREP_found=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4442do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_prog in fgrep; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4448 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4449# Check for GNU ac_path_FGREP and select it if it is found.
4450 # Check for GNU $ac_path_FGREP
4451case `"$ac_path_FGREP" --version 2>&1` in
4452*GNU*)
4453 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4454*)
4455 ac_count=0
4456 $as_echo_n 0123456789 >"conftest.in"
4457 while :
4458 do
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 $as_echo 'FGREP' >> "conftest.nl"
4463 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4465 as_fn_arith $ac_count + 1 && ac_count=$as_val
4466 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_FGREP="$ac_path_FGREP"
4469 ac_path_FGREP_max=$ac_count
4470 fi
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4473 done
4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4475esac
4476
4477 $ac_path_FGREP_found && break 3
4478 done
4479 done
4480 done
4481IFS=$as_save_IFS
4482 if test -z "$ac_cv_path_FGREP"; then
4483 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4484 fi
4485else
4486 ac_cv_path_FGREP=$FGREP
4487fi
4488
4489 fi
4490fi
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4492$as_echo "$ac_cv_path_FGREP" >&6; }
4493 FGREP="$ac_cv_path_FGREP"
4494
4495
4496test -z "$GREP" && GREP=grep
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516# Check whether --with-gnu-ld was given.
4517if test "${with_gnu_ld+set}" = set; then :
4518 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4519else
4520 with_gnu_ld=no
4521fi
4522
4523ac_prog=ld
4524if test "$GCC" = yes; then
4525 # Check if gcc -print-prog-name=ld gives a path.
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4527$as_echo_n "checking for ld used by $CC... " >&6; }
4528 case $host in
4529 *-*-mingw*)
4530 # gcc leaves a trailing carriage return which upsets mingw
4531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4532 *)
4533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4534 esac
4535 case $ac_prog in
4536 # Accept absolute paths.
4537 [\\/]* | ?:[\\/]*)
4538 re_direlt='/[^/][^/]*/\.\./'
4539 # Canonicalize the pathname of ld
4540 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4541 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4542 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4543 done
4544 test -z "$LD" && LD="$ac_prog"
4545 ;;
4546 "")
4547 # If it fails, then pretend we aren't using GCC.
4548 ac_prog=ld
4549 ;;
4550 *)
4551 # If it is relative, then search for the first ld in PATH.
4552 with_gnu_ld=unknown
4553 ;;
4554 esac
4555elif test "$with_gnu_ld" = yes; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4557$as_echo_n "checking for GNU ld... " >&6; }
4558else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4560$as_echo_n "checking for non-GNU ld... " >&6; }
4561fi
4562if test "${lt_cv_path_LD+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564else
4565 if test -z "$LD"; then
4566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4567 for ac_dir in $PATH; do
4568 IFS="$lt_save_ifs"
4569 test -z "$ac_dir" && ac_dir=.
4570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4571 lt_cv_path_LD="$ac_dir/$ac_prog"
4572 # Check to see if the program is GNU ld. I'd rather use --version,
4573 # but apparently some variants of GNU ld only accept -v.
4574 # Break only if it was the GNU/non-GNU ld that we prefer.
4575 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4576 *GNU* | *'with BFD'*)
4577 test "$with_gnu_ld" != no && break
4578 ;;
4579 *)
4580 test "$with_gnu_ld" != yes && break
4581 ;;
4582 esac
4583 fi
4584 done
4585 IFS="$lt_save_ifs"
4586else
4587 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4588fi
4589fi
4590
4591LD="$lt_cv_path_LD"
4592if test -n "$LD"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4594$as_echo "$LD" >&6; }
4595else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597$as_echo "no" >&6; }
4598fi
4599test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4601$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4602if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4604else
4605 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4606case `$LD -v 2>&1 </dev/null` in
4607*GNU* | *'with BFD'*)
4608 lt_cv_prog_gnu_ld=yes
4609 ;;
4610*)
4611 lt_cv_prog_gnu_ld=no
4612 ;;
4613esac
4614fi
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4616$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4617with_gnu_ld=$lt_cv_prog_gnu_ld
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4628$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4629if test "${lt_cv_path_NM+set}" = set; then :
4630 $as_echo_n "(cached) " >&6
4631else
4632 if test -n "$NM"; then
4633 # Let the user override the test.
4634 lt_cv_path_NM="$NM"
4635else
4636 lt_nm_to_check="${ac_tool_prefix}nm"
4637 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4638 lt_nm_to_check="$lt_nm_to_check nm"
4639 fi
4640 for lt_tmp_nm in $lt_nm_to_check; do
4641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4642 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4643 IFS="$lt_save_ifs"
4644 test -z "$ac_dir" && ac_dir=.
4645 tmp_nm="$ac_dir/$lt_tmp_nm"
4646 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4647 # Check to see if the nm accepts a BSD-compat flag.
4648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4649 # nm: unknown option "B" ignored
4650 # Tru64's nm complains that /dev/null is an invalid object file
4651 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4652 */dev/null* | *'Invalid file or object type'*)
4653 lt_cv_path_NM="$tmp_nm -B"
4654 break
4655 ;;
4656 *)
4657 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4658 */dev/null*)
4659 lt_cv_path_NM="$tmp_nm -p"
4660 break
4661 ;;
4662 *)
4663 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4664 continue # so that we can try to find one that supports BSD flags
4665 ;;
4666 esac
4667 ;;
4668 esac
4669 fi
4670 done
4671 IFS="$lt_save_ifs"
4672 done
4673 : ${lt_cv_path_NM=no}
4674fi
4675fi
4676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4677$as_echo "$lt_cv_path_NM" >&6; }
4678if test "$lt_cv_path_NM" != "no"; then
4679 NM="$lt_cv_path_NM"
4680else
4681 # Didn't find any BSD compatible name lister, look for dumpbin.
4682 if test -n "$ac_tool_prefix"; then
4683 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4684 do
4685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688$as_echo_n "checking for $ac_word... " >&6; }
4689if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4691else
4692 if test -n "$DUMPBIN"; then
4693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706done
4707 done
4708IFS=$as_save_IFS
4709
4710fi
4711fi
4712DUMPBIN=$ac_cv_prog_DUMPBIN
4713if test -n "$DUMPBIN"; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4715$as_echo "$DUMPBIN" >&6; }
4716else
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718$as_echo "no" >&6; }
4719fi
4720
4721
4722 test -n "$DUMPBIN" && break
4723 done
4724fi
4725if test -z "$DUMPBIN"; then
4726 ac_ct_DUMPBIN=$DUMPBIN
4727 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4728do
4729 # Extract the first word of "$ac_prog", so it can be a program name with args.
4730set dummy $ac_prog; ac_word=$2
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732$as_echo_n "checking for $ac_word... " >&6; }
4733if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4734 $as_echo_n "(cached) " >&6
4735else
4736 if test -n "$ac_ct_DUMPBIN"; then
4737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4738else
4739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740for as_dir in $PATH
4741do
4742 IFS=$as_save_IFS
4743 test -z "$as_dir" && as_dir=.
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750done
4751 done
4752IFS=$as_save_IFS
4753
4754fi
4755fi
4756ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4757if test -n "$ac_ct_DUMPBIN"; then
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4759$as_echo "$ac_ct_DUMPBIN" >&6; }
4760else
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762$as_echo "no" >&6; }
4763fi
4764
4765
4766 test -n "$ac_ct_DUMPBIN" && break
4767done
4768
4769 if test "x$ac_ct_DUMPBIN" = x; then
4770 DUMPBIN=":"
4771 else
4772 case $cross_compiling:$ac_tool_warned in
4773yes:)
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776ac_tool_warned=yes ;;
4777esac
4778 DUMPBIN=$ac_ct_DUMPBIN
4779 fi
4780fi
4781
4782
4783 if test "$DUMPBIN" != ":"; then
4784 NM="$DUMPBIN"
4785 fi
4786fi
4787test -z "$NM" && NM=nm
4788
4789
4790
4791
4792
4793
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4795$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4796if test "${lt_cv_nm_interface+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798else
4799 lt_cv_nm_interface="BSD nm"
4800 echo "int some_variable = 0;" > conftest.$ac_ext
c06d4368 4801 (eval echo "\"\$as_me:4801: $ac_compile\"" >&5)
0e3762ca
CALP
4802 (eval "$ac_compile" 2>conftest.err)
4803 cat conftest.err >&5
c06d4368 4804 (eval echo "\"\$as_me:4804: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
0e3762ca
CALP
4805 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4806 cat conftest.err >&5
c06d4368 4807 (eval echo "\"\$as_me:4807: output\"" >&5)
0e3762ca
CALP
4808 cat conftest.out >&5
4809 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4810 lt_cv_nm_interface="MS dumpbin"
4811 fi
4812 rm -f conftest*
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4815$as_echo "$lt_cv_nm_interface" >&6; }
4816
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4818$as_echo_n "checking whether ln -s works... " >&6; }
4819LN_S=$as_ln_s
4820if test "$LN_S" = "ln -s"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4822$as_echo "yes" >&6; }
4823else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4825$as_echo "no, using $LN_S" >&6; }
4826fi
4827
4828# find the maximum length of command line arguments
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4830$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4831if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4833else
4834 i=0
4835 teststring="ABCD"
4836
4837 case $build_os in
4838 msdosdjgpp*)
4839 # On DJGPP, this test can blow up pretty badly due to problems in libc
4840 # (any single argument exceeding 2000 bytes causes a buffer overrun
4841 # during glob expansion). Even if it were fixed, the result of this
4842 # check would be larger than it should be.
4843 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4844 ;;
4845
4846 gnu*)
4847 # Under GNU Hurd, this test is not required because there is
4848 # no limit to the length of command line arguments.
4849 # Libtool will interpret -1 as no limit whatsoever
4850 lt_cv_sys_max_cmd_len=-1;
4851 ;;
4852
4853 cygwin* | mingw* | cegcc*)
4854 # On Win9x/ME, this test blows up -- it succeeds, but takes
4855 # about 5 minutes as the teststring grows exponentially.
4856 # Worse, since 9x/ME are not pre-emptively multitasking,
4857 # you end up with a "frozen" computer, even though with patience
4858 # the test eventually succeeds (with a max line length of 256k).
4859 # Instead, let's just punt: use the minimum linelength reported by
4860 # all of the supported platforms: 8192 (on NT/2K/XP).
4861 lt_cv_sys_max_cmd_len=8192;
4862 ;;
4863
4864 amigaos*)
4865 # On AmigaOS with pdksh, this test takes hours, literally.
4866 # So we just punt and use a minimum line length of 8192.
4867 lt_cv_sys_max_cmd_len=8192;
4868 ;;
4869
4870 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4871 # This has been around since 386BSD, at least. Likely further.
4872 if test -x /sbin/sysctl; then
4873 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4874 elif test -x /usr/sbin/sysctl; then
4875 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4876 else
4877 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4878 fi
4879 # And add a safety zone
4880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4882 ;;
4883
4884 interix*)
4885 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4886 lt_cv_sys_max_cmd_len=196608
4887 ;;
4888
4889 osf*)
4890 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4891 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4892 # nice to cause kernel panics so lets avoid the loop below.
4893 # First set a reasonable default.
4894 lt_cv_sys_max_cmd_len=16384
4895 #
4896 if test -x /sbin/sysconfig; then
4897 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4898 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4899 esac
4900 fi
4901 ;;
4902 sco3.2v5*)
4903 lt_cv_sys_max_cmd_len=102400
4904 ;;
4905 sysv5* | sco5v6* | sysv4.2uw2*)
4906 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4907 if test -n "$kargmax"; then
4908 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4909 else
4910 lt_cv_sys_max_cmd_len=32768
4911 fi
4912 ;;
4913 *)
4914 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4915 if test -n "$lt_cv_sys_max_cmd_len"; then
4916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4918 else
4919 # Make teststring a little bigger before we do anything with it.
4920 # a 1K string should be a reasonable start.
4921 for i in 1 2 3 4 5 6 7 8 ; do
4922 teststring=$teststring$teststring
4923 done
4924 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4925 # If test is not a shell built-in, we'll probably end up computing a
4926 # maximum length that is only half of the actual maximum length, but
4927 # we can't tell.
4928 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4929 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4930 test $i != 17 # 1/2 MB should be enough
4931 do
4932 i=`expr $i + 1`
4933 teststring=$teststring$teststring
4934 done
4935 # Only check the string length outside the loop.
4936 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4937 teststring=
4938 # Add a significant safety factor because C++ compilers can tack on
4939 # massive amounts of additional arguments before passing them to the
4940 # linker. It appears as though 1/2 is a usable value.
4941 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4942 fi
4943 ;;
4944 esac
4945
4946fi
4947
4948if test -n $lt_cv_sys_max_cmd_len ; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4950$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4951else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4953$as_echo "none" >&6; }
4954fi
4955max_cmd_len=$lt_cv_sys_max_cmd_len
4956
4957
4958
4959
4960
4961
4962: ${CP="cp -f"}
4963: ${MV="mv -f"}
4964: ${RM="rm -f"}
4965
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4967$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4968# Try some XSI features
4969xsi_shell=no
4970( _lt_dummy="a/b/c"
4971 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4972 = c,a/b,, \
4973 && eval 'test $(( 1 + 1 )) -eq 2 \
4974 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4975 && xsi_shell=yes
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4977$as_echo "$xsi_shell" >&6; }
4978
4979
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4981$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4982lt_shell_append=no
4983( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4984 >/dev/null 2>&1 \
4985 && lt_shell_append=yes
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4987$as_echo "$lt_shell_append" >&6; }
4988
4989
4990if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4991 lt_unset=unset
4992else
4993 lt_unset=false
4994fi
4995
4996
4997
4998
4999
5000# test EBCDIC or ASCII
5001case `echo X|tr X '\101'` in
5002 A) # ASCII based system
5003 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5004 lt_SP2NL='tr \040 \012'
5005 lt_NL2SP='tr \015\012 \040\040'
5006 ;;
5007 *) # EBCDIC based system
5008 lt_SP2NL='tr \100 \n'
5009 lt_NL2SP='tr \r\n \100\100'
5010 ;;
5011esac
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5022$as_echo_n "checking for $LD option to reload object files... " >&6; }
5023if test "${lt_cv_ld_reload_flag+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025else
5026 lt_cv_ld_reload_flag='-r'
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5029$as_echo "$lt_cv_ld_reload_flag" >&6; }
5030reload_flag=$lt_cv_ld_reload_flag
5031case $reload_flag in
5032"" | " "*) ;;
5033*) reload_flag=" $reload_flag" ;;
5034esac
5035reload_cmds='$LD$reload_flag -o $output$reload_objs'
5036case $host_os in
5037 darwin*)
5038 if test "$GCC" = yes; then
5039 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5040 else
5041 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5042 fi
5043 ;;
5044esac
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054if test -n "$ac_tool_prefix"; then
5055 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5056set dummy ${ac_tool_prefix}objdump; ac_word=$2
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058$as_echo_n "checking for $ac_word... " >&6; }
5059if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061else
5062 if test -n "$OBJDUMP"; then
5063 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5064else
5065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH
5067do
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5075 fi
5076done
5077 done
5078IFS=$as_save_IFS
5079
5080fi
5081fi
5082OBJDUMP=$ac_cv_prog_OBJDUMP
5083if test -n "$OBJDUMP"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5085$as_echo "$OBJDUMP" >&6; }
5086else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088$as_echo "no" >&6; }
5089fi
5090
5091
5092fi
5093if test -z "$ac_cv_prog_OBJDUMP"; then
5094 ac_ct_OBJDUMP=$OBJDUMP
5095 # Extract the first word of "objdump", so it can be a program name with args.
5096set dummy objdump; ac_word=$2
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098$as_echo_n "checking for $ac_word... " >&6; }
5099if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101else
5102 if test -n "$ac_ct_OBJDUMP"; then
5103 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5104else
5105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106for as_dir in $PATH
5107do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116done
5117 done
5118IFS=$as_save_IFS
5119
5120fi
5121fi
5122ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5123if test -n "$ac_ct_OBJDUMP"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5125$as_echo "$ac_ct_OBJDUMP" >&6; }
5126else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128$as_echo "no" >&6; }
5129fi
5130
5131 if test "x$ac_ct_OBJDUMP" = x; then
5132 OBJDUMP="false"
5133 else
5134 case $cross_compiling:$ac_tool_warned in
5135yes:)
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5138ac_tool_warned=yes ;;
5139esac
5140 OBJDUMP=$ac_ct_OBJDUMP
5141 fi
5142else
5143 OBJDUMP="$ac_cv_prog_OBJDUMP"
5144fi
5145
5146test -z "$OBJDUMP" && OBJDUMP=objdump
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5157$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5158if test "${lt_cv_deplibs_check_method+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160else
5161 lt_cv_file_magic_cmd='$MAGIC_CMD'
5162lt_cv_file_magic_test_file=
5163lt_cv_deplibs_check_method='unknown'
5164# Need to set the preceding variable on all platforms that support
5165# interlibrary dependencies.
5166# 'none' -- dependencies not supported.
5167# `unknown' -- same as none, but documents that we really don't know.
5168# 'pass_all' -- all dependencies passed with no checks.
5169# 'test_compile' -- check by making test program.
5170# 'file_magic [[regex]]' -- check by looking for files in library path
5171# which responds to the $file_magic_cmd with a given extended regex.
5172# If you have `file' or equivalent on your system and you're not sure
5173# whether `pass_all' will *always* work, you probably want this one.
5174
5175case $host_os in
5176aix[4-9]*)
5177 lt_cv_deplibs_check_method=pass_all
5178 ;;
5179
5180beos*)
5181 lt_cv_deplibs_check_method=pass_all
5182 ;;
5183
5184bsdi[45]*)
5185 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5186 lt_cv_file_magic_cmd='/usr/bin/file -L'
5187 lt_cv_file_magic_test_file=/shlib/libc.so
5188 ;;
5189
5190cygwin*)
5191 # func_win32_libid is a shell function defined in ltmain.sh
5192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5193 lt_cv_file_magic_cmd='func_win32_libid'
5194 ;;
5195
5196mingw* | pw32*)
5197 # Base MSYS/MinGW do not provide the 'file' command needed by
5198 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5199 # unless we find 'file', for example because we are cross-compiling.
5200 if ( file / ) >/dev/null 2>&1; then
5201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5202 lt_cv_file_magic_cmd='func_win32_libid'
5203 else
5204 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5205 lt_cv_file_magic_cmd='$OBJDUMP -f'
5206 fi
5207 ;;
5208
5209cegcc)
5210 # use the weaker test based on 'objdump'. See mingw*.
5211 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5212 lt_cv_file_magic_cmd='$OBJDUMP -f'
5213 ;;
5214
5215darwin* | rhapsody*)
5216 lt_cv_deplibs_check_method=pass_all
5217 ;;
5218
5219freebsd* | dragonfly*)
5220 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5221 case $host_cpu in
5222 i*86 )
5223 # Not sure whether the presence of OpenBSD here was a mistake.
5224 # Let's accept both of them until this is cleared up.
5225 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5226 lt_cv_file_magic_cmd=/usr/bin/file
5227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5228 ;;
5229 esac
5230 else
5231 lt_cv_deplibs_check_method=pass_all
5232 fi
5233 ;;
5234
5235gnu*)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
5239hpux10.20* | hpux11*)
5240 lt_cv_file_magic_cmd=/usr/bin/file
5241 case $host_cpu in
5242 ia64*)
5243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5244 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5245 ;;
5246 hppa*64*)
5247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5248 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5249 ;;
5250 *)
5251 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5252 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5253 ;;
5254 esac
5255 ;;
5256
5257interix[3-9]*)
5258 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5260 ;;
5261
5262irix5* | irix6* | nonstopux*)
5263 case $LD in
5264 *-32|*"-32 ") libmagic=32-bit;;
5265 *-n32|*"-n32 ") libmagic=N32;;
5266 *-64|*"-64 ") libmagic=64-bit;;
5267 *) libmagic=never-match;;
5268 esac
5269 lt_cv_deplibs_check_method=pass_all
5270 ;;
5271
5272# This must be Linux ELF.
5273linux* | k*bsd*-gnu | kopensolaris*-gnu)
5274 lt_cv_deplibs_check_method=pass_all
5275 ;;
5276
5277netbsd* | netbsdelf*-gnu)
5278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5280 else
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5282 fi
5283 ;;
5284
5285newos6*)
5286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5287 lt_cv_file_magic_cmd=/usr/bin/file
5288 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5289 ;;
5290
5291*nto* | *qnx*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295openbsd*)
5296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5298 else
5299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5300 fi
5301 ;;
5302
5303osf3* | osf4* | osf5*)
5304 lt_cv_deplibs_check_method=pass_all
5305 ;;
5306
5307rdos*)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310
5311solaris*)
5312 lt_cv_deplibs_check_method=pass_all
5313 ;;
5314
5315sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318
5319sysv4 | sysv4.3*)
5320 case $host_vendor in
5321 motorola)
5322 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]'
5323 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5324 ;;
5325 ncr)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328 sequent)
5329 lt_cv_file_magic_cmd='/bin/file'
5330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5331 ;;
5332 sni)
5333 lt_cv_file_magic_cmd='/bin/file'
5334 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5335 lt_cv_file_magic_test_file=/lib/libc.so
5336 ;;
5337 siemens)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
5340 pc)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343 esac
5344 ;;
5345
5346tpf*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349esac
5350
5351fi
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5353$as_echo "$lt_cv_deplibs_check_method" >&6; }
5354file_magic_cmd=$lt_cv_file_magic_cmd
5355deplibs_check_method=$lt_cv_deplibs_check_method
5356test -z "$deplibs_check_method" && deplibs_check_method=unknown
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369if test -n "$ac_tool_prefix"; then
5370 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5371set dummy ${ac_tool_prefix}ar; ac_word=$2
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373$as_echo_n "checking for $ac_word... " >&6; }
5374if test "${ac_cv_prog_AR+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 if test -n "$AR"; then
5378 ac_cv_prog_AR="$AR" # Let the user override the test.
5379else
5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381for as_dir in $PATH
5382do
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_AR="${ac_tool_prefix}ar"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5390 fi
5391done
5392 done
5393IFS=$as_save_IFS
5394
5395fi
5396fi
5397AR=$ac_cv_prog_AR
5398if test -n "$AR"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5400$as_echo "$AR" >&6; }
5401else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403$as_echo "no" >&6; }
5404fi
5405
5406
5407fi
5408if test -z "$ac_cv_prog_AR"; then
5409 ac_ct_AR=$AR
5410 # Extract the first word of "ar", so it can be a program name with args.
5411set dummy ar; ac_word=$2
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413$as_echo_n "checking for $ac_word... " >&6; }
5414if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416else
5417 if test -n "$ac_ct_AR"; then
5418 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5419else
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_ac_ct_AR="ar"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431done
5432 done
5433IFS=$as_save_IFS
5434
5435fi
5436fi
5437ac_ct_AR=$ac_cv_prog_ac_ct_AR
5438if test -n "$ac_ct_AR"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5440$as_echo "$ac_ct_AR" >&6; }
5441else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443$as_echo "no" >&6; }
5444fi
5445
5446 if test "x$ac_ct_AR" = x; then
5447 AR="false"
5448 else
5449 case $cross_compiling:$ac_tool_warned in
5450yes:)
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5453ac_tool_warned=yes ;;
5454esac
5455 AR=$ac_ct_AR
5456 fi
5457else
5458 AR="$ac_cv_prog_AR"
5459fi
5460
5461test -z "$AR" && AR=ar
5462test -z "$AR_FLAGS" && AR_FLAGS=cru
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5476set dummy ${ac_tool_prefix}strip; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if test "${ac_cv_prog_STRIP+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481else
5482 if test -n "$STRIP"; then
5483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5495 fi
5496done
5497 done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502STRIP=$ac_cv_prog_STRIP
5503if test -n "$STRIP"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5505$as_echo "$STRIP" >&6; }
5506else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511
5512fi
5513if test -z "$ac_cv_prog_STRIP"; then
5514 ac_ct_STRIP=$STRIP
5515 # Extract the first word of "strip", so it can be a program name with args.
5516set dummy strip; ac_word=$2
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518$as_echo_n "checking for $ac_word... " >&6; }
5519if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521else
5522 if test -n "$ac_ct_STRIP"; then
5523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5524else
5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526for as_dir in $PATH
5527do
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_STRIP="strip"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5535 fi
5536done
5537 done
5538IFS=$as_save_IFS
5539
5540fi
5541fi
5542ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5543if test -n "$ac_ct_STRIP"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5545$as_echo "$ac_ct_STRIP" >&6; }
5546else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548$as_echo "no" >&6; }
5549fi
5550
5551 if test "x$ac_ct_STRIP" = x; then
5552 STRIP=":"
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555yes:)
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558ac_tool_warned=yes ;;
5559esac
5560 STRIP=$ac_ct_STRIP
5561 fi
5562else
5563 STRIP="$ac_cv_prog_STRIP"
5564fi
5565
5566test -z "$STRIP" && STRIP=:
5567
5568
5569
5570
5571
5572
5573if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5575set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577$as_echo_n "checking for $ac_word... " >&6; }
5578if test "${ac_cv_prog_RANLIB+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580else
5581 if test -n "$RANLIB"; then
5582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5583else
5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585for as_dir in $PATH
5586do
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5594 fi
5595done
5596 done
5597IFS=$as_save_IFS
5598
5599fi
5600fi
5601RANLIB=$ac_cv_prog_RANLIB
5602if test -n "$RANLIB"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5604$as_echo "$RANLIB" >&6; }
5605else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607$as_echo "no" >&6; }
5608fi
5609
5610
5611fi
5612if test -z "$ac_cv_prog_RANLIB"; then
5613 ac_ct_RANLIB=$RANLIB
5614 # Extract the first word of "ranlib", so it can be a program name with args.
5615set dummy ranlib; ac_word=$2
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617$as_echo_n "checking for $ac_word... " >&6; }
5618if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620else
5621 if test -n "$ac_ct_RANLIB"; then
5622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5623else
5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH
5626do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_RANLIB="ranlib"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635done
5636 done
5637IFS=$as_save_IFS
5638
5639fi
5640fi
5641ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5642if test -n "$ac_ct_RANLIB"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5644$as_echo "$ac_ct_RANLIB" >&6; }
5645else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647$as_echo "no" >&6; }
5648fi
5649
5650 if test "x$ac_ct_RANLIB" = x; then
5651 RANLIB=":"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654yes:)
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657ac_tool_warned=yes ;;
5658esac
5659 RANLIB=$ac_ct_RANLIB
5660 fi
5661else
5662 RANLIB="$ac_cv_prog_RANLIB"
5663fi
5664
5665test -z "$RANLIB" && RANLIB=:
5666
5667
5668
5669
5670
5671
5672# Determine commands to create old-style static archives.
5673old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5674old_postinstall_cmds='chmod 644 $oldlib'
5675old_postuninstall_cmds=
5676
5677if test -n "$RANLIB"; then
5678 case $host_os in
5679 openbsd*)
5680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5681 ;;
5682 *)
5683 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5684 ;;
5685 esac
5686 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5687fi
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722# If no C compiler was specified, use CC.
5723LTCC=${LTCC-"$CC"}
5724
5725# If no C compiler flags were specified, use CFLAGS.
5726LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5727
5728# Allow CC to be a program name with arguments.
5729compiler=$CC
5730
5731
5732# Check for command to grab the raw symbol name followed by C symbol from nm.
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5734$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5735if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737else
5738
5739# These are sane defaults that work on at least a few old systems.
5740# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5741
5742# Character class describing NM global symbol codes.
5743symcode='[BCDEGRST]'
5744
5745# Regexp to match symbols that can be accessed directly from C.
5746sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5747
5748# Define system-specific variables.
5749case $host_os in
5750aix*)
5751 symcode='[BCDT]'
5752 ;;
5753cygwin* | mingw* | pw32* | cegcc*)
5754 symcode='[ABCDGISTW]'
5755 ;;
5756hpux*)
5757 if test "$host_cpu" = ia64; then
5758 symcode='[ABCDEGRST]'
5759 fi
5760 ;;
5761irix* | nonstopux*)
5762 symcode='[BCDEGRST]'
5763 ;;
5764osf*)
5765 symcode='[BCDEGQRST]'
5766 ;;
5767solaris*)
5768 symcode='[BDRT]'
5769 ;;
5770sco3.2v5*)
5771 symcode='[DT]'
5772 ;;
5773sysv4.2uw2*)
5774 symcode='[DT]'
5775 ;;
5776sysv5* | sco5v6* | unixware* | OpenUNIX*)
5777 symcode='[ABDT]'
5778 ;;
5779sysv4)
5780 symcode='[DFNSTU]'
5781 ;;
5782esac
5783
5784# If we're using GNU nm, then use its standard symbol codes.
5785case `$NM -V 2>&1` in
5786*GNU* | *'with BFD'*)
5787 symcode='[ABCDGIRSTW]' ;;
5788esac
5789
5790# Transform an extracted symbol line into a proper C declaration.
5791# Some systems (esp. on ia64) link data and code symbols differently,
5792# so use this general approach.
5793lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5794
5795# Transform an extracted symbol line into symbol name and symbol address
5796lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5797lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5798
5799# Handle CRLF in mingw tool chain
5800opt_cr=
5801case $build_os in
5802mingw*)
5803 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5804 ;;
5805esac
5806
5807# Try without a prefix underscore, then with it.
5808for ac_symprfx in "" "_"; do
5809
5810 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5811 symxfrm="\\1 $ac_symprfx\\2 \\2"
5812
5813 # Write the raw and C identifiers.
5814 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5815 # Fake it for dumpbin and say T for any non-static function
5816 # and D for any global variable.
5817 # Also find C++ and __fastcall symbols from MSVC++,
5818 # which start with @ or ?.
5819 lt_cv_sys_global_symbol_pipe="$AWK '"\
5820" {last_section=section; section=\$ 3};"\
5821" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5822" \$ 0!~/External *\|/{next};"\
5823" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5824" {if(hide[section]) next};"\
5825" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5826" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5827" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5828" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5829" ' prfx=^$ac_symprfx"
5830 else
5831 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5832 fi
5833
5834 # Check to see that the pipe works correctly.
5835 pipe_works=no
5836
5837 rm -f conftest*
5838 cat > conftest.$ac_ext <<_LT_EOF
5839#ifdef __cplusplus
5840extern "C" {
5841#endif
5842char nm_test_var;
5843void nm_test_func(void);
5844void nm_test_func(void){}
5845#ifdef __cplusplus
5846}
5847#endif
5848int main(){nm_test_var='a';nm_test_func();return(0);}
5849_LT_EOF
5850
5851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5852 (eval $ac_compile) 2>&5
5853 ac_status=$?
5854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5855 test $ac_status = 0; }; then
5856 # Now try to grab the symbols.
5857 nlist=conftest.nm
5858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5859 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5860 ac_status=$?
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; } && test -s "$nlist"; then
5863 # Try sorting and uniquifying the output.
5864 if sort "$nlist" | uniq > "$nlist"T; then
5865 mv -f "$nlist"T "$nlist"
5866 else
5867 rm -f "$nlist"T
5868 fi
5869
5870 # Make sure that we snagged all the symbols we need.
5871 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5872 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5873 cat <<_LT_EOF > conftest.$ac_ext
5874#ifdef __cplusplus
5875extern "C" {
5876#endif
5877
5878_LT_EOF
5879 # Now generate the symbol file.
5880 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5881
5882 cat <<_LT_EOF >> conftest.$ac_ext
5883
5884/* The mapping between symbol names and symbols. */
5885const struct {
5886 const char *name;
5887 void *address;
5888}
5889lt__PROGRAM__LTX_preloaded_symbols[] =
5890{
5891 { "@PROGRAM@", (void *) 0 },
5892_LT_EOF
5893 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5894 cat <<\_LT_EOF >> conftest.$ac_ext
5895 {0, (void *) 0}
5896};
5897
5898/* This works around a problem in FreeBSD linker */
5899#ifdef FREEBSD_WORKAROUND
5900static const void *lt_preloaded_setup() {
5901 return lt__PROGRAM__LTX_preloaded_symbols;
5902}
5903#endif
5904
5905#ifdef __cplusplus
5906}
5907#endif
5908_LT_EOF
5909 # Now try linking the two files.
5910 mv conftest.$ac_objext conftstm.$ac_objext
5911 lt_save_LIBS="$LIBS"
5912 lt_save_CFLAGS="$CFLAGS"
5913 LIBS="conftstm.$ac_objext"
5914 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5916 (eval $ac_link) 2>&5
5917 ac_status=$?
5918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5919 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5920 pipe_works=yes
5921 fi
5922 LIBS="$lt_save_LIBS"
5923 CFLAGS="$lt_save_CFLAGS"
5924 else
5925 echo "cannot find nm_test_func in $nlist" >&5
5926 fi
5927 else
5928 echo "cannot find nm_test_var in $nlist" >&5
5929 fi
5930 else
5931 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5932 fi
5933 else
5934 echo "$progname: failed program was:" >&5
5935 cat conftest.$ac_ext >&5
5936 fi
5937 rm -rf conftest* conftst*
5938
5939 # Do not use the global_symbol_pipe unless it works.
5940 if test "$pipe_works" = yes; then
5941 break
5942 else
5943 lt_cv_sys_global_symbol_pipe=
5944 fi
5945done
5946
5947fi
5948
5949if test -z "$lt_cv_sys_global_symbol_pipe"; then
5950 lt_cv_sys_global_symbol_to_cdecl=
5951fi
5952if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5954$as_echo "failed" >&6; }
5955else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5957$as_echo "ok" >&6; }
5958fi
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982# Check whether --enable-libtool-lock was given.
5983if test "${enable_libtool_lock+set}" = set; then :
5984 enableval=$enable_libtool_lock;
5985fi
5986
5987test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5988
5989# Some flags need to be propagated to the compiler or linker for good
5990# libtool support.
5991case $host in
5992ia64-*-hpux*)
5993 # Find out which ABI we are using.
5994 echo 'int i;' > conftest.$ac_ext
5995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996 (eval $ac_compile) 2>&5
5997 ac_status=$?
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }; then
6000 case `/usr/bin/file conftest.$ac_objext` in
6001 *ELF-32*)
6002 HPUX_IA64_MODE="32"
6003 ;;
6004 *ELF-64*)
6005 HPUX_IA64_MODE="64"
6006 ;;
6007 esac
6008 fi
6009 rm -rf conftest*
6010 ;;
6011*-*-irix6*)
6012 # Find out which ABI we are using.
c06d4368 6013 echo '#line 6013 "configure"' > conftest.$ac_ext
0e3762ca
CALP
6014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6015 (eval $ac_compile) 2>&5
6016 ac_status=$?
6017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6018 test $ac_status = 0; }; then
6019 if test "$lt_cv_prog_gnu_ld" = yes; then
6020 case `/usr/bin/file conftest.$ac_objext` in
6021 *32-bit*)
6022 LD="${LD-ld} -melf32bsmip"
6023 ;;
6024 *N32*)
6025 LD="${LD-ld} -melf32bmipn32"
6026 ;;
6027 *64-bit*)
6028 LD="${LD-ld} -melf64bmip"
6029 ;;
6030 esac
6031 else
6032 case `/usr/bin/file conftest.$ac_objext` in
6033 *32-bit*)
6034 LD="${LD-ld} -32"
6035 ;;
6036 *N32*)
6037 LD="${LD-ld} -n32"
6038 ;;
6039 *64-bit*)
6040 LD="${LD-ld} -64"
6041 ;;
6042 esac
6043 fi
6044 fi
6045 rm -rf conftest*
6046 ;;
6047
6048x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6049s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6050 # Find out which ABI we are using.
6051 echo 'int i;' > conftest.$ac_ext
6052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }; then
6057 case `/usr/bin/file conftest.o` in
6058 *32-bit*)
6059 case $host in
6060 x86_64-*kfreebsd*-gnu)
6061 LD="${LD-ld} -m elf_i386_fbsd"
6062 ;;
6063 x86_64-*linux*)
6064 LD="${LD-ld} -m elf_i386"
6065 ;;
6066 ppc64-*linux*|powerpc64-*linux*)
6067 LD="${LD-ld} -m elf32ppclinux"
6068 ;;
6069 s390x-*linux*)
6070 LD="${LD-ld} -m elf_s390"
6071 ;;
6072 sparc64-*linux*)
6073 LD="${LD-ld} -m elf32_sparc"
6074 ;;
6075 esac
6076 ;;
6077 *64-bit*)
6078 case $host in
6079 x86_64-*kfreebsd*-gnu)
6080 LD="${LD-ld} -m elf_x86_64_fbsd"
6081 ;;
6082 x86_64-*linux*)
6083 LD="${LD-ld} -m elf_x86_64"
6084 ;;
6085 ppc*-*linux*|powerpc*-*linux*)
6086 LD="${LD-ld} -m elf64ppc"
6087 ;;
6088 s390*-*linux*|s390*-*tpf*)
6089 LD="${LD-ld} -m elf64_s390"
6090 ;;
6091 sparc*-*linux*)
6092 LD="${LD-ld} -m elf64_sparc"
6093 ;;
6094 esac
6095 ;;
6096 esac
6097 fi
6098 rm -rf conftest*
6099 ;;
6100
6101*-*-sco3.2v5*)
6102 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6103 SAVE_CFLAGS="$CFLAGS"
6104 CFLAGS="$CFLAGS -belf"
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6106$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6107if test "${lt_cv_cc_needs_belf+set}" = set; then :
6108 $as_echo_n "(cached) " >&6
6109else
6110 ac_ext=c
6111ac_cpp='$CPP $CPPFLAGS'
6112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114ac_compiler_gnu=$ac_cv_c_compiler_gnu
6115
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h. */
6118
6119int
6120main ()
6121{
6122
6123 ;
6124 return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_link "$LINENO"; then :
6128 lt_cv_cc_needs_belf=yes
6129else
6130 lt_cv_cc_needs_belf=no
6131fi
6132rm -f core conftest.err conftest.$ac_objext \
6133 conftest$ac_exeext conftest.$ac_ext
6134 ac_ext=c
6135ac_cpp='$CPP $CPPFLAGS'
6136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140fi
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6142$as_echo "$lt_cv_cc_needs_belf" >&6; }
6143 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6144 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6145 CFLAGS="$SAVE_CFLAGS"
6146 fi
6147 ;;
6148sparc*-*solaris*)
6149 # Find out which ABI we are using.
6150 echo 'int i;' > conftest.$ac_ext
6151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6152 (eval $ac_compile) 2>&5
6153 ac_status=$?
6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155 test $ac_status = 0; }; then
6156 case `/usr/bin/file conftest.o` in
6157 *64-bit*)
6158 case $lt_cv_prog_gnu_ld in
6159 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6160 *)
6161 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6162 LD="${LD-ld} -64"
6163 fi
6164 ;;
6165 esac
6166 ;;
6167 esac
6168 fi
6169 rm -rf conftest*
6170 ;;
6171esac
6172
6173need_locks="$enable_libtool_lock"
6174
6175
6176 case $host_os in
6177 rhapsody* | darwin*)
6178 if test -n "$ac_tool_prefix"; then
6179 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6180set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6185else
6186 if test -n "$DSYMUTIL"; then
6187 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200done
6201 done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206DSYMUTIL=$ac_cv_prog_DSYMUTIL
6207if test -n "$DSYMUTIL"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6209$as_echo "$DSYMUTIL" >&6; }
6210else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216fi
6217if test -z "$ac_cv_prog_DSYMUTIL"; then
6218 ac_ct_DSYMUTIL=$DSYMUTIL
6219 # Extract the first word of "dsymutil", so it can be a program name with args.
6220set dummy dsymutil; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
6223if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6225else
6226 if test -n "$ac_ct_DSYMUTIL"; then
6227 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6239 fi
6240done
6241 done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6247if test -n "$ac_ct_DSYMUTIL"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6249$as_echo "$ac_ct_DSYMUTIL" >&6; }
6250else
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255 if test "x$ac_ct_DSYMUTIL" = x; then
6256 DSYMUTIL=":"
6257 else
6258 case $cross_compiling:$ac_tool_warned in
6259yes:)
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262ac_tool_warned=yes ;;
6263esac
6264 DSYMUTIL=$ac_ct_DSYMUTIL
6265 fi
6266else
6267 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6268fi
6269
6270 if test -n "$ac_tool_prefix"; then
6271 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6272set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274$as_echo_n "checking for $ac_word... " >&6; }
6275if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277else
6278 if test -n "$NMEDIT"; then
6279 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290 break 2
6291 fi
6292done
6293 done
6294IFS=$as_save_IFS
6295
6296fi
6297fi
6298NMEDIT=$ac_cv_prog_NMEDIT
6299if test -n "$NMEDIT"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6301$as_echo "$NMEDIT" >&6; }
6302else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304$as_echo "no" >&6; }
6305fi
6306
6307
6308fi
6309if test -z "$ac_cv_prog_NMEDIT"; then
6310 ac_ct_NMEDIT=$NMEDIT
6311 # Extract the first word of "nmedit", so it can be a program name with args.
6312set dummy nmedit; ac_word=$2
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314$as_echo_n "checking for $ac_word... " >&6; }
6315if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6316 $as_echo_n "(cached) " >&6
6317else
6318 if test -n "$ac_ct_NMEDIT"; then
6319 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6320else
6321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322for as_dir in $PATH
6323do
6324 IFS=$as_save_IFS
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332done
6333 done
6334IFS=$as_save_IFS
6335
6336fi
6337fi
6338ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6339if test -n "$ac_ct_NMEDIT"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6341$as_echo "$ac_ct_NMEDIT" >&6; }
6342else
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347 if test "x$ac_ct_NMEDIT" = x; then
6348 NMEDIT=":"
6349 else
6350 case $cross_compiling:$ac_tool_warned in
6351yes:)
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354ac_tool_warned=yes ;;
6355esac
6356 NMEDIT=$ac_ct_NMEDIT
6357 fi
6358else
6359 NMEDIT="$ac_cv_prog_NMEDIT"
6360fi
6361
6362 if test -n "$ac_tool_prefix"; then
6363 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6364set dummy ${ac_tool_prefix}lipo; ac_word=$2
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
6367if test "${ac_cv_prog_LIPO+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
6369else
6370 if test -n "$LIPO"; then
6371 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6372else
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 break 2
6383 fi
6384done
6385 done
6386IFS=$as_save_IFS
6387
6388fi
6389fi
6390LIPO=$ac_cv_prog_LIPO
6391if test -n "$LIPO"; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6393$as_echo "$LIPO" >&6; }
6394else
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396$as_echo "no" >&6; }
6397fi
6398
6399
6400fi
6401if test -z "$ac_cv_prog_LIPO"; then
6402 ac_ct_LIPO=$LIPO
6403 # Extract the first word of "lipo", so it can be a program name with args.
6404set dummy lipo; ac_word=$2
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406$as_echo_n "checking for $ac_word... " >&6; }
6407if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6408 $as_echo_n "(cached) " >&6
6409else
6410 if test -n "$ac_ct_LIPO"; then
6411 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6412else
6413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414for as_dir in $PATH
6415do
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_ac_ct_LIPO="lipo"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6423 fi
6424done
6425 done
6426IFS=$as_save_IFS
6427
6428fi
6429fi
6430ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6431if test -n "$ac_ct_LIPO"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6433$as_echo "$ac_ct_LIPO" >&6; }
6434else
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436$as_echo "no" >&6; }
6437fi
6438
6439 if test "x$ac_ct_LIPO" = x; then
6440 LIPO=":"
6441 else
6442 case $cross_compiling:$ac_tool_warned in
6443yes:)
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6446ac_tool_warned=yes ;;
6447esac
6448 LIPO=$ac_ct_LIPO
6449 fi
6450else
6451 LIPO="$ac_cv_prog_LIPO"
6452fi
6453
6454 if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6456set dummy ${ac_tool_prefix}otool; ac_word=$2
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458$as_echo_n "checking for $ac_word... " >&6; }
6459if test "${ac_cv_prog_OTOOL+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6461else
6462 if test -n "$OTOOL"; then
6463 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476done
6477 done
6478IFS=$as_save_IFS
6479
6480fi
6481fi
6482OTOOL=$ac_cv_prog_OTOOL
6483if test -n "$OTOOL"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6485$as_echo "$OTOOL" >&6; }
6486else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488$as_echo "no" >&6; }
6489fi
6490
6491
6492fi
6493if test -z "$ac_cv_prog_OTOOL"; then
6494 ac_ct_OTOOL=$OTOOL
6495 # Extract the first word of "otool", so it can be a program name with args.
6496set dummy otool; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
6499if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6501else
6502 if test -n "$ac_ct_OTOOL"; then
6503 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_ac_ct_OTOOL="otool"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517 done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6523if test -n "$ac_ct_OTOOL"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6525$as_echo "$ac_ct_OTOOL" >&6; }
6526else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531 if test "x$ac_ct_OTOOL" = x; then
6532 OTOOL=":"
6533 else
6534 case $cross_compiling:$ac_tool_warned in
6535yes:)
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538ac_tool_warned=yes ;;
6539esac
6540 OTOOL=$ac_ct_OTOOL
6541 fi
6542else
6543 OTOOL="$ac_cv_prog_OTOOL"
6544fi
6545
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6548set dummy ${ac_tool_prefix}otool64; ac_word=$2
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550$as_echo_n "checking for $ac_word... " >&6; }
6551if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6553else
6554 if test -n "$OTOOL64"; then
6555 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6556else
6557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568done
6569 done
6570IFS=$as_save_IFS
6571
6572fi
6573fi
6574OTOOL64=$ac_cv_prog_OTOOL64
6575if test -n "$OTOOL64"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6577$as_echo "$OTOOL64" >&6; }
6578else
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580$as_echo "no" >&6; }
6581fi
6582
6583
6584fi
6585if test -z "$ac_cv_prog_OTOOL64"; then
6586 ac_ct_OTOOL64=$OTOOL64
6587 # Extract the first word of "otool64", so it can be a program name with args.
6588set dummy otool64; ac_word=$2
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590$as_echo_n "checking for $ac_word... " >&6; }
6591if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6592 $as_echo_n "(cached) " >&6
6593else
6594 if test -n "$ac_ct_OTOOL64"; then
6595 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6596else
6597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598for as_dir in $PATH
6599do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_prog_ac_ct_OTOOL64="otool64"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608done
6609 done
6610IFS=$as_save_IFS
6611
6612fi
6613fi
6614ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6615if test -n "$ac_ct_OTOOL64"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6617$as_echo "$ac_ct_OTOOL64" >&6; }
6618else
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620$as_echo "no" >&6; }
6621fi
6622
6623 if test "x$ac_ct_OTOOL64" = x; then
6624 OTOOL64=":"
6625 else
6626 case $cross_compiling:$ac_tool_warned in
6627yes:)
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630ac_tool_warned=yes ;;
6631esac
6632 OTOOL64=$ac_ct_OTOOL64
6633 fi
6634else
6635 OTOOL64="$ac_cv_prog_OTOOL64"
6636fi
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6665$as_echo_n "checking for -single_module linker flag... " >&6; }
6666if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668else
6669 lt_cv_apple_cc_single_mod=no
6670 if test -z "${LT_MULTI_MODULE}"; then
6671 # By default we will add the -single_module flag. You can override
6672 # by either setting the environment variable LT_MULTI_MODULE
6673 # non-empty at configure time, or by adding -multi_module to the
6674 # link flags.
6675 rm -rf libconftest.dylib*
6676 echo "int foo(void){return 1;}" > conftest.c
6677 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6678-dynamiclib -Wl,-single_module conftest.c" >&5
6679 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6680 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6681 _lt_result=$?
6682 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6683 lt_cv_apple_cc_single_mod=yes
6684 else
6685 cat conftest.err >&5
6686 fi
6687 rm -rf libconftest.dylib*
6688 rm -f conftest.*
6689 fi
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6692$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6694$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6695if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697else
6698 lt_cv_ld_exported_symbols_list=no
6699 save_LDFLAGS=$LDFLAGS
6700 echo "_main" > conftest.sym
6701 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h. */
6704
6705int
6706main ()
6707{
6708
6709 ;
6710 return 0;
6711}
6712_ACEOF
6713if ac_fn_c_try_link "$LINENO"; then :
6714 lt_cv_ld_exported_symbols_list=yes
6715else
6716 lt_cv_ld_exported_symbols_list=no
6717fi
6718rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6720 LDFLAGS="$save_LDFLAGS"
6721
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6724$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6725 case $host_os in
6726 rhapsody* | darwin1.[012])
6727 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6728 darwin1.*)
6729 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6730 darwin*) # darwin 5.x on
6731 # if running on 10.5 or later, the deployment target defaults
6732 # to the OS version, if on x86, and 10.4, the deployment
6733 # target defaults to 10.4. Don't you love it?
6734 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6735 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6736 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6737 10.[012]*)
6738 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6739 10.*)
6740 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6741 esac
6742 ;;
6743 esac
6744 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6745 _lt_dar_single_mod='$single_module'
6746 fi
6747 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6748 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6749 else
6750 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6751 fi
6752 if test "$DSYMUTIL" != ":"; then
6753 _lt_dsymutil='~$DSYMUTIL $lib || :'
6754 else
6755 _lt_dsymutil=
6756 fi
6757 ;;
6758 esac
6759
6760ac_ext=c
6761ac_cpp='$CPP $CPPFLAGS'
6762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6766$as_echo_n "checking how to run the C preprocessor... " >&6; }
6767# On Suns, sometimes $CPP names a directory.
6768if test -n "$CPP" && test -d "$CPP"; then
6769 CPP=
6770fi
6771if test -z "$CPP"; then
6772 if test "${ac_cv_prog_CPP+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774else
6775 # Double quotes because CPP needs to be expanded
6776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6777 do
6778 ac_preproc_ok=false
6779for ac_c_preproc_warn_flag in '' yes
6780do
6781 # Use a header file that comes with gcc, so configuring glibc
6782 # with a fresh cross-compiler works.
6783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6784 # <limits.h> exists even on freestanding compilers.
6785 # On the NeXT, cc -E runs the code through the compiler's parser,
6786 # not just through cpp. "Syntax error" is here to catch this case.
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788/* end confdefs.h. */
6789#ifdef __STDC__
6790# include <limits.h>
6791#else
6792# include <assert.h>
6793#endif
6794 Syntax error
6795_ACEOF
6796if ac_fn_c_try_cpp "$LINENO"; then :
6797
6798else
6799 # Broken: fails on valid input.
6800continue
6801fi
6802rm -f conftest.err conftest.i conftest.$ac_ext
6803
6804 # OK, works on sane cases. Now check whether nonexistent headers
6805 # can be detected and how.
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h. */
6808#include <ac_nonexistent.h>
6809_ACEOF
6810if ac_fn_c_try_cpp "$LINENO"; then :
6811 # Broken: success on invalid input.
6812continue
6813else
6814 # Passes both tests.
6815ac_preproc_ok=:
6816break
6817fi
6818rm -f conftest.err conftest.i conftest.$ac_ext
6819
6820done
6821# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6822rm -f conftest.i conftest.err conftest.$ac_ext
6823if $ac_preproc_ok; then :
6824 break
6825fi
6826
6827 done
6828 ac_cv_prog_CPP=$CPP
6829
6830fi
6831 CPP=$ac_cv_prog_CPP
6832else
6833 ac_cv_prog_CPP=$CPP
6834fi
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6836$as_echo "$CPP" >&6; }
6837ac_preproc_ok=false
6838for ac_c_preproc_warn_flag in '' yes
6839do
6840 # Use a header file that comes with gcc, so configuring glibc
6841 # with a fresh cross-compiler works.
6842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6843 # <limits.h> exists even on freestanding compilers.
6844 # On the NeXT, cc -E runs the code through the compiler's parser,
6845 # not just through cpp. "Syntax error" is here to catch this case.
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h. */
6848#ifdef __STDC__
6849# include <limits.h>
6850#else
6851# include <assert.h>
6852#endif
6853 Syntax error
6854_ACEOF
6855if ac_fn_c_try_cpp "$LINENO"; then :
6856
6857else
6858 # Broken: fails on valid input.
6859continue
6860fi
6861rm -f conftest.err conftest.i conftest.$ac_ext
6862
6863 # OK, works on sane cases. Now check whether nonexistent headers
6864 # can be detected and how.
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866/* end confdefs.h. */
6867#include <ac_nonexistent.h>
6868_ACEOF
6869if ac_fn_c_try_cpp "$LINENO"; then :
6870 # Broken: success on invalid input.
6871continue
6872else
6873 # Passes both tests.
6874ac_preproc_ok=:
6875break
6876fi
6877rm -f conftest.err conftest.i conftest.$ac_ext
6878
6879done
6880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6881rm -f conftest.i conftest.err conftest.$ac_ext
6882if $ac_preproc_ok; then :
6883
6884else
6885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6887as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6888See \`config.log' for more details" "$LINENO" 5 ; }
6889fi
6890
6891ac_ext=c
6892ac_cpp='$CPP $CPPFLAGS'
6893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896
6897
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6899$as_echo_n "checking for ANSI C header files... " >&6; }
6900if test "${ac_cv_header_stdc+set}" = set; then :
6901 $as_echo_n "(cached) " >&6
6902else
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h. */
6905#include <stdlib.h>
6906#include <stdarg.h>
6907#include <string.h>
6908#include <float.h>
6909
6910int
6911main ()
6912{
6913
6914 ;
6915 return 0;
6916}
6917_ACEOF
6918if ac_fn_c_try_compile "$LINENO"; then :
6919 ac_cv_header_stdc=yes
6920else
6921 ac_cv_header_stdc=no
6922fi
6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924
6925if test $ac_cv_header_stdc = yes; then
6926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h. */
6929#include <string.h>
6930
6931_ACEOF
6932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6933 $EGREP "memchr" >/dev/null 2>&1; then :
6934
6935else
6936 ac_cv_header_stdc=no
6937fi
6938rm -f conftest*
6939
6940fi
6941
6942if test $ac_cv_header_stdc = yes; then
6943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h. */
6946#include <stdlib.h>
6947
6948_ACEOF
6949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950 $EGREP "free" >/dev/null 2>&1; then :
6951
6952else
6953 ac_cv_header_stdc=no
6954fi
6955rm -f conftest*
6956
6957fi
6958
6959if test $ac_cv_header_stdc = yes; then
6960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6961 if test "$cross_compiling" = yes; then :
6962 :
6963else
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h. */
6966#include <ctype.h>
6967#include <stdlib.h>
6968#if ((' ' & 0x0FF) == 0x020)
6969# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6970# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6971#else
6972# define ISLOWER(c) \
6973 (('a' <= (c) && (c) <= 'i') \
6974 || ('j' <= (c) && (c) <= 'r') \
6975 || ('s' <= (c) && (c) <= 'z'))
6976# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6977#endif
6978
6979#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6980int
6981main ()
6982{
6983 int i;
6984 for (i = 0; i < 256; i++)
6985 if (XOR (islower (i), ISLOWER (i))
6986 || toupper (i) != TOUPPER (i))
6987 return 2;
6988 return 0;
6989}
6990_ACEOF
6991if ac_fn_c_try_run "$LINENO"; then :
6992
6993else
6994 ac_cv_header_stdc=no
6995fi
6996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6997 conftest.$ac_objext conftest.beam conftest.$ac_ext
6998fi
6999
7000fi
7001fi
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7003$as_echo "$ac_cv_header_stdc" >&6; }
7004if test $ac_cv_header_stdc = yes; then
7005
7006$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7007
7008fi
7009
7010# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7011for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7012 inttypes.h stdint.h unistd.h
7013do :
7014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7015ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7016"
7017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7018 cat >>confdefs.h <<_ACEOF
7019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7020_ACEOF
7021
7022fi
7023
7024done
7025
7026
7027for ac_header in dlfcn.h
7028do :
7029 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7030"
7031if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7032 cat >>confdefs.h <<_ACEOF
7033#define HAVE_DLFCN_H 1
7034_ACEOF
7035
7036fi
7037
7038done
7039
7040
7041
7042# Set options
7043
7044
7045
7046 enable_dlopen=no
7047
7048
7049 enable_win32_dll=no
7050
7051
7052 # Check whether --enable-shared was given.
7053if test "${enable_shared+set}" = set; then :
7054 enableval=$enable_shared; p=${PACKAGE-default}
7055 case $enableval in
7056 yes) enable_shared=yes ;;
7057 no) enable_shared=no ;;
7058 *)
7059 enable_shared=no
7060 # Look at the argument we got. We use all the common list separators.
7061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7062 for pkg in $enableval; do
7063 IFS="$lt_save_ifs"
7064 if test "X$pkg" = "X$p"; then
7065 enable_shared=yes
7066 fi
7067 done
7068 IFS="$lt_save_ifs"
7069 ;;
7070 esac
7071else
7072 enable_shared=yes
7073fi
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 # Check whether --enable-static was given.
7084if test "${enable_static+set}" = set; then :
7085 enableval=$enable_static; p=${PACKAGE-default}
7086 case $enableval in
7087 yes) enable_static=yes ;;
7088 no) enable_static=no ;;
7089 *)
7090 enable_static=no
7091 # Look at the argument we got. We use all the common list separators.
7092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7093 for pkg in $enableval; do
7094 IFS="$lt_save_ifs"
7095 if test "X$pkg" = "X$p"; then
7096 enable_static=yes
7097 fi
7098 done
7099 IFS="$lt_save_ifs"
7100 ;;
7101 esac
7102else
7103 enable_static=yes
7104fi
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115# Check whether --with-pic was given.
7116if test "${with_pic+set}" = set; then :
7117 withval=$with_pic; pic_mode="$withval"
7118else
7119 pic_mode=default
7120fi
7121
7122
7123test -z "$pic_mode" && pic_mode=default
7124
7125
7126
7127
7128
7129
7130
7131 # Check whether --enable-fast-install was given.
7132if test "${enable_fast_install+set}" = set; then :
7133 enableval=$enable_fast_install; p=${PACKAGE-default}
7134 case $enableval in
7135 yes) enable_fast_install=yes ;;
7136 no) enable_fast_install=no ;;
7137 *)
7138 enable_fast_install=no
7139 # Look at the argument we got. We use all the common list separators.
7140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7141 for pkg in $enableval; do
7142 IFS="$lt_save_ifs"
7143 if test "X$pkg" = "X$p"; then
7144 enable_fast_install=yes
7145 fi
7146 done
7147 IFS="$lt_save_ifs"
7148 ;;
7149 esac
7150else
7151 enable_fast_install=yes
7152fi
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164# This can be used to rebuild libtool when needed
7165LIBTOOL_DEPS="$ltmain"
7166
7167# Always use our own libtool.
7168LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194test -z "$LN_S" && LN_S="ln -s"
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209if test -n "${ZSH_VERSION+set}" ; then
7210 setopt NO_GLOB_SUBST
7211fi
7212
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7214$as_echo_n "checking for objdir... " >&6; }
7215if test "${lt_cv_objdir+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7217else
7218 rm -f .libs 2>/dev/null
7219mkdir .libs 2>/dev/null
7220if test -d .libs; then
7221 lt_cv_objdir=.libs
7222else
7223 # MS-DOS does not allow filenames that begin with a dot.
7224 lt_cv_objdir=_libs
7225fi
7226rmdir .libs 2>/dev/null
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7229$as_echo "$lt_cv_objdir" >&6; }
7230objdir=$lt_cv_objdir
7231
7232
7233
7234
7235
7236cat >>confdefs.h <<_ACEOF
7237#define LT_OBJDIR "$lt_cv_objdir/"
7238_ACEOF
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256case $host_os in
7257aix3*)
7258 # AIX sometimes has problems with the GCC collect2 program. For some
7259 # reason, if we set the COLLECT_NAMES environment variable, the problems
7260 # vanish in a puff of smoke.
7261 if test "X${COLLECT_NAMES+set}" != Xset; then
7262 COLLECT_NAMES=
7263 export COLLECT_NAMES
7264 fi
7265 ;;
7266esac
7267
7268# Sed substitution that helps us do robust quoting. It backslashifies
7269# metacharacters that are still active within double-quoted strings.
7270sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7271
7272# Same as above, but do not quote variable references.
7273double_quote_subst='s/\(["`\\]\)/\\\1/g'
7274
7275# Sed substitution to delay expansion of an escaped shell variable in a
7276# double_quote_subst'ed string.
7277delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7278
7279# Sed substitution to delay expansion of an escaped single quote.
7280delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7281
7282# Sed substitution to avoid accidental globbing in evaled expressions
7283no_glob_subst='s/\*/\\\*/g'
7284
7285# Global variables:
7286ofile=libtool
7287can_build_shared=yes
7288
7289# All known linkers require a `.a' archive for static linking (except MSVC,
7290# which needs '.lib').
7291libext=a
7292
7293with_gnu_ld="$lt_cv_prog_gnu_ld"
7294
7295old_CC="$CC"
7296old_CFLAGS="$CFLAGS"
7297
7298# Set sane defaults for various variables
7299test -z "$CC" && CC=cc
7300test -z "$LTCC" && LTCC=$CC
7301test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7302test -z "$LD" && LD=ld
7303test -z "$ac_objext" && ac_objext=o
7304
7305for cc_temp in $compiler""; do
7306 case $cc_temp in
7307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7309 \-*) ;;
7310 *) break;;
7311 esac
7312done
7313cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7314
7315
7316# Only perform the check for file, if the check method requires it
7317test -z "$MAGIC_CMD" && MAGIC_CMD=file
7318case $deplibs_check_method in
7319file_magic*)
7320 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7322$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7323if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7324 $as_echo_n "(cached) " >&6
7325else
7326 case $MAGIC_CMD in
7327[\\/*] | ?:[\\/]*)
7328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7329 ;;
7330*)
7331 lt_save_MAGIC_CMD="$MAGIC_CMD"
7332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7333 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7334 for ac_dir in $ac_dummy; do
7335 IFS="$lt_save_ifs"
7336 test -z "$ac_dir" && ac_dir=.
7337 if test -f $ac_dir/${ac_tool_prefix}file; then
7338 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7339 if test -n "$file_magic_test_file"; then
7340 case $deplibs_check_method in
7341 "file_magic "*)
7342 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7344 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7345 $EGREP "$file_magic_regex" > /dev/null; then
7346 :
7347 else
7348 cat <<_LT_EOF 1>&2
7349
7350*** Warning: the command libtool uses to detect shared libraries,
7351*** $file_magic_cmd, produces output that libtool cannot recognize.
7352*** The result is that libtool may fail to recognize shared libraries
7353*** as such. This will affect the creation of libtool libraries that
7354*** depend on shared libraries, but programs linked with such libtool
7355*** libraries will work regardless of this problem. Nevertheless, you
7356*** may want to report the problem to your system manager and/or to
7357*** bug-libtool@gnu.org
7358
7359_LT_EOF
7360 fi ;;
7361 esac
7362 fi
7363 break
7364 fi
7365 done
7366 IFS="$lt_save_ifs"
7367 MAGIC_CMD="$lt_save_MAGIC_CMD"
7368 ;;
7369esac
7370fi
7371
7372MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7373if test -n "$MAGIC_CMD"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7375$as_echo "$MAGIC_CMD" >&6; }
7376else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379fi
7380
7381
7382
7383
7384
7385if test -z "$lt_cv_path_MAGIC_CMD"; then
7386 if test -n "$ac_tool_prefix"; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7388$as_echo_n "checking for file... " >&6; }
7389if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7391else
7392 case $MAGIC_CMD in
7393[\\/*] | ?:[\\/]*)
7394 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7395 ;;
7396*)
7397 lt_save_MAGIC_CMD="$MAGIC_CMD"
7398 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7399 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7400 for ac_dir in $ac_dummy; do
7401 IFS="$lt_save_ifs"
7402 test -z "$ac_dir" && ac_dir=.
7403 if test -f $ac_dir/file; then
7404 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7405 if test -n "$file_magic_test_file"; then
7406 case $deplibs_check_method in
7407 "file_magic "*)
7408 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7410 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7411 $EGREP "$file_magic_regex" > /dev/null; then
7412 :
7413 else
7414 cat <<_LT_EOF 1>&2
7415
7416*** Warning: the command libtool uses to detect shared libraries,
7417*** $file_magic_cmd, produces output that libtool cannot recognize.
7418*** The result is that libtool may fail to recognize shared libraries
7419*** as such. This will affect the creation of libtool libraries that
7420*** depend on shared libraries, but programs linked with such libtool
7421*** libraries will work regardless of this problem. Nevertheless, you
7422*** may want to report the problem to your system manager and/or to
7423*** bug-libtool@gnu.org
7424
7425_LT_EOF
7426 fi ;;
7427 esac
7428 fi
7429 break
7430 fi
7431 done
7432 IFS="$lt_save_ifs"
7433 MAGIC_CMD="$lt_save_MAGIC_CMD"
7434 ;;
7435esac
7436fi
7437
7438MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7439if test -n "$MAGIC_CMD"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7441$as_echo "$MAGIC_CMD" >&6; }
7442else
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444$as_echo "no" >&6; }
7445fi
7446
7447
7448 else
7449 MAGIC_CMD=:
7450 fi
7451fi
7452
7453 fi
7454 ;;
7455esac
7456
7457# Use C for the default configuration in the libtool script
7458
7459lt_save_CC="$CC"
7460ac_ext=c
7461ac_cpp='$CPP $CPPFLAGS'
7462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464ac_compiler_gnu=$ac_cv_c_compiler_gnu
7465
7466
7467# Source file extension for C test sources.
7468ac_ext=c
7469
7470# Object file extension for compiled C test sources.
7471objext=o
7472objext=$objext
7473
7474# Code to be used in simple compile tests
7475lt_simple_compile_test_code="int some_variable = 0;"
7476
7477# Code to be used in simple link tests
7478lt_simple_link_test_code='int main(){return(0);}'
7479
7480
7481
7482
7483
7484
7485
7486# If no C compiler was specified, use CC.
7487LTCC=${LTCC-"$CC"}
7488
7489# If no C compiler flags were specified, use CFLAGS.
7490LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7491
7492# Allow CC to be a program name with arguments.
7493compiler=$CC
7494
7495# Save the default compiler, since it gets overwritten when the other
7496# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7497compiler_DEFAULT=$CC
7498
7499# save warnings/boilerplate of simple test code
7500ac_outfile=conftest.$ac_objext
7501echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7502eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7503_lt_compiler_boilerplate=`cat conftest.err`
7504$RM conftest*
7505
7506ac_outfile=conftest.$ac_objext
7507echo "$lt_simple_link_test_code" >conftest.$ac_ext
7508eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7509_lt_linker_boilerplate=`cat conftest.err`
7510$RM -r conftest*
7511
7512
c06d4368
AX
7513## CAVEAT EMPTOR:
7514## There is no encapsulation within the following macros, do not change
7515## the running order or otherwise move them around unless you know exactly
7516## what you are doing...
0e3762ca
CALP
7517if test -n "$compiler"; then
7518
7519lt_prog_compiler_no_builtin_flag=
7520
7521if test "$GCC" = yes; then
7522 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7523
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7525$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7526if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7528else
7529 lt_cv_prog_compiler_rtti_exceptions=no
7530 ac_outfile=conftest.$ac_objext
7531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7532 lt_compiler_flag="-fno-rtti -fno-exceptions"
7533 # Insert the option either (1) after the last *FLAGS variable, or
7534 # (2) before a word containing "conftest.", or (3) at the end.
7535 # Note that $ac_compile itself does not contain backslashes and begins
7536 # with a dollar sign (not a hyphen), so the echo should work correctly.
7537 # The option is referenced via a variable to avoid confusing sed.
7538 lt_compile=`echo "$ac_compile" | $SED \
7539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7541 -e 's:$: $lt_compiler_flag:'`
c06d4368 7542 (eval echo "\"\$as_me:7542: $lt_compile\"" >&5)
0e3762ca
CALP
7543 (eval "$lt_compile" 2>conftest.err)
7544 ac_status=$?
7545 cat conftest.err >&5
c06d4368 7546 echo "$as_me:7546: \$? = $ac_status" >&5
0e3762ca
CALP
7547 if (exit $ac_status) && test -s "$ac_outfile"; then
7548 # The compiler can only warn and ignore the option if not recognized
7549 # So say no if there are warnings other than the usual output.
7550 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7553 lt_cv_prog_compiler_rtti_exceptions=yes
7554 fi
7555 fi
7556 $RM conftest*
7557
7558fi
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7560$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7561
7562if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7563 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7564else
7565 :
7566fi
7567
7568fi
7569
7570
7571
7572
7573
7574
7575 lt_prog_compiler_wl=
7576lt_prog_compiler_pic=
7577lt_prog_compiler_static=
7578
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7580$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7581
7582 if test "$GCC" = yes; then
7583 lt_prog_compiler_wl='-Wl,'
7584 lt_prog_compiler_static='-static'
7585
7586 case $host_os in
7587 aix*)
7588 # All AIX code is PIC.
7589 if test "$host_cpu" = ia64; then
7590 # AIX 5 now supports IA64 processor
7591 lt_prog_compiler_static='-Bstatic'
7592 fi
7593 ;;
7594
7595 amigaos*)
7596 case $host_cpu in
7597 powerpc)
7598 # see comment about AmigaOS4 .so support
7599 lt_prog_compiler_pic='-fPIC'
7600 ;;
7601 m68k)
7602 # FIXME: we need at least 68020 code to build shared libraries, but
7603 # adding the `-m68020' flag to GCC prevents building anything better,
7604 # like `-m68040'.
7605 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7606 ;;
7607 esac
7608 ;;
7609
7610 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7611 # PIC is the default for these OSes.
7612 ;;
7613
7614 mingw* | cygwin* | pw32* | os2* | cegcc*)
7615 # This hack is so that the source file can tell whether it is being
7616 # built for inclusion in a dll (and should export symbols for example).
7617 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7618 # (--disable-auto-import) libraries
7619 lt_prog_compiler_pic='-DDLL_EXPORT'
7620 ;;
7621
7622 darwin* | rhapsody*)
7623 # PIC is the default on this platform
7624 # Common symbols not allowed in MH_DYLIB files
7625 lt_prog_compiler_pic='-fno-common'
7626 ;;
7627
7628 hpux*)
7629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7631 # sets the default TLS model and affects inlining.
7632 case $host_cpu in
7633 hppa*64*)
7634 # +Z the default
7635 ;;
7636 *)
7637 lt_prog_compiler_pic='-fPIC'
7638 ;;
7639 esac
7640 ;;
7641
7642 interix[3-9]*)
7643 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7644 # Instead, we relocate shared libraries at runtime.
7645 ;;
7646
7647 msdosdjgpp*)
7648 # Just because we use GCC doesn't mean we suddenly get shared libraries
7649 # on systems that don't support them.
7650 lt_prog_compiler_can_build_shared=no
7651 enable_shared=no
7652 ;;
7653
7654 *nto* | *qnx*)
7655 # QNX uses GNU C++, but need to define -shared option too, otherwise
7656 # it will coredump.
7657 lt_prog_compiler_pic='-fPIC -shared'
7658 ;;
7659
7660 sysv4*MP*)
7661 if test -d /usr/nec; then
7662 lt_prog_compiler_pic=-Kconform_pic
7663 fi
7664 ;;
7665
7666 *)
7667 lt_prog_compiler_pic='-fPIC'
7668 ;;
7669 esac
7670 else
7671 # PORTME Check for flag to pass linker flags through the system compiler.
7672 case $host_os in
7673 aix*)
7674 lt_prog_compiler_wl='-Wl,'
7675 if test "$host_cpu" = ia64; then
7676 # AIX 5 now supports IA64 processor
7677 lt_prog_compiler_static='-Bstatic'
7678 else
7679 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7680 fi
7681 ;;
7682
7683 mingw* | cygwin* | pw32* | os2* | cegcc*)
7684 # This hack is so that the source file can tell whether it is being
7685 # built for inclusion in a dll (and should export symbols for example).
7686 lt_prog_compiler_pic='-DDLL_EXPORT'
7687 ;;
7688
7689 hpux9* | hpux10* | hpux11*)
7690 lt_prog_compiler_wl='-Wl,'
7691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7692 # not for PA HP-UX.
7693 case $host_cpu in
7694 hppa*64*|ia64*)
7695 # +Z the default
7696 ;;
7697 *)
7698 lt_prog_compiler_pic='+Z'
7699 ;;
7700 esac
7701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7702 lt_prog_compiler_static='${wl}-a ${wl}archive'
7703 ;;
7704
7705 irix5* | irix6* | nonstopux*)
7706 lt_prog_compiler_wl='-Wl,'
7707 # PIC (with -KPIC) is the default.
7708 lt_prog_compiler_static='-non_shared'
7709 ;;
7710
7711 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7712 case $cc_basename in
7713 # old Intel for x86_64 which still supported -KPIC.
7714 ecc*)
7715 lt_prog_compiler_wl='-Wl,'
7716 lt_prog_compiler_pic='-KPIC'
7717 lt_prog_compiler_static='-static'
7718 ;;
7719 # icc used to be incompatible with GCC.
7720 # ICC 10 doesn't accept -KPIC any more.
7721 icc* | ifort*)
7722 lt_prog_compiler_wl='-Wl,'
7723 lt_prog_compiler_pic='-fPIC'
7724 lt_prog_compiler_static='-static'
7725 ;;
7726 # Lahey Fortran 8.1.
7727 lf95*)
7728 lt_prog_compiler_wl='-Wl,'
7729 lt_prog_compiler_pic='--shared'
7730 lt_prog_compiler_static='--static'
7731 ;;
7732 pgcc* | pgf77* | pgf90* | pgf95*)
7733 # Portland Group compilers (*not* the Pentium gcc compiler,
7734 # which looks to be a dead project)
7735 lt_prog_compiler_wl='-Wl,'
7736 lt_prog_compiler_pic='-fpic'
7737 lt_prog_compiler_static='-Bstatic'
7738 ;;
7739 ccc*)
7740 lt_prog_compiler_wl='-Wl,'
7741 # All Alpha code is PIC.
7742 lt_prog_compiler_static='-non_shared'
7743 ;;
7744 xl*)
7745 # IBM XL C 8.0/Fortran 10.1 on PPC
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_pic='-qpic'
7748 lt_prog_compiler_static='-qstaticlink'
7749 ;;
7750 *)
7751 case `$CC -V 2>&1 | sed 5q` in
7752 *Sun\ C*)
7753 # Sun C 5.9
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 lt_prog_compiler_wl='-Wl,'
7757 ;;
7758 *Sun\ F*)
7759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7760 lt_prog_compiler_pic='-KPIC'
7761 lt_prog_compiler_static='-Bstatic'
7762 lt_prog_compiler_wl=''
7763 ;;
7764 esac
7765 ;;
7766 esac
7767 ;;
7768
7769 newsos6)
7770 lt_prog_compiler_pic='-KPIC'
7771 lt_prog_compiler_static='-Bstatic'
7772 ;;
7773
7774 *nto* | *qnx*)
7775 # QNX uses GNU C++, but need to define -shared option too, otherwise
7776 # it will coredump.
7777 lt_prog_compiler_pic='-fPIC -shared'
7778 ;;
7779
7780 osf3* | osf4* | osf5*)
7781 lt_prog_compiler_wl='-Wl,'
7782 # All OSF/1 code is PIC.
7783 lt_prog_compiler_static='-non_shared'
7784 ;;
7785
7786 rdos*)
7787 lt_prog_compiler_static='-non_shared'
7788 ;;
7789
7790 solaris*)
7791 lt_prog_compiler_pic='-KPIC'
7792 lt_prog_compiler_static='-Bstatic'
7793 case $cc_basename in
7794 f77* | f90* | f95*)
7795 lt_prog_compiler_wl='-Qoption ld ';;
7796 *)
7797 lt_prog_compiler_wl='-Wl,';;
7798 esac
7799 ;;
7800
7801 sunos4*)
7802 lt_prog_compiler_wl='-Qoption ld '
7803 lt_prog_compiler_pic='-PIC'
7804 lt_prog_compiler_static='-Bstatic'
7805 ;;
7806
7807 sysv4 | sysv4.2uw2* | sysv4.3*)
7808 lt_prog_compiler_wl='-Wl,'
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 ;;
7812
7813 sysv4*MP*)
7814 if test -d /usr/nec ;then
7815 lt_prog_compiler_pic='-Kconform_pic'
7816 lt_prog_compiler_static='-Bstatic'
7817 fi
7818 ;;
7819
7820 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7821 lt_prog_compiler_wl='-Wl,'
7822 lt_prog_compiler_pic='-KPIC'
7823 lt_prog_compiler_static='-Bstatic'
7824 ;;
7825
7826 unicos*)
7827 lt_prog_compiler_wl='-Wl,'
7828 lt_prog_compiler_can_build_shared=no
7829 ;;
7830
7831 uts4*)
7832 lt_prog_compiler_pic='-pic'
7833 lt_prog_compiler_static='-Bstatic'
7834 ;;
7835
7836 *)
7837 lt_prog_compiler_can_build_shared=no
7838 ;;
7839 esac
7840 fi
7841
7842case $host_os in
7843 # For platforms which do not support PIC, -DPIC is meaningless:
7844 *djgpp*)
7845 lt_prog_compiler_pic=
7846 ;;
7847 *)
7848 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7849 ;;
7850esac
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7852$as_echo "$lt_prog_compiler_pic" >&6; }
7853
7854
7855
7856
7857
7858
7859#
7860# Check to make sure the PIC flag actually works.
7861#
7862if test -n "$lt_prog_compiler_pic"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7864$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7865if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7867else
7868 lt_cv_prog_compiler_pic_works=no
7869 ac_outfile=conftest.$ac_objext
7870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7871 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7872 # Insert the option either (1) after the last *FLAGS variable, or
7873 # (2) before a word containing "conftest.", or (3) at the end.
7874 # Note that $ac_compile itself does not contain backslashes and begins
7875 # with a dollar sign (not a hyphen), so the echo should work correctly.
7876 # The option is referenced via a variable to avoid confusing sed.
7877 lt_compile=`echo "$ac_compile" | $SED \
7878 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7880 -e 's:$: $lt_compiler_flag:'`
c06d4368 7881 (eval echo "\"\$as_me:7881: $lt_compile\"" >&5)
0e3762ca
CALP
7882 (eval "$lt_compile" 2>conftest.err)
7883 ac_status=$?
7884 cat conftest.err >&5
c06d4368 7885 echo "$as_me:7885: \$? = $ac_status" >&5
0e3762ca
CALP
7886 if (exit $ac_status) && test -s "$ac_outfile"; then
7887 # The compiler can only warn and ignore the option if not recognized
7888 # So say no if there are warnings other than the usual output.
7889 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7891 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7892 lt_cv_prog_compiler_pic_works=yes
7893 fi
7894 fi
7895 $RM conftest*
7896
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7899$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7900
7901if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7902 case $lt_prog_compiler_pic in
7903 "" | " "*) ;;
7904 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7905 esac
7906else
7907 lt_prog_compiler_pic=
7908 lt_prog_compiler_can_build_shared=no
7909fi
7910
7911fi
7912
7913
7914
7915
7916
7917
7918#
7919# Check to make sure the static flag actually works.
7920#
7921wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7923$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7924if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7925 $as_echo_n "(cached) " >&6
7926else
7927 lt_cv_prog_compiler_static_works=no
7928 save_LDFLAGS="$LDFLAGS"
7929 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7930 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7931 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7932 # The linker can only warn and ignore the option if not recognized
7933 # So say no if there are warnings
7934 if test -s conftest.err; then
7935 # Append any errors to the config.log.
7936 cat conftest.err 1>&5
7937 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7939 if diff conftest.exp conftest.er2 >/dev/null; then
7940 lt_cv_prog_compiler_static_works=yes
7941 fi
7942 else
7943 lt_cv_prog_compiler_static_works=yes
7944 fi
7945 fi
7946 $RM -r conftest*
7947 LDFLAGS="$save_LDFLAGS"
7948
7949fi
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7951$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7952
7953if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7954 :
7955else
7956 lt_prog_compiler_static=
7957fi
7958
7959
7960
7961
7962
7963
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7966$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7967if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969else
7970 lt_cv_prog_compiler_c_o=no
7971 $RM -r conftest 2>/dev/null
7972 mkdir conftest
7973 cd conftest
7974 mkdir out
7975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7976
7977 lt_compiler_flag="-o out/conftest2.$ac_objext"
7978 # Insert the option either (1) after the last *FLAGS variable, or
7979 # (2) before a word containing "conftest.", or (3) at the end.
7980 # Note that $ac_compile itself does not contain backslashes and begins
7981 # with a dollar sign (not a hyphen), so the echo should work correctly.
7982 lt_compile=`echo "$ac_compile" | $SED \
7983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7985 -e 's:$: $lt_compiler_flag:'`
c06d4368 7986 (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
0e3762ca
CALP
7987 (eval "$lt_compile" 2>out/conftest.err)
7988 ac_status=$?
7989 cat out/conftest.err >&5
c06d4368 7990 echo "$as_me:7990: \$? = $ac_status" >&5
0e3762ca
CALP
7991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7992 then
7993 # The compiler can only warn and ignore the option if not recognized
7994 # So say no if there are warnings
7995 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7998 lt_cv_prog_compiler_c_o=yes
7999 fi
8000 fi
8001 chmod u+w . 2>&5
8002 $RM conftest*
8003 # SGI C++ compiler will create directory out/ii_files/ for
8004 # template instantiation
8005 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8006 $RM out/* && rmdir out
8007 cd ..
8008 $RM -r conftest
8009 $RM conftest*
8010
8011fi
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8013$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8014
8015
8016
8017
8018
8019
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8021$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8022if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8024else
8025 lt_cv_prog_compiler_c_o=no
8026 $RM -r conftest 2>/dev/null
8027 mkdir conftest
8028 cd conftest
8029 mkdir out
8030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8031
8032 lt_compiler_flag="-o out/conftest2.$ac_objext"
8033 # Insert the option either (1) after the last *FLAGS variable, or
8034 # (2) before a word containing "conftest.", or (3) at the end.
8035 # Note that $ac_compile itself does not contain backslashes and begins
8036 # with a dollar sign (not a hyphen), so the echo should work correctly.
8037 lt_compile=`echo "$ac_compile" | $SED \
8038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8040 -e 's:$: $lt_compiler_flag:'`
c06d4368 8041 (eval echo "\"\$as_me:8041: $lt_compile\"" >&5)
0e3762ca
CALP
8042 (eval "$lt_compile" 2>out/conftest.err)
8043 ac_status=$?
8044 cat out/conftest.err >&5
c06d4368 8045 echo "$as_me:8045: \$? = $ac_status" >&5
0e3762ca
CALP
8046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8047 then
8048 # The compiler can only warn and ignore the option if not recognized
8049 # So say no if there are warnings
8050 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8053 lt_cv_prog_compiler_c_o=yes
8054 fi
8055 fi
8056 chmod u+w . 2>&5
8057 $RM conftest*
8058 # SGI C++ compiler will create directory out/ii_files/ for
8059 # template instantiation
8060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8061 $RM out/* && rmdir out
8062 cd ..
8063 $RM -r conftest
8064 $RM conftest*
8065
8066fi
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8068$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8069
8070
8071
8072
8073hard_links="nottested"
8074if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8075 # do not overwrite the value of need_locks provided by the user
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8077$as_echo_n "checking if we can lock with hard links... " >&6; }
8078 hard_links=yes
8079 $RM conftest*
8080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8081 touch conftest.a
8082 ln conftest.a conftest.b 2>&5 || hard_links=no
8083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8085$as_echo "$hard_links" >&6; }
8086 if test "$hard_links" = no; then
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8088$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8089 need_locks=warn
8090 fi
8091else
8092 need_locks=no
8093fi
8094
8095
8096
8097
8098
8099
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8101$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8102
8103 runpath_var=
8104 allow_undefined_flag=
8105 always_export_symbols=no
8106 archive_cmds=
8107 archive_expsym_cmds=
8108 compiler_needs_object=no
8109 enable_shared_with_static_runtimes=no
8110 export_dynamic_flag_spec=
8111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8112 hardcode_automatic=no
8113 hardcode_direct=no
8114 hardcode_direct_absolute=no
8115 hardcode_libdir_flag_spec=
8116 hardcode_libdir_flag_spec_ld=
8117 hardcode_libdir_separator=
8118 hardcode_minus_L=no
8119 hardcode_shlibpath_var=unsupported
8120 inherit_rpath=no
8121 link_all_deplibs=unknown
8122 module_cmds=
8123 module_expsym_cmds=
8124 old_archive_from_new_cmds=
8125 old_archive_from_expsyms_cmds=
8126 thread_safe_flag_spec=
8127 whole_archive_flag_spec=
8128 # include_expsyms should be a list of space-separated symbols to be *always*
8129 # included in the symbol list
8130 include_expsyms=
8131 # exclude_expsyms can be an extended regexp of symbols to exclude
8132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8134 # as well as any symbol that contains `d'.
8135 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8137 # platforms (ab)use it in PIC code, but their linkers get confused if
8138 # the symbol is explicitly referenced. Since portable code cannot
8139 # rely on this symbol name, it's probably fine to never include it in
8140 # preloaded symbol tables.
8141 # Exclude shared library initialization/finalization symbols.
8142 extract_expsyms_cmds=
8143
8144 case $host_os in
8145 cygwin* | mingw* | pw32* | cegcc*)
8146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8147 # When not using gcc, we currently assume that we are using
8148 # Microsoft Visual C++.
8149 if test "$GCC" != yes; then
8150 with_gnu_ld=no
8151 fi
8152 ;;
8153 interix*)
8154 # we just hope/assume this is gcc and not c89 (= MSVC++)
8155 with_gnu_ld=yes
8156 ;;
8157 openbsd*)
8158 with_gnu_ld=no
8159 ;;
8160 linux* | k*bsd*-gnu)
8161 link_all_deplibs=no
8162 ;;
8163 esac
8164
8165 ld_shlibs=yes
8166 if test "$with_gnu_ld" = yes; then
8167 # If archive_cmds runs LD, not CC, wlarc should be empty
8168 wlarc='${wl}'
8169
8170 # Set some defaults for GNU ld with shared library support. These
8171 # are reset later if shared libraries are not supported. Putting them
8172 # here allows them to be overridden if necessary.
8173 runpath_var=LD_RUN_PATH
8174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8175 export_dynamic_flag_spec='${wl}--export-dynamic'
8176 # ancient GNU ld didn't support --whole-archive et. al.
8177 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8178 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8179 else
8180 whole_archive_flag_spec=
8181 fi
8182 supports_anon_versioning=no
8183 case `$LD -v 2>&1` in
8184 *GNU\ gold*) supports_anon_versioning=yes ;;
8185 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8186 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8187 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8188 *\ 2.11.*) ;; # other 2.11 versions
8189 *) supports_anon_versioning=yes ;;
8190 esac
8191
8192 # See if GNU ld supports shared libraries.
8193 case $host_os in
8194 aix[3-9]*)
8195 # On AIX/PPC, the GNU linker is very broken
8196 if test "$host_cpu" != ia64; then
8197 ld_shlibs=no
8198 cat <<_LT_EOF 1>&2
8199
8200*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8201*** to be unable to reliably create shared libraries on AIX.
8202*** Therefore, libtool is disabling shared libraries support. If you
8203*** really care for shared libraries, you may want to modify your PATH
8204*** so that a non-GNU linker is found, and then restart.
8205
8206_LT_EOF
8207 fi
8208 ;;
8209
8210 amigaos*)
8211 case $host_cpu in
8212 powerpc)
8213 # see comment about AmigaOS4 .so support
8214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215 archive_expsym_cmds=''
8216 ;;
8217 m68k)
8218 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)'
8219 hardcode_libdir_flag_spec='-L$libdir'
8220 hardcode_minus_L=yes
8221 ;;
8222 esac
8223 ;;
8224
8225 beos*)
8226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8227 allow_undefined_flag=unsupported
8228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8229 # support --undefined. This deserves some investigation. FIXME
8230 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231 else
8232 ld_shlibs=no
8233 fi
8234 ;;
8235
8236 cygwin* | mingw* | pw32* | cegcc*)
8237 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8238 # as there is no search path for DLLs.
8239 hardcode_libdir_flag_spec='-L$libdir'
8240 allow_undefined_flag=unsupported
8241 always_export_symbols=no
8242 enable_shared_with_static_runtimes=yes
8243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8244
8245 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8247 # If the export-symbols file already is a .def file (1st line
8248 # is EXPORTS), use it as is; otherwise, prepend...
8249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8250 cp $export_symbols $output_objdir/$soname.def;
8251 else
8252 echo EXPORTS > $output_objdir/$soname.def;
8253 cat $export_symbols >> $output_objdir/$soname.def;
8254 fi~
8255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8256 else
8257 ld_shlibs=no
8258 fi
8259 ;;
8260
8261 interix[3-9]*)
8262 hardcode_direct=no
8263 hardcode_shlibpath_var=no
8264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8265 export_dynamic_flag_spec='${wl}-E'
8266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8267 # Instead, shared libraries are loaded at an image base (0x10000000 by
8268 # default) and relocated if they conflict, which is a slow very memory
8269 # consuming and fragmenting process. To avoid this, we pick a random,
8270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8273 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'
8274 ;;
8275
8276 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8277 tmp_diet=no
8278 if test "$host_os" = linux-dietlibc; then
8279 case $cc_basename in
8280 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8281 esac
8282 fi
8283 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8284 && test "$tmp_diet" = no
8285 then
8286 tmp_addflag=
8287 tmp_sharedflag='-shared'
8288 case $cc_basename,$host_cpu in
8289 pgcc*) # Portland Group C compiler
8290 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8291 tmp_addflag=' $pic_flag'
8292 ;;
8293 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8294 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8295 tmp_addflag=' $pic_flag -Mnomain' ;;
8296 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8297 tmp_addflag=' -i_dynamic' ;;
8298 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8299 tmp_addflag=' -i_dynamic -nofor_main' ;;
8300 ifc* | ifort*) # Intel Fortran compiler
8301 tmp_addflag=' -nofor_main' ;;
8302 lf95*) # Lahey Fortran 8.1
8303 whole_archive_flag_spec=
8304 tmp_sharedflag='--shared' ;;
8305 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8306 tmp_sharedflag='-qmkshrobj'
8307 tmp_addflag= ;;
8308 esac
8309 case `$CC -V 2>&1 | sed 5q` in
8310 *Sun\ C*) # Sun C 5.9
8311 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8312 compiler_needs_object=yes
8313 tmp_sharedflag='-G' ;;
8314 *Sun\ F*) # Sun Fortran 8.3
8315 tmp_sharedflag='-G' ;;
8316 esac
8317 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318
8319 if test "x$supports_anon_versioning" = xyes; then
8320 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8322 echo "local: *; };" >> $output_objdir/$libname.ver~
8323 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8324 fi
8325
8326 case $cc_basename in
8327 xlf*)
8328 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8329 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8330 hardcode_libdir_flag_spec=
8331 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8332 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8333 if test "x$supports_anon_versioning" = xyes; then
8334 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8335 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8336 echo "local: *; };" >> $output_objdir/$libname.ver~
8337 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8338 fi
8339 ;;
8340 esac
8341 else
8342 ld_shlibs=no
8343 fi
8344 ;;
8345
8346 netbsd* | netbsdelf*-gnu)
8347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8348 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8349 wlarc=
8350 else
8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353 fi
8354 ;;
8355
8356 solaris*)
8357 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8358 ld_shlibs=no
8359 cat <<_LT_EOF 1>&2
8360
8361*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362*** create shared libraries on Solaris systems. Therefore, libtool
8363*** is disabling shared libraries support. We urge you to upgrade GNU
8364*** binutils to release 2.9.1 or newer. Another option is to modify
8365*** your PATH or compiler configuration so that the native linker is
8366*** used, and then restart.
8367
8368_LT_EOF
8369 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372 else
8373 ld_shlibs=no
8374 fi
8375 ;;
8376
8377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8378 case `$LD -v 2>&1` in
8379 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8380 ld_shlibs=no
8381 cat <<_LT_EOF 1>&2
8382
8383*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384*** reliably create shared libraries on SCO systems. Therefore, libtool
8385*** is disabling shared libraries support. We urge you to upgrade GNU
8386*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8387*** your PATH or compiler configuration so that the native linker is
8388*** used, and then restart.
8389
8390_LT_EOF
8391 ;;
8392 *)
8393 # For security reasons, it is highly recommended that you always
8394 # use absolute paths for naming shared libraries, and exclude the
8395 # DT_RUNPATH tag from executables and libraries. But doing so
8396 # requires that you compile everything twice, which is a pain.
8397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8401 else
8402 ld_shlibs=no
8403 fi
8404 ;;
8405 esac
8406 ;;
8407
8408 sunos4*)
8409 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8410 wlarc=
8411 hardcode_direct=yes
8412 hardcode_shlibpath_var=no
8413 ;;
8414
8415 *)
8416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8419 else
8420 ld_shlibs=no
8421 fi
8422 ;;
8423 esac
8424
8425 if test "$ld_shlibs" = no; then
8426 runpath_var=
8427 hardcode_libdir_flag_spec=
8428 export_dynamic_flag_spec=
8429 whole_archive_flag_spec=
8430 fi
8431 else
8432 # PORTME fill in a description of your system's linker (not GNU ld)
8433 case $host_os in
8434 aix3*)
8435 allow_undefined_flag=unsupported
8436 always_export_symbols=yes
8437 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'
8438 # Note: this linker hardcodes the directories in LIBPATH if there
8439 # are no directories specified by -L.
8440 hardcode_minus_L=yes
8441 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8442 # Neither direct hardcoding nor static linking is supported with a
8443 # broken collect2.
8444 hardcode_direct=unsupported
8445 fi
8446 ;;
8447
8448 aix[4-9]*)
8449 if test "$host_cpu" = ia64; then
8450 # On IA64, the linker does run time linking by default, so we don't
8451 # have to do anything special.
8452 aix_use_runtimelinking=no
8453 exp_sym_flag='-Bexport'
8454 no_entry_flag=""
8455 else
8456 # If we're using GNU nm, then we don't want the "-C" option.
8457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8459 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8460 else
8461 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8462 fi
8463 aix_use_runtimelinking=no
8464
8465 # Test if we are trying to use run time linking or normal
8466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8467 # need to do runtime linking.
8468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8469 for ld_flag in $LDFLAGS; do
8470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8471 aix_use_runtimelinking=yes
8472 break
8473 fi
8474 done
8475 ;;
8476 esac
8477
8478 exp_sym_flag='-bexport'
8479 no_entry_flag='-bnoentry'
8480 fi
8481
8482 # When large executables or shared objects are built, AIX ld can
8483 # have problems creating the table of contents. If linking a library
8484 # or program results in "error TOC overflow" add -mminimal-toc to
8485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8487
8488 archive_cmds=''
8489 hardcode_direct=yes
8490 hardcode_direct_absolute=yes
8491 hardcode_libdir_separator=':'
8492 link_all_deplibs=yes
8493 file_list_spec='${wl}-f,'
8494
8495 if test "$GCC" = yes; then
8496 case $host_os in aix4.[012]|aix4.[012].*)
8497 # We only want to do this on AIX 4.2 and lower, the check
8498 # below for broken collect2 doesn't work under 4.3+
8499 collect2name=`${CC} -print-prog-name=collect2`
8500 if test -f "$collect2name" &&
8501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8502 then
8503 # We have reworked collect2
8504 :
8505 else
8506 # We have old collect2
8507 hardcode_direct=unsupported
8508 # It fails to find uninstalled libraries when the uninstalled
8509 # path is not listed in the libpath. Setting hardcode_minus_L
8510 # to unsupported forces relinking
8511 hardcode_minus_L=yes
8512 hardcode_libdir_flag_spec='-L$libdir'
8513 hardcode_libdir_separator=
8514 fi
8515 ;;
8516 esac
8517 shared_flag='-shared'
8518 if test "$aix_use_runtimelinking" = yes; then
8519 shared_flag="$shared_flag "'${wl}-G'
8520 fi
8521 link_all_deplibs=no
8522 else
8523 # not using gcc
8524 if test "$host_cpu" = ia64; then
8525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8526 # chokes on -Wl,-G. The following line is correct:
8527 shared_flag='-G'
8528 else
8529 if test "$aix_use_runtimelinking" = yes; then
8530 shared_flag='${wl}-G'
8531 else
8532 shared_flag='${wl}-bM:SRE'
8533 fi
8534 fi
8535 fi
8536
8537 export_dynamic_flag_spec='${wl}-bexpall'
8538 # It seems that -bexpall does not export symbols beginning with
8539 # underscore (_), so it is better to generate a list of symbols to export.
8540 always_export_symbols=yes
8541 if test "$aix_use_runtimelinking" = yes; then
8542 # Warning - without using the other runtime loading flags (-brtl),
8543 # -berok will link without error, but may produce a broken library.
8544 allow_undefined_flag='-berok'
8545 # Determine the default libpath from the value encoded in an
8546 # empty executable.
8547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548/* end confdefs.h. */
8549
8550int
8551main ()
8552{
8553
8554 ;
8555 return 0;
8556}
8557_ACEOF
8558if ac_fn_c_try_link "$LINENO"; then :
8559
8560lt_aix_libpath_sed='
8561 /Import File Strings/,/^$/ {
8562 /^0/ {
8563 s/^0 *\(.*\)$/\1/
8564 p
8565 }
8566 }'
8567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8568# Check for a 64-bit object if we didn't find anything.
8569if test -z "$aix_libpath"; then
8570 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8571fi
8572fi
8573rm -f core conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8576
8577 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8578 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8579 else
8580 if test "$host_cpu" = ia64; then
8581 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8582 allow_undefined_flag="-z nodefs"
8583 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"
8584 else
8585 # Determine the default libpath from the value encoded in an
8586 # empty executable.
8587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588/* end confdefs.h. */
8589
8590int
8591main ()
8592{
8593
8594 ;
8595 return 0;
8596}
8597_ACEOF
8598if ac_fn_c_try_link "$LINENO"; then :
8599
8600lt_aix_libpath_sed='
8601 /Import File Strings/,/^$/ {
8602 /^0/ {
8603 s/^0 *\(.*\)$/\1/
8604 p
8605 }
8606 }'
8607aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8608# Check for a 64-bit object if we didn't find anything.
8609if test -z "$aix_libpath"; then
8610 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8611fi
8612fi
8613rm -f core conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8616
8617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8618 # Warning - without using the other run time loading flags,
8619 # -berok will link without error, but may produce a broken library.
8620 no_undefined_flag=' ${wl}-bernotok'
8621 allow_undefined_flag=' ${wl}-berok'
8622 # Exported symbols can be pulled into shared objects from archives
8623 whole_archive_flag_spec='$convenience'
8624 archive_cmds_need_lc=yes
8625 # This is similar to how AIX traditionally builds its shared libraries.
8626 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8627 fi
8628 fi
8629 ;;
8630
8631 amigaos*)
8632 case $host_cpu in
8633 powerpc)
8634 # see comment about AmigaOS4 .so support
8635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636 archive_expsym_cmds=''
8637 ;;
8638 m68k)
8639 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)'
8640 hardcode_libdir_flag_spec='-L$libdir'
8641 hardcode_minus_L=yes
8642 ;;
8643 esac
8644 ;;
8645
8646 bsdi[45]*)
8647 export_dynamic_flag_spec=-rdynamic
8648 ;;
8649
8650 cygwin* | mingw* | pw32* | cegcc*)
8651 # When not using gcc, we currently assume that we are using
8652 # Microsoft Visual C++.
8653 # hardcode_libdir_flag_spec is actually meaningless, as there is
8654 # no search path for DLLs.
8655 hardcode_libdir_flag_spec=' '
8656 allow_undefined_flag=unsupported
8657 # Tell ltmain to make .lib files, not .a files.
8658 libext=lib
8659 # Tell ltmain to make .dll files, not .so files.
8660 shrext_cmds=".dll"
8661 # FIXME: Setting linknames here is a bad hack.
8662 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8663 # The linker will automatically build a .lib file if we build a DLL.
8664 old_archive_from_new_cmds='true'
8665 # FIXME: Should let the user specify the lib program.
8666 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8667 fix_srcfile_path='`cygpath -w "$srcfile"`'
8668 enable_shared_with_static_runtimes=yes
8669 ;;
8670
8671 darwin* | rhapsody*)
8672
8673
8674 archive_cmds_need_lc=no
8675 hardcode_direct=no
8676 hardcode_automatic=yes
8677 hardcode_shlibpath_var=unsupported
8678 whole_archive_flag_spec=''
8679 link_all_deplibs=yes
8680 allow_undefined_flag="$_lt_dar_allow_undefined"
8681 case $cc_basename in
8682 ifort*) _lt_dar_can_shared=yes ;;
8683 *) _lt_dar_can_shared=$GCC ;;
8684 esac
8685 if test "$_lt_dar_can_shared" = "yes"; then
8686 output_verbose_link_cmd=echo
8687 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8688 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8689 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}"
8690 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}"
8691
8692 else
8693 ld_shlibs=no
8694 fi
8695
8696 ;;
8697
8698 dgux*)
8699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8700 hardcode_libdir_flag_spec='-L$libdir'
8701 hardcode_shlibpath_var=no
8702 ;;
8703
8704 freebsd1*)
8705 ld_shlibs=no
8706 ;;
8707
8708 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8709 # support. Future versions do this automatically, but an explicit c++rt0.o
8710 # does not break anything, and helps significantly (at the cost of a little
8711 # extra space).
8712 freebsd2.2*)
8713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8714 hardcode_libdir_flag_spec='-R$libdir'
8715 hardcode_direct=yes
8716 hardcode_shlibpath_var=no
8717 ;;
8718
8719 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8720 freebsd2*)
8721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8722 hardcode_direct=yes
8723 hardcode_minus_L=yes
8724 hardcode_shlibpath_var=no
8725 ;;
8726
8727 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8728 freebsd* | dragonfly*)
8729 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8730 hardcode_libdir_flag_spec='-R$libdir'
8731 hardcode_direct=yes
8732 hardcode_shlibpath_var=no
8733 ;;
8734
8735 hpux9*)
8736 if test "$GCC" = yes; then
8737 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8738 else
8739 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8740 fi
8741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8742 hardcode_libdir_separator=:
8743 hardcode_direct=yes
8744
8745 # hardcode_minus_L: Not really in the search PATH,
8746 # but as the default location of the library.
8747 hardcode_minus_L=yes
8748 export_dynamic_flag_spec='${wl}-E'
8749 ;;
8750
8751 hpux10*)
8752 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8754 else
8755 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8756 fi
8757 if test "$with_gnu_ld" = no; then
8758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8759 hardcode_libdir_flag_spec_ld='+b $libdir'
8760 hardcode_libdir_separator=:
8761 hardcode_direct=yes
8762 hardcode_direct_absolute=yes
8763 export_dynamic_flag_spec='${wl}-E'
8764 # hardcode_minus_L: Not really in the search PATH,
8765 # but as the default location of the library.
8766 hardcode_minus_L=yes
8767 fi
8768 ;;
8769
8770 hpux11*)
8771 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8772 case $host_cpu in
8773 hppa*64*)
8774 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8775 ;;
8776 ia64*)
8777 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8778 ;;
8779 *)
8780 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8781 ;;
8782 esac
8783 else
8784 case $host_cpu in
8785 hppa*64*)
8786 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8787 ;;
8788 ia64*)
8789 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8790 ;;
8791 *)
8792 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8793 ;;
8794 esac
8795 fi
8796 if test "$with_gnu_ld" = no; then
8797 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8798 hardcode_libdir_separator=:
8799
8800 case $host_cpu in
8801 hppa*64*|ia64*)
8802 hardcode_direct=no
8803 hardcode_shlibpath_var=no
8804 ;;
8805 *)
8806 hardcode_direct=yes
8807 hardcode_direct_absolute=yes
8808 export_dynamic_flag_spec='${wl}-E'
8809
8810 # hardcode_minus_L: Not really in the search PATH,
8811 # but as the default location of the library.
8812 hardcode_minus_L=yes
8813 ;;
8814 esac
8815 fi
8816 ;;
8817
8818 irix5* | irix6* | nonstopux*)
8819 if test "$GCC" = yes; then
8820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8821 # Try to use the -exported_symbol ld option, if it does not
8822 # work, assume that -exports_file does not work either and
8823 # implicitly export all symbols.
8824 save_LDFLAGS="$LDFLAGS"
8825 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827/* end confdefs.h. */
8828int foo(void) {}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"; then :
8831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8832
8833fi
8834rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 LDFLAGS="$save_LDFLAGS"
8837 else
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8840 fi
8841 archive_cmds_need_lc='no'
8842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843 hardcode_libdir_separator=:
8844 inherit_rpath=yes
8845 link_all_deplibs=yes
8846 ;;
8847
8848 netbsd* | netbsdelf*-gnu)
8849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8851 else
8852 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8853 fi
8854 hardcode_libdir_flag_spec='-R$libdir'
8855 hardcode_direct=yes
8856 hardcode_shlibpath_var=no
8857 ;;
8858
8859 newsos6)
8860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8861 hardcode_direct=yes
8862 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8863 hardcode_libdir_separator=:
8864 hardcode_shlibpath_var=no
8865 ;;
8866
8867 *nto* | *qnx*)
8868 ;;
8869
8870 openbsd*)
8871 if test -f /usr/libexec/ld.so; then
8872 hardcode_direct=yes
8873 hardcode_shlibpath_var=no
8874 hardcode_direct_absolute=yes
8875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8877 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8879 export_dynamic_flag_spec='${wl}-E'
8880 else
8881 case $host_os in
8882 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8883 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_libdir_flag_spec='-R$libdir'
8885 ;;
8886 *)
8887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8889 ;;
8890 esac
8891 fi
8892 else
8893 ld_shlibs=no
8894 fi
8895 ;;
8896
8897 os2*)
8898 hardcode_libdir_flag_spec='-L$libdir'
8899 hardcode_minus_L=yes
8900 allow_undefined_flag=unsupported
8901 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8902 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8903 ;;
8904
8905 osf3*)
8906 if test "$GCC" = yes; then
8907 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8908 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8909 else
8910 allow_undefined_flag=' -expect_unresolved \*'
8911 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8912 fi
8913 archive_cmds_need_lc='no'
8914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8915 hardcode_libdir_separator=:
8916 ;;
8917
8918 osf4* | osf5*) # as osf3* with the addition of -msym flag
8919 if test "$GCC" = yes; then
8920 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8921 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 else
8924 allow_undefined_flag=' -expect_unresolved \*'
8925 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8926 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~
8927 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8928
8929 # Both c and cxx compiler support -rpath directly
8930 hardcode_libdir_flag_spec='-rpath $libdir'
8931 fi
8932 archive_cmds_need_lc='no'
8933 hardcode_libdir_separator=:
8934 ;;
8935
8936 solaris*)
8937 no_undefined_flag=' -z defs'
8938 if test "$GCC" = yes; then
8939 wlarc='${wl}'
8940 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8942 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8943 else
8944 case `$CC -V 2>&1` in
8945 *"Compilers 5.0"*)
8946 wlarc=''
8947 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8949 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8950 ;;
8951 *)
8952 wlarc='${wl}'
8953 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8955 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8956 ;;
8957 esac
8958 fi
8959 hardcode_libdir_flag_spec='-R$libdir'
8960 hardcode_shlibpath_var=no
8961 case $host_os in
8962 solaris2.[0-5] | solaris2.[0-5].*) ;;
8963 *)
8964 # The compiler driver will combine and reorder linker options,
8965 # but understands `-z linker_flag'. GCC discards it without `$wl',
8966 # but is careful enough not to reorder.
8967 # Supported since Solaris 2.6 (maybe 2.5.1?)
8968 if test "$GCC" = yes; then
8969 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8970 else
8971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8972 fi
8973 ;;
8974 esac
8975 link_all_deplibs=yes
8976 ;;
8977
8978 sunos4*)
8979 if test "x$host_vendor" = xsequent; then
8980 # Use $CC to link under sequent, because it throws in some extra .o
8981 # files that make .init and .fini sections work.
8982 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8983 else
8984 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8985 fi
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_direct=yes
8988 hardcode_minus_L=yes
8989 hardcode_shlibpath_var=no
8990 ;;
8991
8992 sysv4)
8993 case $host_vendor in
8994 sni)
8995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_direct=yes # is this really true???
8997 ;;
8998 siemens)
8999 ## LD is ld it makes a PLAMLIB
9000 ## CC just makes a GrossModule.
9001 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9002 reload_cmds='$CC -r -o $output$reload_objs'
9003 hardcode_direct=no
9004 ;;
9005 motorola)
9006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9008 ;;
9009 esac
9010 runpath_var='LD_RUN_PATH'
9011 hardcode_shlibpath_var=no
9012 ;;
9013
9014 sysv4.3*)
9015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9016 hardcode_shlibpath_var=no
9017 export_dynamic_flag_spec='-Bexport'
9018 ;;
9019
9020 sysv4*MP*)
9021 if test -d /usr/nec; then
9022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_shlibpath_var=no
9024 runpath_var=LD_RUN_PATH
9025 hardcode_runpath_var=yes
9026 ld_shlibs=yes
9027 fi
9028 ;;
9029
9030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9031 no_undefined_flag='${wl}-z,text'
9032 archive_cmds_need_lc=no
9033 hardcode_shlibpath_var=no
9034 runpath_var='LD_RUN_PATH'
9035
9036 if test "$GCC" = yes; then
9037 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9038 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9039 else
9040 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9041 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9042 fi
9043 ;;
9044
9045 sysv5* | sco3.2v5* | sco5v6*)
9046 # Note: We can NOT use -z defs as we might desire, because we do not
9047 # link with -lc, and that would cause any symbols used from libc to
9048 # always be unresolved, which means just about no library would
9049 # ever link correctly. If we're not using GNU ld we use -z text
9050 # though, which does catch some bad symbols but isn't as heavy-handed
9051 # as -z defs.
9052 no_undefined_flag='${wl}-z,text'
9053 allow_undefined_flag='${wl}-z,nodefs'
9054 archive_cmds_need_lc=no
9055 hardcode_shlibpath_var=no
9056 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9057 hardcode_libdir_separator=':'
9058 link_all_deplibs=yes
9059 export_dynamic_flag_spec='${wl}-Bexport'
9060 runpath_var='LD_RUN_PATH'
9061
9062 if test "$GCC" = yes; then
9063 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065 else
9066 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068 fi
9069 ;;
9070
9071 uts4*)
9072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073 hardcode_libdir_flag_spec='-L$libdir'
9074 hardcode_shlibpath_var=no
9075 ;;
9076
9077 *)
9078 ld_shlibs=no
9079 ;;
9080 esac
9081
9082 if test x$host_vendor = xsni; then
9083 case $host in
9084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9085 export_dynamic_flag_spec='${wl}-Blargedynsym'
9086 ;;
9087 esac
9088 fi
9089 fi
9090
9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9092$as_echo "$ld_shlibs" >&6; }
9093test "$ld_shlibs" = no && can_build_shared=no
9094
9095with_gnu_ld=$with_gnu_ld
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111#
9112# Do we need to explicitly link libc?
9113#
9114case "x$archive_cmds_need_lc" in
9115x|xyes)
9116 # Assume -lc should be added
9117 archive_cmds_need_lc=yes
9118
9119 if test "$enable_shared" = yes && test "$GCC" = yes; then
9120 case $archive_cmds in
9121 *'~'*)
9122 # FIXME: we may have to deal with multi-command sequences.
9123 ;;
9124 '$CC '*)
9125 # Test whether the compiler implicitly links with -lc since on some
9126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9127 # to ld, don't add -lc before -lgcc.
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9129$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9130 $RM conftest*
9131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9132
9133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9134 (eval $ac_compile) 2>&5
9135 ac_status=$?
9136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9137 test $ac_status = 0; } 2>conftest.err; then
9138 soname=conftest
9139 lib=conftest
9140 libobjs=conftest.$ac_objext
9141 deplibs=
9142 wl=$lt_prog_compiler_wl
9143 pic_flag=$lt_prog_compiler_pic
9144 compiler_flags=-v
9145 linker_flags=-v
9146 verstring=
9147 output_objdir=.
9148 libname=conftest
9149 lt_save_allow_undefined_flag=$allow_undefined_flag
9150 allow_undefined_flag=
9151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9152 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9153 ac_status=$?
9154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9155 test $ac_status = 0; }
9156 then
9157 archive_cmds_need_lc=no
9158 else
9159 archive_cmds_need_lc=yes
9160 fi
9161 allow_undefined_flag=$lt_save_allow_undefined_flag
9162 else
9163 cat conftest.err 1>&5
9164 fi
9165 $RM conftest*
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9167$as_echo "$archive_cmds_need_lc" >&6; }
9168 ;;
9169 esac
9170 fi
9171 ;;
9172esac
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9331$as_echo_n "checking dynamic linker characteristics... " >&6; }
9332
9333if test "$GCC" = yes; then
9334 case $host_os in
9335 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9336 *) lt_awk_arg="/^libraries:/" ;;
9337 esac
9338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9339 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9340 # if the path contains ";" then we assume it to be the separator
9341 # otherwise default to the standard path separator (i.e. ":") - it is
9342 # assumed that no part of a normal pathname contains ";" but that should
9343 # okay in the real world where ";" in dirpaths is itself problematic.
9344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9345 else
9346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9347 fi
9348 # Ok, now we have the path, separated by spaces, we can step through it
9349 # and add multilib dir if necessary.
9350 lt_tmp_lt_search_path_spec=
9351 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9352 for lt_sys_path in $lt_search_path_spec; do
9353 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9355 else
9356 test -d "$lt_sys_path" && \
9357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9358 fi
9359 done
9360 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9361BEGIN {RS=" "; FS="/|\n";} {
9362 lt_foo="";
9363 lt_count=0;
9364 for (lt_i = NF; lt_i > 0; lt_i--) {
9365 if ($lt_i != "" && $lt_i != ".") {
9366 if ($lt_i == "..") {
9367 lt_count++;
9368 } else {
9369 if (lt_count == 0) {
9370 lt_foo="/" $lt_i lt_foo;
9371 } else {
9372 lt_count--;
9373 }
9374 }
9375 }
9376 }
9377 if (lt_foo != "") { lt_freq[lt_foo]++; }
9378 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9379}'`
9380 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9381else
9382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9383fi
9384library_names_spec=
9385libname_spec='lib$name'
9386soname_spec=
9387shrext_cmds=".so"
9388postinstall_cmds=
9389postuninstall_cmds=
9390finish_cmds=
9391finish_eval=
9392shlibpath_var=
9393shlibpath_overrides_runpath=unknown
9394version_type=none
9395dynamic_linker="$host_os ld.so"
9396sys_lib_dlsearch_path_spec="/lib /usr/lib"
9397need_lib_prefix=unknown
9398hardcode_into_libs=no
9399
9400# when you set need_version to no, make sure it does not cause -set_version
9401# flags to be left without arguments
9402need_version=unknown
9403
9404case $host_os in
9405aix3*)
9406 version_type=linux
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9408 shlibpath_var=LIBPATH
9409
9410 # AIX 3 has no versioning support, so we append a major version to the name.
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 ;;
9413
9414aix[4-9]*)
9415 version_type=linux
9416 need_lib_prefix=no
9417 need_version=no
9418 hardcode_into_libs=yes
9419 if test "$host_cpu" = ia64; then
9420 # AIX 5 supports IA64
9421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9422 shlibpath_var=LD_LIBRARY_PATH
9423 else
9424 # With GCC up to 2.95.x, collect2 would create an import file
9425 # for dependence libraries. The import file would start with
9426 # the line `#! .'. This would cause the generated library to
9427 # depend on `.', always an invalid library. This was fixed in
9428 # development snapshots of GCC prior to 3.0.
9429 case $host_os in
9430 aix4 | aix4.[01] | aix4.[01].*)
9431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9432 echo ' yes '
9433 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9434 :
9435 else
9436 can_build_shared=no
9437 fi
9438 ;;
9439 esac
9440 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9441 # soname into executable. Probably we can add versioning support to
9442 # collect2, so additional links can be useful in future.
9443 if test "$aix_use_runtimelinking" = yes; then
9444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9445 # instead of lib<name>.a to let people know that these are not
9446 # typical AIX shared libraries.
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448 else
9449 # We preserve .a as extension for shared libraries through AIX4.2
9450 # and later when we are not doing run time linking.
9451 library_names_spec='${libname}${release}.a $libname.a'
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 fi
9454 shlibpath_var=LIBPATH
9455 fi
9456 ;;
9457
9458amigaos*)
9459 case $host_cpu in
9460 powerpc)
9461 # Since July 2007 AmigaOS4 officially supports .so libraries.
9462 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 ;;
9465 m68k)
9466 library_names_spec='$libname.ixlibrary $libname.a'
9467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9468 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9469 ;;
9470 esac
9471 ;;
9472
9473beos*)
9474 library_names_spec='${libname}${shared_ext}'
9475 dynamic_linker="$host_os ld.so"
9476 shlibpath_var=LIBRARY_PATH
9477 ;;
9478
9479bsdi[45]*)
9480 version_type=linux
9481 need_version=no
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9488 # the default ld.so.conf also contains /usr/contrib/lib and
9489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9490 # libtool to hard-code these into programs
9491 ;;
9492
9493cygwin* | mingw* | pw32* | cegcc*)
9494 version_type=windows
9495 shrext_cmds=".dll"
9496 need_version=no
9497 need_lib_prefix=no
9498
9499 case $GCC,$host_os in
9500 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9501 library_names_spec='$libname.dll.a'
9502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9503 postinstall_cmds='base_file=`basename \${file}`~
9504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9505 dldir=$destdir/`dirname \$dlpath`~
9506 test -d \$dldir || mkdir -p \$dldir~
9507 $install_prog $dir/$dlname \$dldir/$dlname~
9508 chmod a+x \$dldir/$dlname~
9509 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9510 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9511 fi'
9512 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9513 dlpath=$dir/\$dldll~
9514 $RM \$dlpath'
9515 shlibpath_overrides_runpath=yes
9516
9517 case $host_os in
9518 cygwin*)
9519 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9520 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9521 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9522 ;;
9523 mingw* | cegcc*)
9524 # MinGW DLLs use traditional 'lib' prefix
9525 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9526 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9527 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9528 # It is most probably a Windows format PATH printed by
9529 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9530 # path with ; separators, and with drive letters. We can handle the
9531 # drive letters (cygwin fileutils understands them), so leave them,
9532 # especially as we might pass files found there to a mingw objdump,
9533 # which wouldn't understand a cygwinified path. Ahh.
9534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9535 else
9536 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9537 fi
9538 ;;
9539 pw32*)
9540 # pw32 DLLs use 'pw' prefix rather than 'lib'
9541 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 ;;
9543 esac
9544 ;;
9545
9546 *)
9547 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9548 ;;
9549 esac
9550 dynamic_linker='Win32 ld.exe'
9551 # FIXME: first we should search . and the directory the executable is in
9552 shlibpath_var=PATH
9553 ;;
9554
9555darwin* | rhapsody*)
9556 dynamic_linker="$host_os dyld"
9557 version_type=darwin
9558 need_lib_prefix=no
9559 need_version=no
9560 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9561 soname_spec='${libname}${release}${major}$shared_ext'
9562 shlibpath_overrides_runpath=yes
9563 shlibpath_var=DYLD_LIBRARY_PATH
9564 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9565
9566 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9567 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9568 ;;
9569
9570dgux*)
9571 version_type=linux
9572 need_lib_prefix=no
9573 need_version=no
9574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9575 soname_spec='${libname}${release}${shared_ext}$major'
9576 shlibpath_var=LD_LIBRARY_PATH
9577 ;;
9578
9579freebsd1*)
9580 dynamic_linker=no
9581 ;;
9582
9583freebsd* | dragonfly*)
9584 # DragonFly does not have aout. When/if they implement a new
9585 # versioning mechanism, adjust this.
9586 if test -x /usr/bin/objformat; then
9587 objformat=`/usr/bin/objformat`
9588 else
9589 case $host_os in
9590 freebsd[123]*) objformat=aout ;;
9591 *) objformat=elf ;;
9592 esac
9593 fi
9594 version_type=freebsd-$objformat
9595 case $version_type in
9596 freebsd-elf*)
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9598 need_version=no
9599 need_lib_prefix=no
9600 ;;
9601 freebsd-*)
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9603 need_version=yes
9604 ;;
9605 esac
9606 shlibpath_var=LD_LIBRARY_PATH
9607 case $host_os in
9608 freebsd2*)
9609 shlibpath_overrides_runpath=yes
9610 ;;
9611 freebsd3.[01]* | freebsdelf3.[01]*)
9612 shlibpath_overrides_runpath=yes
9613 hardcode_into_libs=yes
9614 ;;
9615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9617 shlibpath_overrides_runpath=no
9618 hardcode_into_libs=yes
9619 ;;
9620 *) # from 4.6 on, and DragonFly
9621 shlibpath_overrides_runpath=yes
9622 hardcode_into_libs=yes
9623 ;;
9624 esac
9625 ;;
9626
9627gnu*)
9628 version_type=linux
9629 need_lib_prefix=no
9630 need_version=no
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 hardcode_into_libs=yes
9635 ;;
9636
9637hpux9* | hpux10* | hpux11*)
9638 # Give a soname corresponding to the major version so that dld.sl refuses to
9639 # link against other versions.
9640 version_type=sunos
9641 need_lib_prefix=no
9642 need_version=no
9643 case $host_cpu in
9644 ia64*)
9645 shrext_cmds='.so'
9646 hardcode_into_libs=yes
9647 dynamic_linker="$host_os dld.so"
9648 shlibpath_var=LD_LIBRARY_PATH
9649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651 soname_spec='${libname}${release}${shared_ext}$major'
9652 if test "X$HPUX_IA64_MODE" = X32; then
9653 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9654 else
9655 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9656 fi
9657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9658 ;;
9659 hppa*64*)
9660 shrext_cmds='.sl'
9661 hardcode_into_libs=yes
9662 dynamic_linker="$host_os dld.sl"
9663 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9669 ;;
9670 *)
9671 shrext_cmds='.sl'
9672 dynamic_linker="$host_os dld.sl"
9673 shlibpath_var=SHLIB_PATH
9674 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 ;;
9678 esac
9679 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9680 postinstall_cmds='chmod 555 $lib'
9681 ;;
9682
9683interix[3-9]*)
9684 version_type=linux
9685 need_lib_prefix=no
9686 need_version=no
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 shlibpath_overrides_runpath=no
9692 hardcode_into_libs=yes
9693 ;;
9694
9695irix5* | irix6* | nonstopux*)
9696 case $host_os in
9697 nonstopux*) version_type=nonstopux ;;
9698 *)
9699 if test "$lt_cv_prog_gnu_ld" = yes; then
9700 version_type=linux
9701 else
9702 version_type=irix
9703 fi ;;
9704 esac
9705 need_lib_prefix=no
9706 need_version=no
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9709 case $host_os in
9710 irix5* | nonstopux*)
9711 libsuff= shlibsuff=
9712 ;;
9713 *)
9714 case $LD in # libtool.m4 will add one of these switches to LD
9715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9716 libsuff= shlibsuff= libmagic=32-bit;;
9717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9718 libsuff=32 shlibsuff=N32 libmagic=N32;;
9719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9720 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9721 *) libsuff= shlibsuff= libmagic=never-match;;
9722 esac
9723 ;;
9724 esac
9725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9726 shlibpath_overrides_runpath=no
9727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9729 hardcode_into_libs=yes
9730 ;;
9731
9732# No shared lib support for Linux oldld, aout, or coff.
9733linux*oldld* | linux*aout* | linux*coff*)
9734 dynamic_linker=no
9735 ;;
9736
9737# This must be Linux ELF.
9738linux* | k*bsd*-gnu | kopensolaris*-gnu)
9739 version_type=linux
9740 need_lib_prefix=no
9741 need_version=no
9742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743 soname_spec='${libname}${release}${shared_ext}$major'
9744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9745 shlibpath_var=LD_LIBRARY_PATH
9746 shlibpath_overrides_runpath=no
9747 # Some binutils ld are patched to set DT_RUNPATH
9748 save_LDFLAGS=$LDFLAGS
9749 save_libdir=$libdir
9750 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9751 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753/* end confdefs.h. */
9754
9755int
9756main ()
9757{
9758
9759 ;
9760 return 0;
9761}
9762_ACEOF
9763if ac_fn_c_try_link "$LINENO"; then :
9764 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9765 shlibpath_overrides_runpath=yes
9766fi
9767fi
9768rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 LDFLAGS=$save_LDFLAGS
9771 libdir=$save_libdir
9772
9773 # This implies no fast_install, which is unacceptable.
9774 # Some rework will be needed to allow for fast_install
9775 # before this can be enabled.
9776 hardcode_into_libs=yes
9777
9778 # Append ld.so.conf contents to the search path
9779 if test -f /etc/ld.so.conf; then
9780 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;/^$/d' | tr '\n' ' '`
9781 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9782 fi
9783
9784 # We used to test for /lib/ld.so.1 and disable shared libraries on
9785 # powerpc, because MkLinux only supported shared libraries with the
9786 # GNU dynamic linker. Since this was broken with cross compilers,
9787 # most powerpc-linux boxes support dynamic linking these days and
9788 # people can always --disable-shared, the test was removed, and we
9789 # assume the GNU/Linux dynamic linker is in use.
9790 dynamic_linker='GNU/Linux ld.so'
9791 ;;
9792
9793netbsdelf*-gnu)
9794 version_type=linux
9795 need_lib_prefix=no
9796 need_version=no
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9798 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 shlibpath_overrides_runpath=no
9801 hardcode_into_libs=yes
9802 dynamic_linker='NetBSD ld.elf_so'
9803 ;;
9804
9805netbsd*)
9806 version_type=sunos
9807 need_lib_prefix=no
9808 need_version=no
9809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9812 dynamic_linker='NetBSD (a.out) ld.so'
9813 else
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9815 soname_spec='${libname}${release}${shared_ext}$major'
9816 dynamic_linker='NetBSD ld.elf_so'
9817 fi
9818 shlibpath_var=LD_LIBRARY_PATH
9819 shlibpath_overrides_runpath=yes
9820 hardcode_into_libs=yes
9821 ;;
9822
9823newsos6)
9824 version_type=linux
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 shlibpath_overrides_runpath=yes
9828 ;;
9829
9830*nto* | *qnx*)
9831 version_type=qnx
9832 need_lib_prefix=no
9833 need_version=no
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=no
9838 hardcode_into_libs=yes
9839 dynamic_linker='ldqnx.so'
9840 ;;
9841
9842openbsd*)
9843 version_type=sunos
9844 sys_lib_dlsearch_path_spec="/usr/lib"
9845 need_lib_prefix=no
9846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9847 case $host_os in
9848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9849 *) need_version=no ;;
9850 esac
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9853 shlibpath_var=LD_LIBRARY_PATH
9854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9855 case $host_os in
9856 openbsd2.[89] | openbsd2.[89].*)
9857 shlibpath_overrides_runpath=no
9858 ;;
9859 *)
9860 shlibpath_overrides_runpath=yes
9861 ;;
9862 esac
9863 else
9864 shlibpath_overrides_runpath=yes
9865 fi
9866 ;;
9867
9868os2*)
9869 libname_spec='$name'
9870 shrext_cmds=".dll"
9871 need_lib_prefix=no
9872 library_names_spec='$libname${shared_ext} $libname.a'
9873 dynamic_linker='OS/2 ld.exe'
9874 shlibpath_var=LIBPATH
9875 ;;
9876
9877osf3* | osf4* | osf5*)
9878 version_type=osf
9879 need_lib_prefix=no
9880 need_version=no
9881 soname_spec='${libname}${release}${shared_ext}$major'
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9886 ;;
9887
9888rdos*)
9889 dynamic_linker=no
9890 ;;
9891
9892solaris*)
9893 version_type=linux
9894 need_lib_prefix=no
9895 need_version=no
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 shlibpath_overrides_runpath=yes
9900 hardcode_into_libs=yes
9901 # ldd complains unless libraries are executable
9902 postinstall_cmds='chmod +x $lib'
9903 ;;
9904
9905sunos4*)
9906 version_type=sunos
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=yes
9911 if test "$with_gnu_ld" = yes; then
9912 need_lib_prefix=no
9913 fi
9914 need_version=yes
9915 ;;
9916
9917sysv4 | sysv4.3*)
9918 version_type=linux
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 case $host_vendor in
9923 sni)
9924 shlibpath_overrides_runpath=no
9925 need_lib_prefix=no
9926 runpath_var=LD_RUN_PATH
9927 ;;
9928 siemens)
9929 need_lib_prefix=no
9930 ;;
9931 motorola)
9932 need_lib_prefix=no
9933 need_version=no
9934 shlibpath_overrides_runpath=no
9935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9936 ;;
9937 esac
9938 ;;
9939
9940sysv4*MP*)
9941 if test -d /usr/nec ;then
9942 version_type=linux
9943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9944 soname_spec='$libname${shared_ext}.$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 fi
9947 ;;
9948
9949sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9950 version_type=freebsd-elf
9951 need_lib_prefix=no
9952 need_version=no
9953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9954 soname_spec='${libname}${release}${shared_ext}$major'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 shlibpath_overrides_runpath=yes
9957 hardcode_into_libs=yes
9958 if test "$with_gnu_ld" = yes; then
9959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9960 else
9961 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9962 case $host_os in
9963 sco3.2v5*)
9964 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9965 ;;
9966 esac
9967 fi
9968 sys_lib_dlsearch_path_spec='/usr/lib'
9969 ;;
9970
9971tpf*)
9972 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9973 version_type=linux
9974 need_lib_prefix=no
9975 need_version=no
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977 shlibpath_var=LD_LIBRARY_PATH
9978 shlibpath_overrides_runpath=no
9979 hardcode_into_libs=yes
9980 ;;
9981
9982uts4*)
9983 version_type=linux
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 shlibpath_var=LD_LIBRARY_PATH
9987 ;;
9988
9989*)
9990 dynamic_linker=no
9991 ;;
9992esac
9993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9994$as_echo "$dynamic_linker" >&6; }
9995test "$dynamic_linker" = no && can_build_shared=no
9996
9997variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9998if test "$GCC" = yes; then
9999 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10000fi
10001
10002if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10003 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10004fi
10005if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10006 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10007fi
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10096$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10097hardcode_action=
10098if test -n "$hardcode_libdir_flag_spec" ||
10099 test -n "$runpath_var" ||
10100 test "X$hardcode_automatic" = "Xyes" ; then
10101
10102 # We can hardcode non-existent directories.
10103 if test "$hardcode_direct" != no &&
10104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10105 # have to relink, otherwise we might link with an installed library
10106 # when we should be linking with a yet-to-be-installed one
10107 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10108 test "$hardcode_minus_L" != no; then
10109 # Linking always hardcodes the temporary library directory.
10110 hardcode_action=relink
10111 else
10112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10113 hardcode_action=immediate
10114 fi
10115else
10116 # We cannot hardcode anything, or else we can only hardcode existing
10117 # directories.
10118 hardcode_action=unsupported
10119fi
10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10121$as_echo "$hardcode_action" >&6; }
10122
10123if test "$hardcode_action" = relink ||
10124 test "$inherit_rpath" = yes; then
10125 # Fast installation is not supported
10126 enable_fast_install=no
10127elif test "$shlibpath_overrides_runpath" = yes ||
10128 test "$enable_shared" = no; then
10129 # Fast installation is not necessary
10130 enable_fast_install=needless
10131fi
10132
10133
10134
10135
10136
10137
10138 if test "x$enable_dlopen" != xyes; then
10139 enable_dlopen=unknown
10140 enable_dlopen_self=unknown
10141 enable_dlopen_self_static=unknown
10142else
10143 lt_cv_dlopen=no
10144 lt_cv_dlopen_libs=
10145
10146 case $host_os in
10147 beos*)
10148 lt_cv_dlopen="load_add_on"
10149 lt_cv_dlopen_libs=
10150 lt_cv_dlopen_self=yes
10151 ;;
10152
10153 mingw* | pw32* | cegcc*)
10154 lt_cv_dlopen="LoadLibrary"
10155 lt_cv_dlopen_libs=
10156 ;;
10157
10158 cygwin*)
10159 lt_cv_dlopen="dlopen"
10160 lt_cv_dlopen_libs=
10161 ;;
10162
10163 darwin*)
10164 # if libdl is installed we need to link against it
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10166$as_echo_n "checking for dlopen in -ldl... " >&6; }
10167if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10169else
10170 ac_check_lib_save_LIBS=$LIBS
10171LIBS="-ldl $LIBS"
10172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173/* end confdefs.h. */
10174
10175/* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10178#ifdef __cplusplus
10179extern "C"
10180#endif
10181char dlopen ();
10182int
10183main ()
10184{
10185return dlopen ();
10186 ;
10187 return 0;
10188}
10189_ACEOF
10190if ac_fn_c_try_link "$LINENO"; then :
10191 ac_cv_lib_dl_dlopen=yes
10192else
10193 ac_cv_lib_dl_dlopen=no
10194fi
10195rm -f core conftest.err conftest.$ac_objext \
10196 conftest$ac_exeext conftest.$ac_ext
10197LIBS=$ac_check_lib_save_LIBS
10198fi
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10200$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10201if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10202 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10203else
10204
10205 lt_cv_dlopen="dyld"
10206 lt_cv_dlopen_libs=
10207 lt_cv_dlopen_self=yes
10208
10209fi
10210
10211 ;;
10212
10213 *)
10214 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10215if test "x$ac_cv_func_shl_load" = x""yes; then :
10216 lt_cv_dlopen="shl_load"
10217else
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10219$as_echo_n "checking for shl_load in -ldld... " >&6; }
10220if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
10222else
10223 ac_check_lib_save_LIBS=$LIBS
10224LIBS="-ldld $LIBS"
10225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226/* end confdefs.h. */
10227
10228/* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
10231#ifdef __cplusplus
10232extern "C"
10233#endif
10234char shl_load ();
10235int
10236main ()
10237{
10238return shl_load ();
10239 ;
10240 return 0;
10241}
10242_ACEOF
10243if ac_fn_c_try_link "$LINENO"; then :
10244 ac_cv_lib_dld_shl_load=yes
10245else
10246 ac_cv_lib_dld_shl_load=no
10247fi
10248rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250LIBS=$ac_check_lib_save_LIBS
10251fi
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10253$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10254if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10255 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10256else
10257 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10258if test "x$ac_cv_func_dlopen" = x""yes; then :
10259 lt_cv_dlopen="dlopen"
10260else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10262$as_echo_n "checking for dlopen in -ldl... " >&6; }
10263if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10264 $as_echo_n "(cached) " >&6
10265else
10266 ac_check_lib_save_LIBS=$LIBS
10267LIBS="-ldl $LIBS"
10268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269/* end confdefs.h. */
10270
10271/* Override any GCC internal prototype to avoid an error.
10272 Use char because int might match the return type of a GCC
10273 builtin and then its argument prototype would still apply. */
10274#ifdef __cplusplus
10275extern "C"
10276#endif
10277char dlopen ();
10278int
10279main ()
10280{
10281return dlopen ();
10282 ;
10283 return 0;
10284}
10285_ACEOF
10286if ac_fn_c_try_link "$LINENO"; then :
10287 ac_cv_lib_dl_dlopen=yes
10288else
10289 ac_cv_lib_dl_dlopen=no
10290fi
10291rm -f core conftest.err conftest.$ac_objext \
10292 conftest$ac_exeext conftest.$ac_ext
10293LIBS=$ac_check_lib_save_LIBS
10294fi
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10296$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10297if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10299else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10301$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10302if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10303 $as_echo_n "(cached) " >&6
10304else
10305 ac_check_lib_save_LIBS=$LIBS
10306LIBS="-lsvld $LIBS"
10307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308/* end confdefs.h. */
10309
10310/* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10313#ifdef __cplusplus
10314extern "C"
10315#endif
10316char dlopen ();
10317int
10318main ()
10319{
10320return dlopen ();
10321 ;
10322 return 0;
10323}
10324_ACEOF
10325if ac_fn_c_try_link "$LINENO"; then :
10326 ac_cv_lib_svld_dlopen=yes
10327else
10328 ac_cv_lib_svld_dlopen=no
10329fi
10330rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10332LIBS=$ac_check_lib_save_LIBS
10333fi
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10335$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10336if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10338else
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10340$as_echo_n "checking for dld_link in -ldld... " >&6; }
10341if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10343else
10344 ac_check_lib_save_LIBS=$LIBS
10345LIBS="-ldld $LIBS"
10346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347/* end confdefs.h. */
10348
10349/* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352#ifdef __cplusplus
10353extern "C"
10354#endif
10355char dld_link ();
10356int
10357main ()
10358{
10359return dld_link ();
10360 ;
10361 return 0;
10362}
10363_ACEOF
10364if ac_fn_c_try_link "$LINENO"; then :
10365 ac_cv_lib_dld_dld_link=yes
10366else
10367 ac_cv_lib_dld_dld_link=no
10368fi
10369rm -f core conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371LIBS=$ac_check_lib_save_LIBS
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10374$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10375if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10376 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10377fi
10378
10379
10380fi
10381
10382
10383fi
10384
10385
10386fi
10387
10388
10389fi
10390
10391
10392fi
10393
10394 ;;
10395 esac
10396
10397 if test "x$lt_cv_dlopen" != xno; then
10398 enable_dlopen=yes
10399 else
10400 enable_dlopen=no
10401 fi
10402
10403 case $lt_cv_dlopen in
10404 dlopen)
10405 save_CPPFLAGS="$CPPFLAGS"
10406 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10407
10408 save_LDFLAGS="$LDFLAGS"
10409 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10410
10411 save_LIBS="$LIBS"
10412 LIBS="$lt_cv_dlopen_libs $LIBS"
10413
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10415$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10416if test "${lt_cv_dlopen_self+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418else
10419 if test "$cross_compiling" = yes; then :
10420 lt_cv_dlopen_self=cross
10421else
10422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10423 lt_status=$lt_dlunknown
10424 cat > conftest.$ac_ext <<_LT_EOF
c06d4368 10425#line 10425 "configure"
0e3762ca
CALP
10426#include "confdefs.h"
10427
10428#if HAVE_DLFCN_H
10429#include <dlfcn.h>
10430#endif
10431
10432#include <stdio.h>
10433
10434#ifdef RTLD_GLOBAL
10435# define LT_DLGLOBAL RTLD_GLOBAL
10436#else
10437# ifdef DL_GLOBAL
10438# define LT_DLGLOBAL DL_GLOBAL
10439# else
10440# define LT_DLGLOBAL 0
10441# endif
10442#endif
10443
10444/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10445 find out it does not work in some platform. */
10446#ifndef LT_DLLAZY_OR_NOW
10447# ifdef RTLD_LAZY
10448# define LT_DLLAZY_OR_NOW RTLD_LAZY
10449# else
10450# ifdef DL_LAZY
10451# define LT_DLLAZY_OR_NOW DL_LAZY
10452# else
10453# ifdef RTLD_NOW
10454# define LT_DLLAZY_OR_NOW RTLD_NOW
10455# else
10456# ifdef DL_NOW
10457# define LT_DLLAZY_OR_NOW DL_NOW
10458# else
10459# define LT_DLLAZY_OR_NOW 0
10460# endif
10461# endif
10462# endif
10463# endif
10464#endif
10465
10466void fnord() { int i=42;}
10467int main ()
10468{
10469 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10470 int status = $lt_dlunknown;
10471
10472 if (self)
10473 {
10474 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10475 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10476 /* dlclose (self); */
10477 }
10478 else
10479 puts (dlerror ());
10480
10481 return status;
10482}
10483_LT_EOF
10484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10485 (eval $ac_link) 2>&5
10486 ac_status=$?
10487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10488 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10489 (./conftest; exit; ) >&5 2>/dev/null
10490 lt_status=$?
10491 case x$lt_status in
10492 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10493 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10494 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10495 esac
10496 else :
10497 # compilation failed
10498 lt_cv_dlopen_self=no
10499 fi
10500fi
10501rm -fr conftest*
10502
10503
10504fi
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10506$as_echo "$lt_cv_dlopen_self" >&6; }
10507
10508 if test "x$lt_cv_dlopen_self" = xyes; then
10509 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10511$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10512if test "${lt_cv_dlopen_self_static+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10514else
10515 if test "$cross_compiling" = yes; then :
10516 lt_cv_dlopen_self_static=cross
10517else
10518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10519 lt_status=$lt_dlunknown
10520 cat > conftest.$ac_ext <<_LT_EOF
c06d4368 10521#line 10521 "configure"
0e3762ca
CALP
10522#include "confdefs.h"
10523
10524#if HAVE_DLFCN_H
10525#include <dlfcn.h>
10526#endif
10527
10528#include <stdio.h>
10529
10530#ifdef RTLD_GLOBAL
10531# define LT_DLGLOBAL RTLD_GLOBAL
10532#else
10533# ifdef DL_GLOBAL
10534# define LT_DLGLOBAL DL_GLOBAL
10535# else
10536# define LT_DLGLOBAL 0
10537# endif
10538#endif
10539
10540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10541 find out it does not work in some platform. */
10542#ifndef LT_DLLAZY_OR_NOW
10543# ifdef RTLD_LAZY
10544# define LT_DLLAZY_OR_NOW RTLD_LAZY
10545# else
10546# ifdef DL_LAZY
10547# define LT_DLLAZY_OR_NOW DL_LAZY
10548# else
10549# ifdef RTLD_NOW
10550# define LT_DLLAZY_OR_NOW RTLD_NOW
10551# else
10552# ifdef DL_NOW
10553# define LT_DLLAZY_OR_NOW DL_NOW
10554# else
10555# define LT_DLLAZY_OR_NOW 0
10556# endif
10557# endif
10558# endif
10559# endif
10560#endif
10561
10562void fnord() { int i=42;}
10563int main ()
10564{
10565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10566 int status = $lt_dlunknown;
10567
10568 if (self)
10569 {
10570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10571 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10572 /* dlclose (self); */
10573 }
10574 else
10575 puts (dlerror ());
10576
10577 return status;
10578}
10579_LT_EOF
10580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10581 (eval $ac_link) 2>&5
10582 ac_status=$?
10583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10584 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10585 (./conftest; exit; ) >&5 2>/dev/null
10586 lt_status=$?
10587 case x$lt_status in
10588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10590 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10591 esac
10592 else :
10593 # compilation failed
10594 lt_cv_dlopen_self_static=no
10595 fi
10596fi
10597rm -fr conftest*
10598
10599
10600fi
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10602$as_echo "$lt_cv_dlopen_self_static" >&6; }
10603 fi
10604
10605 CPPFLAGS="$save_CPPFLAGS"
10606 LDFLAGS="$save_LDFLAGS"
10607 LIBS="$save_LIBS"
10608 ;;
10609 esac
10610
10611 case $lt_cv_dlopen_self in
10612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10613 *) enable_dlopen_self=unknown ;;
10614 esac
10615
10616 case $lt_cv_dlopen_self_static in
10617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10618 *) enable_dlopen_self_static=unknown ;;
10619 esac
10620fi
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638striplib=
10639old_striplib=
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10641$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10642if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10646$as_echo "yes" >&6; }
10647else
10648# FIXME - insert some real tests, host_os isn't really good enough
10649 case $host_os in
10650 darwin*)
10651 if test -n "$STRIP" ; then
10652 striplib="$STRIP -x"
10653 old_striplib="$STRIP -S"
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10655$as_echo "yes" >&6; }
10656 else
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658$as_echo "no" >&6; }
10659 fi
10660 ;;
10661 *)
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663$as_echo "no" >&6; }
10664 ;;
10665 esac
10666fi
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679 # Report which library types will actually be built
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10681$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10683$as_echo "$can_build_shared" >&6; }
10684
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10686$as_echo_n "checking whether to build shared libraries... " >&6; }
10687 test "$can_build_shared" = "no" && enable_shared=no
10688
10689 # On AIX, shared libraries and static libraries use the same namespace, and
10690 # are all built from PIC.
10691 case $host_os in
10692 aix3*)
10693 test "$enable_shared" = yes && enable_static=no
10694 if test -n "$RANLIB"; then
10695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10696 postinstall_cmds='$RANLIB $lib'
10697 fi
10698 ;;
10699
10700 aix[4-9]*)
10701 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10702 test "$enable_shared" = yes && enable_static=no
10703 fi
10704 ;;
10705 esac
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10707$as_echo "$enable_shared" >&6; }
10708
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10710$as_echo_n "checking whether to build static libraries... " >&6; }
10711 # Make sure either enable_shared or enable_static is yes.
10712 test "$enable_shared" = yes || enable_static=yes
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10714$as_echo "$enable_static" >&6; }
10715
10716
10717
10718
10719fi
10720ac_ext=c
10721ac_cpp='$CPP $CPPFLAGS'
10722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10724ac_compiler_gnu=$ac_cv_c_compiler_gnu
10725
10726CC="$lt_save_CC"
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740 ac_config_commands="$ac_config_commands libtool"
10741
10742
10743
10744
10745# Only expand once:
10746
10747
10748# By default we simply use the C compiler to build assembly code.
10749
10750test "${CCAS+set}" = set || CCAS=$CC
10751test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
10752
10753
10754
10755depcc="$CCAS" am_compiler_list=
10756
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10758$as_echo_n "checking dependency style of $depcc... " >&6; }
10759if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10760 $as_echo_n "(cached) " >&6
10761else
10762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10763 # We make a subdir and do the tests there. Otherwise we can end up
10764 # making bogus files that we don't know about and never remove. For
10765 # instance it was reported that on HP-UX the gcc test will end up
10766 # making a dummy file named `D' -- because `-MD' means `put the output
10767 # in D'.
10768 mkdir conftest.dir
10769 # Copy depcomp to subdir because otherwise we won't find it if we're
10770 # using a relative directory.
10771 cp "$am_depcomp" conftest.dir
10772 cd conftest.dir
10773 # We will build objects and dependencies in a subdirectory because
10774 # it helps to detect inapplicable dependency modes. For instance
10775 # both Tru64's cc and ICC support -MD to output dependencies as a
10776 # side effect of compilation, but ICC will put the dependencies in
10777 # the current directory while Tru64 will put them in the object
10778 # directory.
10779 mkdir sub
10780
10781 am_cv_CCAS_dependencies_compiler_type=none
10782 if test "$am_compiler_list" = ""; then
10783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10784 fi
10785 am__universal=false
10786
10787
10788 for depmode in $am_compiler_list; do
10789 # Setup a source with many dependencies, because some compilers
10790 # like to wrap large dependency lists on column 80 (with \), and
10791 # we should not choose a depcomp mode which is confused by this.
10792 #
10793 # We need to recreate these files for each test, as the compiler may
10794 # overwrite some of them when testing with obscure command lines.
10795 # This happens at least with the AIX C compiler.
10796 : > sub/conftest.c
10797 for i in 1 2 3 4 5 6; do
10798 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10800 # Solaris 8's {/usr,}/bin/sh.
10801 touch sub/conftst$i.h
10802 done
10803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10804
10805 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10806 # mode. It turns out that the SunPro C++ compiler does not properly
10807 # handle `-M -o', and we need to detect this. Also, some Intel
10808 # versions had trouble with output in subdirs
10809 am__obj=sub/conftest.${OBJEXT-o}
10810 am__minus_obj="-o $am__obj"
10811 case $depmode in
10812 gcc)
10813 # This depmode causes a compiler race in universal mode.
10814 test "$am__universal" = false || continue
10815 ;;
10816 nosideeffect)
10817 # after this tag, mechanisms are not by side-effect, so they'll
10818 # only be used when explicitly requested
10819 if test "x$enable_dependency_tracking" = xyes; then
10820 continue
10821 else
10822 break
10823 fi
10824 ;;
10825 msvisualcpp | msvcmsys)
10826 # This compiler won't grok `-c -o', but also, the minuso test has
10827 # not run yet. These depmodes are late enough in the game, and
10828 # so weak that their functioning should not be impacted.
10829 am__obj=conftest.${OBJEXT-o}
10830 am__minus_obj=
10831 ;;
10832 none) break ;;
10833 esac
10834 if depmode=$depmode \
10835 source=sub/conftest.c object=$am__obj \
10836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10838 >/dev/null 2>conftest.err &&
10839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10843 # icc doesn't choke on unknown options, it will just issue warnings
10844 # or remarks (even with -Werror). So we grep stderr for any message
10845 # that says an option was ignored or not supported.
10846 # When given -MP, icc 7.0 and 7.1 complain thusly:
10847 # icc: Command line warning: ignoring option '-M'; no argument required
10848 # The diagnosis changed in icc 8.0:
10849 # icc: Command line remark: option '-MP' not supported
10850 if (grep 'ignoring option' conftest.err ||
10851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10852 am_cv_CCAS_dependencies_compiler_type=$depmode
10853 break
10854 fi
10855 fi
10856 done
10857
10858 cd ..
10859 rm -rf conftest.dir
10860else
10861 am_cv_CCAS_dependencies_compiler_type=none
10862fi
10863
10864fi
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
10866$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
10867CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
10868
10869 if
10870 test "x$enable_dependency_tracking" != xno \
10871 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
10872 am__fastdepCCAS_TRUE=
10873 am__fastdepCCAS_FALSE='#'
10874else
10875 am__fastdepCCAS_TRUE='#'
10876 am__fastdepCCAS_FALSE=
10877fi
10878
10879
10880
10881
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
10883$as_echo_n "checking zfs author... " >&6; }
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
10885$as_echo "$ZFS_META_AUTHOR" >&6; }
10886
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
10888$as_echo_n "checking zfs license... " >&6; }
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
10890$as_echo "$ZFS_META_LICENSE" >&6; }
10891
10892
10893
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
10895$as_echo_n "checking linux distribution... " >&6; }
10896 if test -f /etc/toss-release ; then
10897 VENDOR=toss ;
10898 elif test -f /etc/fedora-release ; then
10899 VENDOR=fedora ;
10900 elif test -f /etc/redhat-release ; then
10901 VENDOR=redhat ;
10902 elif test -f /etc/gentoo-release ; then
10903 VENDOR=gentoo ;
10904 elif test -f /etc/arch-release ; then
10905 VENDOR=arch ;
10906 elif test -f /etc/SuSE-release ; then
10907 VENDOR=sles ;
10908 elif test -f /etc/slackware-version ; then
10909 VENDOR=slackware ;
10910 elif test -f /etc/lunar.release ; then
10911 VENDOR=lunar ;
10912 elif test -f /etc/lsb-release ; then
10913 VENDOR=ubuntu ;
10914 elif test -f /etc/debian_version ; then
10915 VENDOR=debian ;
10916 else
10917 VENDOR= ;
10918 fi
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
10920$as_echo "$VENDOR" >&6; }
10921
10922
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
10924$as_echo_n "checking default package type... " >&6; }
10925 case "$VENDOR" in
10926 toss) DEFAULT_PACKAGE=rpm ;;
10927 redhat) DEFAULT_PACKAGE=rpm ;;
10928 fedora) DEFAULT_PACKAGE=rpm ;;
10929 gentoo) DEFAULT_PACKAGE=tgz ;;
10930 arch) DEFAULT_PACKAGE=tgz ;;
10931 sles) DEFAULT_PACKAGE=rpm ;;
10932 slackware) DEFAULT_PACKAGE=tgz ;;
10933 lunar) DEFAULT_PACKAGE=tgz ;;
10934 ubuntu) DEFAULT_PACKAGE=deb ;;
10935 debian) DEFAULT_PACKAGE=deb ;;
10936 *) DEFAULT_PACKAGE=rpm ;;
10937 esac
10938
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
10940$as_echo "$DEFAULT_PACKAGE" >&6; }
10941
10942
10943 DEFAULT_INIT_DIR=$sysconfdir/init.d
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
10945$as_echo_n "checking default init directory... " >&6; }
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
10947$as_echo "$DEFAULT_INIT_DIR" >&6; }
10948
10949
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
10951$as_echo_n "checking default init script type... " >&6; }
10952 case "$VENDOR" in
10953 toss) DEFAULT_INIT_SCRIPT=redhat ;;
10954 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
10955 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
10956 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
10957 arch) DEFAULT_INIT_SCRIPT=lsb ;;
10958 sles) DEFAULT_INIT_SCRIPT=lsb ;;
10959 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
10960 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
10961 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
10962 debian) DEFAULT_INIT_SCRIPT=lsb ;;
10963 *) DEFAULT_INIT_SCRIPT=lsb ;;
10964 esac
10965
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
10967$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
10968
10969
10970
10971 RPM=rpm
10972 RPMBUILD=rpmbuild
10973
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
10975$as_echo_n "checking whether $RPM is available... " >&6; }
10976 if tmp=$($RPM --version 2>/dev/null); then :
10977
10978 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
10979 HAVE_RPM=yes
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
10981$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
10982
10983else
10984
10985 HAVE_RPM=no
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
10987$as_echo "$HAVE_RPM" >&6; }
10988
10989fi
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
10992$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
10993 if tmp=$($RPMBUILD --version 2>/dev/null); then :
10994
10995 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
10996 HAVE_RPMBUILD=yes
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
10998$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
10999
11000else
11001
11002 HAVE_RPMBUILD=no
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11004$as_echo "$HAVE_RPMBUILD" >&6; }
11005
11006fi
11007
c06d4368 11008 RPM_DEFINE_COMMON='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
0e3762ca
CALP
11009 RPM_DEFINE_UTIL=
11010 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
11011 RPM_DEFINE_DKMS=
11012
11013 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11014 SRPM_DEFINE_UTIL=
11015 SRPM_DEFINE_KMOD=
11016 SRPM_DEFINE_DKMS=
11017
11018 RPM_SPEC_DIR="rpm/generic"
11019
11020# Check whether --with-spec was given.
11021if test "${with_spec+set}" = set; then :
11022 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11023fi
11024
11025
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11027$as_echo_n "checking whether spec files are available... " >&6; }
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11029$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050 DPKG=dpkg
11051 DPKGBUILD=dpkg-buildpackage
11052
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11054$as_echo_n "checking whether $DPKG is available... " >&6; }
11055 if tmp=$($DPKG --version 2>/dev/null); then :
11056
11057 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11058 HAVE_DPKG=yes
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11060$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11061
11062else
11063
11064 HAVE_DPKG=no
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
11066$as_echo "$HAVE_DPKG" >&6; }
11067
11068fi
11069
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
11071$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11072 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
11073
11074 DPKGBUILD_VERSION=$(echo $tmp | \
11075 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11076 HAVE_DPKGBUILD=yes
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11078$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11079
11080else
11081
11082 HAVE_DPKGBUILD=no
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
11084$as_echo "$HAVE_DPKGBUILD" >&6; }
11085
11086fi
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097 ALIEN=alien
11098
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
11100$as_echo_n "checking whether $ALIEN is available... " >&6; }
11101 if tmp=$($ALIEN --version 2>/dev/null); then :
11102
11103 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11104 HAVE_ALIEN=yes
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11106$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11107
11108else
11109
11110 HAVE_ALIEN=no
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
11112$as_echo "$HAVE_ALIEN" >&6; }
11113
11114fi
11115
11116
11117
11118
11119
11120
11121
11122 TARGET_ASM_DIR=asm-generic
11123
11124
11125 ZFS_CONFIG=all
11126
11127# Check whether --with-config was given.
11128if test "${with_config+set}" = set; then :
11129 withval=$with_config; ZFS_CONFIG="$withval"
11130fi
11131
11132 # Check whether --enable-linux-builtin was given.
11133if test "${enable_linux_builtin+set}" = set; then :
11134 enableval=$enable_linux_builtin;
11135else
11136 enable_linux_builtin=no
11137fi
11138
11139
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
11141$as_echo_n "checking zfs config... " >&6; }
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
11143$as_echo "$ZFS_CONFIG" >&6; };
11144
11145
11146
11147
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
11149$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11150
11151 saved_flags="$CFLAGS"
11152 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11153
11154 if test "$cross_compiling" = yes; then :
11155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11157as_fn_error $? "cannot run test program while cross compiling
11158See \`config.log' for more details" "$LINENO" 5 ; }
11159else
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161/* end confdefs.h. */
11162
11163int
11164main ()
11165{
11166
11167 ;
11168 return 0;
11169}
11170_ACEOF
11171if ac_fn_c_try_run "$LINENO"; then :
11172
11173 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175$as_echo "yes" >&6; }
11176
11177else
11178
11179 NO_UNUSED_BUT_SET_VARIABLE=
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
11182
11183fi
11184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11185 conftest.$ac_objext conftest.beam conftest.$ac_ext
11186fi
11187
11188
11189 CFLAGS="$saved_flags"
11190
11191
11192
11193
11194 case "$ZFS_CONFIG" in
11195 kernel)
11196
11197
11198# Check whether --with-linux was given.
11199if test "${with_linux+set}" = set; then :
11200 withval=$with_linux; kernelsrc="$withval"
11201fi
11202
11203
11204
11205# Check whether --with-linux-obj was given.
11206if test "${with_linux_obj+set}" = set; then :
11207 withval=$with_linux_obj; kernelbuild="$withval"
11208fi
11209
11210
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
11212$as_echo_n "checking kernel source directory... " >&6; }
11213 if test -z "$kernelsrc"; then :
11214
11215 if test -e "/lib/modules/$(uname -r)/source"; then :
11216
11217 headersdir="/lib/modules/$(uname -r)/source"
11218 sourcelink=$(readlink -f "$headersdir")
11219
11220elif test -e "/lib/modules/$(uname -r)/build"; then :
11221
11222 headersdir="/lib/modules/$(uname -r)/build"
11223 sourcelink=$(readlink -f "$headersdir")
11224
11225else
11226
11227 sourcelink=$(ls -1d /usr/src/kernels/* \
11228 /usr/src/linux-* \
11229 2>/dev/null | grep -v obj | tail -1)
11230
11231fi
11232
11233 if test -n "$sourcelink" && test -e ${sourcelink}; then :
11234
11235 kernelsrc=`readlink -f ${sourcelink}`
11236
11237else
11238
11239 kernelsrc="Not found"
11240
11241fi
11242
11243else
11244
11245 if test "$kernelsrc" = "NONE"; then :
11246
11247 kernsrcver=NONE
11248
11249fi
11250
11251fi
11252
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
11254$as_echo "$kernelsrc" >&6; }
11255 if test ! -d "$kernelsrc"; then :
11256
11257 as_fn_error $? "
11258 *** Please make sure the kernel devel package for your distribution
c06d4368 11259 *** is installed and then try again. If that fails, you can specify the
0e3762ca
CALP
11260 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
11261
11262fi
11263
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
11265$as_echo_n "checking kernel build directory... " >&6; }
11266 if test -z "$kernelbuild"; then :
11267
11268 if test -e "/lib/modules/$(uname -r)/build"; then :
11269
11270 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11271
11272elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
11273
11274 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11275
11276elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
11277
11278 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11279
11280elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
11281
11282 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11283
11284else
11285
11286 kernelbuild=${kernelsrc}
11287
11288fi
11289
11290fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
11292$as_echo "$kernelbuild" >&6; }
11293
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
11295$as_echo_n "checking kernel source version... " >&6; }
11296 utsrelease1=$kernelbuild/include/linux/version.h
11297 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11298 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11299 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
11300
11301 utsrelease=linux/version.h
11302
11303elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
11304
11305 utsrelease=linux/utsrelease.h
11306
11307elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
11308
11309 utsrelease=generated/utsrelease.h
11310
11311fi
11312
11313 if test "$utsrelease"; then :
11314
11315 kernsrcver=`(echo "#include <$utsrelease>";
11316 echo "kernsrcver=UTS_RELEASE") |
11317 cpp -I $kernelbuild/include |
11318 grep "^kernsrcver=" | cut -d \" -f 2`
11319
11320 if test -z "$kernsrcver"; then :
11321
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11323$as_echo "Not found" >&6; }
11324 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
11325
11326fi
11327
11328else
11329
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11331$as_echo "Not found" >&6; }
11332 if test "x$enable_linux_builtin" != xyes; then
11333 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
11334 else
11335 as_fn_error $? "
11336 *** Cannot find UTS_RELEASE definition.
11337 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
11338 fi
11339
11340fi
11341
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
11343$as_echo "$kernsrcver" >&6; }
11344
11345 LINUX=${kernelsrc}
11346 LINUX_OBJ=${kernelbuild}
11347 LINUX_VERSION=${kernsrcver}
11348
11349
11350
11351
11352
11353
11354 modpost=$LINUX/scripts/Makefile.modpost
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
11356$as_echo_n "checking kernel file name for module symbols... " >&6; }
11357 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
11358
11359 if grep -q Modules.symvers $modpost; then :
11360
11361 LINUX_SYMBOLS=Modules.symvers
11362
11363else
11364
11365 LINUX_SYMBOLS=Module.symvers
11366
11367fi
11368
11369 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
11370
11371 as_fn_error $? "
11372 *** Please make sure the kernel devel package for your distribution
c06d4368 11373 *** is installed. If you are building with a custom kernel, make sure the
0e3762ca
CALP
11374 *** kernel is configured, built, and the '--with-linux=PATH' configure
11375 *** option refers to the location of the kernel source." "$LINENO" 5
11376
11377fi
11378
11379else
11380
11381 LINUX_SYMBOLS=NONE
11382
11383fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
11385$as_echo "$LINUX_SYMBOLS" >&6; }
11386
11387
11388
11389
11390
11391# Check whether --with-spl was given.
11392if test "${with_spl+set}" = set; then :
11393 withval=$with_spl; splsrc="$withval"
11394fi
11395
11396
11397
11398# Check whether --with-spl-obj was given.
11399if test "${with_spl_obj+set}" = set; then :
11400 withval=$with_spl_obj; splbuild="$withval"
11401fi
11402
11403
c06d4368
AX
11404
11405# Check whether --with-spl-timeout was given.
11406if test "${with_spl_timeout+set}" = set; then :
11407 withval=$with_spl_timeout; timeout="$withval"
11408else
11409 timeout=0
11410fi
11411
11412
0e3762ca
CALP
11413 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
11414 splsrc1="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
11415 splsrc2="/usr/src/spl-${VERSION}"
11416 splsrc3="../spl/"
11417 splsrc4="$LINUX"
11418
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
11420$as_echo_n "checking spl source directory... " >&6; }
11421 if test -z "${splsrc}"; then :
11422
11423 if test -e "${splsrc0}/spl.release.in"; then :
11424
11425 splsrc=${splsrc0}
11426
11427elif test -e "${splsrc1}/spl.release.in"; then :
11428
11429 splsrc=${splsrc1}
11430
11431elif test -e "${splsrc2}/spl.release.in"; then :
11432
11433 splsrc=${splsrc2}
11434
11435elif test -e "${splsrc3}/spl.release.in"; then :
11436
11437 splsrc=$(readlink -f "${splsrc3}")
11438
11439elif test -e "${splsrc4}/spl.release.in" ; then :
11440
11441 splsrc=${splsrc4}
11442
11443else
11444
11445 splsrc="Not found"
11446
11447fi
11448
11449else
11450
11451 if test "$splsrc" = "NONE"; then :
11452
11453 splbuild=NONE
11454 splsrcver=NONE
11455
11456fi
11457
11458fi
11459
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
11461$as_echo "$splsrc" >&6; }
11462 if test ! -e "$splsrc/spl.release.in"; then :
11463
11464 as_fn_error $? "
11465 *** Please make sure the kmod spl devel package for your distribution
11466 *** is installed then try again. If that fails you can specify the
11467 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
11468
11469fi
11470
c06d4368 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
0e3762ca 11472$as_echo_n "checking spl build directory... " >&6; }
c06d4368
AX
11473 while true; do
11474 if test -z "$splbuild"; then :
0e3762ca 11475
c06d4368 11476 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
0e3762ca 11477
c06d4368 11478 splbuild="${splsrc}/${LINUX_VERSION}"
0e3762ca
CALP
11479
11480elif test -e "${splsrc}/spl_config.h" ; then :
11481
c06d4368 11482 splbuild="${splsrc}"
0e3762ca
CALP
11483
11484else
11485
c06d4368 11486 splbuild="Not found"
0e3762ca
CALP
11487
11488fi
11489
11490fi
c06d4368
AX
11491 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
11492
11493 break;
11494
11495else
11496
11497 sleep 1
11498 timeout=$((timeout-1))
11499
11500fi
11501 done
0e3762ca
CALP
11502
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
11504$as_echo "$splbuild" >&6; }
11505 if ! test -e "$splbuild/spl_config.h"; then :
11506
11507 as_fn_error $? "
11508 *** Please make sure the kmod spl devel <kernel> package for your
11509 *** distribution is installed then try again. If that fails you
11510 *** can specify the location of the spl objects with the
11511 *** '--with-spl-obj=PATH' option." "$LINENO" 5
11512
11513fi
11514
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
11516$as_echo_n "checking spl source version... " >&6; }
11517 if test -r $splbuild/spl_config.h &&
11518 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
11519
11520
11521 splsrcver=`(echo "#include <spl_config.h>";
11522 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
11523 cpp -I $splbuild |
11524 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
11525
11526fi
11527
11528 if test -z "$splsrcver"; then :
11529
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11531$as_echo "Not found" >&6; }
11532 as_fn_error $? "
11533 *** Cannot determine the version of the spl source.
11534 *** Please prepare the spl source before running this script" "$LINENO" 5
11535
11536fi
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
11539$as_echo "$splsrcver" >&6; }
11540
11541 SPL=${splsrc}
11542 SPL_OBJ=${splbuild}
11543 SPL_VERSION=${splsrcver}
11544
11545
11546
11547
11548
c06d4368 11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
0e3762ca
CALP
11550$as_echo_n "checking spl file name for module symbols... " >&6; }
11551 SPL_SYMBOLS=NONE
11552
11553 while true; do
11554 if test -r $SPL_OBJ/Module.symvers; then :
11555
11556 SPL_SYMBOLS=Module.symvers
11557
11558elif test -r $SPL_OBJ/Modules.symvers; then :
11559
11560 SPL_SYMBOLS=Modules.symvers
11561
11562elif test -r $SPL_OBJ/module/Module.symvers; then :
11563
11564 SPL_SYMBOLS=Module.symvers
11565
11566elif test -r $SPL_OBJ/module/Modules.symvers; then :
11567
11568 SPL_SYMBOLS=Modules.symvers
11569
11570fi
11571
11572 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
11573
11574 break;
11575
11576else
11577
11578 sleep 1
11579 timeout=$((timeout-1))
11580
11581fi
11582 done
11583
11584 if test "$SPL_SYMBOLS" = NONE; then :
11585
11586 SPL_SYMBOLS=$LINUX_SYMBOLS
11587
11588fi
11589
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
11591$as_echo "$SPL_SYMBOLS" >&6; }
11592
11593
0e3762ca
CALP
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
11595$as_echo_n "checking whether modules can be built... " >&6; }
11596
11597
11598cat confdefs.h - <<_ACEOF >conftest.c
11599
11600
11601int
11602main (void)
11603{
11604
11605 ;
11606 return 0;
11607}
11608
11609_ACEOF
11610
11611
11612 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11613 echo "obj-m := conftest.o" >build/Makefile
11614 modpost_flag=''
11615 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11616 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11621 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11626 test $ac_status = 0; }; }; then :
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11629$as_echo "yes" >&6; }
11630
11631else
11632 $as_echo "$as_me: failed program was:" >&5
11633sed 's/^/| /' conftest.$ac_ext >&5
11634
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636$as_echo "no" >&6; }
11637 if test "x$enable_linux_builtin" != xyes; then
11638 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
11639 else
11640 as_fn_error $? "
11641 *** Unable to build an empty module.
11642 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
11643 fi
11644
11645
11646
11647fi
11648 rm -Rf build
11649
11650
11651
11652
11653
11654 if test "$ZFS_META_LICENSE" = GPL; then :
11655
11656
11657$as_echo "#define HAVE_GPL_ONLY_SYMBOLS 1" >>confdefs.h
11658
11659
11660fi
11661
11662
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
11665$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
11666
11667
11668cat confdefs.h - <<_ACEOF >conftest.c
11669
11670
11671 #include <linux/module.h>
11672
11673int
11674main (void)
11675{
11676
11677 #ifndef CONFIG_DEBUG_LOCK_ALLOC
11678 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
11679 #endif
11680
11681 ;
11682 return 0;
11683}
11684
11685_ACEOF
11686
11687
11688 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11689 echo "obj-m := conftest.o" >build/Makefile
11690 modpost_flag=''
11691 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11692 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11697 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11702 test $ac_status = 0; }; }; then :
11703
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11705$as_echo "yes" >&6; }
11706
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
11708$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
11709 tmp_flags="$EXTRA_KCFLAGS"
11710
11711
11712cat confdefs.h - <<_ACEOF >conftest.c
11713
11714
11715 #include <linux/module.h>
11716 #include <linux/mutex.h>
11717
11718 MODULE_LICENSE("$ZFS_META_LICENSE");
11719
11720int
11721main (void)
11722{
11723
11724 struct mutex lock;
11725
11726 mutex_init(&lock);
11727 mutex_lock(&lock);
11728 mutex_unlock(&lock);
11729
11730 ;
11731 return 0;
11732}
11733
11734_ACEOF
11735
11736
11737 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11738 echo "obj-m := conftest.o" >build/Makefile
11739 modpost_flag=''
11740 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11741 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11746 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11751 test $ac_status = 0; }; }; then :
11752
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11754$as_echo "no" >&6; }
11755
11756else
11757 $as_echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761$as_echo "yes" >&6; }
11762 as_fn_error $? "
11763 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
11764 *** with the CDDL license and will prevent the module linking stage
11765 *** from succeeding. You must rebuild your kernel without this
11766 *** option enabled." "$LINENO" 5
11767
11768
11769
11770fi
11771 rm -Rf build
11772
11773
11774 EXTRA_KCFLAGS="$tmp_flags"
11775
11776
11777else
11778 $as_echo "$as_me: failed program was:" >&5
11779sed 's/^/| /' conftest.$ac_ext >&5
11780
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782$as_echo "no" >&6; }
11783
11784
11785
11786
11787fi
11788 rm -Rf build
11789
11790
11791
11792
11793
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
11796$as_echo_n "checking block device operation prototypes... " >&6; }
11797 tmp_flags="$EXTRA_KCFLAGS"
11798 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
11799
11800
11801cat confdefs.h - <<_ACEOF >conftest.c
11802
11803
11804 #include <linux/blkdev.h>
11805
11806 int blk_open(struct block_device *bdev, fmode_t mode)
11807 { return 0; }
0e3762ca
CALP
11808 int blk_ioctl(struct block_device *bdev, fmode_t mode,
11809 unsigned x, unsigned long y) { return 0; }
11810 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
11811 unsigned x, unsigned long y) { return 0; }
11812
11813 static const struct block_device_operations
11814 bops __attribute__ ((unused)) = {
11815 .open = blk_open,
c06d4368 11816 .release = NULL,
0e3762ca
CALP
11817 .ioctl = blk_ioctl,
11818 .compat_ioctl = blk_compat_ioctl,
11819 };
11820
11821int
11822main (void)
11823{
11824
11825
11826 ;
11827 return 0;
11828}
11829
11830_ACEOF
11831
11832
11833 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11834 echo "obj-m := conftest.o" >build/Makefile
11835 modpost_flag=''
11836 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11837 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11842 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847 test $ac_status = 0; }; }; then :
11848
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
11850$as_echo "struct block_device" >&6; }
11851
11852$as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
11853
11854
11855else
11856 $as_echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
11860$as_echo "struct inode" >&6; }
11861
11862
11863
c06d4368
AX
11864fi
11865 rm -Rf build
11866
11867
11868 EXTRA_KCFLAGS="$tmp_flags"
11869
11870
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
11872$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
11873 tmp_flags="$EXTRA_KCFLAGS"
11874 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
11875
11876
11877cat confdefs.h - <<_ACEOF >conftest.c
11878
11879
11880 #include <linux/blkdev.h>
11881
11882 void blk_release(struct gendisk *g, fmode_t mode) { return; }
11883
11884 static const struct block_device_operations
11885 bops __attribute__ ((unused)) = {
11886 .open = NULL,
11887 .release = blk_release,
11888 .ioctl = NULL,
11889 .compat_ioctl = NULL,
11890 };
11891
11892int
11893main (void)
11894{
11895
11896
11897 ;
11898 return 0;
11899}
11900
11901_ACEOF
11902
11903
11904 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11905 echo "obj-m := conftest.o" >build/Makefile
11906 modpost_flag=''
11907 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11908 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11913 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11918 test $ac_status = 0; }; }; then :
11919
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
11921$as_echo "void" >&6; }
11922
11923$as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
11924
11925
11926else
11927 $as_echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
11931$as_echo "int" >&6; }
11932
11933
11934
0e3762ca
CALP
11935fi
11936 rm -Rf build
11937
11938
11939 EXTRA_KCFLAGS="$tmp_flags"
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
11942$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
11943
11944
11945cat confdefs.h - <<_ACEOF >conftest.c
11946
11947
11948 #include <linux/types.h>
11949
11950int
11951main (void)
11952{
11953
11954 fmode_t *ptr __attribute__ ((unused));
11955
11956 ;
11957 return 0;
11958}
11959
11960_ACEOF
11961
11962
11963 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11964 echo "obj-m := conftest.o" >build/Makefile
11965 modpost_flag=''
11966 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11967 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11969 (eval $ac_try) 2>&5
11970 ac_status=$?
11971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11972 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
11973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11977 test $ac_status = 0; }; }; then :
11978
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980$as_echo "yes" >&6; }
11981
11982$as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
11983
11984
11985else
11986 $as_echo "$as_me: failed program was:" >&5
11987sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990$as_echo "no" >&6; }
11991
11992
11993
11994fi
11995 rm -Rf build
11996
11997
11998
11999
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
12001$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12002
12003
12004cat confdefs.h - <<_ACEOF >conftest.c
12005
12006
12007 #include <linux/kobject.h>
12008
12009int
12010main (void)
12011{
12012
12013 int val __attribute__ ((unused));
12014 val = KOBJ_NAME_LEN;
12015
12016 ;
12017 return 0;
12018}
12019
12020_ACEOF
12021
12022
12023 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12024 echo "obj-m := conftest.o" >build/Makefile
12025 modpost_flag=''
12026 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12027 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12032 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12034 (eval $ac_try) 2>&5
12035 ac_status=$?
12036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12037 test $ac_status = 0; }; }; then :
12038
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040$as_echo "yes" >&6; }
12041
12042$as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
12043
12044
12045else
12046 $as_echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050$as_echo "no" >&6; }
12051
12052
12053
12054fi
12055 rm -Rf build
12056
12057
12058
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
12061$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12062
12063
12064cat confdefs.h - <<_ACEOF >conftest.c
12065
12066
12067 #include <linux/fs.h>
12068
12069int
12070main (void)
12071{
12072
12073 struct block_device *bdev = NULL;
12074 (void) blkdev_get(bdev, 0, NULL);
12075
12076 ;
12077 return 0;
12078}
12079
12080_ACEOF
12081
12082
12083 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12084 echo "obj-m := conftest.o" >build/Makefile
12085 modpost_flag=''
12086 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12087 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12092 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; }; }; then :
12098
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12100$as_echo "yes" >&6; }
12101
12102$as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
12103
12104
12105else
12106 $as_echo "$as_me: failed program was:" >&5
12107sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110$as_echo "no" >&6; }
12111
12112
12113
12114fi
12115 rm -Rf build
12116
12117
12118
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
12120$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
12121
12122
12123
12124cat confdefs.h - <<_ACEOF >conftest.c
12125
12126
12127 #include <linux/fs.h>
12128
12129int
12130main (void)
12131{
12132
12133 blkdev_get_by_path(NULL, 0, NULL);
12134
12135 ;
12136 return 0;
12137}
12138
12139_ACEOF
12140
12141
12142 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12143 echo "obj-m := conftest.o" >build/Makefile
12144 modpost_flag=''
12145 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12146 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12151 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156 test $ac_status = 0; }; }; then :
12157 rc=0
12158else
12159 $as_echo "$as_me: failed program was:" >&5
12160sed 's/^/| /' conftest.$ac_ext >&5
12161 rc=1
12162
12163
12164fi
12165 rm -Rf build
12166
12167
12168 if test $rc -ne 0; then :
12169
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171$as_echo "no" >&6; }
12172
12173 else
12174 if test "x$enable_linux_builtin" != xyes; then
12175
12176 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12177 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12178 rc=$?
12179 if test $rc -ne 0; then
12180 export=0
12181 for file in fs/block_dev.c; do
12182 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
12183 "$LINUX/$file" 2>/dev/null
12184 rc=$?
12185 if test $rc -eq 0; then
12186 export=1
12187 break;
12188 fi
12189 done
12190 if test $export -eq 0; then :
12191 rc=1
12192 else :
12193 rc=0
12194 fi
12195 else :
12196 rc=0
12197 fi
12198
12199 fi
12200 if test $rc -ne 0; then :
12201
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204
12205 else :
12206
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12208$as_echo "yes" >&6; }
12209
12210$as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
12211
12212
12213 fi
12214 fi
12215
12216
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
12218$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
12219
12220
12221
12222cat confdefs.h - <<_ACEOF >conftest.c
12223
12224
12225 #include <linux/fs.h>
12226
12227int
12228main (void)
12229{
12230
12231 open_bdev_exclusive(NULL, 0, NULL);
12232
12233 ;
12234 return 0;
12235}
12236
12237_ACEOF
12238
12239
12240 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12241 echo "obj-m := conftest.o" >build/Makefile
12242 modpost_flag=''
12243 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12244 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12249 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12254 test $ac_status = 0; }; }; then :
12255 rc=0
12256else
12257 $as_echo "$as_me: failed program was:" >&5
12258sed 's/^/| /' conftest.$ac_ext >&5
12259 rc=1
12260
12261
12262fi
12263 rm -Rf build
12264
12265
12266 if test $rc -ne 0; then :
12267
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269$as_echo "no" >&6; }
12270
12271 else
12272 if test "x$enable_linux_builtin" != xyes; then
12273
12274 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12275 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12276 rc=$?
12277 if test $rc -ne 0; then
12278 export=0
12279 for file in fs/block_dev.c; do
12280 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
12281 "$LINUX/$file" 2>/dev/null
12282 rc=$?
12283 if test $rc -eq 0; then
12284 export=1
12285 break;
12286 fi
12287 done
12288 if test $export -eq 0; then :
12289 rc=1
12290 else :
12291 rc=0
12292 fi
12293 else :
12294 rc=0
12295 fi
12296
12297 fi
12298 if test $rc -ne 0; then :
12299
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301$as_echo "no" >&6; }
12302
12303 else :
12304
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12306$as_echo "yes" >&6; }
12307
12308$as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
12309
12310
12311 fi
12312 fi
12313
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
12316$as_echo_n "checking whether lookup_bdev() is available... " >&6; }
12317
12318
12319
12320cat confdefs.h - <<_ACEOF >conftest.c
12321
12322
12323 #include <linux/fs.h>
12324
12325int
12326main (void)
12327{
12328
12329 lookup_bdev(NULL);
12330
12331 ;
12332 return 0;
12333}
12334
12335_ACEOF
12336
12337
12338 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12339 echo "obj-m := conftest.o" >build/Makefile
12340 modpost_flag=''
12341 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12342 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12347 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12352 test $ac_status = 0; }; }; then :
12353 rc=0
12354else
12355 $as_echo "$as_me: failed program was:" >&5
12356sed 's/^/| /' conftest.$ac_ext >&5
12357 rc=1
12358
12359
12360fi
12361 rm -Rf build
12362
12363
12364 if test $rc -ne 0; then :
12365
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12367$as_echo "no" >&6; }
12368
12369 else
12370 if test "x$enable_linux_builtin" != xyes; then
12371
12372 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
12373 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12374 rc=$?
12375 if test $rc -ne 0; then
12376 export=0
12377 for file in fs/block_dev.c; do
12378 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
12379 "$LINUX/$file" 2>/dev/null
12380 rc=$?
12381 if test $rc -eq 0; then
12382 export=1
12383 break;
12384 fi
12385 done
12386 if test $export -eq 0; then :
12387 rc=1
12388 else :
12389 rc=0
12390 fi
12391 else :
12392 rc=0
12393 fi
12394
12395 fi
12396 if test $rc -ne 0; then :
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
12400
12401 else :
12402
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12404$as_echo "yes" >&6; }
12405
12406$as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
12407
12408
12409 fi
12410 fi
12411
12412
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
12415$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12416
12417
12418cat confdefs.h - <<_ACEOF >conftest.c
12419
12420
12421 #include <linux/buffer_head.h>
12422
12423int
12424main (void)
12425{
12426
12427 struct block_device *bdev = NULL;
12428 invalidate_bdev(bdev);
12429
12430 ;
12431 return 0;
12432}
12433
12434_ACEOF
12435
12436
12437 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12438 echo "obj-m := conftest.o" >build/Makefile
12439 modpost_flag=''
12440 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12441 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12451 test $ac_status = 0; }; }; then :
12452
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12454$as_echo "yes" >&6; }
12455
12456$as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
12457
12458
12459else
12460 $as_echo "$as_me: failed program was:" >&5
12461sed 's/^/| /' conftest.$ac_ext >&5
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
12465
12466
12467
12468fi
12469 rm -Rf build
12470
12471
12472
12473
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
12475$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12476 tmp_flags="$EXTRA_KCFLAGS"
12477 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
12478
12479
12480cat confdefs.h - <<_ACEOF >conftest.c
12481
12482
12483 #include <linux/blkdev.h>
12484
12485int
12486main (void)
12487{
12488
12489 struct block_device *bdev = NULL;
12490 bdev_logical_block_size(bdev);
12491
12492 ;
12493 return 0;
12494}
12495
12496_ACEOF
12497
12498
12499 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12500 echo "obj-m := conftest.o" >build/Makefile
12501 modpost_flag=''
12502 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12503 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12505 (eval $ac_try) 2>&5
12506 ac_status=$?
12507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12508 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; }; }; then :
12514
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12516$as_echo "yes" >&6; }
12517
12518$as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
12519
12520
12521else
12522 $as_echo "$as_me: failed program was:" >&5
12523sed 's/^/| /' conftest.$ac_ext >&5
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
12527
12528
12529
12530fi
12531 rm -Rf build
12532
12533
12534 EXTRA_KCFLAGS="$tmp_flags"
12535
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
12538$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
12539 tmp_flags="$EXTRA_KCFLAGS"
12540 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
12541
12542
12543cat confdefs.h - <<_ACEOF >conftest.c
12544
12545
12546 #include <linux/blkdev.h>
12547
12548int
12549main (void)
12550{
12551
12552 struct block_device *bdev = NULL;
12553 bdev_physical_block_size(bdev);
12554
12555 ;
12556 return 0;
12557}
12558
12559_ACEOF
12560
12561
12562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12563 echo "obj-m := conftest.o" >build/Makefile
12564 modpost_flag=''
12565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12566 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576 test $ac_status = 0; }; }; then :
12577
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12579$as_echo "yes" >&6; }
12580
12581$as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
12582
12583
12584else
12585 $as_echo "$as_me: failed program was:" >&5
12586sed 's/^/| /' conftest.$ac_ext >&5
12587
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589$as_echo "no" >&6; }
12590
12591
12592
12593fi
12594 rm -Rf build
12595
12596
12597 EXTRA_KCFLAGS="$tmp_flags"
12598
12599
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
12601$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12602
12603
12604cat confdefs.h - <<_ACEOF >conftest.c
12605
12606
12607 #include <linux/bio.h>
12608
12609int
12610main (void)
12611{
12612
12613 int flags __attribute__ ((unused));
12614 flags = (1 << BIO_RW_FAILFAST);
12615
12616 ;
12617 return 0;
12618}
12619
12620_ACEOF
12621
12622
12623 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12624 echo "obj-m := conftest.o" >build/Makefile
12625 modpost_flag=''
12626 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12627 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12632 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637 test $ac_status = 0; }; }; then :
12638
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12640$as_echo "yes" >&6; }
12641
12642$as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
12643
12644
12645else
12646 $as_echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650$as_echo "no" >&6; }
12651
12652
12653
12654fi
12655 rm -Rf build
12656
12657
12658
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
12661$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12662
12663
12664cat confdefs.h - <<_ACEOF >conftest.c
12665
12666
12667 #include <linux/bio.h>
12668
12669int
12670main (void)
12671{
12672
12673 int flags __attribute__ ((unused));
12674 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12675 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12676 (1 << BIO_RW_FAILFAST_DRIVER));
12677
12678 ;
12679 return 0;
12680}
12681
12682_ACEOF
12683
12684
12685 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12686 echo "obj-m := conftest.o" >build/Makefile
12687 modpost_flag=''
12688 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12689 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12694 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699 test $ac_status = 0; }; }; then :
12700
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12702$as_echo "yes" >&6; }
12703
12704$as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
12705
12706
12707else
12708 $as_echo "$as_me: failed program was:" >&5
12709sed 's/^/| /' conftest.$ac_ext >&5
12710
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713
12714
12715
12716fi
12717 rm -Rf build
12718
12719
12720
12721
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
12723$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12724
12725
12726cat confdefs.h - <<_ACEOF >conftest.c
12727
12728
12729 #include <linux/bio.h>
12730
12731int
12732main (void)
12733{
12734
12735 int flags __attribute__ ((unused));
12736 flags = REQ_FAILFAST_MASK;
12737
12738 ;
12739 return 0;
12740}
12741
12742_ACEOF
12743
12744
12745 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12746 echo "obj-m := conftest.o" >build/Makefile
12747 modpost_flag=''
12748 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12749 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12759 test $ac_status = 0; }; }; then :
12760
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762$as_echo "yes" >&6; }
12763
12764$as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
12765
12766
12767else
12768 $as_echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772$as_echo "no" >&6; }
12773
12774
12775
12776fi
12777 rm -Rf build
12778
12779
12780
12781
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
12783$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12784
12785
12786cat confdefs.h - <<_ACEOF >conftest.c
12787
12788
12789 #include <linux/bio.h>
12790
12791 void wanted_end_io(struct bio *bio, int x) { return; }
12792
12793 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
12794
12795int
12796main (void)
12797{
12798
12799
12800 ;
12801 return 0;
12802}
12803
12804_ACEOF
12805
12806
12807 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12808 echo "obj-m := conftest.o" >build/Makefile
12809 modpost_flag=''
12810 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12811 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12816 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821 test $ac_status = 0; }; }; then :
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824$as_echo "yes" >&6; }
12825
12826$as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
12827
12828
12829else
12830 $as_echo "$as_me: failed program was:" >&5
12831sed 's/^/| /' conftest.$ac_ext >&5
12832
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12834$as_echo "no" >&6; }
12835
12836
12837
12838fi
12839 rm -Rf build
12840
12841
12842
12843
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
12845$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
12846
12847
12848cat confdefs.h - <<_ACEOF >conftest.c
12849
12850
12851 #include <linux/bio.h>
12852
12853int
12854main (void)
12855{
12856
12857 int flags __attribute__ ((unused));
12858 flags = BIO_RW_SYNC;
12859
12860 ;
12861 return 0;
12862}
12863
12864_ACEOF
12865
12866
12867 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12868 echo "obj-m := conftest.o" >build/Makefile
12869 modpost_flag=''
12870 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12871 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881 test $ac_status = 0; }; }; then :
12882
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12884$as_echo "yes" >&6; }
12885
12886$as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
12887
12888
12889else
12890 $as_echo "$as_me: failed program was:" >&5
12891sed 's/^/| /' conftest.$ac_ext >&5
12892
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894$as_echo "no" >&6; }
12895
12896
12897
12898fi
12899 rm -Rf build
12900
12901
12902
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
12905$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
12906
12907
12908cat confdefs.h - <<_ACEOF >conftest.c
12909
12910
12911 #include <linux/bio.h>
12912
12913int
12914main (void)
12915{
12916
12917 int flags __attribute__ ((unused));
12918 flags = BIO_RW_SYNCIO;
12919
12920 ;
12921 return 0;
12922}
12923
12924_ACEOF
12925
12926
12927 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12928 echo "obj-m := conftest.o" >build/Makefile
12929 modpost_flag=''
12930 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12931 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12938 (eval $ac_try) 2>&5
12939 ac_status=$?
12940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12941 test $ac_status = 0; }; }; then :
12942
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12944$as_echo "yes" >&6; }
12945
12946$as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
12947
12948
12949else
12950 $as_echo "$as_me: failed program was:" >&5
12951sed 's/^/| /' conftest.$ac_ext >&5
12952
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
12955
12956
12957
12958fi
12959 rm -Rf build
12960
12961
12962
12963
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
12965$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
12966
12967
12968cat confdefs.h - <<_ACEOF >conftest.c
12969
12970
12971 #include <linux/bio.h>
12972
12973int
12974main (void)
12975{
12976
12977 int flags __attribute__ ((unused));
12978 flags = REQ_SYNC;
12979
12980 ;
12981 return 0;
12982}
12983
12984_ACEOF
12985
12986
12987 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12988 echo "obj-m := conftest.o" >build/Makefile
12989 modpost_flag=''
12990 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12991 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12996 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13001 test $ac_status = 0; }; }; then :
13002
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13004$as_echo "yes" >&6; }
13005
13006$as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
13007
13008
13009else
13010 $as_echo "$as_me: failed program was:" >&5
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014$as_echo "no" >&6; }
13015
13016
13017
13018fi
13019 rm -Rf build
13020
13021
13022
13023
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
13025$as_echo_n "checking whether blk_end_request() is available... " >&6; }
13026 tmp_flags="$EXTRA_KCFLAGS"
13027 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13028
13029
13030cat confdefs.h - <<_ACEOF >conftest.c
13031
13032
13033 #include <linux/blkdev.h>
13034
13035int
13036main (void)
13037{
13038
13039 struct request *req = NULL;
13040 (void) blk_end_request(req, 0, 0);
13041
13042 ;
13043 return 0;
13044}
13045
13046_ACEOF
13047
13048
13049 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13050 echo "obj-m := conftest.o" >build/Makefile
13051 modpost_flag=''
13052 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13053 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13055 (eval $ac_try) 2>&5
13056 ac_status=$?
13057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13058 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13063 test $ac_status = 0; }; }; then :
13064
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066$as_echo "yes" >&6; }
13067
13068$as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
13069
13070
13071else
13072 $as_echo "$as_me: failed program was:" >&5
13073sed 's/^/| /' conftest.$ac_ext >&5
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076$as_echo "no" >&6; }
13077
13078
13079
13080fi
13081 rm -Rf build
13082
13083
13084
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
13086$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13087
13088
13089cat confdefs.h - <<_ACEOF >conftest.c
13090
13091
13092 #include <linux/module.h>
13093 #include <linux/blkdev.h>
13094
13095 MODULE_LICENSE("CDDL");
13096
13097int
13098main (void)
13099{
13100
13101 struct request *req = NULL;
13102 (void) blk_end_request(req, 0, 0);
13103
13104 ;
13105 return 0;
13106}
13107
13108_ACEOF
13109
13110
13111 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13112 echo "obj-m := conftest.o" >build/Makefile
13113 modpost_flag=''
13114 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13115 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13120 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13122 (eval $ac_try) 2>&5
13123 ac_status=$?
13124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13125 test $ac_status = 0; }; }; then :
13126
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128$as_echo "no" >&6; }
13129
13130else
13131 $as_echo "$as_me: failed program was:" >&5
13132sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13135$as_echo "yes" >&6; }
13136
13137$as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
13138
13139
13140
13141
13142fi
13143 rm -Rf build
13144
13145
13146 EXTRA_KCFLAGS="$tmp_flags"
13147
13148
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
13150$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13151 tmp_flags="$EXTRA_KCFLAGS"
13152 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13153
13154
13155cat confdefs.h - <<_ACEOF >conftest.c
13156
13157
13158 #include <linux/blkdev.h>
13159
13160int
13161main (void)
13162{
13163
13164 struct request_queue *q = NULL;
13165 (void) blk_queue_flush(q, REQ_FLUSH);
13166
13167 ;
13168 return 0;
13169}
13170
13171_ACEOF
13172
13173
13174 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13175 echo "obj-m := conftest.o" >build/Makefile
13176 modpost_flag=''
13177 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13178 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; }; }; then :
13189
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13191$as_echo "yes" >&6; }
13192
13193$as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
13194
13195
13196else
13197 $as_echo "$as_me: failed program was:" >&5
13198sed 's/^/| /' conftest.$ac_ext >&5
13199
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13201$as_echo "no" >&6; }
13202
13203
13204
13205fi
13206 rm -Rf build
13207
13208
13209
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
13211$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13212
13213
13214cat confdefs.h - <<_ACEOF >conftest.c
13215
13216
13217 #include <linux/module.h>
13218 #include <linux/blkdev.h>
13219
13220 MODULE_LICENSE("CDDL");
13221
13222int
13223main (void)
13224{
13225
13226 struct request_queue *q = NULL;
13227 (void) blk_queue_flush(q, REQ_FLUSH);
13228
13229 ;
13230 return 0;
13231}
13232
13233_ACEOF
13234
13235
13236 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13237 echo "obj-m := conftest.o" >build/Makefile
13238 modpost_flag=''
13239 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13240 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
13244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13245 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }; }; then :
13251
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
13254
13255else
13256 $as_echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13260$as_echo "yes" >&6; }
13261
13262$as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
13263
13264
13265
13266
13267fi
13268 rm -Rf build
13269
13270
13271 EXTRA_KCFLAGS="$tmp_flags"
13272
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
13275$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13276 tmp_flags="$EXTRA_KCFLAGS"
13277 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13278
13279
13280cat confdefs.h - <<_ACEOF >conftest.c
13281
13282
13283 #include <linux/blkdev.h>
13284
13285int
13286main (void)
13287{
13288
13289 struct request_queue *q = NULL;
13290 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13291
13292 ;
13293 return 0;
13294}
13295
13296_ACEOF
13297
13298
13299 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13300 echo "obj-m := conftest.o" >build/Makefile
13301 modpost_flag=''
13302 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13303 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13305 (eval $ac_try) 2>&5
13306 ac_status=$?
13307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13308 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13310 (eval $ac_try) 2>&5
13311 ac_status=$?
13312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13313 test $ac_status = 0; }; }; then :
13314
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13316$as_echo "yes" >&6; }
13317
13318$as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
13319
13320
13321else
13322 $as_echo "$as_me: failed program was:" >&5
13323sed 's/^/| /' conftest.$ac_ext >&5
13324
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13326$as_echo "no" >&6; }
13327
13328
13329
13330fi
13331 rm -Rf build
13332
13333
13334 EXTRA_KCFLAGS="$tmp_flags"
13335
13336
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
13338$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
13339 tmp_flags="$EXTRA_KCFLAGS"
13340 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13341
13342
13343cat confdefs.h - <<_ACEOF >conftest.c
13344
13345
13346 #include <linux/blkdev.h>
13347
13348int
13349main (void)
13350{
13351
13352 struct request_queue *q = NULL;
13353 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
13354
13355 ;
13356 return 0;
13357}
13358
13359_ACEOF
13360
13361
13362 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13363 echo "obj-m := conftest.o" >build/Makefile
13364 modpost_flag=''
13365 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13366 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13376 test $ac_status = 0; }; }; then :
13377
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13379$as_echo "yes" >&6; }
13380
13381$as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
13382
13383
13384else
13385 $as_echo "$as_me: failed program was:" >&5
13386sed 's/^/| /' conftest.$ac_ext >&5
13387
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389$as_echo "no" >&6; }
13390
13391
13392
13393fi
13394 rm -Rf build
13395
13396
13397 EXTRA_KCFLAGS="$tmp_flags"
13398
13399
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
13401$as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
13402 tmp_flags="$EXTRA_KCFLAGS"
13403 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13404
13405
13406cat confdefs.h - <<_ACEOF >conftest.c
13407
13408
13409 #include <linux/blkdev.h>
13410
13411int
13412main (void)
13413{
13414
13415 struct request_queue *q = NULL;
13416 unsigned short block_size = 1;
13417 (void) blk_queue_physical_block_size(q, block_size);
13418
13419 ;
13420 return 0;
13421}
13422
13423_ACEOF
13424
13425
13426 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13427 echo "obj-m := conftest.o" >build/Makefile
13428 modpost_flag=''
13429 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13430 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13432 (eval $ac_try) 2>&5
13433 ac_status=$?
13434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13435 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13440 test $ac_status = 0; }; }; then :
13441
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13443$as_echo "yes" >&6; }
13444
13445$as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13446
13447
13448else
13449 $as_echo "$as_me: failed program was:" >&5
13450sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
13454
13455
13456
13457fi
13458 rm -Rf build
13459
13460
13461 EXTRA_KCFLAGS="$tmp_flags"
13462
13463
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
13465$as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
13466 tmp_flags="$EXTRA_KCFLAGS"
13467 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13468
13469
13470cat confdefs.h - <<_ACEOF >conftest.c
13471
13472
13473 #include <linux/blkdev.h>
13474
13475int
13476main (void)
13477{
13478
13479 struct request_queue *q = NULL;
13480 unsigned int opt = 1;
13481 (void) blk_queue_io_opt(q, opt);
13482
13483 ;
13484 return 0;
13485}
13486
13487_ACEOF
13488
13489
13490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13491 echo "obj-m := conftest.o" >build/Makefile
13492 modpost_flag=''
13493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13494 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13496 (eval $ac_try) 2>&5
13497 ac_status=$?
13498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13499 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13501 (eval $ac_try) 2>&5
13502 ac_status=$?
13503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13504 test $ac_status = 0; }; }; then :
13505
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13507$as_echo "yes" >&6; }
13508
13509$as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
13510
13511
13512else
13513 $as_echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13517$as_echo "no" >&6; }
13518
13519
13520
13521fi
13522 rm -Rf build
13523
13524
13525 EXTRA_KCFLAGS="$tmp_flags"
13526
13527
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
13529$as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
13530 tmp_flags="$EXTRA_KCFLAGS"
13531 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13532
13533
13534cat confdefs.h - <<_ACEOF >conftest.c
13535
13536
13537 #include <linux/blkdev.h>
13538
13539int
13540main (void)
13541{
13542
13543 struct request_queue *q = NULL;
13544 (void) blk_queue_nonrot(q);
13545
13546 ;
13547 return 0;
13548}
13549
13550_ACEOF
13551
13552
13553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13554 echo "obj-m := conftest.o" >build/Makefile
13555 modpost_flag=''
13556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13557 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13567 test $ac_status = 0; }; }; then :
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570$as_echo "yes" >&6; }
13571
13572$as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
13573
13574
13575else
13576 $as_echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580$as_echo "no" >&6; }
13581
13582
13583
13584fi
13585 rm -Rf build
13586
13587
13588 EXTRA_KCFLAGS="$tmp_flags"
13589
13590
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
13592$as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
13593 tmp_flags="$EXTRA_KCFLAGS"
13594 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13595
13596
13597cat confdefs.h - <<_ACEOF >conftest.c
13598
13599
13600 #include <linux/blkdev.h>
13601
13602int
13603main (void)
13604{
13605
13606 struct request_queue *q = NULL;
13607 (void) blk_queue_discard(q);
13608
13609 ;
13610 return 0;
13611}
13612
13613_ACEOF
13614
13615
13616 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13617 echo "obj-m := conftest.o" >build/Makefile
13618 modpost_flag=''
13619 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13620 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13630 test $ac_status = 0; }; }; then :
13631
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13633$as_echo "yes" >&6; }
13634
13635$as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
13636
13637
13638else
13639 $as_echo "$as_me: failed program was:" >&5
13640sed 's/^/| /' conftest.$ac_ext >&5
13641
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643$as_echo "no" >&6; }
13644
13645
13646
13647fi
13648 rm -Rf build
13649
13650
13651 EXTRA_KCFLAGS="$tmp_flags"
13652
13653
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
13655$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13656 tmp_flags="$EXTRA_KCFLAGS"
13657 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13658
13659
13660cat confdefs.h - <<_ACEOF >conftest.c
13661
13662
13663 #include <linux/blkdev.h>
13664
13665int
13666main (void)
13667{
13668
13669 struct request_queue *q = NULL;
13670 (void) blk_fetch_request(q);
13671
13672 ;
13673 return 0;
13674}
13675
13676_ACEOF
13677
13678
13679 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13680 echo "obj-m := conftest.o" >build/Makefile
13681 modpost_flag=''
13682 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13683 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13688 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13690 (eval $ac_try) 2>&5
13691 ac_status=$?
13692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13693 test $ac_status = 0; }; }; then :
13694
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13696$as_echo "yes" >&6; }
13697
13698$as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
13699
13700
13701else
13702 $as_echo "$as_me: failed program was:" >&5
13703sed 's/^/| /' conftest.$ac_ext >&5
13704
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706$as_echo "no" >&6; }
13707
13708
13709
13710fi
13711 rm -Rf build
13712
13713
13714 EXTRA_KCFLAGS="$tmp_flags"
13715
13716
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
13718$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13719 tmp_flags="$EXTRA_KCFLAGS"
13720 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13721
13722
13723cat confdefs.h - <<_ACEOF >conftest.c
13724
13725
13726 #include <linux/blkdev.h>
13727
13728int
13729main (void)
13730{
13731
13732 struct request_queue *q = NULL;
13733 struct request *req = NULL;
13734 blk_requeue_request(q, req);
13735
13736 ;
13737 return 0;
13738}
13739
13740_ACEOF
13741
13742
13743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13744 echo "obj-m := conftest.o" >build/Makefile
13745 modpost_flag=''
13746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13747 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13752 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757 test $ac_status = 0; }; }; then :
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13760$as_echo "yes" >&6; }
13761
13762$as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
13763
13764
13765else
13766 $as_echo "$as_me: failed program was:" >&5
13767sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13770$as_echo "no" >&6; }
13771
13772
13773
13774fi
13775 rm -Rf build
13776
13777
13778 EXTRA_KCFLAGS="$tmp_flags"
13779
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
13782$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13783 tmp_flags="$EXTRA_KCFLAGS"
13784 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13785
13786
13787cat confdefs.h - <<_ACEOF >conftest.c
13788
13789
13790 #include <linux/blkdev.h>
13791
13792int
13793main (void)
13794{
13795
13796 struct request *req = NULL;
13797 (void) blk_rq_bytes(req);
13798
13799 ;
13800 return 0;
13801}
13802
13803_ACEOF
13804
13805
13806 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13807 echo "obj-m := conftest.o" >build/Makefile
13808 modpost_flag=''
13809 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13810 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13815 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820 test $ac_status = 0; }; }; then :
13821
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823$as_echo "yes" >&6; }
13824
13825$as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
13826
13827
13828else
13829 $as_echo "$as_me: failed program was:" >&5
13830sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
13834
13835
13836
13837fi
13838 rm -Rf build
13839
13840
13841
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
13843$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13844
13845
13846cat confdefs.h - <<_ACEOF >conftest.c
13847
13848
13849 #include <linux/module.h>
13850 #include <linux/blkdev.h>
13851
13852 MODULE_LICENSE("CDDL");
13853
13854int
13855main (void)
13856{
13857
13858 struct request *req = NULL;
13859 (void) blk_rq_bytes(req);
13860
13861 ;
13862 return 0;
13863}
13864
13865_ACEOF
13866
13867
13868 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13869 echo "obj-m := conftest.o" >build/Makefile
13870 modpost_flag=''
13871 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13872 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13882 test $ac_status = 0; }; }; then :
13883
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885$as_echo "no" >&6; }
13886
13887else
13888 $as_echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13892$as_echo "yes" >&6; }
13893
13894$as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
13895
13896
13897
13898
13899fi
13900 rm -Rf build
13901
13902
13903 EXTRA_KCFLAGS="$tmp_flags"
13904
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
13907$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13908 tmp_flags="$EXTRA_KCFLAGS"
13909 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13910
13911
13912cat confdefs.h - <<_ACEOF >conftest.c
13913
13914
13915 #include <linux/blkdev.h>
13916
13917int
13918main (void)
13919{
13920
13921 struct request *req = NULL;
13922 (void) blk_rq_pos(req);
13923
13924 ;
13925 return 0;
13926}
13927
13928_ACEOF
13929
13930
13931 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13932 echo "obj-m := conftest.o" >build/Makefile
13933 modpost_flag=''
13934 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13935 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; }; }; then :
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13948$as_echo "yes" >&6; }
13949
13950$as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
13951
13952
13953else
13954 $as_echo "$as_me: failed program was:" >&5
13955sed 's/^/| /' conftest.$ac_ext >&5
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958$as_echo "no" >&6; }
13959
13960
13961
13962fi
13963 rm -Rf build
13964
13965
13966 EXTRA_KCFLAGS="$tmp_flags"
13967
13968
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
13970$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13971 tmp_flags="$EXTRA_KCFLAGS"
13972 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
13973
13974
13975cat confdefs.h - <<_ACEOF >conftest.c
13976
13977
13978 #include <linux/blkdev.h>
13979
13980int
13981main (void)
13982{
13983
13984 struct request *req = NULL;
13985 (void) blk_rq_sectors(req);
13986
13987 ;
13988 return 0;
13989}
13990
13991_ACEOF
13992
13993
13994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13995 echo "obj-m := conftest.o" >build/Makefile
13996 modpost_flag=''
13997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13998 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14005 (eval $ac_try) 2>&5
14006 ac_status=$?
14007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008 test $ac_status = 0; }; }; then :
14009
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14011$as_echo "yes" >&6; }
14012
14013$as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
14014
14015
14016else
14017 $as_echo "$as_me: failed program was:" >&5
14018sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021$as_echo "no" >&6; }
14022
14023
14024
14025fi
14026 rm -Rf build
14027
14028
14029 EXTRA_KCFLAGS="$tmp_flags"
14030
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
14033$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14034 tmp_flags="$EXTRA_KCFLAGS"
14035 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14036
14037
14038cat confdefs.h - <<_ACEOF >conftest.c
14039
14040
14041 #include <linux/blkdev.h>
14042
14043int
14044main (void)
14045{
14046
14047 struct gendisk *disk = NULL;
14048 (void) get_disk_ro(disk);
14049
14050 ;
14051 return 0;
14052}
14053
14054_ACEOF
14055
14056
14057 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14058 echo "obj-m := conftest.o" >build/Makefile
14059 modpost_flag=''
14060 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; }; }; then :
14072
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074$as_echo "yes" >&6; }
14075
14076$as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
14077
14078
14079else
14080 $as_echo "$as_me: failed program was:" >&5
14081sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084$as_echo "no" >&6; }
14085
14086
14087
14088fi
14089 rm -Rf build
14090
14091
14092 EXTRA_KCFLAGS="$tmp_flags"
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
14095$as_echo_n "checking whether get_gendisk() is available... " >&6; }
14096
14097
14098
14099cat confdefs.h - <<_ACEOF >conftest.c
14100
14101
14102 #include <linux/genhd.h>
14103
14104int
14105main (void)
14106{
14107
14108 get_gendisk(0, NULL);
14109
14110 ;
14111 return 0;
14112}
14113
14114_ACEOF
14115
14116
14117 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14118 echo "obj-m := conftest.o" >build/Makefile
14119 modpost_flag=''
14120 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14121 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14126 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14128 (eval $ac_try) 2>&5
14129 ac_status=$?
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; }; }; then :
14132 rc=0
14133else
14134 $as_echo "$as_me: failed program was:" >&5
14135sed 's/^/| /' conftest.$ac_ext >&5
14136 rc=1
14137
14138
14139fi
14140 rm -Rf build
14141
14142
14143 if test $rc -ne 0; then :
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146$as_echo "no" >&6; }
14147
14148 else
14149 if test "x$enable_linux_builtin" != xyes; then
14150
14151 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14152 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14153 rc=$?
14154 if test $rc -ne 0; then
14155 export=0
14156 for file in block/genhd.c; do
14157 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
14158 "$LINUX/$file" 2>/dev/null
14159 rc=$?
14160 if test $rc -eq 0; then
14161 export=1
14162 break;
14163 fi
14164 done
14165 if test $export -eq 0; then :
14166 rc=1
14167 else :
14168 rc=0
14169 fi
14170 else :
14171 rc=0
14172 fi
14173
14174 fi
14175 if test $rc -ne 0; then :
14176
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14178$as_echo "no" >&6; }
14179
14180 else :
14181
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14183$as_echo "yes" >&6; }
14184
14185$as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
14186
14187
14188 fi
14189 fi
14190
14191
14192
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
14194$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14195 tmp_flags="$EXTRA_KCFLAGS"
14196 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14197
14198
14199cat confdefs.h - <<_ACEOF >conftest.c
14200
14201
14202 #include <linux/blkdev.h>
14203
14204int
14205main (void)
14206{
14207
14208 struct request *req = NULL;
14209 (void) rq_is_sync(req);
14210
14211 ;
14212 return 0;
14213}
14214
14215_ACEOF
14216
14217
14218 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14219 echo "obj-m := conftest.o" >build/Makefile
14220 modpost_flag=''
14221 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14222 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14229 (eval $ac_try) 2>&5
14230 ac_status=$?
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; }; }; then :
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14235$as_echo "yes" >&6; }
14236
14237$as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
14238
14239
14240else
14241 $as_echo "$as_me: failed program was:" >&5
14242sed 's/^/| /' conftest.$ac_ext >&5
14243
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245$as_echo "no" >&6; }
14246
14247
14248
14249fi
14250 rm -Rf build
14251
14252
14253 EXTRA_KCFLAGS="$tmp_flags"
14254
14255
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() is available" >&5
14257$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14258 tmp_flags="$EXTRA_KCFLAGS"
14259 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
14260
14261
14262cat confdefs.h - <<_ACEOF >conftest.c
14263
14264
14265 #include <linux/blkdev.h>
14266
14267int
14268main (void)
14269{
14270
14271 struct bio_vec *bv;
14272 struct req_iterator iter;
14273 struct request *req = NULL;
14274 rq_for_each_segment(bv, req, iter) { }
14275
14276 ;
14277 return 0;
14278}
14279
14280_ACEOF
14281
14282
14283 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14284 echo "obj-m := conftest.o" >build/Makefile
14285 modpost_flag=''
14286 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14287 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14292 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14294 (eval $ac_try) 2>&5
14295 ac_status=$?
14296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297 test $ac_status = 0; }; }; then :
14298
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14300$as_echo "yes" >&6; }
14301
14302$as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
14303
14304
14305else
14306 $as_echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5
14308
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310$as_echo "no" >&6; }
14311
14312
14313
14314fi
14315 rm -Rf build
14316
14317
14318 EXTRA_KCFLAGS="$tmp_flags"
14319
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
14322$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
14323
14324
14325cat confdefs.h - <<_ACEOF >conftest.c
14326
14327
14328 #include <linux/blkdev.h>
14329
14330int
14331main (void)
14332{
14333
14334 struct queue_limits ql __attribute__ ((unused));
14335
14336 ql.discard_granularity = 0;
14337
14338 ;
14339 return 0;
14340}
14341
14342_ACEOF
14343
14344
14345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14346 echo "obj-m := conftest.o" >build/Makefile
14347 modpost_flag=''
14348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14349 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14351 (eval $ac_try) 2>&5
14352 ac_status=$?
14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14354 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14356 (eval $ac_try) 2>&5
14357 ac_status=$?
14358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14359 test $ac_status = 0; }; }; then :
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14362$as_echo "yes" >&6; }
14363
14364$as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
14365
14366
14367else
14368 $as_echo "$as_me: failed program was:" >&5
14369sed 's/^/| /' conftest.$ac_ext >&5
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372$as_echo "no" >&6; }
14373
14374
14375
14376fi
14377 rm -Rf build
14378
14379
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
14382$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14383
14384
14385cat confdefs.h - <<_ACEOF >conftest.c
14386
14387
14388 #include <linux/fs.h>
14389 #include <linux/xattr.h>
14390
14391 const struct xattr_handler xattr_test_handler = {
14392 .prefix = "test",
14393 .get = NULL,
14394 .set = NULL,
14395 };
14396
14397 const struct xattr_handler *xattr_handlers[] = {
14398 &xattr_test_handler,
14399 };
14400
14401int
14402main (void)
14403{
14404
14405 struct super_block sb __attribute__ ((unused));
14406
14407 sb.s_xattr = xattr_handlers;
14408
14409 ;
14410 return 0;
14411}
14412
14413_ACEOF
14414
14415
14416 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14417 echo "obj-m := conftest.o" >build/Makefile
14418 modpost_flag=''
14419 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14420 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14422 (eval $ac_try) 2>&5
14423 ac_status=$?
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14430 test $ac_status = 0; }; }; then :
14431
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14433$as_echo "yes" >&6; }
14434
14435$as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
14436
14437
14438else
14439 $as_echo "$as_me: failed program was:" >&5
14440sed 's/^/| /' conftest.$ac_ext >&5
14441
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14443$as_echo "no" >&6; }
14444
14445
14446
14447fi
14448 rm -Rf build
14449
14450
14451
14452
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
14454$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14455
14456
14457cat confdefs.h - <<_ACEOF >conftest.c
14458
14459
14460 #include <linux/xattr.h>
14461
14462int
14463main (void)
14464{
14465
14466 int (*get)(struct dentry *dentry, const char *name,
14467 void *buffer, size_t size, int handler_flags) = NULL;
14468 struct xattr_handler xops __attribute__ ((unused));
14469
14470 xops.get = get;
14471
14472 ;
14473 return 0;
14474}
14475
14476_ACEOF
14477
14478
14479 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14480 echo "obj-m := conftest.o" >build/Makefile
14481 modpost_flag=''
14482 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14483 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14488 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14490 (eval $ac_try) 2>&5
14491 ac_status=$?
14492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14493 test $ac_status = 0; }; }; then :
14494
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14496$as_echo "yes" >&6; }
14497
14498$as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
14499
14500
14501else
14502 $as_echo "$as_me: failed program was:" >&5
14503sed 's/^/| /' conftest.$ac_ext >&5
14504
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506$as_echo "no" >&6; }
14507
14508
14509
14510fi
14511 rm -Rf build
14512
14513
14514
14515
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
14517$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14518
14519
14520cat confdefs.h - <<_ACEOF >conftest.c
14521
14522
14523 #include <linux/xattr.h>
14524
14525int
14526main (void)
14527{
14528
14529 int (*set)(struct dentry *dentry, const char *name,
14530 const void *buffer, size_t size, int flags,
14531 int handler_flags) = NULL;
14532 struct xattr_handler xops __attribute__ ((unused));
14533
14534 xops.set = set;
14535
14536 ;
14537 return 0;
14538}
14539
14540_ACEOF
14541
14542
14543 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14544 echo "obj-m := conftest.o" >build/Makefile
14545 modpost_flag=''
14546 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14547 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14552 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14557 test $ac_status = 0; }; }; then :
14558
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14560$as_echo "yes" >&6; }
14561
14562$as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
14563
14564
14565else
14566 $as_echo "$as_me: failed program was:" >&5
14567sed 's/^/| /' conftest.$ac_ext >&5
14568
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570$as_echo "no" >&6; }
14571
14572
14573
14574fi
14575 rm -Rf build
14576
14577
14578
14579
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
14581$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
14582
14583
14584
14585cat confdefs.h - <<_ACEOF >conftest.c
14586
14587
14588 #include <linux/fs.h>
14589
14590 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
14591 static struct super_operations sops __attribute__ ((unused)) = {
14592 .show_options = show_options,
14593 };
14594
14595int
14596main (void)
14597{
14598
14599
14600 ;
14601 return 0;
14602}
14603
14604_ACEOF
14605
14606
14607 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14608 echo "obj-m := conftest.o" >build/Makefile
14609 modpost_flag=''
14610 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14611 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14616 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621 test $ac_status = 0; }; }; then :
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624$as_echo "yes" >&6; }
14625
14626$as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
14627
14628
14629else
14630 $as_echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634$as_echo "no" >&6; }
14635
14636
14637
14638fi
14639 rm -Rf build
14640
14641
14642
14643
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
14645$as_echo_n "checking whether fops->fsync() wants... " >&6; }
14646
14647
14648
14649cat confdefs.h - <<_ACEOF >conftest.c
14650
14651
14652 #include <linux/fs.h>
14653
14654 int test_fsync(struct file *f, struct dentry *dentry, int x)
14655 { return 0; }
14656
14657 static const struct file_operations
14658 fops __attribute__ ((unused)) = {
14659 .fsync = test_fsync,
14660 };
14661
14662int
14663main (void)
14664{
14665
14666
14667 ;
14668 return 0;
14669}
14670
14671_ACEOF
14672
14673
14674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14675 echo "obj-m := conftest.o" >build/Makefile
14676 modpost_flag=''
14677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14678 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14680 (eval $ac_try) 2>&5
14681 ac_status=$?
14682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14688 test $ac_status = 0; }; }; then :
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
14691$as_echo "dentry" >&6; }
14692
14693$as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
14694
14695
14696else
14697 $as_echo "$as_me: failed program was:" >&5
14698sed 's/^/| /' conftest.$ac_ext >&5
14699
14700
14701
14702
14703fi
14704 rm -Rf build
14705
14706
14707
14708
14709
14710
14711cat confdefs.h - <<_ACEOF >conftest.c
14712
14713
14714 #include <linux/fs.h>
14715
14716 int test_fsync(struct file *f, int x) { return 0; }
14717
14718 static const struct file_operations
14719 fops __attribute__ ((unused)) = {
14720 .fsync = test_fsync,
14721 };
14722
14723int
14724main (void)
14725{
14726
14727
14728 ;
14729 return 0;
14730}
14731
14732_ACEOF
14733
14734
14735 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14736 echo "obj-m := conftest.o" >build/Makefile
14737 modpost_flag=''
14738 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14739 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14744 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14745 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14749 test $ac_status = 0; }; }; then :
14750
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
14752$as_echo "no dentry" >&6; }
14753
14754$as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
14755
14756
14757else
14758 $as_echo "$as_me: failed program was:" >&5
14759sed 's/^/| /' conftest.$ac_ext >&5
14760
14761
14762
14763
14764fi
14765 rm -Rf build
14766
14767
14768
14769
14770
14771
14772cat confdefs.h - <<_ACEOF >conftest.c
14773
14774
14775 #include <linux/fs.h>
14776
14777 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
14778 { return 0; }
14779
14780 static const struct file_operations
14781 fops __attribute__ ((unused)) = {
14782 .fsync = test_fsync,
14783 };
14784
14785int
14786main (void)
14787{
14788
14789
14790 ;
14791 return 0;
14792}
14793
14794_ACEOF
14795
14796
14797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14798 echo "obj-m := conftest.o" >build/Makefile
14799 modpost_flag=''
14800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14801 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14811 test $ac_status = 0; }; }; then :
14812
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
14814$as_echo "range" >&6; }
14815
14816$as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
14817
14818
14819else
14820 $as_echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823
14824
14825
14826fi
14827 rm -Rf build
14828
14829
14830
14831
14832
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
14834$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14835
14836
14837cat confdefs.h - <<_ACEOF >conftest.c
14838
14839
14840 #include <linux/fs.h>
14841 void evict_inode (struct inode * t) { return; }
14842 static struct super_operations sops __attribute__ ((unused)) = {
14843 .evict_inode = evict_inode,
14844 };
14845
14846int
14847main (void)
14848{
14849
14850
14851 ;
14852 return 0;
14853}
14854
14855_ACEOF
14856
14857
14858 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14859 echo "obj-m := conftest.o" >build/Makefile
14860 modpost_flag=''
14861 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14862 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14864 (eval $ac_try) 2>&5
14865 ac_status=$?
14866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14869 (eval $ac_try) 2>&5
14870 ac_status=$?
14871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 test $ac_status = 0; }; }; then :
14873
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14875$as_echo "yes" >&6; }
14876
14877$as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
14878
14879
14880else
14881 $as_echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14885$as_echo "no" >&6; }
14886
14887
14888
14889fi
14890 rm -Rf build
14891
14892
14893
14894
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
14896$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
14897
14898
14899cat confdefs.h - <<_ACEOF >conftest.c
14900
14901
14902 #include <linux/fs.h>
14903
14904 void dirty_inode(struct inode *a, int b) { return; }
14905
14906 static const struct super_operations
14907 sops __attribute__ ((unused)) = {
14908 .dirty_inode = dirty_inode,
14909 };
14910
14911int
14912main (void)
14913{
14914
14915
14916 ;
14917 return 0;
14918}
14919
14920_ACEOF
14921
14922
14923 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14924 echo "obj-m := conftest.o" >build/Makefile
14925 modpost_flag=''
14926 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14927 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14929 (eval $ac_try) 2>&5
14930 ac_status=$?
14931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14932 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; }; }; then :
14938
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14940$as_echo "yes" >&6; }
14941
14942$as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
14943
14944
14945else
14946 $as_echo "$as_me: failed program was:" >&5
14947sed 's/^/| /' conftest.$ac_ext >&5
14948
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14950$as_echo "no" >&6; }
14951
14952
14953
14954fi
14955 rm -Rf build
14956
14957
14958
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
14961$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
14962
14963
14964cat confdefs.h - <<_ACEOF >conftest.c
14965
14966
14967 #include <linux/fs.h>
14968
14969 int nr_cached_objects(struct super_block *sb) { return 0; }
14970
14971 static const struct super_operations
14972 sops __attribute__ ((unused)) = {
14973 .nr_cached_objects = nr_cached_objects,
14974 };
14975
14976int
14977main (void)
14978{
14979
14980
14981 ;
14982 return 0;
14983}
14984
14985_ACEOF
14986
14987
14988 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14989 echo "obj-m := conftest.o" >build/Makefile
14990 modpost_flag=''
14991 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14992 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14997 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15002 test $ac_status = 0; }; }; then :
15003
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15005$as_echo "yes" >&6; }
15006
15007$as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
15008
15009
15010else
15011 $as_echo "$as_me: failed program was:" >&5
15012sed 's/^/| /' conftest.$ac_ext >&5
15013
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015$as_echo "no" >&6; }
15016
15017
15018
15019fi
15020 rm -Rf build
15021
15022
15023
15024
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
15026$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15027
15028
15029cat confdefs.h - <<_ACEOF >conftest.c
15030
15031
15032 #include <linux/fs.h>
15033
15034 void free_cached_objects(struct super_block *sb, int x)
15035 { return; }
15036
15037 static const struct super_operations
15038 sops __attribute__ ((unused)) = {
15039 .free_cached_objects = free_cached_objects,
15040 };
15041
15042int
15043main (void)
15044{
15045
15046
15047 ;
15048 return 0;
15049}
15050
15051_ACEOF
15052
15053
15054 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15055 echo "obj-m := conftest.o" >build/Makefile
15056 modpost_flag=''
15057 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15058 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15063 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15065 (eval $ac_try) 2>&5
15066 ac_status=$?
15067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068 test $ac_status = 0; }; }; then :
15069
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15071$as_echo "yes" >&6; }
15072
15073$as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
15074
15075
15076else
15077 $as_echo "$as_me: failed program was:" >&5
15078sed 's/^/| /' conftest.$ac_ext >&5
15079
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15081$as_echo "no" >&6; }
15082
15083
15084
15085fi
15086 rm -Rf build
15087
15088
15089
15090
15091
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
15093$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15094
15095
15096cat confdefs.h - <<_ACEOF >conftest.c
15097
15098
15099 #include <linux/fs.h>
15100
15101 long test_fallocate(struct file *file, int mode,
15102 loff_t offset, loff_t len) { return 0; }
15103
15104 static const struct file_operations
15105 fops __attribute__ ((unused)) = {
15106 .fallocate = test_fallocate,
15107 };
15108
15109int
15110main (void)
15111{
15112
15113
15114 ;
15115 return 0;
15116}
15117
15118_ACEOF
15119
15120
15121 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15122 echo "obj-m := conftest.o" >build/Makefile
15123 modpost_flag=''
15124 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15125 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15135 test $ac_status = 0; }; }; then :
15136
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15138$as_echo "yes" >&6; }
15139
15140$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
15141
15142
15143else
15144 $as_echo "$as_me: failed program was:" >&5
15145sed 's/^/| /' conftest.$ac_ext >&5
15146
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15148$as_echo "no" >&6; }
15149
15150
15151
15152fi
15153 rm -Rf build
15154
15155
15156
15157
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
15159$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15160
15161
15162cat confdefs.h - <<_ACEOF >conftest.c
15163
15164
15165 #include <linux/fs.h>
15166
15167 long test_fallocate(struct inode *inode, int mode,
15168 loff_t offset, loff_t len) { return 0; }
15169
15170 static const struct inode_operations
15171 fops __attribute__ ((unused)) = {
15172 .fallocate = test_fallocate,
15173 };
15174
15175int
15176main (void)
15177{
15178
15179
15180 ;
15181 return 0;
15182}
15183
15184_ACEOF
15185
15186
15187 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15188 echo "obj-m := conftest.o" >build/Makefile
15189 modpost_flag=''
15190 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15191 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15193 (eval $ac_try) 2>&5
15194 ac_status=$?
15195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15196 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15198 (eval $ac_try) 2>&5
15199 ac_status=$?
15200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15201 test $ac_status = 0; }; }; then :
15202
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15204$as_echo "yes" >&6; }
15205
15206$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
15207
15208
15209else
15210 $as_echo "$as_me: failed program was:" >&5
15211sed 's/^/| /' conftest.$ac_ext >&5
15212
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15214$as_echo "no" >&6; }
15215
15216
15217
15218fi
15219 rm -Rf build
15220
15221
15222
15223
15224
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
15226$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
15227
15228
15229cat confdefs.h - <<_ACEOF >conftest.c
15230
15231
15232 #include <linux/fs.h>
15233
15234 int mkdir(struct inode *inode, struct dentry *dentry,
15235 umode_t umode) { return 0; }
15236
15237 static const struct inode_operations
15238 iops __attribute__ ((unused)) = {
15239 .mkdir = mkdir,
15240 };
15241
15242int
15243main (void)
15244{
15245
15246
15247 ;
15248 return 0;
15249}
15250
15251_ACEOF
15252
15253
15254 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15255 echo "obj-m := conftest.o" >build/Makefile
15256 modpost_flag=''
15257 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15258 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15265 (eval $ac_try) 2>&5
15266 ac_status=$?
15267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15268 test $ac_status = 0; }; }; then :
15269
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15271$as_echo "yes" >&6; }
15272
15273$as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
15274
15275
15276else
15277 $as_echo "$as_me: failed program was:" >&5
15278sed 's/^/| /' conftest.$ac_ext >&5
15279
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281$as_echo "no" >&6; }
15282
15283
15284
15285fi
15286 rm -Rf build
15287
15288
15289
15290
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
15292$as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
15293
15294
15295cat confdefs.h - <<_ACEOF >conftest.c
15296
15297
15298 #include <linux/fs.h>
15299
15300 struct dentry *inode_lookup(struct inode *inode,
15301 struct dentry *dentry, struct nameidata *nidata)
15302 { return NULL; }
15303
15304 static const struct inode_operations iops
15305 __attribute__ ((unused)) = {
15306 .lookup = inode_lookup,
15307 };
15308
15309int
15310main (void)
15311{
15312
15313
15314 ;
15315 return 0;
15316}
15317
15318_ACEOF
15319
15320
15321 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15322 echo "obj-m := conftest.o" >build/Makefile
15323 modpost_flag=''
15324 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15325 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15332 (eval $ac_try) 2>&5
15333 ac_status=$?
15334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15335 test $ac_status = 0; }; }; then :
15336
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15338$as_echo "yes" >&6; }
15339
15340$as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
15341
15342
15343else
15344 $as_echo "$as_me: failed program was:" >&5
15345sed 's/^/| /' conftest.$ac_ext >&5
15346
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15348$as_echo "no" >&6; }
15349
15350
15351
15352fi
15353 rm -Rf build
15354
15355
15356
15357
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
15359$as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
15360
15361
15362cat confdefs.h - <<_ACEOF >conftest.c
15363
15364
15365 #include <linux/fs.h>
15366
15367 #ifdef HAVE_MKDIR_UMODE_T
15368 int inode_create(struct inode *inode ,struct dentry *dentry,
15369 umode_t umode, struct nameidata *nidata) { return 0; }
15370 #else
15371 int inode_create(struct inode *inode,struct dentry *dentry,
15372 int umode, struct nameidata * nidata) { return 0; }
15373 #endif
15374
15375 static const struct inode_operations
15376 iops __attribute__ ((unused)) = {
15377 .create = inode_create,
15378 };
15379
15380int
15381main (void)
15382{
15383
15384
15385 ;
15386 return 0;
15387}
15388
15389_ACEOF
15390
15391
15392 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15393 echo "obj-m := conftest.o" >build/Makefile
15394 modpost_flag=''
15395 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15396 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15398 (eval $ac_try) 2>&5
15399 ac_status=$?
15400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15401 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15403 (eval $ac_try) 2>&5
15404 ac_status=$?
15405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15406 test $ac_status = 0; }; }; then :
15407
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15409$as_echo "yes" >&6; }
15410
15411$as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
15412
15413
15414else
15415 $as_echo "$as_me: failed program was:" >&5
15416sed 's/^/| /' conftest.$ac_ext >&5
15417
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419$as_echo "no" >&6; }
15420
15421
15422
15423fi
15424 rm -Rf build
15425
15426
15427
15428
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
15430$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
15431
15432
15433cat confdefs.h - <<_ACEOF >conftest.c
15434
15435
15436 #include <linux/fs.h>
15437 void truncate_range(struct inode *inode, loff_t start,
15438 loff_t end) { return; }
15439 static struct inode_operations iops __attribute__ ((unused)) = {
15440 .truncate_range = truncate_range,
15441 };
15442
15443int
15444main (void)
15445{
15446
15447
15448 ;
15449 return 0;
15450}
15451
15452_ACEOF
15453
15454
15455 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15456 echo "obj-m := conftest.o" >build/Makefile
15457 modpost_flag=''
15458 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15459 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15461 (eval $ac_try) 2>&5
15462 ac_status=$?
15463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15464 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15469 test $ac_status = 0; }; }; then :
15470
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15472$as_echo "yes" >&6; }
15473
15474$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
15475
15476
15477else
15478 $as_echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15482$as_echo "no" >&6; }
15483
15484
15485
15486fi
15487 rm -Rf build
15488
15489
15490
15491
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
15493$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
15494
15495
15496cat confdefs.h - <<_ACEOF >conftest.c
15497
15498
15499 #include <linux/dcache.h>
15500 struct vfsmount *d_automount(struct path *p) { return NULL; }
15501 struct dentry_operations dops __attribute__ ((unused)) = {
15502 .d_automount = d_automount,
15503 };
15504
15505int
15506main (void)
15507{
15508
15509
15510 ;
15511 return 0;
15512}
15513
15514_ACEOF
15515
15516
15517 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15518 echo "obj-m := conftest.o" >build/Makefile
15519 modpost_flag=''
15520 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15521 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15526 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531 test $ac_status = 0; }; }; then :
15532
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15534$as_echo "yes" >&6; }
15535
15536$as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
15537
15538
15539else
15540 $as_echo "$as_me: failed program was:" >&5
15541sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15544$as_echo "no" >&6; }
15545
15546
15547
15548fi
15549 rm -Rf build
15550
15551
15552
15553
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
15555$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
15556
15557
15558cat confdefs.h - <<_ACEOF >conftest.c
15559
15560
15561 #include <linux/exportfs.h>
15562 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
15563 struct inode *parent) { return 0; }
15564 static struct export_operations eops __attribute__ ((unused))={
15565 .encode_fh = encode_fh,
15566 };
15567
15568int
15569main (void)
15570{
15571
15572
15573 ;
15574 return 0;
15575}
15576
15577_ACEOF
15578
15579
15580 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15581 echo "obj-m := conftest.o" >build/Makefile
15582 modpost_flag=''
15583 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15584 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15586 (eval $ac_try) 2>&5
15587 ac_status=$?
15588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15589 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594 test $ac_status = 0; }; }; then :
15595
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15597$as_echo "yes" >&6; }
15598
15599$as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
15600
15601
15602else
15603 $as_echo "$as_me: failed program was:" >&5
15604sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15607$as_echo "no" >&6; }
15608
15609
15610
15611fi
15612 rm -Rf build
15613
15614
15615
15616
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
15618$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
15619
15620
15621cat confdefs.h - <<_ACEOF >conftest.c
15622
15623
15624 #include <linux/exportfs.h>
15625 int commit_metadata(struct inode *inode) { return 0; }
15626 static struct export_operations eops __attribute__ ((unused))={
15627 .commit_metadata = commit_metadata,
15628 };
15629
15630int
15631main (void)
15632{
15633
15634
15635 ;
15636 return 0;
15637}
15638
15639_ACEOF
15640
15641
15642 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15643 echo "obj-m := conftest.o" >build/Makefile
15644 modpost_flag=''
15645 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15646 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15651 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15656 test $ac_status = 0; }; }; then :
15657
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15659$as_echo "yes" >&6; }
15660
15661$as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
15662
15663
15664else
15665 $as_echo "$as_me: failed program was:" >&5
15666sed 's/^/| /' conftest.$ac_ext >&5
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669$as_echo "no" >&6; }
15670
15671
15672
15673fi
15674 rm -Rf build
15675
15676
15677
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
15679$as_echo_n "checking whether clear_inode() is available... " >&6; }
15680
15681
15682
15683cat confdefs.h - <<_ACEOF >conftest.c
15684
15685
15686 #include <linux/fs.h>
15687
15688int
15689main (void)
15690{
15691
15692 clear_inode(NULL);
15693
15694 ;
15695 return 0;
15696}
15697
15698_ACEOF
15699
15700
15701 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15702 echo "obj-m := conftest.o" >build/Makefile
15703 modpost_flag=''
15704 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15705 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15710 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15712 (eval $ac_try) 2>&5
15713 ac_status=$?
15714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15715 test $ac_status = 0; }; }; then :
15716 rc=0
15717else
15718 $as_echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720 rc=1
15721
15722
15723fi
15724 rm -Rf build
15725
15726
15727 if test $rc -ne 0; then :
15728
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730$as_echo "no" >&6; }
15731
15732 else
15733 if test "x$enable_linux_builtin" != xyes; then
15734
15735 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
15736 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15737 rc=$?
15738 if test $rc -ne 0; then
15739 export=0
15740 for file in fs/inode.c; do
15741 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
15742 "$LINUX/$file" 2>/dev/null
15743 rc=$?
15744 if test $rc -eq 0; then
15745 export=1
15746 break;
15747 fi
15748 done
15749 if test $export -eq 0; then :
15750 rc=1
15751 else :
15752 rc=0
15753 fi
15754 else :
15755 rc=0
15756 fi
15757
15758 fi
15759 if test $rc -ne 0; then :
15760
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762$as_echo "no" >&6; }
15763
15764 else :
15765
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15767$as_echo "yes" >&6; }
15768
15769$as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
15770
15771
15772 fi
15773 fi
15774
15775
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
15777$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
15778
15779
15780
15781cat confdefs.h - <<_ACEOF >conftest.c
15782
15783
15784 #include <linux/fs.h>
15785
15786int
15787main (void)
15788{
15789
15790 insert_inode_locked(NULL);
15791
15792 ;
15793 return 0;
15794}
15795
15796_ACEOF
15797
15798
15799 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15800 echo "obj-m := conftest.o" >build/Makefile
15801 modpost_flag=''
15802 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15803 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15808 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15813 test $ac_status = 0; }; }; then :
15814 rc=0
15815else
15816 $as_echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5
15818 rc=1
15819
15820
15821fi
15822 rm -Rf build
15823
15824
15825 if test $rc -ne 0; then :
15826
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15828$as_echo "no" >&6; }
15829
15830 else
15831 if test "x$enable_linux_builtin" != xyes; then
15832
15833 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
15834 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15835 rc=$?
15836 if test $rc -ne 0; then
15837 export=0
15838 for file in fs/inode.c; do
15839 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
15840 "$LINUX/$file" 2>/dev/null
15841 rc=$?
15842 if test $rc -eq 0; then
15843 export=1
15844 break;
15845 fi
15846 done
15847 if test $export -eq 0; then :
15848 rc=1
15849 else :
15850 rc=0
15851 fi
15852 else :
15853 rc=0
15854 fi
15855
15856 fi
15857 if test $rc -ne 0; then :
15858
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15860$as_echo "no" >&6; }
15861
15862 else :
15863
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15865$as_echo "yes" >&6; }
15866
15867$as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
15868
15869
15870 fi
15871 fi
15872
15873
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
15875$as_echo_n "checking whether d_make_root() is available... " >&6; }
15876
15877
15878
15879cat confdefs.h - <<_ACEOF >conftest.c
15880
15881
15882 #include <linux/dcache.h>
15883
15884int
15885main (void)
15886{
15887
15888 d_make_root(NULL);
15889
15890 ;
15891 return 0;
15892}
15893
15894_ACEOF
15895
15896
15897 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15898 echo "obj-m := conftest.o" >build/Makefile
15899 modpost_flag=''
15900 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15901 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15911 test $ac_status = 0; }; }; then :
15912 rc=0
15913else
15914 $as_echo "$as_me: failed program was:" >&5
15915sed 's/^/| /' conftest.$ac_ext >&5
15916 rc=1
15917
15918
15919fi
15920 rm -Rf build
15921
15922
15923 if test $rc -ne 0; then :
15924
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15926$as_echo "no" >&6; }
15927
15928 else
15929 if test "x$enable_linux_builtin" != xyes; then
15930
15931 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
15932 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15933 rc=$?
15934 if test $rc -ne 0; then
15935 export=0
15936 for file in fs/dcache.c; do
15937 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
15938 "$LINUX/$file" 2>/dev/null
15939 rc=$?
15940 if test $rc -eq 0; then
15941 export=1
15942 break;
15943 fi
15944 done
15945 if test $export -eq 0; then :
15946 rc=1
15947 else :
15948 rc=0
15949 fi
15950 else :
15951 rc=0
15952 fi
15953
15954 fi
15955 if test $rc -ne 0; then :
15956
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958$as_echo "no" >&6; }
15959
15960 else :
15961
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15963$as_echo "yes" >&6; }
15964
15965$as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
15966
15967
15968 fi
15969 fi
15970
15971
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
15973$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
15974
15975
15976
15977cat confdefs.h - <<_ACEOF >conftest.c
15978
15979
15980 #include <linux/dcache.h>
15981
15982int
15983main (void)
15984{
15985
15986 d_obtain_alias(NULL);
15987
15988 ;
15989 return 0;
15990}
15991
15992_ACEOF
15993
15994
15995 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15996 echo "obj-m := conftest.o" >build/Makefile
15997 modpost_flag=''
15998 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15999 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16001 (eval $ac_try) 2>&5
16002 ac_status=$?
16003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16004 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16009 test $ac_status = 0; }; }; then :
16010 rc=0
16011else
16012 $as_echo "$as_me: failed program was:" >&5
16013sed 's/^/| /' conftest.$ac_ext >&5
16014 rc=1
16015
16016
16017fi
16018 rm -Rf build
16019
16020
16021 if test $rc -ne 0; then :
16022
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16024$as_echo "no" >&6; }
16025
16026 else
16027 if test "x$enable_linux_builtin" != xyes; then
16028
16029 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
16030 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16031 rc=$?
16032 if test $rc -ne 0; then
16033 export=0
16034 for file in fs/dcache.c; do
16035 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
16036 "$LINUX/$file" 2>/dev/null
16037 rc=$?
16038 if test $rc -eq 0; then
16039 export=1
16040 break;
16041 fi
16042 done
16043 if test $export -eq 0; then :
16044 rc=1
16045 else :
16046 rc=0
16047 fi
16048 else :
16049 rc=0
16050 fi
16051
16052 fi
16053 if test $rc -ne 0; then :
16054
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056$as_echo "no" >&6; }
16057
16058 else :
16059
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16061$as_echo "yes" >&6; }
16062
16063$as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
16064
16065
16066 fi
16067 fi
16068
16069
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
16071$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
16072
16073
16074
16075cat confdefs.h - <<_ACEOF >conftest.c
16076
16077
16078 #include <linux/dcache.h>
16079
16080int
16081main (void)
16082{
16083
16084 d_set_d_op(NULL, NULL);
16085
16086 ;
16087 return 0;
16088}
16089
16090_ACEOF
16091
16092
16093 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16094 echo "obj-m := conftest.o" >build/Makefile
16095 modpost_flag=''
16096 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16097 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16102 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
16108 rc=0
16109else
16110 $as_echo "$as_me: failed program was:" >&5
16111sed 's/^/| /' conftest.$ac_ext >&5
16112 rc=1
16113
16114
16115fi
16116 rm -Rf build
16117
16118
16119 if test $rc -ne 0; then :
16120
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122$as_echo "no" >&6; }
16123
16124 else
16125 if test "x$enable_linux_builtin" != xyes; then
16126
16127 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
16128 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16129 rc=$?
16130 if test $rc -ne 0; then
16131 export=0
16132 for file in fs/dcache.c; do
16133 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
16134 "$LINUX/$file" 2>/dev/null
16135 rc=$?
16136 if test $rc -eq 0; then
16137 export=1
16138 break;
16139 fi
16140 done
16141 if test $export -eq 0; then :
16142 rc=1
16143 else :
16144 rc=0
16145 fi
16146 else :
16147 rc=0
16148 fi
16149
16150 fi
16151 if test $rc -ne 0; then :
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154$as_echo "no" >&6; }
16155
16156 else :
16157
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16159$as_echo "yes" >&6; }
16160
16161$as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
16162
16163
16164 fi
16165 fi
16166
16167
16168
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
16170$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
16171
16172
16173cat confdefs.h - <<_ACEOF >conftest.c
16174
16175
16176 #include <linux/dcache.h>
16177
16178 int revalidate (struct dentry *dentry,
16179 struct nameidata *nidata) { return 0; }
16180
16181 static const struct dentry_operations
16182 dops __attribute__ ((unused)) = {
16183 .d_revalidate = revalidate,
16184 };
16185
16186int
16187main (void)
16188{
16189
16190
16191 ;
16192 return 0;
16193}
16194
16195_ACEOF
16196
16197
16198 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16199 echo "obj-m := conftest.o" >build/Makefile
16200 modpost_flag=''
16201 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16202 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16207 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16212 test $ac_status = 0; }; }; then :
16213
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215$as_echo "yes" >&6; }
16216
16217$as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
16218
16219
16220else
16221 $as_echo "$as_me: failed program was:" >&5
16222sed 's/^/| /' conftest.$ac_ext >&5
16223
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225$as_echo "no" >&6; }
16226
16227
16228
16229fi
16230 rm -Rf build
16231
16232
16233
16234
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
16236$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
16237
16238
16239cat confdefs.h - <<_ACEOF >conftest.c
16240
16241
16242 #include <linux/dcache.h>
16243
16244 const struct dentry_operations test_d_op = {
16245 .d_revalidate = NULL,
16246 };
16247
16248int
16249main (void)
16250{
16251
16252 struct dentry d __attribute__ ((unused));
16253
16254 d.d_op = &test_d_op;
16255
16256 ;
16257 return 0;
16258}
16259
16260_ACEOF
16261
16262
16263 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16264 echo "obj-m := conftest.o" >build/Makefile
16265 modpost_flag=''
16266 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16267 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16269 (eval $ac_try) 2>&5
16270 ac_status=$?
16271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16272 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16274 (eval $ac_try) 2>&5
16275 ac_status=$?
16276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16277 test $ac_status = 0; }; }; then :
16278
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16280$as_echo "yes" >&6; }
16281
16282$as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
16283
16284
16285else
16286 $as_echo "$as_me: failed program was:" >&5
16287sed 's/^/| /' conftest.$ac_ext >&5
16288
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290$as_echo "no" >&6; }
16291
16292
16293
16294fi
16295 rm -Rf build
16296
16297
16298
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
16300$as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
16301
16302
16303
16304cat confdefs.h - <<_ACEOF >conftest.c
16305
16306
16307 #include <linux/fs.h>
16308
16309int
16310main (void)
16311{
16312
16313 check_disk_size_change(NULL, NULL);
16314
16315 ;
16316 return 0;
16317}
16318
16319_ACEOF
16320
16321
16322 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16323 echo "obj-m := conftest.o" >build/Makefile
16324 modpost_flag=''
16325 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16326 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16331 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16336 test $ac_status = 0; }; }; then :
16337 rc=0
16338else
16339 $as_echo "$as_me: failed program was:" >&5
16340sed 's/^/| /' conftest.$ac_ext >&5
16341 rc=1
16342
16343
16344fi
16345 rm -Rf build
16346
16347
16348 if test $rc -ne 0; then :
16349
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16351$as_echo "no" >&6; }
16352
16353 else
16354 if test "x$enable_linux_builtin" != xyes; then
16355
16356 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
16357 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16358 rc=$?
16359 if test $rc -ne 0; then
16360 export=0
16361 for file in fs/block_dev.c; do
16362 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
16363 "$LINUX/$file" 2>/dev/null
16364 rc=$?
16365 if test $rc -eq 0; then
16366 export=1
16367 break;
16368 fi
16369 done
16370 if test $export -eq 0; then :
16371 rc=1
16372 else :
16373 rc=0
16374 fi
16375 else :
16376 rc=0
16377 fi
16378
16379 fi
16380 if test $rc -ne 0; then :
16381
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16383$as_echo "no" >&6; }
16384
16385 else :
16386
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16388$as_echo "yes" >&6; }
16389
16390$as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
16391
16392
16393 fi
16394 fi
16395
16396
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
16398$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
16399
16400
16401
16402cat confdefs.h - <<_ACEOF >conftest.c
16403
16404
16405 #include <linux/mm.h>
16406
16407int
16408main (void)
16409{
16410
16411 truncate_setsize(NULL, 0);
16412
16413 ;
16414 return 0;
16415}
16416
16417_ACEOF
16418
16419
16420 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16421 echo "obj-m := conftest.o" >build/Makefile
16422 modpost_flag=''
16423 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16424 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16426 (eval $ac_try) 2>&5
16427 ac_status=$?
16428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16429 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16431 (eval $ac_try) 2>&5
16432 ac_status=$?
16433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16434 test $ac_status = 0; }; }; then :
16435 rc=0
16436else
16437 $as_echo "$as_me: failed program was:" >&5
16438sed 's/^/| /' conftest.$ac_ext >&5
16439 rc=1
16440
16441
16442fi
16443 rm -Rf build
16444
16445
16446 if test $rc -ne 0; then :
16447
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16449$as_echo "no" >&6; }
16450
16451 else
16452 if test "x$enable_linux_builtin" != xyes; then
16453
16454 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
16455 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16456 rc=$?
16457 if test $rc -ne 0; then
16458 export=0
16459 for file in mm/truncate.c; do
16460 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
16461 "$LINUX/$file" 2>/dev/null
16462 rc=$?
16463 if test $rc -eq 0; then
16464 export=1
16465 break;
16466 fi
16467 done
16468 if test $export -eq 0; then :
16469 rc=1
16470 else :
16471 rc=0
16472 fi
16473 else :
16474 rc=0
16475 fi
16476
16477 fi
16478 if test $rc -ne 0; then :
16479
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481$as_echo "no" >&6; }
16482
16483 else :
16484
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16486$as_echo "yes" >&6; }
16487
16488$as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
16489
16490
16491 fi
16492 fi
16493
16494
16495
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
16497$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
16498
16499
16500cat confdefs.h - <<_ACEOF >conftest.c
16501
16502
16503 #include <linux/security.h>
16504
16505int
16506main (void)
16507{
16508
16509 struct inode *ip __attribute__ ((unused)) = NULL;
16510 struct inode *dip __attribute__ ((unused)) = NULL;
16511 const struct qstr *str __attribute__ ((unused)) = NULL;
16512 char *name __attribute__ ((unused)) = NULL;
16513 void *value __attribute__ ((unused)) = NULL;
16514 size_t len __attribute__ ((unused)) = 0;
16515
16516 security_inode_init_security(ip, dip, str, &name, &value, &len);
16517
16518 ;
16519 return 0;
16520}
16521
16522_ACEOF
16523
16524
16525 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16526 echo "obj-m := conftest.o" >build/Makefile
16527 modpost_flag=''
16528 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16529 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16534 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16536 (eval $ac_try) 2>&5
16537 ac_status=$?
16538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16539 test $ac_status = 0; }; }; then :
16540
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16542$as_echo "yes" >&6; }
16543
16544$as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
16545
16546
16547else
16548 $as_echo "$as_me: failed program was:" >&5
16549sed 's/^/| /' conftest.$ac_ext >&5
16550
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552$as_echo "no" >&6; }
16553
16554
16555
16556fi
16557 rm -Rf build
16558
16559
16560
16561
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
16563$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16564
16565
16566cat confdefs.h - <<_ACEOF >conftest.c
16567
16568
16569 #include <linux/security.h>
16570
16571int
16572main (void)
16573{
16574
16575 struct inode *ip __attribute__ ((unused)) = NULL;
16576 struct inode *dip __attribute__ ((unused)) = NULL;
16577 const struct qstr *str __attribute__ ((unused)) = NULL;
16578 initxattrs func __attribute__ ((unused)) = NULL;
16579
16580 security_inode_init_security(ip, dip, str, func, NULL);
16581
16582 ;
16583 return 0;
16584}
16585
16586_ACEOF
16587
16588
16589 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16590 echo "obj-m := conftest.o" >build/Makefile
16591 modpost_flag=''
16592 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16593 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16598 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16603 test $ac_status = 0; }; }; then :
16604
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16606$as_echo "yes" >&6; }
16607
16608$as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
16609
16610
16611else
16612 $as_echo "$as_me: failed program was:" >&5
16613sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616$as_echo "no" >&6; }
16617
16618
16619
16620fi
16621 rm -Rf build
16622
16623
16624
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
16626$as_echo_n "checking whether mount_nodev() is available... " >&6; }
16627
16628
16629
16630cat confdefs.h - <<_ACEOF >conftest.c
16631
16632
16633 #include <linux/fs.h>
16634
16635int
16636main (void)
16637{
16638
16639 mount_nodev(NULL, 0, NULL, NULL);
16640
16641 ;
16642 return 0;
16643}
16644
16645_ACEOF
16646
16647
16648 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16649 echo "obj-m := conftest.o" >build/Makefile
16650 modpost_flag=''
16651 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16652 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16662 test $ac_status = 0; }; }; then :
16663 rc=0
16664else
16665 $as_echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667 rc=1
16668
16669
16670fi
16671 rm -Rf build
16672
16673
16674 if test $rc -ne 0; then :
16675
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16677$as_echo "no" >&6; }
16678
16679 else
16680 if test "x$enable_linux_builtin" != xyes; then
16681
16682 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16683 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16684 rc=$?
16685 if test $rc -ne 0; then
16686 export=0
16687 for file in fs/super.c; do
16688 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
16689 "$LINUX/$file" 2>/dev/null
16690 rc=$?
16691 if test $rc -eq 0; then
16692 export=1
16693 break;
16694 fi
16695 done
16696 if test $export -eq 0; then :
16697 rc=1
16698 else :
16699 rc=0
16700 fi
16701 else :
16702 rc=0
16703 fi
16704
16705 fi
16706 if test $rc -ne 0; then :
16707
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709$as_echo "no" >&6; }
16710
16711 else :
16712
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16714$as_echo "yes" >&6; }
16715
16716$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
16717
16718
16719 fi
16720 fi
16721
16722
16723
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
16725$as_echo_n "checking whether super_block has s_shrink... " >&6; }
16726
16727
16728cat confdefs.h - <<_ACEOF >conftest.c
16729
16730
16731 #include <linux/fs.h>
16732
16733 int shrink(struct shrinker *s, struct shrink_control *sc)
16734 { return 0; }
16735
16736 static const struct super_block
16737 sb __attribute__ ((unused)) = {
16738 .s_shrink.shrink = shrink,
16739 .s_shrink.seeks = DEFAULT_SEEKS,
16740 .s_shrink.batch = 0,
16741 };
16742
16743int
16744main (void)
16745{
16746
16747
16748 ;
16749 return 0;
16750}
16751
16752_ACEOF
16753
16754
16755 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16756 echo "obj-m := conftest.o" >build/Makefile
16757 modpost_flag=''
16758 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16759 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16764 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16766 (eval $ac_try) 2>&5
16767 ac_status=$?
16768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769 test $ac_status = 0; }; }; then :
16770
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772$as_echo "yes" >&6; }
16773
16774$as_echo "#define HAVE_SHRINK 1" >>confdefs.h
16775
16776
16777
16778else
16779 $as_echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783$as_echo "no" >&6; }
16784
16785
16786
c06d4368
AX
16787fi
16788 rm -Rf build
16789
16790
16791
16792
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
16794$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
16795
16796
16797cat confdefs.h - <<_ACEOF >conftest.c
16798
16799
16800 #include <linux/fs.h>
16801
16802int
16803main (void)
16804{
16805
16806 struct super_block sb __attribute__ ((unused));
16807
16808 INIT_LIST_HEAD(&sb.s_instances);
16809
16810 ;
16811 return 0;
16812}
16813
16814_ACEOF
16815
16816
16817 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16818 echo "obj-m := conftest.o" >build/Makefile
16819 modpost_flag=''
16820 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16821 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16826 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16828 (eval $ac_try) 2>&5
16829 ac_status=$?
16830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831 test $ac_status = 0; }; }; then :
16832
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834$as_echo "yes" >&6; }
16835
16836$as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
16837
16838
16839else
16840 $as_echo "$as_me: failed program was:" >&5
16841sed 's/^/| /' conftest.$ac_ext >&5
16842
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844$as_echo "no" >&6; }
16845
16846
16847
0e3762ca
CALP
16848fi
16849 rm -Rf build
16850
16851
16852
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
16854$as_echo_n "checking whether super_block has s_d_op... " >&6; }
16855
16856
16857cat confdefs.h - <<_ACEOF >conftest.c
16858
16859
16860 #include <linux/fs.h>
16861
16862int
16863main (void)
16864{
16865
16866 struct super_block sb __attribute__ ((unused));
16867 sb.s_d_op = NULL;
16868
16869 ;
16870 return 0;
16871}
16872
16873_ACEOF
16874
16875
16876 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16877 echo "obj-m := conftest.o" >build/Makefile
16878 modpost_flag=''
16879 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16880 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16882 (eval $ac_try) 2>&5
16883 ac_status=$?
16884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16885 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16890 test $ac_status = 0; }; }; then :
16891
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16893$as_echo "yes" >&6; }
16894
16895$as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
16896
16897
16898else
16899 $as_echo "$as_me: failed program was:" >&5
16900sed 's/^/| /' conftest.$ac_ext >&5
16901
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16903$as_echo "no" >&6; }
16904
16905
16906
16907fi
16908 rm -Rf build
16909
16910
16911
16912
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_bdi" >&5
16914$as_echo_n "checking whether super_block has s_bdi... " >&6; }
16915
16916
16917cat confdefs.h - <<_ACEOF >conftest.c
16918
16919
16920 #include <linux/fs.h>
16921
16922int
16923main (void)
16924{
16925
16926 struct super_block sb __attribute__ ((unused));
16927 sb.s_bdi = NULL;
16928
16929 ;
16930 return 0;
16931}
16932
16933_ACEOF
16934
16935
16936 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16937 echo "obj-m := conftest.o" >build/Makefile
16938 modpost_flag=''
16939 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16940 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16945 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16950 test $ac_status = 0; }; }; then :
16951
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16953$as_echo "yes" >&6; }
16954
16955$as_echo "#define HAVE_BDI 1" >>confdefs.h
16956
16957
16958else
16959 $as_echo "$as_me: failed program was:" >&5
16960sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963$as_echo "no" >&6; }
16964
16965
16966
16967fi
16968 rm -Rf build
16969
16970
16971
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() is available" >&5
16973$as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
16974
16975
16976
16977cat confdefs.h - <<_ACEOF >conftest.c
16978
16979
16980 #include <linux/backing-dev.h>
16981
16982int
16983main (void)
16984{
16985
16986 bdi_setup_and_register(NULL, NULL, 0);
16987
16988 ;
16989 return 0;
16990}
16991
16992_ACEOF
16993
16994
16995 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16996 echo "obj-m := conftest.o" >build/Makefile
16997 modpost_flag=''
16998 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16999 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17004 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17009 test $ac_status = 0; }; }; then :
17010 rc=0
17011else
17012 $as_echo "$as_me: failed program was:" >&5
17013sed 's/^/| /' conftest.$ac_ext >&5
17014 rc=1
17015
17016
17017fi
17018 rm -Rf build
17019
17020
17021 if test $rc -ne 0; then :
17022
17023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17024$as_echo "no" >&6; }
17025
17026 else
17027 if test "x$enable_linux_builtin" != xyes; then
17028
17029 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
17030 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17031 rc=$?
17032 if test $rc -ne 0; then
17033 export=0
17034 for file in mm/backing-dev.c; do
17035 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
17036 "$LINUX/$file" 2>/dev/null
17037 rc=$?
17038 if test $rc -eq 0; then
17039 export=1
17040 break;
17041 fi
17042 done
17043 if test $export -eq 0; then :
17044 rc=1
17045 else :
17046 rc=0
17047 fi
17048 else :
17049 rc=0
17050 fi
17051
17052 fi
17053 if test $rc -ne 0; then :
17054
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17056$as_echo "no" >&6; }
17057
17058 else :
17059
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17061$as_echo "yes" >&6; }
17062
17063$as_echo "#define HAVE_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
17064
17065
17066 fi
17067 fi
17068
17069
17070
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
17072$as_echo_n "checking whether set_nlink() is available... " >&6; }
17073
17074
17075cat confdefs.h - <<_ACEOF >conftest.c
17076
17077
17078 #include <linux/fs.h>
17079
17080int
17081main (void)
17082{
17083
17084 struct inode node;
17085 unsigned int link = 0;
17086 (void) set_nlink(&node, link);
17087
17088 ;
17089 return 0;
17090}
17091
17092_ACEOF
17093
17094
17095 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17096 echo "obj-m := conftest.o" >build/Makefile
17097 modpost_flag=''
17098 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17099 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17104 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17106 (eval $ac_try) 2>&5
17107 ac_status=$?
17108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17109 test $ac_status = 0; }; }; then :
17110
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17112$as_echo "yes" >&6; }
17113
17114$as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
17115
17116
17117else
17118 $as_echo "$as_me: failed program was:" >&5
17119sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17122$as_echo "no" >&6; }
17123
17124
17125
17126fi
17127 rm -Rf build
17128
17129
17130
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
17133$as_echo_n "checking whether elevator_change() is available... " >&6; }
17134 tmp_flags="$EXTRA_KCFLAGS"
17135 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
17136
17137
17138cat confdefs.h - <<_ACEOF >conftest.c
17139
17140
17141 #include <linux/blkdev.h>
17142 #include <linux/elevator.h>
17143
17144int
17145main (void)
17146{
17147
17148 int ret;
17149 struct request_queue *q = NULL;
17150 char *elevator = NULL;
17151 ret = elevator_change(q, elevator);
17152
17153 ;
17154 return 0;
17155}
17156
17157_ACEOF
17158
17159
17160 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17161 echo "obj-m := conftest.o" >build/Makefile
17162 modpost_flag=''
17163 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17164 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17166 (eval $ac_try) 2>&5
17167 ac_status=$?
17168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17169 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17174 test $ac_status = 0; }; }; then :
17175
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17177$as_echo "yes" >&6; }
17178
17179$as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
17180
17181
17182else
17183 $as_echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17187$as_echo "no" >&6; }
17188
17189
17190
17191fi
17192 rm -Rf build
17193
17194
17195 EXTRA_KCFLAGS="$tmp_flags"
17196
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
17198$as_echo_n "checking whether sget() wants 5 args... " >&6; }
17199
17200
17201cat confdefs.h - <<_ACEOF >conftest.c
17202
17203
17204 #include <linux/fs.h>
17205
17206int
17207main (void)
17208{
17209
17210 struct file_system_type *type = NULL;
17211 int (*test)(struct super_block *,void *) = NULL;
17212 int (*set)(struct super_block *,void *) = NULL;
17213 int flags = 0;
17214 void *data = NULL;
17215 (void) sget(type, test, set, flags, data);
17216
17217 ;
17218 return 0;
17219}
17220
17221_ACEOF
17222
17223
17224 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17225 echo "obj-m := conftest.o" >build/Makefile
17226 modpost_flag=''
17227 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17228 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17233 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17238 test $ac_status = 0; }; }; then :
17239
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17241$as_echo "yes" >&6; }
17242
17243$as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
17244
17245
17246else
17247 $as_echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17251$as_echo "no" >&6; }
17252
17253
17254
17255fi
17256 rm -Rf build
17257
17258
17259
c06d4368
AX
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
17261$as_echo_n "checking whether lseek_execute() is available... " >&6; }
0e3762ca 17262
0e3762ca 17263
0e3762ca 17264
c06d4368 17265cat confdefs.h - <<_ACEOF >conftest.c
0e3762ca
CALP
17266
17267
c06d4368 17268 #include <linux/fs.h>
0e3762ca 17269
c06d4368
AX
17270int
17271main (void)
17272{
0e3762ca 17273
c06d4368
AX
17274 struct file *fp __attribute__ ((unused)) = NULL;
17275 struct inode *ip __attribute__ ((unused)) = NULL;
17276 loff_t offset __attribute__ ((unused)) = 0;
17277 loff_t maxsize __attribute__ ((unused)) = 0;
0e3762ca 17278
c06d4368 17279 lseek_execute(fp, ip, offset, maxsize);
0e3762ca 17280
c06d4368
AX
17281 ;
17282 return 0;
17283}
0e3762ca 17284
c06d4368
AX
17285_ACEOF
17286
17287
17288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17289 echo "obj-m := conftest.o" >build/Makefile
17290 modpost_flag=''
17291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17292 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17297 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17302 test $ac_status = 0; }; }; then :
17303 rc=0
17304else
17305 $as_echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307 rc=1
17308
17309
17310fi
17311 rm -Rf build
17312
17313
17314 if test $rc -ne 0; then :
17315
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17317$as_echo "no" >&6; }
17318
17319 else
17320 if test "x$enable_linux_builtin" != xyes; then
17321
17322 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
17323 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17324 rc=$?
17325 if test $rc -ne 0; then
17326 export=0
17327 for file in fs/read_write.c; do
17328 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
17329 "$LINUX/$file" 2>/dev/null
17330 rc=$?
17331 if test $rc -eq 0; then
17332 export=1
17333 break;
17334 fi
17335 done
17336 if test $export -eq 0; then :
17337 rc=1
17338 else :
17339 rc=0
17340 fi
17341 else :
17342 rc=0
17343 fi
17344
17345 fi
17346 if test $rc -ne 0; then :
17347
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349$as_echo "no" >&6; }
17350
17351 else :
17352
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17354$as_echo "yes" >&6; }
17355
17356$as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
17357
17358
17359 fi
17360 fi
17361
17362
17363
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
17365$as_echo_n "checking whether fops->iterate() is available... " >&6; }
17366
17367
17368cat confdefs.h - <<_ACEOF >conftest.c
17369
17370
17371 #include <linux/fs.h>
17372 int iterate(struct file *filp, struct dir_context * context)
17373 { return 0; }
17374
17375 static const struct file_operations fops
17376 __attribute__ ((unused)) = {
17377 .iterate = iterate,
17378 };
17379
17380int
17381main (void)
17382{
17383
17384
17385 ;
17386 return 0;
17387}
17388
17389_ACEOF
17390
17391
17392 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17393 echo "obj-m := conftest.o" >build/Makefile
17394 modpost_flag=''
17395 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17396 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17406 test $ac_status = 0; }; }; then :
17407
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17409$as_echo "yes" >&6; }
17410
17411$as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
17412
17413
17414else
17415 $as_echo "$as_me: failed program was:" >&5
17416sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17419$as_echo "no" >&6; }
17420
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
17422$as_echo_n "checking whether fops->readdir() is available... " >&6; }
17423
17424
17425cat confdefs.h - <<_ACEOF >conftest.c
17426
17427
17428 #include <linux/fs.h>
17429 int readdir(struct file *filp, void *entry, filldir_t func)
17430 { return 0; }
17431
17432 static const struct file_operations fops
17433 __attribute__ ((unused)) = {
17434 .readdir = readdir,
17435 };
17436
17437int
17438main (void)
17439{
17440
17441
17442 ;
17443 return 0;
17444}
17445
17446_ACEOF
17447
17448
17449 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17450 echo "obj-m := conftest.o" >build/Makefile
17451 modpost_flag=''
17452 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17453 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17458 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17463 test $ac_status = 0; }; }; then :
17464
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17466$as_echo "yes" >&6; }
17467
17468$as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
17469
17470
17471else
17472 $as_echo "$as_me: failed program was:" >&5
17473sed 's/^/| /' conftest.$ac_ext >&5
17474
17475 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
17476
17477
17478
17479fi
17480 rm -Rf build
17481
17482
17483
17484
17485
17486
17487fi
17488 rm -Rf build
17489
17490
17491
17492
17493 if test "$LINUX_OBJ" != "$LINUX"; then :
17494
17495 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17496
17497fi
17498
17499
17500
17501 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
17502 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17503 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
17504
17505
17506 ;;
17507 user)
17508
17509
17510# Check whether --with-udevdir was given.
17511if test "${with_udevdir+set}" = set; then :
17512 withval=$with_udevdir; udevdir=$withval
17513else
0e3762ca
CALP
17514 udevdir='${exec_prefix}/lib/udev'
17515fi
17516
17517
17518
17519# Check whether --with-udevruledir was given.
17520if test "${with_udevruledir+set}" = set; then :
17521 withval=$with_udevruledir; udevruledir=$withval
17522else
17523 udevruledir='${udevdir}/rules.d'
17524fi
17525
17526
17527
17528
17529
17530
17531
17532# Check whether --with-dracutdir was given.
17533if test "${with_dracutdir+set}" = set; then :
17534 withval=$with_dracutdir; dracutdir=$withval
17535else
17536 dracutdir='${exec_prefix}/lib/dracut'
17537fi
17538
17539
17540
17541
17542
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
17544$as_echo_n "checking for target asm dir... " >&6; }
17545 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
17546
17547 case $TARGET_ARCH in
17548 i386|x86_64)
17549 TARGET_ASM_DIR=asm-${TARGET_ARCH}
17550 ;;
17551 *)
17552 TARGET_ASM_DIR=asm-generic
17553 ;;
17554 esac
17555
17556
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
17558$as_echo "$TARGET_ASM_DIR" >&6; }
17559
17560
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl()" >&5
17562$as_echo_n "checking for ioctl()... " >&6; }
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h. */
17565#include <unistd.h>
17566
17567_ACEOF
17568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17569 $EGREP "ioctl" >/dev/null 2>&1; then :
17570 is_unistd=yes
17571else
17572 is_unistd=no
17573fi
17574rm -f conftest*
17575
17576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17577/* end confdefs.h. */
17578#include <sys/ioctl.h>
17579
17580_ACEOF
17581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17582 $EGREP "ioctl" >/dev/null 2>&1; then :
17583 is_sys_ioctl=yes
17584else
17585 is_sys_ioctl=no
17586fi
17587rm -f conftest*
17588
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590/* end confdefs.h. */
17591#include <stropts.h>
17592
17593_ACEOF
17594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17595 $EGREP "ioctl" >/dev/null 2>&1; then :
17596 is_stropts=yes
17597else
17598 is_stropts=no
17599fi
17600rm -f conftest*
17601
17602
17603 if test $is_unistd = yes; then
17604 result=unistd.h
17605
17606$as_echo "#define HAVE_IOCTL_IN_UNISTD_H 1" >>confdefs.h
17607
17608 else
17609
17610 if test $is_sys_ioctl = yes; then
17611 result=sys/ioctl.h
17612
17613$as_echo "#define HAVE_IOCTL_IN_SYS_IOCTL_H 1" >>confdefs.h
17614
17615 elif test $is_stropts = yes; then
17616
17617$as_echo "#define HAVE_IOCTL_IN_STROPTS_H 1" >>confdefs.h
17618
17619 else
17620 result=no
17621 fi
17622 fi
17623
17624 if test $result = no; then
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17626$as_echo "no" >&6; }
17627 as_fn_error $? "*** Cannot locate ioctl() definition" "$LINENO" 5
17628 else
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17630$as_echo "yes" >&6; }
17631 fi
17632
17633
17634 ZLIB=
17635
17636 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17637if test "x$ac_cv_header_zlib_h" = x""yes; then :
17638
17639else
17640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17642as_fn_error $? "
17643 *** zlib.h missing, zlib-devel package required
17644See \`config.log' for more details" "$LINENO" 5 ; }
17645fi
17646
17647
17648
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
17650$as_echo_n "checking for compress2 in -lz... " >&6; }
17651if test "${ac_cv_lib_z_compress2+set}" = set; then :
17652 $as_echo_n "(cached) " >&6
17653else
17654 ac_check_lib_save_LIBS=$LIBS
17655LIBS="-lz $LIBS"
17656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657/* end confdefs.h. */
17658
17659/* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17662#ifdef __cplusplus
17663extern "C"
17664#endif
17665char compress2 ();
17666int
17667main ()
17668{
17669return compress2 ();
17670 ;
17671 return 0;
17672}
17673_ACEOF
17674if ac_fn_c_try_link "$LINENO"; then :
17675 ac_cv_lib_z_compress2=yes
17676else
17677 ac_cv_lib_z_compress2=no
17678fi
17679rm -f core conftest.err conftest.$ac_objext \
17680 conftest$ac_exeext conftest.$ac_ext
17681LIBS=$ac_check_lib_save_LIBS
17682fi
17683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
17684$as_echo "$ac_cv_lib_z_compress2" >&6; }
17685if test "x$ac_cv_lib_z_compress2" = x""yes; then :
17686 cat >>confdefs.h <<_ACEOF
17687#define HAVE_LIBZ 1
17688_ACEOF
17689
17690 LIBS="-lz $LIBS"
17691
17692else
17693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17695as_fn_error $? "
17696 *** compress2() missing, zlib-devel package required
17697See \`config.log' for more details" "$LINENO" 5 ; }
17698fi
17699
17700
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
17702$as_echo_n "checking for uncompress in -lz... " >&6; }
17703if test "${ac_cv_lib_z_uncompress+set}" = set; then :
17704 $as_echo_n "(cached) " >&6
17705else
17706 ac_check_lib_save_LIBS=$LIBS
17707LIBS="-lz $LIBS"
17708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709/* end confdefs.h. */
17710
17711/* Override any GCC internal prototype to avoid an error.
17712 Use char because int might match the return type of a GCC
17713 builtin and then its argument prototype would still apply. */
17714#ifdef __cplusplus
17715extern "C"
17716#endif
17717char uncompress ();
17718int
17719main ()
17720{
17721return uncompress ();
17722 ;
17723 return 0;
17724}
17725_ACEOF
17726if ac_fn_c_try_link "$LINENO"; then :
17727 ac_cv_lib_z_uncompress=yes
17728else
17729 ac_cv_lib_z_uncompress=no
17730fi
17731rm -f core conftest.err conftest.$ac_objext \
17732 conftest$ac_exeext conftest.$ac_ext
17733LIBS=$ac_check_lib_save_LIBS
17734fi
17735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
17736$as_echo "$ac_cv_lib_z_uncompress" >&6; }
17737if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
17738 cat >>confdefs.h <<_ACEOF
17739#define HAVE_LIBZ 1
17740_ACEOF
17741
17742 LIBS="-lz $LIBS"
17743
17744else
17745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17747as_fn_error $? "
17748 *** uncompress() missing, zlib-devel package required
17749See \`config.log' for more details" "$LINENO" 5 ; }
17750fi
17751
17752
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
17754$as_echo_n "checking for crc32 in -lz... " >&6; }
17755if test "${ac_cv_lib_z_crc32+set}" = set; then :
17756 $as_echo_n "(cached) " >&6
17757else
17758 ac_check_lib_save_LIBS=$LIBS
17759LIBS="-lz $LIBS"
17760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761/* end confdefs.h. */
17762
17763/* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17766#ifdef __cplusplus
17767extern "C"
17768#endif
17769char crc32 ();
17770int
17771main ()
17772{
17773return crc32 ();
17774 ;
17775 return 0;
17776}
17777_ACEOF
17778if ac_fn_c_try_link "$LINENO"; then :
17779 ac_cv_lib_z_crc32=yes
17780else
17781 ac_cv_lib_z_crc32=no
17782fi
17783rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
17785LIBS=$ac_check_lib_save_LIBS
17786fi
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
17788$as_echo "$ac_cv_lib_z_crc32" >&6; }
17789if test "x$ac_cv_lib_z_crc32" = x""yes; then :
17790 cat >>confdefs.h <<_ACEOF
17791#define HAVE_LIBZ 1
17792_ACEOF
17793
17794 LIBS="-lz $LIBS"
17795
17796else
17797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17799as_fn_error $? "
17800 *** crc32() missing, zlib-devel package required
17801See \`config.log' for more details" "$LINENO" 5 ; }
17802fi
17803
17804
17805 ZLIB="-lz"
17806
17807
17808$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17809
17810
17811
17812 LIBUUID=
17813
17814 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
17815if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
17816
17817else
17818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17820as_fn_error $? "
17821 *** uuid/uuid.h missing, libuuid-devel package required
17822See \`config.log' for more details" "$LINENO" 5 ; }
17823fi
17824
17825
17826
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
17828$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17829if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
17830 $as_echo_n "(cached) " >&6
17831else
17832 ac_check_lib_save_LIBS=$LIBS
17833LIBS="-luuid $LIBS"
17834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835/* end confdefs.h. */
17836
17837/* Override any GCC internal prototype to avoid an error.
17838 Use char because int might match the return type of a GCC
17839 builtin and then its argument prototype would still apply. */
17840#ifdef __cplusplus
17841extern "C"
17842#endif
17843char uuid_generate ();
17844int
17845main ()
17846{
17847return uuid_generate ();
17848 ;
17849 return 0;
17850}
17851_ACEOF
17852if ac_fn_c_try_link "$LINENO"; then :
17853 ac_cv_lib_uuid_uuid_generate=yes
17854else
17855 ac_cv_lib_uuid_uuid_generate=no
17856fi
17857rm -f core conftest.err conftest.$ac_objext \
17858 conftest$ac_exeext conftest.$ac_ext
17859LIBS=$ac_check_lib_save_LIBS
17860fi
17861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
17862$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17863if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
17864 cat >>confdefs.h <<_ACEOF
17865#define HAVE_LIBUUID 1
17866_ACEOF
17867
17868 LIBS="-luuid $LIBS"
17869
17870else
17871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17873as_fn_error $? "
17874 *** uuid_generate() missing, libuuid-devel package required
17875See \`config.log' for more details" "$LINENO" 5 ; }
17876fi
17877
17878
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
17880$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17881if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then :
17882 $as_echo_n "(cached) " >&6
17883else
17884 ac_check_lib_save_LIBS=$LIBS
17885LIBS="-luuid $LIBS"
17886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887/* end confdefs.h. */
17888
17889/* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
17892#ifdef __cplusplus
17893extern "C"
17894#endif
17895char uuid_is_null ();
17896int
17897main ()
17898{
17899return uuid_is_null ();
17900 ;
17901 return 0;
17902}
17903_ACEOF
17904if ac_fn_c_try_link "$LINENO"; then :
17905 ac_cv_lib_uuid_uuid_is_null=yes
17906else
17907 ac_cv_lib_uuid_uuid_is_null=no
17908fi
17909rm -f core conftest.err conftest.$ac_objext \
17910 conftest$ac_exeext conftest.$ac_ext
17911LIBS=$ac_check_lib_save_LIBS
17912fi
17913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17914$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17915if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then :
17916 cat >>confdefs.h <<_ACEOF
17917#define HAVE_LIBUUID 1
17918_ACEOF
17919
17920 LIBS="-luuid $LIBS"
17921
17922else
17923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17925as_fn_error $? "
17926 *** uuid_is_null() missing, libuuid-devel package required
17927See \`config.log' for more details" "$LINENO" 5 ; }
17928fi
17929
17930
17931 LIBUUID="-luuid"
17932
17933
17934$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17935
17936
17937
17938
17939# Check whether --with-blkid was given.
17940if test "${with_blkid+set}" = set; then :
17941 withval=$with_blkid;
17942else
17943 with_blkid=check
17944fi
17945
17946
17947 LIBBLKID=
17948 if test "x$with_blkid" != xno; then :
17949
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
17951$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17952if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
17953 $as_echo_n "(cached) " >&6
17954else
17955 ac_check_lib_save_LIBS=$LIBS
17956LIBS="-lblkid $LIBS"
17957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958/* end confdefs.h. */
17959
17960/* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17963#ifdef __cplusplus
17964extern "C"
17965#endif
17966char blkid_get_cache ();
17967int
17968main ()
17969{
17970return blkid_get_cache ();
17971 ;
17972 return 0;
17973}
17974_ACEOF
17975if ac_fn_c_try_link "$LINENO"; then :
17976 ac_cv_lib_blkid_blkid_get_cache=yes
17977else
17978 ac_cv_lib_blkid_blkid_get_cache=no
17979fi
17980rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982LIBS=$ac_check_lib_save_LIBS
17983fi
17984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17985$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17986if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
17987
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
17989$as_echo_n "checking for blkid zfs support... " >&6; }
17990
17991 ZFS_DEV=`mktemp`
17992 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17993 >/dev/null 2>/dev/null
17994 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17995 dd of=$ZFS_DEV bs=1k count=8 \
17996 seek=132 conv=notrunc &>/dev/null \
17997 >/dev/null 2>/dev/null
17998
17999 saved_LDFLAGS="$LDFLAGS"
18000 LDFLAGS="-lblkid"
18001
18002 if test "$cross_compiling" = yes; then :
18003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18005as_fn_error $? "cannot run test program while cross compiling
18006See \`config.log' for more details" "$LINENO" 5 ; }
18007else
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009/* end confdefs.h. */
18010
18011 #include <stdio.h>
18012 #include <blkid/blkid.h>
18013
18014int
18015main ()
18016{
18017
18018 blkid_cache cache;
18019 char *value;
18020
18021 if (blkid_get_cache(&cache, NULL) < 0)
18022 return 1;
18023
18024 value = blkid_get_tag_value(cache, "TYPE",
18025 "$ZFS_DEV");
18026 if (!value) {
18027 blkid_put_cache(cache);
18028 return 2;
18029 }
18030
18031 if (strcmp(value, "zfs")) {
18032 free(value);
18033 blkid_put_cache(cache);
18034 return 3;
18035 }
18036
18037 free(value);
18038 blkid_put_cache(cache);
18039
18040 ;
18041 return 0;
18042}
18043_ACEOF
18044if ac_fn_c_try_run "$LINENO"; then :
18045
18046 rm -f $ZFS_DEV
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18048$as_echo "yes" >&6; }
18049 LIBBLKID="-lblkid"
18050
18051
18052$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
18053
18054
18055else
18056
18057 rm -f $ZFS_DEV
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18059$as_echo "no" >&6; }
18060 if test "x$with_blkid" != xcheck; then :
18061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18063as_fn_error $? "--with-blkid given but unavailable
18064See \`config.log' for more details" "$LINENO" 5 ; }
18065fi
18066
18067fi
18068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18069 conftest.$ac_objext conftest.beam conftest.$ac_ext
18070fi
18071
18072
18073 LDFLAGS="$saved_LDFLAGS"
18074
18075else
18076
18077 if test "x$with_blkid" != xcheck; then :
18078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18080as_fn_error $? "--with-blkid given but unavailable
18081See \`config.log' for more details" "$LINENO" 5 ; }
18082fi
18083
18084
18085fi
18086
18087
18088fi
18089
18090
18091
18092# Check whether --with-selinux was given.
18093if test "${with_selinux+set}" = set; then :
18094 withval=$with_selinux;
18095else
18096 with_selinux=check
18097fi
18098
18099
18100 LIBSELINUX=
18101 if test "x$with_selinux" != xno; then :
18102
18103 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
18104if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
18105
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
18107$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
18108if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
18109 $as_echo_n "(cached) " >&6
18110else
18111 ac_check_lib_save_LIBS=$LIBS
18112LIBS="-lselinux $LIBS"
18113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114/* end confdefs.h. */
18115
18116/* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18119#ifdef __cplusplus
18120extern "C"
18121#endif
18122char is_selinux_enabled ();
18123int
18124main ()
18125{
18126return is_selinux_enabled ();
18127 ;
18128 return 0;
18129}
18130_ACEOF
18131if ac_fn_c_try_link "$LINENO"; then :
18132 ac_cv_lib_selinux_is_selinux_enabled=yes
18133else
18134 ac_cv_lib_selinux_is_selinux_enabled=no
18135fi
18136rm -f core conftest.err conftest.$ac_objext \
18137 conftest$ac_exeext conftest.$ac_ext
18138LIBS=$ac_check_lib_save_LIBS
18139fi
18140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
18141$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
18142if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
18143
18144 LIBSELINUX="-lselinux"
18145
18146
18147$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
18148
18149
18150else
18151
18152 if test "x$with_selinux" != xcheck; then :
18153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18155as_fn_error $? "--with-selinux given but unavailable
18156See \`config.log' for more details" "$LINENO" 5 ; }
18157
18158fi
18159
18160fi
18161
18162
18163else
18164
18165 if test "x$with_selinux" != xcheck; then :
18166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18168as_fn_error $? "--with-selinux given but unavailable
18169See \`config.log' for more details" "$LINENO" 5 ; }
18170
18171fi
18172
18173fi
18174
18175
18176
18177else
18178
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux support" >&5
18180$as_echo_n "checking for selinux support... " >&6; }
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182$as_echo "no" >&6; }
18183
18184fi
18185
18186
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
18188$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
18189
18190 saved_flags="$CFLAGS"
18191 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
18192
18193 if test "$cross_compiling" = yes; then :
18194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18196as_fn_error $? "cannot run test program while cross compiling
18197See \`config.log' for more details" "$LINENO" 5 ; }
18198else
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200/* end confdefs.h. */
18201
18202int
18203main ()
18204{
18205
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210if ac_fn_c_try_run "$LINENO"; then :
18211
18212 FRAME_LARGER_THAN=-Wframe-larger-than=1024
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18214$as_echo "yes" >&6; }
18215
18216else
18217
18218 FRAME_LARGER_THAN=
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220$as_echo "no" >&6; }
18221
18222fi
18223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18224 conftest.$ac_objext conftest.beam conftest.$ac_ext
18225fi
18226
18227
18228 CFLAGS="$saved_flags"
18229
18230
18231 ;;
18232 all)
18233
18234
18235# Check whether --with-linux was given.
18236if test "${with_linux+set}" = set; then :
18237 withval=$with_linux; kernelsrc="$withval"
18238fi
18239
18240
18241
18242# Check whether --with-linux-obj was given.
18243if test "${with_linux_obj+set}" = set; then :
18244 withval=$with_linux_obj; kernelbuild="$withval"
18245fi
18246
18247
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
18249$as_echo_n "checking kernel source directory... " >&6; }
18250 if test -z "$kernelsrc"; then :
18251
18252 if test -e "/lib/modules/$(uname -r)/source"; then :
18253
18254 headersdir="/lib/modules/$(uname -r)/source"
18255 sourcelink=$(readlink -f "$headersdir")
18256
18257elif test -e "/lib/modules/$(uname -r)/build"; then :
18258
18259 headersdir="/lib/modules/$(uname -r)/build"
18260 sourcelink=$(readlink -f "$headersdir")
18261
18262else
18263
18264 sourcelink=$(ls -1d /usr/src/kernels/* \
18265 /usr/src/linux-* \
18266 2>/dev/null | grep -v obj | tail -1)
18267
18268fi
18269
18270 if test -n "$sourcelink" && test -e ${sourcelink}; then :
18271
18272 kernelsrc=`readlink -f ${sourcelink}`
18273
18274else
18275
18276 kernelsrc="Not found"
18277
18278fi
18279
18280else
18281
18282 if test "$kernelsrc" = "NONE"; then :
18283
18284 kernsrcver=NONE
18285
18286fi
18287
18288fi
18289
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
18291$as_echo "$kernelsrc" >&6; }
18292 if test ! -d "$kernelsrc"; then :
18293
18294 as_fn_error $? "
18295 *** Please make sure the kernel devel package for your distribution
c06d4368 18296 *** is installed and then try again. If that fails, you can specify the
0e3762ca
CALP
18297 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
18298
18299fi
18300
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
18302$as_echo_n "checking kernel build directory... " >&6; }
18303 if test -z "$kernelbuild"; then :
18304
18305 if test -e "/lib/modules/$(uname -r)/build"; then :
18306
18307 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
18308
18309elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
18310
18311 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18312
18313elif test -d ${kernelsrc}-obj/${target_cpu}/default; then :
18314
18315 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18316
18317elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then :
18318
18319 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18320
18321else
18322
18323 kernelbuild=${kernelsrc}
18324
18325fi
18326
18327fi
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
18329$as_echo "$kernelbuild" >&6; }
18330
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
18332$as_echo_n "checking kernel source version... " >&6; }
18333 utsrelease1=$kernelbuild/include/linux/version.h
18334 utsrelease2=$kernelbuild/include/linux/utsrelease.h
18335 utsrelease3=$kernelbuild/include/generated/utsrelease.h
18336 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then :
18337
18338 utsrelease=linux/version.h
18339
18340elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then :
18341
18342 utsrelease=linux/utsrelease.h
18343
18344elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then :
18345
18346 utsrelease=generated/utsrelease.h
18347
18348fi
18349
18350 if test "$utsrelease"; then :
18351
18352 kernsrcver=`(echo "#include <$utsrelease>";
18353 echo "kernsrcver=UTS_RELEASE") |
18354 cpp -I $kernelbuild/include |
18355 grep "^kernsrcver=" | cut -d \" -f 2`
18356
18357 if test -z "$kernsrcver"; then :
18358
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18360$as_echo "Not found" >&6; }
18361 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
18362
18363fi
18364
18365else
18366
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18368$as_echo "Not found" >&6; }
18369 if test "x$enable_linux_builtin" != xyes; then
18370 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
18371 else
18372 as_fn_error $? "
18373 *** Cannot find UTS_RELEASE definition.
18374 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
18375 fi
18376
18377fi
18378
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
18380$as_echo "$kernsrcver" >&6; }
18381
18382 LINUX=${kernelsrc}
18383 LINUX_OBJ=${kernelbuild}
18384 LINUX_VERSION=${kernsrcver}
18385
18386
18387
18388
18389
18390
18391 modpost=$LINUX/scripts/Makefile.modpost
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
18393$as_echo_n "checking kernel file name for module symbols... " >&6; }
18394 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then :
18395
18396 if grep -q Modules.symvers $modpost; then :
18397
18398 LINUX_SYMBOLS=Modules.symvers
18399
18400else
18401
18402 LINUX_SYMBOLS=Module.symvers
18403
18404fi
18405
18406 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
18407
18408 as_fn_error $? "
18409 *** Please make sure the kernel devel package for your distribution
c06d4368 18410 *** is installed. If you are building with a custom kernel, make sure the
0e3762ca
CALP
18411 *** kernel is configured, built, and the '--with-linux=PATH' configure
18412 *** option refers to the location of the kernel source." "$LINENO" 5
18413
18414fi
18415
18416else
18417
18418 LINUX_SYMBOLS=NONE
18419
18420fi
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
18422$as_echo "$LINUX_SYMBOLS" >&6; }
18423
18424
18425
18426
18427
18428# Check whether --with-spl was given.
18429if test "${with_spl+set}" = set; then :
18430 withval=$with_spl; splsrc="$withval"
18431fi
18432
18433
18434
18435# Check whether --with-spl-obj was given.
18436if test "${with_spl_obj+set}" = set; then :
18437 withval=$with_spl_obj; splbuild="$withval"
18438fi
18439
18440
c06d4368
AX
18441
18442# Check whether --with-spl-timeout was given.
18443if test "${with_spl_timeout+set}" = set; then :
18444 withval=$with_spl_timeout; timeout="$withval"
18445else
18446 timeout=0
18447fi
18448
18449
0e3762ca
CALP
18450 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
18451 splsrc1="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
18452 splsrc2="/usr/src/spl-${VERSION}"
18453 splsrc3="../spl/"
18454 splsrc4="$LINUX"
18455
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
18457$as_echo_n "checking spl source directory... " >&6; }
18458 if test -z "${splsrc}"; then :
18459
18460 if test -e "${splsrc0}/spl.release.in"; then :
18461
18462 splsrc=${splsrc0}
18463
18464elif test -e "${splsrc1}/spl.release.in"; then :
18465
18466 splsrc=${splsrc1}
18467
18468elif test -e "${splsrc2}/spl.release.in"; then :
18469
18470 splsrc=${splsrc2}
18471
18472elif test -e "${splsrc3}/spl.release.in"; then :
18473
18474 splsrc=$(readlink -f "${splsrc3}")
18475
18476elif test -e "${splsrc4}/spl.release.in" ; then :
18477
18478 splsrc=${splsrc4}
18479
18480else
18481
18482 splsrc="Not found"
18483
18484fi
18485
18486else
18487
18488 if test "$splsrc" = "NONE"; then :
18489
18490 splbuild=NONE
18491 splsrcver=NONE
18492
18493fi
18494
18495fi
18496
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
18498$as_echo "$splsrc" >&6; }
18499 if test ! -e "$splsrc/spl.release.in"; then :
18500
18501 as_fn_error $? "
18502 *** Please make sure the kmod spl devel package for your distribution
18503 *** is installed then try again. If that fails you can specify the
18504 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
18505
18506fi
18507
c06d4368 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
0e3762ca 18509$as_echo_n "checking spl build directory... " >&6; }
c06d4368
AX
18510 while true; do
18511 if test -z "$splbuild"; then :
0e3762ca 18512
c06d4368 18513 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
0e3762ca 18514
c06d4368 18515 splbuild="${splsrc}/${LINUX_VERSION}"
0e3762ca
CALP
18516
18517elif test -e "${splsrc}/spl_config.h" ; then :
18518
c06d4368 18519 splbuild="${splsrc}"
0e3762ca
CALP
18520
18521else
18522
c06d4368
AX
18523 splbuild="Not found"
18524
18525fi
0e3762ca
CALP
18526
18527fi
c06d4368
AX
18528 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
18529
18530 break;
18531
18532else
18533
18534 sleep 1
18535 timeout=$((timeout-1))
0e3762ca
CALP
18536
18537fi
c06d4368 18538 done
0e3762ca
CALP
18539
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
18541$as_echo "$splbuild" >&6; }
18542 if ! test -e "$splbuild/spl_config.h"; then :
18543
18544 as_fn_error $? "
18545 *** Please make sure the kmod spl devel <kernel> package for your
18546 *** distribution is installed then try again. If that fails you
18547 *** can specify the location of the spl objects with the
18548 *** '--with-spl-obj=PATH' option." "$LINENO" 5
18549
18550fi
18551
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
18553$as_echo_n "checking spl source version... " >&6; }
18554 if test -r $splbuild/spl_config.h &&
18555 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then :
18556
18557
18558 splsrcver=`(echo "#include <spl_config.h>";
18559 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18560 cpp -I $splbuild |
18561 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
18562
18563fi
18564
18565 if test -z "$splsrcver"; then :
18566
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18568$as_echo "Not found" >&6; }
18569 as_fn_error $? "
18570 *** Cannot determine the version of the spl source.
18571 *** Please prepare the spl source before running this script" "$LINENO" 5
18572
18573fi
18574
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
18576$as_echo "$splsrcver" >&6; }
18577
18578 SPL=${splsrc}
18579 SPL_OBJ=${splbuild}
18580 SPL_VERSION=${splsrcver}
18581
18582
18583
18584
18585
c06d4368 18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
0e3762ca
CALP
18587$as_echo_n "checking spl file name for module symbols... " >&6; }
18588 SPL_SYMBOLS=NONE
18589
18590 while true; do
18591 if test -r $SPL_OBJ/Module.symvers; then :
18592
18593 SPL_SYMBOLS=Module.symvers
18594
18595elif test -r $SPL_OBJ/Modules.symvers; then :
18596
18597 SPL_SYMBOLS=Modules.symvers
18598
18599elif test -r $SPL_OBJ/module/Module.symvers; then :
18600
18601 SPL_SYMBOLS=Module.symvers
18602
18603elif test -r $SPL_OBJ/module/Modules.symvers; then :
18604
18605 SPL_SYMBOLS=Modules.symvers
18606
18607fi
18608
18609 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then :
18610
18611 break;
18612
18613else
18614
18615 sleep 1
18616 timeout=$((timeout-1))
18617
18618fi
18619 done
18620
18621 if test "$SPL_SYMBOLS" = NONE; then :
18622
18623 SPL_SYMBOLS=$LINUX_SYMBOLS
18624
18625fi
18626
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
18628$as_echo "$SPL_SYMBOLS" >&6; }
18629
18630
0e3762ca
CALP
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
18632$as_echo_n "checking whether modules can be built... " >&6; }
18633
18634
18635cat confdefs.h - <<_ACEOF >conftest.c
18636
18637
18638int
18639main (void)
18640{
18641
18642 ;
18643 return 0;
18644}
18645
18646_ACEOF
18647
18648
18649 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18650 echo "obj-m := conftest.o" >build/Makefile
18651 modpost_flag=''
18652 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18653 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18658 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18660 (eval $ac_try) 2>&5
18661 ac_status=$?
18662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18663 test $ac_status = 0; }; }; then :
18664
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18666$as_echo "yes" >&6; }
18667
18668else
18669 $as_echo "$as_me: failed program was:" >&5
18670sed 's/^/| /' conftest.$ac_ext >&5
18671
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18673$as_echo "no" >&6; }
18674 if test "x$enable_linux_builtin" != xyes; then
18675 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
18676 else
18677 as_fn_error $? "
18678 *** Unable to build an empty module.
18679 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
18680 fi
18681
18682
18683
18684fi
18685 rm -Rf build
18686
18687
18688
18689
18690
18691 if test "$ZFS_META_LICENSE" = GPL; then :
18692
18693
18694$as_echo "#define HAVE_GPL_ONLY_SYMBOLS 1" >>confdefs.h
18695
18696
18697fi
18698
18699
18700
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18702$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
18703
18704
18705cat confdefs.h - <<_ACEOF >conftest.c
18706
18707
18708 #include <linux/module.h>
18709
18710int
18711main (void)
18712{
18713
18714 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18715 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18716 #endif
18717
18718 ;
18719 return 0;
18720}
18721
18722_ACEOF
18723
18724
18725 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18726 echo "obj-m := conftest.o" >build/Makefile
18727 modpost_flag=''
18728 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18729 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18731 (eval $ac_try) 2>&5
18732 ac_status=$?
18733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18734 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739 test $ac_status = 0; }; }; then :
18740
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18742$as_echo "yes" >&6; }
18743
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
18745$as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
18746 tmp_flags="$EXTRA_KCFLAGS"
18747
18748
18749cat confdefs.h - <<_ACEOF >conftest.c
18750
18751
18752 #include <linux/module.h>
18753 #include <linux/mutex.h>
18754
18755 MODULE_LICENSE("$ZFS_META_LICENSE");
18756
18757int
18758main (void)
18759{
18760
18761 struct mutex lock;
18762
18763 mutex_init(&lock);
18764 mutex_lock(&lock);
18765 mutex_unlock(&lock);
18766
18767 ;
18768 return 0;
18769}
18770
18771_ACEOF
18772
18773
18774 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18775 echo "obj-m := conftest.o" >build/Makefile
18776 modpost_flag=''
18777 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18778 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18780 (eval $ac_try) 2>&5
18781 ac_status=$?
18782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18783 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
18787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18788 test $ac_status = 0; }; }; then :
18789
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18791$as_echo "no" >&6; }
18792
18793else
18794 $as_echo "$as_me: failed program was:" >&5
18795sed 's/^/| /' conftest.$ac_ext >&5
18796
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18798$as_echo "yes" >&6; }
18799 as_fn_error $? "
18800 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
18801 *** with the CDDL license and will prevent the module linking stage
18802 *** from succeeding. You must rebuild your kernel without this
18803 *** option enabled." "$LINENO" 5
18804
18805
18806
18807fi
18808 rm -Rf build
18809
18810
18811 EXTRA_KCFLAGS="$tmp_flags"
18812
18813
18814else
18815 $as_echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819$as_echo "no" >&6; }
18820
18821
18822
18823
18824fi
18825 rm -Rf build
18826
18827
18828
18829
18830
18831
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
18833$as_echo_n "checking block device operation prototypes... " >&6; }
18834 tmp_flags="$EXTRA_KCFLAGS"
18835 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
18836
18837
18838cat confdefs.h - <<_ACEOF >conftest.c
18839
18840
18841 #include <linux/blkdev.h>
18842
18843 int blk_open(struct block_device *bdev, fmode_t mode)
18844 { return 0; }
0e3762ca
CALP
18845 int blk_ioctl(struct block_device *bdev, fmode_t mode,
18846 unsigned x, unsigned long y) { return 0; }
18847 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
18848 unsigned x, unsigned long y) { return 0; }
18849
18850 static const struct block_device_operations
18851 bops __attribute__ ((unused)) = {
18852 .open = blk_open,
c06d4368 18853 .release = NULL,
0e3762ca
CALP
18854 .ioctl = blk_ioctl,
18855 .compat_ioctl = blk_compat_ioctl,
18856 };
18857
18858int
18859main (void)
18860{
18861
18862
18863 ;
18864 return 0;
18865}
18866
18867_ACEOF
18868
18869
18870 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18871 echo "obj-m := conftest.o" >build/Makefile
18872 modpost_flag=''
18873 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18874 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18876 (eval $ac_try) 2>&5
18877 ac_status=$?
18878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18879 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18884 test $ac_status = 0; }; }; then :
18885
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
18887$as_echo "struct block_device" >&6; }
18888
18889$as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
18890
18891
18892else
18893 $as_echo "$as_me: failed program was:" >&5
18894sed 's/^/| /' conftest.$ac_ext >&5
18895
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
18897$as_echo "struct inode" >&6; }
18898
18899
18900
18901fi
18902 rm -Rf build
18903
18904
18905 EXTRA_KCFLAGS="$tmp_flags"
18906
c06d4368
AX
18907
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
18909$as_echo_n "checking whether block_device_operations.release is void... " >&6; }
18910 tmp_flags="$EXTRA_KCFLAGS"
18911 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
0e3762ca
CALP
18912
18913
18914cat confdefs.h - <<_ACEOF >conftest.c
18915
18916
c06d4368
AX
18917 #include <linux/blkdev.h>
18918
18919 void blk_release(struct gendisk *g, fmode_t mode) { return; }
18920
18921 static const struct block_device_operations
18922 bops __attribute__ ((unused)) = {
18923 .open = NULL,
18924 .release = blk_release,
18925 .ioctl = NULL,
18926 .compat_ioctl = NULL,
18927 };
0e3762ca
CALP
18928
18929int
18930main (void)
18931{
18932
0e3762ca
CALP
18933
18934 ;
18935 return 0;
18936}
18937
18938_ACEOF
18939
18940
18941 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18942 echo "obj-m := conftest.o" >build/Makefile
18943 modpost_flag=''
18944 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18945 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18950 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
18951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18952 (eval $ac_try) 2>&5
18953 ac_status=$?
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }; }; then :
18956
c06d4368
AX
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
18958$as_echo "void" >&6; }
18959
18960$as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
18961
18962
18963else
18964 $as_echo "$as_me: failed program was:" >&5
18965sed 's/^/| /' conftest.$ac_ext >&5
18966
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
18968$as_echo "int" >&6; }
18969
18970
18971
18972fi
18973 rm -Rf build
18974
18975
18976 EXTRA_KCFLAGS="$tmp_flags"
18977
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
18979$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
18980
18981
18982cat confdefs.h - <<_ACEOF >conftest.c
18983
18984
18985 #include <linux/types.h>
18986
18987int
18988main (void)
18989{
18990
18991 fmode_t *ptr __attribute__ ((unused));
18992
18993 ;
18994 return 0;
18995}
18996
18997_ACEOF
18998
18999
19000 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19001 echo "obj-m := conftest.o" >build/Makefile
19002 modpost_flag=''
19003 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19004 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19009 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19011 (eval $ac_try) 2>&5
19012 ac_status=$?
19013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19014 test $ac_status = 0; }; }; then :
19015
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
0e3762ca
CALP
19017$as_echo "yes" >&6; }
19018
19019$as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
19020
19021
19022else
19023 $as_echo "$as_me: failed program was:" >&5
19024sed 's/^/| /' conftest.$ac_ext >&5
19025
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027$as_echo "no" >&6; }
19028
19029
19030
19031fi
19032 rm -Rf build
19033
19034
19035
19036
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
19038$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
19039
19040
19041cat confdefs.h - <<_ACEOF >conftest.c
19042
19043
19044 #include <linux/kobject.h>
19045
19046int
19047main (void)
19048{
19049
19050 int val __attribute__ ((unused));
19051 val = KOBJ_NAME_LEN;
19052
19053 ;
19054 return 0;
19055}
19056
19057_ACEOF
19058
19059
19060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19061 echo "obj-m := conftest.o" >build/Makefile
19062 modpost_flag=''
19063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19064 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19069 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19071 (eval $ac_try) 2>&5
19072 ac_status=$?
19073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19074 test $ac_status = 0; }; }; then :
19075
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19077$as_echo "yes" >&6; }
19078
19079$as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
19080
19081
19082else
19083 $as_echo "$as_me: failed program was:" >&5
19084sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19087$as_echo "no" >&6; }
19088
19089
19090
19091fi
19092 rm -Rf build
19093
19094
19095
19096
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
19098$as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
19099
19100
19101cat confdefs.h - <<_ACEOF >conftest.c
19102
19103
19104 #include <linux/fs.h>
19105
19106int
19107main (void)
19108{
19109
19110 struct block_device *bdev = NULL;
19111 (void) blkdev_get(bdev, 0, NULL);
19112
19113 ;
19114 return 0;
19115}
19116
19117_ACEOF
19118
19119
19120 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19121 echo "obj-m := conftest.o" >build/Makefile
19122 modpost_flag=''
19123 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19124 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19129 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19131 (eval $ac_try) 2>&5
19132 ac_status=$?
19133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134 test $ac_status = 0; }; }; then :
19135
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19137$as_echo "yes" >&6; }
19138
19139$as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
19140
19141
19142else
19143 $as_echo "$as_me: failed program was:" >&5
19144sed 's/^/| /' conftest.$ac_ext >&5
19145
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19147$as_echo "no" >&6; }
19148
19149
19150
19151fi
19152 rm -Rf build
19153
19154
19155
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
19157$as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
19158
19159
19160
19161cat confdefs.h - <<_ACEOF >conftest.c
19162
19163
19164 #include <linux/fs.h>
19165
19166int
19167main (void)
19168{
19169
19170 blkdev_get_by_path(NULL, 0, NULL);
19171
19172 ;
19173 return 0;
19174}
19175
19176_ACEOF
19177
19178
19179 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19180 echo "obj-m := conftest.o" >build/Makefile
19181 modpost_flag=''
19182 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19183 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19188 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19193 test $ac_status = 0; }; }; then :
19194 rc=0
19195else
19196 $as_echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198 rc=1
19199
19200
19201fi
19202 rm -Rf build
19203
19204
19205 if test $rc -ne 0; then :
19206
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19208$as_echo "no" >&6; }
19209
19210 else
19211 if test "x$enable_linux_builtin" != xyes; then
19212
19213 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
19214 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19215 rc=$?
19216 if test $rc -ne 0; then
19217 export=0
19218 for file in fs/block_dev.c; do
19219 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
19220 "$LINUX/$file" 2>/dev/null
19221 rc=$?
19222 if test $rc -eq 0; then
19223 export=1
19224 break;
19225 fi
19226 done
19227 if test $export -eq 0; then :
19228 rc=1
19229 else :
19230 rc=0
19231 fi
19232 else :
19233 rc=0
19234 fi
19235
19236 fi
19237 if test $rc -ne 0; then :
19238
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19240$as_echo "no" >&6; }
19241
19242 else :
19243
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19245$as_echo "yes" >&6; }
19246
19247$as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
19248
19249
19250 fi
19251 fi
19252
19253
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
19255$as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
19256
19257
19258
19259cat confdefs.h - <<_ACEOF >conftest.c
19260
19261
19262 #include <linux/fs.h>
19263
19264int
19265main (void)
19266{
19267
19268 open_bdev_exclusive(NULL, 0, NULL);
19269
19270 ;
19271 return 0;
19272}
19273
19274_ACEOF
19275
19276
19277 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19278 echo "obj-m := conftest.o" >build/Makefile
19279 modpost_flag=''
19280 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19281 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19286 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19291 test $ac_status = 0; }; }; then :
19292 rc=0
19293else
19294 $as_echo "$as_me: failed program was:" >&5
19295sed 's/^/| /' conftest.$ac_ext >&5
19296 rc=1
19297
19298
19299fi
19300 rm -Rf build
19301
19302
19303 if test $rc -ne 0; then :
19304
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19306$as_echo "no" >&6; }
19307
19308 else
19309 if test "x$enable_linux_builtin" != xyes; then
19310
19311 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
19312 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19313 rc=$?
19314 if test $rc -ne 0; then
19315 export=0
19316 for file in fs/block_dev.c; do
19317 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
19318 "$LINUX/$file" 2>/dev/null
19319 rc=$?
19320 if test $rc -eq 0; then
19321 export=1
19322 break;
19323 fi
19324 done
19325 if test $export -eq 0; then :
19326 rc=1
19327 else :
19328 rc=0
19329 fi
19330 else :
19331 rc=0
19332 fi
19333
19334 fi
19335 if test $rc -ne 0; then :
19336
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338$as_echo "no" >&6; }
19339
19340 else :
19341
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19343$as_echo "yes" >&6; }
19344
19345$as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
19346
19347
19348 fi
19349 fi
19350
19351
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
19353$as_echo_n "checking whether lookup_bdev() is available... " >&6; }
19354
19355
19356
19357cat confdefs.h - <<_ACEOF >conftest.c
19358
19359
19360 #include <linux/fs.h>
19361
19362int
19363main (void)
19364{
19365
19366 lookup_bdev(NULL);
19367
19368 ;
19369 return 0;
19370}
19371
19372_ACEOF
19373
19374
19375 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19376 echo "obj-m := conftest.o" >build/Makefile
19377 modpost_flag=''
19378 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19379 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19384 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19389 test $ac_status = 0; }; }; then :
19390 rc=0
19391else
19392 $as_echo "$as_me: failed program was:" >&5
19393sed 's/^/| /' conftest.$ac_ext >&5
19394 rc=1
19395
19396
19397fi
19398 rm -Rf build
19399
19400
19401 if test $rc -ne 0; then :
19402
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404$as_echo "no" >&6; }
19405
19406 else
19407 if test "x$enable_linux_builtin" != xyes; then
19408
19409 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
19410 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19411 rc=$?
19412 if test $rc -ne 0; then
19413 export=0
19414 for file in fs/block_dev.c; do
19415 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
19416 "$LINUX/$file" 2>/dev/null
19417 rc=$?
19418 if test $rc -eq 0; then
19419 export=1
19420 break;
19421 fi
19422 done
19423 if test $export -eq 0; then :
19424 rc=1
19425 else :
19426 rc=0
19427 fi
19428 else :
19429 rc=0
19430 fi
19431
19432 fi
19433 if test $rc -ne 0; then :
19434
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19436$as_echo "no" >&6; }
19437
19438 else :
19439
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19441$as_echo "yes" >&6; }
19442
19443$as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
19444
19445
19446 fi
19447 fi
19448
19449
19450
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
19452$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
19453
19454
19455cat confdefs.h - <<_ACEOF >conftest.c
19456
19457
19458 #include <linux/buffer_head.h>
19459
19460int
19461main (void)
19462{
19463
19464 struct block_device *bdev = NULL;
19465 invalidate_bdev(bdev);
19466
19467 ;
19468 return 0;
19469}
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 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
19493$as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
19494
19495
19496else
19497 $as_echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19501$as_echo "no" >&6; }
19502
19503
19504
19505fi
19506 rm -Rf build
19507
19508
19509
19510
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
19512$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
19513 tmp_flags="$EXTRA_KCFLAGS"
19514 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
19515
19516
19517cat confdefs.h - <<_ACEOF >conftest.c
19518
19519
19520 #include <linux/blkdev.h>
19521
19522int
19523main (void)
19524{
19525
19526 struct block_device *bdev = NULL;
19527 bdev_logical_block_size(bdev);
19528
19529 ;
19530 return 0;
19531}
19532
19533_ACEOF
19534
19535
19536 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19537 echo "obj-m := conftest.o" >build/Makefile
19538 modpost_flag=''
19539 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19540 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19545 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19547 (eval $ac_try) 2>&5
19548 ac_status=$?
19549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19550 test $ac_status = 0; }; }; then :
19551
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553$as_echo "yes" >&6; }
19554
19555$as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
19556
19557
19558else
19559 $as_echo "$as_me: failed program was:" >&5
19560sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19563$as_echo "no" >&6; }
19564
19565
19566
19567fi
19568 rm -Rf build
19569
19570
19571 EXTRA_KCFLAGS="$tmp_flags"
19572
19573
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
19575$as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
19576 tmp_flags="$EXTRA_KCFLAGS"
19577 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
19578
19579
19580cat confdefs.h - <<_ACEOF >conftest.c
19581
19582
19583 #include <linux/blkdev.h>
19584
19585int
19586main (void)
19587{
19588
19589 struct block_device *bdev = NULL;
19590 bdev_physical_block_size(bdev);
19591
19592 ;
19593 return 0;
19594}
19595
19596_ACEOF
19597
19598
19599 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19600 echo "obj-m := conftest.o" >build/Makefile
19601 modpost_flag=''
19602 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19603 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19608 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19613 test $ac_status = 0; }; }; then :
19614
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19616$as_echo "yes" >&6; }
19617
19618$as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
19619
19620
19621else
19622 $as_echo "$as_me: failed program was:" >&5
19623sed 's/^/| /' conftest.$ac_ext >&5
19624
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19626$as_echo "no" >&6; }
19627
19628
19629
19630fi
19631 rm -Rf build
19632
19633
19634 EXTRA_KCFLAGS="$tmp_flags"
19635
19636
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
19638$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
19639
19640
19641cat confdefs.h - <<_ACEOF >conftest.c
19642
19643
19644 #include <linux/bio.h>
19645
19646int
19647main (void)
19648{
19649
19650 int flags __attribute__ ((unused));
19651 flags = (1 << BIO_RW_FAILFAST);
19652
19653 ;
19654 return 0;
19655}
19656
19657_ACEOF
19658
19659
19660 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19661 echo "obj-m := conftest.o" >build/Makefile
19662 modpost_flag=''
19663 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19664 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19666 (eval $ac_try) 2>&5
19667 ac_status=$?
19668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19669 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19671 (eval $ac_try) 2>&5
19672 ac_status=$?
19673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19674 test $ac_status = 0; }; }; then :
19675
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19677$as_echo "yes" >&6; }
19678
19679$as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
19680
19681
19682else
19683 $as_echo "$as_me: failed program was:" >&5
19684sed 's/^/| /' conftest.$ac_ext >&5
19685
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19687$as_echo "no" >&6; }
19688
19689
19690
19691fi
19692 rm -Rf build
19693
19694
19695
19696
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
19698$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19699
19700
19701cat confdefs.h - <<_ACEOF >conftest.c
19702
19703
19704 #include <linux/bio.h>
19705
19706int
19707main (void)
19708{
19709
19710 int flags __attribute__ ((unused));
19711 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19712 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19713 (1 << BIO_RW_FAILFAST_DRIVER));
19714
19715 ;
19716 return 0;
19717}
19718
19719_ACEOF
19720
19721
19722 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19723 echo "obj-m := conftest.o" >build/Makefile
19724 modpost_flag=''
19725 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19726 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19731 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19736 test $ac_status = 0; }; }; then :
19737
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19739$as_echo "yes" >&6; }
19740
19741$as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
19742
19743
19744else
19745 $as_echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749$as_echo "no" >&6; }
19750
19751
19752
19753fi
19754 rm -Rf build
19755
19756
19757
19758
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
19760$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
19761
19762
19763cat confdefs.h - <<_ACEOF >conftest.c
19764
19765
19766 #include <linux/bio.h>
19767
19768int
19769main (void)
19770{
19771
19772 int flags __attribute__ ((unused));
19773 flags = REQ_FAILFAST_MASK;
19774
19775 ;
19776 return 0;
19777}
19778
19779_ACEOF
19780
19781
19782 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19783 echo "obj-m := conftest.o" >build/Makefile
19784 modpost_flag=''
19785 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19786 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19791 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
19795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19796 test $ac_status = 0; }; }; then :
19797
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799$as_echo "yes" >&6; }
19800
19801$as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
19802
19803
19804else
19805 $as_echo "$as_me: failed program was:" >&5
19806sed 's/^/| /' conftest.$ac_ext >&5
19807
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809$as_echo "no" >&6; }
19810
19811
19812
19813fi
19814 rm -Rf build
19815
19816
19817
19818
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
19820$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
19821
19822
19823cat confdefs.h - <<_ACEOF >conftest.c
19824
19825
19826 #include <linux/bio.h>
19827
19828 void wanted_end_io(struct bio *bio, int x) { return; }
19829
19830 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
19831
19832int
19833main (void)
19834{
19835
19836
19837 ;
19838 return 0;
19839}
19840
19841_ACEOF
19842
19843
19844 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19845 echo "obj-m := conftest.o" >build/Makefile
19846 modpost_flag=''
19847 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19853 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19855 (eval $ac_try) 2>&5
19856 ac_status=$?
19857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19858 test $ac_status = 0; }; }; then :
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19861$as_echo "yes" >&6; }
19862
19863$as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
19864
19865
19866else
19867 $as_echo "$as_me: failed program was:" >&5
19868sed 's/^/| /' conftest.$ac_ext >&5
19869
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19871$as_echo "no" >&6; }
19872
19873
19874
19875fi
19876 rm -Rf build
19877
19878
19879
19880
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
19882$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
19883
19884
19885cat confdefs.h - <<_ACEOF >conftest.c
19886
19887
19888 #include <linux/bio.h>
19889
19890int
19891main (void)
19892{
19893
19894 int flags __attribute__ ((unused));
19895 flags = BIO_RW_SYNC;
19896
19897 ;
19898 return 0;
19899}
19900
19901_ACEOF
19902
19903
19904 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19905 echo "obj-m := conftest.o" >build/Makefile
19906 modpost_flag=''
19907 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19908 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19913 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19918 test $ac_status = 0; }; }; then :
19919
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19921$as_echo "yes" >&6; }
19922
19923$as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
19924
19925
19926else
19927 $as_echo "$as_me: failed program was:" >&5
19928sed 's/^/| /' conftest.$ac_ext >&5
19929
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19931$as_echo "no" >&6; }
19932
19933
19934
19935fi
19936 rm -Rf build
19937
19938
19939
19940
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
19942$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
19943
19944
19945cat confdefs.h - <<_ACEOF >conftest.c
19946
19947
19948 #include <linux/bio.h>
19949
19950int
19951main (void)
19952{
19953
19954 int flags __attribute__ ((unused));
19955 flags = BIO_RW_SYNCIO;
19956
19957 ;
19958 return 0;
19959}
19960
19961_ACEOF
19962
19963
19964 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
19965 echo "obj-m := conftest.o" >build/Makefile
19966 modpost_flag=''
19967 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
19968 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19970 (eval $ac_try) 2>&5
19971 ac_status=$?
19972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19973 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
19974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19978 test $ac_status = 0; }; }; then :
19979
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19981$as_echo "yes" >&6; }
19982
19983$as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
19984
19985
19986else
19987 $as_echo "$as_me: failed program was:" >&5
19988sed 's/^/| /' conftest.$ac_ext >&5
19989
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19991$as_echo "no" >&6; }
19992
19993
19994
19995fi
19996 rm -Rf build
19997
19998
19999
20000
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
20002$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
20003
20004
20005cat confdefs.h - <<_ACEOF >conftest.c
20006
20007
20008 #include <linux/bio.h>
20009
20010int
20011main (void)
20012{
20013
20014 int flags __attribute__ ((unused));
20015 flags = REQ_SYNC;
20016
20017 ;
20018 return 0;
20019}
20020
20021_ACEOF
20022
20023
20024 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20025 echo "obj-m := conftest.o" >build/Makefile
20026 modpost_flag=''
20027 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20028 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20033 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20038 test $ac_status = 0; }; }; then :
20039
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20041$as_echo "yes" >&6; }
20042
20043$as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
20044
20045
20046else
20047 $as_echo "$as_me: failed program was:" >&5
20048sed 's/^/| /' conftest.$ac_ext >&5
20049
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20051$as_echo "no" >&6; }
20052
20053
20054
20055fi
20056 rm -Rf build
20057
20058
20059
20060
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
20062$as_echo_n "checking whether blk_end_request() is available... " >&6; }
20063 tmp_flags="$EXTRA_KCFLAGS"
20064 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20065
20066
20067cat confdefs.h - <<_ACEOF >conftest.c
20068
20069
20070 #include <linux/blkdev.h>
20071
20072int
20073main (void)
20074{
20075
20076 struct request *req = NULL;
20077 (void) blk_end_request(req, 0, 0);
20078
20079 ;
20080 return 0;
20081}
20082
20083_ACEOF
20084
20085
20086 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20087 echo "obj-m := conftest.o" >build/Makefile
20088 modpost_flag=''
20089 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20090 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; }; then :
20101
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103$as_echo "yes" >&6; }
20104
20105$as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
20106
20107
20108else
20109 $as_echo "$as_me: failed program was:" >&5
20110sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113$as_echo "no" >&6; }
20114
20115
20116
20117fi
20118 rm -Rf build
20119
20120
20121
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
20123$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
20124
20125
20126cat confdefs.h - <<_ACEOF >conftest.c
20127
20128
20129 #include <linux/module.h>
20130 #include <linux/blkdev.h>
20131
20132 MODULE_LICENSE("CDDL");
20133
20134int
20135main (void)
20136{
20137
20138 struct request *req = NULL;
20139 (void) blk_end_request(req, 0, 0);
20140
20141 ;
20142 return 0;
20143}
20144
20145_ACEOF
20146
20147
20148 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20149 echo "obj-m := conftest.o" >build/Makefile
20150 modpost_flag=''
20151 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20152 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20157 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20162 test $ac_status = 0; }; }; then :
20163
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165$as_echo "no" >&6; }
20166
20167else
20168 $as_echo "$as_me: failed program was:" >&5
20169sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20172$as_echo "yes" >&6; }
20173
20174$as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
20175
20176
20177
20178
20179fi
20180 rm -Rf build
20181
20182
20183 EXTRA_KCFLAGS="$tmp_flags"
20184
20185
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
20187$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
20188 tmp_flags="$EXTRA_KCFLAGS"
20189 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20190
20191
20192cat confdefs.h - <<_ACEOF >conftest.c
20193
20194
20195 #include <linux/blkdev.h>
20196
20197int
20198main (void)
20199{
20200
20201 struct request_queue *q = NULL;
20202 (void) blk_queue_flush(q, REQ_FLUSH);
20203
20204 ;
20205 return 0;
20206}
20207
20208_ACEOF
20209
20210
20211 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20212 echo "obj-m := conftest.o" >build/Makefile
20213 modpost_flag=''
20214 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20215 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20217 (eval $ac_try) 2>&5
20218 ac_status=$?
20219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20220 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20222 (eval $ac_try) 2>&5
20223 ac_status=$?
20224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20225 test $ac_status = 0; }; }; then :
20226
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20228$as_echo "yes" >&6; }
20229
20230$as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
20231
20232
20233else
20234 $as_echo "$as_me: failed program was:" >&5
20235sed 's/^/| /' conftest.$ac_ext >&5
20236
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20238$as_echo "no" >&6; }
20239
20240
20241
20242fi
20243 rm -Rf build
20244
20245
20246
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
20248$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
20249
20250
20251cat confdefs.h - <<_ACEOF >conftest.c
20252
20253
20254 #include <linux/module.h>
20255 #include <linux/blkdev.h>
20256
20257 MODULE_LICENSE("CDDL");
20258
20259int
20260main (void)
20261{
20262
20263 struct request_queue *q = NULL;
20264 (void) blk_queue_flush(q, REQ_FLUSH);
20265
20266 ;
20267 return 0;
20268}
20269
20270_ACEOF
20271
20272
20273 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20274 echo "obj-m := conftest.o" >build/Makefile
20275 modpost_flag=''
20276 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20277 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20282 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20287 test $ac_status = 0; }; }; then :
20288
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20290$as_echo "no" >&6; }
20291
20292else
20293 $as_echo "$as_me: failed program was:" >&5
20294sed 's/^/| /' conftest.$ac_ext >&5
20295
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20297$as_echo "yes" >&6; }
20298
20299$as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
20300
20301
20302
20303
20304fi
20305 rm -Rf build
20306
20307
20308 EXTRA_KCFLAGS="$tmp_flags"
20309
20310
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
20312$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
20313 tmp_flags="$EXTRA_KCFLAGS"
20314 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20315
20316
20317cat confdefs.h - <<_ACEOF >conftest.c
20318
20319
20320 #include <linux/blkdev.h>
20321
20322int
20323main (void)
20324{
20325
20326 struct request_queue *q = NULL;
20327 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
20328
20329 ;
20330 return 0;
20331}
20332
20333_ACEOF
20334
20335
20336 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20337 echo "obj-m := conftest.o" >build/Makefile
20338 modpost_flag=''
20339 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20340 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20345 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20350 test $ac_status = 0; }; }; then :
20351
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20353$as_echo "yes" >&6; }
20354
20355$as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
20356
20357
20358else
20359 $as_echo "$as_me: failed program was:" >&5
20360sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20363$as_echo "no" >&6; }
20364
20365
20366
20367fi
20368 rm -Rf build
20369
20370
20371 EXTRA_KCFLAGS="$tmp_flags"
20372
20373
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
20375$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
20376 tmp_flags="$EXTRA_KCFLAGS"
20377 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20378
20379
20380cat confdefs.h - <<_ACEOF >conftest.c
20381
20382
20383 #include <linux/blkdev.h>
20384
20385int
20386main (void)
20387{
20388
20389 struct request_queue *q = NULL;
20390 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
20391
20392 ;
20393 return 0;
20394}
20395
20396_ACEOF
20397
20398
20399 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20400 echo "obj-m := conftest.o" >build/Makefile
20401 modpost_flag=''
20402 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20403 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20408 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20410 (eval $ac_try) 2>&5
20411 ac_status=$?
20412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20413 test $ac_status = 0; }; }; then :
20414
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20416$as_echo "yes" >&6; }
20417
20418$as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
20419
20420
20421else
20422 $as_echo "$as_me: failed program was:" >&5
20423sed 's/^/| /' conftest.$ac_ext >&5
20424
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20426$as_echo "no" >&6; }
20427
20428
20429
20430fi
20431 rm -Rf build
20432
20433
20434 EXTRA_KCFLAGS="$tmp_flags"
20435
20436
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
20438$as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
20439 tmp_flags="$EXTRA_KCFLAGS"
20440 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20441
20442
20443cat confdefs.h - <<_ACEOF >conftest.c
20444
20445
20446 #include <linux/blkdev.h>
20447
20448int
20449main (void)
20450{
20451
20452 struct request_queue *q = NULL;
20453 unsigned short block_size = 1;
20454 (void) blk_queue_physical_block_size(q, block_size);
20455
20456 ;
20457 return 0;
20458}
20459
20460_ACEOF
20461
20462
20463 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20464 echo "obj-m := conftest.o" >build/Makefile
20465 modpost_flag=''
20466 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20467 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20469 (eval $ac_try) 2>&5
20470 ac_status=$?
20471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20472 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20477 test $ac_status = 0; }; }; then :
20478
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20480$as_echo "yes" >&6; }
20481
20482$as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
20483
20484
20485else
20486 $as_echo "$as_me: failed program was:" >&5
20487sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20490$as_echo "no" >&6; }
20491
20492
20493
20494fi
20495 rm -Rf build
20496
20497
20498 EXTRA_KCFLAGS="$tmp_flags"
20499
20500
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
20502$as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
20503 tmp_flags="$EXTRA_KCFLAGS"
20504 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20505
20506
20507cat confdefs.h - <<_ACEOF >conftest.c
20508
20509
20510 #include <linux/blkdev.h>
20511
20512int
20513main (void)
20514{
20515
20516 struct request_queue *q = NULL;
20517 unsigned int opt = 1;
20518 (void) blk_queue_io_opt(q, opt);
20519
20520 ;
20521 return 0;
20522}
20523
20524_ACEOF
20525
20526
20527 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20528 echo "obj-m := conftest.o" >build/Makefile
20529 modpost_flag=''
20530 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20531 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20533 (eval $ac_try) 2>&5
20534 ac_status=$?
20535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20536 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20541 test $ac_status = 0; }; }; then :
20542
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20544$as_echo "yes" >&6; }
20545
20546$as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
20547
20548
20549else
20550 $as_echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20554$as_echo "no" >&6; }
20555
20556
20557
20558fi
20559 rm -Rf build
20560
20561
20562 EXTRA_KCFLAGS="$tmp_flags"
20563
20564
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
20566$as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20567 tmp_flags="$EXTRA_KCFLAGS"
20568 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20569
20570
20571cat confdefs.h - <<_ACEOF >conftest.c
20572
20573
20574 #include <linux/blkdev.h>
20575
20576int
20577main (void)
20578{
20579
20580 struct request_queue *q = NULL;
20581 (void) blk_queue_nonrot(q);
20582
20583 ;
20584 return 0;
20585}
20586
20587_ACEOF
20588
20589
20590 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20591 echo "obj-m := conftest.o" >build/Makefile
20592 modpost_flag=''
20593 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20594 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20596 (eval $ac_try) 2>&5
20597 ac_status=$?
20598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20599 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20601 (eval $ac_try) 2>&5
20602 ac_status=$?
20603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20604 test $ac_status = 0; }; }; then :
20605
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20607$as_echo "yes" >&6; }
20608
20609$as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
20610
20611
20612else
20613 $as_echo "$as_me: failed program was:" >&5
20614sed 's/^/| /' conftest.$ac_ext >&5
20615
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617$as_echo "no" >&6; }
20618
20619
20620
20621fi
20622 rm -Rf build
20623
20624
20625 EXTRA_KCFLAGS="$tmp_flags"
20626
20627
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
20629$as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20630 tmp_flags="$EXTRA_KCFLAGS"
20631 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20632
20633
20634cat confdefs.h - <<_ACEOF >conftest.c
20635
20636
20637 #include <linux/blkdev.h>
20638
20639int
20640main (void)
20641{
20642
20643 struct request_queue *q = NULL;
20644 (void) blk_queue_discard(q);
20645
20646 ;
20647 return 0;
20648}
20649
20650_ACEOF
20651
20652
20653 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20654 echo "obj-m := conftest.o" >build/Makefile
20655 modpost_flag=''
20656 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20657 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20662 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20664 (eval $ac_try) 2>&5
20665 ac_status=$?
20666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20667 test $ac_status = 0; }; }; then :
20668
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20670$as_echo "yes" >&6; }
20671
20672$as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
20673
20674
20675else
20676 $as_echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20680$as_echo "no" >&6; }
20681
20682
20683
20684fi
20685 rm -Rf build
20686
20687
20688 EXTRA_KCFLAGS="$tmp_flags"
20689
20690
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
20692$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
20693 tmp_flags="$EXTRA_KCFLAGS"
20694 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20695
20696
20697cat confdefs.h - <<_ACEOF >conftest.c
20698
20699
20700 #include <linux/blkdev.h>
20701
20702int
20703main (void)
20704{
20705
20706 struct request_queue *q = NULL;
20707 (void) blk_fetch_request(q);
20708
20709 ;
20710 return 0;
20711}
20712
20713_ACEOF
20714
20715
20716 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20717 echo "obj-m := conftest.o" >build/Makefile
20718 modpost_flag=''
20719 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20720 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20725 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20727 (eval $ac_try) 2>&5
20728 ac_status=$?
20729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20730 test $ac_status = 0; }; }; then :
20731
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20733$as_echo "yes" >&6; }
20734
20735$as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
20736
20737
20738else
20739 $as_echo "$as_me: failed program was:" >&5
20740sed 's/^/| /' conftest.$ac_ext >&5
20741
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743$as_echo "no" >&6; }
20744
20745
20746
20747fi
20748 rm -Rf build
20749
20750
20751 EXTRA_KCFLAGS="$tmp_flags"
20752
20753
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
20755$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
20756 tmp_flags="$EXTRA_KCFLAGS"
20757 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20758
20759
20760cat confdefs.h - <<_ACEOF >conftest.c
20761
20762
20763 #include <linux/blkdev.h>
20764
20765int
20766main (void)
20767{
20768
20769 struct request_queue *q = NULL;
20770 struct request *req = NULL;
20771 blk_requeue_request(q, req);
20772
20773 ;
20774 return 0;
20775}
20776
20777_ACEOF
20778
20779
20780 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20781 echo "obj-m := conftest.o" >build/Makefile
20782 modpost_flag=''
20783 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20784 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20786 (eval $ac_try) 2>&5
20787 ac_status=$?
20788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20789 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20791 (eval $ac_try) 2>&5
20792 ac_status=$?
20793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20794 test $ac_status = 0; }; }; then :
20795
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20797$as_echo "yes" >&6; }
20798
20799$as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
20800
20801
20802else
20803 $as_echo "$as_me: failed program was:" >&5
20804sed 's/^/| /' conftest.$ac_ext >&5
20805
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20807$as_echo "no" >&6; }
20808
20809
20810
20811fi
20812 rm -Rf build
20813
20814
20815 EXTRA_KCFLAGS="$tmp_flags"
20816
20817
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
20819$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
20820 tmp_flags="$EXTRA_KCFLAGS"
20821 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20822
20823
20824cat confdefs.h - <<_ACEOF >conftest.c
20825
20826
20827 #include <linux/blkdev.h>
20828
20829int
20830main (void)
20831{
20832
20833 struct request *req = NULL;
20834 (void) blk_rq_bytes(req);
20835
20836 ;
20837 return 0;
20838}
20839
20840_ACEOF
20841
20842
20843 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20844 echo "obj-m := conftest.o" >build/Makefile
20845 modpost_flag=''
20846 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20847 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20852 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857 test $ac_status = 0; }; }; then :
20858
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20860$as_echo "yes" >&6; }
20861
20862$as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
20863
20864
20865else
20866 $as_echo "$as_me: failed program was:" >&5
20867sed 's/^/| /' conftest.$ac_ext >&5
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870$as_echo "no" >&6; }
20871
20872
20873
20874fi
20875 rm -Rf build
20876
20877
20878
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
20880$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20881
20882
20883cat confdefs.h - <<_ACEOF >conftest.c
20884
20885
20886 #include <linux/module.h>
20887 #include <linux/blkdev.h>
20888
20889 MODULE_LICENSE("CDDL");
20890
20891int
20892main (void)
20893{
20894
20895 struct request *req = NULL;
20896 (void) blk_rq_bytes(req);
20897
20898 ;
20899 return 0;
20900}
20901
20902_ACEOF
20903
20904
20905 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20906 echo "obj-m := conftest.o" >build/Makefile
20907 modpost_flag=''
20908 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20909 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20911 (eval $ac_try) 2>&5
20912 ac_status=$?
20913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20914 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20916 (eval $ac_try) 2>&5
20917 ac_status=$?
20918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20919 test $ac_status = 0; }; }; then :
20920
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20922$as_echo "no" >&6; }
20923
20924else
20925 $as_echo "$as_me: failed program was:" >&5
20926sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20929$as_echo "yes" >&6; }
20930
20931$as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
20932
20933
20934
20935
20936fi
20937 rm -Rf build
20938
20939
20940 EXTRA_KCFLAGS="$tmp_flags"
20941
20942
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
20944$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
20945 tmp_flags="$EXTRA_KCFLAGS"
20946 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
20947
20948
20949cat confdefs.h - <<_ACEOF >conftest.c
20950
20951
20952 #include <linux/blkdev.h>
20953
20954int
20955main (void)
20956{
20957
20958 struct request *req = NULL;
20959 (void) blk_rq_pos(req);
20960
20961 ;
20962 return 0;
20963}
20964
20965_ACEOF
20966
20967
20968 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
20969 echo "obj-m := conftest.o" >build/Makefile
20970 modpost_flag=''
20971 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
20972 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20974 (eval $ac_try) 2>&5
20975 ac_status=$?
20976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20977 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
20978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20979 (eval $ac_try) 2>&5
20980 ac_status=$?
20981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20982 test $ac_status = 0; }; }; then :
20983
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20985$as_echo "yes" >&6; }
20986
20987$as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
20988
20989
20990else
20991 $as_echo "$as_me: failed program was:" >&5
20992sed 's/^/| /' conftest.$ac_ext >&5
20993
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995$as_echo "no" >&6; }
20996
20997
20998
20999fi
21000 rm -Rf build
21001
21002
21003 EXTRA_KCFLAGS="$tmp_flags"
21004
21005
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
21007$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
21008 tmp_flags="$EXTRA_KCFLAGS"
21009 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
21010
21011
21012cat confdefs.h - <<_ACEOF >conftest.c
21013
21014
21015 #include <linux/blkdev.h>
21016
21017int
21018main (void)
21019{
21020
21021 struct request *req = NULL;
21022 (void) blk_rq_sectors(req);
21023
21024 ;
21025 return 0;
21026}
21027
21028_ACEOF
21029
21030
21031 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21032 echo "obj-m := conftest.o" >build/Makefile
21033 modpost_flag=''
21034 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21035 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21037 (eval $ac_try) 2>&5
21038 ac_status=$?
21039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21040 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21045 test $ac_status = 0; }; }; then :
21046
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21048$as_echo "yes" >&6; }
21049
21050$as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
21051
21052
21053else
21054 $as_echo "$as_me: failed program was:" >&5
21055sed 's/^/| /' conftest.$ac_ext >&5
21056
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21058$as_echo "no" >&6; }
21059
21060
21061
21062fi
21063 rm -Rf build
21064
21065
21066 EXTRA_KCFLAGS="$tmp_flags"
21067
21068
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
21070$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
21071 tmp_flags="$EXTRA_KCFLAGS"
21072 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
21073
21074
21075cat confdefs.h - <<_ACEOF >conftest.c
21076
21077
21078 #include <linux/blkdev.h>
21079
21080int
21081main (void)
21082{
21083
21084 struct gendisk *disk = NULL;
21085 (void) get_disk_ro(disk);
21086
21087 ;
21088 return 0;
21089}
21090
21091_ACEOF
21092
21093
21094 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21095 echo "obj-m := conftest.o" >build/Makefile
21096 modpost_flag=''
21097 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21098 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21100 (eval $ac_try) 2>&5
21101 ac_status=$?
21102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21103 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21105 (eval $ac_try) 2>&5
21106 ac_status=$?
21107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21108 test $ac_status = 0; }; }; then :
21109
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21111$as_echo "yes" >&6; }
21112
21113$as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
21114
21115
21116else
21117 $as_echo "$as_me: failed program was:" >&5
21118sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21121$as_echo "no" >&6; }
21122
21123
21124
21125fi
21126 rm -Rf build
21127
21128
21129 EXTRA_KCFLAGS="$tmp_flags"
21130
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
21132$as_echo_n "checking whether get_gendisk() is available... " >&6; }
21133
21134
21135
21136cat confdefs.h - <<_ACEOF >conftest.c
21137
21138
21139 #include <linux/genhd.h>
21140
21141int
21142main (void)
21143{
21144
21145 get_gendisk(0, NULL);
21146
21147 ;
21148 return 0;
21149}
21150
21151_ACEOF
21152
21153
21154 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21155 echo "obj-m := conftest.o" >build/Makefile
21156 modpost_flag=''
21157 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21158 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21163 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21165 (eval $ac_try) 2>&5
21166 ac_status=$?
21167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21168 test $ac_status = 0; }; }; then :
21169 rc=0
21170else
21171 $as_echo "$as_me: failed program was:" >&5
21172sed 's/^/| /' conftest.$ac_ext >&5
21173 rc=1
21174
21175
21176fi
21177 rm -Rf build
21178
21179
21180 if test $rc -ne 0; then :
21181
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21183$as_echo "no" >&6; }
21184
21185 else
21186 if test "x$enable_linux_builtin" != xyes; then
21187
21188 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
21189 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21190 rc=$?
21191 if test $rc -ne 0; then
21192 export=0
21193 for file in block/genhd.c; do
21194 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
21195 "$LINUX/$file" 2>/dev/null
21196 rc=$?
21197 if test $rc -eq 0; then
21198 export=1
21199 break;
21200 fi
21201 done
21202 if test $export -eq 0; then :
21203 rc=1
21204 else :
21205 rc=0
21206 fi
21207 else :
21208 rc=0
21209 fi
21210
21211 fi
21212 if test $rc -ne 0; then :
21213
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21215$as_echo "no" >&6; }
21216
21217 else :
21218
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21220$as_echo "yes" >&6; }
21221
21222$as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
21223
21224
21225 fi
21226 fi
21227
21228
21229
21230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
21231$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
21232 tmp_flags="$EXTRA_KCFLAGS"
21233 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
21234
21235
21236cat confdefs.h - <<_ACEOF >conftest.c
21237
21238
21239 #include <linux/blkdev.h>
21240
21241int
21242main (void)
21243{
21244
21245 struct request *req = NULL;
21246 (void) rq_is_sync(req);
21247
21248 ;
21249 return 0;
21250}
21251
21252_ACEOF
21253
21254
21255 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21256 echo "obj-m := conftest.o" >build/Makefile
21257 modpost_flag=''
21258 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21259 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21264 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21266 (eval $ac_try) 2>&5
21267 ac_status=$?
21268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21269 test $ac_status = 0; }; }; then :
21270
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21272$as_echo "yes" >&6; }
21273
21274$as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
21275
21276
21277else
21278 $as_echo "$as_me: failed program was:" >&5
21279sed 's/^/| /' conftest.$ac_ext >&5
21280
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21282$as_echo "no" >&6; }
21283
21284
21285
21286fi
21287 rm -Rf build
21288
21289
21290 EXTRA_KCFLAGS="$tmp_flags"
21291
21292
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() is available" >&5
21294$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
21295 tmp_flags="$EXTRA_KCFLAGS"
21296 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
21297
21298
21299cat confdefs.h - <<_ACEOF >conftest.c
21300
21301
21302 #include <linux/blkdev.h>
21303
21304int
21305main (void)
21306{
21307
21308 struct bio_vec *bv;
21309 struct req_iterator iter;
21310 struct request *req = NULL;
21311 rq_for_each_segment(bv, req, iter) { }
21312
21313 ;
21314 return 0;
21315}
21316
21317_ACEOF
21318
21319
21320 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21321 echo "obj-m := conftest.o" >build/Makefile
21322 modpost_flag=''
21323 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21324 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21326 (eval $ac_try) 2>&5
21327 ac_status=$?
21328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21329 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21334 test $ac_status = 0; }; }; then :
21335
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21337$as_echo "yes" >&6; }
21338
21339$as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
21340
21341
21342else
21343 $as_echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21347$as_echo "no" >&6; }
21348
21349
21350
21351fi
21352 rm -Rf build
21353
21354
21355 EXTRA_KCFLAGS="$tmp_flags"
21356
21357
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
21359$as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
21360
21361
21362cat confdefs.h - <<_ACEOF >conftest.c
21363
21364
21365 #include <linux/blkdev.h>
21366
21367int
21368main (void)
21369{
21370
21371 struct queue_limits ql __attribute__ ((unused));
21372
21373 ql.discard_granularity = 0;
21374
21375 ;
21376 return 0;
21377}
21378
21379_ACEOF
21380
21381
21382 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21383 echo "obj-m := conftest.o" >build/Makefile
21384 modpost_flag=''
21385 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21386 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21388 (eval $ac_try) 2>&5
21389 ac_status=$?
21390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21391 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21393 (eval $ac_try) 2>&5
21394 ac_status=$?
21395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21396 test $ac_status = 0; }; }; then :
21397
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21399$as_echo "yes" >&6; }
21400
21401$as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
21402
21403
21404else
21405 $as_echo "$as_me: failed program was:" >&5
21406sed 's/^/| /' conftest.$ac_ext >&5
21407
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21409$as_echo "no" >&6; }
21410
21411
21412
21413fi
21414 rm -Rf build
21415
21416
21417
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
21419$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
21420
21421
21422cat confdefs.h - <<_ACEOF >conftest.c
21423
21424
21425 #include <linux/fs.h>
21426 #include <linux/xattr.h>
21427
21428 const struct xattr_handler xattr_test_handler = {
21429 .prefix = "test",
21430 .get = NULL,
21431 .set = NULL,
21432 };
21433
21434 const struct xattr_handler *xattr_handlers[] = {
21435 &xattr_test_handler,
21436 };
21437
21438int
21439main (void)
21440{
21441
21442 struct super_block sb __attribute__ ((unused));
21443
21444 sb.s_xattr = xattr_handlers;
21445
21446 ;
21447 return 0;
21448}
21449
21450_ACEOF
21451
21452
21453 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21454 echo "obj-m := conftest.o" >build/Makefile
21455 modpost_flag=''
21456 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21457 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21462 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21467 test $ac_status = 0; }; }; then :
21468
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21470$as_echo "yes" >&6; }
21471
21472$as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
21473
21474
21475else
21476 $as_echo "$as_me: failed program was:" >&5
21477sed 's/^/| /' conftest.$ac_ext >&5
21478
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21480$as_echo "no" >&6; }
21481
21482
21483
21484fi
21485 rm -Rf build
21486
21487
21488
21489
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
21491$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
21492
21493
21494cat confdefs.h - <<_ACEOF >conftest.c
21495
21496
21497 #include <linux/xattr.h>
21498
21499int
21500main (void)
21501{
21502
21503 int (*get)(struct dentry *dentry, const char *name,
21504 void *buffer, size_t size, int handler_flags) = NULL;
21505 struct xattr_handler xops __attribute__ ((unused));
21506
21507 xops.get = get;
21508
21509 ;
21510 return 0;
21511}
21512
21513_ACEOF
21514
21515
21516 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21517 echo "obj-m := conftest.o" >build/Makefile
21518 modpost_flag=''
21519 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21520 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21525 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
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; }; }; then :
21531
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21533$as_echo "yes" >&6; }
21534
21535$as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
21536
21537
21538else
21539 $as_echo "$as_me: failed program was:" >&5
21540sed 's/^/| /' conftest.$ac_ext >&5
21541
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21543$as_echo "no" >&6; }
21544
21545
21546
21547fi
21548 rm -Rf build
21549
21550
21551
21552
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
21554$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
21555
21556
21557cat confdefs.h - <<_ACEOF >conftest.c
21558
21559
21560 #include <linux/xattr.h>
21561
21562int
21563main (void)
21564{
21565
21566 int (*set)(struct dentry *dentry, const char *name,
21567 const void *buffer, size_t size, int flags,
21568 int handler_flags) = NULL;
21569 struct xattr_handler xops __attribute__ ((unused));
21570
21571 xops.set = set;
21572
21573 ;
21574 return 0;
21575}
21576
21577_ACEOF
21578
21579
21580 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21581 echo "obj-m := conftest.o" >build/Makefile
21582 modpost_flag=''
21583 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21584 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21589 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21594 test $ac_status = 0; }; }; then :
21595
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21597$as_echo "yes" >&6; }
21598
21599$as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
21600
21601
21602else
21603 $as_echo "$as_me: failed program was:" >&5
21604sed 's/^/| /' conftest.$ac_ext >&5
21605
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21607$as_echo "no" >&6; }
21608
21609
21610
21611fi
21612 rm -Rf build
21613
21614
21615
21616
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
21618$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21619
21620
21621
21622cat confdefs.h - <<_ACEOF >conftest.c
21623
21624
21625 #include <linux/fs.h>
21626
21627 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21628 static struct super_operations sops __attribute__ ((unused)) = {
21629 .show_options = show_options,
21630 };
21631
21632int
21633main (void)
21634{
21635
21636
21637 ;
21638 return 0;
21639}
21640
21641_ACEOF
21642
21643
21644 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21645 echo "obj-m := conftest.o" >build/Makefile
21646 modpost_flag=''
21647 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21648 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21650 (eval $ac_try) 2>&5
21651 ac_status=$?
21652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21653 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21658 test $ac_status = 0; }; }; then :
21659
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21661$as_echo "yes" >&6; }
21662
21663$as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
21664
21665
21666else
21667 $as_echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21671$as_echo "no" >&6; }
21672
21673
21674
21675fi
21676 rm -Rf build
21677
21678
21679
21680
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
21682$as_echo_n "checking whether fops->fsync() wants... " >&6; }
21683
21684
21685
21686cat confdefs.h - <<_ACEOF >conftest.c
21687
21688
21689 #include <linux/fs.h>
21690
21691 int test_fsync(struct file *f, struct dentry *dentry, int x)
21692 { return 0; }
21693
21694 static const struct file_operations
21695 fops __attribute__ ((unused)) = {
21696 .fsync = test_fsync,
21697 };
21698
21699int
21700main (void)
21701{
21702
21703
21704 ;
21705 return 0;
21706}
21707
21708_ACEOF
21709
21710
21711 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21712 echo "obj-m := conftest.o" >build/Makefile
21713 modpost_flag=''
21714 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21715 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21720 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21722 (eval $ac_try) 2>&5
21723 ac_status=$?
21724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21725 test $ac_status = 0; }; }; then :
21726
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
21728$as_echo "dentry" >&6; }
21729
21730$as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
21731
21732
21733else
21734 $as_echo "$as_me: failed program was:" >&5
21735sed 's/^/| /' conftest.$ac_ext >&5
21736
21737
21738
21739
21740fi
21741 rm -Rf build
21742
21743
21744
21745
21746
21747
21748cat confdefs.h - <<_ACEOF >conftest.c
21749
21750
21751 #include <linux/fs.h>
21752
21753 int test_fsync(struct file *f, int x) { return 0; }
21754
21755 static const struct file_operations
21756 fops __attribute__ ((unused)) = {
21757 .fsync = test_fsync,
21758 };
21759
21760int
21761main (void)
21762{
21763
21764
21765 ;
21766 return 0;
21767}
21768
21769_ACEOF
21770
21771
21772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21773 echo "obj-m := conftest.o" >build/Makefile
21774 modpost_flag=''
21775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21778 (eval $ac_try) 2>&5
21779 ac_status=$?
21780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21781 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21786 test $ac_status = 0; }; }; then :
21787
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
21789$as_echo "no dentry" >&6; }
21790
21791$as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
21792
21793
21794else
21795 $as_echo "$as_me: failed program was:" >&5
21796sed 's/^/| /' conftest.$ac_ext >&5
21797
21798
21799
21800
21801fi
21802 rm -Rf build
21803
21804
21805
21806
21807
21808
21809cat confdefs.h - <<_ACEOF >conftest.c
21810
21811
21812 #include <linux/fs.h>
21813
21814 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21815 { return 0; }
21816
21817 static const struct file_operations
21818 fops __attribute__ ((unused)) = {
21819 .fsync = test_fsync,
21820 };
21821
21822int
21823main (void)
21824{
21825
21826
21827 ;
21828 return 0;
21829}
21830
21831_ACEOF
21832
21833
21834 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21835 echo "obj-m := conftest.o" >build/Makefile
21836 modpost_flag=''
21837 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21838 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21840 (eval $ac_try) 2>&5
21841 ac_status=$?
21842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21843 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21845 (eval $ac_try) 2>&5
21846 ac_status=$?
21847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21848 test $ac_status = 0; }; }; then :
21849
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
21851$as_echo "range" >&6; }
21852
21853$as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
21854
21855
21856else
21857 $as_echo "$as_me: failed program was:" >&5
21858sed 's/^/| /' conftest.$ac_ext >&5
21859
21860
21861
21862
21863fi
21864 rm -Rf build
21865
21866
21867
21868
21869
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
21871$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21872
21873
21874cat confdefs.h - <<_ACEOF >conftest.c
21875
21876
21877 #include <linux/fs.h>
21878 void evict_inode (struct inode * t) { return; }
21879 static struct super_operations sops __attribute__ ((unused)) = {
21880 .evict_inode = evict_inode,
21881 };
21882
21883int
21884main (void)
21885{
21886
21887
21888 ;
21889 return 0;
21890}
21891
21892_ACEOF
21893
21894
21895 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21896 echo "obj-m := conftest.o" >build/Makefile
21897 modpost_flag=''
21898 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21899 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21904 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21909 test $ac_status = 0; }; }; then :
21910
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21912$as_echo "yes" >&6; }
21913
21914$as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
21915
21916
21917else
21918 $as_echo "$as_me: failed program was:" >&5
21919sed 's/^/| /' conftest.$ac_ext >&5
21920
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21922$as_echo "no" >&6; }
21923
21924
21925
21926fi
21927 rm -Rf build
21928
21929
21930
21931
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
21933$as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
21934
21935
21936cat confdefs.h - <<_ACEOF >conftest.c
21937
21938
21939 #include <linux/fs.h>
21940
21941 void dirty_inode(struct inode *a, int b) { return; }
21942
21943 static const struct super_operations
21944 sops __attribute__ ((unused)) = {
21945 .dirty_inode = dirty_inode,
21946 };
21947
21948int
21949main (void)
21950{
21951
21952
21953 ;
21954 return 0;
21955}
21956
21957_ACEOF
21958
21959
21960 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
21961 echo "obj-m := conftest.o" >build/Makefile
21962 modpost_flag=''
21963 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
21964 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21969 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
21970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21971 (eval $ac_try) 2>&5
21972 ac_status=$?
21973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21974 test $ac_status = 0; }; }; then :
21975
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21977$as_echo "yes" >&6; }
21978
21979$as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
21980
21981
21982else
21983 $as_echo "$as_me: failed program was:" >&5
21984sed 's/^/| /' conftest.$ac_ext >&5
21985
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987$as_echo "no" >&6; }
21988
21989
21990
21991fi
21992 rm -Rf build
21993
21994
21995
21996
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
21998$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21999
22000
22001cat confdefs.h - <<_ACEOF >conftest.c
22002
22003
22004 #include <linux/fs.h>
22005
22006 int nr_cached_objects(struct super_block *sb) { return 0; }
22007
22008 static const struct super_operations
22009 sops __attribute__ ((unused)) = {
22010 .nr_cached_objects = nr_cached_objects,
22011 };
22012
22013int
22014main (void)
22015{
22016
22017
22018 ;
22019 return 0;
22020}
22021
22022_ACEOF
22023
22024
22025 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22026 echo "obj-m := conftest.o" >build/Makefile
22027 modpost_flag=''
22028 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22029 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22034 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22036 (eval $ac_try) 2>&5
22037 ac_status=$?
22038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22039 test $ac_status = 0; }; }; then :
22040
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22042$as_echo "yes" >&6; }
22043
22044$as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
22045
22046
22047else
22048 $as_echo "$as_me: failed program was:" >&5
22049sed 's/^/| /' conftest.$ac_ext >&5
22050
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22052$as_echo "no" >&6; }
22053
22054
22055
22056fi
22057 rm -Rf build
22058
22059
22060
22061
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
22063$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22064
22065
22066cat confdefs.h - <<_ACEOF >conftest.c
22067
22068
22069 #include <linux/fs.h>
22070
22071 void free_cached_objects(struct super_block *sb, int x)
22072 { return; }
22073
22074 static const struct super_operations
22075 sops __attribute__ ((unused)) = {
22076 .free_cached_objects = free_cached_objects,
22077 };
22078
22079int
22080main (void)
22081{
22082
22083
22084 ;
22085 return 0;
22086}
22087
22088_ACEOF
22089
22090
22091 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22092 echo "obj-m := conftest.o" >build/Makefile
22093 modpost_flag=''
22094 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22095 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22097 (eval $ac_try) 2>&5
22098 ac_status=$?
22099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22100 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22102 (eval $ac_try) 2>&5
22103 ac_status=$?
22104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22105 test $ac_status = 0; }; }; then :
22106
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22108$as_echo "yes" >&6; }
22109
22110$as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
22111
22112
22113else
22114 $as_echo "$as_me: failed program was:" >&5
22115sed 's/^/| /' conftest.$ac_ext >&5
22116
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118$as_echo "no" >&6; }
22119
22120
22121
22122fi
22123 rm -Rf build
22124
22125
22126
22127
22128
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
22130$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22131
22132
22133cat confdefs.h - <<_ACEOF >conftest.c
22134
22135
22136 #include <linux/fs.h>
22137
22138 long test_fallocate(struct file *file, int mode,
22139 loff_t offset, loff_t len) { return 0; }
22140
22141 static const struct file_operations
22142 fops __attribute__ ((unused)) = {
22143 .fallocate = test_fallocate,
22144 };
22145
22146int
22147main (void)
22148{
22149
22150
22151 ;
22152 return 0;
22153}
22154
22155_ACEOF
22156
22157
22158 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22159 echo "obj-m := conftest.o" >build/Makefile
22160 modpost_flag=''
22161 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22162 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22167 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22169 (eval $ac_try) 2>&5
22170 ac_status=$?
22171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22172 test $ac_status = 0; }; }; then :
22173
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22175$as_echo "yes" >&6; }
22176
22177$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
22178
22179
22180else
22181 $as_echo "$as_me: failed program was:" >&5
22182sed 's/^/| /' conftest.$ac_ext >&5
22183
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22185$as_echo "no" >&6; }
22186
22187
22188
22189fi
22190 rm -Rf build
22191
22192
22193
22194
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
22196$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22197
22198
22199cat confdefs.h - <<_ACEOF >conftest.c
22200
22201
22202 #include <linux/fs.h>
22203
22204 long test_fallocate(struct inode *inode, int mode,
22205 loff_t offset, loff_t len) { return 0; }
22206
22207 static const struct inode_operations
22208 fops __attribute__ ((unused)) = {
22209 .fallocate = test_fallocate,
22210 };
22211
22212int
22213main (void)
22214{
22215
22216
22217 ;
22218 return 0;
22219}
22220
22221_ACEOF
22222
22223
22224 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22225 echo "obj-m := conftest.o" >build/Makefile
22226 modpost_flag=''
22227 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22228 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22230 (eval $ac_try) 2>&5
22231 ac_status=$?
22232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22233 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22235 (eval $ac_try) 2>&5
22236 ac_status=$?
22237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22238 test $ac_status = 0; }; }; then :
22239
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22241$as_echo "yes" >&6; }
22242
22243$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
22244
22245
22246else
22247 $as_echo "$as_me: failed program was:" >&5
22248sed 's/^/| /' conftest.$ac_ext >&5
22249
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22251$as_echo "no" >&6; }
22252
22253
22254
22255fi
22256 rm -Rf build
22257
22258
22259
22260
22261
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
22263$as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
22264
22265
22266cat confdefs.h - <<_ACEOF >conftest.c
22267
22268
22269 #include <linux/fs.h>
22270
22271 int mkdir(struct inode *inode, struct dentry *dentry,
22272 umode_t umode) { return 0; }
22273
22274 static const struct inode_operations
22275 iops __attribute__ ((unused)) = {
22276 .mkdir = mkdir,
22277 };
22278
22279int
22280main (void)
22281{
22282
22283
22284 ;
22285 return 0;
22286}
22287
22288_ACEOF
22289
22290
22291 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22292 echo "obj-m := conftest.o" >build/Makefile
22293 modpost_flag=''
22294 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22295 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22297 (eval $ac_try) 2>&5
22298 ac_status=$?
22299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22300 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22302 (eval $ac_try) 2>&5
22303 ac_status=$?
22304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22305 test $ac_status = 0; }; }; then :
22306
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22308$as_echo "yes" >&6; }
22309
22310$as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
22311
22312
22313else
22314 $as_echo "$as_me: failed program was:" >&5
22315sed 's/^/| /' conftest.$ac_ext >&5
22316
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318$as_echo "no" >&6; }
22319
22320
22321
22322fi
22323 rm -Rf build
22324
22325
22326
22327
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
22329$as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
22330
22331
22332cat confdefs.h - <<_ACEOF >conftest.c
22333
22334
22335 #include <linux/fs.h>
22336
22337 struct dentry *inode_lookup(struct inode *inode,
22338 struct dentry *dentry, struct nameidata *nidata)
22339 { return NULL; }
22340
22341 static const struct inode_operations iops
22342 __attribute__ ((unused)) = {
22343 .lookup = inode_lookup,
22344 };
22345
22346int
22347main (void)
22348{
22349
22350
22351 ;
22352 return 0;
22353}
22354
22355_ACEOF
22356
22357
22358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22359 echo "obj-m := conftest.o" >build/Makefile
22360 modpost_flag=''
22361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22362 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22364 (eval $ac_try) 2>&5
22365 ac_status=$?
22366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372 test $ac_status = 0; }; }; then :
22373
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22375$as_echo "yes" >&6; }
22376
22377$as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
22378
22379
22380else
22381 $as_echo "$as_me: failed program was:" >&5
22382sed 's/^/| /' conftest.$ac_ext >&5
22383
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22385$as_echo "no" >&6; }
22386
22387
22388
22389fi
22390 rm -Rf build
22391
22392
22393
22394
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
22396$as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
22397
22398
22399cat confdefs.h - <<_ACEOF >conftest.c
22400
22401
22402 #include <linux/fs.h>
22403
22404 #ifdef HAVE_MKDIR_UMODE_T
22405 int inode_create(struct inode *inode ,struct dentry *dentry,
22406 umode_t umode, struct nameidata *nidata) { return 0; }
22407 #else
22408 int inode_create(struct inode *inode,struct dentry *dentry,
22409 int umode, struct nameidata * nidata) { return 0; }
22410 #endif
22411
22412 static const struct inode_operations
22413 iops __attribute__ ((unused)) = {
22414 .create = inode_create,
22415 };
22416
22417int
22418main (void)
22419{
22420
22421
22422 ;
22423 return 0;
22424}
22425
22426_ACEOF
22427
22428
22429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22430 echo "obj-m := conftest.o" >build/Makefile
22431 modpost_flag=''
22432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22433 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22438 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22440 (eval $ac_try) 2>&5
22441 ac_status=$?
22442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22443 test $ac_status = 0; }; }; then :
22444
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22446$as_echo "yes" >&6; }
22447
22448$as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
22449
22450
22451else
22452 $as_echo "$as_me: failed program was:" >&5
22453sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22456$as_echo "no" >&6; }
22457
22458
22459
22460fi
22461 rm -Rf build
22462
22463
22464
22465
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
22467$as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
22468
22469
22470cat confdefs.h - <<_ACEOF >conftest.c
22471
22472
22473 #include <linux/fs.h>
22474 void truncate_range(struct inode *inode, loff_t start,
22475 loff_t end) { return; }
22476 static struct inode_operations iops __attribute__ ((unused)) = {
22477 .truncate_range = truncate_range,
22478 };
22479
22480int
22481main (void)
22482{
22483
22484
22485 ;
22486 return 0;
22487}
22488
22489_ACEOF
22490
22491
22492 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22493 echo "obj-m := conftest.o" >build/Makefile
22494 modpost_flag=''
22495 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22496 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22498 (eval $ac_try) 2>&5
22499 ac_status=$?
22500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22501 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22503 (eval $ac_try) 2>&5
22504 ac_status=$?
22505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22506 test $ac_status = 0; }; }; then :
22507
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22509$as_echo "yes" >&6; }
22510
22511$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
22512
22513
22514else
22515 $as_echo "$as_me: failed program was:" >&5
22516sed 's/^/| /' conftest.$ac_ext >&5
22517
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22519$as_echo "no" >&6; }
22520
22521
22522
22523fi
22524 rm -Rf build
22525
22526
22527
22528
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
22530$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
22531
22532
22533cat confdefs.h - <<_ACEOF >conftest.c
22534
22535
22536 #include <linux/dcache.h>
22537 struct vfsmount *d_automount(struct path *p) { return NULL; }
22538 struct dentry_operations dops __attribute__ ((unused)) = {
22539 .d_automount = d_automount,
22540 };
22541
22542int
22543main (void)
22544{
22545
22546
22547 ;
22548 return 0;
22549}
22550
22551_ACEOF
22552
22553
22554 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22555 echo "obj-m := conftest.o" >build/Makefile
22556 modpost_flag=''
22557 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22558 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560 (eval $ac_try) 2>&5
22561 ac_status=$?
22562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22568 test $ac_status = 0; }; }; then :
22569
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22571$as_echo "yes" >&6; }
22572
22573$as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
22574
22575
22576else
22577 $as_echo "$as_me: failed program was:" >&5
22578sed 's/^/| /' conftest.$ac_ext >&5
22579
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22581$as_echo "no" >&6; }
22582
22583
22584
22585fi
22586 rm -Rf build
22587
22588
22589
22590
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
22592$as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
22593
22594
22595cat confdefs.h - <<_ACEOF >conftest.c
22596
22597
22598 #include <linux/exportfs.h>
22599 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
22600 struct inode *parent) { return 0; }
22601 static struct export_operations eops __attribute__ ((unused))={
22602 .encode_fh = encode_fh,
22603 };
22604
22605int
22606main (void)
22607{
22608
22609
22610 ;
22611 return 0;
22612}
22613
22614_ACEOF
22615
22616
22617 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22618 echo "obj-m := conftest.o" >build/Makefile
22619 modpost_flag=''
22620 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22621 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22631 test $ac_status = 0; }; }; then :
22632
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22634$as_echo "yes" >&6; }
22635
22636$as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
22637
22638
22639else
22640 $as_echo "$as_me: failed program was:" >&5
22641sed 's/^/| /' conftest.$ac_ext >&5
22642
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22644$as_echo "no" >&6; }
22645
22646
22647
22648fi
22649 rm -Rf build
22650
22651
22652
22653
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
22655$as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
22656
22657
22658cat confdefs.h - <<_ACEOF >conftest.c
22659
22660
22661 #include <linux/exportfs.h>
22662 int commit_metadata(struct inode *inode) { return 0; }
22663 static struct export_operations eops __attribute__ ((unused))={
22664 .commit_metadata = commit_metadata,
22665 };
22666
22667int
22668main (void)
22669{
22670
22671
22672 ;
22673 return 0;
22674}
22675
22676_ACEOF
22677
22678
22679 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22680 echo "obj-m := conftest.o" >build/Makefile
22681 modpost_flag=''
22682 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22683 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22685 (eval $ac_try) 2>&5
22686 ac_status=$?
22687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22688 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690 (eval $ac_try) 2>&5
22691 ac_status=$?
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; }; }; then :
22694
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22696$as_echo "yes" >&6; }
22697
22698$as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
22699
22700
22701else
22702 $as_echo "$as_me: failed program was:" >&5
22703sed 's/^/| /' conftest.$ac_ext >&5
22704
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22706$as_echo "no" >&6; }
22707
22708
22709
22710fi
22711 rm -Rf build
22712
22713
22714
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
22716$as_echo_n "checking whether clear_inode() is available... " >&6; }
22717
22718
22719
22720cat confdefs.h - <<_ACEOF >conftest.c
22721
22722
22723 #include <linux/fs.h>
22724
22725int
22726main (void)
22727{
22728
22729 clear_inode(NULL);
22730
22731 ;
22732 return 0;
22733}
22734
22735_ACEOF
22736
22737
22738 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22739 echo "obj-m := conftest.o" >build/Makefile
22740 modpost_flag=''
22741 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22742 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }; then :
22753 rc=0
22754else
22755 $as_echo "$as_me: failed program was:" >&5
22756sed 's/^/| /' conftest.$ac_ext >&5
22757 rc=1
22758
22759
22760fi
22761 rm -Rf build
22762
22763
22764 if test $rc -ne 0; then :
22765
22766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22767$as_echo "no" >&6; }
22768
22769 else
22770 if test "x$enable_linux_builtin" != xyes; then
22771
22772 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
22773 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22774 rc=$?
22775 if test $rc -ne 0; then
22776 export=0
22777 for file in fs/inode.c; do
22778 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
22779 "$LINUX/$file" 2>/dev/null
22780 rc=$?
22781 if test $rc -eq 0; then
22782 export=1
22783 break;
22784 fi
22785 done
22786 if test $export -eq 0; then :
22787 rc=1
22788 else :
22789 rc=0
22790 fi
22791 else :
22792 rc=0
22793 fi
22794
22795 fi
22796 if test $rc -ne 0; then :
22797
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22799$as_echo "no" >&6; }
22800
22801 else :
22802
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22804$as_echo "yes" >&6; }
22805
22806$as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
22807
22808
22809 fi
22810 fi
22811
22812
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22814$as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22815
22816
22817
22818cat confdefs.h - <<_ACEOF >conftest.c
22819
22820
22821 #include <linux/fs.h>
22822
22823int
22824main (void)
22825{
22826
22827 insert_inode_locked(NULL);
22828
22829 ;
22830 return 0;
22831}
22832
22833_ACEOF
22834
22835
22836 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22837 echo "obj-m := conftest.o" >build/Makefile
22838 modpost_flag=''
22839 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22840 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22842 (eval $ac_try) 2>&5
22843 ac_status=$?
22844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22845 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22847 (eval $ac_try) 2>&5
22848 ac_status=$?
22849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22850 test $ac_status = 0; }; }; then :
22851 rc=0
22852else
22853 $as_echo "$as_me: failed program was:" >&5
22854sed 's/^/| /' conftest.$ac_ext >&5
22855 rc=1
22856
22857
22858fi
22859 rm -Rf build
22860
22861
22862 if test $rc -ne 0; then :
22863
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22865$as_echo "no" >&6; }
22866
22867 else
22868 if test "x$enable_linux_builtin" != xyes; then
22869
22870 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22871 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22872 rc=$?
22873 if test $rc -ne 0; then
22874 export=0
22875 for file in fs/inode.c; do
22876 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22877 "$LINUX/$file" 2>/dev/null
22878 rc=$?
22879 if test $rc -eq 0; then
22880 export=1
22881 break;
22882 fi
22883 done
22884 if test $export -eq 0; then :
22885 rc=1
22886 else :
22887 rc=0
22888 fi
22889 else :
22890 rc=0
22891 fi
22892
22893 fi
22894 if test $rc -ne 0; then :
22895
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22897$as_echo "no" >&6; }
22898
22899 else :
22900
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22902$as_echo "yes" >&6; }
22903
22904$as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22905
22906
22907 fi
22908 fi
22909
22910
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22912$as_echo_n "checking whether d_make_root() is available... " >&6; }
22913
22914
22915
22916cat confdefs.h - <<_ACEOF >conftest.c
22917
22918
22919 #include <linux/dcache.h>
22920
22921int
22922main (void)
22923{
22924
22925 d_make_root(NULL);
22926
22927 ;
22928 return 0;
22929}
22930
22931_ACEOF
22932
22933
22934 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
22935 echo "obj-m := conftest.o" >build/Makefile
22936 modpost_flag=''
22937 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
22938 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22941 ac_status=$?
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
22944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22948 test $ac_status = 0; }; }; then :
22949 rc=0
22950else
22951 $as_echo "$as_me: failed program was:" >&5
22952sed 's/^/| /' conftest.$ac_ext >&5
22953 rc=1
22954
22955
22956fi
22957 rm -Rf build
22958
22959
22960 if test $rc -ne 0; then :
22961
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22963$as_echo "no" >&6; }
22964
22965 else
22966 if test "x$enable_linux_builtin" != xyes; then
22967
22968 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22969 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22970 rc=$?
22971 if test $rc -ne 0; then
22972 export=0
22973 for file in fs/dcache.c; do
22974 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22975 "$LINUX/$file" 2>/dev/null
22976 rc=$?
22977 if test $rc -eq 0; then
22978 export=1
22979 break;
22980 fi
22981 done
22982 if test $export -eq 0; then :
22983 rc=1
22984 else :
22985 rc=0
22986 fi
22987 else :
22988 rc=0
22989 fi
22990
22991 fi
22992 if test $rc -ne 0; then :
22993
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22995$as_echo "no" >&6; }
22996
22997 else :
22998
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23000$as_echo "yes" >&6; }
23001
23002$as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
23003
23004
23005 fi
23006 fi
23007
23008
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
23010$as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
23011
23012
23013
23014cat confdefs.h - <<_ACEOF >conftest.c
23015
23016
23017 #include <linux/dcache.h>
23018
23019int
23020main (void)
23021{
23022
23023 d_obtain_alias(NULL);
23024
23025 ;
23026 return 0;
23027}
23028
23029_ACEOF
23030
23031
23032 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23033 echo "obj-m := conftest.o" >build/Makefile
23034 modpost_flag=''
23035 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23036 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23041 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23046 test $ac_status = 0; }; }; then :
23047 rc=0
23048else
23049 $as_echo "$as_me: failed program was:" >&5
23050sed 's/^/| /' conftest.$ac_ext >&5
23051 rc=1
23052
23053
23054fi
23055 rm -Rf build
23056
23057
23058 if test $rc -ne 0; then :
23059
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23061$as_echo "no" >&6; }
23062
23063 else
23064 if test "x$enable_linux_builtin" != xyes; then
23065
23066 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
23067 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23068 rc=$?
23069 if test $rc -ne 0; then
23070 export=0
23071 for file in fs/dcache.c; do
23072 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
23073 "$LINUX/$file" 2>/dev/null
23074 rc=$?
23075 if test $rc -eq 0; then
23076 export=1
23077 break;
23078 fi
23079 done
23080 if test $export -eq 0; then :
23081 rc=1
23082 else :
23083 rc=0
23084 fi
23085 else :
23086 rc=0
23087 fi
23088
23089 fi
23090 if test $rc -ne 0; then :
23091
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23093$as_echo "no" >&6; }
23094
23095 else :
23096
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23098$as_echo "yes" >&6; }
23099
23100$as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
23101
23102
23103 fi
23104 fi
23105
23106
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
23108$as_echo_n "checking whether d_set_d_op() is available... " >&6; }
23109
23110
23111
23112cat confdefs.h - <<_ACEOF >conftest.c
23113
23114
23115 #include <linux/dcache.h>
23116
23117int
23118main (void)
23119{
23120
23121 d_set_d_op(NULL, NULL);
23122
23123 ;
23124 return 0;
23125}
23126
23127_ACEOF
23128
23129
23130 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23131 echo "obj-m := conftest.o" >build/Makefile
23132 modpost_flag=''
23133 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23134 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23136 (eval $ac_try) 2>&5
23137 ac_status=$?
23138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23139 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23141 (eval $ac_try) 2>&5
23142 ac_status=$?
23143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23144 test $ac_status = 0; }; }; then :
23145 rc=0
23146else
23147 $as_echo "$as_me: failed program was:" >&5
23148sed 's/^/| /' conftest.$ac_ext >&5
23149 rc=1
23150
23151
23152fi
23153 rm -Rf build
23154
23155
23156 if test $rc -ne 0; then :
23157
23158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23159$as_echo "no" >&6; }
23160
23161 else
23162 if test "x$enable_linux_builtin" != xyes; then
23163
23164 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
23165 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23166 rc=$?
23167 if test $rc -ne 0; then
23168 export=0
23169 for file in fs/dcache.c; do
23170 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
23171 "$LINUX/$file" 2>/dev/null
23172 rc=$?
23173 if test $rc -eq 0; then
23174 export=1
23175 break;
23176 fi
23177 done
23178 if test $export -eq 0; then :
23179 rc=1
23180 else :
23181 rc=0
23182 fi
23183 else :
23184 rc=0
23185 fi
23186
23187 fi
23188 if test $rc -ne 0; then :
23189
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23191$as_echo "no" >&6; }
23192
23193 else :
23194
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23196$as_echo "yes" >&6; }
23197
23198$as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
23199
23200
23201 fi
23202 fi
23203
23204
23205
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
23207$as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
23208
23209
23210cat confdefs.h - <<_ACEOF >conftest.c
23211
23212
23213 #include <linux/dcache.h>
23214
23215 int revalidate (struct dentry *dentry,
23216 struct nameidata *nidata) { return 0; }
23217
23218 static const struct dentry_operations
23219 dops __attribute__ ((unused)) = {
23220 .d_revalidate = revalidate,
23221 };
23222
23223int
23224main (void)
23225{
23226
23227
23228 ;
23229 return 0;
23230}
23231
23232_ACEOF
23233
23234
23235 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23236 echo "obj-m := conftest.o" >build/Makefile
23237 modpost_flag=''
23238 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23239 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23241 (eval $ac_try) 2>&5
23242 ac_status=$?
23243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23244 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23246 (eval $ac_try) 2>&5
23247 ac_status=$?
23248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23249 test $ac_status = 0; }; }; then :
23250
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23252$as_echo "yes" >&6; }
23253
23254$as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
23255
23256
23257else
23258 $as_echo "$as_me: failed program was:" >&5
23259sed 's/^/| /' conftest.$ac_ext >&5
23260
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23262$as_echo "no" >&6; }
23263
23264
23265
23266fi
23267 rm -Rf build
23268
23269
23270
23271
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
23273$as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
23274
23275
23276cat confdefs.h - <<_ACEOF >conftest.c
23277
23278
23279 #include <linux/dcache.h>
23280
23281 const struct dentry_operations test_d_op = {
23282 .d_revalidate = NULL,
23283 };
23284
23285int
23286main (void)
23287{
23288
23289 struct dentry d __attribute__ ((unused));
23290
23291 d.d_op = &test_d_op;
23292
23293 ;
23294 return 0;
23295}
23296
23297_ACEOF
23298
23299
23300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23301 echo "obj-m := conftest.o" >build/Makefile
23302 modpost_flag=''
23303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23304 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23306 (eval $ac_try) 2>&5
23307 ac_status=$?
23308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23309 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23311 (eval $ac_try) 2>&5
23312 ac_status=$?
23313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23314 test $ac_status = 0; }; }; then :
23315
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23317$as_echo "yes" >&6; }
23318
23319$as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
23320
23321
23322else
23323 $as_echo "$as_me: failed program was:" >&5
23324sed 's/^/| /' conftest.$ac_ext >&5
23325
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23327$as_echo "no" >&6; }
23328
23329
23330
23331fi
23332 rm -Rf build
23333
23334
23335
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
23337$as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
23338
23339
23340
23341cat confdefs.h - <<_ACEOF >conftest.c
23342
23343
23344 #include <linux/fs.h>
23345
23346int
23347main (void)
23348{
23349
23350 check_disk_size_change(NULL, NULL);
23351
23352 ;
23353 return 0;
23354}
23355
23356_ACEOF
23357
23358
23359 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23360 echo "obj-m := conftest.o" >build/Makefile
23361 modpost_flag=''
23362 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23363 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23365 (eval $ac_try) 2>&5
23366 ac_status=$?
23367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23368 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23370 (eval $ac_try) 2>&5
23371 ac_status=$?
23372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23373 test $ac_status = 0; }; }; then :
23374 rc=0
23375else
23376 $as_echo "$as_me: failed program was:" >&5
23377sed 's/^/| /' conftest.$ac_ext >&5
23378 rc=1
23379
23380
23381fi
23382 rm -Rf build
23383
23384
23385 if test $rc -ne 0; then :
23386
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23388$as_echo "no" >&6; }
23389
23390 else
23391 if test "x$enable_linux_builtin" != xyes; then
23392
23393 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
23394 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23395 rc=$?
23396 if test $rc -ne 0; then
23397 export=0
23398 for file in fs/block_dev.c; do
23399 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
23400 "$LINUX/$file" 2>/dev/null
23401 rc=$?
23402 if test $rc -eq 0; then
23403 export=1
23404 break;
23405 fi
23406 done
23407 if test $export -eq 0; then :
23408 rc=1
23409 else :
23410 rc=0
23411 fi
23412 else :
23413 rc=0
23414 fi
23415
23416 fi
23417 if test $rc -ne 0; then :
23418
23419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23420$as_echo "no" >&6; }
23421
23422 else :
23423
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23425$as_echo "yes" >&6; }
23426
23427$as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
23428
23429
23430 fi
23431 fi
23432
23433
23434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
23435$as_echo_n "checking whether truncate_setsize() is available... " >&6; }
23436
23437
23438
23439cat confdefs.h - <<_ACEOF >conftest.c
23440
23441
23442 #include <linux/mm.h>
23443
23444int
23445main (void)
23446{
23447
23448 truncate_setsize(NULL, 0);
23449
23450 ;
23451 return 0;
23452}
23453
23454_ACEOF
23455
23456
23457 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23458 echo "obj-m := conftest.o" >build/Makefile
23459 modpost_flag=''
23460 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23461 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23466 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23468 (eval $ac_try) 2>&5
23469 ac_status=$?
23470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23471 test $ac_status = 0; }; }; then :
23472 rc=0
23473else
23474 $as_echo "$as_me: failed program was:" >&5
23475sed 's/^/| /' conftest.$ac_ext >&5
23476 rc=1
23477
23478
23479fi
23480 rm -Rf build
23481
23482
23483 if test $rc -ne 0; then :
23484
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23486$as_echo "no" >&6; }
23487
23488 else
23489 if test "x$enable_linux_builtin" != xyes; then
23490
23491 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
23492 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23493 rc=$?
23494 if test $rc -ne 0; then
23495 export=0
23496 for file in mm/truncate.c; do
23497 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
23498 "$LINUX/$file" 2>/dev/null
23499 rc=$?
23500 if test $rc -eq 0; then
23501 export=1
23502 break;
23503 fi
23504 done
23505 if test $export -eq 0; then :
23506 rc=1
23507 else :
23508 rc=0
23509 fi
23510 else :
23511 rc=0
23512 fi
23513
23514 fi
23515 if test $rc -ne 0; then :
23516
23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23518$as_echo "no" >&6; }
23519
23520 else :
23521
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23523$as_echo "yes" >&6; }
23524
23525$as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
23526
23527
23528 fi
23529 fi
23530
23531
23532
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
23534$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
23535
23536
23537cat confdefs.h - <<_ACEOF >conftest.c
23538
23539
23540 #include <linux/security.h>
23541
23542int
23543main (void)
23544{
23545
23546 struct inode *ip __attribute__ ((unused)) = NULL;
23547 struct inode *dip __attribute__ ((unused)) = NULL;
23548 const struct qstr *str __attribute__ ((unused)) = NULL;
23549 char *name __attribute__ ((unused)) = NULL;
23550 void *value __attribute__ ((unused)) = NULL;
23551 size_t len __attribute__ ((unused)) = 0;
23552
23553 security_inode_init_security(ip, dip, str, &name, &value, &len);
23554
23555 ;
23556 return 0;
23557}
23558
23559_ACEOF
23560
23561
23562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23563 echo "obj-m := conftest.o" >build/Makefile
23564 modpost_flag=''
23565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23566 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23571 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23573 (eval $ac_try) 2>&5
23574 ac_status=$?
23575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23576 test $ac_status = 0; }; }; then :
23577
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23579$as_echo "yes" >&6; }
23580
23581$as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
23582
23583
23584else
23585 $as_echo "$as_me: failed program was:" >&5
23586sed 's/^/| /' conftest.$ac_ext >&5
23587
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23589$as_echo "no" >&6; }
23590
23591
23592
23593fi
23594 rm -Rf build
23595
23596
23597
23598
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
23600$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
23601
23602
23603cat confdefs.h - <<_ACEOF >conftest.c
23604
23605
23606 #include <linux/security.h>
23607
23608int
23609main (void)
23610{
23611
23612 struct inode *ip __attribute__ ((unused)) = NULL;
23613 struct inode *dip __attribute__ ((unused)) = NULL;
23614 const struct qstr *str __attribute__ ((unused)) = NULL;
23615 initxattrs func __attribute__ ((unused)) = NULL;
23616
23617 security_inode_init_security(ip, dip, str, func, NULL);
23618
23619 ;
23620 return 0;
23621}
23622
23623_ACEOF
23624
23625
23626 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23627 echo "obj-m := conftest.o" >build/Makefile
23628 modpost_flag=''
23629 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23630 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23632 (eval $ac_try) 2>&5
23633 ac_status=$?
23634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23635 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23637 (eval $ac_try) 2>&5
23638 ac_status=$?
23639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23640 test $ac_status = 0; }; }; then :
23641
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23643$as_echo "yes" >&6; }
23644
23645$as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
23646
23647
23648else
23649 $as_echo "$as_me: failed program was:" >&5
23650sed 's/^/| /' conftest.$ac_ext >&5
23651
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23653$as_echo "no" >&6; }
23654
23655
23656
23657fi
23658 rm -Rf build
23659
23660
23661
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
23663$as_echo_n "checking whether mount_nodev() is available... " >&6; }
23664
23665
23666
23667cat confdefs.h - <<_ACEOF >conftest.c
23668
23669
23670 #include <linux/fs.h>
23671
23672int
23673main (void)
23674{
23675
23676 mount_nodev(NULL, 0, NULL, NULL);
23677
23678 ;
23679 return 0;
23680}
23681
23682_ACEOF
23683
23684
23685 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23686 echo "obj-m := conftest.o" >build/Makefile
23687 modpost_flag=''
23688 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23689 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23691 (eval $ac_try) 2>&5
23692 ac_status=$?
23693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23694 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23696 (eval $ac_try) 2>&5
23697 ac_status=$?
23698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23699 test $ac_status = 0; }; }; then :
23700 rc=0
23701else
23702 $as_echo "$as_me: failed program was:" >&5
23703sed 's/^/| /' conftest.$ac_ext >&5
23704 rc=1
23705
23706
23707fi
23708 rm -Rf build
23709
23710
23711 if test $rc -ne 0; then :
23712
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714$as_echo "no" >&6; }
23715
23716 else
23717 if test "x$enable_linux_builtin" != xyes; then
23718
23719 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23720 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23721 rc=$?
23722 if test $rc -ne 0; then
23723 export=0
23724 for file in fs/super.c; do
23725 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23726 "$LINUX/$file" 2>/dev/null
23727 rc=$?
23728 if test $rc -eq 0; then
23729 export=1
23730 break;
23731 fi
23732 done
23733 if test $export -eq 0; then :
23734 rc=1
23735 else :
23736 rc=0
23737 fi
23738 else :
23739 rc=0
23740 fi
23741
23742 fi
23743 if test $rc -ne 0; then :
23744
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746$as_echo "no" >&6; }
23747
23748 else :
23749
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23751$as_echo "yes" >&6; }
23752
23753$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23754
23755
23756 fi
23757 fi
23758
23759
23760
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23762$as_echo_n "checking whether super_block has s_shrink... " >&6; }
23763
23764
23765cat confdefs.h - <<_ACEOF >conftest.c
23766
23767
23768 #include <linux/fs.h>
23769
23770 int shrink(struct shrinker *s, struct shrink_control *sc)
23771 { return 0; }
23772
23773 static const struct super_block
23774 sb __attribute__ ((unused)) = {
23775 .s_shrink.shrink = shrink,
23776 .s_shrink.seeks = DEFAULT_SEEKS,
23777 .s_shrink.batch = 0,
23778 };
23779
23780int
23781main (void)
23782{
23783
23784
23785 ;
23786 return 0;
23787}
23788
23789_ACEOF
23790
23791
23792 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23793 echo "obj-m := conftest.o" >build/Makefile
23794 modpost_flag=''
23795 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23796 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23798 (eval $ac_try) 2>&5
23799 ac_status=$?
23800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23801 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23803 (eval $ac_try) 2>&5
23804 ac_status=$?
23805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23806 test $ac_status = 0; }; }; then :
23807
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23809$as_echo "yes" >&6; }
23810
23811$as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23812
23813
23814
23815else
23816 $as_echo "$as_me: failed program was:" >&5
23817sed 's/^/| /' conftest.$ac_ext >&5
23818
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23820$as_echo "no" >&6; }
23821
23822
23823
c06d4368
AX
23824fi
23825 rm -Rf build
23826
23827
23828
23829
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23831$as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23832
23833
23834cat confdefs.h - <<_ACEOF >conftest.c
23835
23836
23837 #include <linux/fs.h>
23838
23839int
23840main (void)
23841{
23842
23843 struct super_block sb __attribute__ ((unused));
23844
23845 INIT_LIST_HEAD(&sb.s_instances);
23846
23847 ;
23848 return 0;
23849}
23850
23851_ACEOF
23852
23853
23854 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23855 echo "obj-m := conftest.o" >build/Makefile
23856 modpost_flag=''
23857 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23858 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23860 (eval $ac_try) 2>&5
23861 ac_status=$?
23862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23863 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }; then :
23869
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23871$as_echo "yes" >&6; }
23872
23873$as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23874
23875
23876else
23877 $as_echo "$as_me: failed program was:" >&5
23878sed 's/^/| /' conftest.$ac_ext >&5
23879
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23881$as_echo "no" >&6; }
23882
23883
23884
0e3762ca
CALP
23885fi
23886 rm -Rf build
23887
23888
23889
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23891$as_echo_n "checking whether super_block has s_d_op... " >&6; }
23892
23893
23894cat confdefs.h - <<_ACEOF >conftest.c
23895
23896
23897 #include <linux/fs.h>
23898
23899int
23900main (void)
23901{
23902
23903 struct super_block sb __attribute__ ((unused));
23904 sb.s_d_op = NULL;
23905
23906 ;
23907 return 0;
23908}
23909
23910_ACEOF
23911
23912
23913 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23914 echo "obj-m := conftest.o" >build/Makefile
23915 modpost_flag=''
23916 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23917 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23919 (eval $ac_try) 2>&5
23920 ac_status=$?
23921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23922 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23924 (eval $ac_try) 2>&5
23925 ac_status=$?
23926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23927 test $ac_status = 0; }; }; then :
23928
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23930$as_echo "yes" >&6; }
23931
23932$as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23933
23934
23935else
23936 $as_echo "$as_me: failed program was:" >&5
23937sed 's/^/| /' conftest.$ac_ext >&5
23938
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23940$as_echo "no" >&6; }
23941
23942
23943
23944fi
23945 rm -Rf build
23946
23947
23948
23949
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_bdi" >&5
23951$as_echo_n "checking whether super_block has s_bdi... " >&6; }
23952
23953
23954cat confdefs.h - <<_ACEOF >conftest.c
23955
23956
23957 #include <linux/fs.h>
23958
23959int
23960main (void)
23961{
23962
23963 struct super_block sb __attribute__ ((unused));
23964 sb.s_bdi = NULL;
23965
23966 ;
23967 return 0;
23968}
23969
23970_ACEOF
23971
23972
23973 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
23974 echo "obj-m := conftest.o" >build/Makefile
23975 modpost_flag=''
23976 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
23977 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev/null && { ac_try='test -s build/conftest.o'
23983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23984 (eval $ac_try) 2>&5
23985 ac_status=$?
23986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23987 test $ac_status = 0; }; }; then :
23988
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23990$as_echo "yes" >&6; }
23991
23992$as_echo "#define HAVE_BDI 1" >>confdefs.h
23993
23994
23995else
23996 $as_echo "$as_me: failed program was:" >&5
23997sed 's/^/| /' conftest.$ac_ext >&5
23998
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24000$as_echo "no" >&6; }
24001
24002
24003
24004fi
24005 rm -Rf build
24006
24007
24008
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() is available" >&5
24010$as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
24011
24012
24013
24014cat confdefs.h - <<_ACEOF >conftest.c
24015
24016
24017 #include <linux/backing-dev.h>
24018
24019int
24020main (void)
24021{
24022
24023 bdi_setup_and_register(NULL, NULL, 0);
24024
24025 ;
24026 return 0;
24027}
24028
24029_ACEOF
24030
24031
24032 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24033 echo "obj-m := conftest.o" >build/Makefile
24034 modpost_flag=''
24035 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24036 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24041 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24043 (eval $ac_try) 2>&5
24044 ac_status=$?
24045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24046 test $ac_status = 0; }; }; then :
24047 rc=0
24048else
24049 $as_echo "$as_me: failed program was:" >&5
24050sed 's/^/| /' conftest.$ac_ext >&5
24051 rc=1
24052
24053
24054fi
24055 rm -Rf build
24056
24057
24058 if test $rc -ne 0; then :
24059
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061$as_echo "no" >&6; }
24062
24063 else
24064 if test "x$enable_linux_builtin" != xyes; then
24065
24066 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24067 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24068 rc=$?
24069 if test $rc -ne 0; then
24070 export=0
24071 for file in mm/backing-dev.c; do
24072 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24073 "$LINUX/$file" 2>/dev/null
24074 rc=$?
24075 if test $rc -eq 0; then
24076 export=1
24077 break;
24078 fi
24079 done
24080 if test $export -eq 0; then :
24081 rc=1
24082 else :
24083 rc=0
24084 fi
24085 else :
24086 rc=0
24087 fi
24088
24089 fi
24090 if test $rc -ne 0; then :
24091
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24093$as_echo "no" >&6; }
24094
24095 else :
24096
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24098$as_echo "yes" >&6; }
24099
24100$as_echo "#define HAVE_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24101
24102
24103 fi
24104 fi
24105
24106
24107
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24109$as_echo_n "checking whether set_nlink() is available... " >&6; }
24110
24111
24112cat confdefs.h - <<_ACEOF >conftest.c
24113
24114
24115 #include <linux/fs.h>
24116
24117int
24118main (void)
24119{
24120
24121 struct inode node;
24122 unsigned int link = 0;
24123 (void) set_nlink(&node, link);
24124
24125 ;
24126 return 0;
24127}
24128
24129_ACEOF
24130
24131
24132 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24133 echo "obj-m := conftest.o" >build/Makefile
24134 modpost_flag=''
24135 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24136 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24141 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24144 ac_status=$?
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }; then :
24147
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24149$as_echo "yes" >&6; }
24150
24151$as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24152
24153
24154else
24155 $as_echo "$as_me: failed program was:" >&5
24156sed 's/^/| /' conftest.$ac_ext >&5
24157
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24159$as_echo "no" >&6; }
24160
24161
24162
24163fi
24164 rm -Rf build
24165
24166
24167
24168
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24170$as_echo_n "checking whether elevator_change() is available... " >&6; }
24171 tmp_flags="$EXTRA_KCFLAGS"
24172 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
24173
24174
24175cat confdefs.h - <<_ACEOF >conftest.c
24176
24177
24178 #include <linux/blkdev.h>
24179 #include <linux/elevator.h>
24180
24181int
24182main (void)
24183{
24184
24185 int ret;
24186 struct request_queue *q = NULL;
24187 char *elevator = NULL;
24188 ret = elevator_change(q, elevator);
24189
24190 ;
24191 return 0;
24192}
24193
24194_ACEOF
24195
24196
24197 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24198 echo "obj-m := conftest.o" >build/Makefile
24199 modpost_flag=''
24200 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24201 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24206 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24208 (eval $ac_try) 2>&5
24209 ac_status=$?
24210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24211 test $ac_status = 0; }; }; then :
24212
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24214$as_echo "yes" >&6; }
24215
24216$as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24217
24218
24219else
24220 $as_echo "$as_me: failed program was:" >&5
24221sed 's/^/| /' conftest.$ac_ext >&5
24222
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24224$as_echo "no" >&6; }
24225
24226
24227
24228fi
24229 rm -Rf build
24230
24231
24232 EXTRA_KCFLAGS="$tmp_flags"
24233
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24235$as_echo_n "checking whether sget() wants 5 args... " >&6; }
24236
24237
24238cat confdefs.h - <<_ACEOF >conftest.c
24239
24240
24241 #include <linux/fs.h>
24242
24243int
24244main (void)
24245{
24246
24247 struct file_system_type *type = NULL;
24248 int (*test)(struct super_block *,void *) = NULL;
24249 int (*set)(struct super_block *,void *) = NULL;
24250 int flags = 0;
24251 void *data = NULL;
24252 (void) sget(type, test, set, flags, data);
24253
24254 ;
24255 return 0;
24256}
24257
24258_ACEOF
24259
24260
24261 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24262 echo "obj-m := conftest.o" >build/Makefile
24263 modpost_flag=''
24264 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24265 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24268 ac_status=$?
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24273 ac_status=$?
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; }; then :
24276
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24278$as_echo "yes" >&6; }
24279
24280$as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24281
24282
24283else
24284 $as_echo "$as_me: failed program was:" >&5
24285sed 's/^/| /' conftest.$ac_ext >&5
24286
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24288$as_echo "no" >&6; }
24289
24290
24291
c06d4368
AX
24292fi
24293 rm -Rf build
24294
24295
24296
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24298$as_echo_n "checking whether lseek_execute() is available... " >&6; }
24299
24300
24301
24302cat confdefs.h - <<_ACEOF >conftest.c
24303
24304
24305 #include <linux/fs.h>
24306
24307int
24308main (void)
24309{
24310
24311 struct file *fp __attribute__ ((unused)) = NULL;
24312 struct inode *ip __attribute__ ((unused)) = NULL;
24313 loff_t offset __attribute__ ((unused)) = 0;
24314 loff_t maxsize __attribute__ ((unused)) = 0;
24315
24316 lseek_execute(fp, ip, offset, maxsize);
24317
24318 ;
24319 return 0;
24320}
24321
24322_ACEOF
24323
24324
24325 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24326 echo "obj-m := conftest.o" >build/Makefile
24327 modpost_flag=''
24328 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24329 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24331 (eval $ac_try) 2>&5
24332 ac_status=$?
24333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24334 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24339 test $ac_status = 0; }; }; then :
24340 rc=0
24341else
24342 $as_echo "$as_me: failed program was:" >&5
24343sed 's/^/| /' conftest.$ac_ext >&5
24344 rc=1
24345
24346
24347fi
24348 rm -Rf build
24349
24350
24351 if test $rc -ne 0; then :
24352
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24354$as_echo "no" >&6; }
24355
24356 else
24357 if test "x$enable_linux_builtin" != xyes; then
24358
24359 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24360 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
24361 rc=$?
24362 if test $rc -ne 0; then
24363 export=0
24364 for file in fs/read_write.c; do
24365 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24366 "$LINUX/$file" 2>/dev/null
24367 rc=$?
24368 if test $rc -eq 0; then
24369 export=1
24370 break;
24371 fi
24372 done
24373 if test $export -eq 0; then :
24374 rc=1
24375 else :
24376 rc=0
24377 fi
24378 else :
24379 rc=0
24380 fi
24381
24382 fi
24383 if test $rc -ne 0; then :
24384
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24386$as_echo "no" >&6; }
24387
24388 else :
24389
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24391$as_echo "yes" >&6; }
24392
24393$as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24394
24395
24396 fi
24397 fi
24398
24399
24400
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24402$as_echo_n "checking whether fops->iterate() is available... " >&6; }
24403
24404
24405cat confdefs.h - <<_ACEOF >conftest.c
24406
24407
24408 #include <linux/fs.h>
24409 int iterate(struct file *filp, struct dir_context * context)
24410 { return 0; }
24411
24412 static const struct file_operations fops
24413 __attribute__ ((unused)) = {
24414 .iterate = iterate,
24415 };
24416
24417int
24418main (void)
24419{
24420
24421
24422 ;
24423 return 0;
24424}
24425
24426_ACEOF
24427
24428
24429 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24430 echo "obj-m := conftest.o" >build/Makefile
24431 modpost_flag=''
24432 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24433 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24435 (eval $ac_try) 2>&5
24436 ac_status=$?
24437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24438 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24440 (eval $ac_try) 2>&5
24441 ac_status=$?
24442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24443 test $ac_status = 0; }; }; then :
24444
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24446$as_echo "yes" >&6; }
24447
24448$as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24449
24450
24451else
24452 $as_echo "$as_me: failed program was:" >&5
24453sed 's/^/| /' conftest.$ac_ext >&5
24454
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24456$as_echo "no" >&6; }
24457
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24459$as_echo_n "checking whether fops->readdir() is available... " >&6; }
24460
24461
24462cat confdefs.h - <<_ACEOF >conftest.c
24463
24464
24465 #include <linux/fs.h>
24466 int readdir(struct file *filp, void *entry, filldir_t func)
24467 { return 0; }
24468
24469 static const struct file_operations fops
24470 __attribute__ ((unused)) = {
24471 .readdir = readdir,
24472 };
24473
24474int
24475main (void)
24476{
24477
24478
24479 ;
24480 return 0;
24481}
24482
24483_ACEOF
24484
24485
24486 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
24487 echo "obj-m := conftest.o" >build/Makefile
24488 modpost_flag=''
24489 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
24490 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24492 (eval $ac_try) 2>&5
24493 ac_status=$?
24494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24495 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
24496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24500 test $ac_status = 0; }; }; then :
24501
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24503$as_echo "yes" >&6; }
24504
24505$as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24506
24507
24508else
24509 $as_echo "$as_me: failed program was:" >&5
24510sed 's/^/| /' conftest.$ac_ext >&5
24511
24512 as_fn_error $? "no; file a bug report with ZFSOnLinux" "$LINENO" 5
24513
24514
24515
24516fi
24517 rm -Rf build
24518
24519
24520
24521
24522
24523
0e3762ca
CALP
24524fi
24525 rm -Rf build
24526
24527
24528
24529
24530 if test "$LINUX_OBJ" != "$LINUX"; then :
24531
24532 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
24533
24534fi
24535
24536
24537
24538 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
24539 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
24540 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
24541
24542
24543
24544
24545
24546
24547# Check whether --with-udevdir was given.
24548if test "${with_udevdir+set}" = set; then :
24549 withval=$with_udevdir; udevdir=$withval
24550else
24551 udevdir='${exec_prefix}/lib/udev'
24552fi
24553
24554
24555
24556# Check whether --with-udevruledir was given.
24557if test "${with_udevruledir+set}" = set; then :
24558 withval=$with_udevruledir; udevruledir=$withval
24559else
24560 udevruledir='${udevdir}/rules.d'
24561fi
24562
24563
24564
24565
24566
24567
24568
24569# Check whether --with-dracutdir was given.
24570if test "${with_dracutdir+set}" = set; then :
24571 withval=$with_dracutdir; dracutdir=$withval
24572else
24573 dracutdir='${exec_prefix}/lib/dracut'
24574fi
24575
24576
24577
24578
24579
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
24581$as_echo_n "checking for target asm dir... " >&6; }
24582 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
24583
24584 case $TARGET_ARCH in
24585 i386|x86_64)
24586 TARGET_ASM_DIR=asm-${TARGET_ARCH}
24587 ;;
24588 *)
24589 TARGET_ASM_DIR=asm-generic
24590 ;;
24591 esac
24592
24593
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
24595$as_echo "$TARGET_ASM_DIR" >&6; }
24596
24597
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl()" >&5
24599$as_echo_n "checking for ioctl()... " >&6; }
24600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24601/* end confdefs.h. */
24602#include <unistd.h>
24603
24604_ACEOF
24605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24606 $EGREP "ioctl" >/dev/null 2>&1; then :
24607 is_unistd=yes
24608else
24609 is_unistd=no
24610fi
24611rm -f conftest*
24612
24613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24614/* end confdefs.h. */
24615#include <sys/ioctl.h>
24616
24617_ACEOF
24618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24619 $EGREP "ioctl" >/dev/null 2>&1; then :
24620 is_sys_ioctl=yes
24621else
24622 is_sys_ioctl=no
24623fi
24624rm -f conftest*
24625
24626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24627/* end confdefs.h. */
24628#include <stropts.h>
24629
24630_ACEOF
24631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24632 $EGREP "ioctl" >/dev/null 2>&1; then :
24633 is_stropts=yes
24634else
24635 is_stropts=no
24636fi
24637rm -f conftest*
24638
24639
24640 if test $is_unistd = yes; then
24641 result=unistd.h
24642
24643$as_echo "#define HAVE_IOCTL_IN_UNISTD_H 1" >>confdefs.h
24644
24645 else
24646
24647 if test $is_sys_ioctl = yes; then
24648 result=sys/ioctl.h
24649
24650$as_echo "#define HAVE_IOCTL_IN_SYS_IOCTL_H 1" >>confdefs.h
24651
24652 elif test $is_stropts = yes; then
24653
24654$as_echo "#define HAVE_IOCTL_IN_STROPTS_H 1" >>confdefs.h
24655
24656 else
24657 result=no
24658 fi
24659 fi
24660
24661 if test $result = no; then
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24663$as_echo "no" >&6; }
24664 as_fn_error $? "*** Cannot locate ioctl() definition" "$LINENO" 5
24665 else
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24667$as_echo "yes" >&6; }
24668 fi
24669
24670
24671 ZLIB=
24672
24673 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24674if test "x$ac_cv_header_zlib_h" = x""yes; then :
24675
24676else
24677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24679as_fn_error $? "
24680 *** zlib.h missing, zlib-devel package required
24681See \`config.log' for more details" "$LINENO" 5 ; }
24682fi
24683
24684
24685
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
24687$as_echo_n "checking for compress2 in -lz... " >&6; }
24688if test "${ac_cv_lib_z_compress2+set}" = set; then :
24689 $as_echo_n "(cached) " >&6
24690else
24691 ac_check_lib_save_LIBS=$LIBS
24692LIBS="-lz $LIBS"
24693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24694/* end confdefs.h. */
24695
24696/* Override any GCC internal prototype to avoid an error.
24697 Use char because int might match the return type of a GCC
24698 builtin and then its argument prototype would still apply. */
24699#ifdef __cplusplus
24700extern "C"
24701#endif
24702char compress2 ();
24703int
24704main ()
24705{
24706return compress2 ();
24707 ;
24708 return 0;
24709}
24710_ACEOF
24711if ac_fn_c_try_link "$LINENO"; then :
24712 ac_cv_lib_z_compress2=yes
24713else
24714 ac_cv_lib_z_compress2=no
24715fi
24716rm -f core conftest.err conftest.$ac_objext \
24717 conftest$ac_exeext conftest.$ac_ext
24718LIBS=$ac_check_lib_save_LIBS
24719fi
24720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
24721$as_echo "$ac_cv_lib_z_compress2" >&6; }
24722if test "x$ac_cv_lib_z_compress2" = x""yes; then :
24723 cat >>confdefs.h <<_ACEOF
24724#define HAVE_LIBZ 1
24725_ACEOF
24726
24727 LIBS="-lz $LIBS"
24728
24729else
24730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24732as_fn_error $? "
24733 *** compress2() missing, zlib-devel package required
24734See \`config.log' for more details" "$LINENO" 5 ; }
24735fi
24736
24737
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
24739$as_echo_n "checking for uncompress in -lz... " >&6; }
24740if test "${ac_cv_lib_z_uncompress+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24742else
24743 ac_check_lib_save_LIBS=$LIBS
24744LIBS="-lz $LIBS"
24745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746/* end confdefs.h. */
24747
24748/* Override any GCC internal prototype to avoid an error.
24749 Use char because int might match the return type of a GCC
24750 builtin and then its argument prototype would still apply. */
24751#ifdef __cplusplus
24752extern "C"
24753#endif
24754char uncompress ();
24755int
24756main ()
24757{
24758return uncompress ();
24759 ;
24760 return 0;
24761}
24762_ACEOF
24763if ac_fn_c_try_link "$LINENO"; then :
24764 ac_cv_lib_z_uncompress=yes
24765else
24766 ac_cv_lib_z_uncompress=no
24767fi
24768rm -f core conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
24770LIBS=$ac_check_lib_save_LIBS
24771fi
24772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
24773$as_echo "$ac_cv_lib_z_uncompress" >&6; }
24774if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
24775 cat >>confdefs.h <<_ACEOF
24776#define HAVE_LIBZ 1
24777_ACEOF
24778
24779 LIBS="-lz $LIBS"
24780
24781else
24782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24784as_fn_error $? "
24785 *** uncompress() missing, zlib-devel package required
24786See \`config.log' for more details" "$LINENO" 5 ; }
24787fi
24788
24789
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
24791$as_echo_n "checking for crc32 in -lz... " >&6; }
24792if test "${ac_cv_lib_z_crc32+set}" = set; then :
24793 $as_echo_n "(cached) " >&6
24794else
24795 ac_check_lib_save_LIBS=$LIBS
24796LIBS="-lz $LIBS"
24797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24798/* end confdefs.h. */
24799
24800/* Override any GCC internal prototype to avoid an error.
24801 Use char because int might match the return type of a GCC
24802 builtin and then its argument prototype would still apply. */
24803#ifdef __cplusplus
24804extern "C"
24805#endif
24806char crc32 ();
24807int
24808main ()
24809{
24810return crc32 ();
24811 ;
24812 return 0;
24813}
24814_ACEOF
24815if ac_fn_c_try_link "$LINENO"; then :
24816 ac_cv_lib_z_crc32=yes
24817else
24818 ac_cv_lib_z_crc32=no
24819fi
24820rm -f core conftest.err conftest.$ac_objext \
24821 conftest$ac_exeext conftest.$ac_ext
24822LIBS=$ac_check_lib_save_LIBS
24823fi
24824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
24825$as_echo "$ac_cv_lib_z_crc32" >&6; }
24826if test "x$ac_cv_lib_z_crc32" = x""yes; then :
24827 cat >>confdefs.h <<_ACEOF
24828#define HAVE_LIBZ 1
24829_ACEOF
24830
24831 LIBS="-lz $LIBS"
24832
24833else
24834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24836as_fn_error $? "
24837 *** crc32() missing, zlib-devel package required
24838See \`config.log' for more details" "$LINENO" 5 ; }
24839fi
24840
24841
24842 ZLIB="-lz"
24843
24844
24845$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
24846
24847
24848
24849 LIBUUID=
24850
24851 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
24852if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
24853
24854else
24855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24857as_fn_error $? "
24858 *** uuid/uuid.h missing, libuuid-devel package required
24859See \`config.log' for more details" "$LINENO" 5 ; }
24860fi
24861
24862
24863
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
24865$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
24866if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
24867 $as_echo_n "(cached) " >&6
24868else
24869 ac_check_lib_save_LIBS=$LIBS
24870LIBS="-luuid $LIBS"
24871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24872/* end confdefs.h. */
24873
24874/* Override any GCC internal prototype to avoid an error.
24875 Use char because int might match the return type of a GCC
24876 builtin and then its argument prototype would still apply. */
24877#ifdef __cplusplus
24878extern "C"
24879#endif
24880char uuid_generate ();
24881int
24882main ()
24883{
24884return uuid_generate ();
24885 ;
24886 return 0;
24887}
24888_ACEOF
24889if ac_fn_c_try_link "$LINENO"; then :
24890 ac_cv_lib_uuid_uuid_generate=yes
24891else
24892 ac_cv_lib_uuid_uuid_generate=no
24893fi
24894rm -f core conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
24896LIBS=$ac_check_lib_save_LIBS
24897fi
24898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
24899$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24900if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
24901 cat >>confdefs.h <<_ACEOF
24902#define HAVE_LIBUUID 1
24903_ACEOF
24904
24905 LIBS="-luuid $LIBS"
24906
24907else
24908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24910as_fn_error $? "
24911 *** uuid_generate() missing, libuuid-devel package required
24912See \`config.log' for more details" "$LINENO" 5 ; }
24913fi
24914
24915
24916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
24917$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24918if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then :
24919 $as_echo_n "(cached) " >&6
24920else
24921 ac_check_lib_save_LIBS=$LIBS
24922LIBS="-luuid $LIBS"
24923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924/* end confdefs.h. */
24925
24926/* Override any GCC internal prototype to avoid an error.
24927 Use char because int might match the return type of a GCC
24928 builtin and then its argument prototype would still apply. */
24929#ifdef __cplusplus
24930extern "C"
24931#endif
24932char uuid_is_null ();
24933int
24934main ()
24935{
24936return uuid_is_null ();
24937 ;
24938 return 0;
24939}
24940_ACEOF
24941if ac_fn_c_try_link "$LINENO"; then :
24942 ac_cv_lib_uuid_uuid_is_null=yes
24943else
24944 ac_cv_lib_uuid_uuid_is_null=no
24945fi
24946rm -f core conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
24948LIBS=$ac_check_lib_save_LIBS
24949fi
24950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24951$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24952if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then :
24953 cat >>confdefs.h <<_ACEOF
24954#define HAVE_LIBUUID 1
24955_ACEOF
24956
24957 LIBS="-luuid $LIBS"
24958
24959else
24960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24962as_fn_error $? "
24963 *** uuid_is_null() missing, libuuid-devel package required
24964See \`config.log' for more details" "$LINENO" 5 ; }
24965fi
24966
24967
24968 LIBUUID="-luuid"
24969
24970
24971$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
24972
24973
24974
24975
24976# Check whether --with-blkid was given.
24977if test "${with_blkid+set}" = set; then :
24978 withval=$with_blkid;
24979else
24980 with_blkid=check
24981fi
24982
24983
24984 LIBBLKID=
24985 if test "x$with_blkid" != xno; then :
24986
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
24988$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24989if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
24990 $as_echo_n "(cached) " >&6
24991else
24992 ac_check_lib_save_LIBS=$LIBS
24993LIBS="-lblkid $LIBS"
24994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995/* end confdefs.h. */
24996
24997/* Override any GCC internal prototype to avoid an error.
24998 Use char because int might match the return type of a GCC
24999 builtin and then its argument prototype would still apply. */
25000#ifdef __cplusplus
25001extern "C"
25002#endif
25003char blkid_get_cache ();
25004int
25005main ()
25006{
25007return blkid_get_cache ();
25008 ;
25009 return 0;
25010}
25011_ACEOF
25012if ac_fn_c_try_link "$LINENO"; then :
25013 ac_cv_lib_blkid_blkid_get_cache=yes
25014else
25015 ac_cv_lib_blkid_blkid_get_cache=no
25016fi
25017rm -f core conftest.err conftest.$ac_objext \
25018 conftest$ac_exeext conftest.$ac_ext
25019LIBS=$ac_check_lib_save_LIBS
25020fi
25021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
25022$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
25023if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
25024
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
25026$as_echo_n "checking for blkid zfs support... " >&6; }
25027
25028 ZFS_DEV=`mktemp`
25029 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
25030 >/dev/null 2>/dev/null
25031 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
25032 dd of=$ZFS_DEV bs=1k count=8 \
25033 seek=132 conv=notrunc &>/dev/null \
25034 >/dev/null 2>/dev/null
25035
25036 saved_LDFLAGS="$LDFLAGS"
25037 LDFLAGS="-lblkid"
25038
25039 if test "$cross_compiling" = yes; then :
25040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25042as_fn_error $? "cannot run test program while cross compiling
25043See \`config.log' for more details" "$LINENO" 5 ; }
25044else
25045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046/* end confdefs.h. */
25047
25048 #include <stdio.h>
25049 #include <blkid/blkid.h>
25050
25051int
25052main ()
25053{
25054
25055 blkid_cache cache;
25056 char *value;
25057
25058 if (blkid_get_cache(&cache, NULL) < 0)
25059 return 1;
25060
25061 value = blkid_get_tag_value(cache, "TYPE",
25062 "$ZFS_DEV");
25063 if (!value) {
25064 blkid_put_cache(cache);
25065 return 2;
25066 }
25067
25068 if (strcmp(value, "zfs")) {
25069 free(value);
25070 blkid_put_cache(cache);
25071 return 3;
25072 }
25073
25074 free(value);
25075 blkid_put_cache(cache);
25076
25077 ;
25078 return 0;
25079}
25080_ACEOF
25081if ac_fn_c_try_run "$LINENO"; then :
25082
25083 rm -f $ZFS_DEV
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25085$as_echo "yes" >&6; }
25086 LIBBLKID="-lblkid"
25087
25088
25089$as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
25090
25091
25092else
25093
25094 rm -f $ZFS_DEV
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25096$as_echo "no" >&6; }
25097 if test "x$with_blkid" != xcheck; then :
25098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25100as_fn_error $? "--with-blkid given but unavailable
25101See \`config.log' for more details" "$LINENO" 5 ; }
25102fi
25103
25104fi
25105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25106 conftest.$ac_objext conftest.beam conftest.$ac_ext
25107fi
25108
25109
25110 LDFLAGS="$saved_LDFLAGS"
25111
25112else
25113
25114 if test "x$with_blkid" != xcheck; then :
25115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25117as_fn_error $? "--with-blkid given but unavailable
25118See \`config.log' for more details" "$LINENO" 5 ; }
25119fi
25120
25121
25122fi
25123
25124
25125fi
25126
25127
25128
25129# Check whether --with-selinux was given.
25130if test "${with_selinux+set}" = set; then :
25131 withval=$with_selinux;
25132else
25133 with_selinux=check
25134fi
25135
25136
25137 LIBSELINUX=
25138 if test "x$with_selinux" != xno; then :
25139
25140 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
25141if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
25142
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
25144$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
25145if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
25146 $as_echo_n "(cached) " >&6
25147else
25148 ac_check_lib_save_LIBS=$LIBS
25149LIBS="-lselinux $LIBS"
25150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25151/* end confdefs.h. */
25152
25153/* Override any GCC internal prototype to avoid an error.
25154 Use char because int might match the return type of a GCC
25155 builtin and then its argument prototype would still apply. */
25156#ifdef __cplusplus
25157extern "C"
25158#endif
25159char is_selinux_enabled ();
25160int
25161main ()
25162{
25163return is_selinux_enabled ();
25164 ;
25165 return 0;
25166}
25167_ACEOF
25168if ac_fn_c_try_link "$LINENO"; then :
25169 ac_cv_lib_selinux_is_selinux_enabled=yes
25170else
25171 ac_cv_lib_selinux_is_selinux_enabled=no
25172fi
25173rm -f core conftest.err conftest.$ac_objext \
25174 conftest$ac_exeext conftest.$ac_ext
25175LIBS=$ac_check_lib_save_LIBS
25176fi
25177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
25178$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
25179if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25180
25181 LIBSELINUX="-lselinux"
25182
25183
25184$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
25185
25186
25187else
25188
25189 if test "x$with_selinux" != xcheck; then :
25190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25192as_fn_error $? "--with-selinux given but unavailable
25193See \`config.log' for more details" "$LINENO" 5 ; }
25194
25195fi
25196
25197fi
25198
25199
25200else
25201
25202 if test "x$with_selinux" != xcheck; then :
25203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25205as_fn_error $? "--with-selinux given but unavailable
25206See \`config.log' for more details" "$LINENO" 5 ; }
25207
25208fi
25209
25210fi
25211
25212
25213
25214else
25215
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux support" >&5
25217$as_echo_n "checking for selinux support... " >&6; }
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25219$as_echo "no" >&6; }
25220
25221fi
25222
25223
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
25225$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
25226
25227 saved_flags="$CFLAGS"
25228 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
25229
25230 if test "$cross_compiling" = yes; then :
25231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25233as_fn_error $? "cannot run test program while cross compiling
25234See \`config.log' for more details" "$LINENO" 5 ; }
25235else
25236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237/* end confdefs.h. */
25238
25239int
25240main ()
25241{
25242
25243 ;
25244 return 0;
25245}
25246_ACEOF
25247if ac_fn_c_try_run "$LINENO"; then :
25248
25249 FRAME_LARGER_THAN=-Wframe-larger-than=1024
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25251$as_echo "yes" >&6; }
25252
25253else
25254
25255 FRAME_LARGER_THAN=
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25257$as_echo "no" >&6; }
25258
25259fi
25260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25261 conftest.$ac_objext conftest.beam conftest.$ac_ext
25262fi
25263
25264
25265 CFLAGS="$saved_flags"
25266
25267
25268 ;;
25269 srpm) ;;
25270 *)
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
25272$as_echo "Error!" >&6; }
25273 as_fn_error $? "Bad value \"$ZFS_CONFIG\" for --with-config,
25274 user kernel|user|all|srpm" "$LINENO" 5 ;;
25275 esac
25276
25277 if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
25278 CONFIG_USER_TRUE=
25279 CONFIG_USER_FALSE='#'
25280else
25281 CONFIG_USER_TRUE='#'
25282 CONFIG_USER_FALSE=
25283fi
25284
25285 if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
25286 test "x$enable_linux_builtin" != xyes ; then
25287 CONFIG_KERNEL_TRUE=
25288 CONFIG_KERNEL_FALSE='#'
25289else
25290 CONFIG_KERNEL_TRUE='#'
25291 CONFIG_KERNEL_FALSE=
25292fi
25293
25294
25295
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
25297$as_echo_n "checking whether debugging is enabled... " >&6; }
25298 # Check whether --enable-debug was given.
25299if test "${enable_debug+set}" = set; then :
25300 enableval=$enable_debug;
25301else
25302 enable_debug=no
25303fi
25304
25305
25306 if test "x$enable_debug" = xyes; then :
25307
25308 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
25309 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
25310 DEBUG_CFLAGS="-DDEBUG -Werror"
25311 DEBUG_STACKFLAGS="-fstack-check"
25312 DEBUG_ZFS="_with_debug"
25313
25314$as_echo "#define ZFS_DEBUG 1" >>confdefs.h
25315
25316
25317else
25318
25319 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
25320 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
25321 DEBUG_CFLAGS="-DNDEBUG"
25322 DEBUG_STACKFLAGS=""
25323 DEBUG_ZFS="_without_debug"
25324
25325fi
25326
25327
25328
25329
25330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
25331$as_echo "$enable_debug" >&6; }
25332
25333
25334 # Check whether --enable-debug-dmu-tx was given.
25335if test "${enable_debug_dmu_tx+set}" = set; then :
25336 enableval=$enable_debug_dmu_tx;
25337else
25338 enable_debug_dmu_tx=no
25339fi
25340
25341
25342 if test "x$enable_debug_dmu_tx" = xyes; then :
25343
25344 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
25345 DEBUG_DMU_TX="_with_debug_dmu_tx"
25346
25347$as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
25348
25349
25350else
25351
25352 DEBUG_DMU_TX="_without_debug_dmu_tx"
25353
25354fi
25355
25356
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
25358$as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
25360$as_echo "$enable_debug_dmu_tx" >&6; }
25361
25362
c06d4368 25363ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile 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/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 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/fedora/Makefile rpm/fedora/zfs.spec rpm/fedora/zfs-kmod.spec rpm/fedora/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
0e3762ca
CALP
25364
25365
25366cat >confcache <<\_ACEOF
25367# This file is a shell script that caches the results of configure
25368# tests run on this system so they can be shared between configure
25369# scripts and configure runs, see configure's option --config-cache.
25370# It is not useful on other systems. If it contains results you don't
25371# want to keep, you may remove or edit it.
25372#
25373# config.status only pays attention to the cache file if you give it
25374# the --recheck option to rerun configure.
25375#
25376# `ac_cv_env_foo' variables (set or unset) will be overridden when
25377# loading this file, other *unset* `ac_cv_foo' will be assigned the
25378# following values.
25379
25380_ACEOF
25381
25382# The following way of writing the cache mishandles newlines in values,
25383# but we know of no workaround that is simple, portable, and efficient.
25384# So, we kill variables containing newlines.
25385# Ultrix sh set writes to stderr and can't be redirected directly,
25386# and sets the high bit in the cache file unless we assign to the vars.
25387(
25388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25389 eval ac_val=\$$ac_var
25390 case $ac_val in #(
25391 *${as_nl}*)
25392 case $ac_var in #(
25393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25394$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25395 esac
25396 case $ac_var in #(
25397 _ | IFS | as_nl) ;; #(
25398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25399 *) { eval $ac_var=; unset $ac_var;} ;;
25400 esac ;;
25401 esac
25402 done
25403
25404 (set) 2>&1 |
25405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25406 *${as_nl}ac_space=\ *)
25407 # `set' does not quote correctly, so add quotes: double-quote
25408 # substitution turns \\\\ into \\, and sed turns \\ into \.
25409 sed -n \
25410 "s/'/'\\\\''/g;
25411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25412 ;; #(
25413 *)
25414 # `set' quotes correctly as required by POSIX, so do not add quotes.
25415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25416 ;;
25417 esac |
25418 sort
25419) |
25420 sed '
25421 /^ac_cv_env_/b end
25422 t clear
25423 :clear
25424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25425 t end
25426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25427 :end' >>confcache
25428if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25429 if test -w "$cache_file"; then
25430 test "x$cache_file" != "x/dev/null" &&
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25432$as_echo "$as_me: updating cache $cache_file" >&6;}
25433 cat confcache >$cache_file
25434 else
25435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25436$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25437 fi
25438fi
25439rm -f confcache
25440
25441test "x$prefix" = xNONE && prefix=$ac_default_prefix
25442# Let make expand exec_prefix.
25443test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25444
25445DEFS=-DHAVE_CONFIG_H
25446
25447ac_libobjs=
25448ac_ltlibobjs=
25449U=
25450for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25451 # 1. Remove the extension, and $U if already installed.
25452 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25453 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25455 # will be set to the directory where LIBOBJS objects are built.
25456 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25457 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25458done
25459LIBOBJS=$ac_libobjs
25460
25461LTLIBOBJS=$ac_ltlibobjs
25462
25463
25464if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25465 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25466Usually this means the macro was only invoked conditionally." "$LINENO" 5
25467fi
25468 if test -n "$EXEEXT"; then
25469 am__EXEEXT_TRUE=
25470 am__EXEEXT_FALSE='#'
25471else
25472 am__EXEEXT_TRUE='#'
25473 am__EXEEXT_FALSE=
25474fi
25475
25476if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25477 as_fn_error $? "conditional \"AMDEP\" was never defined.
25478Usually this means the macro was only invoked conditionally." "$LINENO" 5
25479fi
25480if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25481 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25482Usually this means the macro was only invoked conditionally." "$LINENO" 5
25483fi
25484if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25485 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
25486Usually this means the macro was only invoked conditionally." "$LINENO" 5
25487fi
25488if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
25489 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
25490Usually this means the macro was only invoked conditionally." "$LINENO" 5
25491fi
25492if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
25493 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
25494Usually this means the macro was only invoked conditionally." "$LINENO" 5
25495fi
25496
25497: ${CONFIG_STATUS=./config.status}
25498ac_write_fail=0
25499ac_clean_files_save=$ac_clean_files
25500ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25501{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25502$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25503as_write_fail=0
25504cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25505#! $SHELL
25506# Generated by $as_me.
25507# Run this file to recreate the current configuration.
25508# Compiler output produced by configure, useful for debugging
25509# configure, is in config.log if it exists.
25510
25511debug=false
25512ac_cs_recheck=false
25513ac_cs_silent=false
25514
25515SHELL=\${CONFIG_SHELL-$SHELL}
25516export SHELL
25517_ASEOF
25518cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25519## -------------------- ##
25520## M4sh Initialization. ##
25521## -------------------- ##
25522
25523# Be more Bourne compatible
25524DUALCASE=1; export DUALCASE # for MKS sh
25525if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25526 emulate sh
25527 NULLCMD=:
25528 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25529 # is contrary to our usage. Disable this feature.
25530 alias -g '${1+"$@"}'='"$@"'
25531 setopt NO_GLOB_SUBST
25532else
25533 case `(set -o) 2>/dev/null` in #(
25534 *posix*) :
25535 set -o posix ;; #(
25536 *) :
25537 ;;
25538esac
25539fi
25540
25541
25542as_nl='
25543'
25544export as_nl
25545# Printing a long string crashes Solaris 7 /usr/bin/printf.
25546as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25547as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25548as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25549# Prefer a ksh shell builtin over an external printf program on Solaris,
25550# but without wasting forks for bash or zsh.
25551if test -z "$BASH_VERSION$ZSH_VERSION" \
25552 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25553 as_echo='print -r --'
25554 as_echo_n='print -rn --'
25555elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25556 as_echo='printf %s\n'
25557 as_echo_n='printf %s'
25558else
25559 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25560 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25561 as_echo_n='/usr/ucb/echo -n'
25562 else
25563 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25564 as_echo_n_body='eval
25565 arg=$1;
25566 case $arg in #(
25567 *"$as_nl"*)
25568 expr "X$arg" : "X\\(.*\\)$as_nl";
25569 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25570 esac;
25571 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25572 '
25573 export as_echo_n_body
25574 as_echo_n='sh -c $as_echo_n_body as_echo'
25575 fi
25576 export as_echo_body
25577 as_echo='sh -c $as_echo_body as_echo'
25578fi
25579
25580# The user is always right.
25581if test "${PATH_SEPARATOR+set}" != set; then
25582 PATH_SEPARATOR=:
25583 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25584 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25585 PATH_SEPARATOR=';'
25586 }
25587fi
25588
25589
25590# IFS
25591# We need space, tab and new line, in precisely that order. Quoting is
25592# there to prevent editors from complaining about space-tab.
25593# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25594# splitting by setting IFS to empty value.)
25595IFS=" "" $as_nl"
25596
25597# Find who we are. Look in the path if we contain no directory separator.
25598case $0 in #((
25599 *[\\/]* ) as_myself=$0 ;;
25600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25601for as_dir in $PATH
25602do
25603 IFS=$as_save_IFS
25604 test -z "$as_dir" && as_dir=.
25605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25606 done
25607IFS=$as_save_IFS
25608
25609 ;;
25610esac
25611# We did not find ourselves, most probably we were run as `sh COMMAND'
25612# in which case we are not to be found in the path.
25613if test "x$as_myself" = x; then
25614 as_myself=$0
25615fi
25616if test ! -f "$as_myself"; then
25617 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25618 exit 1
25619fi
25620
25621# Unset variables that we do not need and which cause bugs (e.g. in
25622# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25623# suppresses any "Segmentation fault" message there. '((' could
25624# trigger a bug in pdksh 5.2.14.
25625for as_var in BASH_ENV ENV MAIL MAILPATH
25626do eval test x\${$as_var+set} = xset \
25627 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25628done
25629PS1='$ '
25630PS2='> '
25631PS4='+ '
25632
25633# NLS nuisances.
25634LC_ALL=C
25635export LC_ALL
25636LANGUAGE=C
25637export LANGUAGE
25638
25639# CDPATH.
25640(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25641
25642
25643# as_fn_error STATUS ERROR [LINENO LOG_FD]
25644# ----------------------------------------
25645# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25646# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25647# script with STATUS, using 1 if that was 0.
25648as_fn_error ()
25649{
25650 as_status=$1; test $as_status -eq 0 && as_status=1
25651 if test "$4"; then
25652 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25653 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25654 fi
25655 $as_echo "$as_me: error: $2" >&2
25656 as_fn_exit $as_status
25657} # as_fn_error
25658
25659
25660# as_fn_set_status STATUS
25661# -----------------------
25662# Set $? to STATUS, without forking.
25663as_fn_set_status ()
25664{
25665 return $1
25666} # as_fn_set_status
25667
25668# as_fn_exit STATUS
25669# -----------------
25670# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25671as_fn_exit ()
25672{
25673 set +e
25674 as_fn_set_status $1
25675 exit $1
25676} # as_fn_exit
25677
25678# as_fn_unset VAR
25679# ---------------
25680# Portably unset VAR.
25681as_fn_unset ()
25682{
25683 { eval $1=; unset $1;}
25684}
25685as_unset=as_fn_unset
25686# as_fn_append VAR VALUE
25687# ----------------------
25688# Append the text in VALUE to the end of the definition contained in VAR. Take
25689# advantage of any shell optimizations that allow amortized linear growth over
25690# repeated appends, instead of the typical quadratic growth present in naive
25691# implementations.
25692if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25693 eval 'as_fn_append ()
25694 {
25695 eval $1+=\$2
25696 }'
25697else
25698 as_fn_append ()
25699 {
25700 eval $1=\$$1\$2
25701 }
25702fi # as_fn_append
25703
25704# as_fn_arith ARG...
25705# ------------------
25706# Perform arithmetic evaluation on the ARGs, and store the result in the
25707# global $as_val. Take advantage of shells that can avoid forks. The arguments
25708# must be portable across $(()) and expr.
25709if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25710 eval 'as_fn_arith ()
25711 {
25712 as_val=$(( $* ))
25713 }'
25714else
25715 as_fn_arith ()
25716 {
25717 as_val=`expr "$@" || test $? -eq 1`
25718 }
25719fi # as_fn_arith
25720
25721
25722if expr a : '\(a\)' >/dev/null 2>&1 &&
25723 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25724 as_expr=expr
25725else
25726 as_expr=false
25727fi
25728
25729if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25730 as_basename=basename
25731else
25732 as_basename=false
25733fi
25734
25735if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25736 as_dirname=dirname
25737else
25738 as_dirname=false
25739fi
25740
25741as_me=`$as_basename -- "$0" ||
25742$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25743 X"$0" : 'X\(//\)$' \| \
25744 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25745$as_echo X/"$0" |
25746 sed '/^.*\/\([^/][^/]*\)\/*$/{
25747 s//\1/
25748 q
25749 }
25750 /^X\/\(\/\/\)$/{
25751 s//\1/
25752 q
25753 }
25754 /^X\/\(\/\).*/{
25755 s//\1/
25756 q
25757 }
25758 s/.*/./; q'`
25759
25760# Avoid depending upon Character Ranges.
25761as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25762as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25763as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25764as_cr_digits='0123456789'
25765as_cr_alnum=$as_cr_Letters$as_cr_digits
25766
25767ECHO_C= ECHO_N= ECHO_T=
25768case `echo -n x` in #(((((
25769-n*)
25770 case `echo 'xy\c'` in
25771 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25772 xy) ECHO_C='\c';;
25773 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25774 ECHO_T=' ';;
25775 esac;;
25776*)
25777 ECHO_N='-n';;
25778esac
25779
25780rm -f conf$$ conf$$.exe conf$$.file
25781if test -d conf$$.dir; then
25782 rm -f conf$$.dir/conf$$.file
25783else
25784 rm -f conf$$.dir
25785 mkdir conf$$.dir 2>/dev/null
25786fi
25787if (echo >conf$$.file) 2>/dev/null; then
25788 if ln -s conf$$.file conf$$ 2>/dev/null; then
25789 as_ln_s='ln -s'
25790 # ... but there are two gotchas:
25791 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25792 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25793 # In both cases, we have to default to `cp -p'.
25794 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25795 as_ln_s='cp -p'
25796 elif ln conf$$.file conf$$ 2>/dev/null; then
25797 as_ln_s=ln
25798 else
25799 as_ln_s='cp -p'
25800 fi
25801else
25802 as_ln_s='cp -p'
25803fi
25804rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25805rmdir conf$$.dir 2>/dev/null
25806
25807
25808# as_fn_mkdir_p
25809# -------------
25810# Create "$as_dir" as a directory, including parents if necessary.
25811as_fn_mkdir_p ()
25812{
25813
25814 case $as_dir in #(
25815 -*) as_dir=./$as_dir;;
25816 esac
25817 test -d "$as_dir" || eval $as_mkdir_p || {
25818 as_dirs=
25819 while :; do
25820 case $as_dir in #(
25821 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25822 *) as_qdir=$as_dir;;
25823 esac
25824 as_dirs="'$as_qdir' $as_dirs"
25825 as_dir=`$as_dirname -- "$as_dir" ||
25826$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25827 X"$as_dir" : 'X\(//\)[^/]' \| \
25828 X"$as_dir" : 'X\(//\)$' \| \
25829 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25830$as_echo X"$as_dir" |
25831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25832 s//\1/
25833 q
25834 }
25835 /^X\(\/\/\)[^/].*/{
25836 s//\1/
25837 q
25838 }
25839 /^X\(\/\/\)$/{
25840 s//\1/
25841 q
25842 }
25843 /^X\(\/\).*/{
25844 s//\1/
25845 q
25846 }
25847 s/.*/./; q'`
25848 test -d "$as_dir" && break
25849 done
25850 test -z "$as_dirs" || eval "mkdir $as_dirs"
25851 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25852
25853
25854} # as_fn_mkdir_p
25855if mkdir -p . 2>/dev/null; then
25856 as_mkdir_p='mkdir -p "$as_dir"'
25857else
25858 test -d ./-p && rmdir ./-p
25859 as_mkdir_p=false
25860fi
25861
25862if test -x / >/dev/null 2>&1; then
25863 as_test_x='test -x'
25864else
25865 if ls -dL / >/dev/null 2>&1; then
25866 as_ls_L_option=L
25867 else
25868 as_ls_L_option=
25869 fi
25870 as_test_x='
25871 eval sh -c '\''
25872 if test -d "$1"; then
25873 test -d "$1/.";
25874 else
25875 case $1 in #(
25876 -*)set "./$1";;
25877 esac;
25878 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25879 ???[sx]*):;;*)false;;esac;fi
25880 '\'' sh
25881 '
25882fi
25883as_executable_p=$as_test_x
25884
25885# Sed expression to map a string onto a valid CPP name.
25886as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25887
25888# Sed expression to map a string onto a valid variable name.
25889as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25890
25891
25892exec 6>&1
25893## ----------------------------------- ##
25894## Main body of $CONFIG_STATUS script. ##
25895## ----------------------------------- ##
25896_ASEOF
25897test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25898
25899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25900# Save the log message, to keep $0 and so on meaningful, and to
25901# report actual input values of CONFIG_FILES etc. instead of their
25902# values after options handling.
25903ac_log="
25904This file was extended by $as_me, which was
25905generated by GNU Autoconf 2.67. Invocation command line was
25906
25907 CONFIG_FILES = $CONFIG_FILES
25908 CONFIG_HEADERS = $CONFIG_HEADERS
25909 CONFIG_LINKS = $CONFIG_LINKS
25910 CONFIG_COMMANDS = $CONFIG_COMMANDS
25911 $ $0 $@
25912
25913on `(hostname || uname -n) 2>/dev/null | sed 1q`
25914"
25915
25916_ACEOF
25917
25918case $ac_config_files in *"
25919"*) set x $ac_config_files; shift; ac_config_files=$*;;
25920esac
25921
25922case $ac_config_headers in *"
25923"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25924esac
25925
25926
25927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25928# Files that config.status was made for.
25929config_files="$ac_config_files"
25930config_headers="$ac_config_headers"
25931config_commands="$ac_config_commands"
25932
25933_ACEOF
25934
25935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25936ac_cs_usage="\
25937\`$as_me' instantiates files and other configuration actions
25938from templates according to the current configuration. Unless the files
25939and actions are specified as TAGs, all are instantiated by default.
25940
25941Usage: $0 [OPTION]... [TAG]...
25942
25943 -h, --help print this help, then exit
25944 -V, --version print version number and configuration settings, then exit
25945 --config print configuration, then exit
25946 -q, --quiet, --silent
25947 do not print progress messages
25948 -d, --debug don't remove temporary files
25949 --recheck update $as_me by reconfiguring in the same conditions
25950 --file=FILE[:TEMPLATE]
25951 instantiate the configuration file FILE
25952 --header=FILE[:TEMPLATE]
25953 instantiate the configuration header FILE
25954
25955Configuration files:
25956$config_files
25957
25958Configuration headers:
25959$config_headers
25960
25961Configuration commands:
25962$config_commands
25963
25964Report bugs to the package provider."
25965
25966_ACEOF
25967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25968ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25969ac_cs_version="\\
25970config.status
25971configured by $0, generated by GNU Autoconf 2.67,
25972 with options \\"\$ac_cs_config\\"
25973
25974Copyright (C) 2010 Free Software Foundation, Inc.
25975This config.status script is free software; the Free Software Foundation
25976gives unlimited permission to copy, distribute and modify it."
25977
25978ac_pwd='$ac_pwd'
25979srcdir='$srcdir'
25980INSTALL='$INSTALL'
25981MKDIR_P='$MKDIR_P'
25982AWK='$AWK'
25983test -n "\$AWK" || AWK=awk
25984_ACEOF
25985
25986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25987# The default lists apply if the user does not specify any file.
25988ac_need_defaults=:
25989while test $# != 0
25990do
25991 case $1 in
25992 --*=?*)
25993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25994 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25995 ac_shift=:
25996 ;;
25997 --*=)
25998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25999 ac_optarg=
26000 ac_shift=:
26001 ;;
26002 *)
26003 ac_option=$1
26004 ac_optarg=$2
26005 ac_shift=shift
26006 ;;
26007 esac
26008
26009 case $ac_option in
26010 # Handling of the options.
26011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26012 ac_cs_recheck=: ;;
26013 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26014 $as_echo "$ac_cs_version"; exit ;;
26015 --config | --confi | --conf | --con | --co | --c )
26016 $as_echo "$ac_cs_config"; exit ;;
26017 --debug | --debu | --deb | --de | --d | -d )
26018 debug=: ;;
26019 --file | --fil | --fi | --f )
26020 $ac_shift
26021 case $ac_optarg in
26022 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26023 '') as_fn_error $? "missing file argument" ;;
26024 esac
26025 as_fn_append CONFIG_FILES " '$ac_optarg'"
26026 ac_need_defaults=false;;
26027 --header | --heade | --head | --hea )
26028 $ac_shift
26029 case $ac_optarg in
26030 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26031 esac
26032 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26033 ac_need_defaults=false;;
26034 --he | --h)
26035 # Conflict between --help and --header
26036 as_fn_error $? "ambiguous option: \`$1'
26037Try \`$0 --help' for more information.";;
26038 --help | --hel | -h )
26039 $as_echo "$ac_cs_usage"; exit ;;
26040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26041 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26042 ac_cs_silent=: ;;
26043
26044 # This is an error.
26045 -*) as_fn_error $? "unrecognized option: \`$1'
26046Try \`$0 --help' for more information." ;;
26047
26048 *) as_fn_append ac_config_targets " $1"
26049 ac_need_defaults=false ;;
26050
26051 esac
26052 shift
26053done
26054
26055ac_configure_extra_args=
26056
26057if $ac_cs_silent; then
26058 exec 6>/dev/null
26059 ac_configure_extra_args="$ac_configure_extra_args --silent"
26060fi
26061
26062_ACEOF
26063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26064if \$ac_cs_recheck; then
26065 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26066 shift
26067 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26068 CONFIG_SHELL='$SHELL'
26069 export CONFIG_SHELL
26070 exec "\$@"
26071fi
26072
26073_ACEOF
26074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26075exec 5>>config.log
26076{
26077 echo
26078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26079## Running $as_me. ##
26080_ASBOX
26081 $as_echo "$ac_log"
26082} >&5
26083
26084_ACEOF
26085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26086#
26087# INIT-COMMANDS
26088#
26089AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26090
26091
26092# The HP-UX ksh and POSIX shell print the target directory to stdout
26093# if CDPATH is set.
26094(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26095
26096sed_quote_subst='$sed_quote_subst'
26097double_quote_subst='$double_quote_subst'
26098delay_variable_subst='$delay_variable_subst'
26099macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
26100macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
26101enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
26102enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
26103pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
26104enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26105host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26106host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26107host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26108build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26109build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26110build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26111SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26112Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26113GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26114EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26115FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26116LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26117NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26118LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26119max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26120ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26121exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26122lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26123lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26124lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26125reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26126reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26127OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26128deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26129file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26130AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26131AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26132STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26133RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26134old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26135old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26136old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26137CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26138CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26139compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26140GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26141lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26142lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26143lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
26144lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26145objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26146SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26147ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26148MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26149lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26150lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26151lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26152lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26153lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26154need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26155DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26156NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26157LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26158OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26159OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26160libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26161shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26162extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26163archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26164enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26165export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26166whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26167compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26168old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26169old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26170archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26171archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26172module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26173module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26174with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26175allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26176no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26177hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26178hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26179hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26180hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26181hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26182hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26183hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26184hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26185inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26186link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26187fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26188always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26189export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26190exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26191include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26192prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26193file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26194variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26195need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26196need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26197version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26198runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26199shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26200shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26201libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26202library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26203soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26204postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26205postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26206finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26207finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26208hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26209sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26210sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26211hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26212enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26213enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26214enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26215old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26216striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26217
26218LTCC='$LTCC'
26219LTCFLAGS='$LTCFLAGS'
26220compiler='$compiler_DEFAULT'
26221
26222# Quote evaled strings.
26223for var in SED \
26224GREP \
26225EGREP \
26226FGREP \
26227LD \
26228NM \
26229LN_S \
26230lt_SP2NL \
26231lt_NL2SP \
26232reload_flag \
26233OBJDUMP \
26234deplibs_check_method \
26235file_magic_cmd \
26236AR \
26237AR_FLAGS \
26238STRIP \
26239RANLIB \
26240CC \
26241CFLAGS \
26242compiler \
26243lt_cv_sys_global_symbol_pipe \
26244lt_cv_sys_global_symbol_to_cdecl \
26245lt_cv_sys_global_symbol_to_c_name_address \
26246lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26247SHELL \
26248ECHO \
26249lt_prog_compiler_no_builtin_flag \
26250lt_prog_compiler_wl \
26251lt_prog_compiler_pic \
26252lt_prog_compiler_static \
26253lt_cv_prog_compiler_c_o \
26254need_locks \
26255DSYMUTIL \
26256NMEDIT \
26257LIPO \
26258OTOOL \
26259OTOOL64 \
26260shrext_cmds \
26261export_dynamic_flag_spec \
26262whole_archive_flag_spec \
26263compiler_needs_object \
26264with_gnu_ld \
26265allow_undefined_flag \
26266no_undefined_flag \
26267hardcode_libdir_flag_spec \
26268hardcode_libdir_flag_spec_ld \
26269hardcode_libdir_separator \
26270fix_srcfile_path \
26271exclude_expsyms \
26272include_expsyms \
26273file_list_spec \
26274variables_saved_for_relink \
26275libname_spec \
26276library_names_spec \
26277soname_spec \
26278finish_eval \
26279old_striplib \
26280striplib; do
26281 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26282 *[\\\\\\\`\\"\\\$]*)
26283 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26284 ;;
26285 *)
26286 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26287 ;;
26288 esac
26289done
26290
26291# Double-quote double-evaled strings.
26292for var in reload_cmds \
26293old_postinstall_cmds \
26294old_postuninstall_cmds \
26295old_archive_cmds \
26296extract_expsyms_cmds \
26297old_archive_from_new_cmds \
26298old_archive_from_expsyms_cmds \
26299archive_cmds \
26300archive_expsym_cmds \
26301module_cmds \
26302module_expsym_cmds \
26303export_symbols_cmds \
26304prelink_cmds \
26305postinstall_cmds \
26306postuninstall_cmds \
26307finish_cmds \
26308sys_lib_search_path_spec \
26309sys_lib_dlsearch_path_spec; do
26310 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26311 *[\\\\\\\`\\"\\\$]*)
26312 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26313 ;;
26314 *)
26315 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26316 ;;
26317 esac
26318done
26319
26320# Fix-up fallback echo if it was mangled by the above quoting rules.
26321case \$lt_ECHO in
26322*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26323 ;;
26324esac
26325
26326ac_aux_dir='$ac_aux_dir'
26327xsi_shell='$xsi_shell'
26328lt_shell_append='$lt_shell_append'
26329
26330# See if we are running on zsh, and set the options which allow our
26331# commands through without removal of \ escapes INIT.
26332if test -n "\${ZSH_VERSION+set}" ; then
26333 setopt NO_GLOB_SUBST
26334fi
26335
26336
26337 PACKAGE='$PACKAGE'
26338 VERSION='$VERSION'
26339 TIMESTAMP='$TIMESTAMP'
26340 RM='$RM'
26341 ofile='$ofile'
26342
26343
26344
26345
26346_ACEOF
26347
26348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26349
26350# Handling of arguments.
26351for ac_config_target in $ac_config_targets
26352do
26353 case $ac_config_target in
26354 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
26355 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26356 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26357 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26358 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
26359 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
26360 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
26361 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
26362 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
26363 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
26364 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
26365 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26366 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
26367 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
26368 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
26369 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26370 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
26371 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
26372 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
26373 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
26374 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
26375 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
26376 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
26377 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
26378 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
26379 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
26380 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
26381 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
26382 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
26383 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
26384 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
26385 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
26386 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
26387 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
26388 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
26389 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
26390 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
26391 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
26392 "cmd/zhack/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zhack/Makefile" ;;
26393 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
26394 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
26395 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
26396 "cmd/zstreamdump/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
26397 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
26398 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
26399 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
26400 "cmd/fsck_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
26401 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
26402 "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
c06d4368 26403 "cmd/arcstat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/arcstat/Makefile" ;;
0e3762ca
CALP
26404 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
26405 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
26406 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
26407 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
26408 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
26409 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
26410 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
26411 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26412 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
26413 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
26414 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
26415 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
26416 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
26417 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
26418 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
26419 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
26420 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
26421 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
26422 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
26423 "rpm/fedora/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/fedora/Makefile" ;;
26424 "rpm/fedora/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/zfs.spec" ;;
26425 "rpm/fedora/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/zfs-kmod.spec" ;;
26426 "rpm/fedora/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/fedora/zfs-dkms.spec" ;;
26427 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
26428 "rpm/generic/zfs.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs.spec" ;;
26429 "rpm/generic/zfs-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
26430 "rpm/generic/zfs-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
26431 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
26432 "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
26433
26434 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
26435 esac
26436done
26437
26438
26439# If the user did not use the arguments to specify the items to instantiate,
26440# then the envvar interface is used. Set only those that are not.
26441# We use the long form for the default assignment because of an extremely
26442# bizarre bug on SunOS 4.1.3.
26443if $ac_need_defaults; then
26444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26446 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26447fi
26448
26449# Have a temporary directory for convenience. Make it in the build tree
26450# simply because there is no reason against having it here, and in addition,
26451# creating and moving files from /tmp can sometimes cause problems.
26452# Hook for its removal unless debugging.
26453# Note that there is a small window in which the directory will not be cleaned:
26454# after its creation but before its name has been assigned to `$tmp'.
26455$debug ||
26456{
26457 tmp=
26458 trap 'exit_status=$?
26459 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26460' 0
26461 trap 'as_fn_exit 1' 1 2 13 15
26462}
26463# Create a (secure) tmp directory for tmp files.
26464
26465{
26466 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26467 test -n "$tmp" && test -d "$tmp"
26468} ||
26469{
26470 tmp=./conf$$-$RANDOM
26471 (umask 077 && mkdir "$tmp")
26472} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
26473
26474# Set up the scripts for CONFIG_FILES section.
26475# No need to generate them if there are no CONFIG_FILES.
26476# This happens for instance with `./config.status config.h'.
26477if test -n "$CONFIG_FILES"; then
26478
26479
26480ac_cr=`echo X | tr X '\015'`
26481# On cygwin, bash can eat \r inside `` if the user requested igncr.
26482# But we know of no other shell where ac_cr would be empty at this
26483# point, so we can use a bashism as a fallback.
26484if test "x$ac_cr" = x; then
26485 eval ac_cr=\$\'\\r\'
26486fi
26487ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26488if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26489 ac_cs_awk_cr='\\r'
26490else
26491 ac_cs_awk_cr=$ac_cr
26492fi
26493
26494echo 'BEGIN {' >"$tmp/subs1.awk" &&
26495_ACEOF
26496
26497
26498{
26499 echo "cat >conf$$subs.awk <<_ACEOF" &&
26500 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26501 echo "_ACEOF"
26502} >conf$$subs.sh ||
26503 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26504ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
26505ac_delim='%!_!# '
26506for ac_last_try in false false false false false :; do
26507 . ./conf$$subs.sh ||
26508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26509
26510 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26511 if test $ac_delim_n = $ac_delim_num; then
26512 break
26513 elif $ac_last_try; then
26514 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
26515 else
26516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26517 fi
26518done
26519rm -f conf$$subs.sh
26520
26521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26522cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26523_ACEOF
26524sed -n '
26525h
26526s/^/S["/; s/!.*/"]=/
26527p
26528g
26529s/^[^!]*!//
26530:repl
26531t repl
26532s/'"$ac_delim"'$//
26533t delim
26534:nl
26535h
26536s/\(.\{148\}\)..*/\1/
26537t more1
26538s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26539p
26540n
26541b repl
26542:more1
26543s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26544p
26545g
26546s/.\{148\}//
26547t nl
26548:delim
26549h
26550s/\(.\{148\}\)..*/\1/
26551t more2
26552s/["\\]/\\&/g; s/^/"/; s/$/"/
26553p
26554b
26555:more2
26556s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26557p
26558g
26559s/.\{148\}//
26560t delim
26561' <conf$$subs.awk | sed '
26562/^[^""]/{
26563 N
26564 s/\n//
26565}
26566' >>$CONFIG_STATUS || ac_write_fail=1
26567rm -f conf$$subs.awk
26568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26569_ACAWK
26570cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26571 for (key in S) S_is_set[key] = 1
26572 FS = "\a"
26573
26574}
26575{
26576 line = $ 0
26577 nfields = split(line, field, "@")
26578 substed = 0
26579 len = length(field[1])
26580 for (i = 2; i < nfields; i++) {
26581 key = field[i]
26582 keylen = length(key)
26583 if (S_is_set[key]) {
26584 value = S[key]
26585 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26586 len += length(value) + length(field[++i])
26587 substed = 1
26588 } else
26589 len += 1 + keylen
26590 }
26591
26592 print line
26593}
26594
26595_ACAWK
26596_ACEOF
26597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26598if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26599 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26600else
26601 cat
26602fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26603 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
26604_ACEOF
26605
26606# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
26607# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
26608# trailing colons and then remove the whole line if VPATH becomes empty
26609# (actually we leave an empty line to preserve line numbers).
26610if test "x$srcdir" = x.; then
26611 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
26612h
26613s///
26614s/^/:/
26615s/[ ]*$/:/
26616s/:\$(srcdir):/:/g
26617s/:\${srcdir}:/:/g
26618s/:@srcdir@:/:/g
26619s/^:*//
26620s/:*$//
26621x
26622s/\(=[ ]*\).*/\1/
26623G
26624s/\n//
26625s/^[^=]*=[ ]*$//
26626}'
26627fi
26628
26629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26630fi # test -n "$CONFIG_FILES"
26631
26632# Set up the scripts for CONFIG_HEADERS section.
26633# No need to generate them if there are no CONFIG_HEADERS.
26634# This happens for instance with `./config.status Makefile'.
26635if test -n "$CONFIG_HEADERS"; then
26636cat >"$tmp/defines.awk" <<\_ACAWK ||
26637BEGIN {
26638_ACEOF
26639
26640# Transform confdefs.h into an awk script `defines.awk', embedded as
26641# here-document in config.status, that substitutes the proper values into
26642# config.h.in to produce config.h.
26643
26644# Create a delimiter string that does not exist in confdefs.h, to ease
26645# handling of long lines.
26646ac_delim='%!_!# '
26647for ac_last_try in false false :; do
26648 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26649 if test -z "$ac_t"; then
26650 break
26651 elif $ac_last_try; then
26652 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
26653 else
26654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26655 fi
26656done
26657
26658# For the awk script, D is an array of macro values keyed by name,
26659# likewise P contains macro parameters if any. Preserve backslash
26660# newline sequences.
26661
26662ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26663sed -n '
26664s/.\{148\}/&'"$ac_delim"'/g
26665t rset
26666:rset
26667s/^[ ]*#[ ]*define[ ][ ]*/ /
26668t def
26669d
26670:def
26671s/\\$//
26672t bsnl
26673s/["\\]/\\&/g
26674s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26675D["\1"]=" \3"/p
26676s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26677d
26678:bsnl
26679s/["\\]/\\&/g
26680s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26681D["\1"]=" \3\\\\\\n"\\/p
26682t cont
26683s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26684t cont
26685d
26686:cont
26687n
26688s/.\{148\}/&'"$ac_delim"'/g
26689t clear
26690:clear
26691s/\\$//
26692t bsnlc
26693s/["\\]/\\&/g; s/^/"/; s/$/"/p
26694d
26695:bsnlc
26696s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26697b cont
26698' <confdefs.h | sed '
26699s/'"$ac_delim"'/"\\\
26700"/g' >>$CONFIG_STATUS || ac_write_fail=1
26701
26702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26703 for (key in D) D_is_set[key] = 1
26704 FS = "\a"
26705}
26706/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26707 line = \$ 0
26708 split(line, arg, " ")
26709 if (arg[1] == "#") {
26710 defundef = arg[2]
26711 mac1 = arg[3]
26712 } else {
26713 defundef = substr(arg[1], 2)
26714 mac1 = arg[2]
26715 }
26716 split(mac1, mac2, "(") #)
26717 macro = mac2[1]
26718 prefix = substr(line, 1, index(line, defundef) - 1)
26719 if (D_is_set[macro]) {
26720 # Preserve the white space surrounding the "#".
26721 print prefix "define", macro P[macro] D[macro]
26722 next
26723 } else {
26724 # Replace #undef with comments. This is necessary, for example,
26725 # in the case of _POSIX_SOURCE, which is predefined and required
26726 # on some systems where configure will not decide to define it.
26727 if (defundef == "undef") {
26728 print "/*", prefix defundef, macro, "*/"
26729 next
26730 }
26731 }
26732}
26733{ print }
26734_ACAWK
26735_ACEOF
26736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26737 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26738fi # test -n "$CONFIG_HEADERS"
26739
26740
26741eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26742shift
26743for ac_tag
26744do
26745 case $ac_tag in
26746 :[FHLC]) ac_mode=$ac_tag; continue;;
26747 esac
26748 case $ac_mode$ac_tag in
26749 :[FHL]*:*);;
26750 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
26751 :[FH]-) ac_tag=-:-;;
26752 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26753 esac
26754 ac_save_IFS=$IFS
26755 IFS=:
26756 set x $ac_tag
26757 IFS=$ac_save_IFS
26758 shift
26759 ac_file=$1
26760 shift
26761
26762 case $ac_mode in
26763 :L) ac_source=$1;;
26764 :[FH])
26765 ac_file_inputs=
26766 for ac_f
26767 do
26768 case $ac_f in
26769 -) ac_f="$tmp/stdin";;
26770 *) # Look for the file first in the build tree, then in the source tree
26771 # (if the path is not absolute). The absolute path cannot be DOS-style,
26772 # because $ac_f cannot contain `:'.
26773 test -f "$ac_f" ||
26774 case $ac_f in
26775 [\\/$]*) false;;
26776 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26777 esac ||
26778 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
26779 esac
26780 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26781 as_fn_append ac_file_inputs " '$ac_f'"
26782 done
26783
26784 # Let's still pretend it is `configure' which instantiates (i.e., don't
26785 # use $as_me), people would be surprised to read:
26786 # /* config.h. Generated by config.status. */
26787 configure_input='Generated from '`
26788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26789 `' by configure.'
26790 if test x"$ac_file" != x-; then
26791 configure_input="$ac_file. $configure_input"
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26793$as_echo "$as_me: creating $ac_file" >&6;}
26794 fi
26795 # Neutralize special characters interpreted by sed in replacement strings.
26796 case $configure_input in #(
26797 *\&* | *\|* | *\\* )
26798 ac_sed_conf_input=`$as_echo "$configure_input" |
26799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26800 *) ac_sed_conf_input=$configure_input;;
26801 esac
26802
26803 case $ac_tag in
26804 *:-:* | *:-) cat >"$tmp/stdin" \
26805 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26806 esac
26807 ;;
26808 esac
26809
26810 ac_dir=`$as_dirname -- "$ac_file" ||
26811$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26812 X"$ac_file" : 'X\(//\)[^/]' \| \
26813 X"$ac_file" : 'X\(//\)$' \| \
26814 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26815$as_echo X"$ac_file" |
26816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26817 s//\1/
26818 q
26819 }
26820 /^X\(\/\/\)[^/].*/{
26821 s//\1/
26822 q
26823 }
26824 /^X\(\/\/\)$/{
26825 s//\1/
26826 q
26827 }
26828 /^X\(\/\).*/{
26829 s//\1/
26830 q
26831 }
26832 s/.*/./; q'`
26833 as_dir="$ac_dir"; as_fn_mkdir_p
26834 ac_builddir=.
26835
26836case "$ac_dir" in
26837.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26838*)
26839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26840 # A ".." for each directory in $ac_dir_suffix.
26841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26842 case $ac_top_builddir_sub in
26843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26845 esac ;;
26846esac
26847ac_abs_top_builddir=$ac_pwd
26848ac_abs_builddir=$ac_pwd$ac_dir_suffix
26849# for backward compatibility:
26850ac_top_builddir=$ac_top_build_prefix
26851
26852case $srcdir in
26853 .) # We are building in place.
26854 ac_srcdir=.
26855 ac_top_srcdir=$ac_top_builddir_sub
26856 ac_abs_top_srcdir=$ac_pwd ;;
26857 [\\/]* | ?:[\\/]* ) # Absolute name.
26858 ac_srcdir=$srcdir$ac_dir_suffix;
26859 ac_top_srcdir=$srcdir
26860 ac_abs_top_srcdir=$srcdir ;;
26861 *) # Relative name.
26862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26863 ac_top_srcdir=$ac_top_build_prefix$srcdir
26864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26865esac
26866ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26867
26868
26869 case $ac_mode in
26870 :F)
26871 #
26872 # CONFIG_FILE
26873 #
26874
26875 case $INSTALL in
26876 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26877 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26878 esac
26879 ac_MKDIR_P=$MKDIR_P
26880 case $MKDIR_P in
26881 [\\/$]* | ?:[\\/]* ) ;;
26882 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26883 esac
26884_ACEOF
26885
26886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26887# If the template does not know about datarootdir, expand it.
26888# FIXME: This hack should be removed a few years after 2.60.
26889ac_datarootdir_hack=; ac_datarootdir_seen=
26890ac_sed_dataroot='
26891/datarootdir/ {
26892 p
26893 q
26894}
26895/@datadir@/p
26896/@docdir@/p
26897/@infodir@/p
26898/@localedir@/p
26899/@mandir@/p'
26900case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26901*datarootdir*) ac_datarootdir_seen=yes;;
26902*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26904$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26905_ACEOF
26906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26907 ac_datarootdir_hack='
26908 s&@datadir@&$datadir&g
26909 s&@docdir@&$docdir&g
26910 s&@infodir@&$infodir&g
26911 s&@localedir@&$localedir&g
26912 s&@mandir@&$mandir&g
26913 s&\\\${datarootdir}&$datarootdir&g' ;;
26914esac
26915_ACEOF
26916
26917# Neutralize VPATH when `$srcdir' = `.'.
26918# Shell code in configure.ac might set extrasub.
26919# FIXME: do we really want to maintain this feature?
26920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26921ac_sed_extra="$ac_vpsub
26922$extrasub
26923_ACEOF
26924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26925:t
26926/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26927s|@configure_input@|$ac_sed_conf_input|;t t
26928s&@top_builddir@&$ac_top_builddir_sub&;t t
26929s&@top_build_prefix@&$ac_top_build_prefix&;t t
26930s&@srcdir@&$ac_srcdir&;t t
26931s&@abs_srcdir@&$ac_abs_srcdir&;t t
26932s&@top_srcdir@&$ac_top_srcdir&;t t
26933s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26934s&@builddir@&$ac_builddir&;t t
26935s&@abs_builddir@&$ac_abs_builddir&;t t
26936s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26937s&@INSTALL@&$ac_INSTALL&;t t
26938s&@MKDIR_P@&$ac_MKDIR_P&;t t
26939$ac_datarootdir_hack
26940"
26941eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26943
26944test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26945 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26946 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26948which seems to be undefined. Please make sure it is defined" >&5
26949$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26950which seems to be undefined. Please make sure it is defined" >&2;}
26951
26952 rm -f "$tmp/stdin"
26953 case $ac_file in
26954 -) cat "$tmp/out" && rm -f "$tmp/out";;
26955 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26956 esac \
26957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26958 ;;
26959 :H)
26960 #
26961 # CONFIG_HEADER
26962 #
26963 if test x"$ac_file" != x-; then
26964 {
26965 $as_echo "/* $configure_input */" \
26966 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26967 } >"$tmp/config.h" \
26968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26969 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26971$as_echo "$as_me: $ac_file is unchanged" >&6;}
26972 else
26973 rm -f "$ac_file"
26974 mv "$tmp/config.h" "$ac_file" \
26975 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26976 fi
26977 else
26978 $as_echo "/* $configure_input */" \
26979 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26980 || as_fn_error $? "could not create -" "$LINENO" 5
26981 fi
26982# Compute "$ac_file"'s index in $config_headers.
26983_am_arg="$ac_file"
26984_am_stamp_count=1
26985for _am_header in $config_headers :; do
26986 case $_am_header in
26987 $_am_arg | $_am_arg:* )
26988 break ;;
26989 * )
26990 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26991 esac
26992done
26993echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26994$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26995 X"$_am_arg" : 'X\(//\)[^/]' \| \
26996 X"$_am_arg" : 'X\(//\)$' \| \
26997 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26998$as_echo X"$_am_arg" |
26999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27000 s//\1/
27001 q
27002 }
27003 /^X\(\/\/\)[^/].*/{
27004 s//\1/
27005 q
27006 }
27007 /^X\(\/\/\)$/{
27008 s//\1/
27009 q
27010 }
27011 /^X\(\/\).*/{
27012 s//\1/
27013 q
27014 }
27015 s/.*/./; q'`/stamp-h$_am_stamp_count
27016 ;;
27017
27018 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27019$as_echo "$as_me: executing $ac_file commands" >&6;}
27020 ;;
27021 esac
27022
27023
27024 case $ac_file$ac_mode in
27025 "zfs_config.h":H)
27026 (mv zfs_config.h zfs_config.h.tmp &&
27027 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
27028 rm zfs_config.h.tmp) || exit 1 ;;
27029 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27030 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27031 # are listed without --file. Let's play safe and only enable the eval
27032 # if we detect the quoting.
27033 case $CONFIG_FILES in
27034 *\'*) eval set x "$CONFIG_FILES" ;;
27035 *) set x $CONFIG_FILES ;;
27036 esac
27037 shift
27038 for mf
27039 do
27040 # Strip MF so we end up with the name of the file.
27041 mf=`echo "$mf" | sed -e 's/:.*$//'`
27042 # Check whether this is an Automake generated Makefile or not.
27043 # We used to match only the files named `Makefile.in', but
27044 # some people rename them; so instead we look at the file content.
27045 # Grep'ing the first line is not enough: some people post-process
27046 # each Makefile.in and add a new line on top of each file to say so.
27047 # Grep'ing the whole file is not good either: AIX grep has a line
27048 # limit of 2048, but all sed's we know have understand at least 4000.
27049 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27050 dirpart=`$as_dirname -- "$mf" ||
27051$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27052 X"$mf" : 'X\(//\)[^/]' \| \
27053 X"$mf" : 'X\(//\)$' \| \
27054 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27055$as_echo X"$mf" |
27056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27057 s//\1/
27058 q
27059 }
27060 /^X\(\/\/\)[^/].*/{
27061 s//\1/
27062 q
27063 }
27064 /^X\(\/\/\)$/{
27065 s//\1/
27066 q
27067 }
27068 /^X\(\/\).*/{
27069 s//\1/
27070 q
27071 }
27072 s/.*/./; q'`
27073 else
27074 continue
27075 fi
27076 # Extract the definition of DEPDIR, am__include, and am__quote
27077 # from the Makefile without running `make'.
27078 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27079 test -z "$DEPDIR" && continue
27080 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27081 test -z "am__include" && continue
27082 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27083 # When using ansi2knr, U may be empty or an underscore; expand it
27084 U=`sed -n 's/^U = //p' < "$mf"`
27085 # Find all dependency output files, they are included files with
27086 # $(DEPDIR) in their names. We invoke sed twice because it is the
27087 # simplest approach to changing $(DEPDIR) to its actual value in the
27088 # expansion.
27089 for file in `sed -n "
27090 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27091 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27092 # Make sure the directory exists.
27093 test -f "$dirpart/$file" && continue
27094 fdir=`$as_dirname -- "$file" ||
27095$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27096 X"$file" : 'X\(//\)[^/]' \| \
27097 X"$file" : 'X\(//\)$' \| \
27098 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27099$as_echo X"$file" |
27100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27101 s//\1/
27102 q
27103 }
27104 /^X\(\/\/\)[^/].*/{
27105 s//\1/
27106 q
27107 }
27108 /^X\(\/\/\)$/{
27109 s//\1/
27110 q
27111 }
27112 /^X\(\/\).*/{
27113 s//\1/
27114 q
27115 }
27116 s/.*/./; q'`
27117 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27118 # echo "creating $dirpart/$file"
27119 echo '# dummy' > "$dirpart/$file"
27120 done
27121 done
27122}
27123 ;;
27124 "libtool":C)
27125
27126 # See if we are running on zsh, and set the options which allow our
27127 # commands through without removal of \ escapes.
27128 if test -n "${ZSH_VERSION+set}" ; then
27129 setopt NO_GLOB_SUBST
27130 fi
27131
27132 cfgfile="${ofile}T"
27133 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27134 $RM "$cfgfile"
27135
27136 cat <<_LT_EOF >> "$cfgfile"
27137#! $SHELL
27138
27139# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27140# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27141# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27142# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27143#
27144# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27145# 2006, 2007, 2008 Free Software Foundation, Inc.
27146# Written by Gordon Matzigkeit, 1996
27147#
27148# This file is part of GNU Libtool.
27149#
27150# GNU Libtool is free software; you can redistribute it and/or
27151# modify it under the terms of the GNU General Public License as
27152# published by the Free Software Foundation; either version 2 of
27153# the License, or (at your option) any later version.
27154#
27155# As a special exception to the GNU General Public License,
27156# if you distribute this file as part of a program or library that
27157# is built using GNU Libtool, you may include this file under the
27158# same distribution terms that you use for the rest of that program.
27159#
27160# GNU Libtool is distributed in the hope that it will be useful,
27161# but WITHOUT ANY WARRANTY; without even the implied warranty of
27162# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27163# GNU General Public License for more details.
27164#
27165# You should have received a copy of the GNU General Public License
27166# along with GNU Libtool; see the file COPYING. If not, a copy
27167# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27168# obtained by writing to the Free Software Foundation, Inc.,
27169# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27170
27171
27172# The names of the tagged configurations supported by this script.
27173available_tags=""
27174
27175# ### BEGIN LIBTOOL CONFIG
27176
27177# Which release of libtool.m4 was used?
27178macro_version=$macro_version
27179macro_revision=$macro_revision
27180
27181# Whether or not to build shared libraries.
27182build_libtool_libs=$enable_shared
27183
27184# Whether or not to build static libraries.
27185build_old_libs=$enable_static
27186
27187# What type of objects to build.
27188pic_mode=$pic_mode
27189
27190# Whether or not to optimize for fast installation.
27191fast_install=$enable_fast_install
27192
27193# The host system.
27194host_alias=$host_alias
27195host=$host
27196host_os=$host_os
27197
27198# The build system.
27199build_alias=$build_alias
27200build=$build
27201build_os=$build_os
27202
27203# A sed program that does not truncate output.
27204SED=$lt_SED
27205
27206# Sed that helps us avoid accidentally triggering echo(1) options like -n.
27207Xsed="\$SED -e 1s/^X//"
27208
27209# A grep program that handles long lines.
27210GREP=$lt_GREP
27211
27212# An ERE matcher.
27213EGREP=$lt_EGREP
27214
27215# A literal string matcher.
27216FGREP=$lt_FGREP
27217
27218# A BSD- or MS-compatible name lister.
27219NM=$lt_NM
27220
27221# Whether we need soft or hard links.
27222LN_S=$lt_LN_S
27223
27224# What is the maximum length of a command?
27225max_cmd_len=$max_cmd_len
27226
27227# Object file suffix (normally "o").
27228objext=$ac_objext
27229
27230# Executable file suffix (normally "").
27231exeext=$exeext
27232
27233# whether the shell understands "unset".
27234lt_unset=$lt_unset
27235
27236# turn spaces into newlines.
27237SP2NL=$lt_lt_SP2NL
27238
27239# turn newlines into spaces.
27240NL2SP=$lt_lt_NL2SP
27241
27242# How to create reloadable object files.
27243reload_flag=$lt_reload_flag
27244reload_cmds=$lt_reload_cmds
27245
27246# An object symbol dumper.
27247OBJDUMP=$lt_OBJDUMP
27248
27249# Method to check whether dependent libraries are shared objects.
27250deplibs_check_method=$lt_deplibs_check_method
27251
27252# Command to use when deplibs_check_method == "file_magic".
27253file_magic_cmd=$lt_file_magic_cmd
27254
27255# The archiver.
27256AR=$lt_AR
27257AR_FLAGS=$lt_AR_FLAGS
27258
27259# A symbol stripping program.
27260STRIP=$lt_STRIP
27261
27262# Commands used to install an old-style archive.
27263RANLIB=$lt_RANLIB
27264old_postinstall_cmds=$lt_old_postinstall_cmds
27265old_postuninstall_cmds=$lt_old_postuninstall_cmds
27266
27267# A C compiler.
27268LTCC=$lt_CC
27269
27270# LTCC compiler flags.
27271LTCFLAGS=$lt_CFLAGS
27272
27273# Take the output of nm and produce a listing of raw symbols and C names.
27274global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27275
27276# Transform the output of nm in a proper C declaration.
27277global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27278
27279# Transform the output of nm in a C name address pair.
27280global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27281
27282# Transform the output of nm in a C name address pair when lib prefix is needed.
27283global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27284
27285# The name of the directory that contains temporary libtool files.
27286objdir=$objdir
27287
27288# Shell to use when invoking shell scripts.
27289SHELL=$lt_SHELL
27290
27291# An echo program that does not interpret backslashes.
27292ECHO=$lt_ECHO
27293
27294# Used to examine libraries when file_magic_cmd begins with "file".
27295MAGIC_CMD=$MAGIC_CMD
27296
27297# Must we lock files when doing compilation?
27298need_locks=$lt_need_locks
27299
27300# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27301DSYMUTIL=$lt_DSYMUTIL
27302
27303# Tool to change global to local symbols on Mac OS X.
27304NMEDIT=$lt_NMEDIT
27305
27306# Tool to manipulate fat objects and archives on Mac OS X.
27307LIPO=$lt_LIPO
27308
27309# ldd/readelf like tool for Mach-O binaries on Mac OS X.
27310OTOOL=$lt_OTOOL
27311
27312# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27313OTOOL64=$lt_OTOOL64
27314
27315# Old archive suffix (normally "a").
27316libext=$libext
27317
27318# Shared library suffix (normally ".so").
27319shrext_cmds=$lt_shrext_cmds
27320
27321# The commands to extract the exported symbol list from a shared archive.
27322extract_expsyms_cmds=$lt_extract_expsyms_cmds
27323
27324# Variables whose values should be saved in libtool wrapper scripts and
27325# restored at link time.
27326variables_saved_for_relink=$lt_variables_saved_for_relink
27327
27328# Do we need the "lib" prefix for modules?
27329need_lib_prefix=$need_lib_prefix
27330
27331# Do we need a version for libraries?
27332need_version=$need_version
27333
27334# Library versioning type.
27335version_type=$version_type
27336
27337# Shared library runtime path variable.
27338runpath_var=$runpath_var
27339
27340# Shared library path variable.
27341shlibpath_var=$shlibpath_var
27342
27343# Is shlibpath searched before the hard-coded library search path?
27344shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27345
27346# Format of library name prefix.
27347libname_spec=$lt_libname_spec
27348
27349# List of archive names. First name is the real one, the rest are links.
27350# The last name is the one that the linker finds with -lNAME
27351library_names_spec=$lt_library_names_spec
27352
27353# The coded name of the library, if different from the real name.
27354soname_spec=$lt_soname_spec
27355
27356# Command to use after installation of a shared archive.
27357postinstall_cmds=$lt_postinstall_cmds
27358
27359# Command to use after uninstallation of a shared archive.
27360postuninstall_cmds=$lt_postuninstall_cmds
27361
27362# Commands used to finish a libtool library installation in a directory.
27363finish_cmds=$lt_finish_cmds
27364
27365# As "finish_cmds", except a single script fragment to be evaled but
27366# not shown.
27367finish_eval=$lt_finish_eval
27368
27369# Whether we should hardcode library paths into libraries.
27370hardcode_into_libs=$hardcode_into_libs
27371
27372# Compile-time system search path for libraries.
27373sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27374
27375# Run-time system search path for libraries.
27376sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27377
27378# Whether dlopen is supported.
27379dlopen_support=$enable_dlopen
27380
27381# Whether dlopen of programs is supported.
27382dlopen_self=$enable_dlopen_self
27383
27384# Whether dlopen of statically linked programs is supported.
27385dlopen_self_static=$enable_dlopen_self_static
27386
27387# Commands to strip libraries.
27388old_striplib=$lt_old_striplib
27389striplib=$lt_striplib
27390
27391
27392# The linker used to build libraries.
27393LD=$lt_LD
27394
27395# Commands used to build an old-style archive.
27396old_archive_cmds=$lt_old_archive_cmds
27397
27398# A language specific compiler.
27399CC=$lt_compiler
27400
27401# Is the compiler the GNU compiler?
27402with_gcc=$GCC
27403
27404# Compiler flag to turn off builtin functions.
27405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27406
27407# How to pass a linker flag through the compiler.
27408wl=$lt_lt_prog_compiler_wl
27409
27410# Additional compiler flags for building library objects.
27411pic_flag=$lt_lt_prog_compiler_pic
27412
27413# Compiler flag to prevent dynamic linking.
27414link_static_flag=$lt_lt_prog_compiler_static
27415
27416# Does compiler simultaneously support -c and -o options?
27417compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27418
27419# Whether or not to add -lc for building shared libraries.
27420build_libtool_need_lc=$archive_cmds_need_lc
27421
27422# Whether or not to disallow shared libs when runtime libs are static.
27423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27424
27425# Compiler flag to allow reflexive dlopens.
27426export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27427
27428# Compiler flag to generate shared objects directly from archives.
27429whole_archive_flag_spec=$lt_whole_archive_flag_spec
27430
27431# Whether the compiler copes with passing no objects directly.
27432compiler_needs_object=$lt_compiler_needs_object
27433
27434# Create an old-style archive from a shared archive.
27435old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27436
27437# Create a temporary old-style archive to link instead of a shared archive.
27438old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27439
27440# Commands used to build a shared archive.
27441archive_cmds=$lt_archive_cmds
27442archive_expsym_cmds=$lt_archive_expsym_cmds
27443
27444# Commands used to build a loadable module if different from building
27445# a shared archive.
27446module_cmds=$lt_module_cmds
27447module_expsym_cmds=$lt_module_expsym_cmds
27448
27449# Whether we are building with GNU ld or not.
27450with_gnu_ld=$lt_with_gnu_ld
27451
27452# Flag that allows shared libraries with undefined symbols to be built.
27453allow_undefined_flag=$lt_allow_undefined_flag
27454
27455# Flag that enforces no undefined symbols.
27456no_undefined_flag=$lt_no_undefined_flag
27457
27458# Flag to hardcode \$libdir into a binary during linking.
27459# This must work even if \$libdir does not exist
27460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27461
27462# If ld is used when linking, flag to hardcode \$libdir into a binary
27463# during linking. This must work even if \$libdir does not exist.
27464hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27465
27466# Whether we need a single "-rpath" flag with a separated argument.
27467hardcode_libdir_separator=$lt_hardcode_libdir_separator
27468
27469# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27470# DIR into the resulting binary.
27471hardcode_direct=$hardcode_direct
27472
27473# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27474# DIR into the resulting binary and the resulting library dependency is
27475# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27476# library is relocated.
27477hardcode_direct_absolute=$hardcode_direct_absolute
27478
27479# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27480# into the resulting binary.
27481hardcode_minus_L=$hardcode_minus_L
27482
27483# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27484# into the resulting binary.
27485hardcode_shlibpath_var=$hardcode_shlibpath_var
27486
27487# Set to "yes" if building a shared library automatically hardcodes DIR
27488# into the library and all subsequent libraries and executables linked
27489# against it.
27490hardcode_automatic=$hardcode_automatic
27491
27492# Set to yes if linker adds runtime paths of dependent libraries
27493# to runtime path list.
27494inherit_rpath=$inherit_rpath
27495
27496# Whether libtool must link a program against all its dependency libraries.
27497link_all_deplibs=$link_all_deplibs
27498
27499# Fix the shell variable \$srcfile for the compiler.
27500fix_srcfile_path=$lt_fix_srcfile_path
27501
27502# Set to "yes" if exported symbols are required.
27503always_export_symbols=$always_export_symbols
27504
27505# The commands to list exported symbols.
27506export_symbols_cmds=$lt_export_symbols_cmds
27507
27508# Symbols that should not be listed in the preloaded symbols.
27509exclude_expsyms=$lt_exclude_expsyms
27510
27511# Symbols that must always be exported.
27512include_expsyms=$lt_include_expsyms
27513
27514# Commands necessary for linking programs (against libraries) with templates.
27515prelink_cmds=$lt_prelink_cmds
27516
27517# Specify filename containing input files.
27518file_list_spec=$lt_file_list_spec
27519
27520# How to hardcode a shared library path into an executable.
27521hardcode_action=$hardcode_action
27522
27523# ### END LIBTOOL CONFIG
27524
27525_LT_EOF
27526
27527 case $host_os in
27528 aix3*)
27529 cat <<\_LT_EOF >> "$cfgfile"
27530# AIX sometimes has problems with the GCC collect2 program. For some
27531# reason, if we set the COLLECT_NAMES environment variable, the problems
27532# vanish in a puff of smoke.
27533if test "X${COLLECT_NAMES+set}" != Xset; then
27534 COLLECT_NAMES=
27535 export COLLECT_NAMES
27536fi
27537_LT_EOF
27538 ;;
27539 esac
27540
27541
27542ltmain="$ac_aux_dir/ltmain.sh"
27543
27544
27545 # We use sed instead of cat because bash on DJGPP gets confused if
27546 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27547 # text mode, it properly converts lines to CR/LF. This bash problem
27548 # is reportedly fixed, but why not run on old versions too?
27549 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27550 || (rm -f "$cfgfile"; exit 1)
27551
27552 case $xsi_shell in
27553 yes)
27554 cat << \_LT_EOF >> "$cfgfile"
27555
27556# func_dirname file append nondir_replacement
27557# Compute the dirname of FILE. If nonempty, add APPEND to the result,
27558# otherwise set result to NONDIR_REPLACEMENT.
27559func_dirname ()
27560{
27561 case ${1} in
27562 */*) func_dirname_result="${1%/*}${2}" ;;
27563 * ) func_dirname_result="${3}" ;;
27564 esac
27565}
27566
27567# func_basename file
27568func_basename ()
27569{
27570 func_basename_result="${1##*/}"
27571}
27572
27573# func_dirname_and_basename file append nondir_replacement
27574# perform func_basename and func_dirname in a single function
27575# call:
27576# dirname: Compute the dirname of FILE. If nonempty,
27577# add APPEND to the result, otherwise set result
27578# to NONDIR_REPLACEMENT.
27579# value returned in "$func_dirname_result"
27580# basename: Compute filename of FILE.
27581# value retuned in "$func_basename_result"
27582# Implementation must be kept synchronized with func_dirname
27583# and func_basename. For efficiency, we do not delegate to
27584# those functions but instead duplicate the functionality here.
27585func_dirname_and_basename ()
27586{
27587 case ${1} in
27588 */*) func_dirname_result="${1%/*}${2}" ;;
27589 * ) func_dirname_result="${3}" ;;
27590 esac
27591 func_basename_result="${1##*/}"
27592}
27593
27594# func_stripname prefix suffix name
27595# strip PREFIX and SUFFIX off of NAME.
27596# PREFIX and SUFFIX must not contain globbing or regex special
27597# characters, hashes, percent signs, but SUFFIX may contain a leading
27598# dot (in which case that matches only a dot).
27599func_stripname ()
27600{
27601 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27602 # positional parameters, so assign one to ordinary parameter first.
27603 func_stripname_result=${3}
27604 func_stripname_result=${func_stripname_result#"${1}"}
27605 func_stripname_result=${func_stripname_result%"${2}"}
27606}
27607
27608# func_opt_split
27609func_opt_split ()
27610{
27611 func_opt_split_opt=${1%%=*}
27612 func_opt_split_arg=${1#*=}
27613}
27614
27615# func_lo2o object
27616func_lo2o ()
27617{
27618 case ${1} in
27619 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27620 *) func_lo2o_result=${1} ;;
27621 esac
27622}
27623
27624# func_xform libobj-or-source
27625func_xform ()
27626{
27627 func_xform_result=${1%.*}.lo
27628}
27629
27630# func_arith arithmetic-term...
27631func_arith ()
27632{
27633 func_arith_result=$(( $* ))
27634}
27635
27636# func_len string
27637# STRING may not start with a hyphen.
27638func_len ()
27639{
27640 func_len_result=${#1}
27641}
27642
27643_LT_EOF
27644 ;;
27645 *) # Bourne compatible functions.
27646 cat << \_LT_EOF >> "$cfgfile"
27647
27648# func_dirname file append nondir_replacement
27649# Compute the dirname of FILE. If nonempty, add APPEND to the result,
27650# otherwise set result to NONDIR_REPLACEMENT.
27651func_dirname ()
27652{
27653 # Extract subdirectory from the argument.
27654 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27655 if test "X$func_dirname_result" = "X${1}"; then
27656 func_dirname_result="${3}"
27657 else
27658 func_dirname_result="$func_dirname_result${2}"
27659 fi
27660}
27661
27662# func_basename file
27663func_basename ()
27664{
27665 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27666}
27667
27668
27669# func_stripname prefix suffix name
27670# strip PREFIX and SUFFIX off of NAME.
27671# PREFIX and SUFFIX must not contain globbing or regex special
27672# characters, hashes, percent signs, but SUFFIX may contain a leading
27673# dot (in which case that matches only a dot).
27674# func_strip_suffix prefix name
27675func_stripname ()
27676{
27677 case ${2} in
27678 .*) func_stripname_result=`$ECHO "X${3}" \
27679 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27680 *) func_stripname_result=`$ECHO "X${3}" \
27681 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27682 esac
27683}
27684
27685# sed scripts:
27686my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27687my_sed_long_arg='1s/^-[^=]*=//'
27688
27689# func_opt_split
27690func_opt_split ()
27691{
27692 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27693 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27694}
27695
27696# func_lo2o object
27697func_lo2o ()
27698{
27699 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27700}
27701
27702# func_xform libobj-or-source
27703func_xform ()
27704{
27705 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27706}
27707
27708# func_arith arithmetic-term...
27709func_arith ()
27710{
27711 func_arith_result=`expr "$@"`
27712}
27713
27714# func_len string
27715# STRING may not start with a hyphen.
27716func_len ()
27717{
27718 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27719}
27720
27721_LT_EOF
27722esac
27723
27724case $lt_shell_append in
27725 yes)
27726 cat << \_LT_EOF >> "$cfgfile"
27727
27728# func_append var value
27729# Append VALUE to the end of shell variable VAR.
27730func_append ()
27731{
27732 eval "$1+=\$2"
27733}
27734_LT_EOF
27735 ;;
27736 *)
27737 cat << \_LT_EOF >> "$cfgfile"
27738
27739# func_append var value
27740# Append VALUE to the end of shell variable VAR.
27741func_append ()
27742{
27743 eval "$1=\$$1\$2"
27744}
27745
27746_LT_EOF
27747 ;;
27748 esac
27749
27750
27751 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27752 || (rm -f "$cfgfile"; exit 1)
27753
27754 mv -f "$cfgfile" "$ofile" ||
27755 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27756 chmod +x "$ofile"
27757
27758 ;;
27759
27760 esac
27761done # for ac_tag
27762
27763
27764as_fn_exit 0
27765_ACEOF
27766ac_clean_files=$ac_clean_files_save
27767
27768test $ac_write_fail = 0 ||
27769 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
27770
27771
27772# configure is writing to config.log, and then calls config.status.
27773# config.status does its own redirection, appending to config.log.
27774# Unfortunately, on DOS this fails, as config.log is still kept open
27775# by configure, so config.status won't be able to write to it; its
27776# output is simply discarded. So we exec the FD to /dev/null,
27777# effectively closing config.log, so it can be properly (re)opened and
27778# appended to by config.status. When coming back to configure, we
27779# need to make the FD available again.
27780if test "$no_create" != yes; then
27781 ac_cs_success=:
27782 ac_config_status_args=
27783 test "$silent" = yes &&
27784 ac_config_status_args="$ac_config_status_args --quiet"
27785 exec 5>/dev/null
27786 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27787 exec 5>>config.log
27788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27789 # would make configure fail if this is the last instruction.
27790 $ac_cs_success || as_fn_exit 1
27791fi
27792if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27794$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27795fi
27796