]> git.proxmox.com Git - mirror_zfs.git/blame - configure
Add --enable-debug-dmu-tx configure option
[mirror_zfs.git] / configure
CommitLineData
e70e591c
BB
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604$*
605_LT_EOF
606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764# include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769# include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
1c5de20a 790DEBUG_DMU_TX
4b787d75 791DEBUG_ZFS
e70e591c
BB
792DEBUG_STACKFLAGS
793DEBUG_CFLAGS
794CONFIG_KERNEL_FALSE
795CONFIG_KERNEL_TRUE
796CONFIG_USER_FALSE
797CONFIG_USER_TRUE
798FRAME_LARGER_THAN
b3259b6a 799LIBSELINUX
e70e591c
BB
800LIBBLKID
801LIBUUID
802ZLIB
de0a1c09
BB
803udevruledir
804udevdir
e70e591c
BB
805KERNELCPPFLAGS
806KERNELMAKE_PARAMS
807SPL_SYMBOLS
808SPL_VERSION
809SPL_OBJ
810SPL
811LINUX_SYMBOLS
812LINUX_VERSION
813LINUX_OBJ
814LINUX
2e08aedb 815NO_UNUSED_BUT_SET_VARIABLE
e70e591c
BB
816ZFS_CONFIG
817TARGET_ASM_DIR
6ba3b446
PS
818MAKEPKG_VERSION
819MAKEPKG
820HAVE_MAKEPKG
821PACMAN_VERSION
822PACMAN
823HAVE_PACMAN
e70e591c
BB
824ALIEN_VERSION
825ALIEN
826HAVE_ALIEN
827DPKGBUILD_VERSION
828DPKGBUILD
829HAVE_DPKGBUILD
830DPKG_VERSION
831DPKG
832HAVE_DPKG
833RPMBUILD_VERSION
834RPMBUILD
835HAVE_RPMBUILD
836RPM_VERSION
837RPM
838HAVE_RPM
58d956b0
PS
839DEFAULT_INIT_SCRIPT
840DEFAULT_INIT_DIR
841DEFAULT_PACKAGE
842VENDOR
e70e591c
BB
843am__fastdepCCAS_FALSE
844am__fastdepCCAS_TRUE
845CCASDEPMODE
846CCASFLAGS
847CCAS
848CPP
849OTOOL64
850OTOOL
851LIPO
852NMEDIT
853DSYMUTIL
854lt_ECHO
855RANLIB
856AR
857OBJDUMP
858LN_S
859NM
860ac_ct_DUMPBIN
861DUMPBIN
862LD
863FGREP
864EGREP
865GREP
866SED
867LIBTOOL
868am__fastdepCC_FALSE
869am__fastdepCC_TRUE
870CCDEPMODE
871AMDEPBACKSLASH
872AMDEP_FALSE
873AMDEP_TRUE
874am__quote
875am__include
876DEPDIR
877OBJEXT
878EXEEXT
879ac_ct_CC
880CPPFLAGS
881LDFLAGS
882CFLAGS
883CC
884am__untar
885am__tar
886AMTAR
887am__leading_dot
888SET_MAKE
889AWK
890mkdir_p
891MKDIR_P
892INSTALL_STRIP_PROGRAM
893STRIP
894install_sh
895MAKEINFO
896AUTOHEADER
897AUTOMAKE
898AUTOCONF
899ACLOCAL
900VERSION
901PACKAGE
902CYGPATH_W
903am__isrc
904INSTALL_DATA
905INSTALL_SCRIPT
906INSTALL_PROGRAM
907AM_BACKSLASH
908AM_DEFAULT_VERBOSITY
909MAINT
910MAINTAINER_MODE_FALSE
911MAINTAINER_MODE_TRUE
912target_os
913target_vendor
914target_cpu
915target
916host_os
917host_vendor
918host_cpu
919host
920build_os
921build_vendor
922build_cpu
923build
924ZFS_META_LT_AGE
925ZFS_META_LT_REVISION
926ZFS_META_LT_CURRENT
927ZFS_META_AUTHOR
928ZFS_META_DATA
929ZFS_META_ALIAS
930ZFS_META_LICENSE
931ZFS_META_RELEASE
932ZFS_META_VERSION
933ZFS_META_NAME
934target_alias
935host_alias
936build_alias
937LIBS
938ECHO_T
939ECHO_N
940ECHO_C
941DEFS
942mandir
943localedir
944libdir
945psdir
946pdfdir
947dvidir
948htmldir
949infodir
950docdir
951oldincludedir
952includedir
953localstatedir
954sharedstatedir
955sysconfdir
956datadir
957datarootdir
958libexecdir
959sbindir
960bindir
961program_transform_name
962prefix
963exec_prefix
964PACKAGE_BUGREPORT
965PACKAGE_STRING
966PACKAGE_VERSION
967PACKAGE_TARNAME
968PACKAGE_NAME
969PATH_SEPARATOR
970SHELL'
971ac_subst_files=''
972ac_user_opts='
973enable_option_checking
974enable_maintainer_mode
975enable_silent_rules
976enable_dependency_tracking
977enable_shared
978enable_static
979with_pic
980enable_fast_install
981with_gnu_ld
982enable_libtool_lock
983with_config
984with_linux
985with_linux_obj
986with_spl
987with_spl_obj
de0a1c09
BB
988with_udevdir
989with_udevruledir
e70e591c 990with_blkid
b3259b6a 991with_selinux
e70e591c 992enable_debug
1c5de20a 993enable_debug_dmu_tx
e70e591c
BB
994'
995 ac_precious_vars='build_alias
996host_alias
997target_alias
998CC
999CFLAGS
1000LDFLAGS
1001LIBS
1002CPPFLAGS
1003CPP
1004CCAS
1005CCASFLAGS'
1006
1007
1008# Initialize some variables set by options.
1009ac_init_help=
1010ac_init_version=false
1011ac_unrecognized_opts=
1012ac_unrecognized_sep=
1013# The variables have the same names as the options, with
1014# dashes changed to underlines.
1015cache_file=/dev/null
1016exec_prefix=NONE
1017no_create=
1018no_recursion=
1019prefix=NONE
1020program_prefix=NONE
1021program_suffix=NONE
1022program_transform_name=s,x,x,
1023silent=
1024site=
1025srcdir=
1026verbose=
1027x_includes=NONE
1028x_libraries=NONE
1029
1030# Installation directory options.
1031# These are left unexpanded so users can "make install exec_prefix=/foo"
1032# and all the variables that are supposed to be based on exec_prefix
1033# by default will actually change.
1034# Use braces instead of parens because sh, perl, etc. also accept them.
1035# (The list follows the same order as the GNU Coding Standards.)
1036bindir='${exec_prefix}/bin'
1037sbindir='${exec_prefix}/sbin'
1038libexecdir='${exec_prefix}/libexec'
1039datarootdir='${prefix}/share'
1040datadir='${datarootdir}'
1041sysconfdir='${prefix}/etc'
1042sharedstatedir='${prefix}/com'
1043localstatedir='${prefix}/var'
1044includedir='${prefix}/include'
1045oldincludedir='/usr/include'
1046docdir='${datarootdir}/doc/${PACKAGE}'
1047infodir='${datarootdir}/info'
1048htmldir='${docdir}'
1049dvidir='${docdir}'
1050pdfdir='${docdir}'
1051psdir='${docdir}'
1052libdir='${exec_prefix}/lib'
1053localedir='${datarootdir}/locale'
1054mandir='${datarootdir}/man'
1055
1056ac_prev=
1057ac_dashdash=
1058for ac_option
1059do
1060 # If the previous option needs an argument, assign it.
1061 if test -n "$ac_prev"; then
1062 eval $ac_prev=\$ac_option
1063 ac_prev=
1064 continue
1065 fi
1066
1067 case $ac_option in
1068 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069 *) ac_optarg=yes ;;
1070 esac
1071
1072 # Accept the important Cygnus configure options, so we can diagnose typos.
1073
1074 case $ac_dashdash$ac_option in
1075 --)
1076 ac_dashdash=yes ;;
1077
1078 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1079 ac_prev=bindir ;;
1080 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1081 bindir=$ac_optarg ;;
1082
1083 -build | --build | --buil | --bui | --bu)
1084 ac_prev=build_alias ;;
1085 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1086 build_alias=$ac_optarg ;;
1087
1088 -cache-file | --cache-file | --cache-fil | --cache-fi \
1089 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1090 ac_prev=cache_file ;;
1091 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1092 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1093 cache_file=$ac_optarg ;;
1094
1095 --config-cache | -C)
1096 cache_file=config.cache ;;
1097
1098 -datadir | --datadir | --datadi | --datad)
1099 ac_prev=datadir ;;
1100 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1101 datadir=$ac_optarg ;;
1102
1103 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1104 | --dataroo | --dataro | --datar)
1105 ac_prev=datarootdir ;;
1106 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1107 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1108 datarootdir=$ac_optarg ;;
1109
1110 -disable-* | --disable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120"enable_$ac_useropt"
1121"*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval enable_$ac_useropt=no ;;
1126
1127 -docdir | --docdir | --docdi | --doc | --do)
1128 ac_prev=docdir ;;
1129 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130 docdir=$ac_optarg ;;
1131
1132 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133 ac_prev=dvidir ;;
1134 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135 dvidir=$ac_optarg ;;
1136
1137 -enable-* | --enable-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147"enable_$ac_useropt"
1148"*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval enable_$ac_useropt=\$ac_optarg ;;
1153
1154 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1155 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1156 | --exec | --exe | --ex)
1157 ac_prev=exec_prefix ;;
1158 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1159 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1160 | --exec=* | --exe=* | --ex=*)
1161 exec_prefix=$ac_optarg ;;
1162
1163 -gas | --gas | --ga | --g)
1164 # Obsolete; use --with-gas.
1165 with_gas=yes ;;
1166
1167 -help | --help | --hel | --he | -h)
1168 ac_init_help=long ;;
1169 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1170 ac_init_help=recursive ;;
1171 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1172 ac_init_help=short ;;
1173
1174 -host | --host | --hos | --ho)
1175 ac_prev=host_alias ;;
1176 -host=* | --host=* | --hos=* | --ho=*)
1177 host_alias=$ac_optarg ;;
1178
1179 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1180 ac_prev=htmldir ;;
1181 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1182 | --ht=*)
1183 htmldir=$ac_optarg ;;
1184
1185 -includedir | --includedir | --includedi | --included | --include \
1186 | --includ | --inclu | --incl | --inc)
1187 ac_prev=includedir ;;
1188 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1189 | --includ=* | --inclu=* | --incl=* | --inc=*)
1190 includedir=$ac_optarg ;;
1191
1192 -infodir | --infodir | --infodi | --infod | --info | --inf)
1193 ac_prev=infodir ;;
1194 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1195 infodir=$ac_optarg ;;
1196
1197 -libdir | --libdir | --libdi | --libd)
1198 ac_prev=libdir ;;
1199 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1200 libdir=$ac_optarg ;;
1201
1202 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1203 | --libexe | --libex | --libe)
1204 ac_prev=libexecdir ;;
1205 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1206 | --libexe=* | --libex=* | --libe=*)
1207 libexecdir=$ac_optarg ;;
1208
1209 -localedir | --localedir | --localedi | --localed | --locale)
1210 ac_prev=localedir ;;
1211 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1212 localedir=$ac_optarg ;;
1213
1214 -localstatedir | --localstatedir | --localstatedi | --localstated \
1215 | --localstate | --localstat | --localsta | --localst | --locals)
1216 ac_prev=localstatedir ;;
1217 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1218 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1219 localstatedir=$ac_optarg ;;
1220
1221 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1222 ac_prev=mandir ;;
1223 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1224 mandir=$ac_optarg ;;
1225
1226 -nfp | --nfp | --nf)
1227 # Obsolete; use --without-fp.
1228 with_fp=no ;;
1229
1230 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1231 | --no-cr | --no-c | -n)
1232 no_create=yes ;;
1233
1234 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1235 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1236 no_recursion=yes ;;
1237
1238 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1239 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1240 | --oldin | --oldi | --old | --ol | --o)
1241 ac_prev=oldincludedir ;;
1242 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1243 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1244 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1245 oldincludedir=$ac_optarg ;;
1246
1247 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1248 ac_prev=prefix ;;
1249 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1250 prefix=$ac_optarg ;;
1251
1252 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1253 | --program-pre | --program-pr | --program-p)
1254 ac_prev=program_prefix ;;
1255 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1256 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1257 program_prefix=$ac_optarg ;;
1258
1259 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1260 | --program-suf | --program-su | --program-s)
1261 ac_prev=program_suffix ;;
1262 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1263 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1264 program_suffix=$ac_optarg ;;
1265
1266 -program-transform-name | --program-transform-name \
1267 | --program-transform-nam | --program-transform-na \
1268 | --program-transform-n | --program-transform- \
1269 | --program-transform | --program-transfor \
1270 | --program-transfo | --program-transf \
1271 | --program-trans | --program-tran \
1272 | --progr-tra | --program-tr | --program-t)
1273 ac_prev=program_transform_name ;;
1274 -program-transform-name=* | --program-transform-name=* \
1275 | --program-transform-nam=* | --program-transform-na=* \
1276 | --program-transform-n=* | --program-transform-=* \
1277 | --program-transform=* | --program-transfor=* \
1278 | --program-transfo=* | --program-transf=* \
1279 | --program-trans=* | --program-tran=* \
1280 | --progr-tra=* | --program-tr=* | --program-t=*)
1281 program_transform_name=$ac_optarg ;;
1282
1283 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1284 ac_prev=pdfdir ;;
1285 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1286 pdfdir=$ac_optarg ;;
1287
1288 -psdir | --psdir | --psdi | --psd | --ps)
1289 ac_prev=psdir ;;
1290 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1291 psdir=$ac_optarg ;;
1292
1293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294 | -silent | --silent | --silen | --sile | --sil)
1295 silent=yes ;;
1296
1297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1298 ac_prev=sbindir ;;
1299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1300 | --sbi=* | --sb=*)
1301 sbindir=$ac_optarg ;;
1302
1303 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1305 | --sharedst | --shareds | --shared | --share | --shar \
1306 | --sha | --sh)
1307 ac_prev=sharedstatedir ;;
1308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1311 | --sha=* | --sh=*)
1312 sharedstatedir=$ac_optarg ;;
1313
1314 -site | --site | --sit)
1315 ac_prev=site ;;
1316 -site=* | --site=* | --sit=*)
1317 site=$ac_optarg ;;
1318
1319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1320 ac_prev=srcdir ;;
1321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1322 srcdir=$ac_optarg ;;
1323
1324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1325 | --syscon | --sysco | --sysc | --sys | --sy)
1326 ac_prev=sysconfdir ;;
1327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1329 sysconfdir=$ac_optarg ;;
1330
1331 -target | --target | --targe | --targ | --tar | --ta | --t)
1332 ac_prev=target_alias ;;
1333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1334 target_alias=$ac_optarg ;;
1335
1336 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1337 verbose=yes ;;
1338
1339 -version | --version | --versio | --versi | --vers | -V)
1340 ac_init_version=: ;;
1341
1342 -with-* | --with-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1347 { (exit 1); exit 1; }; }
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1351 *"
1352"with_$ac_useropt"
1353"*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=\$ac_optarg ;;
1358
1359 -without-* | --without-*)
1360 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1364 { (exit 1); exit 1; }; }
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1368 *"
1369"with_$ac_useropt"
1370"*) ;;
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1373 esac
1374 eval with_$ac_useropt=no ;;
1375
1376 --x)
1377 # Obsolete; use --with-x.
1378 with_x=yes ;;
1379
1380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1381 | --x-incl | --x-inc | --x-in | --x-i)
1382 ac_prev=x_includes ;;
1383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1385 x_includes=$ac_optarg ;;
1386
1387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1389 ac_prev=x_libraries ;;
1390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1392 x_libraries=$ac_optarg ;;
1393
1394 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1395Try \`$0 --help' for more information." >&2
1396 { (exit 1); exit 1; }; }
1397 ;;
1398
1399 *=*)
1400 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1403 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1404 { (exit 1); exit 1; }; }
1405 eval $ac_envvar=\$ac_optarg
1406 export $ac_envvar ;;
1407
1408 *)
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1414 ;;
1415
1416 esac
1417done
1418
1419if test -n "$ac_prev"; then
1420 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1421 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1422 { (exit 1); exit 1; }; }
1423fi
1424
1425if test -n "$ac_unrecognized_opts"; then
1426 case $enable_option_checking in
1427 no) ;;
1428 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1429 { (exit 1); exit 1; }; } ;;
1430 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1431 esac
1432fi
1433
1434# Check all directory arguments for consistency.
1435for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1436 datadir sysconfdir sharedstatedir localstatedir includedir \
1437 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1438 libdir localedir mandir
1439do
1440 eval ac_val=\$$ac_var
1441 # Remove trailing slashes.
1442 case $ac_val in
1443 */ )
1444 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1445 eval $ac_var=\$ac_val;;
1446 esac
1447 # Be sure to have absolute directory names.
1448 case $ac_val in
1449 [\\/$]* | ?:[\\/]* ) continue;;
1450 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1451 esac
1452 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1453 { (exit 1); exit 1; }; }
1454done
1455
1456# There might be people who depend on the old broken behavior: `$host'
1457# used to hold the argument of --host etc.
1458# FIXME: To remove some day.
1459build=$build_alias
1460host=$host_alias
1461target=$target_alias
1462
1463# FIXME: To remove some day.
1464if test "x$host_alias" != x; then
1465 if test "x$build_alias" = x; then
1466 cross_compiling=maybe
1467 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1468 If a cross compiler is detected then cross compile mode will be used." >&2
1469 elif test "x$build_alias" != "x$host_alias"; then
1470 cross_compiling=yes
1471 fi
1472fi
1473
1474ac_tool_prefix=
1475test -n "$host_alias" && ac_tool_prefix=$host_alias-
1476
1477test "$silent" = yes && exec 6>/dev/null
1478
1479
1480ac_pwd=`pwd` && test -n "$ac_pwd" &&
1481ac_ls_di=`ls -di .` &&
1482ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1483 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1484 { (exit 1); exit 1; }; }
1485test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1486 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1487 { (exit 1); exit 1; }; }
1488
1489
1490# Find the source files, if location was not specified.
1491if test -z "$srcdir"; then
1492 ac_srcdir_defaulted=yes
1493 # Try the directory containing this script, then the parent directory.
1494 ac_confdir=`$as_dirname -- "$as_myself" ||
1495$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496 X"$as_myself" : 'X\(//\)[^/]' \| \
1497 X"$as_myself" : 'X\(//\)$' \| \
1498 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499$as_echo X"$as_myself" |
1500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501 s//\1/
1502 q
1503 }
1504 /^X\(\/\/\)[^/].*/{
1505 s//\1/
1506 q
1507 }
1508 /^X\(\/\/\)$/{
1509 s//\1/
1510 q
1511 }
1512 /^X\(\/\).*/{
1513 s//\1/
1514 q
1515 }
1516 s/.*/./; q'`
1517 srcdir=$ac_confdir
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1519 srcdir=..
1520 fi
1521else
1522 ac_srcdir_defaulted=no
1523fi
1524if test ! -r "$srcdir/$ac_unique_file"; then
1525 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1526 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1527 { (exit 1); exit 1; }; }
1528fi
1529ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1530ac_abs_confdir=`(
1531 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1532 { (exit 1); exit 1; }; }
1533 pwd)`
1534# When building in place, set srcdir=.
1535if test "$ac_abs_confdir" = "$ac_pwd"; then
1536 srcdir=.
1537fi
1538# Remove unnecessary trailing slashes from srcdir.
1539# Double slashes in file names in object file debugging info
1540# mess up M-x gdb in Emacs.
1541case $srcdir in
1542*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1543esac
1544for ac_var in $ac_precious_vars; do
1545 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1546 eval ac_env_${ac_var}_value=\$${ac_var}
1547 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1548 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1549done
1550
1551#
1552# Report the --help message.
1553#
1554if test "$ac_init_help" = "long"; then
1555 # Omit some internal or obsolete options to make the list less imposing.
1556 # This message is too long to be a string in the A/UX 3.1 sh.
1557 cat <<_ACEOF
1558\`configure' configures this package to adapt to many kinds of systems.
1559
1560Usage: $0 [OPTION]... [VAR=VALUE]...
1561
1562To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563VAR=VALUE. See below for descriptions of some of the useful variables.
1564
1565Defaults for the options are specified in brackets.
1566
1567Configuration:
1568 -h, --help display this help and exit
1569 --help=short display options specific to this package
1570 --help=recursive display the short help of all the included packages
1571 -V, --version display version information and exit
1572 -q, --quiet, --silent do not print \`checking...' messages
1573 --cache-file=FILE cache test results in FILE [disabled]
1574 -C, --config-cache alias for \`--cache-file=config.cache'
1575 -n, --no-create do not create output files
1576 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1577
1578Installation directories:
1579 --prefix=PREFIX install architecture-independent files in PREFIX
1580 [$ac_default_prefix]
1581 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1582 [PREFIX]
1583
1584By default, \`make install' will install all the files in
1585\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1586an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587for instance \`--prefix=\$HOME'.
1588
1589For better control, use the options below.
1590
1591Fine tuning of the installation directories:
1592 --bindir=DIR user executables [EPREFIX/bin]
1593 --sbindir=DIR system admin executables [EPREFIX/sbin]
1594 --libexecdir=DIR program executables [EPREFIX/libexec]
1595 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1596 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1597 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1598 --libdir=DIR object code libraries [EPREFIX/lib]
1599 --includedir=DIR C header files [PREFIX/include]
1600 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1601 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1602 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1603 --infodir=DIR info documentation [DATAROOTDIR/info]
1604 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1605 --mandir=DIR man documentation [DATAROOTDIR/man]
1606 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1607 --htmldir=DIR html documentation [DOCDIR]
1608 --dvidir=DIR dvi documentation [DOCDIR]
1609 --pdfdir=DIR pdf documentation [DOCDIR]
1610 --psdir=DIR ps documentation [DOCDIR]
1611_ACEOF
1612
1613 cat <<\_ACEOF
1614
1615Program names:
1616 --program-prefix=PREFIX prepend PREFIX to installed program names
1617 --program-suffix=SUFFIX append SUFFIX to installed program names
1618 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1619
1620System types:
1621 --build=BUILD configure for building on BUILD [guessed]
1622 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1623 --target=TARGET configure for building compilers for TARGET [HOST]
1624_ACEOF
1625fi
1626
1627if test -n "$ac_init_help"; then
1628
1629 cat <<\_ACEOF
1630
1631Optional Features:
1632 --disable-option-checking ignore unrecognized --enable/--with options
1633 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1634 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1635 --enable-maintainer-mode enable make rules and dependencies not useful
1636 (and sometimes confusing) to the casual installer
1637 --enable-silent-rules less verbose build output (undo: `make V=1')
1638 --disable-silent-rules verbose build output (undo: `make V=0')
1639 --disable-dependency-tracking speeds up one-time build
1640 --enable-dependency-tracking do not reject slow dependency extractors
1641 --enable-shared[=PKGS] build shared libraries [default=yes]
1642 --enable-static[=PKGS] build static libraries [default=yes]
1643 --enable-fast-install[=PKGS]
1644 optimize for fast installation [default=yes]
1645 --disable-libtool-lock avoid locking (might break parallel builds)
1646 --enable-debug Enable generic debug support [default=no]
1c5de20a 1647 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
e70e591c
BB
1648
1649Optional Packages:
1650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1652 --with-pic try to use only PIC/non-PIC objects [default=use
1653 both]
1654 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1655 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1656 --with-linux=PATH Path to kernel source
1657 --with-linux-obj=PATH Path to kernel build objects
1658 --with-spl=PATH Path to spl source
1659 --with-spl-obj=PATH Path to spl build objects
de0a1c09
BB
1660 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1661 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
e70e591c 1662 --with-blkid support blkid caching [default=check]
b3259b6a 1663 --with-selinux support selinux [default=check]
e70e591c
BB
1664
1665Some influential environment variables:
1666 CC C compiler command
1667 CFLAGS C compiler flags
1668 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1669 nonstandard directory <lib dir>
1670 LIBS libraries to pass to the linker, e.g. -l<library>
1671 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1672 you have headers in a nonstandard directory <include dir>
1673 CPP C preprocessor
1674 CCAS assembler compiler command (defaults to CC)
1675 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1676
1677Use these variables to override the choices made by `configure' or to help
1678it to find libraries and programs with nonstandard names/locations.
1679
1680_ACEOF
1681ac_status=$?
1682fi
1683
1684if test "$ac_init_help" = "recursive"; then
1685 # If there are subdirs, report their specific --help.
1686 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1687 test -d "$ac_dir" ||
1688 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1689 continue
1690 ac_builddir=.
1691
1692case "$ac_dir" in
1693.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694*)
1695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1696 # A ".." for each directory in $ac_dir_suffix.
1697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1698 case $ac_top_builddir_sub in
1699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1701 esac ;;
1702esac
1703ac_abs_top_builddir=$ac_pwd
1704ac_abs_builddir=$ac_pwd$ac_dir_suffix
1705# for backward compatibility:
1706ac_top_builddir=$ac_top_build_prefix
1707
1708case $srcdir in
1709 .) # We are building in place.
1710 ac_srcdir=.
1711 ac_top_srcdir=$ac_top_builddir_sub
1712 ac_abs_top_srcdir=$ac_pwd ;;
1713 [\\/]* | ?:[\\/]* ) # Absolute name.
1714 ac_srcdir=$srcdir$ac_dir_suffix;
1715 ac_top_srcdir=$srcdir
1716 ac_abs_top_srcdir=$srcdir ;;
1717 *) # Relative name.
1718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1719 ac_top_srcdir=$ac_top_build_prefix$srcdir
1720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1721esac
1722ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1723
1724 cd "$ac_dir" || { ac_status=$?; continue; }
1725 # Check for guested configure.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1727 echo &&
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1732 else
1733 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1734 fi || ac_status=$?
1735 cd "$ac_pwd" || { ac_status=$?; break; }
1736 done
1737fi
1738
1739test -n "$ac_init_help" && exit $ac_status
1740if $ac_init_version; then
1741 cat <<\_ACEOF
1742configure
1743generated by GNU Autoconf 2.63
1744
1745Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17462002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1747This configure script is free software; the Free Software Foundation
1748gives unlimited permission to copy, distribute and modify it.
1749_ACEOF
1750 exit
1751fi
1752cat >config.log <<_ACEOF
1753This file contains any messages produced by compilers while
1754running configure, to aid debugging if configure makes a mistake.
1755
1756It was created by $as_me, which was
1757generated by GNU Autoconf 2.63. Invocation command line was
1758
1759 $ $0 $@
1760
1761_ACEOF
1762exec 5>>config.log
1763{
1764cat <<_ASUNAME
1765## --------- ##
1766## Platform. ##
1767## --------- ##
1768
1769hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1770uname -m = `(uname -m) 2>/dev/null || echo unknown`
1771uname -r = `(uname -r) 2>/dev/null || echo unknown`
1772uname -s = `(uname -s) 2>/dev/null || echo unknown`
1773uname -v = `(uname -v) 2>/dev/null || echo unknown`
1774
1775/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1776/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1777
1778/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1779/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1780/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1781/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1782/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1783/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1784/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1785
1786_ASUNAME
1787
1788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789for as_dir in $PATH
1790do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 $as_echo "PATH: $as_dir"
1794done
1795IFS=$as_save_IFS
1796
1797} >&5
1798
1799cat >&5 <<_ACEOF
1800
1801
1802## ----------- ##
1803## Core tests. ##
1804## ----------- ##
1805
1806_ACEOF
1807
1808
1809# Keep a trace of the command line.
1810# Strip out --no-create and --no-recursion so they do not pile up.
1811# Strip out --silent because we don't want to record it for future runs.
1812# Also quote any args containing shell meta-characters.
1813# Make two passes to allow for proper duplicate-argument suppression.
1814ac_configure_args=
1815ac_configure_args0=
1816ac_configure_args1=
1817ac_must_keep_next=false
1818for ac_pass in 1 2
1819do
1820 for ac_arg
1821 do
1822 case $ac_arg in
1823 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1825 | -silent | --silent | --silen | --sile | --sil)
1826 continue ;;
1827 *\'*)
1828 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1829 esac
1830 case $ac_pass in
1831 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1832 2)
1833 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1834 if test $ac_must_keep_next = true; then
1835 ac_must_keep_next=false # Got value, back to normal.
1836 else
1837 case $ac_arg in
1838 *=* | --config-cache | -C | -disable-* | --disable-* \
1839 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1840 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1841 | -with-* | --with-* | -without-* | --without-* | --x)
1842 case "$ac_configure_args0 " in
1843 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1844 esac
1845 ;;
1846 -* ) ac_must_keep_next=true ;;
1847 esac
1848 fi
1849 ac_configure_args="$ac_configure_args '$ac_arg'"
1850 ;;
1851 esac
1852 done
1853done
1854$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1855$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1856
1857# When interrupted or exit'd, cleanup temporary files, and complete
1858# config.log. We remove comments because anyway the quotes in there
1859# would cause problems or look ugly.
1860# WARNING: Use '\'' to represent an apostrophe within the trap.
1861# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862trap 'exit_status=$?
1863 # Save into config.log some information that might help in debugging.
1864 {
1865 echo
1866
1867 cat <<\_ASBOX
1868## ---------------- ##
1869## Cache variables. ##
1870## ---------------- ##
1871_ASBOX
1872 echo
1873 # The following way of writing the cache mishandles newlines in values,
1874(
1875 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1876 eval ac_val=\$$ac_var
1877 case $ac_val in #(
1878 *${as_nl}*)
1879 case $ac_var in #(
1880 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1881$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1882 esac
1883 case $ac_var in #(
1884 _ | IFS | as_nl) ;; #(
1885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1886 *) $as_unset $ac_var ;;
1887 esac ;;
1888 esac
1889 done
1890 (set) 2>&1 |
1891 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1892 *${as_nl}ac_space=\ *)
1893 sed -n \
1894 "s/'\''/'\''\\\\'\'''\''/g;
1895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1896 ;; #(
1897 *)
1898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1899 ;;
1900 esac |
1901 sort
1902)
1903 echo
1904
1905 cat <<\_ASBOX
1906## ----------------- ##
1907## Output variables. ##
1908## ----------------- ##
1909_ASBOX
1910 echo
1911 for ac_var in $ac_subst_vars
1912 do
1913 eval ac_val=\$$ac_var
1914 case $ac_val in
1915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 esac
1917 $as_echo "$ac_var='\''$ac_val'\''"
1918 done | sort
1919 echo
1920
1921 if test -n "$ac_subst_files"; then
1922 cat <<\_ASBOX
1923## ------------------- ##
1924## File substitutions. ##
1925## ------------------- ##
1926_ASBOX
1927 echo
1928 for ac_var in $ac_subst_files
1929 do
1930 eval ac_val=\$$ac_var
1931 case $ac_val in
1932 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1933 esac
1934 $as_echo "$ac_var='\''$ac_val'\''"
1935 done | sort
1936 echo
1937 fi
1938
1939 if test -s confdefs.h; then
1940 cat <<\_ASBOX
1941## ----------- ##
1942## confdefs.h. ##
1943## ----------- ##
1944_ASBOX
1945 echo
1946 cat confdefs.h
1947 echo
1948 fi
1949 test "$ac_signal" != 0 &&
1950 $as_echo "$as_me: caught signal $ac_signal"
1951 $as_echo "$as_me: exit $exit_status"
1952 } >&5
1953 rm -f core *.core core.conftest.* &&
1954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1955 exit $exit_status
1956' 0
1957for ac_signal in 1 2 13 15; do
1958 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1959done
1960ac_signal=0
1961
1962# confdefs.h avoids OS command line length limits that DEFS can exceed.
1963rm -f -r conftest* confdefs.h
1964
1965# Predefined preprocessor variables.
1966
1967cat >>confdefs.h <<_ACEOF
1968#define PACKAGE_NAME "$PACKAGE_NAME"
1969_ACEOF
1970
1971
1972cat >>confdefs.h <<_ACEOF
1973#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1974_ACEOF
1975
1976
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_VERSION "$PACKAGE_VERSION"
1979_ACEOF
1980
1981
1982cat >>confdefs.h <<_ACEOF
1983#define PACKAGE_STRING "$PACKAGE_STRING"
1984_ACEOF
1985
1986
1987cat >>confdefs.h <<_ACEOF
1988#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1989_ACEOF
1990
1991
1992# Let the site file select an alternate cache file if it wants to.
1993# Prefer an explicitly selected file to automatically selected ones.
1994ac_site_file1=NONE
1995ac_site_file2=NONE
1996if test -n "$CONFIG_SITE"; then
1997 ac_site_file1=$CONFIG_SITE
1998elif test "x$prefix" != xNONE; then
1999 ac_site_file1=$prefix/share/config.site
2000 ac_site_file2=$prefix/etc/config.site
2001else
2002 ac_site_file1=$ac_default_prefix/share/config.site
2003 ac_site_file2=$ac_default_prefix/etc/config.site
2004fi
2005for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2006do
2007 test "x$ac_site_file" = xNONE && continue
2008 if test -r "$ac_site_file"; then
2009 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2010$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2011 sed 's/^/| /' "$ac_site_file" >&5
2012 . "$ac_site_file"
2013 fi
2014done
2015
2016if test -r "$cache_file"; then
2017 # Some versions of bash will fail to source /dev/null (special
2018 # files actually), so we avoid doing that.
2019 if test -f "$cache_file"; then
2020 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2021$as_echo "$as_me: loading cache $cache_file" >&6;}
2022 case $cache_file in
2023 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2024 *) . "./$cache_file";;
2025 esac
2026 fi
2027else
2028 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2029$as_echo "$as_me: creating cache $cache_file" >&6;}
2030 >$cache_file
2031fi
2032
2033# Check that the precious variables saved in the cache have kept the same
2034# value.
2035ac_cache_corrupted=false
2036for ac_var in $ac_precious_vars; do
2037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2038 eval ac_new_set=\$ac_env_${ac_var}_set
2039 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2040 eval ac_new_val=\$ac_env_${ac_var}_value
2041 case $ac_old_set,$ac_new_set in
2042 set,)
2043 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2044$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2045 ac_cache_corrupted=: ;;
2046 ,set)
2047 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2048$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2049 ac_cache_corrupted=: ;;
2050 ,);;
2051 *)
2052 if test "x$ac_old_val" != "x$ac_new_val"; then
2053 # differences in whitespace do not lead to failure.
2054 ac_old_val_w=`echo x $ac_old_val`
2055 ac_new_val_w=`echo x $ac_new_val`
2056 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2057 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2058$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2059 ac_cache_corrupted=:
2060 else
2061 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2062$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2063 eval $ac_var=\$ac_old_val
2064 fi
2065 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2066$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2067 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2068$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2069 fi;;
2070 esac
2071 # Pass precious variables to config.status.
2072 if test "$ac_new_set" = set; then
2073 case $ac_new_val in
2074 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2075 *) ac_arg=$ac_var=$ac_new_val ;;
2076 esac
2077 case " $ac_configure_args " in
2078 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2079 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2080 esac
2081 fi
2082done
2083if $ac_cache_corrupted; then
2084 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2085$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2086 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2087$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2088 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2089$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2090 { (exit 1); exit 1; }; }
2091fi
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109ac_ext=c
2110ac_cpp='$CPP $CPPFLAGS'
2111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2113ac_compiler_gnu=$ac_cv_c_compiler_gnu
2114
2115
2116ac_ext=c
2117ac_cpp='$CPP $CPPFLAGS'
2118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121
2122
2123
2124
2125
2126
2127 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2128$as_echo_n "checking metadata... " >&6; }
2129
2130 META="$srcdir/META"
2131 _zfs_ac_meta_got_file=no
2132 if test -f "$META"; then
2133 _zfs_ac_meta_got_file=yes
2134
2135 ZFS_META_NAME=`perl -n\
2136 -e "BEGIN { \\$key=shift @ARGV; }"\
2137 -e "next unless s/^\s*\\$key[:=]//i;"\
2138 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2139 -e "s/^\s+//;"\
2140 -e "s/\s+$//;"\
2141 -e "s/^(['\"])(.*)\1/\\$2/;"\
2142 -e "\\$val=\\$_;"\
2143 -e "END { print \\$val if defined \\$val; }"\
2144 '(?:NAME|PROJECT|PACKAGE)' $META`;
2145 if test -n "$ZFS_META_NAME"; then
2146
2147cat >>confdefs.h <<_ACEOF
2148#define ZFS_META_NAME "$ZFS_META_NAME"
2149_ACEOF
2150
2151
2152 fi
2153
2154 ZFS_META_VERSION=`perl -n\
2155 -e "BEGIN { \\$key=shift @ARGV; }"\
2156 -e "next unless s/^\s*\\$key[:=]//i;"\
2157 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2158 -e "s/^\s+//;"\
2159 -e "s/\s+$//;"\
2160 -e "s/^(['\"])(.*)\1/\\$2/;"\
2161 -e "\\$val=\\$_;"\
2162 -e "END { print \\$val if defined \\$val; }"\
2163 'VERSION' $META`;
2164 if test -n "$ZFS_META_VERSION"; then
2165
2166cat >>confdefs.h <<_ACEOF
2167#define ZFS_META_VERSION "$ZFS_META_VERSION"
2168_ACEOF
2169
2170
2171 fi
2172
2173 ZFS_META_RELEASE=`perl -n\
2174 -e "BEGIN { \\$key=shift @ARGV; }"\
2175 -e "next unless s/^\s*\\$key[:=]//i;"\
2176 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2177 -e "s/^\s+//;"\
2178 -e "s/\s+$//;"\
2179 -e "s/^(['\"])(.*)\1/\\$2/;"\
2180 -e "\\$val=\\$_;"\
2181 -e "END { print \\$val if defined \\$val; }"\
2182 'RELEASE' $META`;
2183 if test -n "$ZFS_META_RELEASE"; then
2184
2185cat >>confdefs.h <<_ACEOF
2186#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2187_ACEOF
2188
2189
2190 fi
2191
2192 ZFS_META_LICENSE=`perl -n\
2193 -e "BEGIN { \\$key=shift @ARGV; }"\
2194 -e "next unless s/^\s*\\$key[:=]//i;"\
2195 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2196 -e "s/^\s+//;"\
2197 -e "s/\s+$//;"\
2198 -e "s/^(['\"])(.*)\1/\\$2/;"\
2199 -e "\\$val=\\$_;"\
2200 -e "END { print \\$val if defined \\$val; }"\
2201 'LICENSE' $META`;
2202 if test -n "$ZFS_META_LICENSE"; then
2203
2204cat >>confdefs.h <<_ACEOF
2205#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2206_ACEOF
2207
2208
2209 fi
2210
2211 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2212 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2213 test -n "$ZFS_META_RELEASE" &&
2214 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2215
2216cat >>confdefs.h <<_ACEOF
2217#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2218_ACEOF
2219
2220
2221 fi
2222
2223 ZFS_META_DATA=`perl -n\
2224 -e "BEGIN { \\$key=shift @ARGV; }"\
2225 -e "next unless s/^\s*\\$key[:=]//i;"\
2226 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2227 -e "s/^\s+//;"\
2228 -e "s/\s+$//;"\
2229 -e "s/^(['\"])(.*)\1/\\$2/;"\
2230 -e "\\$val=\\$_;"\
2231 -e "END { print \\$val if defined \\$val; }"\
2232 'DATE' $META`;
2233 if test -n "$ZFS_META_DATA"; then
2234
2235cat >>confdefs.h <<_ACEOF
2236#define ZFS_META_DATA "$ZFS_META_DATA"
2237_ACEOF
2238
2239
2240 fi
2241
2242 ZFS_META_AUTHOR=`perl -n\
2243 -e "BEGIN { \\$key=shift @ARGV; }"\
2244 -e "next unless s/^\s*\\$key[:=]//i;"\
2245 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2246 -e "s/^\s+//;"\
2247 -e "s/\s+$//;"\
2248 -e "s/^(['\"])(.*)\1/\\$2/;"\
2249 -e "\\$val=\\$_;"\
2250 -e "END { print \\$val if defined \\$val; }"\
2251 'AUTHOR' $META`;
2252 if test -n "$ZFS_META_AUTHOR"; then
2253
2254cat >>confdefs.h <<_ACEOF
2255#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2256_ACEOF
2257
2258
2259 fi
2260
2261
2262 ZFS_META_LT_CURRENT=`perl -n\
2263 -e "BEGIN { \\$key=shift @ARGV; }"\
2264 -e "next unless s/^\s*\\$key[:=]//i;"\
2265 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2266 -e "s/^\s+//;"\
2267 -e "s/\s+$//;"\
2268 -e "s/^(['\"])(.*)\1/\\$2/;"\
2269 -e "\\$val=\\$_;"\
2270 -e "END { print \\$val if defined \\$val; }"\
2271 'LT_CURRENT' $META`;
2272 ZFS_META_LT_REVISION=`perl -n\
2273 -e "BEGIN { \\$key=shift @ARGV; }"\
2274 -e "next unless s/^\s*\\$key[:=]//i;"\
2275 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2276 -e "s/^\s+//;"\
2277 -e "s/\s+$//;"\
2278 -e "s/^(['\"])(.*)\1/\\$2/;"\
2279 -e "\\$val=\\$_;"\
2280 -e "END { print \\$val if defined \\$val; }"\
2281 'LT_REVISION' $META`;
2282 ZFS_META_LT_AGE=`perl -n\
2283 -e "BEGIN { \\$key=shift @ARGV; }"\
2284 -e "next unless s/^\s*\\$key[:=]//i;"\
2285 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2286 -e "s/^\s+//;"\
2287 -e "s/\s+$//;"\
2288 -e "s/^(['\"])(.*)\1/\\$2/;"\
2289 -e "\\$val=\\$_;"\
2290 -e "END { print \\$val if defined \\$val; }"\
2291 'LT_AGE' $META`;
2292 if test -n "$ZFS_META_LT_CURRENT" \
2293 -o -n "$ZFS_META_LT_REVISION" \
2294 -o -n "$ZFS_META_LT_AGE"; then
2295 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2296 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2297 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2298
2299cat >>confdefs.h <<_ACEOF
2300#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2301_ACEOF
2302
2303
2304cat >>confdefs.h <<_ACEOF
2305#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2306_ACEOF
2307
2308
2309cat >>confdefs.h <<_ACEOF
2310#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2311_ACEOF
2312
2313
2314
2315
2316 fi
2317 fi
2318
2319 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2320$as_echo "$_zfs_ac_meta_got_file" >&6; }
2321
2322
2323ac_aux_dir=
2324for ac_dir in config "$srcdir"/config; do
2325 if test -f "$ac_dir/install-sh"; then
2326 ac_aux_dir=$ac_dir
2327 ac_install_sh="$ac_aux_dir/install-sh -c"
2328 break
2329 elif test -f "$ac_dir/install.sh"; then
2330 ac_aux_dir=$ac_dir
2331 ac_install_sh="$ac_aux_dir/install.sh -c"
2332 break
2333 elif test -f "$ac_dir/shtool"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 break
2337 fi
2338done
2339if test -z "$ac_aux_dir"; then
2340 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2341$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2342 { (exit 1); exit 1; }; }
2343fi
2344
2345# These three variables are undocumented and unsupported,
2346# and are intended to be withdrawn in a future Autoconf release.
2347# They can cause serious problems if a builder's source tree is in a directory
2348# whose full name contains unusual characters.
2349ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
2353
2354# Make sure we can run config.sub.
2355$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2356 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2357$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2358 { (exit 1); exit 1; }; }
2359
2360{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2361$as_echo_n "checking build system type... " >&6; }
2362if test "${ac_cv_build+set}" = set; then
2363 $as_echo_n "(cached) " >&6
2364else
2365 ac_build_alias=$build_alias
2366test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368test "x$ac_build_alias" = x &&
2369 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2370$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2371 { (exit 1); exit 1; }; }
2372ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2373 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2374$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2375 { (exit 1); exit 1; }; }
2376
2377fi
2378{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2379$as_echo "$ac_cv_build" >&6; }
2380case $ac_cv_build in
2381*-*-*) ;;
2382*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2383$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2384 { (exit 1); exit 1; }; };;
2385esac
2386build=$ac_cv_build
2387ac_save_IFS=$IFS; IFS='-'
2388set x $ac_cv_build
2389shift
2390build_cpu=$1
2391build_vendor=$2
2392shift; shift
2393# Remember, the first character of IFS is used to create $*,
2394# except with old shells:
2395build_os=$*
2396IFS=$ac_save_IFS
2397case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2398
2399
2400{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2401$as_echo_n "checking host system type... " >&6; }
2402if test "${ac_cv_host+set}" = set; then
2403 $as_echo_n "(cached) " >&6
2404else
2405 if test "x$host_alias" = x; then
2406 ac_cv_host=$ac_cv_build
2407else
2408 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2409 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2410$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2411 { (exit 1); exit 1; }; }
2412fi
2413
2414fi
2415{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2416$as_echo "$ac_cv_host" >&6; }
2417case $ac_cv_host in
2418*-*-*) ;;
2419*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2420$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2421 { (exit 1); exit 1; }; };;
2422esac
2423host=$ac_cv_host
2424ac_save_IFS=$IFS; IFS='-'
2425set x $ac_cv_host
2426shift
2427host_cpu=$1
2428host_vendor=$2
2429shift; shift
2430# Remember, the first character of IFS is used to create $*,
2431# except with old shells:
2432host_os=$*
2433IFS=$ac_save_IFS
2434case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2435
2436
2437{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2438$as_echo_n "checking target system type... " >&6; }
2439if test "${ac_cv_target+set}" = set; then
2440 $as_echo_n "(cached) " >&6
2441else
2442 if test "x$target_alias" = x; then
2443 ac_cv_target=$ac_cv_host
2444else
2445 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2446 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2447$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2448 { (exit 1); exit 1; }; }
2449fi
2450
2451fi
2452{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2453$as_echo "$ac_cv_target" >&6; }
2454case $ac_cv_target in
2455*-*-*) ;;
2456*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2457$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2458 { (exit 1); exit 1; }; };;
2459esac
2460target=$ac_cv_target
2461ac_save_IFS=$IFS; IFS='-'
2462set x $ac_cv_target
2463shift
2464target_cpu=$1
2465target_vendor=$2
2466shift; shift
2467# Remember, the first character of IFS is used to create $*,
2468# except with old shells:
2469target_os=$*
2470IFS=$ac_save_IFS
2471case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2472
2473
2474# The aliases save the names the user supplied, while $host etc.
2475# will get canonicalized.
2476test -n "$target_alias" &&
2477 test "$program_prefix$program_suffix$program_transform_name" = \
2478 NONENONEs,x,x, &&
2479 program_prefix=${target_alias}-
2480
2481{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2482$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2483 # Check whether --enable-maintainer-mode was given.
2484if test "${enable_maintainer_mode+set}" = set; then
2485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2486else
2487 USE_MAINTAINER_MODE=no
2488fi
2489
2490 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2491$as_echo "$USE_MAINTAINER_MODE" >&6; }
2492 if test $USE_MAINTAINER_MODE = yes; then
2493 MAINTAINER_MODE_TRUE=
2494 MAINTAINER_MODE_FALSE='#'
2495else
2496 MAINTAINER_MODE_TRUE='#'
2497 MAINTAINER_MODE_FALSE=
2498fi
2499
2500 MAINT=$MAINTAINER_MODE_TRUE
2501
2502
2503# Check whether --enable-silent-rules was given.
2504if test "${enable_silent_rules+set}" = set; then
2505 enableval=$enable_silent_rules;
2506fi
2507
2508case $enable_silent_rules in
2509yes) AM_DEFAULT_VERBOSITY=0;;
2510no) AM_DEFAULT_VERBOSITY=1;;
2511*) AM_DEFAULT_VERBOSITY=1;;
2512esac
2513AM_BACKSLASH='\'
2514
2515am__api_version='1.11'
2516
2517# Find a good install program. We prefer a C program (faster),
2518# so one script is as good as another. But avoid the broken or
2519# incompatible versions:
2520# SysV /etc/install, /usr/sbin/install
2521# SunOS /usr/etc/install
2522# IRIX /sbin/install
2523# AIX /bin/install
2524# AmigaOS /C/install, which installs bootblocks on floppy discs
2525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2526# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2528# OS/2's system install, which has a completely different semantic
2529# ./install, which can be erroneously created by make from ./install.sh.
2530# Reject install programs that cannot install multiple files.
2531{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2532$as_echo_n "checking for a BSD-compatible install... " >&6; }
2533if test -z "$INSTALL"; then
2534if test "${ac_cv_path_install+set}" = set; then
2535 $as_echo_n "(cached) " >&6
2536else
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540 IFS=$as_save_IFS
2541 test -z "$as_dir" && as_dir=.
2542 # Account for people who put trailing slashes in PATH elements.
2543case $as_dir/ in
2544 ./ | .// | /cC/* | \
2545 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2546 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2547 /usr/ucb/* ) ;;
2548 *)
2549 # OSF1 and SCO ODT 3.0 have their own names for install.
2550 # Don't use installbsd from OSF since it installs stuff as root
2551 # by default.
2552 for ac_prog in ginstall scoinst install; do
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2555 if test $ac_prog = install &&
2556 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557 # AIX install. It has an incompatible calling convention.
2558 :
2559 elif test $ac_prog = install &&
2560 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2561 # program-specific install script used by HP pwplus--don't use.
2562 :
2563 else
2564 rm -rf conftest.one conftest.two conftest.dir
2565 echo one > conftest.one
2566 echo two > conftest.two
2567 mkdir conftest.dir
2568 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2569 test -s conftest.one && test -s conftest.two &&
2570 test -s conftest.dir/conftest.one &&
2571 test -s conftest.dir/conftest.two
2572 then
2573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2574 break 3
2575 fi
2576 fi
2577 fi
2578 done
2579 done
2580 ;;
2581esac
2582
2583done
2584IFS=$as_save_IFS
2585
2586rm -rf conftest.one conftest.two conftest.dir
2587
2588fi
2589 if test "${ac_cv_path_install+set}" = set; then
2590 INSTALL=$ac_cv_path_install
2591 else
2592 # As a last resort, use the slow shell script. Don't cache a
2593 # value for INSTALL within a source directory, because that will
2594 # break other packages using the cache if that directory is
2595 # removed, or if the value is a relative name.
2596 INSTALL=$ac_install_sh
2597 fi
2598fi
2599{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2600$as_echo "$INSTALL" >&6; }
2601
2602# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2603# It thinks the first close brace ends the variable substitution.
2604test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2605
2606test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2607
2608test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2609
2610{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2611$as_echo_n "checking whether build environment is sane... " >&6; }
2612# Just in case
2613sleep 1
2614echo timestamp > conftest.file
2615# Reject unsafe characters in $srcdir or the absolute working directory
2616# name. Accept space and tab only in the latter.
2617am_lf='
2618'
2619case `pwd` in
2620 *[\\\"\#\$\&\'\`$am_lf]*)
2621 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2622$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2623 { (exit 1); exit 1; }; };;
2624esac
2625case $srcdir in
2626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2627 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2628$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2629 { (exit 1); exit 1; }; };;
2630esac
2631
2632# Do `set' in a subshell so we don't clobber the current shell's
2633# arguments. Must try -L first in case configure is actually a
2634# symlink; some systems play weird games with the mod time of symlinks
2635# (eg FreeBSD returns the mod time of the symlink's containing
2636# directory).
2637if (
2638 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2639 if test "$*" = "X"; then
2640 # -L didn't work.
2641 set X `ls -t "$srcdir/configure" conftest.file`
2642 fi
2643 rm -f conftest.file
2644 if test "$*" != "X $srcdir/configure conftest.file" \
2645 && test "$*" != "X conftest.file $srcdir/configure"; then
2646
2647 # If neither matched, then we have a broken ls. This can happen
2648 # if, for instance, CONFIG_SHELL is bash and it inherits a
2649 # broken ls alias from the environment. This has actually
2650 # happened. Such a system could not be considered "sane".
2651 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2652alias in your environment" >&5
2653$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2654alias in your environment" >&2;}
2655 { (exit 1); exit 1; }; }
2656 fi
2657
2658 test "$2" = conftest.file
2659 )
2660then
2661 # Ok.
2662 :
2663else
2664 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2665Check your system clock" >&5
2666$as_echo "$as_me: error: newly created file is older than distributed files!
2667Check your system clock" >&2;}
2668 { (exit 1); exit 1; }; }
2669fi
2670{ $as_echo "$as_me:$LINENO: result: yes" >&5
2671$as_echo "yes" >&6; }
2672test "$program_prefix" != NONE &&
2673 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2674# Use a double $ so make ignores it.
2675test "$program_suffix" != NONE &&
2676 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2677# Double any \ or $.
2678# By default was `s,x,x', remove it if useless.
2679ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2680program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2681
2682# expand $ac_aux_dir to an absolute path
2683am_aux_dir=`cd $ac_aux_dir && pwd`
2684
2685if test x"${MISSING+set}" != xset; then
2686 case $am_aux_dir in
2687 *\ * | *\ *)
2688 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2689 *)
2690 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2691 esac
2692fi
2693# Use eval to expand $SHELL
2694if eval "$MISSING --run true"; then
2695 am_missing_run="$MISSING --run "
2696else
2697 am_missing_run=
2698 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2699$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2700fi
2701
2702if test x"${install_sh}" != xset; then
2703 case $am_aux_dir in
2704 *\ * | *\ *)
2705 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2706 *)
2707 install_sh="\${SHELL} $am_aux_dir/install-sh"
2708 esac
2709fi
2710
2711# Installed binaries are usually stripped using `strip' when the user
2712# run `make install-strip'. However `strip' might not be the right
2713# tool to use in cross-compilation environments, therefore Automake
2714# will honor the `STRIP' environment variable to overrule this program.
2715if test "$cross_compiling" != no; then
2716 if test -n "$ac_tool_prefix"; then
2717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2718set dummy ${ac_tool_prefix}strip; ac_word=$2
2719{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
2721if test "${ac_cv_prog_STRIP+set}" = set; then
2722 $as_echo_n "(cached) " >&6
2723else
2724 if test -n "$STRIP"; then
2725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738done
2739done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744STRIP=$ac_cv_prog_STRIP
2745if test -n "$STRIP"; then
2746 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2747$as_echo "$STRIP" >&6; }
2748else
2749 { $as_echo "$as_me:$LINENO: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753
2754fi
2755if test -z "$ac_cv_prog_STRIP"; then
2756 ac_ct_STRIP=$STRIP
2757 # Extract the first word of "strip", so it can be a program name with args.
2758set dummy strip; ac_word=$2
2759{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2760$as_echo_n "checking for $ac_word... " >&6; }
2761if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2762 $as_echo_n "(cached) " >&6
2763else
2764 if test -n "$ac_ct_STRIP"; then
2765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2766else
2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_ac_ct_STRIP="strip"
2775 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 break 2
2777 fi
2778done
2779done
2780IFS=$as_save_IFS
2781
2782fi
2783fi
2784ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2785if test -n "$ac_ct_STRIP"; then
2786 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2787$as_echo "$ac_ct_STRIP" >&6; }
2788else
2789 { $as_echo "$as_me:$LINENO: result: no" >&5
2790$as_echo "no" >&6; }
2791fi
2792
2793 if test "x$ac_ct_STRIP" = x; then
2794 STRIP=":"
2795 else
2796 case $cross_compiling:$ac_tool_warned in
2797yes:)
2798{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2800ac_tool_warned=yes ;;
2801esac
2802 STRIP=$ac_ct_STRIP
2803 fi
2804else
2805 STRIP="$ac_cv_prog_STRIP"
2806fi
2807
2808fi
2809INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2810
2811{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2812$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2813if test -z "$MKDIR_P"; then
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 $as_echo_n "(cached) " >&6
2816else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_prog in mkdir gmkdir; do
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2825 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2826 'mkdir (GNU coreutils) '* | \
2827 'mkdir (coreutils) '* | \
2828 'mkdir (fileutils) '4.1*)
2829 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2830 break 3;;
2831 esac
2832 done
2833 done
2834done
2835IFS=$as_save_IFS
2836
2837fi
2838
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2841 else
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 test -d ./--version && rmdir ./--version
2847 MKDIR_P="$ac_install_sh -d"
2848 fi
2849fi
2850{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2851$as_echo "$MKDIR_P" >&6; }
2852
2853mkdir_p="$MKDIR_P"
2854case $mkdir_p in
2855 [\\/$]* | ?:[\\/]*) ;;
2856 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2857esac
2858
2859for ac_prog in gawk mawk nawk awk
2860do
2861 # Extract the first word of "$ac_prog", so it can be a program name with args.
2862set dummy $ac_prog; ac_word=$2
2863{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2864$as_echo_n "checking for $ac_word... " >&6; }
2865if test "${ac_cv_prog_AWK+set}" = set; then
2866 $as_echo_n "(cached) " >&6
2867else
2868 if test -n "$AWK"; then
2869 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2870else
2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872for as_dir in $PATH
2873do
2874 IFS=$as_save_IFS
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_AWK="$ac_prog"
2879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 break 2
2881 fi
2882done
2883done
2884IFS=$as_save_IFS
2885
2886fi
2887fi
2888AWK=$ac_cv_prog_AWK
2889if test -n "$AWK"; then
2890 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2891$as_echo "$AWK" >&6; }
2892else
2893 { $as_echo "$as_me:$LINENO: result: no" >&5
2894$as_echo "no" >&6; }
2895fi
2896
2897
2898 test -n "$AWK" && break
2899done
2900
2901{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2902$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2903set x ${MAKE-make}
2904ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2905if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2906 $as_echo_n "(cached) " >&6
2907else
2908 cat >conftest.make <<\_ACEOF
2909SHELL = /bin/sh
2910all:
2911 @echo '@@@%%%=$(MAKE)=@@@%%%'
2912_ACEOF
2913# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2914case `${MAKE-make} -f conftest.make 2>/dev/null` in
2915 *@@@%%%=?*=@@@%%%*)
2916 eval ac_cv_prog_make_${ac_make}_set=yes;;
2917 *)
2918 eval ac_cv_prog_make_${ac_make}_set=no;;
2919esac
2920rm -f conftest.make
2921fi
2922if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2923 { $as_echo "$as_me:$LINENO: result: yes" >&5
2924$as_echo "yes" >&6; }
2925 SET_MAKE=
2926else
2927 { $as_echo "$as_me:$LINENO: result: no" >&5
2928$as_echo "no" >&6; }
2929 SET_MAKE="MAKE=${MAKE-make}"
2930fi
2931
2932rm -rf .tst 2>/dev/null
2933mkdir .tst 2>/dev/null
2934if test -d .tst; then
2935 am__leading_dot=.
2936else
2937 am__leading_dot=_
2938fi
2939rmdir .tst 2>/dev/null
2940
2941if test "`cd $srcdir && pwd`" != "`pwd`"; then
2942 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2943 # is not polluted with repeated "-I."
2944 am__isrc=' -I$(srcdir)'
2945 # test to see if srcdir already configured
2946 if test -f $srcdir/config.status; then
2947 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2948$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2949 { (exit 1); exit 1; }; }
2950 fi
2951fi
2952
2953# test whether we have cygpath
2954if test -z "$CYGPATH_W"; then
2955 if (cygpath --version) >/dev/null 2>/dev/null; then
2956 CYGPATH_W='cygpath -w'
2957 else
2958 CYGPATH_W=echo
2959 fi
2960fi
2961
2962
2963# Define the identity of the package.
2964 PACKAGE=$ZFS_META_NAME
2965 VERSION=$ZFS_META_VERSION
2966
2967
2968cat >>confdefs.h <<_ACEOF
2969#define PACKAGE "$PACKAGE"
2970_ACEOF
2971
2972
2973cat >>confdefs.h <<_ACEOF
2974#define VERSION "$VERSION"
2975_ACEOF
2976
2977# Some tools Automake needs.
2978
2979ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2980
2981
2982AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2983
2984
2985AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2986
2987
2988AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2989
2990
2991MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2992
2993# We need awk for the "check" target. The system "awk" is bad on
2994# some platforms.
2995# Always define AMTAR for backward compatibility.
2996
2997AMTAR=${AMTAR-"${am_missing_run}tar"}
2998
2999am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3000
3001
3002
3003
3004
3005ac_config_headers="$ac_config_headers zfs_config.h"
3006
3007
3008# Find a good install program. We prefer a C program (faster),
3009# so one script is as good as another. But avoid the broken or
3010# incompatible versions:
3011# SysV /etc/install, /usr/sbin/install
3012# SunOS /usr/etc/install
3013# IRIX /sbin/install
3014# AIX /bin/install
3015# AmigaOS /C/install, which installs bootblocks on floppy discs
3016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3017# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3019# OS/2's system install, which has a completely different semantic
3020# ./install, which can be erroneously created by make from ./install.sh.
3021# Reject install programs that cannot install multiple files.
3022{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3023$as_echo_n "checking for a BSD-compatible install... " >&6; }
3024if test -z "$INSTALL"; then
3025if test "${ac_cv_path_install+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3027else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 # Account for people who put trailing slashes in PATH elements.
3034case $as_dir/ in
3035 ./ | .// | /cC/* | \
3036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3038 /usr/ucb/* ) ;;
3039 *)
3040 # OSF1 and SCO ODT 3.0 have their own names for install.
3041 # Don't use installbsd from OSF since it installs stuff as root
3042 # by default.
3043 for ac_prog in ginstall scoinst install; do
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3046 if test $ac_prog = install &&
3047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048 # AIX install. It has an incompatible calling convention.
3049 :
3050 elif test $ac_prog = install &&
3051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3052 # program-specific install script used by HP pwplus--don't use.
3053 :
3054 else
3055 rm -rf conftest.one conftest.two conftest.dir
3056 echo one > conftest.one
3057 echo two > conftest.two
3058 mkdir conftest.dir
3059 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3060 test -s conftest.one && test -s conftest.two &&
3061 test -s conftest.dir/conftest.one &&
3062 test -s conftest.dir/conftest.two
3063 then
3064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3065 break 3
3066 fi
3067 fi
3068 fi
3069 done
3070 done
3071 ;;
3072esac
3073
3074done
3075IFS=$as_save_IFS
3076
3077rm -rf conftest.one conftest.two conftest.dir
3078
3079fi
3080 if test "${ac_cv_path_install+set}" = set; then
3081 INSTALL=$ac_cv_path_install
3082 else
3083 # As a last resort, use the slow shell script. Don't cache a
3084 # value for INSTALL within a source directory, because that will
3085 # break other packages using the cache if that directory is
3086 # removed, or if the value is a relative name.
3087 INSTALL=$ac_install_sh
3088 fi
3089fi
3090{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3091$as_echo "$INSTALL" >&6; }
3092
3093# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3094# It thinks the first close brace ends the variable substitution.
3095test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3096
3097test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3098
3099test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3100
3101ac_ext=c
3102ac_cpp='$CPP $CPPFLAGS'
3103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106if test -n "$ac_tool_prefix"; then
3107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3108set dummy ${ac_tool_prefix}gcc; ac_word=$2
3109{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3110$as_echo_n "checking for $ac_word... " >&6; }
3111if test "${ac_cv_prog_CC+set}" = set; then
3112 $as_echo_n "(cached) " >&6
3113else
3114 if test -n "$CC"; then
3115 ac_cv_prog_CC="$CC" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3125 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 break 2
3127 fi
3128done
3129done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134CC=$ac_cv_prog_CC
3135if test -n "$CC"; then
3136 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3137$as_echo "$CC" >&6; }
3138else
3139 { $as_echo "$as_me:$LINENO: result: no" >&5
3140$as_echo "no" >&6; }
3141fi
3142
3143
3144fi
3145if test -z "$ac_cv_prog_CC"; then
3146 ac_ct_CC=$CC
3147 # Extract the first word of "gcc", so it can be a program name with args.
3148set dummy gcc; ac_word=$2
3149{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3152 $as_echo_n "(cached) " >&6
3153else
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_ac_ct_CC="gcc"
3165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168done
3169done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3177$as_echo "$ac_ct_CC" >&6; }
3178else
3179 { $as_echo "$as_me:$LINENO: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183 if test "x$ac_ct_CC" = x; then
3184 CC=""
3185 else
3186 case $cross_compiling:$ac_tool_warned in
3187yes:)
3188{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190ac_tool_warned=yes ;;
3191esac
3192 CC=$ac_ct_CC
3193 fi
3194else
3195 CC="$ac_cv_prog_CC"
3196fi
3197
3198if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3201set dummy ${ac_tool_prefix}cc; ac_word=$2
3202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3203$as_echo_n "checking for $ac_word... " >&6; }
3204if test "${ac_cv_prog_CC+set}" = set; then
3205 $as_echo_n "(cached) " >&6
3206else
3207 if test -n "$CC"; then
3208 ac_cv_prog_CC="$CC" # Let the user override the test.
3209else
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_CC="${ac_tool_prefix}cc"
3218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221done
3222done
3223IFS=$as_save_IFS
3224
3225fi
3226fi
3227CC=$ac_cv_prog_CC
3228if test -n "$CC"; then
3229 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3230$as_echo "$CC" >&6; }
3231else
3232 { $as_echo "$as_me:$LINENO: result: no" >&5
3233$as_echo "no" >&6; }
3234fi
3235
3236
3237 fi
3238fi
3239if test -z "$CC"; then
3240 # Extract the first word of "cc", so it can be a program name with args.
3241set dummy cc; ac_word=$2
3242{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if test "${ac_cv_prog_CC+set}" = set; then
3245 $as_echo_n "(cached) " >&6
3246else
3247 if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249else
3250 ac_prog_rejected=no
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259 ac_prog_rejected=yes
3260 continue
3261 fi
3262 ac_cv_prog_CC="cc"
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267done
3268IFS=$as_save_IFS
3269
3270if test $ac_prog_rejected = yes; then
3271 # We found a bogon in the path, so make sure we never use it.
3272 set dummy $ac_cv_prog_CC
3273 shift
3274 if test $# != 0; then
3275 # We chose a different compiler from the bogus one.
3276 # However, it has the same basename, so the bogon will be chosen
3277 # first if we set CC to just the basename; use the full file name.
3278 shift
3279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3280 fi
3281fi
3282fi
3283fi
3284CC=$ac_cv_prog_CC
3285if test -n "$CC"; then
3286 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3287$as_echo "$CC" >&6; }
3288else
3289 { $as_echo "$as_me:$LINENO: result: no" >&5
3290$as_echo "no" >&6; }
3291fi
3292
3293
3294fi
3295if test -z "$CC"; then
3296 if test -n "$ac_tool_prefix"; then
3297 for ac_prog in cl.exe
3298 do
3299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3300set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3301{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
3303if test "${ac_cv_prog_CC+set}" = set; then
3304 $as_echo_n "(cached) " >&6
3305else
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320done
3321done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326CC=$ac_cv_prog_CC
3327if test -n "$CC"; then
3328 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3329$as_echo "$CC" >&6; }
3330else
3331 { $as_echo "$as_me:$LINENO: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335
3336 test -n "$CC" && break
3337 done
3338fi
3339if test -z "$CC"; then
3340 ac_ct_CC=$CC
3341 for ac_prog in cl.exe
3342do
3343 # Extract the first word of "$ac_prog", so it can be a program name with args.
3344set dummy $ac_prog; ac_word=$2
3345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3346$as_echo_n "checking for $ac_word... " >&6; }
3347if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3348 $as_echo_n "(cached) " >&6
3349else
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352else
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_ac_ct_CC="$ac_prog"
3361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364done
3365done
3366IFS=$as_save_IFS
3367
3368fi
3369fi
3370ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3373$as_echo "$ac_ct_CC" >&6; }
3374else
3375 { $as_echo "$as_me:$LINENO: result: no" >&5
3376$as_echo "no" >&6; }
3377fi
3378
3379
3380 test -n "$ac_ct_CC" && break
3381done
3382
3383 if test "x$ac_ct_CC" = x; then
3384 CC=""
3385 else
3386 case $cross_compiling:$ac_tool_warned in
3387yes:)
3388{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390ac_tool_warned=yes ;;
3391esac
3392 CC=$ac_ct_CC
3393 fi
3394fi
3395
3396fi
3397
3398
3399test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3402See \`config.log' for more details." >&5
3403$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3404See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }; }
3406
3407# Provide some information about the compiler.
3408$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3409set X $ac_compile
3410ac_compiler=$2
3411{ (ac_try="$ac_compiler --version >&5"
3412case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415esac
3416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3417$as_echo "$ac_try_echo") >&5
3418 (eval "$ac_compiler --version >&5") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }
3422{ (ac_try="$ac_compiler -v >&5"
3423case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426esac
3427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3428$as_echo "$ac_try_echo") >&5
3429 (eval "$ac_compiler -v >&5") 2>&5
3430 ac_status=$?
3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }
3433{ (ac_try="$ac_compiler -V >&5"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439$as_echo "$ac_try_echo") >&5
3440 (eval "$ac_compiler -V >&5") 2>&5
3441 ac_status=$?
3442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }
3444
3445cat >conftest.$ac_ext <<_ACEOF
3446/* confdefs.h. */
3447_ACEOF
3448cat confdefs.h >>conftest.$ac_ext
3449cat >>conftest.$ac_ext <<_ACEOF
3450/* end confdefs.h. */
3451
3452int
3453main ()
3454{
3455
3456 ;
3457 return 0;
3458}
3459_ACEOF
3460ac_clean_files_save=$ac_clean_files
3461ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3462# Try to create an executable without -o first, disregard a.out.
3463# It will help us diagnose broken compilers, and finding out an intuition
3464# of exeext.
3465{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3466$as_echo_n "checking for C compiler default output file name... " >&6; }
3467ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3468
3469# The possible output files:
3470ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3471
3472ac_rmfiles=
3473for ac_file in $ac_files
3474do
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3478 esac
3479done
3480rm -f $ac_rmfiles
3481
3482if { (ac_try="$ac_link_default"
3483case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486esac
3487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3488$as_echo "$ac_try_echo") >&5
3489 (eval "$ac_link_default") 2>&5
3490 ac_status=$?
3491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); }; then
3493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3494# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3495# in a Makefile. We should not override ac_cv_exeext if it was cached,
3496# so that the user can short-circuit this test for compilers unknown to
3497# Autoconf.
3498for ac_file in $ac_files ''
3499do
3500 test -f "$ac_file" || continue
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3503 ;;
3504 [ab].out )
3505 # We found the default executable, but exeext='' is most
3506 # certainly right.
3507 break;;
3508 *.* )
3509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3510 then :; else
3511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512 fi
3513 # We set ac_cv_exeext here because the later test for it is not
3514 # safe: cross compilers may not add the suffix if given an `-o'
3515 # argument, so we may need to know it at that point already.
3516 # Even if this section looks crufty: it has the advantage of
3517 # actually working.
3518 break;;
3519 * )
3520 break;;
3521 esac
3522done
3523test "$ac_cv_exeext" = no && ac_cv_exeext=
3524
3525else
3526 ac_file=''
3527fi
3528
3529{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3530$as_echo "$ac_file" >&6; }
3531if test -z "$ac_file"; then
3532 $as_echo "$as_me: failed program was:" >&5
3533sed 's/^/| /' conftest.$ac_ext >&5
3534
3535{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3538See \`config.log' for more details." >&5
3539$as_echo "$as_me: error: C compiler cannot create executables
3540See \`config.log' for more details." >&2;}
3541 { (exit 77); exit 77; }; }; }
3542fi
3543
3544ac_exeext=$ac_cv_exeext
3545
3546# Check that the compiler produces executables we can run. If not, either
3547# the compiler is broken, or we cross compile.
3548{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3549$as_echo_n "checking whether the C compiler works... " >&6; }
3550# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3551# If not cross compiling, check that we can run a simple program.
3552if test "$cross_compiling" != yes; then
3553 if { ac_try='./$ac_file'
3554 { (case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557esac
3558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559$as_echo "$ac_try_echo") >&5
3560 (eval "$ac_try") 2>&5
3561 ac_status=$?
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); }; }; then
3564 cross_compiling=no
3565 else
3566 if test "$cross_compiling" = maybe; then
3567 cross_compiling=yes
3568 else
3569 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3572If you meant to cross compile, use \`--host'.
3573See \`config.log' for more details." >&5
3574$as_echo "$as_me: error: cannot run C compiled programs.
3575If you meant to cross compile, use \`--host'.
3576See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }; }
3578 fi
3579 fi
3580fi
3581{ $as_echo "$as_me:$LINENO: result: yes" >&5
3582$as_echo "yes" >&6; }
3583
3584rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3585ac_clean_files=$ac_clean_files_save
3586# Check that the compiler produces executables we can run. If not, either
3587# the compiler is broken, or we cross compile.
3588{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3589$as_echo_n "checking whether we are cross compiling... " >&6; }
3590{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3591$as_echo "$cross_compiling" >&6; }
3592
3593{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3594$as_echo_n "checking for suffix of executables... " >&6; }
3595if { (ac_try="$ac_link"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3601$as_echo "$ac_try_echo") >&5
3602 (eval "$ac_link") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; then
3606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3607# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3608# work properly (i.e., refer to `conftest.exe'), while it won't with
3609# `rm'.
3610for ac_file in conftest.exe conftest conftest.*; do
3611 test -f "$ac_file" || continue
3612 case $ac_file in
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3615 break;;
3616 * ) break;;
3617 esac
3618done
3619else
3620 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3623See \`config.log' for more details." >&5
3624$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3625See \`config.log' for more details." >&2;}
3626 { (exit 1); exit 1; }; }; }
3627fi
3628
3629rm -f conftest$ac_cv_exeext
3630{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3631$as_echo "$ac_cv_exeext" >&6; }
3632
3633rm -f conftest.$ac_ext
3634EXEEXT=$ac_cv_exeext
3635ac_exeext=$EXEEXT
3636{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3637$as_echo_n "checking for suffix of object files... " >&6; }
3638if test "${ac_cv_objext+set}" = set; then
3639 $as_echo_n "(cached) " >&6
3640else
3641 cat >conftest.$ac_ext <<_ACEOF
3642/* confdefs.h. */
3643_ACEOF
3644cat confdefs.h >>conftest.$ac_ext
3645cat >>conftest.$ac_ext <<_ACEOF
3646/* end confdefs.h. */
3647
3648int
3649main ()
3650{
3651
3652 ;
3653 return 0;
3654}
3655_ACEOF
3656rm -f conftest.o conftest.obj
3657if { (ac_try="$ac_compile"
3658case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663$as_echo "$ac_try_echo") >&5
3664 (eval "$ac_compile") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; then
3668 for ac_file in conftest.o conftest.obj conftest.*; do
3669 test -f "$ac_file" || continue;
3670 case $ac_file in
3671 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3672 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3673 break;;
3674 esac
3675done
3676else
3677 $as_echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3683See \`config.log' for more details." >&5
3684$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3685See \`config.log' for more details." >&2;}
3686 { (exit 1); exit 1; }; }; }
3687fi
3688
3689rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690fi
3691{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3692$as_echo "$ac_cv_objext" >&6; }
3693OBJEXT=$ac_cv_objext
3694ac_objext=$OBJEXT
3695{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3696$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697if test "${ac_cv_c_compiler_gnu+set}" = set; then
3698 $as_echo_n "(cached) " >&6
3699else
3700 cat >conftest.$ac_ext <<_ACEOF
3701/* confdefs.h. */
3702_ACEOF
3703cat confdefs.h >>conftest.$ac_ext
3704cat >>conftest.$ac_ext <<_ACEOF
3705/* end confdefs.h. */
3706
3707int
3708main ()
3709{
3710#ifndef __GNUC__
3711 choke me
3712#endif
3713
3714 ;
3715 return 0;
3716}
3717_ACEOF
3718rm -f conftest.$ac_objext
3719if { (ac_try="$ac_compile"
3720case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723esac
3724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3725$as_echo "$ac_try_echo") >&5
3726 (eval "$ac_compile") 2>conftest.er1
3727 ac_status=$?
3728 grep -v '^ *+' conftest.er1 >conftest.err
3729 rm -f conftest.er1
3730 cat conftest.err >&5
3731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } && {
3733 test -z "$ac_c_werror_flag" ||
3734 test ! -s conftest.err
3735 } && test -s conftest.$ac_objext; then
3736 ac_compiler_gnu=yes
3737else
3738 $as_echo "$as_me: failed program was:" >&5
3739sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 ac_compiler_gnu=no
3742fi
3743
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745ac_cv_c_compiler_gnu=$ac_compiler_gnu
3746
3747fi
3748{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3749$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3750if test $ac_compiler_gnu = yes; then
3751 GCC=yes
3752else
3753 GCC=
3754fi
3755ac_test_CFLAGS=${CFLAGS+set}
3756ac_save_CFLAGS=$CFLAGS
3757{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3758$as_echo_n "checking whether $CC accepts -g... " >&6; }
3759if test "${ac_cv_prog_cc_g+set}" = set; then
3760 $as_echo_n "(cached) " >&6
3761else
3762 ac_save_c_werror_flag=$ac_c_werror_flag
3763 ac_c_werror_flag=yes
3764 ac_cv_prog_cc_g=no
3765 CFLAGS="-g"
3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
3772
3773int
3774main ()
3775{
3776
3777 ;
3778 return 0;
3779}
3780_ACEOF
3781rm -f conftest.$ac_objext
3782if { (ac_try="$ac_compile"
3783case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788$as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3799 ac_cv_prog_cc_g=yes
3800else
3801 $as_echo "$as_me: failed program was:" >&5
3802sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 CFLAGS=""
3805 cat >conftest.$ac_ext <<_ACEOF
3806/* confdefs.h. */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h. */
3811
3812int
3813main ()
3814{
3815
3816 ;
3817 return 0;
3818}
3819_ACEOF
3820rm -f conftest.$ac_objext
3821if { (ac_try="$ac_compile"
3822case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3827$as_echo "$ac_try_echo") >&5
3828 (eval "$ac_compile") 2>conftest.er1
3829 ac_status=$?
3830 grep -v '^ *+' conftest.er1 >conftest.err
3831 rm -f conftest.er1
3832 cat conftest.err >&5
3833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } && {
3835 test -z "$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3837 } && test -s conftest.$ac_objext; then
3838 :
3839else
3840 $as_echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843 ac_c_werror_flag=$ac_save_c_werror_flag
3844 CFLAGS="-g"
3845 cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h. */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h. */
3851
3852int
3853main ()
3854{
3855
3856 ;
3857 return 0;
3858}
3859_ACEOF
3860rm -f conftest.$ac_objext
3861if { (ac_try="$ac_compile"
3862case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3867$as_echo "$ac_try_echo") >&5
3868 (eval "$ac_compile") 2>conftest.er1
3869 ac_status=$?
3870 grep -v '^ *+' conftest.er1 >conftest.err
3871 rm -f conftest.er1
3872 cat conftest.err >&5
3873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest.$ac_objext; then
3878 ac_cv_prog_cc_g=yes
3879else
3880 $as_echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883
3884fi
3885
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887fi
3888
3889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890fi
3891
3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 ac_c_werror_flag=$ac_save_c_werror_flag
3894fi
3895{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3896$as_echo "$ac_cv_prog_cc_g" >&6; }
3897if test "$ac_test_CFLAGS" = set; then
3898 CFLAGS=$ac_save_CFLAGS
3899elif test $ac_cv_prog_cc_g = yes; then
3900 if test "$GCC" = yes; then
3901 CFLAGS="-g -O2"
3902 else
3903 CFLAGS="-g"
3904 fi
3905else
3906 if test "$GCC" = yes; then
3907 CFLAGS="-O2"
3908 else
3909 CFLAGS=
3910 fi
3911fi
3912{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3914if test "${ac_cv_prog_cc_c89+set}" = set; then
3915 $as_echo_n "(cached) " >&6
3916else
3917 ac_cv_prog_cc_c89=no
3918ac_save_CC=$CC
3919cat >conftest.$ac_ext <<_ACEOF
3920/* confdefs.h. */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
3924/* end confdefs.h. */
3925#include <stdarg.h>
3926#include <stdio.h>
3927#include <sys/types.h>
3928#include <sys/stat.h>
3929/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3930struct buf { int x; };
3931FILE * (*rcsopen) (struct buf *, struct stat *, int);
3932static char *e (p, i)
3933 char **p;
3934 int i;
3935{
3936 return p[i];
3937}
3938static char *f (char * (*g) (char **, int), char **p, ...)
3939{
3940 char *s;
3941 va_list v;
3942 va_start (v,p);
3943 s = g (p, va_arg (v,int));
3944 va_end (v);
3945 return s;
3946}
3947
3948/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3949 function prototypes and stuff, but not '\xHH' hex character constants.
3950 These don't provoke an error unfortunately, instead are silently treated
3951 as 'x'. The following induces an error, until -std is added to get
3952 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3953 array size at least. It's necessary to write '\x00'==0 to get something
3954 that's true only with -std. */
3955int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3956
3957/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3958 inside strings and character constants. */
3959#define FOO(x) 'x'
3960int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3961
3962int test (int i, double x);
3963struct s1 {int (*f) (int a);};
3964struct s2 {int (*f) (double a);};
3965int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3966int argc;
3967char **argv;
3968int
3969main ()
3970{
3971return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3977 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978do
3979 CC="$ac_save_CC $ac_arg"
3980 rm -f conftest.$ac_objext
3981if { (ac_try="$ac_compile"
3982case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985esac
3986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3987$as_echo "$ac_try_echo") >&5
3988 (eval "$ac_compile") 2>conftest.er1
3989 ac_status=$?
3990 grep -v '^ *+' conftest.er1 >conftest.err
3991 rm -f conftest.er1
3992 cat conftest.err >&5
3993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && {
3995 test -z "$ac_c_werror_flag" ||
3996 test ! -s conftest.err
3997 } && test -s conftest.$ac_objext; then
3998 ac_cv_prog_cc_c89=$ac_arg
3999else
4000 $as_echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003
4004fi
4005
4006rm -f core conftest.err conftest.$ac_objext
4007 test "x$ac_cv_prog_cc_c89" != "xno" && break
4008done
4009rm -f conftest.$ac_ext
4010CC=$ac_save_CC
4011
4012fi
4013# AC_CACHE_VAL
4014case "x$ac_cv_prog_cc_c89" in
4015 x)
4016 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4017$as_echo "none needed" >&6; } ;;
4018 xno)
4019 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4020$as_echo "unsupported" >&6; } ;;
4021 *)
4022 CC="$CC $ac_cv_prog_cc_c89"
4023 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4024$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4025esac
4026
4027
4028ac_ext=c
4029ac_cpp='$CPP $CPPFLAGS'
4030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033DEPDIR="${am__leading_dot}deps"
4034
4035ac_config_commands="$ac_config_commands depfiles"
4036
4037
4038am_make=${MAKE-make}
4039cat > confinc << 'END'
4040am__doit:
4041 @echo this is the am__doit target
4042.PHONY: am__doit
4043END
4044# If we don't find an include directive, just comment out the code.
4045{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4046$as_echo_n "checking for style of include used by $am_make... " >&6; }
4047am__include="#"
4048am__quote=
4049_am_result=none
4050# First try GNU make style include.
4051echo "include confinc" > confmf
4052# Ignore all kinds of additional output from `make'.
4053case `$am_make -s -f confmf 2> /dev/null` in #(
4054*the\ am__doit\ target*)
4055 am__include=include
4056 am__quote=
4057 _am_result=GNU
4058 ;;
4059esac
4060# Now try BSD make style include.
4061if test "$am__include" = "#"; then
4062 echo '.include "confinc"' > confmf
4063 case `$am_make -s -f confmf 2> /dev/null` in #(
4064 *the\ am__doit\ target*)
4065 am__include=.include
4066 am__quote="\""
4067 _am_result=BSD
4068 ;;
4069 esac
4070fi
4071
4072
4073{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4074$as_echo "$_am_result" >&6; }
4075rm -f confinc confmf
4076
4077# Check whether --enable-dependency-tracking was given.
4078if test "${enable_dependency_tracking+set}" = set; then
4079 enableval=$enable_dependency_tracking;
4080fi
4081
4082if test "x$enable_dependency_tracking" != xno; then
4083 am_depcomp="$ac_aux_dir/depcomp"
4084 AMDEPBACKSLASH='\'
4085fi
4086 if test "x$enable_dependency_tracking" != xno; then
4087 AMDEP_TRUE=
4088 AMDEP_FALSE='#'
4089else
4090 AMDEP_TRUE='#'
4091 AMDEP_FALSE=
4092fi
4093
4094
4095
4096depcc="$CC" am_compiler_list=
4097
4098{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4099$as_echo_n "checking dependency style of $depcc... " >&6; }
4100if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4101 $as_echo_n "(cached) " >&6
4102else
4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104 # We make a subdir and do the tests there. Otherwise we can end up
4105 # making bogus files that we don't know about and never remove. For
4106 # instance it was reported that on HP-UX the gcc test will end up
4107 # making a dummy file named `D' -- because `-MD' means `put the output
4108 # in D'.
4109 mkdir conftest.dir
4110 # Copy depcomp to subdir because otherwise we won't find it if we're
4111 # using a relative directory.
4112 cp "$am_depcomp" conftest.dir
4113 cd conftest.dir
4114 # We will build objects and dependencies in a subdirectory because
4115 # it helps to detect inapplicable dependency modes. For instance
4116 # both Tru64's cc and ICC support -MD to output dependencies as a
4117 # side effect of compilation, but ICC will put the dependencies in
4118 # the current directory while Tru64 will put them in the object
4119 # directory.
4120 mkdir sub
4121
4122 am_cv_CC_dependencies_compiler_type=none
4123 if test "$am_compiler_list" = ""; then
4124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4125 fi
4126 am__universal=false
4127 case " $depcc " in #(
4128 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4129 esac
4130
4131 for depmode in $am_compiler_list; do
4132 # Setup a source with many dependencies, because some compilers
4133 # like to wrap large dependency lists on column 80 (with \), and
4134 # we should not choose a depcomp mode which is confused by this.
4135 #
4136 # We need to recreate these files for each test, as the compiler may
4137 # overwrite some of them when testing with obscure command lines.
4138 # This happens at least with the AIX C compiler.
4139 : > sub/conftest.c
4140 for i in 1 2 3 4 5 6; do
4141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4143 # Solaris 8's {/usr,}/bin/sh.
4144 touch sub/conftst$i.h
4145 done
4146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4147
4148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4149 # mode. It turns out that the SunPro C++ compiler does not properly
4150 # handle `-M -o', and we need to detect this. Also, some Intel
4151 # versions had trouble with output in subdirs
4152 am__obj=sub/conftest.${OBJEXT-o}
4153 am__minus_obj="-o $am__obj"
4154 case $depmode in
4155 gcc)
4156 # This depmode causes a compiler race in universal mode.
4157 test "$am__universal" = false || continue
4158 ;;
4159 nosideeffect)
4160 # after this tag, mechanisms are not by side-effect, so they'll
4161 # only be used when explicitly requested
4162 if test "x$enable_dependency_tracking" = xyes; then
4163 continue
4164 else
4165 break
4166 fi
4167 ;;
4168 msvisualcpp | msvcmsys)
4169 # This compiler won't grok `-c -o', but also, the minuso test has
4170 # not run yet. These depmodes are late enough in the game, and
4171 # so weak that their functioning should not be impacted.
4172 am__obj=conftest.${OBJEXT-o}
4173 am__minus_obj=
4174 ;;
4175 none) break ;;
4176 esac
4177 if depmode=$depmode \
4178 source=sub/conftest.c object=$am__obj \
4179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4180 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4181 >/dev/null 2>conftest.err &&
4182 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4184 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4186 # icc doesn't choke on unknown options, it will just issue warnings
4187 # or remarks (even with -Werror). So we grep stderr for any message
4188 # that says an option was ignored or not supported.
4189 # When given -MP, icc 7.0 and 7.1 complain thusly:
4190 # icc: Command line warning: ignoring option '-M'; no argument required
4191 # The diagnosis changed in icc 8.0:
4192 # icc: Command line remark: option '-MP' not supported
4193 if (grep 'ignoring option' conftest.err ||
4194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4195 am_cv_CC_dependencies_compiler_type=$depmode
4196 break
4197 fi
4198 fi
4199 done
4200
4201 cd ..
4202 rm -rf conftest.dir
4203else
4204 am_cv_CC_dependencies_compiler_type=none
4205fi
4206
4207fi
4208{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4209$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4210CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4211
4212 if
4213 test "x$enable_dependency_tracking" != xno \
4214 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4215 am__fastdepCC_TRUE=
4216 am__fastdepCC_FALSE='#'
4217else
4218 am__fastdepCC_TRUE='#'
4219 am__fastdepCC_FALSE=
4220fi
4221
4222
4223case `pwd` in
4224 *\ * | *\ *)
4225 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4226$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4227esac
4228
4229
4230
135cf6a8
BB
4231macro_version='2.2.6b'
4232macro_revision='1.3017'
e70e591c
BB
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246ltmain="$ac_aux_dir/ltmain.sh"
4247
4248{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4249$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4250if test "${ac_cv_path_SED+set}" = set; then
4251 $as_echo_n "(cached) " >&6
4252else
4253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4254 for ac_i in 1 2 3 4 5 6 7; do
4255 ac_script="$ac_script$as_nl$ac_script"
4256 done
4257 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4258 $as_unset ac_script || ac_script=
4259 if test -z "$SED"; then
4260 ac_path_SED_found=false
4261 # Loop through the user's path and test for each of PROGNAME-LIST
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
4267 for ac_prog in sed gsed; do
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4270 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4271# Check for GNU ac_path_SED and select it if it is found.
4272 # Check for GNU $ac_path_SED
4273case `"$ac_path_SED" --version 2>&1` in
4274*GNU*)
4275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4276*)
4277 ac_count=0
4278 $as_echo_n 0123456789 >"conftest.in"
4279 while :
4280 do
4281 cat "conftest.in" "conftest.in" >"conftest.tmp"
4282 mv "conftest.tmp" "conftest.in"
4283 cp "conftest.in" "conftest.nl"
4284 $as_echo '' >> "conftest.nl"
4285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287 ac_count=`expr $ac_count + 1`
4288 if test $ac_count -gt ${ac_path_SED_max-0}; then
4289 # Best one so far, save it but keep looking for a better one
4290 ac_cv_path_SED="$ac_path_SED"
4291 ac_path_SED_max=$ac_count
4292 fi
4293 # 10*(2^10) chars as input seems more than enough
4294 test $ac_count -gt 10 && break
4295 done
4296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297esac
4298
4299 $ac_path_SED_found && break 3
4300 done
4301 done
4302done
4303IFS=$as_save_IFS
4304 if test -z "$ac_cv_path_SED"; then
4305 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4306$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4307 { (exit 1); exit 1; }; }
4308 fi
4309else
4310 ac_cv_path_SED=$SED
4311fi
4312
4313fi
4314{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4315$as_echo "$ac_cv_path_SED" >&6; }
4316 SED="$ac_cv_path_SED"
4317 rm -f conftest.sed
4318
4319test -z "$SED" && SED=sed
4320Xsed="$SED -e 1s/^X//"
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4333$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4334if test "${ac_cv_path_GREP+set}" = set; then
4335 $as_echo_n "(cached) " >&6
4336else
4337 if test -z "$GREP"; then
4338 ac_path_GREP_found=false
4339 # Loop through the user's path and test for each of PROGNAME-LIST
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_prog in grep ggrep; do
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4348 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4349# Check for GNU ac_path_GREP and select it if it is found.
4350 # Check for GNU $ac_path_GREP
4351case `"$ac_path_GREP" --version 2>&1` in
4352*GNU*)
4353 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4354*)
4355 ac_count=0
4356 $as_echo_n 0123456789 >"conftest.in"
4357 while :
4358 do
4359 cat "conftest.in" "conftest.in" >"conftest.tmp"
4360 mv "conftest.tmp" "conftest.in"
4361 cp "conftest.in" "conftest.nl"
4362 $as_echo 'GREP' >> "conftest.nl"
4363 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365 ac_count=`expr $ac_count + 1`
4366 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4367 # Best one so far, save it but keep looking for a better one
4368 ac_cv_path_GREP="$ac_path_GREP"
4369 ac_path_GREP_max=$ac_count
4370 fi
4371 # 10*(2^10) chars as input seems more than enough
4372 test $ac_count -gt 10 && break
4373 done
4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375esac
4376
4377 $ac_path_GREP_found && break 3
4378 done
4379 done
4380done
4381IFS=$as_save_IFS
4382 if test -z "$ac_cv_path_GREP"; then
4383 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4384$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4385 { (exit 1); exit 1; }; }
4386 fi
4387else
4388 ac_cv_path_GREP=$GREP
4389fi
4390
4391fi
4392{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4393$as_echo "$ac_cv_path_GREP" >&6; }
4394 GREP="$ac_cv_path_GREP"
4395
4396
4397{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4398$as_echo_n "checking for egrep... " >&6; }
4399if test "${ac_cv_path_EGREP+set}" = set; then
4400 $as_echo_n "(cached) " >&6
4401else
4402 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4403 then ac_cv_path_EGREP="$GREP -E"
4404 else
4405 if test -z "$EGREP"; then
4406 ac_path_EGREP_found=false
4407 # Loop through the user's path and test for each of PROGNAME-LIST
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_prog in egrep; do
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4416 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4417# Check for GNU ac_path_EGREP and select it if it is found.
4418 # Check for GNU $ac_path_EGREP
4419case `"$ac_path_EGREP" --version 2>&1` in
4420*GNU*)
4421 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4422*)
4423 ac_count=0
4424 $as_echo_n 0123456789 >"conftest.in"
4425 while :
4426 do
4427 cat "conftest.in" "conftest.in" >"conftest.tmp"
4428 mv "conftest.tmp" "conftest.in"
4429 cp "conftest.in" "conftest.nl"
4430 $as_echo 'EGREP' >> "conftest.nl"
4431 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4433 ac_count=`expr $ac_count + 1`
4434 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4435 # Best one so far, save it but keep looking for a better one
4436 ac_cv_path_EGREP="$ac_path_EGREP"
4437 ac_path_EGREP_max=$ac_count
4438 fi
4439 # 10*(2^10) chars as input seems more than enough
4440 test $ac_count -gt 10 && break
4441 done
4442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4443esac
4444
4445 $ac_path_EGREP_found && break 3
4446 done
4447 done
4448done
4449IFS=$as_save_IFS
4450 if test -z "$ac_cv_path_EGREP"; then
4451 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4452$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4453 { (exit 1); exit 1; }; }
4454 fi
4455else
4456 ac_cv_path_EGREP=$EGREP
4457fi
4458
4459 fi
4460fi
4461{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4462$as_echo "$ac_cv_path_EGREP" >&6; }
4463 EGREP="$ac_cv_path_EGREP"
4464
4465
4466{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4467$as_echo_n "checking for fgrep... " >&6; }
4468if test "${ac_cv_path_FGREP+set}" = set; then
4469 $as_echo_n "(cached) " >&6
4470else
4471 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4472 then ac_cv_path_FGREP="$GREP -F"
4473 else
4474 if test -z "$FGREP"; then
4475 ac_path_FGREP_found=false
4476 # Loop through the user's path and test for each of PROGNAME-LIST
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_prog in fgrep; do
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4485 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4486# Check for GNU ac_path_FGREP and select it if it is found.
4487 # Check for GNU $ac_path_FGREP
4488case `"$ac_path_FGREP" --version 2>&1` in
4489*GNU*)
4490 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4491*)
4492 ac_count=0
4493 $as_echo_n 0123456789 >"conftest.in"
4494 while :
4495 do
4496 cat "conftest.in" "conftest.in" >"conftest.tmp"
4497 mv "conftest.tmp" "conftest.in"
4498 cp "conftest.in" "conftest.nl"
4499 $as_echo 'FGREP' >> "conftest.nl"
4500 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4502 ac_count=`expr $ac_count + 1`
4503 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4504 # Best one so far, save it but keep looking for a better one
4505 ac_cv_path_FGREP="$ac_path_FGREP"
4506 ac_path_FGREP_max=$ac_count
4507 fi
4508 # 10*(2^10) chars as input seems more than enough
4509 test $ac_count -gt 10 && break
4510 done
4511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4512esac
4513
4514 $ac_path_FGREP_found && break 3
4515 done
4516 done
4517done
4518IFS=$as_save_IFS
4519 if test -z "$ac_cv_path_FGREP"; then
4520 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4521$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4522 { (exit 1); exit 1; }; }
4523 fi
4524else
4525 ac_cv_path_FGREP=$FGREP
4526fi
4527
4528 fi
4529fi
4530{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4531$as_echo "$ac_cv_path_FGREP" >&6; }
4532 FGREP="$ac_cv_path_FGREP"
4533
4534
4535test -z "$GREP" && GREP=grep
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555# Check whether --with-gnu-ld was given.
4556if test "${with_gnu_ld+set}" = set; then
4557 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4558else
4559 with_gnu_ld=no
4560fi
4561
4562ac_prog=ld
4563if test "$GCC" = yes; then
4564 # Check if gcc -print-prog-name=ld gives a path.
4565 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4566$as_echo_n "checking for ld used by $CC... " >&6; }
4567 case $host in
4568 *-*-mingw*)
4569 # gcc leaves a trailing carriage return which upsets mingw
4570 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4571 *)
4572 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4573 esac
4574 case $ac_prog in
4575 # Accept absolute paths.
4576 [\\/]* | ?:[\\/]*)
4577 re_direlt='/[^/][^/]*/\.\./'
4578 # Canonicalize the pathname of ld
4579 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4580 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4581 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4582 done
4583 test -z "$LD" && LD="$ac_prog"
4584 ;;
4585 "")
4586 # If it fails, then pretend we aren't using GCC.
4587 ac_prog=ld
4588 ;;
4589 *)
4590 # If it is relative, then search for the first ld in PATH.
4591 with_gnu_ld=unknown
4592 ;;
4593 esac
4594elif test "$with_gnu_ld" = yes; then
4595 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4596$as_echo_n "checking for GNU ld... " >&6; }
4597else
4598 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4599$as_echo_n "checking for non-GNU ld... " >&6; }
4600fi
4601if test "${lt_cv_path_LD+set}" = set; then
4602 $as_echo_n "(cached) " >&6
4603else
4604 if test -z "$LD"; then
4605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4606 for ac_dir in $PATH; do
4607 IFS="$lt_save_ifs"
4608 test -z "$ac_dir" && ac_dir=.
4609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4610 lt_cv_path_LD="$ac_dir/$ac_prog"
4611 # Check to see if the program is GNU ld. I'd rather use --version,
4612 # but apparently some variants of GNU ld only accept -v.
4613 # Break only if it was the GNU/non-GNU ld that we prefer.
4614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4615 *GNU* | *'with BFD'*)
4616 test "$with_gnu_ld" != no && break
4617 ;;
4618 *)
4619 test "$with_gnu_ld" != yes && break
4620 ;;
4621 esac
4622 fi
4623 done
4624 IFS="$lt_save_ifs"
4625else
4626 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4627fi
4628fi
4629
4630LD="$lt_cv_path_LD"
4631if test -n "$LD"; then
4632 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4633$as_echo "$LD" >&6; }
4634else
4635 { $as_echo "$as_me:$LINENO: result: no" >&5
4636$as_echo "no" >&6; }
4637fi
4638test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4639$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4640 { (exit 1); exit 1; }; }
4641{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4642$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4643if test "${lt_cv_prog_gnu_ld+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4645else
4646 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4647case `$LD -v 2>&1 </dev/null` in
4648*GNU* | *'with BFD'*)
4649 lt_cv_prog_gnu_ld=yes
4650 ;;
4651*)
4652 lt_cv_prog_gnu_ld=no
4653 ;;
4654esac
4655fi
4656{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4657$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4658with_gnu_ld=$lt_cv_prog_gnu_ld
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4669$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4670if test "${lt_cv_path_NM+set}" = set; then
4671 $as_echo_n "(cached) " >&6
4672else
4673 if test -n "$NM"; then
4674 # Let the user override the test.
4675 lt_cv_path_NM="$NM"
4676else
4677 lt_nm_to_check="${ac_tool_prefix}nm"
4678 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4679 lt_nm_to_check="$lt_nm_to_check nm"
4680 fi
4681 for lt_tmp_nm in $lt_nm_to_check; do
4682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4683 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4684 IFS="$lt_save_ifs"
4685 test -z "$ac_dir" && ac_dir=.
4686 tmp_nm="$ac_dir/$lt_tmp_nm"
4687 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4688 # Check to see if the nm accepts a BSD-compat flag.
4689 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4690 # nm: unknown option "B" ignored
4691 # Tru64's nm complains that /dev/null is an invalid object file
4692 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4693 */dev/null* | *'Invalid file or object type'*)
4694 lt_cv_path_NM="$tmp_nm -B"
4695 break
4696 ;;
4697 *)
4698 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4699 */dev/null*)
4700 lt_cv_path_NM="$tmp_nm -p"
4701 break
4702 ;;
4703 *)
4704 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4705 continue # so that we can try to find one that supports BSD flags
4706 ;;
4707 esac
4708 ;;
4709 esac
4710 fi
4711 done
4712 IFS="$lt_save_ifs"
4713 done
4714 : ${lt_cv_path_NM=no}
4715fi
4716fi
4717{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4718$as_echo "$lt_cv_path_NM" >&6; }
4719if test "$lt_cv_path_NM" != "no"; then
4720 NM="$lt_cv_path_NM"
4721else
4722 # Didn't find any BSD compatible name lister, look for dumpbin.
4723 if test -n "$ac_tool_prefix"; then
4724 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4725 do
4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4729$as_echo_n "checking for $ac_word... " >&6; }
4730if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4731 $as_echo_n "(cached) " >&6
4732else
4733 if test -n "$DUMPBIN"; then
4734 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747done
4748done
4749IFS=$as_save_IFS
4750
4751fi
4752fi
4753DUMPBIN=$ac_cv_prog_DUMPBIN
4754if test -n "$DUMPBIN"; then
4755 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4756$as_echo "$DUMPBIN" >&6; }
4757else
4758 { $as_echo "$as_me:$LINENO: result: no" >&5
4759$as_echo "no" >&6; }
4760fi
4761
4762
4763 test -n "$DUMPBIN" && break
4764 done
4765fi
4766if test -z "$DUMPBIN"; then
4767 ac_ct_DUMPBIN=$DUMPBIN
4768 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4769do
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771set dummy $ac_prog; ac_word=$2
4772{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4773$as_echo_n "checking for $ac_word... " >&6; }
4774if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4775 $as_echo_n "(cached) " >&6
4776else
4777 if test -n "$ac_ct_DUMPBIN"; then
4778 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793IFS=$as_save_IFS
4794
4795fi
4796fi
4797ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4798if test -n "$ac_ct_DUMPBIN"; then
4799 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4800$as_echo "$ac_ct_DUMPBIN" >&6; }
4801else
4802 { $as_echo "$as_me:$LINENO: result: no" >&5
4803$as_echo "no" >&6; }
4804fi
4805
4806
4807 test -n "$ac_ct_DUMPBIN" && break
4808done
4809
4810 if test "x$ac_ct_DUMPBIN" = x; then
4811 DUMPBIN=":"
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814yes:)
4815{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817ac_tool_warned=yes ;;
4818esac
4819 DUMPBIN=$ac_ct_DUMPBIN
4820 fi
4821fi
4822
4823
4824 if test "$DUMPBIN" != ":"; then
4825 NM="$DUMPBIN"
4826 fi
4827fi
4828test -z "$NM" && NM=nm
4829
4830
4831
4832
4833
4834
4835{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4836$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4837if test "${lt_cv_nm_interface+set}" = set; then
4838 $as_echo_n "(cached) " >&6
4839else
4840 lt_cv_nm_interface="BSD nm"
4841 echo "int some_variable = 0;" > conftest.$ac_ext
1c5de20a 4842 (eval echo "\"\$as_me:4842: $ac_compile\"" >&5)
e70e591c
BB
4843 (eval "$ac_compile" 2>conftest.err)
4844 cat conftest.err >&5
1c5de20a 4845 (eval echo "\"\$as_me:4845: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
e70e591c
BB
4846 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4847 cat conftest.err >&5
1c5de20a 4848 (eval echo "\"\$as_me:4848: output\"" >&5)
e70e591c
BB
4849 cat conftest.out >&5
4850 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4851 lt_cv_nm_interface="MS dumpbin"
4852 fi
4853 rm -f conftest*
4854fi
4855{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4856$as_echo "$lt_cv_nm_interface" >&6; }
4857
4858{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4859$as_echo_n "checking whether ln -s works... " >&6; }
4860LN_S=$as_ln_s
4861if test "$LN_S" = "ln -s"; then
4862 { $as_echo "$as_me:$LINENO: result: yes" >&5
4863$as_echo "yes" >&6; }
4864else
4865 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4866$as_echo "no, using $LN_S" >&6; }
4867fi
4868
4869# find the maximum length of command line arguments
4870{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4871$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4872if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4873 $as_echo_n "(cached) " >&6
4874else
4875 i=0
4876 teststring="ABCD"
4877
4878 case $build_os in
4879 msdosdjgpp*)
4880 # On DJGPP, this test can blow up pretty badly due to problems in libc
4881 # (any single argument exceeding 2000 bytes causes a buffer overrun
4882 # during glob expansion). Even if it were fixed, the result of this
4883 # check would be larger than it should be.
4884 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4885 ;;
4886
4887 gnu*)
4888 # Under GNU Hurd, this test is not required because there is
4889 # no limit to the length of command line arguments.
4890 # Libtool will interpret -1 as no limit whatsoever
4891 lt_cv_sys_max_cmd_len=-1;
4892 ;;
4893
4894 cygwin* | mingw* | cegcc*)
4895 # On Win9x/ME, this test blows up -- it succeeds, but takes
4896 # about 5 minutes as the teststring grows exponentially.
4897 # Worse, since 9x/ME are not pre-emptively multitasking,
4898 # you end up with a "frozen" computer, even though with patience
4899 # the test eventually succeeds (with a max line length of 256k).
4900 # Instead, let's just punt: use the minimum linelength reported by
4901 # all of the supported platforms: 8192 (on NT/2K/XP).
4902 lt_cv_sys_max_cmd_len=8192;
4903 ;;
4904
4905 amigaos*)
4906 # On AmigaOS with pdksh, this test takes hours, literally.
4907 # So we just punt and use a minimum line length of 8192.
4908 lt_cv_sys_max_cmd_len=8192;
4909 ;;
4910
4911 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4912 # This has been around since 386BSD, at least. Likely further.
4913 if test -x /sbin/sysctl; then
4914 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4915 elif test -x /usr/sbin/sysctl; then
4916 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4917 else
4918 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4919 fi
4920 # And add a safety zone
4921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4923 ;;
4924
4925 interix*)
4926 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4927 lt_cv_sys_max_cmd_len=196608
4928 ;;
4929
4930 osf*)
4931 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4932 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4933 # nice to cause kernel panics so lets avoid the loop below.
4934 # First set a reasonable default.
4935 lt_cv_sys_max_cmd_len=16384
4936 #
4937 if test -x /sbin/sysconfig; then
4938 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4939 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4940 esac
4941 fi
4942 ;;
4943 sco3.2v5*)
4944 lt_cv_sys_max_cmd_len=102400
4945 ;;
4946 sysv5* | sco5v6* | sysv4.2uw2*)
4947 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4948 if test -n "$kargmax"; then
4949 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4950 else
4951 lt_cv_sys_max_cmd_len=32768
4952 fi
4953 ;;
4954 *)
4955 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4956 if test -n "$lt_cv_sys_max_cmd_len"; then
4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4959 else
4960 # Make teststring a little bigger before we do anything with it.
4961 # a 1K string should be a reasonable start.
4962 for i in 1 2 3 4 5 6 7 8 ; do
4963 teststring=$teststring$teststring
4964 done
4965 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4966 # If test is not a shell built-in, we'll probably end up computing a
4967 # maximum length that is only half of the actual maximum length, but
4968 # we can't tell.
4969 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4970 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4971 test $i != 17 # 1/2 MB should be enough
4972 do
4973 i=`expr $i + 1`
4974 teststring=$teststring$teststring
4975 done
4976 # Only check the string length outside the loop.
4977 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4978 teststring=
4979 # Add a significant safety factor because C++ compilers can tack on
4980 # massive amounts of additional arguments before passing them to the
4981 # linker. It appears as though 1/2 is a usable value.
4982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4983 fi
4984 ;;
4985 esac
4986
4987fi
4988
4989if test -n $lt_cv_sys_max_cmd_len ; then
4990 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4991$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4992else
4993 { $as_echo "$as_me:$LINENO: result: none" >&5
4994$as_echo "none" >&6; }
4995fi
4996max_cmd_len=$lt_cv_sys_max_cmd_len
4997
4998
4999
5000
5001
5002
5003: ${CP="cp -f"}
5004: ${MV="mv -f"}
5005: ${RM="rm -f"}
5006
5007{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5008$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5009# Try some XSI features
5010xsi_shell=no
5011( _lt_dummy="a/b/c"
5012 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5013 = c,a/b,, \
5014 && eval 'test $(( 1 + 1 )) -eq 2 \
5015 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5016 && xsi_shell=yes
5017{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5018$as_echo "$xsi_shell" >&6; }
5019
5020
5021{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5022$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5023lt_shell_append=no
5024( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5025 >/dev/null 2>&1 \
5026 && lt_shell_append=yes
5027{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5028$as_echo "$lt_shell_append" >&6; }
5029
5030
5031if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5032 lt_unset=unset
5033else
5034 lt_unset=false
5035fi
5036
5037
5038
5039
5040
5041# test EBCDIC or ASCII
5042case `echo X|tr X '\101'` in
5043 A) # ASCII based system
5044 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5045 lt_SP2NL='tr \040 \012'
5046 lt_NL2SP='tr \015\012 \040\040'
5047 ;;
5048 *) # EBCDIC based system
5049 lt_SP2NL='tr \100 \n'
5050 lt_NL2SP='tr \r\n \100\100'
5051 ;;
5052esac
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5063$as_echo_n "checking for $LD option to reload object files... " >&6; }
5064if test "${lt_cv_ld_reload_flag+set}" = set; then
5065 $as_echo_n "(cached) " >&6
5066else
5067 lt_cv_ld_reload_flag='-r'
5068fi
5069{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5070$as_echo "$lt_cv_ld_reload_flag" >&6; }
5071reload_flag=$lt_cv_ld_reload_flag
5072case $reload_flag in
5073"" | " "*) ;;
5074*) reload_flag=" $reload_flag" ;;
5075esac
5076reload_cmds='$LD$reload_flag -o $output$reload_objs'
5077case $host_os in
5078 darwin*)
5079 if test "$GCC" = yes; then
5080 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5081 else
5082 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5083 fi
5084 ;;
5085esac
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095if test -n "$ac_tool_prefix"; then
5096 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5097set dummy ${ac_tool_prefix}objdump; ac_word=$2
5098{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5099$as_echo_n "checking for $ac_word... " >&6; }
5100if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5101 $as_echo_n "(cached) " >&6
5102else
5103 if test -n "$OBJDUMP"; then
5104 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117done
5118done
5119IFS=$as_save_IFS
5120
5121fi
5122fi
5123OBJDUMP=$ac_cv_prog_OBJDUMP
5124if test -n "$OBJDUMP"; then
5125 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5126$as_echo "$OBJDUMP" >&6; }
5127else
5128 { $as_echo "$as_me:$LINENO: result: no" >&5
5129$as_echo "no" >&6; }
5130fi
5131
5132
5133fi
5134if test -z "$ac_cv_prog_OBJDUMP"; then
5135 ac_ct_OBJDUMP=$OBJDUMP
5136 # Extract the first word of "objdump", so it can be a program name with args.
5137set dummy objdump; ac_word=$2
5138{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5139$as_echo_n "checking for $ac_word... " >&6; }
5140if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5141 $as_echo_n "(cached) " >&6
5142else
5143 if test -n "$ac_ct_OBJDUMP"; then
5144 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157done
5158done
5159IFS=$as_save_IFS
5160
5161fi
5162fi
5163ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5164if test -n "$ac_ct_OBJDUMP"; then
5165 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5166$as_echo "$ac_ct_OBJDUMP" >&6; }
5167else
5168 { $as_echo "$as_me:$LINENO: result: no" >&5
5169$as_echo "no" >&6; }
5170fi
5171
5172 if test "x$ac_ct_OBJDUMP" = x; then
5173 OBJDUMP="false"
5174 else
5175 case $cross_compiling:$ac_tool_warned in
5176yes:)
5177{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5179ac_tool_warned=yes ;;
5180esac
5181 OBJDUMP=$ac_ct_OBJDUMP
5182 fi
5183else
5184 OBJDUMP="$ac_cv_prog_OBJDUMP"
5185fi
5186
5187test -z "$OBJDUMP" && OBJDUMP=objdump
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5198$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5199if test "${lt_cv_deplibs_check_method+set}" = set; then
5200 $as_echo_n "(cached) " >&6
5201else
5202 lt_cv_file_magic_cmd='$MAGIC_CMD'
5203lt_cv_file_magic_test_file=
5204lt_cv_deplibs_check_method='unknown'
5205# Need to set the preceding variable on all platforms that support
5206# interlibrary dependencies.
5207# 'none' -- dependencies not supported.
5208# `unknown' -- same as none, but documents that we really don't know.
5209# 'pass_all' -- all dependencies passed with no checks.
5210# 'test_compile' -- check by making test program.
5211# 'file_magic [[regex]]' -- check by looking for files in library path
5212# which responds to the $file_magic_cmd with a given extended regex.
5213# If you have `file' or equivalent on your system and you're not sure
5214# whether `pass_all' will *always* work, you probably want this one.
5215
5216case $host_os in
5217aix[4-9]*)
5218 lt_cv_deplibs_check_method=pass_all
5219 ;;
5220
5221beos*)
5222 lt_cv_deplibs_check_method=pass_all
5223 ;;
5224
5225bsdi[45]*)
5226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5227 lt_cv_file_magic_cmd='/usr/bin/file -L'
5228 lt_cv_file_magic_test_file=/shlib/libc.so
5229 ;;
5230
5231cygwin*)
5232 # func_win32_libid is a shell function defined in ltmain.sh
5233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234 lt_cv_file_magic_cmd='func_win32_libid'
5235 ;;
5236
5237mingw* | pw32*)
5238 # Base MSYS/MinGW do not provide the 'file' command needed by
5239 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5240 # unless we find 'file', for example because we are cross-compiling.
5241 if ( file / ) >/dev/null 2>&1; then
5242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243 lt_cv_file_magic_cmd='func_win32_libid'
5244 else
5245 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5246 lt_cv_file_magic_cmd='$OBJDUMP -f'
5247 fi
5248 ;;
5249
5250cegcc)
5251 # use the weaker test based on 'objdump'. See mingw*.
5252 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5253 lt_cv_file_magic_cmd='$OBJDUMP -f'
5254 ;;
5255
5256darwin* | rhapsody*)
5257 lt_cv_deplibs_check_method=pass_all
5258 ;;
5259
5260freebsd* | dragonfly*)
5261 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5262 case $host_cpu in
5263 i*86 )
5264 # Not sure whether the presence of OpenBSD here was a mistake.
5265 # Let's accept both of them until this is cleared up.
5266 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5267 lt_cv_file_magic_cmd=/usr/bin/file
5268 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5269 ;;
5270 esac
5271 else
5272 lt_cv_deplibs_check_method=pass_all
5273 fi
5274 ;;
5275
5276gnu*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280hpux10.20* | hpux11*)
5281 lt_cv_file_magic_cmd=/usr/bin/file
5282 case $host_cpu in
5283 ia64*)
5284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5285 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5286 ;;
5287 hppa*64*)
5288 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]'
5289 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5290 ;;
5291 *)
5292 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5293 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5294 ;;
5295 esac
5296 ;;
5297
5298interix[3-9]*)
5299 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5300 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5301 ;;
5302
5303irix5* | irix6* | nonstopux*)
5304 case $LD in
5305 *-32|*"-32 ") libmagic=32-bit;;
5306 *-n32|*"-n32 ") libmagic=N32;;
5307 *-64|*"-64 ") libmagic=64-bit;;
5308 *) libmagic=never-match;;
5309 esac
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312
5313# This must be Linux ELF.
5314linux* | k*bsd*-gnu)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317
5318netbsd*)
5319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5321 else
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5323 fi
5324 ;;
5325
5326newos6*)
5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5328 lt_cv_file_magic_cmd=/usr/bin/file
5329 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5330 ;;
5331
5332*nto* | *qnx*)
5333 lt_cv_deplibs_check_method=pass_all
5334 ;;
5335
5336openbsd*)
5337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5339 else
5340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5341 fi
5342 ;;
5343
5344osf3* | osf4* | osf5*)
5345 lt_cv_deplibs_check_method=pass_all
5346 ;;
5347
5348rdos*)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352solaris*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5357 lt_cv_deplibs_check_method=pass_all
5358 ;;
5359
5360sysv4 | sysv4.3*)
5361 case $host_vendor in
5362 motorola)
5363 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]'
5364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5365 ;;
5366 ncr)
5367 lt_cv_deplibs_check_method=pass_all
5368 ;;
5369 sequent)
5370 lt_cv_file_magic_cmd='/bin/file'
5371 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5372 ;;
5373 sni)
5374 lt_cv_file_magic_cmd='/bin/file'
5375 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5376 lt_cv_file_magic_test_file=/lib/libc.so
5377 ;;
5378 siemens)
5379 lt_cv_deplibs_check_method=pass_all
5380 ;;
5381 pc)
5382 lt_cv_deplibs_check_method=pass_all
5383 ;;
5384 esac
5385 ;;
5386
5387tpf*)
5388 lt_cv_deplibs_check_method=pass_all
5389 ;;
5390esac
5391
5392fi
5393{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5394$as_echo "$lt_cv_deplibs_check_method" >&6; }
5395file_magic_cmd=$lt_cv_file_magic_cmd
5396deplibs_check_method=$lt_cv_deplibs_check_method
5397test -z "$deplibs_check_method" && deplibs_check_method=unknown
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5412set dummy ${ac_tool_prefix}ar; ac_word=$2
5413{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
5415if test "${ac_cv_prog_AR+set}" = set; then
5416 $as_echo_n "(cached) " >&6
5417else
5418 if test -n "$AR"; then
5419 ac_cv_prog_AR="$AR" # Let the user override the test.
5420else
5421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5428 ac_cv_prog_AR="${ac_tool_prefix}ar"
5429 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5431 fi
5432done
5433done
5434IFS=$as_save_IFS
5435
5436fi
5437fi
5438AR=$ac_cv_prog_AR
5439if test -n "$AR"; then
5440 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5441$as_echo "$AR" >&6; }
5442else
5443 { $as_echo "$as_me:$LINENO: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446
5447
5448fi
5449if test -z "$ac_cv_prog_AR"; then
5450 ac_ct_AR=$AR
5451 # Extract the first word of "ar", so it can be a program name with args.
5452set dummy ar; ac_word=$2
5453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5456 $as_echo_n "(cached) " >&6
5457else
5458 if test -n "$ac_ct_AR"; then
5459 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5460else
5461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_ac_ct_AR="ar"
5469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472done
5473done
5474IFS=$as_save_IFS
5475
5476fi
5477fi
5478ac_ct_AR=$ac_cv_prog_ac_ct_AR
5479if test -n "$ac_ct_AR"; then
5480 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5481$as_echo "$ac_ct_AR" >&6; }
5482else
5483 { $as_echo "$as_me:$LINENO: result: no" >&5
5484$as_echo "no" >&6; }
5485fi
5486
5487 if test "x$ac_ct_AR" = x; then
5488 AR="false"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491yes:)
5492{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494ac_tool_warned=yes ;;
5495esac
5496 AR=$ac_ct_AR
5497 fi
5498else
5499 AR="$ac_cv_prog_AR"
5500fi
5501
5502test -z "$AR" && AR=ar
5503test -z "$AR_FLAGS" && AR_FLAGS=cru
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5517set dummy ${ac_tool_prefix}strip; ac_word=$2
5518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5519$as_echo_n "checking for $ac_word... " >&6; }
5520if test "${ac_cv_prog_STRIP+set}" = set; then
5521 $as_echo_n "(cached) " >&6
5522else
5523 if test -n "$STRIP"; then
5524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5525else
5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527for as_dir in $PATH
5528do
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537done
5538done
5539IFS=$as_save_IFS
5540
5541fi
5542fi
5543STRIP=$ac_cv_prog_STRIP
5544if test -n "$STRIP"; then
5545 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5546$as_echo "$STRIP" >&6; }
5547else
5548 { $as_echo "$as_me:$LINENO: result: no" >&5
5549$as_echo "no" >&6; }
5550fi
5551
5552
5553fi
5554if test -z "$ac_cv_prog_STRIP"; then
5555 ac_ct_STRIP=$STRIP
5556 # Extract the first word of "strip", so it can be a program name with args.
5557set dummy strip; ac_word=$2
5558{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5559$as_echo_n "checking for $ac_word... " >&6; }
5560if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5561 $as_echo_n "(cached) " >&6
5562else
5563 if test -n "$ac_ct_STRIP"; then
5564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5565else
5566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567for as_dir in $PATH
5568do
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_ac_ct_STRIP="strip"
5574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5576 fi
5577done
5578done
5579IFS=$as_save_IFS
5580
5581fi
5582fi
5583ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5584if test -n "$ac_ct_STRIP"; then
5585 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5586$as_echo "$ac_ct_STRIP" >&6; }
5587else
5588 { $as_echo "$as_me:$LINENO: result: no" >&5
5589$as_echo "no" >&6; }
5590fi
5591
5592 if test "x$ac_ct_STRIP" = x; then
5593 STRIP=":"
5594 else
5595 case $cross_compiling:$ac_tool_warned in
5596yes:)
5597{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599ac_tool_warned=yes ;;
5600esac
5601 STRIP=$ac_ct_STRIP
5602 fi
5603else
5604 STRIP="$ac_cv_prog_STRIP"
5605fi
5606
5607test -z "$STRIP" && STRIP=:
5608
5609
5610
5611
5612
5613
5614if test -n "$ac_tool_prefix"; then
5615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5616set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5617{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5618$as_echo_n "checking for $ac_word... " >&6; }
5619if test "${ac_cv_prog_RANLIB+set}" = set; then
5620 $as_echo_n "(cached) " >&6
5621else
5622 if test -n "$RANLIB"; then
5623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2
5635 fi
5636done
5637done
5638IFS=$as_save_IFS
5639
5640fi
5641fi
5642RANLIB=$ac_cv_prog_RANLIB
5643if test -n "$RANLIB"; then
5644 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5645$as_echo "$RANLIB" >&6; }
5646else
5647 { $as_echo "$as_me:$LINENO: result: no" >&5
5648$as_echo "no" >&6; }
5649fi
5650
5651
5652fi
5653if test -z "$ac_cv_prog_RANLIB"; then
5654 ac_ct_RANLIB=$RANLIB
5655 # Extract the first word of "ranlib", so it can be a program name with args.
5656set dummy ranlib; ac_word=$2
5657{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5658$as_echo_n "checking for $ac_word... " >&6; }
5659if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5660 $as_echo_n "(cached) " >&6
5661else
5662 if test -n "$ac_ct_RANLIB"; then
5663 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5664else
5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666for as_dir in $PATH
5667do
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_prog_ac_ct_RANLIB="ranlib"
5673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5675 fi
5676done
5677done
5678IFS=$as_save_IFS
5679
5680fi
5681fi
5682ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5683if test -n "$ac_ct_RANLIB"; then
5684 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5685$as_echo "$ac_ct_RANLIB" >&6; }
5686else
5687 { $as_echo "$as_me:$LINENO: result: no" >&5
5688$as_echo "no" >&6; }
5689fi
5690
5691 if test "x$ac_ct_RANLIB" = x; then
5692 RANLIB=":"
5693 else
5694 case $cross_compiling:$ac_tool_warned in
5695yes:)
5696{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5698ac_tool_warned=yes ;;
5699esac
5700 RANLIB=$ac_ct_RANLIB
5701 fi
5702else
5703 RANLIB="$ac_cv_prog_RANLIB"
5704fi
5705
5706test -z "$RANLIB" && RANLIB=:
5707
5708
5709
5710
5711
5712
5713# Determine commands to create old-style static archives.
5714old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5715old_postinstall_cmds='chmod 644 $oldlib'
5716old_postuninstall_cmds=
5717
5718if test -n "$RANLIB"; then
5719 case $host_os in
5720 openbsd*)
5721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5722 ;;
5723 *)
5724 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5725 ;;
5726 esac
5727 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5728fi
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763# If no C compiler was specified, use CC.
5764LTCC=${LTCC-"$CC"}
5765
5766# If no C compiler flags were specified, use CFLAGS.
5767LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5768
5769# Allow CC to be a program name with arguments.
5770compiler=$CC
5771
5772
5773# Check for command to grab the raw symbol name followed by C symbol from nm.
5774{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5775$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5776if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5777 $as_echo_n "(cached) " >&6
5778else
5779
5780# These are sane defaults that work on at least a few old systems.
5781# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5782
5783# Character class describing NM global symbol codes.
5784symcode='[BCDEGRST]'
5785
5786# Regexp to match symbols that can be accessed directly from C.
5787sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5788
5789# Define system-specific variables.
5790case $host_os in
5791aix*)
5792 symcode='[BCDT]'
5793 ;;
5794cygwin* | mingw* | pw32* | cegcc*)
5795 symcode='[ABCDGISTW]'
5796 ;;
5797hpux*)
5798 if test "$host_cpu" = ia64; then
5799 symcode='[ABCDEGRST]'
5800 fi
5801 ;;
5802irix* | nonstopux*)
5803 symcode='[BCDEGRST]'
5804 ;;
5805osf*)
5806 symcode='[BCDEGQRST]'
5807 ;;
5808solaris*)
5809 symcode='[BDRT]'
5810 ;;
5811sco3.2v5*)
5812 symcode='[DT]'
5813 ;;
5814sysv4.2uw2*)
5815 symcode='[DT]'
5816 ;;
5817sysv5* | sco5v6* | unixware* | OpenUNIX*)
5818 symcode='[ABDT]'
5819 ;;
5820sysv4)
5821 symcode='[DFNSTU]'
5822 ;;
5823esac
5824
5825# If we're using GNU nm, then use its standard symbol codes.
5826case `$NM -V 2>&1` in
5827*GNU* | *'with BFD'*)
5828 symcode='[ABCDGIRSTW]' ;;
5829esac
5830
5831# Transform an extracted symbol line into a proper C declaration.
5832# Some systems (esp. on ia64) link data and code symbols differently,
5833# so use this general approach.
5834lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5835
5836# Transform an extracted symbol line into symbol name and symbol address
5837lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5838lt_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'"
5839
5840# Handle CRLF in mingw tool chain
5841opt_cr=
5842case $build_os in
5843mingw*)
5844 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5845 ;;
5846esac
5847
5848# Try without a prefix underscore, then with it.
5849for ac_symprfx in "" "_"; do
5850
5851 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5852 symxfrm="\\1 $ac_symprfx\\2 \\2"
5853
5854 # Write the raw and C identifiers.
5855 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5856 # Fake it for dumpbin and say T for any non-static function
5857 # and D for any global variable.
5858 # Also find C++ and __fastcall symbols from MSVC++,
5859 # which start with @ or ?.
5860 lt_cv_sys_global_symbol_pipe="$AWK '"\
5861" {last_section=section; section=\$ 3};"\
5862" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5863" \$ 0!~/External *\|/{next};"\
5864" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5865" {if(hide[section]) next};"\
5866" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5867" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5868" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5869" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5870" ' prfx=^$ac_symprfx"
5871 else
5872 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5873 fi
5874
5875 # Check to see that the pipe works correctly.
5876 pipe_works=no
5877
5878 rm -f conftest*
5879 cat > conftest.$ac_ext <<_LT_EOF
5880#ifdef __cplusplus
5881extern "C" {
5882#endif
5883char nm_test_var;
5884void nm_test_func(void);
5885void nm_test_func(void){}
5886#ifdef __cplusplus
5887}
5888#endif
5889int main(){nm_test_var='a';nm_test_func();return(0);}
5890_LT_EOF
5891
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893 (eval $ac_compile) 2>&5
5894 ac_status=$?
5895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; then
5897 # Now try to grab the symbols.
5898 nlist=conftest.nm
5899 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5900 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5901 ac_status=$?
5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && test -s "$nlist"; then
5904 # Try sorting and uniquifying the output.
5905 if sort "$nlist" | uniq > "$nlist"T; then
5906 mv -f "$nlist"T "$nlist"
5907 else
5908 rm -f "$nlist"T
5909 fi
5910
5911 # Make sure that we snagged all the symbols we need.
5912 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5913 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5914 cat <<_LT_EOF > conftest.$ac_ext
5915#ifdef __cplusplus
5916extern "C" {
5917#endif
5918
5919_LT_EOF
5920 # Now generate the symbol file.
5921 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5922
5923 cat <<_LT_EOF >> conftest.$ac_ext
5924
5925/* The mapping between symbol names and symbols. */
5926const struct {
5927 const char *name;
5928 void *address;
5929}
5930lt__PROGRAM__LTX_preloaded_symbols[] =
5931{
5932 { "@PROGRAM@", (void *) 0 },
5933_LT_EOF
5934 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5935 cat <<\_LT_EOF >> conftest.$ac_ext
5936 {0, (void *) 0}
5937};
5938
5939/* This works around a problem in FreeBSD linker */
5940#ifdef FREEBSD_WORKAROUND
5941static const void *lt_preloaded_setup() {
5942 return lt__PROGRAM__LTX_preloaded_symbols;
5943}
5944#endif
5945
5946#ifdef __cplusplus
5947}
5948#endif
5949_LT_EOF
5950 # Now try linking the two files.
5951 mv conftest.$ac_objext conftstm.$ac_objext
5952 lt_save_LIBS="$LIBS"
5953 lt_save_CFLAGS="$CFLAGS"
5954 LIBS="conftstm.$ac_objext"
5955 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957 (eval $ac_link) 2>&5
5958 ac_status=$?
5959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5961 pipe_works=yes
5962 fi
5963 LIBS="$lt_save_LIBS"
5964 CFLAGS="$lt_save_CFLAGS"
5965 else
5966 echo "cannot find nm_test_func in $nlist" >&5
5967 fi
5968 else
5969 echo "cannot find nm_test_var in $nlist" >&5
5970 fi
5971 else
5972 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5973 fi
5974 else
5975 echo "$progname: failed program was:" >&5
5976 cat conftest.$ac_ext >&5
5977 fi
5978 rm -rf conftest* conftst*
5979
5980 # Do not use the global_symbol_pipe unless it works.
5981 if test "$pipe_works" = yes; then
5982 break
5983 else
5984 lt_cv_sys_global_symbol_pipe=
5985 fi
5986done
5987
5988fi
5989
5990if test -z "$lt_cv_sys_global_symbol_pipe"; then
5991 lt_cv_sys_global_symbol_to_cdecl=
5992fi
5993if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5994 { $as_echo "$as_me:$LINENO: result: failed" >&5
5995$as_echo "failed" >&6; }
5996else
5997 { $as_echo "$as_me:$LINENO: result: ok" >&5
5998$as_echo "ok" >&6; }
5999fi
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023# Check whether --enable-libtool-lock was given.
6024if test "${enable_libtool_lock+set}" = set; then
6025 enableval=$enable_libtool_lock;
6026fi
6027
6028test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6029
6030# Some flags need to be propagated to the compiler or linker for good
6031# libtool support.
6032case $host in
6033ia64-*-hpux*)
6034 # Find out which ABI we are using.
6035 echo 'int i;' > conftest.$ac_ext
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6038 ac_status=$?
6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; then
6041 case `/usr/bin/file conftest.$ac_objext` in
6042 *ELF-32*)
6043 HPUX_IA64_MODE="32"
6044 ;;
6045 *ELF-64*)
6046 HPUX_IA64_MODE="64"
6047 ;;
6048 esac
6049 fi
6050 rm -rf conftest*
6051 ;;
6052*-*-irix6*)
6053 # Find out which ABI we are using.
1c5de20a 6054 echo '#line 6054 "configure"' > conftest.$ac_ext
e70e591c
BB
6055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6056 (eval $ac_compile) 2>&5
6057 ac_status=$?
6058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; then
6060 if test "$lt_cv_prog_gnu_ld" = yes; then
6061 case `/usr/bin/file conftest.$ac_objext` in
6062 *32-bit*)
6063 LD="${LD-ld} -melf32bsmip"
6064 ;;
6065 *N32*)
6066 LD="${LD-ld} -melf32bmipn32"
6067 ;;
6068 *64-bit*)
6069 LD="${LD-ld} -melf64bmip"
6070 ;;
6071 esac
6072 else
6073 case `/usr/bin/file conftest.$ac_objext` in
6074 *32-bit*)
6075 LD="${LD-ld} -32"
6076 ;;
6077 *N32*)
6078 LD="${LD-ld} -n32"
6079 ;;
6080 *64-bit*)
6081 LD="${LD-ld} -64"
6082 ;;
6083 esac
6084 fi
6085 fi
6086 rm -rf conftest*
6087 ;;
6088
6089x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6090s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6091 # Find out which ABI we are using.
6092 echo 'int i;' > conftest.$ac_ext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 (eval $ac_compile) 2>&5
6095 ac_status=$?
6096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; then
6098 case `/usr/bin/file conftest.o` in
6099 *32-bit*)
6100 case $host in
6101 x86_64-*kfreebsd*-gnu)
6102 LD="${LD-ld} -m elf_i386_fbsd"
6103 ;;
6104 x86_64-*linux*)
6105 LD="${LD-ld} -m elf_i386"
6106 ;;
6107 ppc64-*linux*|powerpc64-*linux*)
6108 LD="${LD-ld} -m elf32ppclinux"
6109 ;;
6110 s390x-*linux*)
6111 LD="${LD-ld} -m elf_s390"
6112 ;;
6113 sparc64-*linux*)
6114 LD="${LD-ld} -m elf32_sparc"
6115 ;;
6116 esac
6117 ;;
6118 *64-bit*)
6119 case $host in
6120 x86_64-*kfreebsd*-gnu)
6121 LD="${LD-ld} -m elf_x86_64_fbsd"
6122 ;;
6123 x86_64-*linux*)
6124 LD="${LD-ld} -m elf_x86_64"
6125 ;;
6126 ppc*-*linux*|powerpc*-*linux*)
6127 LD="${LD-ld} -m elf64ppc"
6128 ;;
6129 s390*-*linux*|s390*-*tpf*)
6130 LD="${LD-ld} -m elf64_s390"
6131 ;;
6132 sparc*-*linux*)
6133 LD="${LD-ld} -m elf64_sparc"
6134 ;;
6135 esac
6136 ;;
6137 esac
6138 fi
6139 rm -rf conftest*
6140 ;;
6141
6142*-*-sco3.2v5*)
6143 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6144 SAVE_CFLAGS="$CFLAGS"
6145 CFLAGS="$CFLAGS -belf"
6146 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6147$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6148if test "${lt_cv_cc_needs_belf+set}" = set; then
6149 $as_echo_n "(cached) " >&6
6150else
6151 ac_ext=c
6152ac_cpp='$CPP $CPPFLAGS'
6153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6155ac_compiler_gnu=$ac_cv_c_compiler_gnu
6156
6157 cat >conftest.$ac_ext <<_ACEOF
6158/* confdefs.h. */
6159_ACEOF
6160cat confdefs.h >>conftest.$ac_ext
6161cat >>conftest.$ac_ext <<_ACEOF
6162/* end confdefs.h. */
6163
6164int
6165main ()
6166{
6167
6168 ;
6169 return 0;
6170}
6171_ACEOF
6172rm -f conftest.$ac_objext conftest$ac_exeext
6173if { (ac_try="$ac_link"
6174case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177esac
6178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179$as_echo "$ac_try_echo") >&5
6180 (eval "$ac_link") 2>conftest.er1
6181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
6185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest$ac_exeext && {
6190 test "$cross_compiling" = yes ||
6191 $as_test_x conftest$ac_exeext
6192 }; then
6193 lt_cv_cc_needs_belf=yes
6194else
6195 $as_echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 lt_cv_cc_needs_belf=no
6199fi
6200
6201rm -rf conftest.dSYM
6202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6203 conftest$ac_exeext conftest.$ac_ext
6204 ac_ext=c
6205ac_cpp='$CPP $CPPFLAGS'
6206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210fi
6211{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6212$as_echo "$lt_cv_cc_needs_belf" >&6; }
6213 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6214 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6215 CFLAGS="$SAVE_CFLAGS"
6216 fi
6217 ;;
6218sparc*-*solaris*)
6219 # Find out which ABI we are using.
6220 echo 'int i;' > conftest.$ac_ext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>&5
6223 ac_status=$?
6224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; then
6226 case `/usr/bin/file conftest.o` in
6227 *64-bit*)
6228 case $lt_cv_prog_gnu_ld in
6229 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6230 *)
6231 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6232 LD="${LD-ld} -64"
6233 fi
6234 ;;
6235 esac
6236 ;;
6237 esac
6238 fi
6239 rm -rf conftest*
6240 ;;
6241esac
6242
6243need_locks="$enable_libtool_lock"
6244
6245
6246 case $host_os in
6247 rhapsody* | darwin*)
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6250set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6254 $as_echo_n "(cached) " >&6
6255else
6256 if test -n "$DSYMUTIL"; then
6257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270done
6271done
6272IFS=$as_save_IFS
6273
6274fi
6275fi
6276DSYMUTIL=$ac_cv_prog_DSYMUTIL
6277if test -n "$DSYMUTIL"; then
6278 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6279$as_echo "$DSYMUTIL" >&6; }
6280else
6281 { $as_echo "$as_me:$LINENO: result: no" >&5
6282$as_echo "no" >&6; }
6283fi
6284
6285
6286fi
6287if test -z "$ac_cv_prog_DSYMUTIL"; then
6288 ac_ct_DSYMUTIL=$DSYMUTIL
6289 # Extract the first word of "dsymutil", so it can be a program name with args.
6290set dummy dsymutil; ac_word=$2
6291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6292$as_echo_n "checking for $ac_word... " >&6; }
6293if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6294 $as_echo_n "(cached) " >&6
6295else
6296 if test -n "$ac_ct_DSYMUTIL"; then
6297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6298else
6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300for as_dir in $PATH
6301do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310done
6311done
6312IFS=$as_save_IFS
6313
6314fi
6315fi
6316ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6317if test -n "$ac_ct_DSYMUTIL"; then
6318 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6319$as_echo "$ac_ct_DSYMUTIL" >&6; }
6320else
6321 { $as_echo "$as_me:$LINENO: result: no" >&5
6322$as_echo "no" >&6; }
6323fi
6324
6325 if test "x$ac_ct_DSYMUTIL" = x; then
6326 DSYMUTIL=":"
6327 else
6328 case $cross_compiling:$ac_tool_warned in
6329yes:)
6330{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332ac_tool_warned=yes ;;
6333esac
6334 DSYMUTIL=$ac_ct_DSYMUTIL
6335 fi
6336else
6337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6338fi
6339
6340 if test -n "$ac_tool_prefix"; then
6341 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6342set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if test "${ac_cv_prog_NMEDIT+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6347else
6348 if test -n "$NMEDIT"; then
6349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362done
6363done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368NMEDIT=$ac_cv_prog_NMEDIT
6369if test -n "$NMEDIT"; then
6370 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6371$as_echo "$NMEDIT" >&6; }
6372else
6373 { $as_echo "$as_me:$LINENO: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377
6378fi
6379if test -z "$ac_cv_prog_NMEDIT"; then
6380 ac_ct_NMEDIT=$NMEDIT
6381 # Extract the first word of "nmedit", so it can be a program name with args.
6382set dummy nmedit; ac_word=$2
6383{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6384$as_echo_n "checking for $ac_word... " >&6; }
6385if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6386 $as_echo_n "(cached) " >&6
6387else
6388 if test -n "$ac_ct_NMEDIT"; then
6389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394 IFS=$as_save_IFS
6395 test -z "$as_dir" && as_dir=.
6396 for ac_exec_ext in '' $ac_executable_extensions; do
6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 break 2
6401 fi
6402done
6403done
6404IFS=$as_save_IFS
6405
6406fi
6407fi
6408ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6409if test -n "$ac_ct_NMEDIT"; then
6410 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6411$as_echo "$ac_ct_NMEDIT" >&6; }
6412else
6413 { $as_echo "$as_me:$LINENO: result: no" >&5
6414$as_echo "no" >&6; }
6415fi
6416
6417 if test "x$ac_ct_NMEDIT" = x; then
6418 NMEDIT=":"
6419 else
6420 case $cross_compiling:$ac_tool_warned in
6421yes:)
6422{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424ac_tool_warned=yes ;;
6425esac
6426 NMEDIT=$ac_ct_NMEDIT
6427 fi
6428else
6429 NMEDIT="$ac_cv_prog_NMEDIT"
6430fi
6431
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6434set dummy ${ac_tool_prefix}lipo; ac_word=$2
6435{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6436$as_echo_n "checking for $ac_word... " >&6; }
6437if test "${ac_cv_prog_LIPO+set}" = set; then
6438 $as_echo_n "(cached) " >&6
6439else
6440 if test -n "$LIPO"; then
6441 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455done
6456IFS=$as_save_IFS
6457
6458fi
6459fi
6460LIPO=$ac_cv_prog_LIPO
6461if test -n "$LIPO"; then
6462 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6463$as_echo "$LIPO" >&6; }
6464else
6465 { $as_echo "$as_me:$LINENO: result: no" >&5
6466$as_echo "no" >&6; }
6467fi
6468
6469
6470fi
6471if test -z "$ac_cv_prog_LIPO"; then
6472 ac_ct_LIPO=$LIPO
6473 # Extract the first word of "lipo", so it can be a program name with args.
6474set dummy lipo; ac_word=$2
6475{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6476$as_echo_n "checking for $ac_word... " >&6; }
6477if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6478 $as_echo_n "(cached) " >&6
6479else
6480 if test -n "$ac_ct_LIPO"; then
6481 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6482else
6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490 ac_cv_prog_ac_ct_LIPO="lipo"
6491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6493 fi
6494done
6495done
6496IFS=$as_save_IFS
6497
6498fi
6499fi
6500ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6501if test -n "$ac_ct_LIPO"; then
6502 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6503$as_echo "$ac_ct_LIPO" >&6; }
6504else
6505 { $as_echo "$as_me:$LINENO: result: no" >&5
6506$as_echo "no" >&6; }
6507fi
6508
6509 if test "x$ac_ct_LIPO" = x; then
6510 LIPO=":"
6511 else
6512 case $cross_compiling:$ac_tool_warned in
6513yes:)
6514{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516ac_tool_warned=yes ;;
6517esac
6518 LIPO=$ac_ct_LIPO
6519 fi
6520else
6521 LIPO="$ac_cv_prog_LIPO"
6522fi
6523
6524 if test -n "$ac_tool_prefix"; then
6525 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6526set dummy ${ac_tool_prefix}otool; ac_word=$2
6527{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6528$as_echo_n "checking for $ac_word... " >&6; }
6529if test "${ac_cv_prog_OTOOL+set}" = set; then
6530 $as_echo_n "(cached) " >&6
6531else
6532 if test -n "$OTOOL"; then
6533 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546done
6547done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552OTOOL=$ac_cv_prog_OTOOL
6553if test -n "$OTOOL"; then
6554 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6555$as_echo "$OTOOL" >&6; }
6556else
6557 { $as_echo "$as_me:$LINENO: result: no" >&5
6558$as_echo "no" >&6; }
6559fi
6560
6561
6562fi
6563if test -z "$ac_cv_prog_OTOOL"; then
6564 ac_ct_OTOOL=$OTOOL
6565 # Extract the first word of "otool", so it can be a program name with args.
6566set dummy otool; ac_word=$2
6567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6568$as_echo_n "checking for $ac_word... " >&6; }
6569if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6570 $as_echo_n "(cached) " >&6
6571else
6572 if test -n "$ac_ct_OTOOL"; then
6573 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6574else
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_prog_ac_ct_OTOOL="otool"
6583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590fi
6591fi
6592ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6593if test -n "$ac_ct_OTOOL"; then
6594 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6595$as_echo "$ac_ct_OTOOL" >&6; }
6596else
6597 { $as_echo "$as_me:$LINENO: result: no" >&5
6598$as_echo "no" >&6; }
6599fi
6600
6601 if test "x$ac_ct_OTOOL" = x; then
6602 OTOOL=":"
6603 else
6604 case $cross_compiling:$ac_tool_warned in
6605yes:)
6606{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608ac_tool_warned=yes ;;
6609esac
6610 OTOOL=$ac_ct_OTOOL
6611 fi
6612else
6613 OTOOL="$ac_cv_prog_OTOOL"
6614fi
6615
6616 if test -n "$ac_tool_prefix"; then
6617 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6618set dummy ${ac_tool_prefix}otool64; ac_word=$2
6619{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6620$as_echo_n "checking for $ac_word... " >&6; }
6621if test "${ac_cv_prog_OTOOL64+set}" = set; then
6622 $as_echo_n "(cached) " >&6
6623else
6624 if test -n "$OTOOL64"; then
6625 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6635 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638done
6639done
6640IFS=$as_save_IFS
6641
6642fi
6643fi
6644OTOOL64=$ac_cv_prog_OTOOL64
6645if test -n "$OTOOL64"; then
6646 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6647$as_echo "$OTOOL64" >&6; }
6648else
6649 { $as_echo "$as_me:$LINENO: result: no" >&5
6650$as_echo "no" >&6; }
6651fi
6652
6653
6654fi
6655if test -z "$ac_cv_prog_OTOOL64"; then
6656 ac_ct_OTOOL64=$OTOOL64
6657 # Extract the first word of "otool64", so it can be a program name with args.
6658set dummy otool64; ac_word=$2
6659{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6660$as_echo_n "checking for $ac_word... " >&6; }
6661if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6662 $as_echo_n "(cached) " >&6
6663else
6664 if test -n "$ac_ct_OTOOL64"; then
6665 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6666else
6667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6674 ac_cv_prog_ac_ct_OTOOL64="otool64"
6675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678done
6679done
6680IFS=$as_save_IFS
6681
6682fi
6683fi
6684ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6685if test -n "$ac_ct_OTOOL64"; then
6686 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6687$as_echo "$ac_ct_OTOOL64" >&6; }
6688else
6689 { $as_echo "$as_me:$LINENO: result: no" >&5
6690$as_echo "no" >&6; }
6691fi
6692
6693 if test "x$ac_ct_OTOOL64" = x; then
6694 OTOOL64=":"
6695 else
6696 case $cross_compiling:$ac_tool_warned in
6697yes:)
6698{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6700ac_tool_warned=yes ;;
6701esac
6702 OTOOL64=$ac_ct_OTOOL64
6703 fi
6704else
6705 OTOOL64="$ac_cv_prog_OTOOL64"
6706fi
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6735$as_echo_n "checking for -single_module linker flag... " >&6; }
6736if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6737 $as_echo_n "(cached) " >&6
6738else
6739 lt_cv_apple_cc_single_mod=no
6740 if test -z "${LT_MULTI_MODULE}"; then
6741 # By default we will add the -single_module flag. You can override
6742 # by either setting the environment variable LT_MULTI_MODULE
6743 # non-empty at configure time, or by adding -multi_module to the
6744 # link flags.
6745 rm -rf libconftest.dylib*
6746 echo "int foo(void){return 1;}" > conftest.c
6747 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6748-dynamiclib -Wl,-single_module conftest.c" >&5
6749 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6750 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6751 _lt_result=$?
6752 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6753 lt_cv_apple_cc_single_mod=yes
6754 else
6755 cat conftest.err >&5
6756 fi
6757 rm -rf libconftest.dylib*
6758 rm -f conftest.*
6759 fi
6760fi
6761{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6762$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6763 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6764$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6765if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6766 $as_echo_n "(cached) " >&6
6767else
6768 lt_cv_ld_exported_symbols_list=no
6769 save_LDFLAGS=$LDFLAGS
6770 echo "_main" > conftest.sym
6771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6772 cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
6778
6779int
6780main ()
6781{
6782
6783 ;
6784 return 0;
6785}
6786_ACEOF
6787rm -f conftest.$ac_objext conftest$ac_exeext
6788if { (ac_try="$ac_link"
6789case "(($ac_try" in
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6792esac
6793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6794$as_echo "$ac_try_echo") >&5
6795 (eval "$ac_link") 2>conftest.er1
6796 ac_status=$?
6797 grep -v '^ *+' conftest.er1 >conftest.err
6798 rm -f conftest.er1
6799 cat conftest.err >&5
6800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && {
6802 test -z "$ac_c_werror_flag" ||
6803 test ! -s conftest.err
6804 } && test -s conftest$ac_exeext && {
6805 test "$cross_compiling" = yes ||
6806 $as_test_x conftest$ac_exeext
6807 }; then
6808 lt_cv_ld_exported_symbols_list=yes
6809else
6810 $as_echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813 lt_cv_ld_exported_symbols_list=no
6814fi
6815
6816rm -rf conftest.dSYM
6817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6818 conftest$ac_exeext conftest.$ac_ext
6819 LDFLAGS="$save_LDFLAGS"
6820
6821fi
6822{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6823$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6824 case $host_os in
6825 rhapsody* | darwin1.[012])
6826 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6827 darwin1.*)
6828 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6829 darwin*) # darwin 5.x on
6830 # if running on 10.5 or later, the deployment target defaults
6831 # to the OS version, if on x86, and 10.4, the deployment
6832 # target defaults to 10.4. Don't you love it?
6833 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6834 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6835 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6836 10.[012]*)
6837 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6838 10.*)
6839 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6840 esac
6841 ;;
6842 esac
6843 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6844 _lt_dar_single_mod='$single_module'
6845 fi
6846 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6847 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6848 else
6849 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6850 fi
6851 if test "$DSYMUTIL" != ":"; then
6852 _lt_dsymutil='~$DSYMUTIL $lib || :'
6853 else
6854 _lt_dsymutil=
6855 fi
6856 ;;
6857 esac
6858
6859ac_ext=c
6860ac_cpp='$CPP $CPPFLAGS'
6861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863ac_compiler_gnu=$ac_cv_c_compiler_gnu
6864{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6865$as_echo_n "checking how to run the C preprocessor... " >&6; }
6866# On Suns, sometimes $CPP names a directory.
6867if test -n "$CPP" && test -d "$CPP"; then
6868 CPP=
6869fi
6870if test -z "$CPP"; then
6871 if test "${ac_cv_prog_CPP+set}" = set; then
6872 $as_echo_n "(cached) " >&6
6873else
6874 # Double quotes because CPP needs to be expanded
6875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6876 do
6877 ac_preproc_ok=false
6878for ac_c_preproc_warn_flag in '' yes
6879do
6880 # Use a header file that comes with gcc, so configuring glibc
6881 # with a fresh cross-compiler works.
6882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6883 # <limits.h> exists even on freestanding compilers.
6884 # On the NeXT, cc -E runs the code through the compiler's parser,
6885 # not just through cpp. "Syntax error" is here to catch this case.
6886 cat >conftest.$ac_ext <<_ACEOF
6887/* confdefs.h. */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h. */
6892#ifdef __STDC__
6893# include <limits.h>
6894#else
6895# include <assert.h>
6896#endif
6897 Syntax error
6898_ACEOF
6899if { (ac_try="$ac_cpp conftest.$ac_ext"
6900case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903esac
6904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905$as_echo "$ac_try_echo") >&5
6906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } >/dev/null && {
6913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 }; then
6916 :
6917else
6918 $as_echo "$as_me: failed program was:" >&5
6919sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 # Broken: fails on valid input.
6922continue
6923fi
6924
6925rm -f conftest.err conftest.$ac_ext
6926
6927 # OK, works on sane cases. Now check whether nonexistent headers
6928 # can be detected and how.
6929 cat >conftest.$ac_ext <<_ACEOF
6930/* confdefs.h. */
6931_ACEOF
6932cat confdefs.h >>conftest.$ac_ext
6933cat >>conftest.$ac_ext <<_ACEOF
6934/* end confdefs.h. */
6935#include <ac_nonexistent.h>
6936_ACEOF
6937if { (ac_try="$ac_cpp conftest.$ac_ext"
6938case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941esac
6942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6943$as_echo "$ac_try_echo") >&5
6944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6945 ac_status=$?
6946 grep -v '^ *+' conftest.er1 >conftest.err
6947 rm -f conftest.er1
6948 cat conftest.err >&5
6949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } >/dev/null && {
6951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6952 test ! -s conftest.err
6953 }; then
6954 # Broken: success on invalid input.
6955continue
6956else
6957 $as_echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 # Passes both tests.
6961ac_preproc_ok=:
6962break
6963fi
6964
6965rm -f conftest.err conftest.$ac_ext
6966
6967done
6968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6969rm -f conftest.err conftest.$ac_ext
6970if $ac_preproc_ok; then
6971 break
6972fi
6973
6974 done
6975 ac_cv_prog_CPP=$CPP
6976
6977fi
6978 CPP=$ac_cv_prog_CPP
6979else
6980 ac_cv_prog_CPP=$CPP
6981fi
6982{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6983$as_echo "$CPP" >&6; }
6984ac_preproc_ok=false
6985for ac_c_preproc_warn_flag in '' yes
6986do
6987 # Use a header file that comes with gcc, so configuring glibc
6988 # with a fresh cross-compiler works.
6989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6990 # <limits.h> exists even on freestanding compilers.
6991 # On the NeXT, cc -E runs the code through the compiler's parser,
6992 # not just through cpp. "Syntax error" is here to catch this case.
6993 cat >conftest.$ac_ext <<_ACEOF
6994/* confdefs.h. */
6995_ACEOF
6996cat confdefs.h >>conftest.$ac_ext
6997cat >>conftest.$ac_ext <<_ACEOF
6998/* end confdefs.h. */
6999#ifdef __STDC__
7000# include <limits.h>
7001#else
7002# include <assert.h>
7003#endif
7004 Syntax error
7005_ACEOF
7006if { (ac_try="$ac_cpp conftest.$ac_ext"
7007case "(($ac_try" in
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7010esac
7011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7012$as_echo "$ac_try_echo") >&5
7013 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7014 ac_status=$?
7015 grep -v '^ *+' conftest.er1 >conftest.err
7016 rm -f conftest.er1
7017 cat conftest.err >&5
7018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } >/dev/null && {
7020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 }; then
7023 :
7024else
7025 $as_echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028 # Broken: fails on valid input.
7029continue
7030fi
7031
7032rm -f conftest.err conftest.$ac_ext
7033
7034 # OK, works on sane cases. Now check whether nonexistent headers
7035 # can be detected and how.
7036 cat >conftest.$ac_ext <<_ACEOF
7037/* confdefs.h. */
7038_ACEOF
7039cat confdefs.h >>conftest.$ac_ext
7040cat >>conftest.$ac_ext <<_ACEOF
7041/* end confdefs.h. */
7042#include <ac_nonexistent.h>
7043_ACEOF
7044if { (ac_try="$ac_cpp conftest.$ac_ext"
7045case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048esac
7049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050$as_echo "$ac_try_echo") >&5
7051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7052 ac_status=$?
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } >/dev/null && {
7058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 }; then
7061 # Broken: success on invalid input.
7062continue
7063else
7064 $as_echo "$as_me: failed program was:" >&5
7065sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 # Passes both tests.
7068ac_preproc_ok=:
7069break
7070fi
7071
7072rm -f conftest.err conftest.$ac_ext
7073
7074done
7075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7076rm -f conftest.err conftest.$ac_ext
7077if $ac_preproc_ok; then
7078 :
7079else
7080 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7082{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7083See \`config.log' for more details." >&5
7084$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7085See \`config.log' for more details." >&2;}
7086 { (exit 1); exit 1; }; }; }
7087fi
7088
7089ac_ext=c
7090ac_cpp='$CPP $CPPFLAGS'
7091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093ac_compiler_gnu=$ac_cv_c_compiler_gnu
7094
7095
7096{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7097$as_echo_n "checking for ANSI C header files... " >&6; }
7098if test "${ac_cv_header_stdc+set}" = set; then
7099 $as_echo_n "(cached) " >&6
7100else
7101 cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h. */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h. */
7107#include <stdlib.h>
7108#include <stdarg.h>
7109#include <string.h>
7110#include <float.h>
7111
7112int
7113main ()
7114{
7115
7116 ;
7117 return 0;
7118}
7119_ACEOF
7120rm -f conftest.$ac_objext
7121if { (ac_try="$ac_compile"
7122case "(($ac_try" in
7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124 *) ac_try_echo=$ac_try;;
7125esac
7126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7127$as_echo "$ac_try_echo") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.$ac_objext; then
7138 ac_cv_header_stdc=yes
7139else
7140 $as_echo "$as_me: failed program was:" >&5
7141sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 ac_cv_header_stdc=no
7144fi
7145
7146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147
7148if test $ac_cv_header_stdc = yes; then
7149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7150 cat >conftest.$ac_ext <<_ACEOF
7151/* confdefs.h. */
7152_ACEOF
7153cat confdefs.h >>conftest.$ac_ext
7154cat >>conftest.$ac_ext <<_ACEOF
7155/* end confdefs.h. */
7156#include <string.h>
7157
7158_ACEOF
7159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160 $EGREP "memchr" >/dev/null 2>&1; then
7161 :
7162else
7163 ac_cv_header_stdc=no
7164fi
7165rm -f conftest*
7166
7167fi
7168
7169if test $ac_cv_header_stdc = yes; then
7170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7171 cat >conftest.$ac_ext <<_ACEOF
7172/* confdefs.h. */
7173_ACEOF
7174cat confdefs.h >>conftest.$ac_ext
7175cat >>conftest.$ac_ext <<_ACEOF
7176/* end confdefs.h. */
7177#include <stdlib.h>
7178
7179_ACEOF
7180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7181 $EGREP "free" >/dev/null 2>&1; then
7182 :
7183else
7184 ac_cv_header_stdc=no
7185fi
7186rm -f conftest*
7187
7188fi
7189
7190if test $ac_cv_header_stdc = yes; then
7191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7192 if test "$cross_compiling" = yes; then
7193 :
7194else
7195 cat >conftest.$ac_ext <<_ACEOF
7196/* confdefs.h. */
7197_ACEOF
7198cat confdefs.h >>conftest.$ac_ext
7199cat >>conftest.$ac_ext <<_ACEOF
7200/* end confdefs.h. */
7201#include <ctype.h>
7202#include <stdlib.h>
7203#if ((' ' & 0x0FF) == 0x020)
7204# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7205# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7206#else
7207# define ISLOWER(c) \
7208 (('a' <= (c) && (c) <= 'i') \
7209 || ('j' <= (c) && (c) <= 'r') \
7210 || ('s' <= (c) && (c) <= 'z'))
7211# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7212#endif
7213
7214#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7215int
7216main ()
7217{
7218 int i;
7219 for (i = 0; i < 256; i++)
7220 if (XOR (islower (i), ISLOWER (i))
7221 || toupper (i) != TOUPPER (i))
7222 return 2;
7223 return 0;
7224}
7225_ACEOF
7226rm -f conftest$ac_exeext
7227if { (ac_try="$ac_link"
7228case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231esac
7232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7233$as_echo "$ac_try_echo") >&5
7234 (eval "$ac_link") 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7238 { (case "(($ac_try" in
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7241esac
7242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243$as_echo "$ac_try_echo") >&5
7244 (eval "$ac_try") 2>&5
7245 ac_status=$?
7246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; }; then
7248 :
7249else
7250 $as_echo "$as_me: program exited with status $ac_status" >&5
7251$as_echo "$as_me: failed program was:" >&5
7252sed 's/^/| /' conftest.$ac_ext >&5
7253
7254( exit $ac_status )
7255ac_cv_header_stdc=no
7256fi
7257rm -rf conftest.dSYM
7258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7259fi
7260
7261
7262fi
7263fi
7264{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7265$as_echo "$ac_cv_header_stdc" >&6; }
7266if test $ac_cv_header_stdc = yes; then
7267
7268cat >>confdefs.h <<\_ACEOF
7269#define STDC_HEADERS 1
7270_ACEOF
7271
7272fi
7273
7274# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7285 inttypes.h stdint.h unistd.h
7286do
7287as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7289$as_echo_n "checking for $ac_header... " >&6; }
7290if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7291 $as_echo_n "(cached) " >&6
7292else
7293 cat >conftest.$ac_ext <<_ACEOF
7294/* confdefs.h. */
7295_ACEOF
7296cat confdefs.h >>conftest.$ac_ext
7297cat >>conftest.$ac_ext <<_ACEOF
7298/* end confdefs.h. */
7299$ac_includes_default
7300
7301#include <$ac_header>
7302_ACEOF
7303rm -f conftest.$ac_objext
7304if { (ac_try="$ac_compile"
7305case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308esac
7309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7310$as_echo "$ac_try_echo") >&5
7311 (eval "$ac_compile") 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
7316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
7321 eval "$as_ac_Header=yes"
7322else
7323 $as_echo "$as_me: failed program was:" >&5
7324sed 's/^/| /' conftest.$ac_ext >&5
7325
7326 eval "$as_ac_Header=no"
7327fi
7328
7329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330fi
7331ac_res=`eval 'as_val=${'$as_ac_Header'}
7332 $as_echo "$as_val"'`
7333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7334$as_echo "$ac_res" >&6; }
7335as_val=`eval 'as_val=${'$as_ac_Header'}
7336 $as_echo "$as_val"'`
7337 if test "x$as_val" = x""yes; then
7338 cat >>confdefs.h <<_ACEOF
7339#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7340_ACEOF
7341
7342fi
7343
7344done
7345
7346
7347
7348for ac_header in dlfcn.h
7349do
7350as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7351{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7352$as_echo_n "checking for $ac_header... " >&6; }
7353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7354 $as_echo_n "(cached) " >&6
7355else
7356 cat >conftest.$ac_ext <<_ACEOF
7357/* confdefs.h. */
7358_ACEOF
7359cat confdefs.h >>conftest.$ac_ext
7360cat >>conftest.$ac_ext <<_ACEOF
7361/* end confdefs.h. */
7362$ac_includes_default
7363
7364#include <$ac_header>
7365_ACEOF
7366rm -f conftest.$ac_objext
7367if { (ac_try="$ac_compile"
7368case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371esac
7372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7373$as_echo "$ac_try_echo") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.$ac_objext; then
7384 eval "$as_ac_Header=yes"
7385else
7386 $as_echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389 eval "$as_ac_Header=no"
7390fi
7391
7392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393fi
7394ac_res=`eval 'as_val=${'$as_ac_Header'}
7395 $as_echo "$as_val"'`
7396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7397$as_echo "$ac_res" >&6; }
7398as_val=`eval 'as_val=${'$as_ac_Header'}
7399 $as_echo "$as_val"'`
7400 if test "x$as_val" = x""yes; then
7401 cat >>confdefs.h <<_ACEOF
7402#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7403_ACEOF
7404
7405fi
7406
7407done
7408
7409
7410
7411# Set options
7412
7413
7414
7415 enable_dlopen=no
7416
7417
7418 enable_win32_dll=no
7419
7420
7421 # Check whether --enable-shared was given.
7422if test "${enable_shared+set}" = set; then
7423 enableval=$enable_shared; p=${PACKAGE-default}
7424 case $enableval in
7425 yes) enable_shared=yes ;;
7426 no) enable_shared=no ;;
7427 *)
7428 enable_shared=no
7429 # Look at the argument we got. We use all the common list separators.
7430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7431 for pkg in $enableval; do
7432 IFS="$lt_save_ifs"
7433 if test "X$pkg" = "X$p"; then
7434 enable_shared=yes
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
7438 ;;
7439 esac
7440else
7441 enable_shared=yes
7442fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452 # Check whether --enable-static was given.
7453if test "${enable_static+set}" = set; then
7454 enableval=$enable_static; p=${PACKAGE-default}
7455 case $enableval in
7456 yes) enable_static=yes ;;
7457 no) enable_static=no ;;
7458 *)
7459 enable_static=no
7460 # Look at the argument we got. We use all the common list separators.
7461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7462 for pkg in $enableval; do
7463 IFS="$lt_save_ifs"
7464 if test "X$pkg" = "X$p"; then
7465 enable_static=yes
7466 fi
7467 done
7468 IFS="$lt_save_ifs"
7469 ;;
7470 esac
7471else
7472 enable_static=yes
7473fi
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484# Check whether --with-pic was given.
7485if test "${with_pic+set}" = set; then
7486 withval=$with_pic; pic_mode="$withval"
7487else
7488 pic_mode=default
7489fi
7490
7491
7492test -z "$pic_mode" && pic_mode=default
7493
7494
7495
7496
7497
7498
7499
7500 # Check whether --enable-fast-install was given.
7501if test "${enable_fast_install+set}" = set; then
7502 enableval=$enable_fast_install; p=${PACKAGE-default}
7503 case $enableval in
7504 yes) enable_fast_install=yes ;;
7505 no) enable_fast_install=no ;;
7506 *)
7507 enable_fast_install=no
7508 # Look at the argument we got. We use all the common list separators.
7509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7510 for pkg in $enableval; do
7511 IFS="$lt_save_ifs"
7512 if test "X$pkg" = "X$p"; then
7513 enable_fast_install=yes
7514 fi
7515 done
7516 IFS="$lt_save_ifs"
7517 ;;
7518 esac
7519else
7520 enable_fast_install=yes
7521fi
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533# This can be used to rebuild libtool when needed
7534LIBTOOL_DEPS="$ltmain"
7535
7536# Always use our own libtool.
7537LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563test -z "$LN_S" && LN_S="ln -s"
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578if test -n "${ZSH_VERSION+set}" ; then
7579 setopt NO_GLOB_SUBST
7580fi
7581
7582{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7583$as_echo_n "checking for objdir... " >&6; }
7584if test "${lt_cv_objdir+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7586else
7587 rm -f .libs 2>/dev/null
7588mkdir .libs 2>/dev/null
7589if test -d .libs; then
7590 lt_cv_objdir=.libs
7591else
7592 # MS-DOS does not allow filenames that begin with a dot.
7593 lt_cv_objdir=_libs
7594fi
7595rmdir .libs 2>/dev/null
7596fi
7597{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7598$as_echo "$lt_cv_objdir" >&6; }
7599objdir=$lt_cv_objdir
7600
7601
7602
7603
7604
7605cat >>confdefs.h <<_ACEOF
7606#define LT_OBJDIR "$lt_cv_objdir/"
7607_ACEOF
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625case $host_os in
7626aix3*)
7627 # AIX sometimes has problems with the GCC collect2 program. For some
7628 # reason, if we set the COLLECT_NAMES environment variable, the problems
7629 # vanish in a puff of smoke.
7630 if test "X${COLLECT_NAMES+set}" != Xset; then
7631 COLLECT_NAMES=
7632 export COLLECT_NAMES
7633 fi
7634 ;;
7635esac
7636
7637# Sed substitution that helps us do robust quoting. It backslashifies
7638# metacharacters that are still active within double-quoted strings.
7639sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7640
7641# Same as above, but do not quote variable references.
7642double_quote_subst='s/\(["`\\]\)/\\\1/g'
7643
7644# Sed substitution to delay expansion of an escaped shell variable in a
7645# double_quote_subst'ed string.
7646delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7647
7648# Sed substitution to delay expansion of an escaped single quote.
7649delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7650
7651# Sed substitution to avoid accidental globbing in evaled expressions
7652no_glob_subst='s/\*/\\\*/g'
7653
7654# Global variables:
7655ofile=libtool
7656can_build_shared=yes
7657
7658# All known linkers require a `.a' archive for static linking (except MSVC,
7659# which needs '.lib').
7660libext=a
7661
7662with_gnu_ld="$lt_cv_prog_gnu_ld"
7663
7664old_CC="$CC"
7665old_CFLAGS="$CFLAGS"
7666
7667# Set sane defaults for various variables
7668test -z "$CC" && CC=cc
7669test -z "$LTCC" && LTCC=$CC
7670test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7671test -z "$LD" && LD=ld
7672test -z "$ac_objext" && ac_objext=o
7673
7674for cc_temp in $compiler""; do
7675 case $cc_temp in
7676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7678 \-*) ;;
7679 *) break;;
7680 esac
7681done
7682cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7683
7684
7685# Only perform the check for file, if the check method requires it
7686test -z "$MAGIC_CMD" && MAGIC_CMD=file
7687case $deplibs_check_method in
7688file_magic*)
7689 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7690 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7691$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7692if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7693 $as_echo_n "(cached) " >&6
7694else
7695 case $MAGIC_CMD in
7696[\\/*] | ?:[\\/]*)
7697 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7698 ;;
7699*)
7700 lt_save_MAGIC_CMD="$MAGIC_CMD"
7701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7702 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7703 for ac_dir in $ac_dummy; do
7704 IFS="$lt_save_ifs"
7705 test -z "$ac_dir" && ac_dir=.
7706 if test -f $ac_dir/${ac_tool_prefix}file; then
7707 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7708 if test -n "$file_magic_test_file"; then
7709 case $deplibs_check_method in
7710 "file_magic "*)
7711 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7712 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7713 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7714 $EGREP "$file_magic_regex" > /dev/null; then
7715 :
7716 else
7717 cat <<_LT_EOF 1>&2
7718
7719*** Warning: the command libtool uses to detect shared libraries,
7720*** $file_magic_cmd, produces output that libtool cannot recognize.
7721*** The result is that libtool may fail to recognize shared libraries
7722*** as such. This will affect the creation of libtool libraries that
7723*** depend on shared libraries, but programs linked with such libtool
7724*** libraries will work regardless of this problem. Nevertheless, you
7725*** may want to report the problem to your system manager and/or to
7726*** bug-libtool@gnu.org
7727
7728_LT_EOF
7729 fi ;;
7730 esac
7731 fi
7732 break
7733 fi
7734 done
7735 IFS="$lt_save_ifs"
7736 MAGIC_CMD="$lt_save_MAGIC_CMD"
7737 ;;
7738esac
7739fi
7740
7741MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7742if test -n "$MAGIC_CMD"; then
7743 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7744$as_echo "$MAGIC_CMD" >&6; }
7745else
7746 { $as_echo "$as_me:$LINENO: result: no" >&5
7747$as_echo "no" >&6; }
7748fi
7749
7750
7751
7752
7753
7754if test -z "$lt_cv_path_MAGIC_CMD"; then
7755 if test -n "$ac_tool_prefix"; then
7756 { $as_echo "$as_me:$LINENO: checking for file" >&5
7757$as_echo_n "checking for file... " >&6; }
7758if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7759 $as_echo_n "(cached) " >&6
7760else
7761 case $MAGIC_CMD in
7762[\\/*] | ?:[\\/]*)
7763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7764 ;;
7765*)
7766 lt_save_MAGIC_CMD="$MAGIC_CMD"
7767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7768 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7769 for ac_dir in $ac_dummy; do
7770 IFS="$lt_save_ifs"
7771 test -z "$ac_dir" && ac_dir=.
7772 if test -f $ac_dir/file; then
7773 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7774 if test -n "$file_magic_test_file"; then
7775 case $deplibs_check_method in
7776 "file_magic "*)
7777 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7779 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7780 $EGREP "$file_magic_regex" > /dev/null; then
7781 :
7782 else
7783 cat <<_LT_EOF 1>&2
7784
7785*** Warning: the command libtool uses to detect shared libraries,
7786*** $file_magic_cmd, produces output that libtool cannot recognize.
7787*** The result is that libtool may fail to recognize shared libraries
7788*** as such. This will affect the creation of libtool libraries that
7789*** depend on shared libraries, but programs linked with such libtool
7790*** libraries will work regardless of this problem. Nevertheless, you
7791*** may want to report the problem to your system manager and/or to
7792*** bug-libtool@gnu.org
7793
7794_LT_EOF
7795 fi ;;
7796 esac
7797 fi
7798 break
7799 fi
7800 done
7801 IFS="$lt_save_ifs"
7802 MAGIC_CMD="$lt_save_MAGIC_CMD"
7803 ;;
7804esac
7805fi
7806
7807MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7808if test -n "$MAGIC_CMD"; then
7809 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7810$as_echo "$MAGIC_CMD" >&6; }
7811else
7812 { $as_echo "$as_me:$LINENO: result: no" >&5
7813$as_echo "no" >&6; }
7814fi
7815
7816
7817 else
7818 MAGIC_CMD=:
7819 fi
7820fi
7821
7822 fi
7823 ;;
7824esac
7825
7826# Use C for the default configuration in the libtool script
7827
7828lt_save_CC="$CC"
7829ac_ext=c
7830ac_cpp='$CPP $CPPFLAGS'
7831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7833ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834
7835
7836# Source file extension for C test sources.
7837ac_ext=c
7838
7839# Object file extension for compiled C test sources.
7840objext=o
7841objext=$objext
7842
7843# Code to be used in simple compile tests
7844lt_simple_compile_test_code="int some_variable = 0;"
7845
7846# Code to be used in simple link tests
7847lt_simple_link_test_code='int main(){return(0);}'
7848
7849
7850
7851
7852
7853
7854
7855# If no C compiler was specified, use CC.
7856LTCC=${LTCC-"$CC"}
7857
7858# If no C compiler flags were specified, use CFLAGS.
7859LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7860
7861# Allow CC to be a program name with arguments.
7862compiler=$CC
7863
7864# Save the default compiler, since it gets overwritten when the other
7865# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7866compiler_DEFAULT=$CC
7867
7868# save warnings/boilerplate of simple test code
7869ac_outfile=conftest.$ac_objext
7870echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7872_lt_compiler_boilerplate=`cat conftest.err`
7873$RM conftest*
7874
7875ac_outfile=conftest.$ac_objext
7876echo "$lt_simple_link_test_code" >conftest.$ac_ext
7877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7878_lt_linker_boilerplate=`cat conftest.err`
7879$RM -r conftest*
7880
7881
7882if test -n "$compiler"; then
7883
7884lt_prog_compiler_no_builtin_flag=
7885
7886if test "$GCC" = yes; then
7887 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7888
7889 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7890$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7891if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7892 $as_echo_n "(cached) " >&6
7893else
7894 lt_cv_prog_compiler_rtti_exceptions=no
7895 ac_outfile=conftest.$ac_objext
7896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897 lt_compiler_flag="-fno-rtti -fno-exceptions"
7898 # Insert the option either (1) after the last *FLAGS variable, or
7899 # (2) before a word containing "conftest.", or (3) at the end.
7900 # Note that $ac_compile itself does not contain backslashes and begins
7901 # with a dollar sign (not a hyphen), so the echo should work correctly.
7902 # The option is referenced via a variable to avoid confusing sed.
7903 lt_compile=`echo "$ac_compile" | $SED \
7904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906 -e 's:$: $lt_compiler_flag:'`
1c5de20a 7907 (eval echo "\"\$as_me:7907: $lt_compile\"" >&5)
e70e591c
BB
7908 (eval "$lt_compile" 2>conftest.err)
7909 ac_status=$?
7910 cat conftest.err >&5
1c5de20a 7911 echo "$as_me:7911: \$? = $ac_status" >&5
e70e591c
BB
7912 if (exit $ac_status) && test -s "$ac_outfile"; then
7913 # The compiler can only warn and ignore the option if not recognized
7914 # So say no if there are warnings other than the usual output.
7915 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7918 lt_cv_prog_compiler_rtti_exceptions=yes
7919 fi
7920 fi
7921 $RM conftest*
7922
7923fi
7924{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7925$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7926
7927if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7928 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7929else
7930 :
7931fi
7932
7933fi
7934
7935
7936
7937
7938
7939
7940 lt_prog_compiler_wl=
7941lt_prog_compiler_pic=
7942lt_prog_compiler_static=
7943
7944{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7945$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7946
7947 if test "$GCC" = yes; then
7948 lt_prog_compiler_wl='-Wl,'
7949 lt_prog_compiler_static='-static'
7950
7951 case $host_os in
7952 aix*)
7953 # All AIX code is PIC.
7954 if test "$host_cpu" = ia64; then
7955 # AIX 5 now supports IA64 processor
7956 lt_prog_compiler_static='-Bstatic'
7957 fi
7958 ;;
7959
7960 amigaos*)
7961 case $host_cpu in
7962 powerpc)
7963 # see comment about AmigaOS4 .so support
7964 lt_prog_compiler_pic='-fPIC'
7965 ;;
7966 m68k)
7967 # FIXME: we need at least 68020 code to build shared libraries, but
7968 # adding the `-m68020' flag to GCC prevents building anything better,
7969 # like `-m68040'.
7970 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7971 ;;
7972 esac
7973 ;;
7974
7975 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7976 # PIC is the default for these OSes.
7977 ;;
7978
7979 mingw* | cygwin* | pw32* | os2* | cegcc*)
7980 # This hack is so that the source file can tell whether it is being
7981 # built for inclusion in a dll (and should export symbols for example).
7982 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7983 # (--disable-auto-import) libraries
7984 lt_prog_compiler_pic='-DDLL_EXPORT'
7985 ;;
7986
7987 darwin* | rhapsody*)
7988 # PIC is the default on this platform
7989 # Common symbols not allowed in MH_DYLIB files
7990 lt_prog_compiler_pic='-fno-common'
7991 ;;
7992
7993 hpux*)
7994 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7995 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7996 # sets the default TLS model and affects inlining.
7997 case $host_cpu in
7998 hppa*64*)
7999 # +Z the default
8000 ;;
8001 *)
8002 lt_prog_compiler_pic='-fPIC'
8003 ;;
8004 esac
8005 ;;
8006
8007 interix[3-9]*)
8008 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8009 # Instead, we relocate shared libraries at runtime.
8010 ;;
8011
8012 msdosdjgpp*)
8013 # Just because we use GCC doesn't mean we suddenly get shared libraries
8014 # on systems that don't support them.
8015 lt_prog_compiler_can_build_shared=no
8016 enable_shared=no
8017 ;;
8018
8019 *nto* | *qnx*)
8020 # QNX uses GNU C++, but need to define -shared option too, otherwise
8021 # it will coredump.
8022 lt_prog_compiler_pic='-fPIC -shared'
8023 ;;
8024
8025 sysv4*MP*)
8026 if test -d /usr/nec; then
8027 lt_prog_compiler_pic=-Kconform_pic
8028 fi
8029 ;;
8030
8031 *)
8032 lt_prog_compiler_pic='-fPIC'
8033 ;;
8034 esac
8035 else
8036 # PORTME Check for flag to pass linker flags through the system compiler.
8037 case $host_os in
8038 aix*)
8039 lt_prog_compiler_wl='-Wl,'
8040 if test "$host_cpu" = ia64; then
8041 # AIX 5 now supports IA64 processor
8042 lt_prog_compiler_static='-Bstatic'
8043 else
8044 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8045 fi
8046 ;;
8047
8048 mingw* | cygwin* | pw32* | os2* | cegcc*)
8049 # This hack is so that the source file can tell whether it is being
8050 # built for inclusion in a dll (and should export symbols for example).
8051 lt_prog_compiler_pic='-DDLL_EXPORT'
8052 ;;
8053
8054 hpux9* | hpux10* | hpux11*)
8055 lt_prog_compiler_wl='-Wl,'
8056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8057 # not for PA HP-UX.
8058 case $host_cpu in
8059 hppa*64*|ia64*)
8060 # +Z the default
8061 ;;
8062 *)
8063 lt_prog_compiler_pic='+Z'
8064 ;;
8065 esac
8066 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8067 lt_prog_compiler_static='${wl}-a ${wl}archive'
8068 ;;
8069
8070 irix5* | irix6* | nonstopux*)
8071 lt_prog_compiler_wl='-Wl,'
8072 # PIC (with -KPIC) is the default.
8073 lt_prog_compiler_static='-non_shared'
8074 ;;
8075
8076 linux* | k*bsd*-gnu)
8077 case $cc_basename in
8078 # old Intel for x86_64 which still supported -KPIC.
8079 ecc*)
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-static'
8083 ;;
8084 # icc used to be incompatible with GCC.
8085 # ICC 10 doesn't accept -KPIC any more.
8086 icc* | ifort*)
8087 lt_prog_compiler_wl='-Wl,'
8088 lt_prog_compiler_pic='-fPIC'
8089 lt_prog_compiler_static='-static'
8090 ;;
8091 # Lahey Fortran 8.1.
8092 lf95*)
8093 lt_prog_compiler_wl='-Wl,'
8094 lt_prog_compiler_pic='--shared'
8095 lt_prog_compiler_static='--static'
8096 ;;
8097 pgcc* | pgf77* | pgf90* | pgf95*)
8098 # Portland Group compilers (*not* the Pentium gcc compiler,
8099 # which looks to be a dead project)
8100 lt_prog_compiler_wl='-Wl,'
8101 lt_prog_compiler_pic='-fpic'
8102 lt_prog_compiler_static='-Bstatic'
8103 ;;
8104 ccc*)
8105 lt_prog_compiler_wl='-Wl,'
8106 # All Alpha code is PIC.
8107 lt_prog_compiler_static='-non_shared'
8108 ;;
8109 xl*)
8110 # IBM XL C 8.0/Fortran 10.1 on PPC
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='-qpic'
8113 lt_prog_compiler_static='-qstaticlink'
8114 ;;
8115 *)
8116 case `$CC -V 2>&1 | sed 5q` in
8117 *Sun\ C*)
8118 # Sun C 5.9
8119 lt_prog_compiler_pic='-KPIC'
8120 lt_prog_compiler_static='-Bstatic'
8121 lt_prog_compiler_wl='-Wl,'
8122 ;;
8123 *Sun\ F*)
8124 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 lt_prog_compiler_wl=''
8128 ;;
8129 esac
8130 ;;
8131 esac
8132 ;;
8133
8134 newsos6)
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 ;;
8138
8139 *nto* | *qnx*)
8140 # QNX uses GNU C++, but need to define -shared option too, otherwise
8141 # it will coredump.
8142 lt_prog_compiler_pic='-fPIC -shared'
8143 ;;
8144
8145 osf3* | osf4* | osf5*)
8146 lt_prog_compiler_wl='-Wl,'
8147 # All OSF/1 code is PIC.
8148 lt_prog_compiler_static='-non_shared'
8149 ;;
8150
8151 rdos*)
8152 lt_prog_compiler_static='-non_shared'
8153 ;;
8154
8155 solaris*)
8156 lt_prog_compiler_pic='-KPIC'
8157 lt_prog_compiler_static='-Bstatic'
8158 case $cc_basename in
8159 f77* | f90* | f95*)
8160 lt_prog_compiler_wl='-Qoption ld ';;
8161 *)
8162 lt_prog_compiler_wl='-Wl,';;
8163 esac
8164 ;;
8165
8166 sunos4*)
8167 lt_prog_compiler_wl='-Qoption ld '
8168 lt_prog_compiler_pic='-PIC'
8169 lt_prog_compiler_static='-Bstatic'
8170 ;;
8171
8172 sysv4 | sysv4.2uw2* | sysv4.3*)
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_pic='-KPIC'
8175 lt_prog_compiler_static='-Bstatic'
8176 ;;
8177
8178 sysv4*MP*)
8179 if test -d /usr/nec ;then
8180 lt_prog_compiler_pic='-Kconform_pic'
8181 lt_prog_compiler_static='-Bstatic'
8182 fi
8183 ;;
8184
8185 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='-KPIC'
8188 lt_prog_compiler_static='-Bstatic'
8189 ;;
8190
8191 unicos*)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_can_build_shared=no
8194 ;;
8195
8196 uts4*)
8197 lt_prog_compiler_pic='-pic'
8198 lt_prog_compiler_static='-Bstatic'
8199 ;;
8200
8201 *)
8202 lt_prog_compiler_can_build_shared=no
8203 ;;
8204 esac
8205 fi
8206
8207case $host_os in
8208 # For platforms which do not support PIC, -DPIC is meaningless:
8209 *djgpp*)
8210 lt_prog_compiler_pic=
8211 ;;
8212 *)
8213 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8214 ;;
8215esac
8216{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8217$as_echo "$lt_prog_compiler_pic" >&6; }
8218
8219
8220
8221
8222
8223
8224#
8225# Check to make sure the PIC flag actually works.
8226#
8227if test -n "$lt_prog_compiler_pic"; then
8228 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8229$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8230if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8231 $as_echo_n "(cached) " >&6
8232else
8233 lt_cv_prog_compiler_pic_works=no
8234 ac_outfile=conftest.$ac_objext
8235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8236 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8237 # Insert the option either (1) after the last *FLAGS variable, or
8238 # (2) before a word containing "conftest.", or (3) at the end.
8239 # Note that $ac_compile itself does not contain backslashes and begins
8240 # with a dollar sign (not a hyphen), so the echo should work correctly.
8241 # The option is referenced via a variable to avoid confusing sed.
8242 lt_compile=`echo "$ac_compile" | $SED \
8243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8245 -e 's:$: $lt_compiler_flag:'`
1c5de20a 8246 (eval echo "\"\$as_me:8246: $lt_compile\"" >&5)
e70e591c
BB
8247 (eval "$lt_compile" 2>conftest.err)
8248 ac_status=$?
8249 cat conftest.err >&5
1c5de20a 8250 echo "$as_me:8250: \$? = $ac_status" >&5
e70e591c
BB
8251 if (exit $ac_status) && test -s "$ac_outfile"; then
8252 # The compiler can only warn and ignore the option if not recognized
8253 # So say no if there are warnings other than the usual output.
8254 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8257 lt_cv_prog_compiler_pic_works=yes
8258 fi
8259 fi
8260 $RM conftest*
8261
8262fi
8263{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8264$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8265
8266if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8267 case $lt_prog_compiler_pic in
8268 "" | " "*) ;;
8269 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8270 esac
8271else
8272 lt_prog_compiler_pic=
8273 lt_prog_compiler_can_build_shared=no
8274fi
8275
8276fi
8277
8278
8279
8280
8281
8282
8283#
8284# Check to make sure the static flag actually works.
8285#
8286wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8287{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8288$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8289if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8290 $as_echo_n "(cached) " >&6
8291else
8292 lt_cv_prog_compiler_static_works=no
8293 save_LDFLAGS="$LDFLAGS"
8294 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8295 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8297 # The linker can only warn and ignore the option if not recognized
8298 # So say no if there are warnings
8299 if test -s conftest.err; then
8300 # Append any errors to the config.log.
8301 cat conftest.err 1>&5
8302 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8304 if diff conftest.exp conftest.er2 >/dev/null; then
8305 lt_cv_prog_compiler_static_works=yes
8306 fi
8307 else
8308 lt_cv_prog_compiler_static_works=yes
8309 fi
8310 fi
8311 $RM -r conftest*
8312 LDFLAGS="$save_LDFLAGS"
8313
8314fi
8315{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8316$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8317
8318if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8319 :
8320else
8321 lt_prog_compiler_static=
8322fi
8323
8324
8325
8326
8327
8328
8329
8330 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8331$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8332if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8333 $as_echo_n "(cached) " >&6
8334else
8335 lt_cv_prog_compiler_c_o=no
8336 $RM -r conftest 2>/dev/null
8337 mkdir conftest
8338 cd conftest
8339 mkdir out
8340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8341
8342 lt_compiler_flag="-o out/conftest2.$ac_objext"
8343 # Insert the option either (1) after the last *FLAGS variable, or
8344 # (2) before a word containing "conftest.", or (3) at the end.
8345 # Note that $ac_compile itself does not contain backslashes and begins
8346 # with a dollar sign (not a hyphen), so the echo should work correctly.
8347 lt_compile=`echo "$ac_compile" | $SED \
8348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8350 -e 's:$: $lt_compiler_flag:'`
1c5de20a 8351 (eval echo "\"\$as_me:8351: $lt_compile\"" >&5)
e70e591c
BB
8352 (eval "$lt_compile" 2>out/conftest.err)
8353 ac_status=$?
8354 cat out/conftest.err >&5
1c5de20a 8355 echo "$as_me:8355: \$? = $ac_status" >&5
e70e591c
BB
8356 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8357 then
8358 # The compiler can only warn and ignore the option if not recognized
8359 # So say no if there are warnings
8360 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8361 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8362 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8363 lt_cv_prog_compiler_c_o=yes
8364 fi
8365 fi
8366 chmod u+w . 2>&5
8367 $RM conftest*
8368 # SGI C++ compiler will create directory out/ii_files/ for
8369 # template instantiation
8370 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8371 $RM out/* && rmdir out
8372 cd ..
8373 $RM -r conftest
8374 $RM conftest*
8375
8376fi
8377{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8378$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8379
8380
8381
8382
8383
8384
8385 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8386$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8387if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8388 $as_echo_n "(cached) " >&6
8389else
8390 lt_cv_prog_compiler_c_o=no
8391 $RM -r conftest 2>/dev/null
8392 mkdir conftest
8393 cd conftest
8394 mkdir out
8395 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8396
8397 lt_compiler_flag="-o out/conftest2.$ac_objext"
8398 # Insert the option either (1) after the last *FLAGS variable, or
8399 # (2) before a word containing "conftest.", or (3) at the end.
8400 # Note that $ac_compile itself does not contain backslashes and begins
8401 # with a dollar sign (not a hyphen), so the echo should work correctly.
8402 lt_compile=`echo "$ac_compile" | $SED \
8403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8405 -e 's:$: $lt_compiler_flag:'`
1c5de20a 8406 (eval echo "\"\$as_me:8406: $lt_compile\"" >&5)
e70e591c
BB
8407 (eval "$lt_compile" 2>out/conftest.err)
8408 ac_status=$?
8409 cat out/conftest.err >&5
1c5de20a 8410 echo "$as_me:8410: \$? = $ac_status" >&5
e70e591c
BB
8411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8412 then
8413 # The compiler can only warn and ignore the option if not recognized
8414 # So say no if there are warnings
8415 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8418 lt_cv_prog_compiler_c_o=yes
8419 fi
8420 fi
8421 chmod u+w . 2>&5
8422 $RM conftest*
8423 # SGI C++ compiler will create directory out/ii_files/ for
8424 # template instantiation
8425 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8426 $RM out/* && rmdir out
8427 cd ..
8428 $RM -r conftest
8429 $RM conftest*
8430
8431fi
8432{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8433$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8434
8435
8436
8437
8438hard_links="nottested"
8439if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8440 # do not overwrite the value of need_locks provided by the user
8441 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8442$as_echo_n "checking if we can lock with hard links... " >&6; }
8443 hard_links=yes
8444 $RM conftest*
8445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8446 touch conftest.a
8447 ln conftest.a conftest.b 2>&5 || hard_links=no
8448 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8449 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8450$as_echo "$hard_links" >&6; }
8451 if test "$hard_links" = no; then
8452 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8453$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8454 need_locks=warn
8455 fi
8456else
8457 need_locks=no
8458fi
8459
8460
8461
8462
8463
8464
8465 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8466$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8467
8468 runpath_var=
8469 allow_undefined_flag=
8470 always_export_symbols=no
8471 archive_cmds=
8472 archive_expsym_cmds=
8473 compiler_needs_object=no
8474 enable_shared_with_static_runtimes=no
8475 export_dynamic_flag_spec=
8476 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8477 hardcode_automatic=no
8478 hardcode_direct=no
8479 hardcode_direct_absolute=no
8480 hardcode_libdir_flag_spec=
8481 hardcode_libdir_flag_spec_ld=
8482 hardcode_libdir_separator=
8483 hardcode_minus_L=no
8484 hardcode_shlibpath_var=unsupported
8485 inherit_rpath=no
8486 link_all_deplibs=unknown
8487 module_cmds=
8488 module_expsym_cmds=
8489 old_archive_from_new_cmds=
8490 old_archive_from_expsyms_cmds=
8491 thread_safe_flag_spec=
8492 whole_archive_flag_spec=
8493 # include_expsyms should be a list of space-separated symbols to be *always*
8494 # included in the symbol list
8495 include_expsyms=
8496 # exclude_expsyms can be an extended regexp of symbols to exclude
8497 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8498 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8499 # as well as any symbol that contains `d'.
8500 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8501 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8502 # platforms (ab)use it in PIC code, but their linkers get confused if
8503 # the symbol is explicitly referenced. Since portable code cannot
8504 # rely on this symbol name, it's probably fine to never include it in
8505 # preloaded symbol tables.
8506 # Exclude shared library initialization/finalization symbols.
8507 extract_expsyms_cmds=
8508
8509 case $host_os in
8510 cygwin* | mingw* | pw32* | cegcc*)
8511 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8512 # When not using gcc, we currently assume that we are using
8513 # Microsoft Visual C++.
8514 if test "$GCC" != yes; then
8515 with_gnu_ld=no
8516 fi
8517 ;;
8518 interix*)
8519 # we just hope/assume this is gcc and not c89 (= MSVC++)
8520 with_gnu_ld=yes
8521 ;;
8522 openbsd*)
8523 with_gnu_ld=no
8524 ;;
8525 esac
8526
8527 ld_shlibs=yes
8528 if test "$with_gnu_ld" = yes; then
8529 # If archive_cmds runs LD, not CC, wlarc should be empty
8530 wlarc='${wl}'
8531
8532 # Set some defaults for GNU ld with shared library support. These
8533 # are reset later if shared libraries are not supported. Putting them
8534 # here allows them to be overridden if necessary.
8535 runpath_var=LD_RUN_PATH
8536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8537 export_dynamic_flag_spec='${wl}--export-dynamic'
8538 # ancient GNU ld didn't support --whole-archive et. al.
8539 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8540 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8541 else
8542 whole_archive_flag_spec=
8543 fi
8544 supports_anon_versioning=no
8545 case `$LD -v 2>&1` in
8546 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8547 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8548 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8549 *\ 2.11.*) ;; # other 2.11 versions
8550 *) supports_anon_versioning=yes ;;
8551 esac
8552
8553 # See if GNU ld supports shared libraries.
8554 case $host_os in
8555 aix[3-9]*)
8556 # On AIX/PPC, the GNU linker is very broken
8557 if test "$host_cpu" != ia64; then
8558 ld_shlibs=no
8559 cat <<_LT_EOF 1>&2
8560
8561*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8562*** to be unable to reliably create shared libraries on AIX.
8563*** Therefore, libtool is disabling shared libraries support. If you
8564*** really care for shared libraries, you may want to modify your PATH
8565*** so that a non-GNU linker is found, and then restart.
8566
8567_LT_EOF
8568 fi
8569 ;;
8570
8571 amigaos*)
8572 case $host_cpu in
8573 powerpc)
8574 # see comment about AmigaOS4 .so support
8575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 archive_expsym_cmds=''
8577 ;;
8578 m68k)
8579 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)'
8580 hardcode_libdir_flag_spec='-L$libdir'
8581 hardcode_minus_L=yes
8582 ;;
8583 esac
8584 ;;
8585
8586 beos*)
8587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8588 allow_undefined_flag=unsupported
8589 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8590 # support --undefined. This deserves some investigation. FIXME
8591 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8592 else
8593 ld_shlibs=no
8594 fi
8595 ;;
8596
8597 cygwin* | mingw* | pw32* | cegcc*)
8598 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8599 # as there is no search path for DLLs.
8600 hardcode_libdir_flag_spec='-L$libdir'
8601 allow_undefined_flag=unsupported
8602 always_export_symbols=no
8603 enable_shared_with_static_runtimes=yes
8604 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8605
8606 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8608 # If the export-symbols file already is a .def file (1st line
8609 # is EXPORTS), use it as is; otherwise, prepend...
8610 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8611 cp $export_symbols $output_objdir/$soname.def;
8612 else
8613 echo EXPORTS > $output_objdir/$soname.def;
8614 cat $export_symbols >> $output_objdir/$soname.def;
8615 fi~
8616 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8617 else
8618 ld_shlibs=no
8619 fi
8620 ;;
8621
8622 interix[3-9]*)
8623 hardcode_direct=no
8624 hardcode_shlibpath_var=no
8625 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8626 export_dynamic_flag_spec='${wl}-E'
8627 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8628 # Instead, shared libraries are loaded at an image base (0x10000000 by
8629 # default) and relocated if they conflict, which is a slow very memory
8630 # consuming and fragmenting process. To avoid this, we pick a random,
8631 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8632 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8633 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8634 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'
8635 ;;
8636
8637 gnu* | linux* | tpf* | k*bsd*-gnu)
8638 tmp_diet=no
8639 if test "$host_os" = linux-dietlibc; then
8640 case $cc_basename in
8641 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8642 esac
8643 fi
8644 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8645 && test "$tmp_diet" = no
8646 then
8647 tmp_addflag=
8648 tmp_sharedflag='-shared'
8649 case $cc_basename,$host_cpu in
8650 pgcc*) # Portland Group C compiler
8651 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'
8652 tmp_addflag=' $pic_flag'
8653 ;;
8654 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8655 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'
8656 tmp_addflag=' $pic_flag -Mnomain' ;;
8657 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8658 tmp_addflag=' -i_dynamic' ;;
8659 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8660 tmp_addflag=' -i_dynamic -nofor_main' ;;
8661 ifc* | ifort*) # Intel Fortran compiler
8662 tmp_addflag=' -nofor_main' ;;
8663 lf95*) # Lahey Fortran 8.1
8664 whole_archive_flag_spec=
8665 tmp_sharedflag='--shared' ;;
8666 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8667 tmp_sharedflag='-qmkshrobj'
8668 tmp_addflag= ;;
8669 esac
8670 case `$CC -V 2>&1 | sed 5q` in
8671 *Sun\ C*) # Sun C 5.9
8672 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'
8673 compiler_needs_object=yes
8674 tmp_sharedflag='-G' ;;
8675 *Sun\ F*) # Sun Fortran 8.3
8676 tmp_sharedflag='-G' ;;
8677 esac
8678 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679
8680 if test "x$supports_anon_versioning" = xyes; then
8681 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8682 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8683 echo "local: *; };" >> $output_objdir/$libname.ver~
8684 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8685 fi
8686
8687 case $cc_basename in
8688 xlf*)
8689 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8690 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8691 hardcode_libdir_flag_spec=
8692 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8693 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8694 if test "x$supports_anon_versioning" = xyes; then
8695 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8697 echo "local: *; };" >> $output_objdir/$libname.ver~
8698 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8699 fi
8700 ;;
8701 esac
8702 else
8703 ld_shlibs=no
8704 fi
8705 ;;
8706
8707 netbsd*)
8708 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8709 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8710 wlarc=
8711 else
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714 fi
8715 ;;
8716
8717 solaris*)
8718 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8719 ld_shlibs=no
8720 cat <<_LT_EOF 1>&2
8721
8722*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8723*** create shared libraries on Solaris systems. Therefore, libtool
8724*** is disabling shared libraries support. We urge you to upgrade GNU
8725*** binutils to release 2.9.1 or newer. Another option is to modify
8726*** your PATH or compiler configuration so that the native linker is
8727*** used, and then restart.
8728
8729_LT_EOF
8730 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8733 else
8734 ld_shlibs=no
8735 fi
8736 ;;
8737
8738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8739 case `$LD -v 2>&1` in
8740 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8741 ld_shlibs=no
8742 cat <<_LT_EOF 1>&2
8743
8744*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8745*** reliably create shared libraries on SCO systems. Therefore, libtool
8746*** is disabling shared libraries support. We urge you to upgrade GNU
8747*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8748*** your PATH or compiler configuration so that the native linker is
8749*** used, and then restart.
8750
8751_LT_EOF
8752 ;;
8753 *)
8754 # For security reasons, it is highly recommended that you always
8755 # use absolute paths for naming shared libraries, and exclude the
8756 # DT_RUNPATH tag from executables and libraries. But doing so
8757 # requires that you compile everything twice, which is a pain.
8758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8762 else
8763 ld_shlibs=no
8764 fi
8765 ;;
8766 esac
8767 ;;
8768
8769 sunos4*)
8770 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8771 wlarc=
8772 hardcode_direct=yes
8773 hardcode_shlibpath_var=no
8774 ;;
8775
8776 *)
8777 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8780 else
8781 ld_shlibs=no
8782 fi
8783 ;;
8784 esac
8785
8786 if test "$ld_shlibs" = no; then
8787 runpath_var=
8788 hardcode_libdir_flag_spec=
8789 export_dynamic_flag_spec=
8790 whole_archive_flag_spec=
8791 fi
8792 else
8793 # PORTME fill in a description of your system's linker (not GNU ld)
8794 case $host_os in
8795 aix3*)
8796 allow_undefined_flag=unsupported
8797 always_export_symbols=yes
8798 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'
8799 # Note: this linker hardcodes the directories in LIBPATH if there
8800 # are no directories specified by -L.
8801 hardcode_minus_L=yes
8802 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8803 # Neither direct hardcoding nor static linking is supported with a
8804 # broken collect2.
8805 hardcode_direct=unsupported
8806 fi
8807 ;;
8808
8809 aix[4-9]*)
8810 if test "$host_cpu" = ia64; then
8811 # On IA64, the linker does run time linking by default, so we don't
8812 # have to do anything special.
8813 aix_use_runtimelinking=no
8814 exp_sym_flag='-Bexport'
8815 no_entry_flag=""
8816 else
8817 # If we're using GNU nm, then we don't want the "-C" option.
8818 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8819 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8820 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'
8821 else
8822 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'
8823 fi
8824 aix_use_runtimelinking=no
8825
8826 # Test if we are trying to use run time linking or normal
8827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8828 # need to do runtime linking.
8829 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8830 for ld_flag in $LDFLAGS; do
8831 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8832 aix_use_runtimelinking=yes
8833 break
8834 fi
8835 done
8836 ;;
8837 esac
8838
8839 exp_sym_flag='-bexport'
8840 no_entry_flag='-bnoentry'
8841 fi
8842
8843 # When large executables or shared objects are built, AIX ld can
8844 # have problems creating the table of contents. If linking a library
8845 # or program results in "error TOC overflow" add -mminimal-toc to
8846 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8847 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8848
8849 archive_cmds=''
8850 hardcode_direct=yes
8851 hardcode_direct_absolute=yes
8852 hardcode_libdir_separator=':'
8853 link_all_deplibs=yes
8854 file_list_spec='${wl}-f,'
8855
8856 if test "$GCC" = yes; then
8857 case $host_os in aix4.[012]|aix4.[012].*)
8858 # We only want to do this on AIX 4.2 and lower, the check
8859 # below for broken collect2 doesn't work under 4.3+
8860 collect2name=`${CC} -print-prog-name=collect2`
8861 if test -f "$collect2name" &&
8862 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8863 then
8864 # We have reworked collect2
8865 :
8866 else
8867 # We have old collect2
8868 hardcode_direct=unsupported
8869 # It fails to find uninstalled libraries when the uninstalled
8870 # path is not listed in the libpath. Setting hardcode_minus_L
8871 # to unsupported forces relinking
8872 hardcode_minus_L=yes
8873 hardcode_libdir_flag_spec='-L$libdir'
8874 hardcode_libdir_separator=
8875 fi
8876 ;;
8877 esac
8878 shared_flag='-shared'
8879 if test "$aix_use_runtimelinking" = yes; then
8880 shared_flag="$shared_flag "'${wl}-G'
8881 fi
8882 else
8883 # not using gcc
8884 if test "$host_cpu" = ia64; then
8885 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8886 # chokes on -Wl,-G. The following line is correct:
8887 shared_flag='-G'
8888 else
8889 if test "$aix_use_runtimelinking" = yes; then
8890 shared_flag='${wl}-G'
8891 else
8892 shared_flag='${wl}-bM:SRE'
8893 fi
8894 fi
8895 fi
8896
8897 export_dynamic_flag_spec='${wl}-bexpall'
8898 # It seems that -bexpall does not export symbols beginning with
8899 # underscore (_), so it is better to generate a list of symbols to export.
8900 always_export_symbols=yes
8901 if test "$aix_use_runtimelinking" = yes; then
8902 # Warning - without using the other runtime loading flags (-brtl),
8903 # -berok will link without error, but may produce a broken library.
8904 allow_undefined_flag='-berok'
8905 # Determine the default libpath from the value encoded in an
8906 # empty executable.
8907 cat >conftest.$ac_ext <<_ACEOF
8908/* confdefs.h. */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h. */
8913
8914int
8915main ()
8916{
8917
8918 ;
8919 return 0;
8920}
8921_ACEOF
8922rm -f conftest.$ac_objext conftest$ac_exeext
8923if { (ac_try="$ac_link"
8924case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927esac
8928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8929$as_echo "$ac_try_echo") >&5
8930 (eval "$ac_link") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest$ac_exeext && {
8940 test "$cross_compiling" = yes ||
8941 $as_test_x conftest$ac_exeext
8942 }; then
8943
8944lt_aix_libpath_sed='
8945 /Import File Strings/,/^$/ {
8946 /^0/ {
8947 s/^0 *\(.*\)$/\1/
8948 p
8949 }
8950 }'
8951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8952# Check for a 64-bit object if we didn't find anything.
8953if test -z "$aix_libpath"; then
8954 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955fi
8956else
8957 $as_echo "$as_me: failed program was:" >&5
8958sed 's/^/| /' conftest.$ac_ext >&5
8959
8960
8961fi
8962
8963rm -rf conftest.dSYM
8964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8965 conftest$ac_exeext conftest.$ac_ext
8966if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8967
8968 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8969 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"
8970 else
8971 if test "$host_cpu" = ia64; then
8972 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8973 allow_undefined_flag="-z nodefs"
8974 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"
8975 else
8976 # Determine the default libpath from the value encoded in an
8977 # empty executable.
8978 cat >conftest.$ac_ext <<_ACEOF
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
8984
8985int
8986main ()
8987{
8988
8989 ;
8990 return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (ac_try="$ac_link"
8995case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998esac
8999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9000$as_echo "$ac_try_echo") >&5
9001 (eval "$ac_link") 2>conftest.er1
9002 ac_status=$?
9003 grep -v '^ *+' conftest.er1 >conftest.err
9004 rm -f conftest.er1
9005 cat conftest.err >&5
9006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } && {
9008 test -z "$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9010 } && test -s conftest$ac_exeext && {
9011 test "$cross_compiling" = yes ||
9012 $as_test_x conftest$ac_exeext
9013 }; then
9014
9015lt_aix_libpath_sed='
9016 /Import File Strings/,/^$/ {
9017 /^0/ {
9018 s/^0 *\(.*\)$/\1/
9019 p
9020 }
9021 }'
9022aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9023# Check for a 64-bit object if we didn't find anything.
9024if test -z "$aix_libpath"; then
9025 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026fi
9027else
9028 $as_echo "$as_me: failed program was:" >&5
9029sed 's/^/| /' conftest.$ac_ext >&5
9030
9031
9032fi
9033
9034rm -rf conftest.dSYM
9035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036 conftest$ac_exeext conftest.$ac_ext
9037if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9038
9039 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9040 # Warning - without using the other run time loading flags,
9041 # -berok will link without error, but may produce a broken library.
9042 no_undefined_flag=' ${wl}-bernotok'
9043 allow_undefined_flag=' ${wl}-berok'
9044 # Exported symbols can be pulled into shared objects from archives
9045 whole_archive_flag_spec='$convenience'
9046 archive_cmds_need_lc=yes
9047 # This is similar to how AIX traditionally builds its shared libraries.
9048 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'
9049 fi
9050 fi
9051 ;;
9052
9053 amigaos*)
9054 case $host_cpu in
9055 powerpc)
9056 # see comment about AmigaOS4 .so support
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds=''
9059 ;;
9060 m68k)
9061 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)'
9062 hardcode_libdir_flag_spec='-L$libdir'
9063 hardcode_minus_L=yes
9064 ;;
9065 esac
9066 ;;
9067
9068 bsdi[45]*)
9069 export_dynamic_flag_spec=-rdynamic
9070 ;;
9071
9072 cygwin* | mingw* | pw32* | cegcc*)
9073 # When not using gcc, we currently assume that we are using
9074 # Microsoft Visual C++.
9075 # hardcode_libdir_flag_spec is actually meaningless, as there is
9076 # no search path for DLLs.
9077 hardcode_libdir_flag_spec=' '
9078 allow_undefined_flag=unsupported
9079 # Tell ltmain to make .lib files, not .a files.
9080 libext=lib
9081 # Tell ltmain to make .dll files, not .so files.
9082 shrext_cmds=".dll"
9083 # FIXME: Setting linknames here is a bad hack.
9084 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9085 # The linker will automatically build a .lib file if we build a DLL.
9086 old_archive_from_new_cmds='true'
9087 # FIXME: Should let the user specify the lib program.
9088 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9089 fix_srcfile_path='`cygpath -w "$srcfile"`'
9090 enable_shared_with_static_runtimes=yes
9091 ;;
9092
9093 darwin* | rhapsody*)
9094
9095
9096 archive_cmds_need_lc=no
9097 hardcode_direct=no
9098 hardcode_automatic=yes
9099 hardcode_shlibpath_var=unsupported
9100 whole_archive_flag_spec=''
9101 link_all_deplibs=yes
9102 allow_undefined_flag="$_lt_dar_allow_undefined"
9103 case $cc_basename in
9104 ifort*) _lt_dar_can_shared=yes ;;
9105 *) _lt_dar_can_shared=$GCC ;;
9106 esac
9107 if test "$_lt_dar_can_shared" = "yes"; then
9108 output_verbose_link_cmd=echo
9109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111 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}"
9112 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}"
9113
9114 else
9115 ld_shlibs=no
9116 fi
9117
9118 ;;
9119
9120 dgux*)
9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_shlibpath_var=no
9124 ;;
9125
9126 freebsd1*)
9127 ld_shlibs=no
9128 ;;
9129
9130 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9131 # support. Future versions do this automatically, but an explicit c++rt0.o
9132 # does not break anything, and helps significantly (at the cost of a little
9133 # extra space).
9134 freebsd2.2*)
9135 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9136 hardcode_libdir_flag_spec='-R$libdir'
9137 hardcode_direct=yes
9138 hardcode_shlibpath_var=no
9139 ;;
9140
9141 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9142 freebsd2*)
9143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_direct=yes
9145 hardcode_minus_L=yes
9146 hardcode_shlibpath_var=no
9147 ;;
9148
9149 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9150 freebsd* | dragonfly*)
9151 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9152 hardcode_libdir_flag_spec='-R$libdir'
9153 hardcode_direct=yes
9154 hardcode_shlibpath_var=no
9155 ;;
9156
9157 hpux9*)
9158 if test "$GCC" = yes; then
9159 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'
9160 else
9161 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'
9162 fi
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator=:
9165 hardcode_direct=yes
9166
9167 # hardcode_minus_L: Not really in the search PATH,
9168 # but as the default location of the library.
9169 hardcode_minus_L=yes
9170 export_dynamic_flag_spec='${wl}-E'
9171 ;;
9172
9173 hpux10*)
9174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9175 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9176 else
9177 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9178 fi
9179 if test "$with_gnu_ld" = no; then
9180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9181 hardcode_libdir_flag_spec_ld='+b $libdir'
9182 hardcode_libdir_separator=:
9183 hardcode_direct=yes
9184 hardcode_direct_absolute=yes
9185 export_dynamic_flag_spec='${wl}-E'
9186 # hardcode_minus_L: Not really in the search PATH,
9187 # but as the default location of the library.
9188 hardcode_minus_L=yes
9189 fi
9190 ;;
9191
9192 hpux11*)
9193 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9194 case $host_cpu in
9195 hppa*64*)
9196 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197 ;;
9198 ia64*)
9199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9200 ;;
9201 *)
9202 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203 ;;
9204 esac
9205 else
9206 case $host_cpu in
9207 hppa*64*)
9208 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209 ;;
9210 ia64*)
9211 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9212 ;;
9213 *)
9214 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215 ;;
9216 esac
9217 fi
9218 if test "$with_gnu_ld" = no; then
9219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9220 hardcode_libdir_separator=:
9221
9222 case $host_cpu in
9223 hppa*64*|ia64*)
9224 hardcode_direct=no
9225 hardcode_shlibpath_var=no
9226 ;;
9227 *)
9228 hardcode_direct=yes
9229 hardcode_direct_absolute=yes
9230 export_dynamic_flag_spec='${wl}-E'
9231
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9235 ;;
9236 esac
9237 fi
9238 ;;
9239
9240 irix5* | irix6* | nonstopux*)
9241 if test "$GCC" = yes; then
9242 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'
9243 # Try to use the -exported_symbol ld option, if it does not
9244 # work, assume that -exports_file does not work either and
9245 # implicitly export all symbols.
9246 save_LDFLAGS="$LDFLAGS"
9247 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9248 cat >conftest.$ac_ext <<_ACEOF
9249int foo(void) {}
9250_ACEOF
9251rm -f conftest.$ac_objext conftest$ac_exeext
9252if { (ac_try="$ac_link"
9253case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256esac
9257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9258$as_echo "$ac_try_echo") >&5
9259 (eval "$ac_link") 2>conftest.er1
9260 ac_status=$?
9261 grep -v '^ *+' conftest.er1 >conftest.err
9262 rm -f conftest.er1
9263 cat conftest.err >&5
9264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest$ac_exeext && {
9269 test "$cross_compiling" = yes ||
9270 $as_test_x conftest$ac_exeext
9271 }; then
9272 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'
9273
9274else
9275 $as_echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
9278
9279fi
9280
9281rm -rf conftest.dSYM
9282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9283 conftest$ac_exeext conftest.$ac_ext
9284 LDFLAGS="$save_LDFLAGS"
9285 else
9286 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'
9287 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'
9288 fi
9289 archive_cmds_need_lc='no'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 hardcode_libdir_separator=:
9292 inherit_rpath=yes
9293 link_all_deplibs=yes
9294 ;;
9295
9296 netbsd*)
9297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9299 else
9300 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9301 fi
9302 hardcode_libdir_flag_spec='-R$libdir'
9303 hardcode_direct=yes
9304 hardcode_shlibpath_var=no
9305 ;;
9306
9307 newsos6)
9308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309 hardcode_direct=yes
9310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311 hardcode_libdir_separator=:
9312 hardcode_shlibpath_var=no
9313 ;;
9314
9315 *nto* | *qnx*)
9316 ;;
9317
9318 openbsd*)
9319 if test -f /usr/libexec/ld.so; then
9320 hardcode_direct=yes
9321 hardcode_shlibpath_var=no
9322 hardcode_direct_absolute=yes
9323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9326 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9327 export_dynamic_flag_spec='${wl}-E'
9328 else
9329 case $host_os in
9330 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9332 hardcode_libdir_flag_spec='-R$libdir'
9333 ;;
9334 *)
9335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9337 ;;
9338 esac
9339 fi
9340 else
9341 ld_shlibs=no
9342 fi
9343 ;;
9344
9345 os2*)
9346 hardcode_libdir_flag_spec='-L$libdir'
9347 hardcode_minus_L=yes
9348 allow_undefined_flag=unsupported
9349 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'
9350 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9351 ;;
9352
9353 osf3*)
9354 if test "$GCC" = yes; then
9355 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9356 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'
9357 else
9358 allow_undefined_flag=' -expect_unresolved \*'
9359 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'
9360 fi
9361 archive_cmds_need_lc='no'
9362 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9363 hardcode_libdir_separator=:
9364 ;;
9365
9366 osf4* | osf5*) # as osf3* with the addition of -msym flag
9367 if test "$GCC" = yes; then
9368 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9369 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'
9370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371 else
9372 allow_undefined_flag=' -expect_unresolved \*'
9373 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'
9374 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~
9375 $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'
9376
9377 # Both c and cxx compiler support -rpath directly
9378 hardcode_libdir_flag_spec='-rpath $libdir'
9379 fi
9380 archive_cmds_need_lc='no'
9381 hardcode_libdir_separator=:
9382 ;;
9383
9384 solaris*)
9385 no_undefined_flag=' -z defs'
9386 if test "$GCC" = yes; then
9387 wlarc='${wl}'
9388 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9390 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9391 else
9392 case `$CC -V 2>&1` in
9393 *"Compilers 5.0"*)
9394 wlarc=''
9395 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9397 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9398 ;;
9399 *)
9400 wlarc='${wl}'
9401 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9403 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9404 ;;
9405 esac
9406 fi
9407 hardcode_libdir_flag_spec='-R$libdir'
9408 hardcode_shlibpath_var=no
9409 case $host_os in
9410 solaris2.[0-5] | solaris2.[0-5].*) ;;
9411 *)
9412 # The compiler driver will combine and reorder linker options,
9413 # but understands `-z linker_flag'. GCC discards it without `$wl',
9414 # but is careful enough not to reorder.
9415 # Supported since Solaris 2.6 (maybe 2.5.1?)
9416 if test "$GCC" = yes; then
9417 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9418 else
9419 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9420 fi
9421 ;;
9422 esac
9423 link_all_deplibs=yes
9424 ;;
9425
9426 sunos4*)
9427 if test "x$host_vendor" = xsequent; then
9428 # Use $CC to link under sequent, because it throws in some extra .o
9429 # files that make .init and .fini sections work.
9430 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9431 else
9432 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9433 fi
9434 hardcode_libdir_flag_spec='-L$libdir'
9435 hardcode_direct=yes
9436 hardcode_minus_L=yes
9437 hardcode_shlibpath_var=no
9438 ;;
9439
9440 sysv4)
9441 case $host_vendor in
9442 sni)
9443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444 hardcode_direct=yes # is this really true???
9445 ;;
9446 siemens)
9447 ## LD is ld it makes a PLAMLIB
9448 ## CC just makes a GrossModule.
9449 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9450 reload_cmds='$CC -r -o $output$reload_objs'
9451 hardcode_direct=no
9452 ;;
9453 motorola)
9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9456 ;;
9457 esac
9458 runpath_var='LD_RUN_PATH'
9459 hardcode_shlibpath_var=no
9460 ;;
9461
9462 sysv4.3*)
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_shlibpath_var=no
9465 export_dynamic_flag_spec='-Bexport'
9466 ;;
9467
9468 sysv4*MP*)
9469 if test -d /usr/nec; then
9470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_shlibpath_var=no
9472 runpath_var=LD_RUN_PATH
9473 hardcode_runpath_var=yes
9474 ld_shlibs=yes
9475 fi
9476 ;;
9477
9478 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9479 no_undefined_flag='${wl}-z,text'
9480 archive_cmds_need_lc=no
9481 hardcode_shlibpath_var=no
9482 runpath_var='LD_RUN_PATH'
9483
9484 if test "$GCC" = yes; then
9485 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487 else
9488 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490 fi
9491 ;;
9492
9493 sysv5* | sco3.2v5* | sco5v6*)
9494 # Note: We can NOT use -z defs as we might desire, because we do not
9495 # link with -lc, and that would cause any symbols used from libc to
9496 # always be unresolved, which means just about no library would
9497 # ever link correctly. If we're not using GNU ld we use -z text
9498 # though, which does catch some bad symbols but isn't as heavy-handed
9499 # as -z defs.
9500 no_undefined_flag='${wl}-z,text'
9501 allow_undefined_flag='${wl}-z,nodefs'
9502 archive_cmds_need_lc=no
9503 hardcode_shlibpath_var=no
9504 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9505 hardcode_libdir_separator=':'
9506 link_all_deplibs=yes
9507 export_dynamic_flag_spec='${wl}-Bexport'
9508 runpath_var='LD_RUN_PATH'
9509
9510 if test "$GCC" = yes; then
9511 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513 else
9514 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 fi
9517 ;;
9518
9519 uts4*)
9520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_libdir_flag_spec='-L$libdir'
9522 hardcode_shlibpath_var=no
9523 ;;
9524
9525 *)
9526 ld_shlibs=no
9527 ;;
9528 esac
9529
9530 if test x$host_vendor = xsni; then
9531 case $host in
9532 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9533 export_dynamic_flag_spec='${wl}-Blargedynsym'
9534 ;;
9535 esac
9536 fi
9537 fi
9538
9539{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9540$as_echo "$ld_shlibs" >&6; }
9541test "$ld_shlibs" = no && can_build_shared=no
9542
9543with_gnu_ld=$with_gnu_ld
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559#
9560# Do we need to explicitly link libc?
9561#
9562case "x$archive_cmds_need_lc" in
9563x|xyes)
9564 # Assume -lc should be added
9565 archive_cmds_need_lc=yes
9566
9567 if test "$enable_shared" = yes && test "$GCC" = yes; then
9568 case $archive_cmds in
9569 *'~'*)
9570 # FIXME: we may have to deal with multi-command sequences.
9571 ;;
9572 '$CC '*)
9573 # Test whether the compiler implicitly links with -lc since on some
9574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9575 # to ld, don't add -lc before -lgcc.
9576 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9577$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9578 $RM conftest*
9579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9583 ac_status=$?
9584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } 2>conftest.err; then
9586 soname=conftest
9587 lib=conftest
9588 libobjs=conftest.$ac_objext
9589 deplibs=
9590 wl=$lt_prog_compiler_wl
9591 pic_flag=$lt_prog_compiler_pic
9592 compiler_flags=-v
9593 linker_flags=-v
9594 verstring=
9595 output_objdir=.
9596 libname=conftest
9597 lt_save_allow_undefined_flag=$allow_undefined_flag
9598 allow_undefined_flag=
9599 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9600 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9601 ac_status=$?
9602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }
9604 then
9605 archive_cmds_need_lc=no
9606 else
9607 archive_cmds_need_lc=yes
9608 fi
9609 allow_undefined_flag=$lt_save_allow_undefined_flag
9610 else
9611 cat conftest.err 1>&5
9612 fi
9613 $RM conftest*
9614 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9615$as_echo "$archive_cmds_need_lc" >&6; }
9616 ;;
9617 esac
9618 fi
9619 ;;
9620esac
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9779$as_echo_n "checking dynamic linker characteristics... " >&6; }
9780
9781if test "$GCC" = yes; then
9782 case $host_os in
9783 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9784 *) lt_awk_arg="/^libraries:/" ;;
9785 esac
9786 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9787 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9788 # if the path contains ";" then we assume it to be the separator
9789 # otherwise default to the standard path separator (i.e. ":") - it is
9790 # assumed that no part of a normal pathname contains ";" but that should
9791 # okay in the real world where ";" in dirpaths is itself problematic.
9792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9793 else
9794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9795 fi
9796 # Ok, now we have the path, separated by spaces, we can step through it
9797 # and add multilib dir if necessary.
9798 lt_tmp_lt_search_path_spec=
9799 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9800 for lt_sys_path in $lt_search_path_spec; do
9801 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9803 else
9804 test -d "$lt_sys_path" && \
9805 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9806 fi
9807 done
9808 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9809BEGIN {RS=" "; FS="/|\n";} {
9810 lt_foo="";
9811 lt_count=0;
9812 for (lt_i = NF; lt_i > 0; lt_i--) {
9813 if ($lt_i != "" && $lt_i != ".") {
9814 if ($lt_i == "..") {
9815 lt_count++;
9816 } else {
9817 if (lt_count == 0) {
9818 lt_foo="/" $lt_i lt_foo;
9819 } else {
9820 lt_count--;
9821 }
9822 }
9823 }
9824 }
9825 if (lt_foo != "") { lt_freq[lt_foo]++; }
9826 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9827}'`
9828 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9829else
9830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9831fi
9832library_names_spec=
9833libname_spec='lib$name'
9834soname_spec=
9835shrext_cmds=".so"
9836postinstall_cmds=
9837postuninstall_cmds=
9838finish_cmds=
9839finish_eval=
9840shlibpath_var=
9841shlibpath_overrides_runpath=unknown
9842version_type=none
9843dynamic_linker="$host_os ld.so"
9844sys_lib_dlsearch_path_spec="/lib /usr/lib"
9845need_lib_prefix=unknown
9846hardcode_into_libs=no
9847
9848# when you set need_version to no, make sure it does not cause -set_version
9849# flags to be left without arguments
9850need_version=unknown
9851
9852case $host_os in
9853aix3*)
9854 version_type=linux
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9856 shlibpath_var=LIBPATH
9857
9858 # AIX 3 has no versioning support, so we append a major version to the name.
9859 soname_spec='${libname}${release}${shared_ext}$major'
9860 ;;
9861
9862aix[4-9]*)
9863 version_type=linux
9864 need_lib_prefix=no
9865 need_version=no
9866 hardcode_into_libs=yes
9867 if test "$host_cpu" = ia64; then
9868 # AIX 5 supports IA64
9869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 else
9872 # With GCC up to 2.95.x, collect2 would create an import file
9873 # for dependence libraries. The import file would start with
9874 # the line `#! .'. This would cause the generated library to
9875 # depend on `.', always an invalid library. This was fixed in
9876 # development snapshots of GCC prior to 3.0.
9877 case $host_os in
9878 aix4 | aix4.[01] | aix4.[01].*)
9879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9880 echo ' yes '
9881 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9882 :
9883 else
9884 can_build_shared=no
9885 fi
9886 ;;
9887 esac
9888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9889 # soname into executable. Probably we can add versioning support to
9890 # collect2, so additional links can be useful in future.
9891 if test "$aix_use_runtimelinking" = yes; then
9892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9893 # instead of lib<name>.a to let people know that these are not
9894 # typical AIX shared libraries.
9895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896 else
9897 # We preserve .a as extension for shared libraries through AIX4.2
9898 # and later when we are not doing run time linking.
9899 library_names_spec='${libname}${release}.a $libname.a'
9900 soname_spec='${libname}${release}${shared_ext}$major'
9901 fi
9902 shlibpath_var=LIBPATH
9903 fi
9904 ;;
9905
9906amigaos*)
9907 case $host_cpu in
9908 powerpc)
9909 # Since July 2007 AmigaOS4 officially supports .so libraries.
9910 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 ;;
9913 m68k)
9914 library_names_spec='$libname.ixlibrary $libname.a'
9915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9916 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'
9917 ;;
9918 esac
9919 ;;
9920
9921beos*)
9922 library_names_spec='${libname}${shared_ext}'
9923 dynamic_linker="$host_os ld.so"
9924 shlibpath_var=LIBRARY_PATH
9925 ;;
9926
9927bsdi[45]*)
9928 version_type=linux
9929 need_version=no
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9935 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9936 # the default ld.so.conf also contains /usr/contrib/lib and
9937 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9938 # libtool to hard-code these into programs
9939 ;;
9940
9941cygwin* | mingw* | pw32* | cegcc*)
9942 version_type=windows
9943 shrext_cmds=".dll"
9944 need_version=no
9945 need_lib_prefix=no
9946
9947 case $GCC,$host_os in
9948 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9949 library_names_spec='$libname.dll.a'
9950 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9951 postinstall_cmds='base_file=`basename \${file}`~
9952 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9953 dldir=$destdir/`dirname \$dlpath`~
9954 test -d \$dldir || mkdir -p \$dldir~
9955 $install_prog $dir/$dlname \$dldir/$dlname~
9956 chmod a+x \$dldir/$dlname~
9957 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9958 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9959 fi'
9960 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9961 dlpath=$dir/\$dldll~
9962 $RM \$dlpath'
9963 shlibpath_overrides_runpath=yes
9964
9965 case $host_os in
9966 cygwin*)
9967 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9968 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9969 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9970 ;;
9971 mingw* | cegcc*)
9972 # MinGW DLLs use traditional 'lib' prefix
9973 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9974 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9976 # It is most probably a Windows format PATH printed by
9977 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9978 # path with ; separators, and with drive letters. We can handle the
9979 # drive letters (cygwin fileutils understands them), so leave them,
9980 # especially as we might pass files found there to a mingw objdump,
9981 # which wouldn't understand a cygwinified path. Ahh.
9982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9983 else
9984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9985 fi
9986 ;;
9987 pw32*)
9988 # pw32 DLLs use 'pw' prefix rather than 'lib'
9989 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9990 ;;
9991 esac
9992 ;;
9993
9994 *)
9995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9996 ;;
9997 esac
9998 dynamic_linker='Win32 ld.exe'
9999 # FIXME: first we should search . and the directory the executable is in
10000 shlibpath_var=PATH
10001 ;;
10002
10003darwin* | rhapsody*)
10004 dynamic_linker="$host_os dyld"
10005 version_type=darwin
10006 need_lib_prefix=no
10007 need_version=no
10008 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10009 soname_spec='${libname}${release}${major}$shared_ext'
10010 shlibpath_overrides_runpath=yes
10011 shlibpath_var=DYLD_LIBRARY_PATH
10012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10013
10014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10016 ;;
10017
10018dgux*)
10019 version_type=linux
10020 need_lib_prefix=no
10021 need_version=no
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10025 ;;
10026
10027freebsd1*)
10028 dynamic_linker=no
10029 ;;
10030
10031freebsd* | dragonfly*)
10032 # DragonFly does not have aout. When/if they implement a new
10033 # versioning mechanism, adjust this.
10034 if test -x /usr/bin/objformat; then
10035 objformat=`/usr/bin/objformat`
10036 else
10037 case $host_os in
10038 freebsd[123]*) objformat=aout ;;
10039 *) objformat=elf ;;
10040 esac
10041 fi
10042 version_type=freebsd-$objformat
10043 case $version_type in
10044 freebsd-elf*)
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10046 need_version=no
10047 need_lib_prefix=no
10048 ;;
10049 freebsd-*)
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10051 need_version=yes
10052 ;;
10053 esac
10054 shlibpath_var=LD_LIBRARY_PATH
10055 case $host_os in
10056 freebsd2*)
10057 shlibpath_overrides_runpath=yes
10058 ;;
10059 freebsd3.[01]* | freebsdelf3.[01]*)
10060 shlibpath_overrides_runpath=yes
10061 hardcode_into_libs=yes
10062 ;;
10063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10065 shlibpath_overrides_runpath=no
10066 hardcode_into_libs=yes
10067 ;;
10068 *) # from 4.6 on, and DragonFly
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10071 ;;
10072 esac
10073 ;;
10074
10075gnu*)
10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 hardcode_into_libs=yes
10083 ;;
10084
10085hpux9* | hpux10* | hpux11*)
10086 # Give a soname corresponding to the major version so that dld.sl refuses to
10087 # link against other versions.
10088 version_type=sunos
10089 need_lib_prefix=no
10090 need_version=no
10091 case $host_cpu in
10092 ia64*)
10093 shrext_cmds='.so'
10094 hardcode_into_libs=yes
10095 dynamic_linker="$host_os dld.so"
10096 shlibpath_var=LD_LIBRARY_PATH
10097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 if test "X$HPUX_IA64_MODE" = X32; then
10101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10102 else
10103 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10104 fi
10105 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10106 ;;
10107 hppa*64*)
10108 shrext_cmds='.sl'
10109 hardcode_into_libs=yes
10110 dynamic_linker="$host_os dld.sl"
10111 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10112 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10116 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10117 ;;
10118 *)
10119 shrext_cmds='.sl'
10120 dynamic_linker="$host_os dld.sl"
10121 shlibpath_var=SHLIB_PATH
10122 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 ;;
10126 esac
10127 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10128 postinstall_cmds='chmod 555 $lib'
10129 ;;
10130
10131interix[3-9]*)
10132 version_type=linux
10133 need_lib_prefix=no
10134 need_version=no
10135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=no
10140 hardcode_into_libs=yes
10141 ;;
10142
10143irix5* | irix6* | nonstopux*)
10144 case $host_os in
10145 nonstopux*) version_type=nonstopux ;;
10146 *)
10147 if test "$lt_cv_prog_gnu_ld" = yes; then
10148 version_type=linux
10149 else
10150 version_type=irix
10151 fi ;;
10152 esac
10153 need_lib_prefix=no
10154 need_version=no
10155 soname_spec='${libname}${release}${shared_ext}$major'
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10157 case $host_os in
10158 irix5* | nonstopux*)
10159 libsuff= shlibsuff=
10160 ;;
10161 *)
10162 case $LD in # libtool.m4 will add one of these switches to LD
10163 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10164 libsuff= shlibsuff= libmagic=32-bit;;
10165 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10166 libsuff=32 shlibsuff=N32 libmagic=N32;;
10167 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10168 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10169 *) libsuff= shlibsuff= libmagic=never-match;;
10170 esac
10171 ;;
10172 esac
10173 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10174 shlibpath_overrides_runpath=no
10175 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10176 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10177 hardcode_into_libs=yes
10178 ;;
10179
10180# No shared lib support for Linux oldld, aout, or coff.
10181linux*oldld* | linux*aout* | linux*coff*)
10182 dynamic_linker=no
10183 ;;
10184
10185# This must be Linux ELF.
10186linux* | k*bsd*-gnu)
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 shlibpath_overrides_runpath=no
10195 # Some binutils ld are patched to set DT_RUNPATH
10196 save_LDFLAGS=$LDFLAGS
10197 save_libdir=$libdir
10198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10200 cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206
10207int
10208main ()
10209{
10210
10211 ;
10212 return 0;
10213}
10214_ACEOF
10215rm -f conftest.$ac_objext conftest$ac_exeext
10216if { (ac_try="$ac_link"
10217case "(($ac_try" in
10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219 *) ac_try_echo=$ac_try;;
10220esac
10221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10222$as_echo "$ac_try_echo") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext && {
10233 test "$cross_compiling" = yes ||
10234 $as_test_x conftest$ac_exeext
10235 }; then
10236 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10237 shlibpath_overrides_runpath=yes
10238fi
10239
10240else
10241 $as_echo "$as_me: failed program was:" >&5
10242sed 's/^/| /' conftest.$ac_ext >&5
10243
10244
10245fi
10246
10247rm -rf conftest.dSYM
10248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LDFLAGS=$save_LDFLAGS
10251 libdir=$save_libdir
10252
10253 # This implies no fast_install, which is unacceptable.
10254 # Some rework will be needed to allow for fast_install
10255 # before this can be enabled.
10256 hardcode_into_libs=yes
10257
10258 # Add ABI-specific directories to the system library path.
10259 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10260
10261 # Append ld.so.conf contents to the search path
10262 if test -f /etc/ld.so.conf; then
10263 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' ' '`
10264 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10265 fi
10266
10267 # We used to test for /lib/ld.so.1 and disable shared libraries on
10268 # powerpc, because MkLinux only supported shared libraries with the
10269 # GNU dynamic linker. Since this was broken with cross compilers,
10270 # most powerpc-linux boxes support dynamic linking these days and
10271 # people can always --disable-shared, the test was removed, and we
10272 # assume the GNU/Linux dynamic linker is in use.
10273 dynamic_linker='GNU/Linux ld.so'
10274 ;;
10275
10276netbsd*)
10277 version_type=sunos
10278 need_lib_prefix=no
10279 need_version=no
10280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10283 dynamic_linker='NetBSD (a.out) ld.so'
10284 else
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10286 soname_spec='${libname}${release}${shared_ext}$major'
10287 dynamic_linker='NetBSD ld.elf_so'
10288 fi
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10292 ;;
10293
10294newsos6)
10295 version_type=linux
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10299 ;;
10300
10301*nto* | *qnx*)
10302 version_type=qnx
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 shlibpath_var=LD_LIBRARY_PATH
10308 shlibpath_overrides_runpath=no
10309 hardcode_into_libs=yes
10310 dynamic_linker='ldqnx.so'
10311 ;;
10312
10313openbsd*)
10314 version_type=sunos
10315 sys_lib_dlsearch_path_spec="/usr/lib"
10316 need_lib_prefix=no
10317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10318 case $host_os in
10319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10320 *) need_version=no ;;
10321 esac
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10326 case $host_os in
10327 openbsd2.[89] | openbsd2.[89].*)
10328 shlibpath_overrides_runpath=no
10329 ;;
10330 *)
10331 shlibpath_overrides_runpath=yes
10332 ;;
10333 esac
10334 else
10335 shlibpath_overrides_runpath=yes
10336 fi
10337 ;;
10338
10339os2*)
10340 libname_spec='$name'
10341 shrext_cmds=".dll"
10342 need_lib_prefix=no
10343 library_names_spec='$libname${shared_ext} $libname.a'
10344 dynamic_linker='OS/2 ld.exe'
10345 shlibpath_var=LIBPATH
10346 ;;
10347
10348osf3* | osf4* | osf5*)
10349 version_type=osf
10350 need_lib_prefix=no
10351 need_version=no
10352 soname_spec='${libname}${release}${shared_ext}$major'
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 shlibpath_var=LD_LIBRARY_PATH
10355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 ;;
10358
10359rdos*)
10360 dynamic_linker=no
10361 ;;
10362
10363solaris*)
10364 version_type=linux
10365 need_lib_prefix=no
10366 need_version=no
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10372 # ldd complains unless libraries are executable
10373 postinstall_cmds='chmod +x $lib'
10374 ;;
10375
10376sunos4*)
10377 version_type=sunos
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10379 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 if test "$with_gnu_ld" = yes; then
10383 need_lib_prefix=no
10384 fi
10385 need_version=yes
10386 ;;
10387
10388sysv4 | sysv4.3*)
10389 version_type=linux
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 case $host_vendor in
10394 sni)
10395 shlibpath_overrides_runpath=no
10396 need_lib_prefix=no
10397 runpath_var=LD_RUN_PATH
10398 ;;
10399 siemens)
10400 need_lib_prefix=no
10401 ;;
10402 motorola)
10403 need_lib_prefix=no
10404 need_version=no
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10407 ;;
10408 esac
10409 ;;
10410
10411sysv4*MP*)
10412 if test -d /usr/nec ;then
10413 version_type=linux
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 fi
10418 ;;
10419
10420sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10421 version_type=freebsd-elf
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 shlibpath_overrides_runpath=yes
10428 hardcode_into_libs=yes
10429 if test "$with_gnu_ld" = yes; then
10430 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10431 else
10432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10433 case $host_os in
10434 sco3.2v5*)
10435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10436 ;;
10437 esac
10438 fi
10439 sys_lib_dlsearch_path_spec='/usr/lib'
10440 ;;
10441
10442tpf*)
10443 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10444 version_type=linux
10445 need_lib_prefix=no
10446 need_version=no
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 shlibpath_var=LD_LIBRARY_PATH
10449 shlibpath_overrides_runpath=no
10450 hardcode_into_libs=yes
10451 ;;
10452
10453uts4*)
10454 version_type=linux
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 ;;
10459
10460*)
10461 dynamic_linker=no
10462 ;;
10463esac
10464{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10465$as_echo "$dynamic_linker" >&6; }
10466test "$dynamic_linker" = no && can_build_shared=no
10467
10468variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10469if test "$GCC" = yes; then
10470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10471fi
10472
10473if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10474 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10475fi
10476if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10477 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10478fi
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10567$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10568hardcode_action=
10569if test -n "$hardcode_libdir_flag_spec" ||
10570 test -n "$runpath_var" ||
10571 test "X$hardcode_automatic" = "Xyes" ; then
10572
10573 # We can hardcode non-existent directories.
10574 if test "$hardcode_direct" != no &&
10575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10576 # have to relink, otherwise we might link with an installed library
10577 # when we should be linking with a yet-to-be-installed one
10578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10579 test "$hardcode_minus_L" != no; then
10580 # Linking always hardcodes the temporary library directory.
10581 hardcode_action=relink
10582 else
10583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10584 hardcode_action=immediate
10585 fi
10586else
10587 # We cannot hardcode anything, or else we can only hardcode existing
10588 # directories.
10589 hardcode_action=unsupported
10590fi
10591{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10592$as_echo "$hardcode_action" >&6; }
10593
10594if test "$hardcode_action" = relink ||
10595 test "$inherit_rpath" = yes; then
10596 # Fast installation is not supported
10597 enable_fast_install=no
10598elif test "$shlibpath_overrides_runpath" = yes ||
10599 test "$enable_shared" = no; then
10600 # Fast installation is not necessary
10601 enable_fast_install=needless
10602fi
10603
10604
10605
10606
10607
10608
10609 if test "x$enable_dlopen" != xyes; then
10610 enable_dlopen=unknown
10611 enable_dlopen_self=unknown
10612 enable_dlopen_self_static=unknown
10613else
10614 lt_cv_dlopen=no
10615 lt_cv_dlopen_libs=
10616
10617 case $host_os in
10618 beos*)
10619 lt_cv_dlopen="load_add_on"
10620 lt_cv_dlopen_libs=
10621 lt_cv_dlopen_self=yes
10622 ;;
10623
10624 mingw* | pw32* | cegcc*)
10625 lt_cv_dlopen="LoadLibrary"
10626 lt_cv_dlopen_libs=
10627 ;;
10628
10629 cygwin*)
10630 lt_cv_dlopen="dlopen"
10631 lt_cv_dlopen_libs=
10632 ;;
10633
10634 darwin*)
10635 # if libdl is installed we need to link against it
10636 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10637$as_echo_n "checking for dlopen in -ldl... " >&6; }
10638if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10639 $as_echo_n "(cached) " >&6
10640else
10641 ac_check_lib_save_LIBS=$LIBS
10642LIBS="-ldl $LIBS"
10643cat >conftest.$ac_ext <<_ACEOF
10644/* confdefs.h. */
10645_ACEOF
10646cat confdefs.h >>conftest.$ac_ext
10647cat >>conftest.$ac_ext <<_ACEOF
10648/* end confdefs.h. */
10649
10650/* Override any GCC internal prototype to avoid an error.
10651 Use char because int might match the return type of a GCC
10652 builtin and then its argument prototype would still apply. */
10653#ifdef __cplusplus
10654extern "C"
10655#endif
10656char dlopen ();
10657int
10658main ()
10659{
10660return dlopen ();
10661 ;
10662 return 0;
10663}
10664_ACEOF
10665rm -f conftest.$ac_objext conftest$ac_exeext
10666if { (ac_try="$ac_link"
10667case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670esac
10671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672$as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest$ac_exeext && {
10683 test "$cross_compiling" = yes ||
10684 $as_test_x conftest$ac_exeext
10685 }; then
10686 ac_cv_lib_dl_dlopen=yes
10687else
10688 $as_echo "$as_me: failed program was:" >&5
10689sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ac_cv_lib_dl_dlopen=no
10692fi
10693
10694rm -rf conftest.dSYM
10695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10696 conftest$ac_exeext conftest.$ac_ext
10697LIBS=$ac_check_lib_save_LIBS
10698fi
10699{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10700$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10701if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10703else
10704
10705 lt_cv_dlopen="dyld"
10706 lt_cv_dlopen_libs=
10707 lt_cv_dlopen_self=yes
10708
10709fi
10710
10711 ;;
10712
10713 *)
10714 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10715$as_echo_n "checking for shl_load... " >&6; }
10716if test "${ac_cv_func_shl_load+set}" = set; then
10717 $as_echo_n "(cached) " >&6
10718else
10719 cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10727#define shl_load innocuous_shl_load
10728
10729/* System header to define __stub macros and hopefully few prototypes,
10730 which can conflict with char shl_load (); below.
10731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10732 <limits.h> exists even on freestanding compilers. */
10733
10734#ifdef __STDC__
10735# include <limits.h>
10736#else
10737# include <assert.h>
10738#endif
10739
10740#undef shl_load
10741
10742/* Override any GCC internal prototype to avoid an error.
10743 Use char because int might match the return type of a GCC
10744 builtin and then its argument prototype would still apply. */
10745#ifdef __cplusplus
10746extern "C"
10747#endif
10748char shl_load ();
10749/* The GNU C library defines this for functions which it implements
10750 to always fail with ENOSYS. Some functions are actually named
10751 something starting with __ and the normal name is an alias. */
10752#if defined __stub_shl_load || defined __stub___shl_load
10753choke me
10754#endif
10755
10756int
10757main ()
10758{
10759return shl_load ();
10760 ;
10761 return 0;
10762}
10763_ACEOF
10764rm -f conftest.$ac_objext conftest$ac_exeext
10765if { (ac_try="$ac_link"
10766case "(($ac_try" in
10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768 *) ac_try_echo=$ac_try;;
10769esac
10770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10771$as_echo "$ac_try_echo") >&5
10772 (eval "$ac_link") 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext && {
10782 test "$cross_compiling" = yes ||
10783 $as_test_x conftest$ac_exeext
10784 }; then
10785 ac_cv_func_shl_load=yes
10786else
10787 $as_echo "$as_me: failed program was:" >&5
10788sed 's/^/| /' conftest.$ac_ext >&5
10789
10790 ac_cv_func_shl_load=no
10791fi
10792
10793rm -rf conftest.dSYM
10794rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795 conftest$ac_exeext conftest.$ac_ext
10796fi
10797{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10798$as_echo "$ac_cv_func_shl_load" >&6; }
10799if test "x$ac_cv_func_shl_load" = x""yes; then
10800 lt_cv_dlopen="shl_load"
10801else
10802 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10803$as_echo_n "checking for shl_load in -ldld... " >&6; }
10804if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10805 $as_echo_n "(cached) " >&6
10806else
10807 ac_check_lib_save_LIBS=$LIBS
10808LIBS="-ldld $LIBS"
10809cat >conftest.$ac_ext <<_ACEOF
10810/* confdefs.h. */
10811_ACEOF
10812cat confdefs.h >>conftest.$ac_ext
10813cat >>conftest.$ac_ext <<_ACEOF
10814/* end confdefs.h. */
10815
10816/* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10819#ifdef __cplusplus
10820extern "C"
10821#endif
10822char shl_load ();
10823int
10824main ()
10825{
10826return shl_load ();
10827 ;
10828 return 0;
10829}
10830_ACEOF
10831rm -f conftest.$ac_objext conftest$ac_exeext
10832if { (ac_try="$ac_link"
10833case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836esac
10837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10838$as_echo "$ac_try_echo") >&5
10839 (eval "$ac_link") 2>conftest.er1
10840 ac_status=$?
10841 grep -v '^ *+' conftest.er1 >conftest.err
10842 rm -f conftest.er1
10843 cat conftest.err >&5
10844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); } && {
10846 test -z "$ac_c_werror_flag" ||
10847 test ! -s conftest.err
10848 } && test -s conftest$ac_exeext && {
10849 test "$cross_compiling" = yes ||
10850 $as_test_x conftest$ac_exeext
10851 }; then
10852 ac_cv_lib_dld_shl_load=yes
10853else
10854 $as_echo "$as_me: failed program was:" >&5
10855sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 ac_cv_lib_dld_shl_load=no
10858fi
10859
10860rm -rf conftest.dSYM
10861rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10862 conftest$ac_exeext conftest.$ac_ext
10863LIBS=$ac_check_lib_save_LIBS
10864fi
10865{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10866$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10867if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10868 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10869else
10870 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10871$as_echo_n "checking for dlopen... " >&6; }
10872if test "${ac_cv_func_dlopen+set}" = set; then
10873 $as_echo_n "(cached) " >&6
10874else
10875 cat >conftest.$ac_ext <<_ACEOF
10876/* confdefs.h. */
10877_ACEOF
10878cat confdefs.h >>conftest.$ac_ext
10879cat >>conftest.$ac_ext <<_ACEOF
10880/* end confdefs.h. */
10881/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10883#define dlopen innocuous_dlopen
10884
10885/* System header to define __stub macros and hopefully few prototypes,
10886 which can conflict with char dlopen (); below.
10887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10888 <limits.h> exists even on freestanding compilers. */
10889
10890#ifdef __STDC__
10891# include <limits.h>
10892#else
10893# include <assert.h>
10894#endif
10895
10896#undef dlopen
10897
10898/* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901#ifdef __cplusplus
10902extern "C"
10903#endif
10904char dlopen ();
10905/* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908#if defined __stub_dlopen || defined __stub___dlopen
10909choke me
10910#endif
10911
10912int
10913main ()
10914{
10915return dlopen ();
10916 ;
10917 return 0;
10918}
10919_ACEOF
10920rm -f conftest.$ac_objext conftest$ac_exeext
10921if { (ac_try="$ac_link"
10922case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927$as_echo "$ac_try_echo") >&5
10928 (eval "$ac_link") 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_c_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest$ac_exeext && {
10938 test "$cross_compiling" = yes ||
10939 $as_test_x conftest$ac_exeext
10940 }; then
10941 ac_cv_func_dlopen=yes
10942else
10943 $as_echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 ac_cv_func_dlopen=no
10947fi
10948
10949rm -rf conftest.dSYM
10950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10951 conftest$ac_exeext conftest.$ac_ext
10952fi
10953{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10954$as_echo "$ac_cv_func_dlopen" >&6; }
10955if test "x$ac_cv_func_dlopen" = x""yes; then
10956 lt_cv_dlopen="dlopen"
10957else
10958 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10959$as_echo_n "checking for dlopen in -ldl... " >&6; }
10960if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10961 $as_echo_n "(cached) " >&6
10962else
10963 ac_check_lib_save_LIBS=$LIBS
10964LIBS="-ldl $LIBS"
10965cat >conftest.$ac_ext <<_ACEOF
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10971
10972/* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975#ifdef __cplusplus
10976extern "C"
10977#endif
10978char dlopen ();
10979int
10980main ()
10981{
10982return dlopen ();
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987rm -f conftest.$ac_objext conftest$ac_exeext
10988if { (ac_try="$ac_link"
10989case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10994$as_echo "$ac_try_echo") >&5
10995 (eval "$ac_link") 2>conftest.er1
10996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest$ac_exeext && {
11005 test "$cross_compiling" = yes ||
11006 $as_test_x conftest$ac_exeext
11007 }; then
11008 ac_cv_lib_dl_dlopen=yes
11009else
11010 $as_echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013 ac_cv_lib_dl_dlopen=no
11014fi
11015
11016rm -rf conftest.dSYM
11017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019LIBS=$ac_check_lib_save_LIBS
11020fi
11021{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11022$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11023if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11025else
11026 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11027$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11028if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11029 $as_echo_n "(cached) " >&6
11030else
11031 ac_check_lib_save_LIBS=$LIBS
11032LIBS="-lsvld $LIBS"
11033cat >conftest.$ac_ext <<_ACEOF
11034/* confdefs.h. */
11035_ACEOF
11036cat confdefs.h >>conftest.$ac_ext
11037cat >>conftest.$ac_ext <<_ACEOF
11038/* end confdefs.h. */
11039
11040/* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11043#ifdef __cplusplus
11044extern "C"
11045#endif
11046char dlopen ();
11047int
11048main ()
11049{
11050return dlopen ();
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055rm -f conftest.$ac_objext conftest$ac_exeext
11056if { (ac_try="$ac_link"
11057case "(($ac_try" in
11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11060esac
11061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11062$as_echo "$ac_try_echo") >&5
11063 (eval "$ac_link") 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && {
11070 test -z "$ac_c_werror_flag" ||
11071 test ! -s conftest.err
11072 } && test -s conftest$ac_exeext && {
11073 test "$cross_compiling" = yes ||
11074 $as_test_x conftest$ac_exeext
11075 }; then
11076 ac_cv_lib_svld_dlopen=yes
11077else
11078 $as_echo "$as_me: failed program was:" >&5
11079sed 's/^/| /' conftest.$ac_ext >&5
11080
11081 ac_cv_lib_svld_dlopen=no
11082fi
11083
11084rm -rf conftest.dSYM
11085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11086 conftest$ac_exeext conftest.$ac_ext
11087LIBS=$ac_check_lib_save_LIBS
11088fi
11089{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11090$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11091if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11092 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11093else
11094 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11095$as_echo_n "checking for dld_link in -ldld... " >&6; }
11096if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11097 $as_echo_n "(cached) " >&6
11098else
11099 ac_check_lib_save_LIBS=$LIBS
11100LIBS="-ldld $LIBS"
11101cat >conftest.$ac_ext <<_ACEOF
11102/* confdefs.h. */
11103_ACEOF
11104cat confdefs.h >>conftest.$ac_ext
11105cat >>conftest.$ac_ext <<_ACEOF
11106/* end confdefs.h. */
11107
11108/* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11111#ifdef __cplusplus
11112extern "C"
11113#endif
11114char dld_link ();
11115int
11116main ()
11117{
11118return dld_link ();
11119 ;
11120 return 0;
11121}
11122_ACEOF
11123rm -f conftest.$ac_objext conftest$ac_exeext
11124if { (ac_try="$ac_link"
11125case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128esac
11129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11130$as_echo "$ac_try_echo") >&5
11131 (eval "$ac_link") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest$ac_exeext && {
11141 test "$cross_compiling" = yes ||
11142 $as_test_x conftest$ac_exeext
11143 }; then
11144 ac_cv_lib_dld_dld_link=yes
11145else
11146 $as_echo "$as_me: failed program was:" >&5
11147sed 's/^/| /' conftest.$ac_ext >&5
11148
11149 ac_cv_lib_dld_dld_link=no
11150fi
11151
11152rm -rf conftest.dSYM
11153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11154 conftest$ac_exeext conftest.$ac_ext
11155LIBS=$ac_check_lib_save_LIBS
11156fi
11157{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11158$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11159if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11160 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11161fi
11162
11163
11164fi
11165
11166
11167fi
11168
11169
11170fi
11171
11172
11173fi
11174
11175
11176fi
11177
11178 ;;
11179 esac
11180
11181 if test "x$lt_cv_dlopen" != xno; then
11182 enable_dlopen=yes
11183 else
11184 enable_dlopen=no
11185 fi
11186
11187 case $lt_cv_dlopen in
11188 dlopen)
11189 save_CPPFLAGS="$CPPFLAGS"
11190 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11191
11192 save_LDFLAGS="$LDFLAGS"
11193 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11194
11195 save_LIBS="$LIBS"
11196 LIBS="$lt_cv_dlopen_libs $LIBS"
11197
11198 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11199$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11200if test "${lt_cv_dlopen_self+set}" = set; then
11201 $as_echo_n "(cached) " >&6
11202else
11203 if test "$cross_compiling" = yes; then :
11204 lt_cv_dlopen_self=cross
11205else
11206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11207 lt_status=$lt_dlunknown
11208 cat > conftest.$ac_ext <<_LT_EOF
1c5de20a 11209#line 11209 "configure"
e70e591c
BB
11210#include "confdefs.h"
11211
11212#if HAVE_DLFCN_H
11213#include <dlfcn.h>
11214#endif
11215
11216#include <stdio.h>
11217
11218#ifdef RTLD_GLOBAL
11219# define LT_DLGLOBAL RTLD_GLOBAL
11220#else
11221# ifdef DL_GLOBAL
11222# define LT_DLGLOBAL DL_GLOBAL
11223# else
11224# define LT_DLGLOBAL 0
11225# endif
11226#endif
11227
11228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11229 find out it does not work in some platform. */
11230#ifndef LT_DLLAZY_OR_NOW
11231# ifdef RTLD_LAZY
11232# define LT_DLLAZY_OR_NOW RTLD_LAZY
11233# else
11234# ifdef DL_LAZY
11235# define LT_DLLAZY_OR_NOW DL_LAZY
11236# else
11237# ifdef RTLD_NOW
11238# define LT_DLLAZY_OR_NOW RTLD_NOW
11239# else
11240# ifdef DL_NOW
11241# define LT_DLLAZY_OR_NOW DL_NOW
11242# else
11243# define LT_DLLAZY_OR_NOW 0
11244# endif
11245# endif
11246# endif
11247# endif
11248#endif
11249
11250void fnord() { int i=42;}
11251int main ()
11252{
11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11254 int status = $lt_dlunknown;
11255
11256 if (self)
11257 {
11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11259 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11260 /* dlclose (self); */
11261 }
11262 else
11263 puts (dlerror ());
11264
11265 return status;
11266}
11267_LT_EOF
11268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11269 (eval $ac_link) 2>&5
11270 ac_status=$?
11271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11273 (./conftest; exit; ) >&5 2>/dev/null
11274 lt_status=$?
11275 case x$lt_status in
11276 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11277 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11278 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11279 esac
11280 else :
11281 # compilation failed
11282 lt_cv_dlopen_self=no
11283 fi
11284fi
11285rm -fr conftest*
11286
11287
11288fi
11289{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11290$as_echo "$lt_cv_dlopen_self" >&6; }
11291
11292 if test "x$lt_cv_dlopen_self" = xyes; then
11293 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11294 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11295$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11296if test "${lt_cv_dlopen_self_static+set}" = set; then
11297 $as_echo_n "(cached) " >&6
11298else
11299 if test "$cross_compiling" = yes; then :
11300 lt_cv_dlopen_self_static=cross
11301else
11302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11303 lt_status=$lt_dlunknown
11304 cat > conftest.$ac_ext <<_LT_EOF
1c5de20a 11305#line 11305 "configure"
e70e591c
BB
11306#include "confdefs.h"
11307
11308#if HAVE_DLFCN_H
11309#include <dlfcn.h>
11310#endif
11311
11312#include <stdio.h>
11313
11314#ifdef RTLD_GLOBAL
11315# define LT_DLGLOBAL RTLD_GLOBAL
11316#else
11317# ifdef DL_GLOBAL
11318# define LT_DLGLOBAL DL_GLOBAL
11319# else
11320# define LT_DLGLOBAL 0
11321# endif
11322#endif
11323
11324/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11325 find out it does not work in some platform. */
11326#ifndef LT_DLLAZY_OR_NOW
11327# ifdef RTLD_LAZY
11328# define LT_DLLAZY_OR_NOW RTLD_LAZY
11329# else
11330# ifdef DL_LAZY
11331# define LT_DLLAZY_OR_NOW DL_LAZY
11332# else
11333# ifdef RTLD_NOW
11334# define LT_DLLAZY_OR_NOW RTLD_NOW
11335# else
11336# ifdef DL_NOW
11337# define LT_DLLAZY_OR_NOW DL_NOW
11338# else
11339# define LT_DLLAZY_OR_NOW 0
11340# endif
11341# endif
11342# endif
11343# endif
11344#endif
11345
11346void fnord() { int i=42;}
11347int main ()
11348{
11349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11350 int status = $lt_dlunknown;
11351
11352 if (self)
11353 {
11354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11356 /* dlclose (self); */
11357 }
11358 else
11359 puts (dlerror ());
11360
11361 return status;
11362}
11363_LT_EOF
11364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11365 (eval $ac_link) 2>&5
11366 ac_status=$?
11367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11369 (./conftest; exit; ) >&5 2>/dev/null
11370 lt_status=$?
11371 case x$lt_status in
11372 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11373 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11374 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11375 esac
11376 else :
11377 # compilation failed
11378 lt_cv_dlopen_self_static=no
11379 fi
11380fi
11381rm -fr conftest*
11382
11383
11384fi
11385{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11386$as_echo "$lt_cv_dlopen_self_static" >&6; }
11387 fi
11388
11389 CPPFLAGS="$save_CPPFLAGS"
11390 LDFLAGS="$save_LDFLAGS"
11391 LIBS="$save_LIBS"
11392 ;;
11393 esac
11394
11395 case $lt_cv_dlopen_self in
11396 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11397 *) enable_dlopen_self=unknown ;;
11398 esac
11399
11400 case $lt_cv_dlopen_self_static in
11401 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11402 *) enable_dlopen_self_static=unknown ;;
11403 esac
11404fi
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422striplib=
11423old_striplib=
11424{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11425$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11426if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11427 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11428 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11429 { $as_echo "$as_me:$LINENO: result: yes" >&5
11430$as_echo "yes" >&6; }
11431else
11432# FIXME - insert some real tests, host_os isn't really good enough
11433 case $host_os in
11434 darwin*)
11435 if test -n "$STRIP" ; then
11436 striplib="$STRIP -x"
11437 old_striplib="$STRIP -S"
11438 { $as_echo "$as_me:$LINENO: result: yes" >&5
11439$as_echo "yes" >&6; }
11440 else
11441 { $as_echo "$as_me:$LINENO: result: no" >&5
11442$as_echo "no" >&6; }
11443 fi
11444 ;;
11445 *)
11446 { $as_echo "$as_me:$LINENO: result: no" >&5
11447$as_echo "no" >&6; }
11448 ;;
11449 esac
11450fi
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463 # Report which library types will actually be built
11464 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11465$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11466 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11467$as_echo "$can_build_shared" >&6; }
11468
11469 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11470$as_echo_n "checking whether to build shared libraries... " >&6; }
11471 test "$can_build_shared" = "no" && enable_shared=no
11472
11473 # On AIX, shared libraries and static libraries use the same namespace, and
11474 # are all built from PIC.
11475 case $host_os in
11476 aix3*)
11477 test "$enable_shared" = yes && enable_static=no
11478 if test -n "$RANLIB"; then
11479 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11480 postinstall_cmds='$RANLIB $lib'
11481 fi
11482 ;;
11483
11484 aix[4-9]*)
11485 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11486 test "$enable_shared" = yes && enable_static=no
11487 fi
11488 ;;
11489 esac
11490 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11491$as_echo "$enable_shared" >&6; }
11492
11493 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11494$as_echo_n "checking whether to build static libraries... " >&6; }
11495 # Make sure either enable_shared or enable_static is yes.
11496 test "$enable_shared" = yes || enable_static=yes
11497 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11498$as_echo "$enable_static" >&6; }
11499
11500
11501
11502
11503fi
11504ac_ext=c
11505ac_cpp='$CPP $CPPFLAGS'
11506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11508ac_compiler_gnu=$ac_cv_c_compiler_gnu
11509
11510CC="$lt_save_CC"
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524 ac_config_commands="$ac_config_commands libtool"
11525
11526
11527
11528
11529# Only expand once:
11530
11531
11532# By default we simply use the C compiler to build assembly code.
11533
11534test "${CCAS+set}" = set || CCAS=$CC
11535test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11536
11537
11538
11539depcc="$CCAS" am_compiler_list=
11540
11541{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11542$as_echo_n "checking dependency style of $depcc... " >&6; }
11543if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11544 $as_echo_n "(cached) " >&6
11545else
11546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11547 # We make a subdir and do the tests there. Otherwise we can end up
11548 # making bogus files that we don't know about and never remove. For
11549 # instance it was reported that on HP-UX the gcc test will end up
11550 # making a dummy file named `D' -- because `-MD' means `put the output
11551 # in D'.
11552 mkdir conftest.dir
11553 # Copy depcomp to subdir because otherwise we won't find it if we're
11554 # using a relative directory.
11555 cp "$am_depcomp" conftest.dir
11556 cd conftest.dir
11557 # We will build objects and dependencies in a subdirectory because
11558 # it helps to detect inapplicable dependency modes. For instance
11559 # both Tru64's cc and ICC support -MD to output dependencies as a
11560 # side effect of compilation, but ICC will put the dependencies in
11561 # the current directory while Tru64 will put them in the object
11562 # directory.
11563 mkdir sub
11564
11565 am_cv_CCAS_dependencies_compiler_type=none
11566 if test "$am_compiler_list" = ""; then
11567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11568 fi
11569 am__universal=false
11570
11571
11572 for depmode in $am_compiler_list; do
11573 # Setup a source with many dependencies, because some compilers
11574 # like to wrap large dependency lists on column 80 (with \), and
11575 # we should not choose a depcomp mode which is confused by this.
11576 #
11577 # We need to recreate these files for each test, as the compiler may
11578 # overwrite some of them when testing with obscure command lines.
11579 # This happens at least with the AIX C compiler.
11580 : > sub/conftest.c
11581 for i in 1 2 3 4 5 6; do
11582 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11583 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11584 # Solaris 8's {/usr,}/bin/sh.
11585 touch sub/conftst$i.h
11586 done
11587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11588
11589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11590 # mode. It turns out that the SunPro C++ compiler does not properly
11591 # handle `-M -o', and we need to detect this. Also, some Intel
11592 # versions had trouble with output in subdirs
11593 am__obj=sub/conftest.${OBJEXT-o}
11594 am__minus_obj="-o $am__obj"
11595 case $depmode in
11596 gcc)
11597 # This depmode causes a compiler race in universal mode.
11598 test "$am__universal" = false || continue
11599 ;;
11600 nosideeffect)
11601 # after this tag, mechanisms are not by side-effect, so they'll
11602 # only be used when explicitly requested
11603 if test "x$enable_dependency_tracking" = xyes; then
11604 continue
11605 else
11606 break
11607 fi
11608 ;;
11609 msvisualcpp | msvcmsys)
11610 # This compiler won't grok `-c -o', but also, the minuso test has
11611 # not run yet. These depmodes are late enough in the game, and
11612 # so weak that their functioning should not be impacted.
11613 am__obj=conftest.${OBJEXT-o}
11614 am__minus_obj=
11615 ;;
11616 none) break ;;
11617 esac
11618 if depmode=$depmode \
11619 source=sub/conftest.c object=$am__obj \
11620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11621 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11622 >/dev/null 2>conftest.err &&
11623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11625 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11627 # icc doesn't choke on unknown options, it will just issue warnings
11628 # or remarks (even with -Werror). So we grep stderr for any message
11629 # that says an option was ignored or not supported.
11630 # When given -MP, icc 7.0 and 7.1 complain thusly:
11631 # icc: Command line warning: ignoring option '-M'; no argument required
11632 # The diagnosis changed in icc 8.0:
11633 # icc: Command line remark: option '-MP' not supported
11634 if (grep 'ignoring option' conftest.err ||
11635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11636 am_cv_CCAS_dependencies_compiler_type=$depmode
11637 break
11638 fi
11639 fi
11640 done
11641
11642 cd ..
11643 rm -rf conftest.dir
11644else
11645 am_cv_CCAS_dependencies_compiler_type=none
11646fi
11647
11648fi
11649{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11650$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11651CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11652
11653 if
11654 test "x$enable_dependency_tracking" != xno \
11655 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11656 am__fastdepCCAS_TRUE=
11657 am__fastdepCCAS_FALSE='#'
11658else
11659 am__fastdepCCAS_TRUE='#'
11660 am__fastdepCCAS_FALSE=
11661fi
11662
11663
11664
11665
11666 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11667$as_echo_n "checking zfs author... " >&6; }
11668 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11669$as_echo "$ZFS_META_AUTHOR" >&6; }
11670
11671 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11672$as_echo_n "checking zfs license... " >&6; }
11673 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11674$as_echo "$ZFS_META_LICENSE" >&6; }
11675
11676
11677
58d956b0
PS
11678 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11679$as_echo_n "checking linux distribution... " >&6; }
76c2b24c
RY
11680 if test -f /etc/toss-release ; then
11681 VENDOR=toss ;
58d956b0
PS
11682 elif test -f /etc/fedora-release ; then
11683 VENDOR=fedora ;
76c2b24c
RY
11684 elif test -f /etc/redhat-release ; then
11685 VENDOR=redhat ;
58d956b0
PS
11686 elif test -f /etc/gentoo-release ; then
11687 VENDOR=gentoo ;
76c2b24c
RY
11688 elif test -f /etc/arch-release ; then
11689 VENDOR=arch ;
58d956b0
PS
11690 elif test -f /etc/SuSE-release ; then
11691 VENDOR=sles ;
11692 elif test -f /etc/slackware-version ; then
11693 VENDOR=slackware ;
58d956b0
PS
11694 elif test -f /etc/lunar.release ; then
11695 VENDOR=lunar ;
76c2b24c
RY
11696 elif test -f /etc/lsb-release ; then
11697 VENDOR=ubuntu ;
11698 elif test -f /etc/debian_version ; then
11699 VENDOR=debian ;
58d956b0
PS
11700 else
11701 VENDOR= ;
11702 fi
11703 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11704$as_echo "$VENDOR" >&6; }
11705
11706
11707 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11708$as_echo_n "checking default package type... " >&6; }
11709 case "$VENDOR" in
76c2b24c
RY
11710 toss) DEFAULT_PACKAGE=rpm ;;
11711 redhat) DEFAULT_PACKAGE=rpm ;;
11712 fedora) DEFAULT_PACKAGE=rpm ;;
11713 gentoo) DEFAULT_PACKAGE=tgz ;;
11714 arch) DEFAULT_PACKAGE=arch ;;
11715 sles) DEFAULT_PACKAGE=rpm ;;
11716 slackware) DEFAULT_PACKAGE=tgz ;;
11717 lunar) DEFAULT_PACKAGE=tgz ;;
11718 ubuntu) DEFAULT_PACKAGE=deb ;;
11719 debian) DEFAULT_PACKAGE=deb ;;
11720 *) DEFAULT_PACKAGE=rpm ;;
58d956b0
PS
11721 esac
11722
11723 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11724$as_echo "$DEFAULT_PACKAGE" >&6; }
11725
11726
11727 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11728$as_echo_n "checking default init directory... " >&6; }
11729 case "$VENDOR" in
11730 arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11731 *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11732 esac
11733
11734 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11735$as_echo "$DEFAULT_INIT_DIR" >&6; }
11736
11737
11738 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11739$as_echo_n "checking default init script type... " >&6; }
11740 case "$VENDOR" in
76c2b24c 11741 toss) DEFAULT_INIT_SCRIPT=redhat ;;
58d956b0
PS
11742 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
11743 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
58d956b0 11744 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
76c2b24c
RY
11745 arch) DEFAULT_INIT_SCRIPT=arch ;;
11746 sles) DEFAULT_INIT_SCRIPT=lsb ;;
11747 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
11748 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
11749 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11750 debian) DEFAULT_INIT_SCRIPT=lsb ;;
11751 *) DEFAULT_INIT_SCRIPT=lsb ;;
58d956b0
PS
11752 esac
11753
11754 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11755$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11756
11757
11758
e70e591c
BB
11759 RPM=rpm
11760 RPMBUILD=rpmbuild
11761
11762 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11763$as_echo_n "checking whether $RPM is available... " >&6; }
11764 if tmp=$($RPM --version 2>/dev/null); then
11765
11766 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11767 HAVE_RPM=yes
11768 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11769$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11770
11771else
11772
11773 HAVE_RPM=no
11774 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11775$as_echo "$HAVE_RPM" >&6; }
11776
11777fi
11778
11779
11780 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11781$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11782 if tmp=$($RPMBUILD --version 2>/dev/null); then
11783
11784 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11785 HAVE_RPMBUILD=yes
11786 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11787$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11788
11789else
11790
11791 HAVE_RPMBUILD=no
11792 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11793$as_echo "$HAVE_RPMBUILD" >&6; }
11794
11795fi
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807 DPKG=dpkg
11808 DPKGBUILD=dpkg-buildpackage
11809
11810 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11811$as_echo_n "checking whether $DPKG is available... " >&6; }
11812 if tmp=$($DPKG --version 2>/dev/null); then
11813
11814 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11815 HAVE_DPKG=yes
11816 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11817$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11818
11819else
11820
11821 HAVE_DPKG=no
11822 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11823$as_echo "$HAVE_DPKG" >&6; }
11824
11825fi
11826
11827
11828 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11829$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11830 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11831
11832 DPKGBUILD_VERSION=$(echo $tmp | \
11833 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11834 HAVE_DPKGBUILD=yes
11835 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11836$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11837
11838else
11839
11840 HAVE_DPKGBUILD=no
11841 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11842$as_echo "$HAVE_DPKGBUILD" >&6; }
11843
11844fi
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856 ALIEN=alien
11857
11858 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11859$as_echo_n "checking whether $ALIEN is available... " >&6; }
11860 if tmp=$($ALIEN --version 2>/dev/null); then
11861
11862 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11863 HAVE_ALIEN=yes
11864 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11865$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11866
11867else
11868
11869 HAVE_ALIEN=no
11870 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11871$as_echo "$HAVE_ALIEN" >&6; }
11872
11873fi
11874
11875
11876
11877
11878
11879
11880
58d956b0
PS
11881 if test "$VENDOR" = "arch"; then
11882
6ba3b446
PS
11883 PACMAN=pacman
11884 MAKEPKG=makepkg
11885
11886 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11887$as_echo_n "checking whether $PACMAN is available... " >&6; }
11888 tmp=$($PACMAN --version 2>/dev/null)
11889 if test -n "$tmp"; then
11890
11891 PACMAN_VERSION=$(echo $tmp |
11892 $AWK '/Pacman/ { print $3 }' |
11893 $SED 's/^v//')
11894 HAVE_PACMAN=yes
11895 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11896$as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11897
11898else
11899
11900 HAVE_PACMAN=no
11901 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11902$as_echo "$HAVE_PACMAN" >&6; }
11903
11904fi
11905
11906
11907 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11908$as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11909 tmp=$($MAKEPKG --version 2>/dev/null)
11910 if test -n "$tmp"; then
11911
11912 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11913 HAVE_MAKEPKG=yes
11914 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11915$as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11916
11917else
11918
11919 HAVE_MAKEPKG=no
11920 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11921$as_echo "$HAVE_MAKEPKG" >&6; }
11922
11923fi
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
58d956b0 11934fi
01c0e61d 11935
e70e591c
BB
11936
11937
e70e591c
BB
11938 TARGET_ASM_DIR=asm-generic
11939
11940
e70e591c
BB
11941 ZFS_CONFIG=all
11942
11943# Check whether --with-config was given.
11944if test "${with_config+set}" = set; then
11945 withval=$with_config; ZFS_CONFIG="$withval"
11946fi
11947
11948
11949 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11950$as_echo_n "checking zfs config... " >&6; }
11951 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11952$as_echo "$ZFS_CONFIG" >&6; };
11953
11954
2e08aedb
BB
11955
11956
11957 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11958$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11959
11960 saved_flags="$CFLAGS"
11961 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11962
11963 if test "$cross_compiling" = yes; then
11964 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11966{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11967See \`config.log' for more details." >&5
11968$as_echo "$as_me: error: cannot run test program while cross compiling
11969See \`config.log' for more details." >&2;}
11970 { (exit 1); exit 1; }; }; }
11971else
11972 cat >conftest.$ac_ext <<_ACEOF
11973/* confdefs.h. */
11974_ACEOF
11975cat confdefs.h >>conftest.$ac_ext
11976cat >>conftest.$ac_ext <<_ACEOF
11977/* end confdefs.h. */
11978
11979int
11980main ()
11981{
11982
11983 ;
11984 return 0;
11985}
11986_ACEOF
11987rm -f conftest$ac_exeext
11988if { (ac_try="$ac_link"
11989case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11992esac
11993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11994$as_echo "$ac_try_echo") >&5
11995 (eval "$ac_link") 2>&5
11996 ac_status=$?
11997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11999 { (case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002esac
12003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004$as_echo "$ac_try_echo") >&5
12005 (eval "$ac_try") 2>&5
12006 ac_status=$?
12007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12009
12010 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12011 { $as_echo "$as_me:$LINENO: result: yes" >&5
12012$as_echo "yes" >&6; }
12013
12014else
12015 $as_echo "$as_me: program exited with status $ac_status" >&5
12016$as_echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019( exit $ac_status )
12020
12021 NO_UNUSED_BUT_SET_VARIABLE=
12022 { $as_echo "$as_me:$LINENO: result: no" >&5
12023$as_echo "no" >&6; }
12024
12025fi
12026rm -rf conftest.dSYM
12027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12028fi
12029
12030
12031
12032 CFLAGS="$saved_flags"
12033
12034
12035
12036
e70e591c
BB
12037 case "$ZFS_CONFIG" in
12038 kernel)
12039
12040
12041# Check whether --with-linux was given.
12042if test "${with_linux+set}" = set; then
12043 withval=$with_linux; kernelsrc="$withval"
12044fi
12045
12046
12047
12048# Check whether --with-linux-obj was given.
12049if test "${with_linux_obj+set}" = set; then
12050 withval=$with_linux_obj; kernelbuild="$withval"
12051fi
12052
12053
12054 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12055$as_echo_n "checking kernel source directory... " >&6; }
12056 if test -z "$kernelsrc"; then
8366cd6a 12057
1b94c25c 12058 if test -e "/lib/modules/$(uname -r)/source"; then
8366cd6a 12059
1b94c25c
BB
12060 headersdir="/lib/modules/$(uname -r)/source"
12061 sourcelink=$(readlink -f "$headersdir")
8366cd6a
PS
12062
12063elif test -e "/lib/modules/$(uname -r)/build"; then
12064
1b94c25c 12065 headersdir="/lib/modules/$(uname -r)/build"
e70e591c 12066 sourcelink=$(readlink -f "$headersdir")
8366cd6a
PS
12067
12068else
12069
e70e591c 12070 sourcelink=$(ls -1d /usr/src/kernels/* \
8366cd6a 12071 /usr/src/linux-* \
e70e591c 12072 2>/dev/null | grep -v obj | tail -1)
8366cd6a
PS
12073
12074fi
12075
e70e591c
BB
12076
12077 if test -n "$sourcelink" && test -e ${sourcelink}; then
8366cd6a 12078
e70e591c 12079 kernelsrc=`readlink -f ${sourcelink}`
8366cd6a
PS
12080
12081else
12082
e70e591c
BB
12083 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12084$as_echo "Not found" >&6; }
12085 { { $as_echo "$as_me:$LINENO: error:
12086 *** Please make sure the kernel devel package for your distribution
12087 *** is installed then try again. If that fails you can specify the
12088 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12089$as_echo "$as_me: error:
12090 *** Please make sure the kernel devel package for your distribution
12091 *** is installed then try again. If that fails you can specify the
12092 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12093 { (exit 1); exit 1; }; }
8366cd6a
PS
12094
12095fi
12096
12097
12098else
12099
e70e591c 12100 if test "$kernelsrc" = "NONE"; then
8366cd6a 12101
e70e591c 12102 kernsrcver=NONE
8366cd6a
PS
12103
12104fi
12105
12106
12107fi
12108
e70e591c
BB
12109
12110 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12111$as_echo "$kernelsrc" >&6; }
12112 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12113$as_echo_n "checking kernel build directory... " >&6; }
12114 if test -z "$kernelbuild"; then
8366cd6a 12115
1b94c25c 12116 if test -e "/lib/modules/$(uname -r)/build"; then
8366cd6a 12117
1b94c25c 12118 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
8366cd6a
PS
12119
12120elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12121
e70e591c 12122 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
8366cd6a
PS
12123
12124elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12125
e70e591c 12126 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
8366cd6a
PS
12127
12128elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12129
e70e591c 12130 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
8366cd6a
PS
12131
12132else
12133
e70e591c 12134 kernelbuild=${kernelsrc}
8366cd6a
PS
12135
12136fi
12137
12138
12139fi
12140
e70e591c
BB
12141 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12142$as_echo "$kernelbuild" >&6; }
12143
12144 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12145$as_echo_n "checking kernel source version... " >&6; }
12146 utsrelease1=$kernelbuild/include/linux/version.h
12147 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12148 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12149 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
8366cd6a 12150
e70e591c 12151 utsrelease=linux/version.h
8366cd6a
PS
12152
12153elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12154
e70e591c 12155 utsrelease=linux/utsrelease.h
8366cd6a
PS
12156
12157elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12158
e70e591c 12159 utsrelease=generated/utsrelease.h
8366cd6a
PS
12160
12161fi
12162
e70e591c
BB
12163
12164 if test "$utsrelease"; then
8366cd6a 12165
e70e591c
BB
12166 kernsrcver=`(echo "#include <$utsrelease>";
12167 echo "kernsrcver=UTS_RELEASE") |
12168 cpp -I $kernelbuild/include |
12169 grep "^kernsrcver=" | cut -d \" -f 2`
12170
12171 if test -z "$kernsrcver"; then
8366cd6a 12172
e70e591c
BB
12173 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12174$as_echo "Not found" >&6; }
12175 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12176$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12177 { (exit 1); exit 1; }; }
8366cd6a
PS
12178
12179fi
12180
12181
12182else
12183
e70e591c
BB
12184 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12185$as_echo "Not found" >&6; }
12186 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12187$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12188 { (exit 1); exit 1; }; }
8366cd6a
PS
12189
12190fi
12191
e70e591c
BB
12192
12193 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12194$as_echo "$kernsrcver" >&6; }
12195
12196 LINUX=${kernelsrc}
12197 LINUX_OBJ=${kernelbuild}
12198 LINUX_VERSION=${kernsrcver}
12199
12200
12201
12202
12203
12204
12205 modpost=$LINUX/scripts/Makefile.modpost
12206 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12207$as_echo_n "checking kernel file name for module symbols... " >&6; }
12208 if test -f "$modpost"; then
8366cd6a 12209
e70e591c 12210 if grep -q Modules.symvers $modpost; then
8366cd6a 12211
e70e591c 12212 LINUX_SYMBOLS=Modules.symvers
8366cd6a
PS
12213
12214else
12215
e70e591c 12216 LINUX_SYMBOLS=Module.symvers
a60b1c0a 12217
8366cd6a
PS
12218fi
12219
12220
12221 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12222
a60b1c0a
BB
12223 { { $as_echo "$as_me:$LINENO: error:
12224 *** Please make sure the kernel devel package for your distribution
12225 *** is installed. If your building with a custom kernel make sure the
12226 *** kernel is configured, built, and the '--with-linux=PATH' configure
12227 *** option refers to the location of the kernel source." >&5
12228$as_echo "$as_me: error:
12229 *** Please make sure the kernel devel package for your distribution
12230 *** is installed. If your building with a custom kernel make sure the
12231 *** kernel is configured, built, and the '--with-linux=PATH' configure
12232 *** option refers to the location of the kernel source." >&2;}
12233 { (exit 1); exit 1; }; }
8366cd6a
PS
12234
12235fi
12236
12237
12238else
12239
e70e591c 12240 LINUX_SYMBOLS=NONE
8366cd6a
PS
12241
12242fi
12243
e70e591c
BB
12244 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12245$as_echo "$LINUX_SYMBOLS" >&6; }
12246
12247
12248
12249
12250
12251# Check whether --with-spl was given.
12252if test "${with_spl+set}" = set; then
12253 withval=$with_spl; splsrc="$withval"
12254fi
12255
12256
12257
12258# Check whether --with-spl-obj was given.
12259if test "${with_spl_obj+set}" = set; then
12260 withval=$with_spl_obj; splbuild="$withval"
12261fi
12262
12263
12264
12265 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12266$as_echo_n "checking spl source directory... " >&6; }
12267 if test -z "$splsrc"; then
8366cd6a 12268
e70e591c
BB
12269 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12270 2>/dev/null | tail -1`
12271
12272 if test -z "$sourcelink" || test ! -e $sourcelink; then
8366cd6a 12273
e70e591c 12274 sourcelink=../spl
8366cd6a
PS
12275
12276fi
12277
e70e591c
BB
12278
12279 if test -e $sourcelink; then
8366cd6a 12280
e70e591c 12281 splsrc=`readlink -f ${sourcelink}`
8366cd6a
PS
12282
12283else
12284
e70e591c
BB
12285 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12286$as_echo "Not found" >&6; }
12287 { { $as_echo "$as_me:$LINENO: error:
12288 *** Please make sure the spl devel package for your distribution
12289 *** is installed then try again. If that fails you can specify the
12290 *** location of the spl source with the '--with-spl=PATH' option." >&5
12291$as_echo "$as_me: error:
12292 *** Please make sure the spl devel package for your distribution
12293 *** is installed then try again. If that fails you can specify the
12294 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12295 { (exit 1); exit 1; }; }
8366cd6a
PS
12296
12297fi
12298
12299
12300else
12301
e70e591c 12302 if test "$splsrc" = "NONE"; then
8366cd6a 12303
e70e591c
BB
12304 splbuild=NONE
12305 splsrcver=NONE
8366cd6a
PS
12306
12307fi
12308
12309
12310fi
12311
e70e591c
BB
12312
12313 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12314$as_echo "$splsrc" >&6; }
12315 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12316$as_echo_n "checking spl build directory... " >&6; }
12317 if test -z "$splbuild"; then
8366cd6a 12318
6283f55e 12319 splbuild=${splsrc}
8366cd6a
PS
12320
12321fi
12322
e70e591c
BB
12323 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12324$as_echo "$splbuild" >&6; }
12325
12326 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12327$as_echo_n "checking spl source version... " >&6; }
5e612145
BB
12328 if test -r $splbuild/spl_config.h &&
12329 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
e70e591c 12330
8366cd6a 12331
e70e591c 12332 splsrcver=`(echo "#include <spl_config.h>";
b40a77ae 12333 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
5e612145 12334 cpp -I $splbuild |
b40a77ae 12335 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
8366cd6a
PS
12336
12337fi
12338
e70e591c
BB
12339
12340 if test -z "$splsrcver"; then
8366cd6a 12341
e70e591c
BB
12342 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12343$as_echo "Not found" >&6; }
12344 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12345 *** Cannot determine the version of the spl source.
12346 *** Please prepare the spl source before running this script" >&5
e70e591c 12347$as_echo "$as_me: error:
2984e0bb
PS
12348 *** Cannot determine the version of the spl source.
12349 *** Please prepare the spl source before running this script" >&2;}
e70e591c 12350 { (exit 1); exit 1; }; }
8366cd6a
PS
12351
12352fi
12353
e70e591c
BB
12354
12355 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12356$as_echo "$splsrcver" >&6; }
12357
12358 SPL=${splsrc}
12359 SPL_OBJ=${splbuild}
12360 SPL_VERSION=${splsrcver}
12361
12362
12363
12364
12365
12366
12367 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12368$as_echo_n "checking spl file name for module symbols... " >&6; }
12369 if test -r $SPL_OBJ/Module.symvers; then
8366cd6a 12370
e70e591c 12371 SPL_SYMBOLS=Module.symvers
8366cd6a
PS
12372
12373elif test -r $SPL_OBJ/Modules.symvers; then
12374
e70e591c 12375 SPL_SYMBOLS=Modules.symvers
8366cd6a
PS
12376
12377elif test -r $SPL_OBJ/module/Module.symvers; then
12378
6283f55e 12379 SPL_SYMBOLS=Module.symvers
8366cd6a
PS
12380
12381elif test -r $SPL_OBJ/module/Modules.symvers; then
12382
6283f55e 12383 SPL_SYMBOLS=Modules.symvers
8366cd6a
PS
12384
12385else
12386
e70e591c 12387 SPL_SYMBOLS=$LINUX_SYMBOLS
8366cd6a
PS
12388
12389fi
12390
e70e591c
BB
12391
12392 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12393$as_echo "$SPL_SYMBOLS" >&6; }
12394
12395
12396
12397
12398
15805c77
BB
12399 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12400$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12401
12402
12403cat confdefs.h - <<_ACEOF >conftest.c
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409
12410
0da78696 12411 #include <linux/module.h>
15805c77
BB
12412
12413int
12414main (void)
12415{
12416
12417 #ifndef CONFIG_PREEMPT
12418 #error CONFIG_PREEMPT not #defined
12419 #endif
12420
12421 ;
12422 return 0;
12423}
12424
12425_ACEOF
12426
12427
12428 rm -Rf build && mkdir -p build
12429 echo "obj-m := conftest.o" >build/Makefile
12430 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12433 ac_status=$?
12434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441
12442 { $as_echo "$as_me:$LINENO: result: yes" >&5
12443$as_echo "yes" >&6; }
12444 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12445 *** Kernel built with CONFIG_PREEMPT which is not supported.
12446 *** You must rebuild your kernel without this option." >&5
15805c77 12447$as_echo "$as_me: error:
2984e0bb
PS
12448 *** Kernel built with CONFIG_PREEMPT which is not supported.
12449 *** You must rebuild your kernel without this option." >&2;}
15805c77
BB
12450 { (exit 1); exit 1; }; }
12451
12452else
12453 $as_echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 { $as_echo "$as_me:$LINENO: result: no" >&5
12457$as_echo "no" >&6; }
12458
12459
12460
12461
12462fi
12463
12464 rm -Rf build
12465
12466
12467
12468
e70e591c 12469 if test "$ZFS_META_LICENSE" = CDDL; then
8366cd6a 12470
e70e591c
BB
12471 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12472$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12473
12474
12475cat confdefs.h - <<_ACEOF >conftest.c
12476/* confdefs.h. */
12477_ACEOF
12478cat confdefs.h >>conftest.$ac_ext
12479cat >>conftest.$ac_ext <<_ACEOF
12480/* end confdefs.h. */
12481
12482
0da78696 12483 #include <linux/module.h>
e70e591c
BB
12484
12485int
12486main (void)
12487{
12488
12489 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12490 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12491 #endif
12492
12493 ;
12494 return 0;
12495}
12496
12497_ACEOF
12498
12499
12500 rm -Rf build && mkdir -p build
12501 echo "obj-m := conftest.o" >build/Makefile
12502 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; }; then
12513
12514 { $as_echo "$as_me:$LINENO: result: yes" >&5
12515$as_echo "yes" >&6; }
12516 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12517 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12518 *** incompatible with the CDDL license. You must rebuild
12519 *** your kernel without this option." >&5
e70e591c 12520$as_echo "$as_me: error:
2984e0bb
PS
12521 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12522 *** incompatible with the CDDL license. You must rebuild
12523 *** your kernel without this option." >&2;}
e70e591c
BB
12524 { (exit 1); exit 1; }; }
12525
12526else
12527 $as_echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 { $as_echo "$as_me:$LINENO: result: no" >&5
12531$as_echo "no" >&6; }
12532
12533
12534
12535
12536fi
12537
12538 rm -Rf build
12539
12540
12541
8366cd6a
PS
12542
12543fi
12544
e70e591c
BB
12545
12546 if test "$ZFS_META_LICENSE" = GPL; then
12547
8366cd6a 12548
e70e591c
BB
12549cat >>confdefs.h <<\_ACEOF
12550#define HAVE_GPL_ONLY_SYMBOLS 1
12551_ACEOF
12552
8366cd6a
PS
12553
12554fi
12555
e70e591c
BB
12556
12557
12558 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12559$as_echo_n "checking block device operation prototypes... " >&6; }
b9c59ec8
PS
12560 tmp_flags="$EXTRA_KCFLAGS"
12561 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
12562
12563
12564cat confdefs.h - <<_ACEOF >conftest.c
12565/* confdefs.h. */
12566_ACEOF
12567cat confdefs.h >>conftest.$ac_ext
12568cat >>conftest.$ac_ext <<_ACEOF
12569/* end confdefs.h. */
12570
12571
12572 #include <linux/blkdev.h>
12573
12574int
12575main (void)
12576{
12577
12578 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12579 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12580 int (*blk_ioctl) (struct block_device *, fmode_t,
12581 unsigned, unsigned long) = NULL;
12582 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12583 unsigned, unsigned long) = NULL;
12584 struct block_device_operations blk_ops = {
12585 .open = blk_open,
12586 .release = blk_release,
12587 .ioctl = blk_ioctl,
12588 .compat_ioctl = blk_compat_ioctl,
12589 };
12590
12591 blk_ops.open(NULL, 0);
12592 blk_ops.release(NULL, 0);
12593 blk_ops.ioctl(NULL, 0, 0, 0);
12594 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12595
12596 ;
12597 return 0;
12598}
12599
12600_ACEOF
12601
12602
12603 rm -Rf build && mkdir -p build
12604 echo "obj-m := conftest.o" >build/Makefile
12605 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616
12617 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12618$as_echo "struct block_device" >&6; }
12619
12620cat >>confdefs.h <<\_ACEOF
12621#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12622_ACEOF
12623
12624
12625else
12626 $as_echo "$as_me: failed program was:" >&5
12627sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12630$as_echo "struct inode" >&6; }
12631
12632
12633
12634fi
12635
12636 rm -Rf build
12637
12638
b9c59ec8 12639 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
12640
12641 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12642$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12643
12644
12645cat confdefs.h - <<_ACEOF >conftest.c
12646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
12650/* end confdefs.h. */
12651
12652
12653 #include <linux/types.h>
12654
12655int
12656main (void)
12657{
12658
79713039 12659 fmode_t *ptr __attribute__ ((unused));
e70e591c
BB
12660
12661 ;
12662 return 0;
12663}
12664
12665_ACEOF
12666
12667
12668 rm -Rf build && mkdir -p build
12669 echo "obj-m := conftest.o" >build/Makefile
12670 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677 (eval $ac_try) 2>&5
12678 ac_status=$?
12679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); }; }; then
12681
12682 { $as_echo "$as_me:$LINENO: result: yes" >&5
12683$as_echo "yes" >&6; }
12684
12685cat >>confdefs.h <<\_ACEOF
12686#define HAVE_FMODE_T 1
12687_ACEOF
12688
12689
12690else
12691 $as_echo "$as_me: failed program was:" >&5
12692sed 's/^/| /' conftest.$ac_ext >&5
12693
12694 { $as_echo "$as_me:$LINENO: result: no" >&5
12695$as_echo "no" >&6; }
12696
12697
12698
12699fi
12700
12701 rm -Rf build
12702
12703
12704
12705
12706 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12707$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12708
12709
12710cat confdefs.h - <<_ACEOF >conftest.c
12711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
12716
12717
12718 #include <linux/kobject.h>
12719
12720int
12721main (void)
12722{
12723
79713039 12724 int val __attribute__ ((unused));
e70e591c
BB
12725 val = KOBJ_NAME_LEN;
12726
12727 ;
12728 return 0;
12729}
12730
12731_ACEOF
12732
12733
12734 rm -Rf build && mkdir -p build
12735 echo "obj-m := conftest.o" >build/Makefile
12736 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12744 ac_status=$?
12745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; }; then
12747
12748 { $as_echo "$as_me:$LINENO: result: yes" >&5
12749$as_echo "yes" >&6; }
12750
12751cat >>confdefs.h <<\_ACEOF
12752#define HAVE_KOBJ_NAME_LEN 1
12753_ACEOF
12754
12755
12756else
12757 $as_echo "$as_me: failed program was:" >&5
12758sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 { $as_echo "$as_me:$LINENO: result: no" >&5
12761$as_echo "no" >&6; }
12762
12763
12764
12765fi
12766
12767 rm -Rf build
12768
12769
12770
12771
45066d1f
BB
12772 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12773$as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12774 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12775 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12776 rc=$?
12777 if test $rc -ne 0; then
8366cd6a 12778
45066d1f
BB
12779 export=0
12780 for file in fs/block_dev.c; do
12781 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12782 rc=$?
8366cd6a
PS
12783 if test $rc -eq 0; then
12784
12785 export=1
12786 break;
12787
12788fi
12789
45066d1f
BB
12790 done
12791 if test $export -eq 0; then
8366cd6a 12792
45066d1f
BB
12793 { $as_echo "$as_me:$LINENO: result: no" >&5
12794$as_echo "no" >&6; }
12795
8366cd6a
PS
12796
12797else
12798
45066d1f
BB
12799 { $as_echo "$as_me:$LINENO: result: yes" >&5
12800$as_echo "yes" >&6; }
12801
12802cat >>confdefs.h <<\_ACEOF
12803#define HAVE_BLKDEV_GET_BY_PATH 1
12804_ACEOF
12805
8366cd6a
PS
12806
12807fi
12808
12809
12810else
12811
45066d1f
BB
12812 { $as_echo "$as_me:$LINENO: result: yes" >&5
12813$as_echo "yes" >&6; }
12814
12815cat >>confdefs.h <<\_ACEOF
12816#define HAVE_BLKDEV_GET_BY_PATH 1
12817_ACEOF
12818
8366cd6a
PS
12819
12820fi
12821
45066d1f
BB
12822
12823
12824
e70e591c
BB
12825 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12826$as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12827 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12828 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12829 rc=$?
12830 if test $rc -ne 0; then
8366cd6a 12831
e70e591c
BB
12832 export=0
12833 for file in fs/block_dev.c; do
12834 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12835 rc=$?
8366cd6a
PS
12836 if test $rc -eq 0; then
12837
12838 export=1
12839 break;
12840
12841fi
12842
e70e591c
BB
12843 done
12844 if test $export -eq 0; then
8366cd6a 12845
e70e591c
BB
12846 { $as_echo "$as_me:$LINENO: result: no" >&5
12847$as_echo "no" >&6; }
12848
8366cd6a
PS
12849
12850else
12851
e70e591c
BB
12852 { $as_echo "$as_me:$LINENO: result: yes" >&5
12853$as_echo "yes" >&6; }
12854
12855cat >>confdefs.h <<\_ACEOF
12856#define HAVE_OPEN_BDEV_EXCLUSIVE 1
12857_ACEOF
12858
8366cd6a
PS
12859
12860fi
12861
12862
12863else
12864
e70e591c
BB
12865 { $as_echo "$as_me:$LINENO: result: yes" >&5
12866$as_echo "yes" >&6; }
12867
12868cat >>confdefs.h <<\_ACEOF
12869#define HAVE_OPEN_BDEV_EXCLUSIVE 1
12870_ACEOF
12871
8366cd6a
PS
12872
12873fi
12874
e70e591c
BB
12875
12876
12877
12878 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12879$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12880
12881
12882cat confdefs.h - <<_ACEOF >conftest.c
12883/* confdefs.h. */
12884_ACEOF
12885cat confdefs.h >>conftest.$ac_ext
12886cat >>conftest.$ac_ext <<_ACEOF
12887/* end confdefs.h. */
12888
12889
12890 #include <linux/buffer_head.h>
12891
12892int
12893main (void)
12894{
12895
79713039 12896 struct block_device *bdev = NULL;
e70e591c
BB
12897 invalidate_bdev(bdev);
12898
12899 ;
12900 return 0;
12901}
12902
12903_ACEOF
12904
12905
12906 rm -Rf build && mkdir -p build
12907 echo "obj-m := conftest.o" >build/Makefile
12908 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919
12920 { $as_echo "$as_me:$LINENO: result: yes" >&5
12921$as_echo "yes" >&6; }
12922
12923cat >>confdefs.h <<\_ACEOF
12924#define HAVE_1ARG_INVALIDATE_BDEV 1
12925_ACEOF
12926
12927
12928else
12929 $as_echo "$as_me: failed program was:" >&5
12930sed 's/^/| /' conftest.$ac_ext >&5
12931
12932 { $as_echo "$as_me:$LINENO: result: no" >&5
12933$as_echo "no" >&6; }
12934
12935
12936
12937fi
12938
12939 rm -Rf build
12940
12941
12942
12943
12944 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12945$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
b9c59ec8
PS
12946 tmp_flags="$EXTRA_KCFLAGS"
12947 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
12948
12949
12950cat confdefs.h - <<_ACEOF >conftest.c
12951/* confdefs.h. */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h. */
12956
12957
12958 #include <linux/blkdev.h>
12959
12960int
12961main (void)
12962{
12963
12964 struct block_device *bdev = NULL;
12965 bdev_logical_block_size(bdev);
12966
12967 ;
12968 return 0;
12969}
12970
12971_ACEOF
12972
12973
12974 rm -Rf build && mkdir -p build
12975 echo "obj-m := conftest.o" >build/Makefile
12976 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12978 (eval $ac_try) 2>&5
12979 ac_status=$?
12980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12983 (eval $ac_try) 2>&5
12984 ac_status=$?
12985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); }; }; then
12987
12988 { $as_echo "$as_me:$LINENO: result: yes" >&5
12989$as_echo "yes" >&6; }
12990
12991cat >>confdefs.h <<\_ACEOF
12992#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12993_ACEOF
12994
12995
12996else
12997 $as_echo "$as_me: failed program was:" >&5
12998sed 's/^/| /' conftest.$ac_ext >&5
12999
13000 { $as_echo "$as_me:$LINENO: result: no" >&5
13001$as_echo "no" >&6; }
13002
13003
13004
13005fi
13006
13007 rm -Rf build
13008
13009
b9c59ec8 13010 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13011
13012
13013 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13014$as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13015 EXTRA_KCFLAGS="-Werror"
13016
13017
13018cat confdefs.h - <<_ACEOF >conftest.c
13019/* confdefs.h. */
13020_ACEOF
13021cat confdefs.h >>conftest.$ac_ext
13022cat >>conftest.$ac_ext <<_ACEOF
13023/* end confdefs.h. */
13024
13025
13026 #include <linux/bio.h>
13027
13028int
13029main (void)
13030{
13031
13032 struct bio bio;
13033 (void)bio_empty_barrier(&bio);
13034
13035 ;
13036 return 0;
13037}
13038
13039_ACEOF
13040
13041
13042 rm -Rf build && mkdir -p build
13043 echo "obj-m := conftest.o" >build/Makefile
13044 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13047 ac_status=$?
13048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13052 ac_status=$?
13053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13055
13056 { $as_echo "$as_me:$LINENO: result: yes" >&5
13057$as_echo "yes" >&6; }
13058
13059cat >>confdefs.h <<\_ACEOF
13060#define HAVE_BIO_EMPTY_BARRIER 1
13061_ACEOF
13062
13063
13064else
13065 $as_echo "$as_me: failed program was:" >&5
13066sed 's/^/| /' conftest.$ac_ext >&5
13067
13068 { $as_echo "$as_me:$LINENO: result: no" >&5
13069$as_echo "no" >&6; }
13070
13071
13072
13073fi
13074
13075 rm -Rf build
13076
13077
13078
13079
f4af6bb7
BB
13080 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13081$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13082
13083
13084cat confdefs.h - <<_ACEOF >conftest.c
13085/* confdefs.h. */
13086_ACEOF
13087cat confdefs.h >>conftest.$ac_ext
13088cat >>conftest.$ac_ext <<_ACEOF
13089/* end confdefs.h. */
13090
13091
13092 #include <linux/bio.h>
13093
13094int
13095main (void)
13096{
13097
79713039 13098 int flags __attribute__ ((unused));
f4af6bb7
BB
13099 flags = (1 << BIO_RW_FAILFAST);
13100
13101 ;
13102 return 0;
13103}
13104
13105_ACEOF
13106
13107
13108 rm -Rf build && mkdir -p build
13109 echo "obj-m := conftest.o" >build/Makefile
13110 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121
13122 { $as_echo "$as_me:$LINENO: result: yes" >&5
13123$as_echo "yes" >&6; }
13124
13125cat >>confdefs.h <<\_ACEOF
13126#define HAVE_BIO_RW_FAILFAST 1
13127_ACEOF
13128
13129
13130else
13131 $as_echo "$as_me: failed program was:" >&5
13132sed 's/^/| /' conftest.$ac_ext >&5
13133
13134 { $as_echo "$as_me:$LINENO: result: no" >&5
13135$as_echo "no" >&6; }
13136
13137
13138
13139fi
13140
13141 rm -Rf build
13142
13143
13144
13145
2959d94a
BB
13146 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13147$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13148
13149
13150cat confdefs.h - <<_ACEOF >conftest.c
13151/* confdefs.h. */
13152_ACEOF
13153cat confdefs.h >>conftest.$ac_ext
13154cat >>conftest.$ac_ext <<_ACEOF
13155/* end confdefs.h. */
13156
13157
13158 #include <linux/bio.h>
13159
13160int
13161main (void)
13162{
13163
79713039 13164 int flags __attribute__ ((unused));
2959d94a
BB
13165 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13166 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13167 (1 << BIO_RW_FAILFAST_DRIVER));
13168
13169 ;
13170 return 0;
13171}
13172
13173_ACEOF
13174
13175
13176 rm -Rf build && mkdir -p build
13177 echo "obj-m := conftest.o" >build/Makefile
13178 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189
13190 { $as_echo "$as_me:$LINENO: result: yes" >&5
13191$as_echo "yes" >&6; }
13192
13193cat >>confdefs.h <<\_ACEOF
f4af6bb7
BB
13194#define HAVE_BIO_RW_FAILFAST_DTD 1
13195_ACEOF
13196
13197
13198else
13199 $as_echo "$as_me: failed program was:" >&5
13200sed 's/^/| /' conftest.$ac_ext >&5
13201
13202 { $as_echo "$as_me:$LINENO: result: no" >&5
13203$as_echo "no" >&6; }
13204
13205
13206
13207fi
13208
13209 rm -Rf build
13210
13211
13212
13213
13214 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13215$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13216
13217
13218cat confdefs.h - <<_ACEOF >conftest.c
13219/* confdefs.h. */
13220_ACEOF
13221cat confdefs.h >>conftest.$ac_ext
13222cat >>conftest.$ac_ext <<_ACEOF
13223/* end confdefs.h. */
13224
13225
13226 #include <linux/bio.h>
13227
13228int
13229main (void)
13230{
13231
79713039 13232 int flags __attribute__ ((unused));
f4af6bb7
BB
13233 flags = REQ_FAILFAST_MASK;
13234
13235 ;
13236 return 0;
13237}
13238
13239_ACEOF
13240
13241
13242 rm -Rf build && mkdir -p build
13243 echo "obj-m := conftest.o" >build/Makefile
13244 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }; then
13255
13256 { $as_echo "$as_me:$LINENO: result: yes" >&5
13257$as_echo "yes" >&6; }
13258
13259cat >>confdefs.h <<\_ACEOF
13260#define HAVE_BIO_REQ_FAILFAST_MASK 1
2959d94a
BB
13261_ACEOF
13262
13263
13264else
13265 $as_echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 { $as_echo "$as_me:$LINENO: result: no" >&5
13269$as_echo "no" >&6; }
13270
13271
13272
13273fi
13274
13275 rm -Rf build
13276
13277
13278
13279
e70e591c
BB
13280 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13281$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13282 tmp_flags="$EXTRA_KCFLAGS"
13283 EXTRA_KCFLAGS="-Werror"
13284
13285
13286cat confdefs.h - <<_ACEOF >conftest.c
13287/* confdefs.h. */
13288_ACEOF
13289cat confdefs.h >>conftest.$ac_ext
13290cat >>conftest.$ac_ext <<_ACEOF
13291/* end confdefs.h. */
13292
13293
13294 #include <linux/bio.h>
13295
13296int
13297main (void)
13298{
13299
13300 void (*wanted_end_io)(struct bio *, int) = NULL;
79713039 13301 bio_end_io_t *local_end_io __attribute__ ((unused));
e70e591c
BB
13302
13303 local_end_io = wanted_end_io;
13304
13305 ;
13306 return 0;
13307}
13308
13309_ACEOF
13310
13311
13312 rm -Rf build && mkdir -p build
13313 echo "obj-m := conftest.o" >build/Makefile
13314 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325
13326 { $as_echo "$as_me:$LINENO: result: yes" >&5
13327$as_echo "yes" >&6; }
13328
13329cat >>confdefs.h <<\_ACEOF
13330#define HAVE_2ARGS_BIO_END_IO_T 1
13331_ACEOF
13332
13333
13334else
13335 $as_echo "$as_me: failed program was:" >&5
13336sed 's/^/| /' conftest.$ac_ext >&5
13337
13338 { $as_echo "$as_me:$LINENO: result: no" >&5
13339$as_echo "no" >&6; }
13340
13341
13342
13343fi
13344
13345 rm -Rf build
13346
13347
13348 EXTRA_KCFLAGS="$tmp_flags"
13349
13350
675de5aa
BB
13351 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13352$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13353
13354
13355cat confdefs.h - <<_ACEOF >conftest.c
13356/* confdefs.h. */
13357_ACEOF
13358cat confdefs.h >>conftest.$ac_ext
13359cat >>conftest.$ac_ext <<_ACEOF
13360/* end confdefs.h. */
13361
13362
13363 #include <linux/bio.h>
13364
13365int
13366main (void)
13367{
13368
79713039 13369 int flags __attribute__ ((unused));
675de5aa
BB
13370 flags = BIO_RW_SYNC;
13371
13372 ;
13373 return 0;
13374}
13375
13376_ACEOF
13377
13378
13379 rm -Rf build && mkdir -p build
13380 echo "obj-m := conftest.o" >build/Makefile
13381 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392
13393 { $as_echo "$as_me:$LINENO: result: yes" >&5
13394$as_echo "yes" >&6; }
13395
13396cat >>confdefs.h <<\_ACEOF
13397#define HAVE_BIO_RW_SYNC 1
13398_ACEOF
13399
13400
13401else
13402 $as_echo "$as_me: failed program was:" >&5
13403sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 { $as_echo "$as_me:$LINENO: result: no" >&5
13406$as_echo "no" >&6; }
13407
13408
13409
13410fi
13411
13412 rm -Rf build
13413
13414
13415
13416
e70e591c
BB
13417 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13418$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13419
13420
13421cat confdefs.h - <<_ACEOF >conftest.c
13422/* confdefs.h. */
13423_ACEOF
13424cat confdefs.h >>conftest.$ac_ext
13425cat >>conftest.$ac_ext <<_ACEOF
13426/* end confdefs.h. */
13427
13428
13429 #include <linux/bio.h>
13430
13431int
13432main (void)
13433{
13434
79713039 13435 int flags __attribute__ ((unused));
e70e591c
BB
13436 flags = BIO_RW_SYNCIO;
13437
13438 ;
13439 return 0;
13440}
13441
13442_ACEOF
13443
13444
13445 rm -Rf build && mkdir -p build
13446 echo "obj-m := conftest.o" >build/Makefile
13447 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454 (eval $ac_try) 2>&5
13455 ac_status=$?
13456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; }; then
13458
13459 { $as_echo "$as_me:$LINENO: result: yes" >&5
13460$as_echo "yes" >&6; }
13461
13462cat >>confdefs.h <<\_ACEOF
13463#define HAVE_BIO_RW_SYNCIO 1
13464_ACEOF
13465
13466
13467else
13468 $as_echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 { $as_echo "$as_me:$LINENO: result: no" >&5
13472$as_echo "no" >&6; }
13473
13474
13475
13476fi
13477
13478 rm -Rf build
13479
13480
13481
13482
675de5aa
BB
13483 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13484$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13485
13486
13487cat confdefs.h - <<_ACEOF >conftest.c
13488/* confdefs.h. */
13489_ACEOF
13490cat confdefs.h >>conftest.$ac_ext
13491cat >>conftest.$ac_ext <<_ACEOF
13492/* end confdefs.h. */
13493
13494
13495 #include <linux/bio.h>
13496
13497int
13498main (void)
13499{
13500
79713039 13501 int flags __attribute__ ((unused));
675de5aa
BB
13502 flags = REQ_SYNC;
13503
13504 ;
13505 return 0;
13506}
13507
13508_ACEOF
13509
13510
13511 rm -Rf build && mkdir -p build
13512 echo "obj-m := conftest.o" >build/Makefile
13513 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524
13525 { $as_echo "$as_me:$LINENO: result: yes" >&5
13526$as_echo "yes" >&6; }
13527
13528cat >>confdefs.h <<\_ACEOF
13529#define HAVE_REQ_SYNC 1
13530_ACEOF
13531
13532
13533else
13534 $as_echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 { $as_echo "$as_me:$LINENO: result: no" >&5
13538$as_echo "no" >&6; }
13539
13540
13541
13542fi
13543
13544 rm -Rf build
13545
13546
13547
13548
e70e591c
BB
13549 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13550$as_echo_n "checking whether blk_end_request() is available... " >&6; }
b9c59ec8
PS
13551 tmp_flags="$EXTRA_KCFLAGS"
13552 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13553
13554
13555cat confdefs.h - <<_ACEOF >conftest.c
13556/* confdefs.h. */
13557_ACEOF
13558cat confdefs.h >>conftest.$ac_ext
13559cat >>conftest.$ac_ext <<_ACEOF
13560/* end confdefs.h. */
13561
13562
13563 #include <linux/blkdev.h>
13564
13565int
13566main (void)
13567{
13568
13569 struct request *req = NULL;
13570 (void) blk_end_request(req, 0, 0);
13571
13572 ;
13573 return 0;
13574}
13575
13576_ACEOF
13577
13578
13579 rm -Rf build && mkdir -p build
13580 echo "obj-m := conftest.o" >build/Makefile
13581 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13589 ac_status=$?
13590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592
13593 { $as_echo "$as_me:$LINENO: result: yes" >&5
13594$as_echo "yes" >&6; }
13595
13596cat >>confdefs.h <<\_ACEOF
13597#define HAVE_BLK_END_REQUEST 1
13598_ACEOF
13599
13600
13601else
13602 $as_echo "$as_me: failed program was:" >&5
13603sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 { $as_echo "$as_me:$LINENO: result: no" >&5
13606$as_echo "no" >&6; }
13607
13608
13609
13610fi
13611
13612 rm -Rf build
13613
13614
13615
13616 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13617$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13618
13619
13620cat confdefs.h - <<_ACEOF >conftest.c
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
13626
13627
13628 #include <linux/module.h>
13629 #include <linux/blkdev.h>
13630
13631 MODULE_LICENSE("CDDL");
13632
13633int
13634main (void)
13635{
13636
13637 struct request *req = NULL;
13638 (void) blk_end_request(req, 0, 0);
13639
13640 ;
13641 return 0;
13642}
13643
13644_ACEOF
13645
13646
13647 rm -Rf build && mkdir -p build
13648 echo "obj-m := conftest.o" >build/Makefile
13649 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13660
13661 { $as_echo "$as_me:$LINENO: result: no" >&5
13662$as_echo "no" >&6; }
13663
13664else
13665 $as_echo "$as_me: failed program was:" >&5
13666sed 's/^/| /' conftest.$ac_ext >&5
13667
13668 { $as_echo "$as_me:$LINENO: result: yes" >&5
13669$as_echo "yes" >&6; }
13670
13671cat >>confdefs.h <<\_ACEOF
13672#define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13673_ACEOF
13674
13675
13676
13677
b18019d2
ED
13678fi
13679
13680 rm -Rf build
13681
13682
13683 EXTRA_KCFLAGS="$tmp_flags"
13684
13685
13686 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13687$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13688 tmp_flags="$EXTRA_KCFLAGS"
13689 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13690
13691
13692cat confdefs.h - <<_ACEOF >conftest.c
13693/* confdefs.h. */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
13697/* end confdefs.h. */
13698
13699
13700 #include <linux/blkdev.h>
13701
13702int
13703main (void)
13704{
13705
13706 struct request_queue *q = NULL;
13707 (void) blk_queue_flush(q, REQ_FLUSH);
13708
13709 ;
13710 return 0;
13711}
13712
13713_ACEOF
13714
13715
13716 rm -Rf build && mkdir -p build
13717 echo "obj-m := conftest.o" >build/Makefile
13718 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
13722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729
13730 { $as_echo "$as_me:$LINENO: result: yes" >&5
13731$as_echo "yes" >&6; }
13732
13733cat >>confdefs.h <<\_ACEOF
13734#define HAVE_BLK_QUEUE_FLUSH 1
13735_ACEOF
13736
13737
13738else
13739 $as_echo "$as_me: failed program was:" >&5
13740sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 { $as_echo "$as_me:$LINENO: result: no" >&5
13743$as_echo "no" >&6; }
13744
13745
13746
13747fi
13748
13749 rm -Rf build
13750
13751
13752
13753 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13754$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13755
13756
13757cat confdefs.h - <<_ACEOF >conftest.c
13758/* confdefs.h. */
13759_ACEOF
13760cat confdefs.h >>conftest.$ac_ext
13761cat >>conftest.$ac_ext <<_ACEOF
13762/* end confdefs.h. */
13763
13764
13765 #include <linux/module.h>
13766 #include <linux/blkdev.h>
13767
13768 MODULE_LICENSE("CDDL");
13769
13770int
13771main (void)
13772{
13773
13774 struct request_queue *q = NULL;
13775 (void) blk_queue_flush(q, REQ_FLUSH);
13776
13777 ;
13778 return 0;
13779}
13780
13781_ACEOF
13782
13783
13784 rm -Rf build && mkdir -p build
13785 echo "obj-m := conftest.o" >build/Makefile
13786 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797
13798 { $as_echo "$as_me:$LINENO: result: no" >&5
13799$as_echo "no" >&6; }
13800
13801else
13802 $as_echo "$as_me: failed program was:" >&5
13803sed 's/^/| /' conftest.$ac_ext >&5
13804
13805 { $as_echo "$as_me:$LINENO: result: yes" >&5
13806$as_echo "yes" >&6; }
13807
13808cat >>confdefs.h <<\_ACEOF
13809#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
13810_ACEOF
13811
13812
13813
13814
e70e591c
BB
13815fi
13816
13817 rm -Rf build
13818
13819
b9c59ec8 13820 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13821
13822
34037afe
ED
13823 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
13824$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
b9c59ec8
PS
13825 tmp_flags="$EXTRA_KCFLAGS"
13826 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13827
13828
13829cat confdefs.h - <<_ACEOF >conftest.c
13830/* confdefs.h. */
13831_ACEOF
13832cat confdefs.h >>conftest.$ac_ext
13833cat >>conftest.$ac_ext <<_ACEOF
13834/* end confdefs.h. */
13835
13836
13837 #include <linux/blkdev.h>
13838
13839int
13840main (void)
13841{
13842
13843 struct request_queue *q = NULL;
34037afe 13844 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
e70e591c
BB
13845
13846 ;
13847 return 0;
13848}
13849
13850_ACEOF
13851
13852
13853 rm -Rf build && mkdir -p build
13854 echo "obj-m := conftest.o" >build/Makefile
13855 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13863 ac_status=$?
13864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }; then
13866
13867 { $as_echo "$as_me:$LINENO: result: yes" >&5
13868$as_echo "yes" >&6; }
13869
13870cat >>confdefs.h <<\_ACEOF
34037afe 13871#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
e70e591c
BB
13872_ACEOF
13873
13874
13875else
13876 $as_echo "$as_me: failed program was:" >&5
13877sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 { $as_echo "$as_me:$LINENO: result: no" >&5
13880$as_echo "no" >&6; }
13881
13882
13883
13884fi
13885
13886 rm -Rf build
13887
13888
b9c59ec8 13889 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13890
13891
34037afe
ED
13892 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
13893$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
b9c59ec8
PS
13894 tmp_flags="$EXTRA_KCFLAGS"
13895 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13896
13897
13898cat confdefs.h - <<_ACEOF >conftest.c
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h. */
13904
13905
13906 #include <linux/blkdev.h>
13907
13908int
13909main (void)
13910{
13911
13912 struct request_queue *q = NULL;
34037afe 13913 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
e70e591c
BB
13914
13915 ;
13916 return 0;
13917}
13918
13919_ACEOF
13920
13921
13922 rm -Rf build && mkdir -p build
13923 echo "obj-m := conftest.o" >build/Makefile
13924 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935
13936 { $as_echo "$as_me:$LINENO: result: yes" >&5
13937$as_echo "yes" >&6; }
13938
13939cat >>confdefs.h <<\_ACEOF
34037afe 13940#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
e70e591c
BB
13941_ACEOF
13942
13943
13944else
13945 $as_echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
13948 { $as_echo "$as_me:$LINENO: result: no" >&5
13949$as_echo "no" >&6; }
13950
13951
13952
13953fi
13954
13955 rm -Rf build
13956
13957
b9c59ec8 13958 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13959
13960
34037afe
ED
13961 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
13962$as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
b9c59ec8
PS
13963 tmp_flags="$EXTRA_KCFLAGS"
13964 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13965
13966
13967cat confdefs.h - <<_ACEOF >conftest.c
13968/* confdefs.h. */
13969_ACEOF
13970cat confdefs.h >>conftest.$ac_ext
13971cat >>conftest.$ac_ext <<_ACEOF
13972/* end confdefs.h. */
13973
13974
13975 #include <linux/blkdev.h>
13976
13977int
13978main (void)
13979{
13980
34037afe
ED
13981 struct request_queue *q = NULL;
13982 unsigned short block_size = 1;
13983 (void) blk_queue_physical_block_size(q, block_size);
e70e591c
BB
13984
13985 ;
13986 return 0;
13987}
13988
13989_ACEOF
13990
13991
13992 rm -Rf build && mkdir -p build
13993 echo "obj-m := conftest.o" >build/Makefile
13994 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13997 ac_status=$?
13998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14002 ac_status=$?
14003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005
14006 { $as_echo "$as_me:$LINENO: result: yes" >&5
14007$as_echo "yes" >&6; }
14008
14009cat >>confdefs.h <<\_ACEOF
34037afe 14010#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
e70e591c
BB
14011_ACEOF
14012
14013
14014else
14015 $as_echo "$as_me: failed program was:" >&5
14016sed 's/^/| /' conftest.$ac_ext >&5
14017
14018 { $as_echo "$as_me:$LINENO: result: no" >&5
14019$as_echo "no" >&6; }
14020
14021
14022
14023fi
14024
14025 rm -Rf build
14026
14027
34037afe
ED
14028 EXTRA_KCFLAGS="$tmp_flags"
14029
e70e591c 14030
34037afe
ED
14031 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14032$as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14033 tmp_flags="$EXTRA_KCFLAGS"
14034 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14035
14036
14037cat confdefs.h - <<_ACEOF >conftest.c
14038/* confdefs.h. */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h. */
14043
14044
e70e591c
BB
14045 #include <linux/blkdev.h>
14046
e70e591c
BB
14047int
14048main (void)
14049{
14050
34037afe
ED
14051 struct request_queue *q = NULL;
14052 unsigned int opt = 1;
14053 (void) blk_queue_io_opt(q, opt);
e70e591c
BB
14054
14055 ;
14056 return 0;
14057}
14058
14059_ACEOF
14060
14061
14062 rm -Rf build && mkdir -p build
14063 echo "obj-m := conftest.o" >build/Makefile
14064 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066 (eval $ac_try) 2>&5
14067 ac_status=$?
14068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14072 ac_status=$?
14073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }; then
14075
e70e591c
BB
14076 { $as_echo "$as_me:$LINENO: result: yes" >&5
14077$as_echo "yes" >&6; }
14078
14079cat >>confdefs.h <<\_ACEOF
34037afe 14080#define HAVE_BLK_QUEUE_IO_OPT 1
e70e591c
BB
14081_ACEOF
14082
14083
34037afe
ED
14084else
14085 $as_echo "$as_me: failed program was:" >&5
14086sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 { $as_echo "$as_me:$LINENO: result: no" >&5
14089$as_echo "no" >&6; }
14090
e70e591c
BB
14091
14092
14093fi
14094
14095 rm -Rf build
14096
14097
b9c59ec8 14098 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14099
14100
34037afe
ED
14101 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14102$as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
b9c59ec8
PS
14103 tmp_flags="$EXTRA_KCFLAGS"
14104 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14105
14106
14107cat confdefs.h - <<_ACEOF >conftest.c
14108/* confdefs.h. */
14109_ACEOF
14110cat confdefs.h >>conftest.$ac_ext
14111cat >>conftest.$ac_ext <<_ACEOF
14112/* end confdefs.h. */
14113
14114
14115 #include <linux/blkdev.h>
14116
14117int
14118main (void)
14119{
14120
34037afe
ED
14121 struct request_queue *q = NULL;
14122 (void) blk_queue_nonrot(q);
e70e591c
BB
14123
14124 ;
14125 return 0;
14126}
14127
14128_ACEOF
14129
14130
14131 rm -Rf build && mkdir -p build
14132 echo "obj-m := conftest.o" >build/Makefile
14133 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144
14145 { $as_echo "$as_me:$LINENO: result: yes" >&5
14146$as_echo "yes" >&6; }
14147
14148cat >>confdefs.h <<\_ACEOF
34037afe 14149#define HAVE_BLK_QUEUE_NONROT 1
e70e591c
BB
14150_ACEOF
14151
14152
14153else
14154 $as_echo "$as_me: failed program was:" >&5
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157 { $as_echo "$as_me:$LINENO: result: no" >&5
14158$as_echo "no" >&6; }
14159
14160
14161
30930fba
ED
14162fi
14163
14164 rm -Rf build
14165
14166
14167 EXTRA_KCFLAGS="$tmp_flags"
14168
14169
14170 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14171$as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14172 tmp_flags="$EXTRA_KCFLAGS"
14173 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14174
14175
14176cat confdefs.h - <<_ACEOF >conftest.c
14177/* confdefs.h. */
14178_ACEOF
14179cat confdefs.h >>conftest.$ac_ext
14180cat >>conftest.$ac_ext <<_ACEOF
14181/* end confdefs.h. */
14182
14183
14184 #include <linux/blkdev.h>
14185
14186int
14187main (void)
14188{
14189
14190 struct request_queue *q = NULL;
14191 (void) blk_queue_discard(q);
14192
14193 ;
14194 return 0;
14195}
14196
14197_ACEOF
14198
14199
14200 rm -Rf build && mkdir -p build
14201 echo "obj-m := conftest.o" >build/Makefile
14202 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213
14214 { $as_echo "$as_me:$LINENO: result: yes" >&5
14215$as_echo "yes" >&6; }
14216
14217cat >>confdefs.h <<\_ACEOF
14218#define HAVE_BLK_QUEUE_DISCARD 1
14219_ACEOF
14220
14221
14222else
14223 $as_echo "$as_me: failed program was:" >&5
14224sed 's/^/| /' conftest.$ac_ext >&5
14225
14226 { $as_echo "$as_me:$LINENO: result: no" >&5
14227$as_echo "no" >&6; }
14228
14229
14230
e70e591c
BB
14231fi
14232
14233 rm -Rf build
14234
14235
b9c59ec8 14236 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14237
14238
34037afe
ED
14239 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14240$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
b9c59ec8
PS
14241 tmp_flags="$EXTRA_KCFLAGS"
14242 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14243
14244
14245cat confdefs.h - <<_ACEOF >conftest.c
14246/* confdefs.h. */
14247_ACEOF
14248cat confdefs.h >>conftest.$ac_ext
14249cat >>conftest.$ac_ext <<_ACEOF
14250/* end confdefs.h. */
14251
14252
14253 #include <linux/blkdev.h>
14254
14255int
14256main (void)
14257{
14258
34037afe
ED
14259 struct request_queue *q = NULL;
14260 (void) blk_fetch_request(q);
e70e591c
BB
14261
14262 ;
14263 return 0;
14264}
14265
14266_ACEOF
14267
14268
14269 rm -Rf build && mkdir -p build
14270 echo "obj-m := conftest.o" >build/Makefile
14271 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14274 ac_status=$?
14275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282
14283 { $as_echo "$as_me:$LINENO: result: yes" >&5
14284$as_echo "yes" >&6; }
14285
14286cat >>confdefs.h <<\_ACEOF
34037afe 14287#define HAVE_BLK_FETCH_REQUEST 1
e70e591c
BB
14288_ACEOF
14289
14290
14291else
14292 $as_echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295 { $as_echo "$as_me:$LINENO: result: no" >&5
14296$as_echo "no" >&6; }
14297
14298
14299
14300fi
14301
14302 rm -Rf build
14303
14304
b9c59ec8 14305 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14306
14307
34037afe
ED
14308 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14309$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
b9c59ec8
PS
14310 tmp_flags="$EXTRA_KCFLAGS"
14311 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14312
14313
14314cat confdefs.h - <<_ACEOF >conftest.c
14315/* confdefs.h. */
14316_ACEOF
14317cat confdefs.h >>conftest.$ac_ext
14318cat >>conftest.$ac_ext <<_ACEOF
14319/* end confdefs.h. */
14320
14321
14322 #include <linux/blkdev.h>
14323
14324int
14325main (void)
14326{
14327
34037afe
ED
14328 struct request_queue *q = NULL;
14329 struct request *req = NULL;
14330 blk_requeue_request(q, req);
e70e591c
BB
14331
14332 ;
14333 return 0;
14334}
14335
14336_ACEOF
14337
14338
14339 rm -Rf build && mkdir -p build
14340 echo "obj-m := conftest.o" >build/Makefile
14341 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352
14353 { $as_echo "$as_me:$LINENO: result: yes" >&5
14354$as_echo "yes" >&6; }
14355
14356cat >>confdefs.h <<\_ACEOF
34037afe 14357#define HAVE_BLK_REQUEUE_REQUEST 1
e70e591c
BB
14358_ACEOF
14359
14360
14361else
14362 $as_echo "$as_me: failed program was:" >&5
14363sed 's/^/| /' conftest.$ac_ext >&5
14364
14365 { $as_echo "$as_me:$LINENO: result: no" >&5
14366$as_echo "no" >&6; }
14367
14368
14369
14370fi
14371
14372 rm -Rf build
14373
14374
b9c59ec8 14375 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14376
14377
34037afe
ED
14378 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14379$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
b9c59ec8
PS
14380 tmp_flags="$EXTRA_KCFLAGS"
14381 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14382
14383
14384cat confdefs.h - <<_ACEOF >conftest.c
14385/* confdefs.h. */
14386_ACEOF
14387cat confdefs.h >>conftest.$ac_ext
14388cat >>conftest.$ac_ext <<_ACEOF
14389/* end confdefs.h. */
14390
14391
14392 #include <linux/blkdev.h>
14393
14394int
14395main (void)
14396{
14397
14398 struct request *req = NULL;
34037afe 14399 (void) blk_rq_bytes(req);
e70e591c
BB
14400
14401 ;
14402 return 0;
14403}
14404
14405_ACEOF
14406
14407
14408 rm -Rf build && mkdir -p build
14409 echo "obj-m := conftest.o" >build/Makefile
14410 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412 (eval $ac_try) 2>&5
14413 ac_status=$?
14414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14418 ac_status=$?
14419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421
14422 { $as_echo "$as_me:$LINENO: result: yes" >&5
14423$as_echo "yes" >&6; }
14424
14425cat >>confdefs.h <<\_ACEOF
34037afe 14426#define HAVE_BLK_RQ_BYTES 1
e70e591c
BB
14427_ACEOF
14428
14429
14430else
14431 $as_echo "$as_me: failed program was:" >&5
14432sed 's/^/| /' conftest.$ac_ext >&5
14433
14434 { $as_echo "$as_me:$LINENO: result: no" >&5
14435$as_echo "no" >&6; }
14436
14437
14438
14439fi
14440
14441 rm -Rf build
14442
14443
e70e591c 14444
34037afe
ED
14445 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14446$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
e70e591c
BB
14447
14448
14449cat confdefs.h - <<_ACEOF >conftest.c
14450/* confdefs.h. */
14451_ACEOF
14452cat confdefs.h >>conftest.$ac_ext
14453cat >>conftest.$ac_ext <<_ACEOF
14454/* end confdefs.h. */
14455
14456
34037afe 14457 #include <linux/module.h>
e70e591c
BB
14458 #include <linux/blkdev.h>
14459
34037afe
ED
14460 MODULE_LICENSE("CDDL");
14461
e70e591c
BB
14462int
14463main (void)
14464{
14465
e70e591c 14466 struct request *req = NULL;
34037afe 14467 (void) blk_rq_bytes(req);
e70e591c
BB
14468
14469 ;
14470 return 0;
14471}
14472
14473_ACEOF
14474
14475
14476 rm -Rf build && mkdir -p build
14477 echo "obj-m := conftest.o" >build/Makefile
14478 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14481 ac_status=$?
14482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14486 ac_status=$?
14487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489
34037afe
ED
14490 { $as_echo "$as_me:$LINENO: result: no" >&5
14491$as_echo "no" >&6; }
14492
14493else
14494 $as_echo "$as_me: failed program was:" >&5
14495sed 's/^/| /' conftest.$ac_ext >&5
14496
e70e591c
BB
14497 { $as_echo "$as_me:$LINENO: result: yes" >&5
14498$as_echo "yes" >&6; }
14499
14500cat >>confdefs.h <<\_ACEOF
34037afe 14501#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
e70e591c
BB
14502_ACEOF
14503
14504
e70e591c
BB
14505
14506
777d4af8
BB
14507fi
14508
14509 rm -Rf build
14510
14511
b9c59ec8 14512 EXTRA_KCFLAGS="$tmp_flags"
777d4af8 14513
34037afe
ED
14514
14515 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14516$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14517 tmp_flags="$EXTRA_KCFLAGS"
14518 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
777d4af8
BB
14519
14520
14521cat confdefs.h - <<_ACEOF >conftest.c
14522/* confdefs.h. */
14523_ACEOF
14524cat confdefs.h >>conftest.$ac_ext
14525cat >>conftest.$ac_ext <<_ACEOF
14526/* end confdefs.h. */
14527
14528
34037afe 14529 #include <linux/blkdev.h>
777d4af8
BB
14530
14531int
14532main (void)
14533{
14534
34037afe
ED
14535 struct request *req = NULL;
14536 (void) blk_rq_pos(req);
777d4af8
BB
14537
14538 ;
14539 return 0;
14540}
14541
14542_ACEOF
14543
14544
14545 rm -Rf build && mkdir -p build
14546 echo "obj-m := conftest.o" >build/Makefile
14547 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549 (eval $ac_try) 2>&5
14550 ac_status=$?
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14555 ac_status=$?
14556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558
14559 { $as_echo "$as_me:$LINENO: result: yes" >&5
14560$as_echo "yes" >&6; }
14561
14562cat >>confdefs.h <<\_ACEOF
34037afe 14563#define HAVE_BLK_RQ_POS 1
777d4af8
BB
14564_ACEOF
14565
14566
14567else
14568 $as_echo "$as_me: failed program was:" >&5
14569sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 { $as_echo "$as_me:$LINENO: result: no" >&5
14572$as_echo "no" >&6; }
14573
14574
14575
e70e591c
BB
14576fi
14577
14578 rm -Rf build
14579
14580
34037afe 14581 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14582
14583
34037afe
ED
14584 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14585$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14586 tmp_flags="$EXTRA_KCFLAGS"
14587 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
f9637c6c
BB
14588
14589
14590cat confdefs.h - <<_ACEOF >conftest.c
14591/* confdefs.h. */
14592_ACEOF
14593cat confdefs.h >>conftest.$ac_ext
14594cat >>conftest.$ac_ext <<_ACEOF
14595/* end confdefs.h. */
14596
14597
34037afe 14598 #include <linux/blkdev.h>
f9637c6c
BB
14599
14600int
14601main (void)
14602{
14603
34037afe
ED
14604 struct request *req = NULL;
14605 (void) blk_rq_sectors(req);
f9637c6c
BB
14606
14607 ;
14608 return 0;
14609}
14610
14611_ACEOF
14612
14613
14614 rm -Rf build && mkdir -p build
14615 echo "obj-m := conftest.o" >build/Makefile
14616 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618 (eval $ac_try) 2>&5
14619 ac_status=$?
14620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627
14628 { $as_echo "$as_me:$LINENO: result: yes" >&5
14629$as_echo "yes" >&6; }
14630
14631cat >>confdefs.h <<\_ACEOF
34037afe 14632#define HAVE_BLK_RQ_SECTORS 1
f9637c6c
BB
14633_ACEOF
14634
14635
14636else
14637 $as_echo "$as_me: failed program was:" >&5
14638sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 { $as_echo "$as_me:$LINENO: result: no" >&5
14641$as_echo "no" >&6; }
14642
14643
14644
14645fi
14646
14647 rm -Rf build
14648
14649
34037afe 14650 EXTRA_KCFLAGS="$tmp_flags"
f9637c6c
BB
14651
14652
34037afe
ED
14653 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14654$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14655 tmp_flags="$EXTRA_KCFLAGS"
14656 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
f9637c6c
BB
14657
14658
14659cat confdefs.h - <<_ACEOF >conftest.c
14660/* confdefs.h. */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h. */
14665
14666
34037afe 14667 #include <linux/blkdev.h>
f9637c6c
BB
14668
14669int
14670main (void)
14671{
14672
34037afe
ED
14673 struct gendisk *disk = NULL;
14674 (void) get_disk_ro(disk);
f9637c6c
BB
14675
14676 ;
14677 return 0;
14678}
14679
14680_ACEOF
14681
14682
14683 rm -Rf build && mkdir -p build
14684 echo "obj-m := conftest.o" >build/Makefile
14685 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14688 ac_status=$?
14689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696
14697 { $as_echo "$as_me:$LINENO: result: yes" >&5
14698$as_echo "yes" >&6; }
14699
14700cat >>confdefs.h <<\_ACEOF
34037afe 14701#define HAVE_GET_DISK_RO 1
f9637c6c
BB
14702_ACEOF
14703
14704
14705else
14706 $as_echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 { $as_echo "$as_me:$LINENO: result: no" >&5
14710$as_echo "no" >&6; }
14711
14712
14713
14714fi
14715
14716 rm -Rf build
14717
14718
34037afe 14719 EXTRA_KCFLAGS="$tmp_flags"
f9637c6c
BB
14720
14721
34037afe
ED
14722 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14723$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14724 tmp_flags="$EXTRA_KCFLAGS"
14725 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
47621f3d
BB
14726
14727
14728cat confdefs.h - <<_ACEOF >conftest.c
14729/* confdefs.h. */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h. */
14734
14735
34037afe 14736 #include <linux/blkdev.h>
47621f3d
BB
14737
14738int
14739main (void)
14740{
14741
34037afe
ED
14742 struct request *req = NULL;
14743 (void) rq_is_sync(req);
47621f3d
BB
14744
14745 ;
14746 return 0;
14747}
14748
14749_ACEOF
14750
14751
14752 rm -Rf build && mkdir -p build
14753 echo "obj-m := conftest.o" >build/Makefile
14754 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14757 ac_status=$?
14758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
14765
14766 { $as_echo "$as_me:$LINENO: result: yes" >&5
14767$as_echo "yes" >&6; }
14768
14769cat >>confdefs.h <<\_ACEOF
34037afe 14770#define HAVE_RQ_IS_SYNC 1
47621f3d
BB
14771_ACEOF
14772
14773
14774else
14775 $as_echo "$as_me: failed program was:" >&5
14776sed 's/^/| /' conftest.$ac_ext >&5
14777
14778 { $as_echo "$as_me:$LINENO: result: no" >&5
14779$as_echo "no" >&6; }
14780
14781
14782
14783fi
14784
14785 rm -Rf build
14786
14787
34037afe 14788 EXTRA_KCFLAGS="$tmp_flags"
47621f3d
BB
14789
14790
34037afe
ED
14791 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14792$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14793 tmp_flags="$EXTRA_KCFLAGS"
14794 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
7268e1be
BB
14795
14796
14797cat confdefs.h - <<_ACEOF >conftest.c
14798/* confdefs.h. */
14799_ACEOF
14800cat confdefs.h >>conftest.$ac_ext
14801cat >>conftest.$ac_ext <<_ACEOF
14802/* end confdefs.h. */
14803
14804
34037afe 14805 #include <linux/blkdev.h>
7268e1be
BB
14806
14807int
14808main (void)
14809{
14810
34037afe
ED
14811 struct bio_vec *bv;
14812 struct req_iterator iter;
14813 struct request *req = NULL;
14814 rq_for_each_segment(bv, req, iter) { }
7268e1be
BB
14815
14816 ;
14817 return 0;
14818}
14819
14820_ACEOF
14821
14822
14823 rm -Rf build && mkdir -p build
14824 echo "obj-m := conftest.o" >build/Makefile
14825 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14833 ac_status=$?
14834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836
34037afe
ED
14837 { $as_echo "$as_me:$LINENO: result: yes" >&5
14838$as_echo "yes" >&6; }
7268e1be
BB
14839
14840cat >>confdefs.h <<\_ACEOF
34037afe 14841#define HAVE_RQ_FOR_EACH_SEGMENT 1
adcd70bd
BB
14842_ACEOF
14843
14844
14845else
14846 $as_echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
34037afe
ED
14849 { $as_echo "$as_me:$LINENO: result: no" >&5
14850$as_echo "no" >&6; }
adcd70bd
BB
14851
14852
14853
14854fi
14855
14856 rm -Rf build
14857
14858
34037afe 14859 EXTRA_KCFLAGS="$tmp_flags"
adcd70bd 14860
34037afe
ED
14861 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14862$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
adcd70bd
BB
14863
14864
14865cat confdefs.h - <<_ACEOF >conftest.c
14866/* confdefs.h. */
14867_ACEOF
14868cat confdefs.h >>conftest.$ac_ext
14869cat >>conftest.$ac_ext <<_ACEOF
14870/* end confdefs.h. */
14871
14872
14873 #include <linux/fs.h>
34037afe
ED
14874 #include <linux/xattr.h>
14875
14876 const struct xattr_handler xattr_test_handler = {
14877 .prefix = "test",
14878 .get = NULL,
14879 .set = NULL,
14880 };
14881
14882 const struct xattr_handler *xattr_handlers[] = {
14883 &xattr_test_handler,
14884 };
adcd70bd
BB
14885
14886int
14887main (void)
14888{
14889
34037afe 14890 struct super_block sb __attribute__ ((unused));
adcd70bd 14891
34037afe 14892 sb.s_xattr = xattr_handlers;
adcd70bd
BB
14893
14894 ;
14895 return 0;
14896}
14897
14898_ACEOF
14899
14900
14901 rm -Rf build && mkdir -p build
14902 echo "obj-m := conftest.o" >build/Makefile
14903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914
34037afe
ED
14915 { $as_echo "$as_me:$LINENO: result: yes" >&5
14916$as_echo "yes" >&6; }
adcd70bd
BB
14917
14918cat >>confdefs.h <<\_ACEOF
34037afe 14919#define HAVE_CONST_XATTR_HANDLER 1
7268e1be
BB
14920_ACEOF
14921
14922
14923else
14924 $as_echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
34037afe
ED
14927 { $as_echo "$as_me:$LINENO: result: no" >&5
14928$as_echo "no" >&6; }
7268e1be
BB
14929
14930
14931
14932fi
14933
14934 rm -Rf build
14935
14936
14937
14938
34037afe
ED
14939 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14940$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
adcd70bd
BB
14941
14942
14943cat confdefs.h - <<_ACEOF >conftest.c
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949
14950
34037afe 14951 #include <linux/xattr.h>
adcd70bd
BB
14952
14953int
14954main (void)
14955{
14956
34037afe
ED
14957 int (*get)(struct dentry *dentry, const char *name,
14958 void *buffer, size_t size, int handler_flags) = NULL;
14959 struct xattr_handler xops __attribute__ ((unused));
adcd70bd 14960
34037afe 14961 xops.get = get;
adcd70bd
BB
14962
14963 ;
14964 return 0;
14965}
14966
14967_ACEOF
14968
14969
14970 rm -Rf build && mkdir -p build
14971 echo "obj-m := conftest.o" >build/Makefile
14972 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983
34037afe
ED
14984 { $as_echo "$as_me:$LINENO: result: yes" >&5
14985$as_echo "yes" >&6; }
adcd70bd
BB
14986
14987cat >>confdefs.h <<\_ACEOF
34037afe 14988#define HAVE_DENTRY_XATTR_GET 1
adcd70bd
BB
14989_ACEOF
14990
14991
14992else
14993 $as_echo "$as_me: failed program was:" >&5
14994sed 's/^/| /' conftest.$ac_ext >&5
14995
34037afe
ED
14996 { $as_echo "$as_me:$LINENO: result: no" >&5
14997$as_echo "no" >&6; }
adcd70bd
BB
14998
14999
15000
15001fi
15002
15003 rm -Rf build
15004
15005
15006
15007
34037afe
ED
15008 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15009$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
2c395def
BB
15010
15011
15012cat confdefs.h - <<_ACEOF >conftest.c
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
15018
15019
34037afe 15020 #include <linux/xattr.h>
2c395def
BB
15021
15022int
15023main (void)
15024{
15025
34037afe
ED
15026 int (*set)(struct dentry *dentry, const char *name,
15027 const void *buffer, size_t size, int flags,
15028 int handler_flags) = NULL;
15029 struct xattr_handler xops __attribute__ ((unused));
15030
15031 xops.set = set;
2c395def
BB
15032
15033 ;
15034 return 0;
15035}
15036
15037_ACEOF
15038
15039
15040 rm -Rf build && mkdir -p build
15041 echo "obj-m := conftest.o" >build/Makefile
15042 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053
15054 { $as_echo "$as_me:$LINENO: result: yes" >&5
15055$as_echo "yes" >&6; }
15056
15057cat >>confdefs.h <<\_ACEOF
34037afe 15058#define HAVE_DENTRY_XATTR_SET 1
2c395def
BB
15059_ACEOF
15060
15061
15062else
15063 $as_echo "$as_me: failed program was:" >&5
15064sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 { $as_echo "$as_me:$LINENO: result: no" >&5
15067$as_echo "no" >&6; }
15068
15069
15070
15071fi
15072
15073 rm -Rf build
15074
15075
15076
15077
34037afe
ED
15078 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15079$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15080
ab26409d
BB
15081
15082
15083cat confdefs.h - <<_ACEOF >conftest.c
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
15089
15090
15091 #include <linux/fs.h>
15092
15093int
15094main (void)
15095{
15096
34037afe
ED
15097 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
15098 struct super_operations sops __attribute__ ((unused));
15099
15100 sops.show_options = show_options;
ab26409d
BB
15101
15102 ;
15103 return 0;
15104}
15105
15106_ACEOF
15107
15108
15109 rm -Rf build && mkdir -p build
15110 echo "obj-m := conftest.o" >build/Makefile
15111 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15114 ac_status=$?
15115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122
15123 { $as_echo "$as_me:$LINENO: result: yes" >&5
15124$as_echo "yes" >&6; }
15125
15126cat >>confdefs.h <<\_ACEOF
34037afe 15127#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
ab26409d
BB
15128_ACEOF
15129
15130
15131else
15132 $as_echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 { $as_echo "$as_me:$LINENO: result: no" >&5
15136$as_echo "no" >&6; }
15137
15138
15139
15140fi
15141
15142 rm -Rf build
15143
15144
15145
15146
34037afe
ED
15147 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15148$as_echo_n "checking whether fops->fsync() wants... " >&6; }
15149
ab26409d
BB
15150
15151
15152cat confdefs.h - <<_ACEOF >conftest.c
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h. */
15158
15159
15160 #include <linux/fs.h>
15161
15162int
15163main (void)
15164{
15165
34037afe
ED
15166 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15167 struct file_operations fops __attribute__ ((unused));
15168
15169 fops.fsync = fsync;
ab26409d
BB
15170
15171 ;
15172 return 0;
15173}
15174
15175_ACEOF
15176
15177
15178 rm -Rf build && mkdir -p build
15179 echo "obj-m := conftest.o" >build/Makefile
15180 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15188 ac_status=$?
15189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191
34037afe
ED
15192 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15193$as_echo "dentry" >&6; }
ab26409d
BB
15194
15195cat >>confdefs.h <<\_ACEOF
34037afe 15196#define HAVE_FSYNC_WITH_DENTRY 1
ab26409d
BB
15197_ACEOF
15198
15199
15200else
15201 $as_echo "$as_me: failed program was:" >&5
15202sed 's/^/| /' conftest.$ac_ext >&5
15203
ab26409d
BB
15204
15205
15206
15207fi
15208
15209 rm -Rf build
15210
15211
15212
15213
8366cd6a 15214
8366cd6a 15215
34037afe
ED
15216cat confdefs.h - <<_ACEOF >conftest.c
15217/* confdefs.h. */
15218_ACEOF
15219cat confdefs.h >>conftest.$ac_ext
15220cat >>conftest.$ac_ext <<_ACEOF
15221/* end confdefs.h. */
8366cd6a 15222
8366cd6a 15223
34037afe 15224 #include <linux/fs.h>
8366cd6a 15225
34037afe
ED
15226int
15227main (void)
15228{
bdf4328b 15229
34037afe
ED
15230 int (*fsync) (struct file *, int) = NULL;
15231 struct file_operations fops __attribute__ ((unused));
8366cd6a 15232
34037afe 15233 fops.fsync = fsync;
8366cd6a 15234
34037afe
ED
15235 ;
15236 return 0;
15237}
bdf4328b 15238
bdf4328b
BB
15239_ACEOF
15240
8366cd6a 15241
34037afe
ED
15242 rm -Rf build && mkdir -p build
15243 echo "obj-m := conftest.o" >build/Makefile
15244 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255
15256 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15257$as_echo "no dentry" >&6; }
15258
15259cat >>confdefs.h <<\_ACEOF
15260#define HAVE_FSYNC_WITHOUT_DENTRY 1
15261_ACEOF
8366cd6a
PS
15262
15263
15264else
34037afe
ED
15265 $as_echo "$as_me: failed program was:" >&5
15266sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 15267
bdf4328b 15268
bdf4328b 15269
8366cd6a
PS
15270
15271fi
15272
34037afe 15273 rm -Rf build
bdf4328b
BB
15274
15275
15276
8366cd6a 15277
8366cd6a 15278
8366cd6a 15279
34037afe
ED
15280cat confdefs.h - <<_ACEOF >conftest.c
15281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
8366cd6a 15286
055656d4 15287
34037afe 15288 #include <linux/fs.h>
8366cd6a 15289
34037afe
ED
15290int
15291main (void)
15292{
8366cd6a 15293
34037afe
ED
15294 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15295 struct file_operations fops __attribute__ ((unused));
055656d4 15296
34037afe 15297 fops.fsync = fsync;
055656d4 15298
34037afe
ED
15299 ;
15300 return 0;
15301}
8366cd6a 15302
34037afe 15303_ACEOF
8366cd6a
PS
15304
15305
34037afe
ED
15306 rm -Rf build && mkdir -p build
15307 echo "obj-m := conftest.o" >build/Makefile
15308 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
8366cd6a 15319
34037afe
ED
15320 { $as_echo "$as_me:$LINENO: result: range" >&5
15321$as_echo "range" >&6; }
055656d4
GB
15322
15323cat >>confdefs.h <<\_ACEOF
34037afe 15324#define HAVE_FSYNC_RANGE 1
055656d4
GB
15325_ACEOF
15326
8366cd6a 15327
34037afe
ED
15328else
15329 $as_echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
055656d4
GB
15331
15332
15333
8366cd6a 15334
34037afe 15335fi
8366cd6a 15336
34037afe 15337 rm -Rf build
8366cd6a 15338
8366cd6a 15339
8366cd6a 15340
df554c14 15341
8366cd6a 15342
34037afe
ED
15343 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
15344$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
8366cd6a 15345
df554c14 15346
34037afe
ED
15347cat confdefs.h - <<_ACEOF >conftest.c
15348/* confdefs.h. */
df554c14 15349_ACEOF
34037afe
ED
15350cat confdefs.h >>conftest.$ac_ext
15351cat >>conftest.$ac_ext <<_ACEOF
15352/* end confdefs.h. */
df554c14 15353
8366cd6a 15354
34037afe 15355 #include <linux/fs.h>
8366cd6a 15356
34037afe
ED
15357int
15358main (void)
15359{
8366cd6a 15360
34037afe
ED
15361 void (*evict_inode) (struct inode *) = NULL;
15362 struct super_operations sops __attribute__ ((unused)) = {
15363 .evict_inode = evict_inode,
15364 };
8366cd6a 15365
34037afe
ED
15366 ;
15367 return 0;
15368}
df554c14 15369
df554c14
BB
15370_ACEOF
15371
8366cd6a 15372
34037afe
ED
15373 rm -Rf build && mkdir -p build
15374 echo "obj-m := conftest.o" >build/Makefile
15375 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15378 ac_status=$?
15379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
8366cd6a 15386
34037afe 15387 { $as_echo "$as_me:$LINENO: result: yes" >&5
b3129792
PJ
15388$as_echo "yes" >&6; }
15389
15390cat >>confdefs.h <<\_ACEOF
34037afe 15391#define HAVE_EVICT_INODE 1
b3129792
PJ
15392_ACEOF
15393
8366cd6a 15394
8366cd6a 15395else
34037afe
ED
15396 $as_echo "$as_me: failed program was:" >&5
15397sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 15398
34037afe
ED
15399 { $as_echo "$as_me:$LINENO: result: no" >&5
15400$as_echo "no" >&6; }
b3129792 15401
b3129792 15402
8366cd6a
PS
15403
15404fi
15405
34037afe 15406 rm -Rf build
b3129792
PJ
15407
15408
15409
34037afe
ED
15410
15411 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
15412$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
5c03efc3
BB
15413
15414
15415cat confdefs.h - <<_ACEOF >conftest.c
15416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h. */
15421
15422
34037afe 15423 #include <linux/fs.h>
5c03efc3
BB
15424
15425int
15426main (void)
15427{
15428
34037afe
ED
15429 int (*nr_cached_objects)(struct super_block *)
15430 __attribute__ ((unused)) = NULL;
15431 struct super_operations sops __attribute__ ((unused)) = {
15432 .nr_cached_objects = nr_cached_objects,
15433 };
5c03efc3
BB
15434
15435 ;
15436 return 0;
15437}
15438
15439_ACEOF
15440
15441
15442 rm -Rf build && mkdir -p build
15443 echo "obj-m := conftest.o" >build/Makefile
15444 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15452 ac_status=$?
15453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15455
15456 { $as_echo "$as_me:$LINENO: result: yes" >&5
15457$as_echo "yes" >&6; }
15458
15459cat >>confdefs.h <<\_ACEOF
34037afe 15460#define HAVE_NR_CACHED_OBJECTS 1
5c03efc3
BB
15461_ACEOF
15462
15463
15464else
15465 $as_echo "$as_me: failed program was:" >&5
15466sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 { $as_echo "$as_me:$LINENO: result: no" >&5
15469$as_echo "no" >&6; }
15470
15471
15472
166dd49d
BB
15473fi
15474
15475 rm -Rf build
15476
15477
166dd49d
BB
15478
15479
34037afe
ED
15480 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15481$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
166dd49d
BB
15482
15483
15484cat confdefs.h - <<_ACEOF >conftest.c
15485/* confdefs.h. */
15486_ACEOF
15487cat confdefs.h >>conftest.$ac_ext
15488cat >>conftest.$ac_ext <<_ACEOF
15489/* end confdefs.h. */
15490
15491
34037afe 15492 #include <linux/fs.h>
166dd49d
BB
15493
15494int
15495main (void)
15496{
15497
34037afe
ED
15498 void (*free_cached_objects)(struct super_block *, int)
15499 __attribute__ ((unused)) = NULL;
15500 struct super_operations sops __attribute__ ((unused)) = {
15501 .free_cached_objects = free_cached_objects,
15502 };
166dd49d
BB
15503
15504 ;
15505 return 0;
15506}
15507
15508_ACEOF
15509
15510
15511 rm -Rf build && mkdir -p build
15512 echo "obj-m := conftest.o" >build/Makefile
15513 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515 (eval $ac_try) 2>&5
15516 ac_status=$?
15517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520 (eval $ac_try) 2>&5
15521 ac_status=$?
15522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524
15525 { $as_echo "$as_me:$LINENO: result: yes" >&5
15526$as_echo "yes" >&6; }
15527
15528cat >>confdefs.h <<\_ACEOF
34037afe 15529#define HAVE_FREE_CACHED_OBJECTS 1
166dd49d
BB
15530_ACEOF
15531
15532
15533else
15534 $as_echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 { $as_echo "$as_me:$LINENO: result: no" >&5
15538$as_echo "no" >&6; }
15539
15540
15541
5c03efc3
BB
15542fi
15543
15544 rm -Rf build
15545
15546
5c03efc3
BB
15547
15548
cb2d1901
ED
15549
15550 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
15551$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15552
15553
15554cat confdefs.h - <<_ACEOF >conftest.c
15555/* confdefs.h. */
15556_ACEOF
15557cat confdefs.h >>conftest.$ac_ext
15558cat >>conftest.$ac_ext <<_ACEOF
15559/* end confdefs.h. */
15560
15561
15562 #include <linux/fs.h>
15563
15564int
15565main (void)
15566{
15567
15568 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15569 struct file_operations fops __attribute__ ((unused)) = {
15570 .fallocate = fallocate,
15571 };
15572
15573 ;
15574 return 0;
15575}
15576
15577_ACEOF
15578
15579
15580 rm -Rf build && mkdir -p build
15581 echo "obj-m := conftest.o" >build/Makefile
15582 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593
15594 { $as_echo "$as_me:$LINENO: result: yes" >&5
15595$as_echo "yes" >&6; }
15596
15597cat >>confdefs.h <<\_ACEOF
15598#define HAVE_FILE_FALLOCATE 1
15599_ACEOF
15600
15601
15602else
15603 $as_echo "$as_me: failed program was:" >&5
15604sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 { $as_echo "$as_me:$LINENO: result: no" >&5
15607$as_echo "no" >&6; }
15608
15609
15610
15611fi
15612
15613 rm -Rf build
15614
15615
15616
15617
15618 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
15619$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15620
15621
15622cat confdefs.h - <<_ACEOF >conftest.c
15623/* confdefs.h. */
15624_ACEOF
15625cat confdefs.h >>conftest.$ac_ext
15626cat >>conftest.$ac_ext <<_ACEOF
15627/* end confdefs.h. */
15628
15629
15630 #include <linux/fs.h>
15631
15632int
15633main (void)
15634{
15635
15636 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
15637 struct inode_operations fops __attribute__ ((unused)) = {
15638 .fallocate = fallocate,
15639 };
15640
15641 ;
15642 return 0;
15643}
15644
15645_ACEOF
15646
15647
15648 rm -Rf build && mkdir -p build
15649 echo "obj-m := conftest.o" >build/Makefile
15650 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; }; then
15661
15662 { $as_echo "$as_me:$LINENO: result: yes" >&5
15663$as_echo "yes" >&6; }
15664
15665cat >>confdefs.h <<\_ACEOF
15666#define HAVE_INODE_FALLOCATE 1
15667_ACEOF
15668
15669
15670else
15671 $as_echo "$as_me: failed program was:" >&5
15672sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 { $as_echo "$as_me:$LINENO: result: no" >&5
15675$as_echo "no" >&6; }
15676
15677
15678
15679fi
15680
15681 rm -Rf build
15682
15683
15684
15685
15686
ebe7e575
BB
15687 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
15688$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
15689
15690
15691cat confdefs.h - <<_ACEOF >conftest.c
15692/* confdefs.h. */
15693_ACEOF
15694cat confdefs.h >>conftest.$ac_ext
15695cat >>conftest.$ac_ext <<_ACEOF
15696/* end confdefs.h. */
15697
15698
15699 #include <linux/dcache.h>
15700
15701int
15702main (void)
15703{
15704
15705 struct vfsmount *(*d_automount) (struct path *) = NULL;
15706 struct dentry_operations dops __attribute__ ((unused)) = {
15707 .d_automount = d_automount,
15708 };
15709
15710 ;
15711 return 0;
15712}
15713
15714_ACEOF
15715
15716
15717 rm -Rf build && mkdir -p build
15718 echo "obj-m := conftest.o" >build/Makefile
15719 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15722 ac_status=$?
15723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; }; then
15730
15731 { $as_echo "$as_me:$LINENO: result: yes" >&5
15732$as_echo "yes" >&6; }
15733
15734cat >>confdefs.h <<\_ACEOF
15735#define HAVE_AUTOMOUNT 1
15736_ACEOF
15737
15738
15739else
15740 $as_echo "$as_me: failed program was:" >&5
15741sed 's/^/| /' conftest.$ac_ext >&5
15742
15743 { $as_echo "$as_me:$LINENO: result: no" >&5
15744$as_echo "no" >&6; }
15745
15746
15747
15748fi
15749
15750 rm -Rf build
15751
15752
15753
15754
34037afe
ED
15755 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
15756$as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
15757 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
2cf7f52b
BB
15758 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15759 rc=$?
15760 if test $rc -ne 0; then
8366cd6a 15761
2cf7f52b 15762 export=0
34037afe
ED
15763 for file in fs/inode.c; do
15764 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
2cf7f52b 15765 rc=$?
8366cd6a
PS
15766 if test $rc -eq 0; then
15767
15768 export=1
15769 break;
15770
15771fi
15772
2cf7f52b
BB
15773 done
15774 if test $export -eq 0; then
8366cd6a 15775
2cf7f52b
BB
15776 { $as_echo "$as_me:$LINENO: result: no" >&5
15777$as_echo "no" >&6; }
15778
8366cd6a
PS
15779
15780else
15781
2cf7f52b
BB
15782 { $as_echo "$as_me:$LINENO: result: yes" >&5
15783$as_echo "yes" >&6; }
15784
15785cat >>confdefs.h <<\_ACEOF
34037afe 15786#define HAVE_INSERT_INODE_LOCKED 1
2cf7f52b
BB
15787_ACEOF
15788
8366cd6a
PS
15789
15790fi
15791
15792
15793else
15794
2cf7f52b
BB
15795 { $as_echo "$as_me:$LINENO: result: yes" >&5
15796$as_echo "yes" >&6; }
15797
15798cat >>confdefs.h <<\_ACEOF
34037afe 15799#define HAVE_INSERT_INODE_LOCKED 1
2cf7f52b
BB
15800_ACEOF
15801
8366cd6a
PS
15802
15803fi
15804
2cf7f52b
BB
15805
15806
15807
34037afe
ED
15808 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
15809$as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
15810 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
15811 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15812 rc=$?
15813 if test $rc -ne 0; then
ab26409d 15814
34037afe
ED
15815 export=0
15816 for file in fs/dcache.c; do
15817 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
15818 rc=$?
15819 if test $rc -eq 0; then
ab26409d 15820
34037afe
ED
15821 export=1
15822 break;
ab26409d 15823
34037afe 15824fi
ab26409d 15825
34037afe
ED
15826 done
15827 if test $export -eq 0; then
ab26409d 15828
34037afe
ED
15829 { $as_echo "$as_me:$LINENO: result: no" >&5
15830$as_echo "no" >&6; }
ab26409d
BB
15831
15832
34037afe 15833else
ab26409d 15834
34037afe 15835 { $as_echo "$as_me:$LINENO: result: yes" >&5
ab26409d
BB
15836$as_echo "yes" >&6; }
15837
15838cat >>confdefs.h <<\_ACEOF
34037afe 15839#define HAVE_D_OBTAIN_ALIAS 1
ab26409d
BB
15840_ACEOF
15841
15842
ab26409d
BB
15843fi
15844
76659dc1 15845
34037afe 15846else
76659dc1
BB
15847
15848 { $as_echo "$as_me:$LINENO: result: yes" >&5
15849$as_echo "yes" >&6; }
15850
15851cat >>confdefs.h <<\_ACEOF
34037afe 15852#define HAVE_D_OBTAIN_ALIAS 1
76659dc1
BB
15853_ACEOF
15854
15855
76659dc1
BB
15856fi
15857
76659dc1
BB
15858
15859
15860
34037afe
ED
15861 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
15862$as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
15863 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
5547c2f1
BB
15864 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15865 rc=$?
15866 if test $rc -ne 0; then
15867
15868 export=0
34037afe
ED
15869 for file in fs/block_dev.c; do
15870 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
5547c2f1
BB
15871 rc=$?
15872 if test $rc -eq 0; then
15873
15874 export=1
15875 break;
15876
15877fi
15878
15879 done
15880 if test $export -eq 0; then
15881
15882 { $as_echo "$as_me:$LINENO: result: no" >&5
15883$as_echo "no" >&6; }
15884
15885
15886else
15887
15888 { $as_echo "$as_me:$LINENO: result: yes" >&5
15889$as_echo "yes" >&6; }
15890
15891cat >>confdefs.h <<\_ACEOF
34037afe 15892#define HAVE_CHECK_DISK_SIZE_CHANGE 1
5547c2f1
BB
15893_ACEOF
15894
15895
15896fi
15897
15898
15899else
15900
15901 { $as_echo "$as_me:$LINENO: result: yes" >&5
15902$as_echo "yes" >&6; }
15903
15904cat >>confdefs.h <<\_ACEOF
34037afe 15905#define HAVE_CHECK_DISK_SIZE_CHANGE 1
5547c2f1
BB
15906_ACEOF
15907
15908
15909fi
15910
15911
15912
15913
34037afe
ED
15914 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
15915$as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
15916 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
15917 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15918 rc=$?
15919 if test $rc -ne 0; then
15920
15921 export=0
15922 for file in mm/truncate.c; do
15923 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
15924 rc=$?
15925 if test $rc -eq 0; then
15926
15927 export=1
15928 break;
15929
15930fi
15931
15932 done
15933 if test $export -eq 0; then
15934
15935 { $as_echo "$as_me:$LINENO: result: no" >&5
15936$as_echo "no" >&6; }
15937
15938
15939else
15940
15941 { $as_echo "$as_me:$LINENO: result: yes" >&5
15942$as_echo "yes" >&6; }
15943
15944cat >>confdefs.h <<\_ACEOF
15945#define HAVE_TRUNCATE_SETSIZE 1
15946_ACEOF
15947
15948
15949fi
15950
15951
15952else
15953
15954 { $as_echo "$as_me:$LINENO: result: yes" >&5
15955$as_echo "yes" >&6; }
15956
15957cat >>confdefs.h <<\_ACEOF
15958#define HAVE_TRUNCATE_SETSIZE 1
15959_ACEOF
15960
15961
15962fi
15963
15964
15965
15966
15967 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
15968$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
15969 tmp_flags="$EXTRA_KCFLAGS"
15970 EXTRA_KCFLAGS="-Werror"
28eb9213
DH
15971
15972
15973cat confdefs.h - <<_ACEOF >conftest.c
15974/* confdefs.h. */
15975_ACEOF
15976cat confdefs.h >>conftest.$ac_ext
15977cat >>conftest.$ac_ext <<_ACEOF
15978/* end confdefs.h. */
15979
15980
34037afe 15981 #include <linux/security.h>
28eb9213
DH
15982
15983int
15984main (void)
15985{
15986
34037afe
ED
15987 struct inode *ip __attribute__ ((unused)) = NULL;
15988 struct inode *dip __attribute__ ((unused)) = NULL;
15989 const struct qstr *str __attribute__ ((unused)) = NULL;
15990 char *name __attribute__ ((unused)) = NULL;
15991 void *value __attribute__ ((unused)) = NULL;
15992 size_t len __attribute__ ((unused)) = 0;
15993
15994 security_inode_init_security(ip, dip, str, &name, &value, &len);
28eb9213
DH
15995
15996 ;
15997 return 0;
15998}
15999
16000_ACEOF
16001
16002
16003 rm -Rf build && mkdir -p build
16004 echo "obj-m := conftest.o" >build/Makefile
16005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016
16017 { $as_echo "$as_me:$LINENO: result: yes" >&5
16018$as_echo "yes" >&6; }
16019
16020cat >>confdefs.h <<\_ACEOF
34037afe 16021#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
28eb9213
DH
16022_ACEOF
16023
16024
16025else
16026 $as_echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029 { $as_echo "$as_me:$LINENO: result: no" >&5
16030$as_echo "no" >&6; }
16031
16032
16033
16034fi
16035
16036 rm -Rf build
16037
16038
34037afe 16039 EXTRA_KCFLAGS="$tmp_flags"
28eb9213
DH
16040
16041
34037afe
ED
16042 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
16043$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16044 tmp_flags="$EXTRA_KCFLAGS"
16045 EXTRA_KCFLAGS="-Werror"
8366cd6a 16046
8366cd6a 16047
34037afe
ED
16048cat confdefs.h - <<_ACEOF >conftest.c
16049/* confdefs.h. */
16050_ACEOF
16051cat confdefs.h >>conftest.$ac_ext
16052cat >>conftest.$ac_ext <<_ACEOF
16053/* end confdefs.h. */
8366cd6a 16054
e70e591c 16055
34037afe
ED
16056 #include <linux/security.h>
16057
16058int
16059main (void)
16060{
e70e591c 16061
34037afe
ED
16062 struct inode *ip __attribute__ ((unused)) = NULL;
16063 struct inode *dip __attribute__ ((unused)) = NULL;
16064 const struct qstr *str __attribute__ ((unused)) = NULL;
16065 initxattrs func __attribute__ ((unused)) = NULL;
e70e591c 16066
34037afe 16067 security_inode_init_security(ip, dip, str, func, NULL);
6283f55e 16068
34037afe
ED
16069 ;
16070 return 0;
16071}
6283f55e 16072
34037afe 16073_ACEOF
e70e591c 16074
de0a1c09 16075
34037afe
ED
16076 rm -Rf build && mkdir -p build
16077 echo "obj-m := conftest.o" >build/Makefile
16078 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16081 ac_status=$?
16082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
de0a1c09 16089
34037afe
ED
16090 { $as_echo "$as_me:$LINENO: result: yes" >&5
16091$as_echo "yes" >&6; }
16092
16093cat >>confdefs.h <<\_ACEOF
16094#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
16095_ACEOF
de0a1c09
BB
16096
16097
de0a1c09 16098else
34037afe
ED
16099 $as_echo "$as_me: failed program was:" >&5
16100sed 's/^/| /' conftest.$ac_ext >&5
de0a1c09 16101
34037afe
ED
16102 { $as_echo "$as_me:$LINENO: result: no" >&5
16103$as_echo "no" >&6; }
de0a1c09
BB
16104
16105
16106
34037afe 16107fi
de0a1c09 16108
34037afe 16109 rm -Rf build
de0a1c09 16110
e70e591c 16111
34037afe 16112 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
16113
16114
34037afe
ED
16115 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
16116$as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
16117 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16118 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16119 rc=$?
16120 if test $rc -ne 0; then
e70e591c 16121
34037afe
ED
16122 export=0
16123 for file in fs/super.c; do
16124 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
16125 rc=$?
16126 if test $rc -eq 0; then
e70e591c 16127
34037afe
ED
16128 export=1
16129 break;
e70e591c 16130
e70e591c 16131fi
e70e591c 16132
34037afe
ED
16133 done
16134 if test $export -eq 0; then
16135
16136 { $as_echo "$as_me:$LINENO: result: no" >&5
16137$as_echo "no" >&6; }
16138
e70e591c 16139
e70e591c 16140else
e70e591c 16141
34037afe
ED
16142 { $as_echo "$as_me:$LINENO: result: yes" >&5
16143$as_echo "yes" >&6; }
e70e591c 16144
34037afe
ED
16145cat >>confdefs.h <<\_ACEOF
16146#define HAVE_MOUNT_NODEV 1
e70e591c 16147_ACEOF
34037afe
ED
16148
16149
e70e591c 16150fi
e70e591c
BB
16151
16152
34037afe
ED
16153else
16154
16155 { $as_echo "$as_me:$LINENO: result: yes" >&5
16156$as_echo "yes" >&6; }
e70e591c
BB
16157
16158cat >>confdefs.h <<\_ACEOF
34037afe 16159#define HAVE_MOUNT_NODEV 1
e70e591c
BB
16160_ACEOF
16161
e70e591c 16162
34037afe 16163fi
e70e591c 16164
e70e591c 16165
e70e591c 16166
e70e591c 16167
34037afe
ED
16168 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
16169$as_echo_n "checking whether super_block has s_shrink... " >&6; }
e70e591c 16170
e70e591c 16171
34037afe 16172cat confdefs.h - <<_ACEOF >conftest.c
e70e591c
BB
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
e70e591c 16178
e70e591c 16179
34037afe
ED
16180 #include <linux/fs.h>
16181
16182int
16183main (void)
16184{
16185
16186 int (*shrink)(struct shrinker *, struct shrink_control *sc)
16187 __attribute__ ((unused)) = NULL;
16188 struct super_block sb __attribute__ ((unused)) = {
16189 .s_shrink.shrink = shrink,
16190 .s_shrink.seeks = DEFAULT_SEEKS,
16191 .s_shrink.batch = 0,
16192 };
16193
16194 ;
16195 return 0;
16196}
e70e591c 16197
e70e591c 16198_ACEOF
34037afe
ED
16199
16200
16201 rm -Rf build && mkdir -p build
16202 echo "obj-m := conftest.o" >build/Makefile
16203 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
e70e591c 16206 ac_status=$?
e70e591c 16207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037afe
ED
16208 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214
16215 { $as_echo "$as_me:$LINENO: result: yes" >&5
16216$as_echo "yes" >&6; }
16217
16218cat >>confdefs.h <<\_ACEOF
16219#define HAVE_SHRINK 1
16220_ACEOF
16221
16222
16223
e70e591c
BB
16224else
16225 $as_echo "$as_me: failed program was:" >&5
16226sed 's/^/| /' conftest.$ac_ext >&5
16227
34037afe
ED
16228 { $as_echo "$as_me:$LINENO: result: no" >&5
16229$as_echo "no" >&6; }
e70e591c 16230
e70e591c 16231
e70e591c 16232
e70e591c 16233fi
e70e591c 16234
34037afe 16235 rm -Rf build
e70e591c
BB
16236
16237
16238
16239
34037afe
ED
16240 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
16241$as_echo_n "checking whether super_block has s_bdi... " >&6; }
16242
16243
16244cat confdefs.h - <<_ACEOF >conftest.c
e70e591c
BB
16245/* confdefs.h. */
16246_ACEOF
16247cat confdefs.h >>conftest.$ac_ext
16248cat >>conftest.$ac_ext <<_ACEOF
16249/* end confdefs.h. */
16250
34037afe
ED
16251
16252 #include <linux/fs.h>
16253
e70e591c 16254int
34037afe 16255main (void)
e70e591c 16256{
34037afe
ED
16257
16258 struct super_block sb __attribute__ ((unused));
16259 sb.s_bdi = NULL;
16260
e70e591c
BB
16261 ;
16262 return 0;
16263}
34037afe 16264
e70e591c 16265_ACEOF
34037afe
ED
16266
16267
16268 rm -Rf build && mkdir -p build
16269 echo "obj-m := conftest.o" >build/Makefile
16270 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16272 (eval $ac_try) 2>&5
e70e591c 16273 ac_status=$?
e70e591c 16274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037afe
ED
16275 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281
16282 { $as_echo "$as_me:$LINENO: result: yes" >&5
16283$as_echo "yes" >&6; }
16284
16285cat >>confdefs.h <<\_ACEOF
16286#define HAVE_BDI 1
16287_ACEOF
16288
16289
e70e591c
BB
16290else
16291 $as_echo "$as_me: failed program was:" >&5
16292sed 's/^/| /' conftest.$ac_ext >&5
16293
34037afe
ED
16294 { $as_echo "$as_me:$LINENO: result: no" >&5
16295$as_echo "no" >&6; }
16296
16297
16298
e70e591c
BB
16299fi
16300
34037afe 16301 rm -Rf build
e70e591c 16302
e70e591c 16303
34037afe
ED
16304
16305
16306 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
16307$as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
16308 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
16309 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16310 rc=$?
16311 if test $rc -ne 0; then
16312
16313 export=0
16314 for file in mm/backing-dev.c; do
16315 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
16316 rc=$?
16317 if test $rc -eq 0; then
16318
16319 export=1
16320 break;
16321
e70e591c
BB
16322fi
16323
34037afe
ED
16324 done
16325 if test $export -eq 0; then
16326
16327 { $as_echo "$as_me:$LINENO: result: no" >&5
16328$as_echo "no" >&6; }
e70e591c
BB
16329
16330
e70e591c 16331else
e70e591c 16332
34037afe
ED
16333 { $as_echo "$as_me:$LINENO: result: yes" >&5
16334$as_echo "yes" >&6; }
16335
16336cat >>confdefs.h <<\_ACEOF
16337#define HAVE_BDI_SETUP_AND_REGISTER 1
e70e591c 16338_ACEOF
e70e591c 16339
e70e591c 16340
e70e591c 16341fi
e70e591c 16342
e70e591c
BB
16343
16344else
34037afe
ED
16345
16346 { $as_echo "$as_me:$LINENO: result: yes" >&5
16347$as_echo "yes" >&6; }
16348
16349cat >>confdefs.h <<\_ACEOF
16350#define HAVE_BDI_SETUP_AND_REGISTER 1
16351_ACEOF
16352
16353
e70e591c
BB
16354fi
16355
16356
16357
34037afe
ED
16358
16359 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
16360$as_echo_n "checking whether set_nlink() is available... " >&6; }
16361
16362
16363cat confdefs.h - <<_ACEOF >conftest.c
e70e591c
BB
16364/* confdefs.h. */
16365_ACEOF
16366cat confdefs.h >>conftest.$ac_ext
16367cat >>conftest.$ac_ext <<_ACEOF
16368/* end confdefs.h. */
16369
34037afe
ED
16370
16371 #include <linux/fs.h>
16372
e70e591c 16373int
34037afe 16374main (void)
e70e591c 16375{
34037afe
ED
16376
16377 struct inode node;
16378 unsigned int link = 0;
16379 (void) set_nlink(&node, link);
16380
e70e591c
BB
16381 ;
16382 return 0;
16383}
34037afe 16384
e70e591c 16385_ACEOF
34037afe
ED
16386
16387
16388 rm -Rf build && mkdir -p build
16389 echo "obj-m := conftest.o" >build/Makefile
16390 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
e70e591c 16393 ac_status=$?
e70e591c 16394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34037afe
ED
16395 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16398 ac_status=$?
16399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401
16402 { $as_echo "$as_me:$LINENO: result: yes" >&5
16403$as_echo "yes" >&6; }
16404
16405cat >>confdefs.h <<\_ACEOF
16406#define HAVE_SET_NLINK 1
16407_ACEOF
16408
16409
e70e591c
BB
16410else
16411 $as_echo "$as_me: failed program was:" >&5
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
34037afe
ED
16414 { $as_echo "$as_me:$LINENO: result: no" >&5
16415$as_echo "no" >&6; }
16416
16417
e70e591c 16418
e70e591c 16419fi
e70e591c 16420
34037afe
ED
16421 rm -Rf build
16422
16423
16424
16425
16426 if test "$LINUX_OBJ" != "$LINUX"; then
16427
16428 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
e70e591c 16429
e70e591c
BB
16430fi
16431
16432
e70e591c
BB
16433
16434
34037afe
ED
16435 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
16436 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
16437 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
e70e591c
BB
16438
16439
34037afe
ED
16440 ;;
16441 user)
e70e591c 16442
e70e591c 16443
34037afe
ED
16444# Check whether --with-udevdir was given.
16445if test "${with_udevdir+set}" = set; then
16446 withval=$with_udevdir; udevdir=$withval
16447else
16448 udevdir='${exec_prefix}/lib/udev'
e70e591c 16449fi
34037afe
ED
16450
16451
16452
16453# Check whether --with-udevruledir was given.
16454if test "${with_udevruledir+set}" = set; then
16455 withval=$with_udevruledir; udevruledir=$withval
16456else
16457 udevruledir='${udevdir}/rules.d'
16458fi
16459
16460
16461
16462
16463
16464
16465 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
16466$as_echo_n "checking for target asm dir... " >&6; }
16467 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
16468
16469 case $TARGET_ARCH in
16470 i386|x86_64)
16471 TARGET_ASM_DIR=asm-${TARGET_ARCH}
16472 ;;
16473 *)
16474 TARGET_ASM_DIR=asm-generic
16475 ;;
16476 esac
16477
16478
16479 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
16480$as_echo "$TARGET_ASM_DIR" >&6; }
16481
16482
16483 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
16484$as_echo_n "checking for ioctl()... " >&6; }
16485 cat >conftest.$ac_ext <<_ACEOF
16486/* confdefs.h. */
16487_ACEOF
16488cat confdefs.h >>conftest.$ac_ext
16489cat >>conftest.$ac_ext <<_ACEOF
16490/* end confdefs.h. */
16491#include <unistd.h>
16492
16493_ACEOF
16494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16495 $EGREP "ioctl" >/dev/null 2>&1; then
16496 is_unistd=yes
16497else
16498 is_unistd=no
16499fi
16500rm -f conftest*
16501
16502 cat >conftest.$ac_ext <<_ACEOF
16503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
16508#include <sys/ioctl.h>
16509
16510_ACEOF
16511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16512 $EGREP "ioctl" >/dev/null 2>&1; then
16513 is_sys_ioctl=yes
16514else
16515 is_sys_ioctl=no
16516fi
16517rm -f conftest*
16518
16519 cat >conftest.$ac_ext <<_ACEOF
16520/* confdefs.h. */
16521_ACEOF
16522cat confdefs.h >>conftest.$ac_ext
16523cat >>conftest.$ac_ext <<_ACEOF
16524/* end confdefs.h. */
16525#include <stropts.h>
16526
16527_ACEOF
16528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16529 $EGREP "ioctl" >/dev/null 2>&1; then
16530 is_stropts=yes
16531else
16532 is_stropts=no
16533fi
16534rm -f conftest*
16535
16536
16537 if test $is_unistd = yes; then
16538 result=unistd.h
16539
16540cat >>confdefs.h <<\_ACEOF
16541#define HAVE_IOCTL_IN_UNISTD_H 1
16542_ACEOF
16543
16544 else
16545
16546 if test $is_sys_ioctl = yes; then
16547 result=sys/ioctl.h
16548
16549cat >>confdefs.h <<\_ACEOF
16550#define HAVE_IOCTL_IN_SYS_IOCTL_H 1
16551_ACEOF
16552
16553 elif test $is_stropts = yes; then
16554
16555cat >>confdefs.h <<\_ACEOF
16556#define HAVE_IOCTL_IN_STROPTS_H 1
16557_ACEOF
16558
16559 else
16560 result=no
16561 fi
16562 fi
16563
16564 if test $result = no; then
16565 { $as_echo "$as_me:$LINENO: result: no" >&5
16566$as_echo "no" >&6; }
16567 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
16568$as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
16569 { (exit 1); exit 1; }; }
16570 else
16571 { $as_echo "$as_me:$LINENO: result: yes" >&5
16572$as_echo "yes" >&6; }
16573 fi
16574
16575
16576 ZLIB=
16577
16578 if test "${ac_cv_header_zlib_h+set}" = set; then
16579 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16580$as_echo_n "checking for zlib.h... " >&6; }
16581if test "${ac_cv_header_zlib_h+set}" = set; then
16582 $as_echo_n "(cached) " >&6
16583fi
16584{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16585$as_echo "$ac_cv_header_zlib_h" >&6; }
e70e591c
BB
16586else
16587 # Is the header compilable?
34037afe
ED
16588{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
16589$as_echo_n "checking zlib.h usability... " >&6; }
e70e591c
BB
16590cat >conftest.$ac_ext <<_ACEOF
16591/* confdefs.h. */
16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
16596$ac_includes_default
34037afe 16597#include <zlib.h>
e70e591c
BB
16598_ACEOF
16599rm -f conftest.$ac_objext
16600if { (ac_try="$ac_compile"
16601case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604esac
16605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16606$as_echo "$ac_try_echo") >&5
16607 (eval "$ac_compile") 2>conftest.er1
16608 ac_status=$?
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
16612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } && {
16614 test -z "$ac_c_werror_flag" ||
16615 test ! -s conftest.err
16616 } && test -s conftest.$ac_objext; then
16617 ac_header_compiler=yes
16618else
16619 $as_echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622 ac_header_compiler=no
16623fi
16624
16625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16627$as_echo "$ac_header_compiler" >&6; }
16628
16629# Is the header present?
34037afe
ED
16630{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16631$as_echo_n "checking zlib.h presence... " >&6; }
e70e591c
BB
16632cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
34037afe 16638#include <zlib.h>
e70e591c
BB
16639_ACEOF
16640if { (ac_try="$ac_cpp conftest.$ac_ext"
16641case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644esac
16645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16646$as_echo "$ac_try_echo") >&5
16647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16648 ac_status=$?
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } >/dev/null && {
16654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16655 test ! -s conftest.err
16656 }; then
16657 ac_header_preproc=yes
16658else
16659 $as_echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662 ac_header_preproc=no
16663fi
16664
16665rm -f conftest.err conftest.$ac_ext
16666{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16667$as_echo "$ac_header_preproc" >&6; }
16668
16669# So? What about this header?
16670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16671 yes:no: )
34037afe
ED
16672 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16673$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16674 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
16675$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
e70e591c
BB
16676 ac_header_preproc=yes
16677 ;;
16678 no:yes:* )
34037afe
ED
16679 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16680$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16681 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
16682$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
16683 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16684$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16685 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
16686$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16687 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16688$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
16689 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16690$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e70e591c
BB
16691
16692 ;;
16693esac
34037afe
ED
16694{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16695$as_echo_n "checking for zlib.h... " >&6; }
16696if test "${ac_cv_header_zlib_h+set}" = set; then
e70e591c
BB
16697 $as_echo_n "(cached) " >&6
16698else
34037afe 16699 ac_cv_header_zlib_h=$ac_header_preproc
e70e591c 16700fi
34037afe
ED
16701{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16702$as_echo "$ac_cv_header_zlib_h" >&6; }
e70e591c
BB
16703
16704fi
34037afe 16705if test "x$ac_cv_header_zlib_h" = x""yes; then
e70e591c
BB
16706 :
16707else
16708 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16710{ { $as_echo "$as_me:$LINENO: error:
34037afe 16711 *** zlib.h missing, zlib-devel package required
e70e591c
BB
16712See \`config.log' for more details." >&5
16713$as_echo "$as_me: error:
34037afe 16714 *** zlib.h missing, zlib-devel package required
e70e591c
BB
16715See \`config.log' for more details." >&2;}
16716 { (exit 1); exit 1; }; }; }
16717fi
16718
16719
16720
16721
34037afe
ED
16722{ $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
16723$as_echo_n "checking for compress2 in -lz... " >&6; }
16724if test "${ac_cv_lib_z_compress2+set}" = set; then
e70e591c
BB
16725 $as_echo_n "(cached) " >&6
16726else
16727 ac_check_lib_save_LIBS=$LIBS
34037afe 16728LIBS="-lz $LIBS"
e70e591c
BB
16729cat >conftest.$ac_ext <<_ACEOF
16730/* confdefs.h. */
16731_ACEOF
16732cat confdefs.h >>conftest.$ac_ext
16733cat >>conftest.$ac_ext <<_ACEOF
16734/* end confdefs.h. */
16735
16736/* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
16739#ifdef __cplusplus
16740extern "C"
16741#endif
34037afe 16742char compress2 ();
e70e591c
BB
16743int
16744main ()
16745{
34037afe 16746return compress2 ();
e70e591c
BB
16747 ;
16748 return 0;
16749}
16750_ACEOF
16751rm -f conftest.$ac_objext conftest$ac_exeext
16752if { (ac_try="$ac_link"
16753case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756esac
16757eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16758$as_echo "$ac_try_echo") >&5
16759 (eval "$ac_link") 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && {
16766 test -z "$ac_c_werror_flag" ||
16767 test ! -s conftest.err
16768 } && test -s conftest$ac_exeext && {
16769 test "$cross_compiling" = yes ||
16770 $as_test_x conftest$ac_exeext
16771 }; then
34037afe 16772 ac_cv_lib_z_compress2=yes
e70e591c
BB
16773else
16774 $as_echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
34037afe 16777 ac_cv_lib_z_compress2=no
e70e591c
BB
16778fi
16779
16780rm -rf conftest.dSYM
16781rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16782 conftest$ac_exeext conftest.$ac_ext
16783LIBS=$ac_check_lib_save_LIBS
16784fi
34037afe
ED
16785{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
16786$as_echo "$ac_cv_lib_z_compress2" >&6; }
16787if test "x$ac_cv_lib_z_compress2" = x""yes; then
e70e591c 16788 cat >>confdefs.h <<_ACEOF
34037afe 16789#define HAVE_LIBZ 1
e70e591c
BB
16790_ACEOF
16791
34037afe 16792 LIBS="-lz $LIBS"
e70e591c
BB
16793
16794else
16795 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16797{ { $as_echo "$as_me:$LINENO: error:
34037afe 16798 *** compress2() missing, zlib-devel package required
e70e591c
BB
16799See \`config.log' for more details." >&5
16800$as_echo "$as_me: error:
34037afe 16801 *** compress2() missing, zlib-devel package required
e70e591c
BB
16802See \`config.log' for more details." >&2;}
16803 { (exit 1); exit 1; }; }; }
16804fi
16805
16806
16807
34037afe
ED
16808{ $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
16809$as_echo_n "checking for uncompress in -lz... " >&6; }
16810if test "${ac_cv_lib_z_uncompress+set}" = set; then
e70e591c
BB
16811 $as_echo_n "(cached) " >&6
16812else
16813 ac_check_lib_save_LIBS=$LIBS
34037afe 16814LIBS="-lz $LIBS"
e70e591c
BB
16815cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821
16822/* Override any GCC internal prototype to avoid an error.
16823 Use char because int might match the return type of a GCC
16824 builtin and then its argument prototype would still apply. */
16825#ifdef __cplusplus
16826extern "C"
16827#endif
34037afe 16828char uncompress ();
e70e591c
BB
16829int
16830main ()
16831{
34037afe 16832return uncompress ();
e70e591c
BB
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext conftest$ac_exeext
16838if { (ac_try="$ac_link"
16839case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16842esac
16843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16844$as_echo "$ac_try_echo") >&5
16845 (eval "$ac_link") 2>conftest.er1
16846 ac_status=$?
16847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
16850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest$ac_exeext && {
16855 test "$cross_compiling" = yes ||
16856 $as_test_x conftest$ac_exeext
16857 }; then
34037afe 16858 ac_cv_lib_z_uncompress=yes
e70e591c
BB
16859else
16860 $as_echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
34037afe 16863 ac_cv_lib_z_uncompress=no
e70e591c
BB
16864fi
16865
16866rm -rf conftest.dSYM
16867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16868 conftest$ac_exeext conftest.$ac_ext
16869LIBS=$ac_check_lib_save_LIBS
16870fi
34037afe
ED
16871{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
16872$as_echo "$ac_cv_lib_z_uncompress" >&6; }
16873if test "x$ac_cv_lib_z_uncompress" = x""yes; then
16874 cat >>confdefs.h <<_ACEOF
16875#define HAVE_LIBZ 1
e70e591c
BB
16876_ACEOF
16877
34037afe 16878 LIBS="-lz $LIBS"
e70e591c
BB
16879
16880else
16881 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16883{ { $as_echo "$as_me:$LINENO: error:
34037afe 16884 *** uncompress() missing, zlib-devel package required
e70e591c
BB
16885See \`config.log' for more details." >&5
16886$as_echo "$as_me: error:
34037afe 16887 *** uncompress() missing, zlib-devel package required
e70e591c
BB
16888See \`config.log' for more details." >&2;}
16889 { (exit 1); exit 1; }; }; }
16890fi
16891
16892
e70e591c 16893
34037afe
ED
16894{ $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
16895$as_echo_n "checking for crc32 in -lz... " >&6; }
16896if test "${ac_cv_lib_z_crc32+set}" = set; then
e70e591c
BB
16897 $as_echo_n "(cached) " >&6
16898else
16899 ac_check_lib_save_LIBS=$LIBS
34037afe 16900LIBS="-lz $LIBS"
e70e591c
BB
16901cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
16907
16908/* Override any GCC internal prototype to avoid an error.
16909 Use char because int might match the return type of a GCC
16910 builtin and then its argument prototype would still apply. */
16911#ifdef __cplusplus
16912extern "C"
16913#endif
34037afe 16914char crc32 ();
e70e591c
BB
16915int
16916main ()
16917{
34037afe 16918return crc32 ();
e70e591c
BB
16919 ;
16920 return 0;
16921}
16922_ACEOF
16923rm -f conftest.$ac_objext conftest$ac_exeext
16924if { (ac_try="$ac_link"
16925case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928esac
16929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16930$as_echo "$ac_try_echo") >&5
16931 (eval "$ac_link") 2>conftest.er1
16932 ac_status=$?
16933 grep -v '^ *+' conftest.er1 >conftest.err
16934 rm -f conftest.er1
16935 cat conftest.err >&5
16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && {
16938 test -z "$ac_c_werror_flag" ||
16939 test ! -s conftest.err
16940 } && test -s conftest$ac_exeext && {
16941 test "$cross_compiling" = yes ||
16942 $as_test_x conftest$ac_exeext
16943 }; then
34037afe 16944 ac_cv_lib_z_crc32=yes
e70e591c
BB
16945else
16946 $as_echo "$as_me: failed program was:" >&5
16947sed 's/^/| /' conftest.$ac_ext >&5
16948
34037afe 16949 ac_cv_lib_z_crc32=no
e70e591c
BB
16950fi
16951
16952rm -rf conftest.dSYM
16953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954 conftest$ac_exeext conftest.$ac_ext
16955LIBS=$ac_check_lib_save_LIBS
16956fi
34037afe
ED
16957{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
16958$as_echo "$ac_cv_lib_z_crc32" >&6; }
16959if test "x$ac_cv_lib_z_crc32" = x""yes; then
16960 cat >>confdefs.h <<_ACEOF
16961#define HAVE_LIBZ 1
e70e591c
BB
16962_ACEOF
16963
34037afe 16964 LIBS="-lz $LIBS"
e70e591c
BB
16965
16966else
e70e591c
BB
16967 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34037afe
ED
16969{ { $as_echo "$as_me:$LINENO: error:
16970 *** crc32() missing, zlib-devel package required
e70e591c 16971See \`config.log' for more details." >&5
34037afe
ED
16972$as_echo "$as_me: error:
16973 *** crc32() missing, zlib-devel package required
e70e591c
BB
16974See \`config.log' for more details." >&2;}
16975 { (exit 1); exit 1; }; }; }
16976fi
16977
16978
34037afe 16979 ZLIB="-lz"
e70e591c
BB
16980
16981
34037afe
ED
16982cat >>confdefs.h <<\_ACEOF
16983#define HAVE_ZLIB 1
16984_ACEOF
b3259b6a 16985
b3259b6a
BB
16986
16987
34037afe 16988 LIBUUID=
b3259b6a 16989
34037afe
ED
16990 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16991 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16992$as_echo_n "checking for uuid/uuid.h... " >&6; }
16993if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
b3259b6a
BB
16994 $as_echo_n "(cached) " >&6
16995fi
34037afe
ED
16996{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16997$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
b3259b6a
BB
16998else
16999 # Is the header compilable?
34037afe
ED
17000{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
17001$as_echo_n "checking uuid/uuid.h usability... " >&6; }
b3259b6a
BB
17002cat >conftest.$ac_ext <<_ACEOF
17003/* confdefs.h. */
17004_ACEOF
17005cat confdefs.h >>conftest.$ac_ext
17006cat >>conftest.$ac_ext <<_ACEOF
17007/* end confdefs.h. */
17008$ac_includes_default
34037afe 17009#include <uuid/uuid.h>
b3259b6a
BB
17010_ACEOF
17011rm -f conftest.$ac_objext
17012if { (ac_try="$ac_compile"
17013case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17016esac
17017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17018$as_echo "$ac_try_echo") >&5
17019 (eval "$ac_compile") 2>conftest.er1
17020 ac_status=$?
17021 grep -v '^ *+' conftest.er1 >conftest.err
17022 rm -f conftest.er1
17023 cat conftest.err >&5
17024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } && {
17026 test -z "$ac_c_werror_flag" ||
17027 test ! -s conftest.err
17028 } && test -s conftest.$ac_objext; then
17029 ac_header_compiler=yes
17030else
17031 $as_echo "$as_me: failed program was:" >&5
17032sed 's/^/| /' conftest.$ac_ext >&5
17033
17034 ac_header_compiler=no
17035fi
17036
17037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17038{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17039$as_echo "$ac_header_compiler" >&6; }
17040
17041# Is the header present?
34037afe
ED
17042{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17043$as_echo_n "checking uuid/uuid.h presence... " >&6; }
b3259b6a
BB
17044cat >conftest.$ac_ext <<_ACEOF
17045/* confdefs.h. */
17046_ACEOF
17047cat confdefs.h >>conftest.$ac_ext
17048cat >>conftest.$ac_ext <<_ACEOF
17049/* end confdefs.h. */
34037afe 17050#include <uuid/uuid.h>
b3259b6a
BB
17051_ACEOF
17052if { (ac_try="$ac_cpp conftest.$ac_ext"
17053case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17056esac
17057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17058$as_echo "$ac_try_echo") >&5
17059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } >/dev/null && {
17066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 }; then
17069 ac_header_preproc=yes
17070else
17071 $as_echo "$as_me: failed program was:" >&5
17072sed 's/^/| /' conftest.$ac_ext >&5
17073
17074 ac_header_preproc=no
17075fi
17076
17077rm -f conftest.err conftest.$ac_ext
17078{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17079$as_echo "$ac_header_preproc" >&6; }
17080
17081# So? What about this header?
17082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17083 yes:no: )
34037afe
ED
17084 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17085$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17086 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
17087$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
b3259b6a
BB
17088 ac_header_preproc=yes
17089 ;;
17090 no:yes:* )
34037afe
ED
17091 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17092$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17093 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
17094$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
17095 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17096$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
17098$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
17099 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
17100$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
17101 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17102$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17103
17104 ;;
17105esac
17106{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17107$as_echo_n "checking for uuid/uuid.h... " >&6; }
17108if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
b3259b6a
BB
17109 $as_echo_n "(cached) " >&6
17110else
34037afe 17111 ac_cv_header_uuid_uuid_h=$ac_header_preproc
b3259b6a 17112fi
34037afe
ED
17113{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17114$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
b3259b6a
BB
17115
17116fi
34037afe
ED
17117if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17118 :
17119else
17120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17122{ { $as_echo "$as_me:$LINENO: error:
17123 *** uuid/uuid.h missing, libuuid-devel package required
17124See \`config.log' for more details." >&5
17125$as_echo "$as_me: error:
17126 *** uuid/uuid.h missing, libuuid-devel package required
17127See \`config.log' for more details." >&2;}
17128 { (exit 1); exit 1; }; }; }
17129fi
b3259b6a 17130
34037afe
ED
17131
17132
17133
17134{ $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
17135$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17136if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
b3259b6a
BB
17137 $as_echo_n "(cached) " >&6
17138else
17139 ac_check_lib_save_LIBS=$LIBS
34037afe 17140LIBS="-luuid $LIBS"
b3259b6a
BB
17141cat >conftest.$ac_ext <<_ACEOF
17142/* confdefs.h. */
17143_ACEOF
17144cat confdefs.h >>conftest.$ac_ext
17145cat >>conftest.$ac_ext <<_ACEOF
17146/* end confdefs.h. */
17147
17148/* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17151#ifdef __cplusplus
17152extern "C"
17153#endif
34037afe 17154char uuid_generate ();
b3259b6a
BB
17155int
17156main ()
17157{
34037afe 17158return uuid_generate ();
b3259b6a
BB
17159 ;
17160 return 0;
17161}
17162_ACEOF
17163rm -f conftest.$ac_objext conftest$ac_exeext
17164if { (ac_try="$ac_link"
17165case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17170$as_echo "$ac_try_echo") >&5
17171 (eval "$ac_link") 2>conftest.er1
17172 ac_status=$?
17173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
17176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); } && {
17178 test -z "$ac_c_werror_flag" ||
17179 test ! -s conftest.err
17180 } && test -s conftest$ac_exeext && {
17181 test "$cross_compiling" = yes ||
17182 $as_test_x conftest$ac_exeext
17183 }; then
34037afe 17184 ac_cv_lib_uuid_uuid_generate=yes
b3259b6a
BB
17185else
17186 $as_echo "$as_me: failed program was:" >&5
17187sed 's/^/| /' conftest.$ac_ext >&5
17188
34037afe 17189 ac_cv_lib_uuid_uuid_generate=no
b3259b6a
BB
17190fi
17191
17192rm -rf conftest.dSYM
17193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17194 conftest$ac_exeext conftest.$ac_ext
17195LIBS=$ac_check_lib_save_LIBS
17196fi
34037afe
ED
17197{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
17198$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17199if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17200 cat >>confdefs.h <<_ACEOF
17201#define HAVE_LIBUUID 1
17202_ACEOF
b3259b6a 17203
34037afe
ED
17204 LIBS="-luuid $LIBS"
17205
17206else
17207 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17209{ { $as_echo "$as_me:$LINENO: error:
17210 *** uuid_generate() missing, libuuid-devel package required
17211See \`config.log' for more details." >&5
17212$as_echo "$as_me: error:
17213 *** uuid_generate() missing, libuuid-devel package required
17214See \`config.log' for more details." >&2;}
17215 { (exit 1); exit 1; }; }; }
17216fi
17217
17218
17219
17220{ $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
17221$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17222if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17223 $as_echo_n "(cached) " >&6
17224else
17225 ac_check_lib_save_LIBS=$LIBS
17226LIBS="-luuid $LIBS"
17227cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
17233
17234/* Override any GCC internal prototype to avoid an error.
17235 Use char because int might match the return type of a GCC
17236 builtin and then its argument prototype would still apply. */
17237#ifdef __cplusplus
17238extern "C"
17239#endif
17240char uuid_is_null ();
17241int
17242main ()
17243{
17244return uuid_is_null ();
17245 ;
17246 return 0;
17247}
17248_ACEOF
17249rm -f conftest.$ac_objext conftest$ac_exeext
17250if { (ac_try="$ac_link"
17251case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254esac
17255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17256$as_echo "$ac_try_echo") >&5
17257 (eval "$ac_link") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest$ac_exeext && {
17267 test "$cross_compiling" = yes ||
17268 $as_test_x conftest$ac_exeext
17269 }; then
17270 ac_cv_lib_uuid_uuid_is_null=yes
17271else
17272 $as_echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 ac_cv_lib_uuid_uuid_is_null=no
17276fi
17277
17278rm -rf conftest.dSYM
17279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17280 conftest$ac_exeext conftest.$ac_ext
17281LIBS=$ac_check_lib_save_LIBS
17282fi
17283{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17284$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17285if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
17286 cat >>confdefs.h <<_ACEOF
17287#define HAVE_LIBUUID 1
17288_ACEOF
17289
17290 LIBS="-luuid $LIBS"
17291
17292else
17293 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17295{ { $as_echo "$as_me:$LINENO: error:
17296 *** uuid_is_null() missing, libuuid-devel package required
17297See \`config.log' for more details." >&5
17298$as_echo "$as_me: error:
17299 *** uuid_is_null() missing, libuuid-devel package required
17300See \`config.log' for more details." >&2;}
17301 { (exit 1); exit 1; }; }; }
17302fi
17303
17304
17305 LIBUUID="-luuid"
b3259b6a
BB
17306
17307
17308cat >>confdefs.h <<\_ACEOF
34037afe
ED
17309#define HAVE_LIBUUID 1
17310_ACEOF
17311
17312
17313
17314
17315# Check whether --with-blkid was given.
17316if test "${with_blkid+set}" = set; then
17317 withval=$with_blkid;
17318else
17319 with_blkid=check
17320fi
17321
17322
17323 LIBBLKID=
17324 if test "x$with_blkid" != xno; then
17325
17326 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17327$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17328if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17329 $as_echo_n "(cached) " >&6
17330else
17331 ac_check_lib_save_LIBS=$LIBS
17332LIBS="-lblkid $LIBS"
17333cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h. */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h. */
17339
17340/* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343#ifdef __cplusplus
17344extern "C"
17345#endif
17346char blkid_get_cache ();
17347int
17348main ()
17349{
17350return blkid_get_cache ();
17351 ;
17352 return 0;
17353}
b3259b6a 17354_ACEOF
34037afe
ED
17355rm -f conftest.$ac_objext conftest$ac_exeext
17356if { (ac_try="$ac_link"
17357case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360esac
17361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17362$as_echo "$ac_try_echo") >&5
17363 (eval "$ac_link") 2>conftest.er1
17364 ac_status=$?
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -f conftest.er1
17367 cat conftest.err >&5
17368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest$ac_exeext && {
17373 test "$cross_compiling" = yes ||
17374 $as_test_x conftest$ac_exeext
17375 }; then
17376 ac_cv_lib_blkid_blkid_get_cache=yes
17377else
17378 $as_echo "$as_me: failed program was:" >&5
17379sed 's/^/| /' conftest.$ac_ext >&5
17380
17381 ac_cv_lib_blkid_blkid_get_cache=no
17382fi
17383
17384rm -rf conftest.dSYM
17385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17387LIBS=$ac_check_lib_save_LIBS
17388fi
17389{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17390$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17391if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
17392
17393 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
17394$as_echo_n "checking for blkid zfs support... " >&6; }
17395
17396 ZFS_DEV=`mktemp`
17397 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17398 >/dev/null 2>/dev/null
17399 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17400 dd of=$ZFS_DEV bs=1k count=8 \
17401 seek=132 conv=notrunc &>/dev/null \
17402 >/dev/null 2>/dev/null
17403
17404 saved_LDFLAGS="$LDFLAGS"
17405 LDFLAGS="-lblkid"
17406
17407 if test "$cross_compiling" = yes; then
17408 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17410{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17411See \`config.log' for more details." >&5
17412$as_echo "$as_me: error: cannot run test program while cross compiling
17413See \`config.log' for more details." >&2;}
17414 { (exit 1); exit 1; }; }; }
17415else
17416 cat >conftest.$ac_ext <<_ACEOF
17417/* confdefs.h. */
17418_ACEOF
17419cat confdefs.h >>conftest.$ac_ext
17420cat >>conftest.$ac_ext <<_ACEOF
17421/* end confdefs.h. */
17422
17423 #include <stdio.h>
17424 #include <blkid/blkid.h>
17425
17426int
17427main ()
17428{
17429
17430 blkid_cache cache;
17431 char *value;
17432
17433 if (blkid_get_cache(&cache, NULL) < 0)
17434 return 1;
17435
17436 value = blkid_get_tag_value(cache, "TYPE",
17437 "$ZFS_DEV");
17438 if (!value) {
17439 blkid_put_cache(cache);
17440 return 2;
17441 }
17442
17443 if (strcmp(value, "zfs")) {
17444 free(value);
17445 blkid_put_cache(cache);
17446 return 3;
17447 }
17448
17449 free(value);
17450 blkid_put_cache(cache);
17451
17452 ;
17453 return 0;
17454}
17455_ACEOF
17456rm -f conftest$ac_exeext
17457if { (ac_try="$ac_link"
17458case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17461esac
17462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17463$as_echo "$ac_try_echo") >&5
17464 (eval "$ac_link") 2>&5
17465 ac_status=$?
17466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17468 { (case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17473$as_echo "$ac_try_echo") >&5
17474 (eval "$ac_try") 2>&5
17475 ac_status=$?
17476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; }; then
17478
17479 rm -f $ZFS_DEV
17480 { $as_echo "$as_me:$LINENO: result: yes" >&5
17481$as_echo "yes" >&6; }
17482 LIBBLKID="-lblkid"
17483
17484
17485cat >>confdefs.h <<\_ACEOF
17486#define HAVE_LIBBLKID 1
17487_ACEOF
17488
17489
17490else
17491 $as_echo "$as_me: program exited with status $ac_status" >&5
17492$as_echo "$as_me: failed program was:" >&5
17493sed 's/^/| /' conftest.$ac_ext >&5
17494
17495( exit $ac_status )
17496
17497 rm -f $ZFS_DEV
17498 { $as_echo "$as_me:$LINENO: result: no" >&5
17499$as_echo "no" >&6; }
17500 if test "x$with_blkid" != xcheck; then
17501 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17503{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17504See \`config.log' for more details." >&5
17505$as_echo "$as_me: error: --with-blkid given but unavailable
17506See \`config.log' for more details." >&2;}
17507 { (exit 1); exit 1; }; }; }
17508fi
17509
17510
17511fi
17512rm -rf conftest.dSYM
17513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17514fi
17515
17516
17517
17518 LDFLAGS="$saved_LDFLAGS"
17519
17520else
17521
17522 if test "x$with_blkid" != xcheck; then
17523 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17525{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17526See \`config.log' for more details." >&5
17527$as_echo "$as_me: error: --with-blkid given but unavailable
17528See \`config.log' for more details." >&2;}
17529 { (exit 1); exit 1; }; }; }
17530fi
17531
17532
17533
17534fi
17535
17536
17537fi
17538
17539
17540
17541
17542# Check whether --with-selinux was given.
17543if test "${with_selinux+set}" = set; then
17544 withval=$with_selinux;
17545else
17546 with_selinux=check
17547fi
17548
17549
17550 LIBSELINUX=
17551 if test "x$with_selinux" != xno; then
17552
17553 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17554 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17555$as_echo_n "checking for selinux/selinux.h... " >&6; }
17556if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17557 $as_echo_n "(cached) " >&6
17558fi
17559{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17560$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17561else
17562 # Is the header compilable?
17563{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
17564$as_echo_n "checking selinux/selinux.h usability... " >&6; }
17565cat >conftest.$ac_ext <<_ACEOF
17566/* confdefs.h. */
17567_ACEOF
17568cat confdefs.h >>conftest.$ac_ext
17569cat >>conftest.$ac_ext <<_ACEOF
17570/* end confdefs.h. */
17571$ac_includes_default
17572#include <selinux/selinux.h>
17573_ACEOF
17574rm -f conftest.$ac_objext
17575if { (ac_try="$ac_compile"
17576case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579esac
17580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17581$as_echo "$ac_try_echo") >&5
17582 (eval "$ac_compile") 2>conftest.er1
17583 ac_status=$?
17584 grep -v '^ *+' conftest.er1 >conftest.err
17585 rm -f conftest.er1
17586 cat conftest.err >&5
17587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } && {
17589 test -z "$ac_c_werror_flag" ||
17590 test ! -s conftest.err
17591 } && test -s conftest.$ac_objext; then
17592 ac_header_compiler=yes
17593else
17594 $as_echo "$as_me: failed program was:" >&5
17595sed 's/^/| /' conftest.$ac_ext >&5
17596
17597 ac_header_compiler=no
17598fi
17599
17600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17601{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17602$as_echo "$ac_header_compiler" >&6; }
17603
17604# Is the header present?
17605{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
17606$as_echo_n "checking selinux/selinux.h presence... " >&6; }
17607cat >conftest.$ac_ext <<_ACEOF
17608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
17613#include <selinux/selinux.h>
17614_ACEOF
17615if { (ac_try="$ac_cpp conftest.$ac_ext"
17616case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619esac
17620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17621$as_echo "$ac_try_echo") >&5
17622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17623 ac_status=$?
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
17627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } >/dev/null && {
17629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 }; then
17632 ac_header_preproc=yes
17633else
17634 $as_echo "$as_me: failed program was:" >&5
17635sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 ac_header_preproc=no
17638fi
17639
17640rm -f conftest.err conftest.$ac_ext
17641{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17642$as_echo "$ac_header_preproc" >&6; }
17643
17644# So? What about this header?
17645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17646 yes:no: )
17647 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
17648$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17649 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
17650$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
17651 ac_header_preproc=yes
17652 ;;
17653 no:yes:* )
17654 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
17655$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
17656 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
17657$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
17658 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
17659$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
17660 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
17661$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
17662 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
17663$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
17664 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
17665$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
17666
17667 ;;
17668esac
17669{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17670$as_echo_n "checking for selinux/selinux.h... " >&6; }
17671if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17672 $as_echo_n "(cached) " >&6
17673else
17674 ac_cv_header_selinux_selinux_h=$ac_header_preproc
17675fi
17676{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17677$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17678
17679fi
17680if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
17681
17682 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
17683$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17684if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
17685 $as_echo_n "(cached) " >&6
17686else
17687 ac_check_lib_save_LIBS=$LIBS
17688LIBS="-lselinux $LIBS"
17689cat >conftest.$ac_ext <<_ACEOF
17690/* confdefs.h. */
17691_ACEOF
17692cat confdefs.h >>conftest.$ac_ext
17693cat >>conftest.$ac_ext <<_ACEOF
17694/* end confdefs.h. */
17695
17696/* Override any GCC internal prototype to avoid an error.
17697 Use char because int might match the return type of a GCC
17698 builtin and then its argument prototype would still apply. */
17699#ifdef __cplusplus
17700extern "C"
17701#endif
17702char is_selinux_enabled ();
17703int
17704main ()
17705{
17706return is_selinux_enabled ();
17707 ;
17708 return 0;
17709}
17710_ACEOF
17711rm -f conftest.$ac_objext conftest$ac_exeext
17712if { (ac_try="$ac_link"
17713case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17718$as_echo "$ac_try_echo") >&5
17719 (eval "$ac_link") 2>conftest.er1
17720 ac_status=$?
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
17724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } && {
17726 test -z "$ac_c_werror_flag" ||
17727 test ! -s conftest.err
17728 } && test -s conftest$ac_exeext && {
17729 test "$cross_compiling" = yes ||
17730 $as_test_x conftest$ac_exeext
17731 }; then
17732 ac_cv_lib_selinux_is_selinux_enabled=yes
17733else
17734 $as_echo "$as_me: failed program was:" >&5
17735sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 ac_cv_lib_selinux_is_selinux_enabled=no
17738fi
17739
17740rm -rf conftest.dSYM
17741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17742 conftest$ac_exeext conftest.$ac_ext
17743LIBS=$ac_check_lib_save_LIBS
17744fi
17745{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17746$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17747if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
17748
17749 LIBSELINUX="-lselinux"
17750
17751
17752cat >>confdefs.h <<\_ACEOF
17753#define HAVE_LIBSELINUX 1
17754_ACEOF
17755
17756
17757else
17758
17759 if test "x$with_selinux" != xcheck; then
17760 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17762{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17763See \`config.log' for more details." >&5
17764$as_echo "$as_me: error: --with-selinux given but unavailable
17765See \`config.log' for more details." >&2;}
17766 { (exit 1); exit 1; }; }; }
17767
17768fi
17769
17770
17771fi
17772
17773
17774else
17775
17776 if test "x$with_selinux" != xcheck; then
17777 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17779{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17780See \`config.log' for more details." >&5
17781$as_echo "$as_me: error: --with-selinux given but unavailable
17782See \`config.log' for more details." >&2;}
17783 { (exit 1); exit 1; }; }; }
17784
17785fi
17786
17787
17788fi
17789
17790
17791
17792else
17793
17794 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
17795$as_echo_n "checking for selinux support... " >&6; }
17796 { $as_echo "$as_me:$LINENO: result: no" >&5
17797$as_echo "no" >&6; }
17798
17799fi
17800
17801
17802
17803 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17804$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17805
17806 saved_flags="$CFLAGS"
17807 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17808
17809 if test "$cross_compiling" = yes; then
17810 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17812{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17813See \`config.log' for more details." >&5
17814$as_echo "$as_me: error: cannot run test program while cross compiling
17815See \`config.log' for more details." >&2;}
17816 { (exit 1); exit 1; }; }; }
17817else
17818 cat >conftest.$ac_ext <<_ACEOF
17819/* confdefs.h. */
17820_ACEOF
17821cat confdefs.h >>conftest.$ac_ext
17822cat >>conftest.$ac_ext <<_ACEOF
17823/* end confdefs.h. */
17824
17825int
17826main ()
17827{
17828
17829 ;
17830 return 0;
17831}
17832_ACEOF
17833rm -f conftest$ac_exeext
17834if { (ac_try="$ac_link"
17835case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17840$as_echo "$ac_try_echo") >&5
17841 (eval "$ac_link") 2>&5
17842 ac_status=$?
17843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848esac
17849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17850$as_echo "$ac_try_echo") >&5
17851 (eval "$ac_try") 2>&5
17852 ac_status=$?
17853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855
17856 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17857 { $as_echo "$as_me:$LINENO: result: yes" >&5
17858$as_echo "yes" >&6; }
17859
17860else
17861 $as_echo "$as_me: program exited with status $ac_status" >&5
17862$as_echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
17864
17865( exit $ac_status )
17866
17867 FRAME_LARGER_THAN=
17868 { $as_echo "$as_me:$LINENO: result: no" >&5
17869$as_echo "no" >&6; }
17870
17871fi
17872rm -rf conftest.dSYM
17873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17874fi
17875
17876
17877
17878 CFLAGS="$saved_flags"
17879
17880
17881
17882
17883 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17884$as_echo_n "checking whether pthread stack includes guard... " >&6; }
17885
17886 saved_CFLAGS="$CFLAGS"
17887 CFLAGS="-fstack-check"
17888 saved_LDFLAGS="$LDFLAGS"
17889 LDFLAGS="-lpthread"
17890
17891 if test "$cross_compiling" = yes; then
17892 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17894{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17895See \`config.log' for more details." >&5
17896$as_echo "$as_me: error: cannot run test program while cross compiling
17897See \`config.log' for more details." >&2;}
17898 { (exit 1); exit 1; }; }; }
17899else
17900 cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h. */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h. */
17906
17907 #include <pthread.h>
17908 #include <sys/resource.h>
17909 #include <unistd.h>
17910 #include <bits/local_lim.h>
17911
17912 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17913 #define STACK_SIZE 8192
17914 #define BUFSIZE 4096
17915
17916 void * func(void *arg)
17917 {
17918 char buf[BUFSIZE];
17919 }
17920
17921int
17922main ()
17923{
17924
17925 pthread_t tid;
17926 pthread_attr_t attr;
17927 struct rlimit l;
17928
17929 l.rlim_cur = 0;
17930 l.rlim_max = 0;
17931 setrlimit(RLIMIT_CORE, &l);
17932 pthread_attr_init(&attr);
17933 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17934 pthread_attr_setguardsize(&attr, PAGESIZE);
17935 pthread_create(&tid, &attr, func, NULL);
17936 pthread_join(tid, NULL);
17937
17938 ;
17939 return 0;
17940}
17941_ACEOF
17942rm -f conftest$ac_exeext
17943if { (ac_try="$ac_link"
17944case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17947esac
17948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17949$as_echo "$ac_try_echo") >&5
17950 (eval "$ac_link") 2>&5
17951 ac_status=$?
17952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17954 { (case "(($ac_try" in
17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956 *) ac_try_echo=$ac_try;;
17957esac
17958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17959$as_echo "$ac_try_echo") >&5
17960 (eval "$ac_try") 2>&5
17961 ac_status=$?
17962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); }; }; then
17964
17965 { $as_echo "$as_me:$LINENO: result: no" >&5
17966$as_echo "no" >&6; }
17967
17968else
17969 $as_echo "$as_me: program exited with status $ac_status" >&5
17970$as_echo "$as_me: failed program was:" >&5
17971sed 's/^/| /' conftest.$ac_ext >&5
17972
17973( exit $ac_status )
17974
17975
17976cat >>confdefs.h <<\_ACEOF
17977#define NPTL_GUARD_WITHIN_STACK 1
17978_ACEOF
17979
17980 { $as_echo "$as_me:$LINENO: result: yes" >&5
17981$as_echo "yes" >&6; }
17982
17983fi
17984rm -rf conftest.dSYM
17985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17986fi
17987
17988
17989 CFLAGS="$saved_CFLAGS"
17990 LDFLAGS="$saved_LDFLAGS"
17991
17992 ;;
17993 all)
17994
17995
17996# Check whether --with-linux was given.
17997if test "${with_linux+set}" = set; then
17998 withval=$with_linux; kernelsrc="$withval"
17999fi
18000
18001
18002
18003# Check whether --with-linux-obj was given.
18004if test "${with_linux_obj+set}" = set; then
18005 withval=$with_linux_obj; kernelbuild="$withval"
18006fi
18007
18008
18009 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
18010$as_echo_n "checking kernel source directory... " >&6; }
18011 if test -z "$kernelsrc"; then
18012
18013 if test -e "/lib/modules/$(uname -r)/source"; then
18014
18015 headersdir="/lib/modules/$(uname -r)/source"
18016 sourcelink=$(readlink -f "$headersdir")
18017
18018elif test -e "/lib/modules/$(uname -r)/build"; then
18019
18020 headersdir="/lib/modules/$(uname -r)/build"
18021 sourcelink=$(readlink -f "$headersdir")
18022
18023else
18024
18025 sourcelink=$(ls -1d /usr/src/kernels/* \
18026 /usr/src/linux-* \
18027 2>/dev/null | grep -v obj | tail -1)
18028
18029fi
18030
18031
18032 if test -n "$sourcelink" && test -e ${sourcelink}; then
18033
18034 kernelsrc=`readlink -f ${sourcelink}`
18035
18036else
18037
18038 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18039$as_echo "Not found" >&6; }
18040 { { $as_echo "$as_me:$LINENO: error:
18041 *** Please make sure the kernel devel package for your distribution
18042 *** is installed then try again. If that fails you can specify the
18043 *** location of the kernel source with the '--with-linux=PATH' option." >&5
18044$as_echo "$as_me: error:
18045 *** Please make sure the kernel devel package for your distribution
18046 *** is installed then try again. If that fails you can specify the
18047 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
18048 { (exit 1); exit 1; }; }
18049
18050fi
18051
18052
18053else
18054
18055 if test "$kernelsrc" = "NONE"; then
18056
18057 kernsrcver=NONE
18058
18059fi
18060
18061
18062fi
18063
18064
18065 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
18066$as_echo "$kernelsrc" >&6; }
18067 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
18068$as_echo_n "checking kernel build directory... " >&6; }
18069 if test -z "$kernelbuild"; then
18070
18071 if test -e "/lib/modules/$(uname -r)/build"; then
18072
18073 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
18074
18075elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
18076
18077 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18078
18079elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
18080
18081 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18082
18083elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
18084
18085 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18086
18087else
18088
18089 kernelbuild=${kernelsrc}
18090
18091fi
18092
18093
18094fi
18095
18096 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
18097$as_echo "$kernelbuild" >&6; }
18098
18099 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
18100$as_echo_n "checking kernel source version... " >&6; }
18101 utsrelease1=$kernelbuild/include/linux/version.h
18102 utsrelease2=$kernelbuild/include/linux/utsrelease.h
18103 utsrelease3=$kernelbuild/include/generated/utsrelease.h
18104 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
18105
18106 utsrelease=linux/version.h
18107
18108elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
18109
18110 utsrelease=linux/utsrelease.h
18111
18112elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
18113
18114 utsrelease=generated/utsrelease.h
18115
18116fi
18117
18118
18119 if test "$utsrelease"; then
18120
18121 kernsrcver=`(echo "#include <$utsrelease>";
18122 echo "kernsrcver=UTS_RELEASE") |
18123 cpp -I $kernelbuild/include |
18124 grep "^kernsrcver=" | cut -d \" -f 2`
18125
18126 if test -z "$kernsrcver"; then
18127
18128 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18129$as_echo "Not found" >&6; }
18130 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
18131$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
18132 { (exit 1); exit 1; }; }
18133
18134fi
18135
18136
18137else
18138
18139 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18140$as_echo "Not found" >&6; }
18141 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
18142$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
18143 { (exit 1); exit 1; }; }
18144
18145fi
18146
18147
18148 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
18149$as_echo "$kernsrcver" >&6; }
18150
18151 LINUX=${kernelsrc}
18152 LINUX_OBJ=${kernelbuild}
18153 LINUX_VERSION=${kernsrcver}
18154
18155
18156
18157
18158
18159
18160 modpost=$LINUX/scripts/Makefile.modpost
18161 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
18162$as_echo_n "checking kernel file name for module symbols... " >&6; }
18163 if test -f "$modpost"; then
18164
18165 if grep -q Modules.symvers $modpost; then
18166
18167 LINUX_SYMBOLS=Modules.symvers
18168
18169else
18170
18171 LINUX_SYMBOLS=Module.symvers
18172
18173fi
18174
18175
18176 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
18177
18178 { { $as_echo "$as_me:$LINENO: error:
18179 *** Please make sure the kernel devel package for your distribution
18180 *** is installed. If your building with a custom kernel make sure the
18181 *** kernel is configured, built, and the '--with-linux=PATH' configure
18182 *** option refers to the location of the kernel source." >&5
18183$as_echo "$as_me: error:
18184 *** Please make sure the kernel devel package for your distribution
18185 *** is installed. If your building with a custom kernel make sure the
18186 *** kernel is configured, built, and the '--with-linux=PATH' configure
18187 *** option refers to the location of the kernel source." >&2;}
18188 { (exit 1); exit 1; }; }
18189
18190fi
b3259b6a
BB
18191
18192
18193else
18194
34037afe 18195 LINUX_SYMBOLS=NONE
b3259b6a
BB
18196
18197fi
18198
34037afe
ED
18199 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
18200$as_echo "$LINUX_SYMBOLS" >&6; }
b3259b6a 18201
b3259b6a
BB
18202
18203
b3259b6a 18204
b3259b6a 18205
34037afe
ED
18206# Check whether --with-spl was given.
18207if test "${with_spl+set}" = set; then
18208 withval=$with_spl; splsrc="$withval"
b3259b6a
BB
18209fi
18210
18211
34037afe
ED
18212
18213# Check whether --with-spl-obj was given.
18214if test "${with_spl_obj+set}" = set; then
18215 withval=$with_spl_obj; splbuild="$withval"
b3259b6a
BB
18216fi
18217
18218
18219
34037afe
ED
18220 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
18221$as_echo_n "checking spl source directory... " >&6; }
18222 if test -z "$splsrc"; then
b3259b6a 18223
34037afe
ED
18224 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
18225 2>/dev/null | tail -1`
b3259b6a 18226
34037afe 18227 if test -z "$sourcelink" || test ! -e $sourcelink; then
b3259b6a 18228
34037afe 18229 sourcelink=../spl
b3259b6a 18230
34037afe 18231fi
b3259b6a 18232
e70e591c 18233
34037afe
ED
18234 if test -e $sourcelink; then
18235
18236 splsrc=`readlink -f ${sourcelink}`
e70e591c 18237
e70e591c 18238else
e70e591c 18239
34037afe
ED
18240 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18241$as_echo "Not found" >&6; }
18242 { { $as_echo "$as_me:$LINENO: error:
18243 *** Please make sure the spl devel package for your distribution
18244 *** is installed then try again. If that fails you can specify the
18245 *** location of the spl source with the '--with-spl=PATH' option." >&5
18246$as_echo "$as_me: error:
18247 *** Please make sure the spl devel package for your distribution
18248 *** is installed then try again. If that fails you can specify the
18249 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
18250 { (exit 1); exit 1; }; }
e70e591c 18251
34037afe 18252fi
e70e591c 18253
e70e591c
BB
18254
18255else
e70e591c 18256
34037afe 18257 if test "$splsrc" = "NONE"; then
e70e591c 18258
34037afe
ED
18259 splbuild=NONE
18260 splsrcver=NONE
e70e591c
BB
18261
18262fi
34037afe
ED
18263
18264
e70e591c
BB
18265fi
18266
18267
34037afe
ED
18268 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
18269$as_echo "$splsrc" >&6; }
18270 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
18271$as_echo_n "checking spl build directory... " >&6; }
18272 if test -z "$splbuild"; then
18273
18274 splbuild=${splsrc}
18275
18276fi
e70e591c 18277
34037afe
ED
18278 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
18279$as_echo "$splbuild" >&6; }
e70e591c 18280
34037afe
ED
18281 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
18282$as_echo_n "checking spl source version... " >&6; }
18283 if test -r $splbuild/spl_config.h &&
18284 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
e70e591c
BB
18285
18286
34037afe
ED
18287 splsrcver=`(echo "#include <spl_config.h>";
18288 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18289 cpp -I $splbuild |
18290 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
e70e591c 18291
34037afe 18292fi
e70e591c 18293
e70e591c 18294
34037afe 18295 if test -z "$splsrcver"; then
e70e591c 18296
34037afe
ED
18297 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18298$as_echo "Not found" >&6; }
18299 { { $as_echo "$as_me:$LINENO: error:
18300 *** Cannot determine the version of the spl source.
18301 *** Please prepare the spl source before running this script" >&5
18302$as_echo "$as_me: error:
18303 *** Cannot determine the version of the spl source.
18304 *** Please prepare the spl source before running this script" >&2;}
18305 { (exit 1); exit 1; }; }
e70e591c 18306
34037afe 18307fi
e70e591c 18308
e70e591c 18309
34037afe
ED
18310 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
18311$as_echo "$splsrcver" >&6; }
e70e591c 18312
34037afe
ED
18313 SPL=${splsrc}
18314 SPL_OBJ=${splbuild}
18315 SPL_VERSION=${splsrcver}
e70e591c 18316
e70e591c 18317
e70e591c 18318
e70e591c 18319
e70e591c 18320
e70e591c 18321
34037afe
ED
18322 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
18323$as_echo_n "checking spl file name for module symbols... " >&6; }
18324 if test -r $SPL_OBJ/Module.symvers; then
e70e591c 18325
34037afe 18326 SPL_SYMBOLS=Module.symvers
e70e591c 18327
34037afe 18328elif test -r $SPL_OBJ/Modules.symvers; then
e70e591c 18329
34037afe
ED
18330 SPL_SYMBOLS=Modules.symvers
18331
18332elif test -r $SPL_OBJ/module/Module.symvers; then
e70e591c 18333
34037afe 18334 SPL_SYMBOLS=Module.symvers
e70e591c 18335
34037afe 18336elif test -r $SPL_OBJ/module/Modules.symvers; then
e70e591c 18337
34037afe 18338 SPL_SYMBOLS=Modules.symvers
e70e591c 18339
34037afe
ED
18340else
18341
18342 SPL_SYMBOLS=$LINUX_SYMBOLS
e70e591c 18343
e70e591c
BB
18344fi
18345
18346
34037afe
ED
18347 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
18348$as_echo "$SPL_SYMBOLS" >&6; }
e70e591c 18349
e70e591c
BB
18350
18351
8366cd6a 18352
8366cd6a 18353
34037afe
ED
18354 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
18355$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
8366cd6a 18356
8366cd6a 18357
34037afe
ED
18358cat confdefs.h - <<_ACEOF >conftest.c
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
8366cd6a 18364
8366cd6a 18365
34037afe 18366 #include <linux/module.h>
8366cd6a 18367
34037afe
ED
18368int
18369main (void)
18370{
8366cd6a 18371
34037afe
ED
18372 #ifndef CONFIG_PREEMPT
18373 #error CONFIG_PREEMPT not #defined
18374 #endif
e70e591c 18375
34037afe
ED
18376 ;
18377 return 0;
18378}
8366cd6a 18379
34037afe 18380_ACEOF
8366cd6a 18381
8366cd6a 18382
34037afe
ED
18383 rm -Rf build && mkdir -p build
18384 echo "obj-m := conftest.o" >build/Makefile
18385 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396
18397 { $as_echo "$as_me:$LINENO: result: yes" >&5
18398$as_echo "yes" >&6; }
18399 { { $as_echo "$as_me:$LINENO: error:
18400 *** Kernel built with CONFIG_PREEMPT which is not supported.
18401 *** You must rebuild your kernel without this option." >&5
e70e591c 18402$as_echo "$as_me: error:
34037afe
ED
18403 *** Kernel built with CONFIG_PREEMPT which is not supported.
18404 *** You must rebuild your kernel without this option." >&2;}
e70e591c 18405 { (exit 1); exit 1; }; }
8366cd6a 18406
34037afe
ED
18407else
18408 $as_echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 18410
34037afe
ED
18411 { $as_echo "$as_me:$LINENO: result: no" >&5
18412$as_echo "no" >&6; }
8366cd6a 18413
8366cd6a 18414
8366cd6a 18415
8366cd6a
PS
18416
18417fi
18418
34037afe
ED
18419 rm -Rf build
18420
8366cd6a 18421
8366cd6a 18422
e70e591c 18423
34037afe 18424 if test "$ZFS_META_LICENSE" = CDDL; then
8366cd6a 18425
34037afe
ED
18426 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18427$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
8366cd6a 18428
8366cd6a 18429
34037afe
ED
18430cat confdefs.h - <<_ACEOF >conftest.c
18431/* confdefs.h. */
18432_ACEOF
18433cat confdefs.h >>conftest.$ac_ext
18434cat >>conftest.$ac_ext <<_ACEOF
18435/* end confdefs.h. */
8366cd6a 18436
8366cd6a 18437
34037afe 18438 #include <linux/module.h>
8366cd6a 18439
34037afe
ED
18440int
18441main (void)
18442{
8366cd6a 18443
34037afe
ED
18444 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18445 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18446 #endif
8366cd6a 18447
34037afe
ED
18448 ;
18449 return 0;
18450}
18451
18452_ACEOF
18453
18454
18455 rm -Rf build && mkdir -p build
18456 echo "obj-m := conftest.o" >build/Makefile
18457 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18465 ac_status=$?
18466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468
18469 { $as_echo "$as_me:$LINENO: result: yes" >&5
18470$as_echo "yes" >&6; }
18471 { { $as_echo "$as_me:$LINENO: error:
18472 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
18473 *** incompatible with the CDDL license. You must rebuild
18474 *** your kernel without this option." >&5
18475$as_echo "$as_me: error:
18476 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
18477 *** incompatible with the CDDL license. You must rebuild
18478 *** your kernel without this option." >&2;}
18479 { (exit 1); exit 1; }; }
8366cd6a
PS
18480
18481else
34037afe
ED
18482 $as_echo "$as_me: failed program was:" >&5
18483sed 's/^/| /' conftest.$ac_ext >&5
18484
18485 { $as_echo "$as_me:$LINENO: result: no" >&5
18486$as_echo "no" >&6; }
8366cd6a 18487
8366cd6a 18488
8366cd6a
PS
18489
18490
18491fi
18492
34037afe 18493 rm -Rf build
e70e591c 18494
8366cd6a 18495
8366cd6a 18496
8366cd6a 18497
34037afe 18498fi
8366cd6a 18499
8366cd6a 18500
34037afe
ED
18501 if test "$ZFS_META_LICENSE" = GPL; then
18502
18503
18504cat >>confdefs.h <<\_ACEOF
18505#define HAVE_GPL_ONLY_SYMBOLS 1
18506_ACEOF
18507
8366cd6a
PS
18508
18509fi
18510
e70e591c 18511
8366cd6a 18512
34037afe
ED
18513 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
18514$as_echo_n "checking block device operation prototypes... " >&6; }
18515 tmp_flags="$EXTRA_KCFLAGS"
18516 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c 18517
8366cd6a 18518
34037afe
ED
18519cat confdefs.h - <<_ACEOF >conftest.c
18520/* confdefs.h. */
18521_ACEOF
18522cat confdefs.h >>conftest.$ac_ext
18523cat >>conftest.$ac_ext <<_ACEOF
18524/* end confdefs.h. */
8366cd6a 18525
8366cd6a 18526
34037afe 18527 #include <linux/blkdev.h>
8366cd6a 18528
34037afe
ED
18529int
18530main (void)
18531{
8366cd6a 18532
34037afe
ED
18533 int (*blk_open) (struct block_device *, fmode_t) = NULL;
18534 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
18535 int (*blk_ioctl) (struct block_device *, fmode_t,
18536 unsigned, unsigned long) = NULL;
18537 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
18538 unsigned, unsigned long) = NULL;
18539 struct block_device_operations blk_ops = {
18540 .open = blk_open,
18541 .release = blk_release,
18542 .ioctl = blk_ioctl,
18543 .compat_ioctl = blk_compat_ioctl,
18544 };
18545
18546 blk_ops.open(NULL, 0);
18547 blk_ops.release(NULL, 0);
18548 blk_ops.ioctl(NULL, 0, 0, 0);
18549 blk_ops.compat_ioctl(NULL, 0, 0, 0);
18550
18551 ;
18552 return 0;
18553}
18554
18555_ACEOF
8366cd6a 18556
8366cd6a 18557
34037afe
ED
18558 rm -Rf build && mkdir -p build
18559 echo "obj-m := conftest.o" >build/Makefile
18560 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
e70e591c 18571
34037afe
ED
18572 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
18573$as_echo "struct block_device" >&6; }
e70e591c 18574
34037afe
ED
18575cat >>confdefs.h <<\_ACEOF
18576#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
18577_ACEOF
e70e591c
BB
18578
18579
34037afe
ED
18580else
18581 $as_echo "$as_me: failed program was:" >&5
18582sed 's/^/| /' conftest.$ac_ext >&5
e70e591c 18583
34037afe
ED
18584 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
18585$as_echo "struct inode" >&6; }
e70e591c
BB
18586
18587
18588
34037afe 18589fi
8366cd6a 18590
34037afe 18591 rm -Rf build
8366cd6a 18592
8366cd6a 18593
34037afe 18594 EXTRA_KCFLAGS="$tmp_flags"
8366cd6a 18595
34037afe
ED
18596 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
18597$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
a60b1c0a 18598
8366cd6a 18599
34037afe
ED
18600cat confdefs.h - <<_ACEOF >conftest.c
18601/* confdefs.h. */
18602_ACEOF
18603cat confdefs.h >>conftest.$ac_ext
18604cat >>conftest.$ac_ext <<_ACEOF
18605/* end confdefs.h. */
8366cd6a 18606
8366cd6a 18607
34037afe 18608 #include <linux/types.h>
8366cd6a 18609
34037afe
ED
18610int
18611main (void)
18612{
8366cd6a 18613
34037afe 18614 fmode_t *ptr __attribute__ ((unused));
8366cd6a 18615
34037afe
ED
18616 ;
18617 return 0;
18618}
8366cd6a 18619
34037afe 18620_ACEOF
8366cd6a 18621
8366cd6a 18622
34037afe
ED
18623 rm -Rf build && mkdir -p build
18624 echo "obj-m := conftest.o" >build/Makefile
18625 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632 (eval $ac_try) 2>&5
18633 ac_status=$?
18634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; }; then
e70e591c 18636
34037afe
ED
18637 { $as_echo "$as_me:$LINENO: result: yes" >&5
18638$as_echo "yes" >&6; }
e70e591c 18639
34037afe
ED
18640cat >>confdefs.h <<\_ACEOF
18641#define HAVE_FMODE_T 1
18642_ACEOF
e70e591c
BB
18643
18644
34037afe
ED
18645else
18646 $as_echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
e70e591c 18648
34037afe
ED
18649 { $as_echo "$as_me:$LINENO: result: no" >&5
18650$as_echo "no" >&6; }
e70e591c
BB
18651
18652
18653
e70e591c
BB
18654fi
18655
34037afe 18656 rm -Rf build
e70e591c
BB
18657
18658
e70e591c 18659
8366cd6a 18660
34037afe
ED
18661 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
18662$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
8366cd6a 18663
8366cd6a 18664
34037afe
ED
18665cat confdefs.h - <<_ACEOF >conftest.c
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
e70e591c 18671
8366cd6a 18672
34037afe 18673 #include <linux/kobject.h>
8366cd6a 18674
34037afe
ED
18675int
18676main (void)
18677{
8366cd6a 18678
34037afe
ED
18679 int val __attribute__ ((unused));
18680 val = KOBJ_NAME_LEN;
8366cd6a 18681
34037afe
ED
18682 ;
18683 return 0;
18684}
8366cd6a 18685
34037afe 18686_ACEOF
8366cd6a 18687
8366cd6a 18688
34037afe
ED
18689 rm -Rf build && mkdir -p build
18690 echo "obj-m := conftest.o" >build/Makefile
18691 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18694 ac_status=$?
18695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698 (eval $ac_try) 2>&5
18699 ac_status=$?
18700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
8366cd6a 18702
34037afe
ED
18703 { $as_echo "$as_me:$LINENO: result: yes" >&5
18704$as_echo "yes" >&6; }
8366cd6a 18705
34037afe
ED
18706cat >>confdefs.h <<\_ACEOF
18707#define HAVE_KOBJ_NAME_LEN 1
18708_ACEOF
8366cd6a
PS
18709
18710
34037afe
ED
18711else
18712 $as_echo "$as_me: failed program was:" >&5
18713sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 18714
34037afe
ED
18715 { $as_echo "$as_me:$LINENO: result: no" >&5
18716$as_echo "no" >&6; }
e70e591c 18717
8366cd6a 18718
8366cd6a
PS
18719
18720fi
18721
34037afe 18722 rm -Rf build
e70e591c 18723
8366cd6a 18724
8366cd6a 18725
8366cd6a 18726
34037afe
ED
18727 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
18728$as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
18729 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
18730 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18731 rc=$?
18732 if test $rc -ne 0; then
e70e591c 18733
34037afe
ED
18734 export=0
18735 for file in fs/block_dev.c; do
18736 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
18737 rc=$?
18738 if test $rc -eq 0; then
8366cd6a 18739
34037afe
ED
18740 export=1
18741 break;
8366cd6a
PS
18742
18743fi
18744
34037afe
ED
18745 done
18746 if test $export -eq 0; then
e70e591c 18747
34037afe
ED
18748 { $as_echo "$as_me:$LINENO: result: no" >&5
18749$as_echo "no" >&6; }
8366cd6a 18750
8366cd6a 18751
34037afe 18752else
8366cd6a 18753
34037afe
ED
18754 { $as_echo "$as_me:$LINENO: result: yes" >&5
18755$as_echo "yes" >&6; }
8366cd6a 18756
34037afe
ED
18757cat >>confdefs.h <<\_ACEOF
18758#define HAVE_BLKDEV_GET_BY_PATH 1
18759_ACEOF
8366cd6a 18760
8366cd6a 18761
34037afe 18762fi
8366cd6a 18763
8366cd6a
PS
18764
18765else
18766
34037afe
ED
18767 { $as_echo "$as_me:$LINENO: result: yes" >&5
18768$as_echo "yes" >&6; }
8366cd6a 18769
34037afe
ED
18770cat >>confdefs.h <<\_ACEOF
18771#define HAVE_BLKDEV_GET_BY_PATH 1
18772_ACEOF
8366cd6a 18773
e70e591c 18774
34037afe 18775fi
e70e591c
BB
18776
18777
18778
18779
34037afe
ED
18780 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
18781$as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
18782 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
18783 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18784 rc=$?
18785 if test $rc -ne 0; then
e70e591c 18786
34037afe
ED
18787 export=0
18788 for file in fs/block_dev.c; do
18789 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
18790 rc=$?
18791 if test $rc -eq 0; then
15805c77 18792
34037afe
ED
18793 export=1
18794 break;
15805c77 18795
34037afe 18796fi
15805c77 18797
34037afe
ED
18798 done
18799 if test $export -eq 0; then
15805c77 18800
34037afe
ED
18801 { $as_echo "$as_me:$LINENO: result: no" >&5
18802$as_echo "no" >&6; }
15805c77 18803
15805c77 18804
34037afe 18805else
15805c77 18806
34037afe
ED
18807 { $as_echo "$as_me:$LINENO: result: yes" >&5
18808$as_echo "yes" >&6; }
15805c77 18809
34037afe
ED
18810cat >>confdefs.h <<\_ACEOF
18811#define HAVE_OPEN_BDEV_EXCLUSIVE 1
15805c77
BB
18812_ACEOF
18813
18814
34037afe 18815fi
15805c77 18816
15805c77
BB
18817
18818else
15805c77 18819
34037afe
ED
18820 { $as_echo "$as_me:$LINENO: result: yes" >&5
18821$as_echo "yes" >&6; }
15805c77 18822
34037afe
ED
18823cat >>confdefs.h <<\_ACEOF
18824#define HAVE_OPEN_BDEV_EXCLUSIVE 1
18825_ACEOF
15805c77
BB
18826
18827
18828fi
18829
15805c77
BB
18830
18831
18832
34037afe
ED
18833 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
18834$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
e70e591c
BB
18835
18836
18837cat confdefs.h - <<_ACEOF >conftest.c
18838/* confdefs.h. */
18839_ACEOF
18840cat confdefs.h >>conftest.$ac_ext
18841cat >>conftest.$ac_ext <<_ACEOF
18842/* end confdefs.h. */
18843
18844
34037afe 18845 #include <linux/buffer_head.h>
e70e591c
BB
18846
18847int
18848main (void)
18849{
18850
34037afe
ED
18851 struct block_device *bdev = NULL;
18852 invalidate_bdev(bdev);
e70e591c
BB
18853
18854 ;
18855 return 0;
18856}
18857
18858_ACEOF
18859
18860
18861 rm -Rf build && mkdir -p build
18862 echo "obj-m := conftest.o" >build/Makefile
18863 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865 (eval $ac_try) 2>&5
18866 ac_status=$?
18867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874
18875 { $as_echo "$as_me:$LINENO: result: yes" >&5
18876$as_echo "yes" >&6; }
34037afe
ED
18877
18878cat >>confdefs.h <<\_ACEOF
18879#define HAVE_1ARG_INVALIDATE_BDEV 1
18880_ACEOF
18881
e70e591c
BB
18882
18883else
18884 $as_echo "$as_me: failed program was:" >&5
18885sed 's/^/| /' conftest.$ac_ext >&5
18886
18887 { $as_echo "$as_me:$LINENO: result: no" >&5
18888$as_echo "no" >&6; }
18889
18890
18891
e70e591c
BB
18892fi
18893
18894 rm -Rf build
18895
18896
18897
8366cd6a 18898
34037afe
ED
18899 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
18900$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
b9c59ec8
PS
18901 tmp_flags="$EXTRA_KCFLAGS"
18902 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18903
18904
18905cat confdefs.h - <<_ACEOF >conftest.c
18906/* confdefs.h. */
18907_ACEOF
18908cat confdefs.h >>conftest.$ac_ext
18909cat >>conftest.$ac_ext <<_ACEOF
18910/* end confdefs.h. */
18911
18912
18913 #include <linux/blkdev.h>
18914
18915int
18916main (void)
18917{
18918
34037afe
ED
18919 struct block_device *bdev = NULL;
18920 bdev_logical_block_size(bdev);
e70e591c
BB
18921
18922 ;
18923 return 0;
18924}
18925
18926_ACEOF
18927
18928
18929 rm -Rf build && mkdir -p build
18930 echo "obj-m := conftest.o" >build/Makefile
18931 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942
34037afe
ED
18943 { $as_echo "$as_me:$LINENO: result: yes" >&5
18944$as_echo "yes" >&6; }
e70e591c
BB
18945
18946cat >>confdefs.h <<\_ACEOF
34037afe 18947#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
e70e591c
BB
18948_ACEOF
18949
18950
18951else
18952 $as_echo "$as_me: failed program was:" >&5
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
34037afe
ED
18955 { $as_echo "$as_me:$LINENO: result: no" >&5
18956$as_echo "no" >&6; }
e70e591c
BB
18957
18958
18959
18960fi
18961
18962 rm -Rf build
18963
18964
b9c59ec8 18965 EXTRA_KCFLAGS="$tmp_flags"
e70e591c 18966
34037afe
ED
18967
18968 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
18969$as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
18970 EXTRA_KCFLAGS="-Werror"
e70e591c
BB
18971
18972
18973cat confdefs.h - <<_ACEOF >conftest.c
18974/* confdefs.h. */
18975_ACEOF
18976cat confdefs.h >>conftest.$ac_ext
18977cat >>conftest.$ac_ext <<_ACEOF
18978/* end confdefs.h. */
18979
18980
34037afe 18981 #include <linux/bio.h>
e70e591c
BB
18982
18983int
18984main (void)
18985{
18986
34037afe
ED
18987 struct bio bio;
18988 (void)bio_empty_barrier(&bio);
e70e591c
BB
18989
18990 ;
18991 return 0;
18992}
18993
18994_ACEOF
18995
18996
18997 rm -Rf build && mkdir -p build
18998 echo "obj-m := conftest.o" >build/Makefile
18999 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; }; then
19010
19011 { $as_echo "$as_me:$LINENO: result: yes" >&5
19012$as_echo "yes" >&6; }
19013
19014cat >>confdefs.h <<\_ACEOF
34037afe 19015#define HAVE_BIO_EMPTY_BARRIER 1
e70e591c
BB
19016_ACEOF
19017
19018
19019else
19020 $as_echo "$as_me: failed program was:" >&5
19021sed 's/^/| /' conftest.$ac_ext >&5
19022
19023 { $as_echo "$as_me:$LINENO: result: no" >&5
19024$as_echo "no" >&6; }
19025
19026
19027
19028fi
19029
19030 rm -Rf build
19031
19032
19033
19034
34037afe
ED
19035 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
19036$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
e70e591c
BB
19037
19038
19039cat confdefs.h - <<_ACEOF >conftest.c
19040/* confdefs.h. */
19041_ACEOF
19042cat confdefs.h >>conftest.$ac_ext
19043cat >>conftest.$ac_ext <<_ACEOF
19044/* end confdefs.h. */
19045
19046
34037afe 19047 #include <linux/bio.h>
e70e591c
BB
19048
19049int
19050main (void)
19051{
19052
34037afe
ED
19053 int flags __attribute__ ((unused));
19054 flags = (1 << BIO_RW_FAILFAST);
e70e591c
BB
19055
19056 ;
19057 return 0;
19058}
19059
19060_ACEOF
19061
19062
19063 rm -Rf build && mkdir -p build
19064 echo "obj-m := conftest.o" >build/Makefile
19065 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19068 ac_status=$?
19069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076
19077 { $as_echo "$as_me:$LINENO: result: yes" >&5
19078$as_echo "yes" >&6; }
19079
19080cat >>confdefs.h <<\_ACEOF
34037afe 19081#define HAVE_BIO_RW_FAILFAST 1
e70e591c
BB
19082_ACEOF
19083
19084
19085else
19086 $as_echo "$as_me: failed program was:" >&5
19087sed 's/^/| /' conftest.$ac_ext >&5
19088
19089 { $as_echo "$as_me:$LINENO: result: no" >&5
19090$as_echo "no" >&6; }
19091
19092
19093
19094fi
19095
19096 rm -Rf build
19097
19098
19099
19100
34037afe
ED
19101 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
19102$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
8366cd6a 19103
45066d1f 19104
34037afe
ED
19105cat confdefs.h - <<_ACEOF >conftest.c
19106/* confdefs.h. */
45066d1f 19107_ACEOF
34037afe
ED
19108cat confdefs.h >>conftest.$ac_ext
19109cat >>conftest.$ac_ext <<_ACEOF
19110/* end confdefs.h. */
45066d1f 19111
8366cd6a 19112
34037afe 19113 #include <linux/bio.h>
8366cd6a 19114
34037afe
ED
19115int
19116main (void)
19117{
8366cd6a 19118
34037afe
ED
19119 int flags __attribute__ ((unused));
19120 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19121 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19122 (1 << BIO_RW_FAILFAST_DRIVER));
8366cd6a 19123
34037afe
ED
19124 ;
19125 return 0;
19126}
8366cd6a 19127
34037afe 19128_ACEOF
e70e591c 19129
8366cd6a 19130
34037afe
ED
19131 rm -Rf build && mkdir -p build
19132 echo "obj-m := conftest.o" >build/Makefile
19133 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135 (eval $ac_try) 2>&5
19136 ac_status=$?
19137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140 (eval $ac_try) 2>&5
19141 ac_status=$?
19142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; }; then
8366cd6a 19144
34037afe 19145 { $as_echo "$as_me:$LINENO: result: yes" >&5
e70e591c
BB
19146$as_echo "yes" >&6; }
19147
19148cat >>confdefs.h <<\_ACEOF
34037afe 19149#define HAVE_BIO_RW_FAILFAST_DTD 1
e70e591c
BB
19150_ACEOF
19151
8366cd6a 19152
8366cd6a 19153else
34037afe
ED
19154 $as_echo "$as_me: failed program was:" >&5
19155sed 's/^/| /' conftest.$ac_ext >&5
8366cd6a 19156
34037afe
ED
19157 { $as_echo "$as_me:$LINENO: result: no" >&5
19158$as_echo "no" >&6; }
e70e591c 19159
e70e591c 19160
8366cd6a
PS
19161
19162fi
19163
34037afe
ED
19164 rm -Rf build
19165
e70e591c
BB
19166
19167
19168
34037afe
ED
19169 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
19170$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
e70e591c
BB
19171
19172
19173cat confdefs.h - <<_ACEOF >conftest.c
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179
19180
34037afe 19181 #include <linux/bio.h>
e70e591c
BB
19182
19183int
19184main (void)
19185{
19186
34037afe
ED
19187 int flags __attribute__ ((unused));
19188 flags = REQ_FAILFAST_MASK;
e70e591c
BB
19189
19190 ;
19191 return 0;
19192}
19193
19194_ACEOF
19195
19196
19197 rm -Rf build && mkdir -p build
19198 echo "obj-m := conftest.o" >build/Makefile
19199 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19206 (eval $ac_try) 2>&5
19207 ac_status=$?
19208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; }; then
19210
19211 { $as_echo "$as_me:$LINENO: result: yes" >&5
19212$as_echo "yes" >&6; }
19213
19214cat >>confdefs.h <<\_ACEOF
34037afe 19215#define HAVE_BIO_REQ_FAILFAST_MASK 1
e70e591c
BB
19216_ACEOF
19217
19218
19219else
19220 $as_echo "$as_me: failed program was:" >&5
19221sed 's/^/| /' conftest.$ac_ext >&5
19222
19223 { $as_echo "$as_me:$LINENO: result: no" >&5
19224$as_echo "no" >&6; }
19225
19226
19227
19228fi
19229
19230 rm -Rf build
19231
19232
19233
19234
34037afe
ED
19235 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
19236$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
b9c59ec8 19237 tmp_flags="$EXTRA_KCFLAGS"
34037afe 19238 EXTRA_KCFLAGS="-Werror"
e70e591c
BB
19239
19240
19241cat confdefs.h - <<_ACEOF >conftest.c
19242/* confdefs.h. */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
19246/* end confdefs.h. */
19247
19248
34037afe 19249 #include <linux/bio.h>
e70e591c
BB
19250
19251int
19252main (void)
19253{
19254
34037afe
ED
19255 void (*wanted_end_io)(struct bio *, int) = NULL;
19256 bio_end_io_t *local_end_io __attribute__ ((unused));
19257
19258 local_end_io = wanted_end_io;
e70e591c
BB
19259
19260 ;
19261 return 0;
19262}
19263
19264_ACEOF
19265
19266
19267 rm -Rf build && mkdir -p build
19268 echo "obj-m := conftest.o" >build/Makefile
19269 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19272 ac_status=$?
19273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19280
19281 { $as_echo "$as_me:$LINENO: result: yes" >&5
19282$as_echo "yes" >&6; }
19283
19284cat >>confdefs.h <<\_ACEOF
34037afe 19285#define HAVE_2ARGS_BIO_END_IO_T 1
e70e591c
BB
19286_ACEOF
19287
19288
19289else
19290 $as_echo "$as_me: failed program was:" >&5
19291sed 's/^/| /' conftest.$ac_ext >&5
19292
19293 { $as_echo "$as_me:$LINENO: result: no" >&5
19294$as_echo "no" >&6; }
19295
19296
19297
19298fi
19299
19300 rm -Rf build
19301
19302
b9c59ec8 19303 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
19304
19305
34037afe
ED
19306 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
19307$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
e70e591c
BB
19308
19309
19310cat confdefs.h - <<_ACEOF >conftest.c
19311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
19316
19317
19318 #include <linux/bio.h>
19319
19320int
19321main (void)
19322{
19323
34037afe
ED
19324 int flags __attribute__ ((unused));
19325 flags = BIO_RW_SYNC;
e70e591c
BB
19326
19327 ;
19328 return 0;
19329}
19330
19331_ACEOF
19332
19333
19334 rm -Rf build && mkdir -p build
19335 echo "obj-m := conftest.o" >build/Makefile
19336 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19338 (eval $ac_try) 2>&5
19339 ac_status=$?
19340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19341 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347
19348 { $as_echo "$as_me:$LINENO: result: yes" >&5
19349$as_echo "yes" >&6; }
19350
19351cat >>confdefs.h <<\_ACEOF
34037afe 19352#define HAVE_BIO_RW_SYNC 1
e70e591c
BB
19353_ACEOF
19354
19355
19356else
19357 $as_echo "$as_me: failed program was:" >&5
19358sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 { $as_echo "$as_me:$LINENO: result: no" >&5
19361$as_echo "no" >&6; }
19362
19363
19364
19365fi
19366
19367 rm -Rf build
19368
19369
19370
19371
34037afe
ED
19372 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
19373$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
f4af6bb7
BB
19374
19375
19376cat confdefs.h - <<_ACEOF >conftest.c
19377/* confdefs.h. */
19378_ACEOF
19379cat confdefs.h >>conftest.$ac_ext
19380cat >>conftest.$ac_ext <<_ACEOF
19381/* end confdefs.h. */
19382
19383
19384 #include <linux/bio.h>
19385
19386int
19387main (void)
19388{
19389
79713039 19390 int flags __attribute__ ((unused));
34037afe 19391 flags = BIO_RW_SYNCIO;
f4af6bb7
BB
19392
19393 ;
19394 return 0;
19395}
19396
19397_ACEOF
19398
19399
19400 rm -Rf build && mkdir -p build
19401 echo "obj-m := conftest.o" >build/Makefile
19402 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; }; then
19413
19414 { $as_echo "$as_me:$LINENO: result: yes" >&5
19415$as_echo "yes" >&6; }
19416
19417cat >>confdefs.h <<\_ACEOF
34037afe 19418#define HAVE_BIO_RW_SYNCIO 1
f4af6bb7
BB
19419_ACEOF
19420
19421
19422else
19423 $as_echo "$as_me: failed program was:" >&5
19424sed 's/^/| /' conftest.$ac_ext >&5
19425
19426 { $as_echo "$as_me:$LINENO: result: no" >&5
19427$as_echo "no" >&6; }
19428
19429
19430
19431fi
19432
19433 rm -Rf build
19434
19435
19436
19437
34037afe
ED
19438 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
19439$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
2959d94a
BB
19440
19441
19442cat confdefs.h - <<_ACEOF >conftest.c
19443/* confdefs.h. */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
19447/* end confdefs.h. */
19448
19449
19450 #include <linux/bio.h>
19451
19452int
19453main (void)
19454{
19455
79713039 19456 int flags __attribute__ ((unused));
34037afe 19457 flags = REQ_SYNC;
2959d94a
BB
19458
19459 ;
19460 return 0;
19461}
19462
19463_ACEOF
19464
19465
19466 rm -Rf build && mkdir -p build
19467 echo "obj-m := conftest.o" >build/Makefile
19468 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19475 (eval $ac_try) 2>&5
19476 ac_status=$?
19477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; }; then
19479
19480 { $as_echo "$as_me:$LINENO: result: yes" >&5
19481$as_echo "yes" >&6; }
19482
19483cat >>confdefs.h <<\_ACEOF
34037afe 19484#define HAVE_REQ_SYNC 1
f4af6bb7
BB
19485_ACEOF
19486
19487
19488else
19489 $as_echo "$as_me: failed program was:" >&5
19490sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 { $as_echo "$as_me:$LINENO: result: no" >&5
19493$as_echo "no" >&6; }
19494
19495
19496
19497fi
19498
19499 rm -Rf build
19500
19501
19502
19503
34037afe
ED
19504 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
19505$as_echo_n "checking whether blk_end_request() is available... " >&6; }
19506 tmp_flags="$EXTRA_KCFLAGS"
19507 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
f4af6bb7
BB
19508
19509
19510cat confdefs.h - <<_ACEOF >conftest.c
19511/* confdefs.h. */
19512_ACEOF
19513cat confdefs.h >>conftest.$ac_ext
19514cat >>conftest.$ac_ext <<_ACEOF
19515/* end confdefs.h. */
19516
19517
34037afe 19518 #include <linux/blkdev.h>
f4af6bb7
BB
19519
19520int
19521main (void)
19522{
19523
34037afe
ED
19524 struct request *req = NULL;
19525 (void) blk_end_request(req, 0, 0);
f4af6bb7
BB
19526
19527 ;
19528 return 0;
19529}
19530
19531_ACEOF
19532
19533
19534 rm -Rf build && mkdir -p build
19535 echo "obj-m := conftest.o" >build/Makefile
19536 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543 (eval $ac_try) 2>&5
19544 ac_status=$?
19545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547
19548 { $as_echo "$as_me:$LINENO: result: yes" >&5
19549$as_echo "yes" >&6; }
19550
19551cat >>confdefs.h <<\_ACEOF
34037afe 19552#define HAVE_BLK_END_REQUEST 1
2959d94a
BB
19553_ACEOF
19554
19555
19556else
19557 $as_echo "$as_me: failed program was:" >&5
19558sed 's/^/| /' conftest.$ac_ext >&5
19559
19560 { $as_echo "$as_me:$LINENO: result: no" >&5
19561$as_echo "no" >&6; }
19562
19563
19564
19565fi
19566
19567 rm -Rf build
19568
19569
19570
34037afe
ED
19571 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
19572$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
e70e591c
BB
19573
19574
19575cat confdefs.h - <<_ACEOF >conftest.c
19576/* confdefs.h. */
19577_ACEOF
19578cat confdefs.h >>conftest.$ac_ext
19579cat >>conftest.$ac_ext <<_ACEOF
19580/* end confdefs.h. */
19581
19582
34037afe
ED
19583 #include <linux/module.h>
19584 #include <linux/blkdev.h>
19585
19586 MODULE_LICENSE("CDDL");
e70e591c
BB
19587
19588int
19589main (void)
19590{
19591
34037afe
ED
19592 struct request *req = NULL;
19593 (void) blk_end_request(req, 0, 0);
e70e591c
BB
19594
19595 ;
19596 return 0;
19597}
19598
19599_ACEOF
19600
19601
19602 rm -Rf build && mkdir -p build
19603 echo "obj-m := conftest.o" >build/Makefile
19604 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19615
34037afe
ED
19616 { $as_echo "$as_me:$LINENO: result: no" >&5
19617$as_echo "no" >&6; }
19618
19619else
19620 $as_echo "$as_me: failed program was:" >&5
19621sed 's/^/| /' conftest.$ac_ext >&5
19622
e70e591c
BB
19623 { $as_echo "$as_me:$LINENO: result: yes" >&5
19624$as_echo "yes" >&6; }
19625
19626cat >>confdefs.h <<\_ACEOF
34037afe 19627#define HAVE_BLK_END_REQUEST_GPL_ONLY 1
e70e591c
BB
19628_ACEOF
19629
19630
e70e591c
BB
19631
19632
19633fi
19634
19635 rm -Rf build
19636
19637
19638 EXTRA_KCFLAGS="$tmp_flags"
19639
19640
34037afe
ED
19641 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
19642$as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
19643 tmp_flags="$EXTRA_KCFLAGS"
19644 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
675de5aa
BB
19645
19646
19647cat confdefs.h - <<_ACEOF >conftest.c
19648/* confdefs.h. */
19649_ACEOF
19650cat confdefs.h >>conftest.$ac_ext
19651cat >>conftest.$ac_ext <<_ACEOF
19652/* end confdefs.h. */
19653
19654
34037afe 19655 #include <linux/blkdev.h>
675de5aa
BB
19656
19657int
19658main (void)
19659{
19660
34037afe
ED
19661 struct request_queue *q = NULL;
19662 (void) blk_queue_flush(q, REQ_FLUSH);
675de5aa
BB
19663
19664 ;
19665 return 0;
19666}
19667
19668_ACEOF
19669
19670
19671 rm -Rf build && mkdir -p build
19672 echo "obj-m := conftest.o" >build/Makefile
19673 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; }; then
19684
19685 { $as_echo "$as_me:$LINENO: result: yes" >&5
19686$as_echo "yes" >&6; }
19687
19688cat >>confdefs.h <<\_ACEOF
34037afe 19689#define HAVE_BLK_QUEUE_FLUSH 1
675de5aa
BB
19690_ACEOF
19691
19692
19693else
19694 $as_echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 { $as_echo "$as_me:$LINENO: result: no" >&5
19698$as_echo "no" >&6; }
19699
19700
19701
19702fi
19703
19704 rm -Rf build
19705
19706
19707
34037afe
ED
19708 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
19709$as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
e70e591c
BB
19710
19711
19712cat confdefs.h - <<_ACEOF >conftest.c
19713/* confdefs.h. */
19714_ACEOF
19715cat confdefs.h >>conftest.$ac_ext
19716cat >>conftest.$ac_ext <<_ACEOF
19717/* end confdefs.h. */
19718
19719
34037afe
ED
19720 #include <linux/module.h>
19721 #include <linux/blkdev.h>
19722
19723 MODULE_LICENSE("CDDL");
e70e591c
BB
19724
19725int
19726main (void)
19727{
19728
34037afe
ED
19729 struct request_queue *q = NULL;
19730 (void) blk_queue_flush(q, REQ_FLUSH);
e70e591c
BB
19731
19732 ;
19733 return 0;
19734}
19735
19736_ACEOF
19737
19738
19739 rm -Rf build && mkdir -p build
19740 echo "obj-m := conftest.o" >build/Makefile
19741 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752
34037afe
ED
19753 { $as_echo "$as_me:$LINENO: result: no" >&5
19754$as_echo "no" >&6; }
19755
19756else
19757 $as_echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
e70e591c
BB
19760 { $as_echo "$as_me:$LINENO: result: yes" >&5
19761$as_echo "yes" >&6; }
19762
19763cat >>confdefs.h <<\_ACEOF
34037afe 19764#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
e70e591c
BB
19765_ACEOF
19766
19767
e70e591c
BB
19768
19769
19770fi
19771
19772 rm -Rf build
19773
19774
34037afe 19775 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
19776
19777
34037afe
ED
19778 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
19779$as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
19780 tmp_flags="$EXTRA_KCFLAGS"
19781 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
675de5aa
BB
19782
19783
19784cat confdefs.h - <<_ACEOF >conftest.c
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
19790
19791
34037afe 19792 #include <linux/blkdev.h>
675de5aa
BB
19793
19794int
19795main (void)
19796{
19797
34037afe
ED
19798 struct request_queue *q = NULL;
19799 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
675de5aa
BB
19800
19801 ;
19802 return 0;
19803}
19804
19805_ACEOF
19806
19807
19808 rm -Rf build && mkdir -p build
19809 echo "obj-m := conftest.o" >build/Makefile
19810 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821
19822 { $as_echo "$as_me:$LINENO: result: yes" >&5
19823$as_echo "yes" >&6; }
19824
19825cat >>confdefs.h <<\_ACEOF
34037afe 19826#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
675de5aa
BB
19827_ACEOF
19828
19829
19830else
19831 $as_echo "$as_me: failed program was:" >&5
19832sed 's/^/| /' conftest.$ac_ext >&5
19833
19834 { $as_echo "$as_me:$LINENO: result: no" >&5
19835$as_echo "no" >&6; }
19836
19837
19838
19839fi
19840
19841 rm -Rf build
19842
19843
34037afe 19844 EXTRA_KCFLAGS="$tmp_flags"
675de5aa
BB
19845
19846
34037afe
ED
19847 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
19848$as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
b9c59ec8
PS
19849 tmp_flags="$EXTRA_KCFLAGS"
19850 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
19851
19852
19853cat confdefs.h - <<_ACEOF >conftest.c
19854/* confdefs.h. */
19855_ACEOF
19856cat confdefs.h >>conftest.$ac_ext
19857cat >>conftest.$ac_ext <<_ACEOF
19858/* end confdefs.h. */
19859
19860
19861 #include <linux/blkdev.h>
19862
19863int
19864main (void)
19865{
19866
34037afe
ED
19867 struct request_queue *q = NULL;
19868 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
e70e591c
BB
19869
19870 ;
19871 return 0;
19872}
19873
19874_ACEOF
19875
19876
19877 rm -Rf build && mkdir -p build
19878 echo "obj-m := conftest.o" >build/Makefile
19879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19882 ac_status=$?
19883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886 (eval $ac_try) 2>&5
19887 ac_status=$?
19888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890
19891 { $as_echo "$as_me:$LINENO: result: yes" >&5
19892$as_echo "yes" >&6; }
19893
19894cat >>confdefs.h <<\_ACEOF
34037afe 19895#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
e70e591c
BB
19896_ACEOF
19897
19898
19899else
19900 $as_echo "$as_me: failed program was:" >&5
19901sed 's/^/| /' conftest.$ac_ext >&5
19902
19903 { $as_echo "$as_me:$LINENO: result: no" >&5
19904$as_echo "no" >&6; }
19905
19906
19907
19908fi
19909
19910 rm -Rf build
19911
19912
34037afe 19913 EXTRA_KCFLAGS="$tmp_flags"
e70e591c 19914
34037afe
ED
19915
19916 { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
19917$as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
19918 tmp_flags="$EXTRA_KCFLAGS"
19919 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
19920
19921
19922cat confdefs.h - <<_ACEOF >conftest.c
19923/* confdefs.h. */
19924_ACEOF
19925cat confdefs.h >>conftest.$ac_ext
19926cat >>conftest.$ac_ext <<_ACEOF
19927/* end confdefs.h. */
19928
19929
e70e591c
BB
19930 #include <linux/blkdev.h>
19931
e70e591c
BB
19932int
19933main (void)
19934{
19935
34037afe
ED
19936 struct request_queue *q = NULL;
19937 unsigned short block_size = 1;
19938 (void) blk_queue_physical_block_size(q, block_size);
e70e591c
BB
19939
19940 ;
19941 return 0;
19942}
19943
19944_ACEOF
19945
19946
19947 rm -Rf build && mkdir -p build
19948 echo "obj-m := conftest.o" >build/Makefile
19949 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951 (eval $ac_try) 2>&5
19952 ac_status=$?
19953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19956 (eval $ac_try) 2>&5
19957 ac_status=$?
19958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); }; }; then
19960
e70e591c
BB
19961 { $as_echo "$as_me:$LINENO: result: yes" >&5
19962$as_echo "yes" >&6; }
19963
19964cat >>confdefs.h <<\_ACEOF
34037afe 19965#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
e70e591c
BB
19966_ACEOF
19967
19968
34037afe
ED
19969else
19970 $as_echo "$as_me: failed program was:" >&5
19971sed 's/^/| /' conftest.$ac_ext >&5
19972
19973 { $as_echo "$as_me:$LINENO: result: no" >&5
19974$as_echo "no" >&6; }
19975
e70e591c
BB
19976
19977
b18019d2
ED
19978fi
19979
19980 rm -Rf build
19981
19982
19983 EXTRA_KCFLAGS="$tmp_flags"
19984
19985
34037afe
ED
19986 { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
19987$as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
b18019d2
ED
19988 tmp_flags="$EXTRA_KCFLAGS"
19989 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19990
19991
19992cat confdefs.h - <<_ACEOF >conftest.c
19993/* confdefs.h. */
19994_ACEOF
19995cat confdefs.h >>conftest.$ac_ext
19996cat >>conftest.$ac_ext <<_ACEOF
19997/* end confdefs.h. */
19998
19999
20000 #include <linux/blkdev.h>
20001
20002int
20003main (void)
20004{
20005
20006 struct request_queue *q = NULL;
34037afe
ED
20007 unsigned int opt = 1;
20008 (void) blk_queue_io_opt(q, opt);
b18019d2
ED
20009
20010 ;
20011 return 0;
20012}
20013
20014_ACEOF
20015
20016
20017 rm -Rf build && mkdir -p build
20018 echo "obj-m := conftest.o" >build/Makefile
20019 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20027 ac_status=$?
20028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030
20031 { $as_echo "$as_me:$LINENO: result: yes" >&5
20032$as_echo "yes" >&6; }
20033
20034cat >>confdefs.h <<\_ACEOF
34037afe 20035#define HAVE_BLK_QUEUE_IO_OPT 1
b18019d2
ED
20036_ACEOF
20037
20038
20039else
20040 $as_echo "$as_me: failed program was:" >&5
20041sed 's/^/| /' conftest.$ac_ext >&5
20042
20043 { $as_echo "$as_me:$LINENO: result: no" >&5
20044$as_echo "no" >&6; }
20045
20046
20047
20048fi
20049
20050 rm -Rf build
20051
20052
34037afe
ED
20053 EXTRA_KCFLAGS="$tmp_flags"
20054
b18019d2 20055
34037afe
ED
20056 { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
20057$as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20058 tmp_flags="$EXTRA_KCFLAGS"
20059 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
b18019d2
ED
20060
20061
20062cat confdefs.h - <<_ACEOF >conftest.c
20063/* confdefs.h. */
20064_ACEOF
20065cat confdefs.h >>conftest.$ac_ext
20066cat >>conftest.$ac_ext <<_ACEOF
20067/* end confdefs.h. */
20068
20069
b18019d2
ED
20070 #include <linux/blkdev.h>
20071
b18019d2
ED
20072int
20073main (void)
20074{
20075
20076 struct request_queue *q = NULL;
34037afe 20077 (void) blk_queue_nonrot(q);
b18019d2
ED
20078
20079 ;
20080 return 0;
20081}
20082
20083_ACEOF
20084
20085
20086 rm -Rf build && mkdir -p build
20087 echo "obj-m := conftest.o" >build/Makefile
20088 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20091 ac_status=$?
20092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095 (eval $ac_try) 2>&5
20096 ac_status=$?
20097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; }; then
20099
b18019d2
ED
20100 { $as_echo "$as_me:$LINENO: result: yes" >&5
20101$as_echo "yes" >&6; }
20102
20103cat >>confdefs.h <<\_ACEOF
34037afe 20104#define HAVE_BLK_QUEUE_NONROT 1
b18019d2
ED
20105_ACEOF
20106
20107
34037afe
ED
20108else
20109 $as_echo "$as_me: failed program was:" >&5
20110sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 { $as_echo "$as_me:$LINENO: result: no" >&5
20113$as_echo "no" >&6; }
20114
b18019d2
ED
20115
20116
30930fba
ED
20117fi
20118
20119 rm -Rf build
20120
20121
20122 EXTRA_KCFLAGS="$tmp_flags"
20123
20124
20125 { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
20126$as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20127 tmp_flags="$EXTRA_KCFLAGS"
20128 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20129
20130
20131cat confdefs.h - <<_ACEOF >conftest.c
20132/* confdefs.h. */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h. */
20137
20138
20139 #include <linux/blkdev.h>
20140
20141int
20142main (void)
20143{
20144
20145 struct request_queue *q = NULL;
20146 (void) blk_queue_discard(q);
20147
20148 ;
20149 return 0;
20150}
20151
20152_ACEOF
20153
20154
20155 rm -Rf build && mkdir -p build
20156 echo "obj-m := conftest.o" >build/Makefile
20157 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168
20169 { $as_echo "$as_me:$LINENO: result: yes" >&5
20170$as_echo "yes" >&6; }
20171
20172cat >>confdefs.h <<\_ACEOF
20173#define HAVE_BLK_QUEUE_DISCARD 1
20174_ACEOF
20175
20176
20177else
20178 $as_echo "$as_me: failed program was:" >&5
20179sed 's/^/| /' conftest.$ac_ext >&5
20180
20181 { $as_echo "$as_me:$LINENO: result: no" >&5
20182$as_echo "no" >&6; }
20183
20184
20185
e70e591c
BB
20186fi
20187
20188 rm -Rf build
20189
20190
b9c59ec8 20191 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20192
20193
20194 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
20195$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
b9c59ec8
PS
20196 tmp_flags="$EXTRA_KCFLAGS"
20197 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20198
20199
20200cat confdefs.h - <<_ACEOF >conftest.c
20201/* confdefs.h. */
20202_ACEOF
20203cat confdefs.h >>conftest.$ac_ext
20204cat >>conftest.$ac_ext <<_ACEOF
20205/* end confdefs.h. */
20206
20207
20208 #include <linux/blkdev.h>
20209
20210int
20211main (void)
20212{
20213
20214 struct request_queue *q = NULL;
20215 (void) blk_fetch_request(q);
20216
20217 ;
20218 return 0;
20219}
20220
20221_ACEOF
20222
20223
20224 rm -Rf build && mkdir -p build
20225 echo "obj-m := conftest.o" >build/Makefile
20226 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228 (eval $ac_try) 2>&5
20229 ac_status=$?
20230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
20237
20238 { $as_echo "$as_me:$LINENO: result: yes" >&5
20239$as_echo "yes" >&6; }
20240
20241cat >>confdefs.h <<\_ACEOF
20242#define HAVE_BLK_FETCH_REQUEST 1
20243_ACEOF
20244
20245
20246else
20247 $as_echo "$as_me: failed program was:" >&5
20248sed 's/^/| /' conftest.$ac_ext >&5
20249
20250 { $as_echo "$as_me:$LINENO: result: no" >&5
20251$as_echo "no" >&6; }
20252
20253
20254
20255fi
20256
20257 rm -Rf build
20258
20259
b9c59ec8 20260 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20261
20262
20263 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
20264$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
b9c59ec8
PS
20265 tmp_flags="$EXTRA_KCFLAGS"
20266 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20267
20268
20269cat confdefs.h - <<_ACEOF >conftest.c
20270/* confdefs.h. */
20271_ACEOF
20272cat confdefs.h >>conftest.$ac_ext
20273cat >>conftest.$ac_ext <<_ACEOF
20274/* end confdefs.h. */
20275
20276
20277 #include <linux/blkdev.h>
20278
20279int
20280main (void)
20281{
20282
20283 struct request_queue *q = NULL;
20284 struct request *req = NULL;
20285 blk_requeue_request(q, req);
20286
20287 ;
20288 return 0;
20289}
20290
20291_ACEOF
20292
20293
20294 rm -Rf build && mkdir -p build
20295 echo "obj-m := conftest.o" >build/Makefile
20296 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20299 ac_status=$?
20300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307
20308 { $as_echo "$as_me:$LINENO: result: yes" >&5
20309$as_echo "yes" >&6; }
20310
20311cat >>confdefs.h <<\_ACEOF
20312#define HAVE_BLK_REQUEUE_REQUEST 1
20313_ACEOF
20314
20315
20316else
20317 $as_echo "$as_me: failed program was:" >&5
20318sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 { $as_echo "$as_me:$LINENO: result: no" >&5
20321$as_echo "no" >&6; }
20322
20323
20324
20325fi
20326
20327 rm -Rf build
20328
20329
b9c59ec8 20330 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20331
20332
20333 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
20334$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
b9c59ec8
PS
20335 tmp_flags="$EXTRA_KCFLAGS"
20336 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20337
20338
20339cat confdefs.h - <<_ACEOF >conftest.c
20340/* confdefs.h. */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h. */
20345
20346
20347 #include <linux/blkdev.h>
20348
20349int
20350main (void)
20351{
20352
20353 struct request *req = NULL;
20354 (void) blk_rq_bytes(req);
20355
20356 ;
20357 return 0;
20358}
20359
20360_ACEOF
20361
20362
20363 rm -Rf build && mkdir -p build
20364 echo "obj-m := conftest.o" >build/Makefile
20365 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20367 (eval $ac_try) 2>&5
20368 ac_status=$?
20369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376
20377 { $as_echo "$as_me:$LINENO: result: yes" >&5
20378$as_echo "yes" >&6; }
20379
20380cat >>confdefs.h <<\_ACEOF
20381#define HAVE_BLK_RQ_BYTES 1
20382_ACEOF
20383
20384
20385else
20386 $as_echo "$as_me: failed program was:" >&5
20387sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 { $as_echo "$as_me:$LINENO: result: no" >&5
20390$as_echo "no" >&6; }
20391
20392
20393
20394fi
20395
20396 rm -Rf build
20397
20398
20399
20400 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
20401$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20402
20403
20404cat confdefs.h - <<_ACEOF >conftest.c
20405/* confdefs.h. */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
20409/* end confdefs.h. */
20410
20411
20412 #include <linux/module.h>
20413 #include <linux/blkdev.h>
20414
20415 MODULE_LICENSE("CDDL");
20416
20417int
20418main (void)
20419{
20420
20421 struct request *req = NULL;
20422 (void) blk_rq_bytes(req);
20423
20424 ;
20425 return 0;
20426}
20427
20428_ACEOF
20429
20430
20431 rm -Rf build && mkdir -p build
20432 echo "obj-m := conftest.o" >build/Makefile
20433 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440 (eval $ac_try) 2>&5
20441 ac_status=$?
20442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); }; }; then
20444
20445 { $as_echo "$as_me:$LINENO: result: no" >&5
20446$as_echo "no" >&6; }
20447
20448else
20449 $as_echo "$as_me: failed program was:" >&5
20450sed 's/^/| /' conftest.$ac_ext >&5
20451
20452 { $as_echo "$as_me:$LINENO: result: yes" >&5
20453$as_echo "yes" >&6; }
20454
20455cat >>confdefs.h <<\_ACEOF
20456#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
20457_ACEOF
20458
20459
20460
20461
20462fi
20463
20464 rm -Rf build
20465
20466
b9c59ec8 20467 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20468
20469
20470 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
20471$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
b9c59ec8
PS
20472 tmp_flags="$EXTRA_KCFLAGS"
20473 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20474
20475
20476cat confdefs.h - <<_ACEOF >conftest.c
20477/* confdefs.h. */
20478_ACEOF
20479cat confdefs.h >>conftest.$ac_ext
20480cat >>conftest.$ac_ext <<_ACEOF
20481/* end confdefs.h. */
20482
20483
20484 #include <linux/blkdev.h>
20485
20486int
20487main (void)
20488{
20489
20490 struct request *req = NULL;
20491 (void) blk_rq_pos(req);
20492
20493 ;
20494 return 0;
20495}
20496
20497_ACEOF
20498
20499
20500 rm -Rf build && mkdir -p build
20501 echo "obj-m := conftest.o" >build/Makefile
20502 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504 (eval $ac_try) 2>&5
20505 ac_status=$?
20506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20510 ac_status=$?
20511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; }; then
20513
20514 { $as_echo "$as_me:$LINENO: result: yes" >&5
20515$as_echo "yes" >&6; }
20516
20517cat >>confdefs.h <<\_ACEOF
20518#define HAVE_BLK_RQ_POS 1
20519_ACEOF
20520
20521
20522else
20523 $as_echo "$as_me: failed program was:" >&5
20524sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 { $as_echo "$as_me:$LINENO: result: no" >&5
20527$as_echo "no" >&6; }
20528
20529
20530
20531fi
20532
20533 rm -Rf build
20534
20535
b9c59ec8 20536 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20537
20538
20539 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
20540$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
b9c59ec8
PS
20541 tmp_flags="$EXTRA_KCFLAGS"
20542 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20543
20544
20545cat confdefs.h - <<_ACEOF >conftest.c
20546/* confdefs.h. */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h. */
20551
20552
20553 #include <linux/blkdev.h>
20554
20555int
20556main (void)
20557{
20558
20559 struct request *req = NULL;
20560 (void) blk_rq_sectors(req);
20561
20562 ;
20563 return 0;
20564}
20565
20566_ACEOF
20567
20568
20569 rm -Rf build && mkdir -p build
20570 echo "obj-m := conftest.o" >build/Makefile
20571 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; }; then
20582
20583 { $as_echo "$as_me:$LINENO: result: yes" >&5
20584$as_echo "yes" >&6; }
20585
20586cat >>confdefs.h <<\_ACEOF
20587#define HAVE_BLK_RQ_SECTORS 1
20588_ACEOF
20589
20590
20591else
20592 $as_echo "$as_me: failed program was:" >&5
20593sed 's/^/| /' conftest.$ac_ext >&5
20594
20595 { $as_echo "$as_me:$LINENO: result: no" >&5
20596$as_echo "no" >&6; }
20597
20598
20599
20600fi
20601
20602 rm -Rf build
20603
20604
b9c59ec8 20605 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20606
20607
20608 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
20609$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
b9c59ec8
PS
20610 tmp_flags="$EXTRA_KCFLAGS"
20611 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20612
20613
20614cat confdefs.h - <<_ACEOF >conftest.c
20615/* confdefs.h. */
20616_ACEOF
20617cat confdefs.h >>conftest.$ac_ext
20618cat >>conftest.$ac_ext <<_ACEOF
20619/* end confdefs.h. */
20620
20621
20622 #include <linux/blkdev.h>
20623
20624int
20625main (void)
20626{
20627
20628 struct gendisk *disk = NULL;
20629 (void) get_disk_ro(disk);
20630
20631 ;
20632 return 0;
20633}
20634
20635_ACEOF
20636
20637
20638 rm -Rf build && mkdir -p build
20639 echo "obj-m := conftest.o" >build/Makefile
20640 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20647 (eval $ac_try) 2>&5
20648 ac_status=$?
20649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); }; }; then
20651
20652 { $as_echo "$as_me:$LINENO: result: yes" >&5
20653$as_echo "yes" >&6; }
20654
20655cat >>confdefs.h <<\_ACEOF
20656#define HAVE_GET_DISK_RO 1
20657_ACEOF
20658
20659
20660else
20661 $as_echo "$as_me: failed program was:" >&5
20662sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 { $as_echo "$as_me:$LINENO: result: no" >&5
20665$as_echo "no" >&6; }
20666
20667
20668
20669fi
20670
20671 rm -Rf build
20672
20673
b9c59ec8 20674 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20675
20676
20677 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
20678$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
b9c59ec8
PS
20679 tmp_flags="$EXTRA_KCFLAGS"
20680 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20681
20682
20683cat confdefs.h - <<_ACEOF >conftest.c
20684/* confdefs.h. */
20685_ACEOF
20686cat confdefs.h >>conftest.$ac_ext
20687cat >>conftest.$ac_ext <<_ACEOF
20688/* end confdefs.h. */
20689
20690
20691 #include <linux/blkdev.h>
20692
20693int
20694main (void)
20695{
20696
20697 struct request *req = NULL;
20698 (void) rq_is_sync(req);
20699
20700 ;
20701 return 0;
20702}
20703
20704_ACEOF
20705
20706
20707 rm -Rf build && mkdir -p build
20708 echo "obj-m := conftest.o" >build/Makefile
20709 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720
20721 { $as_echo "$as_me:$LINENO: result: yes" >&5
20722$as_echo "yes" >&6; }
20723
20724cat >>confdefs.h <<\_ACEOF
20725#define HAVE_RQ_IS_SYNC 1
20726_ACEOF
20727
20728
20729else
20730 $as_echo "$as_me: failed program was:" >&5
20731sed 's/^/| /' conftest.$ac_ext >&5
20732
20733 { $as_echo "$as_me:$LINENO: result: no" >&5
20734$as_echo "no" >&6; }
20735
20736
20737
20738fi
20739
20740 rm -Rf build
20741
20742
b9c59ec8 20743 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
20744
20745
20746 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
20747$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
b9c59ec8
PS
20748 tmp_flags="$EXTRA_KCFLAGS"
20749 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
20750
20751
20752cat confdefs.h - <<_ACEOF >conftest.c
20753/* confdefs.h. */
20754_ACEOF
20755cat confdefs.h >>conftest.$ac_ext
20756cat >>conftest.$ac_ext <<_ACEOF
20757/* end confdefs.h. */
20758
20759
20760 #include <linux/blkdev.h>
20761
20762int
20763main (void)
20764{
20765
20766 struct bio_vec *bv;
20767 struct req_iterator iter;
20768 struct request *req = NULL;
20769 rq_for_each_segment(bv, req, iter) { }
20770
20771 ;
20772 return 0;
20773}
20774
20775_ACEOF
20776
20777
20778 rm -Rf build && mkdir -p build
20779 echo "obj-m := conftest.o" >build/Makefile
20780 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20787 (eval $ac_try) 2>&5
20788 ac_status=$?
20789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); }; }; then
20791
20792 { $as_echo "$as_me:$LINENO: result: yes" >&5
20793$as_echo "yes" >&6; }
20794
20795cat >>confdefs.h <<\_ACEOF
20796#define HAVE_RQ_FOR_EACH_SEGMENT 1
20797_ACEOF
20798
20799
20800else
20801 $as_echo "$as_me: failed program was:" >&5
20802sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 { $as_echo "$as_me:$LINENO: result: no" >&5
20805$as_echo "no" >&6; }
20806
20807
20808
777d4af8
BB
20809fi
20810
20811 rm -Rf build
20812
20813
b9c59ec8 20814 EXTRA_KCFLAGS="$tmp_flags"
777d4af8
BB
20815
20816 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
20817$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
20818
20819
20820cat confdefs.h - <<_ACEOF >conftest.c
20821/* confdefs.h. */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
20825/* end confdefs.h. */
20826
20827
20828 #include <linux/fs.h>
20829 #include <linux/xattr.h>
20830
20831 const struct xattr_handler xattr_test_handler = {
20832 .prefix = "test",
20833 .get = NULL,
20834 .set = NULL,
20835 };
20836
20837 const struct xattr_handler *xattr_handlers[] = {
20838 &xattr_test_handler,
20839 };
20840
20841int
20842main (void)
20843{
20844
79713039 20845 struct super_block sb __attribute__ ((unused));
777d4af8
BB
20846
20847 sb.s_xattr = xattr_handlers;
20848
20849 ;
20850 return 0;
20851}
20852
20853_ACEOF
20854
20855
20856 rm -Rf build && mkdir -p build
20857 echo "obj-m := conftest.o" >build/Makefile
20858 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20861 ac_status=$?
20862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20866 ac_status=$?
20867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869
20870 { $as_echo "$as_me:$LINENO: result: yes" >&5
20871$as_echo "yes" >&6; }
20872
20873cat >>confdefs.h <<\_ACEOF
20874#define HAVE_CONST_XATTR_HANDLER 1
20875_ACEOF
20876
20877
20878else
20879 $as_echo "$as_me: failed program was:" >&5
20880sed 's/^/| /' conftest.$ac_ext >&5
20881
20882 { $as_echo "$as_me:$LINENO: result: no" >&5
20883$as_echo "no" >&6; }
20884
20885
20886
e70e591c
BB
20887fi
20888
20889 rm -Rf build
20890
20891
20892
20893
f9637c6c
BB
20894 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
20895$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
20896
20897
20898cat confdefs.h - <<_ACEOF >conftest.c
20899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h. */
20904
20905
20906 #include <linux/xattr.h>
20907
20908int
20909main (void)
20910{
20911
20912 int (*get)(struct dentry *dentry, const char *name,
20913 void *buffer, size_t size, int handler_flags) = NULL;
79713039 20914 struct xattr_handler xops __attribute__ ((unused));
f9637c6c
BB
20915
20916 xops.get = get;
20917
20918 ;
20919 return 0;
20920}
20921
20922_ACEOF
20923
20924
20925 rm -Rf build && mkdir -p build
20926 echo "obj-m := conftest.o" >build/Makefile
20927 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20930 ac_status=$?
20931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; }; then
20938
20939 { $as_echo "$as_me:$LINENO: result: yes" >&5
20940$as_echo "yes" >&6; }
20941
20942cat >>confdefs.h <<\_ACEOF
20943#define HAVE_DENTRY_XATTR_GET 1
20944_ACEOF
20945
20946
20947else
20948 $as_echo "$as_me: failed program was:" >&5
20949sed 's/^/| /' conftest.$ac_ext >&5
20950
20951 { $as_echo "$as_me:$LINENO: result: no" >&5
20952$as_echo "no" >&6; }
20953
20954
20955
20956fi
20957
20958 rm -Rf build
20959
20960
20961
20962
20963 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
20964$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
20965
20966
20967cat confdefs.h - <<_ACEOF >conftest.c
20968/* confdefs.h. */
20969_ACEOF
20970cat confdefs.h >>conftest.$ac_ext
20971cat >>conftest.$ac_ext <<_ACEOF
20972/* end confdefs.h. */
20973
20974
20975 #include <linux/xattr.h>
20976
20977int
20978main (void)
20979{
20980
20981 int (*set)(struct dentry *dentry, const char *name,
20982 const void *buffer, size_t size, int flags,
20983 int handler_flags) = NULL;
79713039 20984 struct xattr_handler xops __attribute__ ((unused));
f9637c6c
BB
20985
20986 xops.set = set;
20987
20988 ;
20989 return 0;
20990}
20991
20992_ACEOF
20993
20994
20995 rm -Rf build && mkdir -p build
20996 echo "obj-m := conftest.o" >build/Makefile
20997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008
21009 { $as_echo "$as_me:$LINENO: result: yes" >&5
21010$as_echo "yes" >&6; }
21011
21012cat >>confdefs.h <<\_ACEOF
21013#define HAVE_DENTRY_XATTR_SET 1
21014_ACEOF
21015
21016
21017else
21018 $as_echo "$as_me: failed program was:" >&5
21019sed 's/^/| /' conftest.$ac_ext >&5
21020
21021 { $as_echo "$as_me:$LINENO: result: no" >&5
21022$as_echo "no" >&6; }
21023
21024
21025
21026fi
21027
21028 rm -Rf build
21029
21030
21031
21032
47621f3d
BB
21033 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
21034$as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21035
21036
21037
21038cat confdefs.h - <<_ACEOF >conftest.c
21039/* confdefs.h. */
21040_ACEOF
21041cat confdefs.h >>conftest.$ac_ext
21042cat >>conftest.$ac_ext <<_ACEOF
21043/* end confdefs.h. */
21044
21045
21046 #include <linux/fs.h>
21047
21048int
21049main (void)
21050{
21051
21052 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
21053 struct super_operations sops __attribute__ ((unused));
21054
21055 sops.show_options = show_options;
21056
21057 ;
21058 return 0;
21059}
21060
21061_ACEOF
21062
21063
21064 rm -Rf build && mkdir -p build
21065 echo "obj-m := conftest.o" >build/Makefile
21066 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21069 ac_status=$?
21070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; }; then
21077
21078 { $as_echo "$as_me:$LINENO: result: yes" >&5
21079$as_echo "yes" >&6; }
21080
21081cat >>confdefs.h <<\_ACEOF
21082#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21083_ACEOF
21084
21085
21086else
21087 $as_echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 { $as_echo "$as_me:$LINENO: result: no" >&5
21091$as_echo "no" >&6; }
21092
21093
21094
21095fi
21096
21097 rm -Rf build
21098
21099
21100
21101
adcd70bd
BB
21102 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21103$as_echo_n "checking whether fops->fsync() wants... " >&6; }
21104
7268e1be
BB
21105
21106
21107cat confdefs.h - <<_ACEOF >conftest.c
21108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113
21114
21115 #include <linux/fs.h>
21116
21117int
21118main (void)
21119{
21120
adcd70bd 21121 int (*fsync) (struct file *, struct dentry *, int) = NULL;
79713039 21122 struct file_operations fops __attribute__ ((unused));
7268e1be
BB
21123
21124 fops.fsync = fsync;
21125
21126 ;
21127 return 0;
21128}
21129
21130_ACEOF
21131
21132
21133 rm -Rf build && mkdir -p build
21134 echo "obj-m := conftest.o" >build/Makefile
21135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21138 ac_status=$?
21139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21143 ac_status=$?
21144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21146
adcd70bd
BB
21147 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21148$as_echo "dentry" >&6; }
7268e1be
BB
21149
21150cat >>confdefs.h <<\_ACEOF
adcd70bd
BB
21151#define HAVE_FSYNC_WITH_DENTRY 1
21152_ACEOF
21153
21154
21155else
21156 $as_echo "$as_me: failed program was:" >&5
21157sed 's/^/| /' conftest.$ac_ext >&5
21158
21159
21160
21161
21162fi
21163
21164 rm -Rf build
21165
21166
21167
21168
21169
21170
21171cat confdefs.h - <<_ACEOF >conftest.c
21172/* confdefs.h. */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h. */
21177
21178
21179 #include <linux/fs.h>
21180
21181int
21182main (void)
21183{
21184
21185 int (*fsync) (struct file *, int) = NULL;
21186 struct file_operations fops __attribute__ ((unused));
21187
21188 fops.fsync = fsync;
21189
21190 ;
21191 return 0;
21192}
21193
21194_ACEOF
21195
21196
21197 rm -Rf build && mkdir -p build
21198 echo "obj-m := conftest.o" >build/Makefile
21199 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21201 (eval $ac_try) 2>&5
21202 ac_status=$?
21203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21207 ac_status=$?
21208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210
21211 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21212$as_echo "no dentry" >&6; }
21213
21214cat >>confdefs.h <<\_ACEOF
21215#define HAVE_FSYNC_WITHOUT_DENTRY 1
7268e1be
BB
21216_ACEOF
21217
21218
21219else
21220 $as_echo "$as_me: failed program was:" >&5
21221sed 's/^/| /' conftest.$ac_ext >&5
21222
7268e1be
BB
21223
21224
21225
21226fi
21227
21228 rm -Rf build
21229
21230
21231
21232
adcd70bd
BB
21233
21234
21235cat confdefs.h - <<_ACEOF >conftest.c
21236/* confdefs.h. */
21237_ACEOF
21238cat confdefs.h >>conftest.$ac_ext
21239cat >>conftest.$ac_ext <<_ACEOF
21240/* end confdefs.h. */
21241
21242
21243 #include <linux/fs.h>
21244
21245int
21246main (void)
21247{
21248
21249 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
21250 struct file_operations fops __attribute__ ((unused));
21251
21252 fops.fsync = fsync;
21253
21254 ;
21255 return 0;
21256}
21257
21258_ACEOF
21259
21260
21261 rm -Rf build && mkdir -p build
21262 echo "obj-m := conftest.o" >build/Makefile
21263 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21266 ac_status=$?
21267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21270 (eval $ac_try) 2>&5
21271 ac_status=$?
21272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; }; then
21274
21275 { $as_echo "$as_me:$LINENO: result: range" >&5
21276$as_echo "range" >&6; }
21277
21278cat >>confdefs.h <<\_ACEOF
21279#define HAVE_FSYNC_RANGE 1
21280_ACEOF
21281
21282
21283else
21284 $as_echo "$as_me: failed program was:" >&5
21285sed 's/^/| /' conftest.$ac_ext >&5
21286
21287
21288
21289
21290fi
21291
21292 rm -Rf build
21293
21294
21295
21296
21297
2c395def
BB
21298 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21299$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21300
21301
21302cat confdefs.h - <<_ACEOF >conftest.c
21303/* confdefs.h. */
21304_ACEOF
21305cat confdefs.h >>conftest.$ac_ext
21306cat >>conftest.$ac_ext <<_ACEOF
21307/* end confdefs.h. */
21308
21309
21310 #include <linux/fs.h>
21311
21312int
21313main (void)
21314{
21315
21316 void (*evict_inode) (struct inode *) = NULL;
ddd052aa
BB
21317 struct super_operations sops __attribute__ ((unused)) = {
21318 .evict_inode = evict_inode,
21319 };
2c395def
BB
21320
21321 ;
21322 return 0;
21323}
21324
21325_ACEOF
21326
21327
21328 rm -Rf build && mkdir -p build
21329 echo "obj-m := conftest.o" >build/Makefile
21330 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21333 ac_status=$?
21334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
21341
21342 { $as_echo "$as_me:$LINENO: result: yes" >&5
21343$as_echo "yes" >&6; }
21344
21345cat >>confdefs.h <<\_ACEOF
21346#define HAVE_EVICT_INODE 1
21347_ACEOF
21348
21349
21350else
21351 $as_echo "$as_me: failed program was:" >&5
21352sed 's/^/| /' conftest.$ac_ext >&5
21353
21354 { $as_echo "$as_me:$LINENO: result: no" >&5
21355$as_echo "no" >&6; }
21356
21357
21358
21359fi
21360
21361 rm -Rf build
21362
21363
21364
21365
ab26409d
BB
21366 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
21367$as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21368
21369
21370cat confdefs.h - <<_ACEOF >conftest.c
21371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
21376
21377
21378 #include <linux/fs.h>
21379
21380int
21381main (void)
21382{
21383
21384 int (*nr_cached_objects)(struct super_block *)
21385 __attribute__ ((unused)) = NULL;
21386 struct super_operations sops __attribute__ ((unused)) = {
21387 .nr_cached_objects = nr_cached_objects,
21388 };
21389
21390 ;
21391 return 0;
21392}
21393
21394_ACEOF
21395
21396
21397 rm -Rf build && mkdir -p build
21398 echo "obj-m := conftest.o" >build/Makefile
21399 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21402 ac_status=$?
21403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406 (eval $ac_try) 2>&5
21407 ac_status=$?
21408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); }; }; then
21410
21411 { $as_echo "$as_me:$LINENO: result: yes" >&5
21412$as_echo "yes" >&6; }
21413
21414cat >>confdefs.h <<\_ACEOF
21415#define HAVE_NR_CACHED_OBJECTS 1
21416_ACEOF
21417
21418
21419else
21420 $as_echo "$as_me: failed program was:" >&5
21421sed 's/^/| /' conftest.$ac_ext >&5
21422
21423 { $as_echo "$as_me:$LINENO: result: no" >&5
21424$as_echo "no" >&6; }
21425
21426
21427
21428fi
21429
21430 rm -Rf build
21431
21432
21433
21434
21435 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
21436$as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
21437
21438
21439cat confdefs.h - <<_ACEOF >conftest.c
21440/* confdefs.h. */
21441_ACEOF
21442cat confdefs.h >>conftest.$ac_ext
21443cat >>conftest.$ac_ext <<_ACEOF
21444/* end confdefs.h. */
21445
21446
21447 #include <linux/fs.h>
21448
21449int
21450main (void)
21451{
21452
21453 void (*free_cached_objects)(struct super_block *, int)
21454 __attribute__ ((unused)) = NULL;
21455 struct super_operations sops __attribute__ ((unused)) = {
21456 .free_cached_objects = free_cached_objects,
21457 };
21458
21459 ;
21460 return 0;
21461}
21462
21463_ACEOF
21464
21465
21466 rm -Rf build && mkdir -p build
21467 echo "obj-m := conftest.o" >build/Makefile
21468 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21470 (eval $ac_try) 2>&5
21471 ac_status=$?
21472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21475 (eval $ac_try) 2>&5
21476 ac_status=$?
21477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); }; }; then
21479
21480 { $as_echo "$as_me:$LINENO: result: yes" >&5
21481$as_echo "yes" >&6; }
21482
21483cat >>confdefs.h <<\_ACEOF
21484#define HAVE_FREE_CACHED_OBJECTS 1
21485_ACEOF
21486
21487
21488else
21489 $as_echo "$as_me: failed program was:" >&5
21490sed 's/^/| /' conftest.$ac_ext >&5
21491
21492 { $as_echo "$as_me:$LINENO: result: no" >&5
21493$as_echo "no" >&6; }
21494
21495
21496
21497fi
21498
21499 rm -Rf build
21500
21501
21502
21503
cb2d1901
ED
21504
21505 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
21506$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21507
21508
21509cat confdefs.h - <<_ACEOF >conftest.c
21510/* confdefs.h. */
21511_ACEOF
21512cat confdefs.h >>conftest.$ac_ext
21513cat >>conftest.$ac_ext <<_ACEOF
21514/* end confdefs.h. */
21515
21516
21517 #include <linux/fs.h>
21518
21519int
21520main (void)
21521{
21522
21523 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
21524 struct file_operations fops __attribute__ ((unused)) = {
21525 .fallocate = fallocate,
21526 };
21527
21528 ;
21529 return 0;
21530}
21531
21532_ACEOF
21533
21534
21535 rm -Rf build && mkdir -p build
21536 echo "obj-m := conftest.o" >build/Makefile
21537 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548
21549 { $as_echo "$as_me:$LINENO: result: yes" >&5
21550$as_echo "yes" >&6; }
21551
21552cat >>confdefs.h <<\_ACEOF
21553#define HAVE_FILE_FALLOCATE 1
21554_ACEOF
21555
21556
21557else
21558 $as_echo "$as_me: failed program was:" >&5
21559sed 's/^/| /' conftest.$ac_ext >&5
21560
21561 { $as_echo "$as_me:$LINENO: result: no" >&5
21562$as_echo "no" >&6; }
21563
21564
21565
21566fi
21567
21568 rm -Rf build
21569
21570
21571
21572
21573 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
21574$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21575
21576
21577cat confdefs.h - <<_ACEOF >conftest.c
21578/* confdefs.h. */
21579_ACEOF
21580cat confdefs.h >>conftest.$ac_ext
21581cat >>conftest.$ac_ext <<_ACEOF
21582/* end confdefs.h. */
21583
21584
21585 #include <linux/fs.h>
21586
21587int
21588main (void)
21589{
21590
21591 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
21592 struct inode_operations fops __attribute__ ((unused)) = {
21593 .fallocate = fallocate,
21594 };
21595
21596 ;
21597 return 0;
21598}
21599
21600_ACEOF
21601
21602
21603 rm -Rf build && mkdir -p build
21604 echo "obj-m := conftest.o" >build/Makefile
21605 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21607 (eval $ac_try) 2>&5
21608 ac_status=$?
21609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21610 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21612 (eval $ac_try) 2>&5
21613 ac_status=$?
21614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21616
21617 { $as_echo "$as_me:$LINENO: result: yes" >&5
21618$as_echo "yes" >&6; }
21619
21620cat >>confdefs.h <<\_ACEOF
21621#define HAVE_INODE_FALLOCATE 1
21622_ACEOF
21623
21624
21625else
21626 $as_echo "$as_me: failed program was:" >&5
21627sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 { $as_echo "$as_me:$LINENO: result: no" >&5
21630$as_echo "no" >&6; }
21631
21632
21633
21634fi
21635
21636 rm -Rf build
21637
21638
21639
21640
21641
ebe7e575
BB
21642 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
21643$as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21644
21645
21646cat confdefs.h - <<_ACEOF >conftest.c
21647/* confdefs.h. */
21648_ACEOF
21649cat confdefs.h >>conftest.$ac_ext
21650cat >>conftest.$ac_ext <<_ACEOF
21651/* end confdefs.h. */
21652
21653
21654 #include <linux/dcache.h>
21655
21656int
21657main (void)
21658{
21659
21660 struct vfsmount *(*d_automount) (struct path *) = NULL;
21661 struct dentry_operations dops __attribute__ ((unused)) = {
21662 .d_automount = d_automount,
21663 };
21664
21665 ;
21666 return 0;
21667}
21668
21669_ACEOF
21670
21671
21672 rm -Rf build && mkdir -p build
21673 echo "obj-m := conftest.o" >build/Makefile
21674 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676 (eval $ac_try) 2>&5
21677 ac_status=$?
21678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; }; then
21685
21686 { $as_echo "$as_me:$LINENO: result: yes" >&5
21687$as_echo "yes" >&6; }
21688
21689cat >>confdefs.h <<\_ACEOF
21690#define HAVE_AUTOMOUNT 1
21691_ACEOF
21692
21693
21694else
21695 $as_echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
21697
21698 { $as_echo "$as_me:$LINENO: result: no" >&5
21699$as_echo "no" >&6; }
21700
21701
21702
21703fi
21704
21705 rm -Rf build
21706
21707
21708
21709
bdf4328b
BB
21710 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
21711$as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
21712 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21713 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21714 rc=$?
21715 if test $rc -ne 0; then
8366cd6a 21716
bdf4328b
BB
21717 export=0
21718 for file in fs/inode.c; do
21719 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
21720 rc=$?
8366cd6a
PS
21721 if test $rc -eq 0; then
21722
21723 export=1
21724 break;
21725
21726fi
21727
bdf4328b
BB
21728 done
21729 if test $export -eq 0; then
8366cd6a 21730
bdf4328b
BB
21731 { $as_echo "$as_me:$LINENO: result: no" >&5
21732$as_echo "no" >&6; }
21733
8366cd6a
PS
21734
21735else
21736
bdf4328b
BB
21737 { $as_echo "$as_me:$LINENO: result: yes" >&5
21738$as_echo "yes" >&6; }
21739
21740cat >>confdefs.h <<\_ACEOF
21741#define HAVE_INSERT_INODE_LOCKED 1
21742_ACEOF
21743
8366cd6a
PS
21744
21745fi
21746
21747
21748else
21749
bdf4328b
BB
21750 { $as_echo "$as_me:$LINENO: result: yes" >&5
21751$as_echo "yes" >&6; }
21752
21753cat >>confdefs.h <<\_ACEOF
21754#define HAVE_INSERT_INODE_LOCKED 1
21755_ACEOF
21756
8366cd6a
PS
21757
21758fi
21759
bdf4328b
BB
21760
21761
21762
055656d4
GB
21763 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
21764$as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
21765 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
21766 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21767 rc=$?
21768 if test $rc -ne 0; then
8366cd6a 21769
055656d4
GB
21770 export=0
21771 for file in fs/dcache.c; do
21772 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
21773 rc=$?
8366cd6a
PS
21774 if test $rc -eq 0; then
21775
21776 export=1
21777 break;
21778
21779fi
21780
055656d4
GB
21781 done
21782 if test $export -eq 0; then
8366cd6a 21783
055656d4
GB
21784 { $as_echo "$as_me:$LINENO: result: no" >&5
21785$as_echo "no" >&6; }
21786
8366cd6a
PS
21787
21788else
21789
055656d4
GB
21790 { $as_echo "$as_me:$LINENO: result: yes" >&5
21791$as_echo "yes" >&6; }
21792
21793cat >>confdefs.h <<\_ACEOF
21794#define HAVE_D_OBTAIN_ALIAS 1
21795_ACEOF
21796
8366cd6a
PS
21797
21798fi
21799
21800
21801else
21802
055656d4
GB
21803 { $as_echo "$as_me:$LINENO: result: yes" >&5
21804$as_echo "yes" >&6; }
21805
21806cat >>confdefs.h <<\_ACEOF
21807#define HAVE_D_OBTAIN_ALIAS 1
21808_ACEOF
21809
8366cd6a
PS
21810
21811fi
21812
055656d4
GB
21813
21814
21815
df554c14
BB
21816 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
21817$as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
21818 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
21819 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21820 rc=$?
21821 if test $rc -ne 0; then
8366cd6a 21822
df554c14
BB
21823 export=0
21824 for file in fs/block_dev.c; do
21825 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
21826 rc=$?
8366cd6a
PS
21827 if test $rc -eq 0; then
21828
21829 export=1
21830 break;
21831
21832fi
21833
df554c14
BB
21834 done
21835 if test $export -eq 0; then
8366cd6a 21836
df554c14
BB
21837 { $as_echo "$as_me:$LINENO: result: no" >&5
21838$as_echo "no" >&6; }
21839
8366cd6a
PS
21840
21841else
21842
df554c14
BB
21843 { $as_echo "$as_me:$LINENO: result: yes" >&5
21844$as_echo "yes" >&6; }
21845
21846cat >>confdefs.h <<\_ACEOF
21847#define HAVE_CHECK_DISK_SIZE_CHANGE 1
21848_ACEOF
21849
8366cd6a
PS
21850
21851fi
21852
21853
21854else
21855
df554c14
BB
21856 { $as_echo "$as_me:$LINENO: result: yes" >&5
21857$as_echo "yes" >&6; }
21858
21859cat >>confdefs.h <<\_ACEOF
21860#define HAVE_CHECK_DISK_SIZE_CHANGE 1
21861_ACEOF
21862
8366cd6a
PS
21863
21864fi
21865
df554c14
BB
21866
21867
21868
b3129792
PJ
21869 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
21870$as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
21871 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21872 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21873 rc=$?
21874 if test $rc -ne 0; then
8366cd6a 21875
b3129792
PJ
21876 export=0
21877 for file in mm/truncate.c; do
21878 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
21879 rc=$?
8366cd6a
PS
21880 if test $rc -eq 0; then
21881
21882 export=1
21883 break;
21884
21885fi
21886
b3129792
PJ
21887 done
21888 if test $export -eq 0; then
8366cd6a 21889
b3129792
PJ
21890 { $as_echo "$as_me:$LINENO: result: no" >&5
21891$as_echo "no" >&6; }
21892
8366cd6a
PS
21893
21894else
21895
b3129792
PJ
21896 { $as_echo "$as_me:$LINENO: result: yes" >&5
21897$as_echo "yes" >&6; }
21898
21899cat >>confdefs.h <<\_ACEOF
21900#define HAVE_TRUNCATE_SETSIZE 1
21901_ACEOF
21902
8366cd6a
PS
21903
21904fi
21905
21906
21907else
21908
b3129792
PJ
21909 { $as_echo "$as_me:$LINENO: result: yes" >&5
21910$as_echo "yes" >&6; }
21911
21912cat >>confdefs.h <<\_ACEOF
21913#define HAVE_TRUNCATE_SETSIZE 1
21914_ACEOF
21915
8366cd6a
PS
21916
21917fi
21918
b3129792
PJ
21919
21920
21921
5c03efc3
BB
21922 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
21923$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
21924 tmp_flags="$EXTRA_KCFLAGS"
21925 EXTRA_KCFLAGS="-Werror"
21926
21927
21928cat confdefs.h - <<_ACEOF >conftest.c
21929/* confdefs.h. */
21930_ACEOF
21931cat confdefs.h >>conftest.$ac_ext
21932cat >>conftest.$ac_ext <<_ACEOF
21933/* end confdefs.h. */
21934
21935
21936 #include <linux/security.h>
21937
21938int
21939main (void)
21940{
21941
166dd49d
BB
21942 struct inode *ip __attribute__ ((unused)) = NULL;
21943 struct inode *dip __attribute__ ((unused)) = NULL;
21944 const struct qstr *str __attribute__ ((unused)) = NULL;
21945 char *name __attribute__ ((unused)) = NULL;
21946 void *value __attribute__ ((unused)) = NULL;
21947 size_t len __attribute__ ((unused)) = 0;
21948
21949 security_inode_init_security(ip, dip, str, &name, &value, &len);
5c03efc3
BB
21950
21951 ;
21952 return 0;
21953}
21954
21955_ACEOF
21956
21957
21958 rm -Rf build && mkdir -p build
21959 echo "obj-m := conftest.o" >build/Makefile
21960 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
21961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962 (eval $ac_try) 2>&5
21963 ac_status=$?
21964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971
21972 { $as_echo "$as_me:$LINENO: result: yes" >&5
21973$as_echo "yes" >&6; }
21974
21975cat >>confdefs.h <<\_ACEOF
21976#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
21977_ACEOF
21978
21979
21980else
21981 $as_echo "$as_me: failed program was:" >&5
21982sed 's/^/| /' conftest.$ac_ext >&5
21983
21984 { $as_echo "$as_me:$LINENO: result: no" >&5
21985$as_echo "no" >&6; }
21986
21987
21988
166dd49d
BB
21989fi
21990
21991 rm -Rf build
21992
21993
21994 EXTRA_KCFLAGS="$tmp_flags"
21995
21996
21997 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
21998$as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
21999 tmp_flags="$EXTRA_KCFLAGS"
22000 EXTRA_KCFLAGS="-Werror"
22001
22002
22003cat confdefs.h - <<_ACEOF >conftest.c
22004/* confdefs.h. */
22005_ACEOF
22006cat confdefs.h >>conftest.$ac_ext
22007cat >>conftest.$ac_ext <<_ACEOF
22008/* end confdefs.h. */
22009
22010
22011 #include <linux/security.h>
22012
22013int
22014main (void)
22015{
22016
22017 struct inode *ip __attribute__ ((unused)) = NULL;
22018 struct inode *dip __attribute__ ((unused)) = NULL;
22019 const struct qstr *str __attribute__ ((unused)) = NULL;
22020 initxattrs func __attribute__ ((unused)) = NULL;
22021
22022 security_inode_init_security(ip, dip, str, func, NULL);
22023
22024 ;
22025 return 0;
22026}
22027
22028_ACEOF
22029
22030
22031 rm -Rf build && mkdir -p build
22032 echo "obj-m := conftest.o" >build/Makefile
22033 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035 (eval $ac_try) 2>&5
22036 ac_status=$?
22037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22040 (eval $ac_try) 2>&5
22041 ac_status=$?
22042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; }; then
22044
22045 { $as_echo "$as_me:$LINENO: result: yes" >&5
22046$as_echo "yes" >&6; }
22047
22048cat >>confdefs.h <<\_ACEOF
22049#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
22050_ACEOF
22051
22052
22053else
22054 $as_echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
22057 { $as_echo "$as_me:$LINENO: result: no" >&5
22058$as_echo "no" >&6; }
22059
22060
22061
5c03efc3
BB
22062fi
22063
22064 rm -Rf build
22065
22066
22067 EXTRA_KCFLAGS="$tmp_flags"
22068
22069
2cf7f52b
BB
22070 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
22071$as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
22072 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
22073 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22074 rc=$?
22075 if test $rc -ne 0; then
8366cd6a 22076
2cf7f52b
BB
22077 export=0
22078 for file in fs/super.c; do
22079 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
22080 rc=$?
8366cd6a
PS
22081 if test $rc -eq 0; then
22082
22083 export=1
22084 break;
22085
22086fi
22087
2cf7f52b
BB
22088 done
22089 if test $export -eq 0; then
8366cd6a 22090
2cf7f52b
BB
22091 { $as_echo "$as_me:$LINENO: result: no" >&5
22092$as_echo "no" >&6; }
22093
8366cd6a
PS
22094
22095else
22096
2cf7f52b
BB
22097 { $as_echo "$as_me:$LINENO: result: yes" >&5
22098$as_echo "yes" >&6; }
22099
22100cat >>confdefs.h <<\_ACEOF
22101#define HAVE_MOUNT_NODEV 1
22102_ACEOF
22103
8366cd6a
PS
22104
22105fi
22106
22107
22108else
22109
2cf7f52b
BB
22110 { $as_echo "$as_me:$LINENO: result: yes" >&5
22111$as_echo "yes" >&6; }
22112
22113cat >>confdefs.h <<\_ACEOF
22114#define HAVE_MOUNT_NODEV 1
22115_ACEOF
22116
8366cd6a
PS
22117
22118fi
22119
2cf7f52b
BB
22120
22121
22122
ab26409d
BB
22123 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
22124$as_echo_n "checking whether super_block has s_shrink... " >&6; }
22125
22126
22127cat confdefs.h - <<_ACEOF >conftest.c
22128/* confdefs.h. */
22129_ACEOF
22130cat confdefs.h >>conftest.$ac_ext
22131cat >>conftest.$ac_ext <<_ACEOF
22132/* end confdefs.h. */
22133
22134
22135 #include <linux/fs.h>
22136
22137int
22138main (void)
22139{
22140
22141 int (*shrink)(struct shrinker *, struct shrink_control *sc)
22142 __attribute__ ((unused)) = NULL;
22143 struct super_block sb __attribute__ ((unused)) = {
22144 .s_shrink.shrink = shrink,
22145 .s_shrink.seeks = DEFAULT_SEEKS,
22146 .s_shrink.batch = 0,
22147 };
22148
22149 ;
22150 return 0;
22151}
22152
22153_ACEOF
22154
22155
22156 rm -Rf build && mkdir -p build
22157 echo "obj-m := conftest.o" >build/Makefile
22158 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22166 ac_status=$?
22167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; }; then
22169
22170 { $as_echo "$as_me:$LINENO: result: yes" >&5
22171$as_echo "yes" >&6; }
22172
22173cat >>confdefs.h <<\_ACEOF
22174#define HAVE_SHRINK 1
22175_ACEOF
22176
22177
22178
22179else
22180 $as_echo "$as_me: failed program was:" >&5
22181sed 's/^/| /' conftest.$ac_ext >&5
22182
22183 { $as_echo "$as_me:$LINENO: result: no" >&5
22184$as_echo "no" >&6; }
22185
22186
22187
22188fi
22189
22190 rm -Rf build
22191
22192
22193
22194
76659dc1
BB
22195 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
22196$as_echo_n "checking whether super_block has s_bdi... " >&6; }
22197
22198
22199cat confdefs.h - <<_ACEOF >conftest.c
22200/* confdefs.h. */
22201_ACEOF
22202cat confdefs.h >>conftest.$ac_ext
22203cat >>conftest.$ac_ext <<_ACEOF
22204/* end confdefs.h. */
22205
22206
22207 #include <linux/fs.h>
22208
22209int
22210main (void)
22211{
22212
22213 struct super_block sb __attribute__ ((unused));
22214 sb.s_bdi = NULL;
22215
22216 ;
22217 return 0;
22218}
22219
22220_ACEOF
22221
22222
22223 rm -Rf build && mkdir -p build
22224 echo "obj-m := conftest.o" >build/Makefile
22225 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22228 ac_status=$?
22229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22232 (eval $ac_try) 2>&5
22233 ac_status=$?
22234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236
22237 { $as_echo "$as_me:$LINENO: result: yes" >&5
22238$as_echo "yes" >&6; }
22239
22240cat >>confdefs.h <<\_ACEOF
22241#define HAVE_BDI 1
22242_ACEOF
22243
22244
22245else
22246 $as_echo "$as_me: failed program was:" >&5
22247sed 's/^/| /' conftest.$ac_ext >&5
22248
22249 { $as_echo "$as_me:$LINENO: result: no" >&5
22250$as_echo "no" >&6; }
22251
22252
22253
22254fi
22255
22256 rm -Rf build
22257
22258
22259
22260
5547c2f1
BB
22261 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
22262$as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
22263 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22264 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22265 rc=$?
22266 if test $rc -ne 0; then
22267
22268 export=0
22269 for file in mm/backing-dev.c; do
22270 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
22271 rc=$?
22272 if test $rc -eq 0; then
22273
22274 export=1
22275 break;
22276
22277fi
22278
22279 done
22280 if test $export -eq 0; then
22281
22282 { $as_echo "$as_me:$LINENO: result: no" >&5
22283$as_echo "no" >&6; }
22284
22285
22286else
22287
22288 { $as_echo "$as_me:$LINENO: result: yes" >&5
22289$as_echo "yes" >&6; }
22290
22291cat >>confdefs.h <<\_ACEOF
22292#define HAVE_BDI_SETUP_AND_REGISTER 1
22293_ACEOF
22294
22295
22296fi
22297
22298
22299else
22300
22301 { $as_echo "$as_me:$LINENO: result: yes" >&5
22302$as_echo "yes" >&6; }
22303
22304cat >>confdefs.h <<\_ACEOF
22305#define HAVE_BDI_SETUP_AND_REGISTER 1
22306_ACEOF
22307
22308
22309fi
22310
22311
22312
22313
28eb9213
DH
22314 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
22315$as_echo_n "checking whether set_nlink() is available... " >&6; }
22316
22317
22318cat confdefs.h - <<_ACEOF >conftest.c
22319/* confdefs.h. */
22320_ACEOF
22321cat confdefs.h >>conftest.$ac_ext
22322cat >>conftest.$ac_ext <<_ACEOF
22323/* end confdefs.h. */
22324
22325
22326 #include <linux/fs.h>
22327
22328int
22329main (void)
22330{
22331
22332 struct inode node;
22333 unsigned int link = 0;
22334 (void) set_nlink(&node, link);
22335
22336 ;
22337 return 0;
22338}
22339
22340_ACEOF
22341
22342
22343 rm -Rf build && mkdir -p build
22344 echo "obj-m := conftest.o" >build/Makefile
22345 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
22346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22347 (eval $ac_try) 2>&5
22348 ac_status=$?
22349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; }; then
22356
22357 { $as_echo "$as_me:$LINENO: result: yes" >&5
22358$as_echo "yes" >&6; }
22359
22360cat >>confdefs.h <<\_ACEOF
22361#define HAVE_SET_NLINK 1
22362_ACEOF
22363
22364
22365else
22366 $as_echo "$as_me: failed program was:" >&5
22367sed 's/^/| /' conftest.$ac_ext >&5
22368
22369 { $as_echo "$as_me:$LINENO: result: no" >&5
22370$as_echo "no" >&6; }
22371
22372
22373
22374fi
22375
22376 rm -Rf build
22377
22378
22379
22380
e70e591c 22381 if test "$LINUX_OBJ" != "$LINUX"; then
8366cd6a 22382
e70e591c 22383 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
8366cd6a
PS
22384
22385fi
22386
e70e591c
BB
22387
22388
22389
8a7e1cee 22390 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
12c1acde 22391 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
6283f55e
BB
22392 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
22393
22394
e70e591c
BB
22395
22396
22397
de0a1c09
BB
22398
22399# Check whether --with-udevdir was given.
22400if test "${with_udevdir+set}" = set; then
22401 withval=$with_udevdir; udevdir=$withval
22402else
22403 udevdir='${exec_prefix}/lib/udev'
22404fi
22405
22406
22407
22408# Check whether --with-udevruledir was given.
22409if test "${with_udevruledir+set}" = set; then
22410 withval=$with_udevruledir; udevruledir=$withval
22411else
22412 udevruledir='${udevdir}/rules.d'
22413fi
22414
22415
22416
22417
22418
22419
e70e591c
BB
22420 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
22421$as_echo_n "checking for target asm dir... " >&6; }
22422 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
22423
22424 case $TARGET_ARCH in
22425 i386|x86_64)
22426 TARGET_ASM_DIR=asm-${TARGET_ARCH}
22427 ;;
22428 *)
22429 TARGET_ASM_DIR=asm-generic
22430 ;;
22431 esac
22432
22433
22434 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
22435$as_echo "$TARGET_ASM_DIR" >&6; }
22436
22437
e70e591c
BB
22438 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
22439$as_echo_n "checking for ioctl()... " >&6; }
22440 cat >conftest.$ac_ext <<_ACEOF
22441/* confdefs.h. */
22442_ACEOF
22443cat confdefs.h >>conftest.$ac_ext
22444cat >>conftest.$ac_ext <<_ACEOF
22445/* end confdefs.h. */
22446#include <unistd.h>
22447
22448_ACEOF
22449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22450 $EGREP "ioctl" >/dev/null 2>&1; then
22451 is_unistd=yes
22452else
22453 is_unistd=no
22454fi
22455rm -f conftest*
22456
22457 cat >conftest.$ac_ext <<_ACEOF
22458/* confdefs.h. */
22459_ACEOF
22460cat confdefs.h >>conftest.$ac_ext
22461cat >>conftest.$ac_ext <<_ACEOF
22462/* end confdefs.h. */
22463#include <sys/ioctl.h>
22464
22465_ACEOF
22466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22467 $EGREP "ioctl" >/dev/null 2>&1; then
22468 is_sys_ioctl=yes
22469else
22470 is_sys_ioctl=no
22471fi
22472rm -f conftest*
22473
22474 cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h. */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h. */
22480#include <stropts.h>
22481
22482_ACEOF
22483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22484 $EGREP "ioctl" >/dev/null 2>&1; then
22485 is_stropts=yes
22486else
22487 is_stropts=no
22488fi
22489rm -f conftest*
22490
22491
22492 if test $is_unistd = yes; then
22493 result=unistd.h
22494
22495cat >>confdefs.h <<\_ACEOF
22496#define HAVE_IOCTL_IN_UNISTD_H 1
22497_ACEOF
22498
22499 else
22500
22501 if test $is_sys_ioctl = yes; then
22502 result=sys/ioctl.h
22503
22504cat >>confdefs.h <<\_ACEOF
22505#define HAVE_IOCTL_IN_SYS_IOCTL_H 1
22506_ACEOF
22507
22508 elif test $is_stropts = yes; then
22509
22510cat >>confdefs.h <<\_ACEOF
22511#define HAVE_IOCTL_IN_STROPTS_H 1
22512_ACEOF
22513
22514 else
22515 result=no
22516 fi
22517 fi
22518
22519 if test $result = no; then
22520 { $as_echo "$as_me:$LINENO: result: no" >&5
22521$as_echo "no" >&6; }
22522 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
22523$as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
22524 { (exit 1); exit 1; }; }
22525 else
22526 { $as_echo "$as_me:$LINENO: result: yes" >&5
22527$as_echo "yes" >&6; }
22528 fi
22529
22530
22531 ZLIB=
22532
22533 if test "${ac_cv_header_zlib_h+set}" = set; then
22534 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
22535$as_echo_n "checking for zlib.h... " >&6; }
22536if test "${ac_cv_header_zlib_h+set}" = set; then
22537 $as_echo_n "(cached) " >&6
22538fi
22539{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22540$as_echo "$ac_cv_header_zlib_h" >&6; }
22541else
22542 # Is the header compilable?
22543{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
22544$as_echo_n "checking zlib.h usability... " >&6; }
22545cat >conftest.$ac_ext <<_ACEOF
22546/* confdefs.h. */
22547_ACEOF
22548cat confdefs.h >>conftest.$ac_ext
22549cat >>conftest.$ac_ext <<_ACEOF
22550/* end confdefs.h. */
22551$ac_includes_default
22552#include <zlib.h>
22553_ACEOF
22554rm -f conftest.$ac_objext
22555if { (ac_try="$ac_compile"
22556case "(($ac_try" in
22557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22558 *) ac_try_echo=$ac_try;;
22559esac
22560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22561$as_echo "$ac_try_echo") >&5
22562 (eval "$ac_compile") 2>conftest.er1
22563 ac_status=$?
22564 grep -v '^ *+' conftest.er1 >conftest.err
22565 rm -f conftest.er1
22566 cat conftest.err >&5
22567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); } && {
22569 test -z "$ac_c_werror_flag" ||
22570 test ! -s conftest.err
22571 } && test -s conftest.$ac_objext; then
22572 ac_header_compiler=yes
22573else
22574 $as_echo "$as_me: failed program was:" >&5
22575sed 's/^/| /' conftest.$ac_ext >&5
22576
22577 ac_header_compiler=no
22578fi
22579
22580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22582$as_echo "$ac_header_compiler" >&6; }
22583
22584# Is the header present?
22585{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
22586$as_echo_n "checking zlib.h presence... " >&6; }
22587cat >conftest.$ac_ext <<_ACEOF
22588/* confdefs.h. */
22589_ACEOF
22590cat confdefs.h >>conftest.$ac_ext
22591cat >>conftest.$ac_ext <<_ACEOF
22592/* end confdefs.h. */
22593#include <zlib.h>
22594_ACEOF
22595if { (ac_try="$ac_cpp conftest.$ac_ext"
22596case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22599esac
22600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22601$as_echo "$ac_try_echo") >&5
22602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } >/dev/null && {
22609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 }; then
22612 ac_header_preproc=yes
22613else
22614 $as_echo "$as_me: failed program was:" >&5
22615sed 's/^/| /' conftest.$ac_ext >&5
22616
22617 ac_header_preproc=no
22618fi
22619
22620rm -f conftest.err conftest.$ac_ext
22621{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22622$as_echo "$ac_header_preproc" >&6; }
22623
22624# So? What about this header?
22625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22626 yes:no: )
22627 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22628$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22629 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22630$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22631 ac_header_preproc=yes
22632 ;;
22633 no:yes:* )
22634 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22635$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22636 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22637$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22638 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22639$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22640 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22641$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22642 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22643$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22644 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22645$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22646
22647 ;;
22648esac
22649{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
22650$as_echo_n "checking for zlib.h... " >&6; }
22651if test "${ac_cv_header_zlib_h+set}" = set; then
22652 $as_echo_n "(cached) " >&6
22653else
22654 ac_cv_header_zlib_h=$ac_header_preproc
22655fi
22656{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22657$as_echo "$ac_cv_header_zlib_h" >&6; }
22658
22659fi
22660if test "x$ac_cv_header_zlib_h" = x""yes; then
22661 :
22662else
22663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22665{ { $as_echo "$as_me:$LINENO: error:
22666 *** zlib.h missing, zlib-devel package required
22667See \`config.log' for more details." >&5
22668$as_echo "$as_me: error:
22669 *** zlib.h missing, zlib-devel package required
22670See \`config.log' for more details." >&2;}
22671 { (exit 1); exit 1; }; }; }
22672fi
22673
22674
22675
22676
22677{ $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
22678$as_echo_n "checking for compress2 in -lz... " >&6; }
22679if test "${ac_cv_lib_z_compress2+set}" = set; then
22680 $as_echo_n "(cached) " >&6
22681else
22682 ac_check_lib_save_LIBS=$LIBS
22683LIBS="-lz $LIBS"
22684cat >conftest.$ac_ext <<_ACEOF
22685/* confdefs.h. */
22686_ACEOF
22687cat confdefs.h >>conftest.$ac_ext
22688cat >>conftest.$ac_ext <<_ACEOF
22689/* end confdefs.h. */
22690
22691/* Override any GCC internal prototype to avoid an error.
22692 Use char because int might match the return type of a GCC
22693 builtin and then its argument prototype would still apply. */
22694#ifdef __cplusplus
22695extern "C"
22696#endif
22697char compress2 ();
22698int
22699main ()
22700{
22701return compress2 ();
22702 ;
22703 return 0;
22704}
22705_ACEOF
22706rm -f conftest.$ac_objext conftest$ac_exeext
22707if { (ac_try="$ac_link"
22708case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22711esac
22712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22713$as_echo "$ac_try_echo") >&5
22714 (eval "$ac_link") 2>conftest.er1
22715 ac_status=$?
22716 grep -v '^ *+' conftest.er1 >conftest.err
22717 rm -f conftest.er1
22718 cat conftest.err >&5
22719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } && {
22721 test -z "$ac_c_werror_flag" ||
22722 test ! -s conftest.err
22723 } && test -s conftest$ac_exeext && {
22724 test "$cross_compiling" = yes ||
22725 $as_test_x conftest$ac_exeext
22726 }; then
22727 ac_cv_lib_z_compress2=yes
22728else
22729 $as_echo "$as_me: failed program was:" >&5
22730sed 's/^/| /' conftest.$ac_ext >&5
22731
22732 ac_cv_lib_z_compress2=no
22733fi
22734
22735rm -rf conftest.dSYM
22736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22737 conftest$ac_exeext conftest.$ac_ext
22738LIBS=$ac_check_lib_save_LIBS
22739fi
22740{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
22741$as_echo "$ac_cv_lib_z_compress2" >&6; }
22742if test "x$ac_cv_lib_z_compress2" = x""yes; then
22743 cat >>confdefs.h <<_ACEOF
22744#define HAVE_LIBZ 1
22745_ACEOF
22746
22747 LIBS="-lz $LIBS"
22748
22749else
22750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22752{ { $as_echo "$as_me:$LINENO: error:
22753 *** compress2() missing, zlib-devel package required
22754See \`config.log' for more details." >&5
22755$as_echo "$as_me: error:
22756 *** compress2() missing, zlib-devel package required
22757See \`config.log' for more details." >&2;}
22758 { (exit 1); exit 1; }; }; }
22759fi
22760
22761
22762
22763{ $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
22764$as_echo_n "checking for uncompress in -lz... " >&6; }
22765if test "${ac_cv_lib_z_uncompress+set}" = set; then
22766 $as_echo_n "(cached) " >&6
22767else
22768 ac_check_lib_save_LIBS=$LIBS
22769LIBS="-lz $LIBS"
22770cat >conftest.$ac_ext <<_ACEOF
22771/* confdefs.h. */
22772_ACEOF
22773cat confdefs.h >>conftest.$ac_ext
22774cat >>conftest.$ac_ext <<_ACEOF
22775/* end confdefs.h. */
22776
22777/* Override any GCC internal prototype to avoid an error.
22778 Use char because int might match the return type of a GCC
22779 builtin and then its argument prototype would still apply. */
22780#ifdef __cplusplus
22781extern "C"
22782#endif
22783char uncompress ();
22784int
22785main ()
22786{
22787return uncompress ();
22788 ;
22789 return 0;
22790}
22791_ACEOF
22792rm -f conftest.$ac_objext conftest$ac_exeext
22793if { (ac_try="$ac_link"
22794case "(($ac_try" in
22795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22796 *) ac_try_echo=$ac_try;;
22797esac
22798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22799$as_echo "$ac_try_echo") >&5
22800 (eval "$ac_link") 2>conftest.er1
22801 ac_status=$?
22802 grep -v '^ *+' conftest.er1 >conftest.err
22803 rm -f conftest.er1
22804 cat conftest.err >&5
22805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } && {
22807 test -z "$ac_c_werror_flag" ||
22808 test ! -s conftest.err
22809 } && test -s conftest$ac_exeext && {
22810 test "$cross_compiling" = yes ||
22811 $as_test_x conftest$ac_exeext
22812 }; then
22813 ac_cv_lib_z_uncompress=yes
22814else
22815 $as_echo "$as_me: failed program was:" >&5
22816sed 's/^/| /' conftest.$ac_ext >&5
22817
22818 ac_cv_lib_z_uncompress=no
22819fi
22820
22821rm -rf conftest.dSYM
22822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22823 conftest$ac_exeext conftest.$ac_ext
22824LIBS=$ac_check_lib_save_LIBS
22825fi
22826{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
22827$as_echo "$ac_cv_lib_z_uncompress" >&6; }
22828if test "x$ac_cv_lib_z_uncompress" = x""yes; then
22829 cat >>confdefs.h <<_ACEOF
22830#define HAVE_LIBZ 1
22831_ACEOF
22832
22833 LIBS="-lz $LIBS"
22834
22835else
22836 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22838{ { $as_echo "$as_me:$LINENO: error:
22839 *** uncompress() missing, zlib-devel package required
22840See \`config.log' for more details." >&5
22841$as_echo "$as_me: error:
22842 *** uncompress() missing, zlib-devel package required
22843See \`config.log' for more details." >&2;}
22844 { (exit 1); exit 1; }; }; }
22845fi
22846
22847
22848
22849{ $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
22850$as_echo_n "checking for crc32 in -lz... " >&6; }
22851if test "${ac_cv_lib_z_crc32+set}" = set; then
22852 $as_echo_n "(cached) " >&6
22853else
22854 ac_check_lib_save_LIBS=$LIBS
22855LIBS="-lz $LIBS"
22856cat >conftest.$ac_ext <<_ACEOF
22857/* confdefs.h. */
22858_ACEOF
22859cat confdefs.h >>conftest.$ac_ext
22860cat >>conftest.$ac_ext <<_ACEOF
22861/* end confdefs.h. */
22862
22863/* Override any GCC internal prototype to avoid an error.
22864 Use char because int might match the return type of a GCC
22865 builtin and then its argument prototype would still apply. */
22866#ifdef __cplusplus
22867extern "C"
22868#endif
22869char crc32 ();
22870int
22871main ()
22872{
22873return crc32 ();
22874 ;
22875 return 0;
22876}
22877_ACEOF
22878rm -f conftest.$ac_objext conftest$ac_exeext
22879if { (ac_try="$ac_link"
22880case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22883esac
22884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22885$as_echo "$ac_try_echo") >&5
22886 (eval "$ac_link") 2>conftest.er1
22887 ac_status=$?
22888 grep -v '^ *+' conftest.er1 >conftest.err
22889 rm -f conftest.er1
22890 cat conftest.err >&5
22891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); } && {
22893 test -z "$ac_c_werror_flag" ||
22894 test ! -s conftest.err
22895 } && test -s conftest$ac_exeext && {
22896 test "$cross_compiling" = yes ||
22897 $as_test_x conftest$ac_exeext
22898 }; then
22899 ac_cv_lib_z_crc32=yes
22900else
22901 $as_echo "$as_me: failed program was:" >&5
22902sed 's/^/| /' conftest.$ac_ext >&5
22903
22904 ac_cv_lib_z_crc32=no
22905fi
22906
22907rm -rf conftest.dSYM
22908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22909 conftest$ac_exeext conftest.$ac_ext
22910LIBS=$ac_check_lib_save_LIBS
22911fi
22912{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
22913$as_echo "$ac_cv_lib_z_crc32" >&6; }
22914if test "x$ac_cv_lib_z_crc32" = x""yes; then
22915 cat >>confdefs.h <<_ACEOF
22916#define HAVE_LIBZ 1
22917_ACEOF
22918
22919 LIBS="-lz $LIBS"
22920
22921else
22922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22924{ { $as_echo "$as_me:$LINENO: error:
22925 *** crc32() missing, zlib-devel package required
22926See \`config.log' for more details." >&5
22927$as_echo "$as_me: error:
22928 *** crc32() missing, zlib-devel package required
22929See \`config.log' for more details." >&2;}
22930 { (exit 1); exit 1; }; }; }
22931fi
22932
22933
22934 ZLIB="-lz"
22935
22936
22937cat >>confdefs.h <<\_ACEOF
22938#define HAVE_ZLIB 1
22939_ACEOF
22940
22941
22942
22943 LIBUUID=
22944
22945 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22946 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
22947$as_echo_n "checking for uuid/uuid.h... " >&6; }
22948if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22949 $as_echo_n "(cached) " >&6
22950fi
22951{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
22952$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
22953else
22954 # Is the header compilable?
22955{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
22956$as_echo_n "checking uuid/uuid.h usability... " >&6; }
22957cat >conftest.$ac_ext <<_ACEOF
22958/* confdefs.h. */
22959_ACEOF
22960cat confdefs.h >>conftest.$ac_ext
22961cat >>conftest.$ac_ext <<_ACEOF
22962/* end confdefs.h. */
22963$ac_includes_default
22964#include <uuid/uuid.h>
22965_ACEOF
22966rm -f conftest.$ac_objext
22967if { (ac_try="$ac_compile"
22968case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22971esac
22972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22973$as_echo "$ac_try_echo") >&5
22974 (eval "$ac_compile") 2>conftest.er1
22975 ac_status=$?
22976 grep -v '^ *+' conftest.er1 >conftest.err
22977 rm -f conftest.er1
22978 cat conftest.err >&5
22979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } && {
22981 test -z "$ac_c_werror_flag" ||
22982 test ! -s conftest.err
22983 } && test -s conftest.$ac_objext; then
22984 ac_header_compiler=yes
22985else
22986 $as_echo "$as_me: failed program was:" >&5
22987sed 's/^/| /' conftest.$ac_ext >&5
22988
22989 ac_header_compiler=no
22990fi
22991
22992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22994$as_echo "$ac_header_compiler" >&6; }
22995
22996# Is the header present?
22997{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
22998$as_echo_n "checking uuid/uuid.h presence... " >&6; }
22999cat >conftest.$ac_ext <<_ACEOF
23000/* confdefs.h. */
23001_ACEOF
23002cat confdefs.h >>conftest.$ac_ext
23003cat >>conftest.$ac_ext <<_ACEOF
23004/* end confdefs.h. */
23005#include <uuid/uuid.h>
23006_ACEOF
23007if { (ac_try="$ac_cpp conftest.$ac_ext"
23008case "(($ac_try" in
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010 *) ac_try_echo=$ac_try;;
23011esac
23012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23013$as_echo "$ac_try_echo") >&5
23014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23015 ac_status=$?
23016 grep -v '^ *+' conftest.er1 >conftest.err
23017 rm -f conftest.er1
23018 cat conftest.err >&5
23019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } >/dev/null && {
23021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23022 test ! -s conftest.err
23023 }; then
23024 ac_header_preproc=yes
23025else
23026 $as_echo "$as_me: failed program was:" >&5
23027sed 's/^/| /' conftest.$ac_ext >&5
23028
23029 ac_header_preproc=no
23030fi
23031
23032rm -f conftest.err conftest.$ac_ext
23033{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23034$as_echo "$ac_header_preproc" >&6; }
23035
23036# So? What about this header?
23037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23038 yes:no: )
23039 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23040$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23041 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
23042$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
23043 ac_header_preproc=yes
23044 ;;
23045 no:yes:* )
23046 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
23047$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
23048 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
23049$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
23050 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
23051$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
23052 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
23053$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23054 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
23055$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
23056 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
23057$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
23058
23059 ;;
23060esac
23061{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
23062$as_echo_n "checking for uuid/uuid.h... " >&6; }
23063if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
23064 $as_echo_n "(cached) " >&6
23065else
23066 ac_cv_header_uuid_uuid_h=$ac_header_preproc
23067fi
23068{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
23069$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
23070
23071fi
23072if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
23073 :
23074else
23075 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23077{ { $as_echo "$as_me:$LINENO: error:
23078 *** uuid/uuid.h missing, libuuid-devel package required
23079See \`config.log' for more details." >&5
23080$as_echo "$as_me: error:
23081 *** uuid/uuid.h missing, libuuid-devel package required
23082See \`config.log' for more details." >&2;}
23083 { (exit 1); exit 1; }; }; }
23084fi
23085
23086
23087
23088
23089{ $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
23090$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
23091if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
23092 $as_echo_n "(cached) " >&6
23093else
23094 ac_check_lib_save_LIBS=$LIBS
23095LIBS="-luuid $LIBS"
23096cat >conftest.$ac_ext <<_ACEOF
23097/* confdefs.h. */
23098_ACEOF
23099cat confdefs.h >>conftest.$ac_ext
23100cat >>conftest.$ac_ext <<_ACEOF
23101/* end confdefs.h. */
23102
23103/* Override any GCC internal prototype to avoid an error.
23104 Use char because int might match the return type of a GCC
23105 builtin and then its argument prototype would still apply. */
23106#ifdef __cplusplus
23107extern "C"
23108#endif
23109char uuid_generate ();
23110int
23111main ()
23112{
23113return uuid_generate ();
23114 ;
23115 return 0;
23116}
23117_ACEOF
23118rm -f conftest.$ac_objext conftest$ac_exeext
23119if { (ac_try="$ac_link"
23120case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23123esac
23124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23125$as_echo "$ac_try_echo") >&5
23126 (eval "$ac_link") 2>conftest.er1
23127 ac_status=$?
23128 grep -v '^ *+' conftest.er1 >conftest.err
23129 rm -f conftest.er1
23130 cat conftest.err >&5
23131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); } && {
23133 test -z "$ac_c_werror_flag" ||
23134 test ! -s conftest.err
23135 } && test -s conftest$ac_exeext && {
23136 test "$cross_compiling" = yes ||
23137 $as_test_x conftest$ac_exeext
23138 }; then
23139 ac_cv_lib_uuid_uuid_generate=yes
23140else
23141 $as_echo "$as_me: failed program was:" >&5
23142sed 's/^/| /' conftest.$ac_ext >&5
23143
23144 ac_cv_lib_uuid_uuid_generate=no
23145fi
23146
23147rm -rf conftest.dSYM
23148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23149 conftest$ac_exeext conftest.$ac_ext
23150LIBS=$ac_check_lib_save_LIBS
23151fi
23152{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
23153$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
23154if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
23155 cat >>confdefs.h <<_ACEOF
23156#define HAVE_LIBUUID 1
23157_ACEOF
23158
23159 LIBS="-luuid $LIBS"
23160
23161else
23162 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23164{ { $as_echo "$as_me:$LINENO: error:
23165 *** uuid_generate() missing, libuuid-devel package required
23166See \`config.log' for more details." >&5
23167$as_echo "$as_me: error:
23168 *** uuid_generate() missing, libuuid-devel package required
23169See \`config.log' for more details." >&2;}
23170 { (exit 1); exit 1; }; }; }
23171fi
23172
23173
23174
23175{ $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
23176$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
23177if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
23178 $as_echo_n "(cached) " >&6
23179else
23180 ac_check_lib_save_LIBS=$LIBS
23181LIBS="-luuid $LIBS"
23182cat >conftest.$ac_ext <<_ACEOF
23183/* confdefs.h. */
23184_ACEOF
23185cat confdefs.h >>conftest.$ac_ext
23186cat >>conftest.$ac_ext <<_ACEOF
23187/* end confdefs.h. */
23188
23189/* Override any GCC internal prototype to avoid an error.
23190 Use char because int might match the return type of a GCC
23191 builtin and then its argument prototype would still apply. */
23192#ifdef __cplusplus
23193extern "C"
23194#endif
23195char uuid_is_null ();
23196int
23197main ()
23198{
23199return uuid_is_null ();
23200 ;
23201 return 0;
23202}
23203_ACEOF
23204rm -f conftest.$ac_objext conftest$ac_exeext
23205if { (ac_try="$ac_link"
23206case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23209esac
23210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23211$as_echo "$ac_try_echo") >&5
23212 (eval "$ac_link") 2>conftest.er1
23213 ac_status=$?
23214 grep -v '^ *+' conftest.er1 >conftest.err
23215 rm -f conftest.er1
23216 cat conftest.err >&5
23217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && {
23219 test -z "$ac_c_werror_flag" ||
23220 test ! -s conftest.err
23221 } && test -s conftest$ac_exeext && {
23222 test "$cross_compiling" = yes ||
23223 $as_test_x conftest$ac_exeext
23224 }; then
23225 ac_cv_lib_uuid_uuid_is_null=yes
23226else
23227 $as_echo "$as_me: failed program was:" >&5
23228sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 ac_cv_lib_uuid_uuid_is_null=no
23231fi
23232
23233rm -rf conftest.dSYM
23234rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23235 conftest$ac_exeext conftest.$ac_ext
23236LIBS=$ac_check_lib_save_LIBS
23237fi
23238{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
23239$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
23240if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
23241 cat >>confdefs.h <<_ACEOF
23242#define HAVE_LIBUUID 1
23243_ACEOF
23244
23245 LIBS="-luuid $LIBS"
23246
23247else
23248 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23250{ { $as_echo "$as_me:$LINENO: error:
23251 *** uuid_is_null() missing, libuuid-devel package required
23252See \`config.log' for more details." >&5
23253$as_echo "$as_me: error:
23254 *** uuid_is_null() missing, libuuid-devel package required
23255See \`config.log' for more details." >&2;}
23256 { (exit 1); exit 1; }; }; }
23257fi
23258
23259
23260 LIBUUID="-luuid"
23261
23262
23263cat >>confdefs.h <<\_ACEOF
23264#define HAVE_LIBUUID 1
23265_ACEOF
23266
23267
23268
23269
23270# Check whether --with-blkid was given.
23271if test "${with_blkid+set}" = set; then
23272 withval=$with_blkid;
23273else
23274 with_blkid=check
23275fi
23276
23277
23278 LIBBLKID=
23279 if test "x$with_blkid" != xno; then
23280
23281 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
23282$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
23283if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
23284 $as_echo_n "(cached) " >&6
23285else
23286 ac_check_lib_save_LIBS=$LIBS
23287LIBS="-lblkid $LIBS"
23288cat >conftest.$ac_ext <<_ACEOF
23289/* confdefs.h. */
23290_ACEOF
23291cat confdefs.h >>conftest.$ac_ext
23292cat >>conftest.$ac_ext <<_ACEOF
23293/* end confdefs.h. */
23294
23295/* Override any GCC internal prototype to avoid an error.
23296 Use char because int might match the return type of a GCC
23297 builtin and then its argument prototype would still apply. */
23298#ifdef __cplusplus
23299extern "C"
23300#endif
23301char blkid_get_cache ();
23302int
23303main ()
23304{
23305return blkid_get_cache ();
23306 ;
23307 return 0;
23308}
23309_ACEOF
23310rm -f conftest.$ac_objext conftest$ac_exeext
23311if { (ac_try="$ac_link"
23312case "(($ac_try" in
23313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314 *) ac_try_echo=$ac_try;;
23315esac
23316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23317$as_echo "$ac_try_echo") >&5
23318 (eval "$ac_link") 2>conftest.er1
23319 ac_status=$?
23320 grep -v '^ *+' conftest.er1 >conftest.err
23321 rm -f conftest.er1
23322 cat conftest.err >&5
23323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } && {
23325 test -z "$ac_c_werror_flag" ||
23326 test ! -s conftest.err
23327 } && test -s conftest$ac_exeext && {
23328 test "$cross_compiling" = yes ||
23329 $as_test_x conftest$ac_exeext
23330 }; then
23331 ac_cv_lib_blkid_blkid_get_cache=yes
23332else
23333 $as_echo "$as_me: failed program was:" >&5
23334sed 's/^/| /' conftest.$ac_ext >&5
23335
23336 ac_cv_lib_blkid_blkid_get_cache=no
23337fi
23338
23339rm -rf conftest.dSYM
23340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23341 conftest$ac_exeext conftest.$ac_ext
23342LIBS=$ac_check_lib_save_LIBS
23343fi
23344{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
23345$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
23346if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
23347
23348 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
23349$as_echo_n "checking for blkid zfs support... " >&6; }
23350
23351 ZFS_DEV=`mktemp`
23352 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
23353 >/dev/null 2>/dev/null
23354 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
23355 dd of=$ZFS_DEV bs=1k count=8 \
23356 seek=132 conv=notrunc &>/dev/null \
23357 >/dev/null 2>/dev/null
23358
23359 saved_LDFLAGS="$LDFLAGS"
23360 LDFLAGS="-lblkid"
23361
23362 if test "$cross_compiling" = yes; then
23363 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23365{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23366See \`config.log' for more details." >&5
23367$as_echo "$as_me: error: cannot run test program while cross compiling
23368See \`config.log' for more details." >&2;}
23369 { (exit 1); exit 1; }; }; }
23370else
23371 cat >conftest.$ac_ext <<_ACEOF
23372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
23377
23378 #include <stdio.h>
23379 #include <blkid/blkid.h>
23380
23381int
23382main ()
23383{
23384
23385 blkid_cache cache;
23386 char *value;
23387
23388 if (blkid_get_cache(&cache, NULL) < 0)
23389 return 1;
23390
23391 value = blkid_get_tag_value(cache, "TYPE",
23392 "$ZFS_DEV");
23393 if (!value) {
23394 blkid_put_cache(cache);
23395 return 2;
23396 }
23397
23398 if (strcmp(value, "zfs")) {
23399 free(value);
23400 blkid_put_cache(cache);
23401 return 3;
23402 }
23403
23404 free(value);
23405 blkid_put_cache(cache);
23406
23407 ;
23408 return 0;
23409}
23410_ACEOF
23411rm -f conftest$ac_exeext
23412if { (ac_try="$ac_link"
23413case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23416esac
23417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23418$as_echo "$ac_try_echo") >&5
23419 (eval "$ac_link") 2>&5
23420 ac_status=$?
23421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23423 { (case "(($ac_try" in
23424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23425 *) ac_try_echo=$ac_try;;
23426esac
23427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23428$as_echo "$ac_try_echo") >&5
23429 (eval "$ac_try") 2>&5
23430 ac_status=$?
23431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432 (exit $ac_status); }; }; then
23433
23434 rm -f $ZFS_DEV
23435 { $as_echo "$as_me:$LINENO: result: yes" >&5
23436$as_echo "yes" >&6; }
23437 LIBBLKID="-lblkid"
23438
23439
23440cat >>confdefs.h <<\_ACEOF
23441#define HAVE_LIBBLKID 1
23442_ACEOF
23443
23444
23445else
23446 $as_echo "$as_me: program exited with status $ac_status" >&5
23447$as_echo "$as_me: failed program was:" >&5
23448sed 's/^/| /' conftest.$ac_ext >&5
23449
23450( exit $ac_status )
23451
23452 rm -f $ZFS_DEV
23453 { $as_echo "$as_me:$LINENO: result: no" >&5
23454$as_echo "no" >&6; }
23455 if test "x$with_blkid" != xcheck; then
23456 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23458{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
23459See \`config.log' for more details." >&5
23460$as_echo "$as_me: error: --with-blkid given but unavailable
23461See \`config.log' for more details." >&2;}
23462 { (exit 1); exit 1; }; }; }
23463fi
23464
23465
23466fi
23467rm -rf conftest.dSYM
23468rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23469fi
23470
23471
23472
23473 LDFLAGS="$saved_LDFLAGS"
23474
23475else
23476
23477 if test "x$with_blkid" != xcheck; then
23478 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23480{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
23481See \`config.log' for more details." >&5
23482$as_echo "$as_me: error: --with-blkid given but unavailable
23483See \`config.log' for more details." >&2;}
23484 { (exit 1); exit 1; }; }; }
23485fi
23486
23487
23488
23489fi
23490
23491
23492fi
23493
23494
23495
b3259b6a
BB
23496
23497# Check whether --with-selinux was given.
23498if test "${with_selinux+set}" = set; then
23499 withval=$with_selinux;
23500else
23501 with_selinux=check
23502fi
23503
23504
23505 LIBSELINUX=
23506 if test "x$with_selinux" != xno; then
23507
23508 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23509 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
23510$as_echo_n "checking for selinux/selinux.h... " >&6; }
23511if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23512 $as_echo_n "(cached) " >&6
23513fi
23514{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
23515$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
23516else
23517 # Is the header compilable?
23518{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
23519$as_echo_n "checking selinux/selinux.h usability... " >&6; }
23520cat >conftest.$ac_ext <<_ACEOF
23521/* confdefs.h. */
23522_ACEOF
23523cat confdefs.h >>conftest.$ac_ext
23524cat >>conftest.$ac_ext <<_ACEOF
23525/* end confdefs.h. */
23526$ac_includes_default
23527#include <selinux/selinux.h>
23528_ACEOF
23529rm -f conftest.$ac_objext
23530if { (ac_try="$ac_compile"
23531case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23534esac
23535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536$as_echo "$ac_try_echo") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 ac_header_compiler=yes
23548else
23549 $as_echo "$as_me: failed program was:" >&5
23550sed 's/^/| /' conftest.$ac_ext >&5
23551
23552 ac_header_compiler=no
23553fi
23554
23555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23557$as_echo "$ac_header_compiler" >&6; }
23558
23559# Is the header present?
23560{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
23561$as_echo_n "checking selinux/selinux.h presence... " >&6; }
23562cat >conftest.$ac_ext <<_ACEOF
23563/* confdefs.h. */
23564_ACEOF
23565cat confdefs.h >>conftest.$ac_ext
23566cat >>conftest.$ac_ext <<_ACEOF
23567/* end confdefs.h. */
23568#include <selinux/selinux.h>
23569_ACEOF
23570if { (ac_try="$ac_cpp conftest.$ac_ext"
23571case "(($ac_try" in
23572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23574esac
23575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23576$as_echo "$ac_try_echo") >&5
23577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23578 ac_status=$?
23579 grep -v '^ *+' conftest.er1 >conftest.err
23580 rm -f conftest.er1
23581 cat conftest.err >&5
23582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } >/dev/null && {
23584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 }; then
23587 ac_header_preproc=yes
23588else
23589 $as_echo "$as_me: failed program was:" >&5
23590sed 's/^/| /' conftest.$ac_ext >&5
23591
23592 ac_header_preproc=no
23593fi
23594
23595rm -f conftest.err conftest.$ac_ext
23596{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23597$as_echo "$ac_header_preproc" >&6; }
23598
23599# So? What about this header?
23600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23601 yes:no: )
23602 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
23603$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23604 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
23605$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
23606 ac_header_preproc=yes
23607 ;;
23608 no:yes:* )
23609 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
23610$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
23611 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
23612$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
23614$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
23616$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
23618$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
23620$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
23621
23622 ;;
23623esac
23624{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
23625$as_echo_n "checking for selinux/selinux.h... " >&6; }
23626if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23627 $as_echo_n "(cached) " >&6
23628else
23629 ac_cv_header_selinux_selinux_h=$ac_header_preproc
23630fi
23631{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
23632$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
23633
23634fi
23635if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
23636
23637 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
23638$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
23639if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
23640 $as_echo_n "(cached) " >&6
23641else
23642 ac_check_lib_save_LIBS=$LIBS
23643LIBS="-lselinux $LIBS"
23644cat >conftest.$ac_ext <<_ACEOF
23645/* confdefs.h. */
23646_ACEOF
23647cat confdefs.h >>conftest.$ac_ext
23648cat >>conftest.$ac_ext <<_ACEOF
23649/* end confdefs.h. */
23650
23651/* Override any GCC internal prototype to avoid an error.
23652 Use char because int might match the return type of a GCC
23653 builtin and then its argument prototype would still apply. */
23654#ifdef __cplusplus
23655extern "C"
23656#endif
23657char is_selinux_enabled ();
23658int
23659main ()
23660{
23661return is_selinux_enabled ();
23662 ;
23663 return 0;
23664}
23665_ACEOF
23666rm -f conftest.$ac_objext conftest$ac_exeext
23667if { (ac_try="$ac_link"
23668case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23671esac
23672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23673$as_echo "$ac_try_echo") >&5
23674 (eval "$ac_link") 2>conftest.er1
23675 ac_status=$?
23676 grep -v '^ *+' conftest.er1 >conftest.err
23677 rm -f conftest.er1
23678 cat conftest.err >&5
23679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } && {
23681 test -z "$ac_c_werror_flag" ||
23682 test ! -s conftest.err
23683 } && test -s conftest$ac_exeext && {
23684 test "$cross_compiling" = yes ||
23685 $as_test_x conftest$ac_exeext
23686 }; then
23687 ac_cv_lib_selinux_is_selinux_enabled=yes
23688else
23689 $as_echo "$as_me: failed program was:" >&5
23690sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 ac_cv_lib_selinux_is_selinux_enabled=no
23693fi
23694
23695rm -rf conftest.dSYM
23696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23697 conftest$ac_exeext conftest.$ac_ext
23698LIBS=$ac_check_lib_save_LIBS
23699fi
23700{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
23701$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
23702if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
23703
23704 LIBSELINUX="-lselinux"
23705
23706
23707cat >>confdefs.h <<\_ACEOF
23708#define HAVE_LIBSELINUX 1
23709_ACEOF
23710
23711
23712else
23713
23714 if test "x$with_selinux" != xcheck; then
23715 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23717{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
23718See \`config.log' for more details." >&5
23719$as_echo "$as_me: error: --with-selinux given but unavailable
23720See \`config.log' for more details." >&2;}
23721 { (exit 1); exit 1; }; }; }
23722
23723fi
23724
23725
23726fi
23727
23728
23729else
23730
23731 if test "x$with_selinux" != xcheck; then
23732 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23734{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
23735See \`config.log' for more details." >&5
23736$as_echo "$as_me: error: --with-selinux given but unavailable
23737See \`config.log' for more details." >&2;}
23738 { (exit 1); exit 1; }; }; }
23739
23740fi
23741
23742
23743fi
23744
23745
23746
23747else
23748
23749 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
23750$as_echo_n "checking for selinux support... " >&6; }
23751 { $as_echo "$as_me:$LINENO: result: no" >&5
23752$as_echo "no" >&6; }
23753
23754fi
23755
23756
23757
e70e591c
BB
23758 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
23759$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
23760
23761 saved_flags="$CFLAGS"
23762 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
23763
23764 if test "$cross_compiling" = yes; then
23765 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23767{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23768See \`config.log' for more details." >&5
23769$as_echo "$as_me: error: cannot run test program while cross compiling
23770See \`config.log' for more details." >&2;}
23771 { (exit 1); exit 1; }; }; }
23772else
23773 cat >conftest.$ac_ext <<_ACEOF
23774/* confdefs.h. */
23775_ACEOF
23776cat confdefs.h >>conftest.$ac_ext
23777cat >>conftest.$ac_ext <<_ACEOF
23778/* end confdefs.h. */
23779
23780int
23781main ()
23782{
23783
23784 ;
23785 return 0;
23786}
23787_ACEOF
23788rm -f conftest$ac_exeext
23789if { (ac_try="$ac_link"
23790case "(($ac_try" in
23791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792 *) ac_try_echo=$ac_try;;
23793esac
23794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23795$as_echo "$ac_try_echo") >&5
23796 (eval "$ac_link") 2>&5
23797 ac_status=$?
23798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23800 { (case "(($ac_try" in
23801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802 *) ac_try_echo=$ac_try;;
23803esac
23804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23805$as_echo "$ac_try_echo") >&5
23806 (eval "$ac_try") 2>&5
23807 ac_status=$?
23808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); }; }; then
23810
23811 FRAME_LARGER_THAN=-Wframe-larger-than=1024
23812 { $as_echo "$as_me:$LINENO: result: yes" >&5
23813$as_echo "yes" >&6; }
23814
23815else
23816 $as_echo "$as_me: program exited with status $ac_status" >&5
23817$as_echo "$as_me: failed program was:" >&5
23818sed 's/^/| /' conftest.$ac_ext >&5
23819
23820( exit $ac_status )
23821
23822 FRAME_LARGER_THAN=
23823 { $as_echo "$as_me:$LINENO: result: no" >&5
23824$as_echo "no" >&6; }
23825
23826fi
23827rm -rf conftest.dSYM
23828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23829fi
23830
23831
23832
23833 CFLAGS="$saved_flags"
23834
23835
23836
23837
23838 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
23839$as_echo_n "checking whether pthread stack includes guard... " >&6; }
23840
23841 saved_CFLAGS="$CFLAGS"
23842 CFLAGS="-fstack-check"
23843 saved_LDFLAGS="$LDFLAGS"
23844 LDFLAGS="-lpthread"
23845
23846 if test "$cross_compiling" = yes; then
23847 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23848$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23849{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23850See \`config.log' for more details." >&5
23851$as_echo "$as_me: error: cannot run test program while cross compiling
23852See \`config.log' for more details." >&2;}
23853 { (exit 1); exit 1; }; }; }
23854else
23855 cat >conftest.$ac_ext <<_ACEOF
23856/* confdefs.h. */
23857_ACEOF
23858cat confdefs.h >>conftest.$ac_ext
23859cat >>conftest.$ac_ext <<_ACEOF
23860/* end confdefs.h. */
23861
23862 #include <pthread.h>
23863 #include <sys/resource.h>
23864 #include <unistd.h>
23865 #include <bits/local_lim.h>
23866
23867 #define PAGESIZE (sysconf(_SC_PAGESIZE))
23868 #define STACK_SIZE 8192
23869 #define BUFSIZE 4096
23870
23871 void * func(void *arg)
23872 {
23873 char buf[BUFSIZE];
23874 }
23875
23876int
23877main ()
23878{
23879
23880 pthread_t tid;
23881 pthread_attr_t attr;
23882 struct rlimit l;
23883
23884 l.rlim_cur = 0;
23885 l.rlim_max = 0;
23886 setrlimit(RLIMIT_CORE, &l);
23887 pthread_attr_init(&attr);
23888 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
23889 pthread_attr_setguardsize(&attr, PAGESIZE);
23890 pthread_create(&tid, &attr, func, NULL);
23891 pthread_join(tid, NULL);
23892
23893 ;
23894 return 0;
23895}
23896_ACEOF
23897rm -f conftest$ac_exeext
23898if { (ac_try="$ac_link"
23899case "(($ac_try" in
23900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901 *) ac_try_echo=$ac_try;;
23902esac
23903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904$as_echo "$ac_try_echo") >&5
23905 (eval "$ac_link") 2>&5
23906 ac_status=$?
23907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23909 { (case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912esac
23913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23914$as_echo "$ac_try_echo") >&5
23915 (eval "$ac_try") 2>&5
23916 ac_status=$?
23917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); }; }; then
23919
23920 { $as_echo "$as_me:$LINENO: result: no" >&5
23921$as_echo "no" >&6; }
23922
23923else
23924 $as_echo "$as_me: program exited with status $ac_status" >&5
23925$as_echo "$as_me: failed program was:" >&5
23926sed 's/^/| /' conftest.$ac_ext >&5
23927
23928( exit $ac_status )
23929
23930
23931cat >>confdefs.h <<\_ACEOF
23932#define NPTL_GUARD_WITHIN_STACK 1
23933_ACEOF
23934
23935 { $as_echo "$as_me:$LINENO: result: yes" >&5
23936$as_echo "yes" >&6; }
23937
23938fi
23939rm -rf conftest.dSYM
23940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23941fi
23942
23943
23944 CFLAGS="$saved_CFLAGS"
23945 LDFLAGS="$saved_LDFLAGS"
23946
23947 ;;
23948 srpm) ;;
23949 *)
23950 { $as_echo "$as_me:$LINENO: result: Error!" >&5
23951$as_echo "Error!" >&6; }
23952 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
23953 user kernel|user|all|srpm" >&5
23954$as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
23955 user kernel|user|all|srpm" >&2;}
23956 { (exit 1); exit 1; }; } ;;
23957 esac
23958
23959 if test "$ZFS_CONFIG" = user ||
23960 test "$ZFS_CONFIG" = all; then
23961 CONFIG_USER_TRUE=
23962 CONFIG_USER_FALSE='#'
23963else
23964 CONFIG_USER_TRUE='#'
23965 CONFIG_USER_FALSE=
23966fi
23967
23968 if test "$ZFS_CONFIG" = kernel ||
23969 test "$ZFS_CONFIG" = all; then
23970 CONFIG_KERNEL_TRUE=
23971 CONFIG_KERNEL_FALSE='#'
23972else
23973 CONFIG_KERNEL_TRUE='#'
23974 CONFIG_KERNEL_FALSE=
23975fi
23976
23977
23978
e70e591c
BB
23979 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
23980$as_echo_n "checking whether debugging is enabled... " >&6; }
23981 # Check whether --enable-debug was given.
23982if test "${enable_debug+set}" = set; then
23983 enableval=$enable_debug;
23984else
23985 enable_debug=no
23986fi
23987
23988
23989 if test "x$enable_debug" = xyes; then
23990
23991 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
23992 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
23993 DEBUG_CFLAGS="-DDEBUG -Werror"
23994 DEBUG_STACKFLAGS="-fstack-check"
4b787d75
BB
23995 DEBUG_ZFS="_with_debug"
23996
23997cat >>confdefs.h <<\_ACEOF
23998#define ZFS_DEBUG 1
23999_ACEOF
24000
e70e591c
BB
24001
24002else
24003
24004 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
24005 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
24006 DEBUG_CFLAGS="-DNDEBUG"
24007 DEBUG_STACKFLAGS=""
4b787d75 24008 DEBUG_ZFS="_without_debug"
e70e591c
BB
24009
24010fi
24011
24012
24013
24014
4b787d75 24015
e70e591c
BB
24016 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
24017$as_echo "$enable_debug" >&6; }
24018
24019
1c5de20a
BB
24020 # Check whether --enable-debug-dmu-tx was given.
24021if test "${enable_debug_dmu_tx+set}" = set; then
24022 enableval=$enable_debug_dmu_tx;
24023else
24024 enable_debug_dmu_tx=no
24025fi
24026
24027
24028 if test "x$enable_debug_dmu_tx" = xyes; then
24029
24030 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
24031 DEBUG_DMU_TX="_with_debug_dmu_tx"
24032
24033cat >>confdefs.h <<\_ACEOF
24034#define DEBUG_DMU_TX 1
24035_ACEOF
24036
24037
24038else
24039
24040 DEBUG_DMU_TX="_without_debug_dmu_tx"
24041
24042fi
24043
24044
24045
24046 { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
24047$as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
24048 { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
24049$as_echo "$enable_debug_dmu_tx" >&6; }
24050
24051
6ba3b446 24052ac_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/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/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/sas_switch_id/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/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec PKGBUILD-zfs PKGBUILD-zfs-modules zfs-script-config.sh"
e70e591c
BB
24053
24054
24055cat >confcache <<\_ACEOF
24056# This file is a shell script that caches the results of configure
24057# tests run on this system so they can be shared between configure
24058# scripts and configure runs, see configure's option --config-cache.
24059# It is not useful on other systems. If it contains results you don't
24060# want to keep, you may remove or edit it.
24061#
24062# config.status only pays attention to the cache file if you give it
24063# the --recheck option to rerun configure.
24064#
24065# `ac_cv_env_foo' variables (set or unset) will be overridden when
24066# loading this file, other *unset* `ac_cv_foo' will be assigned the
24067# following values.
24068
24069_ACEOF
24070
24071# The following way of writing the cache mishandles newlines in values,
24072# but we know of no workaround that is simple, portable, and efficient.
24073# So, we kill variables containing newlines.
24074# Ultrix sh set writes to stderr and can't be redirected directly,
24075# and sets the high bit in the cache file unless we assign to the vars.
24076(
24077 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24078 eval ac_val=\$$ac_var
24079 case $ac_val in #(
24080 *${as_nl}*)
24081 case $ac_var in #(
24082 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
24083$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24084 esac
24085 case $ac_var in #(
24086 _ | IFS | as_nl) ;; #(
24087 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24088 *) $as_unset $ac_var ;;
24089 esac ;;
24090 esac
24091 done
24092
24093 (set) 2>&1 |
24094 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24095 *${as_nl}ac_space=\ *)
24096 # `set' does not quote correctly, so add quotes (double-quote
24097 # substitution turns \\\\ into \\, and sed turns \\ into \).
24098 sed -n \
24099 "s/'/'\\\\''/g;
24100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24101 ;; #(
24102 *)
24103 # `set' quotes correctly as required by POSIX, so do not add quotes.
24104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24105 ;;
24106 esac |
24107 sort
24108) |
24109 sed '
24110 /^ac_cv_env_/b end
24111 t clear
24112 :clear
24113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24114 t end
24115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24116 :end' >>confcache
24117if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24118 if test -w "$cache_file"; then
24119 test "x$cache_file" != "x/dev/null" &&
24120 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24121$as_echo "$as_me: updating cache $cache_file" >&6;}
24122 cat confcache >$cache_file
24123 else
24124 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24125$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24126 fi
24127fi
24128rm -f confcache
24129
24130test "x$prefix" = xNONE && prefix=$ac_default_prefix
24131# Let make expand exec_prefix.
24132test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24133
24134DEFS=-DHAVE_CONFIG_H
24135
24136ac_libobjs=
24137ac_ltlibobjs=
24138for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24139 # 1. Remove the extension, and $U if already installed.
24140 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24141 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24142 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24143 # will be set to the directory where LIBOBJS objects are built.
24144 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24145 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24146done
24147LIBOBJS=$ac_libobjs
24148
24149LTLIBOBJS=$ac_ltlibobjs
24150
24151
24152if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24153 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24154Usually this means the macro was only invoked conditionally." >&5
24155$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24156Usually this means the macro was only invoked conditionally." >&2;}
24157 { (exit 1); exit 1; }; }
24158fi
24159 if test -n "$EXEEXT"; then
24160 am__EXEEXT_TRUE=
24161 am__EXEEXT_FALSE='#'
24162else
24163 am__EXEEXT_TRUE='#'
24164 am__EXEEXT_FALSE=
24165fi
24166
24167if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24168 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24169Usually this means the macro was only invoked conditionally." >&5
24170$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24171Usually this means the macro was only invoked conditionally." >&2;}
24172 { (exit 1); exit 1; }; }
24173fi
24174if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24175 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24176Usually this means the macro was only invoked conditionally." >&5
24177$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24178Usually this means the macro was only invoked conditionally." >&2;}
24179 { (exit 1); exit 1; }; }
24180fi
24181if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24182 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
24183Usually this means the macro was only invoked conditionally." >&5
24184$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
24185Usually this means the macro was only invoked conditionally." >&2;}
24186 { (exit 1); exit 1; }; }
24187fi
24188if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
24189 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
24190Usually this means the macro was only invoked conditionally." >&5
24191$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
24192Usually this means the macro was only invoked conditionally." >&2;}
24193 { (exit 1); exit 1; }; }
24194fi
24195if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
24196 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
24197Usually this means the macro was only invoked conditionally." >&5
24198$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
24199Usually this means the macro was only invoked conditionally." >&2;}
24200 { (exit 1); exit 1; }; }
24201fi
24202
24203: ${CONFIG_STATUS=./config.status}
24204ac_write_fail=0
24205ac_clean_files_save=$ac_clean_files
24206ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24207{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24208$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24209cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24210#! $SHELL
24211# Generated by $as_me.
24212# Run this file to recreate the current configuration.
24213# Compiler output produced by configure, useful for debugging
24214# configure, is in config.log if it exists.
24215
24216debug=false
24217ac_cs_recheck=false
24218ac_cs_silent=false
24219SHELL=\${CONFIG_SHELL-$SHELL}
24220_ACEOF
24221
24222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24223## --------------------- ##
24224## M4sh Initialization. ##
24225## --------------------- ##
24226
24227# Be more Bourne compatible
24228DUALCASE=1; export DUALCASE # for MKS sh
24229if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24230 emulate sh
24231 NULLCMD=:
24232 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24233 # is contrary to our usage. Disable this feature.
24234 alias -g '${1+"$@"}'='"$@"'
24235 setopt NO_GLOB_SUBST
24236else
24237 case `(set -o) 2>/dev/null` in
24238 *posix*) set -o posix ;;
24239esac
24240
24241fi
24242
24243
24244
24245
24246# PATH needs CR
24247# Avoid depending upon Character Ranges.
24248as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24249as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24250as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24251as_cr_digits='0123456789'
24252as_cr_alnum=$as_cr_Letters$as_cr_digits
24253
24254as_nl='
24255'
24256export as_nl
24257# Printing a long string crashes Solaris 7 /usr/bin/printf.
24258as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24259as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24260as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24261if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24262 as_echo='printf %s\n'
24263 as_echo_n='printf %s'
24264else
24265 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24266 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24267 as_echo_n='/usr/ucb/echo -n'
24268 else
24269 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24270 as_echo_n_body='eval
24271 arg=$1;
24272 case $arg in
24273 *"$as_nl"*)
24274 expr "X$arg" : "X\\(.*\\)$as_nl";
24275 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24276 esac;
24277 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24278 '
24279 export as_echo_n_body
24280 as_echo_n='sh -c $as_echo_n_body as_echo'
24281 fi
24282 export as_echo_body
24283 as_echo='sh -c $as_echo_body as_echo'
24284fi
24285
24286# The user is always right.
24287if test "${PATH_SEPARATOR+set}" != set; then
24288 PATH_SEPARATOR=:
24289 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24290 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24291 PATH_SEPARATOR=';'
24292 }
24293fi
24294
24295# Support unset when possible.
24296if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24297 as_unset=unset
24298else
24299 as_unset=false
24300fi
24301
24302
24303# IFS
24304# We need space, tab and new line, in precisely that order. Quoting is
24305# there to prevent editors from complaining about space-tab.
24306# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24307# splitting by setting IFS to empty value.)
24308IFS=" "" $as_nl"
24309
24310# Find who we are. Look in the path if we contain no directory separator.
24311case $0 in
24312 *[\\/]* ) as_myself=$0 ;;
24313 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24314for as_dir in $PATH
24315do
24316 IFS=$as_save_IFS
24317 test -z "$as_dir" && as_dir=.
24318 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24319done
24320IFS=$as_save_IFS
24321
24322 ;;
24323esac
24324# We did not find ourselves, most probably we were run as `sh COMMAND'
24325# in which case we are not to be found in the path.
24326if test "x$as_myself" = x; then
24327 as_myself=$0
24328fi
24329if test ! -f "$as_myself"; then
24330 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24331 { (exit 1); exit 1; }
24332fi
24333
24334# Work around bugs in pre-3.0 UWIN ksh.
24335for as_var in ENV MAIL MAILPATH
24336do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24337done
24338PS1='$ '
24339PS2='> '
24340PS4='+ '
24341
24342# NLS nuisances.
24343LC_ALL=C
24344export LC_ALL
24345LANGUAGE=C
24346export LANGUAGE
24347
24348# Required to use basename.
24349if expr a : '\(a\)' >/dev/null 2>&1 &&
24350 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24351 as_expr=expr
24352else
24353 as_expr=false
24354fi
24355
24356if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24357 as_basename=basename
24358else
24359 as_basename=false
24360fi
24361
24362
24363# Name of the executable.
24364as_me=`$as_basename -- "$0" ||
24365$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24366 X"$0" : 'X\(//\)$' \| \
24367 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24368$as_echo X/"$0" |
24369 sed '/^.*\/\([^/][^/]*\)\/*$/{
24370 s//\1/
24371 q
24372 }
24373 /^X\/\(\/\/\)$/{
24374 s//\1/
24375 q
24376 }
24377 /^X\/\(\/\).*/{
24378 s//\1/
24379 q
24380 }
24381 s/.*/./; q'`
24382
24383# CDPATH.
24384$as_unset CDPATH
24385
24386
24387
24388 as_lineno_1=$LINENO
24389 as_lineno_2=$LINENO
24390 test "x$as_lineno_1" != "x$as_lineno_2" &&
24391 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24392
24393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24394 # uniformly replaced by the line number. The first 'sed' inserts a
24395 # line-number line after each line using $LINENO; the second 'sed'
24396 # does the real work. The second script uses 'N' to pair each
24397 # line-number line with the line containing $LINENO, and appends
24398 # trailing '-' during substitution so that $LINENO is not a special
24399 # case at line end.
24400 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24401 # scripts with optimization help from Paolo Bonzini. Blame Lee
24402 # E. McMahon (1931-1989) for sed's syntax. :-)
24403 sed -n '
24404 p
24405 /[$]LINENO/=
24406 ' <$as_myself |
24407 sed '
24408 s/[$]LINENO.*/&-/
24409 t lineno
24410 b
24411 :lineno
24412 N
24413 :loop
24414 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24415 t loop
24416 s/-\n.*//
24417 ' >$as_me.lineno &&
24418 chmod +x "$as_me.lineno" ||
24419 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24420 { (exit 1); exit 1; }; }
24421
24422 # Don't try to exec as it changes $[0], causing all sort of problems
24423 # (the dirname of $[0] is not the place where we might find the
24424 # original and so on. Autoconf is especially sensitive to this).
24425 . "./$as_me.lineno"
24426 # Exit status is that of the last command.
24427 exit
24428}
24429
24430
24431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24432 as_dirname=dirname
24433else
24434 as_dirname=false
24435fi
24436
24437ECHO_C= ECHO_N= ECHO_T=
24438case `echo -n x` in
24439-n*)
24440 case `echo 'x\c'` in
24441 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24442 *) ECHO_C='\c';;
24443 esac;;
24444*)
24445 ECHO_N='-n';;
24446esac
24447if expr a : '\(a\)' >/dev/null 2>&1 &&
24448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24449 as_expr=expr
24450else
24451 as_expr=false
24452fi
24453
24454rm -f conf$$ conf$$.exe conf$$.file
24455if test -d conf$$.dir; then
24456 rm -f conf$$.dir/conf$$.file
24457else
24458 rm -f conf$$.dir
24459 mkdir conf$$.dir 2>/dev/null
24460fi
24461if (echo >conf$$.file) 2>/dev/null; then
24462 if ln -s conf$$.file conf$$ 2>/dev/null; then
24463 as_ln_s='ln -s'
24464 # ... but there are two gotchas:
24465 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24466 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24467 # In both cases, we have to default to `cp -p'.
24468 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24469 as_ln_s='cp -p'
24470 elif ln conf$$.file conf$$ 2>/dev/null; then
24471 as_ln_s=ln
24472 else
24473 as_ln_s='cp -p'
24474 fi
24475else
24476 as_ln_s='cp -p'
24477fi
24478rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24479rmdir conf$$.dir 2>/dev/null
24480
24481if mkdir -p . 2>/dev/null; then
24482 as_mkdir_p=:
24483else
24484 test -d ./-p && rmdir ./-p
24485 as_mkdir_p=false
24486fi
24487
24488if test -x / >/dev/null 2>&1; then
24489 as_test_x='test -x'
24490else
24491 if ls -dL / >/dev/null 2>&1; then
24492 as_ls_L_option=L
24493 else
24494 as_ls_L_option=
24495 fi
24496 as_test_x='
24497 eval sh -c '\''
24498 if test -d "$1"; then
24499 test -d "$1/.";
24500 else
24501 case $1 in
24502 -*)set "./$1";;
24503 esac;
24504 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24505 ???[sx]*):;;*)false;;esac;fi
24506 '\'' sh
24507 '
24508fi
24509as_executable_p=$as_test_x
24510
24511# Sed expression to map a string onto a valid CPP name.
24512as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24513
24514# Sed expression to map a string onto a valid variable name.
24515as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24516
24517
24518exec 6>&1
24519
24520# Save the log message, to keep $[0] and so on meaningful, and to
24521# report actual input values of CONFIG_FILES etc. instead of their
24522# values after options handling.
24523ac_log="
24524This file was extended by $as_me, which was
24525generated by GNU Autoconf 2.63. Invocation command line was
24526
24527 CONFIG_FILES = $CONFIG_FILES
24528 CONFIG_HEADERS = $CONFIG_HEADERS
24529 CONFIG_LINKS = $CONFIG_LINKS
24530 CONFIG_COMMANDS = $CONFIG_COMMANDS
24531 $ $0 $@
24532
24533on `(hostname || uname -n) 2>/dev/null | sed 1q`
24534"
24535
24536_ACEOF
24537
24538case $ac_config_files in *"
24539"*) set x $ac_config_files; shift; ac_config_files=$*;;
24540esac
24541
24542case $ac_config_headers in *"
24543"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24544esac
24545
24546
24547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24548# Files that config.status was made for.
24549config_files="$ac_config_files"
24550config_headers="$ac_config_headers"
24551config_commands="$ac_config_commands"
24552
24553_ACEOF
24554
24555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24556ac_cs_usage="\
24557\`$as_me' instantiates files from templates according to the
24558current configuration.
24559
24560Usage: $0 [OPTION]... [FILE]...
24561
24562 -h, --help print this help, then exit
24563 -V, --version print version number and configuration settings, then exit
24564 -q, --quiet, --silent
24565 do not print progress messages
24566 -d, --debug don't remove temporary files
24567 --recheck update $as_me by reconfiguring in the same conditions
24568 --file=FILE[:TEMPLATE]
24569 instantiate the configuration file FILE
24570 --header=FILE[:TEMPLATE]
24571 instantiate the configuration header FILE
24572
24573Configuration files:
24574$config_files
24575
24576Configuration headers:
24577$config_headers
24578
24579Configuration commands:
24580$config_commands
24581
24582Report bugs to <bug-autoconf@gnu.org>."
24583
24584_ACEOF
24585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24586ac_cs_version="\\
24587config.status
24588configured by $0, generated by GNU Autoconf 2.63,
24589 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24590
24591Copyright (C) 2008 Free Software Foundation, Inc.
24592This config.status script is free software; the Free Software Foundation
24593gives unlimited permission to copy, distribute and modify it."
24594
24595ac_pwd='$ac_pwd'
24596srcdir='$srcdir'
24597INSTALL='$INSTALL'
24598MKDIR_P='$MKDIR_P'
24599AWK='$AWK'
24600test -n "\$AWK" || AWK=awk
24601_ACEOF
24602
24603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24604# The default lists apply if the user does not specify any file.
24605ac_need_defaults=:
24606while test $# != 0
24607do
24608 case $1 in
24609 --*=*)
24610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24611 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24612 ac_shift=:
24613 ;;
24614 *)
24615 ac_option=$1
24616 ac_optarg=$2
24617 ac_shift=shift
24618 ;;
24619 esac
24620
24621 case $ac_option in
24622 # Handling of the options.
24623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24624 ac_cs_recheck=: ;;
24625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24626 $as_echo "$ac_cs_version"; exit ;;
24627 --debug | --debu | --deb | --de | --d | -d )
24628 debug=: ;;
24629 --file | --fil | --fi | --f )
24630 $ac_shift
24631 case $ac_optarg in
24632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24633 esac
24634 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24635 ac_need_defaults=false;;
24636 --header | --heade | --head | --hea )
24637 $ac_shift
24638 case $ac_optarg in
24639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24640 esac
24641 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24642 ac_need_defaults=false;;
24643 --he | --h)
24644 # Conflict between --help and --header
24645 { $as_echo "$as_me: error: ambiguous option: $1
24646Try \`$0 --help' for more information." >&2
24647 { (exit 1); exit 1; }; };;
24648 --help | --hel | -h )
24649 $as_echo "$ac_cs_usage"; exit ;;
24650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24651 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24652 ac_cs_silent=: ;;
24653
24654 # This is an error.
24655 -*) { $as_echo "$as_me: error: unrecognized option: $1
24656Try \`$0 --help' for more information." >&2
24657 { (exit 1); exit 1; }; } ;;
24658
24659 *) ac_config_targets="$ac_config_targets $1"
24660 ac_need_defaults=false ;;
24661
24662 esac
24663 shift
24664done
24665
24666ac_configure_extra_args=
24667
24668if $ac_cs_silent; then
24669 exec 6>/dev/null
24670 ac_configure_extra_args="$ac_configure_extra_args --silent"
24671fi
24672
24673_ACEOF
24674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24675if \$ac_cs_recheck; then
24676 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24677 shift
24678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24679 CONFIG_SHELL='$SHELL'
24680 export CONFIG_SHELL
24681 exec "\$@"
24682fi
24683
24684_ACEOF
24685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24686exec 5>>config.log
24687{
24688 echo
24689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24690## Running $as_me. ##
24691_ASBOX
24692 $as_echo "$ac_log"
24693} >&5
24694
24695_ACEOF
24696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24697#
24698# INIT-COMMANDS
24699#
24700AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24701
24702
24703# The HP-UX ksh and POSIX shell print the target directory to stdout
24704# if CDPATH is set.
24705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24706
24707sed_quote_subst='$sed_quote_subst'
24708double_quote_subst='$double_quote_subst'
24709delay_variable_subst='$delay_variable_subst'
24710macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
24711macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
24712enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
24713enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
24714pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
24715enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
24716host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
24717host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
24718host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
24719build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
24720build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
24721build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
24722SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
24723Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
24724GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
24725EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
24726FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
24727LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
24728NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
24729LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
24730max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
24731ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
24732exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
24733lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
24734lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
24735lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
24736reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
24737reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24738OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
24739deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
24740file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
24741AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
24742AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24743STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
24744RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
24745old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24746old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24747old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24748CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
24749CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24750compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
24751GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
24752lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
24753lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
24754lt_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"`'
24755lt_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"`'
24756objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
24757SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
24758ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
24759MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
24760lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
24761lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
24762lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
24763lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
24764lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
24765need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
24766DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
24767NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
24768LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
24769OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
24770OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
24771libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
24772shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24773extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24774archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
24775enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
24776export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24777whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24778compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
24779old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24780old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24781archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24782archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24783module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24784module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24785with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
24786allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24787no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24788hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24789hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
24790hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
24791hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
24792hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
24793hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
24794hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24795hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
24796inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
24797link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
24798fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
24799always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
24800export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24801exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24802include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24803prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24804file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
24805variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
24806need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
24807need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
24808version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
24809runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24810shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24811shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
24812libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24813library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
24814soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24815postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24816postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24817finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24818finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
24819hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
24820sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24821sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24822hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
24823enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
24824enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
24825enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
24826old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
24827striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
24828
24829LTCC='$LTCC'
24830LTCFLAGS='$LTCFLAGS'
24831compiler='$compiler_DEFAULT'
24832
24833# Quote evaled strings.
24834for var in SED \
24835GREP \
24836EGREP \
24837FGREP \
24838LD \
24839NM \
24840LN_S \
24841lt_SP2NL \
24842lt_NL2SP \
24843reload_flag \
24844OBJDUMP \
24845deplibs_check_method \
24846file_magic_cmd \
24847AR \
24848AR_FLAGS \
24849STRIP \
24850RANLIB \
24851CC \
24852CFLAGS \
24853compiler \
24854lt_cv_sys_global_symbol_pipe \
24855lt_cv_sys_global_symbol_to_cdecl \
24856lt_cv_sys_global_symbol_to_c_name_address \
24857lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24858SHELL \
24859ECHO \
24860lt_prog_compiler_no_builtin_flag \
24861lt_prog_compiler_wl \
24862lt_prog_compiler_pic \
24863lt_prog_compiler_static \
24864lt_cv_prog_compiler_c_o \
24865need_locks \
24866DSYMUTIL \
24867NMEDIT \
24868LIPO \
24869OTOOL \
24870OTOOL64 \
24871shrext_cmds \
24872export_dynamic_flag_spec \
24873whole_archive_flag_spec \
24874compiler_needs_object \
24875with_gnu_ld \
24876allow_undefined_flag \
24877no_undefined_flag \
24878hardcode_libdir_flag_spec \
24879hardcode_libdir_flag_spec_ld \
24880hardcode_libdir_separator \
24881fix_srcfile_path \
24882exclude_expsyms \
24883include_expsyms \
24884file_list_spec \
24885variables_saved_for_relink \
24886libname_spec \
24887library_names_spec \
24888soname_spec \
24889finish_eval \
24890old_striplib \
24891striplib; do
24892 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24893 *[\\\\\\\`\\"\\\$]*)
24894 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24895 ;;
24896 *)
24897 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24898 ;;
24899 esac
24900done
24901
24902# Double-quote double-evaled strings.
24903for var in reload_cmds \
24904old_postinstall_cmds \
24905old_postuninstall_cmds \
24906old_archive_cmds \
24907extract_expsyms_cmds \
24908old_archive_from_new_cmds \
24909old_archive_from_expsyms_cmds \
24910archive_cmds \
24911archive_expsym_cmds \
24912module_cmds \
24913module_expsym_cmds \
24914export_symbols_cmds \
24915prelink_cmds \
24916postinstall_cmds \
24917postuninstall_cmds \
24918finish_cmds \
24919sys_lib_search_path_spec \
24920sys_lib_dlsearch_path_spec; do
24921 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24922 *[\\\\\\\`\\"\\\$]*)
24923 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24924 ;;
24925 *)
24926 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24927 ;;
24928 esac
24929done
24930
24931# Fix-up fallback echo if it was mangled by the above quoting rules.
24932case \$lt_ECHO in
24933*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
24934 ;;
24935esac
24936
24937ac_aux_dir='$ac_aux_dir'
24938xsi_shell='$xsi_shell'
24939lt_shell_append='$lt_shell_append'
24940
24941# See if we are running on zsh, and set the options which allow our
24942# commands through without removal of \ escapes INIT.
24943if test -n "\${ZSH_VERSION+set}" ; then
24944 setopt NO_GLOB_SUBST
24945fi
24946
24947
24948 PACKAGE='$PACKAGE'
24949 VERSION='$VERSION'
24950 TIMESTAMP='$TIMESTAMP'
24951 RM='$RM'
24952 ofile='$ofile'
24953
24954
24955
24956
24957_ACEOF
24958
24959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24960
24961# Handling of arguments.
24962for ac_config_target in $ac_config_targets
24963do
24964 case $ac_config_target in
24965 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
24966 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24967 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24968 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
ae26d046
MAR
24969 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
24970 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
de0a1c09
BB
24971 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
24972 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
e70e591c 24973 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
01c0e61d
BB
24974 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
24975 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
e70e591c
BB
24976 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24977 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
24978 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24979 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
24980 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
24981 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
24982 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
24983 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
6283f55e
BB
24984 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
24985 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
24986 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
24987 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
24988 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
24989 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
24990 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
e70e591c
BB
24991 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
24992 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
24993 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
24994 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
24995 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
24996 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
e70e591c 24997 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
46e18b3f 24998 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
e70e591c
BB
24999 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
25000 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
25001 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
25002 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
25003 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
e70e591c
BB
25004 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
25005 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
d53368f6
BB
25006 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
25007 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
4c0d8e50 25008 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
d53368f6 25009 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
560bcf9d 25010 "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
e70e591c
BB
25011 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
25012 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
25013 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
25014 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
25015 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
25016 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
25017 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
6283f55e 25018 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8299a1f4 25019 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
6283f55e
BB
25020 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
25021 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
25022 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
25023 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
e70e591c 25024 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
6283f55e
BB
25025 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
25026 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
25027 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
a5b4d635 25028 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
e70e591c
BB
25029 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
25030 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
25031 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
6ba3b446
PS
25032 "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
25033 "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
6283f55e 25034 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
e70e591c
BB
25035
25036 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25037$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25038 { (exit 1); exit 1; }; };;
25039 esac
25040done
25041
25042
25043# If the user did not use the arguments to specify the items to instantiate,
25044# then the envvar interface is used. Set only those that are not.
25045# We use the long form for the default assignment because of an extremely
25046# bizarre bug on SunOS 4.1.3.
25047if $ac_need_defaults; then
25048 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25049 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25050 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25051fi
25052
25053# Have a temporary directory for convenience. Make it in the build tree
25054# simply because there is no reason against having it here, and in addition,
25055# creating and moving files from /tmp can sometimes cause problems.
25056# Hook for its removal unless debugging.
25057# Note that there is a small window in which the directory will not be cleaned:
25058# after its creation but before its name has been assigned to `$tmp'.
25059$debug ||
25060{
25061 tmp=
25062 trap 'exit_status=$?
25063 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25064' 0
25065 trap '{ (exit 1); exit 1; }' 1 2 13 15
25066}
25067# Create a (secure) tmp directory for tmp files.
25068
25069{
25070 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25071 test -n "$tmp" && test -d "$tmp"
25072} ||
25073{
25074 tmp=./conf$$-$RANDOM
25075 (umask 077 && mkdir "$tmp")
25076} ||
25077{
25078 $as_echo "$as_me: cannot create a temporary directory in ." >&2
25079 { (exit 1); exit 1; }
25080}
25081
25082# Set up the scripts for CONFIG_FILES section.
25083# No need to generate them if there are no CONFIG_FILES.
25084# This happens for instance with `./config.status config.h'.
25085if test -n "$CONFIG_FILES"; then
25086
25087
25088ac_cr='\r'
25089ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25090if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25091 ac_cs_awk_cr='\\r'
25092else
25093 ac_cs_awk_cr=$ac_cr
25094fi
25095
25096echo 'BEGIN {' >"$tmp/subs1.awk" &&
25097_ACEOF
25098
25099
25100{
25101 echo "cat >conf$$subs.awk <<_ACEOF" &&
25102 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25103 echo "_ACEOF"
25104} >conf$$subs.sh ||
25105 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25106$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25107 { (exit 1); exit 1; }; }
25108ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25109ac_delim='%!_!# '
25110for ac_last_try in false false false false false :; do
25111 . ./conf$$subs.sh ||
25112 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25113$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25114 { (exit 1); exit 1; }; }
25115
25116 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25117 if test $ac_delim_n = $ac_delim_num; then
25118 break
25119 elif $ac_last_try; then
25120 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25121$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25122 { (exit 1); exit 1; }; }
25123 else
25124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25125 fi
25126done
25127rm -f conf$$subs.sh
25128
25129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25130cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25131_ACEOF
25132sed -n '
25133h
25134s/^/S["/; s/!.*/"]=/
25135p
25136g
25137s/^[^!]*!//
25138:repl
25139t repl
25140s/'"$ac_delim"'$//
25141t delim
25142:nl
25143h
25144s/\(.\{148\}\).*/\1/
25145t more1
25146s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25147p
25148n
25149b repl
25150:more1
25151s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25152p
25153g
25154s/.\{148\}//
25155t nl
25156:delim
25157h
25158s/\(.\{148\}\).*/\1/
25159t more2
25160s/["\\]/\\&/g; s/^/"/; s/$/"/
25161p
25162b
25163:more2
25164s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25165p
25166g
25167s/.\{148\}//
25168t delim
25169' <conf$$subs.awk | sed '
25170/^[^""]/{
25171 N
25172 s/\n//
25173}
25174' >>$CONFIG_STATUS || ac_write_fail=1
25175rm -f conf$$subs.awk
25176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25177_ACAWK
25178cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25179 for (key in S) S_is_set[key] = 1
25180 FS = "\a"
25181
25182}
25183{
25184 line = $ 0
25185 nfields = split(line, field, "@")
25186 substed = 0
25187 len = length(field[1])
25188 for (i = 2; i < nfields; i++) {
25189 key = field[i]
25190 keylen = length(key)
25191 if (S_is_set[key]) {
25192 value = S[key]
25193 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25194 len += length(value) + length(field[++i])
25195 substed = 1
25196 } else
25197 len += 1 + keylen
25198 }
25199
25200 print line
25201}
25202
25203_ACAWK
25204_ACEOF
25205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25206if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25207 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25208else
25209 cat
25210fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25211 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25212$as_echo "$as_me: error: could not setup config files machinery" >&2;}
25213 { (exit 1); exit 1; }; }
25214_ACEOF
25215
25216# VPATH may cause trouble with some makes, so we remove $(srcdir),
25217# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25218# trailing colons and then remove the whole line if VPATH becomes empty
25219# (actually we leave an empty line to preserve line numbers).
25220if test "x$srcdir" = x.; then
25221 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25222s/:*\$(srcdir):*/:/
25223s/:*\${srcdir}:*/:/
25224s/:*@srcdir@:*/:/
25225s/^\([^=]*=[ ]*\):*/\1/
25226s/:*$//
25227s/^[^=]*=[ ]*$//
25228}'
25229fi
25230
25231cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25232fi # test -n "$CONFIG_FILES"
25233
25234# Set up the scripts for CONFIG_HEADERS section.
25235# No need to generate them if there are no CONFIG_HEADERS.
25236# This happens for instance with `./config.status Makefile'.
25237if test -n "$CONFIG_HEADERS"; then
25238cat >"$tmp/defines.awk" <<\_ACAWK ||
25239BEGIN {
25240_ACEOF
25241
25242# Transform confdefs.h into an awk script `defines.awk', embedded as
25243# here-document in config.status, that substitutes the proper values into
25244# config.h.in to produce config.h.
25245
25246# Create a delimiter string that does not exist in confdefs.h, to ease
25247# handling of long lines.
25248ac_delim='%!_!# '
25249for ac_last_try in false false :; do
25250 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25251 if test -z "$ac_t"; then
25252 break
25253 elif $ac_last_try; then
25254 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25255$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25256 { (exit 1); exit 1; }; }
25257 else
25258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25259 fi
25260done
25261
25262# For the awk script, D is an array of macro values keyed by name,
25263# likewise P contains macro parameters if any. Preserve backslash
25264# newline sequences.
25265
25266ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25267sed -n '
25268s/.\{148\}/&'"$ac_delim"'/g
25269t rset
25270:rset
25271s/^[ ]*#[ ]*define[ ][ ]*/ /
25272t def
25273d
25274:def
25275s/\\$//
25276t bsnl
25277s/["\\]/\\&/g
25278s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25279D["\1"]=" \3"/p
25280s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25281d
25282:bsnl
25283s/["\\]/\\&/g
25284s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25285D["\1"]=" \3\\\\\\n"\\/p
25286t cont
25287s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25288t cont
25289d
25290:cont
25291n
25292s/.\{148\}/&'"$ac_delim"'/g
25293t clear
25294:clear
25295s/\\$//
25296t bsnlc
25297s/["\\]/\\&/g; s/^/"/; s/$/"/p
25298d
25299:bsnlc
25300s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25301b cont
25302' <confdefs.h | sed '
25303s/'"$ac_delim"'/"\\\
25304"/g' >>$CONFIG_STATUS || ac_write_fail=1
25305
25306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25307 for (key in D) D_is_set[key] = 1
25308 FS = "\a"
25309}
25310/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25311 line = \$ 0
25312 split(line, arg, " ")
25313 if (arg[1] == "#") {
25314 defundef = arg[2]
25315 mac1 = arg[3]
25316 } else {
25317 defundef = substr(arg[1], 2)
25318 mac1 = arg[2]
25319 }
25320 split(mac1, mac2, "(") #)
25321 macro = mac2[1]
25322 prefix = substr(line, 1, index(line, defundef) - 1)
25323 if (D_is_set[macro]) {
25324 # Preserve the white space surrounding the "#".
25325 print prefix "define", macro P[macro] D[macro]
25326 next
25327 } else {
25328 # Replace #undef with comments. This is necessary, for example,
25329 # in the case of _POSIX_SOURCE, which is predefined and required
25330 # on some systems where configure will not decide to define it.
25331 if (defundef == "undef") {
25332 print "/*", prefix defundef, macro, "*/"
25333 next
25334 }
25335 }
25336}
25337{ print }
25338_ACAWK
25339_ACEOF
25340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25341 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25342$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25343 { (exit 1); exit 1; }; }
25344fi # test -n "$CONFIG_HEADERS"
25345
25346
25347eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25348shift
25349for ac_tag
25350do
25351 case $ac_tag in
25352 :[FHLC]) ac_mode=$ac_tag; continue;;
25353 esac
25354 case $ac_mode$ac_tag in
25355 :[FHL]*:*);;
25356 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25357$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25358 { (exit 1); exit 1; }; };;
25359 :[FH]-) ac_tag=-:-;;
25360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25361 esac
25362 ac_save_IFS=$IFS
25363 IFS=:
25364 set x $ac_tag
25365 IFS=$ac_save_IFS
25366 shift
25367 ac_file=$1
25368 shift
25369
25370 case $ac_mode in
25371 :L) ac_source=$1;;
25372 :[FH])
25373 ac_file_inputs=
25374 for ac_f
25375 do
25376 case $ac_f in
25377 -) ac_f="$tmp/stdin";;
25378 *) # Look for the file first in the build tree, then in the source tree
25379 # (if the path is not absolute). The absolute path cannot be DOS-style,
25380 # because $ac_f cannot contain `:'.
25381 test -f "$ac_f" ||
25382 case $ac_f in
25383 [\\/$]*) false;;
25384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25385 esac ||
25386 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25387$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25388 { (exit 1); exit 1; }; };;
25389 esac
25390 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25391 ac_file_inputs="$ac_file_inputs '$ac_f'"
25392 done
25393
25394 # Let's still pretend it is `configure' which instantiates (i.e., don't
25395 # use $as_me), people would be surprised to read:
25396 # /* config.h. Generated by config.status. */
25397 configure_input='Generated from '`
25398 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25399 `' by configure.'
25400 if test x"$ac_file" != x-; then
25401 configure_input="$ac_file. $configure_input"
25402 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25403$as_echo "$as_me: creating $ac_file" >&6;}
25404 fi
25405 # Neutralize special characters interpreted by sed in replacement strings.
25406 case $configure_input in #(
25407 *\&* | *\|* | *\\* )
25408 ac_sed_conf_input=`$as_echo "$configure_input" |
25409 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25410 *) ac_sed_conf_input=$configure_input;;
25411 esac
25412
25413 case $ac_tag in
25414 *:-:* | *:-) cat >"$tmp/stdin" \
25415 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25416$as_echo "$as_me: error: could not create $ac_file" >&2;}
25417 { (exit 1); exit 1; }; } ;;
25418 esac
25419 ;;
25420 esac
25421
25422 ac_dir=`$as_dirname -- "$ac_file" ||
25423$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25424 X"$ac_file" : 'X\(//\)[^/]' \| \
25425 X"$ac_file" : 'X\(//\)$' \| \
25426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25427$as_echo X"$ac_file" |
25428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25429 s//\1/
25430 q
25431 }
25432 /^X\(\/\/\)[^/].*/{
25433 s//\1/
25434 q
25435 }
25436 /^X\(\/\/\)$/{
25437 s//\1/
25438 q
25439 }
25440 /^X\(\/\).*/{
25441 s//\1/
25442 q
25443 }
25444 s/.*/./; q'`
25445 { as_dir="$ac_dir"
25446 case $as_dir in #(
25447 -*) as_dir=./$as_dir;;
25448 esac
25449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25450 as_dirs=
25451 while :; do
25452 case $as_dir in #(
25453 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25454 *) as_qdir=$as_dir;;
25455 esac
25456 as_dirs="'$as_qdir' $as_dirs"
25457 as_dir=`$as_dirname -- "$as_dir" ||
25458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25459 X"$as_dir" : 'X\(//\)[^/]' \| \
25460 X"$as_dir" : 'X\(//\)$' \| \
25461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25462$as_echo X"$as_dir" |
25463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25464 s//\1/
25465 q
25466 }
25467 /^X\(\/\/\)[^/].*/{
25468 s//\1/
25469 q
25470 }
25471 /^X\(\/\/\)$/{
25472 s//\1/
25473 q
25474 }
25475 /^X\(\/\).*/{
25476 s//\1/
25477 q
25478 }
25479 s/.*/./; q'`
25480 test -d "$as_dir" && break
25481 done
25482 test -z "$as_dirs" || eval "mkdir $as_dirs"
25483 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25484$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25485 { (exit 1); exit 1; }; }; }
25486 ac_builddir=.
25487
25488case "$ac_dir" in
25489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25490*)
25491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25492 # A ".." for each directory in $ac_dir_suffix.
25493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25494 case $ac_top_builddir_sub in
25495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25497 esac ;;
25498esac
25499ac_abs_top_builddir=$ac_pwd
25500ac_abs_builddir=$ac_pwd$ac_dir_suffix
25501# for backward compatibility:
25502ac_top_builddir=$ac_top_build_prefix
25503
25504case $srcdir in
25505 .) # We are building in place.
25506 ac_srcdir=.
25507 ac_top_srcdir=$ac_top_builddir_sub
25508 ac_abs_top_srcdir=$ac_pwd ;;
25509 [\\/]* | ?:[\\/]* ) # Absolute name.
25510 ac_srcdir=$srcdir$ac_dir_suffix;
25511 ac_top_srcdir=$srcdir
25512 ac_abs_top_srcdir=$srcdir ;;
25513 *) # Relative name.
25514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25515 ac_top_srcdir=$ac_top_build_prefix$srcdir
25516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25517esac
25518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25519
25520
25521 case $ac_mode in
25522 :F)
25523 #
25524 # CONFIG_FILE
25525 #
25526
25527 case $INSTALL in
25528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25530 esac
25531 ac_MKDIR_P=$MKDIR_P
25532 case $MKDIR_P in
25533 [\\/$]* | ?:[\\/]* ) ;;
25534 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25535 esac
25536_ACEOF
25537
25538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25539# If the template does not know about datarootdir, expand it.
25540# FIXME: This hack should be removed a few years after 2.60.
25541ac_datarootdir_hack=; ac_datarootdir_seen=
25542
25543ac_sed_dataroot='
25544/datarootdir/ {
25545 p
25546 q
25547}
25548/@datadir@/p
25549/@docdir@/p
25550/@infodir@/p
25551/@localedir@/p
25552/@mandir@/p
25553'
25554case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25555*datarootdir*) ac_datarootdir_seen=yes;;
25556*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25557 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25558$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25559_ACEOF
25560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25561 ac_datarootdir_hack='
25562 s&@datadir@&$datadir&g
25563 s&@docdir@&$docdir&g
25564 s&@infodir@&$infodir&g
25565 s&@localedir@&$localedir&g
25566 s&@mandir@&$mandir&g
25567 s&\\\${datarootdir}&$datarootdir&g' ;;
25568esac
25569_ACEOF
25570
25571# Neutralize VPATH when `$srcdir' = `.'.
25572# Shell code in configure.ac might set extrasub.
25573# FIXME: do we really want to maintain this feature?
25574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25575ac_sed_extra="$ac_vpsub
25576$extrasub
25577_ACEOF
25578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25579:t
25580/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25581s|@configure_input@|$ac_sed_conf_input|;t t
25582s&@top_builddir@&$ac_top_builddir_sub&;t t
25583s&@top_build_prefix@&$ac_top_build_prefix&;t t
25584s&@srcdir@&$ac_srcdir&;t t
25585s&@abs_srcdir@&$ac_abs_srcdir&;t t
25586s&@top_srcdir@&$ac_top_srcdir&;t t
25587s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25588s&@builddir@&$ac_builddir&;t t
25589s&@abs_builddir@&$ac_abs_builddir&;t t
25590s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25591s&@INSTALL@&$ac_INSTALL&;t t
25592s&@MKDIR_P@&$ac_MKDIR_P&;t t
25593$ac_datarootdir_hack
25594"
25595eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25596 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25597$as_echo "$as_me: error: could not create $ac_file" >&2;}
25598 { (exit 1); exit 1; }; }
25599
25600test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25601 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25602 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25603 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25604which seems to be undefined. Please make sure it is defined." >&5
25605$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25606which seems to be undefined. Please make sure it is defined." >&2;}
25607
25608 rm -f "$tmp/stdin"
25609 case $ac_file in
25610 -) cat "$tmp/out" && rm -f "$tmp/out";;
25611 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25612 esac \
25613 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25614$as_echo "$as_me: error: could not create $ac_file" >&2;}
25615 { (exit 1); exit 1; }; }
25616 ;;
25617 :H)
25618 #
25619 # CONFIG_HEADER
25620 #
25621 if test x"$ac_file" != x-; then
25622 {
25623 $as_echo "/* $configure_input */" \
25624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25625 } >"$tmp/config.h" \
25626 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25627$as_echo "$as_me: error: could not create $ac_file" >&2;}
25628 { (exit 1); exit 1; }; }
25629 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25630 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25631$as_echo "$as_me: $ac_file is unchanged" >&6;}
25632 else
25633 rm -f "$ac_file"
25634 mv "$tmp/config.h" "$ac_file" \
25635 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25636$as_echo "$as_me: error: could not create $ac_file" >&2;}
25637 { (exit 1); exit 1; }; }
25638 fi
25639 else
25640 $as_echo "/* $configure_input */" \
25641 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25642 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25643$as_echo "$as_me: error: could not create -" >&2;}
25644 { (exit 1); exit 1; }; }
25645 fi
25646# Compute "$ac_file"'s index in $config_headers.
25647_am_arg="$ac_file"
25648_am_stamp_count=1
25649for _am_header in $config_headers :; do
25650 case $_am_header in
25651 $_am_arg | $_am_arg:* )
25652 break ;;
25653 * )
25654 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25655 esac
25656done
25657echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25658$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25659 X"$_am_arg" : 'X\(//\)[^/]' \| \
25660 X"$_am_arg" : 'X\(//\)$' \| \
25661 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25662$as_echo X"$_am_arg" |
25663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25664 s//\1/
25665 q
25666 }
25667 /^X\(\/\/\)[^/].*/{
25668 s//\1/
25669 q
25670 }
25671 /^X\(\/\/\)$/{
25672 s//\1/
25673 q
25674 }
25675 /^X\(\/\).*/{
25676 s//\1/
25677 q
25678 }
25679 s/.*/./; q'`/stamp-h$_am_stamp_count
25680 ;;
25681
25682 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25683$as_echo "$as_me: executing $ac_file commands" >&6;}
25684 ;;
25685 esac
25686
25687
25688 case $ac_file$ac_mode in
25689 "zfs_config.h":H)
25690 (mv zfs_config.h zfs_config.h.tmp &&
6283f55e 25691 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
e70e591c
BB
25692 rm zfs_config.h.tmp) || exit 1 ;;
25693 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25694 # Autoconf 2.62 quotes --file arguments for eval, but not when files
25695 # are listed without --file. Let's play safe and only enable the eval
25696 # if we detect the quoting.
25697 case $CONFIG_FILES in
25698 *\'*) eval set x "$CONFIG_FILES" ;;
25699 *) set x $CONFIG_FILES ;;
25700 esac
25701 shift
25702 for mf
25703 do
25704 # Strip MF so we end up with the name of the file.
25705 mf=`echo "$mf" | sed -e 's/:.*$//'`
25706 # Check whether this is an Automake generated Makefile or not.
25707 # We used to match only the files named `Makefile.in', but
25708 # some people rename them; so instead we look at the file content.
25709 # Grep'ing the first line is not enough: some people post-process
25710 # each Makefile.in and add a new line on top of each file to say so.
25711 # Grep'ing the whole file is not good either: AIX grep has a line
25712 # limit of 2048, but all sed's we know have understand at least 4000.
25713 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25714 dirpart=`$as_dirname -- "$mf" ||
25715$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25716 X"$mf" : 'X\(//\)[^/]' \| \
25717 X"$mf" : 'X\(//\)$' \| \
25718 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25719$as_echo X"$mf" |
25720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25721 s//\1/
25722 q
25723 }
25724 /^X\(\/\/\)[^/].*/{
25725 s//\1/
25726 q
25727 }
25728 /^X\(\/\/\)$/{
25729 s//\1/
25730 q
25731 }
25732 /^X\(\/\).*/{
25733 s//\1/
25734 q
25735 }
25736 s/.*/./; q'`
25737 else
25738 continue
25739 fi
25740 # Extract the definition of DEPDIR, am__include, and am__quote
25741 # from the Makefile without running `make'.
25742 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25743 test -z "$DEPDIR" && continue
25744 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25745 test -z "am__include" && continue
25746 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25747 # When using ansi2knr, U may be empty or an underscore; expand it
25748 U=`sed -n 's/^U = //p' < "$mf"`
25749 # Find all dependency output files, they are included files with
25750 # $(DEPDIR) in their names. We invoke sed twice because it is the
25751 # simplest approach to changing $(DEPDIR) to its actual value in the
25752 # expansion.
25753 for file in `sed -n "
25754 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25755 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25756 # Make sure the directory exists.
25757 test -f "$dirpart/$file" && continue
25758 fdir=`$as_dirname -- "$file" ||
25759$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25760 X"$file" : 'X\(//\)[^/]' \| \
25761 X"$file" : 'X\(//\)$' \| \
25762 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25763$as_echo X"$file" |
25764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25765 s//\1/
25766 q
25767 }
25768 /^X\(\/\/\)[^/].*/{
25769 s//\1/
25770 q
25771 }
25772 /^X\(\/\/\)$/{
25773 s//\1/
25774 q
25775 }
25776 /^X\(\/\).*/{
25777 s//\1/
25778 q
25779 }
25780 s/.*/./; q'`
25781 { as_dir=$dirpart/$fdir
25782 case $as_dir in #(
25783 -*) as_dir=./$as_dir;;
25784 esac
25785 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25786 as_dirs=
25787 while :; do
25788 case $as_dir in #(
25789 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25790 *) as_qdir=$as_dir;;
25791 esac
25792 as_dirs="'$as_qdir' $as_dirs"
25793 as_dir=`$as_dirname -- "$as_dir" ||
25794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25795 X"$as_dir" : 'X\(//\)[^/]' \| \
25796 X"$as_dir" : 'X\(//\)$' \| \
25797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25798$as_echo X"$as_dir" |
25799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25800 s//\1/
25801 q
25802 }
25803 /^X\(\/\/\)[^/].*/{
25804 s//\1/
25805 q
25806 }
25807 /^X\(\/\/\)$/{
25808 s//\1/
25809 q
25810 }
25811 /^X\(\/\).*/{
25812 s//\1/
25813 q
25814 }
25815 s/.*/./; q'`
25816 test -d "$as_dir" && break
25817 done
25818 test -z "$as_dirs" || eval "mkdir $as_dirs"
25819 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25820$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25821 { (exit 1); exit 1; }; }; }
25822 # echo "creating $dirpart/$file"
25823 echo '# dummy' > "$dirpart/$file"
25824 done
25825 done
25826}
25827 ;;
25828 "libtool":C)
25829
25830 # See if we are running on zsh, and set the options which allow our
25831 # commands through without removal of \ escapes.
25832 if test -n "${ZSH_VERSION+set}" ; then
25833 setopt NO_GLOB_SUBST
25834 fi
25835
25836 cfgfile="${ofile}T"
25837 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25838 $RM "$cfgfile"
25839
25840 cat <<_LT_EOF >> "$cfgfile"
25841#! $SHELL
25842
25843# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25844# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25845# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25846# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25847#
25848# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25849# 2006, 2007, 2008 Free Software Foundation, Inc.
25850# Written by Gordon Matzigkeit, 1996
25851#
25852# This file is part of GNU Libtool.
25853#
25854# GNU Libtool is free software; you can redistribute it and/or
25855# modify it under the terms of the GNU General Public License as
25856# published by the Free Software Foundation; either version 2 of
25857# the License, or (at your option) any later version.
25858#
25859# As a special exception to the GNU General Public License,
25860# if you distribute this file as part of a program or library that
25861# is built using GNU Libtool, you may include this file under the
25862# same distribution terms that you use for the rest of that program.
25863#
25864# GNU Libtool is distributed in the hope that it will be useful,
25865# but WITHOUT ANY WARRANTY; without even the implied warranty of
25866# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25867# GNU General Public License for more details.
25868#
25869# You should have received a copy of the GNU General Public License
25870# along with GNU Libtool; see the file COPYING. If not, a copy
25871# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25872# obtained by writing to the Free Software Foundation, Inc.,
25873# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25874
25875
25876# The names of the tagged configurations supported by this script.
25877available_tags=""
25878
25879# ### BEGIN LIBTOOL CONFIG
25880
25881# Which release of libtool.m4 was used?
25882macro_version=$macro_version
25883macro_revision=$macro_revision
25884
25885# Whether or not to build shared libraries.
25886build_libtool_libs=$enable_shared
25887
25888# Whether or not to build static libraries.
25889build_old_libs=$enable_static
25890
25891# What type of objects to build.
25892pic_mode=$pic_mode
25893
25894# Whether or not to optimize for fast installation.
25895fast_install=$enable_fast_install
25896
25897# The host system.
25898host_alias=$host_alias
25899host=$host
25900host_os=$host_os
25901
25902# The build system.
25903build_alias=$build_alias
25904build=$build
25905build_os=$build_os
25906
25907# A sed program that does not truncate output.
25908SED=$lt_SED
25909
25910# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25911Xsed="\$SED -e 1s/^X//"
25912
25913# A grep program that handles long lines.
25914GREP=$lt_GREP
25915
25916# An ERE matcher.
25917EGREP=$lt_EGREP
25918
25919# A literal string matcher.
25920FGREP=$lt_FGREP
25921
25922# A BSD- or MS-compatible name lister.
25923NM=$lt_NM
25924
25925# Whether we need soft or hard links.
25926LN_S=$lt_LN_S
25927
25928# What is the maximum length of a command?
25929max_cmd_len=$max_cmd_len
25930
25931# Object file suffix (normally "o").
25932objext=$ac_objext
25933
25934# Executable file suffix (normally "").
25935exeext=$exeext
25936
25937# whether the shell understands "unset".
25938lt_unset=$lt_unset
25939
25940# turn spaces into newlines.
25941SP2NL=$lt_lt_SP2NL
25942
25943# turn newlines into spaces.
25944NL2SP=$lt_lt_NL2SP
25945
25946# How to create reloadable object files.
25947reload_flag=$lt_reload_flag
25948reload_cmds=$lt_reload_cmds
25949
25950# An object symbol dumper.
25951OBJDUMP=$lt_OBJDUMP
25952
25953# Method to check whether dependent libraries are shared objects.
25954deplibs_check_method=$lt_deplibs_check_method
25955
25956# Command to use when deplibs_check_method == "file_magic".
25957file_magic_cmd=$lt_file_magic_cmd
25958
25959# The archiver.
25960AR=$lt_AR
25961AR_FLAGS=$lt_AR_FLAGS
25962
25963# A symbol stripping program.
25964STRIP=$lt_STRIP
25965
25966# Commands used to install an old-style archive.
25967RANLIB=$lt_RANLIB
25968old_postinstall_cmds=$lt_old_postinstall_cmds
25969old_postuninstall_cmds=$lt_old_postuninstall_cmds
25970
25971# A C compiler.
25972LTCC=$lt_CC
25973
25974# LTCC compiler flags.
25975LTCFLAGS=$lt_CFLAGS
25976
25977# Take the output of nm and produce a listing of raw symbols and C names.
25978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25979
25980# Transform the output of nm in a proper C declaration.
25981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25982
25983# Transform the output of nm in a C name address pair.
25984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25985
25986# Transform the output of nm in a C name address pair when lib prefix is needed.
25987global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25988
25989# The name of the directory that contains temporary libtool files.
25990objdir=$objdir
25991
25992# Shell to use when invoking shell scripts.
25993SHELL=$lt_SHELL
25994
25995# An echo program that does not interpret backslashes.
25996ECHO=$lt_ECHO
25997
25998# Used to examine libraries when file_magic_cmd begins with "file".
25999MAGIC_CMD=$MAGIC_CMD
26000
26001# Must we lock files when doing compilation?
26002need_locks=$lt_need_locks
26003
26004# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26005DSYMUTIL=$lt_DSYMUTIL
26006
26007# Tool to change global to local symbols on Mac OS X.
26008NMEDIT=$lt_NMEDIT
26009
26010# Tool to manipulate fat objects and archives on Mac OS X.
26011LIPO=$lt_LIPO
26012
26013# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26014OTOOL=$lt_OTOOL
26015
26016# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26017OTOOL64=$lt_OTOOL64
26018
26019# Old archive suffix (normally "a").
26020libext=$libext
26021
26022# Shared library suffix (normally ".so").
26023shrext_cmds=$lt_shrext_cmds
26024
26025# The commands to extract the exported symbol list from a shared archive.
26026extract_expsyms_cmds=$lt_extract_expsyms_cmds
26027
26028# Variables whose values should be saved in libtool wrapper scripts and
26029# restored at link time.
26030variables_saved_for_relink=$lt_variables_saved_for_relink
26031
26032# Do we need the "lib" prefix for modules?
26033need_lib_prefix=$need_lib_prefix
26034
26035# Do we need a version for libraries?
26036need_version=$need_version
26037
26038# Library versioning type.
26039version_type=$version_type
26040
26041# Shared library runtime path variable.
26042runpath_var=$runpath_var
26043
26044# Shared library path variable.
26045shlibpath_var=$shlibpath_var
26046
26047# Is shlibpath searched before the hard-coded library search path?
26048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26049
26050# Format of library name prefix.
26051libname_spec=$lt_libname_spec
26052
26053# List of archive names. First name is the real one, the rest are links.
26054# The last name is the one that the linker finds with -lNAME
26055library_names_spec=$lt_library_names_spec
26056
26057# The coded name of the library, if different from the real name.
26058soname_spec=$lt_soname_spec
26059
26060# Command to use after installation of a shared archive.
26061postinstall_cmds=$lt_postinstall_cmds
26062
26063# Command to use after uninstallation of a shared archive.
26064postuninstall_cmds=$lt_postuninstall_cmds
26065
26066# Commands used to finish a libtool library installation in a directory.
26067finish_cmds=$lt_finish_cmds
26068
26069# As "finish_cmds", except a single script fragment to be evaled but
26070# not shown.
26071finish_eval=$lt_finish_eval
26072
26073# Whether we should hardcode library paths into libraries.
26074hardcode_into_libs=$hardcode_into_libs
26075
26076# Compile-time system search path for libraries.
26077sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26078
26079# Run-time system search path for libraries.
26080sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26081
26082# Whether dlopen is supported.
26083dlopen_support=$enable_dlopen
26084
26085# Whether dlopen of programs is supported.
26086dlopen_self=$enable_dlopen_self
26087
26088# Whether dlopen of statically linked programs is supported.
26089dlopen_self_static=$enable_dlopen_self_static
26090
26091# Commands to strip libraries.
26092old_striplib=$lt_old_striplib
26093striplib=$lt_striplib
26094
26095
26096# The linker used to build libraries.
26097LD=$lt_LD
26098
26099# Commands used to build an old-style archive.
26100old_archive_cmds=$lt_old_archive_cmds
26101
26102# A language specific compiler.
26103CC=$lt_compiler
26104
26105# Is the compiler the GNU compiler?
26106with_gcc=$GCC
26107
26108# Compiler flag to turn off builtin functions.
26109no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26110
26111# How to pass a linker flag through the compiler.
26112wl=$lt_lt_prog_compiler_wl
26113
26114# Additional compiler flags for building library objects.
26115pic_flag=$lt_lt_prog_compiler_pic
26116
26117# Compiler flag to prevent dynamic linking.
26118link_static_flag=$lt_lt_prog_compiler_static
26119
26120# Does compiler simultaneously support -c and -o options?
26121compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26122
26123# Whether or not to add -lc for building shared libraries.
26124build_libtool_need_lc=$archive_cmds_need_lc
26125
26126# Whether or not to disallow shared libs when runtime libs are static.
26127allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26128
26129# Compiler flag to allow reflexive dlopens.
26130export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26131
26132# Compiler flag to generate shared objects directly from archives.
26133whole_archive_flag_spec=$lt_whole_archive_flag_spec
26134
26135# Whether the compiler copes with passing no objects directly.
26136compiler_needs_object=$lt_compiler_needs_object
26137
26138# Create an old-style archive from a shared archive.
26139old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26140
26141# Create a temporary old-style archive to link instead of a shared archive.
26142old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26143
26144# Commands used to build a shared archive.
26145archive_cmds=$lt_archive_cmds
26146archive_expsym_cmds=$lt_archive_expsym_cmds
26147
26148# Commands used to build a loadable module if different from building
26149# a shared archive.
26150module_cmds=$lt_module_cmds
26151module_expsym_cmds=$lt_module_expsym_cmds
26152
26153# Whether we are building with GNU ld or not.
26154with_gnu_ld=$lt_with_gnu_ld
26155
26156# Flag that allows shared libraries with undefined symbols to be built.
26157allow_undefined_flag=$lt_allow_undefined_flag
26158
26159# Flag that enforces no undefined symbols.
26160no_undefined_flag=$lt_no_undefined_flag
26161
26162# Flag to hardcode \$libdir into a binary during linking.
26163# This must work even if \$libdir does not exist
26164hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26165
26166# If ld is used when linking, flag to hardcode \$libdir into a binary
26167# during linking. This must work even if \$libdir does not exist.
26168hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26169
26170# Whether we need a single "-rpath" flag with a separated argument.
26171hardcode_libdir_separator=$lt_hardcode_libdir_separator
26172
26173# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26174# DIR into the resulting binary.
26175hardcode_direct=$hardcode_direct
26176
26177# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26178# DIR into the resulting binary and the resulting library dependency is
26179# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26180# library is relocated.
26181hardcode_direct_absolute=$hardcode_direct_absolute
26182
26183# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26184# into the resulting binary.
26185hardcode_minus_L=$hardcode_minus_L
26186
26187# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26188# into the resulting binary.
26189hardcode_shlibpath_var=$hardcode_shlibpath_var
26190
26191# Set to "yes" if building a shared library automatically hardcodes DIR
26192# into the library and all subsequent libraries and executables linked
26193# against it.
26194hardcode_automatic=$hardcode_automatic
26195
26196# Set to yes if linker adds runtime paths of dependent libraries
26197# to runtime path list.
26198inherit_rpath=$inherit_rpath
26199
26200# Whether libtool must link a program against all its dependency libraries.
26201link_all_deplibs=$link_all_deplibs
26202
26203# Fix the shell variable \$srcfile for the compiler.
26204fix_srcfile_path=$lt_fix_srcfile_path
26205
26206# Set to "yes" if exported symbols are required.
26207always_export_symbols=$always_export_symbols
26208
26209# The commands to list exported symbols.
26210export_symbols_cmds=$lt_export_symbols_cmds
26211
26212# Symbols that should not be listed in the preloaded symbols.
26213exclude_expsyms=$lt_exclude_expsyms
26214
26215# Symbols that must always be exported.
26216include_expsyms=$lt_include_expsyms
26217
26218# Commands necessary for linking programs (against libraries) with templates.
26219prelink_cmds=$lt_prelink_cmds
26220
26221# Specify filename containing input files.
26222file_list_spec=$lt_file_list_spec
26223
26224# How to hardcode a shared library path into an executable.
26225hardcode_action=$hardcode_action
26226
26227# ### END LIBTOOL CONFIG
26228
26229_LT_EOF
26230
26231 case $host_os in
26232 aix3*)
26233 cat <<\_LT_EOF >> "$cfgfile"
26234# AIX sometimes has problems with the GCC collect2 program. For some
26235# reason, if we set the COLLECT_NAMES environment variable, the problems
26236# vanish in a puff of smoke.
26237if test "X${COLLECT_NAMES+set}" != Xset; then
26238 COLLECT_NAMES=
26239 export COLLECT_NAMES
26240fi
26241_LT_EOF
26242 ;;
26243 esac
26244
26245
26246ltmain="$ac_aux_dir/ltmain.sh"
26247
26248
26249 # We use sed instead of cat because bash on DJGPP gets confused if
26250 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26251 # text mode, it properly converts lines to CR/LF. This bash problem
26252 # is reportedly fixed, but why not run on old versions too?
26253 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26254 || (rm -f "$cfgfile"; exit 1)
26255
26256 case $xsi_shell in
26257 yes)
26258 cat << \_LT_EOF >> "$cfgfile"
26259
26260# func_dirname file append nondir_replacement
26261# Compute the dirname of FILE. If nonempty, add APPEND to the result,
26262# otherwise set result to NONDIR_REPLACEMENT.
26263func_dirname ()
26264{
26265 case ${1} in
26266 */*) func_dirname_result="${1%/*}${2}" ;;
26267 * ) func_dirname_result="${3}" ;;
26268 esac
26269}
26270
26271# func_basename file
26272func_basename ()
26273{
26274 func_basename_result="${1##*/}"
26275}
26276
26277# func_dirname_and_basename file append nondir_replacement
26278# perform func_basename and func_dirname in a single function
26279# call:
26280# dirname: Compute the dirname of FILE. If nonempty,
26281# add APPEND to the result, otherwise set result
26282# to NONDIR_REPLACEMENT.
26283# value returned in "$func_dirname_result"
26284# basename: Compute filename of FILE.
26285# value retuned in "$func_basename_result"
26286# Implementation must be kept synchronized with func_dirname
26287# and func_basename. For efficiency, we do not delegate to
26288# those functions but instead duplicate the functionality here.
26289func_dirname_and_basename ()
26290{
26291 case ${1} in
26292 */*) func_dirname_result="${1%/*}${2}" ;;
26293 * ) func_dirname_result="${3}" ;;
26294 esac
26295 func_basename_result="${1##*/}"
26296}
26297
26298# func_stripname prefix suffix name
26299# strip PREFIX and SUFFIX off of NAME.
26300# PREFIX and SUFFIX must not contain globbing or regex special
26301# characters, hashes, percent signs, but SUFFIX may contain a leading
26302# dot (in which case that matches only a dot).
26303func_stripname ()
26304{
26305 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26306 # positional parameters, so assign one to ordinary parameter first.
26307 func_stripname_result=${3}
26308 func_stripname_result=${func_stripname_result#"${1}"}
26309 func_stripname_result=${func_stripname_result%"${2}"}
26310}
26311
26312# func_opt_split
26313func_opt_split ()
26314{
26315 func_opt_split_opt=${1%%=*}
26316 func_opt_split_arg=${1#*=}
26317}
26318
26319# func_lo2o object
26320func_lo2o ()
26321{
26322 case ${1} in
26323 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
26324 *) func_lo2o_result=${1} ;;
26325 esac
26326}
26327
26328# func_xform libobj-or-source
26329func_xform ()
26330{
26331 func_xform_result=${1%.*}.lo
26332}
26333
26334# func_arith arithmetic-term...
26335func_arith ()
26336{
26337 func_arith_result=$(( $* ))
26338}
26339
26340# func_len string
26341# STRING may not start with a hyphen.
26342func_len ()
26343{
26344 func_len_result=${#1}
26345}
26346
26347_LT_EOF
26348 ;;
26349 *) # Bourne compatible functions.
26350 cat << \_LT_EOF >> "$cfgfile"
26351
26352# func_dirname file append nondir_replacement
26353# Compute the dirname of FILE. If nonempty, add APPEND to the result,
26354# otherwise set result to NONDIR_REPLACEMENT.
26355func_dirname ()
26356{
26357 # Extract subdirectory from the argument.
26358 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
26359 if test "X$func_dirname_result" = "X${1}"; then
26360 func_dirname_result="${3}"
26361 else
26362 func_dirname_result="$func_dirname_result${2}"
26363 fi
26364}
26365
26366# func_basename file
26367func_basename ()
26368{
26369 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
26370}
26371
26372
26373# func_stripname prefix suffix name
26374# strip PREFIX and SUFFIX off of NAME.
26375# PREFIX and SUFFIX must not contain globbing or regex special
26376# characters, hashes, percent signs, but SUFFIX may contain a leading
26377# dot (in which case that matches only a dot).
26378# func_strip_suffix prefix name
26379func_stripname ()
26380{
26381 case ${2} in
26382 .*) func_stripname_result=`$ECHO "X${3}" \
26383 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
26384 *) func_stripname_result=`$ECHO "X${3}" \
26385 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
26386 esac
26387}
26388
26389# sed scripts:
26390my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
26391my_sed_long_arg='1s/^-[^=]*=//'
26392
26393# func_opt_split
26394func_opt_split ()
26395{
26396 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
26397 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
26398}
26399
26400# func_lo2o object
26401func_lo2o ()
26402{
26403 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
26404}
26405
26406# func_xform libobj-or-source
26407func_xform ()
26408{
26409 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
26410}
26411
26412# func_arith arithmetic-term...
26413func_arith ()
26414{
26415 func_arith_result=`expr "$@"`
26416}
26417
26418# func_len string
26419# STRING may not start with a hyphen.
26420func_len ()
26421{
26422 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
26423}
26424
26425_LT_EOF
26426esac
26427
26428case $lt_shell_append in
26429 yes)
26430 cat << \_LT_EOF >> "$cfgfile"
26431
26432# func_append var value
26433# Append VALUE to the end of shell variable VAR.
26434func_append ()
26435{
26436 eval "$1+=\$2"
26437}
26438_LT_EOF
26439 ;;
26440 *)
26441 cat << \_LT_EOF >> "$cfgfile"
26442
26443# func_append var value
26444# Append VALUE to the end of shell variable VAR.
26445func_append ()
26446{
26447 eval "$1=\$$1\$2"
26448}
26449
26450_LT_EOF
26451 ;;
26452 esac
26453
26454
26455 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
26456 || (rm -f "$cfgfile"; exit 1)
26457
26458 mv -f "$cfgfile" "$ofile" ||
26459 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26460 chmod +x "$ofile"
26461
26462 ;;
26463
26464 esac
26465done # for ac_tag
26466
26467
26468{ (exit 0); exit 0; }
26469_ACEOF
26470chmod +x $CONFIG_STATUS
26471ac_clean_files=$ac_clean_files_save
26472
26473test $ac_write_fail = 0 ||
26474 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26475$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26476 { (exit 1); exit 1; }; }
26477
26478
26479# configure is writing to config.log, and then calls config.status.
26480# config.status does its own redirection, appending to config.log.
26481# Unfortunately, on DOS this fails, as config.log is still kept open
26482# by configure, so config.status won't be able to write to it; its
26483# output is simply discarded. So we exec the FD to /dev/null,
26484# effectively closing config.log, so it can be properly (re)opened and
26485# appended to by config.status. When coming back to configure, we
26486# need to make the FD available again.
26487if test "$no_create" != yes; then
26488 ac_cs_success=:
26489 ac_config_status_args=
26490 test "$silent" = yes &&
26491 ac_config_status_args="$ac_config_status_args --quiet"
26492 exec 5>/dev/null
26493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26494 exec 5>>config.log
26495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26496 # would make configure fail if this is the last instruction.
26497 $ac_cs_success || { (exit 1); exit 1; }
26498fi
26499if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26500 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26501$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26502fi
26503