Make configure builtin-aware.
[zfs.git] / configure
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
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if 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
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
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.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
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.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if 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; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_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
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$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   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
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
251 done
252 IFS=$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
259 if 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
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
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
280 if 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
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $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
355 fi
356
357 fi
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+"$@"}
367 fi
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; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$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
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `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';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (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
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
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   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_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.
570 as_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.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if 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
607 fi
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
613 if 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
711 fi
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.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 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.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 # Factoring default headers for most tests.
751 ac_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
786 ac_subst_vars='am__EXEEXT_FALSE
787 am__EXEEXT_TRUE
788 LTLIBOBJS
789 LIBOBJS
790 DEBUG_DMU_TX
791 DEBUG_ZFS
792 DEBUG_STACKFLAGS
793 DEBUG_CFLAGS
794 CONFIG_KERNEL_FALSE
795 CONFIG_KERNEL_TRUE
796 CONFIG_USER_FALSE
797 CONFIG_USER_TRUE
798 FRAME_LARGER_THAN
799 LIBSELINUX
800 LIBBLKID
801 LIBUUID
802 ZLIB
803 udevruledir
804 udevdir
805 KERNELCPPFLAGS
806 KERNELMAKE_PARAMS
807 SPL_SYMBOLS
808 SPL_VERSION
809 SPL_OBJ
810 SPL
811 LINUX_SYMBOLS
812 LINUX_VERSION
813 LINUX_OBJ
814 LINUX
815 NO_UNUSED_BUT_SET_VARIABLE
816 ZFS_CONFIG
817 TARGET_ASM_DIR
818 MAKEPKG_VERSION
819 MAKEPKG
820 HAVE_MAKEPKG
821 PACMAN_VERSION
822 PACMAN
823 HAVE_PACMAN
824 ALIEN_VERSION
825 ALIEN
826 HAVE_ALIEN
827 DPKGBUILD_VERSION
828 DPKGBUILD
829 HAVE_DPKGBUILD
830 DPKG_VERSION
831 DPKG
832 HAVE_DPKG
833 RPMBUILD_VERSION
834 RPMBUILD
835 HAVE_RPMBUILD
836 RPM_VERSION
837 RPM
838 HAVE_RPM
839 DEFAULT_INIT_SCRIPT
840 DEFAULT_INIT_DIR
841 DEFAULT_PACKAGE
842 VENDOR
843 am__fastdepCCAS_FALSE
844 am__fastdepCCAS_TRUE
845 CCASDEPMODE
846 CCASFLAGS
847 CCAS
848 CPP
849 OTOOL64
850 OTOOL
851 LIPO
852 NMEDIT
853 DSYMUTIL
854 lt_ECHO
855 RANLIB
856 AR
857 OBJDUMP
858 LN_S
859 NM
860 ac_ct_DUMPBIN
861 DUMPBIN
862 LD
863 FGREP
864 EGREP
865 GREP
866 SED
867 LIBTOOL
868 am__fastdepCC_FALSE
869 am__fastdepCC_TRUE
870 CCDEPMODE
871 AMDEPBACKSLASH
872 AMDEP_FALSE
873 AMDEP_TRUE
874 am__quote
875 am__include
876 DEPDIR
877 OBJEXT
878 EXEEXT
879 ac_ct_CC
880 CPPFLAGS
881 LDFLAGS
882 CFLAGS
883 CC
884 am__untar
885 am__tar
886 AMTAR
887 am__leading_dot
888 SET_MAKE
889 AWK
890 mkdir_p
891 MKDIR_P
892 INSTALL_STRIP_PROGRAM
893 STRIP
894 install_sh
895 MAKEINFO
896 AUTOHEADER
897 AUTOMAKE
898 AUTOCONF
899 ACLOCAL
900 VERSION
901 PACKAGE
902 CYGPATH_W
903 am__isrc
904 INSTALL_DATA
905 INSTALL_SCRIPT
906 INSTALL_PROGRAM
907 AM_BACKSLASH
908 AM_DEFAULT_VERBOSITY
909 MAINT
910 MAINTAINER_MODE_FALSE
911 MAINTAINER_MODE_TRUE
912 target_os
913 target_vendor
914 target_cpu
915 target
916 host_os
917 host_vendor
918 host_cpu
919 host
920 build_os
921 build_vendor
922 build_cpu
923 build
924 ZFS_META_LT_AGE
925 ZFS_META_LT_REVISION
926 ZFS_META_LT_CURRENT
927 ZFS_META_AUTHOR
928 ZFS_META_DATA
929 ZFS_META_ALIAS
930 ZFS_META_LICENSE
931 ZFS_META_RELEASE
932 ZFS_META_VERSION
933 ZFS_META_NAME
934 target_alias
935 host_alias
936 build_alias
937 LIBS
938 ECHO_T
939 ECHO_N
940 ECHO_C
941 DEFS
942 mandir
943 localedir
944 libdir
945 psdir
946 pdfdir
947 dvidir
948 htmldir
949 infodir
950 docdir
951 oldincludedir
952 includedir
953 localstatedir
954 sharedstatedir
955 sysconfdir
956 datadir
957 datarootdir
958 libexecdir
959 sbindir
960 bindir
961 program_transform_name
962 prefix
963 exec_prefix
964 PACKAGE_BUGREPORT
965 PACKAGE_STRING
966 PACKAGE_VERSION
967 PACKAGE_TARNAME
968 PACKAGE_NAME
969 PATH_SEPARATOR
970 SHELL'
971 ac_subst_files=''
972 ac_user_opts='
973 enable_option_checking
974 enable_maintainer_mode
975 enable_silent_rules
976 enable_dependency_tracking
977 enable_shared
978 enable_static
979 with_pic
980 enable_fast_install
981 with_gnu_ld
982 enable_libtool_lock
983 with_config
984 enable_linux_builtin
985 with_linux
986 with_linux_obj
987 with_spl
988 with_spl_obj
989 with_udevdir
990 with_udevruledir
991 with_blkid
992 with_selinux
993 enable_debug
994 enable_debug_dmu_tx
995 '
996       ac_precious_vars='build_alias
997 host_alias
998 target_alias
999 CC
1000 CFLAGS
1001 LDFLAGS
1002 LIBS
1003 CPPFLAGS
1004 CPP
1005 CCAS
1006 CCASFLAGS'
1007
1008
1009 # Initialize some variables set by options.
1010 ac_init_help=
1011 ac_init_version=false
1012 ac_unrecognized_opts=
1013 ac_unrecognized_sep=
1014 # The variables have the same names as the options, with
1015 # dashes changed to underlines.
1016 cache_file=/dev/null
1017 exec_prefix=NONE
1018 no_create=
1019 no_recursion=
1020 prefix=NONE
1021 program_prefix=NONE
1022 program_suffix=NONE
1023 program_transform_name=s,x,x,
1024 silent=
1025 site=
1026 srcdir=
1027 verbose=
1028 x_includes=NONE
1029 x_libraries=NONE
1030
1031 # Installation directory options.
1032 # These are left unexpanded so users can "make install exec_prefix=/foo"
1033 # and all the variables that are supposed to be based on exec_prefix
1034 # by default will actually change.
1035 # Use braces instead of parens because sh, perl, etc. also accept them.
1036 # (The list follows the same order as the GNU Coding Standards.)
1037 bindir='${exec_prefix}/bin'
1038 sbindir='${exec_prefix}/sbin'
1039 libexecdir='${exec_prefix}/libexec'
1040 datarootdir='${prefix}/share'
1041 datadir='${datarootdir}'
1042 sysconfdir='${prefix}/etc'
1043 sharedstatedir='${prefix}/com'
1044 localstatedir='${prefix}/var'
1045 includedir='${prefix}/include'
1046 oldincludedir='/usr/include'
1047 docdir='${datarootdir}/doc/${PACKAGE}'
1048 infodir='${datarootdir}/info'
1049 htmldir='${docdir}'
1050 dvidir='${docdir}'
1051 pdfdir='${docdir}'
1052 psdir='${docdir}'
1053 libdir='${exec_prefix}/lib'
1054 localedir='${datarootdir}/locale'
1055 mandir='${datarootdir}/man'
1056
1057 ac_prev=
1058 ac_dashdash=
1059 for ac_option
1060 do
1061   # If the previous option needs an argument, assign it.
1062   if test -n "$ac_prev"; then
1063     eval $ac_prev=\$ac_option
1064     ac_prev=
1065     continue
1066   fi
1067
1068   case $ac_option in
1069   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1070   *)    ac_optarg=yes ;;
1071   esac
1072
1073   # Accept the important Cygnus configure options, so we can diagnose typos.
1074
1075   case $ac_dashdash$ac_option in
1076   --)
1077     ac_dashdash=yes ;;
1078
1079   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080     ac_prev=bindir ;;
1081   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082     bindir=$ac_optarg ;;
1083
1084   -build | --build | --buil | --bui | --bu)
1085     ac_prev=build_alias ;;
1086   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087     build_alias=$ac_optarg ;;
1088
1089   -cache-file | --cache-file | --cache-fil | --cache-fi \
1090   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091     ac_prev=cache_file ;;
1092   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094     cache_file=$ac_optarg ;;
1095
1096   --config-cache | -C)
1097     cache_file=config.cache ;;
1098
1099   -datadir | --datadir | --datadi | --datad)
1100     ac_prev=datadir ;;
1101   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1102     datadir=$ac_optarg ;;
1103
1104   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105   | --dataroo | --dataro | --datar)
1106     ac_prev=datarootdir ;;
1107   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109     datarootdir=$ac_optarg ;;
1110
1111   -disable-* | --disable-*)
1112     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1116    { (exit 1); exit 1; }; }
1117     ac_useropt_orig=$ac_useropt
1118     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119     case $ac_user_opts in
1120       *"
1121 "enable_$ac_useropt"
1122 "*) ;;
1123       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1124          ac_unrecognized_sep=', ';;
1125     esac
1126     eval enable_$ac_useropt=no ;;
1127
1128   -docdir | --docdir | --docdi | --doc | --do)
1129     ac_prev=docdir ;;
1130   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1131     docdir=$ac_optarg ;;
1132
1133   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1134     ac_prev=dvidir ;;
1135   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1136     dvidir=$ac_optarg ;;
1137
1138   -enable-* | --enable-*)
1139     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "enable_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval enable_$ac_useropt=\$ac_optarg ;;
1154
1155   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157   | --exec | --exe | --ex)
1158     ac_prev=exec_prefix ;;
1159   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161   | --exec=* | --exe=* | --ex=*)
1162     exec_prefix=$ac_optarg ;;
1163
1164   -gas | --gas | --ga | --g)
1165     # Obsolete; use --with-gas.
1166     with_gas=yes ;;
1167
1168   -help | --help | --hel | --he | -h)
1169     ac_init_help=long ;;
1170   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171     ac_init_help=recursive ;;
1172   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173     ac_init_help=short ;;
1174
1175   -host | --host | --hos | --ho)
1176     ac_prev=host_alias ;;
1177   -host=* | --host=* | --hos=* | --ho=*)
1178     host_alias=$ac_optarg ;;
1179
1180   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181     ac_prev=htmldir ;;
1182   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183   | --ht=*)
1184     htmldir=$ac_optarg ;;
1185
1186   -includedir | --includedir | --includedi | --included | --include \
1187   | --includ | --inclu | --incl | --inc)
1188     ac_prev=includedir ;;
1189   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190   | --includ=* | --inclu=* | --incl=* | --inc=*)
1191     includedir=$ac_optarg ;;
1192
1193   -infodir | --infodir | --infodi | --infod | --info | --inf)
1194     ac_prev=infodir ;;
1195   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196     infodir=$ac_optarg ;;
1197
1198   -libdir | --libdir | --libdi | --libd)
1199     ac_prev=libdir ;;
1200   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201     libdir=$ac_optarg ;;
1202
1203   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204   | --libexe | --libex | --libe)
1205     ac_prev=libexecdir ;;
1206   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207   | --libexe=* | --libex=* | --libe=*)
1208     libexecdir=$ac_optarg ;;
1209
1210   -localedir | --localedir | --localedi | --localed | --locale)
1211     ac_prev=localedir ;;
1212   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213     localedir=$ac_optarg ;;
1214
1215   -localstatedir | --localstatedir | --localstatedi | --localstated \
1216   | --localstate | --localstat | --localsta | --localst | --locals)
1217     ac_prev=localstatedir ;;
1218   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220     localstatedir=$ac_optarg ;;
1221
1222   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223     ac_prev=mandir ;;
1224   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225     mandir=$ac_optarg ;;
1226
1227   -nfp | --nfp | --nf)
1228     # Obsolete; use --without-fp.
1229     with_fp=no ;;
1230
1231   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232   | --no-cr | --no-c | -n)
1233     no_create=yes ;;
1234
1235   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237     no_recursion=yes ;;
1238
1239   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241   | --oldin | --oldi | --old | --ol | --o)
1242     ac_prev=oldincludedir ;;
1243   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246     oldincludedir=$ac_optarg ;;
1247
1248   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249     ac_prev=prefix ;;
1250   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251     prefix=$ac_optarg ;;
1252
1253   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254   | --program-pre | --program-pr | --program-p)
1255     ac_prev=program_prefix ;;
1256   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258     program_prefix=$ac_optarg ;;
1259
1260   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261   | --program-suf | --program-su | --program-s)
1262     ac_prev=program_suffix ;;
1263   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265     program_suffix=$ac_optarg ;;
1266
1267   -program-transform-name | --program-transform-name \
1268   | --program-transform-nam | --program-transform-na \
1269   | --program-transform-n | --program-transform- \
1270   | --program-transform | --program-transfor \
1271   | --program-transfo | --program-transf \
1272   | --program-trans | --program-tran \
1273   | --progr-tra | --program-tr | --program-t)
1274     ac_prev=program_transform_name ;;
1275   -program-transform-name=* | --program-transform-name=* \
1276   | --program-transform-nam=* | --program-transform-na=* \
1277   | --program-transform-n=* | --program-transform-=* \
1278   | --program-transform=* | --program-transfor=* \
1279   | --program-transfo=* | --program-transf=* \
1280   | --program-trans=* | --program-tran=* \
1281   | --progr-tra=* | --program-tr=* | --program-t=*)
1282     program_transform_name=$ac_optarg ;;
1283
1284   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285     ac_prev=pdfdir ;;
1286   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287     pdfdir=$ac_optarg ;;
1288
1289   -psdir | --psdir | --psdi | --psd | --ps)
1290     ac_prev=psdir ;;
1291   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292     psdir=$ac_optarg ;;
1293
1294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295   | -silent | --silent | --silen | --sile | --sil)
1296     silent=yes ;;
1297
1298   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299     ac_prev=sbindir ;;
1300   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301   | --sbi=* | --sb=*)
1302     sbindir=$ac_optarg ;;
1303
1304   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306   | --sharedst | --shareds | --shared | --share | --shar \
1307   | --sha | --sh)
1308     ac_prev=sharedstatedir ;;
1309   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312   | --sha=* | --sh=*)
1313     sharedstatedir=$ac_optarg ;;
1314
1315   -site | --site | --sit)
1316     ac_prev=site ;;
1317   -site=* | --site=* | --sit=*)
1318     site=$ac_optarg ;;
1319
1320   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321     ac_prev=srcdir ;;
1322   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323     srcdir=$ac_optarg ;;
1324
1325   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326   | --syscon | --sysco | --sysc | --sys | --sy)
1327     ac_prev=sysconfdir ;;
1328   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330     sysconfdir=$ac_optarg ;;
1331
1332   -target | --target | --targe | --targ | --tar | --ta | --t)
1333     ac_prev=target_alias ;;
1334   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335     target_alias=$ac_optarg ;;
1336
1337   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338     verbose=yes ;;
1339
1340   -version | --version | --versio | --versi | --vers | -V)
1341     ac_init_version=: ;;
1342
1343   -with-* | --with-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1348    { (exit 1); exit 1; }; }
1349     ac_useropt_orig=$ac_useropt
1350     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351     case $ac_user_opts in
1352       *"
1353 "with_$ac_useropt"
1354 "*) ;;
1355       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356          ac_unrecognized_sep=', ';;
1357     esac
1358     eval with_$ac_useropt=\$ac_optarg ;;
1359
1360   -without-* | --without-*)
1361     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362     # Reject names that are not valid shell variable names.
1363     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1364       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1365    { (exit 1); exit 1; }; }
1366     ac_useropt_orig=$ac_useropt
1367     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368     case $ac_user_opts in
1369       *"
1370 "with_$ac_useropt"
1371 "*) ;;
1372       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1373          ac_unrecognized_sep=', ';;
1374     esac
1375     eval with_$ac_useropt=no ;;
1376
1377   --x)
1378     # Obsolete; use --with-x.
1379     with_x=yes ;;
1380
1381   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1382   | --x-incl | --x-inc | --x-in | --x-i)
1383     ac_prev=x_includes ;;
1384   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1385   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1386     x_includes=$ac_optarg ;;
1387
1388   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1389   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1390     ac_prev=x_libraries ;;
1391   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1392   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1393     x_libraries=$ac_optarg ;;
1394
1395   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1396 Try \`$0 --help' for more information." >&2
1397    { (exit 1); exit 1; }; }
1398     ;;
1399
1400   *=*)
1401     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1402     # Reject names that are not valid shell variable names.
1403     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1404       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1405    { (exit 1); exit 1; }; }
1406     eval $ac_envvar=\$ac_optarg
1407     export $ac_envvar ;;
1408
1409   *)
1410     # FIXME: should be removed in autoconf 3.0.
1411     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1412     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1413       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1414     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1415     ;;
1416
1417   esac
1418 done
1419
1420 if test -n "$ac_prev"; then
1421   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1422   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1423    { (exit 1); exit 1; }; }
1424 fi
1425
1426 if test -n "$ac_unrecognized_opts"; then
1427   case $enable_option_checking in
1428     no) ;;
1429     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1430    { (exit 1); exit 1; }; } ;;
1431     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1432   esac
1433 fi
1434
1435 # Check all directory arguments for consistency.
1436 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1437                 datadir sysconfdir sharedstatedir localstatedir includedir \
1438                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1439                 libdir localedir mandir
1440 do
1441   eval ac_val=\$$ac_var
1442   # Remove trailing slashes.
1443   case $ac_val in
1444     */ )
1445       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1446       eval $ac_var=\$ac_val;;
1447   esac
1448   # Be sure to have absolute directory names.
1449   case $ac_val in
1450     [\\/$]* | ?:[\\/]* )  continue;;
1451     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452   esac
1453   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454    { (exit 1); exit 1; }; }
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1485    { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1488    { (exit 1); exit 1; }; }
1489
1490
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493   ac_srcdir_defaulted=yes
1494   # Try the directory containing this script, then the parent directory.
1495   ac_confdir=`$as_dirname -- "$as_myself" ||
1496 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497          X"$as_myself" : 'X\(//\)[^/]' \| \
1498          X"$as_myself" : 'X\(//\)$' \| \
1499          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1500 $as_echo X"$as_myself" |
1501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)[^/].*/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\).*/{
1514             s//\1/
1515             q
1516           }
1517           s/.*/./; q'`
1518   srcdir=$ac_confdir
1519   if test ! -r "$srcdir/$ac_unique_file"; then
1520     srcdir=..
1521   fi
1522 else
1523   ac_srcdir_defaulted=no
1524 fi
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528    { (exit 1); exit 1; }; }
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1533    { (exit 1); exit 1; }; }
1534         pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537   srcdir=.
1538 fi
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_env_${ac_var}_value=\$${ac_var}
1548   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1551
1552 #
1553 # Report the --help message.
1554 #
1555 if test "$ac_init_help" = "long"; then
1556   # Omit some internal or obsolete options to make the list less imposing.
1557   # This message is too long to be a string in the A/UX 3.1 sh.
1558   cat <<_ACEOF
1559 \`configure' configures this package to adapt to many kinds of systems.
1560
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE.  See below for descriptions of some of the useful variables.
1565
1566 Defaults for the options are specified in brackets.
1567
1568 Configuration:
1569   -h, --help              display this help and exit
1570       --help=short        display options specific to this package
1571       --help=recursive    display the short help of all the included packages
1572   -V, --version           display version information and exit
1573   -q, --quiet, --silent   do not print \`checking...' messages
1574       --cache-file=FILE   cache test results in FILE [disabled]
1575   -C, --config-cache      alias for \`--cache-file=config.cache'
1576   -n, --no-create         do not create output files
1577       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1578
1579 Installation directories:
1580   --prefix=PREFIX         install architecture-independent files in PREFIX
1581                           [$ac_default_prefix]
1582   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1583                           [PREFIX]
1584
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1589
1590 For better control, use the options below.
1591
1592 Fine tuning of the installation directories:
1593   --bindir=DIR            user executables [EPREFIX/bin]
1594   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1595   --libexecdir=DIR        program executables [EPREFIX/libexec]
1596   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1597   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1598   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1599   --libdir=DIR            object code libraries [EPREFIX/lib]
1600   --includedir=DIR        C header files [PREFIX/include]
1601   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1602   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1603   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1604   --infodir=DIR           info documentation [DATAROOTDIR/info]
1605   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1606   --mandir=DIR            man documentation [DATAROOTDIR/man]
1607   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1608   --htmldir=DIR           html documentation [DOCDIR]
1609   --dvidir=DIR            dvi documentation [DOCDIR]
1610   --pdfdir=DIR            pdf documentation [DOCDIR]
1611   --psdir=DIR             ps documentation [DOCDIR]
1612 _ACEOF
1613
1614   cat <<\_ACEOF
1615
1616 Program names:
1617   --program-prefix=PREFIX            prepend PREFIX to installed program names
1618   --program-suffix=SUFFIX            append SUFFIX to installed program names
1619   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1620
1621 System types:
1622   --build=BUILD     configure for building on BUILD [guessed]
1623   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1624   --target=TARGET   configure for building compilers for TARGET [HOST]
1625 _ACEOF
1626 fi
1627
1628 if test -n "$ac_init_help"; then
1629
1630   cat <<\_ACEOF
1631
1632 Optional Features:
1633   --disable-option-checking  ignore unrecognized --enable/--with options
1634   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636   --enable-maintainer-mode  enable make rules and dependencies not useful
1637                           (and sometimes confusing) to the casual installer
1638   --enable-silent-rules          less verbose build output (undo: `make V=1')
1639   --disable-silent-rules         verbose build output (undo: `make V=0')
1640   --disable-dependency-tracking  speeds up one-time build
1641   --enable-dependency-tracking   do not reject slow dependency extractors
1642   --enable-shared[=PKGS]  build shared libraries [default=yes]
1643   --enable-static[=PKGS]  build static libraries [default=yes]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --enable-linux-builtin  Configure for builtin in-tree kernel modules
1648                           [default=no]
1649   --enable-debug          Enable generic debug support [default=no]
1650   --enable-debug-dmu-tx   Enable dmu tx validation [default=no]
1651
1652 Optional Packages:
1653   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1654   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1655   --with-pic              try to use only PIC/non-PIC objects [default=use
1656                           both]
1657   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1658   --with-config=CONFIG    Config file 'kernel|user|all|srpm'
1659   --with-linux=PATH       Path to kernel source
1660   --with-linux-obj=PATH   Path to kernel build objects
1661   --with-spl=PATH         Path to spl source
1662   --with-spl-obj=PATH     Path to spl build objects
1663   --with-udevdir=DIR      install udev helpers [EPREFIX/lib/udev]
1664   --with-udevruledir=DIR  install udev rules [UDEVDIR/rules.d]
1665   --with-blkid            support blkid caching [default=check]
1666   --with-selinux          support selinux [default=check]
1667
1668 Some influential environment variables:
1669   CC          C compiler command
1670   CFLAGS      C compiler flags
1671   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1672               nonstandard directory <lib dir>
1673   LIBS        libraries to pass to the linker, e.g. -l<library>
1674   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1675               you have headers in a nonstandard directory <include dir>
1676   CPP         C preprocessor
1677   CCAS        assembler compiler command (defaults to CC)
1678   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1679
1680 Use these variables to override the choices made by `configure' or to help
1681 it to find libraries and programs with nonstandard names/locations.
1682
1683 _ACEOF
1684 ac_status=$?
1685 fi
1686
1687 if test "$ac_init_help" = "recursive"; then
1688   # If there are subdirs, report their specific --help.
1689   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690     test -d "$ac_dir" ||
1691       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692       continue
1693     ac_builddir=.
1694
1695 case "$ac_dir" in
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *)
1698   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699   # A ".." for each directory in $ac_dir_suffix.
1700   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701   case $ac_top_builddir_sub in
1702   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704   esac ;;
1705 esac
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1710
1711 case $srcdir in
1712   .)  # We are building in place.
1713     ac_srcdir=.
1714     ac_top_srcdir=$ac_top_builddir_sub
1715     ac_abs_top_srcdir=$ac_pwd ;;
1716   [\\/]* | ?:[\\/]* )  # Absolute name.
1717     ac_srcdir=$srcdir$ac_dir_suffix;
1718     ac_top_srcdir=$srcdir
1719     ac_abs_top_srcdir=$srcdir ;;
1720   *) # Relative name.
1721     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722     ac_top_srcdir=$ac_top_build_prefix$srcdir
1723     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 esac
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726
1727     cd "$ac_dir" || { ac_status=$?; continue; }
1728     # Check for guested configure.
1729     if test -f "$ac_srcdir/configure.gnu"; then
1730       echo &&
1731       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732     elif test -f "$ac_srcdir/configure"; then
1733       echo &&
1734       $SHELL "$ac_srcdir/configure" --help=recursive
1735     else
1736       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737     fi || ac_status=$?
1738     cd "$ac_pwd" || { ac_status=$?; break; }
1739   done
1740 fi
1741
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1744   cat <<\_ACEOF
1745 configure
1746 generated by GNU Autoconf 2.63
1747
1748 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1749 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1752 _ACEOF
1753   exit
1754 fi
1755 cat >config.log <<_ACEOF
1756 This file contains any messages produced by compilers while
1757 running configure, to aid debugging if configure makes a mistake.
1758
1759 It was created by $as_me, which was
1760 generated by GNU Autoconf 2.63.  Invocation command line was
1761
1762   $ $0 $@
1763
1764 _ACEOF
1765 exec 5>>config.log
1766 {
1767 cat <<_ASUNAME
1768 ## --------- ##
1769 ## Platform. ##
1770 ## --------- ##
1771
1772 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1773 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1774 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1775 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1776 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1777
1778 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1779 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1780
1781 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1782 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1783 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1784 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1785 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1786 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1787 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1788
1789 _ASUNAME
1790
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794   IFS=$as_save_IFS
1795   test -z "$as_dir" && as_dir=.
1796   $as_echo "PATH: $as_dir"
1797 done
1798 IFS=$as_save_IFS
1799
1800 } >&5
1801
1802 cat >&5 <<_ACEOF
1803
1804
1805 ## ----------- ##
1806 ## Core tests. ##
1807 ## ----------- ##
1808
1809 _ACEOF
1810
1811
1812 # Keep a trace of the command line.
1813 # Strip out --no-create and --no-recursion so they do not pile up.
1814 # Strip out --silent because we don't want to record it for future runs.
1815 # Also quote any args containing shell meta-characters.
1816 # Make two passes to allow for proper duplicate-argument suppression.
1817 ac_configure_args=
1818 ac_configure_args0=
1819 ac_configure_args1=
1820 ac_must_keep_next=false
1821 for ac_pass in 1 2
1822 do
1823   for ac_arg
1824   do
1825     case $ac_arg in
1826     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1827     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1828     | -silent | --silent | --silen | --sile | --sil)
1829       continue ;;
1830     *\'*)
1831       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832     esac
1833     case $ac_pass in
1834     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1835     2)
1836       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1837       if test $ac_must_keep_next = true; then
1838         ac_must_keep_next=false # Got value, back to normal.
1839       else
1840         case $ac_arg in
1841           *=* | --config-cache | -C | -disable-* | --disable-* \
1842           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1843           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1844           | -with-* | --with-* | -without-* | --without-* | --x)
1845             case "$ac_configure_args0 " in
1846               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1847             esac
1848             ;;
1849           -* ) ac_must_keep_next=true ;;
1850         esac
1851       fi
1852       ac_configure_args="$ac_configure_args '$ac_arg'"
1853       ;;
1854     esac
1855   done
1856 done
1857 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1858 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1859
1860 # When interrupted or exit'd, cleanup temporary files, and complete
1861 # config.log.  We remove comments because anyway the quotes in there
1862 # would cause problems or look ugly.
1863 # WARNING: Use '\'' to represent an apostrophe within the trap.
1864 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1865 trap 'exit_status=$?
1866   # Save into config.log some information that might help in debugging.
1867   {
1868     echo
1869
1870     cat <<\_ASBOX
1871 ## ---------------- ##
1872 ## Cache variables. ##
1873 ## ---------------- ##
1874 _ASBOX
1875     echo
1876     # The following way of writing the cache mishandles newlines in values,
1877 (
1878   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1879     eval ac_val=\$$ac_var
1880     case $ac_val in #(
1881     *${as_nl}*)
1882       case $ac_var in #(
1883       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1885       esac
1886       case $ac_var in #(
1887       _ | IFS | as_nl) ;; #(
1888       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1889       *) $as_unset $ac_var ;;
1890       esac ;;
1891     esac
1892   done
1893   (set) 2>&1 |
1894     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1895     *${as_nl}ac_space=\ *)
1896       sed -n \
1897         "s/'\''/'\''\\\\'\'''\''/g;
1898           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1899       ;; #(
1900     *)
1901       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1902       ;;
1903     esac |
1904     sort
1905 )
1906     echo
1907
1908     cat <<\_ASBOX
1909 ## ----------------- ##
1910 ## Output variables. ##
1911 ## ----------------- ##
1912 _ASBOX
1913     echo
1914     for ac_var in $ac_subst_vars
1915     do
1916       eval ac_val=\$$ac_var
1917       case $ac_val in
1918       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1919       esac
1920       $as_echo "$ac_var='\''$ac_val'\''"
1921     done | sort
1922     echo
1923
1924     if test -n "$ac_subst_files"; then
1925       cat <<\_ASBOX
1926 ## ------------------- ##
1927 ## File substitutions. ##
1928 ## ------------------- ##
1929 _ASBOX
1930       echo
1931       for ac_var in $ac_subst_files
1932       do
1933         eval ac_val=\$$ac_var
1934         case $ac_val in
1935         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1936         esac
1937         $as_echo "$ac_var='\''$ac_val'\''"
1938       done | sort
1939       echo
1940     fi
1941
1942     if test -s confdefs.h; then
1943       cat <<\_ASBOX
1944 ## ----------- ##
1945 ## confdefs.h. ##
1946 ## ----------- ##
1947 _ASBOX
1948       echo
1949       cat confdefs.h
1950       echo
1951     fi
1952     test "$ac_signal" != 0 &&
1953       $as_echo "$as_me: caught signal $ac_signal"
1954     $as_echo "$as_me: exit $exit_status"
1955   } >&5
1956   rm -f core *.core core.conftest.* &&
1957     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1958     exit $exit_status
1959 ' 0
1960 for ac_signal in 1 2 13 15; do
1961   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1962 done
1963 ac_signal=0
1964
1965 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1966 rm -f -r conftest* confdefs.h
1967
1968 # Predefined preprocessor variables.
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_NAME "$PACKAGE_NAME"
1972 _ACEOF
1973
1974
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1977 _ACEOF
1978
1979
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1982 _ACEOF
1983
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_STRING "$PACKAGE_STRING"
1987 _ACEOF
1988
1989
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1992 _ACEOF
1993
1994
1995 # Let the site file select an alternate cache file if it wants to.
1996 # Prefer an explicitly selected file to automatically selected ones.
1997 ac_site_file1=NONE
1998 ac_site_file2=NONE
1999 if test -n "$CONFIG_SITE"; then
2000   ac_site_file1=$CONFIG_SITE
2001 elif test "x$prefix" != xNONE; then
2002   ac_site_file1=$prefix/share/config.site
2003   ac_site_file2=$prefix/etc/config.site
2004 else
2005   ac_site_file1=$ac_default_prefix/share/config.site
2006   ac_site_file2=$ac_default_prefix/etc/config.site
2007 fi
2008 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2009 do
2010   test "x$ac_site_file" = xNONE && continue
2011   if test -r "$ac_site_file"; then
2012     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2013 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2014     sed 's/^/| /' "$ac_site_file" >&5
2015     . "$ac_site_file"
2016   fi
2017 done
2018
2019 if test -r "$cache_file"; then
2020   # Some versions of bash will fail to source /dev/null (special
2021   # files actually), so we avoid doing that.
2022   if test -f "$cache_file"; then
2023     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2024 $as_echo "$as_me: loading cache $cache_file" >&6;}
2025     case $cache_file in
2026       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2027       *)                      . "./$cache_file";;
2028     esac
2029   fi
2030 else
2031   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2032 $as_echo "$as_me: creating cache $cache_file" >&6;}
2033   >$cache_file
2034 fi
2035
2036 # Check that the precious variables saved in the cache have kept the same
2037 # value.
2038 ac_cache_corrupted=false
2039 for ac_var in $ac_precious_vars; do
2040   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2041   eval ac_new_set=\$ac_env_${ac_var}_set
2042   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2043   eval ac_new_val=\$ac_env_${ac_var}_value
2044   case $ac_old_set,$ac_new_set in
2045     set,)
2046       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2048       ac_cache_corrupted=: ;;
2049     ,set)
2050       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2051 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2052       ac_cache_corrupted=: ;;
2053     ,);;
2054     *)
2055       if test "x$ac_old_val" != "x$ac_new_val"; then
2056         # differences in whitespace do not lead to failure.
2057         ac_old_val_w=`echo x $ac_old_val`
2058         ac_new_val_w=`echo x $ac_new_val`
2059         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2061 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2062           ac_cache_corrupted=:
2063         else
2064           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2065 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2066           eval $ac_var=\$ac_old_val
2067         fi
2068         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2069 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2070         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2071 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2072       fi;;
2073   esac
2074   # Pass precious variables to config.status.
2075   if test "$ac_new_set" = set; then
2076     case $ac_new_val in
2077     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2078     *) ac_arg=$ac_var=$ac_new_val ;;
2079     esac
2080     case " $ac_configure_args " in
2081       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2082       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2083     esac
2084   fi
2085 done
2086 if $ac_cache_corrupted; then
2087   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2090 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2092 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2093    { (exit 1); exit 1; }; }
2094 fi
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112 ac_ext=c
2113 ac_cpp='$CPP $CPPFLAGS'
2114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2117
2118
2119 ac_ext=c
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124
2125
2126
2127
2128
2129
2130         { $as_echo "$as_me:$LINENO: checking metadata" >&5
2131 $as_echo_n "checking metadata... " >&6; }
2132
2133         META="$srcdir/META"
2134         _zfs_ac_meta_got_file=no
2135         if test -f "$META"; then
2136                 _zfs_ac_meta_got_file=yes
2137
2138                 ZFS_META_NAME=`perl -n\
2139                 -e "BEGIN { \\$key=shift @ARGV; }"\
2140                 -e "next unless s/^\s*\\$key[:=]//i;"\
2141                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2142                 -e "s/^\s+//;"\
2143                 -e "s/\s+$//;"\
2144                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2145                 -e "\\$val=\\$_;"\
2146                 -e "END { print \\$val if defined \\$val; }"\
2147                 '(?:NAME|PROJECT|PACKAGE)' $META`;
2148                 if test -n "$ZFS_META_NAME"; then
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define ZFS_META_NAME "$ZFS_META_NAME"
2152 _ACEOF
2153
2154
2155                 fi
2156
2157                 ZFS_META_VERSION=`perl -n\
2158                 -e "BEGIN { \\$key=shift @ARGV; }"\
2159                 -e "next unless s/^\s*\\$key[:=]//i;"\
2160                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2161                 -e "s/^\s+//;"\
2162                 -e "s/\s+$//;"\
2163                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2164                 -e "\\$val=\\$_;"\
2165                 -e "END { print \\$val if defined \\$val; }"\
2166                 'VERSION' $META`;
2167                 if test -n "$ZFS_META_VERSION"; then
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2171 _ACEOF
2172
2173
2174                 fi
2175
2176                 ZFS_META_RELEASE=`perl -n\
2177                 -e "BEGIN { \\$key=shift @ARGV; }"\
2178                 -e "next unless s/^\s*\\$key[:=]//i;"\
2179                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2180                 -e "s/^\s+//;"\
2181                 -e "s/\s+$//;"\
2182                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2183                 -e "\\$val=\\$_;"\
2184                 -e "END { print \\$val if defined \\$val; }"\
2185                 'RELEASE' $META`;
2186                 if test -n "$ZFS_META_RELEASE"; then
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2190 _ACEOF
2191
2192
2193                 fi
2194
2195                 ZFS_META_LICENSE=`perl -n\
2196                 -e "BEGIN { \\$key=shift @ARGV; }"\
2197                 -e "next unless s/^\s*\\$key[:=]//i;"\
2198                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2199                 -e "s/^\s+//;"\
2200                 -e "s/\s+$//;"\
2201                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2202                 -e "\\$val=\\$_;"\
2203                 -e "END { print \\$val if defined \\$val; }"\
2204                 'LICENSE' $META`;
2205                 if test -n "$ZFS_META_LICENSE"; then
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2209 _ACEOF
2210
2211
2212                 fi
2213
2214                 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2215                                 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2216                                 test -n "$ZFS_META_RELEASE" &&
2217                                         ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2218
2219 cat >>confdefs.h <<_ACEOF
2220 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2221 _ACEOF
2222
2223
2224                 fi
2225
2226                 ZFS_META_DATA=`perl -n\
2227                 -e "BEGIN { \\$key=shift @ARGV; }"\
2228                 -e "next unless s/^\s*\\$key[:=]//i;"\
2229                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2230                 -e "s/^\s+//;"\
2231                 -e "s/\s+$//;"\
2232                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2233                 -e "\\$val=\\$_;"\
2234                 -e "END { print \\$val if defined \\$val; }"\
2235                 'DATE' $META`;
2236                 if test -n "$ZFS_META_DATA"; then
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define ZFS_META_DATA "$ZFS_META_DATA"
2240 _ACEOF
2241
2242
2243                 fi
2244
2245                 ZFS_META_AUTHOR=`perl -n\
2246                 -e "BEGIN { \\$key=shift @ARGV; }"\
2247                 -e "next unless s/^\s*\\$key[:=]//i;"\
2248                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2249                 -e "s/^\s+//;"\
2250                 -e "s/\s+$//;"\
2251                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2252                 -e "\\$val=\\$_;"\
2253                 -e "END { print \\$val if defined \\$val; }"\
2254                 'AUTHOR' $META`;
2255                 if test -n "$ZFS_META_AUTHOR"; then
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2259 _ACEOF
2260
2261
2262                 fi
2263
2264
2265                 ZFS_META_LT_CURRENT=`perl -n\
2266                 -e "BEGIN { \\$key=shift @ARGV; }"\
2267                 -e "next unless s/^\s*\\$key[:=]//i;"\
2268                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2269                 -e "s/^\s+//;"\
2270                 -e "s/\s+$//;"\
2271                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2272                 -e "\\$val=\\$_;"\
2273                 -e "END { print \\$val if defined \\$val; }"\
2274                 'LT_CURRENT' $META`;
2275                 ZFS_META_LT_REVISION=`perl -n\
2276                 -e "BEGIN { \\$key=shift @ARGV; }"\
2277                 -e "next unless s/^\s*\\$key[:=]//i;"\
2278                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2279                 -e "s/^\s+//;"\
2280                 -e "s/\s+$//;"\
2281                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2282                 -e "\\$val=\\$_;"\
2283                 -e "END { print \\$val if defined \\$val; }"\
2284                 'LT_REVISION' $META`;
2285                 ZFS_META_LT_AGE=`perl -n\
2286                 -e "BEGIN { \\$key=shift @ARGV; }"\
2287                 -e "next unless s/^\s*\\$key[:=]//i;"\
2288                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2289                 -e "s/^\s+//;"\
2290                 -e "s/\s+$//;"\
2291                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2292                 -e "\\$val=\\$_;"\
2293                 -e "END { print \\$val if defined \\$val; }"\
2294                 'LT_AGE' $META`;
2295                 if test -n "$ZFS_META_LT_CURRENT" \
2296                                  -o -n "$ZFS_META_LT_REVISION" \
2297                                  -o -n "$ZFS_META_LT_AGE"; then
2298                         test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2299                         test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2300                         test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2304 _ACEOF
2305
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2309 _ACEOF
2310
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2314 _ACEOF
2315
2316
2317
2318
2319                 fi
2320         fi
2321
2322         { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2323 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2324
2325
2326 ac_aux_dir=
2327 for ac_dir in config "$srcdir"/config; do
2328   if test -f "$ac_dir/install-sh"; then
2329     ac_aux_dir=$ac_dir
2330     ac_install_sh="$ac_aux_dir/install-sh -c"
2331     break
2332   elif test -f "$ac_dir/install.sh"; then
2333     ac_aux_dir=$ac_dir
2334     ac_install_sh="$ac_aux_dir/install.sh -c"
2335     break
2336   elif test -f "$ac_dir/shtool"; then
2337     ac_aux_dir=$ac_dir
2338     ac_install_sh="$ac_aux_dir/shtool install -c"
2339     break
2340   fi
2341 done
2342 if test -z "$ac_aux_dir"; then
2343   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2344 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2345    { (exit 1); exit 1; }; }
2346 fi
2347
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2355
2356
2357 # Make sure we can run config.sub.
2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2359   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2360 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2361    { (exit 1); exit 1; }; }
2362
2363 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2364 $as_echo_n "checking build system type... " >&6; }
2365 if test "${ac_cv_build+set}" = set; then
2366   $as_echo_n "(cached) " >&6
2367 else
2368   ac_build_alias=$build_alias
2369 test "x$ac_build_alias" = x &&
2370   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2371 test "x$ac_build_alias" = x &&
2372   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2373 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2374    { (exit 1); exit 1; }; }
2375 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2376   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2377 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2378    { (exit 1); exit 1; }; }
2379
2380 fi
2381 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2382 $as_echo "$ac_cv_build" >&6; }
2383 case $ac_cv_build in
2384 *-*-*) ;;
2385 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2386 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2387    { (exit 1); exit 1; }; };;
2388 esac
2389 build=$ac_cv_build
2390 ac_save_IFS=$IFS; IFS='-'
2391 set x $ac_cv_build
2392 shift
2393 build_cpu=$1
2394 build_vendor=$2
2395 shift; shift
2396 # Remember, the first character of IFS is used to create $*,
2397 # except with old shells:
2398 build_os=$*
2399 IFS=$ac_save_IFS
2400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2401
2402
2403 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2404 $as_echo_n "checking host system type... " >&6; }
2405 if test "${ac_cv_host+set}" = set; then
2406   $as_echo_n "(cached) " >&6
2407 else
2408   if test "x$host_alias" = x; then
2409   ac_cv_host=$ac_cv_build
2410 else
2411   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2412     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2413 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2414    { (exit 1); exit 1; }; }
2415 fi
2416
2417 fi
2418 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2419 $as_echo "$ac_cv_host" >&6; }
2420 case $ac_cv_host in
2421 *-*-*) ;;
2422 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2423 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2424    { (exit 1); exit 1; }; };;
2425 esac
2426 host=$ac_cv_host
2427 ac_save_IFS=$IFS; IFS='-'
2428 set x $ac_cv_host
2429 shift
2430 host_cpu=$1
2431 host_vendor=$2
2432 shift; shift
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2435 host_os=$*
2436 IFS=$ac_save_IFS
2437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2438
2439
2440 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2441 $as_echo_n "checking target system type... " >&6; }
2442 if test "${ac_cv_target+set}" = set; then
2443   $as_echo_n "(cached) " >&6
2444 else
2445   if test "x$target_alias" = x; then
2446   ac_cv_target=$ac_cv_host
2447 else
2448   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2449     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2450 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2451    { (exit 1); exit 1; }; }
2452 fi
2453
2454 fi
2455 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2456 $as_echo "$ac_cv_target" >&6; }
2457 case $ac_cv_target in
2458 *-*-*) ;;
2459 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2460 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2461    { (exit 1); exit 1; }; };;
2462 esac
2463 target=$ac_cv_target
2464 ac_save_IFS=$IFS; IFS='-'
2465 set x $ac_cv_target
2466 shift
2467 target_cpu=$1
2468 target_vendor=$2
2469 shift; shift
2470 # Remember, the first character of IFS is used to create $*,
2471 # except with old shells:
2472 target_os=$*
2473 IFS=$ac_save_IFS
2474 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2475
2476
2477 # The aliases save the names the user supplied, while $host etc.
2478 # will get canonicalized.
2479 test -n "$target_alias" &&
2480   test "$program_prefix$program_suffix$program_transform_name" = \
2481     NONENONEs,x,x, &&
2482   program_prefix=${target_alias}-
2483
2484 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2485 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2486     # Check whether --enable-maintainer-mode was given.
2487 if test "${enable_maintainer_mode+set}" = set; then
2488   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2489 else
2490   USE_MAINTAINER_MODE=no
2491 fi
2492
2493   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2494 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2495    if test $USE_MAINTAINER_MODE = yes; then
2496   MAINTAINER_MODE_TRUE=
2497   MAINTAINER_MODE_FALSE='#'
2498 else
2499   MAINTAINER_MODE_TRUE='#'
2500   MAINTAINER_MODE_FALSE=
2501 fi
2502
2503   MAINT=$MAINTAINER_MODE_TRUE
2504
2505
2506 # Check whether --enable-silent-rules was given.
2507 if test "${enable_silent_rules+set}" = set; then
2508   enableval=$enable_silent_rules;
2509 fi
2510
2511 case $enable_silent_rules in
2512 yes) AM_DEFAULT_VERBOSITY=0;;
2513 no)  AM_DEFAULT_VERBOSITY=1;;
2514 *)   AM_DEFAULT_VERBOSITY=1;;
2515 esac
2516 AM_BACKSLASH='\'
2517
2518 am__api_version='1.11'
2519
2520 # Find a good install program.  We prefer a C program (faster),
2521 # so one script is as good as another.  But avoid the broken or
2522 # incompatible versions:
2523 # SysV /etc/install, /usr/sbin/install
2524 # SunOS /usr/etc/install
2525 # IRIX /sbin/install
2526 # AIX /bin/install
2527 # AmigaOS /C/install, which installs bootblocks on floppy discs
2528 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2529 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2530 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2531 # OS/2's system install, which has a completely different semantic
2532 # ./install, which can be erroneously created by make from ./install.sh.
2533 # Reject install programs that cannot install multiple files.
2534 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2535 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2536 if test -z "$INSTALL"; then
2537 if test "${ac_cv_path_install+set}" = set; then
2538   $as_echo_n "(cached) " >&6
2539 else
2540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545   # Account for people who put trailing slashes in PATH elements.
2546 case $as_dir/ in
2547   ./ | .// | /cC/* | \
2548   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2549   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2550   /usr/ucb/* ) ;;
2551   *)
2552     # OSF1 and SCO ODT 3.0 have their own names for install.
2553     # Don't use installbsd from OSF since it installs stuff as root
2554     # by default.
2555     for ac_prog in ginstall scoinst install; do
2556       for ac_exec_ext in '' $ac_executable_extensions; do
2557         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2558           if test $ac_prog = install &&
2559             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560             # AIX install.  It has an incompatible calling convention.
2561             :
2562           elif test $ac_prog = install &&
2563             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2564             # program-specific install script used by HP pwplus--don't use.
2565             :
2566           else
2567             rm -rf conftest.one conftest.two conftest.dir
2568             echo one > conftest.one
2569             echo two > conftest.two
2570             mkdir conftest.dir
2571             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2572               test -s conftest.one && test -s conftest.two &&
2573               test -s conftest.dir/conftest.one &&
2574               test -s conftest.dir/conftest.two
2575             then
2576               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2577               break 3
2578             fi
2579           fi
2580         fi
2581       done
2582     done
2583     ;;
2584 esac
2585
2586 done
2587 IFS=$as_save_IFS
2588
2589 rm -rf conftest.one conftest.two conftest.dir
2590
2591 fi
2592   if test "${ac_cv_path_install+set}" = set; then
2593     INSTALL=$ac_cv_path_install
2594   else
2595     # As a last resort, use the slow shell script.  Don't cache a
2596     # value for INSTALL within a source directory, because that will
2597     # break other packages using the cache if that directory is
2598     # removed, or if the value is a relative name.
2599     INSTALL=$ac_install_sh
2600   fi
2601 fi
2602 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2603 $as_echo "$INSTALL" >&6; }
2604
2605 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2606 # It thinks the first close brace ends the variable substitution.
2607 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2608
2609 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2610
2611 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2612
2613 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2614 $as_echo_n "checking whether build environment is sane... " >&6; }
2615 # Just in case
2616 sleep 1
2617 echo timestamp > conftest.file
2618 # Reject unsafe characters in $srcdir or the absolute working directory
2619 # name.  Accept space and tab only in the latter.
2620 am_lf='
2621 '
2622 case `pwd` in
2623   *[\\\"\#\$\&\'\`$am_lf]*)
2624     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2625 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2626    { (exit 1); exit 1; }; };;
2627 esac
2628 case $srcdir in
2629   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2630     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2631 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2632    { (exit 1); exit 1; }; };;
2633 esac
2634
2635 # Do `set' in a subshell so we don't clobber the current shell's
2636 # arguments.  Must try -L first in case configure is actually a
2637 # symlink; some systems play weird games with the mod time of symlinks
2638 # (eg FreeBSD returns the mod time of the symlink's containing
2639 # directory).
2640 if (
2641    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2642    if test "$*" = "X"; then
2643       # -L didn't work.
2644       set X `ls -t "$srcdir/configure" conftest.file`
2645    fi
2646    rm -f conftest.file
2647    if test "$*" != "X $srcdir/configure conftest.file" \
2648       && test "$*" != "X conftest.file $srcdir/configure"; then
2649
2650       # If neither matched, then we have a broken ls.  This can happen
2651       # if, for instance, CONFIG_SHELL is bash and it inherits a
2652       # broken ls alias from the environment.  This has actually
2653       # happened.  Such a system could not be considered "sane".
2654       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2655 alias in your environment" >&5
2656 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2657 alias in your environment" >&2;}
2658    { (exit 1); exit 1; }; }
2659    fi
2660
2661    test "$2" = conftest.file
2662    )
2663 then
2664    # Ok.
2665    :
2666 else
2667    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2668 Check your system clock" >&5
2669 $as_echo "$as_me: error: newly created file is older than distributed files!
2670 Check your system clock" >&2;}
2671    { (exit 1); exit 1; }; }
2672 fi
2673 { $as_echo "$as_me:$LINENO: result: yes" >&5
2674 $as_echo "yes" >&6; }
2675 test "$program_prefix" != NONE &&
2676   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2677 # Use a double $ so make ignores it.
2678 test "$program_suffix" != NONE &&
2679   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2680 # Double any \ or $.
2681 # By default was `s,x,x', remove it if useless.
2682 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2683 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2684
2685 # expand $ac_aux_dir to an absolute path
2686 am_aux_dir=`cd $ac_aux_dir && pwd`
2687
2688 if test x"${MISSING+set}" != xset; then
2689   case $am_aux_dir in
2690   *\ * | *\     *)
2691     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2692   *)
2693     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2694   esac
2695 fi
2696 # Use eval to expand $SHELL
2697 if eval "$MISSING --run true"; then
2698   am_missing_run="$MISSING --run "
2699 else
2700   am_missing_run=
2701   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2702 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2703 fi
2704
2705 if test x"${install_sh}" != xset; then
2706   case $am_aux_dir in
2707   *\ * | *\     *)
2708     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2709   *)
2710     install_sh="\${SHELL} $am_aux_dir/install-sh"
2711   esac
2712 fi
2713
2714 # Installed binaries are usually stripped using `strip' when the user
2715 # run `make install-strip'.  However `strip' might not be the right
2716 # tool to use in cross-compilation environments, therefore Automake
2717 # will honor the `STRIP' environment variable to overrule this program.
2718 if test "$cross_compiling" != no; then
2719   if test -n "$ac_tool_prefix"; then
2720   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2721 set dummy ${ac_tool_prefix}strip; ac_word=$2
2722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if test "${ac_cv_prog_STRIP+set}" = set; then
2725   $as_echo_n "(cached) " >&6
2726 else
2727   if test -n "$STRIP"; then
2728   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2729 else
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 for as_dir in $PATH
2732 do
2733   IFS=$as_save_IFS
2734   test -z "$as_dir" && as_dir=.
2735   for ac_exec_ext in '' $ac_executable_extensions; do
2736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2738     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739     break 2
2740   fi
2741 done
2742 done
2743 IFS=$as_save_IFS
2744
2745 fi
2746 fi
2747 STRIP=$ac_cv_prog_STRIP
2748 if test -n "$STRIP"; then
2749   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2750 $as_echo "$STRIP" >&6; }
2751 else
2752   { $as_echo "$as_me:$LINENO: result: no" >&5
2753 $as_echo "no" >&6; }
2754 fi
2755
2756
2757 fi
2758 if test -z "$ac_cv_prog_STRIP"; then
2759   ac_ct_STRIP=$STRIP
2760   # Extract the first word of "strip", so it can be a program name with args.
2761 set dummy strip; ac_word=$2
2762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test -n "$ac_ct_STRIP"; then
2768   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775   for ac_exec_ext in '' $ac_executable_extensions; do
2776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777     ac_cv_prog_ac_ct_STRIP="strip"
2778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782 done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2788 if test -n "$ac_ct_STRIP"; then
2789   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2790 $as_echo "$ac_ct_STRIP" >&6; }
2791 else
2792   { $as_echo "$as_me:$LINENO: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796   if test "x$ac_ct_STRIP" = x; then
2797     STRIP=":"
2798   else
2799     case $cross_compiling:$ac_tool_warned in
2800 yes:)
2801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2803 ac_tool_warned=yes ;;
2804 esac
2805     STRIP=$ac_ct_STRIP
2806   fi
2807 else
2808   STRIP="$ac_cv_prog_STRIP"
2809 fi
2810
2811 fi
2812 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2813
2814 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2815 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2816 if test -z "$MKDIR_P"; then
2817   if test "${ac_cv_path_mkdir+set}" = set; then
2818   $as_echo_n "(cached) " >&6
2819 else
2820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2822 do
2823   IFS=$as_save_IFS
2824   test -z "$as_dir" && as_dir=.
2825   for ac_prog in mkdir gmkdir; do
2826          for ac_exec_ext in '' $ac_executable_extensions; do
2827            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2828            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2829              'mkdir (GNU coreutils) '* | \
2830              'mkdir (coreutils) '* | \
2831              'mkdir (fileutils) '4.1*)
2832                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2833                break 3;;
2834            esac
2835          done
2836        done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841
2842   if test "${ac_cv_path_mkdir+set}" = set; then
2843     MKDIR_P="$ac_cv_path_mkdir -p"
2844   else
2845     # As a last resort, use the slow shell script.  Don't cache a
2846     # value for MKDIR_P within a source directory, because that will
2847     # break other packages using the cache if that directory is
2848     # removed, or if the value is a relative name.
2849     test -d ./--version && rmdir ./--version
2850     MKDIR_P="$ac_install_sh -d"
2851   fi
2852 fi
2853 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2854 $as_echo "$MKDIR_P" >&6; }
2855
2856 mkdir_p="$MKDIR_P"
2857 case $mkdir_p in
2858   [\\/$]* | ?:[\\/]*) ;;
2859   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2860 esac
2861
2862 for ac_prog in gawk mawk nawk awk
2863 do
2864   # Extract the first word of "$ac_prog", so it can be a program name with args.
2865 set dummy $ac_prog; ac_word=$2
2866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_AWK+set}" = set; then
2869   $as_echo_n "(cached) " >&6
2870 else
2871   if test -n "$AWK"; then
2872   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877   IFS=$as_save_IFS
2878   test -z "$as_dir" && as_dir=.
2879   for ac_exec_ext in '' $ac_executable_extensions; do
2880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881     ac_cv_prog_AWK="$ac_prog"
2882     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883     break 2
2884   fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 AWK=$ac_cv_prog_AWK
2892 if test -n "$AWK"; then
2893   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2894 $as_echo "$AWK" >&6; }
2895 else
2896   { $as_echo "$as_me:$LINENO: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900
2901   test -n "$AWK" && break
2902 done
2903
2904 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2905 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2906 set x ${MAKE-make}
2907 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2908 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2909   $as_echo_n "(cached) " >&6
2910 else
2911   cat >conftest.make <<\_ACEOF
2912 SHELL = /bin/sh
2913 all:
2914         @echo '@@@%%%=$(MAKE)=@@@%%%'
2915 _ACEOF
2916 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2917 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2918   *@@@%%%=?*=@@@%%%*)
2919     eval ac_cv_prog_make_${ac_make}_set=yes;;
2920   *)
2921     eval ac_cv_prog_make_${ac_make}_set=no;;
2922 esac
2923 rm -f conftest.make
2924 fi
2925 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2926   { $as_echo "$as_me:$LINENO: result: yes" >&5
2927 $as_echo "yes" >&6; }
2928   SET_MAKE=
2929 else
2930   { $as_echo "$as_me:$LINENO: result: no" >&5
2931 $as_echo "no" >&6; }
2932   SET_MAKE="MAKE=${MAKE-make}"
2933 fi
2934
2935 rm -rf .tst 2>/dev/null
2936 mkdir .tst 2>/dev/null
2937 if test -d .tst; then
2938   am__leading_dot=.
2939 else
2940   am__leading_dot=_
2941 fi
2942 rmdir .tst 2>/dev/null
2943
2944 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2945   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2946   # is not polluted with repeated "-I."
2947   am__isrc=' -I$(srcdir)'
2948   # test to see if srcdir already configured
2949   if test -f $srcdir/config.status; then
2950     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2951 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2952    { (exit 1); exit 1; }; }
2953   fi
2954 fi
2955
2956 # test whether we have cygpath
2957 if test -z "$CYGPATH_W"; then
2958   if (cygpath --version) >/dev/null 2>/dev/null; then
2959     CYGPATH_W='cygpath -w'
2960   else
2961     CYGPATH_W=echo
2962   fi
2963 fi
2964
2965
2966 # Define the identity of the package.
2967  PACKAGE=$ZFS_META_NAME
2968  VERSION=$ZFS_META_VERSION
2969
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE "$PACKAGE"
2973 _ACEOF
2974
2975
2976 cat >>confdefs.h <<_ACEOF
2977 #define VERSION "$VERSION"
2978 _ACEOF
2979
2980 # Some tools Automake needs.
2981
2982 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2983
2984
2985 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2986
2987
2988 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2989
2990
2991 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2992
2993
2994 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2995
2996 # We need awk for the "check" target.  The system "awk" is bad on
2997 # some platforms.
2998 # Always define AMTAR for backward compatibility.
2999
3000 AMTAR=${AMTAR-"${am_missing_run}tar"}
3001
3002 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3003
3004
3005
3006
3007
3008 ac_config_headers="$ac_config_headers zfs_config.h"
3009
3010
3011 # Find a good install program.  We prefer a C program (faster),
3012 # so one script is as good as another.  But avoid the broken or
3013 # incompatible versions:
3014 # SysV /etc/install, /usr/sbin/install
3015 # SunOS /usr/etc/install
3016 # IRIX /sbin/install
3017 # AIX /bin/install
3018 # AmigaOS /C/install, which installs bootblocks on floppy discs
3019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3022 # OS/2's system install, which has a completely different semantic
3023 # ./install, which can be erroneously created by make from ./install.sh.
3024 # Reject install programs that cannot install multiple files.
3025 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3026 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3027 if test -z "$INSTALL"; then
3028 if test "${ac_cv_path_install+set}" = set; then
3029   $as_echo_n "(cached) " >&6
3030 else
3031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034   IFS=$as_save_IFS
3035   test -z "$as_dir" && as_dir=.
3036   # Account for people who put trailing slashes in PATH elements.
3037 case $as_dir/ in
3038   ./ | .// | /cC/* | \
3039   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3040   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3041   /usr/ucb/* ) ;;
3042   *)
3043     # OSF1 and SCO ODT 3.0 have their own names for install.
3044     # Don't use installbsd from OSF since it installs stuff as root
3045     # by default.
3046     for ac_prog in ginstall scoinst install; do
3047       for ac_exec_ext in '' $ac_executable_extensions; do
3048         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3049           if test $ac_prog = install &&
3050             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3051             # AIX install.  It has an incompatible calling convention.
3052             :
3053           elif test $ac_prog = install &&
3054             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3055             # program-specific install script used by HP pwplus--don't use.
3056             :
3057           else
3058             rm -rf conftest.one conftest.two conftest.dir
3059             echo one > conftest.one
3060             echo two > conftest.two
3061             mkdir conftest.dir
3062             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3063               test -s conftest.one && test -s conftest.two &&
3064               test -s conftest.dir/conftest.one &&
3065               test -s conftest.dir/conftest.two
3066             then
3067               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3068               break 3
3069             fi
3070           fi
3071         fi
3072       done
3073     done
3074     ;;
3075 esac
3076
3077 done
3078 IFS=$as_save_IFS
3079
3080 rm -rf conftest.one conftest.two conftest.dir
3081
3082 fi
3083   if test "${ac_cv_path_install+set}" = set; then
3084     INSTALL=$ac_cv_path_install
3085   else
3086     # As a last resort, use the slow shell script.  Don't cache a
3087     # value for INSTALL within a source directory, because that will
3088     # break other packages using the cache if that directory is
3089     # removed, or if the value is a relative name.
3090     INSTALL=$ac_install_sh
3091   fi
3092 fi
3093 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3094 $as_echo "$INSTALL" >&6; }
3095
3096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3097 # It thinks the first close brace ends the variable substitution.
3098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3099
3100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3101
3102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3103
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109 if test -n "$ac_tool_prefix"; then
3110   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3111 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if test "${ac_cv_prog_CC+set}" = set; then
3115   $as_echo_n "(cached) " >&6
3116 else
3117   if test -n "$CC"; then
3118   ac_cv_prog_CC="$CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125   for ac_exec_ext in '' $ac_executable_extensions; do
3126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3128     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142   { $as_echo "$as_me:$LINENO: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 if test -z "$ac_cv_prog_CC"; then
3149   ac_ct_CC=$CC
3150   # Extract the first word of "gcc", so it can be a program name with args.
3151 set dummy gcc; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$ac_ct_CC"; then
3158   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165   for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_ac_ct_CC="gcc"
3168     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172 done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178 if test -n "$ac_ct_CC"; then
3179   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3180 $as_echo "$ac_ct_CC" >&6; }
3181 else
3182   { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186   if test "x$ac_ct_CC" = x; then
3187     CC=""
3188   else
3189     case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195     CC=$ac_ct_CC
3196   fi
3197 else
3198   CC="$ac_cv_prog_CC"
3199 fi
3200
3201 if test -z "$CC"; then
3202           if test -n "$ac_tool_prefix"; then
3203     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}cc; ac_word=$2
3205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_CC+set}" = set; then
3208   $as_echo_n "(cached) " >&6
3209 else
3210   if test -n "$CC"; then
3211   ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   for ac_exec_ext in '' $ac_executable_extensions; do
3219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220     ac_cv_prog_CC="${ac_tool_prefix}cc"
3221     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222     break 2
3223   fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235   { $as_echo "$as_me:$LINENO: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240   fi
3241 fi
3242 if test -z "$CC"; then
3243   # Extract the first word of "cc", so it can be a program name with args.
3244 set dummy cc; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$CC"; then
3251   ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253   ac_prog_rejected=no
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 for as_dir in $PATH
3256 do
3257   IFS=$as_save_IFS
3258   test -z "$as_dir" && as_dir=.
3259   for ac_exec_ext in '' $ac_executable_extensions; do
3260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3262        ac_prog_rejected=yes
3263        continue
3264      fi
3265     ac_cv_prog_CC="cc"
3266     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270 done
3271 IFS=$as_save_IFS
3272
3273 if test $ac_prog_rejected = yes; then
3274   # We found a bogon in the path, so make sure we never use it.
3275   set dummy $ac_cv_prog_CC
3276   shift
3277   if test $# != 0; then
3278     # We chose a different compiler from the bogus one.
3279     # However, it has the same basename, so the bogon will be chosen
3280     # first if we set CC to just the basename; use the full file name.
3281     shift
3282     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3283   fi
3284 fi
3285 fi
3286 fi
3287 CC=$ac_cv_prog_CC
3288 if test -n "$CC"; then
3289   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3290 $as_echo "$CC" >&6; }
3291 else
3292   { $as_echo "$as_me:$LINENO: result: no" >&5
3293 $as_echo "no" >&6; }
3294 fi
3295
3296
3297 fi
3298 if test -z "$CC"; then
3299   if test -n "$ac_tool_prefix"; then
3300   for ac_prog in cl.exe
3301   do
3302     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if test "${ac_cv_prog_CC+set}" = set; then
3307   $as_echo_n "(cached) " >&6
3308 else
3309   if test -n "$CC"; then
3310   ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315   IFS=$as_save_IFS
3316   test -z "$as_dir" && as_dir=.
3317   for ac_exec_ext in '' $ac_executable_extensions; do
3318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3320     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321     break 2
3322   fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334   { $as_echo "$as_me:$LINENO: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339     test -n "$CC" && break
3340   done
3341 fi
3342 if test -z "$CC"; then
3343   ac_ct_CC=$CC
3344   for ac_prog in cl.exe
3345 do
3346   # Extract the first word of "$ac_prog", so it can be a program name with args.
3347 set dummy $ac_prog; ac_word=$2
3348 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3351   $as_echo_n "(cached) " >&6
3352 else
3353   if test -n "$ac_ct_CC"; then
3354   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361   for ac_exec_ext in '' $ac_executable_extensions; do
3362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3363     ac_cv_prog_ac_ct_CC="$ac_prog"
3364     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 fi
3372 fi
3373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3374 if test -n "$ac_ct_CC"; then
3375   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3376 $as_echo "$ac_ct_CC" >&6; }
3377 else
3378   { $as_echo "$as_me:$LINENO: result: no" >&5
3379 $as_echo "no" >&6; }
3380 fi
3381
3382
3383   test -n "$ac_ct_CC" && break
3384 done
3385
3386   if test "x$ac_ct_CC" = x; then
3387     CC=""
3388   else
3389     case $cross_compiling:$ac_tool_warned in
3390 yes:)
3391 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3393 ac_tool_warned=yes ;;
3394 esac
3395     CC=$ac_ct_CC
3396   fi
3397 fi
3398
3399 fi
3400
3401
3402 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3407 See \`config.log' for more details." >&2;}
3408    { (exit 1); exit 1; }; }; }
3409
3410 # Provide some information about the compiler.
3411 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3412 set X $ac_compile
3413 ac_compiler=$2
3414 { (ac_try="$ac_compiler --version >&5"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420 $as_echo "$ac_try_echo") >&5
3421   (eval "$ac_compiler --version >&5") 2>&5
3422   ac_status=$?
3423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }
3425 { (ac_try="$ac_compiler -v >&5"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432   (eval "$ac_compiler -v >&5") 2>&5
3433   ac_status=$?
3434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); }
3436 { (ac_try="$ac_compiler -V >&5"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3442 $as_echo "$ac_try_echo") >&5
3443   (eval "$ac_compiler -V >&5") 2>&5
3444   ac_status=$?
3445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); }
3447
3448 cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454
3455 int
3456 main ()
3457 {
3458
3459   ;
3460   return 0;
3461 }
3462 _ACEOF
3463 ac_clean_files_save=$ac_clean_files
3464 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3465 # Try to create an executable without -o first, disregard a.out.
3466 # It will help us diagnose broken compilers, and finding out an intuition
3467 # of exeext.
3468 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3469 $as_echo_n "checking for C compiler default output file name... " >&6; }
3470 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3471
3472 # The possible output files:
3473 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3474
3475 ac_rmfiles=
3476 for ac_file in $ac_files
3477 do
3478   case $ac_file in
3479     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3481   esac
3482 done
3483 rm -f $ac_rmfiles
3484
3485 if { (ac_try="$ac_link_default"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492   (eval "$ac_link_default") 2>&5
3493   ac_status=$?
3494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }; then
3496   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3497 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3498 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3499 # so that the user can short-circuit this test for compilers unknown to
3500 # Autoconf.
3501 for ac_file in $ac_files ''
3502 do
3503   test -f "$ac_file" || continue
3504   case $ac_file in
3505     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3506         ;;
3507     [ab].out )
3508         # We found the default executable, but exeext='' is most
3509         # certainly right.
3510         break;;
3511     *.* )
3512         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3513         then :; else
3514            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515         fi
3516         # We set ac_cv_exeext here because the later test for it is not
3517         # safe: cross compilers may not add the suffix if given an `-o'
3518         # argument, so we may need to know it at that point already.
3519         # Even if this section looks crufty: it has the advantage of
3520         # actually working.
3521         break;;
3522     * )
3523         break;;
3524   esac
3525 done
3526 test "$ac_cv_exeext" = no && ac_cv_exeext=
3527
3528 else
3529   ac_file=''
3530 fi
3531
3532 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3533 $as_echo "$ac_file" >&6; }
3534 if test -z "$ac_file"; then
3535   $as_echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3541 See \`config.log' for more details." >&5
3542 $as_echo "$as_me: error: C compiler cannot create executables
3543 See \`config.log' for more details." >&2;}
3544    { (exit 77); exit 77; }; }; }
3545 fi
3546
3547 ac_exeext=$ac_cv_exeext
3548
3549 # Check that the compiler produces executables we can run.  If not, either
3550 # the compiler is broken, or we cross compile.
3551 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3552 $as_echo_n "checking whether the C compiler works... " >&6; }
3553 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3554 # If not cross compiling, check that we can run a simple program.
3555 if test "$cross_compiling" != yes; then
3556   if { ac_try='./$ac_file'
3557   { (case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3562 $as_echo "$ac_try_echo") >&5
3563   (eval "$ac_try") 2>&5
3564   ac_status=$?
3565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); }; }; then
3567     cross_compiling=no
3568   else
3569     if test "$cross_compiling" = maybe; then
3570         cross_compiling=yes
3571     else
3572         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3575 If you meant to cross compile, use \`--host'.
3576 See \`config.log' for more details." >&5
3577 $as_echo "$as_me: error: cannot run C compiled programs.
3578 If you meant to cross compile, use \`--host'.
3579 See \`config.log' for more details." >&2;}
3580    { (exit 1); exit 1; }; }; }
3581     fi
3582   fi
3583 fi
3584 { $as_echo "$as_me:$LINENO: result: yes" >&5
3585 $as_echo "yes" >&6; }
3586
3587 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3588 ac_clean_files=$ac_clean_files_save
3589 # Check that the compiler produces executables we can run.  If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3592 $as_echo_n "checking whether we are cross compiling... " >&6; }
3593 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3594 $as_echo "$cross_compiling" >&6; }
3595
3596 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3597 $as_echo_n "checking for suffix of executables... " >&6; }
3598 if { (ac_try="$ac_link"
3599 case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3604 $as_echo "$ac_try_echo") >&5
3605   (eval "$ac_link") 2>&5
3606   ac_status=$?
3607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); }; then
3609   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3610 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3611 # work properly (i.e., refer to `conftest.exe'), while it won't with
3612 # `rm'.
3613 for ac_file in conftest.exe conftest conftest.*; do
3614   test -f "$ac_file" || continue
3615   case $ac_file in
3616     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3617     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3618           break;;
3619     * ) break;;
3620   esac
3621 done
3622 else
3623   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3626 See \`config.log' for more details." >&5
3627 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3628 See \`config.log' for more details." >&2;}
3629    { (exit 1); exit 1; }; }; }
3630 fi
3631
3632 rm -f conftest$ac_cv_exeext
3633 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3634 $as_echo "$ac_cv_exeext" >&6; }
3635
3636 rm -f conftest.$ac_ext
3637 EXEEXT=$ac_cv_exeext
3638 ac_exeext=$EXEEXT
3639 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3640 $as_echo_n "checking for suffix of object files... " >&6; }
3641 if test "${ac_cv_objext+set}" = set; then
3642   $as_echo_n "(cached) " >&6
3643 else
3644   cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 rm -f conftest.o conftest.obj
3660 if { (ac_try="$ac_compile"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666 $as_echo "$ac_try_echo") >&5
3667   (eval "$ac_compile") 2>&5
3668   ac_status=$?
3669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); }; then
3671   for ac_file in conftest.o conftest.obj conftest.*; do
3672   test -f "$ac_file" || continue;
3673   case $ac_file in
3674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3675     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3676        break;;
3677   esac
3678 done
3679 else
3680   $as_echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3682
3683 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3686 See \`config.log' for more details." >&5
3687 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3688 See \`config.log' for more details." >&2;}
3689    { (exit 1); exit 1; }; }; }
3690 fi
3691
3692 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3693 fi
3694 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3695 $as_echo "$ac_cv_objext" >&6; }
3696 OBJEXT=$ac_cv_objext
3697 ac_objext=$OBJEXT
3698 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3699 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3700 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3701   $as_echo_n "(cached) " >&6
3702 else
3703   cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h.  */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h.  */
3709
3710 int
3711 main ()
3712 {
3713 #ifndef __GNUC__
3714        choke me
3715 #endif
3716
3717   ;
3718   return 0;
3719 }
3720 _ACEOF
3721 rm -f conftest.$ac_objext
3722 if { (ac_try="$ac_compile"
3723 case "(($ac_try" in
3724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725   *) ac_try_echo=$ac_try;;
3726 esac
3727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728 $as_echo "$ac_try_echo") >&5
3729   (eval "$ac_compile") 2>conftest.er1
3730   ac_status=$?
3731   grep -v '^ *+' conftest.er1 >conftest.err
3732   rm -f conftest.er1
3733   cat conftest.err >&5
3734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } && {
3736          test -z "$ac_c_werror_flag" ||
3737          test ! -s conftest.err
3738        } && test -s conftest.$ac_objext; then
3739   ac_compiler_gnu=yes
3740 else
3741   $as_echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744         ac_compiler_gnu=no
3745 fi
3746
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3749
3750 fi
3751 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3753 if test $ac_compiler_gnu = yes; then
3754   GCC=yes
3755 else
3756   GCC=
3757 fi
3758 ac_test_CFLAGS=${CFLAGS+set}
3759 ac_save_CFLAGS=$CFLAGS
3760 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3762 if test "${ac_cv_prog_cc_g+set}" = set; then
3763   $as_echo_n "(cached) " >&6
3764 else
3765   ac_save_c_werror_flag=$ac_c_werror_flag
3766    ac_c_werror_flag=yes
3767    ac_cv_prog_cc_g=no
3768    CFLAGS="-g"
3769    cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775
3776 int
3777 main ()
3778 {
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (ac_try="$ac_compile"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3791 $as_echo "$ac_try_echo") >&5
3792   (eval "$ac_compile") 2>conftest.er1
3793   ac_status=$?
3794   grep -v '^ *+' conftest.er1 >conftest.err
3795   rm -f conftest.er1
3796   cat conftest.err >&5
3797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); } && {
3799          test -z "$ac_c_werror_flag" ||
3800          test ! -s conftest.err
3801        } && test -s conftest.$ac_objext; then
3802   ac_cv_prog_cc_g=yes
3803 else
3804   $as_echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807         CFLAGS=""
3808       cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h.  */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h.  */
3814
3815 int
3816 main ()
3817 {
3818
3819   ;
3820   return 0;
3821 }
3822 _ACEOF
3823 rm -f conftest.$ac_objext
3824 if { (ac_try="$ac_compile"
3825 case "(($ac_try" in
3826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827   *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3830 $as_echo "$ac_try_echo") >&5
3831   (eval "$ac_compile") 2>conftest.er1
3832   ac_status=$?
3833   grep -v '^ *+' conftest.er1 >conftest.err
3834   rm -f conftest.er1
3835   cat conftest.err >&5
3836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837   (exit $ac_status); } && {
3838          test -z "$ac_c_werror_flag" ||
3839          test ! -s conftest.err
3840        } && test -s conftest.$ac_objext; then
3841   :
3842 else
3843   $as_echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846         ac_c_werror_flag=$ac_save_c_werror_flag
3847          CFLAGS="-g"
3848          cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h.  */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871   (eval "$ac_compile") 2>conftest.er1
3872   ac_status=$?
3873   grep -v '^ *+' conftest.er1 >conftest.err
3874   rm -f conftest.er1
3875   cat conftest.err >&5
3876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); } && {
3878          test -z "$ac_c_werror_flag" ||
3879          test ! -s conftest.err
3880        } && test -s conftest.$ac_objext; then
3881   ac_cv_prog_cc_g=yes
3882 else
3883   $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886
3887 fi
3888
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890 fi
3891
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 fi
3894
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896    ac_c_werror_flag=$ac_save_c_werror_flag
3897 fi
3898 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3899 $as_echo "$ac_cv_prog_cc_g" >&6; }
3900 if test "$ac_test_CFLAGS" = set; then
3901   CFLAGS=$ac_save_CFLAGS
3902 elif test $ac_cv_prog_cc_g = yes; then
3903   if test "$GCC" = yes; then
3904     CFLAGS="-g -O2"
3905   else
3906     CFLAGS="-g"
3907   fi
3908 else
3909   if test "$GCC" = yes; then
3910     CFLAGS="-O2"
3911   else
3912     CFLAGS=
3913   fi
3914 fi
3915 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3916 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3917 if test "${ac_cv_prog_cc_c89+set}" = set; then
3918   $as_echo_n "(cached) " >&6
3919 else
3920   ac_cv_prog_cc_c89=no
3921 ac_save_CC=$CC
3922 cat >conftest.$ac_ext <<_ACEOF
3923 /* confdefs.h.  */
3924 _ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h.  */
3928 #include <stdarg.h>
3929 #include <stdio.h>
3930 #include <sys/types.h>
3931 #include <sys/stat.h>
3932 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3933 struct buf { int x; };
3934 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3935 static char *e (p, i)
3936      char **p;
3937      int i;
3938 {
3939   return p[i];
3940 }
3941 static char *f (char * (*g) (char **, int), char **p, ...)
3942 {
3943   char *s;
3944   va_list v;
3945   va_start (v,p);
3946   s = g (p, va_arg (v,int));
3947   va_end (v);
3948   return s;
3949 }
3950
3951 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3952    function prototypes and stuff, but not '\xHH' hex character constants.
3953    These don't provoke an error unfortunately, instead are silently treated
3954    as 'x'.  The following induces an error, until -std is added to get
3955    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3956    array size at least.  It's necessary to write '\x00'==0 to get something
3957    that's true only with -std.  */
3958 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3959
3960 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3961    inside strings and character constants.  */
3962 #define FOO(x) 'x'
3963 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3964
3965 int test (int i, double x);
3966 struct s1 {int (*f) (int a);};
3967 struct s2 {int (*f) (double a);};
3968 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969 int argc;
3970 char **argv;
3971 int
3972 main ()
3973 {
3974 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3980         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3981 do
3982   CC="$ac_save_CC $ac_arg"
3983   rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3985 case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3990 $as_echo "$ac_try_echo") >&5
3991   (eval "$ac_compile") 2>conftest.er1
3992   ac_status=$?
3993   grep -v '^ *+' conftest.er1 >conftest.err
3994   rm -f conftest.er1
3995   cat conftest.err >&5
3996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); } && {
3998          test -z "$ac_c_werror_flag" ||
3999          test ! -s conftest.err
4000        } && test -s conftest.$ac_objext; then
4001   ac_cv_prog_cc_c89=$ac_arg
4002 else
4003   $as_echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006
4007 fi
4008
4009 rm -f core conftest.err conftest.$ac_objext
4010   test "x$ac_cv_prog_cc_c89" != "xno" && break
4011 done
4012 rm -f conftest.$ac_ext
4013 CC=$ac_save_CC
4014
4015 fi
4016 # AC_CACHE_VAL
4017 case "x$ac_cv_prog_cc_c89" in
4018   x)
4019     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4020 $as_echo "none needed" >&6; } ;;
4021   xno)
4022     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4023 $as_echo "unsupported" >&6; } ;;
4024   *)
4025     CC="$CC $ac_cv_prog_cc_c89"
4026     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4027 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4028 esac
4029
4030
4031 ac_ext=c
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 DEPDIR="${am__leading_dot}deps"
4037
4038 ac_config_commands="$ac_config_commands depfiles"
4039
4040
4041 am_make=${MAKE-make}
4042 cat > confinc << 'END'
4043 am__doit:
4044         @echo this is the am__doit target
4045 .PHONY: am__doit
4046 END
4047 # If we don't find an include directive, just comment out the code.
4048 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4049 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4050 am__include="#"
4051 am__quote=
4052 _am_result=none
4053 # First try GNU make style include.
4054 echo "include confinc" > confmf
4055 # Ignore all kinds of additional output from `make'.
4056 case `$am_make -s -f confmf 2> /dev/null` in #(
4057 *the\ am__doit\ target*)
4058   am__include=include
4059   am__quote=
4060   _am_result=GNU
4061   ;;
4062 esac
4063 # Now try BSD make style include.
4064 if test "$am__include" = "#"; then
4065    echo '.include "confinc"' > confmf
4066    case `$am_make -s -f confmf 2> /dev/null` in #(
4067    *the\ am__doit\ target*)
4068      am__include=.include
4069      am__quote="\""
4070      _am_result=BSD
4071      ;;
4072    esac
4073 fi
4074
4075
4076 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4077 $as_echo "$_am_result" >&6; }
4078 rm -f confinc confmf
4079
4080 # Check whether --enable-dependency-tracking was given.
4081 if test "${enable_dependency_tracking+set}" = set; then
4082   enableval=$enable_dependency_tracking;
4083 fi
4084
4085 if test "x$enable_dependency_tracking" != xno; then
4086   am_depcomp="$ac_aux_dir/depcomp"
4087   AMDEPBACKSLASH='\'
4088 fi
4089  if test "x$enable_dependency_tracking" != xno; then
4090   AMDEP_TRUE=
4091   AMDEP_FALSE='#'
4092 else
4093   AMDEP_TRUE='#'
4094   AMDEP_FALSE=
4095 fi
4096
4097
4098
4099 depcc="$CC"   am_compiler_list=
4100
4101 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4102 $as_echo_n "checking dependency style of $depcc... " >&6; }
4103 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4104   $as_echo_n "(cached) " >&6
4105 else
4106   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4107   # We make a subdir and do the tests there.  Otherwise we can end up
4108   # making bogus files that we don't know about and never remove.  For
4109   # instance it was reported that on HP-UX the gcc test will end up
4110   # making a dummy file named `D' -- because `-MD' means `put the output
4111   # in D'.
4112   mkdir conftest.dir
4113   # Copy depcomp to subdir because otherwise we won't find it if we're
4114   # using a relative directory.
4115   cp "$am_depcomp" conftest.dir
4116   cd conftest.dir
4117   # We will build objects and dependencies in a subdirectory because
4118   # it helps to detect inapplicable dependency modes.  For instance
4119   # both Tru64's cc and ICC support -MD to output dependencies as a
4120   # side effect of compilation, but ICC will put the dependencies in
4121   # the current directory while Tru64 will put them in the object
4122   # directory.
4123   mkdir sub
4124
4125   am_cv_CC_dependencies_compiler_type=none
4126   if test "$am_compiler_list" = ""; then
4127      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4128   fi
4129   am__universal=false
4130   case " $depcc " in #(
4131      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4132      esac
4133
4134   for depmode in $am_compiler_list; do
4135     # Setup a source with many dependencies, because some compilers
4136     # like to wrap large dependency lists on column 80 (with \), and
4137     # we should not choose a depcomp mode which is confused by this.
4138     #
4139     # We need to recreate these files for each test, as the compiler may
4140     # overwrite some of them when testing with obscure command lines.
4141     # This happens at least with the AIX C compiler.
4142     : > sub/conftest.c
4143     for i in 1 2 3 4 5 6; do
4144       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4145       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4146       # Solaris 8's {/usr,}/bin/sh.
4147       touch sub/conftst$i.h
4148     done
4149     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4150
4151     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4152     # mode.  It turns out that the SunPro C++ compiler does not properly
4153     # handle `-M -o', and we need to detect this.  Also, some Intel
4154     # versions had trouble with output in subdirs
4155     am__obj=sub/conftest.${OBJEXT-o}
4156     am__minus_obj="-o $am__obj"
4157     case $depmode in
4158     gcc)
4159       # This depmode causes a compiler race in universal mode.
4160       test "$am__universal" = false || continue
4161       ;;
4162     nosideeffect)
4163       # after this tag, mechanisms are not by side-effect, so they'll
4164       # only be used when explicitly requested
4165       if test "x$enable_dependency_tracking" = xyes; then
4166         continue
4167       else
4168         break
4169       fi
4170       ;;
4171     msvisualcpp | msvcmsys)
4172       # This compiler won't grok `-c -o', but also, the minuso test has
4173       # not run yet.  These depmodes are late enough in the game, and
4174       # so weak that their functioning should not be impacted.
4175       am__obj=conftest.${OBJEXT-o}
4176       am__minus_obj=
4177       ;;
4178     none) break ;;
4179     esac
4180     if depmode=$depmode \
4181        source=sub/conftest.c object=$am__obj \
4182        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4183        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4184          >/dev/null 2>conftest.err &&
4185        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4186        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4187        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4188        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4189       # icc doesn't choke on unknown options, it will just issue warnings
4190       # or remarks (even with -Werror).  So we grep stderr for any message
4191       # that says an option was ignored or not supported.
4192       # When given -MP, icc 7.0 and 7.1 complain thusly:
4193       #   icc: Command line warning: ignoring option '-M'; no argument required
4194       # The diagnosis changed in icc 8.0:
4195       #   icc: Command line remark: option '-MP' not supported
4196       if (grep 'ignoring option' conftest.err ||
4197           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4198         am_cv_CC_dependencies_compiler_type=$depmode
4199         break
4200       fi
4201     fi
4202   done
4203
4204   cd ..
4205   rm -rf conftest.dir
4206 else
4207   am_cv_CC_dependencies_compiler_type=none
4208 fi
4209
4210 fi
4211 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4214
4215  if
4216   test "x$enable_dependency_tracking" != xno \
4217   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4218   am__fastdepCC_TRUE=
4219   am__fastdepCC_FALSE='#'
4220 else
4221   am__fastdepCC_TRUE='#'
4222   am__fastdepCC_FALSE=
4223 fi
4224
4225
4226 case `pwd` in
4227   *\ * | *\     *)
4228     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4229 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4230 esac
4231
4232
4233
4234 macro_version='2.2.6b'
4235 macro_revision='1.3017'
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249 ltmain="$ac_aux_dir/ltmain.sh"
4250
4251 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4252 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4253 if test "${ac_cv_path_SED+set}" = set; then
4254   $as_echo_n "(cached) " >&6
4255 else
4256             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4257      for ac_i in 1 2 3 4 5 6 7; do
4258        ac_script="$ac_script$as_nl$ac_script"
4259      done
4260      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4261      $as_unset ac_script || ac_script=
4262      if test -z "$SED"; then
4263   ac_path_SED_found=false
4264   # Loop through the user's path and test for each of PROGNAME-LIST
4265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_prog in sed gsed; do
4271     for ac_exec_ext in '' $ac_executable_extensions; do
4272       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4273       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4274 # Check for GNU ac_path_SED and select it if it is found.
4275   # Check for GNU $ac_path_SED
4276 case `"$ac_path_SED" --version 2>&1` in
4277 *GNU*)
4278   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4279 *)
4280   ac_count=0
4281   $as_echo_n 0123456789 >"conftest.in"
4282   while :
4283   do
4284     cat "conftest.in" "conftest.in" >"conftest.tmp"
4285     mv "conftest.tmp" "conftest.in"
4286     cp "conftest.in" "conftest.nl"
4287     $as_echo '' >> "conftest.nl"
4288     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290     ac_count=`expr $ac_count + 1`
4291     if test $ac_count -gt ${ac_path_SED_max-0}; then
4292       # Best one so far, save it but keep looking for a better one
4293       ac_cv_path_SED="$ac_path_SED"
4294       ac_path_SED_max=$ac_count
4295     fi
4296     # 10*(2^10) chars as input seems more than enough
4297     test $ac_count -gt 10 && break
4298   done
4299   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300 esac
4301
4302       $ac_path_SED_found && break 3
4303     done
4304   done
4305 done
4306 IFS=$as_save_IFS
4307   if test -z "$ac_cv_path_SED"; then
4308     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4309 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4310    { (exit 1); exit 1; }; }
4311   fi
4312 else
4313   ac_cv_path_SED=$SED
4314 fi
4315
4316 fi
4317 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4318 $as_echo "$ac_cv_path_SED" >&6; }
4319  SED="$ac_cv_path_SED"
4320   rm -f conftest.sed
4321
4322 test -z "$SED" && SED=sed
4323 Xsed="$SED -e 1s/^X//"
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4336 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4337 if test "${ac_cv_path_GREP+set}" = set; then
4338   $as_echo_n "(cached) " >&6
4339 else
4340   if test -z "$GREP"; then
4341   ac_path_GREP_found=false
4342   # Loop through the user's path and test for each of PROGNAME-LIST
4343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348   for ac_prog in grep ggrep; do
4349     for ac_exec_ext in '' $ac_executable_extensions; do
4350       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4351       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4352 # Check for GNU ac_path_GREP and select it if it is found.
4353   # Check for GNU $ac_path_GREP
4354 case `"$ac_path_GREP" --version 2>&1` in
4355 *GNU*)
4356   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4357 *)
4358   ac_count=0
4359   $as_echo_n 0123456789 >"conftest.in"
4360   while :
4361   do
4362     cat "conftest.in" "conftest.in" >"conftest.tmp"
4363     mv "conftest.tmp" "conftest.in"
4364     cp "conftest.in" "conftest.nl"
4365     $as_echo 'GREP' >> "conftest.nl"
4366     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4367     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4368     ac_count=`expr $ac_count + 1`
4369     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4370       # Best one so far, save it but keep looking for a better one
4371       ac_cv_path_GREP="$ac_path_GREP"
4372       ac_path_GREP_max=$ac_count
4373     fi
4374     # 10*(2^10) chars as input seems more than enough
4375     test $ac_count -gt 10 && break
4376   done
4377   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378 esac
4379
4380       $ac_path_GREP_found && break 3
4381     done
4382   done
4383 done
4384 IFS=$as_save_IFS
4385   if test -z "$ac_cv_path_GREP"; then
4386     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4387 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4388    { (exit 1); exit 1; }; }
4389   fi
4390 else
4391   ac_cv_path_GREP=$GREP
4392 fi
4393
4394 fi
4395 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4396 $as_echo "$ac_cv_path_GREP" >&6; }
4397  GREP="$ac_cv_path_GREP"
4398
4399
4400 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4401 $as_echo_n "checking for egrep... " >&6; }
4402 if test "${ac_cv_path_EGREP+set}" = set; then
4403   $as_echo_n "(cached) " >&6
4404 else
4405   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4406    then ac_cv_path_EGREP="$GREP -E"
4407    else
4408      if test -z "$EGREP"; then
4409   ac_path_EGREP_found=false
4410   # Loop through the user's path and test for each of PROGNAME-LIST
4411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416   for ac_prog in egrep; do
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4419       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4420 # Check for GNU ac_path_EGREP and select it if it is found.
4421   # Check for GNU $ac_path_EGREP
4422 case `"$ac_path_EGREP" --version 2>&1` in
4423 *GNU*)
4424   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4425 *)
4426   ac_count=0
4427   $as_echo_n 0123456789 >"conftest.in"
4428   while :
4429   do
4430     cat "conftest.in" "conftest.in" >"conftest.tmp"
4431     mv "conftest.tmp" "conftest.in"
4432     cp "conftest.in" "conftest.nl"
4433     $as_echo 'EGREP' >> "conftest.nl"
4434     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436     ac_count=`expr $ac_count + 1`
4437     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4438       # Best one so far, save it but keep looking for a better one
4439       ac_cv_path_EGREP="$ac_path_EGREP"
4440       ac_path_EGREP_max=$ac_count
4441     fi
4442     # 10*(2^10) chars as input seems more than enough
4443     test $ac_count -gt 10 && break
4444   done
4445   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4446 esac
4447
4448       $ac_path_EGREP_found && break 3
4449     done
4450   done
4451 done
4452 IFS=$as_save_IFS
4453   if test -z "$ac_cv_path_EGREP"; then
4454     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4455 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4456    { (exit 1); exit 1; }; }
4457   fi
4458 else
4459   ac_cv_path_EGREP=$EGREP
4460 fi
4461
4462    fi
4463 fi
4464 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4465 $as_echo "$ac_cv_path_EGREP" >&6; }
4466  EGREP="$ac_cv_path_EGREP"
4467
4468
4469 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4470 $as_echo_n "checking for fgrep... " >&6; }
4471 if test "${ac_cv_path_FGREP+set}" = set; then
4472   $as_echo_n "(cached) " >&6
4473 else
4474   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4475    then ac_cv_path_FGREP="$GREP -F"
4476    else
4477      if test -z "$FGREP"; then
4478   ac_path_FGREP_found=false
4479   # Loop through the user's path and test for each of PROGNAME-LIST
4480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_prog in fgrep; do
4486     for ac_exec_ext in '' $ac_executable_extensions; do
4487       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4488       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4489 # Check for GNU ac_path_FGREP and select it if it is found.
4490   # Check for GNU $ac_path_FGREP
4491 case `"$ac_path_FGREP" --version 2>&1` in
4492 *GNU*)
4493   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4494 *)
4495   ac_count=0
4496   $as_echo_n 0123456789 >"conftest.in"
4497   while :
4498   do
4499     cat "conftest.in" "conftest.in" >"conftest.tmp"
4500     mv "conftest.tmp" "conftest.in"
4501     cp "conftest.in" "conftest.nl"
4502     $as_echo 'FGREP' >> "conftest.nl"
4503     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4504     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4505     ac_count=`expr $ac_count + 1`
4506     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4507       # Best one so far, save it but keep looking for a better one
4508       ac_cv_path_FGREP="$ac_path_FGREP"
4509       ac_path_FGREP_max=$ac_count
4510     fi
4511     # 10*(2^10) chars as input seems more than enough
4512     test $ac_count -gt 10 && break
4513   done
4514   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4515 esac
4516
4517       $ac_path_FGREP_found && break 3
4518     done
4519   done
4520 done
4521 IFS=$as_save_IFS
4522   if test -z "$ac_cv_path_FGREP"; then
4523     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4524 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4525    { (exit 1); exit 1; }; }
4526   fi
4527 else
4528   ac_cv_path_FGREP=$FGREP
4529 fi
4530
4531    fi
4532 fi
4533 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4534 $as_echo "$ac_cv_path_FGREP" >&6; }
4535  FGREP="$ac_cv_path_FGREP"
4536
4537
4538 test -z "$GREP" && GREP=grep
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558 # Check whether --with-gnu-ld was given.
4559 if test "${with_gnu_ld+set}" = set; then
4560   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4561 else
4562   with_gnu_ld=no
4563 fi
4564
4565 ac_prog=ld
4566 if test "$GCC" = yes; then
4567   # Check if gcc -print-prog-name=ld gives a path.
4568   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4569 $as_echo_n "checking for ld used by $CC... " >&6; }
4570   case $host in
4571   *-*-mingw*)
4572     # gcc leaves a trailing carriage return which upsets mingw
4573     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4574   *)
4575     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4576   esac
4577   case $ac_prog in
4578     # Accept absolute paths.
4579     [\\/]* | ?:[\\/]*)
4580       re_direlt='/[^/][^/]*/\.\./'
4581       # Canonicalize the pathname of ld
4582       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4583       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4584         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4585       done
4586       test -z "$LD" && LD="$ac_prog"
4587       ;;
4588   "")
4589     # If it fails, then pretend we aren't using GCC.
4590     ac_prog=ld
4591     ;;
4592   *)
4593     # If it is relative, then search for the first ld in PATH.
4594     with_gnu_ld=unknown
4595     ;;
4596   esac
4597 elif test "$with_gnu_ld" = yes; then
4598   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4599 $as_echo_n "checking for GNU ld... " >&6; }
4600 else
4601   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4602 $as_echo_n "checking for non-GNU ld... " >&6; }
4603 fi
4604 if test "${lt_cv_path_LD+set}" = set; then
4605   $as_echo_n "(cached) " >&6
4606 else
4607   if test -z "$LD"; then
4608   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4609   for ac_dir in $PATH; do
4610     IFS="$lt_save_ifs"
4611     test -z "$ac_dir" && ac_dir=.
4612     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4613       lt_cv_path_LD="$ac_dir/$ac_prog"
4614       # Check to see if the program is GNU ld.  I'd rather use --version,
4615       # but apparently some variants of GNU ld only accept -v.
4616       # Break only if it was the GNU/non-GNU ld that we prefer.
4617       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4618       *GNU* | *'with BFD'*)
4619         test "$with_gnu_ld" != no && break
4620         ;;
4621       *)
4622         test "$with_gnu_ld" != yes && break
4623         ;;
4624       esac
4625     fi
4626   done
4627   IFS="$lt_save_ifs"
4628 else
4629   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4630 fi
4631 fi
4632
4633 LD="$lt_cv_path_LD"
4634 if test -n "$LD"; then
4635   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4636 $as_echo "$LD" >&6; }
4637 else
4638   { $as_echo "$as_me:$LINENO: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4642 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4643    { (exit 1); exit 1; }; }
4644 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4645 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4646 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4647   $as_echo_n "(cached) " >&6
4648 else
4649   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4650 case `$LD -v 2>&1 </dev/null` in
4651 *GNU* | *'with BFD'*)
4652   lt_cv_prog_gnu_ld=yes
4653   ;;
4654 *)
4655   lt_cv_prog_gnu_ld=no
4656   ;;
4657 esac
4658 fi
4659 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4660 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4661 with_gnu_ld=$lt_cv_prog_gnu_ld
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4672 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4673 if test "${lt_cv_path_NM+set}" = set; then
4674   $as_echo_n "(cached) " >&6
4675 else
4676   if test -n "$NM"; then
4677   # Let the user override the test.
4678   lt_cv_path_NM="$NM"
4679 else
4680   lt_nm_to_check="${ac_tool_prefix}nm"
4681   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4682     lt_nm_to_check="$lt_nm_to_check nm"
4683   fi
4684   for lt_tmp_nm in $lt_nm_to_check; do
4685     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4686     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4687       IFS="$lt_save_ifs"
4688       test -z "$ac_dir" && ac_dir=.
4689       tmp_nm="$ac_dir/$lt_tmp_nm"
4690       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4691         # Check to see if the nm accepts a BSD-compat flag.
4692         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4693         #   nm: unknown option "B" ignored
4694         # Tru64's nm complains that /dev/null is an invalid object file
4695         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4696         */dev/null* | *'Invalid file or object type'*)
4697           lt_cv_path_NM="$tmp_nm -B"
4698           break
4699           ;;
4700         *)
4701           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4702           */dev/null*)
4703             lt_cv_path_NM="$tmp_nm -p"
4704             break
4705             ;;
4706           *)
4707             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4708             continue # so that we can try to find one that supports BSD flags
4709             ;;
4710           esac
4711           ;;
4712         esac
4713       fi
4714     done
4715     IFS="$lt_save_ifs"
4716   done
4717   : ${lt_cv_path_NM=no}
4718 fi
4719 fi
4720 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4721 $as_echo "$lt_cv_path_NM" >&6; }
4722 if test "$lt_cv_path_NM" != "no"; then
4723   NM="$lt_cv_path_NM"
4724 else
4725   # Didn't find any BSD compatible name lister, look for dumpbin.
4726   if test -n "$ac_tool_prefix"; then
4727   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4728   do
4729     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4734   $as_echo_n "(cached) " >&6
4735 else
4736   if test -n "$DUMPBIN"; then
4737   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744   for ac_exec_ext in '' $ac_executable_extensions; do
4745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 DUMPBIN=$ac_cv_prog_DUMPBIN
4757 if test -n "$DUMPBIN"; then
4758   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4759 $as_echo "$DUMPBIN" >&6; }
4760 else
4761   { $as_echo "$as_me:$LINENO: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764
4765
4766     test -n "$DUMPBIN" && break
4767   done
4768 fi
4769 if test -z "$DUMPBIN"; then
4770   ac_ct_DUMPBIN=$DUMPBIN
4771   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4772 do
4773   # Extract the first word of "$ac_prog", so it can be a program name with args.
4774 set dummy $ac_prog; ac_word=$2
4775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4778   $as_echo_n "(cached) " >&6
4779 else
4780   if test -n "$ac_ct_DUMPBIN"; then
4781   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4782 else
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH
4785 do
4786   IFS=$as_save_IFS
4787   test -z "$as_dir" && as_dir=.
4788   for ac_exec_ext in '' $ac_executable_extensions; do
4789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4791     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792     break 2
4793   fi
4794 done
4795 done
4796 IFS=$as_save_IFS
4797
4798 fi
4799 fi
4800 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4801 if test -n "$ac_ct_DUMPBIN"; then
4802   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4803 $as_echo "$ac_ct_DUMPBIN" >&6; }
4804 else
4805   { $as_echo "$as_me:$LINENO: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809
4810   test -n "$ac_ct_DUMPBIN" && break
4811 done
4812
4813   if test "x$ac_ct_DUMPBIN" = x; then
4814     DUMPBIN=":"
4815   else
4816     case $cross_compiling:$ac_tool_warned in
4817 yes:)
4818 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820 ac_tool_warned=yes ;;
4821 esac
4822     DUMPBIN=$ac_ct_DUMPBIN
4823   fi
4824 fi
4825
4826
4827   if test "$DUMPBIN" != ":"; then
4828     NM="$DUMPBIN"
4829   fi
4830 fi
4831 test -z "$NM" && NM=nm
4832
4833
4834
4835
4836
4837
4838 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4839 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4840 if test "${lt_cv_nm_interface+set}" = set; then
4841   $as_echo_n "(cached) " >&6
4842 else
4843   lt_cv_nm_interface="BSD nm"
4844   echo "int some_variable = 0;" > conftest.$ac_ext
4845   (eval echo "\"\$as_me:4845: $ac_compile\"" >&5)
4846   (eval "$ac_compile" 2>conftest.err)
4847   cat conftest.err >&5
4848   (eval echo "\"\$as_me:4848: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4849   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4850   cat conftest.err >&5
4851   (eval echo "\"\$as_me:4851: output\"" >&5)
4852   cat conftest.out >&5
4853   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4854     lt_cv_nm_interface="MS dumpbin"
4855   fi
4856   rm -f conftest*
4857 fi
4858 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4859 $as_echo "$lt_cv_nm_interface" >&6; }
4860
4861 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4862 $as_echo_n "checking whether ln -s works... " >&6; }
4863 LN_S=$as_ln_s
4864 if test "$LN_S" = "ln -s"; then
4865   { $as_echo "$as_me:$LINENO: result: yes" >&5
4866 $as_echo "yes" >&6; }
4867 else
4868   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4869 $as_echo "no, using $LN_S" >&6; }
4870 fi
4871
4872 # find the maximum length of command line arguments
4873 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4874 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4875 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4876   $as_echo_n "(cached) " >&6
4877 else
4878     i=0
4879   teststring="ABCD"
4880
4881   case $build_os in
4882   msdosdjgpp*)
4883     # On DJGPP, this test can blow up pretty badly due to problems in libc
4884     # (any single argument exceeding 2000 bytes causes a buffer overrun
4885     # during glob expansion).  Even if it were fixed, the result of this
4886     # check would be larger than it should be.
4887     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4888     ;;
4889
4890   gnu*)
4891     # Under GNU Hurd, this test is not required because there is
4892     # no limit to the length of command line arguments.
4893     # Libtool will interpret -1 as no limit whatsoever
4894     lt_cv_sys_max_cmd_len=-1;
4895     ;;
4896
4897   cygwin* | mingw* | cegcc*)
4898     # On Win9x/ME, this test blows up -- it succeeds, but takes
4899     # about 5 minutes as the teststring grows exponentially.
4900     # Worse, since 9x/ME are not pre-emptively multitasking,
4901     # you end up with a "frozen" computer, even though with patience
4902     # the test eventually succeeds (with a max line length of 256k).
4903     # Instead, let's just punt: use the minimum linelength reported by
4904     # all of the supported platforms: 8192 (on NT/2K/XP).
4905     lt_cv_sys_max_cmd_len=8192;
4906     ;;
4907
4908   amigaos*)
4909     # On AmigaOS with pdksh, this test takes hours, literally.
4910     # So we just punt and use a minimum line length of 8192.
4911     lt_cv_sys_max_cmd_len=8192;
4912     ;;
4913
4914   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4915     # This has been around since 386BSD, at least.  Likely further.
4916     if test -x /sbin/sysctl; then
4917       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4918     elif test -x /usr/sbin/sysctl; then
4919       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4920     else
4921       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4922     fi
4923     # And add a safety zone
4924     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4925     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4926     ;;
4927
4928   interix*)
4929     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4930     lt_cv_sys_max_cmd_len=196608
4931     ;;
4932
4933   osf*)
4934     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4935     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4936     # nice to cause kernel panics so lets avoid the loop below.
4937     # First set a reasonable default.
4938     lt_cv_sys_max_cmd_len=16384
4939     #
4940     if test -x /sbin/sysconfig; then
4941       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4942         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4943       esac
4944     fi
4945     ;;
4946   sco3.2v5*)
4947     lt_cv_sys_max_cmd_len=102400
4948     ;;
4949   sysv5* | sco5v6* | sysv4.2uw2*)
4950     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4951     if test -n "$kargmax"; then
4952       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4953     else
4954       lt_cv_sys_max_cmd_len=32768
4955     fi
4956     ;;
4957   *)
4958     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4959     if test -n "$lt_cv_sys_max_cmd_len"; then
4960       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4962     else
4963       # Make teststring a little bigger before we do anything with it.
4964       # a 1K string should be a reasonable start.
4965       for i in 1 2 3 4 5 6 7 8 ; do
4966         teststring=$teststring$teststring
4967       done
4968       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4969       # If test is not a shell built-in, we'll probably end up computing a
4970       # maximum length that is only half of the actual maximum length, but
4971       # we can't tell.
4972       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4973                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4974               test $i != 17 # 1/2 MB should be enough
4975       do
4976         i=`expr $i + 1`
4977         teststring=$teststring$teststring
4978       done
4979       # Only check the string length outside the loop.
4980       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4981       teststring=
4982       # Add a significant safety factor because C++ compilers can tack on
4983       # massive amounts of additional arguments before passing them to the
4984       # linker.  It appears as though 1/2 is a usable value.
4985       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4986     fi
4987     ;;
4988   esac
4989
4990 fi
4991
4992 if test -n $lt_cv_sys_max_cmd_len ; then
4993   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4994 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4995 else
4996   { $as_echo "$as_me:$LINENO: result: none" >&5
4997 $as_echo "none" >&6; }
4998 fi
4999 max_cmd_len=$lt_cv_sys_max_cmd_len
5000
5001
5002
5003
5004
5005
5006 : ${CP="cp -f"}
5007 : ${MV="mv -f"}
5008 : ${RM="rm -f"}
5009
5010 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5011 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5012 # Try some XSI features
5013 xsi_shell=no
5014 ( _lt_dummy="a/b/c"
5015   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5016       = c,a/b,, \
5017     && eval 'test $(( 1 + 1 )) -eq 2 \
5018     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5019   && xsi_shell=yes
5020 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5021 $as_echo "$xsi_shell" >&6; }
5022
5023
5024 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5025 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5026 lt_shell_append=no
5027 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5028     >/dev/null 2>&1 \
5029   && lt_shell_append=yes
5030 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5031 $as_echo "$lt_shell_append" >&6; }
5032
5033
5034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5035   lt_unset=unset
5036 else
5037   lt_unset=false
5038 fi
5039
5040
5041
5042
5043
5044 # test EBCDIC or ASCII
5045 case `echo X|tr X '\101'` in
5046  A) # ASCII based system
5047     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5048   lt_SP2NL='tr \040 \012'
5049   lt_NL2SP='tr \015\012 \040\040'
5050   ;;
5051  *) # EBCDIC based system
5052   lt_SP2NL='tr \100 \n'
5053   lt_NL2SP='tr \r\n \100\100'
5054   ;;
5055 esac
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5066 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5067 if test "${lt_cv_ld_reload_flag+set}" = set; then
5068   $as_echo_n "(cached) " >&6
5069 else
5070   lt_cv_ld_reload_flag='-r'
5071 fi
5072 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5073 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5074 reload_flag=$lt_cv_ld_reload_flag
5075 case $reload_flag in
5076 "" | " "*) ;;
5077 *) reload_flag=" $reload_flag" ;;
5078 esac
5079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5080 case $host_os in
5081   darwin*)
5082     if test "$GCC" = yes; then
5083       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5084     else
5085       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086     fi
5087     ;;
5088 esac
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 if test -n "$ac_tool_prefix"; then
5099   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5100 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5104   $as_echo_n "(cached) " >&6
5105 else
5106   if test -n "$OBJDUMP"; then
5107   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114   for ac_exec_ext in '' $ac_executable_extensions; do
5115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5117     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121 done
5122 IFS=$as_save_IFS
5123
5124 fi
5125 fi
5126 OBJDUMP=$ac_cv_prog_OBJDUMP
5127 if test -n "$OBJDUMP"; then
5128   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5129 $as_echo "$OBJDUMP" >&6; }
5130 else
5131   { $as_echo "$as_me:$LINENO: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134
5135
5136 fi
5137 if test -z "$ac_cv_prog_OBJDUMP"; then
5138   ac_ct_OBJDUMP=$OBJDUMP
5139   # Extract the first word of "objdump", so it can be a program name with args.
5140 set dummy objdump; ac_word=$2
5141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5144   $as_echo_n "(cached) " >&6
5145 else
5146   if test -n "$ac_ct_OBJDUMP"; then
5147   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154   for ac_exec_ext in '' $ac_executable_extensions; do
5155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5157     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158     break 2
5159   fi
5160 done
5161 done
5162 IFS=$as_save_IFS
5163
5164 fi
5165 fi
5166 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5167 if test -n "$ac_ct_OBJDUMP"; then
5168   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5169 $as_echo "$ac_ct_OBJDUMP" >&6; }
5170 else
5171   { $as_echo "$as_me:$LINENO: result: no" >&5
5172 $as_echo "no" >&6; }
5173 fi
5174
5175   if test "x$ac_ct_OBJDUMP" = x; then
5176     OBJDUMP="false"
5177   else
5178     case $cross_compiling:$ac_tool_warned in
5179 yes:)
5180 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182 ac_tool_warned=yes ;;
5183 esac
5184     OBJDUMP=$ac_ct_OBJDUMP
5185   fi
5186 else
5187   OBJDUMP="$ac_cv_prog_OBJDUMP"
5188 fi
5189
5190 test -z "$OBJDUMP" && OBJDUMP=objdump
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5201 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5202 if test "${lt_cv_deplibs_check_method+set}" = set; then
5203   $as_echo_n "(cached) " >&6
5204 else
5205   lt_cv_file_magic_cmd='$MAGIC_CMD'
5206 lt_cv_file_magic_test_file=
5207 lt_cv_deplibs_check_method='unknown'
5208 # Need to set the preceding variable on all platforms that support
5209 # interlibrary dependencies.
5210 # 'none' -- dependencies not supported.
5211 # `unknown' -- same as none, but documents that we really don't know.
5212 # 'pass_all' -- all dependencies passed with no checks.
5213 # 'test_compile' -- check by making test program.
5214 # 'file_magic [[regex]]' -- check by looking for files in library path
5215 # which responds to the $file_magic_cmd with a given extended regex.
5216 # If you have `file' or equivalent on your system and you're not sure
5217 # whether `pass_all' will *always* work, you probably want this one.
5218
5219 case $host_os in
5220 aix[4-9]*)
5221   lt_cv_deplibs_check_method=pass_all
5222   ;;
5223
5224 beos*)
5225   lt_cv_deplibs_check_method=pass_all
5226   ;;
5227
5228 bsdi[45]*)
5229   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5230   lt_cv_file_magic_cmd='/usr/bin/file -L'
5231   lt_cv_file_magic_test_file=/shlib/libc.so
5232   ;;
5233
5234 cygwin*)
5235   # func_win32_libid is a shell function defined in ltmain.sh
5236   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237   lt_cv_file_magic_cmd='func_win32_libid'
5238   ;;
5239
5240 mingw* | pw32*)
5241   # Base MSYS/MinGW do not provide the 'file' command needed by
5242   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5243   # unless we find 'file', for example because we are cross-compiling.
5244   if ( file / ) >/dev/null 2>&1; then
5245     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5246     lt_cv_file_magic_cmd='func_win32_libid'
5247   else
5248     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5249     lt_cv_file_magic_cmd='$OBJDUMP -f'
5250   fi
5251   ;;
5252
5253 cegcc)
5254   # use the weaker test based on 'objdump'. See mingw*.
5255   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5256   lt_cv_file_magic_cmd='$OBJDUMP -f'
5257   ;;
5258
5259 darwin* | rhapsody*)
5260   lt_cv_deplibs_check_method=pass_all
5261   ;;
5262
5263 freebsd* | dragonfly*)
5264   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5265     case $host_cpu in
5266     i*86 )
5267       # Not sure whether the presence of OpenBSD here was a mistake.
5268       # Let's accept both of them until this is cleared up.
5269       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5270       lt_cv_file_magic_cmd=/usr/bin/file
5271       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5272       ;;
5273     esac
5274   else
5275     lt_cv_deplibs_check_method=pass_all
5276   fi
5277   ;;
5278
5279 gnu*)
5280   lt_cv_deplibs_check_method=pass_all
5281   ;;
5282
5283 hpux10.20* | hpux11*)
5284   lt_cv_file_magic_cmd=/usr/bin/file
5285   case $host_cpu in
5286   ia64*)
5287     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5288     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5289     ;;
5290   hppa*64*)
5291     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]'
5292     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5293     ;;
5294   *)
5295     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5296     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5297     ;;
5298   esac
5299   ;;
5300
5301 interix[3-9]*)
5302   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5303   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5304   ;;
5305
5306 irix5* | irix6* | nonstopux*)
5307   case $LD in
5308   *-32|*"-32 ") libmagic=32-bit;;
5309   *-n32|*"-n32 ") libmagic=N32;;
5310   *-64|*"-64 ") libmagic=64-bit;;
5311   *) libmagic=never-match;;
5312   esac
5313   lt_cv_deplibs_check_method=pass_all
5314   ;;
5315
5316 # This must be Linux ELF.
5317 linux* | k*bsd*-gnu)
5318   lt_cv_deplibs_check_method=pass_all
5319   ;;
5320
5321 netbsd*)
5322   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5323     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5324   else
5325     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5326   fi
5327   ;;
5328
5329 newos6*)
5330   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5331   lt_cv_file_magic_cmd=/usr/bin/file
5332   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5333   ;;
5334
5335 *nto* | *qnx*)
5336   lt_cv_deplibs_check_method=pass_all
5337   ;;
5338
5339 openbsd*)
5340   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5341     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5342   else
5343     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5344   fi
5345   ;;
5346
5347 osf3* | osf4* | osf5*)
5348   lt_cv_deplibs_check_method=pass_all
5349   ;;
5350
5351 rdos*)
5352   lt_cv_deplibs_check_method=pass_all
5353   ;;
5354
5355 solaris*)
5356   lt_cv_deplibs_check_method=pass_all
5357   ;;
5358
5359 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5360   lt_cv_deplibs_check_method=pass_all
5361   ;;
5362
5363 sysv4 | sysv4.3*)
5364   case $host_vendor in
5365   motorola)
5366     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]'
5367     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5368     ;;
5369   ncr)
5370     lt_cv_deplibs_check_method=pass_all
5371     ;;
5372   sequent)
5373     lt_cv_file_magic_cmd='/bin/file'
5374     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5375     ;;
5376   sni)
5377     lt_cv_file_magic_cmd='/bin/file'
5378     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5379     lt_cv_file_magic_test_file=/lib/libc.so
5380     ;;
5381   siemens)
5382     lt_cv_deplibs_check_method=pass_all
5383     ;;
5384   pc)
5385     lt_cv_deplibs_check_method=pass_all
5386     ;;
5387   esac
5388   ;;
5389
5390 tpf*)
5391   lt_cv_deplibs_check_method=pass_all
5392   ;;
5393 esac
5394
5395 fi
5396 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5397 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5398 file_magic_cmd=$lt_cv_file_magic_cmd
5399 deplibs_check_method=$lt_cv_deplibs_check_method
5400 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 if test -n "$ac_tool_prefix"; then
5414   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5415 set dummy ${ac_tool_prefix}ar; ac_word=$2
5416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if test "${ac_cv_prog_AR+set}" = set; then
5419   $as_echo_n "(cached) " >&6
5420 else
5421   if test -n "$AR"; then
5422   ac_cv_prog_AR="$AR" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427   IFS=$as_save_IFS
5428   test -z "$as_dir" && as_dir=.
5429   for ac_exec_ext in '' $ac_executable_extensions; do
5430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5431     ac_cv_prog_AR="${ac_tool_prefix}ar"
5432     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433     break 2
5434   fi
5435 done
5436 done
5437 IFS=$as_save_IFS
5438
5439 fi
5440 fi
5441 AR=$ac_cv_prog_AR
5442 if test -n "$AR"; then
5443   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5444 $as_echo "$AR" >&6; }
5445 else
5446   { $as_echo "$as_me:$LINENO: result: no" >&5
5447 $as_echo "no" >&6; }
5448 fi
5449
5450
5451 fi
5452 if test -z "$ac_cv_prog_AR"; then
5453   ac_ct_AR=$AR
5454   # Extract the first word of "ar", so it can be a program name with args.
5455 set dummy ar; ac_word=$2
5456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5459   $as_echo_n "(cached) " >&6
5460 else
5461   if test -n "$ac_ct_AR"; then
5462   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467   IFS=$as_save_IFS
5468   test -z "$as_dir" && as_dir=.
5469   for ac_exec_ext in '' $ac_executable_extensions; do
5470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471     ac_cv_prog_ac_ct_AR="ar"
5472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473     break 2
5474   fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5482 if test -n "$ac_ct_AR"; then
5483   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5484 $as_echo "$ac_ct_AR" >&6; }
5485 else
5486   { $as_echo "$as_me:$LINENO: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490   if test "x$ac_ct_AR" = x; then
5491     AR="false"
5492   else
5493     case $cross_compiling:$ac_tool_warned in
5494 yes:)
5495 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5497 ac_tool_warned=yes ;;
5498 esac
5499     AR=$ac_ct_AR
5500   fi
5501 else
5502   AR="$ac_cv_prog_AR"
5503 fi
5504
5505 test -z "$AR" && AR=ar
5506 test -z "$AR_FLAGS" && AR_FLAGS=cru
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 if test -n "$ac_tool_prefix"; then
5519   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}strip; ac_word=$2
5521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_STRIP+set}" = set; then
5524   $as_echo_n "(cached) " >&6
5525 else
5526   if test -n "$STRIP"; then
5527   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534   for ac_exec_ext in '' $ac_executable_extensions; do
5535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5537     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541 done
5542 IFS=$as_save_IFS
5543
5544 fi
5545 fi
5546 STRIP=$ac_cv_prog_STRIP
5547 if test -n "$STRIP"; then
5548   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5549 $as_echo "$STRIP" >&6; }
5550 else
5551   { $as_echo "$as_me:$LINENO: result: no" >&5
5552 $as_echo "no" >&6; }
5553 fi
5554
5555
5556 fi
5557 if test -z "$ac_cv_prog_STRIP"; then
5558   ac_ct_STRIP=$STRIP
5559   # Extract the first word of "strip", so it can be a program name with args.
5560 set dummy strip; ac_word=$2
5561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5564   $as_echo_n "(cached) " >&6
5565 else
5566   if test -n "$ac_ct_STRIP"; then
5567   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572   IFS=$as_save_IFS
5573   test -z "$as_dir" && as_dir=.
5574   for ac_exec_ext in '' $ac_executable_extensions; do
5575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576     ac_cv_prog_ac_ct_STRIP="strip"
5577     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578     break 2
5579   fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5587 if test -n "$ac_ct_STRIP"; then
5588   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5589 $as_echo "$ac_ct_STRIP" >&6; }
5590 else
5591   { $as_echo "$as_me:$LINENO: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595   if test "x$ac_ct_STRIP" = x; then
5596     STRIP=":"
5597   else
5598     case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602 ac_tool_warned=yes ;;
5603 esac
5604     STRIP=$ac_ct_STRIP
5605   fi
5606 else
5607   STRIP="$ac_cv_prog_STRIP"
5608 fi
5609
5610 test -z "$STRIP" && STRIP=:
5611
5612
5613
5614
5615
5616
5617 if test -n "$ac_tool_prefix"; then
5618   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_RANLIB+set}" = set; then
5623   $as_echo_n "(cached) " >&6
5624 else
5625   if test -n "$RANLIB"; then
5626   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633   for ac_exec_ext in '' $ac_executable_extensions; do
5634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5636     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 RANLIB=$ac_cv_prog_RANLIB
5646 if test -n "$RANLIB"; then
5647   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5648 $as_echo "$RANLIB" >&6; }
5649 else
5650   { $as_echo "$as_me:$LINENO: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654
5655 fi
5656 if test -z "$ac_cv_prog_RANLIB"; then
5657   ac_ct_RANLIB=$RANLIB
5658   # Extract the first word of "ranlib", so it can be a program name with args.
5659 set dummy ranlib; ac_word=$2
5660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5663   $as_echo_n "(cached) " >&6
5664 else
5665   if test -n "$ac_ct_RANLIB"; then
5666   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673   for ac_exec_ext in '' $ac_executable_extensions; do
5674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675     ac_cv_prog_ac_ct_RANLIB="ranlib"
5676     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5686 if test -n "$ac_ct_RANLIB"; then
5687   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5688 $as_echo "$ac_ct_RANLIB" >&6; }
5689 else
5690   { $as_echo "$as_me:$LINENO: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694   if test "x$ac_ct_RANLIB" = x; then
5695     RANLIB=":"
5696   else
5697     case $cross_compiling:$ac_tool_warned in
5698 yes:)
5699 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5702 esac
5703     RANLIB=$ac_ct_RANLIB
5704   fi
5705 else
5706   RANLIB="$ac_cv_prog_RANLIB"
5707 fi
5708
5709 test -z "$RANLIB" && RANLIB=:
5710
5711
5712
5713
5714
5715
5716 # Determine commands to create old-style static archives.
5717 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5718 old_postinstall_cmds='chmod 644 $oldlib'
5719 old_postuninstall_cmds=
5720
5721 if test -n "$RANLIB"; then
5722   case $host_os in
5723   openbsd*)
5724     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5725     ;;
5726   *)
5727     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5728     ;;
5729   esac
5730   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5731 fi
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
5764
5765
5766 # If no C compiler was specified, use CC.
5767 LTCC=${LTCC-"$CC"}
5768
5769 # If no C compiler flags were specified, use CFLAGS.
5770 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5771
5772 # Allow CC to be a program name with arguments.
5773 compiler=$CC
5774
5775
5776 # Check for command to grab the raw symbol name followed by C symbol from nm.
5777 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5778 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5779 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5780   $as_echo_n "(cached) " >&6
5781 else
5782
5783 # These are sane defaults that work on at least a few old systems.
5784 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5785
5786 # Character class describing NM global symbol codes.
5787 symcode='[BCDEGRST]'
5788
5789 # Regexp to match symbols that can be accessed directly from C.
5790 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5791
5792 # Define system-specific variables.
5793 case $host_os in
5794 aix*)
5795   symcode='[BCDT]'
5796   ;;
5797 cygwin* | mingw* | pw32* | cegcc*)
5798   symcode='[ABCDGISTW]'
5799   ;;
5800 hpux*)
5801   if test "$host_cpu" = ia64; then
5802     symcode='[ABCDEGRST]'
5803   fi
5804   ;;
5805 irix* | nonstopux*)
5806   symcode='[BCDEGRST]'
5807   ;;
5808 osf*)
5809   symcode='[BCDEGQRST]'
5810   ;;
5811 solaris*)
5812   symcode='[BDRT]'
5813   ;;
5814 sco3.2v5*)
5815   symcode='[DT]'
5816   ;;
5817 sysv4.2uw2*)
5818   symcode='[DT]'
5819   ;;
5820 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5821   symcode='[ABDT]'
5822   ;;
5823 sysv4)
5824   symcode='[DFNSTU]'
5825   ;;
5826 esac
5827
5828 # If we're using GNU nm, then use its standard symbol codes.
5829 case `$NM -V 2>&1` in
5830 *GNU* | *'with BFD'*)
5831   symcode='[ABCDGIRSTW]' ;;
5832 esac
5833
5834 # Transform an extracted symbol line into a proper C declaration.
5835 # Some systems (esp. on ia64) link data and code symbols differently,
5836 # so use this general approach.
5837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5838
5839 # Transform an extracted symbol line into symbol name and symbol address
5840 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5841 lt_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'"
5842
5843 # Handle CRLF in mingw tool chain
5844 opt_cr=
5845 case $build_os in
5846 mingw*)
5847   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5848   ;;
5849 esac
5850
5851 # Try without a prefix underscore, then with it.
5852 for ac_symprfx in "" "_"; do
5853
5854   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5855   symxfrm="\\1 $ac_symprfx\\2 \\2"
5856
5857   # Write the raw and C identifiers.
5858   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5859     # Fake it for dumpbin and say T for any non-static function
5860     # and D for any global variable.
5861     # Also find C++ and __fastcall symbols from MSVC++,
5862     # which start with @ or ?.
5863     lt_cv_sys_global_symbol_pipe="$AWK '"\
5864 "     {last_section=section; section=\$ 3};"\
5865 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5866 "     \$ 0!~/External *\|/{next};"\
5867 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5868 "     {if(hide[section]) next};"\
5869 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5870 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5871 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5872 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5873 "     ' prfx=^$ac_symprfx"
5874   else
5875     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5876   fi
5877
5878   # Check to see that the pipe works correctly.
5879   pipe_works=no
5880
5881   rm -f conftest*
5882   cat > conftest.$ac_ext <<_LT_EOF
5883 #ifdef __cplusplus
5884 extern "C" {
5885 #endif
5886 char nm_test_var;
5887 void nm_test_func(void);
5888 void nm_test_func(void){}
5889 #ifdef __cplusplus
5890 }
5891 #endif
5892 int main(){nm_test_var='a';nm_test_func();return(0);}
5893 _LT_EOF
5894
5895   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896   (eval $ac_compile) 2>&5
5897   ac_status=$?
5898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899   (exit $ac_status); }; then
5900     # Now try to grab the symbols.
5901     nlist=conftest.nm
5902     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5903   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5904   ac_status=$?
5905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); } && test -s "$nlist"; then
5907       # Try sorting and uniquifying the output.
5908       if sort "$nlist" | uniq > "$nlist"T; then
5909         mv -f "$nlist"T "$nlist"
5910       else
5911         rm -f "$nlist"T
5912       fi
5913
5914       # Make sure that we snagged all the symbols we need.
5915       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5916         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5917           cat <<_LT_EOF > conftest.$ac_ext
5918 #ifdef __cplusplus
5919 extern "C" {
5920 #endif
5921
5922 _LT_EOF
5923           # Now generate the symbol file.
5924           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5925
5926           cat <<_LT_EOF >> conftest.$ac_ext
5927
5928 /* The mapping between symbol names and symbols.  */
5929 const struct {
5930   const char *name;
5931   void       *address;
5932 }
5933 lt__PROGRAM__LTX_preloaded_symbols[] =
5934 {
5935   { "@PROGRAM@", (void *) 0 },
5936 _LT_EOF
5937           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5938           cat <<\_LT_EOF >> conftest.$ac_ext
5939   {0, (void *) 0}
5940 };
5941
5942 /* This works around a problem in FreeBSD linker */
5943 #ifdef FREEBSD_WORKAROUND
5944 static const void *lt_preloaded_setup() {
5945   return lt__PROGRAM__LTX_preloaded_symbols;
5946 }
5947 #endif
5948
5949 #ifdef __cplusplus
5950 }
5951 #endif
5952 _LT_EOF
5953           # Now try linking the two files.
5954           mv conftest.$ac_objext conftstm.$ac_objext
5955           lt_save_LIBS="$LIBS"
5956           lt_save_CFLAGS="$CFLAGS"
5957           LIBS="conftstm.$ac_objext"
5958           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5959           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5960   (eval $ac_link) 2>&5
5961   ac_status=$?
5962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5964             pipe_works=yes
5965           fi
5966           LIBS="$lt_save_LIBS"
5967           CFLAGS="$lt_save_CFLAGS"
5968         else
5969           echo "cannot find nm_test_func in $nlist" >&5
5970         fi
5971       else
5972         echo "cannot find nm_test_var in $nlist" >&5
5973       fi
5974     else
5975       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5976     fi
5977   else
5978     echo "$progname: failed program was:" >&5
5979     cat conftest.$ac_ext >&5
5980   fi
5981   rm -rf conftest* conftst*
5982
5983   # Do not use the global_symbol_pipe unless it works.
5984   if test "$pipe_works" = yes; then
5985     break
5986   else
5987     lt_cv_sys_global_symbol_pipe=
5988   fi
5989 done
5990
5991 fi
5992
5993 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5994   lt_cv_sys_global_symbol_to_cdecl=
5995 fi
5996 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5997   { $as_echo "$as_me:$LINENO: result: failed" >&5
5998 $as_echo "failed" >&6; }
5999 else
6000   { $as_echo "$as_me:$LINENO: result: ok" >&5
6001 $as_echo "ok" >&6; }
6002 fi
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026 # Check whether --enable-libtool-lock was given.
6027 if test "${enable_libtool_lock+set}" = set; then
6028   enableval=$enable_libtool_lock;
6029 fi
6030
6031 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6032
6033 # Some flags need to be propagated to the compiler or linker for good
6034 # libtool support.
6035 case $host in
6036 ia64-*-hpux*)
6037   # Find out which ABI we are using.
6038   echo 'int i;' > conftest.$ac_ext
6039   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040   (eval $ac_compile) 2>&5
6041   ac_status=$?
6042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; then
6044     case `/usr/bin/file conftest.$ac_objext` in
6045       *ELF-32*)
6046         HPUX_IA64_MODE="32"
6047         ;;
6048       *ELF-64*)
6049         HPUX_IA64_MODE="64"
6050         ;;
6051     esac
6052   fi
6053   rm -rf conftest*
6054   ;;
6055 *-*-irix6*)
6056   # Find out which ABI we are using.
6057   echo '#line 6057 "configure"' > conftest.$ac_ext
6058   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059   (eval $ac_compile) 2>&5
6060   ac_status=$?
6061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; then
6063     if test "$lt_cv_prog_gnu_ld" = yes; then
6064       case `/usr/bin/file conftest.$ac_objext` in
6065         *32-bit*)
6066           LD="${LD-ld} -melf32bsmip"
6067           ;;
6068         *N32*)
6069           LD="${LD-ld} -melf32bmipn32"
6070           ;;
6071         *64-bit*)
6072           LD="${LD-ld} -melf64bmip"
6073         ;;
6074       esac
6075     else
6076       case `/usr/bin/file conftest.$ac_objext` in
6077         *32-bit*)
6078           LD="${LD-ld} -32"
6079           ;;
6080         *N32*)
6081           LD="${LD-ld} -n32"
6082           ;;
6083         *64-bit*)
6084           LD="${LD-ld} -64"
6085           ;;
6086       esac
6087     fi
6088   fi
6089   rm -rf conftest*
6090   ;;
6091
6092 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6093 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6094   # Find out which ABI we are using.
6095   echo 'int i;' > conftest.$ac_ext
6096   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097   (eval $ac_compile) 2>&5
6098   ac_status=$?
6099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; then
6101     case `/usr/bin/file conftest.o` in
6102       *32-bit*)
6103         case $host in
6104           x86_64-*kfreebsd*-gnu)
6105             LD="${LD-ld} -m elf_i386_fbsd"
6106             ;;
6107           x86_64-*linux*)
6108             LD="${LD-ld} -m elf_i386"
6109             ;;
6110           ppc64-*linux*|powerpc64-*linux*)
6111             LD="${LD-ld} -m elf32ppclinux"
6112             ;;
6113           s390x-*linux*)
6114             LD="${LD-ld} -m elf_s390"
6115             ;;
6116           sparc64-*linux*)
6117             LD="${LD-ld} -m elf32_sparc"
6118             ;;
6119         esac
6120         ;;
6121       *64-bit*)
6122         case $host in
6123           x86_64-*kfreebsd*-gnu)
6124             LD="${LD-ld} -m elf_x86_64_fbsd"
6125             ;;
6126           x86_64-*linux*)
6127             LD="${LD-ld} -m elf_x86_64"
6128             ;;
6129           ppc*-*linux*|powerpc*-*linux*)
6130             LD="${LD-ld} -m elf64ppc"
6131             ;;
6132           s390*-*linux*|s390*-*tpf*)
6133             LD="${LD-ld} -m elf64_s390"
6134             ;;
6135           sparc*-*linux*)
6136             LD="${LD-ld} -m elf64_sparc"
6137             ;;
6138         esac
6139         ;;
6140     esac
6141   fi
6142   rm -rf conftest*
6143   ;;
6144
6145 *-*-sco3.2v5*)
6146   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6147   SAVE_CFLAGS="$CFLAGS"
6148   CFLAGS="$CFLAGS -belf"
6149   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6150 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6151 if test "${lt_cv_cc_needs_belf+set}" = set; then
6152   $as_echo_n "(cached) " >&6
6153 else
6154   ac_ext=c
6155 ac_cpp='$CPP $CPPFLAGS'
6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6159
6160      cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h.  */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h.  */
6166
6167 int
6168 main ()
6169 {
6170
6171   ;
6172   return 0;
6173 }
6174 _ACEOF
6175 rm -f conftest.$ac_objext conftest$ac_exeext
6176 if { (ac_try="$ac_link"
6177 case "(($ac_try" in
6178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179   *) ac_try_echo=$ac_try;;
6180 esac
6181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6182 $as_echo "$ac_try_echo") >&5
6183   (eval "$ac_link") 2>conftest.er1
6184   ac_status=$?
6185   grep -v '^ *+' conftest.er1 >conftest.err
6186   rm -f conftest.er1
6187   cat conftest.err >&5
6188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } && {
6190          test -z "$ac_c_werror_flag" ||
6191          test ! -s conftest.err
6192        } && test -s conftest$ac_exeext && {
6193          test "$cross_compiling" = yes ||
6194          $as_test_x conftest$ac_exeext
6195        }; then
6196   lt_cv_cc_needs_belf=yes
6197 else
6198   $as_echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201         lt_cv_cc_needs_belf=no
6202 fi
6203
6204 rm -rf conftest.dSYM
6205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6206       conftest$ac_exeext conftest.$ac_ext
6207      ac_ext=c
6208 ac_cpp='$CPP $CPPFLAGS'
6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212
6213 fi
6214 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6215 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6216   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6217     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6218     CFLAGS="$SAVE_CFLAGS"
6219   fi
6220   ;;
6221 sparc*-*solaris*)
6222   # Find out which ABI we are using.
6223   echo 'int i;' > conftest.$ac_ext
6224   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225   (eval $ac_compile) 2>&5
6226   ac_status=$?
6227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228   (exit $ac_status); }; then
6229     case `/usr/bin/file conftest.o` in
6230     *64-bit*)
6231       case $lt_cv_prog_gnu_ld in
6232       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6233       *)
6234         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6235           LD="${LD-ld} -64"
6236         fi
6237         ;;
6238       esac
6239       ;;
6240     esac
6241   fi
6242   rm -rf conftest*
6243   ;;
6244 esac
6245
6246 need_locks="$enable_libtool_lock"
6247
6248
6249   case $host_os in
6250     rhapsody* | darwin*)
6251     if test -n "$ac_tool_prefix"; then
6252   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6257   $as_echo_n "(cached) " >&6
6258 else
6259   if test -n "$DSYMUTIL"; then
6260   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267   for ac_exec_ext in '' $ac_executable_extensions; do
6268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6270     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6280 if test -n "$DSYMUTIL"; then
6281   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6282 $as_echo "$DSYMUTIL" >&6; }
6283 else
6284   { $as_echo "$as_me:$LINENO: result: no" >&5
6285 $as_echo "no" >&6; }
6286 fi
6287
6288
6289 fi
6290 if test -z "$ac_cv_prog_DSYMUTIL"; then
6291   ac_ct_DSYMUTIL=$DSYMUTIL
6292   # Extract the first word of "dsymutil", so it can be a program name with args.
6293 set dummy dsymutil; ac_word=$2
6294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6297   $as_echo_n "(cached) " >&6
6298 else
6299   if test -n "$ac_ct_DSYMUTIL"; then
6300   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305   IFS=$as_save_IFS
6306   test -z "$as_dir" && as_dir=.
6307   for ac_exec_ext in '' $ac_executable_extensions; do
6308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6310     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6311     break 2
6312   fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6320 if test -n "$ac_ct_DSYMUTIL"; then
6321   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6322 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6323 else
6324   { $as_echo "$as_me:$LINENO: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327
6328   if test "x$ac_ct_DSYMUTIL" = x; then
6329     DSYMUTIL=":"
6330   else
6331     case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337     DSYMUTIL=$ac_ct_DSYMUTIL
6338   fi
6339 else
6340   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6341 fi
6342
6343     if test -n "$ac_tool_prefix"; then
6344   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6346 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$NMEDIT"; then
6352   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6362     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 NMEDIT=$ac_cv_prog_NMEDIT
6372 if test -n "$NMEDIT"; then
6373   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6374 $as_echo "$NMEDIT" >&6; }
6375 else
6376   { $as_echo "$as_me:$LINENO: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 fi
6382 if test -z "$ac_cv_prog_NMEDIT"; then
6383   ac_ct_NMEDIT=$NMEDIT
6384   # Extract the first word of "nmedit", so it can be a program name with args.
6385 set dummy nmedit; ac_word=$2
6386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6389   $as_echo_n "(cached) " >&6
6390 else
6391   if test -n "$ac_ct_NMEDIT"; then
6392   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399   for ac_exec_ext in '' $ac_executable_extensions; do
6400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6402     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6412 if test -n "$ac_ct_NMEDIT"; then
6413   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6414 $as_echo "$ac_ct_NMEDIT" >&6; }
6415 else
6416   { $as_echo "$as_me:$LINENO: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420   if test "x$ac_ct_NMEDIT" = x; then
6421     NMEDIT=":"
6422   else
6423     case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429     NMEDIT=$ac_ct_NMEDIT
6430   fi
6431 else
6432   NMEDIT="$ac_cv_prog_NMEDIT"
6433 fi
6434
6435     if test -n "$ac_tool_prefix"; then
6436   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_LIPO+set}" = set; then
6441   $as_echo_n "(cached) " >&6
6442 else
6443   if test -n "$LIPO"; then
6444   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451   for ac_exec_ext in '' $ac_executable_extensions; do
6452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6454     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 LIPO=$ac_cv_prog_LIPO
6464 if test -n "$LIPO"; then
6465   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6466 $as_echo "$LIPO" >&6; }
6467 else
6468   { $as_echo "$as_me:$LINENO: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_LIPO"; then
6475   ac_ct_LIPO=$LIPO
6476   # Extract the first word of "lipo", so it can be a program name with args.
6477 set dummy lipo; ac_word=$2
6478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6481   $as_echo_n "(cached) " >&6
6482 else
6483   if test -n "$ac_ct_LIPO"; then
6484   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491   for ac_exec_ext in '' $ac_executable_extensions; do
6492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493     ac_cv_prog_ac_ct_LIPO="lipo"
6494     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6504 if test -n "$ac_ct_LIPO"; then
6505   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6506 $as_echo "$ac_ct_LIPO" >&6; }
6507 else
6508   { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512   if test "x$ac_ct_LIPO" = x; then
6513     LIPO=":"
6514   else
6515     case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521     LIPO=$ac_ct_LIPO
6522   fi
6523 else
6524   LIPO="$ac_cv_prog_LIPO"
6525 fi
6526
6527     if test -n "$ac_tool_prefix"; then
6528   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}otool; ac_word=$2
6530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_OTOOL+set}" = set; then
6533   $as_echo_n "(cached) " >&6
6534 else
6535   if test -n "$OTOOL"; then
6536   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543   for ac_exec_ext in '' $ac_executable_extensions; do
6544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6546     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 OTOOL=$ac_cv_prog_OTOOL
6556 if test -n "$OTOOL"; then
6557   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6558 $as_echo "$OTOOL" >&6; }
6559 else
6560   { $as_echo "$as_me:$LINENO: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564
6565 fi
6566 if test -z "$ac_cv_prog_OTOOL"; then
6567   ac_ct_OTOOL=$OTOOL
6568   # Extract the first word of "otool", so it can be a program name with args.
6569 set dummy otool; ac_word=$2
6570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6573   $as_echo_n "(cached) " >&6
6574 else
6575   if test -n "$ac_ct_OTOOL"; then
6576   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581   IFS=$as_save_IFS
6582   test -z "$as_dir" && as_dir=.
6583   for ac_exec_ext in '' $ac_executable_extensions; do
6584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585     ac_cv_prog_ac_ct_OTOOL="otool"
6586     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6587     break 2
6588   fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6596 if test -n "$ac_ct_OTOOL"; then
6597   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6598 $as_echo "$ac_ct_OTOOL" >&6; }
6599 else
6600   { $as_echo "$as_me:$LINENO: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604   if test "x$ac_ct_OTOOL" = x; then
6605     OTOOL=":"
6606   else
6607     case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613     OTOOL=$ac_ct_OTOOL
6614   fi
6615 else
6616   OTOOL="$ac_cv_prog_OTOOL"
6617 fi
6618
6619     if test -n "$ac_tool_prefix"; then
6620   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6622 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6625   $as_echo_n "(cached) " >&6
6626 else
6627   if test -n "$OTOOL64"; then
6628   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6638     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 OTOOL64=$ac_cv_prog_OTOOL64
6648 if test -n "$OTOOL64"; then
6649   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6650 $as_echo "$OTOOL64" >&6; }
6651 else
6652   { $as_echo "$as_me:$LINENO: result: no" >&5
6653 $as_echo "no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_OTOOL64"; then
6659   ac_ct_OTOOL64=$OTOOL64
6660   # Extract the first word of "otool64", so it can be a program name with args.
6661 set dummy otool64; ac_word=$2
6662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6665   $as_echo_n "(cached) " >&6
6666 else
6667   if test -n "$ac_ct_OTOOL64"; then
6668   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_prog_ac_ct_OTOOL64="otool64"
6678     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6688 if test -n "$ac_ct_OTOOL64"; then
6689   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6690 $as_echo "$ac_ct_OTOOL64" >&6; }
6691 else
6692   { $as_echo "$as_me:$LINENO: result: no" >&5
6693 $as_echo "no" >&6; }
6694 fi
6695
6696   if test "x$ac_ct_OTOOL64" = x; then
6697     OTOOL64=":"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703 ac_tool_warned=yes ;;
6704 esac
6705     OTOOL64=$ac_ct_OTOOL64
6706   fi
6707 else
6708   OTOOL64="$ac_cv_prog_OTOOL64"
6709 fi
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
6735
6736
6737     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6738 $as_echo_n "checking for -single_module linker flag... " >&6; }
6739 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6740   $as_echo_n "(cached) " >&6
6741 else
6742   lt_cv_apple_cc_single_mod=no
6743       if test -z "${LT_MULTI_MODULE}"; then
6744         # By default we will add the -single_module flag. You can override
6745         # by either setting the environment variable LT_MULTI_MODULE
6746         # non-empty at configure time, or by adding -multi_module to the
6747         # link flags.
6748         rm -rf libconftest.dylib*
6749         echo "int foo(void){return 1;}" > conftest.c
6750         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6751 -dynamiclib -Wl,-single_module conftest.c" >&5
6752         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6754         _lt_result=$?
6755         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6756           lt_cv_apple_cc_single_mod=yes
6757         else
6758           cat conftest.err >&5
6759         fi
6760         rm -rf libconftest.dylib*
6761         rm -f conftest.*
6762       fi
6763 fi
6764 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6765 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6766     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6767 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6768 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6769   $as_echo_n "(cached) " >&6
6770 else
6771   lt_cv_ld_exported_symbols_list=no
6772       save_LDFLAGS=$LDFLAGS
6773       echo "_main" > conftest.sym
6774       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6775       cat >conftest.$ac_ext <<_ACEOF
6776 /* confdefs.h.  */
6777 _ACEOF
6778 cat confdefs.h >>conftest.$ac_ext
6779 cat >>conftest.$ac_ext <<_ACEOF
6780 /* end confdefs.h.  */
6781
6782 int
6783 main ()
6784 {
6785
6786   ;
6787   return 0;
6788 }
6789 _ACEOF
6790 rm -f conftest.$ac_objext conftest$ac_exeext
6791 if { (ac_try="$ac_link"
6792 case "(($ac_try" in
6793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794   *) ac_try_echo=$ac_try;;
6795 esac
6796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6797 $as_echo "$ac_try_echo") >&5
6798   (eval "$ac_link") 2>conftest.er1
6799   ac_status=$?
6800   grep -v '^ *+' conftest.er1 >conftest.err
6801   rm -f conftest.er1
6802   cat conftest.err >&5
6803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); } && {
6805          test -z "$ac_c_werror_flag" ||
6806          test ! -s conftest.err
6807        } && test -s conftest$ac_exeext && {
6808          test "$cross_compiling" = yes ||
6809          $as_test_x conftest$ac_exeext
6810        }; then
6811   lt_cv_ld_exported_symbols_list=yes
6812 else
6813   $as_echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816         lt_cv_ld_exported_symbols_list=no
6817 fi
6818
6819 rm -rf conftest.dSYM
6820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6821       conftest$ac_exeext conftest.$ac_ext
6822         LDFLAGS="$save_LDFLAGS"
6823
6824 fi
6825 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6826 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6827     case $host_os in
6828     rhapsody* | darwin1.[012])
6829       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6830     darwin1.*)
6831       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6832     darwin*) # darwin 5.x on
6833       # if running on 10.5 or later, the deployment target defaults
6834       # to the OS version, if on x86, and 10.4, the deployment
6835       # target defaults to 10.4. Don't you love it?
6836       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6837         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6838           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6839         10.[012]*)
6840           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6841         10.*)
6842           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6843       esac
6844     ;;
6845   esac
6846     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6847       _lt_dar_single_mod='$single_module'
6848     fi
6849     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6850       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6851     else
6852       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6853     fi
6854     if test "$DSYMUTIL" != ":"; then
6855       _lt_dsymutil='~$DSYMUTIL $lib || :'
6856     else
6857       _lt_dsymutil=
6858     fi
6859     ;;
6860   esac
6861
6862 ac_ext=c
6863 ac_cpp='$CPP $CPPFLAGS'
6864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6868 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6869 # On Suns, sometimes $CPP names a directory.
6870 if test -n "$CPP" && test -d "$CPP"; then
6871   CPP=
6872 fi
6873 if test -z "$CPP"; then
6874   if test "${ac_cv_prog_CPP+set}" = set; then
6875   $as_echo_n "(cached) " >&6
6876 else
6877       # Double quotes because CPP needs to be expanded
6878     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6879     do
6880       ac_preproc_ok=false
6881 for ac_c_preproc_warn_flag in '' yes
6882 do
6883   # Use a header file that comes with gcc, so configuring glibc
6884   # with a fresh cross-compiler works.
6885   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6886   # <limits.h> exists even on freestanding compilers.
6887   # On the NeXT, cc -E runs the code through the compiler's parser,
6888   # not just through cpp. "Syntax error" is here to catch this case.
6889   cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h.  */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h.  */
6895 #ifdef __STDC__
6896 # include <limits.h>
6897 #else
6898 # include <assert.h>
6899 #endif
6900                      Syntax error
6901 _ACEOF
6902 if { (ac_try="$ac_cpp conftest.$ac_ext"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6908 $as_echo "$ac_try_echo") >&5
6909   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6910   ac_status=$?
6911   grep -v '^ *+' conftest.er1 >conftest.err
6912   rm -f conftest.er1
6913   cat conftest.err >&5
6914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } >/dev/null && {
6916          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6917          test ! -s conftest.err
6918        }; then
6919   :
6920 else
6921   $as_echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924   # Broken: fails on valid input.
6925 continue
6926 fi
6927
6928 rm -f conftest.err conftest.$ac_ext
6929
6930   # OK, works on sane cases.  Now check whether nonexistent headers
6931   # can be detected and how.
6932   cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h.  */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h.  */
6938 #include <ac_nonexistent.h>
6939 _ACEOF
6940 if { (ac_try="$ac_cpp conftest.$ac_ext"
6941 case "(($ac_try" in
6942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6943   *) ac_try_echo=$ac_try;;
6944 esac
6945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6946 $as_echo "$ac_try_echo") >&5
6947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6948   ac_status=$?
6949   grep -v '^ *+' conftest.er1 >conftest.err
6950   rm -f conftest.er1
6951   cat conftest.err >&5
6952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } >/dev/null && {
6954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6955          test ! -s conftest.err
6956        }; then
6957   # Broken: success on invalid input.
6958 continue
6959 else
6960   $as_echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963   # Passes both tests.
6964 ac_preproc_ok=:
6965 break
6966 fi
6967
6968 rm -f conftest.err conftest.$ac_ext
6969
6970 done
6971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6972 rm -f conftest.err conftest.$ac_ext
6973 if $ac_preproc_ok; then
6974   break
6975 fi
6976
6977     done
6978     ac_cv_prog_CPP=$CPP
6979
6980 fi
6981   CPP=$ac_cv_prog_CPP
6982 else
6983   ac_cv_prog_CPP=$CPP
6984 fi
6985 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6986 $as_echo "$CPP" >&6; }
6987 ac_preproc_ok=false
6988 for ac_c_preproc_warn_flag in '' yes
6989 do
6990   # Use a header file that comes with gcc, so configuring glibc
6991   # with a fresh cross-compiler works.
6992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993   # <limits.h> exists even on freestanding compilers.
6994   # On the NeXT, cc -E runs the code through the compiler's parser,
6995   # not just through cpp. "Syntax error" is here to catch this case.
6996   cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 #ifdef __STDC__
7003 # include <limits.h>
7004 #else
7005 # include <assert.h>
7006 #endif
7007                      Syntax error
7008 _ACEOF
7009 if { (ac_try="$ac_cpp conftest.$ac_ext"
7010 case "(($ac_try" in
7011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012   *) ac_try_echo=$ac_try;;
7013 esac
7014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7015 $as_echo "$ac_try_echo") >&5
7016   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7017   ac_status=$?
7018   grep -v '^ *+' conftest.er1 >conftest.err
7019   rm -f conftest.er1
7020   cat conftest.err >&5
7021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); } >/dev/null && {
7023          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7024          test ! -s conftest.err
7025        }; then
7026   :
7027 else
7028   $as_echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.$ac_ext >&5
7030
7031   # Broken: fails on valid input.
7032 continue
7033 fi
7034
7035 rm -f conftest.err conftest.$ac_ext
7036
7037   # OK, works on sane cases.  Now check whether nonexistent headers
7038   # can be detected and how.
7039   cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h.  */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h.  */
7045 #include <ac_nonexistent.h>
7046 _ACEOF
7047 if { (ac_try="$ac_cpp conftest.$ac_ext"
7048 case "(($ac_try" in
7049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050   *) ac_try_echo=$ac_try;;
7051 esac
7052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7055   ac_status=$?
7056   grep -v '^ *+' conftest.er1 >conftest.err
7057   rm -f conftest.er1
7058   cat conftest.err >&5
7059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } >/dev/null && {
7061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7062          test ! -s conftest.err
7063        }; then
7064   # Broken: success on invalid input.
7065 continue
7066 else
7067   $as_echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070   # Passes both tests.
7071 ac_preproc_ok=:
7072 break
7073 fi
7074
7075 rm -f conftest.err conftest.$ac_ext
7076
7077 done
7078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7079 rm -f conftest.err conftest.$ac_ext
7080 if $ac_preproc_ok; then
7081   :
7082 else
7083   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7085 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7086 See \`config.log' for more details." >&5
7087 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7088 See \`config.log' for more details." >&2;}
7089    { (exit 1); exit 1; }; }; }
7090 fi
7091
7092 ac_ext=c
7093 ac_cpp='$CPP $CPPFLAGS'
7094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097
7098
7099 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7100 $as_echo_n "checking for ANSI C header files... " >&6; }
7101 if test "${ac_cv_header_stdc+set}" = set; then
7102   $as_echo_n "(cached) " >&6
7103 else
7104   cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h.  */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h.  */
7110 #include <stdlib.h>
7111 #include <stdarg.h>
7112 #include <string.h>
7113 #include <float.h>
7114
7115 int
7116 main ()
7117 {
7118
7119   ;
7120   return 0;
7121 }
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7125 case "(($ac_try" in
7126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127   *) ac_try_echo=$ac_try;;
7128 esac
7129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7130 $as_echo "$ac_try_echo") >&5
7131   (eval "$ac_compile") 2>conftest.er1
7132   ac_status=$?
7133   grep -v '^ *+' conftest.er1 >conftest.err
7134   rm -f conftest.er1
7135   cat conftest.err >&5
7136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); } && {
7138          test -z "$ac_c_werror_flag" ||
7139          test ! -s conftest.err
7140        } && test -s conftest.$ac_objext; then
7141   ac_cv_header_stdc=yes
7142 else
7143   $as_echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146         ac_cv_header_stdc=no
7147 fi
7148
7149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150
7151 if test $ac_cv_header_stdc = yes; then
7152   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7153   cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h.  */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h.  */
7159 #include <string.h>
7160
7161 _ACEOF
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163   $EGREP "memchr" >/dev/null 2>&1; then
7164   :
7165 else
7166   ac_cv_header_stdc=no
7167 fi
7168 rm -f conftest*
7169
7170 fi
7171
7172 if test $ac_cv_header_stdc = yes; then
7173   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7174   cat >conftest.$ac_ext <<_ACEOF
7175 /* confdefs.h.  */
7176 _ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h.  */
7180 #include <stdlib.h>
7181
7182 _ACEOF
7183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7184   $EGREP "free" >/dev/null 2>&1; then
7185   :
7186 else
7187   ac_cv_header_stdc=no
7188 fi
7189 rm -f conftest*
7190
7191 fi
7192
7193 if test $ac_cv_header_stdc = yes; then
7194   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7195   if test "$cross_compiling" = yes; then
7196   :
7197 else
7198   cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h.  */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h.  */
7204 #include <ctype.h>
7205 #include <stdlib.h>
7206 #if ((' ' & 0x0FF) == 0x020)
7207 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7208 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7209 #else
7210 # define ISLOWER(c) \
7211                    (('a' <= (c) && (c) <= 'i') \
7212                      || ('j' <= (c) && (c) <= 'r') \
7213                      || ('s' <= (c) && (c) <= 'z'))
7214 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7215 #endif
7216
7217 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7218 int
7219 main ()
7220 {
7221   int i;
7222   for (i = 0; i < 256; i++)
7223     if (XOR (islower (i), ISLOWER (i))
7224         || toupper (i) != TOUPPER (i))
7225       return 2;
7226   return 0;
7227 }
7228 _ACEOF
7229 rm -f conftest$ac_exeext
7230 if { (ac_try="$ac_link"
7231 case "(($ac_try" in
7232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233   *) ac_try_echo=$ac_try;;
7234 esac
7235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236 $as_echo "$ac_try_echo") >&5
7237   (eval "$ac_link") 2>&5
7238   ac_status=$?
7239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7241   { (case "(($ac_try" in
7242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7243   *) ac_try_echo=$ac_try;;
7244 esac
7245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7246 $as_echo "$ac_try_echo") >&5
7247   (eval "$ac_try") 2>&5
7248   ac_status=$?
7249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); }; }; then
7251   :
7252 else
7253   $as_echo "$as_me: program exited with status $ac_status" >&5
7254 $as_echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 ( exit $ac_status )
7258 ac_cv_header_stdc=no
7259 fi
7260 rm -rf conftest.dSYM
7261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7262 fi
7263
7264
7265 fi
7266 fi
7267 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7268 $as_echo "$ac_cv_header_stdc" >&6; }
7269 if test $ac_cv_header_stdc = yes; then
7270
7271 cat >>confdefs.h <<\_ACEOF
7272 #define STDC_HEADERS 1
7273 _ACEOF
7274
7275 fi
7276
7277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7288                   inttypes.h stdint.h unistd.h
7289 do
7290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 $as_echo_n "checking for $ac_header... " >&6; }
7293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7294   $as_echo_n "(cached) " >&6
7295 else
7296   cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h.  */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h.  */
7302 $ac_includes_default
7303
7304 #include <$ac_header>
7305 _ACEOF
7306 rm -f conftest.$ac_objext
7307 if { (ac_try="$ac_compile"
7308 case "(($ac_try" in
7309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310   *) ac_try_echo=$ac_try;;
7311 esac
7312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7313 $as_echo "$ac_try_echo") >&5
7314   (eval "$ac_compile") 2>conftest.er1
7315   ac_status=$?
7316   grep -v '^ *+' conftest.er1 >conftest.err
7317   rm -f conftest.er1
7318   cat conftest.err >&5
7319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); } && {
7321          test -z "$ac_c_werror_flag" ||
7322          test ! -s conftest.err
7323        } && test -s conftest.$ac_objext; then
7324   eval "$as_ac_Header=yes"
7325 else
7326   $as_echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329         eval "$as_ac_Header=no"
7330 fi
7331
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 fi
7334 ac_res=`eval 'as_val=${'$as_ac_Header'}
7335                  $as_echo "$as_val"'`
7336                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7337 $as_echo "$ac_res" >&6; }
7338 as_val=`eval 'as_val=${'$as_ac_Header'}
7339                  $as_echo "$as_val"'`
7340    if test "x$as_val" = x""yes; then
7341   cat >>confdefs.h <<_ACEOF
7342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7343 _ACEOF
7344
7345 fi
7346
7347 done
7348
7349
7350
7351 for ac_header in dlfcn.h
7352 do
7353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 $as_echo_n "checking for $ac_header... " >&6; }
7356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7357   $as_echo_n "(cached) " >&6
7358 else
7359   cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365 $ac_includes_default
7366
7367 #include <$ac_header>
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (ac_try="$ac_compile"
7371 case "(($ac_try" in
7372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7373   *) ac_try_echo=$ac_try;;
7374 esac
7375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7376 $as_echo "$ac_try_echo") >&5
7377   (eval "$ac_compile") 2>conftest.er1
7378   ac_status=$?
7379   grep -v '^ *+' conftest.er1 >conftest.err
7380   rm -f conftest.er1
7381   cat conftest.err >&5
7382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); } && {
7384          test -z "$ac_c_werror_flag" ||
7385          test ! -s conftest.err
7386        } && test -s conftest.$ac_objext; then
7387   eval "$as_ac_Header=yes"
7388 else
7389   $as_echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7391
7392         eval "$as_ac_Header=no"
7393 fi
7394
7395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7396 fi
7397 ac_res=`eval 'as_val=${'$as_ac_Header'}
7398                  $as_echo "$as_val"'`
7399                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7400 $as_echo "$ac_res" >&6; }
7401 as_val=`eval 'as_val=${'$as_ac_Header'}
7402                  $as_echo "$as_val"'`
7403    if test "x$as_val" = x""yes; then
7404   cat >>confdefs.h <<_ACEOF
7405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7406 _ACEOF
7407
7408 fi
7409
7410 done
7411
7412
7413
7414 # Set options
7415
7416
7417
7418         enable_dlopen=no
7419
7420
7421   enable_win32_dll=no
7422
7423
7424             # Check whether --enable-shared was given.
7425 if test "${enable_shared+set}" = set; then
7426   enableval=$enable_shared; p=${PACKAGE-default}
7427     case $enableval in
7428     yes) enable_shared=yes ;;
7429     no) enable_shared=no ;;
7430     *)
7431       enable_shared=no
7432       # Look at the argument we got.  We use all the common list separators.
7433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7434       for pkg in $enableval; do
7435         IFS="$lt_save_ifs"
7436         if test "X$pkg" = "X$p"; then
7437           enable_shared=yes
7438         fi
7439       done
7440       IFS="$lt_save_ifs"
7441       ;;
7442     esac
7443 else
7444   enable_shared=yes
7445 fi
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455   # Check whether --enable-static was given.
7456 if test "${enable_static+set}" = set; then
7457   enableval=$enable_static; p=${PACKAGE-default}
7458     case $enableval in
7459     yes) enable_static=yes ;;
7460     no) enable_static=no ;;
7461     *)
7462      enable_static=no
7463       # Look at the argument we got.  We use all the common list separators.
7464       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7465       for pkg in $enableval; do
7466         IFS="$lt_save_ifs"
7467         if test "X$pkg" = "X$p"; then
7468           enable_static=yes
7469         fi
7470       done
7471       IFS="$lt_save_ifs"
7472       ;;
7473     esac
7474 else
7475   enable_static=yes
7476 fi
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487 # Check whether --with-pic was given.
7488 if test "${with_pic+set}" = set; then
7489   withval=$with_pic; pic_mode="$withval"
7490 else
7491   pic_mode=default
7492 fi
7493
7494
7495 test -z "$pic_mode" && pic_mode=default
7496
7497
7498
7499
7500
7501
7502
7503   # Check whether --enable-fast-install was given.
7504 if test "${enable_fast_install+set}" = set; then
7505   enableval=$enable_fast_install; p=${PACKAGE-default}
7506     case $enableval in
7507     yes) enable_fast_install=yes ;;
7508     no) enable_fast_install=no ;;
7509     *)
7510       enable_fast_install=no
7511       # Look at the argument we got.  We use all the common list separators.
7512       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7513       for pkg in $enableval; do
7514         IFS="$lt_save_ifs"
7515         if test "X$pkg" = "X$p"; then
7516           enable_fast_install=yes
7517         fi
7518       done
7519       IFS="$lt_save_ifs"
7520       ;;
7521     esac
7522 else
7523   enable_fast_install=yes
7524 fi
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536 # This can be used to rebuild libtool when needed
7537 LIBTOOL_DEPS="$ltmain"
7538
7539 # Always use our own libtool.
7540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566 test -z "$LN_S" && LN_S="ln -s"
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 if test -n "${ZSH_VERSION+set}" ; then
7582    setopt NO_GLOB_SUBST
7583 fi
7584
7585 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7586 $as_echo_n "checking for objdir... " >&6; }
7587 if test "${lt_cv_objdir+set}" = set; then
7588   $as_echo_n "(cached) " >&6
7589 else
7590   rm -f .libs 2>/dev/null
7591 mkdir .libs 2>/dev/null
7592 if test -d .libs; then
7593   lt_cv_objdir=.libs
7594 else
7595   # MS-DOS does not allow filenames that begin with a dot.
7596   lt_cv_objdir=_libs
7597 fi
7598 rmdir .libs 2>/dev/null
7599 fi
7600 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7601 $as_echo "$lt_cv_objdir" >&6; }
7602 objdir=$lt_cv_objdir
7603
7604
7605
7606
7607
7608 cat >>confdefs.h <<_ACEOF
7609 #define LT_OBJDIR "$lt_cv_objdir/"
7610 _ACEOF
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628 case $host_os in
7629 aix3*)
7630   # AIX sometimes has problems with the GCC collect2 program.  For some
7631   # reason, if we set the COLLECT_NAMES environment variable, the problems
7632   # vanish in a puff of smoke.
7633   if test "X${COLLECT_NAMES+set}" != Xset; then
7634     COLLECT_NAMES=
7635     export COLLECT_NAMES
7636   fi
7637   ;;
7638 esac
7639
7640 # Sed substitution that helps us do robust quoting.  It backslashifies
7641 # metacharacters that are still active within double-quoted strings.
7642 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7643
7644 # Same as above, but do not quote variable references.
7645 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7646
7647 # Sed substitution to delay expansion of an escaped shell variable in a
7648 # double_quote_subst'ed string.
7649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7650
7651 # Sed substitution to delay expansion of an escaped single quote.
7652 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7653
7654 # Sed substitution to avoid accidental globbing in evaled expressions
7655 no_glob_subst='s/\*/\\\*/g'
7656
7657 # Global variables:
7658 ofile=libtool
7659 can_build_shared=yes
7660
7661 # All known linkers require a `.a' archive for static linking (except MSVC,
7662 # which needs '.lib').
7663 libext=a
7664
7665 with_gnu_ld="$lt_cv_prog_gnu_ld"
7666
7667 old_CC="$CC"
7668 old_CFLAGS="$CFLAGS"
7669
7670 # Set sane defaults for various variables
7671 test -z "$CC" && CC=cc
7672 test -z "$LTCC" && LTCC=$CC
7673 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7674 test -z "$LD" && LD=ld
7675 test -z "$ac_objext" && ac_objext=o
7676
7677 for cc_temp in $compiler""; do
7678   case $cc_temp in
7679     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7680     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7681     \-*) ;;
7682     *) break;;
7683   esac
7684 done
7685 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7686
7687
7688 # Only perform the check for file, if the check method requires it
7689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7690 case $deplibs_check_method in
7691 file_magic*)
7692   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7693     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7694 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7696   $as_echo_n "(cached) " >&6
7697 else
7698   case $MAGIC_CMD in
7699 [\\/*] |  ?:[\\/]*)
7700   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701   ;;
7702 *)
7703   lt_save_MAGIC_CMD="$MAGIC_CMD"
7704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7705   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7706   for ac_dir in $ac_dummy; do
7707     IFS="$lt_save_ifs"
7708     test -z "$ac_dir" && ac_dir=.
7709     if test -f $ac_dir/${ac_tool_prefix}file; then
7710       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7711       if test -n "$file_magic_test_file"; then
7712         case $deplibs_check_method in
7713         "file_magic "*)
7714           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7717             $EGREP "$file_magic_regex" > /dev/null; then
7718             :
7719           else
7720             cat <<_LT_EOF 1>&2
7721
7722 *** Warning: the command libtool uses to detect shared libraries,
7723 *** $file_magic_cmd, produces output that libtool cannot recognize.
7724 *** The result is that libtool may fail to recognize shared libraries
7725 *** as such.  This will affect the creation of libtool libraries that
7726 *** depend on shared libraries, but programs linked with such libtool
7727 *** libraries will work regardless of this problem.  Nevertheless, you
7728 *** may want to report the problem to your system manager and/or to
7729 *** bug-libtool@gnu.org
7730
7731 _LT_EOF
7732           fi ;;
7733         esac
7734       fi
7735       break
7736     fi
7737   done
7738   IFS="$lt_save_ifs"
7739   MAGIC_CMD="$lt_save_MAGIC_CMD"
7740   ;;
7741 esac
7742 fi
7743
7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745 if test -n "$MAGIC_CMD"; then
7746   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7747 $as_echo "$MAGIC_CMD" >&6; }
7748 else
7749   { $as_echo "$as_me:$LINENO: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754
7755
7756
7757 if test -z "$lt_cv_path_MAGIC_CMD"; then
7758   if test -n "$ac_tool_prefix"; then
7759     { $as_echo "$as_me:$LINENO: checking for file" >&5
7760 $as_echo_n "checking for file... " >&6; }
7761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7762   $as_echo_n "(cached) " >&6
7763 else
7764   case $MAGIC_CMD in
7765 [\\/*] |  ?:[\\/]*)
7766   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7767   ;;
7768 *)
7769   lt_save_MAGIC_CMD="$MAGIC_CMD"
7770   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7771   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7772   for ac_dir in $ac_dummy; do
7773     IFS="$lt_save_ifs"
7774     test -z "$ac_dir" && ac_dir=.
7775     if test -f $ac_dir/file; then
7776       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7777       if test -n "$file_magic_test_file"; then
7778         case $deplibs_check_method in
7779         "file_magic "*)
7780           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7781           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7782           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7783             $EGREP "$file_magic_regex" > /dev/null; then
7784             :
7785           else
7786             cat <<_LT_EOF 1>&2
7787
7788 *** Warning: the command libtool uses to detect shared libraries,
7789 *** $file_magic_cmd, produces output that libtool cannot recognize.
7790 *** The result is that libtool may fail to recognize shared libraries
7791 *** as such.  This will affect the creation of libtool libraries that
7792 *** depend on shared libraries, but programs linked with such libtool
7793 *** libraries will work regardless of this problem.  Nevertheless, you
7794 *** may want to report the problem to your system manager and/or to
7795 *** bug-libtool@gnu.org
7796
7797 _LT_EOF
7798           fi ;;
7799         esac
7800       fi
7801       break
7802     fi
7803   done
7804   IFS="$lt_save_ifs"
7805   MAGIC_CMD="$lt_save_MAGIC_CMD"
7806   ;;
7807 esac
7808 fi
7809
7810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7811 if test -n "$MAGIC_CMD"; then
7812   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7813 $as_echo "$MAGIC_CMD" >&6; }
7814 else
7815   { $as_echo "$as_me:$LINENO: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818
7819
7820   else
7821     MAGIC_CMD=:
7822   fi
7823 fi
7824
7825   fi
7826   ;;
7827 esac
7828
7829 # Use C for the default configuration in the libtool script
7830
7831 lt_save_CC="$CC"
7832 ac_ext=c
7833 ac_cpp='$CPP $CPPFLAGS'
7834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837
7838
7839 # Source file extension for C test sources.
7840 ac_ext=c
7841
7842 # Object file extension for compiled C test sources.
7843 objext=o
7844 objext=$objext
7845
7846 # Code to be used in simple compile tests
7847 lt_simple_compile_test_code="int some_variable = 0;"
7848
7849 # Code to be used in simple link tests
7850 lt_simple_link_test_code='int main(){return(0);}'
7851
7852
7853
7854
7855
7856
7857
7858 # If no C compiler was specified, use CC.
7859 LTCC=${LTCC-"$CC"}
7860
7861 # If no C compiler flags were specified, use CFLAGS.
7862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7863
7864 # Allow CC to be a program name with arguments.
7865 compiler=$CC
7866
7867 # Save the default compiler, since it gets overwritten when the other
7868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7869 compiler_DEFAULT=$CC
7870
7871 # save warnings/boilerplate of simple test code
7872 ac_outfile=conftest.$ac_objext
7873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7875 _lt_compiler_boilerplate=`cat conftest.err`
7876 $RM conftest*
7877
7878 ac_outfile=conftest.$ac_objext
7879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7881 _lt_linker_boilerplate=`cat conftest.err`
7882 $RM -r conftest*
7883
7884
7885 if test -n "$compiler"; then
7886
7887 lt_prog_compiler_no_builtin_flag=
7888
7889 if test "$GCC" = yes; then
7890   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7891
7892   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7893 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7894 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7895   $as_echo_n "(cached) " >&6
7896 else
7897   lt_cv_prog_compiler_rtti_exceptions=no
7898    ac_outfile=conftest.$ac_objext
7899    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7900    lt_compiler_flag="-fno-rtti -fno-exceptions"
7901    # Insert the option either (1) after the last *FLAGS variable, or
7902    # (2) before a word containing "conftest.", or (3) at the end.
7903    # Note that $ac_compile itself does not contain backslashes and begins
7904    # with a dollar sign (not a hyphen), so the echo should work correctly.
7905    # The option is referenced via a variable to avoid confusing sed.
7906    lt_compile=`echo "$ac_compile" | $SED \
7907    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7908    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7909    -e 's:$: $lt_compiler_flag:'`
7910    (eval echo "\"\$as_me:7910: $lt_compile\"" >&5)
7911    (eval "$lt_compile" 2>conftest.err)
7912    ac_status=$?
7913    cat conftest.err >&5
7914    echo "$as_me:7914: \$? = $ac_status" >&5
7915    if (exit $ac_status) && test -s "$ac_outfile"; then
7916      # The compiler can only warn and ignore the option if not recognized
7917      # So say no if there are warnings other than the usual output.
7918      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7919      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7920      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7921        lt_cv_prog_compiler_rtti_exceptions=yes
7922      fi
7923    fi
7924    $RM conftest*
7925
7926 fi
7927 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7928 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7929
7930 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7931     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7932 else
7933     :
7934 fi
7935
7936 fi
7937
7938
7939
7940
7941
7942
7943   lt_prog_compiler_wl=
7944 lt_prog_compiler_pic=
7945 lt_prog_compiler_static=
7946
7947 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7948 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7949
7950   if test "$GCC" = yes; then
7951     lt_prog_compiler_wl='-Wl,'
7952     lt_prog_compiler_static='-static'
7953
7954     case $host_os in
7955       aix*)
7956       # All AIX code is PIC.
7957       if test "$host_cpu" = ia64; then
7958         # AIX 5 now supports IA64 processor
7959         lt_prog_compiler_static='-Bstatic'
7960       fi
7961       ;;
7962
7963     amigaos*)
7964       case $host_cpu in
7965       powerpc)
7966             # see comment about AmigaOS4 .so support
7967             lt_prog_compiler_pic='-fPIC'
7968         ;;
7969       m68k)
7970             # FIXME: we need at least 68020 code to build shared libraries, but
7971             # adding the `-m68020' flag to GCC prevents building anything better,
7972             # like `-m68040'.
7973             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7974         ;;
7975       esac
7976       ;;
7977
7978     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7979       # PIC is the default for these OSes.
7980       ;;
7981
7982     mingw* | cygwin* | pw32* | os2* | cegcc*)
7983       # This hack is so that the source file can tell whether it is being
7984       # built for inclusion in a dll (and should export symbols for example).
7985       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7986       # (--disable-auto-import) libraries
7987       lt_prog_compiler_pic='-DDLL_EXPORT'
7988       ;;
7989
7990     darwin* | rhapsody*)
7991       # PIC is the default on this platform
7992       # Common symbols not allowed in MH_DYLIB files
7993       lt_prog_compiler_pic='-fno-common'
7994       ;;
7995
7996     hpux*)
7997       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7998       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7999       # sets the default TLS model and affects inlining.
8000       case $host_cpu in
8001       hppa*64*)
8002         # +Z the default
8003         ;;
8004       *)
8005         lt_prog_compiler_pic='-fPIC'
8006         ;;
8007       esac
8008       ;;
8009
8010     interix[3-9]*)
8011       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8012       # Instead, we relocate shared libraries at runtime.
8013       ;;
8014
8015     msdosdjgpp*)
8016       # Just because we use GCC doesn't mean we suddenly get shared libraries
8017       # on systems that don't support them.
8018       lt_prog_compiler_can_build_shared=no
8019       enable_shared=no
8020       ;;
8021
8022     *nto* | *qnx*)
8023       # QNX uses GNU C++, but need to define -shared option too, otherwise
8024       # it will coredump.
8025       lt_prog_compiler_pic='-fPIC -shared'
8026       ;;
8027
8028     sysv4*MP*)
8029       if test -d /usr/nec; then
8030         lt_prog_compiler_pic=-Kconform_pic
8031       fi
8032       ;;
8033
8034     *)
8035       lt_prog_compiler_pic='-fPIC'
8036       ;;
8037     esac
8038   else
8039     # PORTME Check for flag to pass linker flags through the system compiler.
8040     case $host_os in
8041     aix*)
8042       lt_prog_compiler_wl='-Wl,'
8043       if test "$host_cpu" = ia64; then
8044         # AIX 5 now supports IA64 processor
8045         lt_prog_compiler_static='-Bstatic'
8046       else
8047         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8048       fi
8049       ;;
8050
8051     mingw* | cygwin* | pw32* | os2* | cegcc*)
8052       # This hack is so that the source file can tell whether it is being
8053       # built for inclusion in a dll (and should export symbols for example).
8054       lt_prog_compiler_pic='-DDLL_EXPORT'
8055       ;;
8056
8057     hpux9* | hpux10* | hpux11*)
8058       lt_prog_compiler_wl='-Wl,'
8059       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8060       # not for PA HP-UX.
8061       case $host_cpu in
8062       hppa*64*|ia64*)
8063         # +Z the default
8064         ;;
8065       *)
8066         lt_prog_compiler_pic='+Z'
8067         ;;
8068       esac
8069       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8070       lt_prog_compiler_static='${wl}-a ${wl}archive'
8071       ;;
8072
8073     irix5* | irix6* | nonstopux*)
8074       lt_prog_compiler_wl='-Wl,'
8075       # PIC (with -KPIC) is the default.
8076       lt_prog_compiler_static='-non_shared'
8077       ;;
8078
8079     linux* | k*bsd*-gnu)
8080       case $cc_basename in
8081       # old Intel for x86_64 which still supported -KPIC.
8082       ecc*)
8083         lt_prog_compiler_wl='-Wl,'
8084         lt_prog_compiler_pic='-KPIC'
8085         lt_prog_compiler_static='-static'
8086         ;;
8087       # icc used to be incompatible with GCC.
8088       # ICC 10 doesn't accept -KPIC any more.
8089       icc* | ifort*)
8090         lt_prog_compiler_wl='-Wl,'
8091         lt_prog_compiler_pic='-fPIC'
8092         lt_prog_compiler_static='-static'
8093         ;;
8094       # Lahey Fortran 8.1.
8095       lf95*)
8096         lt_prog_compiler_wl='-Wl,'
8097         lt_prog_compiler_pic='--shared'
8098         lt_prog_compiler_static='--static'
8099         ;;
8100       pgcc* | pgf77* | pgf90* | pgf95*)
8101         # Portland Group compilers (*not* the Pentium gcc compiler,
8102         # which looks to be a dead project)
8103         lt_prog_compiler_wl='-Wl,'
8104         lt_prog_compiler_pic='-fpic'
8105         lt_prog_compiler_static='-Bstatic'
8106         ;;
8107       ccc*)
8108         lt_prog_compiler_wl='-Wl,'
8109         # All Alpha code is PIC.
8110         lt_prog_compiler_static='-non_shared'
8111         ;;
8112       xl*)
8113         # IBM XL C 8.0/Fortran 10.1 on PPC
8114         lt_prog_compiler_wl='-Wl,'
8115         lt_prog_compiler_pic='-qpic'
8116         lt_prog_compiler_static='-qstaticlink'
8117         ;;
8118       *)
8119         case `$CC -V 2>&1 | sed 5q` in
8120         *Sun\ C*)
8121           # Sun C 5.9
8122           lt_prog_compiler_pic='-KPIC'
8123           lt_prog_compiler_static='-Bstatic'
8124           lt_prog_compiler_wl='-Wl,'
8125           ;;
8126         *Sun\ F*)
8127           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8128           lt_prog_compiler_pic='-KPIC'
8129           lt_prog_compiler_static='-Bstatic'
8130           lt_prog_compiler_wl=''
8131           ;;
8132         esac
8133         ;;
8134       esac
8135       ;;
8136
8137     newsos6)
8138       lt_prog_compiler_pic='-KPIC'
8139       lt_prog_compiler_static='-Bstatic'
8140       ;;
8141
8142     *nto* | *qnx*)
8143       # QNX uses GNU C++, but need to define -shared option too, otherwise
8144       # it will coredump.
8145       lt_prog_compiler_pic='-fPIC -shared'
8146       ;;
8147
8148     osf3* | osf4* | osf5*)
8149       lt_prog_compiler_wl='-Wl,'
8150       # All OSF/1 code is PIC.
8151       lt_prog_compiler_static='-non_shared'
8152       ;;
8153
8154     rdos*)
8155       lt_prog_compiler_static='-non_shared'
8156       ;;
8157
8158     solaris*)
8159       lt_prog_compiler_pic='-KPIC'
8160       lt_prog_compiler_static='-Bstatic'
8161       case $cc_basename in
8162       f77* | f90* | f95*)
8163         lt_prog_compiler_wl='-Qoption ld ';;
8164       *)
8165         lt_prog_compiler_wl='-Wl,';;
8166       esac
8167       ;;
8168
8169     sunos4*)
8170       lt_prog_compiler_wl='-Qoption ld '
8171       lt_prog_compiler_pic='-PIC'
8172       lt_prog_compiler_static='-Bstatic'
8173       ;;
8174
8175     sysv4 | sysv4.2uw2* | sysv4.3*)
8176       lt_prog_compiler_wl='-Wl,'
8177       lt_prog_compiler_pic='-KPIC'
8178       lt_prog_compiler_static='-Bstatic'
8179       ;;
8180
8181     sysv4*MP*)
8182       if test -d /usr/nec ;then
8183         lt_prog_compiler_pic='-Kconform_pic'
8184         lt_prog_compiler_static='-Bstatic'
8185       fi
8186       ;;
8187
8188     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8189       lt_prog_compiler_wl='-Wl,'
8190       lt_prog_compiler_pic='-KPIC'
8191       lt_prog_compiler_static='-Bstatic'
8192       ;;
8193
8194     unicos*)
8195       lt_prog_compiler_wl='-Wl,'
8196       lt_prog_compiler_can_build_shared=no
8197       ;;
8198
8199     uts4*)
8200       lt_prog_compiler_pic='-pic'
8201       lt_prog_compiler_static='-Bstatic'
8202       ;;
8203
8204     *)
8205       lt_prog_compiler_can_build_shared=no
8206       ;;
8207     esac
8208   fi
8209
8210 case $host_os in
8211   # For platforms which do not support PIC, -DPIC is meaningless:
8212   *djgpp*)
8213     lt_prog_compiler_pic=
8214     ;;
8215   *)
8216     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8217     ;;
8218 esac
8219 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8220 $as_echo "$lt_prog_compiler_pic" >&6; }
8221
8222
8223
8224
8225
8226
8227 #
8228 # Check to make sure the PIC flag actually works.
8229 #
8230 if test -n "$lt_prog_compiler_pic"; then
8231   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8232 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8233 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8234   $as_echo_n "(cached) " >&6
8235 else
8236   lt_cv_prog_compiler_pic_works=no
8237    ac_outfile=conftest.$ac_objext
8238    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8239    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8240    # Insert the option either (1) after the last *FLAGS variable, or
8241    # (2) before a word containing "conftest.", or (3) at the end.
8242    # Note that $ac_compile itself does not contain backslashes and begins
8243    # with a dollar sign (not a hyphen), so the echo should work correctly.
8244    # The option is referenced via a variable to avoid confusing sed.
8245    lt_compile=`echo "$ac_compile" | $SED \
8246    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8248    -e 's:$: $lt_compiler_flag:'`
8249    (eval echo "\"\$as_me:8249: $lt_compile\"" >&5)
8250    (eval "$lt_compile" 2>conftest.err)
8251    ac_status=$?
8252    cat conftest.err >&5
8253    echo "$as_me:8253: \$? = $ac_status" >&5
8254    if (exit $ac_status) && test -s "$ac_outfile"; then
8255      # The compiler can only warn and ignore the option if not recognized
8256      # So say no if there are warnings other than the usual output.
8257      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8258      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8259      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8260        lt_cv_prog_compiler_pic_works=yes
8261      fi
8262    fi
8263    $RM conftest*
8264
8265 fi
8266 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8267 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8268
8269 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8270     case $lt_prog_compiler_pic in
8271      "" | " "*) ;;
8272      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8273      esac
8274 else
8275     lt_prog_compiler_pic=
8276      lt_prog_compiler_can_build_shared=no
8277 fi
8278
8279 fi
8280
8281
8282
8283
8284
8285
8286 #
8287 # Check to make sure the static flag actually works.
8288 #
8289 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8290 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8291 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8292 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8293   $as_echo_n "(cached) " >&6
8294 else
8295   lt_cv_prog_compiler_static_works=no
8296    save_LDFLAGS="$LDFLAGS"
8297    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8298    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8299    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8300      # The linker can only warn and ignore the option if not recognized
8301      # So say no if there are warnings
8302      if test -s conftest.err; then
8303        # Append any errors to the config.log.
8304        cat conftest.err 1>&5
8305        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8306        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8307        if diff conftest.exp conftest.er2 >/dev/null; then
8308          lt_cv_prog_compiler_static_works=yes
8309        fi
8310      else
8311        lt_cv_prog_compiler_static_works=yes
8312      fi
8313    fi
8314    $RM -r conftest*
8315    LDFLAGS="$save_LDFLAGS"
8316
8317 fi
8318 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8319 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8320
8321 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8322     :
8323 else
8324     lt_prog_compiler_static=
8325 fi
8326
8327
8328
8329
8330
8331
8332
8333   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8335 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8336   $as_echo_n "(cached) " >&6
8337 else
8338   lt_cv_prog_compiler_c_o=no
8339    $RM -r conftest 2>/dev/null
8340    mkdir conftest
8341    cd conftest
8342    mkdir out
8343    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8344
8345    lt_compiler_flag="-o out/conftest2.$ac_objext"
8346    # Insert the option either (1) after the last *FLAGS variable, or
8347    # (2) before a word containing "conftest.", or (3) at the end.
8348    # Note that $ac_compile itself does not contain backslashes and begins
8349    # with a dollar sign (not a hyphen), so the echo should work correctly.
8350    lt_compile=`echo "$ac_compile" | $SED \
8351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8353    -e 's:$: $lt_compiler_flag:'`
8354    (eval echo "\"\$as_me:8354: $lt_compile\"" >&5)
8355    (eval "$lt_compile" 2>out/conftest.err)
8356    ac_status=$?
8357    cat out/conftest.err >&5
8358    echo "$as_me:8358: \$? = $ac_status" >&5
8359    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8360    then
8361      # The compiler can only warn and ignore the option if not recognized
8362      # So say no if there are warnings
8363      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8364      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8365      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8366        lt_cv_prog_compiler_c_o=yes
8367      fi
8368    fi
8369    chmod u+w . 2>&5
8370    $RM conftest*
8371    # SGI C++ compiler will create directory out/ii_files/ for
8372    # template instantiation
8373    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8374    $RM out/* && rmdir out
8375    cd ..
8376    $RM -r conftest
8377    $RM conftest*
8378
8379 fi
8380 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8381 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8382
8383
8384
8385
8386
8387
8388   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8389 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8390 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8391   $as_echo_n "(cached) " >&6
8392 else
8393   lt_cv_prog_compiler_c_o=no
8394    $RM -r conftest 2>/dev/null
8395    mkdir conftest
8396    cd conftest
8397    mkdir out
8398    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8399
8400    lt_compiler_flag="-o out/conftest2.$ac_objext"
8401    # Insert the option either (1) after the last *FLAGS variable, or
8402    # (2) before a word containing "conftest.", or (3) at the end.
8403    # Note that $ac_compile itself does not contain backslashes and begins
8404    # with a dollar sign (not a hyphen), so the echo should work correctly.
8405    lt_compile=`echo "$ac_compile" | $SED \
8406    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8407    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8408    -e 's:$: $lt_compiler_flag:'`
8409    (eval echo "\"\$as_me:8409: $lt_compile\"" >&5)
8410    (eval "$lt_compile" 2>out/conftest.err)
8411    ac_status=$?
8412    cat out/conftest.err >&5
8413    echo "$as_me:8413: \$? = $ac_status" >&5
8414    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8415    then
8416      # The compiler can only warn and ignore the option if not recognized
8417      # So say no if there are warnings
8418      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8419      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8420      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8421        lt_cv_prog_compiler_c_o=yes
8422      fi
8423    fi
8424    chmod u+w . 2>&5
8425    $RM conftest*
8426    # SGI C++ compiler will create directory out/ii_files/ for
8427    # template instantiation
8428    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8429    $RM out/* && rmdir out
8430    cd ..
8431    $RM -r conftest
8432    $RM conftest*
8433
8434 fi
8435 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8436 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8437
8438
8439
8440
8441 hard_links="nottested"
8442 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8443   # do not overwrite the value of need_locks provided by the user
8444   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8445 $as_echo_n "checking if we can lock with hard links... " >&6; }
8446   hard_links=yes
8447   $RM conftest*
8448   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8449   touch conftest.a
8450   ln conftest.a conftest.b 2>&5 || hard_links=no
8451   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8452   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8453 $as_echo "$hard_links" >&6; }
8454   if test "$hard_links" = no; then
8455     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8456 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8457     need_locks=warn
8458   fi
8459 else
8460   need_locks=no
8461 fi
8462
8463
8464
8465
8466
8467
8468   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8469 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8470
8471   runpath_var=
8472   allow_undefined_flag=
8473   always_export_symbols=no
8474   archive_cmds=
8475   archive_expsym_cmds=
8476   compiler_needs_object=no
8477   enable_shared_with_static_runtimes=no
8478   export_dynamic_flag_spec=
8479   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8480   hardcode_automatic=no
8481   hardcode_direct=no
8482   hardcode_direct_absolute=no
8483   hardcode_libdir_flag_spec=
8484   hardcode_libdir_flag_spec_ld=
8485   hardcode_libdir_separator=
8486   hardcode_minus_L=no
8487   hardcode_shlibpath_var=unsupported
8488   inherit_rpath=no
8489   link_all_deplibs=unknown
8490   module_cmds=
8491   module_expsym_cmds=
8492   old_archive_from_new_cmds=
8493   old_archive_from_expsyms_cmds=
8494   thread_safe_flag_spec=
8495   whole_archive_flag_spec=
8496   # include_expsyms should be a list of space-separated symbols to be *always*
8497   # included in the symbol list
8498   include_expsyms=
8499   # exclude_expsyms can be an extended regexp of symbols to exclude
8500   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8501   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8502   # as well as any symbol that contains `d'.
8503   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8504   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8505   # platforms (ab)use it in PIC code, but their linkers get confused if
8506   # the symbol is explicitly referenced.  Since portable code cannot
8507   # rely on this symbol name, it's probably fine to never include it in
8508   # preloaded symbol tables.
8509   # Exclude shared library initialization/finalization symbols.
8510   extract_expsyms_cmds=
8511
8512   case $host_os in
8513   cygwin* | mingw* | pw32* | cegcc*)
8514     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8515     # When not using gcc, we currently assume that we are using
8516     # Microsoft Visual C++.
8517     if test "$GCC" != yes; then
8518       with_gnu_ld=no
8519     fi
8520     ;;
8521   interix*)
8522     # we just hope/assume this is gcc and not c89 (= MSVC++)
8523     with_gnu_ld=yes
8524     ;;
8525   openbsd*)
8526     with_gnu_ld=no
8527     ;;
8528   esac
8529
8530   ld_shlibs=yes
8531   if test "$with_gnu_ld" = yes; then
8532     # If archive_cmds runs LD, not CC, wlarc should be empty
8533     wlarc='${wl}'
8534
8535     # Set some defaults for GNU ld with shared library support. These
8536     # are reset later if shared libraries are not supported. Putting them
8537     # here allows them to be overridden if necessary.
8538     runpath_var=LD_RUN_PATH
8539     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8540     export_dynamic_flag_spec='${wl}--export-dynamic'
8541     # ancient GNU ld didn't support --whole-archive et. al.
8542     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8543       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8544     else
8545       whole_archive_flag_spec=
8546     fi
8547     supports_anon_versioning=no
8548     case `$LD -v 2>&1` in
8549       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8550       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8551       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8552       *\ 2.11.*) ;; # other 2.11 versions
8553       *) supports_anon_versioning=yes ;;
8554     esac
8555
8556     # See if GNU ld supports shared libraries.
8557     case $host_os in
8558     aix[3-9]*)
8559       # On AIX/PPC, the GNU linker is very broken
8560       if test "$host_cpu" != ia64; then
8561         ld_shlibs=no
8562         cat <<_LT_EOF 1>&2
8563
8564 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8565 *** to be unable to reliably create shared libraries on AIX.
8566 *** Therefore, libtool is disabling shared libraries support.  If you
8567 *** really care for shared libraries, you may want to modify your PATH
8568 *** so that a non-GNU linker is found, and then restart.
8569
8570 _LT_EOF
8571       fi
8572       ;;
8573
8574     amigaos*)
8575       case $host_cpu in
8576       powerpc)
8577             # see comment about AmigaOS4 .so support
8578             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579             archive_expsym_cmds=''
8580         ;;
8581       m68k)
8582             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)'
8583             hardcode_libdir_flag_spec='-L$libdir'
8584             hardcode_minus_L=yes
8585         ;;
8586       esac
8587       ;;
8588
8589     beos*)
8590       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8591         allow_undefined_flag=unsupported
8592         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8593         # support --undefined.  This deserves some investigation.  FIXME
8594         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595       else
8596         ld_shlibs=no
8597       fi
8598       ;;
8599
8600     cygwin* | mingw* | pw32* | cegcc*)
8601       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8602       # as there is no search path for DLLs.
8603       hardcode_libdir_flag_spec='-L$libdir'
8604       allow_undefined_flag=unsupported
8605       always_export_symbols=no
8606       enable_shared_with_static_runtimes=yes
8607       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8608
8609       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8610         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8611         # If the export-symbols file already is a .def file (1st line
8612         # is EXPORTS), use it as is; otherwise, prepend...
8613         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8614           cp $export_symbols $output_objdir/$soname.def;
8615         else
8616           echo EXPORTS > $output_objdir/$soname.def;
8617           cat $export_symbols >> $output_objdir/$soname.def;
8618         fi~
8619         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8620       else
8621         ld_shlibs=no
8622       fi
8623       ;;
8624
8625     interix[3-9]*)
8626       hardcode_direct=no
8627       hardcode_shlibpath_var=no
8628       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8629       export_dynamic_flag_spec='${wl}-E'
8630       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8631       # Instead, shared libraries are loaded at an image base (0x10000000 by
8632       # default) and relocated if they conflict, which is a slow very memory
8633       # consuming and fragmenting process.  To avoid this, we pick a random,
8634       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8635       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8636       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8637       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'
8638       ;;
8639
8640     gnu* | linux* | tpf* | k*bsd*-gnu)
8641       tmp_diet=no
8642       if test "$host_os" = linux-dietlibc; then
8643         case $cc_basename in
8644           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8645         esac
8646       fi
8647       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8648          && test "$tmp_diet" = no
8649       then
8650         tmp_addflag=
8651         tmp_sharedflag='-shared'
8652         case $cc_basename,$host_cpu in
8653         pgcc*)                          # Portland Group C compiler
8654           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'
8655           tmp_addflag=' $pic_flag'
8656           ;;
8657         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8658           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'
8659           tmp_addflag=' $pic_flag -Mnomain' ;;
8660         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8661           tmp_addflag=' -i_dynamic' ;;
8662         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8663           tmp_addflag=' -i_dynamic -nofor_main' ;;
8664         ifc* | ifort*)                  # Intel Fortran compiler
8665           tmp_addflag=' -nofor_main' ;;
8666         lf95*)                          # Lahey Fortran 8.1
8667           whole_archive_flag_spec=
8668           tmp_sharedflag='--shared' ;;
8669         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8670           tmp_sharedflag='-qmkshrobj'
8671           tmp_addflag= ;;
8672         esac
8673         case `$CC -V 2>&1 | sed 5q` in
8674         *Sun\ C*)                       # Sun C 5.9
8675           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'
8676           compiler_needs_object=yes
8677           tmp_sharedflag='-G' ;;
8678         *Sun\ F*)                       # Sun Fortran 8.3
8679           tmp_sharedflag='-G' ;;
8680         esac
8681         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682
8683         if test "x$supports_anon_versioning" = xyes; then
8684           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8685             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8686             echo "local: *; };" >> $output_objdir/$libname.ver~
8687             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8688         fi
8689
8690         case $cc_basename in
8691         xlf*)
8692           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8693           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8694           hardcode_libdir_flag_spec=
8695           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8696           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8697           if test "x$supports_anon_versioning" = xyes; then
8698             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8699               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8700               echo "local: *; };" >> $output_objdir/$libname.ver~
8701               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8702           fi
8703           ;;
8704         esac
8705       else
8706         ld_shlibs=no
8707       fi
8708       ;;
8709
8710     netbsd*)
8711       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8712         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8713         wlarc=
8714       else
8715         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8716         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8717       fi
8718       ;;
8719
8720     solaris*)
8721       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8722         ld_shlibs=no
8723         cat <<_LT_EOF 1>&2
8724
8725 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8726 *** create shared libraries on Solaris systems.  Therefore, libtool
8727 *** is disabling shared libraries support.  We urge you to upgrade GNU
8728 *** binutils to release 2.9.1 or newer.  Another option is to modify
8729 *** your PATH or compiler configuration so that the native linker is
8730 *** used, and then restart.
8731
8732 _LT_EOF
8733       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8734         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8735         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8736       else
8737         ld_shlibs=no
8738       fi
8739       ;;
8740
8741     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8742       case `$LD -v 2>&1` in
8743         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8744         ld_shlibs=no
8745         cat <<_LT_EOF 1>&2
8746
8747 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8748 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8749 *** is disabling shared libraries support.  We urge you to upgrade GNU
8750 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8751 *** your PATH or compiler configuration so that the native linker is
8752 *** used, and then restart.
8753
8754 _LT_EOF
8755         ;;
8756         *)
8757           # For security reasons, it is highly recommended that you always
8758           # use absolute paths for naming shared libraries, and exclude the
8759           # DT_RUNPATH tag from executables and libraries.  But doing so
8760           # requires that you compile everything twice, which is a pain.
8761           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8762             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8763             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8765           else
8766             ld_shlibs=no
8767           fi
8768         ;;
8769       esac
8770       ;;
8771
8772     sunos4*)
8773       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8774       wlarc=
8775       hardcode_direct=yes
8776       hardcode_shlibpath_var=no
8777       ;;
8778
8779     *)
8780       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8781         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8782         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8783       else
8784         ld_shlibs=no
8785       fi
8786       ;;
8787     esac
8788
8789     if test "$ld_shlibs" = no; then
8790       runpath_var=
8791       hardcode_libdir_flag_spec=
8792       export_dynamic_flag_spec=
8793       whole_archive_flag_spec=
8794     fi
8795   else
8796     # PORTME fill in a description of your system's linker (not GNU ld)
8797     case $host_os in
8798     aix3*)
8799       allow_undefined_flag=unsupported
8800       always_export_symbols=yes
8801       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'
8802       # Note: this linker hardcodes the directories in LIBPATH if there
8803       # are no directories specified by -L.
8804       hardcode_minus_L=yes
8805       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8806         # Neither direct hardcoding nor static linking is supported with a
8807         # broken collect2.
8808         hardcode_direct=unsupported
8809       fi
8810       ;;
8811
8812     aix[4-9]*)
8813       if test "$host_cpu" = ia64; then
8814         # On IA64, the linker does run time linking by default, so we don't
8815         # have to do anything special.
8816         aix_use_runtimelinking=no
8817         exp_sym_flag='-Bexport'
8818         no_entry_flag=""
8819       else
8820         # If we're using GNU nm, then we don't want the "-C" option.
8821         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8822         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8823           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'
8824         else
8825           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'
8826         fi
8827         aix_use_runtimelinking=no
8828
8829         # Test if we are trying to use run time linking or normal
8830         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8831         # need to do runtime linking.
8832         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8833           for ld_flag in $LDFLAGS; do
8834           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8835             aix_use_runtimelinking=yes
8836             break
8837           fi
8838           done
8839           ;;
8840         esac
8841
8842         exp_sym_flag='-bexport'
8843         no_entry_flag='-bnoentry'
8844       fi
8845
8846       # When large executables or shared objects are built, AIX ld can
8847       # have problems creating the table of contents.  If linking a library
8848       # or program results in "error TOC overflow" add -mminimal-toc to
8849       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8850       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8851
8852       archive_cmds=''
8853       hardcode_direct=yes
8854       hardcode_direct_absolute=yes
8855       hardcode_libdir_separator=':'
8856       link_all_deplibs=yes
8857       file_list_spec='${wl}-f,'
8858
8859       if test "$GCC" = yes; then
8860         case $host_os in aix4.[012]|aix4.[012].*)
8861         # We only want to do this on AIX 4.2 and lower, the check
8862         # below for broken collect2 doesn't work under 4.3+
8863           collect2name=`${CC} -print-prog-name=collect2`
8864           if test -f "$collect2name" &&
8865            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8866           then
8867           # We have reworked collect2
8868           :
8869           else
8870           # We have old collect2
8871           hardcode_direct=unsupported
8872           # It fails to find uninstalled libraries when the uninstalled
8873           # path is not listed in the libpath.  Setting hardcode_minus_L
8874           # to unsupported forces relinking
8875           hardcode_minus_L=yes
8876           hardcode_libdir_flag_spec='-L$libdir'
8877           hardcode_libdir_separator=
8878           fi
8879           ;;
8880         esac
8881         shared_flag='-shared'
8882         if test "$aix_use_runtimelinking" = yes; then
8883           shared_flag="$shared_flag "'${wl}-G'
8884         fi
8885       else
8886         # not using gcc
8887         if test "$host_cpu" = ia64; then
8888         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8889         # chokes on -Wl,-G. The following line is correct:
8890           shared_flag='-G'
8891         else
8892           if test "$aix_use_runtimelinking" = yes; then
8893             shared_flag='${wl}-G'
8894           else
8895             shared_flag='${wl}-bM:SRE'
8896           fi
8897         fi
8898       fi
8899
8900       export_dynamic_flag_spec='${wl}-bexpall'
8901       # It seems that -bexpall does not export symbols beginning with
8902       # underscore (_), so it is better to generate a list of symbols to export.
8903       always_export_symbols=yes
8904       if test "$aix_use_runtimelinking" = yes; then
8905         # Warning - without using the other runtime loading flags (-brtl),
8906         # -berok will link without error, but may produce a broken library.
8907         allow_undefined_flag='-berok'
8908         # Determine the default libpath from the value encoded in an
8909         # empty executable.
8910         cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h.  */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h.  */
8916
8917 int
8918 main ()
8919 {
8920
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8927 case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933   (eval "$ac_link") 2>conftest.er1
8934   ac_status=$?
8935   grep -v '^ *+' conftest.er1 >conftest.err
8936   rm -f conftest.er1
8937   cat conftest.err >&5
8938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); } && {
8940          test -z "$ac_c_werror_flag" ||
8941          test ! -s conftest.err
8942        } && test -s conftest$ac_exeext && {
8943          test "$cross_compiling" = yes ||
8944          $as_test_x conftest$ac_exeext
8945        }; then
8946
8947 lt_aix_libpath_sed='
8948     /Import File Strings/,/^$/ {
8949         /^0/ {
8950             s/^0  *\(.*\)$/\1/
8951             p
8952         }
8953     }'
8954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8955 # Check for a 64-bit object if we didn't find anything.
8956 if test -z "$aix_libpath"; then
8957   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8958 fi
8959 else
8960   $as_echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963
8964 fi
8965
8966 rm -rf conftest.dSYM
8967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8968       conftest$ac_exeext conftest.$ac_ext
8969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8970
8971         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8972         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"
8973       else
8974         if test "$host_cpu" = ia64; then
8975           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8976           allow_undefined_flag="-z nodefs"
8977           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"
8978         else
8979          # Determine the default libpath from the value encoded in an
8980          # empty executable.
8981          cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987
8988 int
8989 main ()
8990 {
8991
8992   ;
8993   return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (ac_try="$ac_link"
8998 case "(($ac_try" in
8999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000   *) ac_try_echo=$ac_try;;
9001 esac
9002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003 $as_echo "$ac_try_echo") >&5
9004   (eval "$ac_link") 2>conftest.er1
9005   ac_status=$?
9006   grep -v '^ *+' conftest.er1 >conftest.err
9007   rm -f conftest.er1
9008   cat conftest.err >&5
9009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); } && {
9011          test -z "$ac_c_werror_flag" ||
9012          test ! -s conftest.err
9013        } && test -s conftest$ac_exeext && {
9014          test "$cross_compiling" = yes ||
9015          $as_test_x conftest$ac_exeext
9016        }; then
9017
9018 lt_aix_libpath_sed='
9019     /Import File Strings/,/^$/ {
9020         /^0/ {
9021             s/^0  *\(.*\)$/\1/
9022             p
9023         }
9024     }'
9025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026 # Check for a 64-bit object if we didn't find anything.
9027 if test -z "$aix_libpath"; then
9028   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9029 fi
9030 else
9031   $as_echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034
9035 fi
9036
9037 rm -rf conftest.dSYM
9038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9039       conftest$ac_exeext conftest.$ac_ext
9040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9041
9042          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9043           # Warning - without using the other run time loading flags,
9044           # -berok will link without error, but may produce a broken library.
9045           no_undefined_flag=' ${wl}-bernotok'
9046           allow_undefined_flag=' ${wl}-berok'
9047           # Exported symbols can be pulled into shared objects from archives
9048           whole_archive_flag_spec='$convenience'
9049           archive_cmds_need_lc=yes
9050           # This is similar to how AIX traditionally builds its shared libraries.
9051           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'
9052         fi
9053       fi
9054       ;;
9055
9056     amigaos*)
9057       case $host_cpu in
9058       powerpc)
9059             # see comment about AmigaOS4 .so support
9060             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9061             archive_expsym_cmds=''
9062         ;;
9063       m68k)
9064             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)'
9065             hardcode_libdir_flag_spec='-L$libdir'
9066             hardcode_minus_L=yes
9067         ;;
9068       esac
9069       ;;
9070
9071     bsdi[45]*)
9072       export_dynamic_flag_spec=-rdynamic
9073       ;;
9074
9075     cygwin* | mingw* | pw32* | cegcc*)
9076       # When not using gcc, we currently assume that we are using
9077       # Microsoft Visual C++.
9078       # hardcode_libdir_flag_spec is actually meaningless, as there is
9079       # no search path for DLLs.
9080       hardcode_libdir_flag_spec=' '
9081       allow_undefined_flag=unsupported
9082       # Tell ltmain to make .lib files, not .a files.
9083       libext=lib
9084       # Tell ltmain to make .dll files, not .so files.
9085       shrext_cmds=".dll"
9086       # FIXME: Setting linknames here is a bad hack.
9087       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9088       # The linker will automatically build a .lib file if we build a DLL.
9089       old_archive_from_new_cmds='true'
9090       # FIXME: Should let the user specify the lib program.
9091       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9092       fix_srcfile_path='`cygpath -w "$srcfile"`'
9093       enable_shared_with_static_runtimes=yes
9094       ;;
9095
9096     darwin* | rhapsody*)
9097
9098
9099   archive_cmds_need_lc=no
9100   hardcode_direct=no
9101   hardcode_automatic=yes
9102   hardcode_shlibpath_var=unsupported
9103   whole_archive_flag_spec=''
9104   link_all_deplibs=yes
9105   allow_undefined_flag="$_lt_dar_allow_undefined"
9106   case $cc_basename in
9107      ifort*) _lt_dar_can_shared=yes ;;
9108      *) _lt_dar_can_shared=$GCC ;;
9109   esac
9110   if test "$_lt_dar_can_shared" = "yes"; then
9111     output_verbose_link_cmd=echo
9112     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9113     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9114     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}"
9115     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}"
9116
9117   else
9118   ld_shlibs=no
9119   fi
9120
9121       ;;
9122
9123     dgux*)
9124       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125       hardcode_libdir_flag_spec='-L$libdir'
9126       hardcode_shlibpath_var=no
9127       ;;
9128
9129     freebsd1*)
9130       ld_shlibs=no
9131       ;;
9132
9133     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9134     # support.  Future versions do this automatically, but an explicit c++rt0.o
9135     # does not break anything, and helps significantly (at the cost of a little
9136     # extra space).
9137     freebsd2.2*)
9138       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9139       hardcode_libdir_flag_spec='-R$libdir'
9140       hardcode_direct=yes
9141       hardcode_shlibpath_var=no
9142       ;;
9143
9144     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9145     freebsd2*)
9146       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9147       hardcode_direct=yes
9148       hardcode_minus_L=yes
9149       hardcode_shlibpath_var=no
9150       ;;
9151
9152     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9153     freebsd* | dragonfly*)
9154       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9155       hardcode_libdir_flag_spec='-R$libdir'
9156       hardcode_direct=yes
9157       hardcode_shlibpath_var=no
9158       ;;
9159
9160     hpux9*)
9161       if test "$GCC" = yes; then
9162         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'
9163       else
9164         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'
9165       fi
9166       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167       hardcode_libdir_separator=:
9168       hardcode_direct=yes
9169
9170       # hardcode_minus_L: Not really in the search PATH,
9171       # but as the default location of the library.
9172       hardcode_minus_L=yes
9173       export_dynamic_flag_spec='${wl}-E'
9174       ;;
9175
9176     hpux10*)
9177       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9178         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9179       else
9180         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9181       fi
9182       if test "$with_gnu_ld" = no; then
9183         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9184         hardcode_libdir_flag_spec_ld='+b $libdir'
9185         hardcode_libdir_separator=:
9186         hardcode_direct=yes
9187         hardcode_direct_absolute=yes
9188         export_dynamic_flag_spec='${wl}-E'
9189         # hardcode_minus_L: Not really in the search PATH,
9190         # but as the default location of the library.
9191         hardcode_minus_L=yes
9192       fi
9193       ;;
9194
9195     hpux11*)
9196       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9197         case $host_cpu in
9198         hppa*64*)
9199           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9200           ;;
9201         ia64*)
9202           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9203           ;;
9204         *)
9205           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9206           ;;
9207         esac
9208       else
9209         case $host_cpu in
9210         hppa*64*)
9211           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9212           ;;
9213         ia64*)
9214           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9215           ;;
9216         *)
9217           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9218           ;;
9219         esac
9220       fi
9221       if test "$with_gnu_ld" = no; then
9222         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9223         hardcode_libdir_separator=:
9224
9225         case $host_cpu in
9226         hppa*64*|ia64*)
9227           hardcode_direct=no
9228           hardcode_shlibpath_var=no
9229           ;;
9230         *)
9231           hardcode_direct=yes
9232           hardcode_direct_absolute=yes
9233           export_dynamic_flag_spec='${wl}-E'
9234
9235           # hardcode_minus_L: Not really in the search PATH,
9236           # but as the default location of the library.
9237           hardcode_minus_L=yes
9238           ;;
9239         esac
9240       fi
9241       ;;
9242
9243     irix5* | irix6* | nonstopux*)
9244       if test "$GCC" = yes; then
9245         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'
9246         # Try to use the -exported_symbol ld option, if it does not
9247         # work, assume that -exports_file does not work either and
9248         # implicitly export all symbols.
9249         save_LDFLAGS="$LDFLAGS"
9250         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9251         cat >conftest.$ac_ext <<_ACEOF
9252 int foo(void) {}
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9256 case "(($ac_try" in
9257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258   *) ac_try_echo=$ac_try;;
9259 esac
9260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9261 $as_echo "$ac_try_echo") >&5
9262   (eval "$ac_link") 2>conftest.er1
9263   ac_status=$?
9264   grep -v '^ *+' conftest.er1 >conftest.err
9265   rm -f conftest.er1
9266   cat conftest.err >&5
9267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); } && {
9269          test -z "$ac_c_werror_flag" ||
9270          test ! -s conftest.err
9271        } && test -s conftest$ac_exeext && {
9272          test "$cross_compiling" = yes ||
9273          $as_test_x conftest$ac_exeext
9274        }; then
9275   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'
9276
9277 else
9278   $as_echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281
9282 fi
9283
9284 rm -rf conftest.dSYM
9285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9286       conftest$ac_exeext conftest.$ac_ext
9287         LDFLAGS="$save_LDFLAGS"
9288       else
9289         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'
9290         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'
9291       fi
9292       archive_cmds_need_lc='no'
9293       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294       hardcode_libdir_separator=:
9295       inherit_rpath=yes
9296       link_all_deplibs=yes
9297       ;;
9298
9299     netbsd*)
9300       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9301         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9302       else
9303         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9304       fi
9305       hardcode_libdir_flag_spec='-R$libdir'
9306       hardcode_direct=yes
9307       hardcode_shlibpath_var=no
9308       ;;
9309
9310     newsos6)
9311       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312       hardcode_direct=yes
9313       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314       hardcode_libdir_separator=:
9315       hardcode_shlibpath_var=no
9316       ;;
9317
9318     *nto* | *qnx*)
9319       ;;
9320
9321     openbsd*)
9322       if test -f /usr/libexec/ld.so; then
9323         hardcode_direct=yes
9324         hardcode_shlibpath_var=no
9325         hardcode_direct_absolute=yes
9326         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9327           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9328           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9329           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9330           export_dynamic_flag_spec='${wl}-E'
9331         else
9332           case $host_os in
9333            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9334              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9335              hardcode_libdir_flag_spec='-R$libdir'
9336              ;;
9337            *)
9338              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9339              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9340              ;;
9341           esac
9342         fi
9343       else
9344         ld_shlibs=no
9345       fi
9346       ;;
9347
9348     os2*)
9349       hardcode_libdir_flag_spec='-L$libdir'
9350       hardcode_minus_L=yes
9351       allow_undefined_flag=unsupported
9352       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'
9353       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9354       ;;
9355
9356     osf3*)
9357       if test "$GCC" = yes; then
9358         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359         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'
9360       else
9361         allow_undefined_flag=' -expect_unresolved \*'
9362         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'
9363       fi
9364       archive_cmds_need_lc='no'
9365       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366       hardcode_libdir_separator=:
9367       ;;
9368
9369     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9370       if test "$GCC" = yes; then
9371         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9372         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'
9373         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374       else
9375         allow_undefined_flag=' -expect_unresolved \*'
9376         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'
9377         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~
9378         $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'
9379
9380         # Both c and cxx compiler support -rpath directly
9381         hardcode_libdir_flag_spec='-rpath $libdir'
9382       fi
9383       archive_cmds_need_lc='no'
9384       hardcode_libdir_separator=:
9385       ;;
9386
9387     solaris*)
9388       no_undefined_flag=' -z defs'
9389       if test "$GCC" = yes; then
9390         wlarc='${wl}'
9391         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9392         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9394       else
9395         case `$CC -V 2>&1` in
9396         *"Compilers 5.0"*)
9397           wlarc=''
9398           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9400           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9401           ;;
9402         *)
9403           wlarc='${wl}'
9404           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9405           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9406           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9407           ;;
9408         esac
9409       fi
9410       hardcode_libdir_flag_spec='-R$libdir'
9411       hardcode_shlibpath_var=no
9412       case $host_os in
9413       solaris2.[0-5] | solaris2.[0-5].*) ;;
9414       *)
9415         # The compiler driver will combine and reorder linker options,
9416         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9417         # but is careful enough not to reorder.
9418         # Supported since Solaris 2.6 (maybe 2.5.1?)
9419         if test "$GCC" = yes; then
9420           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9421         else
9422           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9423         fi
9424         ;;
9425       esac
9426       link_all_deplibs=yes
9427       ;;
9428
9429     sunos4*)
9430       if test "x$host_vendor" = xsequent; then
9431         # Use $CC to link under sequent, because it throws in some extra .o
9432         # files that make .init and .fini sections work.
9433         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9434       else
9435         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9436       fi
9437       hardcode_libdir_flag_spec='-L$libdir'
9438       hardcode_direct=yes
9439       hardcode_minus_L=yes
9440       hardcode_shlibpath_var=no
9441       ;;
9442
9443     sysv4)
9444       case $host_vendor in
9445         sni)
9446           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447           hardcode_direct=yes # is this really true???
9448         ;;
9449         siemens)
9450           ## LD is ld it makes a PLAMLIB
9451           ## CC just makes a GrossModule.
9452           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9453           reload_cmds='$CC -r -o $output$reload_objs'
9454           hardcode_direct=no
9455         ;;
9456         motorola)
9457           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9458           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9459         ;;
9460       esac
9461       runpath_var='LD_RUN_PATH'
9462       hardcode_shlibpath_var=no
9463       ;;
9464
9465     sysv4.3*)
9466       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467       hardcode_shlibpath_var=no
9468       export_dynamic_flag_spec='-Bexport'
9469       ;;
9470
9471     sysv4*MP*)
9472       if test -d /usr/nec; then
9473         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474         hardcode_shlibpath_var=no
9475         runpath_var=LD_RUN_PATH
9476         hardcode_runpath_var=yes
9477         ld_shlibs=yes
9478       fi
9479       ;;
9480
9481     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9482       no_undefined_flag='${wl}-z,text'
9483       archive_cmds_need_lc=no
9484       hardcode_shlibpath_var=no
9485       runpath_var='LD_RUN_PATH'
9486
9487       if test "$GCC" = yes; then
9488         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9489         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9490       else
9491         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493       fi
9494       ;;
9495
9496     sysv5* | sco3.2v5* | sco5v6*)
9497       # Note: We can NOT use -z defs as we might desire, because we do not
9498       # link with -lc, and that would cause any symbols used from libc to
9499       # always be unresolved, which means just about no library would
9500       # ever link correctly.  If we're not using GNU ld we use -z text
9501       # though, which does catch some bad symbols but isn't as heavy-handed
9502       # as -z defs.
9503       no_undefined_flag='${wl}-z,text'
9504       allow_undefined_flag='${wl}-z,nodefs'
9505       archive_cmds_need_lc=no
9506       hardcode_shlibpath_var=no
9507       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9508       hardcode_libdir_separator=':'
9509       link_all_deplibs=yes
9510       export_dynamic_flag_spec='${wl}-Bexport'
9511       runpath_var='LD_RUN_PATH'
9512
9513       if test "$GCC" = yes; then
9514         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9515         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516       else
9517         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519       fi
9520       ;;
9521
9522     uts4*)
9523       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524       hardcode_libdir_flag_spec='-L$libdir'
9525       hardcode_shlibpath_var=no
9526       ;;
9527
9528     *)
9529       ld_shlibs=no
9530       ;;
9531     esac
9532
9533     if test x$host_vendor = xsni; then
9534       case $host in
9535       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9536         export_dynamic_flag_spec='${wl}-Blargedynsym'
9537         ;;
9538       esac
9539     fi
9540   fi
9541
9542 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9543 $as_echo "$ld_shlibs" >&6; }
9544 test "$ld_shlibs" = no && can_build_shared=no
9545
9546 with_gnu_ld=$with_gnu_ld
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562 #
9563 # Do we need to explicitly link libc?
9564 #
9565 case "x$archive_cmds_need_lc" in
9566 x|xyes)
9567   # Assume -lc should be added
9568   archive_cmds_need_lc=yes
9569
9570   if test "$enable_shared" = yes && test "$GCC" = yes; then
9571     case $archive_cmds in
9572     *'~'*)
9573       # FIXME: we may have to deal with multi-command sequences.
9574       ;;
9575     '$CC '*)
9576       # Test whether the compiler implicitly links with -lc since on some
9577       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9578       # to ld, don't add -lc before -lgcc.
9579       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9580 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9581       $RM conftest*
9582       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9583
9584       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9585   (eval $ac_compile) 2>&5
9586   ac_status=$?
9587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } 2>conftest.err; then
9589         soname=conftest
9590         lib=conftest
9591         libobjs=conftest.$ac_objext
9592         deplibs=
9593         wl=$lt_prog_compiler_wl
9594         pic_flag=$lt_prog_compiler_pic
9595         compiler_flags=-v
9596         linker_flags=-v
9597         verstring=
9598         output_objdir=.
9599         libname=conftest
9600         lt_save_allow_undefined_flag=$allow_undefined_flag
9601         allow_undefined_flag=
9602         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9603   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9604   ac_status=$?
9605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }
9607         then
9608           archive_cmds_need_lc=no
9609         else
9610           archive_cmds_need_lc=yes
9611         fi
9612         allow_undefined_flag=$lt_save_allow_undefined_flag
9613       else
9614         cat conftest.err 1>&5
9615       fi
9616       $RM conftest*
9617       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9618 $as_echo "$archive_cmds_need_lc" >&6; }
9619       ;;
9620     esac
9621   fi
9622   ;;
9623 esac
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
9779
9780
9781   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9782 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9783
9784 if test "$GCC" = yes; then
9785   case $host_os in
9786     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9787     *) lt_awk_arg="/^libraries:/" ;;
9788   esac
9789   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9790   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9791     # if the path contains ";" then we assume it to be the separator
9792     # otherwise default to the standard path separator (i.e. ":") - it is
9793     # assumed that no part of a normal pathname contains ";" but that should
9794     # okay in the real world where ";" in dirpaths is itself problematic.
9795     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9796   else
9797     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9798   fi
9799   # Ok, now we have the path, separated by spaces, we can step through it
9800   # and add multilib dir if necessary.
9801   lt_tmp_lt_search_path_spec=
9802   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9803   for lt_sys_path in $lt_search_path_spec; do
9804     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9805       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9806     else
9807       test -d "$lt_sys_path" && \
9808         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9809     fi
9810   done
9811   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9812 BEGIN {RS=" "; FS="/|\n";} {
9813   lt_foo="";
9814   lt_count=0;
9815   for (lt_i = NF; lt_i > 0; lt_i--) {
9816     if ($lt_i != "" && $lt_i != ".") {
9817       if ($lt_i == "..") {
9818         lt_count++;
9819       } else {
9820         if (lt_count == 0) {
9821           lt_foo="/" $lt_i lt_foo;
9822         } else {
9823           lt_count--;
9824         }
9825       }
9826     }
9827   }
9828   if (lt_foo != "") { lt_freq[lt_foo]++; }
9829   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9830 }'`
9831   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9832 else
9833   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9834 fi
9835 library_names_spec=
9836 libname_spec='lib$name'
9837 soname_spec=
9838 shrext_cmds=".so"
9839 postinstall_cmds=
9840 postuninstall_cmds=
9841 finish_cmds=
9842 finish_eval=
9843 shlibpath_var=
9844 shlibpath_overrides_runpath=unknown
9845 version_type=none
9846 dynamic_linker="$host_os ld.so"
9847 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9848 need_lib_prefix=unknown
9849 hardcode_into_libs=no
9850
9851 # when you set need_version to no, make sure it does not cause -set_version
9852 # flags to be left without arguments
9853 need_version=unknown
9854
9855 case $host_os in
9856 aix3*)
9857   version_type=linux
9858   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9859   shlibpath_var=LIBPATH
9860
9861   # AIX 3 has no versioning support, so we append a major version to the name.
9862   soname_spec='${libname}${release}${shared_ext}$major'
9863   ;;
9864
9865 aix[4-9]*)
9866   version_type=linux
9867   need_lib_prefix=no
9868   need_version=no
9869   hardcode_into_libs=yes
9870   if test "$host_cpu" = ia64; then
9871     # AIX 5 supports IA64
9872     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9873     shlibpath_var=LD_LIBRARY_PATH
9874   else
9875     # With GCC up to 2.95.x, collect2 would create an import file
9876     # for dependence libraries.  The import file would start with
9877     # the line `#! .'.  This would cause the generated library to
9878     # depend on `.', always an invalid library.  This was fixed in
9879     # development snapshots of GCC prior to 3.0.
9880     case $host_os in
9881       aix4 | aix4.[01] | aix4.[01].*)
9882       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9883            echo ' yes '
9884            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9885         :
9886       else
9887         can_build_shared=no
9888       fi
9889       ;;
9890     esac
9891     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9892     # soname into executable. Probably we can add versioning support to
9893     # collect2, so additional links can be useful in future.
9894     if test "$aix_use_runtimelinking" = yes; then
9895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9896       # instead of lib<name>.a to let people know that these are not
9897       # typical AIX shared libraries.
9898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899     else
9900       # We preserve .a as extension for shared libraries through AIX4.2
9901       # and later when we are not doing run time linking.
9902       library_names_spec='${libname}${release}.a $libname.a'
9903       soname_spec='${libname}${release}${shared_ext}$major'
9904     fi
9905     shlibpath_var=LIBPATH
9906   fi
9907   ;;
9908
9909 amigaos*)
9910   case $host_cpu in
9911   powerpc)
9912     # Since July 2007 AmigaOS4 officially supports .so libraries.
9913     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915     ;;
9916   m68k)
9917     library_names_spec='$libname.ixlibrary $libname.a'
9918     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9919     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'
9920     ;;
9921   esac
9922   ;;
9923
9924 beos*)
9925   library_names_spec='${libname}${shared_ext}'
9926   dynamic_linker="$host_os ld.so"
9927   shlibpath_var=LIBRARY_PATH
9928   ;;
9929
9930 bsdi[45]*)
9931   version_type=linux
9932   need_version=no
9933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934   soname_spec='${libname}${release}${shared_ext}$major'
9935   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9936   shlibpath_var=LD_LIBRARY_PATH
9937   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9938   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9939   # the default ld.so.conf also contains /usr/contrib/lib and
9940   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9941   # libtool to hard-code these into programs
9942   ;;
9943
9944 cygwin* | mingw* | pw32* | cegcc*)
9945   version_type=windows
9946   shrext_cmds=".dll"
9947   need_version=no
9948   need_lib_prefix=no
9949
9950   case $GCC,$host_os in
9951   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9952     library_names_spec='$libname.dll.a'
9953     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9954     postinstall_cmds='base_file=`basename \${file}`~
9955       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9956       dldir=$destdir/`dirname \$dlpath`~
9957       test -d \$dldir || mkdir -p \$dldir~
9958       $install_prog $dir/$dlname \$dldir/$dlname~
9959       chmod a+x \$dldir/$dlname~
9960       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9961         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9962       fi'
9963     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9964       dlpath=$dir/\$dldll~
9965        $RM \$dlpath'
9966     shlibpath_overrides_runpath=yes
9967
9968     case $host_os in
9969     cygwin*)
9970       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9971       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9973       ;;
9974     mingw* | cegcc*)
9975       # MinGW DLLs use traditional 'lib' prefix
9976       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9977       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9978       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9979         # It is most probably a Windows format PATH printed by
9980         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9981         # path with ; separators, and with drive letters. We can handle the
9982         # drive letters (cygwin fileutils understands them), so leave them,
9983         # especially as we might pass files found there to a mingw objdump,
9984         # which wouldn't understand a cygwinified path. Ahh.
9985         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9986       else
9987         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9988       fi
9989       ;;
9990     pw32*)
9991       # pw32 DLLs use 'pw' prefix rather than 'lib'
9992       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993       ;;
9994     esac
9995     ;;
9996
9997   *)
9998     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9999     ;;
10000   esac
10001   dynamic_linker='Win32 ld.exe'
10002   # FIXME: first we should search . and the directory the executable is in
10003   shlibpath_var=PATH
10004   ;;
10005
10006 darwin* | rhapsody*)
10007   dynamic_linker="$host_os dyld"
10008   version_type=darwin
10009   need_lib_prefix=no
10010   need_version=no
10011   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10012   soname_spec='${libname}${release}${major}$shared_ext'
10013   shlibpath_overrides_runpath=yes
10014   shlibpath_var=DYLD_LIBRARY_PATH
10015   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10016
10017   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10018   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10019   ;;
10020
10021 dgux*)
10022   version_type=linux
10023   need_lib_prefix=no
10024   need_version=no
10025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026   soname_spec='${libname}${release}${shared_ext}$major'
10027   shlibpath_var=LD_LIBRARY_PATH
10028   ;;
10029
10030 freebsd1*)
10031   dynamic_linker=no
10032   ;;
10033
10034 freebsd* | dragonfly*)
10035   # DragonFly does not have aout.  When/if they implement a new
10036   # versioning mechanism, adjust this.
10037   if test -x /usr/bin/objformat; then
10038     objformat=`/usr/bin/objformat`
10039   else
10040     case $host_os in
10041     freebsd[123]*) objformat=aout ;;
10042     *) objformat=elf ;;
10043     esac
10044   fi
10045   version_type=freebsd-$objformat
10046   case $version_type in
10047     freebsd-elf*)
10048       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10049       need_version=no
10050       need_lib_prefix=no
10051       ;;
10052     freebsd-*)
10053       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10054       need_version=yes
10055       ;;
10056   esac
10057   shlibpath_var=LD_LIBRARY_PATH
10058   case $host_os in
10059   freebsd2*)
10060     shlibpath_overrides_runpath=yes
10061     ;;
10062   freebsd3.[01]* | freebsdelf3.[01]*)
10063     shlibpath_overrides_runpath=yes
10064     hardcode_into_libs=yes
10065     ;;
10066   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10067   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10068     shlibpath_overrides_runpath=no
10069     hardcode_into_libs=yes
10070     ;;
10071   *) # from 4.6 on, and DragonFly
10072     shlibpath_overrides_runpath=yes
10073     hardcode_into_libs=yes
10074     ;;
10075   esac
10076   ;;
10077
10078 gnu*)
10079   version_type=linux
10080   need_lib_prefix=no
10081   need_version=no
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   shlibpath_var=LD_LIBRARY_PATH
10085   hardcode_into_libs=yes
10086   ;;
10087
10088 hpux9* | hpux10* | hpux11*)
10089   # Give a soname corresponding to the major version so that dld.sl refuses to
10090   # link against other versions.
10091   version_type=sunos
10092   need_lib_prefix=no
10093   need_version=no
10094   case $host_cpu in
10095   ia64*)
10096     shrext_cmds='.so'
10097     hardcode_into_libs=yes
10098     dynamic_linker="$host_os dld.so"
10099     shlibpath_var=LD_LIBRARY_PATH
10100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102     soname_spec='${libname}${release}${shared_ext}$major'
10103     if test "X$HPUX_IA64_MODE" = X32; then
10104       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10105     else
10106       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10107     fi
10108     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10109     ;;
10110   hppa*64*)
10111     shrext_cmds='.sl'
10112     hardcode_into_libs=yes
10113     dynamic_linker="$host_os dld.sl"
10114     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10115     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117     soname_spec='${libname}${release}${shared_ext}$major'
10118     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10120     ;;
10121   *)
10122     shrext_cmds='.sl'
10123     dynamic_linker="$host_os dld.sl"
10124     shlibpath_var=SHLIB_PATH
10125     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127     soname_spec='${libname}${release}${shared_ext}$major'
10128     ;;
10129   esac
10130   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10131   postinstall_cmds='chmod 555 $lib'
10132   ;;
10133
10134 interix[3-9]*)
10135   version_type=linux
10136   need_lib_prefix=no
10137   need_version=no
10138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10139   soname_spec='${libname}${release}${shared_ext}$major'
10140   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10141   shlibpath_var=LD_LIBRARY_PATH
10142   shlibpath_overrides_runpath=no
10143   hardcode_into_libs=yes
10144   ;;
10145
10146 irix5* | irix6* | nonstopux*)
10147   case $host_os in
10148     nonstopux*) version_type=nonstopux ;;
10149     *)
10150         if test "$lt_cv_prog_gnu_ld" = yes; then
10151                 version_type=linux
10152         else
10153                 version_type=irix
10154         fi ;;
10155   esac
10156   need_lib_prefix=no
10157   need_version=no
10158   soname_spec='${libname}${release}${shared_ext}$major'
10159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10160   case $host_os in
10161   irix5* | nonstopux*)
10162     libsuff= shlibsuff=
10163     ;;
10164   *)
10165     case $LD in # libtool.m4 will add one of these switches to LD
10166     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10167       libsuff= shlibsuff= libmagic=32-bit;;
10168     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10169       libsuff=32 shlibsuff=N32 libmagic=N32;;
10170     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10171       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10172     *) libsuff= shlibsuff= libmagic=never-match;;
10173     esac
10174     ;;
10175   esac
10176   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10177   shlibpath_overrides_runpath=no
10178   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10179   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10180   hardcode_into_libs=yes
10181   ;;
10182
10183 # No shared lib support for Linux oldld, aout, or coff.
10184 linux*oldld* | linux*aout* | linux*coff*)
10185   dynamic_linker=no
10186   ;;
10187
10188 # This must be Linux ELF.
10189 linux* | k*bsd*-gnu)
10190   version_type=linux
10191   need_lib_prefix=no
10192   need_version=no
10193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194   soname_spec='${libname}${release}${shared_ext}$major'
10195   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10196   shlibpath_var=LD_LIBRARY_PATH
10197   shlibpath_overrides_runpath=no
10198   # Some binutils ld are patched to set DT_RUNPATH
10199   save_LDFLAGS=$LDFLAGS
10200   save_libdir=$libdir
10201   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10202        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10203   cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209
10210 int
10211 main ()
10212 {
10213
10214   ;
10215   return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222   *) ac_try_echo=$ac_try;;
10223 esac
10224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225 $as_echo "$ac_try_echo") >&5
10226   (eval "$ac_link") 2>conftest.er1
10227   ac_status=$?
10228   grep -v '^ *+' conftest.er1 >conftest.err
10229   rm -f conftest.er1
10230   cat conftest.err >&5
10231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } && {
10233          test -z "$ac_c_werror_flag" ||
10234          test ! -s conftest.err
10235        } && test -s conftest$ac_exeext && {
10236          test "$cross_compiling" = yes ||
10237          $as_test_x conftest$ac_exeext
10238        }; then
10239   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10240   shlibpath_overrides_runpath=yes
10241 fi
10242
10243 else
10244   $as_echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10246
10247
10248 fi
10249
10250 rm -rf conftest.dSYM
10251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10252       conftest$ac_exeext conftest.$ac_ext
10253   LDFLAGS=$save_LDFLAGS
10254   libdir=$save_libdir
10255
10256   # This implies no fast_install, which is unacceptable.
10257   # Some rework will be needed to allow for fast_install
10258   # before this can be enabled.
10259   hardcode_into_libs=yes
10260
10261   # Add ABI-specific directories to the system library path.
10262   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10263
10264   # Append ld.so.conf contents to the search path
10265   if test -f /etc/ld.so.conf; then
10266     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' ' '`
10267     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10268   fi
10269
10270   # We used to test for /lib/ld.so.1 and disable shared libraries on
10271   # powerpc, because MkLinux only supported shared libraries with the
10272   # GNU dynamic linker.  Since this was broken with cross compilers,
10273   # most powerpc-linux boxes support dynamic linking these days and
10274   # people can always --disable-shared, the test was removed, and we
10275   # assume the GNU/Linux dynamic linker is in use.
10276   dynamic_linker='GNU/Linux ld.so'
10277   ;;
10278
10279 netbsd*)
10280   version_type=sunos
10281   need_lib_prefix=no
10282   need_version=no
10283   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10285     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10286     dynamic_linker='NetBSD (a.out) ld.so'
10287   else
10288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10289     soname_spec='${libname}${release}${shared_ext}$major'
10290     dynamic_linker='NetBSD ld.elf_so'
10291   fi
10292   shlibpath_var=LD_LIBRARY_PATH
10293   shlibpath_overrides_runpath=yes
10294   hardcode_into_libs=yes
10295   ;;
10296
10297 newsos6)
10298   version_type=linux
10299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300   shlibpath_var=LD_LIBRARY_PATH
10301   shlibpath_overrides_runpath=yes
10302   ;;
10303
10304 *nto* | *qnx*)
10305   version_type=qnx
10306   need_lib_prefix=no
10307   need_version=no
10308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309   soname_spec='${libname}${release}${shared_ext}$major'
10310   shlibpath_var=LD_LIBRARY_PATH
10311   shlibpath_overrides_runpath=no
10312   hardcode_into_libs=yes
10313   dynamic_linker='ldqnx.so'
10314   ;;
10315
10316 openbsd*)
10317   version_type=sunos
10318   sys_lib_dlsearch_path_spec="/usr/lib"
10319   need_lib_prefix=no
10320   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10321   case $host_os in
10322     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10323     *)                          need_version=no  ;;
10324   esac
10325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10327   shlibpath_var=LD_LIBRARY_PATH
10328   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10329     case $host_os in
10330       openbsd2.[89] | openbsd2.[89].*)
10331         shlibpath_overrides_runpath=no
10332         ;;
10333       *)
10334         shlibpath_overrides_runpath=yes
10335         ;;
10336       esac
10337   else
10338     shlibpath_overrides_runpath=yes
10339   fi
10340   ;;
10341
10342 os2*)
10343   libname_spec='$name'
10344   shrext_cmds=".dll"
10345   need_lib_prefix=no
10346   library_names_spec='$libname${shared_ext} $libname.a'
10347   dynamic_linker='OS/2 ld.exe'
10348   shlibpath_var=LIBPATH
10349   ;;
10350
10351 osf3* | osf4* | osf5*)
10352   version_type=osf
10353   need_lib_prefix=no
10354   need_version=no
10355   soname_spec='${libname}${release}${shared_ext}$major'
10356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357   shlibpath_var=LD_LIBRARY_PATH
10358   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10359   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10360   ;;
10361
10362 rdos*)
10363   dynamic_linker=no
10364   ;;
10365
10366 solaris*)
10367   version_type=linux
10368   need_lib_prefix=no
10369   need_version=no
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371   soname_spec='${libname}${release}${shared_ext}$major'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   shlibpath_overrides_runpath=yes
10374   hardcode_into_libs=yes
10375   # ldd complains unless libraries are executable
10376   postinstall_cmds='chmod +x $lib'
10377   ;;
10378
10379 sunos4*)
10380   version_type=sunos
10381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10382   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10383   shlibpath_var=LD_LIBRARY_PATH
10384   shlibpath_overrides_runpath=yes
10385   if test "$with_gnu_ld" = yes; then
10386     need_lib_prefix=no
10387   fi
10388   need_version=yes
10389   ;;
10390
10391 sysv4 | sysv4.3*)
10392   version_type=linux
10393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394   soname_spec='${libname}${release}${shared_ext}$major'
10395   shlibpath_var=LD_LIBRARY_PATH
10396   case $host_vendor in
10397     sni)
10398       shlibpath_overrides_runpath=no
10399       need_lib_prefix=no
10400       runpath_var=LD_RUN_PATH
10401       ;;
10402     siemens)
10403       need_lib_prefix=no
10404       ;;
10405     motorola)
10406       need_lib_prefix=no
10407       need_version=no
10408       shlibpath_overrides_runpath=no
10409       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10410       ;;
10411   esac
10412   ;;
10413
10414 sysv4*MP*)
10415   if test -d /usr/nec ;then
10416     version_type=linux
10417     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10418     soname_spec='$libname${shared_ext}.$major'
10419     shlibpath_var=LD_LIBRARY_PATH
10420   fi
10421   ;;
10422
10423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10424   version_type=freebsd-elf
10425   need_lib_prefix=no
10426   need_version=no
10427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10428   soname_spec='${libname}${release}${shared_ext}$major'
10429   shlibpath_var=LD_LIBRARY_PATH
10430   shlibpath_overrides_runpath=yes
10431   hardcode_into_libs=yes
10432   if test "$with_gnu_ld" = yes; then
10433     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10434   else
10435     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10436     case $host_os in
10437       sco3.2v5*)
10438         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10439         ;;
10440     esac
10441   fi
10442   sys_lib_dlsearch_path_spec='/usr/lib'
10443   ;;
10444
10445 tpf*)
10446   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10447   version_type=linux
10448   need_lib_prefix=no
10449   need_version=no
10450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451   shlibpath_var=LD_LIBRARY_PATH
10452   shlibpath_overrides_runpath=no
10453   hardcode_into_libs=yes
10454   ;;
10455
10456 uts4*)
10457   version_type=linux
10458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459   soname_spec='${libname}${release}${shared_ext}$major'
10460   shlibpath_var=LD_LIBRARY_PATH
10461   ;;
10462
10463 *)
10464   dynamic_linker=no
10465   ;;
10466 esac
10467 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10468 $as_echo "$dynamic_linker" >&6; }
10469 test "$dynamic_linker" = no && can_build_shared=no
10470
10471 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10472 if test "$GCC" = yes; then
10473   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10474 fi
10475
10476 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10477   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10478 fi
10479 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10480   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10481 fi
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
10567
10568
10569   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10570 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10571 hardcode_action=
10572 if test -n "$hardcode_libdir_flag_spec" ||
10573    test -n "$runpath_var" ||
10574    test "X$hardcode_automatic" = "Xyes" ; then
10575
10576   # We can hardcode non-existent directories.
10577   if test "$hardcode_direct" != no &&
10578      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10579      # have to relink, otherwise we might link with an installed library
10580      # when we should be linking with a yet-to-be-installed one
10581      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10582      test "$hardcode_minus_L" != no; then
10583     # Linking always hardcodes the temporary library directory.
10584     hardcode_action=relink
10585   else
10586     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10587     hardcode_action=immediate
10588   fi
10589 else
10590   # We cannot hardcode anything, or else we can only hardcode existing
10591   # directories.
10592   hardcode_action=unsupported
10593 fi
10594 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10595 $as_echo "$hardcode_action" >&6; }
10596
10597 if test "$hardcode_action" = relink ||
10598    test "$inherit_rpath" = yes; then
10599   # Fast installation is not supported
10600   enable_fast_install=no
10601 elif test "$shlibpath_overrides_runpath" = yes ||
10602      test "$enable_shared" = no; then
10603   # Fast installation is not necessary
10604   enable_fast_install=needless
10605 fi
10606
10607
10608
10609
10610
10611
10612   if test "x$enable_dlopen" != xyes; then
10613   enable_dlopen=unknown
10614   enable_dlopen_self=unknown
10615   enable_dlopen_self_static=unknown
10616 else
10617   lt_cv_dlopen=no
10618   lt_cv_dlopen_libs=
10619
10620   case $host_os in
10621   beos*)
10622     lt_cv_dlopen="load_add_on"
10623     lt_cv_dlopen_libs=
10624     lt_cv_dlopen_self=yes
10625     ;;
10626
10627   mingw* | pw32* | cegcc*)
10628     lt_cv_dlopen="LoadLibrary"
10629     lt_cv_dlopen_libs=
10630     ;;
10631
10632   cygwin*)
10633     lt_cv_dlopen="dlopen"
10634     lt_cv_dlopen_libs=
10635     ;;
10636
10637   darwin*)
10638   # if libdl is installed we need to link against it
10639     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10642   $as_echo_n "(cached) " >&6
10643 else
10644   ac_check_lib_save_LIBS=$LIBS
10645 LIBS="-ldl  $LIBS"
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652
10653 /* Override any GCC internal prototype to avoid an error.
10654    Use char because int might match the return type of a GCC
10655    builtin and then its argument prototype would still apply.  */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char dlopen ();
10660 int
10661 main ()
10662 {
10663 return dlopen ();
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 rm -f conftest.$ac_objext conftest$ac_exeext
10669 if { (ac_try="$ac_link"
10670 case "(($ac_try" in
10671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672   *) ac_try_echo=$ac_try;;
10673 esac
10674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10675 $as_echo "$ac_try_echo") >&5
10676   (eval "$ac_link") 2>conftest.er1
10677   ac_status=$?
10678   grep -v '^ *+' conftest.er1 >conftest.err
10679   rm -f conftest.er1
10680   cat conftest.err >&5
10681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); } && {
10683          test -z "$ac_c_werror_flag" ||
10684          test ! -s conftest.err
10685        } && test -s conftest$ac_exeext && {
10686          test "$cross_compiling" = yes ||
10687          $as_test_x conftest$ac_exeext
10688        }; then
10689   ac_cv_lib_dl_dlopen=yes
10690 else
10691   $as_echo "$as_me: failed program was:" >&5
10692 sed 's/^/| /' conftest.$ac_ext >&5
10693
10694         ac_cv_lib_dl_dlopen=no
10695 fi
10696
10697 rm -rf conftest.dSYM
10698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10699       conftest$ac_exeext conftest.$ac_ext
10700 LIBS=$ac_check_lib_save_LIBS
10701 fi
10702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10703 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10704 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10705   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10706 else
10707
10708     lt_cv_dlopen="dyld"
10709     lt_cv_dlopen_libs=
10710     lt_cv_dlopen_self=yes
10711
10712 fi
10713
10714     ;;
10715
10716   *)
10717     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10718 $as_echo_n "checking for shl_load... " >&6; }
10719 if test "${ac_cv_func_shl_load+set}" = set; then
10720   $as_echo_n "(cached) " >&6
10721 else
10722   cat >conftest.$ac_ext <<_ACEOF
10723 /* confdefs.h.  */
10724 _ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h.  */
10728 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10730 #define shl_load innocuous_shl_load
10731
10732 /* System header to define __stub macros and hopefully few prototypes,
10733     which can conflict with char shl_load (); below.
10734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10735     <limits.h> exists even on freestanding compilers.  */
10736
10737 #ifdef __STDC__
10738 # include <limits.h>
10739 #else
10740 # include <assert.h>
10741 #endif
10742
10743 #undef shl_load
10744
10745 /* Override any GCC internal prototype to avoid an error.
10746    Use char because int might match the return type of a GCC
10747    builtin and then its argument prototype would still apply.  */
10748 #ifdef __cplusplus
10749 extern "C"
10750 #endif
10751 char shl_load ();
10752 /* The GNU C library defines this for functions which it implements
10753     to always fail with ENOSYS.  Some functions are actually named
10754     something starting with __ and the normal name is an alias.  */
10755 #if defined __stub_shl_load || defined __stub___shl_load
10756 choke me
10757 #endif
10758
10759 int
10760 main ()
10761 {
10762 return shl_load ();
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
10769 case "(($ac_try" in
10770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771   *) ac_try_echo=$ac_try;;
10772 esac
10773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10774 $as_echo "$ac_try_echo") >&5
10775   (eval "$ac_link") 2>conftest.er1
10776   ac_status=$?
10777   grep -v '^ *+' conftest.er1 >conftest.err
10778   rm -f conftest.er1
10779   cat conftest.err >&5
10780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); } && {
10782          test -z "$ac_c_werror_flag" ||
10783          test ! -s conftest.err
10784        } && test -s conftest$ac_exeext && {
10785          test "$cross_compiling" = yes ||
10786          $as_test_x conftest$ac_exeext
10787        }; then
10788   ac_cv_func_shl_load=yes
10789 else
10790   $as_echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793         ac_cv_func_shl_load=no
10794 fi
10795
10796 rm -rf conftest.dSYM
10797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798       conftest$ac_exeext conftest.$ac_ext
10799 fi
10800 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10801 $as_echo "$ac_cv_func_shl_load" >&6; }
10802 if test "x$ac_cv_func_shl_load" = x""yes; then
10803   lt_cv_dlopen="shl_load"
10804 else
10805   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10806 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10807 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10808   $as_echo_n "(cached) " >&6
10809 else
10810   ac_check_lib_save_LIBS=$LIBS
10811 LIBS="-ldld  $LIBS"
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h.  */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h.  */
10818
10819 /* Override any GCC internal prototype to avoid an error.
10820    Use char because int might match the return type of a GCC
10821    builtin and then its argument prototype would still apply.  */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 char shl_load ();
10826 int
10827 main ()
10828 {
10829 return shl_load ();
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (ac_try="$ac_link"
10836 case "(($ac_try" in
10837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838   *) ac_try_echo=$ac_try;;
10839 esac
10840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10841 $as_echo "$ac_try_echo") >&5
10842   (eval "$ac_link") 2>conftest.er1
10843   ac_status=$?
10844   grep -v '^ *+' conftest.er1 >conftest.err
10845   rm -f conftest.er1
10846   cat conftest.err >&5
10847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); } && {
10849          test -z "$ac_c_werror_flag" ||
10850          test ! -s conftest.err
10851        } && test -s conftest$ac_exeext && {
10852          test "$cross_compiling" = yes ||
10853          $as_test_x conftest$ac_exeext
10854        }; then
10855   ac_cv_lib_dld_shl_load=yes
10856 else
10857   $as_echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.$ac_ext >&5
10859
10860         ac_cv_lib_dld_shl_load=no
10861 fi
10862
10863 rm -rf conftest.dSYM
10864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10865       conftest$ac_exeext conftest.$ac_ext
10866 LIBS=$ac_check_lib_save_LIBS
10867 fi
10868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10869 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10870 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10871   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10872 else
10873   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10874 $as_echo_n "checking for dlopen... " >&6; }
10875 if test "${ac_cv_func_dlopen+set}" = set; then
10876   $as_echo_n "(cached) " >&6
10877 else
10878   cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10886 #define dlopen innocuous_dlopen
10887
10888 /* System header to define __stub macros and hopefully few prototypes,
10889     which can conflict with char dlopen (); below.
10890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10891     <limits.h> exists even on freestanding compilers.  */
10892
10893 #ifdef __STDC__
10894 # include <limits.h>
10895 #else
10896 # include <assert.h>
10897 #endif
10898
10899 #undef dlopen
10900
10901 /* Override any GCC internal prototype to avoid an error.
10902    Use char because int might match the return type of a GCC
10903    builtin and then its argument prototype would still apply.  */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char dlopen ();
10908 /* The GNU C library defines this for functions which it implements
10909     to always fail with ENOSYS.  Some functions are actually named
10910     something starting with __ and the normal name is an alias.  */
10911 #if defined __stub_dlopen || defined __stub___dlopen
10912 choke me
10913 #endif
10914
10915 int
10916 main ()
10917 {
10918 return dlopen ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930 $as_echo "$ac_try_echo") >&5
10931   (eval "$ac_link") 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } && {
10938          test -z "$ac_c_werror_flag" ||
10939          test ! -s conftest.err
10940        } && test -s conftest$ac_exeext && {
10941          test "$cross_compiling" = yes ||
10942          $as_test_x conftest$ac_exeext
10943        }; then
10944   ac_cv_func_dlopen=yes
10945 else
10946   $as_echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949         ac_cv_func_dlopen=no
10950 fi
10951
10952 rm -rf conftest.dSYM
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954       conftest$ac_exeext conftest.$ac_ext
10955 fi
10956 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10957 $as_echo "$ac_cv_func_dlopen" >&6; }
10958 if test "x$ac_cv_func_dlopen" = x""yes; then
10959   lt_cv_dlopen="dlopen"
10960 else
10961   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10962 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10964   $as_echo_n "(cached) " >&6
10965 else
10966   ac_check_lib_save_LIBS=$LIBS
10967 LIBS="-ldl  $LIBS"
10968 cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974
10975 /* Override any GCC internal prototype to avoid an error.
10976    Use char because int might match the return type of a GCC
10977    builtin and then its argument prototype would still apply.  */
10978 #ifdef __cplusplus
10979 extern "C"
10980 #endif
10981 char dlopen ();
10982 int
10983 main ()
10984 {
10985 return dlopen ();
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10997 $as_echo "$ac_try_echo") >&5
10998   (eval "$ac_link") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } && {
11005          test -z "$ac_c_werror_flag" ||
11006          test ! -s conftest.err
11007        } && test -s conftest$ac_exeext && {
11008          test "$cross_compiling" = yes ||
11009          $as_test_x conftest$ac_exeext
11010        }; then
11011   ac_cv_lib_dl_dlopen=yes
11012 else
11013   $as_echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016         ac_cv_lib_dl_dlopen=no
11017 fi
11018
11019 rm -rf conftest.dSYM
11020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11021       conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11023 fi
11024 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11025 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11026 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11027   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11028 else
11029   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11030 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11031 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11032   $as_echo_n "(cached) " >&6
11033 else
11034   ac_check_lib_save_LIBS=$LIBS
11035 LIBS="-lsvld  $LIBS"
11036 cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h.  */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h.  */
11042
11043 /* Override any GCC internal prototype to avoid an error.
11044    Use char because int might match the return type of a GCC
11045    builtin and then its argument prototype would still apply.  */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char dlopen ();
11050 int
11051 main ()
11052 {
11053 return dlopen ();
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066   (eval "$ac_link") 2>conftest.er1
11067   ac_status=$?
11068   grep -v '^ *+' conftest.er1 >conftest.err
11069   rm -f conftest.er1
11070   cat conftest.err >&5
11071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } && {
11073          test -z "$ac_c_werror_flag" ||
11074          test ! -s conftest.err
11075        } && test -s conftest$ac_exeext && {
11076          test "$cross_compiling" = yes ||
11077          $as_test_x conftest$ac_exeext
11078        }; then
11079   ac_cv_lib_svld_dlopen=yes
11080 else
11081   $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11083
11084         ac_cv_lib_svld_dlopen=no
11085 fi
11086
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089       conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11091 fi
11092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11093 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11094 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11095   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11096 else
11097   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11098 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11099 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11100   $as_echo_n "(cached) " >&6
11101 else
11102   ac_check_lib_save_LIBS=$LIBS
11103 LIBS="-ldld  $LIBS"
11104 cat >conftest.$ac_ext <<_ACEOF
11105 /* confdefs.h.  */
11106 _ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h.  */
11110
11111 /* Override any GCC internal prototype to avoid an error.
11112    Use char because int might match the return type of a GCC
11113    builtin and then its argument prototype would still apply.  */
11114 #ifdef __cplusplus
11115 extern "C"
11116 #endif
11117 char dld_link ();
11118 int
11119 main ()
11120 {
11121 return dld_link ();
11122   ;
11123   return 0;
11124 }
11125 _ACEOF
11126 rm -f conftest.$ac_objext conftest$ac_exeext
11127 if { (ac_try="$ac_link"
11128 case "(($ac_try" in
11129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130   *) ac_try_echo=$ac_try;;
11131 esac
11132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11133 $as_echo "$ac_try_echo") >&5
11134   (eval "$ac_link") 2>conftest.er1
11135   ac_status=$?
11136   grep -v '^ *+' conftest.er1 >conftest.err
11137   rm -f conftest.er1
11138   cat conftest.err >&5
11139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); } && {
11141          test -z "$ac_c_werror_flag" ||
11142          test ! -s conftest.err
11143        } && test -s conftest$ac_exeext && {
11144          test "$cross_compiling" = yes ||
11145          $as_test_x conftest$ac_exeext
11146        }; then
11147   ac_cv_lib_dld_dld_link=yes
11148 else
11149   $as_echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152         ac_cv_lib_dld_dld_link=no
11153 fi
11154
11155 rm -rf conftest.dSYM
11156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11157       conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11159 fi
11160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11161 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11162 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11163   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11164 fi
11165
11166
11167 fi
11168
11169
11170 fi
11171
11172
11173 fi
11174
11175
11176 fi
11177
11178
11179 fi
11180
11181     ;;
11182   esac
11183
11184   if test "x$lt_cv_dlopen" != xno; then
11185     enable_dlopen=yes
11186   else
11187     enable_dlopen=no
11188   fi
11189
11190   case $lt_cv_dlopen in
11191   dlopen)
11192     save_CPPFLAGS="$CPPFLAGS"
11193     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11194
11195     save_LDFLAGS="$LDFLAGS"
11196     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11197
11198     save_LIBS="$LIBS"
11199     LIBS="$lt_cv_dlopen_libs $LIBS"
11200
11201     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11202 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11203 if test "${lt_cv_dlopen_self+set}" = set; then
11204   $as_echo_n "(cached) " >&6
11205 else
11206           if test "$cross_compiling" = yes; then :
11207   lt_cv_dlopen_self=cross
11208 else
11209   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11210   lt_status=$lt_dlunknown
11211   cat > conftest.$ac_ext <<_LT_EOF
11212 #line 11212 "configure"
11213 #include "confdefs.h"
11214
11215 #if HAVE_DLFCN_H
11216 #include <dlfcn.h>
11217 #endif
11218
11219 #include <stdio.h>
11220
11221 #ifdef RTLD_GLOBAL
11222 #  define LT_DLGLOBAL           RTLD_GLOBAL
11223 #else
11224 #  ifdef DL_GLOBAL
11225 #    define LT_DLGLOBAL         DL_GLOBAL
11226 #  else
11227 #    define LT_DLGLOBAL         0
11228 #  endif
11229 #endif
11230
11231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11232    find out it does not work in some platform. */
11233 #ifndef LT_DLLAZY_OR_NOW
11234 #  ifdef RTLD_LAZY
11235 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11236 #  else
11237 #    ifdef DL_LAZY
11238 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11239 #    else
11240 #      ifdef RTLD_NOW
11241 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11242 #      else
11243 #        ifdef DL_NOW
11244 #          define LT_DLLAZY_OR_NOW      DL_NOW
11245 #        else
11246 #          define LT_DLLAZY_OR_NOW      0
11247 #        endif
11248 #      endif
11249 #    endif
11250 #  endif
11251 #endif
11252
11253 void fnord() { int i=42;}
11254 int main ()
11255 {
11256   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11257   int status = $lt_dlunknown;
11258
11259   if (self)
11260     {
11261       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11262       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11263       /* dlclose (self); */
11264     }
11265   else
11266     puts (dlerror ());
11267
11268   return status;
11269 }
11270 _LT_EOF
11271   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272   (eval $ac_link) 2>&5
11273   ac_status=$?
11274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11276     (./conftest; exit; ) >&5 2>/dev/null
11277     lt_status=$?
11278     case x$lt_status in
11279       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11280       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11281       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11282     esac
11283   else :
11284     # compilation failed
11285     lt_cv_dlopen_self=no
11286   fi
11287 fi
11288 rm -fr conftest*
11289
11290
11291 fi
11292 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11293 $as_echo "$lt_cv_dlopen_self" >&6; }
11294
11295     if test "x$lt_cv_dlopen_self" = xyes; then
11296       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11297       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11298 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11299 if test "${lt_cv_dlopen_self_static+set}" = set; then
11300   $as_echo_n "(cached) " >&6
11301 else
11302           if test "$cross_compiling" = yes; then :
11303   lt_cv_dlopen_self_static=cross
11304 else
11305   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11306   lt_status=$lt_dlunknown
11307   cat > conftest.$ac_ext <<_LT_EOF
11308 #line 11308 "configure"
11309 #include "confdefs.h"
11310
11311 #if HAVE_DLFCN_H
11312 #include <dlfcn.h>
11313 #endif
11314
11315 #include <stdio.h>
11316
11317 #ifdef RTLD_GLOBAL
11318 #  define LT_DLGLOBAL           RTLD_GLOBAL
11319 #else
11320 #  ifdef DL_GLOBAL
11321 #    define LT_DLGLOBAL         DL_GLOBAL
11322 #  else
11323 #    define LT_DLGLOBAL         0
11324 #  endif
11325 #endif
11326
11327 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11328    find out it does not work in some platform. */
11329 #ifndef LT_DLLAZY_OR_NOW
11330 #  ifdef RTLD_LAZY
11331 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11332 #  else
11333 #    ifdef DL_LAZY
11334 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11335 #    else
11336 #      ifdef RTLD_NOW
11337 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11338 #      else
11339 #        ifdef DL_NOW
11340 #          define LT_DLLAZY_OR_NOW      DL_NOW
11341 #        else
11342 #          define LT_DLLAZY_OR_NOW      0
11343 #        endif
11344 #      endif
11345 #    endif
11346 #  endif
11347 #endif
11348
11349 void fnord() { int i=42;}
11350 int main ()
11351 {
11352   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11353   int status = $lt_dlunknown;
11354
11355   if (self)
11356     {
11357       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11358       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11359       /* dlclose (self); */
11360     }
11361   else
11362     puts (dlerror ());
11363
11364   return status;
11365 }
11366 _LT_EOF
11367   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11368   (eval $ac_link) 2>&5
11369   ac_status=$?
11370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11372     (./conftest; exit; ) >&5 2>/dev/null
11373     lt_status=$?
11374     case x$lt_status in
11375       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11376       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11377       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11378     esac
11379   else :
11380     # compilation failed
11381     lt_cv_dlopen_self_static=no
11382   fi
11383 fi
11384 rm -fr conftest*
11385
11386
11387 fi
11388 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11389 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11390     fi
11391
11392     CPPFLAGS="$save_CPPFLAGS"
11393     LDFLAGS="$save_LDFLAGS"
11394     LIBS="$save_LIBS"
11395     ;;
11396   esac
11397
11398   case $lt_cv_dlopen_self in
11399   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11400   *) enable_dlopen_self=unknown ;;
11401   esac
11402
11403   case $lt_cv_dlopen_self_static in
11404   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11405   *) enable_dlopen_self_static=unknown ;;
11406   esac
11407 fi
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425 striplib=
11426 old_striplib=
11427 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11428 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11429 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11430   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11431   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11432   { $as_echo "$as_me:$LINENO: result: yes" >&5
11433 $as_echo "yes" >&6; }
11434 else
11435 # FIXME - insert some real tests, host_os isn't really good enough
11436   case $host_os in
11437   darwin*)
11438     if test -n "$STRIP" ; then
11439       striplib="$STRIP -x"
11440       old_striplib="$STRIP -S"
11441       { $as_echo "$as_me:$LINENO: result: yes" >&5
11442 $as_echo "yes" >&6; }
11443     else
11444       { $as_echo "$as_me:$LINENO: result: no" >&5
11445 $as_echo "no" >&6; }
11446     fi
11447     ;;
11448   *)
11449     { $as_echo "$as_me:$LINENO: result: no" >&5
11450 $as_echo "no" >&6; }
11451     ;;
11452   esac
11453 fi
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466   # Report which library types will actually be built
11467   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11468 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11469   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11470 $as_echo "$can_build_shared" >&6; }
11471
11472   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11473 $as_echo_n "checking whether to build shared libraries... " >&6; }
11474   test "$can_build_shared" = "no" && enable_shared=no
11475
11476   # On AIX, shared libraries and static libraries use the same namespace, and
11477   # are all built from PIC.
11478   case $host_os in
11479   aix3*)
11480     test "$enable_shared" = yes && enable_static=no
11481     if test -n "$RANLIB"; then
11482       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11483       postinstall_cmds='$RANLIB $lib'
11484     fi
11485     ;;
11486
11487   aix[4-9]*)
11488     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11489       test "$enable_shared" = yes && enable_static=no
11490     fi
11491     ;;
11492   esac
11493   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11494 $as_echo "$enable_shared" >&6; }
11495
11496   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11497 $as_echo_n "checking whether to build static libraries... " >&6; }
11498   # Make sure either enable_shared or enable_static is yes.
11499   test "$enable_shared" = yes || enable_static=yes
11500   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11501 $as_echo "$enable_static" >&6; }
11502
11503
11504
11505
11506 fi
11507 ac_ext=c
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11512
11513 CC="$lt_save_CC"
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527         ac_config_commands="$ac_config_commands libtool"
11528
11529
11530
11531
11532 # Only expand once:
11533
11534
11535 # By default we simply use the C compiler to build assembly code.
11536
11537 test "${CCAS+set}" = set || CCAS=$CC
11538 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11539
11540
11541
11542 depcc="$CCAS"   am_compiler_list=
11543
11544 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11545 $as_echo_n "checking dependency style of $depcc... " >&6; }
11546 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11547   $as_echo_n "(cached) " >&6
11548 else
11549   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11550   # We make a subdir and do the tests there.  Otherwise we can end up
11551   # making bogus files that we don't know about and never remove.  For
11552   # instance it was reported that on HP-UX the gcc test will end up
11553   # making a dummy file named `D' -- because `-MD' means `put the output
11554   # in D'.
11555   mkdir conftest.dir
11556   # Copy depcomp to subdir because otherwise we won't find it if we're
11557   # using a relative directory.
11558   cp "$am_depcomp" conftest.dir
11559   cd conftest.dir
11560   # We will build objects and dependencies in a subdirectory because
11561   # it helps to detect inapplicable dependency modes.  For instance
11562   # both Tru64's cc and ICC support -MD to output dependencies as a
11563   # side effect of compilation, but ICC will put the dependencies in
11564   # the current directory while Tru64 will put them in the object
11565   # directory.
11566   mkdir sub
11567
11568   am_cv_CCAS_dependencies_compiler_type=none
11569   if test "$am_compiler_list" = ""; then
11570      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11571   fi
11572   am__universal=false
11573
11574
11575   for depmode in $am_compiler_list; do
11576     # Setup a source with many dependencies, because some compilers
11577     # like to wrap large dependency lists on column 80 (with \), and
11578     # we should not choose a depcomp mode which is confused by this.
11579     #
11580     # We need to recreate these files for each test, as the compiler may
11581     # overwrite some of them when testing with obscure command lines.
11582     # This happens at least with the AIX C compiler.
11583     : > sub/conftest.c
11584     for i in 1 2 3 4 5 6; do
11585       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11586       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11587       # Solaris 8's {/usr,}/bin/sh.
11588       touch sub/conftst$i.h
11589     done
11590     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11591
11592     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11593     # mode.  It turns out that the SunPro C++ compiler does not properly
11594     # handle `-M -o', and we need to detect this.  Also, some Intel
11595     # versions had trouble with output in subdirs
11596     am__obj=sub/conftest.${OBJEXT-o}
11597     am__minus_obj="-o $am__obj"
11598     case $depmode in
11599     gcc)
11600       # This depmode causes a compiler race in universal mode.
11601       test "$am__universal" = false || continue
11602       ;;
11603     nosideeffect)
11604       # after this tag, mechanisms are not by side-effect, so they'll
11605       # only be used when explicitly requested
11606       if test "x$enable_dependency_tracking" = xyes; then
11607         continue
11608       else
11609         break
11610       fi
11611       ;;
11612     msvisualcpp | msvcmsys)
11613       # This compiler won't grok `-c -o', but also, the minuso test has
11614       # not run yet.  These depmodes are late enough in the game, and
11615       # so weak that their functioning should not be impacted.
11616       am__obj=conftest.${OBJEXT-o}
11617       am__minus_obj=
11618       ;;
11619     none) break ;;
11620     esac
11621     if depmode=$depmode \
11622        source=sub/conftest.c object=$am__obj \
11623        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11624        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11625          >/dev/null 2>conftest.err &&
11626        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11627        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11628        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11629        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11630       # icc doesn't choke on unknown options, it will just issue warnings
11631       # or remarks (even with -Werror).  So we grep stderr for any message
11632       # that says an option was ignored or not supported.
11633       # When given -MP, icc 7.0 and 7.1 complain thusly:
11634       #   icc: Command line warning: ignoring option '-M'; no argument required
11635       # The diagnosis changed in icc 8.0:
11636       #   icc: Command line remark: option '-MP' not supported
11637       if (grep 'ignoring option' conftest.err ||
11638           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11639         am_cv_CCAS_dependencies_compiler_type=$depmode
11640         break
11641       fi
11642     fi
11643   done
11644
11645   cd ..
11646   rm -rf conftest.dir
11647 else
11648   am_cv_CCAS_dependencies_compiler_type=none
11649 fi
11650
11651 fi
11652 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11653 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11654 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11655
11656  if
11657   test "x$enable_dependency_tracking" != xno \
11658   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11659   am__fastdepCCAS_TRUE=
11660   am__fastdepCCAS_FALSE='#'
11661 else
11662   am__fastdepCCAS_TRUE='#'
11663   am__fastdepCCAS_FALSE=
11664 fi
11665
11666
11667
11668
11669         { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11670 $as_echo_n "checking zfs author... " >&6; }
11671         { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11672 $as_echo "$ZFS_META_AUTHOR" >&6; }
11673
11674         { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11675 $as_echo_n "checking zfs license... " >&6; }
11676         { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11677 $as_echo "$ZFS_META_LICENSE" >&6; }
11678
11679
11680
11681         { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11682 $as_echo_n "checking linux distribution... " >&6; }
11683         if test -f /etc/toss-release ; then
11684                 VENDOR=toss ;
11685         elif test -f /etc/fedora-release ; then
11686                 VENDOR=fedora ;
11687         elif test -f /etc/redhat-release ; then
11688                 VENDOR=redhat ;
11689         elif test -f /etc/gentoo-release ; then
11690                 VENDOR=gentoo ;
11691         elif test -f /etc/arch-release ; then
11692                 VENDOR=arch ;
11693         elif test -f /etc/SuSE-release ; then
11694                 VENDOR=sles ;
11695         elif test -f /etc/slackware-version ; then
11696                 VENDOR=slackware ;
11697         elif test -f /etc/lunar.release ; then
11698                 VENDOR=lunar ;
11699         elif test -f /etc/lsb-release ; then
11700                 VENDOR=ubuntu ;
11701         elif test -f /etc/debian_version ; then
11702                 VENDOR=debian ;
11703         else
11704                 VENDOR= ;
11705         fi
11706         { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11707 $as_echo "$VENDOR" >&6; }
11708
11709
11710         { $as_echo "$as_me:$LINENO: checking default package type" >&5
11711 $as_echo_n "checking default package type... " >&6; }
11712         case "$VENDOR" in
11713                 toss)       DEFAULT_PACKAGE=rpm  ;;
11714                 redhat)     DEFAULT_PACKAGE=rpm  ;;
11715                 fedora)     DEFAULT_PACKAGE=rpm  ;;
11716                 gentoo)     DEFAULT_PACKAGE=tgz  ;;
11717                 arch)       DEFAULT_PACKAGE=arch ;;
11718                 sles)       DEFAULT_PACKAGE=rpm  ;;
11719                 slackware)  DEFAULT_PACKAGE=tgz  ;;
11720                 lunar)      DEFAULT_PACKAGE=tgz  ;;
11721                 ubuntu)     DEFAULT_PACKAGE=deb  ;;
11722                 debian)     DEFAULT_PACKAGE=deb  ;;
11723                 *)          DEFAULT_PACKAGE=rpm  ;;
11724         esac
11725
11726         { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11727 $as_echo "$DEFAULT_PACKAGE" >&6; }
11728
11729
11730         { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11731 $as_echo_n "checking default init directory... " >&6; }
11732         case "$VENDOR" in
11733                 arch)       DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11734                 *)          DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11735         esac
11736
11737         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11738 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11739
11740
11741         { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11742 $as_echo_n "checking default init script type... " >&6; }
11743         case "$VENDOR" in
11744                 toss)       DEFAULT_INIT_SCRIPT=redhat ;;
11745                 redhat)     DEFAULT_INIT_SCRIPT=redhat ;;
11746                 fedora)     DEFAULT_INIT_SCRIPT=fedora ;;
11747                 gentoo)     DEFAULT_INIT_SCRIPT=gentoo ;;
11748                 arch)       DEFAULT_INIT_SCRIPT=arch   ;;
11749                 sles)       DEFAULT_INIT_SCRIPT=lsb    ;;
11750                 slackware)  DEFAULT_INIT_SCRIPT=lsb    ;;
11751                 lunar)      DEFAULT_INIT_SCRIPT=lunar  ;;
11752                 ubuntu)     DEFAULT_INIT_SCRIPT=lsb    ;;
11753                 debian)     DEFAULT_INIT_SCRIPT=lsb    ;;
11754                 *)          DEFAULT_INIT_SCRIPT=lsb    ;;
11755         esac
11756
11757         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11758 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11759
11760
11761
11762         RPM=rpm
11763         RPMBUILD=rpmbuild
11764
11765         { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11766 $as_echo_n "checking whether $RPM is available... " >&6; }
11767         if tmp=$($RPM --version 2>/dev/null); then
11768
11769                 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11770                 HAVE_RPM=yes
11771                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11772 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11773
11774 else
11775
11776                 HAVE_RPM=no
11777                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11778 $as_echo "$HAVE_RPM" >&6; }
11779
11780 fi
11781
11782
11783         { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11784 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11785         if tmp=$($RPMBUILD --version 2>/dev/null); then
11786
11787                 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11788                 HAVE_RPMBUILD=yes
11789                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11790 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11791
11792 else
11793
11794                 HAVE_RPMBUILD=no
11795                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11796 $as_echo "$HAVE_RPMBUILD" >&6; }
11797
11798 fi
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810         DPKG=dpkg
11811         DPKGBUILD=dpkg-buildpackage
11812
11813         { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11814 $as_echo_n "checking whether $DPKG is available... " >&6; }
11815         if tmp=$($DPKG --version 2>/dev/null); then
11816
11817                 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11818                 HAVE_DPKG=yes
11819                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11820 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11821
11822 else
11823
11824                 HAVE_DPKG=no
11825                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11826 $as_echo "$HAVE_DPKG" >&6; }
11827
11828 fi
11829
11830
11831         { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11832 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11833         if tmp=$($DPKGBUILD --version 2>/dev/null); then
11834
11835                 DPKGBUILD_VERSION=$(echo $tmp | \
11836                     $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11837                 HAVE_DPKGBUILD=yes
11838                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11839 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11840
11841 else
11842
11843                 HAVE_DPKGBUILD=no
11844                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11845 $as_echo "$HAVE_DPKGBUILD" >&6; }
11846
11847 fi
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859         ALIEN=alien
11860
11861         { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11862 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11863         if tmp=$($ALIEN --version 2>/dev/null); then
11864
11865                 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11866                 HAVE_ALIEN=yes
11867                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11868 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11869
11870 else
11871
11872                 HAVE_ALIEN=no
11873                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11874 $as_echo "$HAVE_ALIEN" >&6; }
11875
11876 fi
11877
11878
11879
11880
11881
11882
11883
11884         if test "$VENDOR" = "arch"; then
11885
11886         PACMAN=pacman
11887         MAKEPKG=makepkg
11888
11889         { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11890 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11891         tmp=$($PACMAN --version 2>/dev/null)
11892         if test -n "$tmp"; then
11893
11894                 PACMAN_VERSION=$(echo $tmp |
11895                                  $AWK '/Pacman/ { print $3 }' |
11896                                  $SED 's/^v//')
11897                 HAVE_PACMAN=yes
11898                 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11899 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11900
11901 else
11902
11903                 HAVE_PACMAN=no
11904                 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11905 $as_echo "$HAVE_PACMAN" >&6; }
11906
11907 fi
11908
11909
11910         { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11911 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11912         tmp=$($MAKEPKG --version 2>/dev/null)
11913         if test -n "$tmp"; then
11914
11915                 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11916                 HAVE_MAKEPKG=yes
11917                 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11918 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11919
11920 else
11921
11922                 HAVE_MAKEPKG=no
11923                 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11924 $as_echo "$HAVE_MAKEPKG" >&6; }
11925
11926 fi
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937 fi
11938
11939
11940
11941         TARGET_ASM_DIR=asm-generic
11942
11943
11944         ZFS_CONFIG=all
11945
11946 # Check whether --with-config was given.
11947 if test "${with_config+set}" = set; then
11948   withval=$with_config; ZFS_CONFIG="$withval"
11949 fi
11950
11951         # Check whether --enable-linux-builtin was given.
11952 if test "${enable_linux_builtin+set}" = set; then
11953   enableval=$enable_linux_builtin;
11954 else
11955   enable_linux_builtin=no
11956 fi
11957
11958
11959         { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11960 $as_echo_n "checking zfs config... " >&6; }
11961         { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11962 $as_echo "$ZFS_CONFIG" >&6; };
11963
11964
11965
11966
11967         { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11968 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11969
11970         saved_flags="$CFLAGS"
11971         CFLAGS="$CFLAGS -Wunused-but-set-variable"
11972
11973         if test "$cross_compiling" = yes; then
11974   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11976 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11977 See \`config.log' for more details." >&5
11978 $as_echo "$as_me: error: cannot run test program while cross compiling
11979 See \`config.log' for more details." >&2;}
11980    { (exit 1); exit 1; }; }; }
11981 else
11982   cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h.  */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h.  */
11988
11989 int
11990 main ()
11991 {
11992
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest$ac_exeext
11998 if { (ac_try="$ac_link"
11999 case "(($ac_try" in
12000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001   *) ac_try_echo=$ac_try;;
12002 esac
12003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005   (eval "$ac_link") 2>&5
12006   ac_status=$?
12007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12009   { (case "(($ac_try" in
12010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011   *) ac_try_echo=$ac_try;;
12012 esac
12013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015   (eval "$ac_try") 2>&5
12016   ac_status=$?
12017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); }; }; then
12019
12020                 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12021                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12022 $as_echo "yes" >&6; }
12023
12024 else
12025   $as_echo "$as_me: program exited with status $ac_status" >&5
12026 $as_echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12028
12029 ( exit $ac_status )
12030
12031                 NO_UNUSED_BUT_SET_VARIABLE=
12032                 { $as_echo "$as_me:$LINENO: result: no" >&5
12033 $as_echo "no" >&6; }
12034
12035 fi
12036 rm -rf conftest.dSYM
12037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12038 fi
12039
12040
12041
12042         CFLAGS="$saved_flags"
12043
12044
12045
12046
12047         case "$ZFS_CONFIG" in
12048                 kernel)
12049
12050
12051 # Check whether --with-linux was given.
12052 if test "${with_linux+set}" = set; then
12053   withval=$with_linux; kernelsrc="$withval"
12054 fi
12055
12056
12057
12058 # Check whether --with-linux-obj was given.
12059 if test "${with_linux_obj+set}" = set; then
12060   withval=$with_linux_obj; kernelbuild="$withval"
12061 fi
12062
12063
12064         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12065 $as_echo_n "checking kernel source directory... " >&6; }
12066         if test -z "$kernelsrc"; then
12067
12068                 if test -e "/lib/modules/$(uname -r)/source"; then
12069
12070                         headersdir="/lib/modules/$(uname -r)/source"
12071                         sourcelink=$(readlink -f "$headersdir")
12072
12073 elif test -e "/lib/modules/$(uname -r)/build"; then
12074
12075                         headersdir="/lib/modules/$(uname -r)/build"
12076                         sourcelink=$(readlink -f "$headersdir")
12077
12078 else
12079
12080                         sourcelink=$(ls -1d /usr/src/kernels/* \
12081                                      /usr/src/linux-* \
12082                                      2>/dev/null | grep -v obj | tail -1)
12083
12084 fi
12085
12086
12087                 if test -n "$sourcelink" && test -e ${sourcelink}; then
12088
12089                         kernelsrc=`readlink -f ${sourcelink}`
12090
12091 else
12092
12093                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12094 $as_echo "Not found" >&6; }
12095                         { { $as_echo "$as_me:$LINENO: error:
12096         *** Please make sure the kernel devel package for your distribution
12097         *** is installed then try again.  If that fails you can specify the
12098         *** location of the kernel source with the '--with-linux=PATH' option." >&5
12099 $as_echo "$as_me: error:
12100         *** Please make sure the kernel devel package for your distribution
12101         *** is installed then try again.  If that fails you can specify the
12102         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12103    { (exit 1); exit 1; }; }
12104
12105 fi
12106
12107
12108 else
12109
12110                 if test "$kernelsrc" = "NONE"; then
12111
12112                         kernsrcver=NONE
12113
12114 fi
12115
12116
12117 fi
12118
12119
12120         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12121 $as_echo "$kernelsrc" >&6; }
12122         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12123 $as_echo_n "checking kernel build directory... " >&6; }
12124         if test -z "$kernelbuild"; then
12125
12126                 if test -e "/lib/modules/$(uname -r)/build"; then
12127
12128                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12129
12130 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12131
12132                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12133
12134 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12135
12136                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12137
12138 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12139
12140                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12141
12142 else
12143
12144                         kernelbuild=${kernelsrc}
12145
12146 fi
12147
12148
12149 fi
12150
12151         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12152 $as_echo "$kernelbuild" >&6; }
12153
12154         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12155 $as_echo_n "checking kernel source version... " >&6; }
12156         utsrelease1=$kernelbuild/include/linux/version.h
12157         utsrelease2=$kernelbuild/include/linux/utsrelease.h
12158         utsrelease3=$kernelbuild/include/generated/utsrelease.h
12159         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12160
12161                 utsrelease=linux/version.h
12162
12163 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12164
12165                 utsrelease=linux/utsrelease.h
12166
12167 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12168
12169                 utsrelease=generated/utsrelease.h
12170
12171 fi
12172
12173
12174         if test "$utsrelease"; then
12175
12176                 kernsrcver=`(echo "#include <$utsrelease>";
12177                              echo "kernsrcver=UTS_RELEASE") |
12178                              cpp -I $kernelbuild/include |
12179                              grep "^kernsrcver=" | cut -d \" -f 2`
12180
12181                 if test -z "$kernsrcver"; then
12182
12183                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12184 $as_echo "Not found" >&6; }
12185                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12186 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12187    { (exit 1); exit 1; }; }
12188
12189 fi
12190
12191
12192 else
12193
12194                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12195 $as_echo "Not found" >&6; }
12196                 if test "x$enable_linux_builtin" != xyes; then
12197                         { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12198 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12199    { (exit 1); exit 1; }; }
12200                 else
12201                         { { $as_echo "$as_me:$LINENO: error:
12202         *** Cannot find UTS_RELEASE definition.
12203         *** Please run 'make prepare' inside the kernel source tree." >&5
12204 $as_echo "$as_me: error:
12205         *** Cannot find UTS_RELEASE definition.
12206         *** Please run 'make prepare' inside the kernel source tree." >&2;}
12207    { (exit 1); exit 1; }; }
12208                 fi
12209
12210 fi
12211
12212
12213         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12214 $as_echo "$kernsrcver" >&6; }
12215
12216         LINUX=${kernelsrc}
12217         LINUX_OBJ=${kernelbuild}
12218         LINUX_VERSION=${kernsrcver}
12219
12220
12221
12222
12223
12224
12225         modpost=$LINUX/scripts/Makefile.modpost
12226         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12227 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12228         if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
12229
12230                 if grep -q Modules.symvers $modpost; then
12231
12232                         LINUX_SYMBOLS=Modules.symvers
12233
12234 else
12235
12236                         LINUX_SYMBOLS=Module.symvers
12237
12238 fi
12239
12240
12241                 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12242
12243                         { { $as_echo "$as_me:$LINENO: error:
12244         *** Please make sure the kernel devel package for your distribution
12245         *** is installed.  If your building with a custom kernel make sure the
12246         *** kernel is configured, built, and the '--with-linux=PATH' configure
12247         *** option refers to the location of the kernel source." >&5
12248 $as_echo "$as_me: error:
12249         *** Please make sure the kernel devel package for your distribution
12250         *** is installed.  If your building with a custom kernel make sure the
12251         *** kernel is configured, built, and the '--with-linux=PATH' configure
12252         *** option refers to the location of the kernel source." >&2;}
12253    { (exit 1); exit 1; }; }
12254
12255 fi
12256
12257
12258 else
12259
12260                 LINUX_SYMBOLS=NONE
12261
12262 fi
12263
12264         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12265 $as_echo "$LINUX_SYMBOLS" >&6; }
12266
12267
12268
12269
12270
12271 # Check whether --with-spl was given.
12272 if test "${with_spl+set}" = set; then
12273   withval=$with_spl; splsrc="$withval"
12274 fi
12275
12276
12277
12278 # Check whether --with-spl-obj was given.
12279 if test "${with_spl_obj+set}" = set; then
12280   withval=$with_spl_obj; splbuild="$withval"
12281 fi
12282
12283
12284
12285         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12286 $as_echo_n "checking spl source directory... " >&6; }
12287         if test -z "$splsrc"; then
12288
12289                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12290                             2>/dev/null | tail -1`
12291
12292                 if test -z "$sourcelink" || test ! -e $sourcelink; then
12293
12294                         sourcelink=../spl
12295
12296 fi
12297
12298
12299                 if test -e $sourcelink; then
12300
12301                         splsrc=`readlink -f ${sourcelink}`
12302
12303 else
12304
12305                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12306 $as_echo "Not found" >&6; }
12307                         { { $as_echo "$as_me:$LINENO: error:
12308         *** Please make sure the spl devel package for your distribution
12309         *** is installed then try again.  If that fails you can specify the
12310         *** location of the spl source with the '--with-spl=PATH' option." >&5
12311 $as_echo "$as_me: error:
12312         *** Please make sure the spl devel package for your distribution
12313         *** is installed then try again.  If that fails you can specify the
12314         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12315    { (exit 1); exit 1; }; }
12316
12317 fi
12318
12319
12320 else
12321
12322                 if test "$splsrc" = "NONE"; then
12323
12324                         splbuild=NONE
12325                         splsrcver=NONE
12326
12327 fi
12328
12329
12330 fi
12331
12332
12333         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12334 $as_echo "$splsrc" >&6; }
12335         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12336 $as_echo_n "checking spl build directory... " >&6; }
12337         if test -z "$splbuild"; then
12338
12339                 splbuild=${splsrc}
12340
12341 fi
12342
12343         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12344 $as_echo "$splbuild" >&6; }
12345
12346         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12347 $as_echo_n "checking spl source version... " >&6; }
12348         if test -r $splbuild/spl_config.h &&
12349                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12350
12351
12352                 splsrcver=`(echo "#include <spl_config.h>";
12353                             echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12354                             cpp -I $splbuild |
12355                             grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12356
12357 fi
12358
12359
12360         if test -z "$splsrcver"; then
12361
12362                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12363 $as_echo "Not found" >&6; }
12364                 { { $as_echo "$as_me:$LINENO: error:
12365         *** Cannot determine the version of the spl source.
12366         *** Please prepare the spl source before running this script" >&5
12367 $as_echo "$as_me: error:
12368         *** Cannot determine the version of the spl source.
12369         *** Please prepare the spl source before running this script" >&2;}
12370    { (exit 1); exit 1; }; }
12371
12372 fi
12373
12374
12375         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12376 $as_echo "$splsrcver" >&6; }
12377
12378         SPL=${splsrc}
12379         SPL_OBJ=${splbuild}
12380         SPL_VERSION=${splsrcver}
12381
12382
12383
12384
12385
12386
12387         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12388 $as_echo_n "checking spl file name for module symbols... " >&6; }
12389         if test -r $SPL_OBJ/Module.symvers; then
12390
12391                 SPL_SYMBOLS=Module.symvers
12392
12393 elif test -r $SPL_OBJ/Modules.symvers; then
12394
12395                 SPL_SYMBOLS=Modules.symvers
12396
12397 elif test -r $SPL_OBJ/module/Module.symvers; then
12398
12399                 SPL_SYMBOLS=Module.symvers
12400
12401 elif test -r $SPL_OBJ/module/Modules.symvers; then
12402
12403                 SPL_SYMBOLS=Modules.symvers
12404
12405 else
12406
12407                 SPL_SYMBOLS=$LINUX_SYMBOLS
12408
12409 fi
12410
12411
12412         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12413 $as_echo "$SPL_SYMBOLS" >&6; }
12414
12415
12416
12417         { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
12418 $as_echo_n "checking whether modules can be built... " >&6; }
12419
12420
12421 cat confdefs.h - <<_ACEOF >conftest.c
12422 /* confdefs.h.  */
12423 _ACEOF
12424 cat confdefs.h >>conftest.$ac_ext
12425 cat >>conftest.$ac_ext <<_ACEOF
12426 /* end confdefs.h.  */
12427
12428
12429 int
12430 main (void)
12431 {
12432
12433   ;
12434   return 0;
12435 }
12436
12437 _ACEOF
12438
12439
12440         rm -Rf build && mkdir -p build
12441         echo "obj-m := conftest.o" >build/Makefile
12442         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'
12443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444   (eval $ac_try) 2>&5
12445   ac_status=$?
12446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449   (eval $ac_try) 2>&5
12450   ac_status=$?
12451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452   (exit $ac_status); }; }; then
12453
12454                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12455 $as_echo "yes" >&6; }
12456
12457 else
12458   $as_echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461                 { $as_echo "$as_me:$LINENO: result: no" >&5
12462 $as_echo "no" >&6; }
12463                 if test "x$enable_linux_builtin" != xyes; then
12464                         { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12465 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12466    { (exit 1); exit 1; }; }
12467                 else
12468                         { { $as_echo "$as_me:$LINENO: error:
12469         *** Unable to build an empty module.
12470         *** Please run 'make scripts' inside the kernel source tree." >&5
12471 $as_echo "$as_me: error:
12472         *** Unable to build an empty module.
12473         *** Please run 'make scripts' inside the kernel source tree." >&2;}
12474    { (exit 1); exit 1; }; }
12475                 fi
12476
12477
12478
12479 fi
12480
12481         rm -Rf build
12482
12483
12484
12485
12486
12487         if test "$ZFS_META_LICENSE" = GPL; then
12488
12489
12490 cat >>confdefs.h <<\_ACEOF
12491 #define HAVE_GPL_ONLY_SYMBOLS 1
12492 _ACEOF
12493
12494
12495 fi
12496
12497
12498
12499
12500         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12501 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12502
12503
12504 cat confdefs.h - <<_ACEOF >conftest.c
12505 /* confdefs.h.  */
12506 _ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h.  */
12510
12511
12512                 #include <linux/module.h>
12513
12514 int
12515 main (void)
12516 {
12517
12518                 #ifndef CONFIG_PREEMPT
12519                 #error CONFIG_PREEMPT not #defined
12520                 #endif
12521
12522   ;
12523   return 0;
12524 }
12525
12526 _ACEOF
12527
12528
12529         rm -Rf build && mkdir -p build
12530         echo "obj-m := conftest.o" >build/Makefile
12531         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'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538   (eval $ac_try) 2>&5
12539   ac_status=$?
12540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); }; }; then
12542
12543                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12544 $as_echo "yes" >&6; }
12545                 { { $as_echo "$as_me:$LINENO: error:
12546         *** Kernel built with CONFIG_PREEMPT which is not supported.
12547         *** You must rebuild your kernel without this option." >&5
12548 $as_echo "$as_me: error:
12549         *** Kernel built with CONFIG_PREEMPT which is not supported.
12550         *** You must rebuild your kernel without this option." >&2;}
12551    { (exit 1); exit 1; }; }
12552
12553 else
12554   $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557                 { $as_echo "$as_me:$LINENO: result: no" >&5
12558 $as_echo "no" >&6; }
12559
12560
12561
12562
12563 fi
12564
12565         rm -Rf build
12566
12567
12568
12569
12570
12571
12572         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12573 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12574
12575
12576 cat confdefs.h - <<_ACEOF >conftest.c
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582
12583
12584                 #include <linux/module.h>
12585
12586 int
12587 main (void)
12588 {
12589
12590                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12591                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12592                 #endif
12593
12594   ;
12595   return 0;
12596 }
12597
12598 _ACEOF
12599
12600
12601         rm -Rf build && mkdir -p build
12602         echo "obj-m := conftest.o" >build/Makefile
12603         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'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614
12615                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12616 $as_echo "yes" >&6; }
12617
12618                 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
12619 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12620                 tmp_flags="$EXTRA_KCFLAGS"
12621
12622
12623 cat confdefs.h - <<_ACEOF >conftest.c
12624 /* confdefs.h.  */
12625 _ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h.  */
12629
12630
12631                         #include <linux/module.h>
12632                         #include <linux/mutex.h>
12633
12634                         MODULE_LICENSE("$ZFS_META_LICENSE");
12635
12636 int
12637 main (void)
12638 {
12639
12640                         struct mutex lock;
12641
12642                         mutex_init(&lock);
12643                         mutex_lock(&lock);
12644                         mutex_unlock(&lock);
12645
12646   ;
12647   return 0;
12648 }
12649
12650 _ACEOF
12651
12652
12653         rm -Rf build && mkdir -p build
12654         echo "obj-m := conftest.o" >build/Makefile
12655         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'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662   (eval $ac_try) 2>&5
12663   ac_status=$?
12664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); }; }; then
12666
12667                         { $as_echo "$as_me:$LINENO: result: no" >&5
12668 $as_echo "no" >&6; }
12669
12670 else
12671   $as_echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12675 $as_echo "yes" >&6; }
12676                         { { $as_echo "$as_me:$LINENO: error:
12677         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12678         *** with the CDDL license and will prevent the module linking stage
12679         *** from succeeding.  You must rebuild your kernel without this
12680         *** option enabled." >&5
12681 $as_echo "$as_me: error:
12682         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12683         *** with the CDDL license and will prevent the module linking stage
12684         *** from succeeding.  You must rebuild your kernel without this
12685         *** option enabled." >&2;}
12686    { (exit 1); exit 1; }; }
12687
12688
12689
12690 fi
12691
12692         rm -Rf build
12693
12694
12695                 EXTRA_KCFLAGS="$tmp_flags"
12696
12697
12698 else
12699   $as_echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12701
12702                 { $as_echo "$as_me:$LINENO: result: no" >&5
12703 $as_echo "no" >&6; }
12704
12705
12706
12707
12708 fi
12709
12710         rm -Rf build
12711
12712
12713
12714
12715
12716
12717         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12718 $as_echo_n "checking block device operation prototypes... " >&6; }
12719         tmp_flags="$EXTRA_KCFLAGS"
12720         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12721
12722
12723 cat confdefs.h - <<_ACEOF >conftest.c
12724 /* confdefs.h.  */
12725 _ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h.  */
12729
12730
12731                 #include <linux/blkdev.h>
12732
12733 int
12734 main (void)
12735 {
12736
12737                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12738                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12739                 int (*blk_ioctl) (struct block_device *, fmode_t,
12740                                   unsigned, unsigned long) = NULL;
12741                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12742                                          unsigned, unsigned long) = NULL;
12743                 struct block_device_operations blk_ops = {
12744                         .open           = blk_open,
12745                         .release        = blk_release,
12746                         .ioctl          = blk_ioctl,
12747                         .compat_ioctl   = blk_compat_ioctl,
12748                 };
12749
12750                 blk_ops.open(NULL, 0);
12751                 blk_ops.release(NULL, 0);
12752                 blk_ops.ioctl(NULL, 0, 0, 0);
12753                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12754
12755   ;
12756   return 0;
12757 }
12758
12759 _ACEOF
12760
12761
12762         rm -Rf build && mkdir -p build
12763         echo "obj-m := conftest.o" >build/Makefile
12764         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'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775
12776                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12777 $as_echo "struct block_device" >&6; }
12778
12779 cat >>confdefs.h <<\_ACEOF
12780 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12781 _ACEOF
12782
12783
12784 else
12785   $as_echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12787
12788                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12789 $as_echo "struct inode" >&6; }
12790
12791
12792
12793 fi
12794
12795         rm -Rf build
12796
12797
12798         EXTRA_KCFLAGS="$tmp_flags"
12799
12800         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12801 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12802
12803
12804 cat confdefs.h - <<_ACEOF >conftest.c
12805 /* confdefs.h.  */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h.  */
12810
12811
12812                 #include <linux/types.h>
12813
12814 int
12815 main (void)
12816 {
12817
12818                 fmode_t *ptr __attribute__ ((unused));
12819
12820   ;
12821   return 0;
12822 }
12823
12824 _ACEOF
12825
12826
12827         rm -Rf build && mkdir -p build
12828         echo "obj-m := conftest.o" >build/Makefile
12829         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'
12830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831   (eval $ac_try) 2>&5
12832   ac_status=$?
12833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840
12841                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12842 $as_echo "yes" >&6; }
12843
12844 cat >>confdefs.h <<\_ACEOF
12845 #define HAVE_FMODE_T 1
12846 _ACEOF
12847
12848
12849 else
12850   $as_echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853                 { $as_echo "$as_me:$LINENO: result: no" >&5
12854 $as_echo "no" >&6; }
12855
12856
12857
12858 fi
12859
12860         rm -Rf build
12861
12862
12863
12864
12865         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12866 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12867
12868
12869 cat confdefs.h - <<_ACEOF >conftest.c
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875
12876
12877                 #include <linux/kobject.h>
12878
12879 int
12880 main (void)
12881 {
12882
12883                 int val __attribute__ ((unused));
12884                 val = KOBJ_NAME_LEN;
12885
12886   ;
12887   return 0;
12888 }
12889
12890 _ACEOF
12891
12892
12893         rm -Rf build && mkdir -p build
12894         echo "obj-m := conftest.o" >build/Makefile
12895         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'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906
12907                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12908 $as_echo "yes" >&6; }
12909
12910 cat >>confdefs.h <<\_ACEOF
12911 #define HAVE_KOBJ_NAME_LEN 1
12912 _ACEOF
12913
12914
12915 else
12916   $as_echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919                 { $as_echo "$as_me:$LINENO: result: no" >&5
12920 $as_echo "no" >&6; }
12921
12922
12923
12924 fi
12925
12926         rm -Rf build
12927
12928
12929
12930
12931         { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
12932 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12933
12934
12935 cat confdefs.h - <<_ACEOF >conftest.c
12936 /* confdefs.h.  */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h.  */
12941
12942
12943                 #include <linux/fs.h>
12944
12945 int
12946 main (void)
12947 {
12948
12949                 struct block_device *bdev = NULL;
12950                 (void) blkdev_get(bdev, 0, NULL);
12951
12952   ;
12953   return 0;
12954 }
12955
12956 _ACEOF
12957
12958
12959         rm -Rf build && mkdir -p build
12960         echo "obj-m := conftest.o" >build/Makefile
12961         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'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972
12973                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12974 $as_echo "yes" >&6; }
12975
12976 cat >>confdefs.h <<\_ACEOF
12977 #define HAVE_3ARG_BLKDEV_GET 1
12978 _ACEOF
12979
12980
12981 else
12982   $as_echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12984
12985                 { $as_echo "$as_me:$LINENO: result: no" >&5
12986 $as_echo "no" >&6; }
12987
12988
12989
12990 fi
12991
12992         rm -Rf build
12993
12994
12995
12996
12997         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12998 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12999         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13000                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13001         rc=$?
13002         if test $rc -ne 0; then
13003
13004                 export=0
13005                 for file in fs/block_dev.c; do
13006                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
13007                         rc=$?
13008                         if test $rc -eq 0; then
13009
13010                                 export=1
13011                                 break;
13012
13013 fi
13014
13015                 done
13016                 if test $export -eq 0; then
13017
13018                         { $as_echo "$as_me:$LINENO: result: no" >&5
13019 $as_echo "no" >&6; }
13020
13021
13022 else
13023
13024                         { $as_echo "$as_me:$LINENO: result: yes" >&5
13025 $as_echo "yes" >&6; }
13026
13027 cat >>confdefs.h <<\_ACEOF
13028 #define HAVE_BLKDEV_GET_BY_PATH 1
13029 _ACEOF
13030
13031
13032 fi
13033
13034
13035 else
13036
13037                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13038 $as_echo "yes" >&6; }
13039
13040 cat >>confdefs.h <<\_ACEOF
13041 #define HAVE_BLKDEV_GET_BY_PATH 1
13042 _ACEOF
13043
13044
13045 fi
13046
13047
13048
13049
13050         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
13051 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
13052         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13053                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
13054         rc=$?
13055         if test $rc -ne 0; then
13056
13057                 export=0
13058                 for file in fs/block_dev.c; do
13059                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
13060                         rc=$?
13061                         if test $rc -eq 0; then
13062
13063                                 export=1
13064                                 break;
13065
13066 fi
13067
13068                 done
13069                 if test $export -eq 0; then
13070
13071                         { $as_echo "$as_me:$LINENO: result: no" >&5
13072 $as_echo "no" >&6; }
13073
13074
13075 else
13076
13077                         { $as_echo "$as_me:$LINENO: result: yes" >&5
13078 $as_echo "yes" >&6; }
13079
13080 cat >>confdefs.h <<\_ACEOF
13081 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13082 _ACEOF
13083
13084
13085 fi
13086
13087
13088 else
13089
13090                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13091 $as_echo "yes" >&6; }
13092
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13095 _ACEOF
13096
13097
13098 fi
13099
13100
13101
13102
13103         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
13104 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13105
13106
13107 cat confdefs.h - <<_ACEOF >conftest.c
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113
13114
13115                 #include <linux/buffer_head.h>
13116
13117 int
13118 main (void)
13119 {
13120
13121                 struct block_device *bdev = NULL;
13122                 invalidate_bdev(bdev);
13123
13124   ;
13125   return 0;
13126 }
13127
13128 _ACEOF
13129
13130
13131         rm -Rf build && mkdir -p build
13132         echo "obj-m := conftest.o" >build/Makefile
13133         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'
13134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135   (eval $ac_try) 2>&5
13136   ac_status=$?
13137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13140   (eval $ac_try) 2>&5
13141   ac_status=$?
13142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143   (exit $ac_status); }; }; then
13144
13145                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13146 $as_echo "yes" >&6; }
13147
13148 cat >>confdefs.h <<\_ACEOF
13149 #define HAVE_1ARG_INVALIDATE_BDEV 1
13150 _ACEOF
13151
13152
13153 else
13154   $as_echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13156
13157                 { $as_echo "$as_me:$LINENO: result: no" >&5
13158 $as_echo "no" >&6; }
13159
13160
13161
13162 fi
13163
13164         rm -Rf build
13165
13166
13167
13168
13169         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
13170 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13171         tmp_flags="$EXTRA_KCFLAGS"
13172         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13173
13174
13175 cat confdefs.h - <<_ACEOF >conftest.c
13176 /* confdefs.h.  */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h.  */
13181
13182
13183                 #include <linux/blkdev.h>
13184
13185 int
13186 main (void)
13187 {
13188
13189                 struct block_device *bdev = NULL;
13190                 bdev_logical_block_size(bdev);
13191
13192   ;
13193   return 0;
13194 }
13195
13196 _ACEOF
13197
13198
13199         rm -Rf build && mkdir -p build
13200         echo "obj-m := conftest.o" >build/Makefile
13201         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'
13202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203   (eval $ac_try) 2>&5
13204   ac_status=$?
13205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; }; then
13212
13213                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13214 $as_echo "yes" >&6; }
13215
13216 cat >>confdefs.h <<\_ACEOF
13217 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
13218 _ACEOF
13219
13220
13221 else
13222   $as_echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225                 { $as_echo "$as_me:$LINENO: result: no" >&5
13226 $as_echo "no" >&6; }
13227
13228
13229
13230 fi
13231
13232         rm -Rf build
13233
13234
13235         EXTRA_KCFLAGS="$tmp_flags"
13236
13237
13238         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13239 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13240         EXTRA_KCFLAGS="-Werror"
13241
13242
13243 cat confdefs.h - <<_ACEOF >conftest.c
13244 /* confdefs.h.  */
13245 _ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h.  */
13249
13250
13251                 #include <linux/bio.h>
13252
13253 int
13254 main (void)
13255 {
13256
13257                 struct bio bio;
13258                 (void)bio_empty_barrier(&bio);
13259
13260   ;
13261   return 0;
13262 }
13263
13264 _ACEOF
13265
13266
13267         rm -Rf build && mkdir -p build
13268         echo "obj-m := conftest.o" >build/Makefile
13269         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'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }; then
13280
13281                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13282 $as_echo "yes" >&6; }
13283
13284 cat >>confdefs.h <<\_ACEOF
13285 #define HAVE_BIO_EMPTY_BARRIER 1
13286 _ACEOF
13287
13288
13289 else
13290   $as_echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13292
13293                 { $as_echo "$as_me:$LINENO: result: no" >&5
13294 $as_echo "no" >&6; }
13295
13296
13297
13298 fi
13299
13300         rm -Rf build
13301
13302
13303
13304
13305         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13306 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13307
13308
13309 cat confdefs.h - <<_ACEOF >conftest.c
13310 /* confdefs.h.  */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h.  */
13315
13316
13317                 #include <linux/bio.h>
13318
13319 int
13320 main (void)
13321 {
13322
13323                 int flags __attribute__ ((unused));
13324                 flags = (1 << BIO_RW_FAILFAST);
13325
13326   ;
13327   return 0;
13328 }
13329
13330 _ACEOF
13331
13332
13333         rm -Rf build && mkdir -p build
13334         echo "obj-m := conftest.o" >build/Makefile
13335         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'
13336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337   (eval $ac_try) 2>&5
13338   ac_status=$?
13339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342   (eval $ac_try) 2>&5
13343   ac_status=$?
13344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345   (exit $ac_status); }; }; then
13346
13347                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13348 $as_echo "yes" >&6; }
13349
13350 cat >>confdefs.h <<\_ACEOF
13351 #define HAVE_BIO_RW_FAILFAST 1
13352 _ACEOF
13353
13354
13355 else
13356   $as_echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359                 { $as_echo "$as_me:$LINENO: result: no" >&5
13360 $as_echo "no" >&6; }
13361
13362
13363
13364 fi
13365
13366         rm -Rf build
13367
13368
13369
13370
13371         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13372 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13373
13374
13375 cat confdefs.h - <<_ACEOF >conftest.c
13376 /* confdefs.h.  */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h.  */
13381
13382
13383                 #include <linux/bio.h>
13384
13385 int
13386 main (void)
13387 {
13388
13389                 int flags __attribute__ ((unused));
13390                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13391                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
13392                          (1 << BIO_RW_FAILFAST_DRIVER));
13393
13394   ;
13395   return 0;
13396 }
13397
13398 _ACEOF
13399
13400
13401         rm -Rf build && mkdir -p build
13402         echo "obj-m := conftest.o" >build/Makefile
13403         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'
13404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405   (eval $ac_try) 2>&5
13406   ac_status=$?
13407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410   (eval $ac_try) 2>&5
13411   ac_status=$?
13412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); }; }; then
13414
13415                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13416 $as_echo "yes" >&6; }
13417
13418 cat >>confdefs.h <<\_ACEOF
13419 #define HAVE_BIO_RW_FAILFAST_DTD 1
13420 _ACEOF
13421
13422
13423 else
13424   $as_echo "$as_me: failed program was:" >&5
13425 sed 's/^/| /' conftest.$ac_ext >&5
13426
13427                 { $as_echo "$as_me:$LINENO: result: no" >&5
13428 $as_echo "no" >&6; }
13429
13430
13431
13432 fi
13433
13434         rm -Rf build
13435
13436
13437
13438
13439         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13440 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13441
13442
13443 cat confdefs.h - <<_ACEOF >conftest.c
13444 /* confdefs.h.  */
13445 _ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h.  */
13449
13450
13451                 #include <linux/bio.h>
13452
13453 int
13454 main (void)
13455 {
13456
13457                 int flags __attribute__ ((unused));
13458                 flags = REQ_FAILFAST_MASK;
13459
13460   ;
13461   return 0;
13462 }
13463
13464 _ACEOF
13465
13466
13467         rm -Rf build && mkdir -p build
13468         echo "obj-m := conftest.o" >build/Makefile
13469         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'
13470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471   (eval $ac_try) 2>&5
13472   ac_status=$?
13473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476   (eval $ac_try) 2>&5
13477   ac_status=$?
13478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; }; then
13480
13481                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13482 $as_echo "yes" >&6; }
13483
13484 cat >>confdefs.h <<\_ACEOF
13485 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13486 _ACEOF
13487
13488
13489 else
13490   $as_echo "$as_me: failed program was:" >&5
13491 sed 's/^/| /' conftest.$ac_ext >&5
13492
13493                 { $as_echo "$as_me:$LINENO: result: no" >&5
13494 $as_echo "no" >&6; }
13495
13496
13497
13498 fi
13499
13500         rm -Rf build
13501
13502
13503
13504
13505         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13506 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13507         tmp_flags="$EXTRA_KCFLAGS"
13508         EXTRA_KCFLAGS="-Werror"
13509
13510
13511 cat confdefs.h - <<_ACEOF >conftest.c
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517
13518
13519                 #include <linux/bio.h>
13520
13521 int
13522 main (void)
13523 {
13524
13525                 void (*wanted_end_io)(struct bio *, int) = NULL;
13526                 bio_end_io_t *local_end_io __attribute__ ((unused));
13527
13528                 local_end_io = wanted_end_io;
13529
13530   ;
13531   return 0;
13532 }
13533
13534 _ACEOF
13535
13536
13537         rm -Rf build && mkdir -p build
13538         echo "obj-m := conftest.o" >build/Makefile
13539         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'
13540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541   (eval $ac_try) 2>&5
13542   ac_status=$?
13543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550
13551                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13552 $as_echo "yes" >&6; }
13553
13554 cat >>confdefs.h <<\_ACEOF
13555 #define HAVE_2ARGS_BIO_END_IO_T 1
13556 _ACEOF
13557
13558
13559 else
13560   $as_echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563                 { $as_echo "$as_me:$LINENO: result: no" >&5
13564 $as_echo "no" >&6; }
13565
13566
13567
13568 fi
13569
13570         rm -Rf build
13571
13572
13573         EXTRA_KCFLAGS="$tmp_flags"
13574
13575
13576         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13577 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13578
13579
13580 cat confdefs.h - <<_ACEOF >conftest.c
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586
13587
13588                 #include <linux/bio.h>
13589
13590 int
13591 main (void)
13592 {
13593
13594                 int flags __attribute__ ((unused));
13595                 flags = BIO_RW_SYNC;
13596
13597   ;
13598   return 0;
13599 }
13600
13601 _ACEOF
13602
13603
13604         rm -Rf build && mkdir -p build
13605         echo "obj-m := conftest.o" >build/Makefile
13606         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'
13607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608   (eval $ac_try) 2>&5
13609   ac_status=$?
13610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613   (eval $ac_try) 2>&5
13614   ac_status=$?
13615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); }; }; then
13617
13618                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13619 $as_echo "yes" >&6; }
13620
13621 cat >>confdefs.h <<\_ACEOF
13622 #define HAVE_BIO_RW_SYNC 1
13623 _ACEOF
13624
13625
13626 else
13627   $as_echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630                 { $as_echo "$as_me:$LINENO: result: no" >&5
13631 $as_echo "no" >&6; }
13632
13633
13634
13635 fi
13636
13637         rm -Rf build
13638
13639
13640
13641
13642         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13643 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13644
13645
13646 cat confdefs.h - <<_ACEOF >conftest.c
13647 /* confdefs.h.  */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h.  */
13652
13653
13654                 #include <linux/bio.h>
13655
13656 int
13657 main (void)
13658 {
13659
13660                 int flags __attribute__ ((unused));
13661                 flags = BIO_RW_SYNCIO;
13662
13663   ;
13664   return 0;
13665 }
13666
13667 _ACEOF
13668
13669
13670         rm -Rf build && mkdir -p build
13671         echo "obj-m := conftest.o" >build/Makefile
13672         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'
13673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674   (eval $ac_try) 2>&5
13675   ac_status=$?
13676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }; then
13683
13684                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13685 $as_echo "yes" >&6; }
13686
13687 cat >>confdefs.h <<\_ACEOF
13688 #define HAVE_BIO_RW_SYNCIO 1
13689 _ACEOF
13690
13691
13692 else
13693   $as_echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696                 { $as_echo "$as_me:$LINENO: result: no" >&5
13697 $as_echo "no" >&6; }
13698
13699
13700
13701 fi
13702
13703         rm -Rf build
13704
13705
13706
13707
13708         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13709 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13710
13711
13712 cat confdefs.h - <<_ACEOF >conftest.c
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718
13719
13720                 #include <linux/bio.h>
13721
13722 int
13723 main (void)
13724 {
13725
13726                 int flags __attribute__ ((unused));
13727                 flags = REQ_SYNC;
13728
13729   ;
13730   return 0;
13731 }
13732
13733 _ACEOF
13734
13735
13736         rm -Rf build && mkdir -p build
13737         echo "obj-m := conftest.o" >build/Makefile
13738         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'
13739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740   (eval $ac_try) 2>&5
13741   ac_status=$?
13742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745   (eval $ac_try) 2>&5
13746   ac_status=$?
13747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); }; }; then
13749
13750                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13751 $as_echo "yes" >&6; }
13752
13753 cat >>confdefs.h <<\_ACEOF
13754 #define HAVE_REQ_SYNC 1
13755 _ACEOF
13756
13757
13758 else
13759   $as_echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762                 { $as_echo "$as_me:$LINENO: result: no" >&5
13763 $as_echo "no" >&6; }
13764
13765
13766
13767 fi
13768
13769         rm -Rf build
13770
13771
13772
13773
13774         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13775 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13776         tmp_flags="$EXTRA_KCFLAGS"
13777         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13778
13779
13780 cat confdefs.h - <<_ACEOF >conftest.c
13781 /* confdefs.h.  */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h.  */
13786
13787
13788                 #include <linux/blkdev.h>
13789
13790 int
13791 main (void)
13792 {
13793
13794                 struct request *req = NULL;
13795                 (void) blk_end_request(req, 0, 0);
13796
13797   ;
13798   return 0;
13799 }
13800
13801 _ACEOF
13802
13803
13804         rm -Rf build && mkdir -p build
13805         echo "obj-m := conftest.o" >build/Makefile
13806         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'
13807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808   (eval $ac_try) 2>&5
13809   ac_status=$?
13810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813   (eval $ac_try) 2>&5
13814   ac_status=$?
13815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); }; }; then
13817
13818                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13819 $as_echo "yes" >&6; }
13820
13821 cat >>confdefs.h <<\_ACEOF
13822 #define HAVE_BLK_END_REQUEST 1
13823 _ACEOF
13824
13825
13826 else
13827   $as_echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830                 { $as_echo "$as_me:$LINENO: result: no" >&5
13831 $as_echo "no" >&6; }
13832
13833
13834
13835 fi
13836
13837         rm -Rf build
13838
13839
13840
13841         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13842 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13843
13844
13845 cat confdefs.h - <<_ACEOF >conftest.c
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851
13852
13853                 #include <linux/module.h>
13854                 #include <linux/blkdev.h>
13855
13856                 MODULE_LICENSE("CDDL");
13857
13858 int
13859 main (void)
13860 {
13861
13862                 struct request *req = NULL;
13863                 (void) blk_end_request(req, 0, 0);
13864
13865   ;
13866   return 0;
13867 }
13868
13869 _ACEOF
13870
13871
13872         rm -Rf build && mkdir -p build
13873         echo "obj-m := conftest.o" >build/Makefile
13874         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'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881   (eval $ac_try) 2>&5
13882   ac_status=$?
13883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); }; }; then
13885
13886                 { $as_echo "$as_me:$LINENO: result: no" >&5
13887 $as_echo "no" >&6; }
13888
13889 else
13890   $as_echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13892
13893                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13894 $as_echo "yes" >&6; }
13895
13896 cat >>confdefs.h <<\_ACEOF
13897 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13898 _ACEOF
13899
13900
13901
13902
13903 fi
13904
13905         rm -Rf build
13906
13907
13908         EXTRA_KCFLAGS="$tmp_flags"
13909
13910
13911         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13912 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13913         tmp_flags="$EXTRA_KCFLAGS"
13914         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13915
13916
13917 cat confdefs.h - <<_ACEOF >conftest.c
13918 /* confdefs.h.  */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h.  */
13923
13924
13925                 #include <linux/blkdev.h>
13926
13927 int
13928 main (void)
13929 {
13930
13931                 struct request_queue *q = NULL;
13932                 (void) blk_queue_flush(q, REQ_FLUSH);
13933
13934   ;
13935   return 0;
13936 }
13937
13938 _ACEOF
13939
13940
13941         rm -Rf build && mkdir -p build
13942         echo "obj-m := conftest.o" >build/Makefile
13943         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'
13944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945   (eval $ac_try) 2>&5
13946   ac_status=$?
13947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950   (eval $ac_try) 2>&5
13951   ac_status=$?
13952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); }; }; then
13954
13955                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13956 $as_echo "yes" >&6; }
13957
13958 cat >>confdefs.h <<\_ACEOF
13959 #define HAVE_BLK_QUEUE_FLUSH 1
13960 _ACEOF
13961
13962
13963 else
13964   $as_echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967                 { $as_echo "$as_me:$LINENO: result: no" >&5
13968 $as_echo "no" >&6; }
13969
13970
13971
13972 fi
13973
13974         rm -Rf build
13975
13976
13977
13978         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13979 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13980
13981
13982 cat confdefs.h - <<_ACEOF >conftest.c
13983 /* confdefs.h.  */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h.  */
13988
13989
13990                 #include <linux/module.h>
13991                 #include <linux/blkdev.h>
13992
13993                 MODULE_LICENSE("CDDL");
13994
13995 int
13996 main (void)
13997 {
13998
13999                 struct request_queue *q = NULL;
14000                 (void) blk_queue_flush(q, REQ_FLUSH);
14001
14002   ;
14003   return 0;
14004 }
14005
14006 _ACEOF
14007
14008
14009         rm -Rf build && mkdir -p build
14010         echo "obj-m := conftest.o" >build/Makefile
14011         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'
14012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018   (eval $ac_try) 2>&5
14019   ac_status=$?
14020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021   (exit $ac_status); }; }; then
14022
14023                 { $as_echo "$as_me:$LINENO: result: no" >&5
14024 $as_echo "no" >&6; }
14025
14026 else
14027   $as_echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14029
14030                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14031 $as_echo "yes" >&6; }
14032
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
14035 _ACEOF
14036
14037
14038
14039
14040 fi
14041
14042         rm -Rf build
14043
14044
14045         EXTRA_KCFLAGS="$tmp_flags"
14046
14047
14048         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
14049 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14050         tmp_flags="$EXTRA_KCFLAGS"
14051         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14052
14053
14054 cat confdefs.h - <<_ACEOF >conftest.c
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060
14061
14062                 #include <linux/blkdev.h>
14063
14064 int
14065 main (void)
14066 {
14067
14068                 struct request_queue *q = NULL;
14069                 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14070
14071   ;
14072   return 0;
14073 }
14074
14075 _ACEOF
14076
14077
14078         rm -Rf build && mkdir -p build
14079         echo "obj-m := conftest.o" >build/Makefile
14080         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'
14081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082   (eval $ac_try) 2>&5
14083   ac_status=$?
14084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; }; then
14091
14092                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14093 $as_echo "yes" >&6; }
14094
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
14097 _ACEOF
14098
14099
14100 else
14101   $as_echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14103
14104                 { $as_echo "$as_me:$LINENO: result: no" >&5
14105 $as_echo "no" >&6; }
14106
14107
14108
14109 fi
14110
14111         rm -Rf build
14112
14113
14114         EXTRA_KCFLAGS="$tmp_flags"
14115
14116
14117         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
14118 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14119         tmp_flags="$EXTRA_KCFLAGS"
14120         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14121
14122
14123 cat confdefs.h - <<_ACEOF >conftest.c
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129
14130
14131                 #include <linux/blkdev.h>
14132
14133 int
14134 main (void)
14135 {
14136
14137                 struct request_queue *q = NULL;
14138                 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14139
14140   ;
14141   return 0;
14142 }
14143
14144 _ACEOF
14145
14146
14147         rm -Rf build && mkdir -p build
14148         echo "obj-m := conftest.o" >build/Makefile
14149         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'
14150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151   (eval $ac_try) 2>&5
14152   ac_status=$?
14153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14156   (eval $ac_try) 2>&5
14157   ac_status=$?
14158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); }; }; then
14160
14161                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14162 $as_echo "yes" >&6; }
14163
14164 cat >>confdefs.h <<\_ACEOF
14165 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
14166 _ACEOF
14167
14168
14169 else
14170   $as_echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173                 { $as_echo "$as_me:$LINENO: result: no" >&5
14174 $as_echo "no" >&6; }
14175
14176
14177
14178 fi
14179
14180         rm -Rf build
14181
14182
14183         EXTRA_KCFLAGS="$tmp_flags"
14184
14185
14186         { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
14187 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14188         tmp_flags="$EXTRA_KCFLAGS"
14189         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14190
14191
14192 cat confdefs.h - <<_ACEOF >conftest.c
14193 /* confdefs.h.  */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h.  */
14198
14199
14200                 #include <linux/blkdev.h>
14201
14202 int
14203 main (void)
14204 {
14205
14206                 struct request_queue *q = NULL;
14207                 unsigned short block_size = 1;
14208                 (void) blk_queue_physical_block_size(q, block_size);
14209
14210   ;
14211   return 0;
14212 }
14213
14214 _ACEOF
14215
14216
14217         rm -Rf build && mkdir -p build
14218         echo "obj-m := conftest.o" >build/Makefile
14219         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'
14220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221   (eval $ac_try) 2>&5
14222   ac_status=$?
14223   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; }; then
14230
14231                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14232 $as_echo "yes" >&6; }
14233
14234 cat >>confdefs.h <<\_ACEOF
14235 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14236 _ACEOF
14237
14238
14239 else
14240   $as_echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14242
14243                 { $as_echo "$as_me:$LINENO: result: no" >&5
14244 $as_echo "no" >&6; }
14245
14246
14247
14248 fi
14249
14250         rm -Rf build
14251
14252
14253         EXTRA_KCFLAGS="$tmp_flags"
14254
14255
14256         { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14257 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14258         tmp_flags="$EXTRA_KCFLAGS"
14259         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14260
14261
14262 cat confdefs.h - <<_ACEOF >conftest.c
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268
14269
14270                 #include <linux/blkdev.h>
14271
14272 int
14273 main (void)
14274 {
14275
14276                 struct request_queue *q = NULL;
14277                 unsigned int opt = 1;
14278                 (void) blk_queue_io_opt(q, opt);
14279
14280   ;
14281   return 0;
14282 }
14283
14284 _ACEOF
14285
14286
14287         rm -Rf build && mkdir -p build
14288         echo "obj-m := conftest.o" >build/Makefile
14289         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'
14290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291   (eval $ac_try) 2>&5
14292   ac_status=$?
14293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; }; then
14300
14301                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14302 $as_echo "yes" >&6; }
14303
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_BLK_QUEUE_IO_OPT 1
14306 _ACEOF
14307
14308
14309 else
14310   $as_echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14312
14313                 { $as_echo "$as_me:$LINENO: result: no" >&5
14314 $as_echo "no" >&6; }
14315
14316
14317
14318 fi
14319
14320         rm -Rf build
14321
14322
14323         EXTRA_KCFLAGS="$tmp_flags"
14324
14325
14326         { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14327 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14328         tmp_flags="$EXTRA_KCFLAGS"
14329         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14330
14331
14332 cat confdefs.h - <<_ACEOF >conftest.c
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338
14339
14340                 #include <linux/blkdev.h>
14341
14342 int
14343 main (void)
14344 {
14345
14346                 struct request_queue *q = NULL;
14347                 (void) blk_queue_nonrot(q);
14348
14349   ;
14350   return 0;
14351 }
14352
14353 _ACEOF
14354
14355
14356         rm -Rf build && mkdir -p build
14357         echo "obj-m := conftest.o" >build/Makefile
14358         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'
14359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360   (eval $ac_try) 2>&5
14361   ac_status=$?
14362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14365   (eval $ac_try) 2>&5
14366   ac_status=$?
14367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; }; then
14369
14370                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14371 $as_echo "yes" >&6; }
14372
14373 cat >>confdefs.h <<\_ACEOF
14374 #define HAVE_BLK_QUEUE_NONROT 1
14375 _ACEOF
14376
14377
14378 else
14379   $as_echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382                 { $as_echo "$as_me:$LINENO: result: no" >&5
14383 $as_echo "no" >&6; }
14384
14385
14386
14387 fi
14388
14389         rm -Rf build
14390
14391
14392         EXTRA_KCFLAGS="$tmp_flags"
14393
14394
14395         { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14396 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14397         tmp_flags="$EXTRA_KCFLAGS"
14398         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14399
14400
14401 cat confdefs.h - <<_ACEOF >conftest.c
14402 /* confdefs.h.  */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h.  */
14407
14408
14409                 #include <linux/blkdev.h>
14410
14411 int
14412 main (void)
14413 {
14414
14415                 struct request_queue *q = NULL;
14416                 (void) blk_queue_discard(q);
14417
14418   ;
14419   return 0;
14420 }
14421
14422 _ACEOF
14423
14424
14425         rm -Rf build && mkdir -p build
14426         echo "obj-m := conftest.o" >build/Makefile
14427         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'
14428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429   (eval $ac_try) 2>&5
14430   ac_status=$?
14431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434   (eval $ac_try) 2>&5
14435   ac_status=$?
14436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; }; then
14438
14439                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14440 $as_echo "yes" >&6; }
14441
14442 cat >>confdefs.h <<\_ACEOF
14443 #define HAVE_BLK_QUEUE_DISCARD 1
14444 _ACEOF
14445
14446
14447 else
14448   $as_echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.$ac_ext >&5
14450
14451                 { $as_echo "$as_me:$LINENO: result: no" >&5
14452 $as_echo "no" >&6; }
14453
14454
14455
14456 fi
14457
14458         rm -Rf build
14459
14460
14461         EXTRA_KCFLAGS="$tmp_flags"
14462
14463
14464         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14465 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14466         tmp_flags="$EXTRA_KCFLAGS"
14467         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14468
14469
14470 cat confdefs.h - <<_ACEOF >conftest.c
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476
14477
14478                 #include <linux/blkdev.h>
14479
14480 int
14481 main (void)
14482 {
14483
14484                 struct request_queue *q = NULL;
14485                 (void) blk_fetch_request(q);
14486
14487   ;
14488   return 0;
14489 }
14490
14491 _ACEOF
14492
14493
14494         rm -Rf build && mkdir -p build
14495         echo "obj-m := conftest.o" >build/Makefile
14496         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'
14497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498   (eval $ac_try) 2>&5
14499   ac_status=$?
14500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503   (eval $ac_try) 2>&5
14504   ac_status=$?
14505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; }; then
14507
14508                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14509 $as_echo "yes" >&6; }
14510
14511 cat >>confdefs.h <<\_ACEOF
14512 #define HAVE_BLK_FETCH_REQUEST 1
14513 _ACEOF
14514
14515
14516 else
14517   $as_echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14519
14520                 { $as_echo "$as_me:$LINENO: result: no" >&5
14521 $as_echo "no" >&6; }
14522
14523
14524
14525 fi
14526
14527         rm -Rf build
14528
14529
14530         EXTRA_KCFLAGS="$tmp_flags"
14531
14532
14533         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14534 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14535         tmp_flags="$EXTRA_KCFLAGS"
14536         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14537
14538
14539 cat confdefs.h - <<_ACEOF >conftest.c
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545
14546
14547                 #include <linux/blkdev.h>
14548
14549 int
14550 main (void)
14551 {
14552
14553                 struct request_queue *q = NULL;
14554                 struct request *req = NULL;
14555                 blk_requeue_request(q, req);
14556
14557   ;
14558   return 0;
14559 }
14560
14561 _ACEOF
14562
14563
14564         rm -Rf build && mkdir -p build
14565         echo "obj-m := conftest.o" >build/Makefile
14566         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'
14567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568   (eval $ac_try) 2>&5
14569   ac_status=$?
14570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573   (eval $ac_try) 2>&5
14574   ac_status=$?
14575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); }; }; then
14577
14578                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14579 $as_echo "yes" >&6; }
14580
14581 cat >>confdefs.h <<\_ACEOF
14582 #define HAVE_BLK_REQUEUE_REQUEST 1
14583 _ACEOF
14584
14585
14586 else
14587   $as_echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14589
14590                 { $as_echo "$as_me:$LINENO: result: no" >&5
14591 $as_echo "no" >&6; }
14592
14593
14594
14595 fi
14596
14597         rm -Rf build
14598
14599
14600         EXTRA_KCFLAGS="$tmp_flags"
14601
14602
14603         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14604 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14605         tmp_flags="$EXTRA_KCFLAGS"
14606         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14607
14608
14609 cat confdefs.h - <<_ACEOF >conftest.c
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615
14616
14617                 #include <linux/blkdev.h>
14618
14619 int
14620 main (void)
14621 {
14622
14623                 struct request *req = NULL;
14624                 (void) blk_rq_bytes(req);
14625
14626   ;
14627   return 0;
14628 }
14629
14630 _ACEOF
14631
14632
14633         rm -Rf build && mkdir -p build
14634         echo "obj-m := conftest.o" >build/Makefile
14635         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'
14636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642   (eval $ac_try) 2>&5
14643   ac_status=$?
14644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; }; then
14646
14647                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14648 $as_echo "yes" >&6; }
14649
14650 cat >>confdefs.h <<\_ACEOF
14651 #define HAVE_BLK_RQ_BYTES 1
14652 _ACEOF
14653
14654
14655 else
14656   $as_echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14658
14659                 { $as_echo "$as_me:$LINENO: result: no" >&5
14660 $as_echo "no" >&6; }
14661
14662
14663
14664 fi
14665
14666         rm -Rf build
14667
14668
14669
14670         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14671 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14672
14673
14674 cat confdefs.h - <<_ACEOF >conftest.c
14675 /* confdefs.h.  */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h.  */
14680
14681
14682                 #include <linux/module.h>
14683                 #include <linux/blkdev.h>
14684
14685                 MODULE_LICENSE("CDDL");
14686
14687 int
14688 main (void)
14689 {
14690
14691                 struct request *req = NULL;
14692                 (void) blk_rq_bytes(req);
14693
14694   ;
14695   return 0;
14696 }
14697
14698 _ACEOF
14699
14700
14701         rm -Rf build && mkdir -p build
14702         echo "obj-m := conftest.o" >build/Makefile
14703         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'
14704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705   (eval $ac_try) 2>&5
14706   ac_status=$?
14707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710   (eval $ac_try) 2>&5
14711   ac_status=$?
14712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; }; then
14714
14715                 { $as_echo "$as_me:$LINENO: result: no" >&5
14716 $as_echo "no" >&6; }
14717
14718 else
14719   $as_echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14723 $as_echo "yes" >&6; }
14724
14725 cat >>confdefs.h <<\_ACEOF
14726 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14727 _ACEOF
14728
14729
14730
14731
14732 fi
14733
14734         rm -Rf build
14735
14736
14737         EXTRA_KCFLAGS="$tmp_flags"
14738
14739
14740         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14741 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14742         tmp_flags="$EXTRA_KCFLAGS"
14743         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14744
14745
14746 cat confdefs.h - <<_ACEOF >conftest.c
14747 /* confdefs.h.  */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h.  */
14752
14753
14754                 #include <linux/blkdev.h>
14755
14756 int
14757 main (void)
14758 {
14759
14760                 struct request *req = NULL;
14761                 (void) blk_rq_pos(req);
14762
14763   ;
14764   return 0;
14765 }
14766
14767 _ACEOF
14768
14769
14770         rm -Rf build && mkdir -p build
14771         echo "obj-m := conftest.o" >build/Makefile
14772         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'
14773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774   (eval $ac_try) 2>&5
14775   ac_status=$?
14776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779   (eval $ac_try) 2>&5
14780   ac_status=$?
14781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; }; then
14783
14784                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14785 $as_echo "yes" >&6; }
14786
14787 cat >>confdefs.h <<\_ACEOF
14788 #define HAVE_BLK_RQ_POS 1
14789 _ACEOF
14790
14791
14792 else
14793   $as_echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14795
14796                 { $as_echo "$as_me:$LINENO: result: no" >&5
14797 $as_echo "no" >&6; }
14798
14799
14800
14801 fi
14802
14803         rm -Rf build
14804
14805
14806         EXTRA_KCFLAGS="$tmp_flags"
14807
14808
14809         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14810 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14811         tmp_flags="$EXTRA_KCFLAGS"
14812         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14813
14814
14815 cat confdefs.h - <<_ACEOF >conftest.c
14816 /* confdefs.h.  */
14817 _ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h.  */
14821
14822
14823                 #include <linux/blkdev.h>
14824
14825 int
14826 main (void)
14827 {
14828
14829                 struct request *req = NULL;
14830                 (void) blk_rq_sectors(req);
14831
14832   ;
14833   return 0;
14834 }
14835
14836 _ACEOF
14837
14838
14839         rm -Rf build && mkdir -p build
14840         echo "obj-m := conftest.o" >build/Makefile
14841         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'
14842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843   (eval $ac_try) 2>&5
14844   ac_status=$?
14845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848   (eval $ac_try) 2>&5
14849   ac_status=$?
14850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); }; }; then
14852
14853                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14854 $as_echo "yes" >&6; }
14855
14856 cat >>confdefs.h <<\_ACEOF
14857 #define HAVE_BLK_RQ_SECTORS 1
14858 _ACEOF
14859
14860
14861 else
14862   $as_echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865                 { $as_echo "$as_me:$LINENO: result: no" >&5
14866 $as_echo "no" >&6; }
14867
14868
14869
14870 fi
14871
14872         rm -Rf build
14873
14874
14875         EXTRA_KCFLAGS="$tmp_flags"
14876
14877
14878         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14879 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14880         tmp_flags="$EXTRA_KCFLAGS"
14881         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14882
14883
14884 cat confdefs.h - <<_ACEOF >conftest.c
14885 /* confdefs.h.  */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h.  */
14890
14891
14892                 #include <linux/blkdev.h>
14893
14894 int
14895 main (void)
14896 {
14897
14898                 struct gendisk *disk = NULL;
14899                 (void) get_disk_ro(disk);
14900
14901   ;
14902   return 0;
14903 }
14904
14905 _ACEOF
14906
14907
14908         rm -Rf build && mkdir -p build
14909         echo "obj-m := conftest.o" >build/Makefile
14910         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'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917   (eval $ac_try) 2>&5
14918   ac_status=$?
14919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); }; }; then
14921
14922                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14923 $as_echo "yes" >&6; }
14924
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_GET_DISK_RO 1
14927 _ACEOF
14928
14929
14930 else
14931   $as_echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934                 { $as_echo "$as_me:$LINENO: result: no" >&5
14935 $as_echo "no" >&6; }
14936
14937
14938
14939 fi
14940
14941         rm -Rf build
14942
14943
14944         EXTRA_KCFLAGS="$tmp_flags"
14945
14946
14947         { $as_echo "$as_me:$LINENO: checking whether symbol get_gendisk is exported" >&5
14948 $as_echo_n "checking whether symbol get_gendisk is exported... " >&6; }
14949         grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14950                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14951         rc=$?
14952         if test $rc -ne 0; then
14953
14954                 export=0
14955                 for file in block/genhd.c; do
14956                         grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" "$LINUX/$file" 2>/dev/null
14957                         rc=$?
14958                         if test $rc -eq 0; then
14959
14960                                 export=1
14961                                 break;
14962
14963 fi
14964
14965                 done
14966                 if test $export -eq 0; then
14967
14968                         { $as_echo "$as_me:$LINENO: result: no" >&5
14969 $as_echo "no" >&6; }
14970
14971
14972 else
14973
14974                         { $as_echo "$as_me:$LINENO: result: yes" >&5
14975 $as_echo "yes" >&6; }
14976
14977 cat >>confdefs.h <<\_ACEOF
14978 #define HAVE_GET_GENDISK 1
14979 _ACEOF
14980
14981
14982 fi
14983
14984
14985 else
14986
14987                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14988 $as_echo "yes" >&6; }
14989
14990 cat >>confdefs.h <<\_ACEOF
14991 #define HAVE_GET_GENDISK 1
14992 _ACEOF
14993
14994
14995 fi
14996
14997
14998
14999
15000         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
15001 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
15002         tmp_flags="$EXTRA_KCFLAGS"
15003         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
15004
15005
15006 cat confdefs.h - <<_ACEOF >conftest.c
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012
15013
15014                 #include <linux/blkdev.h>
15015
15016 int
15017 main (void)
15018 {
15019
15020                 struct request *req = NULL;
15021                 (void) rq_is_sync(req);
15022
15023   ;
15024   return 0;
15025 }
15026
15027 _ACEOF
15028
15029
15030         rm -Rf build && mkdir -p build
15031         echo "obj-m := conftest.o" >build/Makefile
15032         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'
15033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034   (eval $ac_try) 2>&5
15035   ac_status=$?
15036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039   (eval $ac_try) 2>&5
15040   ac_status=$?
15041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); }; }; then
15043
15044                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15045 $as_echo "yes" >&6; }
15046
15047 cat >>confdefs.h <<\_ACEOF
15048 #define HAVE_RQ_IS_SYNC 1
15049 _ACEOF
15050
15051
15052 else
15053   $as_echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15055
15056                 { $as_echo "$as_me:$LINENO: result: no" >&5
15057 $as_echo "no" >&6; }
15058
15059
15060
15061 fi
15062
15063         rm -Rf build
15064
15065
15066         EXTRA_KCFLAGS="$tmp_flags"
15067
15068
15069         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
15070 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
15071         tmp_flags="$EXTRA_KCFLAGS"
15072         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
15073
15074
15075 cat confdefs.h - <<_ACEOF >conftest.c
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081
15082
15083                 #include <linux/blkdev.h>
15084
15085 int
15086 main (void)
15087 {
15088
15089                 struct bio_vec *bv;
15090                 struct req_iterator iter;
15091                 struct request *req = NULL;
15092                 rq_for_each_segment(bv, req, iter) { }
15093
15094   ;
15095   return 0;
15096 }
15097
15098 _ACEOF
15099
15100
15101         rm -Rf build && mkdir -p build
15102         echo "obj-m := conftest.o" >build/Makefile
15103         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'
15104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105   (eval $ac_try) 2>&5
15106   ac_status=$?
15107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; }; then
15114
15115                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15116 $as_echo "yes" >&6; }
15117
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_RQ_FOR_EACH_SEGMENT 1
15120 _ACEOF
15121
15122
15123 else
15124   $as_echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127                 { $as_echo "$as_me:$LINENO: result: no" >&5
15128 $as_echo "no" >&6; }
15129
15130
15131
15132 fi
15133
15134         rm -Rf build
15135
15136
15137         EXTRA_KCFLAGS="$tmp_flags"
15138
15139         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
15140 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
15141
15142
15143 cat confdefs.h - <<_ACEOF >conftest.c
15144 /* confdefs.h.  */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h.  */
15149
15150
15151                 #include <linux/fs.h>
15152                 #include <linux/xattr.h>
15153
15154                 const struct xattr_handler xattr_test_handler = {
15155                         .prefix = "test",
15156                         .get    = NULL,
15157                         .set    = NULL,
15158                 };
15159
15160                 const struct xattr_handler *xattr_handlers[] = {
15161                         &xattr_test_handler,
15162                 };
15163
15164 int
15165 main (void)
15166 {
15167
15168                 struct super_block sb __attribute__ ((unused));
15169
15170                 sb.s_xattr = xattr_handlers;
15171
15172   ;
15173   return 0;
15174 }
15175
15176 _ACEOF
15177
15178
15179         rm -Rf build && mkdir -p build
15180         echo "obj-m := conftest.o" >build/Makefile
15181         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'
15182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183   (eval $ac_try) 2>&5
15184   ac_status=$?
15185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; }; then
15192
15193                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15194 $as_echo "yes" >&6; }
15195
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_CONST_XATTR_HANDLER 1
15198 _ACEOF
15199
15200
15201 else
15202   $as_echo "$as_me: failed program was:" >&5
15203 sed 's/^/| /' conftest.$ac_ext >&5
15204
15205                 { $as_echo "$as_me:$LINENO: result: no" >&5
15206 $as_echo "no" >&6; }
15207
15208
15209
15210 fi
15211
15212         rm -Rf build
15213
15214
15215
15216
15217         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
15218 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15219
15220
15221 cat confdefs.h - <<_ACEOF >conftest.c
15222 /* confdefs.h.  */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h.  */
15227
15228
15229                 #include <linux/xattr.h>
15230
15231 int
15232 main (void)
15233 {
15234
15235                 int (*get)(struct dentry *dentry, const char *name,
15236                     void *buffer, size_t size, int handler_flags) = NULL;
15237                 struct xattr_handler xops __attribute__ ((unused));
15238
15239                 xops.get = get;
15240
15241   ;
15242   return 0;
15243 }
15244
15245 _ACEOF
15246
15247
15248         rm -Rf build && mkdir -p build
15249         echo "obj-m := conftest.o" >build/Makefile
15250         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'
15251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252   (eval $ac_try) 2>&5
15253   ac_status=$?
15254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257   (eval $ac_try) 2>&5
15258   ac_status=$?
15259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); }; }; then
15261
15262                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15263 $as_echo "yes" >&6; }
15264
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_DENTRY_XATTR_GET 1
15267 _ACEOF
15268
15269
15270 else
15271   $as_echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15273
15274                 { $as_echo "$as_me:$LINENO: result: no" >&5
15275 $as_echo "no" >&6; }
15276
15277
15278
15279 fi
15280
15281         rm -Rf build
15282
15283
15284
15285
15286         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15287 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15288
15289
15290 cat confdefs.h - <<_ACEOF >conftest.c
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296
15297
15298                 #include <linux/xattr.h>
15299
15300 int
15301 main (void)
15302 {
15303
15304                 int (*set)(struct dentry *dentry, const char *name,
15305                     const void *buffer, size_t size, int flags,
15306                     int handler_flags) = NULL;
15307                 struct xattr_handler xops __attribute__ ((unused));
15308
15309                 xops.set = set;
15310
15311   ;
15312   return 0;
15313 }
15314
15315 _ACEOF
15316
15317
15318         rm -Rf build && mkdir -p build
15319         echo "obj-m := conftest.o" >build/Makefile
15320         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'
15321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322   (eval $ac_try) 2>&5
15323   ac_status=$?
15324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327   (eval $ac_try) 2>&5
15328   ac_status=$?
15329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; }; then
15331
15332                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15333 $as_echo "yes" >&6; }
15334
15335 cat >>confdefs.h <<\_ACEOF
15336 #define HAVE_DENTRY_XATTR_SET 1
15337 _ACEOF
15338
15339
15340 else
15341   $as_echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344                 { $as_echo "$as_me:$LINENO: result: no" >&5
15345 $as_echo "no" >&6; }
15346
15347
15348
15349 fi
15350
15351         rm -Rf build
15352
15353
15354
15355
15356         { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15357 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15358
15359
15360
15361 cat confdefs.h - <<_ACEOF >conftest.c
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367
15368
15369                 #include <linux/fs.h>
15370
15371                 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
15372                 static struct super_operations sops __attribute__ ((unused)) = {
15373                         .show_options = show_options,
15374                 };
15375
15376 int
15377 main (void)
15378 {
15379
15380
15381   ;
15382   return 0;
15383 }
15384
15385 _ACEOF
15386
15387
15388         rm -Rf build && mkdir -p build
15389         echo "obj-m := conftest.o" >build/Makefile
15390         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'
15391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392   (eval $ac_try) 2>&5
15393   ac_status=$?
15394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397   (eval $ac_try) 2>&5
15398   ac_status=$?
15399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); }; }; then
15401
15402                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15403 $as_echo "yes" >&6; }
15404
15405 cat >>confdefs.h <<\_ACEOF
15406 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15407 _ACEOF
15408
15409
15410 else
15411   $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414                 { $as_echo "$as_me:$LINENO: result: no" >&5
15415 $as_echo "no" >&6; }
15416
15417
15418
15419 fi
15420
15421         rm -Rf build
15422
15423
15424
15425
15426         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15427 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15428
15429
15430
15431 cat confdefs.h - <<_ACEOF >conftest.c
15432 /* confdefs.h.  */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h.  */
15437
15438
15439                 #include <linux/fs.h>
15440
15441 int
15442 main (void)
15443 {
15444
15445                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15446                 struct file_operations fops __attribute__ ((unused));
15447
15448                 fops.fsync = fsync;
15449
15450   ;
15451   return 0;
15452 }
15453
15454 _ACEOF
15455
15456
15457         rm -Rf build && mkdir -p build
15458         echo "obj-m := conftest.o" >build/Makefile
15459         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'
15460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15461   (eval $ac_try) 2>&5
15462   ac_status=$?
15463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466   (eval $ac_try) 2>&5
15467   ac_status=$?
15468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; }; then
15470
15471                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15472 $as_echo "dentry" >&6; }
15473
15474 cat >>confdefs.h <<\_ACEOF
15475 #define HAVE_FSYNC_WITH_DENTRY 1
15476 _ACEOF
15477
15478
15479 else
15480   $as_echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15482
15483
15484
15485
15486 fi
15487
15488         rm -Rf build
15489
15490
15491
15492
15493
15494
15495 cat confdefs.h - <<_ACEOF >conftest.c
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501
15502
15503                 #include <linux/fs.h>
15504
15505 int
15506 main (void)
15507 {
15508
15509                 int (*fsync) (struct file *, int) = NULL;
15510                 struct file_operations fops __attribute__ ((unused));
15511
15512                 fops.fsync = fsync;
15513
15514   ;
15515   return 0;
15516 }
15517
15518 _ACEOF
15519
15520
15521         rm -Rf build && mkdir -p build
15522         echo "obj-m := conftest.o" >build/Makefile
15523         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'
15524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525   (eval $ac_try) 2>&5
15526   ac_status=$?
15527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534
15535                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15536 $as_echo "no dentry" >&6; }
15537
15538 cat >>confdefs.h <<\_ACEOF
15539 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15540 _ACEOF
15541
15542
15543 else
15544   $as_echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15546
15547
15548
15549
15550 fi
15551
15552         rm -Rf build
15553
15554
15555
15556
15557
15558
15559 cat confdefs.h - <<_ACEOF >conftest.c
15560 /* confdefs.h.  */
15561 _ACEOF
15562 cat confdefs.h >>conftest.$ac_ext
15563 cat >>conftest.$ac_ext <<_ACEOF
15564 /* end confdefs.h.  */
15565
15566
15567                 #include <linux/fs.h>
15568
15569 int
15570 main (void)
15571 {
15572
15573                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15574                 struct file_operations fops __attribute__ ((unused));
15575
15576                 fops.fsync = fsync;
15577
15578   ;
15579   return 0;
15580 }
15581
15582 _ACEOF
15583
15584
15585         rm -Rf build && mkdir -p build
15586         echo "obj-m := conftest.o" >build/Makefile
15587         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'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598
15599                 { $as_echo "$as_me:$LINENO: result: range" >&5
15600 $as_echo "range" >&6; }
15601
15602 cat >>confdefs.h <<\_ACEOF
15603 #define HAVE_FSYNC_RANGE 1
15604 _ACEOF
15605
15606
15607 else
15608   $as_echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611
15612
15613
15614 fi
15615
15616         rm -Rf build
15617
15618
15619
15620
15621
15622
15623 cat confdefs.h - <<_ACEOF >conftest.c
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629
15630
15631                 #include <linux/fs.h>
15632
15633 int
15634 main (void)
15635 {
15636
15637                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15638                 file_operations_no_const fops __attribute__ ((unused));
15639
15640                 fops.fsync = fsync;
15641
15642   ;
15643   return 0;
15644 }
15645
15646 _ACEOF
15647
15648
15649         rm -Rf build && mkdir -p build
15650         echo "obj-m := conftest.o" >build/Makefile
15651         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'
15652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653   (eval $ac_try) 2>&5
15654   ac_status=$?
15655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662
15663                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15664 $as_echo "dentry" >&6; }
15665
15666 cat >>confdefs.h <<\_ACEOF
15667 #define HAVE_FSYNC_WITH_DENTRY 1
15668 _ACEOF
15669
15670
15671 else
15672   $as_echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675
15676
15677
15678 fi
15679
15680         rm -Rf build
15681
15682
15683
15684
15685
15686
15687 cat confdefs.h - <<_ACEOF >conftest.c
15688 /* confdefs.h.  */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h.  */
15693
15694
15695                 #include <linux/fs.h>
15696
15697 int
15698 main (void)
15699 {
15700
15701                 int (*fsync) (struct file *, int) = NULL;
15702                 file_operations_no_const fops __attribute__ ((unused));
15703
15704                 fops.fsync = fsync;
15705
15706   ;
15707   return 0;
15708 }
15709
15710 _ACEOF
15711
15712
15713         rm -Rf build && mkdir -p build
15714         echo "obj-m := conftest.o" >build/Makefile
15715         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'
15716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15717   (eval $ac_try) 2>&5
15718   ac_status=$?
15719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15722   (eval $ac_try) 2>&5
15723   ac_status=$?
15724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725   (exit $ac_status); }; }; then
15726
15727                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15728 $as_echo "no dentry" >&6; }
15729
15730 cat >>confdefs.h <<\_ACEOF
15731 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15732 _ACEOF
15733
15734
15735 else
15736   $as_echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15738
15739
15740
15741
15742 fi
15743
15744         rm -Rf build
15745
15746
15747
15748
15749
15750
15751 cat confdefs.h - <<_ACEOF >conftest.c
15752 /* confdefs.h.  */
15753 _ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h.  */
15757
15758
15759                 #include <linux/fs.h>
15760
15761 int
15762 main (void)
15763 {
15764
15765                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15766                 file_operations_no_const fops __attribute__ ((unused));
15767
15768                 fops.fsync = fsync;
15769
15770   ;
15771   return 0;
15772 }
15773
15774 _ACEOF
15775
15776
15777         rm -Rf build && mkdir -p build
15778         echo "obj-m := conftest.o" >build/Makefile
15779         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'
15780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781   (eval $ac_try) 2>&5
15782   ac_status=$?
15783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786   (eval $ac_try) 2>&5
15787   ac_status=$?
15788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; }; then
15790
15791                 { $as_echo "$as_me:$LINENO: result: range" >&5
15792 $as_echo "range" >&6; }
15793
15794 cat >>confdefs.h <<\_ACEOF
15795 #define HAVE_FSYNC_RANGE 1
15796 _ACEOF
15797
15798
15799 else
15800   $as_echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803
15804
15805
15806 fi
15807
15808         rm -Rf build
15809
15810
15811
15812
15813
15814         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
15815 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
15816
15817
15818 cat confdefs.h - <<_ACEOF >conftest.c
15819 /* confdefs.h.  */
15820 _ACEOF
15821 cat confdefs.h >>conftest.$ac_ext
15822 cat >>conftest.$ac_ext <<_ACEOF
15823 /* end confdefs.h.  */
15824
15825
15826                 #include <linux/fs.h>
15827                 void evict_inode (struct inode * t) { return; }
15828                 static struct super_operations sops __attribute__ ((unused)) = {
15829                         .evict_inode = evict_inode,
15830                 };
15831
15832 int
15833 main (void)
15834 {
15835
15836
15837   ;
15838   return 0;
15839 }
15840
15841 _ACEOF
15842
15843
15844         rm -Rf build && mkdir -p build
15845         echo "obj-m := conftest.o" >build/Makefile
15846         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'
15847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848   (eval $ac_try) 2>&5
15849   ac_status=$?
15850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853   (eval $ac_try) 2>&5
15854   ac_status=$?
15855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); }; }; then
15857
15858                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15859 $as_echo "yes" >&6; }
15860
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE_EVICT_INODE 1
15863 _ACEOF
15864
15865
15866 else
15867   $as_echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870                 { $as_echo "$as_me:$LINENO: result: no" >&5
15871 $as_echo "no" >&6; }
15872
15873
15874
15875 fi
15876
15877         rm -Rf build
15878
15879
15880
15881
15882         { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
15883 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
15884
15885
15886 cat confdefs.h - <<_ACEOF >conftest.c
15887 /* confdefs.h.  */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h.  */
15892
15893
15894                 #include <linux/fs.h>
15895
15896 int
15897 main (void)
15898 {
15899
15900                 int (*nr_cached_objects)(struct super_block *)
15901                         __attribute__ ((unused)) = NULL;
15902                 struct super_operations sops __attribute__ ((unused)) = {
15903                         .nr_cached_objects = nr_cached_objects,
15904                 };
15905
15906   ;
15907   return 0;
15908 }
15909
15910 _ACEOF
15911
15912
15913         rm -Rf build && mkdir -p build
15914         echo "obj-m := conftest.o" >build/Makefile
15915         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'
15916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917   (eval $ac_try) 2>&5
15918   ac_status=$?
15919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922   (eval $ac_try) 2>&5
15923   ac_status=$?
15924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }; }; then
15926
15927                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15928 $as_echo "yes" >&6; }
15929
15930 cat >>confdefs.h <<\_ACEOF
15931 #define HAVE_NR_CACHED_OBJECTS 1
15932 _ACEOF
15933
15934
15935 else
15936   $as_echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939                 { $as_echo "$as_me:$LINENO: result: no" >&5
15940 $as_echo "no" >&6; }
15941
15942
15943
15944 fi
15945
15946         rm -Rf build
15947
15948
15949
15950
15951         { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15952 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15953
15954
15955 cat confdefs.h - <<_ACEOF >conftest.c
15956 /* confdefs.h.  */
15957 _ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h.  */
15961
15962
15963                 #include <linux/fs.h>
15964
15965 int
15966 main (void)
15967 {
15968
15969                 void (*free_cached_objects)(struct super_block *, int)
15970                         __attribute__ ((unused)) = NULL;
15971                 struct super_operations sops __attribute__ ((unused)) = {
15972                         .free_cached_objects = free_cached_objects,
15973                 };
15974
15975   ;
15976   return 0;
15977 }
15978
15979 _ACEOF
15980
15981
15982         rm -Rf build && mkdir -p build
15983         echo "obj-m := conftest.o" >build/Makefile
15984         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'
15985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986   (eval $ac_try) 2>&5
15987   ac_status=$?
15988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; }; then
15995
15996                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15997 $as_echo "yes" >&6; }
15998
15999 cat >>confdefs.h <<\_ACEOF
16000 #define HAVE_FREE_CACHED_OBJECTS 1
16001 _ACEOF
16002
16003
16004 else
16005   $as_echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008                 { $as_echo "$as_me:$LINENO: result: no" >&5
16009 $as_echo "no" >&6; }
16010
16011
16012
16013 fi
16014
16015         rm -Rf build
16016
16017
16018
16019
16020
16021         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16022 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16023
16024
16025 cat confdefs.h - <<_ACEOF >conftest.c
16026 /* confdefs.h.  */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h.  */
16031
16032
16033                 #include <linux/fs.h>
16034
16035 int
16036 main (void)
16037 {
16038
16039                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16040                 struct file_operations fops __attribute__ ((unused)) = {
16041                         .fallocate = fallocate,
16042                 };
16043
16044   ;
16045   return 0;
16046 }
16047
16048 _ACEOF
16049
16050
16051         rm -Rf build && mkdir -p build
16052         echo "obj-m := conftest.o" >build/Makefile
16053         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'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064
16065                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16066 $as_echo "yes" >&6; }
16067
16068 cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_FILE_FALLOCATE 1
16070 _ACEOF
16071
16072
16073 else
16074   $as_echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16076
16077                 { $as_echo "$as_me:$LINENO: result: no" >&5
16078 $as_echo "no" >&6; }
16079
16080
16081
16082 fi
16083
16084         rm -Rf build
16085
16086
16087
16088
16089         { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
16090 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16091
16092
16093 cat confdefs.h - <<_ACEOF >conftest.c
16094 /* confdefs.h.  */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h.  */
16099
16100
16101                 #include <linux/fs.h>
16102
16103 int
16104 main (void)
16105 {
16106
16107                 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16108                 struct inode_operations fops __attribute__ ((unused)) = {
16109                         .fallocate = fallocate,
16110                 };
16111
16112   ;
16113   return 0;
16114 }
16115
16116 _ACEOF
16117
16118
16119         rm -Rf build && mkdir -p build
16120         echo "obj-m := conftest.o" >build/Makefile
16121         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'
16122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123   (eval $ac_try) 2>&5
16124   ac_status=$?
16125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128   (eval $ac_try) 2>&5
16129   ac_status=$?
16130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); }; }; then
16132
16133                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16134 $as_echo "yes" >&6; }
16135
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE_INODE_FALLOCATE 1
16138 _ACEOF
16139
16140
16141 else
16142   $as_echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145                 { $as_echo "$as_me:$LINENO: result: no" >&5
16146 $as_echo "no" >&6; }
16147
16148
16149
16150 fi
16151
16152         rm -Rf build
16153
16154
16155
16156
16157         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
16158 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16159
16160
16161 cat confdefs.h - <<_ACEOF >conftest.c
16162 /* confdefs.h.  */
16163 _ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h.  */
16167
16168
16169                 #include <linux/fs.h>
16170
16171 int
16172 main (void)
16173 {
16174
16175                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16176                 struct file_operations_no_const fops __attribute__ ((unused)) = {
16177                         .fallocate = fallocate,
16178                 };
16179
16180   ;
16181   return 0;
16182 }
16183
16184 _ACEOF
16185
16186
16187         rm -Rf build && mkdir -p build
16188         echo "obj-m := conftest.o" >build/Makefile
16189         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'
16190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191   (eval $ac_try) 2>&5
16192   ac_status=$?
16193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196   (eval $ac_try) 2>&5
16197   ac_status=$?
16198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199   (exit $ac_status); }; }; then
16200
16201                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16202 $as_echo "yes" >&6; }
16203
16204 cat >>confdefs.h <<\_ACEOF
16205 #define HAVE_FILE_FALLOCATE 1
16206 _ACEOF
16207
16208
16209 else
16210   $as_echo "$as_me: failed program was:" >&5
16211 sed 's/^/| /' conftest.$ac_ext >&5
16212
16213                 { $as_echo "$as_me:$LINENO: result: no" >&5
16214 $as_echo "no" >&6; }
16215
16216
16217
16218 fi
16219
16220         rm -Rf build
16221
16222
16223
16224
16225
16226         { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
16227 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
16228
16229
16230 cat confdefs.h - <<_ACEOF >conftest.c
16231 /* confdefs.h.  */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h.  */
16236
16237
16238                 #include <linux/fs.h>
16239                 void truncate_range(struct inode *inode, loff_t start,
16240                                     loff_t end) { return; }
16241                 static struct inode_operations iops __attribute__ ((unused)) = {
16242                         .truncate_range = truncate_range,
16243                 };
16244
16245 int
16246 main (void)
16247 {
16248
16249
16250   ;
16251   return 0;
16252 }
16253
16254 _ACEOF
16255
16256
16257         rm -Rf build && mkdir -p build
16258         echo "obj-m := conftest.o" >build/Makefile
16259         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'
16260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261   (eval $ac_try) 2>&5
16262   ac_status=$?
16263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270
16271                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16272 $as_echo "yes" >&6; }
16273
16274 cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_INODE_TRUNCATE_RANGE 1
16276 _ACEOF
16277
16278
16279 else
16280   $as_echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283                 { $as_echo "$as_me:$LINENO: result: no" >&5
16284 $as_echo "no" >&6; }
16285
16286
16287
16288 fi
16289
16290         rm -Rf build
16291
16292
16293
16294
16295         { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
16296 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
16297
16298
16299 cat confdefs.h - <<_ACEOF >conftest.c
16300 /* confdefs.h.  */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h.  */
16305
16306
16307                 #include <linux/fs.h>
16308
16309 int
16310 main (void)
16311 {
16312
16313                 int (*create) (struct inode *, struct dentry *, umode_t,
16314                     struct nameidata *) = NULL;
16315                 struct inode_operations iops __attribute__ ((unused)) = {
16316                         .create = create,
16317                 };
16318
16319   ;
16320   return 0;
16321 }
16322
16323 _ACEOF
16324
16325
16326         rm -Rf build && mkdir -p build
16327         echo "obj-m := conftest.o" >build/Makefile
16328         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'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335   (eval $ac_try) 2>&5
16336   ac_status=$?
16337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); }; }; then
16339
16340                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16341 $as_echo "yes" >&6; }
16342
16343 cat >>confdefs.h <<\_ACEOF
16344 #define HAVE_CREATE_UMODE_T 1
16345 _ACEOF
16346
16347
16348 else
16349   $as_echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352                 { $as_echo "$as_me:$LINENO: result: no" >&5
16353 $as_echo "no" >&6; }
16354
16355
16356
16357 fi
16358
16359         rm -Rf build
16360
16361
16362
16363
16364         { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
16365 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
16366
16367
16368 cat confdefs.h - <<_ACEOF >conftest.c
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374
16375
16376                 #include <linux/dcache.h>
16377
16378 int
16379 main (void)
16380 {
16381
16382                 struct vfsmount *(*d_automount) (struct path *) = NULL;
16383                 struct dentry_operations dops __attribute__ ((unused)) = {
16384                         .d_automount = d_automount,
16385                 };
16386
16387   ;
16388   return 0;
16389 }
16390
16391 _ACEOF
16392
16393
16394         rm -Rf build && mkdir -p build
16395         echo "obj-m := conftest.o" >build/Makefile
16396         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'
16397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398   (eval $ac_try) 2>&5
16399   ac_status=$?
16400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403   (eval $ac_try) 2>&5
16404   ac_status=$?
16405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; }; then
16407
16408                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16409 $as_echo "yes" >&6; }
16410
16411 cat >>confdefs.h <<\_ACEOF
16412 #define HAVE_AUTOMOUNT 1
16413 _ACEOF
16414
16415
16416 else
16417   $as_echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420                 { $as_echo "$as_me:$LINENO: result: no" >&5
16421 $as_echo "no" >&6; }
16422
16423
16424
16425 fi
16426
16427         rm -Rf build
16428
16429
16430
16431
16432         { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
16433 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
16434
16435
16436 cat confdefs.h - <<_ACEOF >conftest.c
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442
16443
16444                 #include <linux/exportfs.h>
16445                 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
16446                               struct inode *parent) { return 0; }
16447                 static struct export_operations eops __attribute__ ((unused))={
16448                         .encode_fh = encode_fh,
16449                 };
16450
16451 int
16452 main (void)
16453 {
16454
16455
16456   ;
16457   return 0;
16458 }
16459
16460 _ACEOF
16461
16462
16463         rm -Rf build && mkdir -p build
16464         echo "obj-m := conftest.o" >build/Makefile
16465         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'
16466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467   (eval $ac_try) 2>&5
16468   ac_status=$?
16469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472   (eval $ac_try) 2>&5
16473   ac_status=$?
16474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); }; }; then
16476
16477                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16478 $as_echo "yes" >&6; }
16479
16480 cat >>confdefs.h <<\_ACEOF
16481 #define HAVE_ENCODE_FH_WITH_INODE 1
16482 _ACEOF
16483
16484
16485 else
16486   $as_echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489                 { $as_echo "$as_me:$LINENO: result: no" >&5
16490 $as_echo "no" >&6; }
16491
16492
16493
16494 fi
16495
16496         rm -Rf build
16497
16498
16499
16500
16501         { $as_echo "$as_me:$LINENO: checking whether symbol clear_inode is exported" >&5
16502 $as_echo_n "checking whether symbol clear_inode is exported... " >&6; }
16503         grep -q -E '[[:space:]]clear_inode[[:space:]]' \
16504                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16505         rc=$?
16506         if test $rc -ne 0; then
16507
16508                 export=0
16509                 for file in fs/inode.c; do
16510                         grep -q -E "EXPORT_SYMBOL.*(clear_inode)" "$LINUX/$file" 2>/dev/null
16511                         rc=$?
16512                         if test $rc -eq 0; then
16513
16514                                 export=1
16515                                 break;
16516
16517 fi
16518
16519                 done
16520                 if test $export -eq 0; then
16521
16522                         { $as_echo "$as_me:$LINENO: result: no" >&5
16523 $as_echo "no" >&6; }
16524
16525
16526 else
16527
16528                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16529 $as_echo "yes" >&6; }
16530
16531 cat >>confdefs.h <<\_ACEOF
16532 #define HAVE_CLEAR_INODE 1
16533 _ACEOF
16534
16535
16536 fi
16537
16538
16539 else
16540
16541                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16542 $as_echo "yes" >&6; }
16543
16544 cat >>confdefs.h <<\_ACEOF
16545 #define HAVE_CLEAR_INODE 1
16546 _ACEOF
16547
16548
16549 fi
16550
16551
16552
16553
16554         { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
16555 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
16556         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
16557                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16558         rc=$?
16559         if test $rc -ne 0; then
16560
16561                 export=0
16562                 for file in fs/inode.c; do
16563                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
16564                         rc=$?
16565                         if test $rc -eq 0; then
16566
16567                                 export=1
16568                                 break;
16569
16570 fi
16571
16572                 done
16573                 if test $export -eq 0; then
16574
16575                         { $as_echo "$as_me:$LINENO: result: no" >&5
16576 $as_echo "no" >&6; }
16577
16578
16579 else
16580
16581                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16582 $as_echo "yes" >&6; }
16583
16584 cat >>confdefs.h <<\_ACEOF
16585 #define HAVE_INSERT_INODE_LOCKED 1
16586 _ACEOF
16587
16588
16589 fi
16590
16591
16592 else
16593
16594                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16595 $as_echo "yes" >&6; }
16596
16597 cat >>confdefs.h <<\_ACEOF
16598 #define HAVE_INSERT_INODE_LOCKED 1
16599 _ACEOF
16600
16601
16602 fi
16603
16604
16605
16606
16607         { $as_echo "$as_me:$LINENO: checking whether symbol d_make_root is exported" >&5
16608 $as_echo_n "checking whether symbol d_make_root is exported... " >&6; }
16609         grep -q -E '[[:space:]]d_make_root[[:space:]]' \
16610                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16611         rc=$?
16612         if test $rc -ne 0; then
16613
16614                 export=0
16615                 for file in fs/dcache.c; do
16616                         grep -q -E "EXPORT_SYMBOL.*(d_make_root)" "$LINUX/$file" 2>/dev/null
16617                         rc=$?
16618                         if test $rc -eq 0; then
16619
16620                                 export=1
16621                                 break;
16622
16623 fi
16624
16625                 done
16626                 if test $export -eq 0; then
16627
16628                         { $as_echo "$as_me:$LINENO: result: no" >&5
16629 $as_echo "no" >&6; }
16630
16631
16632 else
16633
16634                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16635 $as_echo "yes" >&6; }
16636
16637 cat >>confdefs.h <<\_ACEOF
16638 #define HAVE_D_MAKE_ROOT 1
16639 _ACEOF
16640
16641
16642 fi
16643
16644
16645 else
16646
16647                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16648 $as_echo "yes" >&6; }
16649
16650 cat >>confdefs.h <<\_ACEOF
16651 #define HAVE_D_MAKE_ROOT 1
16652 _ACEOF
16653
16654
16655 fi
16656
16657
16658
16659
16660         { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
16661 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
16662         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
16663                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16664         rc=$?
16665         if test $rc -ne 0; then
16666
16667                 export=0
16668                 for file in fs/dcache.c; do
16669                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
16670                         rc=$?
16671                         if test $rc -eq 0; then
16672
16673                                 export=1
16674                                 break;
16675
16676 fi
16677
16678                 done
16679                 if test $export -eq 0; then
16680
16681                         { $as_echo "$as_me:$LINENO: result: no" >&5
16682 $as_echo "no" >&6; }
16683
16684
16685 else
16686
16687                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16688 $as_echo "yes" >&6; }
16689
16690 cat >>confdefs.h <<\_ACEOF
16691 #define HAVE_D_OBTAIN_ALIAS 1
16692 _ACEOF
16693
16694
16695 fi
16696
16697
16698 else
16699
16700                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16701 $as_echo "yes" >&6; }
16702
16703 cat >>confdefs.h <<\_ACEOF
16704 #define HAVE_D_OBTAIN_ALIAS 1
16705 _ACEOF
16706
16707
16708 fi
16709
16710
16711
16712
16713         { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
16714 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
16715         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
16716                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16717         rc=$?
16718         if test $rc -ne 0; then
16719
16720                 export=0
16721                 for file in fs/block_dev.c; do
16722                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
16723                         rc=$?
16724                         if test $rc -eq 0; then
16725
16726                                 export=1
16727                                 break;
16728
16729 fi
16730
16731                 done
16732                 if test $export -eq 0; then
16733
16734                         { $as_echo "$as_me:$LINENO: result: no" >&5
16735 $as_echo "no" >&6; }
16736
16737
16738 else
16739
16740                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16741 $as_echo "yes" >&6; }
16742
16743 cat >>confdefs.h <<\_ACEOF
16744 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
16745 _ACEOF
16746
16747
16748 fi
16749
16750
16751 else
16752
16753                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16754 $as_echo "yes" >&6; }
16755
16756 cat >>confdefs.h <<\_ACEOF
16757 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
16758 _ACEOF
16759
16760
16761 fi
16762
16763
16764
16765
16766         { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
16767 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
16768         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
16769                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16770         rc=$?
16771         if test $rc -ne 0; then
16772
16773                 export=0
16774                 for file in mm/truncate.c; do
16775                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
16776                         rc=$?
16777                         if test $rc -eq 0; then
16778
16779                                 export=1
16780                                 break;
16781
16782 fi
16783
16784                 done
16785                 if test $export -eq 0; then
16786
16787                         { $as_echo "$as_me:$LINENO: result: no" >&5
16788 $as_echo "no" >&6; }
16789
16790
16791 else
16792
16793                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16794 $as_echo "yes" >&6; }
16795
16796 cat >>confdefs.h <<\_ACEOF
16797 #define HAVE_TRUNCATE_SETSIZE 1
16798 _ACEOF
16799
16800
16801 fi
16802
16803
16804 else
16805
16806                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16807 $as_echo "yes" >&6; }
16808
16809 cat >>confdefs.h <<\_ACEOF
16810 #define HAVE_TRUNCATE_SETSIZE 1
16811 _ACEOF
16812
16813
16814 fi
16815
16816
16817
16818
16819         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
16820 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
16821         tmp_flags="$EXTRA_KCFLAGS"
16822         EXTRA_KCFLAGS="-Werror"
16823
16824
16825 cat confdefs.h - <<_ACEOF >conftest.c
16826 /* confdefs.h.  */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h.  */
16831
16832
16833                 #include <linux/security.h>
16834
16835 int
16836 main (void)
16837 {
16838
16839                 struct inode *ip __attribute__ ((unused)) = NULL;
16840                 struct inode *dip __attribute__ ((unused)) = NULL;
16841                 const struct qstr *str __attribute__ ((unused)) = NULL;
16842                 char *name __attribute__ ((unused)) = NULL;
16843                 void *value __attribute__ ((unused)) = NULL;
16844                 size_t len __attribute__ ((unused)) = 0;
16845
16846                 security_inode_init_security(ip, dip, str, &name, &value, &len);
16847
16848   ;
16849   return 0;
16850 }
16851
16852 _ACEOF
16853
16854
16855         rm -Rf build && mkdir -p build
16856         echo "obj-m := conftest.o" >build/Makefile
16857         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'
16858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16859   (eval $ac_try) 2>&5
16860   ac_status=$?
16861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16864   (eval $ac_try) 2>&5
16865   ac_status=$?
16866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867   (exit $ac_status); }; }; then
16868
16869                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16870 $as_echo "yes" >&6; }
16871
16872 cat >>confdefs.h <<\_ACEOF
16873 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
16874 _ACEOF
16875
16876
16877 else
16878   $as_echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881                 { $as_echo "$as_me:$LINENO: result: no" >&5
16882 $as_echo "no" >&6; }
16883
16884
16885
16886 fi
16887
16888         rm -Rf build
16889
16890
16891         EXTRA_KCFLAGS="$tmp_flags"
16892
16893
16894         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
16895 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16896         tmp_flags="$EXTRA_KCFLAGS"
16897         EXTRA_KCFLAGS="-Werror"
16898
16899
16900 cat confdefs.h - <<_ACEOF >conftest.c
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906
16907
16908                 #include <linux/security.h>
16909
16910 int
16911 main (void)
16912 {
16913
16914                 struct inode *ip __attribute__ ((unused)) = NULL;
16915                 struct inode *dip __attribute__ ((unused)) = NULL;
16916                 const struct qstr *str __attribute__ ((unused)) = NULL;
16917                 initxattrs func __attribute__ ((unused)) = NULL;
16918
16919                 security_inode_init_security(ip, dip, str, func, NULL);
16920
16921   ;
16922   return 0;
16923 }
16924
16925 _ACEOF
16926
16927
16928         rm -Rf build && mkdir -p build
16929         echo "obj-m := conftest.o" >build/Makefile
16930         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'
16931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932   (eval $ac_try) 2>&5
16933   ac_status=$?
16934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937   (eval $ac_try) 2>&5
16938   ac_status=$?
16939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); }; }; then
16941
16942                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16943 $as_echo "yes" >&6; }
16944
16945 cat >>confdefs.h <<\_ACEOF
16946 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
16947 _ACEOF
16948
16949
16950 else
16951   $as_echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954                 { $as_echo "$as_me:$LINENO: result: no" >&5
16955 $as_echo "no" >&6; }
16956
16957
16958
16959 fi
16960
16961         rm -Rf build
16962
16963
16964         EXTRA_KCFLAGS="$tmp_flags"
16965
16966
16967         { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
16968 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
16969         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16970                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16971         rc=$?
16972         if test $rc -ne 0; then
16973
16974                 export=0
16975                 for file in fs/super.c; do
16976                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
16977                         rc=$?
16978                         if test $rc -eq 0; then
16979
16980                                 export=1
16981                                 break;
16982
16983 fi
16984
16985                 done
16986                 if test $export -eq 0; then
16987
16988                         { $as_echo "$as_me:$LINENO: result: no" >&5
16989 $as_echo "no" >&6; }
16990
16991
16992 else
16993
16994                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16995 $as_echo "yes" >&6; }
16996
16997 cat >>confdefs.h <<\_ACEOF
16998 #define HAVE_MOUNT_NODEV 1
16999 _ACEOF
17000
17001
17002 fi
17003
17004
17005 else
17006
17007                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17008 $as_echo "yes" >&6; }
17009
17010 cat >>confdefs.h <<\_ACEOF
17011 #define HAVE_MOUNT_NODEV 1
17012 _ACEOF
17013
17014
17015 fi
17016
17017
17018
17019
17020         { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
17021 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
17022
17023
17024 cat confdefs.h - <<_ACEOF >conftest.c
17025 /* confdefs.h.  */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h.  */
17030
17031
17032                 #include <linux/fs.h>
17033
17034 int
17035 main (void)
17036 {
17037
17038                 int (*shrink)(struct shrinker *, struct shrink_control *sc)
17039                         __attribute__ ((unused)) = NULL;
17040                 struct super_block sb __attribute__ ((unused)) = {
17041                         .s_shrink.shrink = shrink,
17042                         .s_shrink.seeks = DEFAULT_SEEKS,
17043                         .s_shrink.batch = 0,
17044                 };
17045
17046   ;
17047   return 0;
17048 }
17049
17050 _ACEOF
17051
17052
17053         rm -Rf build && mkdir -p build
17054         echo "obj-m := conftest.o" >build/Makefile
17055         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'
17056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057   (eval $ac_try) 2>&5
17058   ac_status=$?
17059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062   (eval $ac_try) 2>&5
17063   ac_status=$?
17064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065   (exit $ac_status); }; }; then
17066
17067                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17068 $as_echo "yes" >&6; }
17069
17070 cat >>confdefs.h <<\_ACEOF
17071 #define HAVE_SHRINK 1
17072 _ACEOF
17073
17074
17075
17076 else
17077   $as_echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17079
17080                 { $as_echo "$as_me:$LINENO: result: no" >&5
17081 $as_echo "no" >&6; }
17082
17083
17084
17085 fi
17086
17087         rm -Rf build
17088
17089
17090
17091
17092         { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
17093 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
17094
17095
17096 cat confdefs.h - <<_ACEOF >conftest.c
17097 /* confdefs.h.  */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h.  */
17102
17103
17104                 #include <linux/fs.h>
17105
17106 int
17107 main (void)
17108 {
17109
17110                 struct super_block sb __attribute__ ((unused));
17111                 sb.s_bdi = NULL;
17112
17113   ;
17114   return 0;
17115 }
17116
17117 _ACEOF
17118
17119
17120         rm -Rf build && mkdir -p build
17121         echo "obj-m := conftest.o" >build/Makefile
17122         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'
17123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124   (eval $ac_try) 2>&5
17125   ac_status=$?
17126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133
17134                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17135 $as_echo "yes" >&6; }
17136
17137 cat >>confdefs.h <<\_ACEOF
17138 #define HAVE_BDI 1
17139 _ACEOF
17140
17141
17142 else
17143   $as_echo "$as_me: failed program was:" >&5
17144 sed 's/^/| /' conftest.$ac_ext >&5
17145
17146                 { $as_echo "$as_me:$LINENO: result: no" >&5
17147 $as_echo "no" >&6; }
17148
17149
17150
17151 fi
17152
17153         rm -Rf build
17154
17155
17156
17157
17158         { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
17159 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
17160         grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
17161                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17162         rc=$?
17163         if test $rc -ne 0; then
17164
17165                 export=0
17166                 for file in mm/backing-dev.c; do
17167                         grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
17168                         rc=$?
17169                         if test $rc -eq 0; then
17170
17171                                 export=1
17172                                 break;
17173
17174 fi
17175
17176                 done
17177                 if test $export -eq 0; then
17178
17179                         { $as_echo "$as_me:$LINENO: result: no" >&5
17180 $as_echo "no" >&6; }
17181
17182
17183 else
17184
17185                         { $as_echo "$as_me:$LINENO: result: yes" >&5
17186 $as_echo "yes" >&6; }
17187
17188 cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_BDI_SETUP_AND_REGISTER 1
17190 _ACEOF
17191
17192
17193 fi
17194
17195
17196 else
17197
17198                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17199 $as_echo "yes" >&6; }
17200
17201 cat >>confdefs.h <<\_ACEOF
17202 #define HAVE_BDI_SETUP_AND_REGISTER 1
17203 _ACEOF
17204
17205
17206 fi
17207
17208
17209
17210
17211         { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
17212 $as_echo_n "checking whether set_nlink() is available... " >&6; }
17213
17214
17215 cat confdefs.h - <<_ACEOF >conftest.c
17216 /* confdefs.h.  */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h.  */
17221
17222
17223                 #include <linux/fs.h>
17224
17225 int
17226 main (void)
17227 {
17228
17229                 struct inode node;
17230                 unsigned int link = 0;
17231                 (void) set_nlink(&node, link);
17232
17233   ;
17234   return 0;
17235 }
17236
17237 _ACEOF
17238
17239
17240         rm -Rf build && mkdir -p build
17241         echo "obj-m := conftest.o" >build/Makefile
17242         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'
17243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17244   (eval $ac_try) 2>&5
17245   ac_status=$?
17246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249   (eval $ac_try) 2>&5
17250   ac_status=$?
17251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); }; }; then
17253
17254                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17255 $as_echo "yes" >&6; }
17256
17257 cat >>confdefs.h <<\_ACEOF
17258 #define HAVE_SET_NLINK 1
17259 _ACEOF
17260
17261
17262 else
17263   $as_echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266                 { $as_echo "$as_me:$LINENO: result: no" >&5
17267 $as_echo "no" >&6; }
17268
17269
17270
17271 fi
17272
17273         rm -Rf build
17274
17275
17276
17277
17278         if test "$LINUX_OBJ" != "$LINUX"; then
17279
17280                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17281
17282 fi
17283
17284
17285
17286
17287                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
17288         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17289         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
17290
17291
17292  ;;
17293                 user)
17294
17295
17296 # Check whether --with-udevdir was given.
17297 if test "${with_udevdir+set}" = set; then
17298   withval=$with_udevdir; udevdir=$withval
17299 else
17300   udevdir='${exec_prefix}/lib/udev'
17301 fi
17302
17303
17304
17305 # Check whether --with-udevruledir was given.
17306 if test "${with_udevruledir+set}" = set; then
17307   withval=$with_udevruledir; udevruledir=$withval
17308 else
17309   udevruledir='${udevdir}/rules.d'
17310 fi
17311
17312
17313
17314
17315
17316
17317         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
17318 $as_echo_n "checking for target asm dir... " >&6; }
17319         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
17320
17321         case $TARGET_ARCH in
17322         i386|x86_64)
17323                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
17324                 ;;
17325         *)
17326                 TARGET_ASM_DIR=asm-generic
17327                 ;;
17328         esac
17329
17330
17331         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
17332 $as_echo "$TARGET_ASM_DIR" >&6; }
17333
17334
17335         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
17336 $as_echo_n "checking for ioctl()... " >&6; }
17337         cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 #include <unistd.h>
17344
17345 _ACEOF
17346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17347   $EGREP "ioctl" >/dev/null 2>&1; then
17348   is_unistd=yes
17349 else
17350   is_unistd=no
17351 fi
17352 rm -f conftest*
17353
17354         cat >conftest.$ac_ext <<_ACEOF
17355 /* confdefs.h.  */
17356 _ACEOF
17357 cat confdefs.h >>conftest.$ac_ext
17358 cat >>conftest.$ac_ext <<_ACEOF
17359 /* end confdefs.h.  */
17360 #include <sys/ioctl.h>
17361
17362 _ACEOF
17363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17364   $EGREP "ioctl" >/dev/null 2>&1; then
17365   is_sys_ioctl=yes
17366 else
17367   is_sys_ioctl=no
17368 fi
17369 rm -f conftest*
17370
17371         cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h.  */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h.  */
17377 #include <stropts.h>
17378
17379 _ACEOF
17380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17381   $EGREP "ioctl" >/dev/null 2>&1; then
17382   is_stropts=yes
17383 else
17384   is_stropts=no
17385 fi
17386 rm -f conftest*
17387
17388
17389         if test $is_unistd = yes; then
17390                 result=unistd.h
17391
17392 cat >>confdefs.h <<\_ACEOF
17393 #define HAVE_IOCTL_IN_UNISTD_H 1
17394 _ACEOF
17395
17396         else
17397
17398                 if test $is_sys_ioctl = yes; then
17399                         result=sys/ioctl.h
17400
17401 cat >>confdefs.h <<\_ACEOF
17402 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
17403 _ACEOF
17404
17405                 elif test $is_stropts = yes; then
17406
17407 cat >>confdefs.h <<\_ACEOF
17408 #define HAVE_IOCTL_IN_STROPTS_H 1
17409 _ACEOF
17410
17411                 else
17412                         result=no
17413                 fi
17414         fi
17415
17416         if test $result = no; then
17417                 { $as_echo "$as_me:$LINENO: result: no" >&5
17418 $as_echo "no" >&6; }
17419                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
17420 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
17421    { (exit 1); exit 1; }; }
17422         else
17423                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17424 $as_echo "yes" >&6; }
17425         fi
17426
17427
17428         ZLIB=
17429
17430         if test "${ac_cv_header_zlib_h+set}" = set; then
17431   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
17432 $as_echo_n "checking for zlib.h... " >&6; }
17433 if test "${ac_cv_header_zlib_h+set}" = set; then
17434   $as_echo_n "(cached) " >&6
17435 fi
17436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
17437 $as_echo "$ac_cv_header_zlib_h" >&6; }
17438 else
17439   # Is the header compilable?
17440 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
17441 $as_echo_n "checking zlib.h usability... " >&6; }
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448 $ac_includes_default
17449 #include <zlib.h>
17450 _ACEOF
17451 rm -f conftest.$ac_objext
17452 if { (ac_try="$ac_compile"
17453 case "(($ac_try" in
17454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455   *) ac_try_echo=$ac_try;;
17456 esac
17457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17458 $as_echo "$ac_try_echo") >&5
17459   (eval "$ac_compile") 2>conftest.er1
17460   ac_status=$?
17461   grep -v '^ *+' conftest.er1 >conftest.err
17462   rm -f conftest.er1
17463   cat conftest.err >&5
17464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465   (exit $ac_status); } && {
17466          test -z "$ac_c_werror_flag" ||
17467          test ! -s conftest.err
17468        } && test -s conftest.$ac_objext; then
17469   ac_header_compiler=yes
17470 else
17471   $as_echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17473
17474         ac_header_compiler=no
17475 fi
17476
17477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17479 $as_echo "$ac_header_compiler" >&6; }
17480
17481 # Is the header present?
17482 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
17483 $as_echo_n "checking zlib.h presence... " >&6; }
17484 cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h.  */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h.  */
17490 #include <zlib.h>
17491 _ACEOF
17492 if { (ac_try="$ac_cpp conftest.$ac_ext"
17493 case "(($ac_try" in
17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495   *) ac_try_echo=$ac_try;;
17496 esac
17497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17498 $as_echo "$ac_try_echo") >&5
17499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17500   ac_status=$?
17501   grep -v '^ *+' conftest.er1 >conftest.err
17502   rm -f conftest.er1
17503   cat conftest.err >&5
17504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); } >/dev/null && {
17506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17507          test ! -s conftest.err
17508        }; then
17509   ac_header_preproc=yes
17510 else
17511   $as_echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514   ac_header_preproc=no
17515 fi
17516
17517 rm -f conftest.err conftest.$ac_ext
17518 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17519 $as_echo "$ac_header_preproc" >&6; }
17520
17521 # So?  What about this header?
17522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17523   yes:no: )
17524     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17525 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17526     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
17527 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
17528     ac_header_preproc=yes
17529     ;;
17530   no:yes:* )
17531     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
17532 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
17533     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
17534 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
17535     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
17536 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
17537     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
17538 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17539     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
17540 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
17541     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
17542 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
17543
17544     ;;
17545 esac
17546 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
17547 $as_echo_n "checking for zlib.h... " >&6; }
17548 if test "${ac_cv_header_zlib_h+set}" = set; then
17549   $as_echo_n "(cached) " >&6
17550 else
17551   ac_cv_header_zlib_h=$ac_header_preproc
17552 fi
17553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
17554 $as_echo "$ac_cv_header_zlib_h" >&6; }
17555
17556 fi
17557 if test "x$ac_cv_header_zlib_h" = x""yes; then
17558   :
17559 else
17560   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17562 { { $as_echo "$as_me:$LINENO: error:
17563         *** zlib.h missing, zlib-devel package required
17564 See \`config.log' for more details." >&5
17565 $as_echo "$as_me: error:
17566         *** zlib.h missing, zlib-devel package required
17567 See \`config.log' for more details." >&2;}
17568    { (exit 1); exit 1; }; }; }
17569 fi
17570
17571
17572
17573
17574 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
17575 $as_echo_n "checking for compress2 in -lz... " >&6; }
17576 if test "${ac_cv_lib_z_compress2+set}" = set; then
17577   $as_echo_n "(cached) " >&6
17578 else
17579   ac_check_lib_save_LIBS=$LIBS
17580 LIBS="-lz  $LIBS"
17581 cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587
17588 /* Override any GCC internal prototype to avoid an error.
17589    Use char because int might match the return type of a GCC
17590    builtin and then its argument prototype would still apply.  */
17591 #ifdef __cplusplus
17592 extern "C"
17593 #endif
17594 char compress2 ();
17595 int
17596 main ()
17597 {
17598 return compress2 ();
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest.$ac_objext conftest$ac_exeext
17604 if { (ac_try="$ac_link"
17605 case "(($ac_try" in
17606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607   *) ac_try_echo=$ac_try;;
17608 esac
17609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17610 $as_echo "$ac_try_echo") >&5
17611   (eval "$ac_link") 2>conftest.er1
17612   ac_status=$?
17613   grep -v '^ *+' conftest.er1 >conftest.err
17614   rm -f conftest.er1
17615   cat conftest.err >&5
17616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); } && {
17618          test -z "$ac_c_werror_flag" ||
17619          test ! -s conftest.err
17620        } && test -s conftest$ac_exeext && {
17621          test "$cross_compiling" = yes ||
17622          $as_test_x conftest$ac_exeext
17623        }; then
17624   ac_cv_lib_z_compress2=yes
17625 else
17626   $as_echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629         ac_cv_lib_z_compress2=no
17630 fi
17631
17632 rm -rf conftest.dSYM
17633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17634       conftest$ac_exeext conftest.$ac_ext
17635 LIBS=$ac_check_lib_save_LIBS
17636 fi
17637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
17638 $as_echo "$ac_cv_lib_z_compress2" >&6; }
17639 if test "x$ac_cv_lib_z_compress2" = x""yes; then
17640   cat >>confdefs.h <<_ACEOF
17641 #define HAVE_LIBZ 1
17642 _ACEOF
17643
17644   LIBS="-lz $LIBS"
17645
17646 else
17647   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17649 { { $as_echo "$as_me:$LINENO: error:
17650         *** compress2() missing, zlib-devel package required
17651 See \`config.log' for more details." >&5
17652 $as_echo "$as_me: error:
17653         *** compress2() missing, zlib-devel package required
17654 See \`config.log' for more details." >&2;}
17655    { (exit 1); exit 1; }; }; }
17656 fi
17657
17658
17659
17660 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
17661 $as_echo_n "checking for uncompress in -lz... " >&6; }
17662 if test "${ac_cv_lib_z_uncompress+set}" = set; then
17663   $as_echo_n "(cached) " >&6
17664 else
17665   ac_check_lib_save_LIBS=$LIBS
17666 LIBS="-lz  $LIBS"
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h.  */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h.  */
17673
17674 /* Override any GCC internal prototype to avoid an error.
17675    Use char because int might match the return type of a GCC
17676    builtin and then its argument prototype would still apply.  */
17677 #ifdef __cplusplus
17678 extern "C"
17679 #endif
17680 char uncompress ();
17681 int
17682 main ()
17683 {
17684 return uncompress ();
17685   ;
17686   return 0;
17687 }
17688 _ACEOF
17689 rm -f conftest.$ac_objext conftest$ac_exeext
17690 if { (ac_try="$ac_link"
17691 case "(($ac_try" in
17692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693   *) ac_try_echo=$ac_try;;
17694 esac
17695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17696 $as_echo "$ac_try_echo") >&5
17697   (eval "$ac_link") 2>conftest.er1
17698   ac_status=$?
17699   grep -v '^ *+' conftest.er1 >conftest.err
17700   rm -f conftest.er1
17701   cat conftest.err >&5
17702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); } && {
17704          test -z "$ac_c_werror_flag" ||
17705          test ! -s conftest.err
17706        } && test -s conftest$ac_exeext && {
17707          test "$cross_compiling" = yes ||
17708          $as_test_x conftest$ac_exeext
17709        }; then
17710   ac_cv_lib_z_uncompress=yes
17711 else
17712   $as_echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17714
17715         ac_cv_lib_z_uncompress=no
17716 fi
17717
17718 rm -rf conftest.dSYM
17719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17720       conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17722 fi
17723 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
17724 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17725 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
17726   cat >>confdefs.h <<_ACEOF
17727 #define HAVE_LIBZ 1
17728 _ACEOF
17729
17730   LIBS="-lz $LIBS"
17731
17732 else
17733   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17735 { { $as_echo "$as_me:$LINENO: error:
17736         *** uncompress() missing, zlib-devel package required
17737 See \`config.log' for more details." >&5
17738 $as_echo "$as_me: error:
17739         *** uncompress() missing, zlib-devel package required
17740 See \`config.log' for more details." >&2;}
17741    { (exit 1); exit 1; }; }; }
17742 fi
17743
17744
17745
17746 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
17747 $as_echo_n "checking for crc32 in -lz... " >&6; }
17748 if test "${ac_cv_lib_z_crc32+set}" = set; then
17749   $as_echo_n "(cached) " >&6
17750 else
17751   ac_check_lib_save_LIBS=$LIBS
17752 LIBS="-lz  $LIBS"
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759
17760 /* Override any GCC internal prototype to avoid an error.
17761    Use char because int might match the return type of a GCC
17762    builtin and then its argument prototype would still apply.  */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 char crc32 ();
17767 int
17768 main ()
17769 {
17770 return crc32 ();
17771   ;
17772   return 0;
17773 }
17774 _ACEOF
17775 rm -f conftest.$ac_objext conftest$ac_exeext
17776 if { (ac_try="$ac_link"
17777 case "(($ac_try" in
17778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779   *) ac_try_echo=$ac_try;;
17780 esac
17781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17782 $as_echo "$ac_try_echo") >&5
17783   (eval "$ac_link") 2>conftest.er1
17784   ac_status=$?
17785   grep -v '^ *+' conftest.er1 >conftest.err
17786   rm -f conftest.er1
17787   cat conftest.err >&5
17788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); } && {
17790          test -z "$ac_c_werror_flag" ||
17791          test ! -s conftest.err
17792        } && test -s conftest$ac_exeext && {
17793          test "$cross_compiling" = yes ||
17794          $as_test_x conftest$ac_exeext
17795        }; then
17796   ac_cv_lib_z_crc32=yes
17797 else
17798   $as_echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801         ac_cv_lib_z_crc32=no
17802 fi
17803
17804 rm -rf conftest.dSYM
17805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17806       conftest$ac_exeext conftest.$ac_ext
17807 LIBS=$ac_check_lib_save_LIBS
17808 fi
17809 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
17810 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17811 if test "x$ac_cv_lib_z_crc32" = x""yes; then
17812   cat >>confdefs.h <<_ACEOF
17813 #define HAVE_LIBZ 1
17814 _ACEOF
17815
17816   LIBS="-lz $LIBS"
17817
17818 else
17819   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17821 { { $as_echo "$as_me:$LINENO: error:
17822         *** crc32() missing, zlib-devel package required
17823 See \`config.log' for more details." >&5
17824 $as_echo "$as_me: error:
17825         *** crc32() missing, zlib-devel package required
17826 See \`config.log' for more details." >&2;}
17827    { (exit 1); exit 1; }; }; }
17828 fi
17829
17830
17831         ZLIB="-lz"
17832
17833
17834 cat >>confdefs.h <<\_ACEOF
17835 #define HAVE_ZLIB 1
17836 _ACEOF
17837
17838
17839
17840         LIBUUID=
17841
17842         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17843   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17844 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17845 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17846   $as_echo_n "(cached) " >&6
17847 fi
17848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17849 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17850 else
17851   # Is the header compilable?
17852 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
17853 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17860 $ac_includes_default
17861 #include <uuid/uuid.h>
17862 _ACEOF
17863 rm -f conftest.$ac_objext
17864 if { (ac_try="$ac_compile"
17865 case "(($ac_try" in
17866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867   *) ac_try_echo=$ac_try;;
17868 esac
17869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17870 $as_echo "$ac_try_echo") >&5
17871   (eval "$ac_compile") 2>conftest.er1
17872   ac_status=$?
17873   grep -v '^ *+' conftest.er1 >conftest.err
17874   rm -f conftest.er1
17875   cat conftest.err >&5
17876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); } && {
17878          test -z "$ac_c_werror_flag" ||
17879          test ! -s conftest.err
17880        } && test -s conftest.$ac_objext; then
17881   ac_header_compiler=yes
17882 else
17883   $as_echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886         ac_header_compiler=no
17887 fi
17888
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17890 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17891 $as_echo "$ac_header_compiler" >&6; }
17892
17893 # Is the header present?
17894 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
17895 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
17896 cat >conftest.$ac_ext <<_ACEOF
17897 /* confdefs.h.  */
17898 _ACEOF
17899 cat confdefs.h >>conftest.$ac_ext
17900 cat >>conftest.$ac_ext <<_ACEOF
17901 /* end confdefs.h.  */
17902 #include <uuid/uuid.h>
17903 _ACEOF
17904 if { (ac_try="$ac_cpp conftest.$ac_ext"
17905 case "(($ac_try" in
17906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907   *) ac_try_echo=$ac_try;;
17908 esac
17909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17910 $as_echo "$ac_try_echo") >&5
17911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } >/dev/null && {
17918          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17919          test ! -s conftest.err
17920        }; then
17921   ac_header_preproc=yes
17922 else
17923   $as_echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926   ac_header_preproc=no
17927 fi
17928
17929 rm -f conftest.err conftest.$ac_ext
17930 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17931 $as_echo "$ac_header_preproc" >&6; }
17932
17933 # So?  What about this header?
17934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17935   yes:no: )
17936     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17937 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17938     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
17939 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
17940     ac_header_preproc=yes
17941     ;;
17942   no:yes:* )
17943     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17944 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17945     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
17946 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
17947     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17948 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17949     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
17950 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17951     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
17952 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
17953     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17954 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17955
17956     ;;
17957 esac
17958 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17959 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17960 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17961   $as_echo_n "(cached) " >&6
17962 else
17963   ac_cv_header_uuid_uuid_h=$ac_header_preproc
17964 fi
17965 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17966 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17967
17968 fi
17969 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17970   :
17971 else
17972   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17974 { { $as_echo "$as_me:$LINENO: error:
17975         *** uuid/uuid.h missing, libuuid-devel package required
17976 See \`config.log' for more details." >&5
17977 $as_echo "$as_me: error:
17978         *** uuid/uuid.h missing, libuuid-devel package required
17979 See \`config.log' for more details." >&2;}
17980    { (exit 1); exit 1; }; }; }
17981 fi
17982
17983
17984
17985
17986 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
17987 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17988 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17989   $as_echo_n "(cached) " >&6
17990 else
17991   ac_check_lib_save_LIBS=$LIBS
17992 LIBS="-luuid  $LIBS"
17993 cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h.  */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h.  */
17999
18000 /* Override any GCC internal prototype to avoid an error.
18001    Use char because int might match the return type of a GCC
18002    builtin and then its argument prototype would still apply.  */
18003 #ifdef __cplusplus
18004 extern "C"
18005 #endif
18006 char uuid_generate ();
18007 int
18008 main ()
18009 {
18010 return uuid_generate ();
18011   ;
18012   return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (ac_try="$ac_link"
18017 case "(($ac_try" in
18018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019   *) ac_try_echo=$ac_try;;
18020 esac
18021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18022 $as_echo "$ac_try_echo") >&5
18023   (eval "$ac_link") 2>conftest.er1
18024   ac_status=$?
18025   grep -v '^ *+' conftest.er1 >conftest.err
18026   rm -f conftest.er1
18027   cat conftest.err >&5
18028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); } && {
18030          test -z "$ac_c_werror_flag" ||
18031          test ! -s conftest.err
18032        } && test -s conftest$ac_exeext && {
18033          test "$cross_compiling" = yes ||
18034          $as_test_x conftest$ac_exeext
18035        }; then
18036   ac_cv_lib_uuid_uuid_generate=yes
18037 else
18038   $as_echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041         ac_cv_lib_uuid_uuid_generate=no
18042 fi
18043
18044 rm -rf conftest.dSYM
18045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18046       conftest$ac_exeext conftest.$ac_ext
18047 LIBS=$ac_check_lib_save_LIBS
18048 fi
18049 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
18050 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
18051 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
18052   cat >>confdefs.h <<_ACEOF
18053 #define HAVE_LIBUUID 1
18054 _ACEOF
18055
18056   LIBS="-luuid $LIBS"
18057
18058 else
18059   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18061 { { $as_echo "$as_me:$LINENO: error:
18062         *** uuid_generate() missing, libuuid-devel package required
18063 See \`config.log' for more details." >&5
18064 $as_echo "$as_me: error:
18065         *** uuid_generate() missing, libuuid-devel package required
18066 See \`config.log' for more details." >&2;}
18067    { (exit 1); exit 1; }; }; }
18068 fi
18069
18070
18071
18072 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
18073 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
18074 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
18075   $as_echo_n "(cached) " >&6
18076 else
18077   ac_check_lib_save_LIBS=$LIBS
18078 LIBS="-luuid  $LIBS"
18079 cat >conftest.$ac_ext <<_ACEOF
18080 /* confdefs.h.  */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h.  */
18085
18086 /* Override any GCC internal prototype to avoid an error.
18087    Use char because int might match the return type of a GCC
18088    builtin and then its argument prototype would still apply.  */
18089 #ifdef __cplusplus
18090 extern "C"
18091 #endif
18092 char uuid_is_null ();
18093 int
18094 main ()
18095 {
18096 return uuid_is_null ();
18097   ;
18098   return 0;
18099 }
18100 _ACEOF
18101 rm -f conftest.$ac_objext conftest$ac_exeext
18102 if { (ac_try="$ac_link"
18103 case "(($ac_try" in
18104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105   *) ac_try_echo=$ac_try;;
18106 esac
18107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108 $as_echo "$ac_try_echo") >&5
18109   (eval "$ac_link") 2>conftest.er1
18110   ac_status=$?
18111   grep -v '^ *+' conftest.er1 >conftest.err
18112   rm -f conftest.er1
18113   cat conftest.err >&5
18114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); } && {
18116          test -z "$ac_c_werror_flag" ||
18117          test ! -s conftest.err
18118        } && test -s conftest$ac_exeext && {
18119          test "$cross_compiling" = yes ||
18120          $as_test_x conftest$ac_exeext
18121        }; then
18122   ac_cv_lib_uuid_uuid_is_null=yes
18123 else
18124   $as_echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127         ac_cv_lib_uuid_uuid_is_null=no
18128 fi
18129
18130 rm -rf conftest.dSYM
18131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18132       conftest$ac_exeext conftest.$ac_ext
18133 LIBS=$ac_check_lib_save_LIBS
18134 fi
18135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
18136 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
18137 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
18138   cat >>confdefs.h <<_ACEOF
18139 #define HAVE_LIBUUID 1
18140 _ACEOF
18141
18142   LIBS="-luuid $LIBS"
18143
18144 else
18145   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18147 { { $as_echo "$as_me:$LINENO: error:
18148         *** uuid_is_null() missing, libuuid-devel package required
18149 See \`config.log' for more details." >&5
18150 $as_echo "$as_me: error:
18151         *** uuid_is_null() missing, libuuid-devel package required
18152 See \`config.log' for more details." >&2;}
18153    { (exit 1); exit 1; }; }; }
18154 fi
18155
18156
18157         LIBUUID="-luuid"
18158
18159
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_LIBUUID 1
18162 _ACEOF
18163
18164
18165
18166
18167 # Check whether --with-blkid was given.
18168 if test "${with_blkid+set}" = set; then
18169   withval=$with_blkid;
18170 else
18171   with_blkid=check
18172 fi
18173
18174
18175         LIBBLKID=
18176         if test "x$with_blkid" != xno; then
18177
18178                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
18179 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
18180 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
18181   $as_echo_n "(cached) " >&6
18182 else
18183   ac_check_lib_save_LIBS=$LIBS
18184 LIBS="-lblkid  $LIBS"
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h.  */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h.  */
18191
18192 /* Override any GCC internal prototype to avoid an error.
18193    Use char because int might match the return type of a GCC
18194    builtin and then its argument prototype would still apply.  */
18195 #ifdef __cplusplus
18196 extern "C"
18197 #endif
18198 char blkid_get_cache ();
18199 int
18200 main ()
18201 {
18202 return blkid_get_cache ();
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (ac_try="$ac_link"
18209 case "(($ac_try" in
18210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211   *) ac_try_echo=$ac_try;;
18212 esac
18213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18214 $as_echo "$ac_try_echo") >&5
18215   (eval "$ac_link") 2>conftest.er1
18216   ac_status=$?
18217   grep -v '^ *+' conftest.er1 >conftest.err
18218   rm -f conftest.er1
18219   cat conftest.err >&5
18220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); } && {
18222          test -z "$ac_c_werror_flag" ||
18223          test ! -s conftest.err
18224        } && test -s conftest$ac_exeext && {
18225          test "$cross_compiling" = yes ||
18226          $as_test_x conftest$ac_exeext
18227        }; then
18228   ac_cv_lib_blkid_blkid_get_cache=yes
18229 else
18230   $as_echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233         ac_cv_lib_blkid_blkid_get_cache=no
18234 fi
18235
18236 rm -rf conftest.dSYM
18237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18238       conftest$ac_exeext conftest.$ac_ext
18239 LIBS=$ac_check_lib_save_LIBS
18240 fi
18241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
18242 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
18243 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
18244
18245                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
18246 $as_echo_n "checking for blkid zfs support... " >&6; }
18247
18248                         ZFS_DEV=`mktemp`
18249                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
18250                                 >/dev/null 2>/dev/null
18251                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
18252                                 dd of=$ZFS_DEV bs=1k count=8 \
18253                                 seek=132 conv=notrunc &>/dev/null \
18254                                 >/dev/null 2>/dev/null
18255
18256                         saved_LDFLAGS="$LDFLAGS"
18257                         LDFLAGS="-lblkid"
18258
18259                         if test "$cross_compiling" = yes; then
18260   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18262 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18263 See \`config.log' for more details." >&5
18264 $as_echo "$as_me: error: cannot run test program while cross compiling
18265 See \`config.log' for more details." >&2;}
18266    { (exit 1); exit 1; }; }; }
18267 else
18268   cat >conftest.$ac_ext <<_ACEOF
18269 /* confdefs.h.  */
18270 _ACEOF
18271 cat confdefs.h >>conftest.$ac_ext
18272 cat >>conftest.$ac_ext <<_ACEOF
18273 /* end confdefs.h.  */
18274
18275                                 #include <stdio.h>
18276                                 #include <blkid/blkid.h>
18277
18278 int
18279 main ()
18280 {
18281
18282                                 blkid_cache cache;
18283                                 char *value;
18284
18285                                 if (blkid_get_cache(&cache, NULL) < 0)
18286                                         return 1;
18287
18288                                 value = blkid_get_tag_value(cache, "TYPE",
18289                                                             "$ZFS_DEV");
18290                                 if (!value) {
18291                                         blkid_put_cache(cache);
18292                                         return 2;
18293                                 }
18294
18295                                 if (strcmp(value, "zfs")) {
18296                                         free(value);
18297                                         blkid_put_cache(cache);
18298                                         return 3;
18299                                 }
18300
18301                                 free(value);
18302                                 blkid_put_cache(cache);
18303
18304   ;
18305   return 0;
18306 }
18307 _ACEOF
18308 rm -f conftest$ac_exeext
18309 if { (ac_try="$ac_link"
18310 case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18315 $as_echo "$ac_try_echo") >&5
18316   (eval "$ac_link") 2>&5
18317   ac_status=$?
18318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18320   { (case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326   (eval "$ac_try") 2>&5
18327   ac_status=$?
18328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; }; then
18330
18331                                 rm -f $ZFS_DEV
18332                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18333 $as_echo "yes" >&6; }
18334                                 LIBBLKID="-lblkid"
18335
18336
18337 cat >>confdefs.h <<\_ACEOF
18338 #define HAVE_LIBBLKID 1
18339 _ACEOF
18340
18341
18342 else
18343   $as_echo "$as_me: program exited with status $ac_status" >&5
18344 $as_echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347 ( exit $ac_status )
18348
18349                                 rm -f $ZFS_DEV
18350                                 { $as_echo "$as_me:$LINENO: result: no" >&5
18351 $as_echo "no" >&6; }
18352                                 if test "x$with_blkid" != xcheck; then
18353   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18355 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
18356 See \`config.log' for more details." >&5
18357 $as_echo "$as_me: error: --with-blkid given but unavailable
18358 See \`config.log' for more details." >&2;}
18359    { (exit 1); exit 1; }; }; }
18360 fi
18361
18362
18363 fi
18364 rm -rf conftest.dSYM
18365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18366 fi
18367
18368
18369
18370                         LDFLAGS="$saved_LDFLAGS"
18371
18372 else
18373
18374                         if test "x$with_blkid" != xcheck; then
18375   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18377 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
18378 See \`config.log' for more details." >&5
18379 $as_echo "$as_me: error: --with-blkid given but unavailable
18380 See \`config.log' for more details." >&2;}
18381    { (exit 1); exit 1; }; }; }
18382 fi
18383
18384
18385
18386 fi
18387
18388
18389 fi
18390
18391
18392
18393
18394 # Check whether --with-selinux was given.
18395 if test "${with_selinux+set}" = set; then
18396   withval=$with_selinux;
18397 else
18398   with_selinux=check
18399 fi
18400
18401
18402         LIBSELINUX=
18403         if test "x$with_selinux" != xno; then
18404
18405                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18406   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
18407 $as_echo_n "checking for selinux/selinux.h... " >&6; }
18408 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18409   $as_echo_n "(cached) " >&6
18410 fi
18411 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
18412 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
18413 else
18414   # Is the header compilable?
18415 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
18416 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
18417 cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423 $ac_includes_default
18424 #include <selinux/selinux.h>
18425 _ACEOF
18426 rm -f conftest.$ac_objext
18427 if { (ac_try="$ac_compile"
18428 case "(($ac_try" in
18429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430   *) ac_try_echo=$ac_try;;
18431 esac
18432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18433 $as_echo "$ac_try_echo") >&5
18434   (eval "$ac_compile") 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } && {
18441          test -z "$ac_c_werror_flag" ||
18442          test ! -s conftest.err
18443        } && test -s conftest.$ac_objext; then
18444   ac_header_compiler=yes
18445 else
18446   $as_echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449         ac_header_compiler=no
18450 fi
18451
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18454 $as_echo "$ac_header_compiler" >&6; }
18455
18456 # Is the header present?
18457 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
18458 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
18459 cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h.  */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h.  */
18465 #include <selinux/selinux.h>
18466 _ACEOF
18467 if { (ac_try="$ac_cpp conftest.$ac_ext"
18468 case "(($ac_try" in
18469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470   *) ac_try_echo=$ac_try;;
18471 esac
18472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18473 $as_echo "$ac_try_echo") >&5
18474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18475   ac_status=$?
18476   grep -v '^ *+' conftest.er1 >conftest.err
18477   rm -f conftest.er1
18478   cat conftest.err >&5
18479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480   (exit $ac_status); } >/dev/null && {
18481          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18482          test ! -s conftest.err
18483        }; then
18484   ac_header_preproc=yes
18485 else
18486   $as_echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18488
18489   ac_header_preproc=no
18490 fi
18491
18492 rm -f conftest.err conftest.$ac_ext
18493 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18494 $as_echo "$ac_header_preproc" >&6; }
18495
18496 # So?  What about this header?
18497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18498   yes:no: )
18499     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
18500 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18501     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
18502 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
18503     ac_header_preproc=yes
18504     ;;
18505   no:yes:* )
18506     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
18507 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
18508     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
18509 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
18510     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
18511 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
18512     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
18513 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18514     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
18515 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
18516     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
18517 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
18518
18519     ;;
18520 esac
18521 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
18522 $as_echo_n "checking for selinux/selinux.h... " >&6; }
18523 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
18524   $as_echo_n "(cached) " >&6
18525 else
18526   ac_cv_header_selinux_selinux_h=$ac_header_preproc
18527 fi
18528 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
18529 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
18530
18531 fi
18532 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
18533
18534                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
18535 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
18536 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
18537   $as_echo_n "(cached) " >&6
18538 else
18539   ac_check_lib_save_LIBS=$LIBS
18540 LIBS="-lselinux  $LIBS"
18541 cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h.  */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h.  */
18547
18548 /* Override any GCC internal prototype to avoid an error.
18549    Use char because int might match the return type of a GCC
18550    builtin and then its argument prototype would still apply.  */
18551 #ifdef __cplusplus
18552 extern "C"
18553 #endif
18554 char is_selinux_enabled ();
18555 int
18556 main ()
18557 {
18558 return is_selinux_enabled ();
18559   ;
18560   return 0;
18561 }
18562 _ACEOF
18563 rm -f conftest.$ac_objext conftest$ac_exeext
18564 if { (ac_try="$ac_link"
18565 case "(($ac_try" in
18566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18567   *) ac_try_echo=$ac_try;;
18568 esac
18569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18570 $as_echo "$ac_try_echo") >&5
18571   (eval "$ac_link") 2>conftest.er1
18572   ac_status=$?
18573   grep -v '^ *+' conftest.er1 >conftest.err
18574   rm -f conftest.er1
18575   cat conftest.err >&5
18576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577   (exit $ac_status); } && {
18578          test -z "$ac_c_werror_flag" ||
18579          test ! -s conftest.err
18580        } && test -s conftest$ac_exeext && {
18581          test "$cross_compiling" = yes ||
18582          $as_test_x conftest$ac_exeext
18583        }; then
18584   ac_cv_lib_selinux_is_selinux_enabled=yes
18585 else
18586   $as_echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18588
18589         ac_cv_lib_selinux_is_selinux_enabled=no
18590 fi
18591
18592 rm -rf conftest.dSYM
18593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18594       conftest$ac_exeext conftest.$ac_ext
18595 LIBS=$ac_check_lib_save_LIBS
18596 fi
18597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
18598 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
18599 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
18600
18601                                 LIBSELINUX="-lselinux"
18602
18603
18604 cat >>confdefs.h <<\_ACEOF
18605 #define HAVE_LIBSELINUX 1
18606 _ACEOF
18607
18608
18609 else
18610
18611                                 if test "x$with_selinux" != xcheck; then
18612   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18614 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
18615 See \`config.log' for more details." >&5
18616 $as_echo "$as_me: error: --with-selinux given but unavailable
18617 See \`config.log' for more details." >&2;}
18618    { (exit 1); exit 1; }; }; }
18619
18620 fi
18621
18622
18623 fi
18624
18625
18626 else
18627
18628                         if test "x$with_selinux" != xcheck; then
18629   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18631 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
18632 See \`config.log' for more details." >&5
18633 $as_echo "$as_me: error: --with-selinux given but unavailable
18634 See \`config.log' for more details." >&2;}
18635    { (exit 1); exit 1; }; }; }
18636
18637 fi
18638
18639
18640 fi
18641
18642
18643
18644 else
18645
18646                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
18647 $as_echo_n "checking for selinux support... " >&6; }
18648                 { $as_echo "$as_me:$LINENO: result: no" >&5
18649 $as_echo "no" >&6; }
18650
18651 fi
18652
18653
18654
18655         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
18656 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
18657
18658         saved_flags="$CFLAGS"
18659         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
18660
18661         if test "$cross_compiling" = yes; then
18662   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18664 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18665 See \`config.log' for more details." >&5
18666 $as_echo "$as_me: error: cannot run test program while cross compiling
18667 See \`config.log' for more details." >&2;}
18668    { (exit 1); exit 1; }; }; }
18669 else
18670   cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676
18677 int
18678 main ()
18679 {
18680
18681   ;
18682   return 0;
18683 }
18684 _ACEOF
18685 rm -f conftest$ac_exeext
18686 if { (ac_try="$ac_link"
18687 case "(($ac_try" in
18688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689   *) ac_try_echo=$ac_try;;
18690 esac
18691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18692 $as_echo "$ac_try_echo") >&5
18693   (eval "$ac_link") 2>&5
18694   ac_status=$?
18695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18697   { (case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18702 $as_echo "$ac_try_echo") >&5
18703   (eval "$ac_try") 2>&5
18704   ac_status=$?
18705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; }; then
18707
18708                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
18709                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18710 $as_echo "yes" >&6; }
18711
18712 else
18713   $as_echo "$as_me: program exited with status $ac_status" >&5
18714 $as_echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 ( exit $ac_status )
18718
18719                 FRAME_LARGER_THAN=
18720                 { $as_echo "$as_me:$LINENO: result: no" >&5
18721 $as_echo "no" >&6; }
18722
18723 fi
18724 rm -rf conftest.dSYM
18725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18726 fi
18727
18728
18729
18730         CFLAGS="$saved_flags"
18731
18732
18733
18734
18735         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
18736 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
18737
18738         saved_CFLAGS="$CFLAGS"
18739         CFLAGS="-fstack-check"
18740         saved_LDFLAGS="$LDFLAGS"
18741         LDFLAGS="-lpthread"
18742
18743         if test "$cross_compiling" = yes; then
18744   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18746 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18747 See \`config.log' for more details." >&5
18748 $as_echo "$as_me: error: cannot run test program while cross compiling
18749 See \`config.log' for more details." >&2;}
18750    { (exit 1); exit 1; }; }; }
18751 else
18752   cat >conftest.$ac_ext <<_ACEOF
18753 /* confdefs.h.  */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h.  */
18758
18759                 #include <pthread.h>
18760                 #include <sys/resource.h>
18761                 #include <unistd.h>
18762                 #include <bits/local_lim.h>
18763
18764                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
18765                 #define STACK_SIZE 8192
18766                 #define BUFSIZE 4096
18767
18768                 void * func(void *arg)
18769                 {
18770                         char buf[BUFSIZE];
18771                 }
18772
18773 int
18774 main ()
18775 {
18776
18777                 pthread_t tid;
18778                 pthread_attr_t attr;
18779                 struct rlimit l;
18780
18781                 l.rlim_cur = 0;
18782                 l.rlim_max = 0;
18783                 setrlimit(RLIMIT_CORE, &l);
18784                 pthread_attr_init(&attr);
18785                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
18786                 pthread_attr_setguardsize(&attr, PAGESIZE);
18787                 pthread_create(&tid, &attr, func, NULL);
18788                 pthread_join(tid, NULL);
18789
18790   ;
18791   return 0;
18792 }
18793 _ACEOF
18794 rm -f conftest$ac_exeext
18795 if { (ac_try="$ac_link"
18796 case "(($ac_try" in
18797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798   *) ac_try_echo=$ac_try;;
18799 esac
18800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18801 $as_echo "$ac_try_echo") >&5
18802   (eval "$ac_link") 2>&5
18803   ac_status=$?
18804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18806   { (case "(($ac_try" in
18807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18808   *) ac_try_echo=$ac_try;;
18809 esac
18810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18811 $as_echo "$ac_try_echo") >&5
18812   (eval "$ac_try") 2>&5
18813   ac_status=$?
18814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815   (exit $ac_status); }; }; then
18816
18817                 { $as_echo "$as_me:$LINENO: result: no" >&5
18818 $as_echo "no" >&6; }
18819
18820 else
18821   $as_echo "$as_me: program exited with status $ac_status" >&5
18822 $as_echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825 ( exit $ac_status )
18826
18827
18828 cat >>confdefs.h <<\_ACEOF
18829 #define NPTL_GUARD_WITHIN_STACK 1
18830 _ACEOF
18831
18832                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18833 $as_echo "yes" >&6; }
18834
18835 fi
18836 rm -rf conftest.dSYM
18837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18838 fi
18839
18840
18841         CFLAGS="$saved_CFLAGS"
18842         LDFLAGS="$saved_LDFLAGS"
18843
18844    ;;
18845                 all)
18846
18847
18848 # Check whether --with-linux was given.
18849 if test "${with_linux+set}" = set; then
18850   withval=$with_linux; kernelsrc="$withval"
18851 fi
18852
18853
18854
18855 # Check whether --with-linux-obj was given.
18856 if test "${with_linux_obj+set}" = set; then
18857   withval=$with_linux_obj; kernelbuild="$withval"
18858 fi
18859
18860
18861         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
18862 $as_echo_n "checking kernel source directory... " >&6; }
18863         if test -z "$kernelsrc"; then
18864
18865                 if test -e "/lib/modules/$(uname -r)/source"; then
18866
18867                         headersdir="/lib/modules/$(uname -r)/source"
18868                         sourcelink=$(readlink -f "$headersdir")
18869
18870 elif test -e "/lib/modules/$(uname -r)/build"; then
18871
18872                         headersdir="/lib/modules/$(uname -r)/build"
18873                         sourcelink=$(readlink -f "$headersdir")
18874
18875 else
18876
18877                         sourcelink=$(ls -1d /usr/src/kernels/* \
18878                                      /usr/src/linux-* \
18879                                      2>/dev/null | grep -v obj | tail -1)
18880
18881 fi
18882
18883
18884                 if test -n "$sourcelink" && test -e ${sourcelink}; then
18885
18886                         kernelsrc=`readlink -f ${sourcelink}`
18887
18888 else
18889
18890                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
18891 $as_echo "Not found" >&6; }
18892                         { { $as_echo "$as_me:$LINENO: error:
18893         *** Please make sure the kernel devel package for your distribution
18894         *** is installed then try again.  If that fails you can specify the
18895         *** location of the kernel source with the '--with-linux=PATH' option." >&5
18896 $as_echo "$as_me: error:
18897         *** Please make sure the kernel devel package for your distribution
18898         *** is installed then try again.  If that fails you can specify the
18899         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
18900    { (exit 1); exit 1; }; }
18901
18902 fi
18903
18904
18905 else
18906
18907                 if test "$kernelsrc" = "NONE"; then
18908
18909                         kernsrcver=NONE
18910
18911 fi
18912
18913
18914 fi
18915
18916
18917         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
18918 $as_echo "$kernelsrc" >&6; }
18919         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
18920 $as_echo_n "checking kernel build directory... " >&6; }
18921         if test -z "$kernelbuild"; then
18922
18923                 if test -e "/lib/modules/$(uname -r)/build"; then
18924
18925                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
18926
18927 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
18928
18929                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18930
18931 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
18932
18933                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18934
18935 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
18936
18937                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18938
18939 else
18940
18941                         kernelbuild=${kernelsrc}
18942
18943 fi
18944
18945
18946 fi
18947
18948         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
18949 $as_echo "$kernelbuild" >&6; }
18950
18951         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
18952 $as_echo_n "checking kernel source version... " >&6; }
18953         utsrelease1=$kernelbuild/include/linux/version.h
18954         utsrelease2=$kernelbuild/include/linux/utsrelease.h
18955         utsrelease3=$kernelbuild/include/generated/utsrelease.h
18956         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
18957
18958                 utsrelease=linux/version.h
18959
18960 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
18961
18962                 utsrelease=linux/utsrelease.h
18963
18964 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
18965
18966                 utsrelease=generated/utsrelease.h
18967
18968 fi
18969
18970
18971         if test "$utsrelease"; then
18972
18973                 kernsrcver=`(echo "#include <$utsrelease>";
18974                              echo "kernsrcver=UTS_RELEASE") |
18975                              cpp -I $kernelbuild/include |
18976                              grep "^kernsrcver=" | cut -d \" -f 2`
18977
18978                 if test -z "$kernsrcver"; then
18979
18980                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
18981 $as_echo "Not found" >&6; }
18982                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
18983 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
18984    { (exit 1); exit 1; }; }
18985
18986 fi
18987
18988
18989 else
18990
18991                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18992 $as_echo "Not found" >&6; }
18993                 if test "x$enable_linux_builtin" != xyes; then
18994                         { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
18995 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
18996    { (exit 1); exit 1; }; }
18997                 else
18998                         { { $as_echo "$as_me:$LINENO: error:
18999         *** Cannot find UTS_RELEASE definition.
19000         *** Please run 'make prepare' inside the kernel source tree." >&5
19001 $as_echo "$as_me: error:
19002         *** Cannot find UTS_RELEASE definition.
19003         *** Please run 'make prepare' inside the kernel source tree." >&2;}
19004    { (exit 1); exit 1; }; }
19005                 fi
19006
19007 fi
19008
19009
19010         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
19011 $as_echo "$kernsrcver" >&6; }
19012
19013         LINUX=${kernelsrc}
19014         LINUX_OBJ=${kernelbuild}
19015         LINUX_VERSION=${kernsrcver}
19016
19017
19018
19019
19020
19021
19022         modpost=$LINUX/scripts/Makefile.modpost
19023         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
19024 $as_echo_n "checking kernel file name for module symbols... " >&6; }
19025         if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
19026
19027                 if grep -q Modules.symvers $modpost; then
19028
19029                         LINUX_SYMBOLS=Modules.symvers
19030
19031 else
19032
19033                         LINUX_SYMBOLS=Module.symvers
19034
19035 fi
19036
19037
19038                 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
19039
19040                         { { $as_echo "$as_me:$LINENO: error:
19041         *** Please make sure the kernel devel package for your distribution
19042         *** is installed.  If your building with a custom kernel make sure the
19043         *** kernel is configured, built, and the '--with-linux=PATH' configure
19044         *** option refers to the location of the kernel source." >&5
19045 $as_echo "$as_me: error:
19046         *** Please make sure the kernel devel package for your distribution
19047         *** is installed.  If your building with a custom kernel make sure the
19048         *** kernel is configured, built, and the '--with-linux=PATH' configure
19049         *** option refers to the location of the kernel source." >&2;}
19050    { (exit 1); exit 1; }; }
19051
19052 fi
19053
19054
19055 else
19056
19057                 LINUX_SYMBOLS=NONE
19058
19059 fi
19060
19061         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
19062 $as_echo "$LINUX_SYMBOLS" >&6; }
19063
19064
19065
19066
19067
19068 # Check whether --with-spl was given.
19069 if test "${with_spl+set}" = set; then
19070   withval=$with_spl; splsrc="$withval"
19071 fi
19072
19073
19074
19075 # Check whether --with-spl-obj was given.
19076 if test "${with_spl_obj+set}" = set; then
19077   withval=$with_spl_obj; splbuild="$withval"
19078 fi
19079
19080
19081
19082         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
19083 $as_echo_n "checking spl source directory... " >&6; }
19084         if test -z "$splsrc"; then
19085
19086                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
19087                             2>/dev/null | tail -1`
19088
19089                 if test -z "$sourcelink" || test ! -e $sourcelink; then
19090
19091                         sourcelink=../spl
19092
19093 fi
19094
19095
19096                 if test -e $sourcelink; then
19097
19098                         splsrc=`readlink -f ${sourcelink}`
19099
19100 else
19101
19102                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
19103 $as_echo "Not found" >&6; }
19104                         { { $as_echo "$as_me:$LINENO: error:
19105         *** Please make sure the spl devel package for your distribution
19106         *** is installed then try again.  If that fails you can specify the
19107         *** location of the spl source with the '--with-spl=PATH' option." >&5
19108 $as_echo "$as_me: error:
19109         *** Please make sure the spl devel package for your distribution
19110         *** is installed then try again.  If that fails you can specify the
19111         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
19112    { (exit 1); exit 1; }; }
19113
19114 fi
19115
19116
19117 else
19118
19119                 if test "$splsrc" = "NONE"; then
19120
19121                         splbuild=NONE
19122                         splsrcver=NONE
19123
19124 fi
19125
19126
19127 fi
19128
19129
19130         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
19131 $as_echo "$splsrc" >&6; }
19132         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
19133 $as_echo_n "checking spl build directory... " >&6; }
19134         if test -z "$splbuild"; then
19135
19136                 splbuild=${splsrc}
19137
19138 fi
19139
19140         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
19141 $as_echo "$splbuild" >&6; }
19142
19143         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
19144 $as_echo_n "checking spl source version... " >&6; }
19145         if test -r $splbuild/spl_config.h &&
19146                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
19147
19148
19149                 splsrcver=`(echo "#include <spl_config.h>";
19150                             echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
19151                             cpp -I $splbuild |
19152                             grep "^splsrcver=" | tr -d \" | cut -d= -f2`
19153
19154 fi
19155
19156
19157         if test -z "$splsrcver"; then
19158
19159                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
19160 $as_echo "Not found" >&6; }
19161                 { { $as_echo "$as_me:$LINENO: error:
19162         *** Cannot determine the version of the spl source.
19163         *** Please prepare the spl source before running this script" >&5
19164 $as_echo "$as_me: error:
19165         *** Cannot determine the version of the spl source.
19166         *** Please prepare the spl source before running this script" >&2;}
19167    { (exit 1); exit 1; }; }
19168
19169 fi
19170
19171
19172         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
19173 $as_echo "$splsrcver" >&6; }
19174
19175         SPL=${splsrc}
19176         SPL_OBJ=${splbuild}
19177         SPL_VERSION=${splsrcver}
19178
19179
19180
19181
19182
19183
19184         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
19185 $as_echo_n "checking spl file name for module symbols... " >&6; }
19186         if test -r $SPL_OBJ/Module.symvers; then
19187
19188                 SPL_SYMBOLS=Module.symvers
19189
19190 elif test -r $SPL_OBJ/Modules.symvers; then
19191
19192                 SPL_SYMBOLS=Modules.symvers
19193
19194 elif test -r $SPL_OBJ/module/Module.symvers; then
19195
19196                 SPL_SYMBOLS=Module.symvers
19197
19198 elif test -r $SPL_OBJ/module/Modules.symvers; then
19199
19200                 SPL_SYMBOLS=Modules.symvers
19201
19202 else
19203
19204                 SPL_SYMBOLS=$LINUX_SYMBOLS
19205
19206 fi
19207
19208
19209         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
19210 $as_echo "$SPL_SYMBOLS" >&6; }
19211
19212
19213
19214         { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
19215 $as_echo_n "checking whether modules can be built... " >&6; }
19216
19217
19218 cat confdefs.h - <<_ACEOF >conftest.c
19219 /* confdefs.h.  */
19220 _ACEOF
19221 cat confdefs.h >>conftest.$ac_ext
19222 cat >>conftest.$ac_ext <<_ACEOF
19223 /* end confdefs.h.  */
19224
19225
19226 int
19227 main (void)
19228 {
19229
19230   ;
19231   return 0;
19232 }
19233
19234 _ACEOF
19235
19236
19237         rm -Rf build && mkdir -p build
19238         echo "obj-m := conftest.o" >build/Makefile
19239         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'
19240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241   (eval $ac_try) 2>&5
19242   ac_status=$?
19243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246   (eval $ac_try) 2>&5
19247   ac_status=$?
19248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; }; then
19250
19251                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19252 $as_echo "yes" >&6; }
19253
19254 else
19255   $as_echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19257
19258                 { $as_echo "$as_me:$LINENO: result: no" >&5
19259 $as_echo "no" >&6; }
19260                 if test "x$enable_linux_builtin" != xyes; then
19261                         { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
19262 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
19263    { (exit 1); exit 1; }; }
19264                 else
19265                         { { $as_echo "$as_me:$LINENO: error:
19266         *** Unable to build an empty module.
19267         *** Please run 'make scripts' inside the kernel source tree." >&5
19268 $as_echo "$as_me: error:
19269         *** Unable to build an empty module.
19270         *** Please run 'make scripts' inside the kernel source tree." >&2;}
19271    { (exit 1); exit 1; }; }
19272                 fi
19273
19274
19275
19276 fi
19277
19278         rm -Rf build
19279
19280
19281
19282
19283
19284         if test "$ZFS_META_LICENSE" = GPL; then
19285
19286
19287 cat >>confdefs.h <<\_ACEOF
19288 #define HAVE_GPL_ONLY_SYMBOLS 1
19289 _ACEOF
19290
19291
19292 fi
19293
19294
19295
19296
19297         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
19298 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
19299
19300
19301 cat confdefs.h - <<_ACEOF >conftest.c
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307
19308
19309                 #include <linux/module.h>
19310
19311 int
19312 main (void)
19313 {
19314
19315                 #ifndef CONFIG_PREEMPT
19316                 #error CONFIG_PREEMPT not #defined
19317                 #endif
19318
19319   ;
19320   return 0;
19321 }
19322
19323 _ACEOF
19324
19325
19326         rm -Rf build && mkdir -p build
19327         echo "obj-m := conftest.o" >build/Makefile
19328         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'
19329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19330   (eval $ac_try) 2>&5
19331   ac_status=$?
19332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335   (eval $ac_try) 2>&5
19336   ac_status=$?
19337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338   (exit $ac_status); }; }; then
19339
19340                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19341 $as_echo "yes" >&6; }
19342                 { { $as_echo "$as_me:$LINENO: error:
19343         *** Kernel built with CONFIG_PREEMPT which is not supported.
19344         *** You must rebuild your kernel without this option." >&5
19345 $as_echo "$as_me: error:
19346         *** Kernel built with CONFIG_PREEMPT which is not supported.
19347         *** You must rebuild your kernel without this option." >&2;}
19348    { (exit 1); exit 1; }; }
19349
19350 else
19351   $as_echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19353
19354                 { $as_echo "$as_me:$LINENO: result: no" >&5
19355 $as_echo "no" >&6; }
19356
19357
19358
19359
19360 fi
19361
19362         rm -Rf build
19363
19364
19365
19366
19367
19368
19369         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
19370 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
19371
19372
19373 cat confdefs.h - <<_ACEOF >conftest.c
19374 /* confdefs.h.  */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h.  */
19379
19380
19381                 #include <linux/module.h>
19382
19383 int
19384 main (void)
19385 {
19386
19387                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
19388                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
19389                 #endif
19390
19391   ;
19392   return 0;
19393 }
19394
19395 _ACEOF
19396
19397
19398         rm -Rf build && mkdir -p build
19399         echo "obj-m := conftest.o" >build/Makefile
19400         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'
19401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402   (eval $ac_try) 2>&5
19403   ac_status=$?
19404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407   (eval $ac_try) 2>&5
19408   ac_status=$?
19409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); }; }; then
19411
19412                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19413 $as_echo "yes" >&6; }
19414
19415                 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
19416 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
19417                 tmp_flags="$EXTRA_KCFLAGS"
19418
19419
19420 cat confdefs.h - <<_ACEOF >conftest.c
19421 /* confdefs.h.  */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h.  */
19426
19427
19428                         #include <linux/module.h>
19429                         #include <linux/mutex.h>
19430
19431                         MODULE_LICENSE("$ZFS_META_LICENSE");
19432
19433 int
19434 main (void)
19435 {
19436
19437                         struct mutex lock;
19438
19439                         mutex_init(&lock);
19440                         mutex_lock(&lock);
19441                         mutex_unlock(&lock);
19442
19443   ;
19444   return 0;
19445 }
19446
19447 _ACEOF
19448
19449
19450         rm -Rf build && mkdir -p build
19451         echo "obj-m := conftest.o" >build/Makefile
19452         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'
19453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454   (eval $ac_try) 2>&5
19455   ac_status=$?
19456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459   (eval $ac_try) 2>&5
19460   ac_status=$?
19461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); }; }; then
19463
19464                         { $as_echo "$as_me:$LINENO: result: no" >&5
19465 $as_echo "no" >&6; }
19466
19467 else
19468   $as_echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471                         { $as_echo "$as_me:$LINENO: result: yes" >&5
19472 $as_echo "yes" >&6; }
19473                         { { $as_echo "$as_me:$LINENO: error:
19474         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
19475         *** with the CDDL license and will prevent the module linking stage
19476         *** from succeeding.  You must rebuild your kernel without this
19477         *** option enabled." >&5
19478 $as_echo "$as_me: error:
19479         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
19480         *** with the CDDL license and will prevent the module linking stage
19481         *** from succeeding.  You must rebuild your kernel without this
19482         *** option enabled." >&2;}
19483    { (exit 1); exit 1; }; }
19484
19485
19486
19487 fi
19488
19489         rm -Rf build
19490
19491
19492                 EXTRA_KCFLAGS="$tmp_flags"
19493
19494
19495 else
19496   $as_echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499                 { $as_echo "$as_me:$LINENO: result: no" >&5
19500 $as_echo "no" >&6; }
19501
19502
19503
19504
19505 fi
19506
19507         rm -Rf build
19508
19509
19510
19511
19512
19513
19514         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
19515 $as_echo_n "checking block device operation prototypes... " >&6; }
19516         tmp_flags="$EXTRA_KCFLAGS"
19517         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19518
19519
19520 cat confdefs.h - <<_ACEOF >conftest.c
19521 /* confdefs.h.  */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h.  */
19526
19527
19528                 #include <linux/blkdev.h>
19529
19530 int
19531 main (void)
19532 {
19533
19534                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
19535                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
19536                 int (*blk_ioctl) (struct block_device *, fmode_t,
19537                                   unsigned, unsigned long) = NULL;
19538                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
19539                                          unsigned, unsigned long) = NULL;
19540                 struct block_device_operations blk_ops = {
19541                         .open           = blk_open,
19542                         .release        = blk_release,
19543                         .ioctl          = blk_ioctl,
19544                         .compat_ioctl   = blk_compat_ioctl,
19545                 };
19546
19547                 blk_ops.open(NULL, 0);
19548                 blk_ops.release(NULL, 0);
19549                 blk_ops.ioctl(NULL, 0, 0, 0);
19550                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
19551
19552   ;
19553   return 0;
19554 }
19555
19556 _ACEOF
19557
19558
19559         rm -Rf build && mkdir -p build
19560         echo "obj-m := conftest.o" >build/Makefile
19561         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'
19562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563   (eval $ac_try) 2>&5
19564   ac_status=$?
19565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568   (eval $ac_try) 2>&5
19569   ac_status=$?
19570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; }; then
19572
19573                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
19574 $as_echo "struct block_device" >&6; }
19575
19576 cat >>confdefs.h <<\_ACEOF
19577 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
19578 _ACEOF
19579
19580
19581 else
19582   $as_echo "$as_me: failed program was:" >&5
19583 sed 's/^/| /' conftest.$ac_ext >&5
19584
19585                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
19586 $as_echo "struct inode" >&6; }
19587
19588
19589
19590 fi
19591
19592         rm -Rf build
19593
19594
19595         EXTRA_KCFLAGS="$tmp_flags"
19596
19597         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
19598 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
19599
19600
19601 cat confdefs.h - <<_ACEOF >conftest.c
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607
19608
19609                 #include <linux/types.h>
19610
19611 int
19612 main (void)
19613 {
19614
19615                 fmode_t *ptr __attribute__ ((unused));
19616
19617   ;
19618   return 0;
19619 }
19620
19621 _ACEOF
19622
19623
19624         rm -Rf build && mkdir -p build
19625         echo "obj-m := conftest.o" >build/Makefile
19626         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'
19627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628   (eval $ac_try) 2>&5
19629   ac_status=$?
19630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633   (eval $ac_try) 2>&5
19634   ac_status=$?
19635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }; }; then
19637
19638                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19639 $as_echo "yes" >&6; }
19640
19641 cat >>confdefs.h <<\_ACEOF
19642 #define HAVE_FMODE_T 1
19643 _ACEOF
19644
19645
19646 else
19647   $as_echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19649
19650                 { $as_echo "$as_me:$LINENO: result: no" >&5
19651 $as_echo "no" >&6; }
19652
19653
19654
19655 fi
19656
19657         rm -Rf build
19658
19659
19660
19661
19662         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
19663 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
19664
19665
19666 cat confdefs.h - <<_ACEOF >conftest.c
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672
19673
19674                 #include <linux/kobject.h>
19675
19676 int
19677 main (void)
19678 {
19679
19680                 int val __attribute__ ((unused));
19681                 val = KOBJ_NAME_LEN;
19682
19683   ;
19684   return 0;
19685 }
19686
19687 _ACEOF
19688
19689
19690         rm -Rf build && mkdir -p build
19691         echo "obj-m := conftest.o" >build/Makefile
19692         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'
19693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694   (eval $ac_try) 2>&5
19695   ac_status=$?
19696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699   (eval $ac_try) 2>&5
19700   ac_status=$?
19701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; }; then
19703
19704                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19705 $as_echo "yes" >&6; }
19706
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_KOBJ_NAME_LEN 1
19709 _ACEOF
19710
19711
19712 else
19713   $as_echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716                 { $as_echo "$as_me:$LINENO: result: no" >&5
19717 $as_echo "no" >&6; }
19718
19719
19720
19721 fi
19722
19723         rm -Rf build
19724
19725
19726
19727
19728         { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
19729 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
19730
19731
19732 cat confdefs.h - <<_ACEOF >conftest.c
19733 /* confdefs.h.  */
19734 _ACEOF
19735 cat confdefs.h >>conftest.$ac_ext
19736 cat >>conftest.$ac_ext <<_ACEOF
19737 /* end confdefs.h.  */
19738
19739
19740                 #include <linux/fs.h>
19741
19742 int
19743 main (void)
19744 {
19745
19746                 struct block_device *bdev = NULL;
19747                 (void) blkdev_get(bdev, 0, NULL);
19748
19749   ;
19750   return 0;
19751 }
19752
19753 _ACEOF
19754
19755
19756         rm -Rf build && mkdir -p build
19757         echo "obj-m := conftest.o" >build/Makefile
19758         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'
19759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19760   (eval $ac_try) 2>&5
19761   ac_status=$?
19762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19765   (eval $ac_try) 2>&5
19766   ac_status=$?
19767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); }; }; then
19769
19770                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19771 $as_echo "yes" >&6; }
19772
19773 cat >>confdefs.h <<\_ACEOF
19774 #define HAVE_3ARG_BLKDEV_GET 1
19775 _ACEOF
19776
19777
19778 else
19779   $as_echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.$ac_ext >&5
19781
19782                 { $as_echo "$as_me:$LINENO: result: no" >&5
19783 $as_echo "no" >&6; }
19784
19785
19786
19787 fi
19788
19789         rm -Rf build
19790
19791
19792
19793
19794         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
19795 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
19796         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
19797                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19798         rc=$?
19799         if test $rc -ne 0; then
19800
19801                 export=0
19802                 for file in fs/block_dev.c; do
19803                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
19804                         rc=$?
19805                         if test $rc -eq 0; then
19806
19807                                 export=1
19808                                 break;
19809
19810 fi
19811
19812                 done
19813                 if test $export -eq 0; then
19814
19815                         { $as_echo "$as_me:$LINENO: result: no" >&5
19816 $as_echo "no" >&6; }
19817
19818
19819 else
19820
19821                         { $as_echo "$as_me:$LINENO: result: yes" >&5
19822 $as_echo "yes" >&6; }
19823
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_BLKDEV_GET_BY_PATH 1
19826 _ACEOF
19827
19828
19829 fi
19830
19831
19832 else
19833
19834                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19835 $as_echo "yes" >&6; }
19836
19837 cat >>confdefs.h <<\_ACEOF
19838 #define HAVE_BLKDEV_GET_BY_PATH 1
19839 _ACEOF
19840
19841
19842 fi
19843
19844
19845
19846
19847         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
19848 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
19849         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
19850                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19851         rc=$?
19852         if test $rc -ne 0; then
19853
19854                 export=0
19855                 for file in fs/block_dev.c; do
19856                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
19857                         rc=$?
19858                         if test $rc -eq 0; then
19859
19860                                 export=1
19861                                 break;
19862
19863 fi
19864
19865                 done
19866                 if test $export -eq 0; then
19867
19868                         { $as_echo "$as_me:$LINENO: result: no" >&5
19869 $as_echo "no" >&6; }
19870
19871
19872 else
19873
19874                         { $as_echo "$as_me:$LINENO: result: yes" >&5
19875 $as_echo "yes" >&6; }
19876
19877 cat >>confdefs.h <<\_ACEOF
19878 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
19879 _ACEOF
19880
19881
19882 fi
19883
19884
19885 else
19886
19887                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19888 $as_echo "yes" >&6; }
19889
19890 cat >>confdefs.h <<\_ACEOF
19891 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
19892 _ACEOF
19893
19894
19895 fi
19896
19897
19898
19899
19900         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
19901 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
19902
19903
19904 cat confdefs.h - <<_ACEOF >conftest.c
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910
19911
19912                 #include <linux/buffer_head.h>
19913
19914 int
19915 main (void)
19916 {
19917
19918                 struct block_device *bdev = NULL;
19919                 invalidate_bdev(bdev);
19920
19921   ;
19922   return 0;
19923 }
19924
19925 _ACEOF
19926
19927
19928         rm -Rf build && mkdir -p build
19929         echo "obj-m := conftest.o" >build/Makefile
19930         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'
19931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932   (eval $ac_try) 2>&5
19933   ac_status=$?
19934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937   (eval $ac_try) 2>&5
19938   ac_status=$?
19939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; }; then
19941
19942                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19943 $as_echo "yes" >&6; }
19944
19945 cat >>confdefs.h <<\_ACEOF
19946 #define HAVE_1ARG_INVALIDATE_BDEV 1
19947 _ACEOF
19948
19949
19950 else
19951   $as_echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954                 { $as_echo "$as_me:$LINENO: result: no" >&5
19955 $as_echo "no" >&6; }
19956
19957
19958
19959 fi
19960
19961         rm -Rf build
19962
19963
19964
19965
19966         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
19967 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
19968         tmp_flags="$EXTRA_KCFLAGS"
19969         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19970
19971
19972 cat confdefs.h - <<_ACEOF >conftest.c
19973 /* confdefs.h.  */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h.  */
19978
19979
19980                 #include <linux/blkdev.h>
19981
19982 int
19983 main (void)
19984 {
19985
19986                 struct block_device *bdev = NULL;
19987                 bdev_logical_block_size(bdev);
19988
19989   ;
19990   return 0;
19991 }
19992
19993 _ACEOF
19994
19995
19996         rm -Rf build && mkdir -p build
19997         echo "obj-m := conftest.o" >build/Makefile
19998         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'
19999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000   (eval $ac_try) 2>&5
20001   ac_status=$?
20002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005   (eval $ac_try) 2>&5
20006   ac_status=$?
20007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); }; }; then
20009
20010                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20011 $as_echo "yes" >&6; }
20012
20013 cat >>confdefs.h <<\_ACEOF
20014 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
20015 _ACEOF
20016
20017
20018 else
20019   $as_echo "$as_me: failed program was:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20021
20022                 { $as_echo "$as_me:$LINENO: result: no" >&5
20023 $as_echo "no" >&6; }
20024
20025
20026
20027 fi
20028
20029         rm -Rf build
20030
20031
20032         EXTRA_KCFLAGS="$tmp_flags"
20033
20034
20035         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
20036 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
20037         EXTRA_KCFLAGS="-Werror"
20038
20039
20040 cat confdefs.h - <<_ACEOF >conftest.c
20041 /* confdefs.h.  */
20042 _ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h.  */
20046
20047
20048                 #include <linux/bio.h>
20049
20050 int
20051 main (void)
20052 {
20053
20054                 struct bio bio;
20055                 (void)bio_empty_barrier(&bio);
20056
20057   ;
20058   return 0;
20059 }
20060
20061 _ACEOF
20062
20063
20064         rm -Rf build && mkdir -p build
20065         echo "obj-m := conftest.o" >build/Makefile
20066         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'
20067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068   (eval $ac_try) 2>&5
20069   ac_status=$?
20070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073   (eval $ac_try) 2>&5
20074   ac_status=$?
20075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076   (exit $ac_status); }; }; then
20077
20078                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20079 $as_echo "yes" >&6; }
20080
20081 cat >>confdefs.h <<\_ACEOF
20082 #define HAVE_BIO_EMPTY_BARRIER 1
20083 _ACEOF
20084
20085
20086 else
20087   $as_echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090                 { $as_echo "$as_me:$LINENO: result: no" >&5
20091 $as_echo "no" >&6; }
20092
20093
20094
20095 fi
20096
20097         rm -Rf build
20098
20099
20100
20101
20102         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
20103 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
20104
20105
20106 cat confdefs.h - <<_ACEOF >conftest.c
20107 /* confdefs.h.  */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h.  */
20112
20113
20114                 #include <linux/bio.h>
20115
20116 int
20117 main (void)
20118 {
20119
20120                 int flags __attribute__ ((unused));
20121                 flags = (1 << BIO_RW_FAILFAST);
20122
20123   ;
20124   return 0;
20125 }
20126
20127 _ACEOF
20128
20129
20130         rm -Rf build && mkdir -p build
20131         echo "obj-m := conftest.o" >build/Makefile
20132         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'
20133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134   (eval $ac_try) 2>&5
20135   ac_status=$?
20136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139   (eval $ac_try) 2>&5
20140   ac_status=$?
20141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); }; }; then
20143
20144                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20145 $as_echo "yes" >&6; }
20146
20147 cat >>confdefs.h <<\_ACEOF
20148 #define HAVE_BIO_RW_FAILFAST 1
20149 _ACEOF
20150
20151
20152 else
20153   $as_echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156                 { $as_echo "$as_me:$LINENO: result: no" >&5
20157 $as_echo "no" >&6; }
20158
20159
20160
20161 fi
20162
20163         rm -Rf build
20164
20165
20166
20167
20168         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
20169 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
20170
20171
20172 cat confdefs.h - <<_ACEOF >conftest.c
20173 /* confdefs.h.  */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h.  */
20178
20179
20180                 #include <linux/bio.h>
20181
20182 int
20183 main (void)
20184 {
20185
20186                 int flags __attribute__ ((unused));
20187                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
20188                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
20189                          (1 << BIO_RW_FAILFAST_DRIVER));
20190
20191   ;
20192   return 0;
20193 }
20194
20195 _ACEOF
20196
20197
20198         rm -Rf build && mkdir -p build
20199         echo "obj-m := conftest.o" >build/Makefile
20200         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'
20201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20202   (eval $ac_try) 2>&5
20203   ac_status=$?
20204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20207   (eval $ac_try) 2>&5
20208   ac_status=$?
20209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); }; }; then
20211
20212                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20213 $as_echo "yes" >&6; }
20214
20215 cat >>confdefs.h <<\_ACEOF
20216 #define HAVE_BIO_RW_FAILFAST_DTD 1
20217 _ACEOF
20218
20219
20220 else
20221   $as_echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224                 { $as_echo "$as_me:$LINENO: result: no" >&5
20225 $as_echo "no" >&6; }
20226
20227
20228
20229 fi
20230
20231         rm -Rf build
20232
20233
20234
20235
20236         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
20237 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
20238
20239
20240 cat confdefs.h - <<_ACEOF >conftest.c
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246
20247
20248                 #include <linux/bio.h>
20249
20250 int
20251 main (void)
20252 {
20253
20254                 int flags __attribute__ ((unused));
20255                 flags = REQ_FAILFAST_MASK;
20256
20257   ;
20258   return 0;
20259 }
20260
20261 _ACEOF
20262
20263
20264         rm -Rf build && mkdir -p build
20265         echo "obj-m := conftest.o" >build/Makefile
20266         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'
20267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268   (eval $ac_try) 2>&5
20269   ac_status=$?
20270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273   (eval $ac_try) 2>&5
20274   ac_status=$?
20275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; }; then
20277
20278                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20279 $as_echo "yes" >&6; }
20280
20281 cat >>confdefs.h <<\_ACEOF
20282 #define HAVE_BIO_REQ_FAILFAST_MASK 1
20283 _ACEOF
20284
20285
20286 else
20287   $as_echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290                 { $as_echo "$as_me:$LINENO: result: no" >&5
20291 $as_echo "no" >&6; }
20292
20293
20294
20295 fi
20296
20297         rm -Rf build
20298
20299
20300
20301
20302         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
20303 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
20304         tmp_flags="$EXTRA_KCFLAGS"
20305         EXTRA_KCFLAGS="-Werror"
20306
20307
20308 cat confdefs.h - <<_ACEOF >conftest.c
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314
20315
20316                 #include <linux/bio.h>
20317
20318 int
20319 main (void)
20320 {
20321
20322                 void (*wanted_end_io)(struct bio *, int) = NULL;
20323                 bio_end_io_t *local_end_io __attribute__ ((unused));
20324
20325                 local_end_io = wanted_end_io;
20326
20327   ;
20328   return 0;
20329 }
20330
20331 _ACEOF
20332
20333
20334         rm -Rf build && mkdir -p build
20335         echo "obj-m := conftest.o" >build/Makefile
20336         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'
20337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338   (eval $ac_try) 2>&5
20339   ac_status=$?
20340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343   (eval $ac_try) 2>&5
20344   ac_status=$?
20345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); }; }; then
20347
20348                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20349 $as_echo "yes" >&6; }
20350
20351 cat >>confdefs.h <<\_ACEOF
20352 #define HAVE_2ARGS_BIO_END_IO_T 1
20353 _ACEOF
20354
20355
20356 else
20357   $as_echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360                 { $as_echo "$as_me:$LINENO: result: no" >&5
20361 $as_echo "no" >&6; }
20362
20363
20364
20365 fi
20366
20367         rm -Rf build
20368
20369
20370         EXTRA_KCFLAGS="$tmp_flags"
20371
20372
20373         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
20374 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
20375
20376
20377 cat confdefs.h - <<_ACEOF >conftest.c
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383
20384
20385                 #include <linux/bio.h>
20386
20387 int
20388 main (void)
20389 {
20390
20391                 int flags __attribute__ ((unused));
20392                 flags = BIO_RW_SYNC;
20393
20394   ;
20395   return 0;
20396 }
20397
20398 _ACEOF
20399
20400
20401         rm -Rf build && mkdir -p build
20402         echo "obj-m := conftest.o" >build/Makefile
20403         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'
20404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405   (eval $ac_try) 2>&5
20406   ac_status=$?
20407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410   (eval $ac_try) 2>&5
20411   ac_status=$?
20412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); }; }; then
20414
20415                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20416 $as_echo "yes" >&6; }
20417
20418 cat >>confdefs.h <<\_ACEOF
20419 #define HAVE_BIO_RW_SYNC 1
20420 _ACEOF
20421
20422
20423 else
20424   $as_echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427                 { $as_echo "$as_me:$LINENO: result: no" >&5
20428 $as_echo "no" >&6; }
20429
20430
20431
20432 fi
20433
20434         rm -Rf build
20435
20436
20437
20438
20439         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
20440 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
20441
20442
20443 cat confdefs.h - <<_ACEOF >conftest.c
20444 /* confdefs.h.  */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h.  */
20449
20450
20451                 #include <linux/bio.h>
20452
20453 int
20454 main (void)
20455 {
20456
20457                 int flags __attribute__ ((unused));
20458                 flags = BIO_RW_SYNCIO;
20459
20460   ;
20461   return 0;
20462 }
20463
20464 _ACEOF
20465
20466
20467         rm -Rf build && mkdir -p build
20468         echo "obj-m := conftest.o" >build/Makefile
20469         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'
20470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471   (eval $ac_try) 2>&5
20472   ac_status=$?
20473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476   (eval $ac_try) 2>&5
20477   ac_status=$?
20478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); }; }; then
20480
20481                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20482 $as_echo "yes" >&6; }
20483
20484 cat >>confdefs.h <<\_ACEOF
20485 #define HAVE_BIO_RW_SYNCIO 1
20486 _ACEOF
20487
20488
20489 else
20490   $as_echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493                 { $as_echo "$as_me:$LINENO: result: no" >&5
20494 $as_echo "no" >&6; }
20495
20496
20497
20498 fi
20499
20500         rm -Rf build
20501
20502
20503
20504
20505         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
20506 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
20507
20508
20509 cat confdefs.h - <<_ACEOF >conftest.c
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20515
20516
20517                 #include <linux/bio.h>
20518
20519 int
20520 main (void)
20521 {
20522
20523                 int flags __attribute__ ((unused));
20524                 flags = REQ_SYNC;
20525
20526   ;
20527   return 0;
20528 }
20529
20530 _ACEOF
20531
20532
20533         rm -Rf build && mkdir -p build
20534         echo "obj-m := conftest.o" >build/Makefile
20535         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'
20536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537   (eval $ac_try) 2>&5
20538   ac_status=$?
20539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542   (eval $ac_try) 2>&5
20543   ac_status=$?
20544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; }; then
20546
20547                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20548 $as_echo "yes" >&6; }
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_REQ_SYNC 1
20552 _ACEOF
20553
20554
20555 else
20556   $as_echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559                 { $as_echo "$as_me:$LINENO: result: no" >&5
20560 $as_echo "no" >&6; }
20561
20562
20563
20564 fi
20565
20566         rm -Rf build
20567
20568
20569
20570
20571         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
20572 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
20573         tmp_flags="$EXTRA_KCFLAGS"
20574         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20575
20576
20577 cat confdefs.h - <<_ACEOF >conftest.c
20578 /* confdefs.h.  */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h.  */
20583
20584
20585                 #include <linux/blkdev.h>
20586
20587 int
20588 main (void)
20589 {
20590
20591                 struct request *req = NULL;
20592                 (void) blk_end_request(req, 0, 0);
20593
20594   ;
20595   return 0;
20596 }
20597
20598 _ACEOF
20599
20600
20601         rm -Rf build && mkdir -p build
20602         echo "obj-m := conftest.o" >build/Makefile
20603         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'
20604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605   (eval $ac_try) 2>&5
20606   ac_status=$?
20607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20610   (eval $ac_try) 2>&5
20611   ac_status=$?
20612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); }; }; then
20614
20615                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20616 $as_echo "yes" >&6; }
20617
20618 cat >>confdefs.h <<\_ACEOF
20619 #define HAVE_BLK_END_REQUEST 1
20620 _ACEOF
20621
20622
20623 else
20624   $as_echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627                 { $as_echo "$as_me:$LINENO: result: no" >&5
20628 $as_echo "no" >&6; }
20629
20630
20631
20632 fi
20633
20634         rm -Rf build
20635
20636
20637
20638         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
20639 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
20640
20641
20642 cat confdefs.h - <<_ACEOF >conftest.c
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648
20649
20650                 #include <linux/module.h>
20651                 #include <linux/blkdev.h>
20652
20653                 MODULE_LICENSE("CDDL");
20654
20655 int
20656 main (void)
20657 {
20658
20659                 struct request *req = NULL;
20660                 (void) blk_end_request(req, 0, 0);
20661
20662   ;
20663   return 0;
20664 }
20665
20666 _ACEOF
20667
20668
20669         rm -Rf build && mkdir -p build
20670         echo "obj-m := conftest.o" >build/Makefile
20671         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'
20672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673   (eval $ac_try) 2>&5
20674   ac_status=$?
20675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678   (eval $ac_try) 2>&5
20679   ac_status=$?
20680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); }; }; then
20682
20683                 { $as_echo "$as_me:$LINENO: result: no" >&5
20684 $as_echo "no" >&6; }
20685
20686 else
20687   $as_echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20691 $as_echo "yes" >&6; }
20692
20693 cat >>confdefs.h <<\_ACEOF
20694 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
20695 _ACEOF
20696
20697
20698
20699
20700 fi
20701
20702         rm -Rf build
20703
20704
20705         EXTRA_KCFLAGS="$tmp_flags"
20706
20707
20708         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
20709 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
20710         tmp_flags="$EXTRA_KCFLAGS"
20711         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20712
20713
20714 cat confdefs.h - <<_ACEOF >conftest.c
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720
20721
20722                 #include <linux/blkdev.h>
20723
20724 int
20725 main (void)
20726 {
20727
20728                 struct request_queue *q = NULL;
20729                 (void) blk_queue_flush(q, REQ_FLUSH);
20730
20731   ;
20732   return 0;
20733 }
20734
20735 _ACEOF
20736
20737
20738         rm -Rf build && mkdir -p build
20739         echo "obj-m := conftest.o" >build/Makefile
20740         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'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747   (eval $ac_try) 2>&5
20748   ac_status=$?
20749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); }; }; then
20751
20752                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20753 $as_echo "yes" >&6; }
20754
20755 cat >>confdefs.h <<\_ACEOF
20756 #define HAVE_BLK_QUEUE_FLUSH 1
20757 _ACEOF
20758
20759
20760 else
20761   $as_echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764                 { $as_echo "$as_me:$LINENO: result: no" >&5
20765 $as_echo "no" >&6; }
20766
20767
20768
20769 fi
20770
20771         rm -Rf build
20772
20773
20774
20775         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
20776 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
20777
20778
20779 cat confdefs.h - <<_ACEOF >conftest.c
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785
20786
20787                 #include <linux/module.h>
20788                 #include <linux/blkdev.h>
20789
20790                 MODULE_LICENSE("CDDL");
20791
20792 int
20793 main (void)
20794 {
20795
20796                 struct request_queue *q = NULL;
20797                 (void) blk_queue_flush(q, REQ_FLUSH);
20798
20799   ;
20800   return 0;
20801 }
20802
20803 _ACEOF
20804
20805
20806         rm -Rf build && mkdir -p build
20807         echo "obj-m := conftest.o" >build/Makefile
20808         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'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815   (eval $ac_try) 2>&5
20816   ac_status=$?
20817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); }; }; then
20819
20820                 { $as_echo "$as_me:$LINENO: result: no" >&5
20821 $as_echo "no" >&6; }
20822
20823 else
20824   $as_echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20828 $as_echo "yes" >&6; }
20829
20830 cat >>confdefs.h <<\_ACEOF
20831 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
20832 _ACEOF
20833
20834
20835
20836
20837 fi
20838
20839         rm -Rf build
20840
20841
20842         EXTRA_KCFLAGS="$tmp_flags"
20843
20844
20845         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
20846 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
20847         tmp_flags="$EXTRA_KCFLAGS"
20848         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20849
20850
20851 cat confdefs.h - <<_ACEOF >conftest.c
20852 /* confdefs.h.  */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h.  */
20857
20858
20859                 #include <linux/blkdev.h>
20860
20861 int
20862 main (void)
20863 {
20864
20865                 struct request_queue *q = NULL;
20866                 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
20867
20868   ;
20869   return 0;
20870 }
20871
20872 _ACEOF
20873
20874
20875         rm -Rf build && mkdir -p build
20876         echo "obj-m := conftest.o" >build/Makefile
20877         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'
20878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879   (eval $ac_try) 2>&5
20880   ac_status=$?
20881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884   (eval $ac_try) 2>&5
20885   ac_status=$?
20886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; }; then
20888
20889                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20890 $as_echo "yes" >&6; }
20891
20892 cat >>confdefs.h <<\_ACEOF
20893 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
20894 _ACEOF
20895
20896
20897 else
20898   $as_echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20900
20901                 { $as_echo "$as_me:$LINENO: result: no" >&5
20902 $as_echo "no" >&6; }
20903
20904
20905
20906 fi
20907
20908         rm -Rf build
20909
20910
20911         EXTRA_KCFLAGS="$tmp_flags"
20912
20913
20914         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
20915 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
20916         tmp_flags="$EXTRA_KCFLAGS"
20917         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20918
20919
20920 cat confdefs.h - <<_ACEOF >conftest.c
20921 /* confdefs.h.  */
20922 _ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h.  */
20926
20927
20928                 #include <linux/blkdev.h>
20929
20930 int
20931 main (void)
20932 {
20933
20934                 struct request_queue *q = NULL;
20935                 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
20936
20937   ;
20938   return 0;
20939 }
20940
20941 _ACEOF
20942
20943
20944         rm -Rf build && mkdir -p build
20945         echo "obj-m := conftest.o" >build/Makefile
20946         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'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953   (eval $ac_try) 2>&5
20954   ac_status=$?
20955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); }; }; then
20957
20958                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20959 $as_echo "yes" >&6; }
20960
20961 cat >>confdefs.h <<\_ACEOF
20962 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
20963 _ACEOF
20964
20965
20966 else
20967   $as_echo "$as_me: failed program was:" >&5
20968 sed 's/^/| /' conftest.$ac_ext >&5
20969
20970                 { $as_echo "$as_me:$LINENO: result: no" >&5
20971 $as_echo "no" >&6; }
20972
20973
20974
20975 fi
20976
20977         rm -Rf build
20978
20979
20980         EXTRA_KCFLAGS="$tmp_flags"
20981
20982
20983         { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
20984 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
20985         tmp_flags="$EXTRA_KCFLAGS"
20986         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20987
20988
20989 cat confdefs.h - <<_ACEOF >conftest.c
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995
20996
20997                 #include <linux/blkdev.h>
20998
20999 int
21000 main (void)
21001 {
21002
21003                 struct request_queue *q = NULL;
21004                 unsigned short block_size = 1;
21005                 (void) blk_queue_physical_block_size(q, block_size);
21006
21007   ;
21008   return 0;
21009 }
21010
21011 _ACEOF
21012
21013
21014         rm -Rf build && mkdir -p build
21015         echo "obj-m := conftest.o" >build/Makefile
21016         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'
21017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023   (eval $ac_try) 2>&5
21024   ac_status=$?
21025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026   (exit $ac_status); }; }; then
21027
21028                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21029 $as_echo "yes" >&6; }
21030
21031 cat >>confdefs.h <<\_ACEOF
21032 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
21033 _ACEOF
21034
21035
21036 else
21037   $as_echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040                 { $as_echo "$as_me:$LINENO: result: no" >&5
21041 $as_echo "no" >&6; }
21042
21043
21044
21045 fi
21046
21047         rm -Rf build
21048
21049
21050         EXTRA_KCFLAGS="$tmp_flags"
21051
21052
21053         { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
21054 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
21055         tmp_flags="$EXTRA_KCFLAGS"
21056         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21057
21058
21059 cat confdefs.h - <<_ACEOF >conftest.c
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065
21066
21067                 #include <linux/blkdev.h>
21068
21069 int
21070 main (void)
21071 {
21072
21073                 struct request_queue *q = NULL;
21074                 unsigned int opt = 1;
21075                 (void) blk_queue_io_opt(q, opt);
21076
21077   ;
21078   return 0;
21079 }
21080
21081 _ACEOF
21082
21083
21084         rm -Rf build && mkdir -p build
21085         echo "obj-m := conftest.o" >build/Makefile
21086         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'
21087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088   (eval $ac_try) 2>&5
21089   ac_status=$?
21090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093   (eval $ac_try) 2>&5
21094   ac_status=$?
21095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); }; }; then
21097
21098                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21099 $as_echo "yes" >&6; }
21100
21101 cat >>confdefs.h <<\_ACEOF
21102 #define HAVE_BLK_QUEUE_IO_OPT 1
21103 _ACEOF
21104
21105
21106 else
21107   $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110                 { $as_echo "$as_me:$LINENO: result: no" >&5
21111 $as_echo "no" >&6; }
21112
21113
21114
21115 fi
21116
21117         rm -Rf build
21118
21119
21120         EXTRA_KCFLAGS="$tmp_flags"
21121
21122
21123         { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
21124 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
21125         tmp_flags="$EXTRA_KCFLAGS"
21126         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21127
21128
21129 cat confdefs.h - <<_ACEOF >conftest.c
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135
21136
21137                 #include <linux/blkdev.h>
21138
21139 int
21140 main (void)
21141 {
21142
21143                 struct request_queue *q = NULL;
21144                 (void) blk_queue_nonrot(q);
21145
21146   ;
21147   return 0;
21148 }
21149
21150 _ACEOF
21151
21152
21153         rm -Rf build && mkdir -p build
21154         echo "obj-m := conftest.o" >build/Makefile
21155         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'
21156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21157   (eval $ac_try) 2>&5
21158   ac_status=$?
21159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; }; then
21166
21167                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21168 $as_echo "yes" >&6; }
21169
21170 cat >>confdefs.h <<\_ACEOF
21171 #define HAVE_BLK_QUEUE_NONROT 1
21172 _ACEOF
21173
21174
21175 else
21176   $as_echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179                 { $as_echo "$as_me:$LINENO: result: no" >&5
21180 $as_echo "no" >&6; }
21181
21182
21183
21184 fi
21185
21186         rm -Rf build
21187
21188
21189         EXTRA_KCFLAGS="$tmp_flags"
21190
21191
21192         { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
21193 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
21194         tmp_flags="$EXTRA_KCFLAGS"
21195         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21196
21197
21198 cat confdefs.h - <<_ACEOF >conftest.c
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204
21205
21206                 #include <linux/blkdev.h>
21207
21208 int
21209 main (void)
21210 {
21211
21212                 struct request_queue *q = NULL;
21213                 (void) blk_queue_discard(q);
21214
21215   ;
21216   return 0;
21217 }
21218
21219 _ACEOF
21220
21221
21222         rm -Rf build && mkdir -p build
21223         echo "obj-m := conftest.o" >build/Makefile
21224         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'
21225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226   (eval $ac_try) 2>&5
21227   ac_status=$?
21228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; }; then
21235
21236                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21237 $as_echo "yes" >&6; }
21238
21239 cat >>confdefs.h <<\_ACEOF
21240 #define HAVE_BLK_QUEUE_DISCARD 1
21241 _ACEOF
21242
21243
21244 else
21245   $as_echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248                 { $as_echo "$as_me:$LINENO: result: no" >&5
21249 $as_echo "no" >&6; }
21250
21251
21252
21253 fi
21254
21255         rm -Rf build
21256
21257
21258         EXTRA_KCFLAGS="$tmp_flags"
21259
21260
21261         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
21262 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
21263         tmp_flags="$EXTRA_KCFLAGS"
21264         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21265
21266
21267 cat confdefs.h - <<_ACEOF >conftest.c
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273
21274
21275                 #include <linux/blkdev.h>
21276
21277 int
21278 main (void)
21279 {
21280
21281                 struct request_queue *q = NULL;
21282                 (void) blk_fetch_request(q);
21283
21284   ;
21285   return 0;
21286 }
21287
21288 _ACEOF
21289
21290
21291         rm -Rf build && mkdir -p build
21292         echo "obj-m := conftest.o" >build/Makefile
21293         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'
21294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295   (eval $ac_try) 2>&5
21296   ac_status=$?
21297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300   (eval $ac_try) 2>&5
21301   ac_status=$?
21302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); }; }; then
21304
21305                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21306 $as_echo "yes" >&6; }
21307
21308 cat >>confdefs.h <<\_ACEOF
21309 #define HAVE_BLK_FETCH_REQUEST 1
21310 _ACEOF
21311
21312
21313 else
21314   $as_echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317                 { $as_echo "$as_me:$LINENO: result: no" >&5
21318 $as_echo "no" >&6; }
21319
21320
21321
21322 fi
21323
21324         rm -Rf build
21325
21326
21327         EXTRA_KCFLAGS="$tmp_flags"
21328
21329
21330         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
21331 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
21332         tmp_flags="$EXTRA_KCFLAGS"
21333         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21334
21335
21336 cat confdefs.h - <<_ACEOF >conftest.c
21337 /* confdefs.h.  */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h.  */
21342
21343
21344                 #include <linux/blkdev.h>
21345
21346 int
21347 main (void)
21348 {
21349
21350                 struct request_queue *q = NULL;
21351                 struct request *req = NULL;
21352                 blk_requeue_request(q, req);
21353
21354   ;
21355   return 0;
21356 }
21357
21358 _ACEOF
21359
21360
21361         rm -Rf build && mkdir -p build
21362         echo "obj-m := conftest.o" >build/Makefile
21363         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'
21364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365   (eval $ac_try) 2>&5
21366   ac_status=$?
21367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370   (eval $ac_try) 2>&5
21371   ac_status=$?
21372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); }; }; then
21374
21375                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21376 $as_echo "yes" >&6; }
21377
21378 cat >>confdefs.h <<\_ACEOF
21379 #define HAVE_BLK_REQUEUE_REQUEST 1
21380 _ACEOF
21381
21382
21383 else
21384   $as_echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387                 { $as_echo "$as_me:$LINENO: result: no" >&5
21388 $as_echo "no" >&6; }
21389
21390
21391
21392 fi
21393
21394         rm -Rf build
21395
21396
21397         EXTRA_KCFLAGS="$tmp_flags"
21398
21399
21400         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
21401 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
21402         tmp_flags="$EXTRA_KCFLAGS"
21403         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21404
21405
21406 cat confdefs.h - <<_ACEOF >conftest.c
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412
21413
21414                 #include <linux/blkdev.h>
21415
21416 int
21417 main (void)
21418 {
21419
21420                 struct request *req = NULL;
21421                 (void) blk_rq_bytes(req);
21422
21423   ;
21424   return 0;
21425 }
21426
21427 _ACEOF
21428
21429
21430         rm -Rf build && mkdir -p build
21431         echo "obj-m := conftest.o" >build/Makefile
21432         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'
21433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21434   (eval $ac_try) 2>&5
21435   ac_status=$?
21436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439   (eval $ac_try) 2>&5
21440   ac_status=$?
21441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; }; then
21443
21444                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21445 $as_echo "yes" >&6; }
21446
21447 cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_BLK_RQ_BYTES 1
21449 _ACEOF
21450
21451
21452 else
21453   $as_echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21455
21456                 { $as_echo "$as_me:$LINENO: result: no" >&5
21457 $as_echo "no" >&6; }
21458
21459
21460
21461 fi
21462
21463         rm -Rf build
21464
21465
21466
21467         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
21468 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
21469
21470
21471 cat confdefs.h - <<_ACEOF >conftest.c
21472 /* confdefs.h.  */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h.  */
21477
21478
21479                 #include <linux/module.h>
21480                 #include <linux/blkdev.h>
21481
21482                 MODULE_LICENSE("CDDL");
21483
21484 int
21485 main (void)
21486 {
21487
21488                 struct request *req = NULL;
21489                 (void) blk_rq_bytes(req);
21490
21491   ;
21492   return 0;
21493 }
21494
21495 _ACEOF
21496
21497
21498         rm -Rf build && mkdir -p build
21499         echo "obj-m := conftest.o" >build/Makefile
21500         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'
21501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21502   (eval $ac_try) 2>&5
21503   ac_status=$?
21504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507   (eval $ac_try) 2>&5
21508   ac_status=$?
21509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); }; }; then
21511
21512                 { $as_echo "$as_me:$LINENO: result: no" >&5
21513 $as_echo "no" >&6; }
21514
21515 else
21516   $as_echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21520 $as_echo "yes" >&6; }
21521
21522 cat >>confdefs.h <<\_ACEOF
21523 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
21524 _ACEOF
21525
21526
21527
21528
21529 fi
21530
21531         rm -Rf build
21532
21533
21534         EXTRA_KCFLAGS="$tmp_flags"
21535
21536
21537         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
21538 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
21539         tmp_flags="$EXTRA_KCFLAGS"
21540         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21541
21542
21543 cat confdefs.h - <<_ACEOF >conftest.c
21544 /* confdefs.h.  */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h.  */
21549
21550
21551                 #include <linux/blkdev.h>
21552
21553 int
21554 main (void)
21555 {
21556
21557                 struct request *req = NULL;
21558                 (void) blk_rq_pos(req);
21559
21560   ;
21561   return 0;
21562 }
21563
21564 _ACEOF
21565
21566
21567         rm -Rf build && mkdir -p build
21568         echo "obj-m := conftest.o" >build/Makefile
21569         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'
21570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571   (eval $ac_try) 2>&5
21572   ac_status=$?
21573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576   (eval $ac_try) 2>&5
21577   ac_status=$?
21578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580
21581                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21582 $as_echo "yes" >&6; }
21583
21584 cat >>confdefs.h <<\_ACEOF
21585 #define HAVE_BLK_RQ_POS 1
21586 _ACEOF
21587
21588
21589 else
21590   $as_echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21592
21593                 { $as_echo "$as_me:$LINENO: result: no" >&5
21594 $as_echo "no" >&6; }
21595
21596
21597
21598 fi
21599
21600         rm -Rf build
21601
21602
21603         EXTRA_KCFLAGS="$tmp_flags"
21604
21605
21606         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
21607 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
21608         tmp_flags="$EXTRA_KCFLAGS"
21609         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21610
21611
21612 cat confdefs.h - <<_ACEOF >conftest.c
21613 /* confdefs.h.  */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h.  */
21618
21619
21620                 #include <linux/blkdev.h>
21621
21622 int
21623 main (void)
21624 {
21625
21626                 struct request *req = NULL;
21627                 (void) blk_rq_sectors(req);
21628
21629   ;
21630   return 0;
21631 }
21632
21633 _ACEOF
21634
21635
21636         rm -Rf build && mkdir -p build
21637         echo "obj-m := conftest.o" >build/Makefile
21638         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'
21639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640   (eval $ac_try) 2>&5
21641   ac_status=$?
21642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645   (eval $ac_try) 2>&5
21646   ac_status=$?
21647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); }; }; then
21649
21650                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21651 $as_echo "yes" >&6; }
21652
21653 cat >>confdefs.h <<\_ACEOF
21654 #define HAVE_BLK_RQ_SECTORS 1
21655 _ACEOF
21656
21657
21658 else
21659   $as_echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662                 { $as_echo "$as_me:$LINENO: result: no" >&5
21663 $as_echo "no" >&6; }
21664
21665
21666
21667 fi
21668
21669         rm -Rf build
21670
21671
21672         EXTRA_KCFLAGS="$tmp_flags"
21673
21674
21675         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
21676 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
21677         tmp_flags="$EXTRA_KCFLAGS"
21678         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21679
21680
21681 cat confdefs.h - <<_ACEOF >conftest.c
21682 /* confdefs.h.  */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h.  */
21687
21688
21689                 #include <linux/blkdev.h>
21690
21691 int
21692 main (void)
21693 {
21694
21695                 struct gendisk *disk = NULL;
21696                 (void) get_disk_ro(disk);
21697
21698   ;
21699   return 0;
21700 }
21701
21702 _ACEOF
21703
21704
21705         rm -Rf build && mkdir -p build
21706         echo "obj-m := conftest.o" >build/Makefile
21707         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'
21708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21709   (eval $ac_try) 2>&5
21710   ac_status=$?
21711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714   (eval $ac_try) 2>&5
21715   ac_status=$?
21716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717   (exit $ac_status); }; }; then
21718
21719                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21720 $as_echo "yes" >&6; }
21721
21722 cat >>confdefs.h <<\_ACEOF
21723 #define HAVE_GET_DISK_RO 1
21724 _ACEOF
21725
21726
21727 else
21728   $as_echo "$as_me: failed program was:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21730
21731                 { $as_echo "$as_me:$LINENO: result: no" >&5
21732 $as_echo "no" >&6; }
21733
21734
21735
21736 fi
21737
21738         rm -Rf build
21739
21740
21741         EXTRA_KCFLAGS="$tmp_flags"
21742
21743
21744         { $as_echo "$as_me:$LINENO: checking whether symbol get_gendisk is exported" >&5
21745 $as_echo_n "checking whether symbol get_gendisk is exported... " >&6; }
21746         grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
21747                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21748         rc=$?
21749         if test $rc -ne 0; then
21750
21751                 export=0
21752                 for file in block/genhd.c; do
21753                         grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" "$LINUX/$file" 2>/dev/null
21754                         rc=$?
21755                         if test $rc -eq 0; then
21756
21757                                 export=1
21758                                 break;
21759
21760 fi
21761
21762                 done
21763                 if test $export -eq 0; then
21764
21765                         { $as_echo "$as_me:$LINENO: result: no" >&5
21766 $as_echo "no" >&6; }
21767
21768
21769 else
21770
21771                         { $as_echo "$as_me:$LINENO: result: yes" >&5
21772 $as_echo "yes" >&6; }
21773
21774 cat >>confdefs.h <<\_ACEOF
21775 #define HAVE_GET_GENDISK 1
21776 _ACEOF
21777
21778
21779 fi
21780
21781
21782 else
21783
21784                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21785 $as_echo "yes" >&6; }
21786
21787 cat >>confdefs.h <<\_ACEOF
21788 #define HAVE_GET_GENDISK 1
21789 _ACEOF
21790
21791
21792 fi
21793
21794
21795
21796
21797         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
21798 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
21799         tmp_flags="$EXTRA_KCFLAGS"
21800         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21801
21802
21803 cat confdefs.h - <<_ACEOF >conftest.c
21804 /* confdefs.h.  */
21805 _ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h.  */
21809
21810
21811                 #include <linux/blkdev.h>
21812
21813 int
21814 main (void)
21815 {
21816
21817                 struct request *req = NULL;
21818                 (void) rq_is_sync(req);
21819
21820   ;
21821   return 0;
21822 }
21823
21824 _ACEOF
21825
21826
21827         rm -Rf build && mkdir -p build
21828         echo "obj-m := conftest.o" >build/Makefile
21829         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'
21830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831   (eval $ac_try) 2>&5
21832   ac_status=$?
21833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21836   (eval $ac_try) 2>&5
21837   ac_status=$?
21838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); }; }; then
21840
21841                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21842 $as_echo "yes" >&6; }
21843
21844 cat >>confdefs.h <<\_ACEOF
21845 #define HAVE_RQ_IS_SYNC 1
21846 _ACEOF
21847
21848
21849 else
21850   $as_echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853                 { $as_echo "$as_me:$LINENO: result: no" >&5
21854 $as_echo "no" >&6; }
21855
21856
21857
21858 fi
21859
21860         rm -Rf build
21861
21862
21863         EXTRA_KCFLAGS="$tmp_flags"
21864
21865
21866         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
21867 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
21868         tmp_flags="$EXTRA_KCFLAGS"
21869         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
21870
21871
21872 cat confdefs.h - <<_ACEOF >conftest.c
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878
21879
21880                 #include <linux/blkdev.h>
21881
21882 int
21883 main (void)
21884 {
21885
21886                 struct bio_vec *bv;
21887                 struct req_iterator iter;
21888                 struct request *req = NULL;
21889                 rq_for_each_segment(bv, req, iter) { }
21890
21891   ;
21892   return 0;
21893 }
21894
21895 _ACEOF
21896
21897
21898         rm -Rf build && mkdir -p build
21899         echo "obj-m := conftest.o" >build/Makefile
21900         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'
21901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902   (eval $ac_try) 2>&5
21903   ac_status=$?
21904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907   (eval $ac_try) 2>&5
21908   ac_status=$?
21909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910   (exit $ac_status); }; }; then
21911
21912                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21913 $as_echo "yes" >&6; }
21914
21915 cat >>confdefs.h <<\_ACEOF
21916 #define HAVE_RQ_FOR_EACH_SEGMENT 1
21917 _ACEOF
21918
21919
21920 else
21921   $as_echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924                 { $as_echo "$as_me:$LINENO: result: no" >&5
21925 $as_echo "no" >&6; }
21926
21927
21928
21929 fi
21930
21931         rm -Rf build
21932
21933
21934         EXTRA_KCFLAGS="$tmp_flags"
21935
21936         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
21937 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
21938
21939
21940 cat confdefs.h - <<_ACEOF >conftest.c
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946
21947
21948                 #include <linux/fs.h>
21949                 #include <linux/xattr.h>
21950
21951                 const struct xattr_handler xattr_test_handler = {
21952                         .prefix = "test",
21953                         .get    = NULL,
21954                         .set    = NULL,
21955                 };
21956
21957                 const struct xattr_handler *xattr_handlers[] = {
21958                         &xattr_test_handler,
21959                 };
21960
21961 int
21962 main (void)
21963 {
21964
21965                 struct super_block sb __attribute__ ((unused));
21966
21967                 sb.s_xattr = xattr_handlers;
21968
21969   ;
21970   return 0;
21971 }
21972
21973 _ACEOF
21974
21975
21976         rm -Rf build && mkdir -p build
21977         echo "obj-m := conftest.o" >build/Makefile
21978         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'
21979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980   (eval $ac_try) 2>&5
21981   ac_status=$?
21982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985   (eval $ac_try) 2>&5
21986   ac_status=$?
21987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); }; }; then
21989
21990                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21991 $as_echo "yes" >&6; }
21992
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_CONST_XATTR_HANDLER 1
21995 _ACEOF
21996
21997
21998 else
21999   $as_echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002                 { $as_echo "$as_me:$LINENO: result: no" >&5
22003 $as_echo "no" >&6; }
22004
22005
22006
22007 fi
22008
22009         rm -Rf build
22010
22011
22012
22013
22014         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
22015 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
22016
22017
22018 cat confdefs.h - <<_ACEOF >conftest.c
22019 /* confdefs.h.  */
22020 _ACEOF
22021 cat confdefs.h >>conftest.$ac_ext
22022 cat >>conftest.$ac_ext <<_ACEOF
22023 /* end confdefs.h.  */
22024
22025
22026                 #include <linux/xattr.h>
22027
22028 int
22029 main (void)
22030 {
22031
22032                 int (*get)(struct dentry *dentry, const char *name,
22033                     void *buffer, size_t size, int handler_flags) = NULL;
22034                 struct xattr_handler xops __attribute__ ((unused));
22035
22036                 xops.get = get;
22037
22038   ;
22039   return 0;
22040 }
22041
22042 _ACEOF
22043
22044
22045         rm -Rf build && mkdir -p build
22046         echo "obj-m := conftest.o" >build/Makefile
22047         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'
22048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049   (eval $ac_try) 2>&5
22050   ac_status=$?
22051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054   (eval $ac_try) 2>&5
22055   ac_status=$?
22056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057   (exit $ac_status); }; }; then
22058
22059                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22060 $as_echo "yes" >&6; }
22061
22062 cat >>confdefs.h <<\_ACEOF
22063 #define HAVE_DENTRY_XATTR_GET 1
22064 _ACEOF
22065
22066
22067 else
22068   $as_echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071                 { $as_echo "$as_me:$LINENO: result: no" >&5
22072 $as_echo "no" >&6; }
22073
22074
22075
22076 fi
22077
22078         rm -Rf build
22079
22080
22081
22082
22083         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
22084 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
22085
22086
22087 cat confdefs.h - <<_ACEOF >conftest.c
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093
22094
22095                 #include <linux/xattr.h>
22096
22097 int
22098 main (void)
22099 {
22100
22101                 int (*set)(struct dentry *dentry, const char *name,
22102                     const void *buffer, size_t size, int flags,
22103                     int handler_flags) = NULL;
22104                 struct xattr_handler xops __attribute__ ((unused));
22105
22106                 xops.set = set;
22107
22108   ;
22109   return 0;
22110 }
22111
22112 _ACEOF
22113
22114
22115         rm -Rf build && mkdir -p build
22116         echo "obj-m := conftest.o" >build/Makefile
22117         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'
22118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22119   (eval $ac_try) 2>&5
22120   ac_status=$?
22121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124   (eval $ac_try) 2>&5
22125   ac_status=$?
22126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; }; then
22128
22129                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22130 $as_echo "yes" >&6; }
22131
22132 cat >>confdefs.h <<\_ACEOF
22133 #define HAVE_DENTRY_XATTR_SET 1
22134 _ACEOF
22135
22136
22137 else
22138   $as_echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22140
22141                 { $as_echo "$as_me:$LINENO: result: no" >&5
22142 $as_echo "no" >&6; }
22143
22144
22145
22146 fi
22147
22148         rm -Rf build
22149
22150
22151
22152
22153         { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
22154 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
22155
22156
22157
22158 cat confdefs.h - <<_ACEOF >conftest.c
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164
22165
22166                 #include <linux/fs.h>
22167
22168                 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
22169                 static struct super_operations sops __attribute__ ((unused)) = {
22170                         .show_options = show_options,
22171                 };
22172
22173 int
22174 main (void)
22175 {
22176
22177
22178   ;
22179   return 0;
22180 }
22181
22182 _ACEOF
22183
22184
22185         rm -Rf build && mkdir -p build
22186         echo "obj-m := conftest.o" >build/Makefile
22187         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'
22188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189   (eval $ac_try) 2>&5
22190   ac_status=$?
22191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194   (eval $ac_try) 2>&5
22195   ac_status=$?
22196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); }; }; then
22198
22199                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22200 $as_echo "yes" >&6; }
22201
22202 cat >>confdefs.h <<\_ACEOF
22203 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
22204 _ACEOF
22205
22206
22207 else
22208   $as_echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211                 { $as_echo "$as_me:$LINENO: result: no" >&5
22212 $as_echo "no" >&6; }
22213
22214
22215
22216 fi
22217
22218         rm -Rf build
22219
22220
22221
22222
22223         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
22224 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
22225
22226
22227
22228 cat confdefs.h - <<_ACEOF >conftest.c
22229 /* confdefs.h.  */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h.  */
22234
22235
22236                 #include <linux/fs.h>
22237
22238 int
22239 main (void)
22240 {
22241
22242                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
22243                 struct file_operations fops __attribute__ ((unused));
22244
22245                 fops.fsync = fsync;
22246
22247   ;
22248   return 0;
22249 }
22250
22251 _ACEOF
22252
22253
22254         rm -Rf build && mkdir -p build
22255         echo "obj-m := conftest.o" >build/Makefile
22256         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'
22257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258   (eval $ac_try) 2>&5
22259   ac_status=$?
22260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263   (eval $ac_try) 2>&5
22264   ac_status=$?
22265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266   (exit $ac_status); }; }; then
22267
22268                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
22269 $as_echo "dentry" >&6; }
22270
22271 cat >>confdefs.h <<\_ACEOF
22272 #define HAVE_FSYNC_WITH_DENTRY 1
22273 _ACEOF
22274
22275
22276 else
22277   $as_echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280
22281
22282
22283 fi
22284
22285         rm -Rf build
22286
22287
22288
22289
22290
22291
22292 cat confdefs.h - <<_ACEOF >conftest.c
22293 /* confdefs.h.  */
22294 _ACEOF
22295 cat confdefs.h >>conftest.$ac_ext
22296 cat >>conftest.$ac_ext <<_ACEOF
22297 /* end confdefs.h.  */
22298
22299
22300                 #include <linux/fs.h>
22301
22302 int
22303 main (void)
22304 {
22305
22306                 int (*fsync) (struct file *, int) = NULL;
22307                 struct file_operations fops __attribute__ ((unused));
22308
22309                 fops.fsync = fsync;
22310
22311   ;
22312   return 0;
22313 }
22314
22315 _ACEOF
22316
22317
22318         rm -Rf build && mkdir -p build
22319         echo "obj-m := conftest.o" >build/Makefile
22320         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'
22321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322   (eval $ac_try) 2>&5
22323   ac_status=$?
22324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22327   (eval $ac_try) 2>&5
22328   ac_status=$?
22329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); }; }; then
22331
22332                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
22333 $as_echo "no dentry" >&6; }
22334
22335 cat >>confdefs.h <<\_ACEOF
22336 #define HAVE_FSYNC_WITHOUT_DENTRY 1
22337 _ACEOF
22338
22339
22340 else
22341   $as_echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22343
22344
22345
22346
22347 fi
22348
22349         rm -Rf build
22350
22351
22352
22353
22354
22355
22356 cat confdefs.h - <<_ACEOF >conftest.c
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362
22363
22364                 #include <linux/fs.h>
22365
22366 int
22367 main (void)
22368 {
22369
22370                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
22371                 struct file_operations fops __attribute__ ((unused));
22372
22373                 fops.fsync = fsync;
22374
22375   ;
22376   return 0;
22377 }
22378
22379 _ACEOF
22380
22381
22382         rm -Rf build && mkdir -p build
22383         echo "obj-m := conftest.o" >build/Makefile
22384         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'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391   (eval $ac_try) 2>&5
22392   ac_status=$?
22393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); }; }; then
22395
22396                 { $as_echo "$as_me:$LINENO: result: range" >&5
22397 $as_echo "range" >&6; }
22398
22399 cat >>confdefs.h <<\_ACEOF
22400 #define HAVE_FSYNC_RANGE 1
22401 _ACEOF
22402
22403
22404 else
22405   $as_echo "$as_me: failed program was:" >&5
22406 sed 's/^/| /' conftest.$ac_ext >&5
22407
22408
22409
22410
22411 fi
22412
22413         rm -Rf build
22414
22415
22416
22417
22418
22419
22420 cat confdefs.h - <<_ACEOF >conftest.c
22421 /* confdefs.h.  */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h.  */
22426
22427
22428                 #include <linux/fs.h>
22429
22430 int
22431 main (void)
22432 {
22433
22434                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
22435                 file_operations_no_const fops __attribute__ ((unused));
22436
22437                 fops.fsync = fsync;
22438
22439   ;
22440   return 0;
22441 }
22442
22443 _ACEOF
22444
22445
22446         rm -Rf build && mkdir -p build
22447         echo "obj-m := conftest.o" >build/Makefile
22448         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'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455   (eval $ac_try) 2>&5
22456   ac_status=$?
22457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458   (exit $ac_status); }; }; then
22459
22460                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
22461 $as_echo "dentry" >&6; }
22462
22463 cat >>confdefs.h <<\_ACEOF
22464 #define HAVE_FSYNC_WITH_DENTRY 1
22465 _ACEOF
22466
22467
22468 else
22469   $as_echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22471
22472
22473
22474
22475 fi
22476
22477         rm -Rf build
22478
22479
22480
22481
22482
22483
22484 cat confdefs.h - <<_ACEOF >conftest.c
22485 /* confdefs.h.  */
22486 _ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h.  */
22490
22491
22492                 #include <linux/fs.h>
22493
22494 int
22495 main (void)
22496 {
22497
22498                 int (*fsync) (struct file *, int) = NULL;
22499                 file_operations_no_const fops __attribute__ ((unused));
22500
22501                 fops.fsync = fsync;
22502
22503   ;
22504   return 0;
22505 }
22506
22507 _ACEOF
22508
22509
22510         rm -Rf build && mkdir -p build
22511         echo "obj-m := conftest.o" >build/Makefile
22512         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'
22513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514   (eval $ac_try) 2>&5
22515   ac_status=$?
22516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519   (eval $ac_try) 2>&5
22520   ac_status=$?
22521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); }; }; then
22523
22524                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
22525 $as_echo "no dentry" >&6; }
22526
22527 cat >>confdefs.h <<\_ACEOF
22528 #define HAVE_FSYNC_WITHOUT_DENTRY 1
22529 _ACEOF
22530
22531
22532 else
22533   $as_echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22535
22536
22537
22538
22539 fi
22540
22541         rm -Rf build
22542
22543
22544
22545
22546
22547
22548 cat confdefs.h - <<_ACEOF >conftest.c
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554
22555
22556                 #include <linux/fs.h>
22557
22558 int
22559 main (void)
22560 {
22561
22562                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
22563                 file_operations_no_const fops __attribute__ ((unused));
22564
22565                 fops.fsync = fsync;
22566
22567   ;
22568   return 0;
22569 }
22570
22571 _ACEOF
22572
22573
22574         rm -Rf build && mkdir -p build
22575         echo "obj-m := conftest.o" >build/Makefile
22576         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'
22577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578   (eval $ac_try) 2>&5
22579   ac_status=$?
22580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22583   (eval $ac_try) 2>&5
22584   ac_status=$?
22585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); }; }; then
22587
22588                 { $as_echo "$as_me:$LINENO: result: range" >&5
22589 $as_echo "range" >&6; }
22590
22591 cat >>confdefs.h <<\_ACEOF
22592 #define HAVE_FSYNC_RANGE 1
22593 _ACEOF
22594
22595
22596 else
22597   $as_echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22599
22600
22601
22602
22603 fi
22604
22605         rm -Rf build
22606
22607
22608
22609
22610
22611         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
22612 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
22613
22614
22615 cat confdefs.h - <<_ACEOF >conftest.c
22616 /* confdefs.h.  */
22617 _ACEOF
22618 cat confdefs.h >>conftest.$ac_ext
22619 cat >>conftest.$ac_ext <<_ACEOF
22620 /* end confdefs.h.  */
22621
22622
22623                 #include <linux/fs.h>
22624                 void evict_inode (struct inode * t) { return; }
22625                 static struct super_operations sops __attribute__ ((unused)) = {
22626                         .evict_inode = evict_inode,
22627                 };
22628
22629 int
22630 main (void)
22631 {
22632
22633
22634   ;
22635   return 0;
22636 }
22637
22638 _ACEOF
22639
22640
22641         rm -Rf build && mkdir -p build
22642         echo "obj-m := conftest.o" >build/Makefile
22643         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'
22644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645   (eval $ac_try) 2>&5
22646   ac_status=$?
22647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650   (eval $ac_try) 2>&5
22651   ac_status=$?
22652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); }; }; then
22654
22655                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22656 $as_echo "yes" >&6; }
22657
22658 cat >>confdefs.h <<\_ACEOF
22659 #define HAVE_EVICT_INODE 1
22660 _ACEOF
22661
22662
22663 else
22664   $as_echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22666
22667                 { $as_echo "$as_me:$LINENO: result: no" >&5
22668 $as_echo "no" >&6; }
22669
22670
22671
22672 fi
22673
22674         rm -Rf build
22675
22676
22677
22678
22679         { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
22680 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
22681
22682
22683 cat confdefs.h - <<_ACEOF >conftest.c
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689
22690
22691                 #include <linux/fs.h>
22692
22693 int
22694 main (void)
22695 {
22696
22697                 int (*nr_cached_objects)(struct super_block *)
22698                         __attribute__ ((unused)) = NULL;
22699                 struct super_operations sops __attribute__ ((unused)) = {
22700                         .nr_cached_objects = nr_cached_objects,
22701                 };
22702
22703   ;
22704   return 0;
22705 }
22706
22707 _ACEOF
22708
22709
22710         rm -Rf build && mkdir -p build
22711         echo "obj-m := conftest.o" >build/Makefile
22712         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'
22713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714   (eval $ac_try) 2>&5
22715   ac_status=$?
22716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719   (eval $ac_try) 2>&5
22720   ac_status=$?
22721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); }; }; then
22723
22724                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22725 $as_echo "yes" >&6; }
22726
22727 cat >>confdefs.h <<\_ACEOF
22728 #define HAVE_NR_CACHED_OBJECTS 1
22729 _ACEOF
22730
22731
22732 else
22733   $as_echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736                 { $as_echo "$as_me:$LINENO: result: no" >&5
22737 $as_echo "no" >&6; }
22738
22739
22740
22741 fi
22742
22743         rm -Rf build
22744
22745
22746
22747
22748         { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
22749 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
22750
22751
22752 cat confdefs.h - <<_ACEOF >conftest.c
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758
22759
22760                 #include <linux/fs.h>
22761
22762 int
22763 main (void)
22764 {
22765
22766                 void (*free_cached_objects)(struct super_block *, int)
22767                         __attribute__ ((unused)) = NULL;
22768                 struct super_operations sops __attribute__ ((unused)) = {
22769                         .free_cached_objects = free_cached_objects,
22770                 };
22771
22772   ;
22773   return 0;
22774 }
22775
22776 _ACEOF
22777
22778
22779         rm -Rf build && mkdir -p build
22780         echo "obj-m := conftest.o" >build/Makefile
22781         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'
22782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783   (eval $ac_try) 2>&5
22784   ac_status=$?
22785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; }; then
22792
22793                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22794 $as_echo "yes" >&6; }
22795
22796 cat >>confdefs.h <<\_ACEOF
22797 #define HAVE_FREE_CACHED_OBJECTS 1
22798 _ACEOF
22799
22800
22801 else
22802   $as_echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805                 { $as_echo "$as_me:$LINENO: result: no" >&5
22806 $as_echo "no" >&6; }
22807
22808
22809
22810 fi
22811
22812         rm -Rf build
22813
22814
22815
22816
22817
22818         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22819 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22820
22821
22822 cat confdefs.h - <<_ACEOF >conftest.c
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828
22829
22830                 #include <linux/fs.h>
22831
22832 int
22833 main (void)
22834 {
22835
22836                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
22837                 struct file_operations fops __attribute__ ((unused)) = {
22838                         .fallocate = fallocate,
22839                 };
22840
22841   ;
22842   return 0;
22843 }
22844
22845 _ACEOF
22846
22847
22848         rm -Rf build && mkdir -p build
22849         echo "obj-m := conftest.o" >build/Makefile
22850         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'
22851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22852   (eval $ac_try) 2>&5
22853   ac_status=$?
22854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857   (eval $ac_try) 2>&5
22858   ac_status=$?
22859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860   (exit $ac_status); }; }; then
22861
22862                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22863 $as_echo "yes" >&6; }
22864
22865 cat >>confdefs.h <<\_ACEOF
22866 #define HAVE_FILE_FALLOCATE 1
22867 _ACEOF
22868
22869
22870 else
22871   $as_echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22873
22874                 { $as_echo "$as_me:$LINENO: result: no" >&5
22875 $as_echo "no" >&6; }
22876
22877
22878
22879 fi
22880
22881         rm -Rf build
22882
22883
22884
22885
22886         { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
22887 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
22888
22889
22890 cat confdefs.h - <<_ACEOF >conftest.c
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896
22897
22898                 #include <linux/fs.h>
22899
22900 int
22901 main (void)
22902 {
22903
22904                 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
22905                 struct inode_operations fops __attribute__ ((unused)) = {
22906                         .fallocate = fallocate,
22907                 };
22908
22909   ;
22910   return 0;
22911 }
22912
22913 _ACEOF
22914
22915
22916         rm -Rf build && mkdir -p build
22917         echo "obj-m := conftest.o" >build/Makefile
22918         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'
22919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920   (eval $ac_try) 2>&5
22921   ac_status=$?
22922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925   (eval $ac_try) 2>&5
22926   ac_status=$?
22927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); }; }; then
22929
22930                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22931 $as_echo "yes" >&6; }
22932
22933 cat >>confdefs.h <<\_ACEOF
22934 #define HAVE_INODE_FALLOCATE 1
22935 _ACEOF
22936
22937
22938 else
22939   $as_echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22941
22942                 { $as_echo "$as_me:$LINENO: result: no" >&5
22943 $as_echo "no" >&6; }
22944
22945
22946
22947 fi
22948
22949         rm -Rf build
22950
22951
22952
22953
22954         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
22955 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
22956
22957
22958 cat confdefs.h - <<_ACEOF >conftest.c
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964
22965
22966                 #include <linux/fs.h>
22967
22968 int
22969 main (void)
22970 {
22971
22972                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
22973                 struct file_operations_no_const fops __attribute__ ((unused)) = {
22974                         .fallocate = fallocate,
22975                 };
22976
22977   ;
22978   return 0;
22979 }
22980
22981 _ACEOF
22982
22983
22984         rm -Rf build && mkdir -p build
22985         echo "obj-m := conftest.o" >build/Makefile
22986         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'
22987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988   (eval $ac_try) 2>&5
22989   ac_status=$?
22990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993   (eval $ac_try) 2>&5
22994   ac_status=$?
22995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); }; }; then
22997
22998                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22999 $as_echo "yes" >&6; }
23000
23001 cat >>confdefs.h <<\_ACEOF
23002 #define HAVE_FILE_FALLOCATE 1
23003 _ACEOF
23004
23005
23006 else
23007   $as_echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010                 { $as_echo "$as_me:$LINENO: result: no" >&5
23011 $as_echo "no" >&6; }
23012
23013
23014
23015 fi
23016
23017         rm -Rf build
23018
23019
23020
23021
23022
23023         { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
23024 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
23025
23026
23027 cat confdefs.h - <<_ACEOF >conftest.c
23028 /* confdefs.h.  */
23029 _ACEOF
23030 cat confdefs.h >>conftest.$ac_ext
23031 cat >>conftest.$ac_ext <<_ACEOF
23032 /* end confdefs.h.  */
23033
23034
23035                 #include <linux/fs.h>
23036                 void truncate_range(struct inode *inode, loff_t start,
23037                                     loff_t end) { return; }
23038                 static struct inode_operations iops __attribute__ ((unused)) = {
23039                         .truncate_range = truncate_range,
23040                 };
23041
23042 int
23043 main (void)
23044 {
23045
23046
23047   ;
23048   return 0;
23049 }
23050
23051 _ACEOF
23052
23053
23054         rm -Rf build && mkdir -p build
23055         echo "obj-m := conftest.o" >build/Makefile
23056         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'
23057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058   (eval $ac_try) 2>&5
23059   ac_status=$?
23060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063   (eval $ac_try) 2>&5
23064   ac_status=$?
23065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); }; }; then
23067
23068                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23069 $as_echo "yes" >&6; }
23070
23071 cat >>confdefs.h <<\_ACEOF
23072 #define HAVE_INODE_TRUNCATE_RANGE 1
23073 _ACEOF
23074
23075
23076 else
23077   $as_echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23079
23080                 { $as_echo "$as_me:$LINENO: result: no" >&5
23081 $as_echo "no" >&6; }
23082
23083
23084
23085 fi
23086
23087         rm -Rf build
23088
23089
23090
23091
23092         { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
23093 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
23094
23095
23096 cat confdefs.h - <<_ACEOF >conftest.c
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102
23103
23104                 #include <linux/fs.h>
23105
23106 int
23107 main (void)
23108 {
23109
23110                 int (*create) (struct inode *, struct dentry *, umode_t,
23111                     struct nameidata *) = NULL;
23112                 struct inode_operations iops __attribute__ ((unused)) = {
23113                         .create = create,
23114                 };
23115
23116   ;
23117   return 0;
23118 }
23119
23120 _ACEOF
23121
23122
23123         rm -Rf build && mkdir -p build
23124         echo "obj-m := conftest.o" >build/Makefile
23125         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'
23126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23127   (eval $ac_try) 2>&5
23128   ac_status=$?
23129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132   (eval $ac_try) 2>&5
23133   ac_status=$?
23134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135   (exit $ac_status); }; }; then
23136
23137                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23138 $as_echo "yes" >&6; }
23139
23140 cat >>confdefs.h <<\_ACEOF
23141 #define HAVE_CREATE_UMODE_T 1
23142 _ACEOF
23143
23144
23145 else
23146   $as_echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23148
23149                 { $as_echo "$as_me:$LINENO: result: no" >&5
23150 $as_echo "no" >&6; }
23151
23152
23153
23154 fi
23155
23156         rm -Rf build
23157
23158
23159
23160
23161         { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
23162 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
23163
23164
23165 cat confdefs.h - <<_ACEOF >conftest.c
23166 /* confdefs.h.  */
23167 _ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h.  */
23171
23172
23173                 #include <linux/dcache.h>
23174
23175 int
23176 main (void)
23177 {
23178
23179                 struct vfsmount *(*d_automount) (struct path *) = NULL;
23180                 struct dentry_operations dops __attribute__ ((unused)) = {
23181                         .d_automount = d_automount,
23182                 };
23183
23184   ;
23185   return 0;
23186 }
23187
23188 _ACEOF
23189
23190
23191         rm -Rf build && mkdir -p build
23192         echo "obj-m := conftest.o" >build/Makefile
23193         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'
23194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195   (eval $ac_try) 2>&5
23196   ac_status=$?
23197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200   (eval $ac_try) 2>&5
23201   ac_status=$?
23202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); }; }; then
23204
23205                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23206 $as_echo "yes" >&6; }
23207
23208 cat >>confdefs.h <<\_ACEOF
23209 #define HAVE_AUTOMOUNT 1
23210 _ACEOF
23211
23212
23213 else
23214   $as_echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217                 { $as_echo "$as_me:$LINENO: result: no" >&5
23218 $as_echo "no" >&6; }
23219
23220
23221
23222 fi
23223
23224         rm -Rf build
23225
23226
23227
23228
23229         { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
23230 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
23231
23232
23233 cat confdefs.h - <<_ACEOF >conftest.c
23234 /* confdefs.h.  */
23235 _ACEOF
23236 cat confdefs.h >>conftest.$ac_ext
23237 cat >>conftest.$ac_ext <<_ACEOF
23238 /* end confdefs.h.  */
23239
23240
23241                 #include <linux/exportfs.h>
23242                 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
23243                               struct inode *parent) { return 0; }
23244                 static struct export_operations eops __attribute__ ((unused))={
23245                         .encode_fh = encode_fh,
23246                 };
23247
23248 int
23249 main (void)
23250 {
23251
23252
23253   ;
23254   return 0;
23255 }
23256
23257 _ACEOF
23258
23259
23260         rm -Rf build && mkdir -p build
23261         echo "obj-m := conftest.o" >build/Makefile
23262         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'
23263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264   (eval $ac_try) 2>&5
23265   ac_status=$?
23266   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269   (eval $ac_try) 2>&5
23270   ac_status=$?
23271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272   (exit $ac_status); }; }; then
23273
23274                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23275 $as_echo "yes" >&6; }
23276
23277 cat >>confdefs.h <<\_ACEOF
23278 #define HAVE_ENCODE_FH_WITH_INODE 1
23279 _ACEOF
23280
23281
23282 else
23283   $as_echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23285
23286                 { $as_echo "$as_me:$LINENO: result: no" >&5
23287 $as_echo "no" >&6; }
23288
23289
23290
23291 fi
23292
23293         rm -Rf build
23294
23295
23296
23297
23298         { $as_echo "$as_me:$LINENO: checking whether symbol clear_inode is exported" >&5
23299 $as_echo_n "checking whether symbol clear_inode is exported... " >&6; }
23300         grep -q -E '[[:space:]]clear_inode[[:space:]]' \
23301                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23302         rc=$?
23303         if test $rc -ne 0; then
23304
23305                 export=0
23306                 for file in fs/inode.c; do
23307                         grep -q -E "EXPORT_SYMBOL.*(clear_inode)" "$LINUX/$file" 2>/dev/null
23308                         rc=$?
23309                         if test $rc -eq 0; then
23310
23311                                 export=1
23312                                 break;
23313
23314 fi
23315
23316                 done
23317                 if test $export -eq 0; then
23318
23319                         { $as_echo "$as_me:$LINENO: result: no" >&5
23320 $as_echo "no" >&6; }
23321
23322
23323 else
23324
23325                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23326 $as_echo "yes" >&6; }
23327
23328 cat >>confdefs.h <<\_ACEOF
23329 #define HAVE_CLEAR_INODE 1
23330 _ACEOF
23331
23332
23333 fi
23334
23335
23336 else
23337
23338                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23339 $as_echo "yes" >&6; }
23340
23341 cat >>confdefs.h <<\_ACEOF
23342 #define HAVE_CLEAR_INODE 1
23343 _ACEOF
23344
23345
23346 fi
23347
23348
23349
23350
23351         { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
23352 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
23353         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
23354                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23355         rc=$?
23356         if test $rc -ne 0; then
23357
23358                 export=0
23359                 for file in fs/inode.c; do
23360                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
23361                         rc=$?
23362                         if test $rc -eq 0; then
23363
23364                                 export=1
23365                                 break;
23366
23367 fi
23368
23369                 done
23370                 if test $export -eq 0; then
23371
23372                         { $as_echo "$as_me:$LINENO: result: no" >&5
23373 $as_echo "no" >&6; }
23374
23375
23376 else
23377
23378                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23379 $as_echo "yes" >&6; }
23380
23381 cat >>confdefs.h <<\_ACEOF
23382 #define HAVE_INSERT_INODE_LOCKED 1
23383 _ACEOF
23384
23385
23386 fi
23387
23388
23389 else
23390
23391                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23392 $as_echo "yes" >&6; }
23393
23394 cat >>confdefs.h <<\_ACEOF
23395 #define HAVE_INSERT_INODE_LOCKED 1
23396 _ACEOF
23397
23398
23399 fi
23400
23401
23402
23403
23404         { $as_echo "$as_me:$LINENO: checking whether symbol d_make_root is exported" >&5
23405 $as_echo_n "checking whether symbol d_make_root is exported... " >&6; }
23406         grep -q -E '[[:space:]]d_make_root[[:space:]]' \
23407                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23408         rc=$?
23409         if test $rc -ne 0; then
23410
23411                 export=0
23412                 for file in fs/dcache.c; do
23413                         grep -q -E "EXPORT_SYMBOL.*(d_make_root)" "$LINUX/$file" 2>/dev/null
23414                         rc=$?
23415                         if test $rc -eq 0; then
23416
23417                                 export=1
23418                                 break;
23419
23420 fi
23421
23422                 done
23423                 if test $export -eq 0; then
23424
23425                         { $as_echo "$as_me:$LINENO: result: no" >&5
23426 $as_echo "no" >&6; }
23427
23428
23429 else
23430
23431                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23432 $as_echo "yes" >&6; }
23433
23434 cat >>confdefs.h <<\_ACEOF
23435 #define HAVE_D_MAKE_ROOT 1
23436 _ACEOF
23437
23438
23439 fi
23440
23441
23442 else
23443
23444                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23445 $as_echo "yes" >&6; }
23446
23447 cat >>confdefs.h <<\_ACEOF
23448 #define HAVE_D_MAKE_ROOT 1
23449 _ACEOF
23450
23451
23452 fi
23453
23454
23455
23456
23457         { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
23458 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
23459         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
23460                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23461         rc=$?
23462         if test $rc -ne 0; then
23463
23464                 export=0
23465                 for file in fs/dcache.c; do
23466                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
23467                         rc=$?
23468                         if test $rc -eq 0; then
23469
23470                                 export=1
23471                                 break;
23472
23473 fi
23474
23475                 done
23476                 if test $export -eq 0; then
23477
23478                         { $as_echo "$as_me:$LINENO: result: no" >&5
23479 $as_echo "no" >&6; }
23480
23481
23482 else
23483
23484                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23485 $as_echo "yes" >&6; }
23486
23487 cat >>confdefs.h <<\_ACEOF
23488 #define HAVE_D_OBTAIN_ALIAS 1
23489 _ACEOF
23490
23491
23492 fi
23493
23494
23495 else
23496
23497                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23498 $as_echo "yes" >&6; }
23499
23500 cat >>confdefs.h <<\_ACEOF
23501 #define HAVE_D_OBTAIN_ALIAS 1
23502 _ACEOF
23503
23504
23505 fi
23506
23507
23508
23509
23510         { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
23511 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
23512         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
23513                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23514         rc=$?
23515         if test $rc -ne 0; then
23516
23517                 export=0
23518                 for file in fs/block_dev.c; do
23519                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
23520                         rc=$?
23521                         if test $rc -eq 0; then
23522
23523                                 export=1
23524                                 break;
23525
23526 fi
23527
23528                 done
23529                 if test $export -eq 0; then
23530
23531                         { $as_echo "$as_me:$LINENO: result: no" >&5
23532 $as_echo "no" >&6; }
23533
23534
23535 else
23536
23537                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23538 $as_echo "yes" >&6; }
23539
23540 cat >>confdefs.h <<\_ACEOF
23541 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
23542 _ACEOF
23543
23544
23545 fi
23546
23547
23548 else
23549
23550                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23551 $as_echo "yes" >&6; }
23552
23553 cat >>confdefs.h <<\_ACEOF
23554 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
23555 _ACEOF
23556
23557
23558 fi
23559
23560
23561
23562
23563         { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
23564 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
23565         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
23566                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23567         rc=$?
23568         if test $rc -ne 0; then
23569
23570                 export=0
23571                 for file in mm/truncate.c; do
23572                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
23573                         rc=$?
23574                         if test $rc -eq 0; then
23575
23576                                 export=1
23577                                 break;
23578
23579 fi
23580
23581                 done
23582                 if test $export -eq 0; then
23583
23584                         { $as_echo "$as_me:$LINENO: result: no" >&5
23585 $as_echo "no" >&6; }
23586
23587
23588 else
23589
23590                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23591 $as_echo "yes" >&6; }
23592
23593 cat >>confdefs.h <<\_ACEOF
23594 #define HAVE_TRUNCATE_SETSIZE 1
23595 _ACEOF
23596
23597
23598 fi
23599
23600
23601 else
23602
23603                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23604 $as_echo "yes" >&6; }
23605
23606 cat >>confdefs.h <<\_ACEOF
23607 #define HAVE_TRUNCATE_SETSIZE 1
23608 _ACEOF
23609
23610
23611 fi
23612
23613
23614
23615
23616         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
23617 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
23618         tmp_flags="$EXTRA_KCFLAGS"
23619         EXTRA_KCFLAGS="-Werror"
23620
23621
23622 cat confdefs.h - <<_ACEOF >conftest.c
23623 /* confdefs.h.  */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h.  */
23628
23629
23630                 #include <linux/security.h>
23631
23632 int
23633 main (void)
23634 {
23635
23636                 struct inode *ip __attribute__ ((unused)) = NULL;
23637                 struct inode *dip __attribute__ ((unused)) = NULL;
23638                 const struct qstr *str __attribute__ ((unused)) = NULL;
23639                 char *name __attribute__ ((unused)) = NULL;
23640                 void *value __attribute__ ((unused)) = NULL;
23641                 size_t len __attribute__ ((unused)) = 0;
23642
23643                 security_inode_init_security(ip, dip, str, &name, &value, &len);
23644
23645   ;
23646   return 0;
23647 }
23648
23649 _ACEOF
23650
23651
23652         rm -Rf build && mkdir -p build
23653         echo "obj-m := conftest.o" >build/Makefile
23654         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'
23655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656   (eval $ac_try) 2>&5
23657   ac_status=$?
23658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661   (eval $ac_try) 2>&5
23662   ac_status=$?
23663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); }; }; then
23665
23666                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23667 $as_echo "yes" >&6; }
23668
23669 cat >>confdefs.h <<\_ACEOF
23670 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
23671 _ACEOF
23672
23673
23674 else
23675   $as_echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678                 { $as_echo "$as_me:$LINENO: result: no" >&5
23679 $as_echo "no" >&6; }
23680
23681
23682
23683 fi
23684
23685         rm -Rf build
23686
23687
23688         EXTRA_KCFLAGS="$tmp_flags"
23689
23690
23691         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
23692 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
23693         tmp_flags="$EXTRA_KCFLAGS"
23694         EXTRA_KCFLAGS="-Werror"
23695
23696
23697 cat confdefs.h - <<_ACEOF >conftest.c
23698 /* confdefs.h.  */
23699 _ACEOF
23700 cat confdefs.h >>conftest.$ac_ext
23701 cat >>conftest.$ac_ext <<_ACEOF
23702 /* end confdefs.h.  */
23703
23704
23705                 #include <linux/security.h>
23706
23707 int
23708 main (void)
23709 {
23710
23711                 struct inode *ip __attribute__ ((unused)) = NULL;
23712                 struct inode *dip __attribute__ ((unused)) = NULL;
23713                 const struct qstr *str __attribute__ ((unused)) = NULL;
23714                 initxattrs func __attribute__ ((unused)) = NULL;
23715
23716                 security_inode_init_security(ip, dip, str, func, NULL);
23717
23718   ;
23719   return 0;
23720 }
23721
23722 _ACEOF
23723
23724
23725         rm -Rf build && mkdir -p build
23726         echo "obj-m := conftest.o" >build/Makefile
23727         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'
23728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729   (eval $ac_try) 2>&5
23730   ac_status=$?
23731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734   (eval $ac_try) 2>&5
23735   ac_status=$?
23736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737   (exit $ac_status); }; }; then
23738
23739                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23740 $as_echo "yes" >&6; }
23741
23742 cat >>confdefs.h <<\_ACEOF
23743 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
23744 _ACEOF
23745
23746
23747 else
23748   $as_echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23750
23751                 { $as_echo "$as_me:$LINENO: result: no" >&5
23752 $as_echo "no" >&6; }
23753
23754
23755
23756 fi
23757
23758         rm -Rf build
23759
23760
23761         EXTRA_KCFLAGS="$tmp_flags"
23762
23763
23764         { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
23765 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
23766         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23767                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23768         rc=$?
23769         if test $rc -ne 0; then
23770
23771                 export=0
23772                 for file in fs/super.c; do
23773                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
23774                         rc=$?
23775                         if test $rc -eq 0; then
23776
23777                                 export=1
23778                                 break;
23779
23780 fi
23781
23782                 done
23783                 if test $export -eq 0; then
23784
23785                         { $as_echo "$as_me:$LINENO: result: no" >&5
23786 $as_echo "no" >&6; }
23787
23788
23789 else
23790
23791                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23792 $as_echo "yes" >&6; }
23793
23794 cat >>confdefs.h <<\_ACEOF
23795 #define HAVE_MOUNT_NODEV 1
23796 _ACEOF
23797
23798
23799 fi
23800
23801
23802 else
23803
23804                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23805 $as_echo "yes" >&6; }
23806
23807 cat >>confdefs.h <<\_ACEOF
23808 #define HAVE_MOUNT_NODEV 1
23809 _ACEOF
23810
23811
23812 fi
23813
23814
23815
23816
23817         { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
23818 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23819
23820
23821 cat confdefs.h - <<_ACEOF >conftest.c
23822 /* confdefs.h.  */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h.  */
23827
23828
23829                 #include <linux/fs.h>
23830
23831 int
23832 main (void)
23833 {
23834
23835                 int (*shrink)(struct shrinker *, struct shrink_control *sc)
23836                         __attribute__ ((unused)) = NULL;
23837                 struct super_block sb __attribute__ ((unused)) = {
23838                         .s_shrink.shrink = shrink,
23839                         .s_shrink.seeks = DEFAULT_SEEKS,
23840                         .s_shrink.batch = 0,
23841                 };
23842
23843   ;
23844   return 0;
23845 }
23846
23847 _ACEOF
23848
23849
23850         rm -Rf build && mkdir -p build
23851         echo "obj-m := conftest.o" >build/Makefile
23852         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'
23853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23854   (eval $ac_try) 2>&5
23855   ac_status=$?
23856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859   (eval $ac_try) 2>&5
23860   ac_status=$?
23861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); }; }; then
23863
23864                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23865 $as_echo "yes" >&6; }
23866
23867 cat >>confdefs.h <<\_ACEOF
23868 #define HAVE_SHRINK 1
23869 _ACEOF
23870
23871
23872
23873 else
23874   $as_echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877                 { $as_echo "$as_me:$LINENO: result: no" >&5
23878 $as_echo "no" >&6; }
23879
23880
23881
23882 fi
23883
23884         rm -Rf build
23885
23886
23887
23888
23889         { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
23890 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
23891
23892
23893 cat confdefs.h - <<_ACEOF >conftest.c
23894 /* confdefs.h.  */
23895 _ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h.  */
23899
23900
23901                 #include <linux/fs.h>
23902
23903 int
23904 main (void)
23905 {
23906
23907                 struct super_block sb __attribute__ ((unused));
23908                 sb.s_bdi = NULL;
23909
23910   ;
23911   return 0;
23912 }
23913
23914 _ACEOF
23915
23916
23917         rm -Rf build && mkdir -p build
23918         echo "obj-m := conftest.o" >build/Makefile
23919         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'
23920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
23925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23926   (eval $ac_try) 2>&5
23927   ac_status=$?
23928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929   (exit $ac_status); }; }; then
23930
23931                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23932 $as_echo "yes" >&6; }
23933
23934 cat >>confdefs.h <<\_ACEOF
23935 #define HAVE_BDI 1
23936 _ACEOF
23937
23938
23939 else
23940   $as_echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23942
23943                 { $as_echo "$as_me:$LINENO: result: no" >&5
23944 $as_echo "no" >&6; }
23945
23946
23947
23948 fi
23949
23950         rm -Rf build
23951
23952
23953
23954
23955         { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
23956 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
23957         grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23958                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
23959         rc=$?
23960         if test $rc -ne 0; then
23961
23962                 export=0
23963                 for file in mm/backing-dev.c; do
23964                         grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
23965                         rc=$?
23966                         if test $rc -eq 0; then
23967
23968                                 export=1
23969                                 break;
23970
23971 fi
23972
23973                 done
23974                 if test $export -eq 0; then
23975
23976                         { $as_echo "$as_me:$LINENO: result: no" >&5
23977 $as_echo "no" >&6; }
23978
23979
23980 else
23981
23982                         { $as_echo "$as_me:$LINENO: result: yes" >&5
23983 $as_echo "yes" >&6; }
23984
23985 cat >>confdefs.h <<\_ACEOF
23986 #define HAVE_BDI_SETUP_AND_REGISTER 1
23987 _ACEOF
23988
23989
23990 fi
23991
23992
23993 else
23994
23995                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23996 $as_echo "yes" >&6; }
23997
23998 cat >>confdefs.h <<\_ACEOF
23999 #define HAVE_BDI_SETUP_AND_REGISTER 1
24000 _ACEOF
24001
24002
24003 fi
24004
24005
24006
24007
24008         { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
24009 $as_echo_n "checking whether set_nlink() is available... " >&6; }
24010
24011
24012 cat confdefs.h - <<_ACEOF >conftest.c
24013 /* confdefs.h.  */
24014 _ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h.  */
24018
24019
24020                 #include <linux/fs.h>
24021
24022 int
24023 main (void)
24024 {
24025
24026                 struct inode node;
24027                 unsigned int link = 0;
24028                 (void) set_nlink(&node, link);
24029
24030   ;
24031   return 0;
24032 }
24033
24034 _ACEOF
24035
24036
24037         rm -Rf build && mkdir -p build
24038         echo "obj-m := conftest.o" >build/Makefile
24039         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'
24040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041   (eval $ac_try) 2>&5
24042   ac_status=$?
24043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
24045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24046   (eval $ac_try) 2>&5
24047   ac_status=$?
24048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049   (exit $ac_status); }; }; then
24050
24051                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24052 $as_echo "yes" >&6; }
24053
24054 cat >>confdefs.h <<\_ACEOF
24055 #define HAVE_SET_NLINK 1
24056 _ACEOF
24057
24058
24059 else
24060   $as_echo "$as_me: failed program was:" >&5
24061 sed 's/^/| /' conftest.$ac_ext >&5
24062
24063                 { $as_echo "$as_me:$LINENO: result: no" >&5
24064 $as_echo "no" >&6; }
24065
24066
24067
24068 fi
24069
24070         rm -Rf build
24071
24072
24073
24074
24075         if test "$LINUX_OBJ" != "$LINUX"; then
24076
24077                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
24078
24079 fi
24080
24081
24082
24083
24084                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
24085         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
24086         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
24087
24088
24089
24090
24091
24092
24093 # Check whether --with-udevdir was given.
24094 if test "${with_udevdir+set}" = set; then
24095   withval=$with_udevdir; udevdir=$withval
24096 else
24097   udevdir='${exec_prefix}/lib/udev'
24098 fi
24099
24100
24101
24102 # Check whether --with-udevruledir was given.
24103 if test "${with_udevruledir+set}" = set; then
24104   withval=$with_udevruledir; udevruledir=$withval
24105 else
24106   udevruledir='${udevdir}/rules.d'
24107 fi
24108
24109
24110
24111
24112
24113
24114         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
24115 $as_echo_n "checking for target asm dir... " >&6; }
24116         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
24117
24118         case $TARGET_ARCH in
24119         i386|x86_64)
24120                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
24121                 ;;
24122         *)
24123                 TARGET_ASM_DIR=asm-generic
24124                 ;;
24125         esac
24126
24127
24128         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
24129 $as_echo "$TARGET_ASM_DIR" >&6; }
24130
24131
24132         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
24133 $as_echo_n "checking for ioctl()... " >&6; }
24134         cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h.  */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h.  */
24140 #include <unistd.h>
24141
24142 _ACEOF
24143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24144   $EGREP "ioctl" >/dev/null 2>&1; then
24145   is_unistd=yes
24146 else
24147   is_unistd=no
24148 fi
24149 rm -f conftest*
24150
24151         cat >conftest.$ac_ext <<_ACEOF
24152 /* confdefs.h.  */
24153 _ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h.  */
24157 #include <sys/ioctl.h>
24158
24159 _ACEOF
24160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24161   $EGREP "ioctl" >/dev/null 2>&1; then
24162   is_sys_ioctl=yes
24163 else
24164   is_sys_ioctl=no
24165 fi
24166 rm -f conftest*
24167
24168         cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h.  */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h.  */
24174 #include <stropts.h>
24175
24176 _ACEOF
24177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24178   $EGREP "ioctl" >/dev/null 2>&1; then
24179   is_stropts=yes
24180 else
24181   is_stropts=no
24182 fi
24183 rm -f conftest*
24184
24185
24186         if test $is_unistd = yes; then
24187                 result=unistd.h
24188
24189 cat >>confdefs.h <<\_ACEOF
24190 #define HAVE_IOCTL_IN_UNISTD_H 1
24191 _ACEOF
24192
24193         else
24194
24195                 if test $is_sys_ioctl = yes; then
24196                         result=sys/ioctl.h
24197
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
24200 _ACEOF
24201
24202                 elif test $is_stropts = yes; then
24203
24204 cat >>confdefs.h <<\_ACEOF
24205 #define HAVE_IOCTL_IN_STROPTS_H 1
24206 _ACEOF
24207
24208                 else
24209                         result=no
24210                 fi
24211         fi
24212
24213         if test $result = no; then
24214                 { $as_echo "$as_me:$LINENO: result: no" >&5
24215 $as_echo "no" >&6; }
24216                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
24217 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
24218    { (exit 1); exit 1; }; }
24219         else
24220                 { $as_echo "$as_me:$LINENO: result: yes" >&5
24221 $as_echo "yes" >&6; }
24222         fi
24223
24224
24225         ZLIB=
24226
24227         if test "${ac_cv_header_zlib_h+set}" = set; then
24228   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
24229 $as_echo_n "checking for zlib.h... " >&6; }
24230 if test "${ac_cv_header_zlib_h+set}" = set; then
24231   $as_echo_n "(cached) " >&6
24232 fi
24233 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24234 $as_echo "$ac_cv_header_zlib_h" >&6; }
24235 else
24236   # Is the header compilable?
24237 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
24238 $as_echo_n "checking zlib.h usability... " >&6; }
24239 cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h.  */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h.  */
24245 $ac_includes_default
24246 #include <zlib.h>
24247 _ACEOF
24248 rm -f conftest.$ac_objext
24249 if { (ac_try="$ac_compile"
24250 case "(($ac_try" in
24251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24252   *) ac_try_echo=$ac_try;;
24253 esac
24254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24255 $as_echo "$ac_try_echo") >&5
24256   (eval "$ac_compile") 2>conftest.er1
24257   ac_status=$?
24258   grep -v '^ *+' conftest.er1 >conftest.err
24259   rm -f conftest.er1
24260   cat conftest.err >&5
24261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); } && {
24263          test -z "$ac_c_werror_flag" ||
24264          test ! -s conftest.err
24265        } && test -s conftest.$ac_objext; then
24266   ac_header_compiler=yes
24267 else
24268   $as_echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24270
24271         ac_header_compiler=no
24272 fi
24273
24274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24275 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24276 $as_echo "$ac_header_compiler" >&6; }
24277
24278 # Is the header present?
24279 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
24280 $as_echo_n "checking zlib.h presence... " >&6; }
24281 cat >conftest.$ac_ext <<_ACEOF
24282 /* confdefs.h.  */
24283 _ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h.  */
24287 #include <zlib.h>
24288 _ACEOF
24289 if { (ac_try="$ac_cpp conftest.$ac_ext"
24290 case "(($ac_try" in
24291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292   *) ac_try_echo=$ac_try;;
24293 esac
24294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24295 $as_echo "$ac_try_echo") >&5
24296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24297   ac_status=$?
24298   grep -v '^ *+' conftest.er1 >conftest.err
24299   rm -f conftest.er1
24300   cat conftest.err >&5
24301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302   (exit $ac_status); } >/dev/null && {
24303          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24304          test ! -s conftest.err
24305        }; then
24306   ac_header_preproc=yes
24307 else
24308   $as_echo "$as_me: failed program was:" >&5
24309 sed 's/^/| /' conftest.$ac_ext >&5
24310
24311   ac_header_preproc=no
24312 fi
24313
24314 rm -f conftest.err conftest.$ac_ext
24315 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24316 $as_echo "$ac_header_preproc" >&6; }
24317
24318 # So?  What about this header?
24319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24320   yes:no: )
24321     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24322 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24323     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24324 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24325     ac_header_preproc=yes
24326     ;;
24327   no:yes:* )
24328     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24329 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
24330     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
24331 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
24332     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24333 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24334     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
24335 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24336     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24337 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
24338     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24339 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
24340
24341     ;;
24342 esac
24343 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
24344 $as_echo_n "checking for zlib.h... " >&6; }
24345 if test "${ac_cv_header_zlib_h+set}" = set; then
24346   $as_echo_n "(cached) " >&6
24347 else
24348   ac_cv_header_zlib_h=$ac_header_preproc
24349 fi
24350 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24351 $as_echo "$ac_cv_header_zlib_h" >&6; }
24352
24353 fi
24354 if test "x$ac_cv_header_zlib_h" = x""yes; then
24355   :
24356 else
24357   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24359 { { $as_echo "$as_me:$LINENO: error:
24360         *** zlib.h missing, zlib-devel package required
24361 See \`config.log' for more details." >&5
24362 $as_echo "$as_me: error:
24363         *** zlib.h missing, zlib-devel package required
24364 See \`config.log' for more details." >&2;}
24365    { (exit 1); exit 1; }; }; }
24366 fi
24367
24368
24369
24370
24371 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
24372 $as_echo_n "checking for compress2 in -lz... " >&6; }
24373 if test "${ac_cv_lib_z_compress2+set}" = set; then
24374   $as_echo_n "(cached) " >&6
24375 else
24376   ac_check_lib_save_LIBS=$LIBS
24377 LIBS="-lz  $LIBS"
24378 cat >conftest.$ac_ext <<_ACEOF
24379 /* confdefs.h.  */
24380 _ACEOF
24381 cat confdefs.h >>conftest.$ac_ext
24382 cat >>conftest.$ac_ext <<_ACEOF
24383 /* end confdefs.h.  */
24384
24385 /* Override any GCC internal prototype to avoid an error.
24386    Use char because int might match the return type of a GCC
24387    builtin and then its argument prototype would still apply.  */
24388 #ifdef __cplusplus
24389 extern "C"
24390 #endif
24391 char compress2 ();
24392 int
24393 main ()
24394 {
24395 return compress2 ();
24396   ;
24397   return 0;
24398 }
24399 _ACEOF
24400 rm -f conftest.$ac_objext conftest$ac_exeext
24401 if { (ac_try="$ac_link"
24402 case "(($ac_try" in
24403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24404   *) ac_try_echo=$ac_try;;
24405 esac
24406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24407 $as_echo "$ac_try_echo") >&5
24408   (eval "$ac_link") 2>conftest.er1
24409   ac_status=$?
24410   grep -v '^ *+' conftest.er1 >conftest.err
24411   rm -f conftest.er1
24412   cat conftest.err >&5
24413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414   (exit $ac_status); } && {
24415          test -z "$ac_c_werror_flag" ||
24416          test ! -s conftest.err
24417        } && test -s conftest$ac_exeext && {
24418          test "$cross_compiling" = yes ||
24419          $as_test_x conftest$ac_exeext
24420        }; then
24421   ac_cv_lib_z_compress2=yes
24422 else
24423   $as_echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.$ac_ext >&5
24425
24426         ac_cv_lib_z_compress2=no
24427 fi
24428
24429 rm -rf conftest.dSYM
24430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24431       conftest$ac_exeext conftest.$ac_ext
24432 LIBS=$ac_check_lib_save_LIBS
24433 fi
24434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
24435 $as_echo "$ac_cv_lib_z_compress2" >&6; }
24436 if test "x$ac_cv_lib_z_compress2" = x""yes; then
24437   cat >>confdefs.h <<_ACEOF
24438 #define HAVE_LIBZ 1
24439 _ACEOF
24440
24441   LIBS="-lz $LIBS"
24442
24443 else
24444   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24446 { { $as_echo "$as_me:$LINENO: error:
24447         *** compress2() missing, zlib-devel package required
24448 See \`config.log' for more details." >&5
24449 $as_echo "$as_me: error:
24450         *** compress2() missing, zlib-devel package required
24451 See \`config.log' for more details." >&2;}
24452    { (exit 1); exit 1; }; }; }
24453 fi
24454
24455
24456
24457 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
24458 $as_echo_n "checking for uncompress in -lz... " >&6; }
24459 if test "${ac_cv_lib_z_uncompress+set}" = set; then
24460   $as_echo_n "(cached) " >&6
24461 else
24462   ac_check_lib_save_LIBS=$LIBS
24463 LIBS="-lz  $LIBS"
24464 cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470
24471 /* Override any GCC internal prototype to avoid an error.
24472    Use char because int might match the return type of a GCC
24473    builtin and then its argument prototype would still apply.  */
24474 #ifdef __cplusplus
24475 extern "C"
24476 #endif
24477 char uncompress ();
24478 int
24479 main ()
24480 {
24481 return uncompress ();
24482   ;
24483   return 0;
24484 }
24485 _ACEOF
24486 rm -f conftest.$ac_objext conftest$ac_exeext
24487 if { (ac_try="$ac_link"
24488 case "(($ac_try" in
24489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24490   *) ac_try_echo=$ac_try;;
24491 esac
24492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24493 $as_echo "$ac_try_echo") >&5
24494   (eval "$ac_link") 2>conftest.er1
24495   ac_status=$?
24496   grep -v '^ *+' conftest.er1 >conftest.err
24497   rm -f conftest.er1
24498   cat conftest.err >&5
24499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500   (exit $ac_status); } && {
24501          test -z "$ac_c_werror_flag" ||
24502          test ! -s conftest.err
24503        } && test -s conftest$ac_exeext && {
24504          test "$cross_compiling" = yes ||
24505          $as_test_x conftest$ac_exeext
24506        }; then
24507   ac_cv_lib_z_uncompress=yes
24508 else
24509   $as_echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24511
24512         ac_cv_lib_z_uncompress=no
24513 fi
24514
24515 rm -rf conftest.dSYM
24516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24517       conftest$ac_exeext conftest.$ac_ext
24518 LIBS=$ac_check_lib_save_LIBS
24519 fi
24520 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
24521 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24522 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
24523   cat >>confdefs.h <<_ACEOF
24524 #define HAVE_LIBZ 1
24525 _ACEOF
24526
24527   LIBS="-lz $LIBS"
24528
24529 else
24530   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24532 { { $as_echo "$as_me:$LINENO: error:
24533         *** uncompress() missing, zlib-devel package required
24534 See \`config.log' for more details." >&5
24535 $as_echo "$as_me: error:
24536         *** uncompress() missing, zlib-devel package required
24537 See \`config.log' for more details." >&2;}
24538    { (exit 1); exit 1; }; }; }
24539 fi
24540
24541
24542
24543 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
24544 $as_echo_n "checking for crc32 in -lz... " >&6; }
24545 if test "${ac_cv_lib_z_crc32+set}" = set; then
24546   $as_echo_n "(cached) " >&6
24547 else
24548   ac_check_lib_save_LIBS=$LIBS
24549 LIBS="-lz  $LIBS"
24550 cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556
24557 /* Override any GCC internal prototype to avoid an error.
24558    Use char because int might match the return type of a GCC
24559    builtin and then its argument prototype would still apply.  */
24560 #ifdef __cplusplus
24561 extern "C"
24562 #endif
24563 char crc32 ();
24564 int
24565 main ()
24566 {
24567 return crc32 ();
24568   ;
24569   return 0;
24570 }
24571 _ACEOF
24572 rm -f conftest.$ac_objext conftest$ac_exeext
24573 if { (ac_try="$ac_link"
24574 case "(($ac_try" in
24575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576   *) ac_try_echo=$ac_try;;
24577 esac
24578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24579 $as_echo "$ac_try_echo") >&5
24580   (eval "$ac_link") 2>conftest.er1
24581   ac_status=$?
24582   grep -v '^ *+' conftest.er1 >conftest.err
24583   rm -f conftest.er1
24584   cat conftest.err >&5
24585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); } && {
24587          test -z "$ac_c_werror_flag" ||
24588          test ! -s conftest.err
24589        } && test -s conftest$ac_exeext && {
24590          test "$cross_compiling" = yes ||
24591          $as_test_x conftest$ac_exeext
24592        }; then
24593   ac_cv_lib_z_crc32=yes
24594 else
24595   $as_echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24597
24598         ac_cv_lib_z_crc32=no
24599 fi
24600
24601 rm -rf conftest.dSYM
24602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24603       conftest$ac_exeext conftest.$ac_ext
24604 LIBS=$ac_check_lib_save_LIBS
24605 fi
24606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
24607 $as_echo "$ac_cv_lib_z_crc32" >&6; }
24608 if test "x$ac_cv_lib_z_crc32" = x""yes; then
24609   cat >>confdefs.h <<_ACEOF
24610 #define HAVE_LIBZ 1
24611 _ACEOF
24612
24613   LIBS="-lz $LIBS"
24614
24615 else
24616   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24618 { { $as_echo "$as_me:$LINENO: error:
24619         *** crc32() missing, zlib-devel package required
24620 See \`config.log' for more details." >&5
24621 $as_echo "$as_me: error:
24622         *** crc32() missing, zlib-devel package required
24623 See \`config.log' for more details." >&2;}
24624    { (exit 1); exit 1; }; }; }
24625 fi
24626
24627
24628         ZLIB="-lz"
24629
24630
24631 cat >>confdefs.h <<\_ACEOF
24632 #define HAVE_ZLIB 1
24633 _ACEOF
24634
24635
24636
24637         LIBUUID=
24638
24639         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24640   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
24641 $as_echo_n "checking for uuid/uuid.h... " >&6; }
24642 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24643   $as_echo_n "(cached) " >&6
24644 fi
24645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
24646 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
24647 else
24648   # Is the header compilable?
24649 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
24650 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
24651 cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657 $ac_includes_default
24658 #include <uuid/uuid.h>
24659 _ACEOF
24660 rm -f conftest.$ac_objext
24661 if { (ac_try="$ac_compile"
24662 case "(($ac_try" in
24663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664   *) ac_try_echo=$ac_try;;
24665 esac
24666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24667 $as_echo "$ac_try_echo") >&5
24668   (eval "$ac_compile") 2>conftest.er1
24669   ac_status=$?
24670   grep -v '^ *+' conftest.er1 >conftest.err
24671   rm -f conftest.er1
24672   cat conftest.err >&5
24673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674   (exit $ac_status); } && {
24675          test -z "$ac_c_werror_flag" ||
24676          test ! -s conftest.err
24677        } && test -s conftest.$ac_objext; then
24678   ac_header_compiler=yes
24679 else
24680   $as_echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24682
24683         ac_header_compiler=no
24684 fi
24685
24686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24688 $as_echo "$ac_header_compiler" >&6; }
24689
24690 # Is the header present?
24691 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
24692 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
24693 cat >conftest.$ac_ext <<_ACEOF
24694 /* confdefs.h.  */
24695 _ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h.  */
24699 #include <uuid/uuid.h>
24700 _ACEOF
24701 if { (ac_try="$ac_cpp conftest.$ac_ext"
24702 case "(($ac_try" in
24703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704   *) ac_try_echo=$ac_try;;
24705 esac
24706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24707 $as_echo "$ac_try_echo") >&5
24708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24709   ac_status=$?
24710   grep -v '^ *+' conftest.er1 >conftest.err
24711   rm -f conftest.er1
24712   cat conftest.err >&5
24713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); } >/dev/null && {
24715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24716          test ! -s conftest.err
24717        }; then
24718   ac_header_preproc=yes
24719 else
24720   $as_echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24722
24723   ac_header_preproc=no
24724 fi
24725
24726 rm -f conftest.err conftest.$ac_ext
24727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24728 $as_echo "$ac_header_preproc" >&6; }
24729
24730 # So?  What about this header?
24731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24732   yes:no: )
24733     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
24734 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24735     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
24736 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
24737     ac_header_preproc=yes
24738     ;;
24739   no:yes:* )
24740     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
24741 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
24742     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
24743 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
24744     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
24745 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
24746     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
24747 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24748     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
24749 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
24750     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
24751 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
24752
24753     ;;
24754 esac
24755 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
24756 $as_echo_n "checking for uuid/uuid.h... " >&6; }
24757 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
24758   $as_echo_n "(cached) " >&6
24759 else
24760   ac_cv_header_uuid_uuid_h=$ac_header_preproc
24761 fi
24762 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
24763 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
24764
24765 fi
24766 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
24767   :
24768 else
24769   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24771 { { $as_echo "$as_me:$LINENO: error:
24772         *** uuid/uuid.h missing, libuuid-devel package required
24773 See \`config.log' for more details." >&5
24774 $as_echo "$as_me: error:
24775         *** uuid/uuid.h missing, libuuid-devel package required
24776 See \`config.log' for more details." >&2;}
24777    { (exit 1); exit 1; }; }; }
24778 fi
24779
24780
24781
24782
24783 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
24784 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
24785 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
24786   $as_echo_n "(cached) " >&6
24787 else
24788   ac_check_lib_save_LIBS=$LIBS
24789 LIBS="-luuid  $LIBS"
24790 cat >conftest.$ac_ext <<_ACEOF
24791 /* confdefs.h.  */
24792 _ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h.  */
24796
24797 /* Override any GCC internal prototype to avoid an error.
24798    Use char because int might match the return type of a GCC
24799    builtin and then its argument prototype would still apply.  */
24800 #ifdef __cplusplus
24801 extern "C"
24802 #endif
24803 char uuid_generate ();
24804 int
24805 main ()
24806 {
24807 return uuid_generate ();
24808   ;
24809   return 0;
24810 }
24811 _ACEOF
24812 rm -f conftest.$ac_objext conftest$ac_exeext
24813 if { (ac_try="$ac_link"
24814 case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24819 $as_echo "$ac_try_echo") >&5
24820   (eval "$ac_link") 2>conftest.er1
24821   ac_status=$?
24822   grep -v '^ *+' conftest.er1 >conftest.err
24823   rm -f conftest.er1
24824   cat conftest.err >&5
24825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); } && {
24827          test -z "$ac_c_werror_flag" ||
24828          test ! -s conftest.err
24829        } && test -s conftest$ac_exeext && {
24830          test "$cross_compiling" = yes ||
24831          $as_test_x conftest$ac_exeext
24832        }; then
24833   ac_cv_lib_uuid_uuid_generate=yes
24834 else
24835   $as_echo "$as_me: failed program was:" >&5
24836 sed 's/^/| /' conftest.$ac_ext >&5
24837
24838         ac_cv_lib_uuid_uuid_generate=no
24839 fi
24840
24841 rm -rf conftest.dSYM
24842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24843       conftest$ac_exeext conftest.$ac_ext
24844 LIBS=$ac_check_lib_save_LIBS
24845 fi
24846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
24847 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24848 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
24849   cat >>confdefs.h <<_ACEOF
24850 #define HAVE_LIBUUID 1
24851 _ACEOF
24852
24853   LIBS="-luuid $LIBS"
24854
24855 else
24856   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24858 { { $as_echo "$as_me:$LINENO: error:
24859         *** uuid_generate() missing, libuuid-devel package required
24860 See \`config.log' for more details." >&5
24861 $as_echo "$as_me: error:
24862         *** uuid_generate() missing, libuuid-devel package required
24863 See \`config.log' for more details." >&2;}
24864    { (exit 1); exit 1; }; }; }
24865 fi
24866
24867
24868
24869 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
24870 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24871 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
24872   $as_echo_n "(cached) " >&6
24873 else
24874   ac_check_lib_save_LIBS=$LIBS
24875 LIBS="-luuid  $LIBS"
24876 cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h.  */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h.  */
24882
24883 /* Override any GCC internal prototype to avoid an error.
24884    Use char because int might match the return type of a GCC
24885    builtin and then its argument prototype would still apply.  */
24886 #ifdef __cplusplus
24887 extern "C"
24888 #endif
24889 char uuid_is_null ();
24890 int
24891 main ()
24892 {
24893 return uuid_is_null ();
24894   ;
24895   return 0;
24896 }
24897 _ACEOF
24898 rm -f conftest.$ac_objext conftest$ac_exeext
24899 if { (ac_try="$ac_link"
24900 case "(($ac_try" in
24901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24902   *) ac_try_echo=$ac_try;;
24903 esac
24904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24905 $as_echo "$ac_try_echo") >&5
24906   (eval "$ac_link") 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } && {
24913          test -z "$ac_c_werror_flag" ||
24914          test ! -s conftest.err
24915        } && test -s conftest$ac_exeext && {
24916          test "$cross_compiling" = yes ||
24917          $as_test_x conftest$ac_exeext
24918        }; then
24919   ac_cv_lib_uuid_uuid_is_null=yes
24920 else
24921   $as_echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24923
24924         ac_cv_lib_uuid_uuid_is_null=no
24925 fi
24926
24927 rm -rf conftest.dSYM
24928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24929       conftest$ac_exeext conftest.$ac_ext
24930 LIBS=$ac_check_lib_save_LIBS
24931 fi
24932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24933 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24934 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
24935   cat >>confdefs.h <<_ACEOF
24936 #define HAVE_LIBUUID 1
24937 _ACEOF
24938
24939   LIBS="-luuid $LIBS"
24940
24941 else
24942   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24944 { { $as_echo "$as_me:$LINENO: error:
24945         *** uuid_is_null() missing, libuuid-devel package required
24946 See \`config.log' for more details." >&5
24947 $as_echo "$as_me: error:
24948         *** uuid_is_null() missing, libuuid-devel package required
24949 See \`config.log' for more details." >&2;}
24950    { (exit 1); exit 1; }; }; }
24951 fi
24952
24953
24954         LIBUUID="-luuid"
24955
24956
24957 cat >>confdefs.h <<\_ACEOF
24958 #define HAVE_LIBUUID 1
24959 _ACEOF
24960
24961
24962
24963
24964 # Check whether --with-blkid was given.
24965 if test "${with_blkid+set}" = set; then
24966   withval=$with_blkid;
24967 else
24968   with_blkid=check
24969 fi
24970
24971
24972         LIBBLKID=
24973         if test "x$with_blkid" != xno; then
24974
24975                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
24976 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24977 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
24978   $as_echo_n "(cached) " >&6
24979 else
24980   ac_check_lib_save_LIBS=$LIBS
24981 LIBS="-lblkid  $LIBS"
24982 cat >conftest.$ac_ext <<_ACEOF
24983 /* confdefs.h.  */
24984 _ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h.  */
24988
24989 /* Override any GCC internal prototype to avoid an error.
24990    Use char because int might match the return type of a GCC
24991    builtin and then its argument prototype would still apply.  */
24992 #ifdef __cplusplus
24993 extern "C"
24994 #endif
24995 char blkid_get_cache ();
24996 int
24997 main ()
24998 {
24999 return blkid_get_cache ();
25000   ;
25001   return 0;
25002 }
25003 _ACEOF
25004 rm -f conftest.$ac_objext conftest$ac_exeext
25005 if { (ac_try="$ac_link"
25006 case "(($ac_try" in
25007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008   *) ac_try_echo=$ac_try;;
25009 esac
25010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011 $as_echo "$ac_try_echo") >&5
25012   (eval "$ac_link") 2>conftest.er1
25013   ac_status=$?
25014   grep -v '^ *+' conftest.er1 >conftest.err
25015   rm -f conftest.er1
25016   cat conftest.err >&5
25017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } && {
25019          test -z "$ac_c_werror_flag" ||
25020          test ! -s conftest.err
25021        } && test -s conftest$ac_exeext && {
25022          test "$cross_compiling" = yes ||
25023          $as_test_x conftest$ac_exeext
25024        }; then
25025   ac_cv_lib_blkid_blkid_get_cache=yes
25026 else
25027   $as_echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25029
25030         ac_cv_lib_blkid_blkid_get_cache=no
25031 fi
25032
25033 rm -rf conftest.dSYM
25034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25035       conftest$ac_exeext conftest.$ac_ext
25036 LIBS=$ac_check_lib_save_LIBS
25037 fi
25038 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
25039 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
25040 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
25041
25042                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
25043 $as_echo_n "checking for blkid zfs support... " >&6; }
25044
25045                         ZFS_DEV=`mktemp`
25046                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
25047                                 >/dev/null 2>/dev/null
25048                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
25049                                 dd of=$ZFS_DEV bs=1k count=8 \
25050                                 seek=132 conv=notrunc &>/dev/null \
25051                                 >/dev/null 2>/dev/null
25052
25053                         saved_LDFLAGS="$LDFLAGS"
25054                         LDFLAGS="-lblkid"
25055
25056                         if test "$cross_compiling" = yes; then
25057   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25059 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25060 See \`config.log' for more details." >&5
25061 $as_echo "$as_me: error: cannot run test program while cross compiling
25062 See \`config.log' for more details." >&2;}
25063    { (exit 1); exit 1; }; }; }
25064 else
25065   cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h.  */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h.  */
25071
25072                                 #include <stdio.h>
25073                                 #include <blkid/blkid.h>
25074
25075 int
25076 main ()
25077 {
25078
25079                                 blkid_cache cache;
25080                                 char *value;
25081
25082                                 if (blkid_get_cache(&cache, NULL) < 0)
25083                                         return 1;
25084
25085                                 value = blkid_get_tag_value(cache, "TYPE",
25086                                                             "$ZFS_DEV");
25087                                 if (!value) {
25088                                         blkid_put_cache(cache);
25089                                         return 2;
25090                                 }
25091
25092                                 if (strcmp(value, "zfs")) {
25093                                         free(value);
25094                                         blkid_put_cache(cache);
25095                                         return 3;
25096                                 }
25097
25098                                 free(value);
25099                                 blkid_put_cache(cache);
25100
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest$ac_exeext
25106 if { (ac_try="$ac_link"
25107 case "(($ac_try" in
25108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109   *) ac_try_echo=$ac_try;;
25110 esac
25111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25112 $as_echo "$ac_try_echo") >&5
25113   (eval "$ac_link") 2>&5
25114   ac_status=$?
25115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25117   { (case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25122 $as_echo "$ac_try_echo") >&5
25123   (eval "$ac_try") 2>&5
25124   ac_status=$?
25125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126   (exit $ac_status); }; }; then
25127
25128                                 rm -f $ZFS_DEV
25129                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25130 $as_echo "yes" >&6; }
25131                                 LIBBLKID="-lblkid"
25132
25133
25134 cat >>confdefs.h <<\_ACEOF
25135 #define HAVE_LIBBLKID 1
25136 _ACEOF
25137
25138
25139 else
25140   $as_echo "$as_me: program exited with status $ac_status" >&5
25141 $as_echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25143
25144 ( exit $ac_status )
25145
25146                                 rm -f $ZFS_DEV
25147                                 { $as_echo "$as_me:$LINENO: result: no" >&5
25148 $as_echo "no" >&6; }
25149                                 if test "x$with_blkid" != xcheck; then
25150   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25152 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
25153 See \`config.log' for more details." >&5
25154 $as_echo "$as_me: error: --with-blkid given but unavailable
25155 See \`config.log' for more details." >&2;}
25156    { (exit 1); exit 1; }; }; }
25157 fi
25158
25159
25160 fi
25161 rm -rf conftest.dSYM
25162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25163 fi
25164
25165
25166
25167                         LDFLAGS="$saved_LDFLAGS"
25168
25169 else
25170
25171                         if test "x$with_blkid" != xcheck; then
25172   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25174 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
25175 See \`config.log' for more details." >&5
25176 $as_echo "$as_me: error: --with-blkid given but unavailable
25177 See \`config.log' for more details." >&2;}
25178    { (exit 1); exit 1; }; }; }
25179 fi
25180
25181
25182
25183 fi
25184
25185
25186 fi
25187
25188
25189
25190
25191 # Check whether --with-selinux was given.
25192 if test "${with_selinux+set}" = set; then
25193   withval=$with_selinux;
25194 else
25195   with_selinux=check
25196 fi
25197
25198
25199         LIBSELINUX=
25200         if test "x$with_selinux" != xno; then
25201
25202                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25203   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25204 $as_echo_n "checking for selinux/selinux.h... " >&6; }
25205 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25206   $as_echo_n "(cached) " >&6
25207 fi
25208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25209 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
25210 else
25211   # Is the header compilable?
25212 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
25213 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
25214 cat >conftest.$ac_ext <<_ACEOF
25215 /* confdefs.h.  */
25216 _ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h.  */
25220 $ac_includes_default
25221 #include <selinux/selinux.h>
25222 _ACEOF
25223 rm -f conftest.$ac_objext
25224 if { (ac_try="$ac_compile"
25225 case "(($ac_try" in
25226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25227   *) ac_try_echo=$ac_try;;
25228 esac
25229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25230 $as_echo "$ac_try_echo") >&5
25231   (eval "$ac_compile") 2>conftest.er1
25232   ac_status=$?
25233   grep -v '^ *+' conftest.er1 >conftest.err
25234   rm -f conftest.er1
25235   cat conftest.err >&5
25236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); } && {
25238          test -z "$ac_c_werror_flag" ||
25239          test ! -s conftest.err
25240        } && test -s conftest.$ac_objext; then
25241   ac_header_compiler=yes
25242 else
25243   $as_echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25245
25246         ac_header_compiler=no
25247 fi
25248
25249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25251 $as_echo "$ac_header_compiler" >&6; }
25252
25253 # Is the header present?
25254 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
25255 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
25256 cat >conftest.$ac_ext <<_ACEOF
25257 /* confdefs.h.  */
25258 _ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h.  */
25262 #include <selinux/selinux.h>
25263 _ACEOF
25264 if { (ac_try="$ac_cpp conftest.$ac_ext"
25265 case "(($ac_try" in
25266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25267   *) ac_try_echo=$ac_try;;
25268 esac
25269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25270 $as_echo "$ac_try_echo") >&5
25271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25272   ac_status=$?
25273   grep -v '^ *+' conftest.er1 >conftest.err
25274   rm -f conftest.er1
25275   cat conftest.err >&5
25276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277   (exit $ac_status); } >/dev/null && {
25278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25279          test ! -s conftest.err
25280        }; then
25281   ac_header_preproc=yes
25282 else
25283   $as_echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25285
25286   ac_header_preproc=no
25287 fi
25288
25289 rm -f conftest.err conftest.$ac_ext
25290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25291 $as_echo "$ac_header_preproc" >&6; }
25292
25293 # So?  What about this header?
25294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25295   yes:no: )
25296     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
25297 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25298     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
25299 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
25300     ac_header_preproc=yes
25301     ;;
25302   no:yes:* )
25303     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
25304 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
25305     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
25306 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
25307     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
25308 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
25309     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
25310 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25311     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
25312 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
25313     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
25314 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
25315
25316     ;;
25317 esac
25318 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
25319 $as_echo_n "checking for selinux/selinux.h... " >&6; }
25320 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
25321   $as_echo_n "(cached) " >&6
25322 else
25323   ac_cv_header_selinux_selinux_h=$ac_header_preproc
25324 fi
25325 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
25326 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
25327
25328 fi
25329 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
25330
25331                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
25332 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
25333 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
25334   $as_echo_n "(cached) " >&6
25335 else
25336   ac_check_lib_save_LIBS=$LIBS
25337 LIBS="-lselinux  $LIBS"
25338 cat >conftest.$ac_ext <<_ACEOF
25339 /* confdefs.h.  */
25340 _ACEOF
25341 cat confdefs.h >>conftest.$ac_ext
25342 cat >>conftest.$ac_ext <<_ACEOF
25343 /* end confdefs.h.  */
25344
25345 /* Override any GCC internal prototype to avoid an error.
25346    Use char because int might match the return type of a GCC
25347    builtin and then its argument prototype would still apply.  */
25348 #ifdef __cplusplus
25349 extern "C"
25350 #endif
25351 char is_selinux_enabled ();
25352 int
25353 main ()
25354 {
25355 return is_selinux_enabled ();
25356   ;
25357   return 0;
25358 }
25359 _ACEOF
25360 rm -f conftest.$ac_objext conftest$ac_exeext
25361 if { (ac_try="$ac_link"
25362 case "(($ac_try" in
25363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25364   *) ac_try_echo=$ac_try;;
25365 esac
25366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25367 $as_echo "$ac_try_echo") >&5
25368   (eval "$ac_link") 2>conftest.er1
25369   ac_status=$?
25370   grep -v '^ *+' conftest.er1 >conftest.err
25371   rm -f conftest.er1
25372   cat conftest.err >&5
25373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); } && {
25375          test -z "$ac_c_werror_flag" ||
25376          test ! -s conftest.err
25377        } && test -s conftest$ac_exeext && {
25378          test "$cross_compiling" = yes ||
25379          $as_test_x conftest$ac_exeext
25380        }; then
25381   ac_cv_lib_selinux_is_selinux_enabled=yes
25382 else
25383   $as_echo "$as_me: failed program was:" >&5
25384 sed 's/^/| /' conftest.$ac_ext >&5
25385
25386         ac_cv_lib_selinux_is_selinux_enabled=no
25387 fi
25388
25389 rm -rf conftest.dSYM
25390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25391       conftest$ac_exeext conftest.$ac_ext
25392 LIBS=$ac_check_lib_save_LIBS
25393 fi
25394 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
25395 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
25396 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
25397
25398                                 LIBSELINUX="-lselinux"
25399
25400
25401 cat >>confdefs.h <<\_ACEOF
25402 #define HAVE_LIBSELINUX 1
25403 _ACEOF
25404
25405
25406 else
25407
25408                                 if test "x$with_selinux" != xcheck; then
25409   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25411 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
25412 See \`config.log' for more details." >&5
25413 $as_echo "$as_me: error: --with-selinux given but unavailable
25414 See \`config.log' for more details." >&2;}
25415    { (exit 1); exit 1; }; }; }
25416
25417 fi
25418
25419
25420 fi
25421
25422
25423 else
25424
25425                         if test "x$with_selinux" != xcheck; then
25426   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25428 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
25429 See \`config.log' for more details." >&5
25430 $as_echo "$as_me: error: --with-selinux given but unavailable
25431 See \`config.log' for more details." >&2;}
25432    { (exit 1); exit 1; }; }; }
25433
25434 fi
25435
25436
25437 fi
25438
25439
25440
25441 else
25442
25443                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
25444 $as_echo_n "checking for selinux support... " >&6; }
25445                 { $as_echo "$as_me:$LINENO: result: no" >&5
25446 $as_echo "no" >&6; }
25447
25448 fi
25449
25450
25451
25452         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
25453 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
25454
25455         saved_flags="$CFLAGS"
25456         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
25457
25458         if test "$cross_compiling" = yes; then
25459   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25461 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25462 See \`config.log' for more details." >&5
25463 $as_echo "$as_me: error: cannot run test program while cross compiling
25464 See \`config.log' for more details." >&2;}
25465    { (exit 1); exit 1; }; }; }
25466 else
25467   cat >conftest.$ac_ext <<_ACEOF
25468 /* confdefs.h.  */
25469 _ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h.  */
25473
25474 int
25475 main ()
25476 {
25477
25478   ;
25479   return 0;
25480 }
25481 _ACEOF
25482 rm -f conftest$ac_exeext
25483 if { (ac_try="$ac_link"
25484 case "(($ac_try" in
25485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486   *) ac_try_echo=$ac_try;;
25487 esac
25488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25489 $as_echo "$ac_try_echo") >&5
25490   (eval "$ac_link") 2>&5
25491   ac_status=$?
25492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25494   { (case "(($ac_try" in
25495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496   *) ac_try_echo=$ac_try;;
25497 esac
25498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25499 $as_echo "$ac_try_echo") >&5
25500   (eval "$ac_try") 2>&5
25501   ac_status=$?
25502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503   (exit $ac_status); }; }; then
25504
25505                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
25506                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25507 $as_echo "yes" >&6; }
25508
25509 else
25510   $as_echo "$as_me: program exited with status $ac_status" >&5
25511 $as_echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.$ac_ext >&5
25513
25514 ( exit $ac_status )
25515
25516                 FRAME_LARGER_THAN=
25517                 { $as_echo "$as_me:$LINENO: result: no" >&5
25518 $as_echo "no" >&6; }
25519
25520 fi
25521 rm -rf conftest.dSYM
25522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25523 fi
25524
25525
25526
25527         CFLAGS="$saved_flags"
25528
25529
25530
25531
25532         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
25533 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
25534
25535         saved_CFLAGS="$CFLAGS"
25536         CFLAGS="-fstack-check"
25537         saved_LDFLAGS="$LDFLAGS"
25538         LDFLAGS="-lpthread"
25539
25540         if test "$cross_compiling" = yes; then
25541   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25543 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25544 See \`config.log' for more details." >&5
25545 $as_echo "$as_me: error: cannot run test program while cross compiling
25546 See \`config.log' for more details." >&2;}
25547    { (exit 1); exit 1; }; }; }
25548 else
25549   cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555
25556                 #include <pthread.h>
25557                 #include <sys/resource.h>
25558                 #include <unistd.h>
25559                 #include <bits/local_lim.h>
25560
25561                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
25562                 #define STACK_SIZE 8192
25563                 #define BUFSIZE 4096
25564
25565                 void * func(void *arg)
25566                 {
25567                         char buf[BUFSIZE];
25568                 }
25569
25570 int
25571 main ()
25572 {
25573
25574                 pthread_t tid;
25575                 pthread_attr_t attr;
25576                 struct rlimit l;
25577
25578                 l.rlim_cur = 0;
25579                 l.rlim_max = 0;
25580                 setrlimit(RLIMIT_CORE, &l);
25581                 pthread_attr_init(&attr);
25582                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
25583                 pthread_attr_setguardsize(&attr, PAGESIZE);
25584                 pthread_create(&tid, &attr, func, NULL);
25585                 pthread_join(tid, NULL);
25586
25587   ;
25588   return 0;
25589 }
25590 _ACEOF
25591 rm -f conftest$ac_exeext
25592 if { (ac_try="$ac_link"
25593 case "(($ac_try" in
25594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595   *) ac_try_echo=$ac_try;;
25596 esac
25597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599   (eval "$ac_link") 2>&5
25600   ac_status=$?
25601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25603   { (case "(($ac_try" in
25604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605   *) ac_try_echo=$ac_try;;
25606 esac
25607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25608 $as_echo "$ac_try_echo") >&5
25609   (eval "$ac_try") 2>&5
25610   ac_status=$?
25611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); }; }; then
25613
25614                 { $as_echo "$as_me:$LINENO: result: no" >&5
25615 $as_echo "no" >&6; }
25616
25617 else
25618   $as_echo "$as_me: program exited with status $ac_status" >&5
25619 $as_echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25621
25622 ( exit $ac_status )
25623
25624
25625 cat >>confdefs.h <<\_ACEOF
25626 #define NPTL_GUARD_WITHIN_STACK 1
25627 _ACEOF
25628
25629                 { $as_echo "$as_me:$LINENO: result: yes" >&5
25630 $as_echo "yes" >&6; }
25631
25632 fi
25633 rm -rf conftest.dSYM
25634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25635 fi
25636
25637
25638         CFLAGS="$saved_CFLAGS"
25639         LDFLAGS="$saved_LDFLAGS"
25640
25641    ;;
25642                 srpm)                        ;;
25643                 *)
25644                 { $as_echo "$as_me:$LINENO: result: Error!" >&5
25645 $as_echo "Error!" >&6; }
25646                 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
25647                               user kernel|user|all|srpm" >&5
25648 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
25649                               user kernel|user|all|srpm" >&2;}
25650    { (exit 1); exit 1; }; } ;;
25651         esac
25652
25653          if test "$ZFS_CONFIG" = user -o "$ZFS_CONFIG" = all; then
25654   CONFIG_USER_TRUE=
25655   CONFIG_USER_FALSE='#'
25656 else
25657   CONFIG_USER_TRUE='#'
25658   CONFIG_USER_FALSE=
25659 fi
25660
25661          if test "$ZFS_CONFIG" = kernel -o "$ZFS_CONFIG" = all &&
25662                        test "x$enable_linux_builtin" != xyes ; then
25663   CONFIG_KERNEL_TRUE=
25664   CONFIG_KERNEL_FALSE='#'
25665 else
25666   CONFIG_KERNEL_TRUE='#'
25667   CONFIG_KERNEL_FALSE=
25668 fi
25669
25670
25671
25672         { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
25673 $as_echo_n "checking whether debugging is enabled... " >&6; }
25674         # Check whether --enable-debug was given.
25675 if test "${enable_debug+set}" = set; then
25676   enableval=$enable_debug;
25677 else
25678   enable_debug=no
25679 fi
25680
25681
25682         if test "x$enable_debug" = xyes; then
25683
25684                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
25685                 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
25686                 DEBUG_CFLAGS="-DDEBUG -Werror"
25687                 DEBUG_STACKFLAGS="-fstack-check"
25688                 DEBUG_ZFS="_with_debug"
25689
25690 cat >>confdefs.h <<\_ACEOF
25691 #define ZFS_DEBUG 1
25692 _ACEOF
25693
25694
25695 else
25696
25697                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
25698                 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
25699                 DEBUG_CFLAGS="-DNDEBUG"
25700                 DEBUG_STACKFLAGS=""
25701                 DEBUG_ZFS="_without_debug"
25702
25703 fi
25704
25705
25706
25707
25708
25709         { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
25710 $as_echo "$enable_debug" >&6; }
25711
25712
25713         # Check whether --enable-debug-dmu-tx was given.
25714 if test "${enable_debug_dmu_tx+set}" = set; then
25715   enableval=$enable_debug_dmu_tx;
25716 else
25717   enable_debug_dmu_tx=no
25718 fi
25719
25720
25721         if test "x$enable_debug_dmu_tx" = xyes; then
25722
25723                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
25724                 DEBUG_DMU_TX="_with_debug_dmu_tx"
25725
25726 cat >>confdefs.h <<\_ACEOF
25727 #define DEBUG_DMU_TX 1
25728 _ACEOF
25729
25730
25731 else
25732
25733                 DEBUG_DMU_TX="_without_debug_dmu_tx"
25734
25735 fi
25736
25737
25738
25739         { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
25740 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
25741         { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
25742 $as_echo "$enable_debug_dmu_tx" >&6; }
25743
25744
25745 ac_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/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/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/vdev_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 zfs.release"
25746
25747
25748 cat >confcache <<\_ACEOF
25749 # This file is a shell script that caches the results of configure
25750 # tests run on this system so they can be shared between configure
25751 # scripts and configure runs, see configure's option --config-cache.
25752 # It is not useful on other systems.  If it contains results you don't
25753 # want to keep, you may remove or edit it.
25754 #
25755 # config.status only pays attention to the cache file if you give it
25756 # the --recheck option to rerun configure.
25757 #
25758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25760 # following values.
25761
25762 _ACEOF
25763
25764 # The following way of writing the cache mishandles newlines in values,
25765 # but we know of no workaround that is simple, portable, and efficient.
25766 # So, we kill variables containing newlines.
25767 # Ultrix sh set writes to stderr and can't be redirected directly,
25768 # and sets the high bit in the cache file unless we assign to the vars.
25769 (
25770   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25771     eval ac_val=\$$ac_var
25772     case $ac_val in #(
25773     *${as_nl}*)
25774       case $ac_var in #(
25775       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
25776 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25777       esac
25778       case $ac_var in #(
25779       _ | IFS | as_nl) ;; #(
25780       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25781       *) $as_unset $ac_var ;;
25782       esac ;;
25783     esac
25784   done
25785
25786   (set) 2>&1 |
25787     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25788     *${as_nl}ac_space=\ *)
25789       # `set' does not quote correctly, so add quotes (double-quote
25790       # substitution turns \\\\ into \\, and sed turns \\ into \).
25791       sed -n \
25792         "s/'/'\\\\''/g;
25793           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25794       ;; #(
25795     *)
25796       # `set' quotes correctly as required by POSIX, so do not add quotes.
25797       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25798       ;;
25799     esac |
25800     sort
25801 ) |
25802   sed '
25803      /^ac_cv_env_/b end
25804      t clear
25805      :clear
25806      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25807      t end
25808      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25809      :end' >>confcache
25810 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25811   if test -w "$cache_file"; then
25812     test "x$cache_file" != "x/dev/null" &&
25813       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25814 $as_echo "$as_me: updating cache $cache_file" >&6;}
25815     cat confcache >$cache_file
25816   else
25817     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25818 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25819   fi
25820 fi
25821 rm -f confcache
25822
25823 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25824 # Let make expand exec_prefix.
25825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25826
25827 DEFS=-DHAVE_CONFIG_H
25828
25829 ac_libobjs=
25830 ac_ltlibobjs=
25831 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25832   # 1. Remove the extension, and $U if already installed.
25833   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25834   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25835   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25836   #    will be set to the directory where LIBOBJS objects are built.
25837   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25838   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25839 done
25840 LIBOBJS=$ac_libobjs
25841
25842 LTLIBOBJS=$ac_ltlibobjs
25843
25844
25845 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25846   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25847 Usually this means the macro was only invoked conditionally." >&5
25848 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25849 Usually this means the macro was only invoked conditionally." >&2;}
25850    { (exit 1); exit 1; }; }
25851 fi
25852  if test -n "$EXEEXT"; then
25853   am__EXEEXT_TRUE=
25854   am__EXEEXT_FALSE='#'
25855 else
25856   am__EXEEXT_TRUE='#'
25857   am__EXEEXT_FALSE=
25858 fi
25859
25860 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25861   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25862 Usually this means the macro was only invoked conditionally." >&5
25863 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
25864 Usually this means the macro was only invoked conditionally." >&2;}
25865    { (exit 1); exit 1; }; }
25866 fi
25867 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25868   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25869 Usually this means the macro was only invoked conditionally." >&5
25870 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25871 Usually this means the macro was only invoked conditionally." >&2;}
25872    { (exit 1); exit 1; }; }
25873 fi
25874 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
25875   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
25876 Usually this means the macro was only invoked conditionally." >&5
25877 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
25878 Usually this means the macro was only invoked conditionally." >&2;}
25879    { (exit 1); exit 1; }; }
25880 fi
25881 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
25882   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
25883 Usually this means the macro was only invoked conditionally." >&5
25884 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
25885 Usually this means the macro was only invoked conditionally." >&2;}
25886    { (exit 1); exit 1; }; }
25887 fi
25888 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
25889   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
25890 Usually this means the macro was only invoked conditionally." >&5
25891 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
25892 Usually this means the macro was only invoked conditionally." >&2;}
25893    { (exit 1); exit 1; }; }
25894 fi
25895
25896 : ${CONFIG_STATUS=./config.status}
25897 ac_write_fail=0
25898 ac_clean_files_save=$ac_clean_files
25899 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25900 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25901 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25902 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25903 #! $SHELL
25904 # Generated by $as_me.
25905 # Run this file to recreate the current configuration.
25906 # Compiler output produced by configure, useful for debugging
25907 # configure, is in config.log if it exists.
25908
25909 debug=false
25910 ac_cs_recheck=false
25911 ac_cs_silent=false
25912 SHELL=\${CONFIG_SHELL-$SHELL}
25913 _ACEOF
25914
25915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25916 ## --------------------- ##
25917 ## M4sh Initialization.  ##
25918 ## --------------------- ##
25919
25920 # Be more Bourne compatible
25921 DUALCASE=1; export DUALCASE # for MKS sh
25922 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25923   emulate sh
25924   NULLCMD=:
25925   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25926   # is contrary to our usage.  Disable this feature.
25927   alias -g '${1+"$@"}'='"$@"'
25928   setopt NO_GLOB_SUBST
25929 else
25930   case `(set -o) 2>/dev/null` in
25931   *posix*) set -o posix ;;
25932 esac
25933
25934 fi
25935
25936
25937
25938
25939 # PATH needs CR
25940 # Avoid depending upon Character Ranges.
25941 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25942 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25943 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25944 as_cr_digits='0123456789'
25945 as_cr_alnum=$as_cr_Letters$as_cr_digits
25946
25947 as_nl='
25948 '
25949 export as_nl
25950 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25951 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25954 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25955   as_echo='printf %s\n'
25956   as_echo_n='printf %s'
25957 else
25958   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25959     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25960     as_echo_n='/usr/ucb/echo -n'
25961   else
25962     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25963     as_echo_n_body='eval
25964       arg=$1;
25965       case $arg in
25966       *"$as_nl"*)
25967         expr "X$arg" : "X\\(.*\\)$as_nl";
25968         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25969       esac;
25970       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25971     '
25972     export as_echo_n_body
25973     as_echo_n='sh -c $as_echo_n_body as_echo'
25974   fi
25975   export as_echo_body
25976   as_echo='sh -c $as_echo_body as_echo'
25977 fi
25978
25979 # The user is always right.
25980 if test "${PATH_SEPARATOR+set}" != set; then
25981   PATH_SEPARATOR=:
25982   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25983     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25984       PATH_SEPARATOR=';'
25985   }
25986 fi
25987
25988 # Support unset when possible.
25989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25990   as_unset=unset
25991 else
25992   as_unset=false
25993 fi
25994
25995
25996 # IFS
25997 # We need space, tab and new line, in precisely that order.  Quoting is
25998 # there to prevent editors from complaining about space-tab.
25999 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26000 # splitting by setting IFS to empty value.)
26001 IFS=" ""        $as_nl"
26002
26003 # Find who we are.  Look in the path if we contain no directory separator.
26004 case $0 in
26005   *[\\/]* ) as_myself=$0 ;;
26006   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26007 for as_dir in $PATH
26008 do
26009   IFS=$as_save_IFS
26010   test -z "$as_dir" && as_dir=.
26011   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26012 done
26013 IFS=$as_save_IFS
26014
26015      ;;
26016 esac
26017 # We did not find ourselves, most probably we were run as `sh COMMAND'
26018 # in which case we are not to be found in the path.
26019 if test "x$as_myself" = x; then
26020   as_myself=$0
26021 fi
26022 if test ! -f "$as_myself"; then
26023   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26024   { (exit 1); exit 1; }
26025 fi
26026
26027 # Work around bugs in pre-3.0 UWIN ksh.
26028 for as_var in ENV MAIL MAILPATH
26029 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26030 done
26031 PS1='$ '
26032 PS2='> '
26033 PS4='+ '
26034
26035 # NLS nuisances.
26036 LC_ALL=C
26037 export LC_ALL
26038 LANGUAGE=C
26039 export LANGUAGE
26040
26041 # Required to use basename.
26042 if expr a : '\(a\)' >/dev/null 2>&1 &&
26043    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26044   as_expr=expr
26045 else
26046   as_expr=false
26047 fi
26048
26049 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26050   as_basename=basename
26051 else
26052   as_basename=false
26053 fi
26054
26055
26056 # Name of the executable.
26057 as_me=`$as_basename -- "$0" ||
26058 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26059          X"$0" : 'X\(//\)$' \| \
26060          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26061 $as_echo X/"$0" |
26062     sed '/^.*\/\([^/][^/]*\)\/*$/{
26063             s//\1/
26064             q
26065           }
26066           /^X\/\(\/\/\)$/{
26067             s//\1/
26068             q
26069           }
26070           /^X\/\(\/\).*/{
26071             s//\1/
26072             q
26073           }
26074           s/.*/./; q'`
26075
26076 # CDPATH.
26077 $as_unset CDPATH
26078
26079
26080
26081   as_lineno_1=$LINENO
26082   as_lineno_2=$LINENO
26083   test "x$as_lineno_1" != "x$as_lineno_2" &&
26084   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26085
26086   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26087   # uniformly replaced by the line number.  The first 'sed' inserts a
26088   # line-number line after each line using $LINENO; the second 'sed'
26089   # does the real work.  The second script uses 'N' to pair each
26090   # line-number line with the line containing $LINENO, and appends
26091   # trailing '-' during substitution so that $LINENO is not a special
26092   # case at line end.
26093   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26094   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26095   # E. McMahon (1931-1989) for sed's syntax.  :-)
26096   sed -n '
26097     p
26098     /[$]LINENO/=
26099   ' <$as_myself |
26100     sed '
26101       s/[$]LINENO.*/&-/
26102       t lineno
26103       b
26104       :lineno
26105       N
26106       :loop
26107       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26108       t loop
26109       s/-\n.*//
26110     ' >$as_me.lineno &&
26111   chmod +x "$as_me.lineno" ||
26112     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26113    { (exit 1); exit 1; }; }
26114
26115   # Don't try to exec as it changes $[0], causing all sort of problems
26116   # (the dirname of $[0] is not the place where we might find the
26117   # original and so on.  Autoconf is especially sensitive to this).
26118   . "./$as_me.lineno"
26119   # Exit status is that of the last command.
26120   exit
26121 }
26122
26123
26124 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26125   as_dirname=dirname
26126 else
26127   as_dirname=false
26128 fi
26129
26130 ECHO_C= ECHO_N= ECHO_T=
26131 case `echo -n x` in
26132 -n*)
26133   case `echo 'x\c'` in
26134   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26135   *)   ECHO_C='\c';;
26136   esac;;
26137 *)
26138   ECHO_N='-n';;
26139 esac
26140 if expr a : '\(a\)' >/dev/null 2>&1 &&
26141    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26142   as_expr=expr
26143 else
26144   as_expr=false
26145 fi
26146
26147 rm -f conf$$ conf$$.exe conf$$.file
26148 if test -d conf$$.dir; then
26149   rm -f conf$$.dir/conf$$.file
26150 else
26151   rm -f conf$$.dir
26152   mkdir conf$$.dir 2>/dev/null
26153 fi
26154 if (echo >conf$$.file) 2>/dev/null; then
26155   if ln -s conf$$.file conf$$ 2>/dev/null; then
26156     as_ln_s='ln -s'
26157     # ... but there are two gotchas:
26158     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26159     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26160     # In both cases, we have to default to `cp -p'.
26161     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26162       as_ln_s='cp -p'
26163   elif ln conf$$.file conf$$ 2>/dev/null; then
26164     as_ln_s=ln
26165   else
26166     as_ln_s='cp -p'
26167   fi
26168 else
26169   as_ln_s='cp -p'
26170 fi
26171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26172 rmdir conf$$.dir 2>/dev/null
26173
26174 if mkdir -p . 2>/dev/null; then
26175   as_mkdir_p=:
26176 else
26177   test -d ./-p && rmdir ./-p
26178   as_mkdir_p=false
26179 fi
26180
26181 if test -x / >/dev/null 2>&1; then
26182   as_test_x='test -x'
26183 else
26184   if ls -dL / >/dev/null 2>&1; then
26185     as_ls_L_option=L
26186   else
26187     as_ls_L_option=
26188   fi
26189   as_test_x='
26190     eval sh -c '\''
26191       if test -d "$1"; then
26192         test -d "$1/.";
26193       else
26194         case $1 in
26195         -*)set "./$1";;
26196         esac;
26197         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26198         ???[sx]*):;;*)false;;esac;fi
26199     '\'' sh
26200   '
26201 fi
26202 as_executable_p=$as_test_x
26203
26204 # Sed expression to map a string onto a valid CPP name.
26205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26206
26207 # Sed expression to map a string onto a valid variable name.
26208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26209
26210
26211 exec 6>&1
26212
26213 # Save the log message, to keep $[0] and so on meaningful, and to
26214 # report actual input values of CONFIG_FILES etc. instead of their
26215 # values after options handling.
26216 ac_log="
26217 This file was extended by $as_me, which was
26218 generated by GNU Autoconf 2.63.  Invocation command line was
26219
26220   CONFIG_FILES    = $CONFIG_FILES
26221   CONFIG_HEADERS  = $CONFIG_HEADERS
26222   CONFIG_LINKS    = $CONFIG_LINKS
26223   CONFIG_COMMANDS = $CONFIG_COMMANDS
26224   $ $0 $@
26225
26226 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26227 "
26228
26229 _ACEOF
26230
26231 case $ac_config_files in *"
26232 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26233 esac
26234
26235 case $ac_config_headers in *"
26236 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26237 esac
26238
26239
26240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26241 # Files that config.status was made for.
26242 config_files="$ac_config_files"
26243 config_headers="$ac_config_headers"
26244 config_commands="$ac_config_commands"
26245
26246 _ACEOF
26247
26248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26249 ac_cs_usage="\
26250 \`$as_me' instantiates files from templates according to the
26251 current configuration.
26252
26253 Usage: $0 [OPTION]... [FILE]...
26254
26255   -h, --help       print this help, then exit
26256   -V, --version    print version number and configuration settings, then exit
26257   -q, --quiet, --silent
26258                    do not print progress messages
26259   -d, --debug      don't remove temporary files
26260       --recheck    update $as_me by reconfiguring in the same conditions
26261       --file=FILE[:TEMPLATE]
26262                    instantiate the configuration file FILE
26263       --header=FILE[:TEMPLATE]
26264                    instantiate the configuration header FILE
26265
26266 Configuration files:
26267 $config_files
26268
26269 Configuration headers:
26270 $config_headers
26271
26272 Configuration commands:
26273 $config_commands
26274
26275 Report bugs to <bug-autoconf@gnu.org>."
26276
26277 _ACEOF
26278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26279 ac_cs_version="\\
26280 config.status
26281 configured by $0, generated by GNU Autoconf 2.63,
26282   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26283
26284 Copyright (C) 2008 Free Software Foundation, Inc.
26285 This config.status script is free software; the Free Software Foundation
26286 gives unlimited permission to copy, distribute and modify it."
26287
26288 ac_pwd='$ac_pwd'
26289 srcdir='$srcdir'
26290 INSTALL='$INSTALL'
26291 MKDIR_P='$MKDIR_P'
26292 AWK='$AWK'
26293 test -n "\$AWK" || AWK=awk
26294 _ACEOF
26295
26296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26297 # The default lists apply if the user does not specify any file.
26298 ac_need_defaults=:
26299 while test $# != 0
26300 do
26301   case $1 in
26302   --*=*)
26303     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26304     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26305     ac_shift=:
26306     ;;
26307   *)
26308     ac_option=$1
26309     ac_optarg=$2
26310     ac_shift=shift
26311     ;;
26312   esac
26313
26314   case $ac_option in
26315   # Handling of the options.
26316   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26317     ac_cs_recheck=: ;;
26318   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26319     $as_echo "$ac_cs_version"; exit ;;
26320   --debug | --debu | --deb | --de | --d | -d )
26321     debug=: ;;
26322   --file | --fil | --fi | --f )
26323     $ac_shift
26324     case $ac_optarg in
26325     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26326     esac
26327     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26328     ac_need_defaults=false;;
26329   --header | --heade | --head | --hea )
26330     $ac_shift
26331     case $ac_optarg in
26332     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26333     esac
26334     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26335     ac_need_defaults=false;;
26336   --he | --h)
26337     # Conflict between --help and --header
26338     { $as_echo "$as_me: error: ambiguous option: $1
26339 Try \`$0 --help' for more information." >&2
26340    { (exit 1); exit 1; }; };;
26341   --help | --hel | -h )
26342     $as_echo "$ac_cs_usage"; exit ;;
26343   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26344   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26345     ac_cs_silent=: ;;
26346
26347   # This is an error.
26348   -*) { $as_echo "$as_me: error: unrecognized option: $1
26349 Try \`$0 --help' for more information." >&2
26350    { (exit 1); exit 1; }; } ;;
26351
26352   *) ac_config_targets="$ac_config_targets $1"
26353      ac_need_defaults=false ;;
26354
26355   esac
26356   shift
26357 done
26358
26359 ac_configure_extra_args=
26360
26361 if $ac_cs_silent; then
26362   exec 6>/dev/null
26363   ac_configure_extra_args="$ac_configure_extra_args --silent"
26364 fi
26365
26366 _ACEOF
26367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26368 if \$ac_cs_recheck; then
26369   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26370   shift
26371   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26372   CONFIG_SHELL='$SHELL'
26373   export CONFIG_SHELL
26374   exec "\$@"
26375 fi
26376
26377 _ACEOF
26378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26379 exec 5>>config.log
26380 {
26381   echo
26382   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26383 ## Running $as_me. ##
26384 _ASBOX
26385   $as_echo "$ac_log"
26386 } >&5
26387
26388 _ACEOF
26389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26390 #
26391 # INIT-COMMANDS
26392 #
26393 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26394
26395
26396 # The HP-UX ksh and POSIX shell print the target directory to stdout
26397 # if CDPATH is set.
26398 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26399
26400 sed_quote_subst='$sed_quote_subst'
26401 double_quote_subst='$double_quote_subst'
26402 delay_variable_subst='$delay_variable_subst'
26403 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
26404 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
26405 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
26406 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
26407 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
26408 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
26409 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
26410 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
26411 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
26412 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
26413 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
26414 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
26415 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
26416 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
26417 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
26418 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
26419 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
26420 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
26421 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
26422 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
26423 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
26424 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
26425 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
26426 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
26427 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
26428 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
26429 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
26430 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26431 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
26432 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
26433 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
26434 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
26435 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26436 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
26437 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
26438 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26439 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26440 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26441 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
26442 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
26443 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
26444 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
26445 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
26446 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
26447 lt_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"`'
26448 lt_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"`'
26449 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
26450 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
26451 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
26452 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
26453 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
26454 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
26455 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
26456 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
26457 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
26458 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
26459 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
26460 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
26461 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
26462 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
26463 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
26464 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
26465 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26466 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26467 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
26468 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
26469 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26470 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26471 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
26472 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26473 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26474 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26475 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26476 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26477 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26478 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
26479 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26480 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
26481 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
26482 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
26483 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
26484 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
26485 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
26486 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
26487 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26488 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
26489 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
26490 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
26491 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
26492 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
26493 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26494 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26495 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
26496 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26497 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
26498 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
26499 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
26500 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
26501 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
26502 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26503 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
26504 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
26505 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26506 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
26507 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
26508 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26509 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26510 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
26511 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
26512 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
26513 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26514 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
26515 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
26516 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
26517 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
26518 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
26519 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
26520 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
26521
26522 LTCC='$LTCC'
26523 LTCFLAGS='$LTCFLAGS'
26524 compiler='$compiler_DEFAULT'
26525
26526 # Quote evaled strings.
26527 for var in SED \
26528 GREP \
26529 EGREP \
26530 FGREP \
26531 LD \
26532 NM \
26533 LN_S \
26534 lt_SP2NL \
26535 lt_NL2SP \
26536 reload_flag \
26537 OBJDUMP \
26538 deplibs_check_method \
26539 file_magic_cmd \
26540 AR \
26541 AR_FLAGS \
26542 STRIP \
26543 RANLIB \
26544 CC \
26545 CFLAGS \
26546 compiler \
26547 lt_cv_sys_global_symbol_pipe \
26548 lt_cv_sys_global_symbol_to_cdecl \
26549 lt_cv_sys_global_symbol_to_c_name_address \
26550 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26551 SHELL \
26552 ECHO \
26553 lt_prog_compiler_no_builtin_flag \
26554 lt_prog_compiler_wl \
26555 lt_prog_compiler_pic \
26556 lt_prog_compiler_static \
26557 lt_cv_prog_compiler_c_o \
26558 need_locks \
26559 DSYMUTIL \
26560 NMEDIT \
26561 LIPO \
26562 OTOOL \
26563 OTOOL64 \
26564 shrext_cmds \
26565 export_dynamic_flag_spec \
26566 whole_archive_flag_spec \
26567 compiler_needs_object \
26568 with_gnu_ld \
26569 allow_undefined_flag \
26570 no_undefined_flag \
26571 hardcode_libdir_flag_spec \
26572 hardcode_libdir_flag_spec_ld \
26573 hardcode_libdir_separator \
26574 fix_srcfile_path \
26575 exclude_expsyms \
26576 include_expsyms \
26577 file_list_spec \
26578 variables_saved_for_relink \
26579 libname_spec \
26580 library_names_spec \
26581 soname_spec \
26582 finish_eval \
26583 old_striplib \
26584 striplib; do
26585     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26586     *[\\\\\\\`\\"\\\$]*)
26587       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26588       ;;
26589     *)
26590       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26591       ;;
26592     esac
26593 done
26594
26595 # Double-quote double-evaled strings.
26596 for var in reload_cmds \
26597 old_postinstall_cmds \
26598 old_postuninstall_cmds \
26599 old_archive_cmds \
26600 extract_expsyms_cmds \
26601 old_archive_from_new_cmds \
26602 old_archive_from_expsyms_cmds \
26603 archive_cmds \
26604 archive_expsym_cmds \
26605 module_cmds \
26606 module_expsym_cmds \
26607 export_symbols_cmds \
26608 prelink_cmds \
26609 postinstall_cmds \
26610 postuninstall_cmds \
26611 finish_cmds \
26612 sys_lib_search_path_spec \
26613 sys_lib_dlsearch_path_spec; do
26614     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26615     *[\\\\\\\`\\"\\\$]*)
26616       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26617       ;;
26618     *)
26619       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26620       ;;
26621     esac
26622 done
26623
26624 # Fix-up fallback echo if it was mangled by the above quoting rules.
26625 case \$lt_ECHO in
26626 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26627   ;;
26628 esac
26629
26630 ac_aux_dir='$ac_aux_dir'
26631 xsi_shell='$xsi_shell'
26632 lt_shell_append='$lt_shell_append'
26633
26634 # See if we are running on zsh, and set the options which allow our
26635 # commands through without removal of \ escapes INIT.
26636 if test -n "\${ZSH_VERSION+set}" ; then
26637    setopt NO_GLOB_SUBST
26638 fi
26639
26640
26641     PACKAGE='$PACKAGE'
26642     VERSION='$VERSION'
26643     TIMESTAMP='$TIMESTAMP'
26644     RM='$RM'
26645     ofile='$ofile'
26646
26647
26648
26649
26650 _ACEOF
26651
26652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26653
26654 # Handling of arguments.
26655 for ac_config_target in $ac_config_targets
26656 do
26657   case $ac_config_target in
26658     "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
26659     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26660     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26661     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26662     "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
26663     "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
26664     "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
26665     "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
26666     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
26667     "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
26668     "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
26669     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26670     "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
26671     "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
26672     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
26673     "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
26674     "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
26675     "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
26676     "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
26677     "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
26678     "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
26679     "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
26680     "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
26681     "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
26682     "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
26683     "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
26684     "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
26685     "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
26686     "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
26687     "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
26688     "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
26689     "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
26690     "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
26691     "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
26692     "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
26693     "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
26694     "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
26695     "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
26696     "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
26697     "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
26698     "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
26699     "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
26700     "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
26701     "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
26702     "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
26703     "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
26704     "cmd/vdev_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
26705     "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
26706     "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
26707     "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
26708     "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
26709     "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
26710     "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
26711     "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
26712     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26713     "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
26714     "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
26715     "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
26716     "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
26717     "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
26718     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
26719     "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
26720     "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
26721     "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
26722     "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
26723     "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
26724     "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
26725     "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
26726     "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
26727     "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
26728     "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
26729     "zfs.release") CONFIG_FILES="$CONFIG_FILES zfs.release" ;;
26730
26731   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26732 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26733    { (exit 1); exit 1; }; };;
26734   esac
26735 done
26736
26737
26738 # If the user did not use the arguments to specify the items to instantiate,
26739 # then the envvar interface is used.  Set only those that are not.
26740 # We use the long form for the default assignment because of an extremely
26741 # bizarre bug on SunOS 4.1.3.
26742 if $ac_need_defaults; then
26743   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26744   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26745   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26746 fi
26747
26748 # Have a temporary directory for convenience.  Make it in the build tree
26749 # simply because there is no reason against having it here, and in addition,
26750 # creating and moving files from /tmp can sometimes cause problems.
26751 # Hook for its removal unless debugging.
26752 # Note that there is a small window in which the directory will not be cleaned:
26753 # after its creation but before its name has been assigned to `$tmp'.
26754 $debug ||
26755 {
26756   tmp=
26757   trap 'exit_status=$?
26758   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26759 ' 0
26760   trap '{ (exit 1); exit 1; }' 1 2 13 15
26761 }
26762 # Create a (secure) tmp directory for tmp files.
26763
26764 {
26765   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26766   test -n "$tmp" && test -d "$tmp"
26767 }  ||
26768 {
26769   tmp=./conf$$-$RANDOM
26770   (umask 077 && mkdir "$tmp")
26771 } ||
26772 {
26773    $as_echo "$as_me: cannot create a temporary directory in ." >&2
26774    { (exit 1); exit 1; }
26775 }
26776
26777 # Set up the scripts for CONFIG_FILES section.
26778 # No need to generate them if there are no CONFIG_FILES.
26779 # This happens for instance with `./config.status config.h'.
26780 if test -n "$CONFIG_FILES"; then
26781
26782
26783 ac_cr='\r'
26784 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26785 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26786   ac_cs_awk_cr='\\r'
26787 else
26788   ac_cs_awk_cr=$ac_cr
26789 fi
26790
26791 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26792 _ACEOF
26793
26794
26795 {
26796   echo "cat >conf$$subs.awk <<_ACEOF" &&
26797   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26798   echo "_ACEOF"
26799 } >conf$$subs.sh ||
26800   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26801 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26802    { (exit 1); exit 1; }; }
26803 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26804 ac_delim='%!_!# '
26805 for ac_last_try in false false false false false :; do
26806   . ./conf$$subs.sh ||
26807     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26808 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26809    { (exit 1); exit 1; }; }
26810
26811   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26812   if test $ac_delim_n = $ac_delim_num; then
26813     break
26814   elif $ac_last_try; then
26815     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26816 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26817    { (exit 1); exit 1; }; }
26818   else
26819     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26820   fi
26821 done
26822 rm -f conf$$subs.sh
26823
26824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26825 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26826 _ACEOF
26827 sed -n '
26828 h
26829 s/^/S["/; s/!.*/"]=/
26830 p
26831 g
26832 s/^[^!]*!//
26833 :repl
26834 t repl
26835 s/'"$ac_delim"'$//
26836 t delim
26837 :nl
26838 h
26839 s/\(.\{148\}\).*/\1/
26840 t more1
26841 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26842 p
26843 n
26844 b repl
26845 :more1
26846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26847 p
26848 g
26849 s/.\{148\}//
26850 t nl
26851 :delim
26852 h
26853 s/\(.\{148\}\).*/\1/
26854 t more2
26855 s/["\\]/\\&/g; s/^/"/; s/$/"/
26856 p
26857 b
26858 :more2
26859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26860 p
26861 g
26862 s/.\{148\}//
26863 t delim
26864 ' <conf$$subs.awk | sed '
26865 /^[^""]/{
26866   N
26867   s/\n//
26868 }
26869 ' >>$CONFIG_STATUS || ac_write_fail=1
26870 rm -f conf$$subs.awk
26871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26872 _ACAWK
26873 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26874   for (key in S) S_is_set[key] = 1
26875   FS = "\a"
26876
26877 }
26878 {
26879   line = $ 0
26880   nfields = split(line, field, "@")
26881   substed = 0
26882   len = length(field[1])
26883   for (i = 2; i < nfields; i++) {
26884     key = field[i]
26885     keylen = length(key)
26886     if (S_is_set[key]) {
26887       value = S[key]
26888       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26889       len += length(value) + length(field[++i])
26890       substed = 1
26891     } else
26892       len += 1 + keylen
26893   }
26894
26895   print line
26896 }
26897
26898 _ACAWK
26899 _ACEOF
26900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26901 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26902   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26903 else
26904   cat
26905 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26906   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26907 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26908    { (exit 1); exit 1; }; }
26909 _ACEOF
26910
26911 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26912 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26913 # trailing colons and then remove the whole line if VPATH becomes empty
26914 # (actually we leave an empty line to preserve line numbers).
26915 if test "x$srcdir" = x.; then
26916   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26917 s/:*\$(srcdir):*/:/
26918 s/:*\${srcdir}:*/:/
26919 s/:*@srcdir@:*/:/
26920 s/^\([^=]*=[     ]*\):*/\1/
26921 s/:*$//
26922 s/^[^=]*=[       ]*$//
26923 }'
26924 fi
26925
26926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26927 fi # test -n "$CONFIG_FILES"
26928
26929 # Set up the scripts for CONFIG_HEADERS section.
26930 # No need to generate them if there are no CONFIG_HEADERS.
26931 # This happens for instance with `./config.status Makefile'.
26932 if test -n "$CONFIG_HEADERS"; then
26933 cat >"$tmp/defines.awk" <<\_ACAWK ||
26934 BEGIN {
26935 _ACEOF
26936
26937 # Transform confdefs.h into an awk script `defines.awk', embedded as
26938 # here-document in config.status, that substitutes the proper values into
26939 # config.h.in to produce config.h.
26940
26941 # Create a delimiter string that does not exist in confdefs.h, to ease
26942 # handling of long lines.
26943 ac_delim='%!_!# '
26944 for ac_last_try in false false :; do
26945   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26946   if test -z "$ac_t"; then
26947     break
26948   elif $ac_last_try; then
26949     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26950 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26951    { (exit 1); exit 1; }; }
26952   else
26953     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26954   fi
26955 done
26956
26957 # For the awk script, D is an array of macro values keyed by name,
26958 # likewise P contains macro parameters if any.  Preserve backslash
26959 # newline sequences.
26960
26961 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26962 sed -n '
26963 s/.\{148\}/&'"$ac_delim"'/g
26964 t rset
26965 :rset
26966 s/^[     ]*#[    ]*define[       ][      ]*/ /
26967 t def
26968 d
26969 :def
26970 s/\\$//
26971 t bsnl
26972 s/["\\]/\\&/g
26973 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26974 D["\1"]=" \3"/p
26975 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26976 d
26977 :bsnl
26978 s/["\\]/\\&/g
26979 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26980 D["\1"]=" \3\\\\\\n"\\/p
26981 t cont
26982 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26983 t cont
26984 d
26985 :cont
26986 n
26987 s/.\{148\}/&'"$ac_delim"'/g
26988 t clear
26989 :clear
26990 s/\\$//
26991 t bsnlc
26992 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26993 d
26994 :bsnlc
26995 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26996 b cont
26997 ' <confdefs.h | sed '
26998 s/'"$ac_delim"'/"\\\
26999 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27000
27001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27002   for (key in D) D_is_set[key] = 1
27003   FS = "\a"
27004 }
27005 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27006   line = \$ 0
27007   split(line, arg, " ")
27008   if (arg[1] == "#") {
27009     defundef = arg[2]
27010     mac1 = arg[3]
27011   } else {
27012     defundef = substr(arg[1], 2)
27013     mac1 = arg[2]
27014   }
27015   split(mac1, mac2, "(") #)
27016   macro = mac2[1]
27017   prefix = substr(line, 1, index(line, defundef) - 1)
27018   if (D_is_set[macro]) {
27019     # Preserve the white space surrounding the "#".
27020     print prefix "define", macro P[macro] D[macro]
27021     next
27022   } else {
27023     # Replace #undef with comments.  This is necessary, for example,
27024     # in the case of _POSIX_SOURCE, which is predefined and required
27025     # on some systems where configure will not decide to define it.
27026     if (defundef == "undef") {
27027       print "/*", prefix defundef, macro, "*/"
27028       next
27029     }
27030   }
27031 }
27032 { print }
27033 _ACAWK
27034 _ACEOF
27035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27036   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27037 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27038    { (exit 1); exit 1; }; }
27039 fi # test -n "$CONFIG_HEADERS"
27040
27041
27042 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27043 shift
27044 for ac_tag
27045 do
27046   case $ac_tag in
27047   :[FHLC]) ac_mode=$ac_tag; continue;;
27048   esac
27049   case $ac_mode$ac_tag in
27050   :[FHL]*:*);;
27051   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27052 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27053    { (exit 1); exit 1; }; };;
27054   :[FH]-) ac_tag=-:-;;
27055   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27056   esac
27057   ac_save_IFS=$IFS
27058   IFS=:
27059   set x $ac_tag
27060   IFS=$ac_save_IFS
27061   shift
27062   ac_file=$1
27063   shift
27064
27065   case $ac_mode in
27066   :L) ac_source=$1;;
27067   :[FH])
27068     ac_file_inputs=
27069     for ac_f
27070     do
27071       case $ac_f in
27072       -) ac_f="$tmp/stdin";;
27073       *) # Look for the file first in the build tree, then in the source tree
27074          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27075          # because $ac_f cannot contain `:'.
27076          test -f "$ac_f" ||
27077            case $ac_f in
27078            [\\/$]*) false;;
27079            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27080            esac ||
27081            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27082 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27083    { (exit 1); exit 1; }; };;
27084       esac
27085       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27086       ac_file_inputs="$ac_file_inputs '$ac_f'"
27087     done
27088
27089     # Let's still pretend it is `configure' which instantiates (i.e., don't
27090     # use $as_me), people would be surprised to read:
27091     #    /* config.h.  Generated by config.status.  */
27092     configure_input='Generated from '`
27093           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27094         `' by configure.'
27095     if test x"$ac_file" != x-; then
27096       configure_input="$ac_file.  $configure_input"
27097       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27098 $as_echo "$as_me: creating $ac_file" >&6;}
27099     fi
27100     # Neutralize special characters interpreted by sed in replacement strings.
27101     case $configure_input in #(
27102     *\&* | *\|* | *\\* )
27103        ac_sed_conf_input=`$as_echo "$configure_input" |
27104        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27105     *) ac_sed_conf_input=$configure_input;;
27106     esac
27107
27108     case $ac_tag in
27109     *:-:* | *:-) cat >"$tmp/stdin" \
27110       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27111 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27112    { (exit 1); exit 1; }; } ;;
27113     esac
27114     ;;
27115   esac
27116
27117   ac_dir=`$as_dirname -- "$ac_file" ||
27118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27119          X"$ac_file" : 'X\(//\)[^/]' \| \
27120          X"$ac_file" : 'X\(//\)$' \| \
27121          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27122 $as_echo X"$ac_file" |
27123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27124             s//\1/
27125             q
27126           }
27127           /^X\(\/\/\)[^/].*/{
27128             s//\1/
27129             q
27130           }
27131           /^X\(\/\/\)$/{
27132             s//\1/
27133             q
27134           }
27135           /^X\(\/\).*/{
27136             s//\1/
27137             q
27138           }
27139           s/.*/./; q'`
27140   { as_dir="$ac_dir"
27141   case $as_dir in #(
27142   -*) as_dir=./$as_dir;;
27143   esac
27144   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27145     as_dirs=
27146     while :; do
27147       case $as_dir in #(
27148       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27149       *) as_qdir=$as_dir;;
27150       esac
27151       as_dirs="'$as_qdir' $as_dirs"
27152       as_dir=`$as_dirname -- "$as_dir" ||
27153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27154          X"$as_dir" : 'X\(//\)[^/]' \| \
27155          X"$as_dir" : 'X\(//\)$' \| \
27156          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27157 $as_echo X"$as_dir" |
27158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27159             s//\1/
27160             q
27161           }
27162           /^X\(\/\/\)[^/].*/{
27163             s//\1/
27164             q
27165           }
27166           /^X\(\/\/\)$/{
27167             s//\1/
27168             q
27169           }
27170           /^X\(\/\).*/{
27171             s//\1/
27172             q
27173           }
27174           s/.*/./; q'`
27175       test -d "$as_dir" && break
27176     done
27177     test -z "$as_dirs" || eval "mkdir $as_dirs"
27178   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27179 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27180    { (exit 1); exit 1; }; }; }
27181   ac_builddir=.
27182
27183 case "$ac_dir" in
27184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27185 *)
27186   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27187   # A ".." for each directory in $ac_dir_suffix.
27188   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27189   case $ac_top_builddir_sub in
27190   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27191   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27192   esac ;;
27193 esac
27194 ac_abs_top_builddir=$ac_pwd
27195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27196 # for backward compatibility:
27197 ac_top_builddir=$ac_top_build_prefix
27198
27199 case $srcdir in
27200   .)  # We are building in place.
27201     ac_srcdir=.
27202     ac_top_srcdir=$ac_top_builddir_sub
27203     ac_abs_top_srcdir=$ac_pwd ;;
27204   [\\/]* | ?:[\\/]* )  # Absolute name.
27205     ac_srcdir=$srcdir$ac_dir_suffix;
27206     ac_top_srcdir=$srcdir
27207     ac_abs_top_srcdir=$srcdir ;;
27208   *) # Relative name.
27209     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27210     ac_top_srcdir=$ac_top_build_prefix$srcdir
27211     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27212 esac
27213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27214
27215
27216   case $ac_mode in
27217   :F)
27218   #
27219   # CONFIG_FILE
27220   #
27221
27222   case $INSTALL in
27223   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27224   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27225   esac
27226   ac_MKDIR_P=$MKDIR_P
27227   case $MKDIR_P in
27228   [\\/$]* | ?:[\\/]* ) ;;
27229   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27230   esac
27231 _ACEOF
27232
27233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27234 # If the template does not know about datarootdir, expand it.
27235 # FIXME: This hack should be removed a few years after 2.60.
27236 ac_datarootdir_hack=; ac_datarootdir_seen=
27237
27238 ac_sed_dataroot='
27239 /datarootdir/ {
27240   p
27241   q
27242 }
27243 /@datadir@/p
27244 /@docdir@/p
27245 /@infodir@/p
27246 /@localedir@/p
27247 /@mandir@/p
27248 '
27249 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27250 *datarootdir*) ac_datarootdir_seen=yes;;
27251 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27252   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27253 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27254 _ACEOF
27255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27256   ac_datarootdir_hack='
27257   s&@datadir@&$datadir&g
27258   s&@docdir@&$docdir&g
27259   s&@infodir@&$infodir&g
27260   s&@localedir@&$localedir&g
27261   s&@mandir@&$mandir&g
27262     s&\\\${datarootdir}&$datarootdir&g' ;;
27263 esac
27264 _ACEOF
27265
27266 # Neutralize VPATH when `$srcdir' = `.'.
27267 # Shell code in configure.ac might set extrasub.
27268 # FIXME: do we really want to maintain this feature?
27269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27270 ac_sed_extra="$ac_vpsub
27271 $extrasub
27272 _ACEOF
27273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27274 :t
27275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27276 s|@configure_input@|$ac_sed_conf_input|;t t
27277 s&@top_builddir@&$ac_top_builddir_sub&;t t
27278 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27279 s&@srcdir@&$ac_srcdir&;t t
27280 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27281 s&@top_srcdir@&$ac_top_srcdir&;t t
27282 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27283 s&@builddir@&$ac_builddir&;t t
27284 s&@abs_builddir@&$ac_abs_builddir&;t t
27285 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27286 s&@INSTALL@&$ac_INSTALL&;t t
27287 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27288 $ac_datarootdir_hack
27289 "
27290 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27291   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27292 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27293    { (exit 1); exit 1; }; }
27294
27295 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27296   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27297   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27298   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27299 which seems to be undefined.  Please make sure it is defined." >&5
27300 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27301 which seems to be undefined.  Please make sure it is defined." >&2;}
27302
27303   rm -f "$tmp/stdin"
27304   case $ac_file in
27305   -) cat "$tmp/out" && rm -f "$tmp/out";;
27306   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27307   esac \
27308   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27309 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27310    { (exit 1); exit 1; }; }
27311  ;;
27312   :H)
27313   #
27314   # CONFIG_HEADER
27315   #
27316   if test x"$ac_file" != x-; then
27317     {
27318       $as_echo "/* $configure_input  */" \
27319       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27320     } >"$tmp/config.h" \
27321       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27322 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27323    { (exit 1); exit 1; }; }
27324     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27325       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27326 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27327     else
27328       rm -f "$ac_file"
27329       mv "$tmp/config.h" "$ac_file" \
27330         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27331 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27332    { (exit 1); exit 1; }; }
27333     fi
27334   else
27335     $as_echo "/* $configure_input  */" \
27336       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27337       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27338 $as_echo "$as_me: error: could not create -" >&2;}
27339    { (exit 1); exit 1; }; }
27340   fi
27341 # Compute "$ac_file"'s index in $config_headers.
27342 _am_arg="$ac_file"
27343 _am_stamp_count=1
27344 for _am_header in $config_headers :; do
27345   case $_am_header in
27346     $_am_arg | $_am_arg:* )
27347       break ;;
27348     * )
27349       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27350   esac
27351 done
27352 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27353 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27354          X"$_am_arg" : 'X\(//\)[^/]' \| \
27355          X"$_am_arg" : 'X\(//\)$' \| \
27356          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27357 $as_echo X"$_am_arg" |
27358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27359             s//\1/
27360             q
27361           }
27362           /^X\(\/\/\)[^/].*/{
27363             s//\1/
27364             q
27365           }
27366           /^X\(\/\/\)$/{
27367             s//\1/
27368             q
27369           }
27370           /^X\(\/\).*/{
27371             s//\1/
27372             q
27373           }
27374           s/.*/./; q'`/stamp-h$_am_stamp_count
27375  ;;
27376
27377   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27378 $as_echo "$as_me: executing $ac_file commands" >&6;}
27379  ;;
27380   esac
27381
27382
27383   case $ac_file$ac_mode in
27384     "zfs_config.h":H)
27385         (mv zfs_config.h zfs_config.h.tmp &&
27386         awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
27387         rm zfs_config.h.tmp) || exit 1 ;;
27388     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27389   # Autoconf 2.62 quotes --file arguments for eval, but not when files
27390   # are listed without --file.  Let's play safe and only enable the eval
27391   # if we detect the quoting.
27392   case $CONFIG_FILES in
27393   *\'*) eval set x "$CONFIG_FILES" ;;
27394   *)   set x $CONFIG_FILES ;;
27395   esac
27396   shift
27397   for mf
27398   do
27399     # Strip MF so we end up with the name of the file.
27400     mf=`echo "$mf" | sed -e 's/:.*$//'`
27401     # Check whether this is an Automake generated Makefile or not.
27402     # We used to match only the files named `Makefile.in', but
27403     # some people rename them; so instead we look at the file content.
27404     # Grep'ing the first line is not enough: some people post-process
27405     # each Makefile.in and add a new line on top of each file to say so.
27406     # Grep'ing the whole file is not good either: AIX grep has a line
27407     # limit of 2048, but all sed's we know have understand at least 4000.
27408     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27409       dirpart=`$as_dirname -- "$mf" ||
27410 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27411          X"$mf" : 'X\(//\)[^/]' \| \
27412          X"$mf" : 'X\(//\)$' \| \
27413          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27414 $as_echo X"$mf" |
27415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27416             s//\1/
27417             q
27418           }
27419           /^X\(\/\/\)[^/].*/{
27420             s//\1/
27421             q
27422           }
27423           /^X\(\/\/\)$/{
27424             s//\1/
27425             q
27426           }
27427           /^X\(\/\).*/{
27428             s//\1/
27429             q
27430           }
27431           s/.*/./; q'`
27432     else
27433       continue
27434     fi
27435     # Extract the definition of DEPDIR, am__include, and am__quote
27436     # from the Makefile without running `make'.
27437     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27438     test -z "$DEPDIR" && continue
27439     am__include=`sed -n 's/^am__include = //p' < "$mf"`
27440     test -z "am__include" && continue
27441     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27442     # When using ansi2knr, U may be empty or an underscore; expand it
27443     U=`sed -n 's/^U = //p' < "$mf"`
27444     # Find all dependency output files, they are included files with
27445     # $(DEPDIR) in their names.  We invoke sed twice because it is the
27446     # simplest approach to changing $(DEPDIR) to its actual value in the
27447     # expansion.
27448     for file in `sed -n "
27449       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27450          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27451       # Make sure the directory exists.
27452       test -f "$dirpart/$file" && continue
27453       fdir=`$as_dirname -- "$file" ||
27454 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27455          X"$file" : 'X\(//\)[^/]' \| \
27456          X"$file" : 'X\(//\)$' \| \
27457          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27458 $as_echo X"$file" |
27459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27460             s//\1/
27461             q
27462           }
27463           /^X\(\/\/\)[^/].*/{
27464             s//\1/
27465             q
27466           }
27467           /^X\(\/\/\)$/{
27468             s//\1/
27469             q
27470           }
27471           /^X\(\/\).*/{
27472             s//\1/
27473             q
27474           }
27475           s/.*/./; q'`
27476       { as_dir=$dirpart/$fdir
27477   case $as_dir in #(
27478   -*) as_dir=./$as_dir;;
27479   esac
27480   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27481     as_dirs=
27482     while :; do
27483       case $as_dir in #(
27484       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27485       *) as_qdir=$as_dir;;
27486       esac
27487       as_dirs="'$as_qdir' $as_dirs"
27488       as_dir=`$as_dirname -- "$as_dir" ||
27489 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27490          X"$as_dir" : 'X\(//\)[^/]' \| \
27491          X"$as_dir" : 'X\(//\)$' \| \
27492          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27493 $as_echo X"$as_dir" |
27494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27495             s//\1/
27496             q
27497           }
27498           /^X\(\/\/\)[^/].*/{
27499             s//\1/
27500             q
27501           }
27502           /^X\(\/\/\)$/{
27503             s//\1/
27504             q
27505           }
27506           /^X\(\/\).*/{
27507             s//\1/
27508             q
27509           }
27510           s/.*/./; q'`
27511       test -d "$as_dir" && break
27512     done
27513     test -z "$as_dirs" || eval "mkdir $as_dirs"
27514   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27515 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27516    { (exit 1); exit 1; }; }; }
27517       # echo "creating $dirpart/$file"
27518       echo '# dummy' > "$dirpart/$file"
27519     done
27520   done
27521 }
27522  ;;
27523     "libtool":C)
27524
27525     # See if we are running on zsh, and set the options which allow our
27526     # commands through without removal of \ escapes.
27527     if test -n "${ZSH_VERSION+set}" ; then
27528       setopt NO_GLOB_SUBST
27529     fi
27530
27531     cfgfile="${ofile}T"
27532     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27533     $RM "$cfgfile"
27534
27535     cat <<_LT_EOF >> "$cfgfile"
27536 #! $SHELL
27537
27538 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27539 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27540 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27541 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27542 #
27543 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27544 #                 2006, 2007, 2008 Free Software Foundation, Inc.
27545 #   Written by Gordon Matzigkeit, 1996
27546 #
27547 #   This file is part of GNU Libtool.
27548 #
27549 # GNU Libtool is free software; you can redistribute it and/or
27550 # modify it under the terms of the GNU General Public License as
27551 # published by the Free Software Foundation; either version 2 of
27552 # the License, or (at your option) any later version.
27553 #
27554 # As a special exception to the GNU General Public License,
27555 # if you distribute this file as part of a program or library that
27556 # is built using GNU Libtool, you may include this file under the
27557 # same distribution terms that you use for the rest of that program.
27558 #
27559 # GNU Libtool is distributed in the hope that it will be useful,
27560 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27561 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27562 # GNU General Public License for more details.
27563 #
27564 # You should have received a copy of the GNU General Public License
27565 # along with GNU Libtool; see the file COPYING.  If not, a copy
27566 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27567 # obtained by writing to the Free Software Foundation, Inc.,
27568 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27569
27570
27571 # The names of the tagged configurations supported by this script.
27572 available_tags=""
27573
27574 # ### BEGIN LIBTOOL CONFIG
27575
27576 # Which release of libtool.m4 was used?
27577 macro_version=$macro_version
27578 macro_revision=$macro_revision
27579
27580 # Whether or not to build shared libraries.
27581 build_libtool_libs=$enable_shared
27582
27583 # Whether or not to build static libraries.
27584 build_old_libs=$enable_static
27585
27586 # What type of objects to build.
27587 pic_mode=$pic_mode
27588
27589 # Whether or not to optimize for fast installation.
27590 fast_install=$enable_fast_install
27591
27592 # The host system.
27593 host_alias=$host_alias
27594 host=$host
27595 host_os=$host_os
27596
27597 # The build system.
27598 build_alias=$build_alias
27599 build=$build
27600 build_os=$build_os
27601
27602 # A sed program that does not truncate output.
27603 SED=$lt_SED
27604
27605 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27606 Xsed="\$SED -e 1s/^X//"
27607
27608 # A grep program that handles long lines.
27609 GREP=$lt_GREP
27610
27611 # An ERE matcher.
27612 EGREP=$lt_EGREP
27613
27614 # A literal string matcher.
27615 FGREP=$lt_FGREP
27616
27617 # A BSD- or MS-compatible name lister.
27618 NM=$lt_NM
27619
27620 # Whether we need soft or hard links.
27621 LN_S=$lt_LN_S
27622
27623 # What is the maximum length of a command?
27624 max_cmd_len=$max_cmd_len
27625
27626 # Object file suffix (normally "o").
27627 objext=$ac_objext
27628
27629 # Executable file suffix (normally "").
27630 exeext=$exeext
27631
27632 # whether the shell understands "unset".
27633 lt_unset=$lt_unset
27634
27635 # turn spaces into newlines.
27636 SP2NL=$lt_lt_SP2NL
27637
27638 # turn newlines into spaces.
27639 NL2SP=$lt_lt_NL2SP
27640
27641 # How to create reloadable object files.
27642 reload_flag=$lt_reload_flag
27643 reload_cmds=$lt_reload_cmds
27644
27645 # An object symbol dumper.
27646 OBJDUMP=$lt_OBJDUMP
27647
27648 # Method to check whether dependent libraries are shared objects.
27649 deplibs_check_method=$lt_deplibs_check_method
27650
27651 # Command to use when deplibs_check_method == "file_magic".
27652 file_magic_cmd=$lt_file_magic_cmd
27653
27654 # The archiver.
27655 AR=$lt_AR
27656 AR_FLAGS=$lt_AR_FLAGS
27657
27658 # A symbol stripping program.
27659 STRIP=$lt_STRIP
27660
27661 # Commands used to install an old-style archive.
27662 RANLIB=$lt_RANLIB
27663 old_postinstall_cmds=$lt_old_postinstall_cmds
27664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27665
27666 # A C compiler.
27667 LTCC=$lt_CC
27668
27669 # LTCC compiler flags.
27670 LTCFLAGS=$lt_CFLAGS
27671
27672 # Take the output of nm and produce a listing of raw symbols and C names.
27673 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27674
27675 # Transform the output of nm in a proper C declaration.
27676 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27677
27678 # Transform the output of nm in a C name address pair.
27679 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27680
27681 # Transform the output of nm in a C name address pair when lib prefix is needed.
27682 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27683
27684 # The name of the directory that contains temporary libtool files.
27685 objdir=$objdir
27686
27687 # Shell to use when invoking shell scripts.
27688 SHELL=$lt_SHELL
27689
27690 # An echo program that does not interpret backslashes.
27691 ECHO=$lt_ECHO
27692
27693 # Used to examine libraries when file_magic_cmd begins with "file".
27694 MAGIC_CMD=$MAGIC_CMD
27695
27696 # Must we lock files when doing compilation?
27697 need_locks=$lt_need_locks
27698
27699 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27700 DSYMUTIL=$lt_DSYMUTIL
27701
27702 # Tool to change global to local symbols on Mac OS X.
27703 NMEDIT=$lt_NMEDIT
27704
27705 # Tool to manipulate fat objects and archives on Mac OS X.
27706 LIPO=$lt_LIPO
27707
27708 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27709 OTOOL=$lt_OTOOL
27710
27711 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27712 OTOOL64=$lt_OTOOL64
27713
27714 # Old archive suffix (normally "a").
27715 libext=$libext
27716
27717 # Shared library suffix (normally ".so").
27718 shrext_cmds=$lt_shrext_cmds
27719
27720 # The commands to extract the exported symbol list from a shared archive.
27721 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27722
27723 # Variables whose values should be saved in libtool wrapper scripts and
27724 # restored at link time.
27725 variables_saved_for_relink=$lt_variables_saved_for_relink
27726
27727 # Do we need the "lib" prefix for modules?
27728 need_lib_prefix=$need_lib_prefix
27729
27730 # Do we need a version for libraries?
27731 need_version=$need_version
27732
27733 # Library versioning type.
27734 version_type=$version_type
27735
27736 # Shared library runtime path variable.
27737 runpath_var=$runpath_var
27738
27739 # Shared library path variable.
27740 shlibpath_var=$shlibpath_var
27741
27742 # Is shlibpath searched before the hard-coded library search path?
27743 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27744
27745 # Format of library name prefix.
27746 libname_spec=$lt_libname_spec
27747
27748 # List of archive names.  First name is the real one, the rest are links.
27749 # The last name is the one that the linker finds with -lNAME
27750 library_names_spec=$lt_library_names_spec
27751
27752 # The coded name of the library, if different from the real name.
27753 soname_spec=$lt_soname_spec
27754
27755 # Command to use after installation of a shared archive.
27756 postinstall_cmds=$lt_postinstall_cmds
27757
27758 # Command to use after uninstallation of a shared archive.
27759 postuninstall_cmds=$lt_postuninstall_cmds
27760
27761 # Commands used to finish a libtool library installation in a directory.
27762 finish_cmds=$lt_finish_cmds
27763
27764 # As "finish_cmds", except a single script fragment to be evaled but
27765 # not shown.
27766 finish_eval=$lt_finish_eval
27767
27768 # Whether we should hardcode library paths into libraries.
27769 hardcode_into_libs=$hardcode_into_libs
27770
27771 # Compile-time system search path for libraries.
27772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27773
27774 # Run-time system search path for libraries.
27775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27776
27777 # Whether dlopen is supported.
27778 dlopen_support=$enable_dlopen
27779
27780 # Whether dlopen of programs is supported.
27781 dlopen_self=$enable_dlopen_self
27782
27783 # Whether dlopen of statically linked programs is supported.
27784 dlopen_self_static=$enable_dlopen_self_static
27785
27786 # Commands to strip libraries.
27787 old_striplib=$lt_old_striplib
27788 striplib=$lt_striplib
27789
27790
27791 # The linker used to build libraries.
27792 LD=$lt_LD
27793
27794 # Commands used to build an old-style archive.
27795 old_archive_cmds=$lt_old_archive_cmds
27796
27797 # A language specific compiler.
27798 CC=$lt_compiler
27799
27800 # Is the compiler the GNU compiler?
27801 with_gcc=$GCC
27802
27803 # Compiler flag to turn off builtin functions.
27804 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27805
27806 # How to pass a linker flag through the compiler.
27807 wl=$lt_lt_prog_compiler_wl
27808
27809 # Additional compiler flags for building library objects.
27810 pic_flag=$lt_lt_prog_compiler_pic
27811
27812 # Compiler flag to prevent dynamic linking.
27813 link_static_flag=$lt_lt_prog_compiler_static
27814
27815 # Does compiler simultaneously support -c and -o options?
27816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27817
27818 # Whether or not to add -lc for building shared libraries.
27819 build_libtool_need_lc=$archive_cmds_need_lc
27820
27821 # Whether or not to disallow shared libs when runtime libs are static.
27822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27823
27824 # Compiler flag to allow reflexive dlopens.
27825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27826
27827 # Compiler flag to generate shared objects directly from archives.
27828 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27829
27830 # Whether the compiler copes with passing no objects directly.
27831 compiler_needs_object=$lt_compiler_needs_object
27832
27833 # Create an old-style archive from a shared archive.
27834 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27835
27836 # Create a temporary old-style archive to link instead of a shared archive.
27837 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27838
27839 # Commands used to build a shared archive.
27840 archive_cmds=$lt_archive_cmds
27841 archive_expsym_cmds=$lt_archive_expsym_cmds
27842
27843 # Commands used to build a loadable module if different from building
27844 # a shared archive.
27845 module_cmds=$lt_module_cmds
27846 module_expsym_cmds=$lt_module_expsym_cmds
27847
27848 # Whether we are building with GNU ld or not.
27849 with_gnu_ld=$lt_with_gnu_ld
27850
27851 # Flag that allows shared libraries with undefined symbols to be built.
27852 allow_undefined_flag=$lt_allow_undefined_flag
27853
27854 # Flag that enforces no undefined symbols.
27855 no_undefined_flag=$lt_no_undefined_flag
27856
27857 # Flag to hardcode \$libdir into a binary during linking.
27858 # This must work even if \$libdir does not exist
27859 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27860
27861 # If ld is used when linking, flag to hardcode \$libdir into a binary
27862 # during linking.  This must work even if \$libdir does not exist.
27863 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27864
27865 # Whether we need a single "-rpath" flag with a separated argument.
27866 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27867
27868 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27869 # DIR into the resulting binary.
27870 hardcode_direct=$hardcode_direct
27871
27872 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27873 # DIR into the resulting binary and the resulting library dependency is
27874 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27875 # library is relocated.
27876 hardcode_direct_absolute=$hardcode_direct_absolute
27877
27878 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27879 # into the resulting binary.
27880 hardcode_minus_L=$hardcode_minus_L
27881
27882 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27883 # into the resulting binary.
27884 hardcode_shlibpath_var=$hardcode_shlibpath_var
27885
27886 # Set to "yes" if building a shared library automatically hardcodes DIR
27887 # into the library and all subsequent libraries and executables linked
27888 # against it.
27889 hardcode_automatic=$hardcode_automatic
27890
27891 # Set to yes if linker adds runtime paths of dependent libraries
27892 # to runtime path list.
27893 inherit_rpath=$inherit_rpath
27894
27895 # Whether libtool must link a program against all its dependency libraries.
27896 link_all_deplibs=$link_all_deplibs
27897
27898 # Fix the shell variable \$srcfile for the compiler.
27899 fix_srcfile_path=$lt_fix_srcfile_path
27900
27901 # Set to "yes" if exported symbols are required.
27902 always_export_symbols=$always_export_symbols
27903
27904 # The commands to list exported symbols.
27905 export_symbols_cmds=$lt_export_symbols_cmds
27906
27907 # Symbols that should not be listed in the preloaded symbols.
27908 exclude_expsyms=$lt_exclude_expsyms
27909
27910 # Symbols that must always be exported.
27911 include_expsyms=$lt_include_expsyms
27912
27913 # Commands necessary for linking programs (against libraries) with templates.
27914 prelink_cmds=$lt_prelink_cmds
27915
27916 # Specify filename containing input files.
27917 file_list_spec=$lt_file_list_spec
27918
27919 # How to hardcode a shared library path into an executable.
27920 hardcode_action=$hardcode_action
27921
27922 # ### END LIBTOOL CONFIG
27923
27924 _LT_EOF
27925
27926   case $host_os in
27927   aix3*)
27928     cat <<\_LT_EOF >> "$cfgfile"
27929 # AIX sometimes has problems with the GCC collect2 program.  For some
27930 # reason, if we set the COLLECT_NAMES environment variable, the problems
27931 # vanish in a puff of smoke.
27932 if test "X${COLLECT_NAMES+set}" != Xset; then
27933   COLLECT_NAMES=
27934   export COLLECT_NAMES
27935 fi
27936 _LT_EOF
27937     ;;
27938   esac
27939
27940
27941 ltmain="$ac_aux_dir/ltmain.sh"
27942
27943
27944   # We use sed instead of cat because bash on DJGPP gets confused if
27945   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27946   # text mode, it properly converts lines to CR/LF.  This bash problem
27947   # is reportedly fixed, but why not run on old versions too?
27948   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27949     || (rm -f "$cfgfile"; exit 1)
27950
27951   case $xsi_shell in
27952   yes)
27953     cat << \_LT_EOF >> "$cfgfile"
27954
27955 # func_dirname file append nondir_replacement
27956 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27957 # otherwise set result to NONDIR_REPLACEMENT.
27958 func_dirname ()
27959 {
27960   case ${1} in
27961     */*) func_dirname_result="${1%/*}${2}" ;;
27962     *  ) func_dirname_result="${3}" ;;
27963   esac
27964 }
27965
27966 # func_basename file
27967 func_basename ()
27968 {
27969   func_basename_result="${1##*/}"
27970 }
27971
27972 # func_dirname_and_basename file append nondir_replacement
27973 # perform func_basename and func_dirname in a single function
27974 # call:
27975 #   dirname:  Compute the dirname of FILE.  If nonempty,
27976 #             add APPEND to the result, otherwise set result
27977 #             to NONDIR_REPLACEMENT.
27978 #             value returned in "$func_dirname_result"
27979 #   basename: Compute filename of FILE.
27980 #             value retuned in "$func_basename_result"
27981 # Implementation must be kept synchronized with func_dirname
27982 # and func_basename. For efficiency, we do not delegate to
27983 # those functions but instead duplicate the functionality here.
27984 func_dirname_and_basename ()
27985 {
27986   case ${1} in
27987     */*) func_dirname_result="${1%/*}${2}" ;;
27988     *  ) func_dirname_result="${3}" ;;
27989   esac
27990   func_basename_result="${1##*/}"
27991 }
27992
27993 # func_stripname prefix suffix name
27994 # strip PREFIX and SUFFIX off of NAME.
27995 # PREFIX and SUFFIX must not contain globbing or regex special
27996 # characters, hashes, percent signs, but SUFFIX may contain a leading
27997 # dot (in which case that matches only a dot).
27998 func_stripname ()
27999 {
28000   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28001   # positional parameters, so assign one to ordinary parameter first.
28002   func_stripname_result=${3}
28003   func_stripname_result=${func_stripname_result#"${1}"}
28004   func_stripname_result=${func_stripname_result%"${2}"}
28005 }
28006
28007 # func_opt_split
28008 func_opt_split ()
28009 {
28010   func_opt_split_opt=${1%%=*}
28011   func_opt_split_arg=${1#*=}
28012 }
28013
28014 # func_lo2o object
28015 func_lo2o ()
28016 {
28017   case ${1} in
28018     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28019     *)    func_lo2o_result=${1} ;;
28020   esac
28021 }
28022
28023 # func_xform libobj-or-source
28024 func_xform ()
28025 {
28026   func_xform_result=${1%.*}.lo
28027 }
28028
28029 # func_arith arithmetic-term...
28030 func_arith ()
28031 {
28032   func_arith_result=$(( $* ))
28033 }
28034
28035 # func_len string
28036 # STRING may not start with a hyphen.
28037 func_len ()
28038 {
28039   func_len_result=${#1}
28040 }
28041
28042 _LT_EOF
28043     ;;
28044   *) # Bourne compatible functions.
28045     cat << \_LT_EOF >> "$cfgfile"
28046
28047 # func_dirname file append nondir_replacement
28048 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
28049 # otherwise set result to NONDIR_REPLACEMENT.
28050 func_dirname ()
28051 {
28052   # Extract subdirectory from the argument.
28053   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
28054   if test "X$func_dirname_result" = "X${1}"; then
28055     func_dirname_result="${3}"
28056   else
28057     func_dirname_result="$func_dirname_result${2}"
28058   fi
28059 }
28060
28061 # func_basename file
28062 func_basename ()
28063 {
28064   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
28065 }
28066
28067
28068 # func_stripname prefix suffix name
28069 # strip PREFIX and SUFFIX off of NAME.
28070 # PREFIX and SUFFIX must not contain globbing or regex special
28071 # characters, hashes, percent signs, but SUFFIX may contain a leading
28072 # dot (in which case that matches only a dot).
28073 # func_strip_suffix prefix name
28074 func_stripname ()
28075 {
28076   case ${2} in
28077     .*) func_stripname_result=`$ECHO "X${3}" \
28078            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
28079     *)  func_stripname_result=`$ECHO "X${3}" \
28080            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
28081   esac
28082 }
28083
28084 # sed scripts:
28085 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28086 my_sed_long_arg='1s/^-[^=]*=//'
28087
28088 # func_opt_split
28089 func_opt_split ()
28090 {
28091   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
28092   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
28093 }
28094
28095 # func_lo2o object
28096 func_lo2o ()
28097 {
28098   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
28099 }
28100
28101 # func_xform libobj-or-source
28102 func_xform ()
28103 {
28104   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
28105 }
28106
28107 # func_arith arithmetic-term...
28108 func_arith ()
28109 {
28110   func_arith_result=`expr "$@"`
28111 }
28112
28113 # func_len string
28114 # STRING may not start with a hyphen.
28115 func_len ()
28116 {
28117   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28118 }
28119
28120 _LT_EOF
28121 esac
28122
28123 case $lt_shell_append in
28124   yes)
28125     cat << \_LT_EOF >> "$cfgfile"
28126
28127 # func_append var value
28128 # Append VALUE to the end of shell variable VAR.
28129 func_append ()
28130 {
28131   eval "$1+=\$2"
28132 }
28133 _LT_EOF
28134     ;;
28135   *)
28136     cat << \_LT_EOF >> "$cfgfile"
28137
28138 # func_append var value
28139 # Append VALUE to the end of shell variable VAR.
28140 func_append ()
28141 {
28142   eval "$1=\$$1\$2"
28143 }
28144
28145 _LT_EOF
28146     ;;
28147   esac
28148
28149
28150   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28151     || (rm -f "$cfgfile"; exit 1)
28152
28153   mv -f "$cfgfile" "$ofile" ||
28154     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28155   chmod +x "$ofile"
28156
28157  ;;
28158
28159   esac
28160 done # for ac_tag
28161
28162
28163 { (exit 0); exit 0; }
28164 _ACEOF
28165 chmod +x $CONFIG_STATUS
28166 ac_clean_files=$ac_clean_files_save
28167
28168 test $ac_write_fail = 0 ||
28169   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28170 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28171    { (exit 1); exit 1; }; }
28172
28173
28174 # configure is writing to config.log, and then calls config.status.
28175 # config.status does its own redirection, appending to config.log.
28176 # Unfortunately, on DOS this fails, as config.log is still kept open
28177 # by configure, so config.status won't be able to write to it; its
28178 # output is simply discarded.  So we exec the FD to /dev/null,
28179 # effectively closing config.log, so it can be properly (re)opened and
28180 # appended to by config.status.  When coming back to configure, we
28181 # need to make the FD available again.
28182 if test "$no_create" != yes; then
28183   ac_cs_success=:
28184   ac_config_status_args=
28185   test "$silent" = yes &&
28186     ac_config_status_args="$ac_config_status_args --quiet"
28187   exec 5>/dev/null
28188   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28189   exec 5>>config.log
28190   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28191   # would make configure fail if this is the last instruction.
28192   $ac_cs_success || { (exit 1); exit 1; }
28193 fi
28194 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28195   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28196 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28197 fi
28198