d63c1a1dc6f2a3f16176d727a19051d0396ae44f
[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_ZFS
791 DEBUG_STACKFLAGS
792 DEBUG_CFLAGS
793 CONFIG_KERNEL_FALSE
794 CONFIG_KERNEL_TRUE
795 CONFIG_USER_FALSE
796 CONFIG_USER_TRUE
797 FRAME_LARGER_THAN
798 LIBSELINUX
799 LIBBLKID
800 LIBUUID
801 ZLIB
802 udevruledir
803 udevdir
804 KERNELCPPFLAGS
805 KERNELMAKE_PARAMS
806 SPL_SYMBOLS
807 SPL_VERSION
808 SPL_OBJ
809 SPL
810 LINUX_SYMBOLS
811 LINUX_VERSION
812 LINUX_OBJ
813 LINUX
814 NO_UNUSED_BUT_SET_VARIABLE
815 ZFS_CONFIG
816 TARGET_ASM_DIR
817 MAKEPKG_VERSION
818 MAKEPKG
819 HAVE_MAKEPKG
820 PACMAN_VERSION
821 PACMAN
822 HAVE_PACMAN
823 ALIEN_VERSION
824 ALIEN
825 HAVE_ALIEN
826 DPKGBUILD_VERSION
827 DPKGBUILD
828 HAVE_DPKGBUILD
829 DPKG_VERSION
830 DPKG
831 HAVE_DPKG
832 RPMBUILD_VERSION
833 RPMBUILD
834 HAVE_RPMBUILD
835 RPM_VERSION
836 RPM
837 HAVE_RPM
838 DEFAULT_INIT_SCRIPT
839 DEFAULT_INIT_DIR
840 DEFAULT_PACKAGE
841 VENDOR
842 am__fastdepCCAS_FALSE
843 am__fastdepCCAS_TRUE
844 CCASDEPMODE
845 CCASFLAGS
846 CCAS
847 CPP
848 OTOOL64
849 OTOOL
850 LIPO
851 NMEDIT
852 DSYMUTIL
853 lt_ECHO
854 RANLIB
855 AR
856 OBJDUMP
857 LN_S
858 NM
859 ac_ct_DUMPBIN
860 DUMPBIN
861 LD
862 FGREP
863 EGREP
864 GREP
865 SED
866 LIBTOOL
867 am__fastdepCC_FALSE
868 am__fastdepCC_TRUE
869 CCDEPMODE
870 AMDEPBACKSLASH
871 AMDEP_FALSE
872 AMDEP_TRUE
873 am__quote
874 am__include
875 DEPDIR
876 OBJEXT
877 EXEEXT
878 ac_ct_CC
879 CPPFLAGS
880 LDFLAGS
881 CFLAGS
882 CC
883 am__untar
884 am__tar
885 AMTAR
886 am__leading_dot
887 SET_MAKE
888 AWK
889 mkdir_p
890 MKDIR_P
891 INSTALL_STRIP_PROGRAM
892 STRIP
893 install_sh
894 MAKEINFO
895 AUTOHEADER
896 AUTOMAKE
897 AUTOCONF
898 ACLOCAL
899 VERSION
900 PACKAGE
901 CYGPATH_W
902 am__isrc
903 INSTALL_DATA
904 INSTALL_SCRIPT
905 INSTALL_PROGRAM
906 AM_BACKSLASH
907 AM_DEFAULT_VERBOSITY
908 MAINT
909 MAINTAINER_MODE_FALSE
910 MAINTAINER_MODE_TRUE
911 target_os
912 target_vendor
913 target_cpu
914 target
915 host_os
916 host_vendor
917 host_cpu
918 host
919 build_os
920 build_vendor
921 build_cpu
922 build
923 ZFS_META_LT_AGE
924 ZFS_META_LT_REVISION
925 ZFS_META_LT_CURRENT
926 ZFS_META_AUTHOR
927 ZFS_META_DATA
928 ZFS_META_ALIAS
929 ZFS_META_LICENSE
930 ZFS_META_RELEASE
931 ZFS_META_VERSION
932 ZFS_META_NAME
933 target_alias
934 host_alias
935 build_alias
936 LIBS
937 ECHO_T
938 ECHO_N
939 ECHO_C
940 DEFS
941 mandir
942 localedir
943 libdir
944 psdir
945 pdfdir
946 dvidir
947 htmldir
948 infodir
949 docdir
950 oldincludedir
951 includedir
952 localstatedir
953 sharedstatedir
954 sysconfdir
955 datadir
956 datarootdir
957 libexecdir
958 sbindir
959 bindir
960 program_transform_name
961 prefix
962 exec_prefix
963 PACKAGE_BUGREPORT
964 PACKAGE_STRING
965 PACKAGE_VERSION
966 PACKAGE_TARNAME
967 PACKAGE_NAME
968 PATH_SEPARATOR
969 SHELL'
970 ac_subst_files=''
971 ac_user_opts='
972 enable_option_checking
973 enable_maintainer_mode
974 enable_silent_rules
975 enable_dependency_tracking
976 enable_shared
977 enable_static
978 with_pic
979 enable_fast_install
980 with_gnu_ld
981 enable_libtool_lock
982 with_config
983 with_linux
984 with_linux_obj
985 with_spl
986 with_spl_obj
987 with_udevdir
988 with_udevruledir
989 with_blkid
990 with_selinux
991 enable_debug
992 '
993       ac_precious_vars='build_alias
994 host_alias
995 target_alias
996 CC
997 CFLAGS
998 LDFLAGS
999 LIBS
1000 CPPFLAGS
1001 CPP
1002 CCAS
1003 CCASFLAGS'
1004
1005
1006 # Initialize some variables set by options.
1007 ac_init_help=
1008 ac_init_version=false
1009 ac_unrecognized_opts=
1010 ac_unrecognized_sep=
1011 # The variables have the same names as the options, with
1012 # dashes changed to underlines.
1013 cache_file=/dev/null
1014 exec_prefix=NONE
1015 no_create=
1016 no_recursion=
1017 prefix=NONE
1018 program_prefix=NONE
1019 program_suffix=NONE
1020 program_transform_name=s,x,x,
1021 silent=
1022 site=
1023 srcdir=
1024 verbose=
1025 x_includes=NONE
1026 x_libraries=NONE
1027
1028 # Installation directory options.
1029 # These are left unexpanded so users can "make install exec_prefix=/foo"
1030 # and all the variables that are supposed to be based on exec_prefix
1031 # by default will actually change.
1032 # Use braces instead of parens because sh, perl, etc. also accept them.
1033 # (The list follows the same order as the GNU Coding Standards.)
1034 bindir='${exec_prefix}/bin'
1035 sbindir='${exec_prefix}/sbin'
1036 libexecdir='${exec_prefix}/libexec'
1037 datarootdir='${prefix}/share'
1038 datadir='${datarootdir}'
1039 sysconfdir='${prefix}/etc'
1040 sharedstatedir='${prefix}/com'
1041 localstatedir='${prefix}/var'
1042 includedir='${prefix}/include'
1043 oldincludedir='/usr/include'
1044 docdir='${datarootdir}/doc/${PACKAGE}'
1045 infodir='${datarootdir}/info'
1046 htmldir='${docdir}'
1047 dvidir='${docdir}'
1048 pdfdir='${docdir}'
1049 psdir='${docdir}'
1050 libdir='${exec_prefix}/lib'
1051 localedir='${datarootdir}/locale'
1052 mandir='${datarootdir}/man'
1053
1054 ac_prev=
1055 ac_dashdash=
1056 for ac_option
1057 do
1058   # If the previous option needs an argument, assign it.
1059   if test -n "$ac_prev"; then
1060     eval $ac_prev=\$ac_option
1061     ac_prev=
1062     continue
1063   fi
1064
1065   case $ac_option in
1066   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067   *)    ac_optarg=yes ;;
1068   esac
1069
1070   # Accept the important Cygnus configure options, so we can diagnose typos.
1071
1072   case $ac_dashdash$ac_option in
1073   --)
1074     ac_dashdash=yes ;;
1075
1076   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1077     ac_prev=bindir ;;
1078   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1079     bindir=$ac_optarg ;;
1080
1081   -build | --build | --buil | --bui | --bu)
1082     ac_prev=build_alias ;;
1083   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1084     build_alias=$ac_optarg ;;
1085
1086   -cache-file | --cache-file | --cache-fil | --cache-fi \
1087   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1088     ac_prev=cache_file ;;
1089   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1090   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1091     cache_file=$ac_optarg ;;
1092
1093   --config-cache | -C)
1094     cache_file=config.cache ;;
1095
1096   -datadir | --datadir | --datadi | --datad)
1097     ac_prev=datadir ;;
1098   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1099     datadir=$ac_optarg ;;
1100
1101   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1102   | --dataroo | --dataro | --datar)
1103     ac_prev=datarootdir ;;
1104   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1105   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1106     datarootdir=$ac_optarg ;;
1107
1108   -disable-* | --disable-*)
1109     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1113    { (exit 1); exit 1; }; }
1114     ac_useropt_orig=$ac_useropt
1115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116     case $ac_user_opts in
1117       *"
1118 "enable_$ac_useropt"
1119 "*) ;;
1120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1121          ac_unrecognized_sep=', ';;
1122     esac
1123     eval enable_$ac_useropt=no ;;
1124
1125   -docdir | --docdir | --docdi | --doc | --do)
1126     ac_prev=docdir ;;
1127   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1128     docdir=$ac_optarg ;;
1129
1130   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1131     ac_prev=dvidir ;;
1132   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1133     dvidir=$ac_optarg ;;
1134
1135   -enable-* | --enable-*)
1136     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_useropt_orig=$ac_useropt
1142     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143     case $ac_user_opts in
1144       *"
1145 "enable_$ac_useropt"
1146 "*) ;;
1147       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1148          ac_unrecognized_sep=', ';;
1149     esac
1150     eval enable_$ac_useropt=\$ac_optarg ;;
1151
1152   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1153   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1154   | --exec | --exe | --ex)
1155     ac_prev=exec_prefix ;;
1156   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1157   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1158   | --exec=* | --exe=* | --ex=*)
1159     exec_prefix=$ac_optarg ;;
1160
1161   -gas | --gas | --ga | --g)
1162     # Obsolete; use --with-gas.
1163     with_gas=yes ;;
1164
1165   -help | --help | --hel | --he | -h)
1166     ac_init_help=long ;;
1167   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1168     ac_init_help=recursive ;;
1169   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1170     ac_init_help=short ;;
1171
1172   -host | --host | --hos | --ho)
1173     ac_prev=host_alias ;;
1174   -host=* | --host=* | --hos=* | --ho=*)
1175     host_alias=$ac_optarg ;;
1176
1177   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1178     ac_prev=htmldir ;;
1179   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1180   | --ht=*)
1181     htmldir=$ac_optarg ;;
1182
1183   -includedir | --includedir | --includedi | --included | --include \
1184   | --includ | --inclu | --incl | --inc)
1185     ac_prev=includedir ;;
1186   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1187   | --includ=* | --inclu=* | --incl=* | --inc=*)
1188     includedir=$ac_optarg ;;
1189
1190   -infodir | --infodir | --infodi | --infod | --info | --inf)
1191     ac_prev=infodir ;;
1192   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1193     infodir=$ac_optarg ;;
1194
1195   -libdir | --libdir | --libdi | --libd)
1196     ac_prev=libdir ;;
1197   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1198     libdir=$ac_optarg ;;
1199
1200   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1201   | --libexe | --libex | --libe)
1202     ac_prev=libexecdir ;;
1203   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1204   | --libexe=* | --libex=* | --libe=*)
1205     libexecdir=$ac_optarg ;;
1206
1207   -localedir | --localedir | --localedi | --localed | --locale)
1208     ac_prev=localedir ;;
1209   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1210     localedir=$ac_optarg ;;
1211
1212   -localstatedir | --localstatedir | --localstatedi | --localstated \
1213   | --localstate | --localstat | --localsta | --localst | --locals)
1214     ac_prev=localstatedir ;;
1215   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1216   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1217     localstatedir=$ac_optarg ;;
1218
1219   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1220     ac_prev=mandir ;;
1221   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1222     mandir=$ac_optarg ;;
1223
1224   -nfp | --nfp | --nf)
1225     # Obsolete; use --without-fp.
1226     with_fp=no ;;
1227
1228   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1229   | --no-cr | --no-c | -n)
1230     no_create=yes ;;
1231
1232   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1233   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1234     no_recursion=yes ;;
1235
1236   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1237   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1238   | --oldin | --oldi | --old | --ol | --o)
1239     ac_prev=oldincludedir ;;
1240   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1241   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1242   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1243     oldincludedir=$ac_optarg ;;
1244
1245   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1246     ac_prev=prefix ;;
1247   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1248     prefix=$ac_optarg ;;
1249
1250   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1251   | --program-pre | --program-pr | --program-p)
1252     ac_prev=program_prefix ;;
1253   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1254   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1255     program_prefix=$ac_optarg ;;
1256
1257   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1258   | --program-suf | --program-su | --program-s)
1259     ac_prev=program_suffix ;;
1260   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1261   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1262     program_suffix=$ac_optarg ;;
1263
1264   -program-transform-name | --program-transform-name \
1265   | --program-transform-nam | --program-transform-na \
1266   | --program-transform-n | --program-transform- \
1267   | --program-transform | --program-transfor \
1268   | --program-transfo | --program-transf \
1269   | --program-trans | --program-tran \
1270   | --progr-tra | --program-tr | --program-t)
1271     ac_prev=program_transform_name ;;
1272   -program-transform-name=* | --program-transform-name=* \
1273   | --program-transform-nam=* | --program-transform-na=* \
1274   | --program-transform-n=* | --program-transform-=* \
1275   | --program-transform=* | --program-transfor=* \
1276   | --program-transfo=* | --program-transf=* \
1277   | --program-trans=* | --program-tran=* \
1278   | --progr-tra=* | --program-tr=* | --program-t=*)
1279     program_transform_name=$ac_optarg ;;
1280
1281   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1282     ac_prev=pdfdir ;;
1283   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1284     pdfdir=$ac_optarg ;;
1285
1286   -psdir | --psdir | --psdi | --psd | --ps)
1287     ac_prev=psdir ;;
1288   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1289     psdir=$ac_optarg ;;
1290
1291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1292   | -silent | --silent | --silen | --sile | --sil)
1293     silent=yes ;;
1294
1295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1296     ac_prev=sbindir ;;
1297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1298   | --sbi=* | --sb=*)
1299     sbindir=$ac_optarg ;;
1300
1301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1303   | --sharedst | --shareds | --shared | --share | --shar \
1304   | --sha | --sh)
1305     ac_prev=sharedstatedir ;;
1306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1309   | --sha=* | --sh=*)
1310     sharedstatedir=$ac_optarg ;;
1311
1312   -site | --site | --sit)
1313     ac_prev=site ;;
1314   -site=* | --site=* | --sit=*)
1315     site=$ac_optarg ;;
1316
1317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1318     ac_prev=srcdir ;;
1319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1320     srcdir=$ac_optarg ;;
1321
1322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1323   | --syscon | --sysco | --sysc | --sys | --sy)
1324     ac_prev=sysconfdir ;;
1325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1327     sysconfdir=$ac_optarg ;;
1328
1329   -target | --target | --targe | --targ | --tar | --ta | --t)
1330     ac_prev=target_alias ;;
1331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1332     target_alias=$ac_optarg ;;
1333
1334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1335     verbose=yes ;;
1336
1337   -version | --version | --versio | --versi | --vers | -V)
1338     ac_init_version=: ;;
1339
1340   -with-* | --with-*)
1341     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1342     # Reject names that are not valid shell variable names.
1343     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1345    { (exit 1); exit 1; }; }
1346     ac_useropt_orig=$ac_useropt
1347     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348     case $ac_user_opts in
1349       *"
1350 "with_$ac_useropt"
1351 "*) ;;
1352       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1353          ac_unrecognized_sep=', ';;
1354     esac
1355     eval with_$ac_useropt=\$ac_optarg ;;
1356
1357   -without-* | --without-*)
1358     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1359     # Reject names that are not valid shell variable names.
1360     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1362    { (exit 1); exit 1; }; }
1363     ac_useropt_orig=$ac_useropt
1364     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365     case $ac_user_opts in
1366       *"
1367 "with_$ac_useropt"
1368 "*) ;;
1369       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1370          ac_unrecognized_sep=', ';;
1371     esac
1372     eval with_$ac_useropt=no ;;
1373
1374   --x)
1375     # Obsolete; use --with-x.
1376     with_x=yes ;;
1377
1378   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1379   | --x-incl | --x-inc | --x-in | --x-i)
1380     ac_prev=x_includes ;;
1381   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1382   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1383     x_includes=$ac_optarg ;;
1384
1385   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1386   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1387     ac_prev=x_libraries ;;
1388   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1389   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1390     x_libraries=$ac_optarg ;;
1391
1392   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1393 Try \`$0 --help' for more information." >&2
1394    { (exit 1); exit 1; }; }
1395     ;;
1396
1397   *=*)
1398     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1399     # Reject names that are not valid shell variable names.
1400     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1401       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1402    { (exit 1); exit 1; }; }
1403     eval $ac_envvar=\$ac_optarg
1404     export $ac_envvar ;;
1405
1406   *)
1407     # FIXME: should be removed in autoconf 3.0.
1408     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1409     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1410       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1411     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1412     ;;
1413
1414   esac
1415 done
1416
1417 if test -n "$ac_prev"; then
1418   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1419   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1420    { (exit 1); exit 1; }; }
1421 fi
1422
1423 if test -n "$ac_unrecognized_opts"; then
1424   case $enable_option_checking in
1425     no) ;;
1426     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1427    { (exit 1); exit 1; }; } ;;
1428     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429   esac
1430 fi
1431
1432 # Check all directory arguments for consistency.
1433 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434                 datadir sysconfdir sharedstatedir localstatedir includedir \
1435                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436                 libdir localedir mandir
1437 do
1438   eval ac_val=\$$ac_var
1439   # Remove trailing slashes.
1440   case $ac_val in
1441     */ )
1442       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443       eval $ac_var=\$ac_val;;
1444   esac
1445   # Be sure to have absolute directory names.
1446   case $ac_val in
1447     [\\/$]* | ?:[\\/]* )  continue;;
1448     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1449   esac
1450   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1451    { (exit 1); exit 1; }; }
1452 done
1453
1454 # There might be people who depend on the old broken behavior: `$host'
1455 # used to hold the argument of --host etc.
1456 # FIXME: To remove some day.
1457 build=$build_alias
1458 host=$host_alias
1459 target=$target_alias
1460
1461 # FIXME: To remove some day.
1462 if test "x$host_alias" != x; then
1463   if test "x$build_alias" = x; then
1464     cross_compiling=maybe
1465     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1466     If a cross compiler is detected then cross compile mode will be used." >&2
1467   elif test "x$build_alias" != "x$host_alias"; then
1468     cross_compiling=yes
1469   fi
1470 fi
1471
1472 ac_tool_prefix=
1473 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1474
1475 test "$silent" = yes && exec 6>/dev/null
1476
1477
1478 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1479 ac_ls_di=`ls -di .` &&
1480 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1481   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1482    { (exit 1); exit 1; }; }
1483 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1484   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1485    { (exit 1); exit 1; }; }
1486
1487
1488 # Find the source files, if location was not specified.
1489 if test -z "$srcdir"; then
1490   ac_srcdir_defaulted=yes
1491   # Try the directory containing this script, then the parent directory.
1492   ac_confdir=`$as_dirname -- "$as_myself" ||
1493 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1494          X"$as_myself" : 'X\(//\)[^/]' \| \
1495          X"$as_myself" : 'X\(//\)$' \| \
1496          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1497 $as_echo X"$as_myself" |
1498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1499             s//\1/
1500             q
1501           }
1502           /^X\(\/\/\)[^/].*/{
1503             s//\1/
1504             q
1505           }
1506           /^X\(\/\/\)$/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\).*/{
1511             s//\1/
1512             q
1513           }
1514           s/.*/./; q'`
1515   srcdir=$ac_confdir
1516   if test ! -r "$srcdir/$ac_unique_file"; then
1517     srcdir=..
1518   fi
1519 else
1520   ac_srcdir_defaulted=no
1521 fi
1522 if test ! -r "$srcdir/$ac_unique_file"; then
1523   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1524   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1525    { (exit 1); exit 1; }; }
1526 fi
1527 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1528 ac_abs_confdir=`(
1529         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1530    { (exit 1); exit 1; }; }
1531         pwd)`
1532 # When building in place, set srcdir=.
1533 if test "$ac_abs_confdir" = "$ac_pwd"; then
1534   srcdir=.
1535 fi
1536 # Remove unnecessary trailing slashes from srcdir.
1537 # Double slashes in file names in object file debugging info
1538 # mess up M-x gdb in Emacs.
1539 case $srcdir in
1540 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541 esac
1542 for ac_var in $ac_precious_vars; do
1543   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1544   eval ac_env_${ac_var}_value=\$${ac_var}
1545   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1546   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1547 done
1548
1549 #
1550 # Report the --help message.
1551 #
1552 if test "$ac_init_help" = "long"; then
1553   # Omit some internal or obsolete options to make the list less imposing.
1554   # This message is too long to be a string in the A/UX 3.1 sh.
1555   cat <<_ACEOF
1556 \`configure' configures this package to adapt to many kinds of systems.
1557
1558 Usage: $0 [OPTION]... [VAR=VALUE]...
1559
1560 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1561 VAR=VALUE.  See below for descriptions of some of the useful variables.
1562
1563 Defaults for the options are specified in brackets.
1564
1565 Configuration:
1566   -h, --help              display this help and exit
1567       --help=short        display options specific to this package
1568       --help=recursive    display the short help of all the included packages
1569   -V, --version           display version information and exit
1570   -q, --quiet, --silent   do not print \`checking...' messages
1571       --cache-file=FILE   cache test results in FILE [disabled]
1572   -C, --config-cache      alias for \`--cache-file=config.cache'
1573   -n, --no-create         do not create output files
1574       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1575
1576 Installation directories:
1577   --prefix=PREFIX         install architecture-independent files in PREFIX
1578                           [$ac_default_prefix]
1579   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1580                           [PREFIX]
1581
1582 By default, \`make install' will install all the files in
1583 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1584 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1585 for instance \`--prefix=\$HOME'.
1586
1587 For better control, use the options below.
1588
1589 Fine tuning of the installation directories:
1590   --bindir=DIR            user executables [EPREFIX/bin]
1591   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1592   --libexecdir=DIR        program executables [EPREFIX/libexec]
1593   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1594   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1595   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1596   --libdir=DIR            object code libraries [EPREFIX/lib]
1597   --includedir=DIR        C header files [PREFIX/include]
1598   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1599   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1600   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1601   --infodir=DIR           info documentation [DATAROOTDIR/info]
1602   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1603   --mandir=DIR            man documentation [DATAROOTDIR/man]
1604   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1605   --htmldir=DIR           html documentation [DOCDIR]
1606   --dvidir=DIR            dvi documentation [DOCDIR]
1607   --pdfdir=DIR            pdf documentation [DOCDIR]
1608   --psdir=DIR             ps documentation [DOCDIR]
1609 _ACEOF
1610
1611   cat <<\_ACEOF
1612
1613 Program names:
1614   --program-prefix=PREFIX            prepend PREFIX to installed program names
1615   --program-suffix=SUFFIX            append SUFFIX to installed program names
1616   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1617
1618 System types:
1619   --build=BUILD     configure for building on BUILD [guessed]
1620   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1621   --target=TARGET   configure for building compilers for TARGET [HOST]
1622 _ACEOF
1623 fi
1624
1625 if test -n "$ac_init_help"; then
1626
1627   cat <<\_ACEOF
1628
1629 Optional Features:
1630   --disable-option-checking  ignore unrecognized --enable/--with options
1631   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1632   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1633   --enable-maintainer-mode  enable make rules and dependencies not useful
1634                           (and sometimes confusing) to the casual installer
1635   --enable-silent-rules          less verbose build output (undo: `make V=1')
1636   --disable-silent-rules         verbose build output (undo: `make V=0')
1637   --disable-dependency-tracking  speeds up one-time build
1638   --enable-dependency-tracking   do not reject slow dependency extractors
1639   --enable-shared[=PKGS]  build shared libraries [default=yes]
1640   --enable-static[=PKGS]  build static libraries [default=yes]
1641   --enable-fast-install[=PKGS]
1642                           optimize for fast installation [default=yes]
1643   --disable-libtool-lock  avoid locking (might break parallel builds)
1644   --enable-debug          Enable generic debug support [default=no]
1645
1646 Optional Packages:
1647   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1648   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1649   --with-pic              try to use only PIC/non-PIC objects [default=use
1650                           both]
1651   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1652   --with-config=CONFIG    Config file 'kernel|user|all|srpm'
1653   --with-linux=PATH       Path to kernel source
1654   --with-linux-obj=PATH   Path to kernel build objects
1655   --with-spl=PATH         Path to spl source
1656   --with-spl-obj=PATH     Path to spl build objects
1657   --with-udevdir=DIR      install udev helpers [EPREFIX/lib/udev]
1658   --with-udevruledir=DIR  install udev rules [UDEVDIR/rules.d]
1659   --with-blkid            support blkid caching [default=check]
1660   --with-selinux          support selinux [default=check]
1661
1662 Some influential environment variables:
1663   CC          C compiler command
1664   CFLAGS      C compiler flags
1665   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1666               nonstandard directory <lib dir>
1667   LIBS        libraries to pass to the linker, e.g. -l<library>
1668   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1669               you have headers in a nonstandard directory <include dir>
1670   CPP         C preprocessor
1671   CCAS        assembler compiler command (defaults to CC)
1672   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1673
1674 Use these variables to override the choices made by `configure' or to help
1675 it to find libraries and programs with nonstandard names/locations.
1676
1677 _ACEOF
1678 ac_status=$?
1679 fi
1680
1681 if test "$ac_init_help" = "recursive"; then
1682   # If there are subdirs, report their specific --help.
1683   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1684     test -d "$ac_dir" ||
1685       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1686       continue
1687     ac_builddir=.
1688
1689 case "$ac_dir" in
1690 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *)
1692   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1693   # A ".." for each directory in $ac_dir_suffix.
1694   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1695   case $ac_top_builddir_sub in
1696   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698   esac ;;
1699 esac
1700 ac_abs_top_builddir=$ac_pwd
1701 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1702 # for backward compatibility:
1703 ac_top_builddir=$ac_top_build_prefix
1704
1705 case $srcdir in
1706   .)  # We are building in place.
1707     ac_srcdir=.
1708     ac_top_srcdir=$ac_top_builddir_sub
1709     ac_abs_top_srcdir=$ac_pwd ;;
1710   [\\/]* | ?:[\\/]* )  # Absolute name.
1711     ac_srcdir=$srcdir$ac_dir_suffix;
1712     ac_top_srcdir=$srcdir
1713     ac_abs_top_srcdir=$srcdir ;;
1714   *) # Relative name.
1715     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1716     ac_top_srcdir=$ac_top_build_prefix$srcdir
1717     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1718 esac
1719 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1720
1721     cd "$ac_dir" || { ac_status=$?; continue; }
1722     # Check for guested configure.
1723     if test -f "$ac_srcdir/configure.gnu"; then
1724       echo &&
1725       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1726     elif test -f "$ac_srcdir/configure"; then
1727       echo &&
1728       $SHELL "$ac_srcdir/configure" --help=recursive
1729     else
1730       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731     fi || ac_status=$?
1732     cd "$ac_pwd" || { ac_status=$?; break; }
1733   done
1734 fi
1735
1736 test -n "$ac_init_help" && exit $ac_status
1737 if $ac_init_version; then
1738   cat <<\_ACEOF
1739 configure
1740 generated by GNU Autoconf 2.63
1741
1742 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1743 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1744 This configure script is free software; the Free Software Foundation
1745 gives unlimited permission to copy, distribute and modify it.
1746 _ACEOF
1747   exit
1748 fi
1749 cat >config.log <<_ACEOF
1750 This file contains any messages produced by compilers while
1751 running configure, to aid debugging if configure makes a mistake.
1752
1753 It was created by $as_me, which was
1754 generated by GNU Autoconf 2.63.  Invocation command line was
1755
1756   $ $0 $@
1757
1758 _ACEOF
1759 exec 5>>config.log
1760 {
1761 cat <<_ASUNAME
1762 ## --------- ##
1763 ## Platform. ##
1764 ## --------- ##
1765
1766 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1767 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1768 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1769 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1770 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1771
1772 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1773 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1774
1775 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1776 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1777 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1778 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1779 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1780 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1781 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1782
1783 _ASUNAME
1784
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1787 do
1788   IFS=$as_save_IFS
1789   test -z "$as_dir" && as_dir=.
1790   $as_echo "PATH: $as_dir"
1791 done
1792 IFS=$as_save_IFS
1793
1794 } >&5
1795
1796 cat >&5 <<_ACEOF
1797
1798
1799 ## ----------- ##
1800 ## Core tests. ##
1801 ## ----------- ##
1802
1803 _ACEOF
1804
1805
1806 # Keep a trace of the command line.
1807 # Strip out --no-create and --no-recursion so they do not pile up.
1808 # Strip out --silent because we don't want to record it for future runs.
1809 # Also quote any args containing shell meta-characters.
1810 # Make two passes to allow for proper duplicate-argument suppression.
1811 ac_configure_args=
1812 ac_configure_args0=
1813 ac_configure_args1=
1814 ac_must_keep_next=false
1815 for ac_pass in 1 2
1816 do
1817   for ac_arg
1818   do
1819     case $ac_arg in
1820     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1821     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1822     | -silent | --silent | --silen | --sile | --sil)
1823       continue ;;
1824     *\'*)
1825       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1826     esac
1827     case $ac_pass in
1828     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1829     2)
1830       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1831       if test $ac_must_keep_next = true; then
1832         ac_must_keep_next=false # Got value, back to normal.
1833       else
1834         case $ac_arg in
1835           *=* | --config-cache | -C | -disable-* | --disable-* \
1836           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1837           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1838           | -with-* | --with-* | -without-* | --without-* | --x)
1839             case "$ac_configure_args0 " in
1840               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1841             esac
1842             ;;
1843           -* ) ac_must_keep_next=true ;;
1844         esac
1845       fi
1846       ac_configure_args="$ac_configure_args '$ac_arg'"
1847       ;;
1848     esac
1849   done
1850 done
1851 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1852 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1853
1854 # When interrupted or exit'd, cleanup temporary files, and complete
1855 # config.log.  We remove comments because anyway the quotes in there
1856 # would cause problems or look ugly.
1857 # WARNING: Use '\'' to represent an apostrophe within the trap.
1858 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1859 trap 'exit_status=$?
1860   # Save into config.log some information that might help in debugging.
1861   {
1862     echo
1863
1864     cat <<\_ASBOX
1865 ## ---------------- ##
1866 ## Cache variables. ##
1867 ## ---------------- ##
1868 _ASBOX
1869     echo
1870     # The following way of writing the cache mishandles newlines in values,
1871 (
1872   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1873     eval ac_val=\$$ac_var
1874     case $ac_val in #(
1875     *${as_nl}*)
1876       case $ac_var in #(
1877       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1878 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1879       esac
1880       case $ac_var in #(
1881       _ | IFS | as_nl) ;; #(
1882       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1883       *) $as_unset $ac_var ;;
1884       esac ;;
1885     esac
1886   done
1887   (set) 2>&1 |
1888     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1889     *${as_nl}ac_space=\ *)
1890       sed -n \
1891         "s/'\''/'\''\\\\'\'''\''/g;
1892           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1893       ;; #(
1894     *)
1895       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1896       ;;
1897     esac |
1898     sort
1899 )
1900     echo
1901
1902     cat <<\_ASBOX
1903 ## ----------------- ##
1904 ## Output variables. ##
1905 ## ----------------- ##
1906 _ASBOX
1907     echo
1908     for ac_var in $ac_subst_vars
1909     do
1910       eval ac_val=\$$ac_var
1911       case $ac_val in
1912       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913       esac
1914       $as_echo "$ac_var='\''$ac_val'\''"
1915     done | sort
1916     echo
1917
1918     if test -n "$ac_subst_files"; then
1919       cat <<\_ASBOX
1920 ## ------------------- ##
1921 ## File substitutions. ##
1922 ## ------------------- ##
1923 _ASBOX
1924       echo
1925       for ac_var in $ac_subst_files
1926       do
1927         eval ac_val=\$$ac_var
1928         case $ac_val in
1929         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1930         esac
1931         $as_echo "$ac_var='\''$ac_val'\''"
1932       done | sort
1933       echo
1934     fi
1935
1936     if test -s confdefs.h; then
1937       cat <<\_ASBOX
1938 ## ----------- ##
1939 ## confdefs.h. ##
1940 ## ----------- ##
1941 _ASBOX
1942       echo
1943       cat confdefs.h
1944       echo
1945     fi
1946     test "$ac_signal" != 0 &&
1947       $as_echo "$as_me: caught signal $ac_signal"
1948     $as_echo "$as_me: exit $exit_status"
1949   } >&5
1950   rm -f core *.core core.conftest.* &&
1951     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1952     exit $exit_status
1953 ' 0
1954 for ac_signal in 1 2 13 15; do
1955   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1956 done
1957 ac_signal=0
1958
1959 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1960 rm -f -r conftest* confdefs.h
1961
1962 # Predefined preprocessor variables.
1963
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_NAME "$PACKAGE_NAME"
1966 _ACEOF
1967
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1971 _ACEOF
1972
1973
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1976 _ACEOF
1977
1978
1979 cat >>confdefs.h <<_ACEOF
1980 #define PACKAGE_STRING "$PACKAGE_STRING"
1981 _ACEOF
1982
1983
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1986 _ACEOF
1987
1988
1989 # Let the site file select an alternate cache file if it wants to.
1990 # Prefer an explicitly selected file to automatically selected ones.
1991 ac_site_file1=NONE
1992 ac_site_file2=NONE
1993 if test -n "$CONFIG_SITE"; then
1994   ac_site_file1=$CONFIG_SITE
1995 elif test "x$prefix" != xNONE; then
1996   ac_site_file1=$prefix/share/config.site
1997   ac_site_file2=$prefix/etc/config.site
1998 else
1999   ac_site_file1=$ac_default_prefix/share/config.site
2000   ac_site_file2=$ac_default_prefix/etc/config.site
2001 fi
2002 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2003 do
2004   test "x$ac_site_file" = xNONE && continue
2005   if test -r "$ac_site_file"; then
2006     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2007 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2008     sed 's/^/| /' "$ac_site_file" >&5
2009     . "$ac_site_file"
2010   fi
2011 done
2012
2013 if test -r "$cache_file"; then
2014   # Some versions of bash will fail to source /dev/null (special
2015   # files actually), so we avoid doing that.
2016   if test -f "$cache_file"; then
2017     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2018 $as_echo "$as_me: loading cache $cache_file" >&6;}
2019     case $cache_file in
2020       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2021       *)                      . "./$cache_file";;
2022     esac
2023   fi
2024 else
2025   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2026 $as_echo "$as_me: creating cache $cache_file" >&6;}
2027   >$cache_file
2028 fi
2029
2030 # Check that the precious variables saved in the cache have kept the same
2031 # value.
2032 ac_cache_corrupted=false
2033 for ac_var in $ac_precious_vars; do
2034   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2035   eval ac_new_set=\$ac_env_${ac_var}_set
2036   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2037   eval ac_new_val=\$ac_env_${ac_var}_value
2038   case $ac_old_set,$ac_new_set in
2039     set,)
2040       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2041 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2042       ac_cache_corrupted=: ;;
2043     ,set)
2044       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2045 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2046       ac_cache_corrupted=: ;;
2047     ,);;
2048     *)
2049       if test "x$ac_old_val" != "x$ac_new_val"; then
2050         # differences in whitespace do not lead to failure.
2051         ac_old_val_w=`echo x $ac_old_val`
2052         ac_new_val_w=`echo x $ac_new_val`
2053         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2054           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2055 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2056           ac_cache_corrupted=:
2057         else
2058           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2059 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2060           eval $ac_var=\$ac_old_val
2061         fi
2062         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2063 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2064         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2065 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2066       fi;;
2067   esac
2068   # Pass precious variables to config.status.
2069   if test "$ac_new_set" = set; then
2070     case $ac_new_val in
2071     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2072     *) ac_arg=$ac_var=$ac_new_val ;;
2073     esac
2074     case " $ac_configure_args " in
2075       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2076       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2077     esac
2078   fi
2079 done
2080 if $ac_cache_corrupted; then
2081   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2083   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2084 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2085   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2086 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2087    { (exit 1); exit 1; }; }
2088 fi
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106 ac_ext=c
2107 ac_cpp='$CPP $CPPFLAGS'
2108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
2112
2113 ac_ext=c
2114 ac_cpp='$CPP $CPPFLAGS'
2115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2118
2119
2120
2121
2122
2123
2124         { $as_echo "$as_me:$LINENO: checking metadata" >&5
2125 $as_echo_n "checking metadata... " >&6; }
2126
2127         META="$srcdir/META"
2128         _zfs_ac_meta_got_file=no
2129         if test -f "$META"; then
2130                 _zfs_ac_meta_got_file=yes
2131
2132                 ZFS_META_NAME=`perl -n\
2133                 -e "BEGIN { \\$key=shift @ARGV; }"\
2134                 -e "next unless s/^\s*\\$key[:=]//i;"\
2135                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2136                 -e "s/^\s+//;"\
2137                 -e "s/\s+$//;"\
2138                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2139                 -e "\\$val=\\$_;"\
2140                 -e "END { print \\$val if defined \\$val; }"\
2141                 '(?:NAME|PROJECT|PACKAGE)' $META`;
2142                 if test -n "$ZFS_META_NAME"; then
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define ZFS_META_NAME "$ZFS_META_NAME"
2146 _ACEOF
2147
2148
2149                 fi
2150
2151                 ZFS_META_VERSION=`perl -n\
2152                 -e "BEGIN { \\$key=shift @ARGV; }"\
2153                 -e "next unless s/^\s*\\$key[:=]//i;"\
2154                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2155                 -e "s/^\s+//;"\
2156                 -e "s/\s+$//;"\
2157                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2158                 -e "\\$val=\\$_;"\
2159                 -e "END { print \\$val if defined \\$val; }"\
2160                 'VERSION' $META`;
2161                 if test -n "$ZFS_META_VERSION"; then
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2165 _ACEOF
2166
2167
2168                 fi
2169
2170                 ZFS_META_RELEASE=`perl -n\
2171                 -e "BEGIN { \\$key=shift @ARGV; }"\
2172                 -e "next unless s/^\s*\\$key[:=]//i;"\
2173                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2174                 -e "s/^\s+//;"\
2175                 -e "s/\s+$//;"\
2176                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2177                 -e "\\$val=\\$_;"\
2178                 -e "END { print \\$val if defined \\$val; }"\
2179                 'RELEASE' $META`;
2180                 if test -n "$ZFS_META_RELEASE"; then
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2184 _ACEOF
2185
2186
2187                 fi
2188
2189                 ZFS_META_LICENSE=`perl -n\
2190                 -e "BEGIN { \\$key=shift @ARGV; }"\
2191                 -e "next unless s/^\s*\\$key[:=]//i;"\
2192                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2193                 -e "s/^\s+//;"\
2194                 -e "s/\s+$//;"\
2195                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2196                 -e "\\$val=\\$_;"\
2197                 -e "END { print \\$val if defined \\$val; }"\
2198                 'LICENSE' $META`;
2199                 if test -n "$ZFS_META_LICENSE"; then
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2203 _ACEOF
2204
2205
2206                 fi
2207
2208                 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2209                                 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2210                                 test -n "$ZFS_META_RELEASE" &&
2211                                         ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2212
2213 cat >>confdefs.h <<_ACEOF
2214 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2215 _ACEOF
2216
2217
2218                 fi
2219
2220                 ZFS_META_DATA=`perl -n\
2221                 -e "BEGIN { \\$key=shift @ARGV; }"\
2222                 -e "next unless s/^\s*\\$key[:=]//i;"\
2223                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2224                 -e "s/^\s+//;"\
2225                 -e "s/\s+$//;"\
2226                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2227                 -e "\\$val=\\$_;"\
2228                 -e "END { print \\$val if defined \\$val; }"\
2229                 'DATE' $META`;
2230                 if test -n "$ZFS_META_DATA"; then
2231
2232 cat >>confdefs.h <<_ACEOF
2233 #define ZFS_META_DATA "$ZFS_META_DATA"
2234 _ACEOF
2235
2236
2237                 fi
2238
2239                 ZFS_META_AUTHOR=`perl -n\
2240                 -e "BEGIN { \\$key=shift @ARGV; }"\
2241                 -e "next unless s/^\s*\\$key[:=]//i;"\
2242                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2243                 -e "s/^\s+//;"\
2244                 -e "s/\s+$//;"\
2245                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2246                 -e "\\$val=\\$_;"\
2247                 -e "END { print \\$val if defined \\$val; }"\
2248                 'AUTHOR' $META`;
2249                 if test -n "$ZFS_META_AUTHOR"; then
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2253 _ACEOF
2254
2255
2256                 fi
2257
2258
2259                 ZFS_META_LT_CURRENT=`perl -n\
2260                 -e "BEGIN { \\$key=shift @ARGV; }"\
2261                 -e "next unless s/^\s*\\$key[:=]//i;"\
2262                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2263                 -e "s/^\s+//;"\
2264                 -e "s/\s+$//;"\
2265                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2266                 -e "\\$val=\\$_;"\
2267                 -e "END { print \\$val if defined \\$val; }"\
2268                 'LT_CURRENT' $META`;
2269                 ZFS_META_LT_REVISION=`perl -n\
2270                 -e "BEGIN { \\$key=shift @ARGV; }"\
2271                 -e "next unless s/^\s*\\$key[:=]//i;"\
2272                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2273                 -e "s/^\s+//;"\
2274                 -e "s/\s+$//;"\
2275                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2276                 -e "\\$val=\\$_;"\
2277                 -e "END { print \\$val if defined \\$val; }"\
2278                 'LT_REVISION' $META`;
2279                 ZFS_META_LT_AGE=`perl -n\
2280                 -e "BEGIN { \\$key=shift @ARGV; }"\
2281                 -e "next unless s/^\s*\\$key[:=]//i;"\
2282                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2283                 -e "s/^\s+//;"\
2284                 -e "s/\s+$//;"\
2285                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2286                 -e "\\$val=\\$_;"\
2287                 -e "END { print \\$val if defined \\$val; }"\
2288                 'LT_AGE' $META`;
2289                 if test -n "$ZFS_META_LT_CURRENT" \
2290                                  -o -n "$ZFS_META_LT_REVISION" \
2291                                  -o -n "$ZFS_META_LT_AGE"; then
2292                         test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2293                         test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2294                         test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2298 _ACEOF
2299
2300
2301 cat >>confdefs.h <<_ACEOF
2302 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2303 _ACEOF
2304
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2308 _ACEOF
2309
2310
2311
2312
2313                 fi
2314         fi
2315
2316         { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2317 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2318
2319
2320 ac_aux_dir=
2321 for ac_dir in config "$srcdir"/config; do
2322   if test -f "$ac_dir/install-sh"; then
2323     ac_aux_dir=$ac_dir
2324     ac_install_sh="$ac_aux_dir/install-sh -c"
2325     break
2326   elif test -f "$ac_dir/install.sh"; then
2327     ac_aux_dir=$ac_dir
2328     ac_install_sh="$ac_aux_dir/install.sh -c"
2329     break
2330   elif test -f "$ac_dir/shtool"; then
2331     ac_aux_dir=$ac_dir
2332     ac_install_sh="$ac_aux_dir/shtool install -c"
2333     break
2334   fi
2335 done
2336 if test -z "$ac_aux_dir"; then
2337   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2338 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2339    { (exit 1); exit 1; }; }
2340 fi
2341
2342 # These three variables are undocumented and unsupported,
2343 # and are intended to be withdrawn in a future Autoconf release.
2344 # They can cause serious problems if a builder's source tree is in a directory
2345 # whose full name contains unusual characters.
2346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2348 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2349
2350
2351 # Make sure we can run config.sub.
2352 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2353   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2354 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2355    { (exit 1); exit 1; }; }
2356
2357 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2358 $as_echo_n "checking build system type... " >&6; }
2359 if test "${ac_cv_build+set}" = set; then
2360   $as_echo_n "(cached) " >&6
2361 else
2362   ac_build_alias=$build_alias
2363 test "x$ac_build_alias" = x &&
2364   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2365 test "x$ac_build_alias" = x &&
2366   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2367 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2368    { (exit 1); exit 1; }; }
2369 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2370   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2371 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2372    { (exit 1); exit 1; }; }
2373
2374 fi
2375 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2376 $as_echo "$ac_cv_build" >&6; }
2377 case $ac_cv_build in
2378 *-*-*) ;;
2379 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2380 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2381    { (exit 1); exit 1; }; };;
2382 esac
2383 build=$ac_cv_build
2384 ac_save_IFS=$IFS; IFS='-'
2385 set x $ac_cv_build
2386 shift
2387 build_cpu=$1
2388 build_vendor=$2
2389 shift; shift
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2392 build_os=$*
2393 IFS=$ac_save_IFS
2394 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2395
2396
2397 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2398 $as_echo_n "checking host system type... " >&6; }
2399 if test "${ac_cv_host+set}" = set; then
2400   $as_echo_n "(cached) " >&6
2401 else
2402   if test "x$host_alias" = x; then
2403   ac_cv_host=$ac_cv_build
2404 else
2405   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2406     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2407 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2408    { (exit 1); exit 1; }; }
2409 fi
2410
2411 fi
2412 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2413 $as_echo "$ac_cv_host" >&6; }
2414 case $ac_cv_host in
2415 *-*-*) ;;
2416 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2417 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2418    { (exit 1); exit 1; }; };;
2419 esac
2420 host=$ac_cv_host
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_host
2423 shift
2424 host_cpu=$1
2425 host_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 host_os=$*
2430 IFS=$ac_save_IFS
2431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2432
2433
2434 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2435 $as_echo_n "checking target system type... " >&6; }
2436 if test "${ac_cv_target+set}" = set; then
2437   $as_echo_n "(cached) " >&6
2438 else
2439   if test "x$target_alias" = x; then
2440   ac_cv_target=$ac_cv_host
2441 else
2442   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2443     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2444 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2445    { (exit 1); exit 1; }; }
2446 fi
2447
2448 fi
2449 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2450 $as_echo "$ac_cv_target" >&6; }
2451 case $ac_cv_target in
2452 *-*-*) ;;
2453 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2454 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2455    { (exit 1); exit 1; }; };;
2456 esac
2457 target=$ac_cv_target
2458 ac_save_IFS=$IFS; IFS='-'
2459 set x $ac_cv_target
2460 shift
2461 target_cpu=$1
2462 target_vendor=$2
2463 shift; shift
2464 # Remember, the first character of IFS is used to create $*,
2465 # except with old shells:
2466 target_os=$*
2467 IFS=$ac_save_IFS
2468 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2469
2470
2471 # The aliases save the names the user supplied, while $host etc.
2472 # will get canonicalized.
2473 test -n "$target_alias" &&
2474   test "$program_prefix$program_suffix$program_transform_name" = \
2475     NONENONEs,x,x, &&
2476   program_prefix=${target_alias}-
2477
2478 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2479 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2480     # Check whether --enable-maintainer-mode was given.
2481 if test "${enable_maintainer_mode+set}" = set; then
2482   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2483 else
2484   USE_MAINTAINER_MODE=no
2485 fi
2486
2487   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2488 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2489    if test $USE_MAINTAINER_MODE = yes; then
2490   MAINTAINER_MODE_TRUE=
2491   MAINTAINER_MODE_FALSE='#'
2492 else
2493   MAINTAINER_MODE_TRUE='#'
2494   MAINTAINER_MODE_FALSE=
2495 fi
2496
2497   MAINT=$MAINTAINER_MODE_TRUE
2498
2499
2500 # Check whether --enable-silent-rules was given.
2501 if test "${enable_silent_rules+set}" = set; then
2502   enableval=$enable_silent_rules;
2503 fi
2504
2505 case $enable_silent_rules in
2506 yes) AM_DEFAULT_VERBOSITY=0;;
2507 no)  AM_DEFAULT_VERBOSITY=1;;
2508 *)   AM_DEFAULT_VERBOSITY=1;;
2509 esac
2510 AM_BACKSLASH='\'
2511
2512 am__api_version='1.11'
2513
2514 # Find a good install program.  We prefer a C program (faster),
2515 # so one script is as good as another.  But avoid the broken or
2516 # incompatible versions:
2517 # SysV /etc/install, /usr/sbin/install
2518 # SunOS /usr/etc/install
2519 # IRIX /sbin/install
2520 # AIX /bin/install
2521 # AmigaOS /C/install, which installs bootblocks on floppy discs
2522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2525 # OS/2's system install, which has a completely different semantic
2526 # ./install, which can be erroneously created by make from ./install.sh.
2527 # Reject install programs that cannot install multiple files.
2528 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2529 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2530 if test -z "$INSTALL"; then
2531 if test "${ac_cv_path_install+set}" = set; then
2532   $as_echo_n "(cached) " >&6
2533 else
2534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   # Account for people who put trailing slashes in PATH elements.
2540 case $as_dir/ in
2541   ./ | .// | /cC/* | \
2542   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2543   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2544   /usr/ucb/* ) ;;
2545   *)
2546     # OSF1 and SCO ODT 3.0 have their own names for install.
2547     # Don't use installbsd from OSF since it installs stuff as root
2548     # by default.
2549     for ac_prog in ginstall scoinst install; do
2550       for ac_exec_ext in '' $ac_executable_extensions; do
2551         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2552           if test $ac_prog = install &&
2553             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2554             # AIX install.  It has an incompatible calling convention.
2555             :
2556           elif test $ac_prog = install &&
2557             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2558             # program-specific install script used by HP pwplus--don't use.
2559             :
2560           else
2561             rm -rf conftest.one conftest.two conftest.dir
2562             echo one > conftest.one
2563             echo two > conftest.two
2564             mkdir conftest.dir
2565             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2566               test -s conftest.one && test -s conftest.two &&
2567               test -s conftest.dir/conftest.one &&
2568               test -s conftest.dir/conftest.two
2569             then
2570               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2571               break 3
2572             fi
2573           fi
2574         fi
2575       done
2576     done
2577     ;;
2578 esac
2579
2580 done
2581 IFS=$as_save_IFS
2582
2583 rm -rf conftest.one conftest.two conftest.dir
2584
2585 fi
2586   if test "${ac_cv_path_install+set}" = set; then
2587     INSTALL=$ac_cv_path_install
2588   else
2589     # As a last resort, use the slow shell script.  Don't cache a
2590     # value for INSTALL within a source directory, because that will
2591     # break other packages using the cache if that directory is
2592     # removed, or if the value is a relative name.
2593     INSTALL=$ac_install_sh
2594   fi
2595 fi
2596 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2597 $as_echo "$INSTALL" >&6; }
2598
2599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2600 # It thinks the first close brace ends the variable substitution.
2601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2602
2603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2604
2605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2606
2607 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2608 $as_echo_n "checking whether build environment is sane... " >&6; }
2609 # Just in case
2610 sleep 1
2611 echo timestamp > conftest.file
2612 # Reject unsafe characters in $srcdir or the absolute working directory
2613 # name.  Accept space and tab only in the latter.
2614 am_lf='
2615 '
2616 case `pwd` in
2617   *[\\\"\#\$\&\'\`$am_lf]*)
2618     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2619 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2620    { (exit 1); exit 1; }; };;
2621 esac
2622 case $srcdir in
2623   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2624     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2625 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2626    { (exit 1); exit 1; }; };;
2627 esac
2628
2629 # Do `set' in a subshell so we don't clobber the current shell's
2630 # arguments.  Must try -L first in case configure is actually a
2631 # symlink; some systems play weird games with the mod time of symlinks
2632 # (eg FreeBSD returns the mod time of the symlink's containing
2633 # directory).
2634 if (
2635    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2636    if test "$*" = "X"; then
2637       # -L didn't work.
2638       set X `ls -t "$srcdir/configure" conftest.file`
2639    fi
2640    rm -f conftest.file
2641    if test "$*" != "X $srcdir/configure conftest.file" \
2642       && test "$*" != "X conftest.file $srcdir/configure"; then
2643
2644       # If neither matched, then we have a broken ls.  This can happen
2645       # if, for instance, CONFIG_SHELL is bash and it inherits a
2646       # broken ls alias from the environment.  This has actually
2647       # happened.  Such a system could not be considered "sane".
2648       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2649 alias in your environment" >&5
2650 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2651 alias in your environment" >&2;}
2652    { (exit 1); exit 1; }; }
2653    fi
2654
2655    test "$2" = conftest.file
2656    )
2657 then
2658    # Ok.
2659    :
2660 else
2661    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2662 Check your system clock" >&5
2663 $as_echo "$as_me: error: newly created file is older than distributed files!
2664 Check your system clock" >&2;}
2665    { (exit 1); exit 1; }; }
2666 fi
2667 { $as_echo "$as_me:$LINENO: result: yes" >&5
2668 $as_echo "yes" >&6; }
2669 test "$program_prefix" != NONE &&
2670   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2671 # Use a double $ so make ignores it.
2672 test "$program_suffix" != NONE &&
2673   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2674 # Double any \ or $.
2675 # By default was `s,x,x', remove it if useless.
2676 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2677 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2678
2679 # expand $ac_aux_dir to an absolute path
2680 am_aux_dir=`cd $ac_aux_dir && pwd`
2681
2682 if test x"${MISSING+set}" != xset; then
2683   case $am_aux_dir in
2684   *\ * | *\     *)
2685     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2686   *)
2687     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2688   esac
2689 fi
2690 # Use eval to expand $SHELL
2691 if eval "$MISSING --run true"; then
2692   am_missing_run="$MISSING --run "
2693 else
2694   am_missing_run=
2695   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2696 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2697 fi
2698
2699 if test x"${install_sh}" != xset; then
2700   case $am_aux_dir in
2701   *\ * | *\     *)
2702     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2703   *)
2704     install_sh="\${SHELL} $am_aux_dir/install-sh"
2705   esac
2706 fi
2707
2708 # Installed binaries are usually stripped using `strip' when the user
2709 # run `make install-strip'.  However `strip' might not be the right
2710 # tool to use in cross-compilation environments, therefore Automake
2711 # will honor the `STRIP' environment variable to overrule this program.
2712 if test "$cross_compiling" != no; then
2713   if test -n "$ac_tool_prefix"; then
2714   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}strip; ac_word=$2
2716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_STRIP+set}" = set; then
2719   $as_echo_n "(cached) " >&6
2720 else
2721   if test -n "$STRIP"; then
2722   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727   IFS=$as_save_IFS
2728   test -z "$as_dir" && as_dir=.
2729   for ac_exec_ext in '' $ac_executable_extensions; do
2730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2732     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733     break 2
2734   fi
2735 done
2736 done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 STRIP=$ac_cv_prog_STRIP
2742 if test -n "$STRIP"; then
2743   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2744 $as_echo "$STRIP" >&6; }
2745 else
2746   { $as_echo "$as_me:$LINENO: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750
2751 fi
2752 if test -z "$ac_cv_prog_STRIP"; then
2753   ac_ct_STRIP=$STRIP
2754   # Extract the first word of "strip", so it can be a program name with args.
2755 set dummy strip; ac_word=$2
2756 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2759   $as_echo_n "(cached) " >&6
2760 else
2761   if test -n "$ac_ct_STRIP"; then
2762   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767   IFS=$as_save_IFS
2768   test -z "$as_dir" && as_dir=.
2769   for ac_exec_ext in '' $ac_executable_extensions; do
2770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771     ac_cv_prog_ac_ct_STRIP="strip"
2772     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773     break 2
2774   fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2782 if test -n "$ac_ct_STRIP"; then
2783   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2784 $as_echo "$ac_ct_STRIP" >&6; }
2785 else
2786   { $as_echo "$as_me:$LINENO: result: no" >&5
2787 $as_echo "no" >&6; }
2788 fi
2789
2790   if test "x$ac_ct_STRIP" = x; then
2791     STRIP=":"
2792   else
2793     case $cross_compiling:$ac_tool_warned in
2794 yes:)
2795 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797 ac_tool_warned=yes ;;
2798 esac
2799     STRIP=$ac_ct_STRIP
2800   fi
2801 else
2802   STRIP="$ac_cv_prog_STRIP"
2803 fi
2804
2805 fi
2806 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2807
2808 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2809 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2810 if test -z "$MKDIR_P"; then
2811   if test "${ac_cv_path_mkdir+set}" = set; then
2812   $as_echo_n "(cached) " >&6
2813 else
2814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819   for ac_prog in mkdir gmkdir; do
2820          for ac_exec_ext in '' $ac_executable_extensions; do
2821            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2822            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2823              'mkdir (GNU coreutils) '* | \
2824              'mkdir (coreutils) '* | \
2825              'mkdir (fileutils) '4.1*)
2826                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2827                break 3;;
2828            esac
2829          done
2830        done
2831 done
2832 IFS=$as_save_IFS
2833
2834 fi
2835
2836   if test "${ac_cv_path_mkdir+set}" = set; then
2837     MKDIR_P="$ac_cv_path_mkdir -p"
2838   else
2839     # As a last resort, use the slow shell script.  Don't cache a
2840     # value for MKDIR_P within a source directory, because that will
2841     # break other packages using the cache if that directory is
2842     # removed, or if the value is a relative name.
2843     test -d ./--version && rmdir ./--version
2844     MKDIR_P="$ac_install_sh -d"
2845   fi
2846 fi
2847 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2848 $as_echo "$MKDIR_P" >&6; }
2849
2850 mkdir_p="$MKDIR_P"
2851 case $mkdir_p in
2852   [\\/$]* | ?:[\\/]*) ;;
2853   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2854 esac
2855
2856 for ac_prog in gawk mawk nawk awk
2857 do
2858   # Extract the first word of "$ac_prog", so it can be a program name with args.
2859 set dummy $ac_prog; ac_word=$2
2860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_AWK+set}" = set; then
2863   $as_echo_n "(cached) " >&6
2864 else
2865   if test -n "$AWK"; then
2866   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871   IFS=$as_save_IFS
2872   test -z "$as_dir" && as_dir=.
2873   for ac_exec_ext in '' $ac_executable_extensions; do
2874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875     ac_cv_prog_AWK="$ac_prog"
2876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2877     break 2
2878   fi
2879 done
2880 done
2881 IFS=$as_save_IFS
2882
2883 fi
2884 fi
2885 AWK=$ac_cv_prog_AWK
2886 if test -n "$AWK"; then
2887   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2888 $as_echo "$AWK" >&6; }
2889 else
2890   { $as_echo "$as_me:$LINENO: result: no" >&5
2891 $as_echo "no" >&6; }
2892 fi
2893
2894
2895   test -n "$AWK" && break
2896 done
2897
2898 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2899 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2900 set x ${MAKE-make}
2901 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2902 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2903   $as_echo_n "(cached) " >&6
2904 else
2905   cat >conftest.make <<\_ACEOF
2906 SHELL = /bin/sh
2907 all:
2908         @echo '@@@%%%=$(MAKE)=@@@%%%'
2909 _ACEOF
2910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2911 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2912   *@@@%%%=?*=@@@%%%*)
2913     eval ac_cv_prog_make_${ac_make}_set=yes;;
2914   *)
2915     eval ac_cv_prog_make_${ac_make}_set=no;;
2916 esac
2917 rm -f conftest.make
2918 fi
2919 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2920   { $as_echo "$as_me:$LINENO: result: yes" >&5
2921 $as_echo "yes" >&6; }
2922   SET_MAKE=
2923 else
2924   { $as_echo "$as_me:$LINENO: result: no" >&5
2925 $as_echo "no" >&6; }
2926   SET_MAKE="MAKE=${MAKE-make}"
2927 fi
2928
2929 rm -rf .tst 2>/dev/null
2930 mkdir .tst 2>/dev/null
2931 if test -d .tst; then
2932   am__leading_dot=.
2933 else
2934   am__leading_dot=_
2935 fi
2936 rmdir .tst 2>/dev/null
2937
2938 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2939   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2940   # is not polluted with repeated "-I."
2941   am__isrc=' -I$(srcdir)'
2942   # test to see if srcdir already configured
2943   if test -f $srcdir/config.status; then
2944     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2945 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2946    { (exit 1); exit 1; }; }
2947   fi
2948 fi
2949
2950 # test whether we have cygpath
2951 if test -z "$CYGPATH_W"; then
2952   if (cygpath --version) >/dev/null 2>/dev/null; then
2953     CYGPATH_W='cygpath -w'
2954   else
2955     CYGPATH_W=echo
2956   fi
2957 fi
2958
2959
2960 # Define the identity of the package.
2961  PACKAGE=$ZFS_META_NAME
2962  VERSION=$ZFS_META_VERSION
2963
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE "$PACKAGE"
2967 _ACEOF
2968
2969
2970 cat >>confdefs.h <<_ACEOF
2971 #define VERSION "$VERSION"
2972 _ACEOF
2973
2974 # Some tools Automake needs.
2975
2976 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2977
2978
2979 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2980
2981
2982 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2983
2984
2985 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2986
2987
2988 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2989
2990 # We need awk for the "check" target.  The system "awk" is bad on
2991 # some platforms.
2992 # Always define AMTAR for backward compatibility.
2993
2994 AMTAR=${AMTAR-"${am_missing_run}tar"}
2995
2996 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2997
2998
2999
3000
3001
3002 ac_config_headers="$ac_config_headers zfs_config.h"
3003
3004
3005 # Find a good install program.  We prefer a C program (faster),
3006 # so one script is as good as another.  But avoid the broken or
3007 # incompatible versions:
3008 # SysV /etc/install, /usr/sbin/install
3009 # SunOS /usr/etc/install
3010 # IRIX /sbin/install
3011 # AIX /bin/install
3012 # AmigaOS /C/install, which installs bootblocks on floppy discs
3013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3016 # OS/2's system install, which has a completely different semantic
3017 # ./install, which can be erroneously created by make from ./install.sh.
3018 # Reject install programs that cannot install multiple files.
3019 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3020 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3021 if test -z "$INSTALL"; then
3022 if test "${ac_cv_path_install+set}" = set; then
3023   $as_echo_n "(cached) " >&6
3024 else
3025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028   IFS=$as_save_IFS
3029   test -z "$as_dir" && as_dir=.
3030   # Account for people who put trailing slashes in PATH elements.
3031 case $as_dir/ in
3032   ./ | .// | /cC/* | \
3033   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3034   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3035   /usr/ucb/* ) ;;
3036   *)
3037     # OSF1 and SCO ODT 3.0 have their own names for install.
3038     # Don't use installbsd from OSF since it installs stuff as root
3039     # by default.
3040     for ac_prog in ginstall scoinst install; do
3041       for ac_exec_ext in '' $ac_executable_extensions; do
3042         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3043           if test $ac_prog = install &&
3044             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045             # AIX install.  It has an incompatible calling convention.
3046             :
3047           elif test $ac_prog = install &&
3048             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3049             # program-specific install script used by HP pwplus--don't use.
3050             :
3051           else
3052             rm -rf conftest.one conftest.two conftest.dir
3053             echo one > conftest.one
3054             echo two > conftest.two
3055             mkdir conftest.dir
3056             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3057               test -s conftest.one && test -s conftest.two &&
3058               test -s conftest.dir/conftest.one &&
3059               test -s conftest.dir/conftest.two
3060             then
3061               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3062               break 3
3063             fi
3064           fi
3065         fi
3066       done
3067     done
3068     ;;
3069 esac
3070
3071 done
3072 IFS=$as_save_IFS
3073
3074 rm -rf conftest.one conftest.two conftest.dir
3075
3076 fi
3077   if test "${ac_cv_path_install+set}" = set; then
3078     INSTALL=$ac_cv_path_install
3079   else
3080     # As a last resort, use the slow shell script.  Don't cache a
3081     # value for INSTALL within a source directory, because that will
3082     # break other packages using the cache if that directory is
3083     # removed, or if the value is a relative name.
3084     INSTALL=$ac_install_sh
3085   fi
3086 fi
3087 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3088 $as_echo "$INSTALL" >&6; }
3089
3090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3091 # It thinks the first close brace ends the variable substitution.
3092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3093
3094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3095
3096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103 if test -n "$ac_tool_prefix"; then
3104   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3105 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if test "${ac_cv_prog_CC+set}" = set; then
3109   $as_echo_n "(cached) " >&6
3110 else
3111   if test -n "$CC"; then
3112   ac_cv_prog_CC="$CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119   for ac_exec_ext in '' $ac_executable_extensions; do
3120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 CC=$ac_cv_prog_CC
3132 if test -n "$CC"; then
3133   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3135 else
3136   { $as_echo "$as_me:$LINENO: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141 fi
3142 if test -z "$ac_cv_prog_CC"; then
3143   ac_ct_CC=$CC
3144   # Extract the first word of "gcc", so it can be a program name with args.
3145 set dummy gcc; ac_word=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if test -n "$ac_ct_CC"; then
3152   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159   for ac_exec_ext in '' $ac_executable_extensions; do
3160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161     ac_cv_prog_ac_ct_CC="gcc"
3162     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166 done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172 if test -n "$ac_ct_CC"; then
3173   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3174 $as_echo "$ac_ct_CC" >&6; }
3175 else
3176   { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180   if test "x$ac_ct_CC" = x; then
3181     CC=""
3182   else
3183     case $cross_compiling:$ac_tool_warned in
3184 yes:)
3185 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187 ac_tool_warned=yes ;;
3188 esac
3189     CC=$ac_ct_CC
3190   fi
3191 else
3192   CC="$ac_cv_prog_CC"
3193 fi
3194
3195 if test -z "$CC"; then
3196           if test -n "$ac_tool_prefix"; then
3197     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3198 set dummy ${ac_tool_prefix}cc; ac_word=$2
3199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_CC+set}" = set; then
3202   $as_echo_n "(cached) " >&6
3203 else
3204   if test -n "$CC"; then
3205   ac_cv_prog_CC="$CC" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212   for ac_exec_ext in '' $ac_executable_extensions; do
3213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214     ac_cv_prog_CC="${ac_tool_prefix}cc"
3215     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216     break 2
3217   fi
3218 done
3219 done
3220 IFS=$as_save_IFS
3221
3222 fi
3223 fi
3224 CC=$ac_cv_prog_CC
3225 if test -n "$CC"; then
3226   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3227 $as_echo "$CC" >&6; }
3228 else
3229   { $as_echo "$as_me:$LINENO: result: no" >&5
3230 $as_echo "no" >&6; }
3231 fi
3232
3233
3234   fi
3235 fi
3236 if test -z "$CC"; then
3237   # Extract the first word of "cc", so it can be a program name with args.
3238 set dummy cc; ac_word=$2
3239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CC+set}" = set; then
3242   $as_echo_n "(cached) " >&6
3243 else
3244   if test -n "$CC"; then
3245   ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247   ac_prog_rejected=no
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3250 do
3251   IFS=$as_save_IFS
3252   test -z "$as_dir" && as_dir=.
3253   for ac_exec_ext in '' $ac_executable_extensions; do
3254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3256        ac_prog_rejected=yes
3257        continue
3258      fi
3259     ac_cv_prog_CC="cc"
3260     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267 if test $ac_prog_rejected = yes; then
3268   # We found a bogon in the path, so make sure we never use it.
3269   set dummy $ac_cv_prog_CC
3270   shift
3271   if test $# != 0; then
3272     # We chose a different compiler from the bogus one.
3273     # However, it has the same basename, so the bogon will be chosen
3274     # first if we set CC to just the basename; use the full file name.
3275     shift
3276     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3277   fi
3278 fi
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286   { $as_echo "$as_me:$LINENO: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 fi
3292 if test -z "$CC"; then
3293   if test -n "$ac_tool_prefix"; then
3294   for ac_prog in cl.exe
3295   do
3296     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_CC+set}" = set; then
3301   $as_echo_n "(cached) " >&6
3302 else
3303   if test -n "$CC"; then
3304   ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3314     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319 IFS=$as_save_IFS
3320
3321 fi
3322 fi
3323 CC=$ac_cv_prog_CC
3324 if test -n "$CC"; then
3325   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3327 else
3328   { $as_echo "$as_me:$LINENO: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332
3333     test -n "$CC" && break
3334   done
3335 fi
3336 if test -z "$CC"; then
3337   ac_ct_CC=$CC
3338   for ac_prog in cl.exe
3339 do
3340   # Extract the first word of "$ac_prog", so it can be a program name with args.
3341 set dummy $ac_prog; ac_word=$2
3342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3345   $as_echo_n "(cached) " >&6
3346 else
3347   if test -n "$ac_ct_CC"; then
3348   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357     ac_cv_prog_ac_ct_CC="$ac_prog"
3358     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368 if test -n "$ac_ct_CC"; then
3369   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3370 $as_echo "$ac_ct_CC" >&6; }
3371 else
3372   { $as_echo "$as_me:$LINENO: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376
3377   test -n "$ac_ct_CC" && break
3378 done
3379
3380   if test "x$ac_ct_CC" = x; then
3381     CC=""
3382   else
3383     case $cross_compiling:$ac_tool_warned in
3384 yes:)
3385 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned=yes ;;
3388 esac
3389     CC=$ac_ct_CC
3390   fi
3391 fi
3392
3393 fi
3394
3395
3396 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3399 See \`config.log' for more details." >&5
3400 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3401 See \`config.log' for more details." >&2;}
3402    { (exit 1); exit 1; }; }; }
3403
3404 # Provide some information about the compiler.
3405 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3406 set X $ac_compile
3407 ac_compiler=$2
3408 { (ac_try="$ac_compiler --version >&5"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3414 $as_echo "$ac_try_echo") >&5
3415   (eval "$ac_compiler --version >&5") 2>&5
3416   ac_status=$?
3417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); }
3419 { (ac_try="$ac_compiler -v >&5"
3420 case "(($ac_try" in
3421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422   *) ac_try_echo=$ac_try;;
3423 esac
3424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3425 $as_echo "$ac_try_echo") >&5
3426   (eval "$ac_compiler -v >&5") 2>&5
3427   ac_status=$?
3428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }
3430 { (ac_try="$ac_compiler -V >&5"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3436 $as_echo "$ac_try_echo") >&5
3437   (eval "$ac_compiler -V >&5") 2>&5
3438   ac_status=$?
3439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); }
3441
3442 cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3459 # Try to create an executable without -o first, disregard a.out.
3460 # It will help us diagnose broken compilers, and finding out an intuition
3461 # of exeext.
3462 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3463 $as_echo_n "checking for C compiler default output file name... " >&6; }
3464 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465
3466 # The possible output files:
3467 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3468
3469 ac_rmfiles=
3470 for ac_file in $ac_files
3471 do
3472   case $ac_file in
3473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3474     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3475   esac
3476 done
3477 rm -f $ac_rmfiles
3478
3479 if { (ac_try="$ac_link_default"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485 $as_echo "$ac_try_echo") >&5
3486   (eval "$ac_link_default") 2>&5
3487   ac_status=$?
3488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); }; then
3490   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3491 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3492 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3493 # so that the user can short-circuit this test for compilers unknown to
3494 # Autoconf.
3495 for ac_file in $ac_files ''
3496 do
3497   test -f "$ac_file" || continue
3498   case $ac_file in
3499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3500         ;;
3501     [ab].out )
3502         # We found the default executable, but exeext='' is most
3503         # certainly right.
3504         break;;
3505     *.* )
3506         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3507         then :; else
3508            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509         fi
3510         # We set ac_cv_exeext here because the later test for it is not
3511         # safe: cross compilers may not add the suffix if given an `-o'
3512         # argument, so we may need to know it at that point already.
3513         # Even if this section looks crufty: it has the advantage of
3514         # actually working.
3515         break;;
3516     * )
3517         break;;
3518   esac
3519 done
3520 test "$ac_cv_exeext" = no && ac_cv_exeext=
3521
3522 else
3523   ac_file=''
3524 fi
3525
3526 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3527 $as_echo "$ac_file" >&6; }
3528 if test -z "$ac_file"; then
3529   $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3535 See \`config.log' for more details." >&5
3536 $as_echo "$as_me: error: C compiler cannot create executables
3537 See \`config.log' for more details." >&2;}
3538    { (exit 77); exit 77; }; }; }
3539 fi
3540
3541 ac_exeext=$ac_cv_exeext
3542
3543 # Check that the compiler produces executables we can run.  If not, either
3544 # the compiler is broken, or we cross compile.
3545 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3546 $as_echo_n "checking whether the C compiler works... " >&6; }
3547 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3548 # If not cross compiling, check that we can run a simple program.
3549 if test "$cross_compiling" != yes; then
3550   if { ac_try='./$ac_file'
3551   { (case "(($ac_try" in
3552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553   *) ac_try_echo=$ac_try;;
3554 esac
3555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3556 $as_echo "$ac_try_echo") >&5
3557   (eval "$ac_try") 2>&5
3558   ac_status=$?
3559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); }; }; then
3561     cross_compiling=no
3562   else
3563     if test "$cross_compiling" = maybe; then
3564         cross_compiling=yes
3565     else
3566         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3569 If you meant to cross compile, use \`--host'.
3570 See \`config.log' for more details." >&5
3571 $as_echo "$as_me: error: cannot run C compiled programs.
3572 If you meant to cross compile, use \`--host'.
3573 See \`config.log' for more details." >&2;}
3574    { (exit 1); exit 1; }; }; }
3575     fi
3576   fi
3577 fi
3578 { $as_echo "$as_me:$LINENO: result: yes" >&5
3579 $as_echo "yes" >&6; }
3580
3581 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3582 ac_clean_files=$ac_clean_files_save
3583 # Check that the compiler produces executables we can run.  If not, either
3584 # the compiler is broken, or we cross compile.
3585 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3586 $as_echo_n "checking whether we are cross compiling... " >&6; }
3587 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3588 $as_echo "$cross_compiling" >&6; }
3589
3590 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3591 $as_echo_n "checking for suffix of executables... " >&6; }
3592 if { (ac_try="$ac_link"
3593 case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3598 $as_echo "$ac_try_echo") >&5
3599   (eval "$ac_link") 2>&5
3600   ac_status=$?
3601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); }; then
3603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3605 # work properly (i.e., refer to `conftest.exe'), while it won't with
3606 # `rm'.
3607 for ac_file in conftest.exe conftest conftest.*; do
3608   test -f "$ac_file" || continue
3609   case $ac_file in
3610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612           break;;
3613     * ) break;;
3614   esac
3615 done
3616 else
3617   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3620 See \`config.log' for more details." >&5
3621 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3622 See \`config.log' for more details." >&2;}
3623    { (exit 1); exit 1; }; }; }
3624 fi
3625
3626 rm -f conftest$ac_cv_exeext
3627 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3628 $as_echo "$ac_cv_exeext" >&6; }
3629
3630 rm -f conftest.$ac_ext
3631 EXEEXT=$ac_cv_exeext
3632 ac_exeext=$EXEEXT
3633 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3634 $as_echo_n "checking for suffix of object files... " >&6; }
3635 if test "${ac_cv_objext+set}" = set; then
3636   $as_echo_n "(cached) " >&6
3637 else
3638   cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644
3645 int
3646 main ()
3647 {
3648
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.o conftest.obj
3654 if { (ac_try="$ac_compile"
3655 case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661   (eval "$ac_compile") 2>&5
3662   ac_status=$?
3663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; then
3665   for ac_file in conftest.o conftest.obj conftest.*; do
3666   test -f "$ac_file" || continue;
3667   case $ac_file in
3668     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3669     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3670        break;;
3671   esac
3672 done
3673 else
3674   $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3680 See \`config.log' for more details." >&5
3681 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3682 See \`config.log' for more details." >&2;}
3683    { (exit 1); exit 1; }; }; }
3684 fi
3685
3686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3687 fi
3688 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3689 $as_echo "$ac_cv_objext" >&6; }
3690 OBJEXT=$ac_cv_objext
3691 ac_objext=$OBJEXT
3692 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3693 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3695   $as_echo_n "(cached) " >&6
3696 else
3697   cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h.  */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h.  */
3703
3704 int
3705 main ()
3706 {
3707 #ifndef __GNUC__
3708        choke me
3709 #endif
3710
3711   ;
3712   return 0;
3713 }
3714 _ACEOF
3715 rm -f conftest.$ac_objext
3716 if { (ac_try="$ac_compile"
3717 case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3722 $as_echo "$ac_try_echo") >&5
3723   (eval "$ac_compile") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } && {
3730          test -z "$ac_c_werror_flag" ||
3731          test ! -s conftest.err
3732        } && test -s conftest.$ac_objext; then
3733   ac_compiler_gnu=yes
3734 else
3735   $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738         ac_compiler_gnu=no
3739 fi
3740
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3743
3744 fi
3745 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3746 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3747 if test $ac_compiler_gnu = yes; then
3748   GCC=yes
3749 else
3750   GCC=
3751 fi
3752 ac_test_CFLAGS=${CFLAGS+set}
3753 ac_save_CFLAGS=$CFLAGS
3754 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3755 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3756 if test "${ac_cv_prog_cc_g+set}" = set; then
3757   $as_echo_n "(cached) " >&6
3758 else
3759   ac_save_c_werror_flag=$ac_c_werror_flag
3760    ac_c_werror_flag=yes
3761    ac_cv_prog_cc_g=no
3762    CFLAGS="-g"
3763    cat >conftest.$ac_ext <<_ACEOF
3764 /* confdefs.h.  */
3765 _ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h.  */
3769
3770 int
3771 main ()
3772 {
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 rm -f conftest.$ac_objext
3779 if { (ac_try="$ac_compile"
3780 case "(($ac_try" in
3781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782   *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3785 $as_echo "$ac_try_echo") >&5
3786   (eval "$ac_compile") 2>conftest.er1
3787   ac_status=$?
3788   grep -v '^ *+' conftest.er1 >conftest.err
3789   rm -f conftest.er1
3790   cat conftest.err >&5
3791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } && {
3793          test -z "$ac_c_werror_flag" ||
3794          test ! -s conftest.err
3795        } && test -s conftest.$ac_objext; then
3796   ac_cv_prog_cc_g=yes
3797 else
3798   $as_echo "$as_me: failed program was:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3800
3801         CFLAGS=""
3802       cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h.  */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h.  */
3808
3809 int
3810 main ()
3811 {
3812
3813   ;
3814   return 0;
3815 }
3816 _ACEOF
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3819 case "(($ac_try" in
3820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821   *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3824 $as_echo "$ac_try_echo") >&5
3825   (eval "$ac_compile") 2>conftest.er1
3826   ac_status=$?
3827   grep -v '^ *+' conftest.er1 >conftest.err
3828   rm -f conftest.er1
3829   cat conftest.err >&5
3830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); } && {
3832          test -z "$ac_c_werror_flag" ||
3833          test ! -s conftest.err
3834        } && test -s conftest.$ac_objext; then
3835   :
3836 else
3837   $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840         ac_c_werror_flag=$ac_save_c_werror_flag
3841          CFLAGS="-g"
3842          cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h.  */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h.  */
3848
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3864 $as_echo "$ac_try_echo") >&5
3865   (eval "$ac_compile") 2>conftest.er1
3866   ac_status=$?
3867   grep -v '^ *+' conftest.er1 >conftest.err
3868   rm -f conftest.er1
3869   cat conftest.err >&5
3870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } && {
3872          test -z "$ac_c_werror_flag" ||
3873          test ! -s conftest.err
3874        } && test -s conftest.$ac_objext; then
3875   ac_cv_prog_cc_g=yes
3876 else
3877   $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3879
3880
3881 fi
3882
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 fi
3885
3886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887 fi
3888
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890    ac_c_werror_flag=$ac_save_c_werror_flag
3891 fi
3892 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3893 $as_echo "$ac_cv_prog_cc_g" >&6; }
3894 if test "$ac_test_CFLAGS" = set; then
3895   CFLAGS=$ac_save_CFLAGS
3896 elif test $ac_cv_prog_cc_g = yes; then
3897   if test "$GCC" = yes; then
3898     CFLAGS="-g -O2"
3899   else
3900     CFLAGS="-g"
3901   fi
3902 else
3903   if test "$GCC" = yes; then
3904     CFLAGS="-O2"
3905   else
3906     CFLAGS=
3907   fi
3908 fi
3909 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3911 if test "${ac_cv_prog_cc_c89+set}" = set; then
3912   $as_echo_n "(cached) " >&6
3913 else
3914   ac_cv_prog_cc_c89=no
3915 ac_save_CC=$CC
3916 cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922 #include <stdarg.h>
3923 #include <stdio.h>
3924 #include <sys/types.h>
3925 #include <sys/stat.h>
3926 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3927 struct buf { int x; };
3928 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3929 static char *e (p, i)
3930      char **p;
3931      int i;
3932 {
3933   return p[i];
3934 }
3935 static char *f (char * (*g) (char **, int), char **p, ...)
3936 {
3937   char *s;
3938   va_list v;
3939   va_start (v,p);
3940   s = g (p, va_arg (v,int));
3941   va_end (v);
3942   return s;
3943 }
3944
3945 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3946    function prototypes and stuff, but not '\xHH' hex character constants.
3947    These don't provoke an error unfortunately, instead are silently treated
3948    as 'x'.  The following induces an error, until -std is added to get
3949    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3950    array size at least.  It's necessary to write '\x00'==0 to get something
3951    that's true only with -std.  */
3952 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3953
3954 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3955    inside strings and character constants.  */
3956 #define FOO(x) 'x'
3957 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3958
3959 int test (int i, double x);
3960 struct s1 {int (*f) (int a);};
3961 struct s2 {int (*f) (double a);};
3962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3963 int argc;
3964 char **argv;
3965 int
3966 main ()
3967 {
3968 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3974         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3975 do
3976   CC="$ac_save_CC $ac_arg"
3977   rm -f conftest.$ac_objext
3978 if { (ac_try="$ac_compile"
3979 case "(($ac_try" in
3980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981   *) ac_try_echo=$ac_try;;
3982 esac
3983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3984 $as_echo "$ac_try_echo") >&5
3985   (eval "$ac_compile") 2>conftest.er1
3986   ac_status=$?
3987   grep -v '^ *+' conftest.er1 >conftest.err
3988   rm -f conftest.er1
3989   cat conftest.err >&5
3990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); } && {
3992          test -z "$ac_c_werror_flag" ||
3993          test ! -s conftest.err
3994        } && test -s conftest.$ac_objext; then
3995   ac_cv_prog_cc_c89=$ac_arg
3996 else
3997   $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000
4001 fi
4002
4003 rm -f core conftest.err conftest.$ac_objext
4004   test "x$ac_cv_prog_cc_c89" != "xno" && break
4005 done
4006 rm -f conftest.$ac_ext
4007 CC=$ac_save_CC
4008
4009 fi
4010 # AC_CACHE_VAL
4011 case "x$ac_cv_prog_cc_c89" in
4012   x)
4013     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4014 $as_echo "none needed" >&6; } ;;
4015   xno)
4016     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4017 $as_echo "unsupported" >&6; } ;;
4018   *)
4019     CC="$CC $ac_cv_prog_cc_c89"
4020     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4021 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4022 esac
4023
4024
4025 ac_ext=c
4026 ac_cpp='$CPP $CPPFLAGS'
4027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030 DEPDIR="${am__leading_dot}deps"
4031
4032 ac_config_commands="$ac_config_commands depfiles"
4033
4034
4035 am_make=${MAKE-make}
4036 cat > confinc << 'END'
4037 am__doit:
4038         @echo this is the am__doit target
4039 .PHONY: am__doit
4040 END
4041 # If we don't find an include directive, just comment out the code.
4042 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4043 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4044 am__include="#"
4045 am__quote=
4046 _am_result=none
4047 # First try GNU make style include.
4048 echo "include confinc" > confmf
4049 # Ignore all kinds of additional output from `make'.
4050 case `$am_make -s -f confmf 2> /dev/null` in #(
4051 *the\ am__doit\ target*)
4052   am__include=include
4053   am__quote=
4054   _am_result=GNU
4055   ;;
4056 esac
4057 # Now try BSD make style include.
4058 if test "$am__include" = "#"; then
4059    echo '.include "confinc"' > confmf
4060    case `$am_make -s -f confmf 2> /dev/null` in #(
4061    *the\ am__doit\ target*)
4062      am__include=.include
4063      am__quote="\""
4064      _am_result=BSD
4065      ;;
4066    esac
4067 fi
4068
4069
4070 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4071 $as_echo "$_am_result" >&6; }
4072 rm -f confinc confmf
4073
4074 # Check whether --enable-dependency-tracking was given.
4075 if test "${enable_dependency_tracking+set}" = set; then
4076   enableval=$enable_dependency_tracking;
4077 fi
4078
4079 if test "x$enable_dependency_tracking" != xno; then
4080   am_depcomp="$ac_aux_dir/depcomp"
4081   AMDEPBACKSLASH='\'
4082 fi
4083  if test "x$enable_dependency_tracking" != xno; then
4084   AMDEP_TRUE=
4085   AMDEP_FALSE='#'
4086 else
4087   AMDEP_TRUE='#'
4088   AMDEP_FALSE=
4089 fi
4090
4091
4092
4093 depcc="$CC"   am_compiler_list=
4094
4095 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4096 $as_echo_n "checking dependency style of $depcc... " >&6; }
4097 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4098   $as_echo_n "(cached) " >&6
4099 else
4100   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4101   # We make a subdir and do the tests there.  Otherwise we can end up
4102   # making bogus files that we don't know about and never remove.  For
4103   # instance it was reported that on HP-UX the gcc test will end up
4104   # making a dummy file named `D' -- because `-MD' means `put the output
4105   # in D'.
4106   mkdir conftest.dir
4107   # Copy depcomp to subdir because otherwise we won't find it if we're
4108   # using a relative directory.
4109   cp "$am_depcomp" conftest.dir
4110   cd conftest.dir
4111   # We will build objects and dependencies in a subdirectory because
4112   # it helps to detect inapplicable dependency modes.  For instance
4113   # both Tru64's cc and ICC support -MD to output dependencies as a
4114   # side effect of compilation, but ICC will put the dependencies in
4115   # the current directory while Tru64 will put them in the object
4116   # directory.
4117   mkdir sub
4118
4119   am_cv_CC_dependencies_compiler_type=none
4120   if test "$am_compiler_list" = ""; then
4121      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4122   fi
4123   am__universal=false
4124   case " $depcc " in #(
4125      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4126      esac
4127
4128   for depmode in $am_compiler_list; do
4129     # Setup a source with many dependencies, because some compilers
4130     # like to wrap large dependency lists on column 80 (with \), and
4131     # we should not choose a depcomp mode which is confused by this.
4132     #
4133     # We need to recreate these files for each test, as the compiler may
4134     # overwrite some of them when testing with obscure command lines.
4135     # This happens at least with the AIX C compiler.
4136     : > sub/conftest.c
4137     for i in 1 2 3 4 5 6; do
4138       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4139       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4140       # Solaris 8's {/usr,}/bin/sh.
4141       touch sub/conftst$i.h
4142     done
4143     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4144
4145     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4146     # mode.  It turns out that the SunPro C++ compiler does not properly
4147     # handle `-M -o', and we need to detect this.  Also, some Intel
4148     # versions had trouble with output in subdirs
4149     am__obj=sub/conftest.${OBJEXT-o}
4150     am__minus_obj="-o $am__obj"
4151     case $depmode in
4152     gcc)
4153       # This depmode causes a compiler race in universal mode.
4154       test "$am__universal" = false || continue
4155       ;;
4156     nosideeffect)
4157       # after this tag, mechanisms are not by side-effect, so they'll
4158       # only be used when explicitly requested
4159       if test "x$enable_dependency_tracking" = xyes; then
4160         continue
4161       else
4162         break
4163       fi
4164       ;;
4165     msvisualcpp | msvcmsys)
4166       # This compiler won't grok `-c -o', but also, the minuso test has
4167       # not run yet.  These depmodes are late enough in the game, and
4168       # so weak that their functioning should not be impacted.
4169       am__obj=conftest.${OBJEXT-o}
4170       am__minus_obj=
4171       ;;
4172     none) break ;;
4173     esac
4174     if depmode=$depmode \
4175        source=sub/conftest.c object=$am__obj \
4176        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4177        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4178          >/dev/null 2>conftest.err &&
4179        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4180        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4181        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4182        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4183       # icc doesn't choke on unknown options, it will just issue warnings
4184       # or remarks (even with -Werror).  So we grep stderr for any message
4185       # that says an option was ignored or not supported.
4186       # When given -MP, icc 7.0 and 7.1 complain thusly:
4187       #   icc: Command line warning: ignoring option '-M'; no argument required
4188       # The diagnosis changed in icc 8.0:
4189       #   icc: Command line remark: option '-MP' not supported
4190       if (grep 'ignoring option' conftest.err ||
4191           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4192         am_cv_CC_dependencies_compiler_type=$depmode
4193         break
4194       fi
4195     fi
4196   done
4197
4198   cd ..
4199   rm -rf conftest.dir
4200 else
4201   am_cv_CC_dependencies_compiler_type=none
4202 fi
4203
4204 fi
4205 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4206 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4207 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4208
4209  if
4210   test "x$enable_dependency_tracking" != xno \
4211   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4212   am__fastdepCC_TRUE=
4213   am__fastdepCC_FALSE='#'
4214 else
4215   am__fastdepCC_TRUE='#'
4216   am__fastdepCC_FALSE=
4217 fi
4218
4219
4220 case `pwd` in
4221   *\ * | *\     *)
4222     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4223 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4224 esac
4225
4226
4227
4228 macro_version='2.2.6b'
4229 macro_revision='1.3017'
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243 ltmain="$ac_aux_dir/ltmain.sh"
4244
4245 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4246 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4247 if test "${ac_cv_path_SED+set}" = set; then
4248   $as_echo_n "(cached) " >&6
4249 else
4250             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4251      for ac_i in 1 2 3 4 5 6 7; do
4252        ac_script="$ac_script$as_nl$ac_script"
4253      done
4254      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4255      $as_unset ac_script || ac_script=
4256      if test -z "$SED"; then
4257   ac_path_SED_found=false
4258   # Loop through the user's path and test for each of PROGNAME-LIST
4259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 for as_dir in $PATH
4261 do
4262   IFS=$as_save_IFS
4263   test -z "$as_dir" && as_dir=.
4264   for ac_prog in sed gsed; do
4265     for ac_exec_ext in '' $ac_executable_extensions; do
4266       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4267       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4268 # Check for GNU ac_path_SED and select it if it is found.
4269   # Check for GNU $ac_path_SED
4270 case `"$ac_path_SED" --version 2>&1` in
4271 *GNU*)
4272   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4273 *)
4274   ac_count=0
4275   $as_echo_n 0123456789 >"conftest.in"
4276   while :
4277   do
4278     cat "conftest.in" "conftest.in" >"conftest.tmp"
4279     mv "conftest.tmp" "conftest.in"
4280     cp "conftest.in" "conftest.nl"
4281     $as_echo '' >> "conftest.nl"
4282     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4284     ac_count=`expr $ac_count + 1`
4285     if test $ac_count -gt ${ac_path_SED_max-0}; then
4286       # Best one so far, save it but keep looking for a better one
4287       ac_cv_path_SED="$ac_path_SED"
4288       ac_path_SED_max=$ac_count
4289     fi
4290     # 10*(2^10) chars as input seems more than enough
4291     test $ac_count -gt 10 && break
4292   done
4293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4294 esac
4295
4296       $ac_path_SED_found && break 3
4297     done
4298   done
4299 done
4300 IFS=$as_save_IFS
4301   if test -z "$ac_cv_path_SED"; then
4302     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4303 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4304    { (exit 1); exit 1; }; }
4305   fi
4306 else
4307   ac_cv_path_SED=$SED
4308 fi
4309
4310 fi
4311 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4312 $as_echo "$ac_cv_path_SED" >&6; }
4313  SED="$ac_cv_path_SED"
4314   rm -f conftest.sed
4315
4316 test -z "$SED" && SED=sed
4317 Xsed="$SED -e 1s/^X//"
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4330 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4331 if test "${ac_cv_path_GREP+set}" = set; then
4332   $as_echo_n "(cached) " >&6
4333 else
4334   if test -z "$GREP"; then
4335   ac_path_GREP_found=false
4336   # Loop through the user's path and test for each of PROGNAME-LIST
4337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342   for ac_prog in grep ggrep; do
4343     for ac_exec_ext in '' $ac_executable_extensions; do
4344       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4345       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4346 # Check for GNU ac_path_GREP and select it if it is found.
4347   # Check for GNU $ac_path_GREP
4348 case `"$ac_path_GREP" --version 2>&1` in
4349 *GNU*)
4350   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4351 *)
4352   ac_count=0
4353   $as_echo_n 0123456789 >"conftest.in"
4354   while :
4355   do
4356     cat "conftest.in" "conftest.in" >"conftest.tmp"
4357     mv "conftest.tmp" "conftest.in"
4358     cp "conftest.in" "conftest.nl"
4359     $as_echo 'GREP' >> "conftest.nl"
4360     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362     ac_count=`expr $ac_count + 1`
4363     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4364       # Best one so far, save it but keep looking for a better one
4365       ac_cv_path_GREP="$ac_path_GREP"
4366       ac_path_GREP_max=$ac_count
4367     fi
4368     # 10*(2^10) chars as input seems more than enough
4369     test $ac_count -gt 10 && break
4370   done
4371   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4372 esac
4373
4374       $ac_path_GREP_found && break 3
4375     done
4376   done
4377 done
4378 IFS=$as_save_IFS
4379   if test -z "$ac_cv_path_GREP"; then
4380     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4381 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4382    { (exit 1); exit 1; }; }
4383   fi
4384 else
4385   ac_cv_path_GREP=$GREP
4386 fi
4387
4388 fi
4389 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; }
4391  GREP="$ac_cv_path_GREP"
4392
4393
4394 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; }
4396 if test "${ac_cv_path_EGREP+set}" = set; then
4397   $as_echo_n "(cached) " >&6
4398 else
4399   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4400    then ac_cv_path_EGREP="$GREP -E"
4401    else
4402      if test -z "$EGREP"; then
4403   ac_path_EGREP_found=false
4404   # Loop through the user's path and test for each of PROGNAME-LIST
4405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410   for ac_prog in egrep; do
4411     for ac_exec_ext in '' $ac_executable_extensions; do
4412       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4413       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415   # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4417 *GNU*)
4418   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4419 *)
4420   ac_count=0
4421   $as_echo_n 0123456789 >"conftest.in"
4422   while :
4423   do
4424     cat "conftest.in" "conftest.in" >"conftest.tmp"
4425     mv "conftest.tmp" "conftest.in"
4426     cp "conftest.in" "conftest.nl"
4427     $as_echo 'EGREP' >> "conftest.nl"
4428     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430     ac_count=`expr $ac_count + 1`
4431     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432       # Best one so far, save it but keep looking for a better one
4433       ac_cv_path_EGREP="$ac_path_EGREP"
4434       ac_path_EGREP_max=$ac_count
4435     fi
4436     # 10*(2^10) chars as input seems more than enough
4437     test $ac_count -gt 10 && break
4438   done
4439   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440 esac
4441
4442       $ac_path_EGREP_found && break 3
4443     done
4444   done
4445 done
4446 IFS=$as_save_IFS
4447   if test -z "$ac_cv_path_EGREP"; then
4448     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4449 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4450    { (exit 1); exit 1; }; }
4451   fi
4452 else
4453   ac_cv_path_EGREP=$EGREP
4454 fi
4455
4456    fi
4457 fi
4458 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4459 $as_echo "$ac_cv_path_EGREP" >&6; }
4460  EGREP="$ac_cv_path_EGREP"
4461
4462
4463 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4464 $as_echo_n "checking for fgrep... " >&6; }
4465 if test "${ac_cv_path_FGREP+set}" = set; then
4466   $as_echo_n "(cached) " >&6
4467 else
4468   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4469    then ac_cv_path_FGREP="$GREP -F"
4470    else
4471      if test -z "$FGREP"; then
4472   ac_path_FGREP_found=false
4473   # Loop through the user's path and test for each of PROGNAME-LIST
4474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4476 do
4477   IFS=$as_save_IFS
4478   test -z "$as_dir" && as_dir=.
4479   for ac_prog in fgrep; do
4480     for ac_exec_ext in '' $ac_executable_extensions; do
4481       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4482       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4483 # Check for GNU ac_path_FGREP and select it if it is found.
4484   # Check for GNU $ac_path_FGREP
4485 case `"$ac_path_FGREP" --version 2>&1` in
4486 *GNU*)
4487   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4488 *)
4489   ac_count=0
4490   $as_echo_n 0123456789 >"conftest.in"
4491   while :
4492   do
4493     cat "conftest.in" "conftest.in" >"conftest.tmp"
4494     mv "conftest.tmp" "conftest.in"
4495     cp "conftest.in" "conftest.nl"
4496     $as_echo 'FGREP' >> "conftest.nl"
4497     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4498     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4499     ac_count=`expr $ac_count + 1`
4500     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4501       # Best one so far, save it but keep looking for a better one
4502       ac_cv_path_FGREP="$ac_path_FGREP"
4503       ac_path_FGREP_max=$ac_count
4504     fi
4505     # 10*(2^10) chars as input seems more than enough
4506     test $ac_count -gt 10 && break
4507   done
4508   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509 esac
4510
4511       $ac_path_FGREP_found && break 3
4512     done
4513   done
4514 done
4515 IFS=$as_save_IFS
4516   if test -z "$ac_cv_path_FGREP"; then
4517     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4518 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4519    { (exit 1); exit 1; }; }
4520   fi
4521 else
4522   ac_cv_path_FGREP=$FGREP
4523 fi
4524
4525    fi
4526 fi
4527 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4528 $as_echo "$ac_cv_path_FGREP" >&6; }
4529  FGREP="$ac_cv_path_FGREP"
4530
4531
4532 test -z "$GREP" && GREP=grep
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 # Check whether --with-gnu-ld was given.
4553 if test "${with_gnu_ld+set}" = set; then
4554   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4555 else
4556   with_gnu_ld=no
4557 fi
4558
4559 ac_prog=ld
4560 if test "$GCC" = yes; then
4561   # Check if gcc -print-prog-name=ld gives a path.
4562   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4563 $as_echo_n "checking for ld used by $CC... " >&6; }
4564   case $host in
4565   *-*-mingw*)
4566     # gcc leaves a trailing carriage return which upsets mingw
4567     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4568   *)
4569     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4570   esac
4571   case $ac_prog in
4572     # Accept absolute paths.
4573     [\\/]* | ?:[\\/]*)
4574       re_direlt='/[^/][^/]*/\.\./'
4575       # Canonicalize the pathname of ld
4576       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4577       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4578         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4579       done
4580       test -z "$LD" && LD="$ac_prog"
4581       ;;
4582   "")
4583     # If it fails, then pretend we aren't using GCC.
4584     ac_prog=ld
4585     ;;
4586   *)
4587     # If it is relative, then search for the first ld in PATH.
4588     with_gnu_ld=unknown
4589     ;;
4590   esac
4591 elif test "$with_gnu_ld" = yes; then
4592   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4593 $as_echo_n "checking for GNU ld... " >&6; }
4594 else
4595   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4596 $as_echo_n "checking for non-GNU ld... " >&6; }
4597 fi
4598 if test "${lt_cv_path_LD+set}" = set; then
4599   $as_echo_n "(cached) " >&6
4600 else
4601   if test -z "$LD"; then
4602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4603   for ac_dir in $PATH; do
4604     IFS="$lt_save_ifs"
4605     test -z "$ac_dir" && ac_dir=.
4606     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4607       lt_cv_path_LD="$ac_dir/$ac_prog"
4608       # Check to see if the program is GNU ld.  I'd rather use --version,
4609       # but apparently some variants of GNU ld only accept -v.
4610       # Break only if it was the GNU/non-GNU ld that we prefer.
4611       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4612       *GNU* | *'with BFD'*)
4613         test "$with_gnu_ld" != no && break
4614         ;;
4615       *)
4616         test "$with_gnu_ld" != yes && break
4617         ;;
4618       esac
4619     fi
4620   done
4621   IFS="$lt_save_ifs"
4622 else
4623   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4624 fi
4625 fi
4626
4627 LD="$lt_cv_path_LD"
4628 if test -n "$LD"; then
4629   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4630 $as_echo "$LD" >&6; }
4631 else
4632   { $as_echo "$as_me:$LINENO: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4636 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4637    { (exit 1); exit 1; }; }
4638 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4639 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4640 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4641   $as_echo_n "(cached) " >&6
4642 else
4643   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4644 case `$LD -v 2>&1 </dev/null` in
4645 *GNU* | *'with BFD'*)
4646   lt_cv_prog_gnu_ld=yes
4647   ;;
4648 *)
4649   lt_cv_prog_gnu_ld=no
4650   ;;
4651 esac
4652 fi
4653 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4654 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4655 with_gnu_ld=$lt_cv_prog_gnu_ld
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4666 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4667 if test "${lt_cv_path_NM+set}" = set; then
4668   $as_echo_n "(cached) " >&6
4669 else
4670   if test -n "$NM"; then
4671   # Let the user override the test.
4672   lt_cv_path_NM="$NM"
4673 else
4674   lt_nm_to_check="${ac_tool_prefix}nm"
4675   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4676     lt_nm_to_check="$lt_nm_to_check nm"
4677   fi
4678   for lt_tmp_nm in $lt_nm_to_check; do
4679     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4680     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4681       IFS="$lt_save_ifs"
4682       test -z "$ac_dir" && ac_dir=.
4683       tmp_nm="$ac_dir/$lt_tmp_nm"
4684       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4685         # Check to see if the nm accepts a BSD-compat flag.
4686         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4687         #   nm: unknown option "B" ignored
4688         # Tru64's nm complains that /dev/null is an invalid object file
4689         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4690         */dev/null* | *'Invalid file or object type'*)
4691           lt_cv_path_NM="$tmp_nm -B"
4692           break
4693           ;;
4694         *)
4695           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4696           */dev/null*)
4697             lt_cv_path_NM="$tmp_nm -p"
4698             break
4699             ;;
4700           *)
4701             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4702             continue # so that we can try to find one that supports BSD flags
4703             ;;
4704           esac
4705           ;;
4706         esac
4707       fi
4708     done
4709     IFS="$lt_save_ifs"
4710   done
4711   : ${lt_cv_path_NM=no}
4712 fi
4713 fi
4714 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4715 $as_echo "$lt_cv_path_NM" >&6; }
4716 if test "$lt_cv_path_NM" != "no"; then
4717   NM="$lt_cv_path_NM"
4718 else
4719   # Didn't find any BSD compatible name lister, look for dumpbin.
4720   if test -n "$ac_tool_prefix"; then
4721   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4722   do
4723     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4728   $as_echo_n "(cached) " >&6
4729 else
4730   if test -n "$DUMPBIN"; then
4731   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738   for ac_exec_ext in '' $ac_executable_extensions; do
4739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4740     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4741     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742     break 2
4743   fi
4744 done
4745 done
4746 IFS=$as_save_IFS
4747
4748 fi
4749 fi
4750 DUMPBIN=$ac_cv_prog_DUMPBIN
4751 if test -n "$DUMPBIN"; then
4752   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4753 $as_echo "$DUMPBIN" >&6; }
4754 else
4755   { $as_echo "$as_me:$LINENO: result: no" >&5
4756 $as_echo "no" >&6; }
4757 fi
4758
4759
4760     test -n "$DUMPBIN" && break
4761   done
4762 fi
4763 if test -z "$DUMPBIN"; then
4764   ac_ct_DUMPBIN=$DUMPBIN
4765   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4766 do
4767   # Extract the first word of "$ac_prog", so it can be a program name with args.
4768 set dummy $ac_prog; ac_word=$2
4769 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4772   $as_echo_n "(cached) " >&6
4773 else
4774   if test -n "$ac_ct_DUMPBIN"; then
4775   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780   IFS=$as_save_IFS
4781   test -z "$as_dir" && as_dir=.
4782   for ac_exec_ext in '' $ac_executable_extensions; do
4783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4785     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786     break 2
4787   fi
4788 done
4789 done
4790 IFS=$as_save_IFS
4791
4792 fi
4793 fi
4794 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4795 if test -n "$ac_ct_DUMPBIN"; then
4796   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4797 $as_echo "$ac_ct_DUMPBIN" >&6; }
4798 else
4799   { $as_echo "$as_me:$LINENO: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802
4803
4804   test -n "$ac_ct_DUMPBIN" && break
4805 done
4806
4807   if test "x$ac_ct_DUMPBIN" = x; then
4808     DUMPBIN=":"
4809   else
4810     case $cross_compiling:$ac_tool_warned in
4811 yes:)
4812 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4814 ac_tool_warned=yes ;;
4815 esac
4816     DUMPBIN=$ac_ct_DUMPBIN
4817   fi
4818 fi
4819
4820
4821   if test "$DUMPBIN" != ":"; then
4822     NM="$DUMPBIN"
4823   fi
4824 fi
4825 test -z "$NM" && NM=nm
4826
4827
4828
4829
4830
4831
4832 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4833 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4834 if test "${lt_cv_nm_interface+set}" = set; then
4835   $as_echo_n "(cached) " >&6
4836 else
4837   lt_cv_nm_interface="BSD nm"
4838   echo "int some_variable = 0;" > conftest.$ac_ext
4839   (eval echo "\"\$as_me:4839: $ac_compile\"" >&5)
4840   (eval "$ac_compile" 2>conftest.err)
4841   cat conftest.err >&5
4842   (eval echo "\"\$as_me:4842: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4843   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4844   cat conftest.err >&5
4845   (eval echo "\"\$as_me:4845: output\"" >&5)
4846   cat conftest.out >&5
4847   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4848     lt_cv_nm_interface="MS dumpbin"
4849   fi
4850   rm -f conftest*
4851 fi
4852 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4853 $as_echo "$lt_cv_nm_interface" >&6; }
4854
4855 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4856 $as_echo_n "checking whether ln -s works... " >&6; }
4857 LN_S=$as_ln_s
4858 if test "$LN_S" = "ln -s"; then
4859   { $as_echo "$as_me:$LINENO: result: yes" >&5
4860 $as_echo "yes" >&6; }
4861 else
4862   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4863 $as_echo "no, using $LN_S" >&6; }
4864 fi
4865
4866 # find the maximum length of command line arguments
4867 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4868 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4869 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4870   $as_echo_n "(cached) " >&6
4871 else
4872     i=0
4873   teststring="ABCD"
4874
4875   case $build_os in
4876   msdosdjgpp*)
4877     # On DJGPP, this test can blow up pretty badly due to problems in libc
4878     # (any single argument exceeding 2000 bytes causes a buffer overrun
4879     # during glob expansion).  Even if it were fixed, the result of this
4880     # check would be larger than it should be.
4881     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4882     ;;
4883
4884   gnu*)
4885     # Under GNU Hurd, this test is not required because there is
4886     # no limit to the length of command line arguments.
4887     # Libtool will interpret -1 as no limit whatsoever
4888     lt_cv_sys_max_cmd_len=-1;
4889     ;;
4890
4891   cygwin* | mingw* | cegcc*)
4892     # On Win9x/ME, this test blows up -- it succeeds, but takes
4893     # about 5 minutes as the teststring grows exponentially.
4894     # Worse, since 9x/ME are not pre-emptively multitasking,
4895     # you end up with a "frozen" computer, even though with patience
4896     # the test eventually succeeds (with a max line length of 256k).
4897     # Instead, let's just punt: use the minimum linelength reported by
4898     # all of the supported platforms: 8192 (on NT/2K/XP).
4899     lt_cv_sys_max_cmd_len=8192;
4900     ;;
4901
4902   amigaos*)
4903     # On AmigaOS with pdksh, this test takes hours, literally.
4904     # So we just punt and use a minimum line length of 8192.
4905     lt_cv_sys_max_cmd_len=8192;
4906     ;;
4907
4908   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4909     # This has been around since 386BSD, at least.  Likely further.
4910     if test -x /sbin/sysctl; then
4911       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4912     elif test -x /usr/sbin/sysctl; then
4913       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4914     else
4915       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4916     fi
4917     # And add a safety zone
4918     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4919     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4920     ;;
4921
4922   interix*)
4923     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4924     lt_cv_sys_max_cmd_len=196608
4925     ;;
4926
4927   osf*)
4928     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4929     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4930     # nice to cause kernel panics so lets avoid the loop below.
4931     # First set a reasonable default.
4932     lt_cv_sys_max_cmd_len=16384
4933     #
4934     if test -x /sbin/sysconfig; then
4935       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4936         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4937       esac
4938     fi
4939     ;;
4940   sco3.2v5*)
4941     lt_cv_sys_max_cmd_len=102400
4942     ;;
4943   sysv5* | sco5v6* | sysv4.2uw2*)
4944     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4945     if test -n "$kargmax"; then
4946       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4947     else
4948       lt_cv_sys_max_cmd_len=32768
4949     fi
4950     ;;
4951   *)
4952     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4953     if test -n "$lt_cv_sys_max_cmd_len"; then
4954       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4955       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4956     else
4957       # Make teststring a little bigger before we do anything with it.
4958       # a 1K string should be a reasonable start.
4959       for i in 1 2 3 4 5 6 7 8 ; do
4960         teststring=$teststring$teststring
4961       done
4962       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4963       # If test is not a shell built-in, we'll probably end up computing a
4964       # maximum length that is only half of the actual maximum length, but
4965       # we can't tell.
4966       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4967                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4968               test $i != 17 # 1/2 MB should be enough
4969       do
4970         i=`expr $i + 1`
4971         teststring=$teststring$teststring
4972       done
4973       # Only check the string length outside the loop.
4974       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4975       teststring=
4976       # Add a significant safety factor because C++ compilers can tack on
4977       # massive amounts of additional arguments before passing them to the
4978       # linker.  It appears as though 1/2 is a usable value.
4979       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4980     fi
4981     ;;
4982   esac
4983
4984 fi
4985
4986 if test -n $lt_cv_sys_max_cmd_len ; then
4987   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4988 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4989 else
4990   { $as_echo "$as_me:$LINENO: result: none" >&5
4991 $as_echo "none" >&6; }
4992 fi
4993 max_cmd_len=$lt_cv_sys_max_cmd_len
4994
4995
4996
4997
4998
4999
5000 : ${CP="cp -f"}
5001 : ${MV="mv -f"}
5002 : ${RM="rm -f"}
5003
5004 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5005 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5006 # Try some XSI features
5007 xsi_shell=no
5008 ( _lt_dummy="a/b/c"
5009   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5010       = c,a/b,, \
5011     && eval 'test $(( 1 + 1 )) -eq 2 \
5012     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5013   && xsi_shell=yes
5014 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5015 $as_echo "$xsi_shell" >&6; }
5016
5017
5018 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5019 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5020 lt_shell_append=no
5021 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5022     >/dev/null 2>&1 \
5023   && lt_shell_append=yes
5024 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5025 $as_echo "$lt_shell_append" >&6; }
5026
5027
5028 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5029   lt_unset=unset
5030 else
5031   lt_unset=false
5032 fi
5033
5034
5035
5036
5037
5038 # test EBCDIC or ASCII
5039 case `echo X|tr X '\101'` in
5040  A) # ASCII based system
5041     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5042   lt_SP2NL='tr \040 \012'
5043   lt_NL2SP='tr \015\012 \040\040'
5044   ;;
5045  *) # EBCDIC based system
5046   lt_SP2NL='tr \100 \n'
5047   lt_NL2SP='tr \r\n \100\100'
5048   ;;
5049 esac
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5060 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5061 if test "${lt_cv_ld_reload_flag+set}" = set; then
5062   $as_echo_n "(cached) " >&6
5063 else
5064   lt_cv_ld_reload_flag='-r'
5065 fi
5066 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5067 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5068 reload_flag=$lt_cv_ld_reload_flag
5069 case $reload_flag in
5070 "" | " "*) ;;
5071 *) reload_flag=" $reload_flag" ;;
5072 esac
5073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5074 case $host_os in
5075   darwin*)
5076     if test "$GCC" = yes; then
5077       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5078     else
5079       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5080     fi
5081     ;;
5082 esac
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 if test -n "$ac_tool_prefix"; then
5093   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -n "$OBJDUMP"; then
5101   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5102 else
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH
5105 do
5106   IFS=$as_save_IFS
5107   test -z "$as_dir" && as_dir=.
5108   for ac_exec_ext in '' $ac_executable_extensions; do
5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5110     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5111     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112     break 2
5113   fi
5114 done
5115 done
5116 IFS=$as_save_IFS
5117
5118 fi
5119 fi
5120 OBJDUMP=$ac_cv_prog_OBJDUMP
5121 if test -n "$OBJDUMP"; then
5122   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5123 $as_echo "$OBJDUMP" >&6; }
5124 else
5125   { $as_echo "$as_me:$LINENO: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 fi
5131 if test -z "$ac_cv_prog_OBJDUMP"; then
5132   ac_ct_OBJDUMP=$OBJDUMP
5133   # Extract the first word of "objdump", so it can be a program name with args.
5134 set dummy objdump; ac_word=$2
5135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5136 $as_echo_n "checking for $ac_word... " >&6; }
5137 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5138   $as_echo_n "(cached) " >&6
5139 else
5140   if test -n "$ac_ct_OBJDUMP"; then
5141   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5142 else
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for ac_exec_ext in '' $ac_executable_extensions; do
5149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5150     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155 done
5156 IFS=$as_save_IFS
5157
5158 fi
5159 fi
5160 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5161 if test -n "$ac_ct_OBJDUMP"; then
5162   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5163 $as_echo "$ac_ct_OBJDUMP" >&6; }
5164 else
5165   { $as_echo "$as_me:$LINENO: result: no" >&5
5166 $as_echo "no" >&6; }
5167 fi
5168
5169   if test "x$ac_ct_OBJDUMP" = x; then
5170     OBJDUMP="false"
5171   else
5172     case $cross_compiling:$ac_tool_warned in
5173 yes:)
5174 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5176 ac_tool_warned=yes ;;
5177 esac
5178     OBJDUMP=$ac_ct_OBJDUMP
5179   fi
5180 else
5181   OBJDUMP="$ac_cv_prog_OBJDUMP"
5182 fi
5183
5184 test -z "$OBJDUMP" && OBJDUMP=objdump
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5195 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5196 if test "${lt_cv_deplibs_check_method+set}" = set; then
5197   $as_echo_n "(cached) " >&6
5198 else
5199   lt_cv_file_magic_cmd='$MAGIC_CMD'
5200 lt_cv_file_magic_test_file=
5201 lt_cv_deplibs_check_method='unknown'
5202 # Need to set the preceding variable on all platforms that support
5203 # interlibrary dependencies.
5204 # 'none' -- dependencies not supported.
5205 # `unknown' -- same as none, but documents that we really don't know.
5206 # 'pass_all' -- all dependencies passed with no checks.
5207 # 'test_compile' -- check by making test program.
5208 # 'file_magic [[regex]]' -- check by looking for files in library path
5209 # which responds to the $file_magic_cmd with a given extended regex.
5210 # If you have `file' or equivalent on your system and you're not sure
5211 # whether `pass_all' will *always* work, you probably want this one.
5212
5213 case $host_os in
5214 aix[4-9]*)
5215   lt_cv_deplibs_check_method=pass_all
5216   ;;
5217
5218 beos*)
5219   lt_cv_deplibs_check_method=pass_all
5220   ;;
5221
5222 bsdi[45]*)
5223   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5224   lt_cv_file_magic_cmd='/usr/bin/file -L'
5225   lt_cv_file_magic_test_file=/shlib/libc.so
5226   ;;
5227
5228 cygwin*)
5229   # func_win32_libid is a shell function defined in ltmain.sh
5230   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5231   lt_cv_file_magic_cmd='func_win32_libid'
5232   ;;
5233
5234 mingw* | pw32*)
5235   # Base MSYS/MinGW do not provide the 'file' command needed by
5236   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5237   # unless we find 'file', for example because we are cross-compiling.
5238   if ( file / ) >/dev/null 2>&1; then
5239     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5240     lt_cv_file_magic_cmd='func_win32_libid'
5241   else
5242     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5243     lt_cv_file_magic_cmd='$OBJDUMP -f'
5244   fi
5245   ;;
5246
5247 cegcc)
5248   # use the weaker test based on 'objdump'. See mingw*.
5249   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5250   lt_cv_file_magic_cmd='$OBJDUMP -f'
5251   ;;
5252
5253 darwin* | rhapsody*)
5254   lt_cv_deplibs_check_method=pass_all
5255   ;;
5256
5257 freebsd* | dragonfly*)
5258   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5259     case $host_cpu in
5260     i*86 )
5261       # Not sure whether the presence of OpenBSD here was a mistake.
5262       # Let's accept both of them until this is cleared up.
5263       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5264       lt_cv_file_magic_cmd=/usr/bin/file
5265       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5266       ;;
5267     esac
5268   else
5269     lt_cv_deplibs_check_method=pass_all
5270   fi
5271   ;;
5272
5273 gnu*)
5274   lt_cv_deplibs_check_method=pass_all
5275   ;;
5276
5277 hpux10.20* | hpux11*)
5278   lt_cv_file_magic_cmd=/usr/bin/file
5279   case $host_cpu in
5280   ia64*)
5281     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5282     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5283     ;;
5284   hppa*64*)
5285     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]'
5286     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5287     ;;
5288   *)
5289     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5290     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5291     ;;
5292   esac
5293   ;;
5294
5295 interix[3-9]*)
5296   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5297   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5298   ;;
5299
5300 irix5* | irix6* | nonstopux*)
5301   case $LD in
5302   *-32|*"-32 ") libmagic=32-bit;;
5303   *-n32|*"-n32 ") libmagic=N32;;
5304   *-64|*"-64 ") libmagic=64-bit;;
5305   *) libmagic=never-match;;
5306   esac
5307   lt_cv_deplibs_check_method=pass_all
5308   ;;
5309
5310 # This must be Linux ELF.
5311 linux* | k*bsd*-gnu)
5312   lt_cv_deplibs_check_method=pass_all
5313   ;;
5314
5315 netbsd*)
5316   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5317     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5318   else
5319     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5320   fi
5321   ;;
5322
5323 newos6*)
5324   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5325   lt_cv_file_magic_cmd=/usr/bin/file
5326   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5327   ;;
5328
5329 *nto* | *qnx*)
5330   lt_cv_deplibs_check_method=pass_all
5331   ;;
5332
5333 openbsd*)
5334   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5335     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5336   else
5337     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5338   fi
5339   ;;
5340
5341 osf3* | osf4* | osf5*)
5342   lt_cv_deplibs_check_method=pass_all
5343   ;;
5344
5345 rdos*)
5346   lt_cv_deplibs_check_method=pass_all
5347   ;;
5348
5349 solaris*)
5350   lt_cv_deplibs_check_method=pass_all
5351   ;;
5352
5353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5354   lt_cv_deplibs_check_method=pass_all
5355   ;;
5356
5357 sysv4 | sysv4.3*)
5358   case $host_vendor in
5359   motorola)
5360     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]'
5361     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5362     ;;
5363   ncr)
5364     lt_cv_deplibs_check_method=pass_all
5365     ;;
5366   sequent)
5367     lt_cv_file_magic_cmd='/bin/file'
5368     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5369     ;;
5370   sni)
5371     lt_cv_file_magic_cmd='/bin/file'
5372     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5373     lt_cv_file_magic_test_file=/lib/libc.so
5374     ;;
5375   siemens)
5376     lt_cv_deplibs_check_method=pass_all
5377     ;;
5378   pc)
5379     lt_cv_deplibs_check_method=pass_all
5380     ;;
5381   esac
5382   ;;
5383
5384 tpf*)
5385   lt_cv_deplibs_check_method=pass_all
5386   ;;
5387 esac
5388
5389 fi
5390 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5391 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5392 file_magic_cmd=$lt_cv_file_magic_cmd
5393 deplibs_check_method=$lt_cv_deplibs_check_method
5394 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407 if test -n "$ac_tool_prefix"; then
5408   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5409 set dummy ${ac_tool_prefix}ar; ac_word=$2
5410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if test "${ac_cv_prog_AR+set}" = set; then
5413   $as_echo_n "(cached) " >&6
5414 else
5415   if test -n "$AR"; then
5416   ac_cv_prog_AR="$AR" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423   for ac_exec_ext in '' $ac_executable_extensions; do
5424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425     ac_cv_prog_AR="${ac_tool_prefix}ar"
5426     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430 done
5431 IFS=$as_save_IFS
5432
5433 fi
5434 fi
5435 AR=$ac_cv_prog_AR
5436 if test -n "$AR"; then
5437   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5438 $as_echo "$AR" >&6; }
5439 else
5440   { $as_echo "$as_me:$LINENO: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444
5445 fi
5446 if test -z "$ac_cv_prog_AR"; then
5447   ac_ct_AR=$AR
5448   # Extract the first word of "ar", so it can be a program name with args.
5449 set dummy ar; ac_word=$2
5450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5453   $as_echo_n "(cached) " >&6
5454 else
5455   if test -n "$ac_ct_AR"; then
5456   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461   IFS=$as_save_IFS
5462   test -z "$as_dir" && as_dir=.
5463   for ac_exec_ext in '' $ac_executable_extensions; do
5464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465     ac_cv_prog_ac_ct_AR="ar"
5466     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467     break 2
5468   fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 fi
5474 fi
5475 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5476 if test -n "$ac_ct_AR"; then
5477   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5478 $as_echo "$ac_ct_AR" >&6; }
5479 else
5480   { $as_echo "$as_me:$LINENO: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483
5484   if test "x$ac_ct_AR" = x; then
5485     AR="false"
5486   else
5487     case $cross_compiling:$ac_tool_warned in
5488 yes:)
5489 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491 ac_tool_warned=yes ;;
5492 esac
5493     AR=$ac_ct_AR
5494   fi
5495 else
5496   AR="$ac_cv_prog_AR"
5497 fi
5498
5499 test -z "$AR" && AR=ar
5500 test -z "$AR_FLAGS" && AR_FLAGS=cru
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512 if test -n "$ac_tool_prefix"; then
5513   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5514 set dummy ${ac_tool_prefix}strip; ac_word=$2
5515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if test "${ac_cv_prog_STRIP+set}" = set; then
5518   $as_echo_n "(cached) " >&6
5519 else
5520   if test -n "$STRIP"; then
5521   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5522 else
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 for as_dir in $PATH
5525 do
5526   IFS=$as_save_IFS
5527   test -z "$as_dir" && as_dir=.
5528   for ac_exec_ext in '' $ac_executable_extensions; do
5529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5530     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5531     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532     break 2
5533   fi
5534 done
5535 done
5536 IFS=$as_save_IFS
5537
5538 fi
5539 fi
5540 STRIP=$ac_cv_prog_STRIP
5541 if test -n "$STRIP"; then
5542   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5543 $as_echo "$STRIP" >&6; }
5544 else
5545   { $as_echo "$as_me:$LINENO: result: no" >&5
5546 $as_echo "no" >&6; }
5547 fi
5548
5549
5550 fi
5551 if test -z "$ac_cv_prog_STRIP"; then
5552   ac_ct_STRIP=$STRIP
5553   # Extract the first word of "strip", so it can be a program name with args.
5554 set dummy strip; ac_word=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5558   $as_echo_n "(cached) " >&6
5559 else
5560   if test -n "$ac_ct_STRIP"; then
5561   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566   IFS=$as_save_IFS
5567   test -z "$as_dir" && as_dir=.
5568   for ac_exec_ext in '' $ac_executable_extensions; do
5569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570     ac_cv_prog_ac_ct_STRIP="strip"
5571     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5572     break 2
5573   fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5581 if test -n "$ac_ct_STRIP"; then
5582   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5583 $as_echo "$ac_ct_STRIP" >&6; }
5584 else
5585   { $as_echo "$as_me:$LINENO: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589   if test "x$ac_ct_STRIP" = x; then
5590     STRIP=":"
5591   else
5592     case $cross_compiling:$ac_tool_warned in
5593 yes:)
5594 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596 ac_tool_warned=yes ;;
5597 esac
5598     STRIP=$ac_ct_STRIP
5599   fi
5600 else
5601   STRIP="$ac_cv_prog_STRIP"
5602 fi
5603
5604 test -z "$STRIP" && STRIP=:
5605
5606
5607
5608
5609
5610
5611 if test -n "$ac_tool_prefix"; then
5612   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if test "${ac_cv_prog_RANLIB+set}" = set; then
5617   $as_echo_n "(cached) " >&6
5618 else
5619   if test -n "$RANLIB"; then
5620   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5624 do
5625   IFS=$as_save_IFS
5626   test -z "$as_dir" && as_dir=.
5627   for ac_exec_ext in '' $ac_executable_extensions; do
5628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5630     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631     break 2
5632   fi
5633 done
5634 done
5635 IFS=$as_save_IFS
5636
5637 fi
5638 fi
5639 RANLIB=$ac_cv_prog_RANLIB
5640 if test -n "$RANLIB"; then
5641   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5642 $as_echo "$RANLIB" >&6; }
5643 else
5644   { $as_echo "$as_me:$LINENO: result: no" >&5
5645 $as_echo "no" >&6; }
5646 fi
5647
5648
5649 fi
5650 if test -z "$ac_cv_prog_RANLIB"; then
5651   ac_ct_RANLIB=$RANLIB
5652   # Extract the first word of "ranlib", so it can be a program name with args.
5653 set dummy ranlib; ac_word=$2
5654 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5657   $as_echo_n "(cached) " >&6
5658 else
5659   if test -n "$ac_ct_RANLIB"; then
5660   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665   IFS=$as_save_IFS
5666   test -z "$as_dir" && as_dir=.
5667   for ac_exec_ext in '' $ac_executable_extensions; do
5668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669     ac_cv_prog_ac_ct_RANLIB="ranlib"
5670     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671     break 2
5672   fi
5673 done
5674 done
5675 IFS=$as_save_IFS
5676
5677 fi
5678 fi
5679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5680 if test -n "$ac_ct_RANLIB"; then
5681   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5682 $as_echo "$ac_ct_RANLIB" >&6; }
5683 else
5684   { $as_echo "$as_me:$LINENO: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687
5688   if test "x$ac_ct_RANLIB" = x; then
5689     RANLIB=":"
5690   else
5691     case $cross_compiling:$ac_tool_warned in
5692 yes:)
5693 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695 ac_tool_warned=yes ;;
5696 esac
5697     RANLIB=$ac_ct_RANLIB
5698   fi
5699 else
5700   RANLIB="$ac_cv_prog_RANLIB"
5701 fi
5702
5703 test -z "$RANLIB" && RANLIB=:
5704
5705
5706
5707
5708
5709
5710 # Determine commands to create old-style static archives.
5711 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5712 old_postinstall_cmds='chmod 644 $oldlib'
5713 old_postuninstall_cmds=
5714
5715 if test -n "$RANLIB"; then
5716   case $host_os in
5717   openbsd*)
5718     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5719     ;;
5720   *)
5721     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5722     ;;
5723   esac
5724   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5725 fi
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760 # If no C compiler was specified, use CC.
5761 LTCC=${LTCC-"$CC"}
5762
5763 # If no C compiler flags were specified, use CFLAGS.
5764 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5765
5766 # Allow CC to be a program name with arguments.
5767 compiler=$CC
5768
5769
5770 # Check for command to grab the raw symbol name followed by C symbol from nm.
5771 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5772 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5773 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5774   $as_echo_n "(cached) " >&6
5775 else
5776
5777 # These are sane defaults that work on at least a few old systems.
5778 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5779
5780 # Character class describing NM global symbol codes.
5781 symcode='[BCDEGRST]'
5782
5783 # Regexp to match symbols that can be accessed directly from C.
5784 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5785
5786 # Define system-specific variables.
5787 case $host_os in
5788 aix*)
5789   symcode='[BCDT]'
5790   ;;
5791 cygwin* | mingw* | pw32* | cegcc*)
5792   symcode='[ABCDGISTW]'
5793   ;;
5794 hpux*)
5795   if test "$host_cpu" = ia64; then
5796     symcode='[ABCDEGRST]'
5797   fi
5798   ;;
5799 irix* | nonstopux*)
5800   symcode='[BCDEGRST]'
5801   ;;
5802 osf*)
5803   symcode='[BCDEGQRST]'
5804   ;;
5805 solaris*)
5806   symcode='[BDRT]'
5807   ;;
5808 sco3.2v5*)
5809   symcode='[DT]'
5810   ;;
5811 sysv4.2uw2*)
5812   symcode='[DT]'
5813   ;;
5814 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5815   symcode='[ABDT]'
5816   ;;
5817 sysv4)
5818   symcode='[DFNSTU]'
5819   ;;
5820 esac
5821
5822 # If we're using GNU nm, then use its standard symbol codes.
5823 case `$NM -V 2>&1` in
5824 *GNU* | *'with BFD'*)
5825   symcode='[ABCDGIRSTW]' ;;
5826 esac
5827
5828 # Transform an extracted symbol line into a proper C declaration.
5829 # Some systems (esp. on ia64) link data and code symbols differently,
5830 # so use this general approach.
5831 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5832
5833 # Transform an extracted symbol line into symbol name and symbol address
5834 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5835 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'"
5836
5837 # Handle CRLF in mingw tool chain
5838 opt_cr=
5839 case $build_os in
5840 mingw*)
5841   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5842   ;;
5843 esac
5844
5845 # Try without a prefix underscore, then with it.
5846 for ac_symprfx in "" "_"; do
5847
5848   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5849   symxfrm="\\1 $ac_symprfx\\2 \\2"
5850
5851   # Write the raw and C identifiers.
5852   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5853     # Fake it for dumpbin and say T for any non-static function
5854     # and D for any global variable.
5855     # Also find C++ and __fastcall symbols from MSVC++,
5856     # which start with @ or ?.
5857     lt_cv_sys_global_symbol_pipe="$AWK '"\
5858 "     {last_section=section; section=\$ 3};"\
5859 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5860 "     \$ 0!~/External *\|/{next};"\
5861 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5862 "     {if(hide[section]) next};"\
5863 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5864 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5865 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5866 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5867 "     ' prfx=^$ac_symprfx"
5868   else
5869     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5870   fi
5871
5872   # Check to see that the pipe works correctly.
5873   pipe_works=no
5874
5875   rm -f conftest*
5876   cat > conftest.$ac_ext <<_LT_EOF
5877 #ifdef __cplusplus
5878 extern "C" {
5879 #endif
5880 char nm_test_var;
5881 void nm_test_func(void);
5882 void nm_test_func(void){}
5883 #ifdef __cplusplus
5884 }
5885 #endif
5886 int main(){nm_test_var='a';nm_test_func();return(0);}
5887 _LT_EOF
5888
5889   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890   (eval $ac_compile) 2>&5
5891   ac_status=$?
5892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; then
5894     # Now try to grab the symbols.
5895     nlist=conftest.nm
5896     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5897   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5898   ac_status=$?
5899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } && test -s "$nlist"; then
5901       # Try sorting and uniquifying the output.
5902       if sort "$nlist" | uniq > "$nlist"T; then
5903         mv -f "$nlist"T "$nlist"
5904       else
5905         rm -f "$nlist"T
5906       fi
5907
5908       # Make sure that we snagged all the symbols we need.
5909       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5910         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5911           cat <<_LT_EOF > conftest.$ac_ext
5912 #ifdef __cplusplus
5913 extern "C" {
5914 #endif
5915
5916 _LT_EOF
5917           # Now generate the symbol file.
5918           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5919
5920           cat <<_LT_EOF >> conftest.$ac_ext
5921
5922 /* The mapping between symbol names and symbols.  */
5923 const struct {
5924   const char *name;
5925   void       *address;
5926 }
5927 lt__PROGRAM__LTX_preloaded_symbols[] =
5928 {
5929   { "@PROGRAM@", (void *) 0 },
5930 _LT_EOF
5931           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5932           cat <<\_LT_EOF >> conftest.$ac_ext
5933   {0, (void *) 0}
5934 };
5935
5936 /* This works around a problem in FreeBSD linker */
5937 #ifdef FREEBSD_WORKAROUND
5938 static const void *lt_preloaded_setup() {
5939   return lt__PROGRAM__LTX_preloaded_symbols;
5940 }
5941 #endif
5942
5943 #ifdef __cplusplus
5944 }
5945 #endif
5946 _LT_EOF
5947           # Now try linking the two files.
5948           mv conftest.$ac_objext conftstm.$ac_objext
5949           lt_save_LIBS="$LIBS"
5950           lt_save_CFLAGS="$CFLAGS"
5951           LIBS="conftstm.$ac_objext"
5952           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5953           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954   (eval $ac_link) 2>&5
5955   ac_status=$?
5956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5958             pipe_works=yes
5959           fi
5960           LIBS="$lt_save_LIBS"
5961           CFLAGS="$lt_save_CFLAGS"
5962         else
5963           echo "cannot find nm_test_func in $nlist" >&5
5964         fi
5965       else
5966         echo "cannot find nm_test_var in $nlist" >&5
5967       fi
5968     else
5969       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5970     fi
5971   else
5972     echo "$progname: failed program was:" >&5
5973     cat conftest.$ac_ext >&5
5974   fi
5975   rm -rf conftest* conftst*
5976
5977   # Do not use the global_symbol_pipe unless it works.
5978   if test "$pipe_works" = yes; then
5979     break
5980   else
5981     lt_cv_sys_global_symbol_pipe=
5982   fi
5983 done
5984
5985 fi
5986
5987 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5988   lt_cv_sys_global_symbol_to_cdecl=
5989 fi
5990 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5991   { $as_echo "$as_me:$LINENO: result: failed" >&5
5992 $as_echo "failed" >&6; }
5993 else
5994   { $as_echo "$as_me:$LINENO: result: ok" >&5
5995 $as_echo "ok" >&6; }
5996 fi
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020 # Check whether --enable-libtool-lock was given.
6021 if test "${enable_libtool_lock+set}" = set; then
6022   enableval=$enable_libtool_lock;
6023 fi
6024
6025 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6026
6027 # Some flags need to be propagated to the compiler or linker for good
6028 # libtool support.
6029 case $host in
6030 ia64-*-hpux*)
6031   # Find out which ABI we are using.
6032   echo 'int i;' > conftest.$ac_ext
6033   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6034   (eval $ac_compile) 2>&5
6035   ac_status=$?
6036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037   (exit $ac_status); }; then
6038     case `/usr/bin/file conftest.$ac_objext` in
6039       *ELF-32*)
6040         HPUX_IA64_MODE="32"
6041         ;;
6042       *ELF-64*)
6043         HPUX_IA64_MODE="64"
6044         ;;
6045     esac
6046   fi
6047   rm -rf conftest*
6048   ;;
6049 *-*-irix6*)
6050   # Find out which ABI we are using.
6051   echo '#line 6051 "configure"' > conftest.$ac_ext
6052   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053   (eval $ac_compile) 2>&5
6054   ac_status=$?
6055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; then
6057     if test "$lt_cv_prog_gnu_ld" = yes; then
6058       case `/usr/bin/file conftest.$ac_objext` in
6059         *32-bit*)
6060           LD="${LD-ld} -melf32bsmip"
6061           ;;
6062         *N32*)
6063           LD="${LD-ld} -melf32bmipn32"
6064           ;;
6065         *64-bit*)
6066           LD="${LD-ld} -melf64bmip"
6067         ;;
6068       esac
6069     else
6070       case `/usr/bin/file conftest.$ac_objext` in
6071         *32-bit*)
6072           LD="${LD-ld} -32"
6073           ;;
6074         *N32*)
6075           LD="${LD-ld} -n32"
6076           ;;
6077         *64-bit*)
6078           LD="${LD-ld} -64"
6079           ;;
6080       esac
6081     fi
6082   fi
6083   rm -rf conftest*
6084   ;;
6085
6086 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6087 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6088   # Find out which ABI we are using.
6089   echo 'int i;' > conftest.$ac_ext
6090   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6091   (eval $ac_compile) 2>&5
6092   ac_status=$?
6093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; then
6095     case `/usr/bin/file conftest.o` in
6096       *32-bit*)
6097         case $host in
6098           x86_64-*kfreebsd*-gnu)
6099             LD="${LD-ld} -m elf_i386_fbsd"
6100             ;;
6101           x86_64-*linux*)
6102             LD="${LD-ld} -m elf_i386"
6103             ;;
6104           ppc64-*linux*|powerpc64-*linux*)
6105             LD="${LD-ld} -m elf32ppclinux"
6106             ;;
6107           s390x-*linux*)
6108             LD="${LD-ld} -m elf_s390"
6109             ;;
6110           sparc64-*linux*)
6111             LD="${LD-ld} -m elf32_sparc"
6112             ;;
6113         esac
6114         ;;
6115       *64-bit*)
6116         case $host in
6117           x86_64-*kfreebsd*-gnu)
6118             LD="${LD-ld} -m elf_x86_64_fbsd"
6119             ;;
6120           x86_64-*linux*)
6121             LD="${LD-ld} -m elf_x86_64"
6122             ;;
6123           ppc*-*linux*|powerpc*-*linux*)
6124             LD="${LD-ld} -m elf64ppc"
6125             ;;
6126           s390*-*linux*|s390*-*tpf*)
6127             LD="${LD-ld} -m elf64_s390"
6128             ;;
6129           sparc*-*linux*)
6130             LD="${LD-ld} -m elf64_sparc"
6131             ;;
6132         esac
6133         ;;
6134     esac
6135   fi
6136   rm -rf conftest*
6137   ;;
6138
6139 *-*-sco3.2v5*)
6140   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6141   SAVE_CFLAGS="$CFLAGS"
6142   CFLAGS="$CFLAGS -belf"
6143   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6144 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6145 if test "${lt_cv_cc_needs_belf+set}" = set; then
6146   $as_echo_n "(cached) " >&6
6147 else
6148   ac_ext=c
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153
6154      cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160
6161 int
6162 main ()
6163 {
6164
6165   ;
6166   return 0;
6167 }
6168 _ACEOF
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (ac_try="$ac_link"
6171 case "(($ac_try" in
6172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173   *) ac_try_echo=$ac_try;;
6174 esac
6175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6176 $as_echo "$ac_try_echo") >&5
6177   (eval "$ac_link") 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } && {
6184          test -z "$ac_c_werror_flag" ||
6185          test ! -s conftest.err
6186        } && test -s conftest$ac_exeext && {
6187          test "$cross_compiling" = yes ||
6188          $as_test_x conftest$ac_exeext
6189        }; then
6190   lt_cv_cc_needs_belf=yes
6191 else
6192   $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195         lt_cv_cc_needs_belf=no
6196 fi
6197
6198 rm -rf conftest.dSYM
6199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6200       conftest$ac_exeext conftest.$ac_ext
6201      ac_ext=c
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206
6207 fi
6208 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6209 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6210   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6211     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6212     CFLAGS="$SAVE_CFLAGS"
6213   fi
6214   ;;
6215 sparc*-*solaris*)
6216   # Find out which ABI we are using.
6217   echo 'int i;' > conftest.$ac_ext
6218   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6219   (eval $ac_compile) 2>&5
6220   ac_status=$?
6221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222   (exit $ac_status); }; then
6223     case `/usr/bin/file conftest.o` in
6224     *64-bit*)
6225       case $lt_cv_prog_gnu_ld in
6226       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6227       *)
6228         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6229           LD="${LD-ld} -64"
6230         fi
6231         ;;
6232       esac
6233       ;;
6234     esac
6235   fi
6236   rm -rf conftest*
6237   ;;
6238 esac
6239
6240 need_locks="$enable_libtool_lock"
6241
6242
6243   case $host_os in
6244     rhapsody* | darwin*)
6245     if test -n "$ac_tool_prefix"; then
6246   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6251   $as_echo_n "(cached) " >&6
6252 else
6253   if test -n "$DSYMUTIL"; then
6254   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261   for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6264     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6270
6271 fi
6272 fi
6273 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6274 if test -n "$DSYMUTIL"; then
6275   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6276 $as_echo "$DSYMUTIL" >&6; }
6277 else
6278   { $as_echo "$as_me:$LINENO: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281
6282
6283 fi
6284 if test -z "$ac_cv_prog_DSYMUTIL"; then
6285   ac_ct_DSYMUTIL=$DSYMUTIL
6286   # Extract the first word of "dsymutil", so it can be a program name with args.
6287 set dummy dsymutil; ac_word=$2
6288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6291   $as_echo_n "(cached) " >&6
6292 else
6293   if test -n "$ac_ct_DSYMUTIL"; then
6294   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301   for ac_exec_ext in '' $ac_executable_extensions; do
6302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6304     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6305     break 2
6306   fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi
6312 fi
6313 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6314 if test -n "$ac_ct_DSYMUTIL"; then
6315   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6316 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6317 else
6318   { $as_echo "$as_me:$LINENO: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6321
6322   if test "x$ac_ct_DSYMUTIL" = x; then
6323     DSYMUTIL=":"
6324   else
6325     case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331     DSYMUTIL=$ac_ct_DSYMUTIL
6332   fi
6333 else
6334   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6335 fi
6336
6337     if test -n "$ac_tool_prefix"; then
6338   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6343   $as_echo_n "(cached) " >&6
6344 else
6345   if test -n "$NMEDIT"; then
6346   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351   IFS=$as_save_IFS
6352   test -z "$as_dir" && as_dir=.
6353   for ac_exec_ext in '' $ac_executable_extensions; do
6354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6356     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357     break 2
6358   fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6362
6363 fi
6364 fi
6365 NMEDIT=$ac_cv_prog_NMEDIT
6366 if test -n "$NMEDIT"; then
6367   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6368 $as_echo "$NMEDIT" >&6; }
6369 else
6370   { $as_echo "$as_me:$LINENO: result: no" >&5
6371 $as_echo "no" >&6; }
6372 fi
6373
6374
6375 fi
6376 if test -z "$ac_cv_prog_NMEDIT"; then
6377   ac_ct_NMEDIT=$NMEDIT
6378   # Extract the first word of "nmedit", so it can be a program name with args.
6379 set dummy nmedit; ac_word=$2
6380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6383   $as_echo_n "(cached) " >&6
6384 else
6385   if test -n "$ac_ct_NMEDIT"; then
6386   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391   IFS=$as_save_IFS
6392   test -z "$as_dir" && as_dir=.
6393   for ac_exec_ext in '' $ac_executable_extensions; do
6394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6396     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6397     break 2
6398   fi
6399 done
6400 done
6401 IFS=$as_save_IFS
6402
6403 fi
6404 fi
6405 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6406 if test -n "$ac_ct_NMEDIT"; then
6407   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6408 $as_echo "$ac_ct_NMEDIT" >&6; }
6409 else
6410   { $as_echo "$as_me:$LINENO: result: no" >&5
6411 $as_echo "no" >&6; }
6412 fi
6413
6414   if test "x$ac_ct_NMEDIT" = x; then
6415     NMEDIT=":"
6416   else
6417     case $cross_compiling:$ac_tool_warned in
6418 yes:)
6419 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423     NMEDIT=$ac_ct_NMEDIT
6424   fi
6425 else
6426   NMEDIT="$ac_cv_prog_NMEDIT"
6427 fi
6428
6429     if test -n "$ac_tool_prefix"; then
6430   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_LIPO+set}" = set; then
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$LIPO"; then
6438   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445   for ac_exec_ext in '' $ac_executable_extensions; do
6446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 LIPO=$ac_cv_prog_LIPO
6458 if test -n "$LIPO"; then
6459   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6460 $as_echo "$LIPO" >&6; }
6461 else
6462   { $as_echo "$as_me:$LINENO: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467 fi
6468 if test -z "$ac_cv_prog_LIPO"; then
6469   ac_ct_LIPO=$LIPO
6470   # Extract the first word of "lipo", so it can be a program name with args.
6471 set dummy lipo; ac_word=$2
6472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$ac_ct_LIPO"; then
6478   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485   for ac_exec_ext in '' $ac_executable_extensions; do
6486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487     ac_cv_prog_ac_ct_LIPO="lipo"
6488     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6498 if test -n "$ac_ct_LIPO"; then
6499   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6500 $as_echo "$ac_ct_LIPO" >&6; }
6501 else
6502   { $as_echo "$as_me:$LINENO: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506   if test "x$ac_ct_LIPO" = x; then
6507     LIPO=":"
6508   else
6509     case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515     LIPO=$ac_ct_LIPO
6516   fi
6517 else
6518   LIPO="$ac_cv_prog_LIPO"
6519 fi
6520
6521     if test -n "$ac_tool_prefix"; then
6522   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6523 set dummy ${ac_tool_prefix}otool; ac_word=$2
6524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 $as_echo_n "checking for $ac_word... " >&6; }
6526 if test "${ac_cv_prog_OTOOL+set}" = set; then
6527   $as_echo_n "(cached) " >&6
6528 else
6529   if test -n "$OTOOL"; then
6530   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6531 else
6532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 for as_dir in $PATH
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537   for ac_exec_ext in '' $ac_executable_extensions; do
6538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6539     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6540     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544 done
6545 IFS=$as_save_IFS
6546
6547 fi
6548 fi
6549 OTOOL=$ac_cv_prog_OTOOL
6550 if test -n "$OTOOL"; then
6551   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6552 $as_echo "$OTOOL" >&6; }
6553 else
6554   { $as_echo "$as_me:$LINENO: result: no" >&5
6555 $as_echo "no" >&6; }
6556 fi
6557
6558
6559 fi
6560 if test -z "$ac_cv_prog_OTOOL"; then
6561   ac_ct_OTOOL=$OTOOL
6562   # Extract the first word of "otool", so it can be a program name with args.
6563 set dummy otool; ac_word=$2
6564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6567   $as_echo_n "(cached) " >&6
6568 else
6569   if test -n "$ac_ct_OTOOL"; then
6570   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577   for ac_exec_ext in '' $ac_executable_extensions; do
6578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579     ac_cv_prog_ac_ct_OTOOL="otool"
6580     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584 done
6585 IFS=$as_save_IFS
6586
6587 fi
6588 fi
6589 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6590 if test -n "$ac_ct_OTOOL"; then
6591   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6592 $as_echo "$ac_ct_OTOOL" >&6; }
6593 else
6594   { $as_echo "$as_me:$LINENO: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597
6598   if test "x$ac_ct_OTOOL" = x; then
6599     OTOOL=":"
6600   else
6601     case $cross_compiling:$ac_tool_warned in
6602 yes:)
6603 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned=yes ;;
6606 esac
6607     OTOOL=$ac_ct_OTOOL
6608   fi
6609 else
6610   OTOOL="$ac_cv_prog_OTOOL"
6611 fi
6612
6613     if test -n "$ac_tool_prefix"; then
6614   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6615 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6619   $as_echo_n "(cached) " >&6
6620 else
6621   if test -n "$OTOOL64"; then
6622   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6623 else
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 for as_dir in $PATH
6626 do
6627   IFS=$as_save_IFS
6628   test -z "$as_dir" && as_dir=.
6629   for ac_exec_ext in '' $ac_executable_extensions; do
6630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6631     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6632     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633     break 2
6634   fi
6635 done
6636 done
6637 IFS=$as_save_IFS
6638
6639 fi
6640 fi
6641 OTOOL64=$ac_cv_prog_OTOOL64
6642 if test -n "$OTOOL64"; then
6643   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6644 $as_echo "$OTOOL64" >&6; }
6645 else
6646   { $as_echo "$as_me:$LINENO: result: no" >&5
6647 $as_echo "no" >&6; }
6648 fi
6649
6650
6651 fi
6652 if test -z "$ac_cv_prog_OTOOL64"; then
6653   ac_ct_OTOOL64=$OTOOL64
6654   # Extract the first word of "otool64", so it can be a program name with args.
6655 set dummy otool64; ac_word=$2
6656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6659   $as_echo_n "(cached) " >&6
6660 else
6661   if test -n "$ac_ct_OTOOL64"; then
6662   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6663 else
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 for as_dir in $PATH
6666 do
6667   IFS=$as_save_IFS
6668   test -z "$as_dir" && as_dir=.
6669   for ac_exec_ext in '' $ac_executable_extensions; do
6670   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671     ac_cv_prog_ac_ct_OTOOL64="otool64"
6672     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673     break 2
6674   fi
6675 done
6676 done
6677 IFS=$as_save_IFS
6678
6679 fi
6680 fi
6681 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6682 if test -n "$ac_ct_OTOOL64"; then
6683   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6684 $as_echo "$ac_ct_OTOOL64" >&6; }
6685 else
6686   { $as_echo "$as_me:$LINENO: result: no" >&5
6687 $as_echo "no" >&6; }
6688 fi
6689
6690   if test "x$ac_ct_OTOOL64" = x; then
6691     OTOOL64=":"
6692   else
6693     case $cross_compiling:$ac_tool_warned in
6694 yes:)
6695 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697 ac_tool_warned=yes ;;
6698 esac
6699     OTOOL64=$ac_ct_OTOOL64
6700   fi
6701 else
6702   OTOOL64="$ac_cv_prog_OTOOL64"
6703 fi
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6732 $as_echo_n "checking for -single_module linker flag... " >&6; }
6733 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6734   $as_echo_n "(cached) " >&6
6735 else
6736   lt_cv_apple_cc_single_mod=no
6737       if test -z "${LT_MULTI_MODULE}"; then
6738         # By default we will add the -single_module flag. You can override
6739         # by either setting the environment variable LT_MULTI_MODULE
6740         # non-empty at configure time, or by adding -multi_module to the
6741         # link flags.
6742         rm -rf libconftest.dylib*
6743         echo "int foo(void){return 1;}" > conftest.c
6744         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6745 -dynamiclib -Wl,-single_module conftest.c" >&5
6746         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6747           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6748         _lt_result=$?
6749         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6750           lt_cv_apple_cc_single_mod=yes
6751         else
6752           cat conftest.err >&5
6753         fi
6754         rm -rf libconftest.dylib*
6755         rm -f conftest.*
6756       fi
6757 fi
6758 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6759 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6760     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6761 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6762 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6763   $as_echo_n "(cached) " >&6
6764 else
6765   lt_cv_ld_exported_symbols_list=no
6766       save_LDFLAGS=$LDFLAGS
6767       echo "_main" > conftest.sym
6768       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6769       cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775
6776 int
6777 main ()
6778 {
6779
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (ac_try="$ac_link"
6786 case "(($ac_try" in
6787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788   *) ac_try_echo=$ac_try;;
6789 esac
6790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6791 $as_echo "$ac_try_echo") >&5
6792   (eval "$ac_link") 2>conftest.er1
6793   ac_status=$?
6794   grep -v '^ *+' conftest.er1 >conftest.err
6795   rm -f conftest.er1
6796   cat conftest.err >&5
6797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } && {
6799          test -z "$ac_c_werror_flag" ||
6800          test ! -s conftest.err
6801        } && test -s conftest$ac_exeext && {
6802          test "$cross_compiling" = yes ||
6803          $as_test_x conftest$ac_exeext
6804        }; then
6805   lt_cv_ld_exported_symbols_list=yes
6806 else
6807   $as_echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6809
6810         lt_cv_ld_exported_symbols_list=no
6811 fi
6812
6813 rm -rf conftest.dSYM
6814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6815       conftest$ac_exeext conftest.$ac_ext
6816         LDFLAGS="$save_LDFLAGS"
6817
6818 fi
6819 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6820 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6821     case $host_os in
6822     rhapsody* | darwin1.[012])
6823       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6824     darwin1.*)
6825       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6826     darwin*) # darwin 5.x on
6827       # if running on 10.5 or later, the deployment target defaults
6828       # to the OS version, if on x86, and 10.4, the deployment
6829       # target defaults to 10.4. Don't you love it?
6830       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6831         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6832           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6833         10.[012]*)
6834           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6835         10.*)
6836           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6837       esac
6838     ;;
6839   esac
6840     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6841       _lt_dar_single_mod='$single_module'
6842     fi
6843     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6844       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6845     else
6846       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6847     fi
6848     if test "$DSYMUTIL" != ":"; then
6849       _lt_dsymutil='~$DSYMUTIL $lib || :'
6850     else
6851       _lt_dsymutil=
6852     fi
6853     ;;
6854   esac
6855
6856 ac_ext=c
6857 ac_cpp='$CPP $CPPFLAGS'
6858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6863 # On Suns, sometimes $CPP names a directory.
6864 if test -n "$CPP" && test -d "$CPP"; then
6865   CPP=
6866 fi
6867 if test -z "$CPP"; then
6868   if test "${ac_cv_prog_CPP+set}" = set; then
6869   $as_echo_n "(cached) " >&6
6870 else
6871       # Double quotes because CPP needs to be expanded
6872     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6873     do
6874       ac_preproc_ok=false
6875 for ac_c_preproc_warn_flag in '' yes
6876 do
6877   # Use a header file that comes with gcc, so configuring glibc
6878   # with a fresh cross-compiler works.
6879   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6880   # <limits.h> exists even on freestanding compilers.
6881   # On the NeXT, cc -E runs the code through the compiler's parser,
6882   # not just through cpp. "Syntax error" is here to catch this case.
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #ifdef __STDC__
6890 # include <limits.h>
6891 #else
6892 # include <assert.h>
6893 #endif
6894                      Syntax error
6895 _ACEOF
6896 if { (ac_try="$ac_cpp conftest.$ac_ext"
6897 case "(($ac_try" in
6898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899   *) ac_try_echo=$ac_try;;
6900 esac
6901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6902 $as_echo "$ac_try_echo") >&5
6903   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6904   ac_status=$?
6905   grep -v '^ *+' conftest.er1 >conftest.err
6906   rm -f conftest.er1
6907   cat conftest.err >&5
6908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909   (exit $ac_status); } >/dev/null && {
6910          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6911          test ! -s conftest.err
6912        }; then
6913   :
6914 else
6915   $as_echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918   # Broken: fails on valid input.
6919 continue
6920 fi
6921
6922 rm -f conftest.err conftest.$ac_ext
6923
6924   # OK, works on sane cases.  Now check whether nonexistent headers
6925   # can be detected and how.
6926   cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h.  */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h.  */
6932 #include <ac_nonexistent.h>
6933 _ACEOF
6934 if { (ac_try="$ac_cpp conftest.$ac_ext"
6935 case "(($ac_try" in
6936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937   *) ac_try_echo=$ac_try;;
6938 esac
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6942   ac_status=$?
6943   grep -v '^ *+' conftest.er1 >conftest.err
6944   rm -f conftest.er1
6945   cat conftest.err >&5
6946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } >/dev/null && {
6948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6949          test ! -s conftest.err
6950        }; then
6951   # Broken: success on invalid input.
6952 continue
6953 else
6954   $as_echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957   # Passes both tests.
6958 ac_preproc_ok=:
6959 break
6960 fi
6961
6962 rm -f conftest.err conftest.$ac_ext
6963
6964 done
6965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6966 rm -f conftest.err conftest.$ac_ext
6967 if $ac_preproc_ok; then
6968   break
6969 fi
6970
6971     done
6972     ac_cv_prog_CPP=$CPP
6973
6974 fi
6975   CPP=$ac_cv_prog_CPP
6976 else
6977   ac_cv_prog_CPP=$CPP
6978 fi
6979 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6980 $as_echo "$CPP" >&6; }
6981 ac_preproc_ok=false
6982 for ac_c_preproc_warn_flag in '' yes
6983 do
6984   # Use a header file that comes with gcc, so configuring glibc
6985   # with a fresh cross-compiler works.
6986   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6987   # <limits.h> exists even on freestanding compilers.
6988   # On the NeXT, cc -E runs the code through the compiler's parser,
6989   # not just through cpp. "Syntax error" is here to catch this case.
6990   cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h.  */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h.  */
6996 #ifdef __STDC__
6997 # include <limits.h>
6998 #else
6999 # include <assert.h>
7000 #endif
7001                      Syntax error
7002 _ACEOF
7003 if { (ac_try="$ac_cpp conftest.$ac_ext"
7004 case "(($ac_try" in
7005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006   *) ac_try_echo=$ac_try;;
7007 esac
7008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7009 $as_echo "$ac_try_echo") >&5
7010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7011   ac_status=$?
7012   grep -v '^ *+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } >/dev/null && {
7017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7018          test ! -s conftest.err
7019        }; then
7020   :
7021 else
7022   $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.$ac_ext >&5
7024
7025   # Broken: fails on valid input.
7026 continue
7027 fi
7028
7029 rm -f conftest.err conftest.$ac_ext
7030
7031   # OK, works on sane cases.  Now check whether nonexistent headers
7032   # can be detected and how.
7033   cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h.  */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h.  */
7039 #include <ac_nonexistent.h>
7040 _ACEOF
7041 if { (ac_try="$ac_cpp conftest.$ac_ext"
7042 case "(($ac_try" in
7043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044   *) ac_try_echo=$ac_try;;
7045 esac
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049   ac_status=$?
7050   grep -v '^ *+' conftest.er1 >conftest.err
7051   rm -f conftest.er1
7052   cat conftest.err >&5
7053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } >/dev/null && {
7055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056          test ! -s conftest.err
7057        }; then
7058   # Broken: success on invalid input.
7059 continue
7060 else
7061   $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064   # Passes both tests.
7065 ac_preproc_ok=:
7066 break
7067 fi
7068
7069 rm -f conftest.err conftest.$ac_ext
7070
7071 done
7072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7073 rm -f conftest.err conftest.$ac_ext
7074 if $ac_preproc_ok; then
7075   :
7076 else
7077   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7079 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7080 See \`config.log' for more details." >&5
7081 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7082 See \`config.log' for more details." >&2;}
7083    { (exit 1); exit 1; }; }; }
7084 fi
7085
7086 ac_ext=c
7087 ac_cpp='$CPP $CPPFLAGS'
7088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7091
7092
7093 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7094 $as_echo_n "checking for ANSI C header files... " >&6; }
7095 if test "${ac_cv_header_stdc+set}" = set; then
7096   $as_echo_n "(cached) " >&6
7097 else
7098   cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h.  */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h.  */
7104 #include <stdlib.h>
7105 #include <stdarg.h>
7106 #include <string.h>
7107 #include <float.h>
7108
7109 int
7110 main ()
7111 {
7112
7113   ;
7114   return 0;
7115 }
7116 _ACEOF
7117 rm -f conftest.$ac_objext
7118 if { (ac_try="$ac_compile"
7119 case "(($ac_try" in
7120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7121   *) ac_try_echo=$ac_try;;
7122 esac
7123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7124 $as_echo "$ac_try_echo") >&5
7125   (eval "$ac_compile") 2>conftest.er1
7126   ac_status=$?
7127   grep -v '^ *+' conftest.er1 >conftest.err
7128   rm -f conftest.er1
7129   cat conftest.err >&5
7130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); } && {
7132          test -z "$ac_c_werror_flag" ||
7133          test ! -s conftest.err
7134        } && test -s conftest.$ac_objext; then
7135   ac_cv_header_stdc=yes
7136 else
7137   $as_echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140         ac_cv_header_stdc=no
7141 fi
7142
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144
7145 if test $ac_cv_header_stdc = yes; then
7146   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7147   cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7153 #include <string.h>
7154
7155 _ACEOF
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157   $EGREP "memchr" >/dev/null 2>&1; then
7158   :
7159 else
7160   ac_cv_header_stdc=no
7161 fi
7162 rm -f conftest*
7163
7164 fi
7165
7166 if test $ac_cv_header_stdc = yes; then
7167   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7168   cat >conftest.$ac_ext <<_ACEOF
7169 /* confdefs.h.  */
7170 _ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h.  */
7174 #include <stdlib.h>
7175
7176 _ACEOF
7177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7178   $EGREP "free" >/dev/null 2>&1; then
7179   :
7180 else
7181   ac_cv_header_stdc=no
7182 fi
7183 rm -f conftest*
7184
7185 fi
7186
7187 if test $ac_cv_header_stdc = yes; then
7188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7189   if test "$cross_compiling" = yes; then
7190   :
7191 else
7192   cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h.  */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h.  */
7198 #include <ctype.h>
7199 #include <stdlib.h>
7200 #if ((' ' & 0x0FF) == 0x020)
7201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7203 #else
7204 # define ISLOWER(c) \
7205                    (('a' <= (c) && (c) <= 'i') \
7206                      || ('j' <= (c) && (c) <= 'r') \
7207                      || ('s' <= (c) && (c) <= 'z'))
7208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7209 #endif
7210
7211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7212 int
7213 main ()
7214 {
7215   int i;
7216   for (i = 0; i < 256; i++)
7217     if (XOR (islower (i), ISLOWER (i))
7218         || toupper (i) != TOUPPER (i))
7219       return 2;
7220   return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest$ac_exeext
7224 if { (ac_try="$ac_link"
7225 case "(($ac_try" in
7226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227   *) ac_try_echo=$ac_try;;
7228 esac
7229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7230 $as_echo "$ac_try_echo") >&5
7231   (eval "$ac_link") 2>&5
7232   ac_status=$?
7233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7235   { (case "(($ac_try" in
7236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237   *) ac_try_echo=$ac_try;;
7238 esac
7239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7240 $as_echo "$ac_try_echo") >&5
7241   (eval "$ac_try") 2>&5
7242   ac_status=$?
7243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); }; }; then
7245   :
7246 else
7247   $as_echo "$as_me: program exited with status $ac_status" >&5
7248 $as_echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 ( exit $ac_status )
7252 ac_cv_header_stdc=no
7253 fi
7254 rm -rf conftest.dSYM
7255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7256 fi
7257
7258
7259 fi
7260 fi
7261 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7262 $as_echo "$ac_cv_header_stdc" >&6; }
7263 if test $ac_cv_header_stdc = yes; then
7264
7265 cat >>confdefs.h <<\_ACEOF
7266 #define STDC_HEADERS 1
7267 _ACEOF
7268
7269 fi
7270
7271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7282                   inttypes.h stdint.h unistd.h
7283 do
7284 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7286 $as_echo_n "checking for $ac_header... " >&6; }
7287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7288   $as_echo_n "(cached) " >&6
7289 else
7290   cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 $ac_includes_default
7297
7298 #include <$ac_header>
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (ac_try="$ac_compile"
7302 case "(($ac_try" in
7303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304   *) ac_try_echo=$ac_try;;
7305 esac
7306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7307 $as_echo "$ac_try_echo") >&5
7308   (eval "$ac_compile") 2>conftest.er1
7309   ac_status=$?
7310   grep -v '^ *+' conftest.er1 >conftest.err
7311   rm -f conftest.er1
7312   cat conftest.err >&5
7313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } && {
7315          test -z "$ac_c_werror_flag" ||
7316          test ! -s conftest.err
7317        } && test -s conftest.$ac_objext; then
7318   eval "$as_ac_Header=yes"
7319 else
7320   $as_echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7322
7323         eval "$as_ac_Header=no"
7324 fi
7325
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 fi
7328 ac_res=`eval 'as_val=${'$as_ac_Header'}
7329                  $as_echo "$as_val"'`
7330                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7331 $as_echo "$ac_res" >&6; }
7332 as_val=`eval 'as_val=${'$as_ac_Header'}
7333                  $as_echo "$as_val"'`
7334    if test "x$as_val" = x""yes; then
7335   cat >>confdefs.h <<_ACEOF
7336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7337 _ACEOF
7338
7339 fi
7340
7341 done
7342
7343
7344
7345 for ac_header in dlfcn.h
7346 do
7347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7349 $as_echo_n "checking for $ac_header... " >&6; }
7350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7351   $as_echo_n "(cached) " >&6
7352 else
7353   cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7359 $ac_includes_default
7360
7361 #include <$ac_header>
7362 _ACEOF
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7365 case "(($ac_try" in
7366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367   *) ac_try_echo=$ac_try;;
7368 esac
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371   (eval "$ac_compile") 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } && {
7378          test -z "$ac_c_werror_flag" ||
7379          test ! -s conftest.err
7380        } && test -s conftest.$ac_objext; then
7381   eval "$as_ac_Header=yes"
7382 else
7383   $as_echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7385
7386         eval "$as_ac_Header=no"
7387 fi
7388
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 fi
7391 ac_res=`eval 'as_val=${'$as_ac_Header'}
7392                  $as_echo "$as_val"'`
7393                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7394 $as_echo "$ac_res" >&6; }
7395 as_val=`eval 'as_val=${'$as_ac_Header'}
7396                  $as_echo "$as_val"'`
7397    if test "x$as_val" = x""yes; then
7398   cat >>confdefs.h <<_ACEOF
7399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7400 _ACEOF
7401
7402 fi
7403
7404 done
7405
7406
7407
7408 # Set options
7409
7410
7411
7412         enable_dlopen=no
7413
7414
7415   enable_win32_dll=no
7416
7417
7418             # Check whether --enable-shared was given.
7419 if test "${enable_shared+set}" = set; then
7420   enableval=$enable_shared; p=${PACKAGE-default}
7421     case $enableval in
7422     yes) enable_shared=yes ;;
7423     no) enable_shared=no ;;
7424     *)
7425       enable_shared=no
7426       # Look at the argument we got.  We use all the common list separators.
7427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428       for pkg in $enableval; do
7429         IFS="$lt_save_ifs"
7430         if test "X$pkg" = "X$p"; then
7431           enable_shared=yes
7432         fi
7433       done
7434       IFS="$lt_save_ifs"
7435       ;;
7436     esac
7437 else
7438   enable_shared=yes
7439 fi
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449   # Check whether --enable-static was given.
7450 if test "${enable_static+set}" = set; then
7451   enableval=$enable_static; p=${PACKAGE-default}
7452     case $enableval in
7453     yes) enable_static=yes ;;
7454     no) enable_static=no ;;
7455     *)
7456      enable_static=no
7457       # Look at the argument we got.  We use all the common list separators.
7458       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7459       for pkg in $enableval; do
7460         IFS="$lt_save_ifs"
7461         if test "X$pkg" = "X$p"; then
7462           enable_static=yes
7463         fi
7464       done
7465       IFS="$lt_save_ifs"
7466       ;;
7467     esac
7468 else
7469   enable_static=yes
7470 fi
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481 # Check whether --with-pic was given.
7482 if test "${with_pic+set}" = set; then
7483   withval=$with_pic; pic_mode="$withval"
7484 else
7485   pic_mode=default
7486 fi
7487
7488
7489 test -z "$pic_mode" && pic_mode=default
7490
7491
7492
7493
7494
7495
7496
7497   # Check whether --enable-fast-install was given.
7498 if test "${enable_fast_install+set}" = set; then
7499   enableval=$enable_fast_install; p=${PACKAGE-default}
7500     case $enableval in
7501     yes) enable_fast_install=yes ;;
7502     no) enable_fast_install=no ;;
7503     *)
7504       enable_fast_install=no
7505       # Look at the argument we got.  We use all the common list separators.
7506       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7507       for pkg in $enableval; do
7508         IFS="$lt_save_ifs"
7509         if test "X$pkg" = "X$p"; then
7510           enable_fast_install=yes
7511         fi
7512       done
7513       IFS="$lt_save_ifs"
7514       ;;
7515     esac
7516 else
7517   enable_fast_install=yes
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530 # This can be used to rebuild libtool when needed
7531 LIBTOOL_DEPS="$ltmain"
7532
7533 # Always use our own libtool.
7534 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560 test -z "$LN_S" && LN_S="ln -s"
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575 if test -n "${ZSH_VERSION+set}" ; then
7576    setopt NO_GLOB_SUBST
7577 fi
7578
7579 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7580 $as_echo_n "checking for objdir... " >&6; }
7581 if test "${lt_cv_objdir+set}" = set; then
7582   $as_echo_n "(cached) " >&6
7583 else
7584   rm -f .libs 2>/dev/null
7585 mkdir .libs 2>/dev/null
7586 if test -d .libs; then
7587   lt_cv_objdir=.libs
7588 else
7589   # MS-DOS does not allow filenames that begin with a dot.
7590   lt_cv_objdir=_libs
7591 fi
7592 rmdir .libs 2>/dev/null
7593 fi
7594 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7595 $as_echo "$lt_cv_objdir" >&6; }
7596 objdir=$lt_cv_objdir
7597
7598
7599
7600
7601
7602 cat >>confdefs.h <<_ACEOF
7603 #define LT_OBJDIR "$lt_cv_objdir/"
7604 _ACEOF
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622 case $host_os in
7623 aix3*)
7624   # AIX sometimes has problems with the GCC collect2 program.  For some
7625   # reason, if we set the COLLECT_NAMES environment variable, the problems
7626   # vanish in a puff of smoke.
7627   if test "X${COLLECT_NAMES+set}" != Xset; then
7628     COLLECT_NAMES=
7629     export COLLECT_NAMES
7630   fi
7631   ;;
7632 esac
7633
7634 # Sed substitution that helps us do robust quoting.  It backslashifies
7635 # metacharacters that are still active within double-quoted strings.
7636 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7637
7638 # Same as above, but do not quote variable references.
7639 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7640
7641 # Sed substitution to delay expansion of an escaped shell variable in a
7642 # double_quote_subst'ed string.
7643 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7644
7645 # Sed substitution to delay expansion of an escaped single quote.
7646 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7647
7648 # Sed substitution to avoid accidental globbing in evaled expressions
7649 no_glob_subst='s/\*/\\\*/g'
7650
7651 # Global variables:
7652 ofile=libtool
7653 can_build_shared=yes
7654
7655 # All known linkers require a `.a' archive for static linking (except MSVC,
7656 # which needs '.lib').
7657 libext=a
7658
7659 with_gnu_ld="$lt_cv_prog_gnu_ld"
7660
7661 old_CC="$CC"
7662 old_CFLAGS="$CFLAGS"
7663
7664 # Set sane defaults for various variables
7665 test -z "$CC" && CC=cc
7666 test -z "$LTCC" && LTCC=$CC
7667 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7668 test -z "$LD" && LD=ld
7669 test -z "$ac_objext" && ac_objext=o
7670
7671 for cc_temp in $compiler""; do
7672   case $cc_temp in
7673     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7674     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7675     \-*) ;;
7676     *) break;;
7677   esac
7678 done
7679 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7680
7681
7682 # Only perform the check for file, if the check method requires it
7683 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7684 case $deplibs_check_method in
7685 file_magic*)
7686   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7687     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7688 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7690   $as_echo_n "(cached) " >&6
7691 else
7692   case $MAGIC_CMD in
7693 [\\/*] |  ?:[\\/]*)
7694   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7695   ;;
7696 *)
7697   lt_save_MAGIC_CMD="$MAGIC_CMD"
7698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7699   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7700   for ac_dir in $ac_dummy; do
7701     IFS="$lt_save_ifs"
7702     test -z "$ac_dir" && ac_dir=.
7703     if test -f $ac_dir/${ac_tool_prefix}file; then
7704       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7705       if test -n "$file_magic_test_file"; then
7706         case $deplibs_check_method in
7707         "file_magic "*)
7708           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7709           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7710           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7711             $EGREP "$file_magic_regex" > /dev/null; then
7712             :
7713           else
7714             cat <<_LT_EOF 1>&2
7715
7716 *** Warning: the command libtool uses to detect shared libraries,
7717 *** $file_magic_cmd, produces output that libtool cannot recognize.
7718 *** The result is that libtool may fail to recognize shared libraries
7719 *** as such.  This will affect the creation of libtool libraries that
7720 *** depend on shared libraries, but programs linked with such libtool
7721 *** libraries will work regardless of this problem.  Nevertheless, you
7722 *** may want to report the problem to your system manager and/or to
7723 *** bug-libtool@gnu.org
7724
7725 _LT_EOF
7726           fi ;;
7727         esac
7728       fi
7729       break
7730     fi
7731   done
7732   IFS="$lt_save_ifs"
7733   MAGIC_CMD="$lt_save_MAGIC_CMD"
7734   ;;
7735 esac
7736 fi
7737
7738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7739 if test -n "$MAGIC_CMD"; then
7740   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7741 $as_echo "$MAGIC_CMD" >&6; }
7742 else
7743   { $as_echo "$as_me:$LINENO: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747
7748
7749
7750
7751 if test -z "$lt_cv_path_MAGIC_CMD"; then
7752   if test -n "$ac_tool_prefix"; then
7753     { $as_echo "$as_me:$LINENO: checking for file" >&5
7754 $as_echo_n "checking for file... " >&6; }
7755 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7756   $as_echo_n "(cached) " >&6
7757 else
7758   case $MAGIC_CMD in
7759 [\\/*] |  ?:[\\/]*)
7760   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7761   ;;
7762 *)
7763   lt_save_MAGIC_CMD="$MAGIC_CMD"
7764   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7765   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7766   for ac_dir in $ac_dummy; do
7767     IFS="$lt_save_ifs"
7768     test -z "$ac_dir" && ac_dir=.
7769     if test -f $ac_dir/file; then
7770       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7771       if test -n "$file_magic_test_file"; then
7772         case $deplibs_check_method in
7773         "file_magic "*)
7774           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7775           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7776           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7777             $EGREP "$file_magic_regex" > /dev/null; then
7778             :
7779           else
7780             cat <<_LT_EOF 1>&2
7781
7782 *** Warning: the command libtool uses to detect shared libraries,
7783 *** $file_magic_cmd, produces output that libtool cannot recognize.
7784 *** The result is that libtool may fail to recognize shared libraries
7785 *** as such.  This will affect the creation of libtool libraries that
7786 *** depend on shared libraries, but programs linked with such libtool
7787 *** libraries will work regardless of this problem.  Nevertheless, you
7788 *** may want to report the problem to your system manager and/or to
7789 *** bug-libtool@gnu.org
7790
7791 _LT_EOF
7792           fi ;;
7793         esac
7794       fi
7795       break
7796     fi
7797   done
7798   IFS="$lt_save_ifs"
7799   MAGIC_CMD="$lt_save_MAGIC_CMD"
7800   ;;
7801 esac
7802 fi
7803
7804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7805 if test -n "$MAGIC_CMD"; then
7806   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7807 $as_echo "$MAGIC_CMD" >&6; }
7808 else
7809   { $as_echo "$as_me:$LINENO: result: no" >&5
7810 $as_echo "no" >&6; }
7811 fi
7812
7813
7814   else
7815     MAGIC_CMD=:
7816   fi
7817 fi
7818
7819   fi
7820   ;;
7821 esac
7822
7823 # Use C for the default configuration in the libtool script
7824
7825 lt_save_CC="$CC"
7826 ac_ext=c
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832
7833 # Source file extension for C test sources.
7834 ac_ext=c
7835
7836 # Object file extension for compiled C test sources.
7837 objext=o
7838 objext=$objext
7839
7840 # Code to be used in simple compile tests
7841 lt_simple_compile_test_code="int some_variable = 0;"
7842
7843 # Code to be used in simple link tests
7844 lt_simple_link_test_code='int main(){return(0);}'
7845
7846
7847
7848
7849
7850
7851
7852 # If no C compiler was specified, use CC.
7853 LTCC=${LTCC-"$CC"}
7854
7855 # If no C compiler flags were specified, use CFLAGS.
7856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7857
7858 # Allow CC to be a program name with arguments.
7859 compiler=$CC
7860
7861 # Save the default compiler, since it gets overwritten when the other
7862 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7863 compiler_DEFAULT=$CC
7864
7865 # save warnings/boilerplate of simple test code
7866 ac_outfile=conftest.$ac_objext
7867 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7868 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7869 _lt_compiler_boilerplate=`cat conftest.err`
7870 $RM conftest*
7871
7872 ac_outfile=conftest.$ac_objext
7873 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7874 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7875 _lt_linker_boilerplate=`cat conftest.err`
7876 $RM -r conftest*
7877
7878
7879 if test -n "$compiler"; then
7880
7881 lt_prog_compiler_no_builtin_flag=
7882
7883 if test "$GCC" = yes; then
7884   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7885
7886   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7887 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7888 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7889   $as_echo_n "(cached) " >&6
7890 else
7891   lt_cv_prog_compiler_rtti_exceptions=no
7892    ac_outfile=conftest.$ac_objext
7893    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7894    lt_compiler_flag="-fno-rtti -fno-exceptions"
7895    # Insert the option either (1) after the last *FLAGS variable, or
7896    # (2) before a word containing "conftest.", or (3) at the end.
7897    # Note that $ac_compile itself does not contain backslashes and begins
7898    # with a dollar sign (not a hyphen), so the echo should work correctly.
7899    # The option is referenced via a variable to avoid confusing sed.
7900    lt_compile=`echo "$ac_compile" | $SED \
7901    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7902    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7903    -e 's:$: $lt_compiler_flag:'`
7904    (eval echo "\"\$as_me:7904: $lt_compile\"" >&5)
7905    (eval "$lt_compile" 2>conftest.err)
7906    ac_status=$?
7907    cat conftest.err >&5
7908    echo "$as_me:7908: \$? = $ac_status" >&5
7909    if (exit $ac_status) && test -s "$ac_outfile"; then
7910      # The compiler can only warn and ignore the option if not recognized
7911      # So say no if there are warnings other than the usual output.
7912      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7913      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7914      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7915        lt_cv_prog_compiler_rtti_exceptions=yes
7916      fi
7917    fi
7918    $RM conftest*
7919
7920 fi
7921 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7922 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7923
7924 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7925     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7926 else
7927     :
7928 fi
7929
7930 fi
7931
7932
7933
7934
7935
7936
7937   lt_prog_compiler_wl=
7938 lt_prog_compiler_pic=
7939 lt_prog_compiler_static=
7940
7941 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7942 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7943
7944   if test "$GCC" = yes; then
7945     lt_prog_compiler_wl='-Wl,'
7946     lt_prog_compiler_static='-static'
7947
7948     case $host_os in
7949       aix*)
7950       # All AIX code is PIC.
7951       if test "$host_cpu" = ia64; then
7952         # AIX 5 now supports IA64 processor
7953         lt_prog_compiler_static='-Bstatic'
7954       fi
7955       ;;
7956
7957     amigaos*)
7958       case $host_cpu in
7959       powerpc)
7960             # see comment about AmigaOS4 .so support
7961             lt_prog_compiler_pic='-fPIC'
7962         ;;
7963       m68k)
7964             # FIXME: we need at least 68020 code to build shared libraries, but
7965             # adding the `-m68020' flag to GCC prevents building anything better,
7966             # like `-m68040'.
7967             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7968         ;;
7969       esac
7970       ;;
7971
7972     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7973       # PIC is the default for these OSes.
7974       ;;
7975
7976     mingw* | cygwin* | pw32* | os2* | cegcc*)
7977       # This hack is so that the source file can tell whether it is being
7978       # built for inclusion in a dll (and should export symbols for example).
7979       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7980       # (--disable-auto-import) libraries
7981       lt_prog_compiler_pic='-DDLL_EXPORT'
7982       ;;
7983
7984     darwin* | rhapsody*)
7985       # PIC is the default on this platform
7986       # Common symbols not allowed in MH_DYLIB files
7987       lt_prog_compiler_pic='-fno-common'
7988       ;;
7989
7990     hpux*)
7991       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7992       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7993       # sets the default TLS model and affects inlining.
7994       case $host_cpu in
7995       hppa*64*)
7996         # +Z the default
7997         ;;
7998       *)
7999         lt_prog_compiler_pic='-fPIC'
8000         ;;
8001       esac
8002       ;;
8003
8004     interix[3-9]*)
8005       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8006       # Instead, we relocate shared libraries at runtime.
8007       ;;
8008
8009     msdosdjgpp*)
8010       # Just because we use GCC doesn't mean we suddenly get shared libraries
8011       # on systems that don't support them.
8012       lt_prog_compiler_can_build_shared=no
8013       enable_shared=no
8014       ;;
8015
8016     *nto* | *qnx*)
8017       # QNX uses GNU C++, but need to define -shared option too, otherwise
8018       # it will coredump.
8019       lt_prog_compiler_pic='-fPIC -shared'
8020       ;;
8021
8022     sysv4*MP*)
8023       if test -d /usr/nec; then
8024         lt_prog_compiler_pic=-Kconform_pic
8025       fi
8026       ;;
8027
8028     *)
8029       lt_prog_compiler_pic='-fPIC'
8030       ;;
8031     esac
8032   else
8033     # PORTME Check for flag to pass linker flags through the system compiler.
8034     case $host_os in
8035     aix*)
8036       lt_prog_compiler_wl='-Wl,'
8037       if test "$host_cpu" = ia64; then
8038         # AIX 5 now supports IA64 processor
8039         lt_prog_compiler_static='-Bstatic'
8040       else
8041         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8042       fi
8043       ;;
8044
8045     mingw* | cygwin* | pw32* | os2* | cegcc*)
8046       # This hack is so that the source file can tell whether it is being
8047       # built for inclusion in a dll (and should export symbols for example).
8048       lt_prog_compiler_pic='-DDLL_EXPORT'
8049       ;;
8050
8051     hpux9* | hpux10* | hpux11*)
8052       lt_prog_compiler_wl='-Wl,'
8053       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8054       # not for PA HP-UX.
8055       case $host_cpu in
8056       hppa*64*|ia64*)
8057         # +Z the default
8058         ;;
8059       *)
8060         lt_prog_compiler_pic='+Z'
8061         ;;
8062       esac
8063       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8064       lt_prog_compiler_static='${wl}-a ${wl}archive'
8065       ;;
8066
8067     irix5* | irix6* | nonstopux*)
8068       lt_prog_compiler_wl='-Wl,'
8069       # PIC (with -KPIC) is the default.
8070       lt_prog_compiler_static='-non_shared'
8071       ;;
8072
8073     linux* | k*bsd*-gnu)
8074       case $cc_basename in
8075       # old Intel for x86_64 which still supported -KPIC.
8076       ecc*)
8077         lt_prog_compiler_wl='-Wl,'
8078         lt_prog_compiler_pic='-KPIC'
8079         lt_prog_compiler_static='-static'
8080         ;;
8081       # icc used to be incompatible with GCC.
8082       # ICC 10 doesn't accept -KPIC any more.
8083       icc* | ifort*)
8084         lt_prog_compiler_wl='-Wl,'
8085         lt_prog_compiler_pic='-fPIC'
8086         lt_prog_compiler_static='-static'
8087         ;;
8088       # Lahey Fortran 8.1.
8089       lf95*)
8090         lt_prog_compiler_wl='-Wl,'
8091         lt_prog_compiler_pic='--shared'
8092         lt_prog_compiler_static='--static'
8093         ;;
8094       pgcc* | pgf77* | pgf90* | pgf95*)
8095         # Portland Group compilers (*not* the Pentium gcc compiler,
8096         # which looks to be a dead project)
8097         lt_prog_compiler_wl='-Wl,'
8098         lt_prog_compiler_pic='-fpic'
8099         lt_prog_compiler_static='-Bstatic'
8100         ;;
8101       ccc*)
8102         lt_prog_compiler_wl='-Wl,'
8103         # All Alpha code is PIC.
8104         lt_prog_compiler_static='-non_shared'
8105         ;;
8106       xl*)
8107         # IBM XL C 8.0/Fortran 10.1 on PPC
8108         lt_prog_compiler_wl='-Wl,'
8109         lt_prog_compiler_pic='-qpic'
8110         lt_prog_compiler_static='-qstaticlink'
8111         ;;
8112       *)
8113         case `$CC -V 2>&1 | sed 5q` in
8114         *Sun\ C*)
8115           # Sun C 5.9
8116           lt_prog_compiler_pic='-KPIC'
8117           lt_prog_compiler_static='-Bstatic'
8118           lt_prog_compiler_wl='-Wl,'
8119           ;;
8120         *Sun\ F*)
8121           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8122           lt_prog_compiler_pic='-KPIC'
8123           lt_prog_compiler_static='-Bstatic'
8124           lt_prog_compiler_wl=''
8125           ;;
8126         esac
8127         ;;
8128       esac
8129       ;;
8130
8131     newsos6)
8132       lt_prog_compiler_pic='-KPIC'
8133       lt_prog_compiler_static='-Bstatic'
8134       ;;
8135
8136     *nto* | *qnx*)
8137       # QNX uses GNU C++, but need to define -shared option too, otherwise
8138       # it will coredump.
8139       lt_prog_compiler_pic='-fPIC -shared'
8140       ;;
8141
8142     osf3* | osf4* | osf5*)
8143       lt_prog_compiler_wl='-Wl,'
8144       # All OSF/1 code is PIC.
8145       lt_prog_compiler_static='-non_shared'
8146       ;;
8147
8148     rdos*)
8149       lt_prog_compiler_static='-non_shared'
8150       ;;
8151
8152     solaris*)
8153       lt_prog_compiler_pic='-KPIC'
8154       lt_prog_compiler_static='-Bstatic'
8155       case $cc_basename in
8156       f77* | f90* | f95*)
8157         lt_prog_compiler_wl='-Qoption ld ';;
8158       *)
8159         lt_prog_compiler_wl='-Wl,';;
8160       esac
8161       ;;
8162
8163     sunos4*)
8164       lt_prog_compiler_wl='-Qoption ld '
8165       lt_prog_compiler_pic='-PIC'
8166       lt_prog_compiler_static='-Bstatic'
8167       ;;
8168
8169     sysv4 | sysv4.2uw2* | sysv4.3*)
8170       lt_prog_compiler_wl='-Wl,'
8171       lt_prog_compiler_pic='-KPIC'
8172       lt_prog_compiler_static='-Bstatic'
8173       ;;
8174
8175     sysv4*MP*)
8176       if test -d /usr/nec ;then
8177         lt_prog_compiler_pic='-Kconform_pic'
8178         lt_prog_compiler_static='-Bstatic'
8179       fi
8180       ;;
8181
8182     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8183       lt_prog_compiler_wl='-Wl,'
8184       lt_prog_compiler_pic='-KPIC'
8185       lt_prog_compiler_static='-Bstatic'
8186       ;;
8187
8188     unicos*)
8189       lt_prog_compiler_wl='-Wl,'
8190       lt_prog_compiler_can_build_shared=no
8191       ;;
8192
8193     uts4*)
8194       lt_prog_compiler_pic='-pic'
8195       lt_prog_compiler_static='-Bstatic'
8196       ;;
8197
8198     *)
8199       lt_prog_compiler_can_build_shared=no
8200       ;;
8201     esac
8202   fi
8203
8204 case $host_os in
8205   # For platforms which do not support PIC, -DPIC is meaningless:
8206   *djgpp*)
8207     lt_prog_compiler_pic=
8208     ;;
8209   *)
8210     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8211     ;;
8212 esac
8213 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8214 $as_echo "$lt_prog_compiler_pic" >&6; }
8215
8216
8217
8218
8219
8220
8221 #
8222 # Check to make sure the PIC flag actually works.
8223 #
8224 if test -n "$lt_prog_compiler_pic"; then
8225   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8226 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8227 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8228   $as_echo_n "(cached) " >&6
8229 else
8230   lt_cv_prog_compiler_pic_works=no
8231    ac_outfile=conftest.$ac_objext
8232    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8233    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8234    # Insert the option either (1) after the last *FLAGS variable, or
8235    # (2) before a word containing "conftest.", or (3) at the end.
8236    # Note that $ac_compile itself does not contain backslashes and begins
8237    # with a dollar sign (not a hyphen), so the echo should work correctly.
8238    # The option is referenced via a variable to avoid confusing sed.
8239    lt_compile=`echo "$ac_compile" | $SED \
8240    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8241    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8242    -e 's:$: $lt_compiler_flag:'`
8243    (eval echo "\"\$as_me:8243: $lt_compile\"" >&5)
8244    (eval "$lt_compile" 2>conftest.err)
8245    ac_status=$?
8246    cat conftest.err >&5
8247    echo "$as_me:8247: \$? = $ac_status" >&5
8248    if (exit $ac_status) && test -s "$ac_outfile"; then
8249      # The compiler can only warn and ignore the option if not recognized
8250      # So say no if there are warnings other than the usual output.
8251      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8252      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8253      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8254        lt_cv_prog_compiler_pic_works=yes
8255      fi
8256    fi
8257    $RM conftest*
8258
8259 fi
8260 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8261 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8262
8263 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8264     case $lt_prog_compiler_pic in
8265      "" | " "*) ;;
8266      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8267      esac
8268 else
8269     lt_prog_compiler_pic=
8270      lt_prog_compiler_can_build_shared=no
8271 fi
8272
8273 fi
8274
8275
8276
8277
8278
8279
8280 #
8281 # Check to make sure the static flag actually works.
8282 #
8283 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8284 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8285 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8286 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8287   $as_echo_n "(cached) " >&6
8288 else
8289   lt_cv_prog_compiler_static_works=no
8290    save_LDFLAGS="$LDFLAGS"
8291    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8292    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8293    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8294      # The linker can only warn and ignore the option if not recognized
8295      # So say no if there are warnings
8296      if test -s conftest.err; then
8297        # Append any errors to the config.log.
8298        cat conftest.err 1>&5
8299        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8300        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8301        if diff conftest.exp conftest.er2 >/dev/null; then
8302          lt_cv_prog_compiler_static_works=yes
8303        fi
8304      else
8305        lt_cv_prog_compiler_static_works=yes
8306      fi
8307    fi
8308    $RM -r conftest*
8309    LDFLAGS="$save_LDFLAGS"
8310
8311 fi
8312 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8313 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8314
8315 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8316     :
8317 else
8318     lt_prog_compiler_static=
8319 fi
8320
8321
8322
8323
8324
8325
8326
8327   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8328 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8329 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8330   $as_echo_n "(cached) " >&6
8331 else
8332   lt_cv_prog_compiler_c_o=no
8333    $RM -r conftest 2>/dev/null
8334    mkdir conftest
8335    cd conftest
8336    mkdir out
8337    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8338
8339    lt_compiler_flag="-o out/conftest2.$ac_objext"
8340    # Insert the option either (1) after the last *FLAGS variable, or
8341    # (2) before a word containing "conftest.", or (3) at the end.
8342    # Note that $ac_compile itself does not contain backslashes and begins
8343    # with a dollar sign (not a hyphen), so the echo should work correctly.
8344    lt_compile=`echo "$ac_compile" | $SED \
8345    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8346    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8347    -e 's:$: $lt_compiler_flag:'`
8348    (eval echo "\"\$as_me:8348: $lt_compile\"" >&5)
8349    (eval "$lt_compile" 2>out/conftest.err)
8350    ac_status=$?
8351    cat out/conftest.err >&5
8352    echo "$as_me:8352: \$? = $ac_status" >&5
8353    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8354    then
8355      # The compiler can only warn and ignore the option if not recognized
8356      # So say no if there are warnings
8357      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8358      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8359      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8360        lt_cv_prog_compiler_c_o=yes
8361      fi
8362    fi
8363    chmod u+w . 2>&5
8364    $RM conftest*
8365    # SGI C++ compiler will create directory out/ii_files/ for
8366    # template instantiation
8367    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8368    $RM out/* && rmdir out
8369    cd ..
8370    $RM -r conftest
8371    $RM conftest*
8372
8373 fi
8374 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8375 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8376
8377
8378
8379
8380
8381
8382   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8383 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8384 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8385   $as_echo_n "(cached) " >&6
8386 else
8387   lt_cv_prog_compiler_c_o=no
8388    $RM -r conftest 2>/dev/null
8389    mkdir conftest
8390    cd conftest
8391    mkdir out
8392    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8393
8394    lt_compiler_flag="-o out/conftest2.$ac_objext"
8395    # Insert the option either (1) after the last *FLAGS variable, or
8396    # (2) before a word containing "conftest.", or (3) at the end.
8397    # Note that $ac_compile itself does not contain backslashes and begins
8398    # with a dollar sign (not a hyphen), so the echo should work correctly.
8399    lt_compile=`echo "$ac_compile" | $SED \
8400    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8401    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8402    -e 's:$: $lt_compiler_flag:'`
8403    (eval echo "\"\$as_me:8403: $lt_compile\"" >&5)
8404    (eval "$lt_compile" 2>out/conftest.err)
8405    ac_status=$?
8406    cat out/conftest.err >&5
8407    echo "$as_me:8407: \$? = $ac_status" >&5
8408    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8409    then
8410      # The compiler can only warn and ignore the option if not recognized
8411      # So say no if there are warnings
8412      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8413      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8414      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8415        lt_cv_prog_compiler_c_o=yes
8416      fi
8417    fi
8418    chmod u+w . 2>&5
8419    $RM conftest*
8420    # SGI C++ compiler will create directory out/ii_files/ for
8421    # template instantiation
8422    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8423    $RM out/* && rmdir out
8424    cd ..
8425    $RM -r conftest
8426    $RM conftest*
8427
8428 fi
8429 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8430 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8431
8432
8433
8434
8435 hard_links="nottested"
8436 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8437   # do not overwrite the value of need_locks provided by the user
8438   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8439 $as_echo_n "checking if we can lock with hard links... " >&6; }
8440   hard_links=yes
8441   $RM conftest*
8442   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8443   touch conftest.a
8444   ln conftest.a conftest.b 2>&5 || hard_links=no
8445   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8446   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8447 $as_echo "$hard_links" >&6; }
8448   if test "$hard_links" = no; then
8449     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8450 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8451     need_locks=warn
8452   fi
8453 else
8454   need_locks=no
8455 fi
8456
8457
8458
8459
8460
8461
8462   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8463 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8464
8465   runpath_var=
8466   allow_undefined_flag=
8467   always_export_symbols=no
8468   archive_cmds=
8469   archive_expsym_cmds=
8470   compiler_needs_object=no
8471   enable_shared_with_static_runtimes=no
8472   export_dynamic_flag_spec=
8473   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8474   hardcode_automatic=no
8475   hardcode_direct=no
8476   hardcode_direct_absolute=no
8477   hardcode_libdir_flag_spec=
8478   hardcode_libdir_flag_spec_ld=
8479   hardcode_libdir_separator=
8480   hardcode_minus_L=no
8481   hardcode_shlibpath_var=unsupported
8482   inherit_rpath=no
8483   link_all_deplibs=unknown
8484   module_cmds=
8485   module_expsym_cmds=
8486   old_archive_from_new_cmds=
8487   old_archive_from_expsyms_cmds=
8488   thread_safe_flag_spec=
8489   whole_archive_flag_spec=
8490   # include_expsyms should be a list of space-separated symbols to be *always*
8491   # included in the symbol list
8492   include_expsyms=
8493   # exclude_expsyms can be an extended regexp of symbols to exclude
8494   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8495   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8496   # as well as any symbol that contains `d'.
8497   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8498   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8499   # platforms (ab)use it in PIC code, but their linkers get confused if
8500   # the symbol is explicitly referenced.  Since portable code cannot
8501   # rely on this symbol name, it's probably fine to never include it in
8502   # preloaded symbol tables.
8503   # Exclude shared library initialization/finalization symbols.
8504   extract_expsyms_cmds=
8505
8506   case $host_os in
8507   cygwin* | mingw* | pw32* | cegcc*)
8508     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8509     # When not using gcc, we currently assume that we are using
8510     # Microsoft Visual C++.
8511     if test "$GCC" != yes; then
8512       with_gnu_ld=no
8513     fi
8514     ;;
8515   interix*)
8516     # we just hope/assume this is gcc and not c89 (= MSVC++)
8517     with_gnu_ld=yes
8518     ;;
8519   openbsd*)
8520     with_gnu_ld=no
8521     ;;
8522   esac
8523
8524   ld_shlibs=yes
8525   if test "$with_gnu_ld" = yes; then
8526     # If archive_cmds runs LD, not CC, wlarc should be empty
8527     wlarc='${wl}'
8528
8529     # Set some defaults for GNU ld with shared library support. These
8530     # are reset later if shared libraries are not supported. Putting them
8531     # here allows them to be overridden if necessary.
8532     runpath_var=LD_RUN_PATH
8533     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8534     export_dynamic_flag_spec='${wl}--export-dynamic'
8535     # ancient GNU ld didn't support --whole-archive et. al.
8536     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8537       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8538     else
8539       whole_archive_flag_spec=
8540     fi
8541     supports_anon_versioning=no
8542     case `$LD -v 2>&1` in
8543       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8544       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8545       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8546       *\ 2.11.*) ;; # other 2.11 versions
8547       *) supports_anon_versioning=yes ;;
8548     esac
8549
8550     # See if GNU ld supports shared libraries.
8551     case $host_os in
8552     aix[3-9]*)
8553       # On AIX/PPC, the GNU linker is very broken
8554       if test "$host_cpu" != ia64; then
8555         ld_shlibs=no
8556         cat <<_LT_EOF 1>&2
8557
8558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8559 *** to be unable to reliably create shared libraries on AIX.
8560 *** Therefore, libtool is disabling shared libraries support.  If you
8561 *** really care for shared libraries, you may want to modify your PATH
8562 *** so that a non-GNU linker is found, and then restart.
8563
8564 _LT_EOF
8565       fi
8566       ;;
8567
8568     amigaos*)
8569       case $host_cpu in
8570       powerpc)
8571             # see comment about AmigaOS4 .so support
8572             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573             archive_expsym_cmds=''
8574         ;;
8575       m68k)
8576             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)'
8577             hardcode_libdir_flag_spec='-L$libdir'
8578             hardcode_minus_L=yes
8579         ;;
8580       esac
8581       ;;
8582
8583     beos*)
8584       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8585         allow_undefined_flag=unsupported
8586         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8587         # support --undefined.  This deserves some investigation.  FIXME
8588         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8589       else
8590         ld_shlibs=no
8591       fi
8592       ;;
8593
8594     cygwin* | mingw* | pw32* | cegcc*)
8595       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8596       # as there is no search path for DLLs.
8597       hardcode_libdir_flag_spec='-L$libdir'
8598       allow_undefined_flag=unsupported
8599       always_export_symbols=no
8600       enable_shared_with_static_runtimes=yes
8601       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8602
8603       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8604         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8605         # If the export-symbols file already is a .def file (1st line
8606         # is EXPORTS), use it as is; otherwise, prepend...
8607         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8608           cp $export_symbols $output_objdir/$soname.def;
8609         else
8610           echo EXPORTS > $output_objdir/$soname.def;
8611           cat $export_symbols >> $output_objdir/$soname.def;
8612         fi~
8613         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8614       else
8615         ld_shlibs=no
8616       fi
8617       ;;
8618
8619     interix[3-9]*)
8620       hardcode_direct=no
8621       hardcode_shlibpath_var=no
8622       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8623       export_dynamic_flag_spec='${wl}-E'
8624       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8625       # Instead, shared libraries are loaded at an image base (0x10000000 by
8626       # default) and relocated if they conflict, which is a slow very memory
8627       # consuming and fragmenting process.  To avoid this, we pick a random,
8628       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8629       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8630       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8631       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'
8632       ;;
8633
8634     gnu* | linux* | tpf* | k*bsd*-gnu)
8635       tmp_diet=no
8636       if test "$host_os" = linux-dietlibc; then
8637         case $cc_basename in
8638           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8639         esac
8640       fi
8641       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8642          && test "$tmp_diet" = no
8643       then
8644         tmp_addflag=
8645         tmp_sharedflag='-shared'
8646         case $cc_basename,$host_cpu in
8647         pgcc*)                          # Portland Group C compiler
8648           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'
8649           tmp_addflag=' $pic_flag'
8650           ;;
8651         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8652           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'
8653           tmp_addflag=' $pic_flag -Mnomain' ;;
8654         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8655           tmp_addflag=' -i_dynamic' ;;
8656         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8657           tmp_addflag=' -i_dynamic -nofor_main' ;;
8658         ifc* | ifort*)                  # Intel Fortran compiler
8659           tmp_addflag=' -nofor_main' ;;
8660         lf95*)                          # Lahey Fortran 8.1
8661           whole_archive_flag_spec=
8662           tmp_sharedflag='--shared' ;;
8663         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8664           tmp_sharedflag='-qmkshrobj'
8665           tmp_addflag= ;;
8666         esac
8667         case `$CC -V 2>&1 | sed 5q` in
8668         *Sun\ C*)                       # Sun C 5.9
8669           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'
8670           compiler_needs_object=yes
8671           tmp_sharedflag='-G' ;;
8672         *Sun\ F*)                       # Sun Fortran 8.3
8673           tmp_sharedflag='-G' ;;
8674         esac
8675         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676
8677         if test "x$supports_anon_versioning" = xyes; then
8678           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8679             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8680             echo "local: *; };" >> $output_objdir/$libname.ver~
8681             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8682         fi
8683
8684         case $cc_basename in
8685         xlf*)
8686           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8687           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8688           hardcode_libdir_flag_spec=
8689           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8690           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8691           if test "x$supports_anon_versioning" = xyes; then
8692             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8693               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8694               echo "local: *; };" >> $output_objdir/$libname.ver~
8695               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8696           fi
8697           ;;
8698         esac
8699       else
8700         ld_shlibs=no
8701       fi
8702       ;;
8703
8704     netbsd*)
8705       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8706         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8707         wlarc=
8708       else
8709         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711       fi
8712       ;;
8713
8714     solaris*)
8715       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8716         ld_shlibs=no
8717         cat <<_LT_EOF 1>&2
8718
8719 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8720 *** create shared libraries on Solaris systems.  Therefore, libtool
8721 *** is disabling shared libraries support.  We urge you to upgrade GNU
8722 *** binutils to release 2.9.1 or newer.  Another option is to modify
8723 *** your PATH or compiler configuration so that the native linker is
8724 *** used, and then restart.
8725
8726 _LT_EOF
8727       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8728         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730       else
8731         ld_shlibs=no
8732       fi
8733       ;;
8734
8735     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8736       case `$LD -v 2>&1` in
8737         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8738         ld_shlibs=no
8739         cat <<_LT_EOF 1>&2
8740
8741 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8742 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8743 *** is disabling shared libraries support.  We urge you to upgrade GNU
8744 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8745 *** your PATH or compiler configuration so that the native linker is
8746 *** used, and then restart.
8747
8748 _LT_EOF
8749         ;;
8750         *)
8751           # For security reasons, it is highly recommended that you always
8752           # use absolute paths for naming shared libraries, and exclude the
8753           # DT_RUNPATH tag from executables and libraries.  But doing so
8754           # requires that you compile everything twice, which is a pain.
8755           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8756             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8757             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8759           else
8760             ld_shlibs=no
8761           fi
8762         ;;
8763       esac
8764       ;;
8765
8766     sunos4*)
8767       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8768       wlarc=
8769       hardcode_direct=yes
8770       hardcode_shlibpath_var=no
8771       ;;
8772
8773     *)
8774       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8775         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8777       else
8778         ld_shlibs=no
8779       fi
8780       ;;
8781     esac
8782
8783     if test "$ld_shlibs" = no; then
8784       runpath_var=
8785       hardcode_libdir_flag_spec=
8786       export_dynamic_flag_spec=
8787       whole_archive_flag_spec=
8788     fi
8789   else
8790     # PORTME fill in a description of your system's linker (not GNU ld)
8791     case $host_os in
8792     aix3*)
8793       allow_undefined_flag=unsupported
8794       always_export_symbols=yes
8795       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'
8796       # Note: this linker hardcodes the directories in LIBPATH if there
8797       # are no directories specified by -L.
8798       hardcode_minus_L=yes
8799       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8800         # Neither direct hardcoding nor static linking is supported with a
8801         # broken collect2.
8802         hardcode_direct=unsupported
8803       fi
8804       ;;
8805
8806     aix[4-9]*)
8807       if test "$host_cpu" = ia64; then
8808         # On IA64, the linker does run time linking by default, so we don't
8809         # have to do anything special.
8810         aix_use_runtimelinking=no
8811         exp_sym_flag='-Bexport'
8812         no_entry_flag=""
8813       else
8814         # If we're using GNU nm, then we don't want the "-C" option.
8815         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8816         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8817           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'
8818         else
8819           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'
8820         fi
8821         aix_use_runtimelinking=no
8822
8823         # Test if we are trying to use run time linking or normal
8824         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8825         # need to do runtime linking.
8826         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8827           for ld_flag in $LDFLAGS; do
8828           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8829             aix_use_runtimelinking=yes
8830             break
8831           fi
8832           done
8833           ;;
8834         esac
8835
8836         exp_sym_flag='-bexport'
8837         no_entry_flag='-bnoentry'
8838       fi
8839
8840       # When large executables or shared objects are built, AIX ld can
8841       # have problems creating the table of contents.  If linking a library
8842       # or program results in "error TOC overflow" add -mminimal-toc to
8843       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8844       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8845
8846       archive_cmds=''
8847       hardcode_direct=yes
8848       hardcode_direct_absolute=yes
8849       hardcode_libdir_separator=':'
8850       link_all_deplibs=yes
8851       file_list_spec='${wl}-f,'
8852
8853       if test "$GCC" = yes; then
8854         case $host_os in aix4.[012]|aix4.[012].*)
8855         # We only want to do this on AIX 4.2 and lower, the check
8856         # below for broken collect2 doesn't work under 4.3+
8857           collect2name=`${CC} -print-prog-name=collect2`
8858           if test -f "$collect2name" &&
8859            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8860           then
8861           # We have reworked collect2
8862           :
8863           else
8864           # We have old collect2
8865           hardcode_direct=unsupported
8866           # It fails to find uninstalled libraries when the uninstalled
8867           # path is not listed in the libpath.  Setting hardcode_minus_L
8868           # to unsupported forces relinking
8869           hardcode_minus_L=yes
8870           hardcode_libdir_flag_spec='-L$libdir'
8871           hardcode_libdir_separator=
8872           fi
8873           ;;
8874         esac
8875         shared_flag='-shared'
8876         if test "$aix_use_runtimelinking" = yes; then
8877           shared_flag="$shared_flag "'${wl}-G'
8878         fi
8879       else
8880         # not using gcc
8881         if test "$host_cpu" = ia64; then
8882         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8883         # chokes on -Wl,-G. The following line is correct:
8884           shared_flag='-G'
8885         else
8886           if test "$aix_use_runtimelinking" = yes; then
8887             shared_flag='${wl}-G'
8888           else
8889             shared_flag='${wl}-bM:SRE'
8890           fi
8891         fi
8892       fi
8893
8894       export_dynamic_flag_spec='${wl}-bexpall'
8895       # It seems that -bexpall does not export symbols beginning with
8896       # underscore (_), so it is better to generate a list of symbols to export.
8897       always_export_symbols=yes
8898       if test "$aix_use_runtimelinking" = yes; then
8899         # Warning - without using the other runtime loading flags (-brtl),
8900         # -berok will link without error, but may produce a broken library.
8901         allow_undefined_flag='-berok'
8902         # Determine the default libpath from the value encoded in an
8903         # empty executable.
8904         cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h.  */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h.  */
8910
8911 int
8912 main ()
8913 {
8914
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8921 case "(($ac_try" in
8922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923   *) ac_try_echo=$ac_try;;
8924 esac
8925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8926 $as_echo "$ac_try_echo") >&5
8927   (eval "$ac_link") 2>conftest.er1
8928   ac_status=$?
8929   grep -v '^ *+' conftest.er1 >conftest.err
8930   rm -f conftest.er1
8931   cat conftest.err >&5
8932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } && {
8934          test -z "$ac_c_werror_flag" ||
8935          test ! -s conftest.err
8936        } && test -s conftest$ac_exeext && {
8937          test "$cross_compiling" = yes ||
8938          $as_test_x conftest$ac_exeext
8939        }; then
8940
8941 lt_aix_libpath_sed='
8942     /Import File Strings/,/^$/ {
8943         /^0/ {
8944             s/^0  *\(.*\)$/\1/
8945             p
8946         }
8947     }'
8948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8949 # Check for a 64-bit object if we didn't find anything.
8950 if test -z "$aix_libpath"; then
8951   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8952 fi
8953 else
8954   $as_echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957
8958 fi
8959
8960 rm -rf conftest.dSYM
8961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8962       conftest$ac_exeext conftest.$ac_ext
8963 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8964
8965         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8966         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"
8967       else
8968         if test "$host_cpu" = ia64; then
8969           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8970           allow_undefined_flag="-z nodefs"
8971           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"
8972         else
8973          # Determine the default libpath from the value encoded in an
8974          # empty executable.
8975          cat >conftest.$ac_ext <<_ACEOF
8976 /* confdefs.h.  */
8977 _ACEOF
8978 cat confdefs.h >>conftest.$ac_ext
8979 cat >>conftest.$ac_ext <<_ACEOF
8980 /* end confdefs.h.  */
8981
8982 int
8983 main ()
8984 {
8985
8986   ;
8987   return 0;
8988 }
8989 _ACEOF
8990 rm -f conftest.$ac_objext conftest$ac_exeext
8991 if { (ac_try="$ac_link"
8992 case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8997 $as_echo "$ac_try_echo") >&5
8998   (eval "$ac_link") 2>conftest.er1
8999   ac_status=$?
9000   grep -v '^ *+' conftest.er1 >conftest.err
9001   rm -f conftest.er1
9002   cat conftest.err >&5
9003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); } && {
9005          test -z "$ac_c_werror_flag" ||
9006          test ! -s conftest.err
9007        } && test -s conftest$ac_exeext && {
9008          test "$cross_compiling" = yes ||
9009          $as_test_x conftest$ac_exeext
9010        }; then
9011
9012 lt_aix_libpath_sed='
9013     /Import File Strings/,/^$/ {
9014         /^0/ {
9015             s/^0  *\(.*\)$/\1/
9016             p
9017         }
9018     }'
9019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9020 # Check for a 64-bit object if we didn't find anything.
9021 if test -z "$aix_libpath"; then
9022   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9023 fi
9024 else
9025   $as_echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9027
9028
9029 fi
9030
9031 rm -rf conftest.dSYM
9032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9033       conftest$ac_exeext conftest.$ac_ext
9034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9035
9036          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9037           # Warning - without using the other run time loading flags,
9038           # -berok will link without error, but may produce a broken library.
9039           no_undefined_flag=' ${wl}-bernotok'
9040           allow_undefined_flag=' ${wl}-berok'
9041           # Exported symbols can be pulled into shared objects from archives
9042           whole_archive_flag_spec='$convenience'
9043           archive_cmds_need_lc=yes
9044           # This is similar to how AIX traditionally builds its shared libraries.
9045           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'
9046         fi
9047       fi
9048       ;;
9049
9050     amigaos*)
9051       case $host_cpu in
9052       powerpc)
9053             # see comment about AmigaOS4 .so support
9054             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9055             archive_expsym_cmds=''
9056         ;;
9057       m68k)
9058             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)'
9059             hardcode_libdir_flag_spec='-L$libdir'
9060             hardcode_minus_L=yes
9061         ;;
9062       esac
9063       ;;
9064
9065     bsdi[45]*)
9066       export_dynamic_flag_spec=-rdynamic
9067       ;;
9068
9069     cygwin* | mingw* | pw32* | cegcc*)
9070       # When not using gcc, we currently assume that we are using
9071       # Microsoft Visual C++.
9072       # hardcode_libdir_flag_spec is actually meaningless, as there is
9073       # no search path for DLLs.
9074       hardcode_libdir_flag_spec=' '
9075       allow_undefined_flag=unsupported
9076       # Tell ltmain to make .lib files, not .a files.
9077       libext=lib
9078       # Tell ltmain to make .dll files, not .so files.
9079       shrext_cmds=".dll"
9080       # FIXME: Setting linknames here is a bad hack.
9081       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9082       # The linker will automatically build a .lib file if we build a DLL.
9083       old_archive_from_new_cmds='true'
9084       # FIXME: Should let the user specify the lib program.
9085       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9086       fix_srcfile_path='`cygpath -w "$srcfile"`'
9087       enable_shared_with_static_runtimes=yes
9088       ;;
9089
9090     darwin* | rhapsody*)
9091
9092
9093   archive_cmds_need_lc=no
9094   hardcode_direct=no
9095   hardcode_automatic=yes
9096   hardcode_shlibpath_var=unsupported
9097   whole_archive_flag_spec=''
9098   link_all_deplibs=yes
9099   allow_undefined_flag="$_lt_dar_allow_undefined"
9100   case $cc_basename in
9101      ifort*) _lt_dar_can_shared=yes ;;
9102      *) _lt_dar_can_shared=$GCC ;;
9103   esac
9104   if test "$_lt_dar_can_shared" = "yes"; then
9105     output_verbose_link_cmd=echo
9106     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9107     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9108     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}"
9109     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}"
9110
9111   else
9112   ld_shlibs=no
9113   fi
9114
9115       ;;
9116
9117     dgux*)
9118       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119       hardcode_libdir_flag_spec='-L$libdir'
9120       hardcode_shlibpath_var=no
9121       ;;
9122
9123     freebsd1*)
9124       ld_shlibs=no
9125       ;;
9126
9127     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9128     # support.  Future versions do this automatically, but an explicit c++rt0.o
9129     # does not break anything, and helps significantly (at the cost of a little
9130     # extra space).
9131     freebsd2.2*)
9132       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9133       hardcode_libdir_flag_spec='-R$libdir'
9134       hardcode_direct=yes
9135       hardcode_shlibpath_var=no
9136       ;;
9137
9138     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9139     freebsd2*)
9140       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9141       hardcode_direct=yes
9142       hardcode_minus_L=yes
9143       hardcode_shlibpath_var=no
9144       ;;
9145
9146     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9147     freebsd* | dragonfly*)
9148       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9149       hardcode_libdir_flag_spec='-R$libdir'
9150       hardcode_direct=yes
9151       hardcode_shlibpath_var=no
9152       ;;
9153
9154     hpux9*)
9155       if test "$GCC" = yes; then
9156         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'
9157       else
9158         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'
9159       fi
9160       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9161       hardcode_libdir_separator=:
9162       hardcode_direct=yes
9163
9164       # hardcode_minus_L: Not really in the search PATH,
9165       # but as the default location of the library.
9166       hardcode_minus_L=yes
9167       export_dynamic_flag_spec='${wl}-E'
9168       ;;
9169
9170     hpux10*)
9171       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9172         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9173       else
9174         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9175       fi
9176       if test "$with_gnu_ld" = no; then
9177         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9178         hardcode_libdir_flag_spec_ld='+b $libdir'
9179         hardcode_libdir_separator=:
9180         hardcode_direct=yes
9181         hardcode_direct_absolute=yes
9182         export_dynamic_flag_spec='${wl}-E'
9183         # hardcode_minus_L: Not really in the search PATH,
9184         # but as the default location of the library.
9185         hardcode_minus_L=yes
9186       fi
9187       ;;
9188
9189     hpux11*)
9190       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9191         case $host_cpu in
9192         hppa*64*)
9193           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9194           ;;
9195         ia64*)
9196           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9197           ;;
9198         *)
9199           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9200           ;;
9201         esac
9202       else
9203         case $host_cpu in
9204         hppa*64*)
9205           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206           ;;
9207         ia64*)
9208           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9209           ;;
9210         *)
9211           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9212           ;;
9213         esac
9214       fi
9215       if test "$with_gnu_ld" = no; then
9216         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9217         hardcode_libdir_separator=:
9218
9219         case $host_cpu in
9220         hppa*64*|ia64*)
9221           hardcode_direct=no
9222           hardcode_shlibpath_var=no
9223           ;;
9224         *)
9225           hardcode_direct=yes
9226           hardcode_direct_absolute=yes
9227           export_dynamic_flag_spec='${wl}-E'
9228
9229           # hardcode_minus_L: Not really in the search PATH,
9230           # but as the default location of the library.
9231           hardcode_minus_L=yes
9232           ;;
9233         esac
9234       fi
9235       ;;
9236
9237     irix5* | irix6* | nonstopux*)
9238       if test "$GCC" = yes; then
9239         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'
9240         # Try to use the -exported_symbol ld option, if it does not
9241         # work, assume that -exports_file does not work either and
9242         # implicitly export all symbols.
9243         save_LDFLAGS="$LDFLAGS"
9244         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9245         cat >conftest.$ac_ext <<_ACEOF
9246 int foo(void) {}
9247 _ACEOF
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (ac_try="$ac_link"
9250 case "(($ac_try" in
9251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252   *) ac_try_echo=$ac_try;;
9253 esac
9254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9255 $as_echo "$ac_try_echo") >&5
9256   (eval "$ac_link") 2>conftest.er1
9257   ac_status=$?
9258   grep -v '^ *+' conftest.er1 >conftest.err
9259   rm -f conftest.er1
9260   cat conftest.err >&5
9261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } && {
9263          test -z "$ac_c_werror_flag" ||
9264          test ! -s conftest.err
9265        } && test -s conftest$ac_exeext && {
9266          test "$cross_compiling" = yes ||
9267          $as_test_x conftest$ac_exeext
9268        }; then
9269   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'
9270
9271 else
9272   $as_echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275
9276 fi
9277
9278 rm -rf conftest.dSYM
9279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9280       conftest$ac_exeext conftest.$ac_ext
9281         LDFLAGS="$save_LDFLAGS"
9282       else
9283         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'
9284         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'
9285       fi
9286       archive_cmds_need_lc='no'
9287       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288       hardcode_libdir_separator=:
9289       inherit_rpath=yes
9290       link_all_deplibs=yes
9291       ;;
9292
9293     netbsd*)
9294       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9295         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9296       else
9297         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9298       fi
9299       hardcode_libdir_flag_spec='-R$libdir'
9300       hardcode_direct=yes
9301       hardcode_shlibpath_var=no
9302       ;;
9303
9304     newsos6)
9305       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306       hardcode_direct=yes
9307       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9308       hardcode_libdir_separator=:
9309       hardcode_shlibpath_var=no
9310       ;;
9311
9312     *nto* | *qnx*)
9313       ;;
9314
9315     openbsd*)
9316       if test -f /usr/libexec/ld.so; then
9317         hardcode_direct=yes
9318         hardcode_shlibpath_var=no
9319         hardcode_direct_absolute=yes
9320         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9321           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9322           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9323           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9324           export_dynamic_flag_spec='${wl}-E'
9325         else
9326           case $host_os in
9327            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9328              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9329              hardcode_libdir_flag_spec='-R$libdir'
9330              ;;
9331            *)
9332              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9333              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9334              ;;
9335           esac
9336         fi
9337       else
9338         ld_shlibs=no
9339       fi
9340       ;;
9341
9342     os2*)
9343       hardcode_libdir_flag_spec='-L$libdir'
9344       hardcode_minus_L=yes
9345       allow_undefined_flag=unsupported
9346       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'
9347       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9348       ;;
9349
9350     osf3*)
9351       if test "$GCC" = yes; then
9352         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9353         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'
9354       else
9355         allow_undefined_flag=' -expect_unresolved \*'
9356         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'
9357       fi
9358       archive_cmds_need_lc='no'
9359       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9360       hardcode_libdir_separator=:
9361       ;;
9362
9363     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9364       if test "$GCC" = yes; then
9365         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9366         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'
9367         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9368       else
9369         allow_undefined_flag=' -expect_unresolved \*'
9370         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'
9371         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~
9372         $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'
9373
9374         # Both c and cxx compiler support -rpath directly
9375         hardcode_libdir_flag_spec='-rpath $libdir'
9376       fi
9377       archive_cmds_need_lc='no'
9378       hardcode_libdir_separator=:
9379       ;;
9380
9381     solaris*)
9382       no_undefined_flag=' -z defs'
9383       if test "$GCC" = yes; then
9384         wlarc='${wl}'
9385         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9386         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9387           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9388       else
9389         case `$CC -V 2>&1` in
9390         *"Compilers 5.0"*)
9391           wlarc=''
9392           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9394           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9395           ;;
9396         *)
9397           wlarc='${wl}'
9398           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9399           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9400           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9401           ;;
9402         esac
9403       fi
9404       hardcode_libdir_flag_spec='-R$libdir'
9405       hardcode_shlibpath_var=no
9406       case $host_os in
9407       solaris2.[0-5] | solaris2.[0-5].*) ;;
9408       *)
9409         # The compiler driver will combine and reorder linker options,
9410         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9411         # but is careful enough not to reorder.
9412         # Supported since Solaris 2.6 (maybe 2.5.1?)
9413         if test "$GCC" = yes; then
9414           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9415         else
9416           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9417         fi
9418         ;;
9419       esac
9420       link_all_deplibs=yes
9421       ;;
9422
9423     sunos4*)
9424       if test "x$host_vendor" = xsequent; then
9425         # Use $CC to link under sequent, because it throws in some extra .o
9426         # files that make .init and .fini sections work.
9427         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9428       else
9429         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9430       fi
9431       hardcode_libdir_flag_spec='-L$libdir'
9432       hardcode_direct=yes
9433       hardcode_minus_L=yes
9434       hardcode_shlibpath_var=no
9435       ;;
9436
9437     sysv4)
9438       case $host_vendor in
9439         sni)
9440           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441           hardcode_direct=yes # is this really true???
9442         ;;
9443         siemens)
9444           ## LD is ld it makes a PLAMLIB
9445           ## CC just makes a GrossModule.
9446           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9447           reload_cmds='$CC -r -o $output$reload_objs'
9448           hardcode_direct=no
9449         ;;
9450         motorola)
9451           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9453         ;;
9454       esac
9455       runpath_var='LD_RUN_PATH'
9456       hardcode_shlibpath_var=no
9457       ;;
9458
9459     sysv4.3*)
9460       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461       hardcode_shlibpath_var=no
9462       export_dynamic_flag_spec='-Bexport'
9463       ;;
9464
9465     sysv4*MP*)
9466       if test -d /usr/nec; then
9467         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468         hardcode_shlibpath_var=no
9469         runpath_var=LD_RUN_PATH
9470         hardcode_runpath_var=yes
9471         ld_shlibs=yes
9472       fi
9473       ;;
9474
9475     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9476       no_undefined_flag='${wl}-z,text'
9477       archive_cmds_need_lc=no
9478       hardcode_shlibpath_var=no
9479       runpath_var='LD_RUN_PATH'
9480
9481       if test "$GCC" = yes; then
9482         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484       else
9485         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9486         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9487       fi
9488       ;;
9489
9490     sysv5* | sco3.2v5* | sco5v6*)
9491       # Note: We can NOT use -z defs as we might desire, because we do not
9492       # link with -lc, and that would cause any symbols used from libc to
9493       # always be unresolved, which means just about no library would
9494       # ever link correctly.  If we're not using GNU ld we use -z text
9495       # though, which does catch some bad symbols but isn't as heavy-handed
9496       # as -z defs.
9497       no_undefined_flag='${wl}-z,text'
9498       allow_undefined_flag='${wl}-z,nodefs'
9499       archive_cmds_need_lc=no
9500       hardcode_shlibpath_var=no
9501       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9502       hardcode_libdir_separator=':'
9503       link_all_deplibs=yes
9504       export_dynamic_flag_spec='${wl}-Bexport'
9505       runpath_var='LD_RUN_PATH'
9506
9507       if test "$GCC" = yes; then
9508         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510       else
9511         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9513       fi
9514       ;;
9515
9516     uts4*)
9517       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518       hardcode_libdir_flag_spec='-L$libdir'
9519       hardcode_shlibpath_var=no
9520       ;;
9521
9522     *)
9523       ld_shlibs=no
9524       ;;
9525     esac
9526
9527     if test x$host_vendor = xsni; then
9528       case $host in
9529       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9530         export_dynamic_flag_spec='${wl}-Blargedynsym'
9531         ;;
9532       esac
9533     fi
9534   fi
9535
9536 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9537 $as_echo "$ld_shlibs" >&6; }
9538 test "$ld_shlibs" = no && can_build_shared=no
9539
9540 with_gnu_ld=$with_gnu_ld
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556 #
9557 # Do we need to explicitly link libc?
9558 #
9559 case "x$archive_cmds_need_lc" in
9560 x|xyes)
9561   # Assume -lc should be added
9562   archive_cmds_need_lc=yes
9563
9564   if test "$enable_shared" = yes && test "$GCC" = yes; then
9565     case $archive_cmds in
9566     *'~'*)
9567       # FIXME: we may have to deal with multi-command sequences.
9568       ;;
9569     '$CC '*)
9570       # Test whether the compiler implicitly links with -lc since on some
9571       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9572       # to ld, don't add -lc before -lgcc.
9573       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9574 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9575       $RM conftest*
9576       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9577
9578       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579   (eval $ac_compile) 2>&5
9580   ac_status=$?
9581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); } 2>conftest.err; then
9583         soname=conftest
9584         lib=conftest
9585         libobjs=conftest.$ac_objext
9586         deplibs=
9587         wl=$lt_prog_compiler_wl
9588         pic_flag=$lt_prog_compiler_pic
9589         compiler_flags=-v
9590         linker_flags=-v
9591         verstring=
9592         output_objdir=.
9593         libname=conftest
9594         lt_save_allow_undefined_flag=$allow_undefined_flag
9595         allow_undefined_flag=
9596         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9597   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9598   ac_status=$?
9599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600   (exit $ac_status); }
9601         then
9602           archive_cmds_need_lc=no
9603         else
9604           archive_cmds_need_lc=yes
9605         fi
9606         allow_undefined_flag=$lt_save_allow_undefined_flag
9607       else
9608         cat conftest.err 1>&5
9609       fi
9610       $RM conftest*
9611       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9612 $as_echo "$archive_cmds_need_lc" >&6; }
9613       ;;
9614     esac
9615   fi
9616   ;;
9617 esac
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9777
9778 if test "$GCC" = yes; then
9779   case $host_os in
9780     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9781     *) lt_awk_arg="/^libraries:/" ;;
9782   esac
9783   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9784   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9785     # if the path contains ";" then we assume it to be the separator
9786     # otherwise default to the standard path separator (i.e. ":") - it is
9787     # assumed that no part of a normal pathname contains ";" but that should
9788     # okay in the real world where ";" in dirpaths is itself problematic.
9789     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9790   else
9791     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9792   fi
9793   # Ok, now we have the path, separated by spaces, we can step through it
9794   # and add multilib dir if necessary.
9795   lt_tmp_lt_search_path_spec=
9796   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9797   for lt_sys_path in $lt_search_path_spec; do
9798     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9799       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9800     else
9801       test -d "$lt_sys_path" && \
9802         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9803     fi
9804   done
9805   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9806 BEGIN {RS=" "; FS="/|\n";} {
9807   lt_foo="";
9808   lt_count=0;
9809   for (lt_i = NF; lt_i > 0; lt_i--) {
9810     if ($lt_i != "" && $lt_i != ".") {
9811       if ($lt_i == "..") {
9812         lt_count++;
9813       } else {
9814         if (lt_count == 0) {
9815           lt_foo="/" $lt_i lt_foo;
9816         } else {
9817           lt_count--;
9818         }
9819       }
9820     }
9821   }
9822   if (lt_foo != "") { lt_freq[lt_foo]++; }
9823   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9824 }'`
9825   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9826 else
9827   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9828 fi
9829 library_names_spec=
9830 libname_spec='lib$name'
9831 soname_spec=
9832 shrext_cmds=".so"
9833 postinstall_cmds=
9834 postuninstall_cmds=
9835 finish_cmds=
9836 finish_eval=
9837 shlibpath_var=
9838 shlibpath_overrides_runpath=unknown
9839 version_type=none
9840 dynamic_linker="$host_os ld.so"
9841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9842 need_lib_prefix=unknown
9843 hardcode_into_libs=no
9844
9845 # when you set need_version to no, make sure it does not cause -set_version
9846 # flags to be left without arguments
9847 need_version=unknown
9848
9849 case $host_os in
9850 aix3*)
9851   version_type=linux
9852   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9853   shlibpath_var=LIBPATH
9854
9855   # AIX 3 has no versioning support, so we append a major version to the name.
9856   soname_spec='${libname}${release}${shared_ext}$major'
9857   ;;
9858
9859 aix[4-9]*)
9860   version_type=linux
9861   need_lib_prefix=no
9862   need_version=no
9863   hardcode_into_libs=yes
9864   if test "$host_cpu" = ia64; then
9865     # AIX 5 supports IA64
9866     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9867     shlibpath_var=LD_LIBRARY_PATH
9868   else
9869     # With GCC up to 2.95.x, collect2 would create an import file
9870     # for dependence libraries.  The import file would start with
9871     # the line `#! .'.  This would cause the generated library to
9872     # depend on `.', always an invalid library.  This was fixed in
9873     # development snapshots of GCC prior to 3.0.
9874     case $host_os in
9875       aix4 | aix4.[01] | aix4.[01].*)
9876       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9877            echo ' yes '
9878            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9879         :
9880       else
9881         can_build_shared=no
9882       fi
9883       ;;
9884     esac
9885     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9886     # soname into executable. Probably we can add versioning support to
9887     # collect2, so additional links can be useful in future.
9888     if test "$aix_use_runtimelinking" = yes; then
9889       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9890       # instead of lib<name>.a to let people know that these are not
9891       # typical AIX shared libraries.
9892       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893     else
9894       # We preserve .a as extension for shared libraries through AIX4.2
9895       # and later when we are not doing run time linking.
9896       library_names_spec='${libname}${release}.a $libname.a'
9897       soname_spec='${libname}${release}${shared_ext}$major'
9898     fi
9899     shlibpath_var=LIBPATH
9900   fi
9901   ;;
9902
9903 amigaos*)
9904   case $host_cpu in
9905   powerpc)
9906     # Since July 2007 AmigaOS4 officially supports .so libraries.
9907     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909     ;;
9910   m68k)
9911     library_names_spec='$libname.ixlibrary $libname.a'
9912     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9913     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'
9914     ;;
9915   esac
9916   ;;
9917
9918 beos*)
9919   library_names_spec='${libname}${shared_ext}'
9920   dynamic_linker="$host_os ld.so"
9921   shlibpath_var=LIBRARY_PATH
9922   ;;
9923
9924 bsdi[45]*)
9925   version_type=linux
9926   need_version=no
9927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928   soname_spec='${libname}${release}${shared_ext}$major'
9929   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9930   shlibpath_var=LD_LIBRARY_PATH
9931   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9932   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9933   # the default ld.so.conf also contains /usr/contrib/lib and
9934   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9935   # libtool to hard-code these into programs
9936   ;;
9937
9938 cygwin* | mingw* | pw32* | cegcc*)
9939   version_type=windows
9940   shrext_cmds=".dll"
9941   need_version=no
9942   need_lib_prefix=no
9943
9944   case $GCC,$host_os in
9945   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9946     library_names_spec='$libname.dll.a'
9947     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9948     postinstall_cmds='base_file=`basename \${file}`~
9949       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9950       dldir=$destdir/`dirname \$dlpath`~
9951       test -d \$dldir || mkdir -p \$dldir~
9952       $install_prog $dir/$dlname \$dldir/$dlname~
9953       chmod a+x \$dldir/$dlname~
9954       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9955         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9956       fi'
9957     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9958       dlpath=$dir/\$dldll~
9959        $RM \$dlpath'
9960     shlibpath_overrides_runpath=yes
9961
9962     case $host_os in
9963     cygwin*)
9964       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9965       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9966       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9967       ;;
9968     mingw* | cegcc*)
9969       # MinGW DLLs use traditional 'lib' prefix
9970       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9971       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9972       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9973         # It is most probably a Windows format PATH printed by
9974         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9975         # path with ; separators, and with drive letters. We can handle the
9976         # drive letters (cygwin fileutils understands them), so leave them,
9977         # especially as we might pass files found there to a mingw objdump,
9978         # which wouldn't understand a cygwinified path. Ahh.
9979         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9980       else
9981         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9982       fi
9983       ;;
9984     pw32*)
9985       # pw32 DLLs use 'pw' prefix rather than 'lib'
9986       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9987       ;;
9988     esac
9989     ;;
9990
9991   *)
9992     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9993     ;;
9994   esac
9995   dynamic_linker='Win32 ld.exe'
9996   # FIXME: first we should search . and the directory the executable is in
9997   shlibpath_var=PATH
9998   ;;
9999
10000 darwin* | rhapsody*)
10001   dynamic_linker="$host_os dyld"
10002   version_type=darwin
10003   need_lib_prefix=no
10004   need_version=no
10005   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10006   soname_spec='${libname}${release}${major}$shared_ext'
10007   shlibpath_overrides_runpath=yes
10008   shlibpath_var=DYLD_LIBRARY_PATH
10009   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10010
10011   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10012   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10013   ;;
10014
10015 dgux*)
10016   version_type=linux
10017   need_lib_prefix=no
10018   need_version=no
10019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10020   soname_spec='${libname}${release}${shared_ext}$major'
10021   shlibpath_var=LD_LIBRARY_PATH
10022   ;;
10023
10024 freebsd1*)
10025   dynamic_linker=no
10026   ;;
10027
10028 freebsd* | dragonfly*)
10029   # DragonFly does not have aout.  When/if they implement a new
10030   # versioning mechanism, adjust this.
10031   if test -x /usr/bin/objformat; then
10032     objformat=`/usr/bin/objformat`
10033   else
10034     case $host_os in
10035     freebsd[123]*) objformat=aout ;;
10036     *) objformat=elf ;;
10037     esac
10038   fi
10039   version_type=freebsd-$objformat
10040   case $version_type in
10041     freebsd-elf*)
10042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10043       need_version=no
10044       need_lib_prefix=no
10045       ;;
10046     freebsd-*)
10047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10048       need_version=yes
10049       ;;
10050   esac
10051   shlibpath_var=LD_LIBRARY_PATH
10052   case $host_os in
10053   freebsd2*)
10054     shlibpath_overrides_runpath=yes
10055     ;;
10056   freebsd3.[01]* | freebsdelf3.[01]*)
10057     shlibpath_overrides_runpath=yes
10058     hardcode_into_libs=yes
10059     ;;
10060   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10061   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10062     shlibpath_overrides_runpath=no
10063     hardcode_into_libs=yes
10064     ;;
10065   *) # from 4.6 on, and DragonFly
10066     shlibpath_overrides_runpath=yes
10067     hardcode_into_libs=yes
10068     ;;
10069   esac
10070   ;;
10071
10072 gnu*)
10073   version_type=linux
10074   need_lib_prefix=no
10075   need_version=no
10076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10077   soname_spec='${libname}${release}${shared_ext}$major'
10078   shlibpath_var=LD_LIBRARY_PATH
10079   hardcode_into_libs=yes
10080   ;;
10081
10082 hpux9* | hpux10* | hpux11*)
10083   # Give a soname corresponding to the major version so that dld.sl refuses to
10084   # link against other versions.
10085   version_type=sunos
10086   need_lib_prefix=no
10087   need_version=no
10088   case $host_cpu in
10089   ia64*)
10090     shrext_cmds='.so'
10091     hardcode_into_libs=yes
10092     dynamic_linker="$host_os dld.so"
10093     shlibpath_var=LD_LIBRARY_PATH
10094     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096     soname_spec='${libname}${release}${shared_ext}$major'
10097     if test "X$HPUX_IA64_MODE" = X32; then
10098       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10099     else
10100       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10101     fi
10102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10103     ;;
10104   hppa*64*)
10105     shrext_cmds='.sl'
10106     hardcode_into_libs=yes
10107     dynamic_linker="$host_os dld.sl"
10108     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10109     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10111     soname_spec='${libname}${release}${shared_ext}$major'
10112     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10113     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10114     ;;
10115   *)
10116     shrext_cmds='.sl'
10117     dynamic_linker="$host_os dld.sl"
10118     shlibpath_var=SHLIB_PATH
10119     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     soname_spec='${libname}${release}${shared_ext}$major'
10122     ;;
10123   esac
10124   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10125   postinstall_cmds='chmod 555 $lib'
10126   ;;
10127
10128 interix[3-9]*)
10129   version_type=linux
10130   need_lib_prefix=no
10131   need_version=no
10132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10133   soname_spec='${libname}${release}${shared_ext}$major'
10134   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10135   shlibpath_var=LD_LIBRARY_PATH
10136   shlibpath_overrides_runpath=no
10137   hardcode_into_libs=yes
10138   ;;
10139
10140 irix5* | irix6* | nonstopux*)
10141   case $host_os in
10142     nonstopux*) version_type=nonstopux ;;
10143     *)
10144         if test "$lt_cv_prog_gnu_ld" = yes; then
10145                 version_type=linux
10146         else
10147                 version_type=irix
10148         fi ;;
10149   esac
10150   need_lib_prefix=no
10151   need_version=no
10152   soname_spec='${libname}${release}${shared_ext}$major'
10153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10154   case $host_os in
10155   irix5* | nonstopux*)
10156     libsuff= shlibsuff=
10157     ;;
10158   *)
10159     case $LD in # libtool.m4 will add one of these switches to LD
10160     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10161       libsuff= shlibsuff= libmagic=32-bit;;
10162     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10163       libsuff=32 shlibsuff=N32 libmagic=N32;;
10164     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10165       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10166     *) libsuff= shlibsuff= libmagic=never-match;;
10167     esac
10168     ;;
10169   esac
10170   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10171   shlibpath_overrides_runpath=no
10172   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10173   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10174   hardcode_into_libs=yes
10175   ;;
10176
10177 # No shared lib support for Linux oldld, aout, or coff.
10178 linux*oldld* | linux*aout* | linux*coff*)
10179   dynamic_linker=no
10180   ;;
10181
10182 # This must be Linux ELF.
10183 linux* | k*bsd*-gnu)
10184   version_type=linux
10185   need_lib_prefix=no
10186   need_version=no
10187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188   soname_spec='${libname}${release}${shared_ext}$major'
10189   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10190   shlibpath_var=LD_LIBRARY_PATH
10191   shlibpath_overrides_runpath=no
10192   # Some binutils ld are patched to set DT_RUNPATH
10193   save_LDFLAGS=$LDFLAGS
10194   save_libdir=$libdir
10195   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10196        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10197   cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h.  */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h.  */
10203
10204 int
10205 main ()
10206 {
10207
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216   *) ac_try_echo=$ac_try;;
10217 esac
10218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10219 $as_echo "$ac_try_echo") >&5
10220   (eval "$ac_link") 2>conftest.er1
10221   ac_status=$?
10222   grep -v '^ *+' conftest.er1 >conftest.err
10223   rm -f conftest.er1
10224   cat conftest.err >&5
10225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); } && {
10227          test -z "$ac_c_werror_flag" ||
10228          test ! -s conftest.err
10229        } && test -s conftest$ac_exeext && {
10230          test "$cross_compiling" = yes ||
10231          $as_test_x conftest$ac_exeext
10232        }; then
10233   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10234   shlibpath_overrides_runpath=yes
10235 fi
10236
10237 else
10238   $as_echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10240
10241
10242 fi
10243
10244 rm -rf conftest.dSYM
10245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10246       conftest$ac_exeext conftest.$ac_ext
10247   LDFLAGS=$save_LDFLAGS
10248   libdir=$save_libdir
10249
10250   # This implies no fast_install, which is unacceptable.
10251   # Some rework will be needed to allow for fast_install
10252   # before this can be enabled.
10253   hardcode_into_libs=yes
10254
10255   # Add ABI-specific directories to the system library path.
10256   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10257
10258   # Append ld.so.conf contents to the search path
10259   if test -f /etc/ld.so.conf; then
10260     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' ' '`
10261     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10262   fi
10263
10264   # We used to test for /lib/ld.so.1 and disable shared libraries on
10265   # powerpc, because MkLinux only supported shared libraries with the
10266   # GNU dynamic linker.  Since this was broken with cross compilers,
10267   # most powerpc-linux boxes support dynamic linking these days and
10268   # people can always --disable-shared, the test was removed, and we
10269   # assume the GNU/Linux dynamic linker is in use.
10270   dynamic_linker='GNU/Linux ld.so'
10271   ;;
10272
10273 netbsd*)
10274   version_type=sunos
10275   need_lib_prefix=no
10276   need_version=no
10277   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10280     dynamic_linker='NetBSD (a.out) ld.so'
10281   else
10282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10283     soname_spec='${libname}${release}${shared_ext}$major'
10284     dynamic_linker='NetBSD ld.elf_so'
10285   fi
10286   shlibpath_var=LD_LIBRARY_PATH
10287   shlibpath_overrides_runpath=yes
10288   hardcode_into_libs=yes
10289   ;;
10290
10291 newsos6)
10292   version_type=linux
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294   shlibpath_var=LD_LIBRARY_PATH
10295   shlibpath_overrides_runpath=yes
10296   ;;
10297
10298 *nto* | *qnx*)
10299   version_type=qnx
10300   need_lib_prefix=no
10301   need_version=no
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   soname_spec='${libname}${release}${shared_ext}$major'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   shlibpath_overrides_runpath=no
10306   hardcode_into_libs=yes
10307   dynamic_linker='ldqnx.so'
10308   ;;
10309
10310 openbsd*)
10311   version_type=sunos
10312   sys_lib_dlsearch_path_spec="/usr/lib"
10313   need_lib_prefix=no
10314   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10315   case $host_os in
10316     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10317     *)                          need_version=no  ;;
10318   esac
10319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10320   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10321   shlibpath_var=LD_LIBRARY_PATH
10322   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10323     case $host_os in
10324       openbsd2.[89] | openbsd2.[89].*)
10325         shlibpath_overrides_runpath=no
10326         ;;
10327       *)
10328         shlibpath_overrides_runpath=yes
10329         ;;
10330       esac
10331   else
10332     shlibpath_overrides_runpath=yes
10333   fi
10334   ;;
10335
10336 os2*)
10337   libname_spec='$name'
10338   shrext_cmds=".dll"
10339   need_lib_prefix=no
10340   library_names_spec='$libname${shared_ext} $libname.a'
10341   dynamic_linker='OS/2 ld.exe'
10342   shlibpath_var=LIBPATH
10343   ;;
10344
10345 osf3* | osf4* | osf5*)
10346   version_type=osf
10347   need_lib_prefix=no
10348   need_version=no
10349   soname_spec='${libname}${release}${shared_ext}$major'
10350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351   shlibpath_var=LD_LIBRARY_PATH
10352   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10353   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10354   ;;
10355
10356 rdos*)
10357   dynamic_linker=no
10358   ;;
10359
10360 solaris*)
10361   version_type=linux
10362   need_lib_prefix=no
10363   need_version=no
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   shlibpath_var=LD_LIBRARY_PATH
10367   shlibpath_overrides_runpath=yes
10368   hardcode_into_libs=yes
10369   # ldd complains unless libraries are executable
10370   postinstall_cmds='chmod +x $lib'
10371   ;;
10372
10373 sunos4*)
10374   version_type=sunos
10375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10377   shlibpath_var=LD_LIBRARY_PATH
10378   shlibpath_overrides_runpath=yes
10379   if test "$with_gnu_ld" = yes; then
10380     need_lib_prefix=no
10381   fi
10382   need_version=yes
10383   ;;
10384
10385 sysv4 | sysv4.3*)
10386   version_type=linux
10387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388   soname_spec='${libname}${release}${shared_ext}$major'
10389   shlibpath_var=LD_LIBRARY_PATH
10390   case $host_vendor in
10391     sni)
10392       shlibpath_overrides_runpath=no
10393       need_lib_prefix=no
10394       runpath_var=LD_RUN_PATH
10395       ;;
10396     siemens)
10397       need_lib_prefix=no
10398       ;;
10399     motorola)
10400       need_lib_prefix=no
10401       need_version=no
10402       shlibpath_overrides_runpath=no
10403       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10404       ;;
10405   esac
10406   ;;
10407
10408 sysv4*MP*)
10409   if test -d /usr/nec ;then
10410     version_type=linux
10411     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10412     soname_spec='$libname${shared_ext}.$major'
10413     shlibpath_var=LD_LIBRARY_PATH
10414   fi
10415   ;;
10416
10417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10418   version_type=freebsd-elf
10419   need_lib_prefix=no
10420   need_version=no
10421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10422   soname_spec='${libname}${release}${shared_ext}$major'
10423   shlibpath_var=LD_LIBRARY_PATH
10424   shlibpath_overrides_runpath=yes
10425   hardcode_into_libs=yes
10426   if test "$with_gnu_ld" = yes; then
10427     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10428   else
10429     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10430     case $host_os in
10431       sco3.2v5*)
10432         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10433         ;;
10434     esac
10435   fi
10436   sys_lib_dlsearch_path_spec='/usr/lib'
10437   ;;
10438
10439 tpf*)
10440   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10441   version_type=linux
10442   need_lib_prefix=no
10443   need_version=no
10444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445   shlibpath_var=LD_LIBRARY_PATH
10446   shlibpath_overrides_runpath=no
10447   hardcode_into_libs=yes
10448   ;;
10449
10450 uts4*)
10451   version_type=linux
10452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453   soname_spec='${libname}${release}${shared_ext}$major'
10454   shlibpath_var=LD_LIBRARY_PATH
10455   ;;
10456
10457 *)
10458   dynamic_linker=no
10459   ;;
10460 esac
10461 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10462 $as_echo "$dynamic_linker" >&6; }
10463 test "$dynamic_linker" = no && can_build_shared=no
10464
10465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10466 if test "$GCC" = yes; then
10467   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10468 fi
10469
10470 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10471   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10472 fi
10473 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10474   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10475 fi
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10564 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10565 hardcode_action=
10566 if test -n "$hardcode_libdir_flag_spec" ||
10567    test -n "$runpath_var" ||
10568    test "X$hardcode_automatic" = "Xyes" ; then
10569
10570   # We can hardcode non-existent directories.
10571   if test "$hardcode_direct" != no &&
10572      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10573      # have to relink, otherwise we might link with an installed library
10574      # when we should be linking with a yet-to-be-installed one
10575      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10576      test "$hardcode_minus_L" != no; then
10577     # Linking always hardcodes the temporary library directory.
10578     hardcode_action=relink
10579   else
10580     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10581     hardcode_action=immediate
10582   fi
10583 else
10584   # We cannot hardcode anything, or else we can only hardcode existing
10585   # directories.
10586   hardcode_action=unsupported
10587 fi
10588 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10589 $as_echo "$hardcode_action" >&6; }
10590
10591 if test "$hardcode_action" = relink ||
10592    test "$inherit_rpath" = yes; then
10593   # Fast installation is not supported
10594   enable_fast_install=no
10595 elif test "$shlibpath_overrides_runpath" = yes ||
10596      test "$enable_shared" = no; then
10597   # Fast installation is not necessary
10598   enable_fast_install=needless
10599 fi
10600
10601
10602
10603
10604
10605
10606   if test "x$enable_dlopen" != xyes; then
10607   enable_dlopen=unknown
10608   enable_dlopen_self=unknown
10609   enable_dlopen_self_static=unknown
10610 else
10611   lt_cv_dlopen=no
10612   lt_cv_dlopen_libs=
10613
10614   case $host_os in
10615   beos*)
10616     lt_cv_dlopen="load_add_on"
10617     lt_cv_dlopen_libs=
10618     lt_cv_dlopen_self=yes
10619     ;;
10620
10621   mingw* | pw32* | cegcc*)
10622     lt_cv_dlopen="LoadLibrary"
10623     lt_cv_dlopen_libs=
10624     ;;
10625
10626   cygwin*)
10627     lt_cv_dlopen="dlopen"
10628     lt_cv_dlopen_libs=
10629     ;;
10630
10631   darwin*)
10632   # if libdl is installed we need to link against it
10633     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10635 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10636   $as_echo_n "(cached) " >&6
10637 else
10638   ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-ldl  $LIBS"
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646
10647 /* Override any GCC internal prototype to avoid an error.
10648    Use char because int might match the return type of a GCC
10649    builtin and then its argument prototype would still apply.  */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 char dlopen ();
10654 int
10655 main ()
10656 {
10657 return dlopen ();
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666   *) ac_try_echo=$ac_try;;
10667 esac
10668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10669 $as_echo "$ac_try_echo") >&5
10670   (eval "$ac_link") 2>conftest.er1
10671   ac_status=$?
10672   grep -v '^ *+' conftest.er1 >conftest.err
10673   rm -f conftest.er1
10674   cat conftest.err >&5
10675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } && {
10677          test -z "$ac_c_werror_flag" ||
10678          test ! -s conftest.err
10679        } && test -s conftest$ac_exeext && {
10680          test "$cross_compiling" = yes ||
10681          $as_test_x conftest$ac_exeext
10682        }; then
10683   ac_cv_lib_dl_dlopen=yes
10684 else
10685   $as_echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688         ac_cv_lib_dl_dlopen=no
10689 fi
10690
10691 rm -rf conftest.dSYM
10692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10693       conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10695 fi
10696 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10697 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10698 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10700 else
10701
10702     lt_cv_dlopen="dyld"
10703     lt_cv_dlopen_libs=
10704     lt_cv_dlopen_self=yes
10705
10706 fi
10707
10708     ;;
10709
10710   *)
10711     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10712 $as_echo_n "checking for shl_load... " >&6; }
10713 if test "${ac_cv_func_shl_load+set}" = set; then
10714   $as_echo_n "(cached) " >&6
10715 else
10716   cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h.  */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h.  */
10722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10724 #define shl_load innocuous_shl_load
10725
10726 /* System header to define __stub macros and hopefully few prototypes,
10727     which can conflict with char shl_load (); below.
10728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729     <limits.h> exists even on freestanding compilers.  */
10730
10731 #ifdef __STDC__
10732 # include <limits.h>
10733 #else
10734 # include <assert.h>
10735 #endif
10736
10737 #undef shl_load
10738
10739 /* Override any GCC internal prototype to avoid an error.
10740    Use char because int might match the return type of a GCC
10741    builtin and then its argument prototype would still apply.  */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char shl_load ();
10746 /* The GNU C library defines this for functions which it implements
10747     to always fail with ENOSYS.  Some functions are actually named
10748     something starting with __ and the normal name is an alias.  */
10749 #if defined __stub_shl_load || defined __stub___shl_load
10750 choke me
10751 #endif
10752
10753 int
10754 main ()
10755 {
10756 return shl_load ();
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765   *) ac_try_echo=$ac_try;;
10766 esac
10767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10768 $as_echo "$ac_try_echo") >&5
10769   (eval "$ac_link") 2>conftest.er1
10770   ac_status=$?
10771   grep -v '^ *+' conftest.er1 >conftest.err
10772   rm -f conftest.er1
10773   cat conftest.err >&5
10774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } && {
10776          test -z "$ac_c_werror_flag" ||
10777          test ! -s conftest.err
10778        } && test -s conftest$ac_exeext && {
10779          test "$cross_compiling" = yes ||
10780          $as_test_x conftest$ac_exeext
10781        }; then
10782   ac_cv_func_shl_load=yes
10783 else
10784   $as_echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10786
10787         ac_cv_func_shl_load=no
10788 fi
10789
10790 rm -rf conftest.dSYM
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792       conftest$ac_exeext conftest.$ac_ext
10793 fi
10794 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10795 $as_echo "$ac_cv_func_shl_load" >&6; }
10796 if test "x$ac_cv_func_shl_load" = x""yes; then
10797   lt_cv_dlopen="shl_load"
10798 else
10799   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10800 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10801 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10802   $as_echo_n "(cached) " >&6
10803 else
10804   ac_check_lib_save_LIBS=$LIBS
10805 LIBS="-ldld  $LIBS"
10806 cat >conftest.$ac_ext <<_ACEOF
10807 /* confdefs.h.  */
10808 _ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h.  */
10812
10813 /* Override any GCC internal prototype to avoid an error.
10814    Use char because int might match the return type of a GCC
10815    builtin and then its argument prototype would still apply.  */
10816 #ifdef __cplusplus
10817 extern "C"
10818 #endif
10819 char shl_load ();
10820 int
10821 main ()
10822 {
10823 return shl_load ();
10824   ;
10825   return 0;
10826 }
10827 _ACEOF
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (ac_try="$ac_link"
10830 case "(($ac_try" in
10831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832   *) ac_try_echo=$ac_try;;
10833 esac
10834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10835 $as_echo "$ac_try_echo") >&5
10836   (eval "$ac_link") 2>conftest.er1
10837   ac_status=$?
10838   grep -v '^ *+' conftest.er1 >conftest.err
10839   rm -f conftest.er1
10840   cat conftest.err >&5
10841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } && {
10843          test -z "$ac_c_werror_flag" ||
10844          test ! -s conftest.err
10845        } && test -s conftest$ac_exeext && {
10846          test "$cross_compiling" = yes ||
10847          $as_test_x conftest$ac_exeext
10848        }; then
10849   ac_cv_lib_dld_shl_load=yes
10850 else
10851   $as_echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854         ac_cv_lib_dld_shl_load=no
10855 fi
10856
10857 rm -rf conftest.dSYM
10858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10859       conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10861 fi
10862 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10863 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10864 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10865   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10866 else
10867   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10868 $as_echo_n "checking for dlopen... " >&6; }
10869 if test "${ac_cv_func_dlopen+set}" = set; then
10870   $as_echo_n "(cached) " >&6
10871 else
10872   cat >conftest.$ac_ext <<_ACEOF
10873 /* confdefs.h.  */
10874 _ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h.  */
10878 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10880 #define dlopen innocuous_dlopen
10881
10882 /* System header to define __stub macros and hopefully few prototypes,
10883     which can conflict with char dlopen (); below.
10884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10885     <limits.h> exists even on freestanding compilers.  */
10886
10887 #ifdef __STDC__
10888 # include <limits.h>
10889 #else
10890 # include <assert.h>
10891 #endif
10892
10893 #undef dlopen
10894
10895 /* Override any GCC internal prototype to avoid an error.
10896    Use char because int might match the return type of a GCC
10897    builtin and then its argument prototype would still apply.  */
10898 #ifdef __cplusplus
10899 extern "C"
10900 #endif
10901 char dlopen ();
10902 /* The GNU C library defines this for functions which it implements
10903     to always fail with ENOSYS.  Some functions are actually named
10904     something starting with __ and the normal name is an alias.  */
10905 #if defined __stub_dlopen || defined __stub___dlopen
10906 choke me
10907 #endif
10908
10909 int
10910 main ()
10911 {
10912 return dlopen ();
10913   ;
10914   return 0;
10915 }
10916 _ACEOF
10917 rm -f conftest.$ac_objext conftest$ac_exeext
10918 if { (ac_try="$ac_link"
10919 case "(($ac_try" in
10920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921   *) ac_try_echo=$ac_try;;
10922 esac
10923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10924 $as_echo "$ac_try_echo") >&5
10925   (eval "$ac_link") 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } && {
10932          test -z "$ac_c_werror_flag" ||
10933          test ! -s conftest.err
10934        } && test -s conftest$ac_exeext && {
10935          test "$cross_compiling" = yes ||
10936          $as_test_x conftest$ac_exeext
10937        }; then
10938   ac_cv_func_dlopen=yes
10939 else
10940   $as_echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943         ac_cv_func_dlopen=no
10944 fi
10945
10946 rm -rf conftest.dSYM
10947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10948       conftest$ac_exeext conftest.$ac_ext
10949 fi
10950 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10951 $as_echo "$ac_cv_func_dlopen" >&6; }
10952 if test "x$ac_cv_func_dlopen" = x""yes; then
10953   lt_cv_dlopen="dlopen"
10954 else
10955   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10956 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10957 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10958   $as_echo_n "(cached) " >&6
10959 else
10960   ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-ldl  $LIBS"
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968
10969 /* Override any GCC internal prototype to avoid an error.
10970    Use char because int might match the return type of a GCC
10971    builtin and then its argument prototype would still apply.  */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char dlopen ();
10976 int
10977 main ()
10978 {
10979 return dlopen ();
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988   *) ac_try_echo=$ac_try;;
10989 esac
10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992   (eval "$ac_link") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } && {
10999          test -z "$ac_c_werror_flag" ||
11000          test ! -s conftest.err
11001        } && test -s conftest$ac_exeext && {
11002          test "$cross_compiling" = yes ||
11003          $as_test_x conftest$ac_exeext
11004        }; then
11005   ac_cv_lib_dl_dlopen=yes
11006 else
11007   $as_echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010         ac_cv_lib_dl_dlopen=no
11011 fi
11012
11013 rm -rf conftest.dSYM
11014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11015       conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11017 fi
11018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11020 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11022 else
11023   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11024 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11026   $as_echo_n "(cached) " >&6
11027 else
11028   ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-lsvld  $LIBS"
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036
11037 /* Override any GCC internal prototype to avoid an error.
11038    Use char because int might match the return type of a GCC
11039    builtin and then its argument prototype would still apply.  */
11040 #ifdef __cplusplus
11041 extern "C"
11042 #endif
11043 char dlopen ();
11044 int
11045 main ()
11046 {
11047 return dlopen ();
11048   ;
11049   return 0;
11050 }
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (ac_try="$ac_link"
11054 case "(($ac_try" in
11055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056   *) ac_try_echo=$ac_try;;
11057 esac
11058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11059 $as_echo "$ac_try_echo") >&5
11060   (eval "$ac_link") 2>conftest.er1
11061   ac_status=$?
11062   grep -v '^ *+' conftest.er1 >conftest.err
11063   rm -f conftest.er1
11064   cat conftest.err >&5
11065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); } && {
11067          test -z "$ac_c_werror_flag" ||
11068          test ! -s conftest.err
11069        } && test -s conftest$ac_exeext && {
11070          test "$cross_compiling" = yes ||
11071          $as_test_x conftest$ac_exeext
11072        }; then
11073   ac_cv_lib_svld_dlopen=yes
11074 else
11075   $as_echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078         ac_cv_lib_svld_dlopen=no
11079 fi
11080
11081 rm -rf conftest.dSYM
11082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11083       conftest$ac_exeext conftest.$ac_ext
11084 LIBS=$ac_check_lib_save_LIBS
11085 fi
11086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11087 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11088 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11089   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11090 else
11091   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11092 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11093 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11094   $as_echo_n "(cached) " >&6
11095 else
11096   ac_check_lib_save_LIBS=$LIBS
11097 LIBS="-ldld  $LIBS"
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h.  */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h.  */
11104
11105 /* Override any GCC internal prototype to avoid an error.
11106    Use char because int might match the return type of a GCC
11107    builtin and then its argument prototype would still apply.  */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char dld_link ();
11112 int
11113 main ()
11114 {
11115 return dld_link ();
11116   ;
11117   return 0;
11118 }
11119 _ACEOF
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124   *) ac_try_echo=$ac_try;;
11125 esac
11126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128   (eval "$ac_link") 2>conftest.er1
11129   ac_status=$?
11130   grep -v '^ *+' conftest.er1 >conftest.err
11131   rm -f conftest.er1
11132   cat conftest.err >&5
11133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } && {
11135          test -z "$ac_c_werror_flag" ||
11136          test ! -s conftest.err
11137        } && test -s conftest$ac_exeext && {
11138          test "$cross_compiling" = yes ||
11139          $as_test_x conftest$ac_exeext
11140        }; then
11141   ac_cv_lib_dld_dld_link=yes
11142 else
11143   $as_echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146         ac_cv_lib_dld_dld_link=no
11147 fi
11148
11149 rm -rf conftest.dSYM
11150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11151       conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11153 fi
11154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11155 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11156 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11157   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11158 fi
11159
11160
11161 fi
11162
11163
11164 fi
11165
11166
11167 fi
11168
11169
11170 fi
11171
11172
11173 fi
11174
11175     ;;
11176   esac
11177
11178   if test "x$lt_cv_dlopen" != xno; then
11179     enable_dlopen=yes
11180   else
11181     enable_dlopen=no
11182   fi
11183
11184   case $lt_cv_dlopen in
11185   dlopen)
11186     save_CPPFLAGS="$CPPFLAGS"
11187     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11188
11189     save_LDFLAGS="$LDFLAGS"
11190     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11191
11192     save_LIBS="$LIBS"
11193     LIBS="$lt_cv_dlopen_libs $LIBS"
11194
11195     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11196 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11197 if test "${lt_cv_dlopen_self+set}" = set; then
11198   $as_echo_n "(cached) " >&6
11199 else
11200           if test "$cross_compiling" = yes; then :
11201   lt_cv_dlopen_self=cross
11202 else
11203   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11204   lt_status=$lt_dlunknown
11205   cat > conftest.$ac_ext <<_LT_EOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11208
11209 #if HAVE_DLFCN_H
11210 #include <dlfcn.h>
11211 #endif
11212
11213 #include <stdio.h>
11214
11215 #ifdef RTLD_GLOBAL
11216 #  define LT_DLGLOBAL           RTLD_GLOBAL
11217 #else
11218 #  ifdef DL_GLOBAL
11219 #    define LT_DLGLOBAL         DL_GLOBAL
11220 #  else
11221 #    define LT_DLGLOBAL         0
11222 #  endif
11223 #endif
11224
11225 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11226    find out it does not work in some platform. */
11227 #ifndef LT_DLLAZY_OR_NOW
11228 #  ifdef RTLD_LAZY
11229 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11230 #  else
11231 #    ifdef DL_LAZY
11232 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11233 #    else
11234 #      ifdef RTLD_NOW
11235 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11236 #      else
11237 #        ifdef DL_NOW
11238 #          define LT_DLLAZY_OR_NOW      DL_NOW
11239 #        else
11240 #          define LT_DLLAZY_OR_NOW      0
11241 #        endif
11242 #      endif
11243 #    endif
11244 #  endif
11245 #endif
11246
11247 void fnord() { int i=42;}
11248 int main ()
11249 {
11250   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11251   int status = $lt_dlunknown;
11252
11253   if (self)
11254     {
11255       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11256       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11257       /* dlclose (self); */
11258     }
11259   else
11260     puts (dlerror ());
11261
11262   return status;
11263 }
11264 _LT_EOF
11265   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11266   (eval $ac_link) 2>&5
11267   ac_status=$?
11268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11270     (./conftest; exit; ) >&5 2>/dev/null
11271     lt_status=$?
11272     case x$lt_status in
11273       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11274       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11275       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11276     esac
11277   else :
11278     # compilation failed
11279     lt_cv_dlopen_self=no
11280   fi
11281 fi
11282 rm -fr conftest*
11283
11284
11285 fi
11286 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11287 $as_echo "$lt_cv_dlopen_self" >&6; }
11288
11289     if test "x$lt_cv_dlopen_self" = xyes; then
11290       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11291       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11292 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11293 if test "${lt_cv_dlopen_self_static+set}" = set; then
11294   $as_echo_n "(cached) " >&6
11295 else
11296           if test "$cross_compiling" = yes; then :
11297   lt_cv_dlopen_self_static=cross
11298 else
11299   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11300   lt_status=$lt_dlunknown
11301   cat > conftest.$ac_ext <<_LT_EOF
11302 #line 11302 "configure"
11303 #include "confdefs.h"
11304
11305 #if HAVE_DLFCN_H
11306 #include <dlfcn.h>
11307 #endif
11308
11309 #include <stdio.h>
11310
11311 #ifdef RTLD_GLOBAL
11312 #  define LT_DLGLOBAL           RTLD_GLOBAL
11313 #else
11314 #  ifdef DL_GLOBAL
11315 #    define LT_DLGLOBAL         DL_GLOBAL
11316 #  else
11317 #    define LT_DLGLOBAL         0
11318 #  endif
11319 #endif
11320
11321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11322    find out it does not work in some platform. */
11323 #ifndef LT_DLLAZY_OR_NOW
11324 #  ifdef RTLD_LAZY
11325 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11326 #  else
11327 #    ifdef DL_LAZY
11328 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11329 #    else
11330 #      ifdef RTLD_NOW
11331 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11332 #      else
11333 #        ifdef DL_NOW
11334 #          define LT_DLLAZY_OR_NOW      DL_NOW
11335 #        else
11336 #          define LT_DLLAZY_OR_NOW      0
11337 #        endif
11338 #      endif
11339 #    endif
11340 #  endif
11341 #endif
11342
11343 void fnord() { int i=42;}
11344 int main ()
11345 {
11346   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11347   int status = $lt_dlunknown;
11348
11349   if (self)
11350     {
11351       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11352       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11353       /* dlclose (self); */
11354     }
11355   else
11356     puts (dlerror ());
11357
11358   return status;
11359 }
11360 _LT_EOF
11361   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11362   (eval $ac_link) 2>&5
11363   ac_status=$?
11364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11366     (./conftest; exit; ) >&5 2>/dev/null
11367     lt_status=$?
11368     case x$lt_status in
11369       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11370       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11371       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11372     esac
11373   else :
11374     # compilation failed
11375     lt_cv_dlopen_self_static=no
11376   fi
11377 fi
11378 rm -fr conftest*
11379
11380
11381 fi
11382 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11383 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11384     fi
11385
11386     CPPFLAGS="$save_CPPFLAGS"
11387     LDFLAGS="$save_LDFLAGS"
11388     LIBS="$save_LIBS"
11389     ;;
11390   esac
11391
11392   case $lt_cv_dlopen_self in
11393   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11394   *) enable_dlopen_self=unknown ;;
11395   esac
11396
11397   case $lt_cv_dlopen_self_static in
11398   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11399   *) enable_dlopen_self_static=unknown ;;
11400   esac
11401 fi
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419 striplib=
11420 old_striplib=
11421 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11422 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11423 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11424   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11425   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11426   { $as_echo "$as_me:$LINENO: result: yes" >&5
11427 $as_echo "yes" >&6; }
11428 else
11429 # FIXME - insert some real tests, host_os isn't really good enough
11430   case $host_os in
11431   darwin*)
11432     if test -n "$STRIP" ; then
11433       striplib="$STRIP -x"
11434       old_striplib="$STRIP -S"
11435       { $as_echo "$as_me:$LINENO: result: yes" >&5
11436 $as_echo "yes" >&6; }
11437     else
11438       { $as_echo "$as_me:$LINENO: result: no" >&5
11439 $as_echo "no" >&6; }
11440     fi
11441     ;;
11442   *)
11443     { $as_echo "$as_me:$LINENO: result: no" >&5
11444 $as_echo "no" >&6; }
11445     ;;
11446   esac
11447 fi
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460   # Report which library types will actually be built
11461   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11462 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11463   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11464 $as_echo "$can_build_shared" >&6; }
11465
11466   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11467 $as_echo_n "checking whether to build shared libraries... " >&6; }
11468   test "$can_build_shared" = "no" && enable_shared=no
11469
11470   # On AIX, shared libraries and static libraries use the same namespace, and
11471   # are all built from PIC.
11472   case $host_os in
11473   aix3*)
11474     test "$enable_shared" = yes && enable_static=no
11475     if test -n "$RANLIB"; then
11476       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11477       postinstall_cmds='$RANLIB $lib'
11478     fi
11479     ;;
11480
11481   aix[4-9]*)
11482     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11483       test "$enable_shared" = yes && enable_static=no
11484     fi
11485     ;;
11486   esac
11487   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11488 $as_echo "$enable_shared" >&6; }
11489
11490   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11491 $as_echo_n "checking whether to build static libraries... " >&6; }
11492   # Make sure either enable_shared or enable_static is yes.
11493   test "$enable_shared" = yes || enable_static=yes
11494   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11495 $as_echo "$enable_static" >&6; }
11496
11497
11498
11499
11500 fi
11501 ac_ext=c
11502 ac_cpp='$CPP $CPPFLAGS'
11503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11506
11507 CC="$lt_save_CC"
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521         ac_config_commands="$ac_config_commands libtool"
11522
11523
11524
11525
11526 # Only expand once:
11527
11528
11529 # By default we simply use the C compiler to build assembly code.
11530
11531 test "${CCAS+set}" = set || CCAS=$CC
11532 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11533
11534
11535
11536 depcc="$CCAS"   am_compiler_list=
11537
11538 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11539 $as_echo_n "checking dependency style of $depcc... " >&6; }
11540 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11541   $as_echo_n "(cached) " >&6
11542 else
11543   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11544   # We make a subdir and do the tests there.  Otherwise we can end up
11545   # making bogus files that we don't know about and never remove.  For
11546   # instance it was reported that on HP-UX the gcc test will end up
11547   # making a dummy file named `D' -- because `-MD' means `put the output
11548   # in D'.
11549   mkdir conftest.dir
11550   # Copy depcomp to subdir because otherwise we won't find it if we're
11551   # using a relative directory.
11552   cp "$am_depcomp" conftest.dir
11553   cd conftest.dir
11554   # We will build objects and dependencies in a subdirectory because
11555   # it helps to detect inapplicable dependency modes.  For instance
11556   # both Tru64's cc and ICC support -MD to output dependencies as a
11557   # side effect of compilation, but ICC will put the dependencies in
11558   # the current directory while Tru64 will put them in the object
11559   # directory.
11560   mkdir sub
11561
11562   am_cv_CCAS_dependencies_compiler_type=none
11563   if test "$am_compiler_list" = ""; then
11564      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11565   fi
11566   am__universal=false
11567
11568
11569   for depmode in $am_compiler_list; do
11570     # Setup a source with many dependencies, because some compilers
11571     # like to wrap large dependency lists on column 80 (with \), and
11572     # we should not choose a depcomp mode which is confused by this.
11573     #
11574     # We need to recreate these files for each test, as the compiler may
11575     # overwrite some of them when testing with obscure command lines.
11576     # This happens at least with the AIX C compiler.
11577     : > sub/conftest.c
11578     for i in 1 2 3 4 5 6; do
11579       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11580       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11581       # Solaris 8's {/usr,}/bin/sh.
11582       touch sub/conftst$i.h
11583     done
11584     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11585
11586     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11587     # mode.  It turns out that the SunPro C++ compiler does not properly
11588     # handle `-M -o', and we need to detect this.  Also, some Intel
11589     # versions had trouble with output in subdirs
11590     am__obj=sub/conftest.${OBJEXT-o}
11591     am__minus_obj="-o $am__obj"
11592     case $depmode in
11593     gcc)
11594       # This depmode causes a compiler race in universal mode.
11595       test "$am__universal" = false || continue
11596       ;;
11597     nosideeffect)
11598       # after this tag, mechanisms are not by side-effect, so they'll
11599       # only be used when explicitly requested
11600       if test "x$enable_dependency_tracking" = xyes; then
11601         continue
11602       else
11603         break
11604       fi
11605       ;;
11606     msvisualcpp | msvcmsys)
11607       # This compiler won't grok `-c -o', but also, the minuso test has
11608       # not run yet.  These depmodes are late enough in the game, and
11609       # so weak that their functioning should not be impacted.
11610       am__obj=conftest.${OBJEXT-o}
11611       am__minus_obj=
11612       ;;
11613     none) break ;;
11614     esac
11615     if depmode=$depmode \
11616        source=sub/conftest.c object=$am__obj \
11617        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11618        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11619          >/dev/null 2>conftest.err &&
11620        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11621        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11622        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11623        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11624       # icc doesn't choke on unknown options, it will just issue warnings
11625       # or remarks (even with -Werror).  So we grep stderr for any message
11626       # that says an option was ignored or not supported.
11627       # When given -MP, icc 7.0 and 7.1 complain thusly:
11628       #   icc: Command line warning: ignoring option '-M'; no argument required
11629       # The diagnosis changed in icc 8.0:
11630       #   icc: Command line remark: option '-MP' not supported
11631       if (grep 'ignoring option' conftest.err ||
11632           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11633         am_cv_CCAS_dependencies_compiler_type=$depmode
11634         break
11635       fi
11636     fi
11637   done
11638
11639   cd ..
11640   rm -rf conftest.dir
11641 else
11642   am_cv_CCAS_dependencies_compiler_type=none
11643 fi
11644
11645 fi
11646 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11647 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11648 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11649
11650  if
11651   test "x$enable_dependency_tracking" != xno \
11652   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11653   am__fastdepCCAS_TRUE=
11654   am__fastdepCCAS_FALSE='#'
11655 else
11656   am__fastdepCCAS_TRUE='#'
11657   am__fastdepCCAS_FALSE=
11658 fi
11659
11660
11661
11662
11663         { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11664 $as_echo_n "checking zfs author... " >&6; }
11665         { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11666 $as_echo "$ZFS_META_AUTHOR" >&6; }
11667
11668         { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11669 $as_echo_n "checking zfs license... " >&6; }
11670         { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11671 $as_echo "$ZFS_META_LICENSE" >&6; }
11672
11673
11674
11675         { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11676 $as_echo_n "checking linux distribution... " >&6; }
11677         if test -f /etc/redhat-release ; then
11678                 VENDOR=redhat ;
11679         elif test -f /etc/fedora-release ; then
11680                 VENDOR=fedora ;
11681         elif test -f /etc/gentoo-release ; then
11682                 VENDOR=gentoo ;
11683         elif test -f /etc/debian_version ; then
11684                 VENDOR=debian ;
11685         elif test -f /etc/SuSE-release ; then
11686                 VENDOR=sles ;
11687         elif test -f /etc/slackware-version ; then
11688                 VENDOR=slackware ;
11689         elif test -f /etc/arch-release ; then
11690                 VENDOR=arch ;
11691         elif test -f /etc/lsb-release ; then
11692                 VENDOR=ubuntu ;
11693         elif test -f /etc/lunar.release ; then
11694                 VENDOR=lunar ;
11695         else
11696                 VENDOR= ;
11697         fi
11698         { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11699 $as_echo "$VENDOR" >&6; }
11700
11701
11702         { $as_echo "$as_me:$LINENO: checking default package type" >&5
11703 $as_echo_n "checking default package type... " >&6; }
11704         case "$VENDOR" in
11705                 redhat)     DEFAULT_PACKAGE=rpm ;;
11706                 fedora)     DEFAULT_PACKAGE=rpm ;;
11707                 ubuntu)     DEFAULT_PACKAGE=deb ;;
11708                 debian)     DEFAULT_PACKAGE=deb ;;
11709                 sles)       DEFAULT_PACKAGE=rpm ;;
11710                 slackware)  DEFAULT_PACKAGE=tgz ;;
11711                 gentoo)     DEFAULT_PACKAGE=tgz ;;
11712                 lunar)      DEFAULT_PACKAGE=tgz ;;
11713                 arch)       DEFAULT_PACKAGE=arch;;
11714                 *)          DEFAULT_PACKAGE=rpm ;;
11715         esac
11716
11717         { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11718 $as_echo "$DEFAULT_PACKAGE" >&6; }
11719
11720
11721         { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11722 $as_echo_n "checking default init directory... " >&6; }
11723         case "$VENDOR" in
11724                 arch)       DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11725                 *)          DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11726         esac
11727
11728         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11729 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11730
11731
11732         { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11733 $as_echo_n "checking default init script type... " >&6; }
11734         case "$VENDOR" in
11735                 redhat)     DEFAULT_INIT_SCRIPT=redhat ;;
11736                 fedora)     DEFAULT_INIT_SCRIPT=fedora ;;
11737                 ubuntu)     DEFAULT_INIT_SCRIPT=lsb ;;
11738                 debian)     DEFAULT_INIT_SCRIPT=lsb ;;
11739                 sles)       DEFAULT_INIT_SCRIPT=lsb ;;
11740                 slackware)  DEFAULT_INIT_SCRIPT=lsb ;;
11741                 gentoo)     DEFAULT_INIT_SCRIPT=gentoo ;;
11742                 lunar)      DEFAULT_INIT_SCRIPT=lunar ;;
11743                 arch)       DEFAULT_INIT_SCRIPT=arch ;;
11744                 *)          DEFAULT_INIT_SCRIPT=lsb ;;
11745         esac
11746
11747         { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11748 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11749
11750
11751
11752         RPM=rpm
11753         RPMBUILD=rpmbuild
11754
11755         { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11756 $as_echo_n "checking whether $RPM is available... " >&6; }
11757         if tmp=$($RPM --version 2>/dev/null); then
11758
11759                 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11760                 HAVE_RPM=yes
11761                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11762 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11763
11764 else
11765
11766                 HAVE_RPM=no
11767                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11768 $as_echo "$HAVE_RPM" >&6; }
11769
11770 fi
11771
11772
11773         { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11774 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11775         if tmp=$($RPMBUILD --version 2>/dev/null); then
11776
11777                 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11778                 HAVE_RPMBUILD=yes
11779                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11780 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11781
11782 else
11783
11784                 HAVE_RPMBUILD=no
11785                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11786 $as_echo "$HAVE_RPMBUILD" >&6; }
11787
11788 fi
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800         DPKG=dpkg
11801         DPKGBUILD=dpkg-buildpackage
11802
11803         { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11804 $as_echo_n "checking whether $DPKG is available... " >&6; }
11805         if tmp=$($DPKG --version 2>/dev/null); then
11806
11807                 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11808                 HAVE_DPKG=yes
11809                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11810 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11811
11812 else
11813
11814                 HAVE_DPKG=no
11815                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11816 $as_echo "$HAVE_DPKG" >&6; }
11817
11818 fi
11819
11820
11821         { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11822 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11823         if tmp=$($DPKGBUILD --version 2>/dev/null); then
11824
11825                 DPKGBUILD_VERSION=$(echo $tmp | \
11826                     $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11827                 HAVE_DPKGBUILD=yes
11828                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11829 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11830
11831 else
11832
11833                 HAVE_DPKGBUILD=no
11834                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11835 $as_echo "$HAVE_DPKGBUILD" >&6; }
11836
11837 fi
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849         ALIEN=alien
11850
11851         { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11852 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11853         if tmp=$($ALIEN --version 2>/dev/null); then
11854
11855                 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11856                 HAVE_ALIEN=yes
11857                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11858 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11859
11860 else
11861
11862                 HAVE_ALIEN=no
11863                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11864 $as_echo "$HAVE_ALIEN" >&6; }
11865
11866 fi
11867
11868
11869
11870
11871
11872
11873
11874         if test "$VENDOR" = "arch"; then
11875
11876         PACMAN=pacman
11877         MAKEPKG=makepkg
11878
11879         { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11880 $as_echo_n "checking whether $PACMAN is available... " >&6; }
11881         tmp=$($PACMAN --version 2>/dev/null)
11882         if test -n "$tmp"; then
11883
11884                 PACMAN_VERSION=$(echo $tmp |
11885                                  $AWK '/Pacman/ { print $3 }' |
11886                                  $SED 's/^v//')
11887                 HAVE_PACMAN=yes
11888                 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11889 $as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11890
11891 else
11892
11893                 HAVE_PACMAN=no
11894                 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11895 $as_echo "$HAVE_PACMAN" >&6; }
11896
11897 fi
11898
11899
11900         { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11901 $as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11902         tmp=$($MAKEPKG --version 2>/dev/null)
11903         if test -n "$tmp"; then
11904
11905                 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11906                 HAVE_MAKEPKG=yes
11907                 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11908 $as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11909
11910 else
11911
11912                 HAVE_MAKEPKG=no
11913                 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11914 $as_echo "$HAVE_MAKEPKG" >&6; }
11915
11916 fi
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927 fi
11928
11929
11930
11931         TARGET_ASM_DIR=asm-generic
11932
11933
11934         ZFS_CONFIG=all
11935
11936 # Check whether --with-config was given.
11937 if test "${with_config+set}" = set; then
11938   withval=$with_config; ZFS_CONFIG="$withval"
11939 fi
11940
11941
11942         { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11943 $as_echo_n "checking zfs config... " >&6; }
11944         { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11945 $as_echo "$ZFS_CONFIG" >&6; };
11946
11947
11948
11949
11950         { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11951 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11952
11953         saved_flags="$CFLAGS"
11954         CFLAGS="$CFLAGS -Wunused-but-set-variable"
11955
11956         if test "$cross_compiling" = yes; then
11957   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11959 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11960 See \`config.log' for more details." >&5
11961 $as_echo "$as_me: error: cannot run test program while cross compiling
11962 See \`config.log' for more details." >&2;}
11963    { (exit 1); exit 1; }; }; }
11964 else
11965   cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h.  */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h.  */
11971
11972 int
11973 main ()
11974 {
11975
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest$ac_exeext
11981 if { (ac_try="$ac_link"
11982 case "(($ac_try" in
11983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984   *) ac_try_echo=$ac_try;;
11985 esac
11986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11987 $as_echo "$ac_try_echo") >&5
11988   (eval "$ac_link") 2>&5
11989   ac_status=$?
11990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11992   { (case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998   (eval "$ac_try") 2>&5
11999   ac_status=$?
12000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); }; }; then
12002
12003                 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
12004                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12005 $as_echo "yes" >&6; }
12006
12007 else
12008   $as_echo "$as_me: program exited with status $ac_status" >&5
12009 $as_echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 ( exit $ac_status )
12013
12014                 NO_UNUSED_BUT_SET_VARIABLE=
12015                 { $as_echo "$as_me:$LINENO: result: no" >&5
12016 $as_echo "no" >&6; }
12017
12018 fi
12019 rm -rf conftest.dSYM
12020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12021 fi
12022
12023
12024
12025         CFLAGS="$saved_flags"
12026
12027
12028
12029
12030         case "$ZFS_CONFIG" in
12031                 kernel)
12032
12033
12034 # Check whether --with-linux was given.
12035 if test "${with_linux+set}" = set; then
12036   withval=$with_linux; kernelsrc="$withval"
12037 fi
12038
12039
12040
12041 # Check whether --with-linux-obj was given.
12042 if test "${with_linux_obj+set}" = set; then
12043   withval=$with_linux_obj; kernelbuild="$withval"
12044 fi
12045
12046
12047         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12048 $as_echo_n "checking kernel source directory... " >&6; }
12049         if test -z "$kernelsrc"; then
12050
12051                 if test -e "/lib/modules/$(uname -r)/source"; then
12052
12053                         headersdir="/lib/modules/$(uname -r)/source"
12054                         sourcelink=$(readlink -f "$headersdir")
12055
12056 elif test -e "/lib/modules/$(uname -r)/build"; then
12057
12058                         headersdir="/lib/modules/$(uname -r)/build"
12059                         sourcelink=$(readlink -f "$headersdir")
12060
12061 else
12062
12063                         sourcelink=$(ls -1d /usr/src/kernels/* \
12064                                      /usr/src/linux-* \
12065                                      2>/dev/null | grep -v obj | tail -1)
12066
12067 fi
12068
12069
12070                 if test -n "$sourcelink" && test -e ${sourcelink}; then
12071
12072                         kernelsrc=`readlink -f ${sourcelink}`
12073
12074 else
12075
12076                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12077 $as_echo "Not found" >&6; }
12078                         { { $as_echo "$as_me:$LINENO: error:
12079         *** Please make sure the kernel devel package for your distribution
12080         *** is installed then try again.  If that fails you can specify the
12081         *** location of the kernel source with the '--with-linux=PATH' option." >&5
12082 $as_echo "$as_me: error:
12083         *** Please make sure the kernel devel package for your distribution
12084         *** is installed then try again.  If that fails you can specify the
12085         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12086    { (exit 1); exit 1; }; }
12087
12088 fi
12089
12090
12091 else
12092
12093                 if test "$kernelsrc" = "NONE"; then
12094
12095                         kernsrcver=NONE
12096
12097 fi
12098
12099
12100 fi
12101
12102
12103         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12104 $as_echo "$kernelsrc" >&6; }
12105         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12106 $as_echo_n "checking kernel build directory... " >&6; }
12107         if test -z "$kernelbuild"; then
12108
12109                 if test -e "/lib/modules/$(uname -r)/build"; then
12110
12111                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
12112
12113 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12114
12115                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12116
12117 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12118
12119                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
12120
12121 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12122
12123                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
12124
12125 else
12126
12127                         kernelbuild=${kernelsrc}
12128
12129 fi
12130
12131
12132 fi
12133
12134         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12135 $as_echo "$kernelbuild" >&6; }
12136
12137         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12138 $as_echo_n "checking kernel source version... " >&6; }
12139         utsrelease1=$kernelbuild/include/linux/version.h
12140         utsrelease2=$kernelbuild/include/linux/utsrelease.h
12141         utsrelease3=$kernelbuild/include/generated/utsrelease.h
12142         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
12143
12144                 utsrelease=linux/version.h
12145
12146 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12147
12148                 utsrelease=linux/utsrelease.h
12149
12150 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12151
12152                 utsrelease=generated/utsrelease.h
12153
12154 fi
12155
12156
12157         if test "$utsrelease"; then
12158
12159                 kernsrcver=`(echo "#include <$utsrelease>";
12160                              echo "kernsrcver=UTS_RELEASE") |
12161                              cpp -I $kernelbuild/include |
12162                              grep "^kernsrcver=" | cut -d \" -f 2`
12163
12164                 if test -z "$kernsrcver"; then
12165
12166                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12167 $as_echo "Not found" >&6; }
12168                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12169 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12170    { (exit 1); exit 1; }; }
12171
12172 fi
12173
12174
12175 else
12176
12177                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12178 $as_echo "Not found" >&6; }
12179                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12180 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12181    { (exit 1); exit 1; }; }
12182
12183 fi
12184
12185
12186         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12187 $as_echo "$kernsrcver" >&6; }
12188
12189         LINUX=${kernelsrc}
12190         LINUX_OBJ=${kernelbuild}
12191         LINUX_VERSION=${kernsrcver}
12192
12193
12194
12195
12196
12197
12198         modpost=$LINUX/scripts/Makefile.modpost
12199         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12200 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12201         if test -f "$modpost"; then
12202
12203                 if grep -q Modules.symvers $modpost; then
12204
12205                         LINUX_SYMBOLS=Modules.symvers
12206
12207 else
12208
12209                         LINUX_SYMBOLS=Module.symvers
12210
12211 fi
12212
12213
12214                 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12215
12216                         { { $as_echo "$as_me:$LINENO: error:
12217         *** Please make sure the kernel devel package for your distribution
12218         *** is installed.  If your building with a custom kernel make sure the
12219         *** kernel is configured, built, and the '--with-linux=PATH' configure
12220         *** option refers to the location of the kernel source." >&5
12221 $as_echo "$as_me: error:
12222         *** Please make sure the kernel devel package for your distribution
12223         *** is installed.  If your building with a custom kernel make sure the
12224         *** kernel is configured, built, and the '--with-linux=PATH' configure
12225         *** option refers to the location of the kernel source." >&2;}
12226    { (exit 1); exit 1; }; }
12227
12228 fi
12229
12230
12231 else
12232
12233                 LINUX_SYMBOLS=NONE
12234
12235 fi
12236
12237         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12238 $as_echo "$LINUX_SYMBOLS" >&6; }
12239
12240
12241
12242
12243
12244 # Check whether --with-spl was given.
12245 if test "${with_spl+set}" = set; then
12246   withval=$with_spl; splsrc="$withval"
12247 fi
12248
12249
12250
12251 # Check whether --with-spl-obj was given.
12252 if test "${with_spl_obj+set}" = set; then
12253   withval=$with_spl_obj; splbuild="$withval"
12254 fi
12255
12256
12257
12258         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12259 $as_echo_n "checking spl source directory... " >&6; }
12260         if test -z "$splsrc"; then
12261
12262                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12263                             2>/dev/null | tail -1`
12264
12265                 if test -z "$sourcelink" || test ! -e $sourcelink; then
12266
12267                         sourcelink=../spl
12268
12269 fi
12270
12271
12272                 if test -e $sourcelink; then
12273
12274                         splsrc=`readlink -f ${sourcelink}`
12275
12276 else
12277
12278                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12279 $as_echo "Not found" >&6; }
12280                         { { $as_echo "$as_me:$LINENO: error:
12281         *** Please make sure the spl devel package for your distribution
12282         *** is installed then try again.  If that fails you can specify the
12283         *** location of the spl source with the '--with-spl=PATH' option." >&5
12284 $as_echo "$as_me: error:
12285         *** Please make sure the spl devel package for your distribution
12286         *** is installed then try again.  If that fails you can specify the
12287         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12288    { (exit 1); exit 1; }; }
12289
12290 fi
12291
12292
12293 else
12294
12295                 if test "$splsrc" = "NONE"; then
12296
12297                         splbuild=NONE
12298                         splsrcver=NONE
12299
12300 fi
12301
12302
12303 fi
12304
12305
12306         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12307 $as_echo "$splsrc" >&6; }
12308         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12309 $as_echo_n "checking spl build directory... " >&6; }
12310         if test -z "$splbuild"; then
12311
12312                 splbuild=${splsrc}
12313
12314 fi
12315
12316         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12317 $as_echo "$splbuild" >&6; }
12318
12319         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12320 $as_echo_n "checking spl source version... " >&6; }
12321         if test -r $splbuild/spl_config.h &&
12322                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12323
12324
12325                 splsrcver=`(echo "#include <spl_config.h>";
12326                             echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12327                             cpp -I $splbuild |
12328                             grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12329
12330 fi
12331
12332
12333         if test -z "$splsrcver"; then
12334
12335                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12336 $as_echo "Not found" >&6; }
12337                 { { $as_echo "$as_me:$LINENO: error:
12338         *** Cannot determine the version of the spl source.
12339         *** Please prepare the spl source before running this script" >&5
12340 $as_echo "$as_me: error:
12341         *** Cannot determine the version of the spl source.
12342         *** Please prepare the spl source before running this script" >&2;}
12343    { (exit 1); exit 1; }; }
12344
12345 fi
12346
12347
12348         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12349 $as_echo "$splsrcver" >&6; }
12350
12351         SPL=${splsrc}
12352         SPL_OBJ=${splbuild}
12353         SPL_VERSION=${splsrcver}
12354
12355
12356
12357
12358
12359
12360         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12361 $as_echo_n "checking spl file name for module symbols... " >&6; }
12362         if test -r $SPL_OBJ/Module.symvers; then
12363
12364                 SPL_SYMBOLS=Module.symvers
12365
12366 elif test -r $SPL_OBJ/Modules.symvers; then
12367
12368                 SPL_SYMBOLS=Modules.symvers
12369
12370 elif test -r $SPL_OBJ/module/Module.symvers; then
12371
12372                 SPL_SYMBOLS=Module.symvers
12373
12374 elif test -r $SPL_OBJ/module/Modules.symvers; then
12375
12376                 SPL_SYMBOLS=Modules.symvers
12377
12378 else
12379
12380                 SPL_SYMBOLS=$LINUX_SYMBOLS
12381
12382 fi
12383
12384
12385         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12386 $as_echo "$SPL_SYMBOLS" >&6; }
12387
12388
12389
12390
12391
12392         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12393 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12394
12395
12396 cat confdefs.h - <<_ACEOF >conftest.c
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402
12403
12404                 #include <linux/module.h>
12405
12406 int
12407 main (void)
12408 {
12409
12410                 #ifndef CONFIG_PREEMPT
12411                 #error CONFIG_PREEMPT not #defined
12412                 #endif
12413
12414   ;
12415   return 0;
12416 }
12417
12418 _ACEOF
12419
12420
12421         rm -Rf build && mkdir -p build
12422         echo "obj-m := conftest.o" >build/Makefile
12423         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'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430   (eval $ac_try) 2>&5
12431   ac_status=$?
12432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; }; then
12434
12435                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12436 $as_echo "yes" >&6; }
12437                 { { $as_echo "$as_me:$LINENO: error:
12438         *** Kernel built with CONFIG_PREEMPT which is not supported.
12439         *** You must rebuild your kernel without this option." >&5
12440 $as_echo "$as_me: error:
12441         *** Kernel built with CONFIG_PREEMPT which is not supported.
12442         *** You must rebuild your kernel without this option." >&2;}
12443    { (exit 1); exit 1; }; }
12444
12445 else
12446   $as_echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449                 { $as_echo "$as_me:$LINENO: result: no" >&5
12450 $as_echo "no" >&6; }
12451
12452
12453
12454
12455 fi
12456
12457         rm -Rf build
12458
12459
12460
12461
12462         if test "$ZFS_META_LICENSE" = CDDL; then
12463
12464                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12465 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12466
12467
12468 cat confdefs.h - <<_ACEOF >conftest.c
12469 /* confdefs.h.  */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h.  */
12474
12475
12476                 #include <linux/module.h>
12477
12478 int
12479 main (void)
12480 {
12481
12482                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12483                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12484                 #endif
12485
12486   ;
12487   return 0;
12488 }
12489
12490 _ACEOF
12491
12492
12493         rm -Rf build && mkdir -p build
12494         echo "obj-m := conftest.o" >build/Makefile
12495         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'
12496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497   (eval $ac_try) 2>&5
12498   ac_status=$?
12499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502   (eval $ac_try) 2>&5
12503   ac_status=$?
12504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); }; }; then
12506
12507                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12508 $as_echo "yes" >&6; }
12509                 { { $as_echo "$as_me:$LINENO: error:
12510         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12511         *** incompatible with the CDDL license.  You must rebuild
12512         *** your kernel without this option." >&5
12513 $as_echo "$as_me: error:
12514         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12515         *** incompatible with the CDDL license.  You must rebuild
12516         *** your kernel without this option." >&2;}
12517    { (exit 1); exit 1; }; }
12518
12519 else
12520   $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523                 { $as_echo "$as_me:$LINENO: result: no" >&5
12524 $as_echo "no" >&6; }
12525
12526
12527
12528
12529 fi
12530
12531         rm -Rf build
12532
12533
12534
12535
12536 fi
12537
12538
12539         if test "$ZFS_META_LICENSE" = GPL; then
12540
12541
12542 cat >>confdefs.h <<\_ACEOF
12543 #define HAVE_GPL_ONLY_SYMBOLS 1
12544 _ACEOF
12545
12546
12547 fi
12548
12549
12550
12551         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12552 $as_echo_n "checking block device operation prototypes... " >&6; }
12553         tmp_flags="$EXTRA_KCFLAGS"
12554         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12555
12556
12557 cat confdefs.h - <<_ACEOF >conftest.c
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563
12564
12565                 #include <linux/blkdev.h>
12566
12567 int
12568 main (void)
12569 {
12570
12571                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12572                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12573                 int (*blk_ioctl) (struct block_device *, fmode_t,
12574                                   unsigned, unsigned long) = NULL;
12575                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12576                                          unsigned, unsigned long) = NULL;
12577                 struct block_device_operations blk_ops = {
12578                         .open           = blk_open,
12579                         .release        = blk_release,
12580                         .ioctl          = blk_ioctl,
12581                         .compat_ioctl   = blk_compat_ioctl,
12582                 };
12583
12584                 blk_ops.open(NULL, 0);
12585                 blk_ops.release(NULL, 0);
12586                 blk_ops.ioctl(NULL, 0, 0, 0);
12587                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12588
12589   ;
12590   return 0;
12591 }
12592
12593 _ACEOF
12594
12595
12596         rm -Rf build && mkdir -p build
12597         echo "obj-m := conftest.o" >build/Makefile
12598         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'
12599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600   (eval $ac_try) 2>&5
12601   ac_status=$?
12602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
12609
12610                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12611 $as_echo "struct block_device" >&6; }
12612
12613 cat >>confdefs.h <<\_ACEOF
12614 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12615 _ACEOF
12616
12617
12618 else
12619   $as_echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12623 $as_echo "struct inode" >&6; }
12624
12625
12626
12627 fi
12628
12629         rm -Rf build
12630
12631
12632         EXTRA_KCFLAGS="$tmp_flags"
12633
12634         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12635 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12636
12637
12638 cat confdefs.h - <<_ACEOF >conftest.c
12639 /* confdefs.h.  */
12640 _ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h.  */
12644
12645
12646                 #include <linux/types.h>
12647
12648 int
12649 main (void)
12650 {
12651
12652                 fmode_t *ptr __attribute__ ((unused));
12653
12654   ;
12655   return 0;
12656 }
12657
12658 _ACEOF
12659
12660
12661         rm -Rf build && mkdir -p build
12662         echo "obj-m := conftest.o" >build/Makefile
12663         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'
12664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665   (eval $ac_try) 2>&5
12666   ac_status=$?
12667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670   (eval $ac_try) 2>&5
12671   ac_status=$?
12672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }; }; then
12674
12675                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12676 $as_echo "yes" >&6; }
12677
12678 cat >>confdefs.h <<\_ACEOF
12679 #define HAVE_FMODE_T 1
12680 _ACEOF
12681
12682
12683 else
12684   $as_echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12686
12687                 { $as_echo "$as_me:$LINENO: result: no" >&5
12688 $as_echo "no" >&6; }
12689
12690
12691
12692 fi
12693
12694         rm -Rf build
12695
12696
12697
12698
12699         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12700 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12701
12702
12703 cat confdefs.h - <<_ACEOF >conftest.c
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709
12710
12711                 #include <linux/kobject.h>
12712
12713 int
12714 main (void)
12715 {
12716
12717                 int val __attribute__ ((unused));
12718                 val = KOBJ_NAME_LEN;
12719
12720   ;
12721   return 0;
12722 }
12723
12724 _ACEOF
12725
12726
12727         rm -Rf build && mkdir -p build
12728         echo "obj-m := conftest.o" >build/Makefile
12729         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'
12730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731   (eval $ac_try) 2>&5
12732   ac_status=$?
12733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736   (eval $ac_try) 2>&5
12737   ac_status=$?
12738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740
12741                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12742 $as_echo "yes" >&6; }
12743
12744 cat >>confdefs.h <<\_ACEOF
12745 #define HAVE_KOBJ_NAME_LEN 1
12746 _ACEOF
12747
12748
12749 else
12750   $as_echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12752
12753                 { $as_echo "$as_me:$LINENO: result: no" >&5
12754 $as_echo "no" >&6; }
12755
12756
12757
12758 fi
12759
12760         rm -Rf build
12761
12762
12763
12764
12765         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12766 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12767         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12768                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12769         rc=$?
12770         if test $rc -ne 0; then
12771
12772                 export=0
12773                 for file in fs/block_dev.c; do
12774                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12775                         rc=$?
12776                         if test $rc -eq 0; then
12777
12778                                 export=1
12779                                 break;
12780
12781 fi
12782
12783                 done
12784                 if test $export -eq 0; then
12785
12786                         { $as_echo "$as_me:$LINENO: result: no" >&5
12787 $as_echo "no" >&6; }
12788
12789
12790 else
12791
12792                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12793 $as_echo "yes" >&6; }
12794
12795 cat >>confdefs.h <<\_ACEOF
12796 #define HAVE_BLKDEV_GET_BY_PATH 1
12797 _ACEOF
12798
12799
12800 fi
12801
12802
12803 else
12804
12805                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12806 $as_echo "yes" >&6; }
12807
12808 cat >>confdefs.h <<\_ACEOF
12809 #define HAVE_BLKDEV_GET_BY_PATH 1
12810 _ACEOF
12811
12812
12813 fi
12814
12815
12816
12817
12818         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12819 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12820         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12821                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12822         rc=$?
12823         if test $rc -ne 0; then
12824
12825                 export=0
12826                 for file in fs/block_dev.c; do
12827                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12828                         rc=$?
12829                         if test $rc -eq 0; then
12830
12831                                 export=1
12832                                 break;
12833
12834 fi
12835
12836                 done
12837                 if test $export -eq 0; then
12838
12839                         { $as_echo "$as_me:$LINENO: result: no" >&5
12840 $as_echo "no" >&6; }
12841
12842
12843 else
12844
12845                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12846 $as_echo "yes" >&6; }
12847
12848 cat >>confdefs.h <<\_ACEOF
12849 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12850 _ACEOF
12851
12852
12853 fi
12854
12855
12856 else
12857
12858                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12859 $as_echo "yes" >&6; }
12860
12861 cat >>confdefs.h <<\_ACEOF
12862 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12863 _ACEOF
12864
12865
12866 fi
12867
12868
12869
12870
12871         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12872 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12873
12874
12875 cat confdefs.h - <<_ACEOF >conftest.c
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881
12882
12883                 #include <linux/buffer_head.h>
12884
12885 int
12886 main (void)
12887 {
12888
12889                 struct block_device *bdev = NULL;
12890                 invalidate_bdev(bdev);
12891
12892   ;
12893   return 0;
12894 }
12895
12896 _ACEOF
12897
12898
12899         rm -Rf build && mkdir -p build
12900         echo "obj-m := conftest.o" >build/Makefile
12901         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'
12902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903   (eval $ac_try) 2>&5
12904   ac_status=$?
12905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908   (eval $ac_try) 2>&5
12909   ac_status=$?
12910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); }; }; then
12912
12913                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12914 $as_echo "yes" >&6; }
12915
12916 cat >>confdefs.h <<\_ACEOF
12917 #define HAVE_1ARG_INVALIDATE_BDEV 1
12918 _ACEOF
12919
12920
12921 else
12922   $as_echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925                 { $as_echo "$as_me:$LINENO: result: no" >&5
12926 $as_echo "no" >&6; }
12927
12928
12929
12930 fi
12931
12932         rm -Rf build
12933
12934
12935
12936
12937         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12938 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12939         tmp_flags="$EXTRA_KCFLAGS"
12940         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
12941
12942
12943 cat confdefs.h - <<_ACEOF >conftest.c
12944 /* confdefs.h.  */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h.  */
12949
12950
12951                 #include <linux/blkdev.h>
12952
12953 int
12954 main (void)
12955 {
12956
12957                 struct block_device *bdev = NULL;
12958                 bdev_logical_block_size(bdev);
12959
12960   ;
12961   return 0;
12962 }
12963
12964 _ACEOF
12965
12966
12967         rm -Rf build && mkdir -p build
12968         echo "obj-m := conftest.o" >build/Makefile
12969         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'
12970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971   (eval $ac_try) 2>&5
12972   ac_status=$?
12973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12976   (eval $ac_try) 2>&5
12977   ac_status=$?
12978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979   (exit $ac_status); }; }; then
12980
12981                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12982 $as_echo "yes" >&6; }
12983
12984 cat >>confdefs.h <<\_ACEOF
12985 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12986 _ACEOF
12987
12988
12989 else
12990   $as_echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993                 { $as_echo "$as_me:$LINENO: result: no" >&5
12994 $as_echo "no" >&6; }
12995
12996
12997
12998 fi
12999
13000         rm -Rf build
13001
13002
13003         EXTRA_KCFLAGS="$tmp_flags"
13004
13005
13006         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
13007 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
13008         EXTRA_KCFLAGS="-Werror"
13009
13010
13011 cat confdefs.h - <<_ACEOF >conftest.c
13012 /* confdefs.h.  */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h.  */
13017
13018
13019                 #include <linux/bio.h>
13020
13021 int
13022 main (void)
13023 {
13024
13025                 struct bio bio;
13026                 (void)bio_empty_barrier(&bio);
13027
13028   ;
13029   return 0;
13030 }
13031
13032 _ACEOF
13033
13034
13035         rm -Rf build && mkdir -p build
13036         echo "obj-m := conftest.o" >build/Makefile
13037         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'
13038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039   (eval $ac_try) 2>&5
13040   ac_status=$?
13041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044   (eval $ac_try) 2>&5
13045   ac_status=$?
13046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); }; }; then
13048
13049                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13050 $as_echo "yes" >&6; }
13051
13052 cat >>confdefs.h <<\_ACEOF
13053 #define HAVE_BIO_EMPTY_BARRIER 1
13054 _ACEOF
13055
13056
13057 else
13058   $as_echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061                 { $as_echo "$as_me:$LINENO: result: no" >&5
13062 $as_echo "no" >&6; }
13063
13064
13065
13066 fi
13067
13068         rm -Rf build
13069
13070
13071
13072
13073         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13074 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13075
13076
13077 cat confdefs.h - <<_ACEOF >conftest.c
13078 /* confdefs.h.  */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h.  */
13083
13084
13085                 #include <linux/bio.h>
13086
13087 int
13088 main (void)
13089 {
13090
13091                 int flags __attribute__ ((unused));
13092                 flags = (1 << BIO_RW_FAILFAST);
13093
13094   ;
13095   return 0;
13096 }
13097
13098 _ACEOF
13099
13100
13101         rm -Rf build && mkdir -p build
13102         echo "obj-m := conftest.o" >build/Makefile
13103         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'
13104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105   (eval $ac_try) 2>&5
13106   ac_status=$?
13107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110   (eval $ac_try) 2>&5
13111   ac_status=$?
13112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); }; }; then
13114
13115                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13116 $as_echo "yes" >&6; }
13117
13118 cat >>confdefs.h <<\_ACEOF
13119 #define HAVE_BIO_RW_FAILFAST 1
13120 _ACEOF
13121
13122
13123 else
13124   $as_echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127                 { $as_echo "$as_me:$LINENO: result: no" >&5
13128 $as_echo "no" >&6; }
13129
13130
13131
13132 fi
13133
13134         rm -Rf build
13135
13136
13137
13138
13139         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13140 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13141
13142
13143 cat confdefs.h - <<_ACEOF >conftest.c
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149
13150
13151                 #include <linux/bio.h>
13152
13153 int
13154 main (void)
13155 {
13156
13157                 int flags __attribute__ ((unused));
13158                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13159                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
13160                          (1 << BIO_RW_FAILFAST_DRIVER));
13161
13162   ;
13163   return 0;
13164 }
13165
13166 _ACEOF
13167
13168
13169         rm -Rf build && mkdir -p build
13170         echo "obj-m := conftest.o" >build/Makefile
13171         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'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178   (eval $ac_try) 2>&5
13179   ac_status=$?
13180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181   (exit $ac_status); }; }; then
13182
13183                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13184 $as_echo "yes" >&6; }
13185
13186 cat >>confdefs.h <<\_ACEOF
13187 #define HAVE_BIO_RW_FAILFAST_DTD 1
13188 _ACEOF
13189
13190
13191 else
13192   $as_echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195                 { $as_echo "$as_me:$LINENO: result: no" >&5
13196 $as_echo "no" >&6; }
13197
13198
13199
13200 fi
13201
13202         rm -Rf build
13203
13204
13205
13206
13207         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13208 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13209
13210
13211 cat confdefs.h - <<_ACEOF >conftest.c
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217
13218
13219                 #include <linux/bio.h>
13220
13221 int
13222 main (void)
13223 {
13224
13225                 int flags __attribute__ ((unused));
13226                 flags = REQ_FAILFAST_MASK;
13227
13228   ;
13229   return 0;
13230 }
13231
13232 _ACEOF
13233
13234
13235         rm -Rf build && mkdir -p build
13236         echo "obj-m := conftest.o" >build/Makefile
13237         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'
13238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239   (eval $ac_try) 2>&5
13240   ac_status=$?
13241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248
13249                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13250 $as_echo "yes" >&6; }
13251
13252 cat >>confdefs.h <<\_ACEOF
13253 #define HAVE_BIO_REQ_FAILFAST_MASK 1
13254 _ACEOF
13255
13256
13257 else
13258   $as_echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261                 { $as_echo "$as_me:$LINENO: result: no" >&5
13262 $as_echo "no" >&6; }
13263
13264
13265
13266 fi
13267
13268         rm -Rf build
13269
13270
13271
13272
13273         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13274 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13275         tmp_flags="$EXTRA_KCFLAGS"
13276         EXTRA_KCFLAGS="-Werror"
13277
13278
13279 cat confdefs.h - <<_ACEOF >conftest.c
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285
13286
13287                 #include <linux/bio.h>
13288
13289 int
13290 main (void)
13291 {
13292
13293                 void (*wanted_end_io)(struct bio *, int) = NULL;
13294                 bio_end_io_t *local_end_io __attribute__ ((unused));
13295
13296                 local_end_io = wanted_end_io;
13297
13298   ;
13299   return 0;
13300 }
13301
13302 _ACEOF
13303
13304
13305         rm -Rf build && mkdir -p build
13306         echo "obj-m := conftest.o" >build/Makefile
13307         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'
13308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309   (eval $ac_try) 2>&5
13310   ac_status=$?
13311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314   (eval $ac_try) 2>&5
13315   ac_status=$?
13316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); }; }; then
13318
13319                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13320 $as_echo "yes" >&6; }
13321
13322 cat >>confdefs.h <<\_ACEOF
13323 #define HAVE_2ARGS_BIO_END_IO_T 1
13324 _ACEOF
13325
13326
13327 else
13328   $as_echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13330
13331                 { $as_echo "$as_me:$LINENO: result: no" >&5
13332 $as_echo "no" >&6; }
13333
13334
13335
13336 fi
13337
13338         rm -Rf build
13339
13340
13341         EXTRA_KCFLAGS="$tmp_flags"
13342
13343
13344         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13345 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13346
13347
13348 cat confdefs.h - <<_ACEOF >conftest.c
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354
13355
13356                 #include <linux/bio.h>
13357
13358 int
13359 main (void)
13360 {
13361
13362                 int flags __attribute__ ((unused));
13363                 flags = BIO_RW_SYNC;
13364
13365   ;
13366   return 0;
13367 }
13368
13369 _ACEOF
13370
13371
13372         rm -Rf build && mkdir -p build
13373         echo "obj-m := conftest.o" >build/Makefile
13374         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'
13375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376   (eval $ac_try) 2>&5
13377   ac_status=$?
13378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; }; then
13385
13386                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13387 $as_echo "yes" >&6; }
13388
13389 cat >>confdefs.h <<\_ACEOF
13390 #define HAVE_BIO_RW_SYNC 1
13391 _ACEOF
13392
13393
13394 else
13395   $as_echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13397
13398                 { $as_echo "$as_me:$LINENO: result: no" >&5
13399 $as_echo "no" >&6; }
13400
13401
13402
13403 fi
13404
13405         rm -Rf build
13406
13407
13408
13409
13410         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13411 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13412
13413
13414 cat confdefs.h - <<_ACEOF >conftest.c
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420
13421
13422                 #include <linux/bio.h>
13423
13424 int
13425 main (void)
13426 {
13427
13428                 int flags __attribute__ ((unused));
13429                 flags = BIO_RW_SYNCIO;
13430
13431   ;
13432   return 0;
13433 }
13434
13435 _ACEOF
13436
13437
13438         rm -Rf build && mkdir -p build
13439         echo "obj-m := conftest.o" >build/Makefile
13440         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'
13441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442   (eval $ac_try) 2>&5
13443   ac_status=$?
13444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447   (eval $ac_try) 2>&5
13448   ac_status=$?
13449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); }; }; then
13451
13452                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13453 $as_echo "yes" >&6; }
13454
13455 cat >>confdefs.h <<\_ACEOF
13456 #define HAVE_BIO_RW_SYNCIO 1
13457 _ACEOF
13458
13459
13460 else
13461   $as_echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464                 { $as_echo "$as_me:$LINENO: result: no" >&5
13465 $as_echo "no" >&6; }
13466
13467
13468
13469 fi
13470
13471         rm -Rf build
13472
13473
13474
13475
13476         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13477 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13478
13479
13480 cat confdefs.h - <<_ACEOF >conftest.c
13481 /* confdefs.h.  */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h.  */
13486
13487
13488                 #include <linux/bio.h>
13489
13490 int
13491 main (void)
13492 {
13493
13494                 int flags __attribute__ ((unused));
13495                 flags = REQ_SYNC;
13496
13497   ;
13498   return 0;
13499 }
13500
13501 _ACEOF
13502
13503
13504         rm -Rf build && mkdir -p build
13505         echo "obj-m := conftest.o" >build/Makefile
13506         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'
13507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508   (eval $ac_try) 2>&5
13509   ac_status=$?
13510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513   (eval $ac_try) 2>&5
13514   ac_status=$?
13515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); }; }; then
13517
13518                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13519 $as_echo "yes" >&6; }
13520
13521 cat >>confdefs.h <<\_ACEOF
13522 #define HAVE_REQ_SYNC 1
13523 _ACEOF
13524
13525
13526 else
13527   $as_echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530                 { $as_echo "$as_me:$LINENO: result: no" >&5
13531 $as_echo "no" >&6; }
13532
13533
13534
13535 fi
13536
13537         rm -Rf build
13538
13539
13540
13541
13542         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13543 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13544         tmp_flags="$EXTRA_KCFLAGS"
13545         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13546
13547
13548 cat confdefs.h - <<_ACEOF >conftest.c
13549 /* confdefs.h.  */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h.  */
13554
13555
13556                 #include <linux/blkdev.h>
13557
13558 int
13559 main (void)
13560 {
13561
13562                 struct request *req = NULL;
13563                 (void) blk_end_request(req, 0, 0);
13564
13565   ;
13566   return 0;
13567 }
13568
13569 _ACEOF
13570
13571
13572         rm -Rf build && mkdir -p build
13573         echo "obj-m := conftest.o" >build/Makefile
13574         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'
13575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576   (eval $ac_try) 2>&5
13577   ac_status=$?
13578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; }; then
13585
13586                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13587 $as_echo "yes" >&6; }
13588
13589 cat >>confdefs.h <<\_ACEOF
13590 #define HAVE_BLK_END_REQUEST 1
13591 _ACEOF
13592
13593
13594 else
13595   $as_echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13597
13598                 { $as_echo "$as_me:$LINENO: result: no" >&5
13599 $as_echo "no" >&6; }
13600
13601
13602
13603 fi
13604
13605         rm -Rf build
13606
13607
13608
13609         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13610 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13611
13612
13613 cat confdefs.h - <<_ACEOF >conftest.c
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619
13620
13621                 #include <linux/module.h>
13622                 #include <linux/blkdev.h>
13623
13624                 MODULE_LICENSE("CDDL");
13625
13626 int
13627 main (void)
13628 {
13629
13630                 struct request *req = NULL;
13631                 (void) blk_end_request(req, 0, 0);
13632
13633   ;
13634   return 0;
13635 }
13636
13637 _ACEOF
13638
13639
13640         rm -Rf build && mkdir -p build
13641         echo "obj-m := conftest.o" >build/Makefile
13642         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'
13643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644   (eval $ac_try) 2>&5
13645   ac_status=$?
13646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649   (eval $ac_try) 2>&5
13650   ac_status=$?
13651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); }; }; then
13653
13654                 { $as_echo "$as_me:$LINENO: result: no" >&5
13655 $as_echo "no" >&6; }
13656
13657 else
13658   $as_echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13660
13661                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13662 $as_echo "yes" >&6; }
13663
13664 cat >>confdefs.h <<\_ACEOF
13665 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13666 _ACEOF
13667
13668
13669
13670
13671 fi
13672
13673         rm -Rf build
13674
13675
13676         EXTRA_KCFLAGS="$tmp_flags"
13677
13678
13679         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
13680 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13681         tmp_flags="$EXTRA_KCFLAGS"
13682         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13683
13684
13685 cat confdefs.h - <<_ACEOF >conftest.c
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691
13692
13693                 #include <linux/blkdev.h>
13694
13695 int
13696 main (void)
13697 {
13698
13699                 struct request_queue *q = NULL;
13700                 (void) blk_queue_flush(q, REQ_FLUSH);
13701
13702   ;
13703   return 0;
13704 }
13705
13706 _ACEOF
13707
13708
13709         rm -Rf build && mkdir -p build
13710         echo "obj-m := conftest.o" >build/Makefile
13711         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'
13712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713   (eval $ac_try) 2>&5
13714   ac_status=$?
13715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718   (eval $ac_try) 2>&5
13719   ac_status=$?
13720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); }; }; then
13722
13723                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13724 $as_echo "yes" >&6; }
13725
13726 cat >>confdefs.h <<\_ACEOF
13727 #define HAVE_BLK_QUEUE_FLUSH 1
13728 _ACEOF
13729
13730
13731 else
13732   $as_echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735                 { $as_echo "$as_me:$LINENO: result: no" >&5
13736 $as_echo "no" >&6; }
13737
13738
13739
13740 fi
13741
13742         rm -Rf build
13743
13744
13745
13746         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
13747 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13748
13749
13750 cat confdefs.h - <<_ACEOF >conftest.c
13751 /* confdefs.h.  */
13752 _ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h.  */
13756
13757
13758                 #include <linux/module.h>
13759                 #include <linux/blkdev.h>
13760
13761                 MODULE_LICENSE("CDDL");
13762
13763 int
13764 main (void)
13765 {
13766
13767                 struct request_queue *q = NULL;
13768                 (void) blk_queue_flush(q, REQ_FLUSH);
13769
13770   ;
13771   return 0;
13772 }
13773
13774 _ACEOF
13775
13776
13777         rm -Rf build && mkdir -p build
13778         echo "obj-m := conftest.o" >build/Makefile
13779         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'
13780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781   (eval $ac_try) 2>&5
13782   ac_status=$?
13783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786   (eval $ac_try) 2>&5
13787   ac_status=$?
13788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); }; }; then
13790
13791                 { $as_echo "$as_me:$LINENO: result: no" >&5
13792 $as_echo "no" >&6; }
13793
13794 else
13795   $as_echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13797
13798                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13799 $as_echo "yes" >&6; }
13800
13801 cat >>confdefs.h <<\_ACEOF
13802 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
13803 _ACEOF
13804
13805
13806
13807
13808 fi
13809
13810         rm -Rf build
13811
13812
13813         EXTRA_KCFLAGS="$tmp_flags"
13814
13815
13816         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
13817 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13818         tmp_flags="$EXTRA_KCFLAGS"
13819         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13820
13821
13822 cat confdefs.h - <<_ACEOF >conftest.c
13823 /* confdefs.h.  */
13824 _ACEOF
13825 cat confdefs.h >>conftest.$ac_ext
13826 cat >>conftest.$ac_ext <<_ACEOF
13827 /* end confdefs.h.  */
13828
13829
13830                 #include <linux/blkdev.h>
13831
13832 int
13833 main (void)
13834 {
13835
13836                 struct request_queue *q = NULL;
13837                 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13838
13839   ;
13840   return 0;
13841 }
13842
13843 _ACEOF
13844
13845
13846         rm -Rf build && mkdir -p build
13847         echo "obj-m := conftest.o" >build/Makefile
13848         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'
13849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850   (eval $ac_try) 2>&5
13851   ac_status=$?
13852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; }; then
13859
13860                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13861 $as_echo "yes" >&6; }
13862
13863 cat >>confdefs.h <<\_ACEOF
13864 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
13865 _ACEOF
13866
13867
13868 else
13869   $as_echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13871
13872                 { $as_echo "$as_me:$LINENO: result: no" >&5
13873 $as_echo "no" >&6; }
13874
13875
13876
13877 fi
13878
13879         rm -Rf build
13880
13881
13882         EXTRA_KCFLAGS="$tmp_flags"
13883
13884
13885         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
13886 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
13887         tmp_flags="$EXTRA_KCFLAGS"
13888         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13889
13890
13891 cat confdefs.h - <<_ACEOF >conftest.c
13892 /* confdefs.h.  */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h.  */
13897
13898
13899                 #include <linux/blkdev.h>
13900
13901 int
13902 main (void)
13903 {
13904
13905                 struct request_queue *q = NULL;
13906                 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
13907
13908   ;
13909   return 0;
13910 }
13911
13912 _ACEOF
13913
13914
13915         rm -Rf build && mkdir -p build
13916         echo "obj-m := conftest.o" >build/Makefile
13917         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'
13918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919   (eval $ac_try) 2>&5
13920   ac_status=$?
13921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924   (eval $ac_try) 2>&5
13925   ac_status=$?
13926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }; }; then
13928
13929                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13930 $as_echo "yes" >&6; }
13931
13932 cat >>confdefs.h <<\_ACEOF
13933 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
13934 _ACEOF
13935
13936
13937 else
13938   $as_echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941                 { $as_echo "$as_me:$LINENO: result: no" >&5
13942 $as_echo "no" >&6; }
13943
13944
13945
13946 fi
13947
13948         rm -Rf build
13949
13950
13951         EXTRA_KCFLAGS="$tmp_flags"
13952
13953
13954         { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
13955 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
13956         tmp_flags="$EXTRA_KCFLAGS"
13957         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
13958
13959
13960 cat confdefs.h - <<_ACEOF >conftest.c
13961 /* confdefs.h.  */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h.  */
13966
13967
13968                 #include <linux/blkdev.h>
13969
13970 int
13971 main (void)
13972 {
13973
13974                 struct request_queue *q = NULL;
13975                 unsigned short block_size = 1;
13976                 (void) blk_queue_physical_block_size(q, block_size);
13977
13978   ;
13979   return 0;
13980 }
13981
13982 _ACEOF
13983
13984
13985         rm -Rf build && mkdir -p build
13986         echo "obj-m := conftest.o" >build/Makefile
13987         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'
13988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989   (eval $ac_try) 2>&5
13990   ac_status=$?
13991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994   (eval $ac_try) 2>&5
13995   ac_status=$?
13996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); }; }; then
13998
13999                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14000 $as_echo "yes" >&6; }
14001
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
14004 _ACEOF
14005
14006
14007 else
14008   $as_echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011                 { $as_echo "$as_me:$LINENO: result: no" >&5
14012 $as_echo "no" >&6; }
14013
14014
14015
14016 fi
14017
14018         rm -Rf build
14019
14020
14021         EXTRA_KCFLAGS="$tmp_flags"
14022
14023
14024         { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
14025 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14026         tmp_flags="$EXTRA_KCFLAGS"
14027         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14028
14029
14030 cat confdefs.h - <<_ACEOF >conftest.c
14031 /* confdefs.h.  */
14032 _ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h.  */
14036
14037
14038                 #include <linux/blkdev.h>
14039
14040 int
14041 main (void)
14042 {
14043
14044                 struct request_queue *q = NULL;
14045                 unsigned int opt = 1;
14046                 (void) blk_queue_io_opt(q, opt);
14047
14048   ;
14049   return 0;
14050 }
14051
14052 _ACEOF
14053
14054
14055         rm -Rf build && mkdir -p build
14056         echo "obj-m := conftest.o" >build/Makefile
14057         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'
14058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059   (eval $ac_try) 2>&5
14060   ac_status=$?
14061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064   (eval $ac_try) 2>&5
14065   ac_status=$?
14066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; }; then
14068
14069                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14070 $as_echo "yes" >&6; }
14071
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_BLK_QUEUE_IO_OPT 1
14074 _ACEOF
14075
14076
14077 else
14078   $as_echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081                 { $as_echo "$as_me:$LINENO: result: no" >&5
14082 $as_echo "no" >&6; }
14083
14084
14085
14086 fi
14087
14088         rm -Rf build
14089
14090
14091         EXTRA_KCFLAGS="$tmp_flags"
14092
14093
14094         { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
14095 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14096         tmp_flags="$EXTRA_KCFLAGS"
14097         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14098
14099
14100 cat confdefs.h - <<_ACEOF >conftest.c
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106
14107
14108                 #include <linux/blkdev.h>
14109
14110 int
14111 main (void)
14112 {
14113
14114                 struct request_queue *q = NULL;
14115                 (void) blk_queue_nonrot(q);
14116
14117   ;
14118   return 0;
14119 }
14120
14121 _ACEOF
14122
14123
14124         rm -Rf build && mkdir -p build
14125         echo "obj-m := conftest.o" >build/Makefile
14126         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'
14127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128   (eval $ac_try) 2>&5
14129   ac_status=$?
14130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137
14138                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14139 $as_echo "yes" >&6; }
14140
14141 cat >>confdefs.h <<\_ACEOF
14142 #define HAVE_BLK_QUEUE_NONROT 1
14143 _ACEOF
14144
14145
14146 else
14147   $as_echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150                 { $as_echo "$as_me:$LINENO: result: no" >&5
14151 $as_echo "no" >&6; }
14152
14153
14154
14155 fi
14156
14157         rm -Rf build
14158
14159
14160         EXTRA_KCFLAGS="$tmp_flags"
14161
14162
14163         { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
14164 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14165         tmp_flags="$EXTRA_KCFLAGS"
14166         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14167
14168
14169 cat confdefs.h - <<_ACEOF >conftest.c
14170 /* confdefs.h.  */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h.  */
14175
14176
14177                 #include <linux/blkdev.h>
14178
14179 int
14180 main (void)
14181 {
14182
14183                 struct request_queue *q = NULL;
14184                 (void) blk_queue_discard(q);
14185
14186   ;
14187   return 0;
14188 }
14189
14190 _ACEOF
14191
14192
14193         rm -Rf build && mkdir -p build
14194         echo "obj-m := conftest.o" >build/Makefile
14195         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'
14196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197   (eval $ac_try) 2>&5
14198   ac_status=$?
14199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; }; then
14206
14207                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14208 $as_echo "yes" >&6; }
14209
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_BLK_QUEUE_DISCARD 1
14212 _ACEOF
14213
14214
14215 else
14216   $as_echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14218
14219                 { $as_echo "$as_me:$LINENO: result: no" >&5
14220 $as_echo "no" >&6; }
14221
14222
14223
14224 fi
14225
14226         rm -Rf build
14227
14228
14229         EXTRA_KCFLAGS="$tmp_flags"
14230
14231
14232         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
14233 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14234         tmp_flags="$EXTRA_KCFLAGS"
14235         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14236
14237
14238 cat confdefs.h - <<_ACEOF >conftest.c
14239 /* confdefs.h.  */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h.  */
14244
14245
14246                 #include <linux/blkdev.h>
14247
14248 int
14249 main (void)
14250 {
14251
14252                 struct request_queue *q = NULL;
14253                 (void) blk_fetch_request(q);
14254
14255   ;
14256   return 0;
14257 }
14258
14259 _ACEOF
14260
14261
14262         rm -Rf build && mkdir -p build
14263         echo "obj-m := conftest.o" >build/Makefile
14264         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'
14265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266   (eval $ac_try) 2>&5
14267   ac_status=$?
14268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }; then
14275
14276                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14277 $as_echo "yes" >&6; }
14278
14279 cat >>confdefs.h <<\_ACEOF
14280 #define HAVE_BLK_FETCH_REQUEST 1
14281 _ACEOF
14282
14283
14284 else
14285   $as_echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288                 { $as_echo "$as_me:$LINENO: result: no" >&5
14289 $as_echo "no" >&6; }
14290
14291
14292
14293 fi
14294
14295         rm -Rf build
14296
14297
14298         EXTRA_KCFLAGS="$tmp_flags"
14299
14300
14301         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
14302 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
14303         tmp_flags="$EXTRA_KCFLAGS"
14304         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14305
14306
14307 cat confdefs.h - <<_ACEOF >conftest.c
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313
14314
14315                 #include <linux/blkdev.h>
14316
14317 int
14318 main (void)
14319 {
14320
14321                 struct request_queue *q = NULL;
14322                 struct request *req = NULL;
14323                 blk_requeue_request(q, req);
14324
14325   ;
14326   return 0;
14327 }
14328
14329 _ACEOF
14330
14331
14332         rm -Rf build && mkdir -p build
14333         echo "obj-m := conftest.o" >build/Makefile
14334         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'
14335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336   (eval $ac_try) 2>&5
14337   ac_status=$?
14338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341   (eval $ac_try) 2>&5
14342   ac_status=$?
14343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; }; then
14345
14346                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14347 $as_echo "yes" >&6; }
14348
14349 cat >>confdefs.h <<\_ACEOF
14350 #define HAVE_BLK_REQUEUE_REQUEST 1
14351 _ACEOF
14352
14353
14354 else
14355   $as_echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358                 { $as_echo "$as_me:$LINENO: result: no" >&5
14359 $as_echo "no" >&6; }
14360
14361
14362
14363 fi
14364
14365         rm -Rf build
14366
14367
14368         EXTRA_KCFLAGS="$tmp_flags"
14369
14370
14371         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
14372 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
14373         tmp_flags="$EXTRA_KCFLAGS"
14374         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14375
14376
14377 cat confdefs.h - <<_ACEOF >conftest.c
14378 /* confdefs.h.  */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h.  */
14383
14384
14385                 #include <linux/blkdev.h>
14386
14387 int
14388 main (void)
14389 {
14390
14391                 struct request *req = NULL;
14392                 (void) blk_rq_bytes(req);
14393
14394   ;
14395   return 0;
14396 }
14397
14398 _ACEOF
14399
14400
14401         rm -Rf build && mkdir -p build
14402         echo "obj-m := conftest.o" >build/Makefile
14403         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'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410   (eval $ac_try) 2>&5
14411   ac_status=$?
14412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; }; then
14414
14415                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14416 $as_echo "yes" >&6; }
14417
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_BLK_RQ_BYTES 1
14420 _ACEOF
14421
14422
14423 else
14424   $as_echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427                 { $as_echo "$as_me:$LINENO: result: no" >&5
14428 $as_echo "no" >&6; }
14429
14430
14431
14432 fi
14433
14434         rm -Rf build
14435
14436
14437
14438         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
14439 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
14440
14441
14442 cat confdefs.h - <<_ACEOF >conftest.c
14443 /* confdefs.h.  */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h.  */
14448
14449
14450                 #include <linux/module.h>
14451                 #include <linux/blkdev.h>
14452
14453                 MODULE_LICENSE("CDDL");
14454
14455 int
14456 main (void)
14457 {
14458
14459                 struct request *req = NULL;
14460                 (void) blk_rq_bytes(req);
14461
14462   ;
14463   return 0;
14464 }
14465
14466 _ACEOF
14467
14468
14469         rm -Rf build && mkdir -p build
14470         echo "obj-m := conftest.o" >build/Makefile
14471         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'
14472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473   (eval $ac_try) 2>&5
14474   ac_status=$?
14475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478   (eval $ac_try) 2>&5
14479   ac_status=$?
14480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); }; }; then
14482
14483                 { $as_echo "$as_me:$LINENO: result: no" >&5
14484 $as_echo "no" >&6; }
14485
14486 else
14487   $as_echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14491 $as_echo "yes" >&6; }
14492
14493 cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
14495 _ACEOF
14496
14497
14498
14499
14500 fi
14501
14502         rm -Rf build
14503
14504
14505         EXTRA_KCFLAGS="$tmp_flags"
14506
14507
14508         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
14509 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
14510         tmp_flags="$EXTRA_KCFLAGS"
14511         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14512
14513
14514 cat confdefs.h - <<_ACEOF >conftest.c
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520
14521
14522                 #include <linux/blkdev.h>
14523
14524 int
14525 main (void)
14526 {
14527
14528                 struct request *req = NULL;
14529                 (void) blk_rq_pos(req);
14530
14531   ;
14532   return 0;
14533 }
14534
14535 _ACEOF
14536
14537
14538         rm -Rf build && mkdir -p build
14539         echo "obj-m := conftest.o" >build/Makefile
14540         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'
14541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542   (eval $ac_try) 2>&5
14543   ac_status=$?
14544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547   (eval $ac_try) 2>&5
14548   ac_status=$?
14549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550   (exit $ac_status); }; }; then
14551
14552                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14553 $as_echo "yes" >&6; }
14554
14555 cat >>confdefs.h <<\_ACEOF
14556 #define HAVE_BLK_RQ_POS 1
14557 _ACEOF
14558
14559
14560 else
14561   $as_echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564                 { $as_echo "$as_me:$LINENO: result: no" >&5
14565 $as_echo "no" >&6; }
14566
14567
14568
14569 fi
14570
14571         rm -Rf build
14572
14573
14574         EXTRA_KCFLAGS="$tmp_flags"
14575
14576
14577         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
14578 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
14579         tmp_flags="$EXTRA_KCFLAGS"
14580         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14581
14582
14583 cat confdefs.h - <<_ACEOF >conftest.c
14584 /* confdefs.h.  */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h.  */
14589
14590
14591                 #include <linux/blkdev.h>
14592
14593 int
14594 main (void)
14595 {
14596
14597                 struct request *req = NULL;
14598                 (void) blk_rq_sectors(req);
14599
14600   ;
14601   return 0;
14602 }
14603
14604 _ACEOF
14605
14606
14607         rm -Rf build && mkdir -p build
14608         echo "obj-m := conftest.o" >build/Makefile
14609         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'
14610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611   (eval $ac_try) 2>&5
14612   ac_status=$?
14613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620
14621                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14622 $as_echo "yes" >&6; }
14623
14624 cat >>confdefs.h <<\_ACEOF
14625 #define HAVE_BLK_RQ_SECTORS 1
14626 _ACEOF
14627
14628
14629 else
14630   $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633                 { $as_echo "$as_me:$LINENO: result: no" >&5
14634 $as_echo "no" >&6; }
14635
14636
14637
14638 fi
14639
14640         rm -Rf build
14641
14642
14643         EXTRA_KCFLAGS="$tmp_flags"
14644
14645
14646         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14647 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14648         tmp_flags="$EXTRA_KCFLAGS"
14649         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14650
14651
14652 cat confdefs.h - <<_ACEOF >conftest.c
14653 /* confdefs.h.  */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h.  */
14658
14659
14660                 #include <linux/blkdev.h>
14661
14662 int
14663 main (void)
14664 {
14665
14666                 struct gendisk *disk = NULL;
14667                 (void) get_disk_ro(disk);
14668
14669   ;
14670   return 0;
14671 }
14672
14673 _ACEOF
14674
14675
14676         rm -Rf build && mkdir -p build
14677         echo "obj-m := conftest.o" >build/Makefile
14678         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'
14679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680   (eval $ac_try) 2>&5
14681   ac_status=$?
14682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685   (eval $ac_try) 2>&5
14686   ac_status=$?
14687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); }; }; then
14689
14690                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14691 $as_echo "yes" >&6; }
14692
14693 cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_GET_DISK_RO 1
14695 _ACEOF
14696
14697
14698 else
14699   $as_echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702                 { $as_echo "$as_me:$LINENO: result: no" >&5
14703 $as_echo "no" >&6; }
14704
14705
14706
14707 fi
14708
14709         rm -Rf build
14710
14711
14712         EXTRA_KCFLAGS="$tmp_flags"
14713
14714
14715         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14716 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14717         tmp_flags="$EXTRA_KCFLAGS"
14718         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14719
14720
14721 cat confdefs.h - <<_ACEOF >conftest.c
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727
14728
14729                 #include <linux/blkdev.h>
14730
14731 int
14732 main (void)
14733 {
14734
14735                 struct request *req = NULL;
14736                 (void) rq_is_sync(req);
14737
14738   ;
14739   return 0;
14740 }
14741
14742 _ACEOF
14743
14744
14745         rm -Rf build && mkdir -p build
14746         echo "obj-m := conftest.o" >build/Makefile
14747         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'
14748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758
14759                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14760 $as_echo "yes" >&6; }
14761
14762 cat >>confdefs.h <<\_ACEOF
14763 #define HAVE_RQ_IS_SYNC 1
14764 _ACEOF
14765
14766
14767 else
14768   $as_echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771                 { $as_echo "$as_me:$LINENO: result: no" >&5
14772 $as_echo "no" >&6; }
14773
14774
14775
14776 fi
14777
14778         rm -Rf build
14779
14780
14781         EXTRA_KCFLAGS="$tmp_flags"
14782
14783
14784         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14785 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14786         tmp_flags="$EXTRA_KCFLAGS"
14787         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
14788
14789
14790 cat confdefs.h - <<_ACEOF >conftest.c
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796
14797
14798                 #include <linux/blkdev.h>
14799
14800 int
14801 main (void)
14802 {
14803
14804                 struct bio_vec *bv;
14805                 struct req_iterator iter;
14806                 struct request *req = NULL;
14807                 rq_for_each_segment(bv, req, iter) { }
14808
14809   ;
14810   return 0;
14811 }
14812
14813 _ACEOF
14814
14815
14816         rm -Rf build && mkdir -p build
14817         echo "obj-m := conftest.o" >build/Makefile
14818         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'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; }; then
14829
14830                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14831 $as_echo "yes" >&6; }
14832
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_RQ_FOR_EACH_SEGMENT 1
14835 _ACEOF
14836
14837
14838 else
14839   $as_echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14841
14842                 { $as_echo "$as_me:$LINENO: result: no" >&5
14843 $as_echo "no" >&6; }
14844
14845
14846
14847 fi
14848
14849         rm -Rf build
14850
14851
14852         EXTRA_KCFLAGS="$tmp_flags"
14853
14854         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14855 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14856
14857
14858 cat confdefs.h - <<_ACEOF >conftest.c
14859 /* confdefs.h.  */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h.  */
14864
14865
14866                 #include <linux/fs.h>
14867                 #include <linux/xattr.h>
14868
14869                 const struct xattr_handler xattr_test_handler = {
14870                         .prefix = "test",
14871                         .get    = NULL,
14872                         .set    = NULL,
14873                 };
14874
14875                 const struct xattr_handler *xattr_handlers[] = {
14876                         &xattr_test_handler,
14877                 };
14878
14879 int
14880 main (void)
14881 {
14882
14883                 struct super_block sb __attribute__ ((unused));
14884
14885                 sb.s_xattr = xattr_handlers;
14886
14887   ;
14888   return 0;
14889 }
14890
14891 _ACEOF
14892
14893
14894         rm -Rf build && mkdir -p build
14895         echo "obj-m := conftest.o" >build/Makefile
14896         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'
14897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898   (eval $ac_try) 2>&5
14899   ac_status=$?
14900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903   (eval $ac_try) 2>&5
14904   ac_status=$?
14905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); }; }; then
14907
14908                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14909 $as_echo "yes" >&6; }
14910
14911 cat >>confdefs.h <<\_ACEOF
14912 #define HAVE_CONST_XATTR_HANDLER 1
14913 _ACEOF
14914
14915
14916 else
14917   $as_echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14919
14920                 { $as_echo "$as_me:$LINENO: result: no" >&5
14921 $as_echo "no" >&6; }
14922
14923
14924
14925 fi
14926
14927         rm -Rf build
14928
14929
14930
14931
14932         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14933 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14934
14935
14936 cat confdefs.h - <<_ACEOF >conftest.c
14937 /* confdefs.h.  */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h.  */
14942
14943
14944                 #include <linux/xattr.h>
14945
14946 int
14947 main (void)
14948 {
14949
14950                 int (*get)(struct dentry *dentry, const char *name,
14951                     void *buffer, size_t size, int handler_flags) = NULL;
14952                 struct xattr_handler xops __attribute__ ((unused));
14953
14954                 xops.get = get;
14955
14956   ;
14957   return 0;
14958 }
14959
14960 _ACEOF
14961
14962
14963         rm -Rf build && mkdir -p build
14964         echo "obj-m := conftest.o" >build/Makefile
14965         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'
14966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967   (eval $ac_try) 2>&5
14968   ac_status=$?
14969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972   (eval $ac_try) 2>&5
14973   ac_status=$?
14974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; }; then
14976
14977                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14978 $as_echo "yes" >&6; }
14979
14980 cat >>confdefs.h <<\_ACEOF
14981 #define HAVE_DENTRY_XATTR_GET 1
14982 _ACEOF
14983
14984
14985 else
14986   $as_echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989                 { $as_echo "$as_me:$LINENO: result: no" >&5
14990 $as_echo "no" >&6; }
14991
14992
14993
14994 fi
14995
14996         rm -Rf build
14997
14998
14999
15000
15001         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
15002 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15003
15004
15005 cat confdefs.h - <<_ACEOF >conftest.c
15006 /* confdefs.h.  */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h.  */
15011
15012
15013                 #include <linux/xattr.h>
15014
15015 int
15016 main (void)
15017 {
15018
15019                 int (*set)(struct dentry *dentry, const char *name,
15020                     const void *buffer, size_t size, int flags,
15021                     int handler_flags) = NULL;
15022                 struct xattr_handler xops __attribute__ ((unused));
15023
15024                 xops.set = set;
15025
15026   ;
15027   return 0;
15028 }
15029
15030 _ACEOF
15031
15032
15033         rm -Rf build && mkdir -p build
15034         echo "obj-m := conftest.o" >build/Makefile
15035         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'
15036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037   (eval $ac_try) 2>&5
15038   ac_status=$?
15039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }; then
15046
15047                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15048 $as_echo "yes" >&6; }
15049
15050 cat >>confdefs.h <<\_ACEOF
15051 #define HAVE_DENTRY_XATTR_SET 1
15052 _ACEOF
15053
15054
15055 else
15056   $as_echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059                 { $as_echo "$as_me:$LINENO: result: no" >&5
15060 $as_echo "no" >&6; }
15061
15062
15063
15064 fi
15065
15066         rm -Rf build
15067
15068
15069
15070
15071         { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
15072 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
15073
15074
15075
15076 cat confdefs.h - <<_ACEOF >conftest.c
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082
15083
15084                 #include <linux/fs.h>
15085
15086 int
15087 main (void)
15088 {
15089
15090                 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
15091                 struct super_operations sops __attribute__ ((unused));
15092
15093                 sops.show_options = show_options;
15094
15095   ;
15096   return 0;
15097 }
15098
15099 _ACEOF
15100
15101
15102         rm -Rf build && mkdir -p build
15103         echo "obj-m := conftest.o" >build/Makefile
15104         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'
15105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106   (eval $ac_try) 2>&5
15107   ac_status=$?
15108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; }; then
15115
15116                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15117 $as_echo "yes" >&6; }
15118
15119 cat >>confdefs.h <<\_ACEOF
15120 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
15121 _ACEOF
15122
15123
15124 else
15125   $as_echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15127
15128                 { $as_echo "$as_me:$LINENO: result: no" >&5
15129 $as_echo "no" >&6; }
15130
15131
15132
15133 fi
15134
15135         rm -Rf build
15136
15137
15138
15139
15140         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
15141 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
15142
15143
15144
15145 cat confdefs.h - <<_ACEOF >conftest.c
15146 /* confdefs.h.  */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h.  */
15151
15152
15153                 #include <linux/fs.h>
15154
15155 int
15156 main (void)
15157 {
15158
15159                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
15160                 struct file_operations fops __attribute__ ((unused));
15161
15162                 fops.fsync = fsync;
15163
15164   ;
15165   return 0;
15166 }
15167
15168 _ACEOF
15169
15170
15171         rm -Rf build && mkdir -p build
15172         echo "obj-m := conftest.o" >build/Makefile
15173         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'
15174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175   (eval $ac_try) 2>&5
15176   ac_status=$?
15177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180   (eval $ac_try) 2>&5
15181   ac_status=$?
15182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); }; }; then
15184
15185                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
15186 $as_echo "dentry" >&6; }
15187
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_FSYNC_WITH_DENTRY 1
15190 _ACEOF
15191
15192
15193 else
15194   $as_echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197
15198
15199
15200 fi
15201
15202         rm -Rf build
15203
15204
15205
15206
15207
15208
15209 cat confdefs.h - <<_ACEOF >conftest.c
15210 /* confdefs.h.  */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h.  */
15215
15216
15217                 #include <linux/fs.h>
15218
15219 int
15220 main (void)
15221 {
15222
15223                 int (*fsync) (struct file *, int) = NULL;
15224                 struct file_operations fops __attribute__ ((unused));
15225
15226                 fops.fsync = fsync;
15227
15228   ;
15229   return 0;
15230 }
15231
15232 _ACEOF
15233
15234
15235         rm -Rf build && mkdir -p build
15236         echo "obj-m := conftest.o" >build/Makefile
15237         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'
15238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239   (eval $ac_try) 2>&5
15240   ac_status=$?
15241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244   (eval $ac_try) 2>&5
15245   ac_status=$?
15246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; }; then
15248
15249                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
15250 $as_echo "no dentry" >&6; }
15251
15252 cat >>confdefs.h <<\_ACEOF
15253 #define HAVE_FSYNC_WITHOUT_DENTRY 1
15254 _ACEOF
15255
15256
15257 else
15258   $as_echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261
15262
15263
15264 fi
15265
15266         rm -Rf build
15267
15268
15269
15270
15271
15272
15273 cat confdefs.h - <<_ACEOF >conftest.c
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279
15280
15281                 #include <linux/fs.h>
15282
15283 int
15284 main (void)
15285 {
15286
15287                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
15288                 struct file_operations fops __attribute__ ((unused));
15289
15290                 fops.fsync = fsync;
15291
15292   ;
15293   return 0;
15294 }
15295
15296 _ACEOF
15297
15298
15299         rm -Rf build && mkdir -p build
15300         echo "obj-m := conftest.o" >build/Makefile
15301         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'
15302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303   (eval $ac_try) 2>&5
15304   ac_status=$?
15305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308   (eval $ac_try) 2>&5
15309   ac_status=$?
15310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; }; then
15312
15313                 { $as_echo "$as_me:$LINENO: result: range" >&5
15314 $as_echo "range" >&6; }
15315
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE_FSYNC_RANGE 1
15318 _ACEOF
15319
15320
15321 else
15322   $as_echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15324
15325
15326
15327
15328 fi
15329
15330         rm -Rf build
15331
15332
15333
15334
15335
15336         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
15337 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
15338
15339
15340 cat confdefs.h - <<_ACEOF >conftest.c
15341 /* confdefs.h.  */
15342 _ACEOF
15343 cat confdefs.h >>conftest.$ac_ext
15344 cat >>conftest.$ac_ext <<_ACEOF
15345 /* end confdefs.h.  */
15346
15347
15348                 #include <linux/fs.h>
15349
15350 int
15351 main (void)
15352 {
15353
15354                 void (*evict_inode) (struct inode *) = NULL;
15355                 struct super_operations sops __attribute__ ((unused)) = {
15356                         .evict_inode = evict_inode,
15357                 };
15358
15359   ;
15360   return 0;
15361 }
15362
15363 _ACEOF
15364
15365
15366         rm -Rf build && mkdir -p build
15367         echo "obj-m := conftest.o" >build/Makefile
15368         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'
15369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370   (eval $ac_try) 2>&5
15371   ac_status=$?
15372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375   (eval $ac_try) 2>&5
15376   ac_status=$?
15377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); }; }; then
15379
15380                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15381 $as_echo "yes" >&6; }
15382
15383 cat >>confdefs.h <<\_ACEOF
15384 #define HAVE_EVICT_INODE 1
15385 _ACEOF
15386
15387
15388 else
15389   $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392                 { $as_echo "$as_me:$LINENO: result: no" >&5
15393 $as_echo "no" >&6; }
15394
15395
15396
15397 fi
15398
15399         rm -Rf build
15400
15401
15402
15403
15404         { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
15405 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
15406
15407
15408 cat confdefs.h - <<_ACEOF >conftest.c
15409 /* confdefs.h.  */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h.  */
15414
15415
15416                 #include <linux/fs.h>
15417
15418 int
15419 main (void)
15420 {
15421
15422                 int (*nr_cached_objects)(struct super_block *)
15423                         __attribute__ ((unused)) = NULL;
15424                 struct super_operations sops __attribute__ ((unused)) = {
15425                         .nr_cached_objects = nr_cached_objects,
15426                 };
15427
15428   ;
15429   return 0;
15430 }
15431
15432 _ACEOF
15433
15434
15435         rm -Rf build && mkdir -p build
15436         echo "obj-m := conftest.o" >build/Makefile
15437         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'
15438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439   (eval $ac_try) 2>&5
15440   ac_status=$?
15441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444   (eval $ac_try) 2>&5
15445   ac_status=$?
15446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447   (exit $ac_status); }; }; then
15448
15449                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15450 $as_echo "yes" >&6; }
15451
15452 cat >>confdefs.h <<\_ACEOF
15453 #define HAVE_NR_CACHED_OBJECTS 1
15454 _ACEOF
15455
15456
15457 else
15458   $as_echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461                 { $as_echo "$as_me:$LINENO: result: no" >&5
15462 $as_echo "no" >&6; }
15463
15464
15465
15466 fi
15467
15468         rm -Rf build
15469
15470
15471
15472
15473         { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
15474 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15475
15476
15477 cat confdefs.h - <<_ACEOF >conftest.c
15478 /* confdefs.h.  */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h.  */
15483
15484
15485                 #include <linux/fs.h>
15486
15487 int
15488 main (void)
15489 {
15490
15491                 void (*free_cached_objects)(struct super_block *, int)
15492                         __attribute__ ((unused)) = NULL;
15493                 struct super_operations sops __attribute__ ((unused)) = {
15494                         .free_cached_objects = free_cached_objects,
15495                 };
15496
15497   ;
15498   return 0;
15499 }
15500
15501 _ACEOF
15502
15503
15504         rm -Rf build && mkdir -p build
15505         echo "obj-m := conftest.o" >build/Makefile
15506         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'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517
15518                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15519 $as_echo "yes" >&6; }
15520
15521 cat >>confdefs.h <<\_ACEOF
15522 #define HAVE_FREE_CACHED_OBJECTS 1
15523 _ACEOF
15524
15525
15526 else
15527   $as_echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529
15530                 { $as_echo "$as_me:$LINENO: result: no" >&5
15531 $as_echo "no" >&6; }
15532
15533
15534
15535 fi
15536
15537         rm -Rf build
15538
15539
15540
15541
15542
15543         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
15544 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15545
15546
15547 cat confdefs.h - <<_ACEOF >conftest.c
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553
15554
15555                 #include <linux/fs.h>
15556
15557 int
15558 main (void)
15559 {
15560
15561                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
15562                 struct file_operations fops __attribute__ ((unused)) = {
15563                         .fallocate = fallocate,
15564                 };
15565
15566   ;
15567   return 0;
15568 }
15569
15570 _ACEOF
15571
15572
15573         rm -Rf build && mkdir -p build
15574         echo "obj-m := conftest.o" >build/Makefile
15575         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'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582   (eval $ac_try) 2>&5
15583   ac_status=$?
15584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); }; }; then
15586
15587                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15588 $as_echo "yes" >&6; }
15589
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE_FILE_FALLOCATE 1
15592 _ACEOF
15593
15594
15595 else
15596   $as_echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599                 { $as_echo "$as_me:$LINENO: result: no" >&5
15600 $as_echo "no" >&6; }
15601
15602
15603
15604 fi
15605
15606         rm -Rf build
15607
15608
15609
15610
15611         { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
15612 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15613
15614
15615 cat confdefs.h - <<_ACEOF >conftest.c
15616 /* confdefs.h.  */
15617 _ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h.  */
15621
15622
15623                 #include <linux/fs.h>
15624
15625 int
15626 main (void)
15627 {
15628
15629                 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
15630                 struct inode_operations fops __attribute__ ((unused)) = {
15631                         .fallocate = fallocate,
15632                 };
15633
15634   ;
15635   return 0;
15636 }
15637
15638 _ACEOF
15639
15640
15641         rm -Rf build && mkdir -p build
15642         echo "obj-m := conftest.o" >build/Makefile
15643         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'
15644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645   (eval $ac_try) 2>&5
15646   ac_status=$?
15647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650   (eval $ac_try) 2>&5
15651   ac_status=$?
15652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); }; }; then
15654
15655                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15656 $as_echo "yes" >&6; }
15657
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_INODE_FALLOCATE 1
15660 _ACEOF
15661
15662
15663 else
15664   $as_echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15666
15667                 { $as_echo "$as_me:$LINENO: result: no" >&5
15668 $as_echo "no" >&6; }
15669
15670
15671
15672 fi
15673
15674         rm -Rf build
15675
15676
15677
15678
15679
15680         { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
15681 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
15682         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
15683                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15684         rc=$?
15685         if test $rc -ne 0; then
15686
15687                 export=0
15688                 for file in fs/inode.c; do
15689                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
15690                         rc=$?
15691                         if test $rc -eq 0; then
15692
15693                                 export=1
15694                                 break;
15695
15696 fi
15697
15698                 done
15699                 if test $export -eq 0; then
15700
15701                         { $as_echo "$as_me:$LINENO: result: no" >&5
15702 $as_echo "no" >&6; }
15703
15704
15705 else
15706
15707                         { $as_echo "$as_me:$LINENO: result: yes" >&5
15708 $as_echo "yes" >&6; }
15709
15710 cat >>confdefs.h <<\_ACEOF
15711 #define HAVE_INSERT_INODE_LOCKED 1
15712 _ACEOF
15713
15714
15715 fi
15716
15717
15718 else
15719
15720                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15721 $as_echo "yes" >&6; }
15722
15723 cat >>confdefs.h <<\_ACEOF
15724 #define HAVE_INSERT_INODE_LOCKED 1
15725 _ACEOF
15726
15727
15728 fi
15729
15730
15731
15732
15733         { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
15734 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
15735         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
15736                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15737         rc=$?
15738         if test $rc -ne 0; then
15739
15740                 export=0
15741                 for file in fs/dcache.c; do
15742                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
15743                         rc=$?
15744                         if test $rc -eq 0; then
15745
15746                                 export=1
15747                                 break;
15748
15749 fi
15750
15751                 done
15752                 if test $export -eq 0; then
15753
15754                         { $as_echo "$as_me:$LINENO: result: no" >&5
15755 $as_echo "no" >&6; }
15756
15757
15758 else
15759
15760                         { $as_echo "$as_me:$LINENO: result: yes" >&5
15761 $as_echo "yes" >&6; }
15762
15763 cat >>confdefs.h <<\_ACEOF
15764 #define HAVE_D_OBTAIN_ALIAS 1
15765 _ACEOF
15766
15767
15768 fi
15769
15770
15771 else
15772
15773                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15774 $as_echo "yes" >&6; }
15775
15776 cat >>confdefs.h <<\_ACEOF
15777 #define HAVE_D_OBTAIN_ALIAS 1
15778 _ACEOF
15779
15780
15781 fi
15782
15783
15784
15785
15786         { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
15787 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
15788         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
15789                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15790         rc=$?
15791         if test $rc -ne 0; then
15792
15793                 export=0
15794                 for file in fs/block_dev.c; do
15795                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
15796                         rc=$?
15797                         if test $rc -eq 0; then
15798
15799                                 export=1
15800                                 break;
15801
15802 fi
15803
15804                 done
15805                 if test $export -eq 0; then
15806
15807                         { $as_echo "$as_me:$LINENO: result: no" >&5
15808 $as_echo "no" >&6; }
15809
15810
15811 else
15812
15813                         { $as_echo "$as_me:$LINENO: result: yes" >&5
15814 $as_echo "yes" >&6; }
15815
15816 cat >>confdefs.h <<\_ACEOF
15817 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
15818 _ACEOF
15819
15820
15821 fi
15822
15823
15824 else
15825
15826                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15827 $as_echo "yes" >&6; }
15828
15829 cat >>confdefs.h <<\_ACEOF
15830 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
15831 _ACEOF
15832
15833
15834 fi
15835
15836
15837
15838
15839         { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
15840 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
15841         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
15842                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15843         rc=$?
15844         if test $rc -ne 0; then
15845
15846                 export=0
15847                 for file in mm/truncate.c; do
15848                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
15849                         rc=$?
15850                         if test $rc -eq 0; then
15851
15852                                 export=1
15853                                 break;
15854
15855 fi
15856
15857                 done
15858                 if test $export -eq 0; then
15859
15860                         { $as_echo "$as_me:$LINENO: result: no" >&5
15861 $as_echo "no" >&6; }
15862
15863
15864 else
15865
15866                         { $as_echo "$as_me:$LINENO: result: yes" >&5
15867 $as_echo "yes" >&6; }
15868
15869 cat >>confdefs.h <<\_ACEOF
15870 #define HAVE_TRUNCATE_SETSIZE 1
15871 _ACEOF
15872
15873
15874 fi
15875
15876
15877 else
15878
15879                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15880 $as_echo "yes" >&6; }
15881
15882 cat >>confdefs.h <<\_ACEOF
15883 #define HAVE_TRUNCATE_SETSIZE 1
15884 _ACEOF
15885
15886
15887 fi
15888
15889
15890
15891
15892         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
15893 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
15894         tmp_flags="$EXTRA_KCFLAGS"
15895         EXTRA_KCFLAGS="-Werror"
15896
15897
15898 cat confdefs.h - <<_ACEOF >conftest.c
15899 /* confdefs.h.  */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h.  */
15904
15905
15906                 #include <linux/security.h>
15907
15908 int
15909 main (void)
15910 {
15911
15912                 struct inode *ip __attribute__ ((unused)) = NULL;
15913                 struct inode *dip __attribute__ ((unused)) = NULL;
15914                 const struct qstr *str __attribute__ ((unused)) = NULL;
15915                 char *name __attribute__ ((unused)) = NULL;
15916                 void *value __attribute__ ((unused)) = NULL;
15917                 size_t len __attribute__ ((unused)) = 0;
15918
15919                 security_inode_init_security(ip, dip, str, &name, &value, &len);
15920
15921   ;
15922   return 0;
15923 }
15924
15925 _ACEOF
15926
15927
15928         rm -Rf build && mkdir -p build
15929         echo "obj-m := conftest.o" >build/Makefile
15930         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'
15931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932   (eval $ac_try) 2>&5
15933   ac_status=$?
15934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937   (eval $ac_try) 2>&5
15938   ac_status=$?
15939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940   (exit $ac_status); }; }; then
15941
15942                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15943 $as_echo "yes" >&6; }
15944
15945 cat >>confdefs.h <<\_ACEOF
15946 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
15947 _ACEOF
15948
15949
15950 else
15951   $as_echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15953
15954                 { $as_echo "$as_me:$LINENO: result: no" >&5
15955 $as_echo "no" >&6; }
15956
15957
15958
15959 fi
15960
15961         rm -Rf build
15962
15963
15964         EXTRA_KCFLAGS="$tmp_flags"
15965
15966
15967         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
15968 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
15969         tmp_flags="$EXTRA_KCFLAGS"
15970         EXTRA_KCFLAGS="-Werror"
15971
15972
15973 cat confdefs.h - <<_ACEOF >conftest.c
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979
15980
15981                 #include <linux/security.h>
15982
15983 int
15984 main (void)
15985 {
15986
15987                 struct inode *ip __attribute__ ((unused)) = NULL;
15988                 struct inode *dip __attribute__ ((unused)) = NULL;
15989                 const struct qstr *str __attribute__ ((unused)) = NULL;
15990                 initxattrs func __attribute__ ((unused)) = NULL;
15991
15992                 security_inode_init_security(ip, dip, str, func, NULL);
15993
15994   ;
15995   return 0;
15996 }
15997
15998 _ACEOF
15999
16000
16001         rm -Rf build && mkdir -p build
16002         echo "obj-m := conftest.o" >build/Makefile
16003         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'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010   (eval $ac_try) 2>&5
16011   ac_status=$?
16012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }; }; then
16014
16015                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16016 $as_echo "yes" >&6; }
16017
16018 cat >>confdefs.h <<\_ACEOF
16019 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
16020 _ACEOF
16021
16022
16023 else
16024   $as_echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027                 { $as_echo "$as_me:$LINENO: result: no" >&5
16028 $as_echo "no" >&6; }
16029
16030
16031
16032 fi
16033
16034         rm -Rf build
16035
16036
16037         EXTRA_KCFLAGS="$tmp_flags"
16038
16039
16040         { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
16041 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
16042         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16043                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16044         rc=$?
16045         if test $rc -ne 0; then
16046
16047                 export=0
16048                 for file in fs/super.c; do
16049                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
16050                         rc=$?
16051                         if test $rc -eq 0; then
16052
16053                                 export=1
16054                                 break;
16055
16056 fi
16057
16058                 done
16059                 if test $export -eq 0; then
16060
16061                         { $as_echo "$as_me:$LINENO: result: no" >&5
16062 $as_echo "no" >&6; }
16063
16064
16065 else
16066
16067                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16068 $as_echo "yes" >&6; }
16069
16070 cat >>confdefs.h <<\_ACEOF
16071 #define HAVE_MOUNT_NODEV 1
16072 _ACEOF
16073
16074
16075 fi
16076
16077
16078 else
16079
16080                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16081 $as_echo "yes" >&6; }
16082
16083 cat >>confdefs.h <<\_ACEOF
16084 #define HAVE_MOUNT_NODEV 1
16085 _ACEOF
16086
16087
16088 fi
16089
16090
16091
16092
16093         { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
16094 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
16095
16096
16097 cat confdefs.h - <<_ACEOF >conftest.c
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103
16104
16105                 #include <linux/fs.h>
16106
16107 int
16108 main (void)
16109 {
16110
16111                 int (*shrink)(struct shrinker *, struct shrink_control *sc)
16112                         __attribute__ ((unused)) = NULL;
16113                 struct super_block sb __attribute__ ((unused)) = {
16114                         .s_shrink.shrink = shrink,
16115                         .s_shrink.seeks = DEFAULT_SEEKS,
16116                         .s_shrink.batch = 0,
16117                 };
16118
16119   ;
16120   return 0;
16121 }
16122
16123 _ACEOF
16124
16125
16126         rm -Rf build && mkdir -p build
16127         echo "obj-m := conftest.o" >build/Makefile
16128         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'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135   (eval $ac_try) 2>&5
16136   ac_status=$?
16137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); }; }; then
16139
16140                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16141 $as_echo "yes" >&6; }
16142
16143 cat >>confdefs.h <<\_ACEOF
16144 #define HAVE_SHRINK 1
16145 _ACEOF
16146
16147
16148
16149 else
16150   $as_echo "$as_me: failed program was:" >&5
16151 sed 's/^/| /' conftest.$ac_ext >&5
16152
16153                 { $as_echo "$as_me:$LINENO: result: no" >&5
16154 $as_echo "no" >&6; }
16155
16156
16157
16158 fi
16159
16160         rm -Rf build
16161
16162
16163
16164
16165         { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
16166 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
16167
16168
16169 cat confdefs.h - <<_ACEOF >conftest.c
16170 /* confdefs.h.  */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h.  */
16175
16176
16177                 #include <linux/fs.h>
16178
16179 int
16180 main (void)
16181 {
16182
16183                 struct super_block sb __attribute__ ((unused));
16184                 sb.s_bdi = NULL;
16185
16186   ;
16187   return 0;
16188 }
16189
16190 _ACEOF
16191
16192
16193         rm -Rf build && mkdir -p build
16194         echo "obj-m := conftest.o" >build/Makefile
16195         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'
16196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197   (eval $ac_try) 2>&5
16198   ac_status=$?
16199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202   (eval $ac_try) 2>&5
16203   ac_status=$?
16204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; }; then
16206
16207                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16208 $as_echo "yes" >&6; }
16209
16210 cat >>confdefs.h <<\_ACEOF
16211 #define HAVE_BDI 1
16212 _ACEOF
16213
16214
16215 else
16216   $as_echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219                 { $as_echo "$as_me:$LINENO: result: no" >&5
16220 $as_echo "no" >&6; }
16221
16222
16223
16224 fi
16225
16226         rm -Rf build
16227
16228
16229
16230
16231         { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
16232 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
16233         grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
16234                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16235         rc=$?
16236         if test $rc -ne 0; then
16237
16238                 export=0
16239                 for file in mm/backing-dev.c; do
16240                         grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
16241                         rc=$?
16242                         if test $rc -eq 0; then
16243
16244                                 export=1
16245                                 break;
16246
16247 fi
16248
16249                 done
16250                 if test $export -eq 0; then
16251
16252                         { $as_echo "$as_me:$LINENO: result: no" >&5
16253 $as_echo "no" >&6; }
16254
16255
16256 else
16257
16258                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16259 $as_echo "yes" >&6; }
16260
16261 cat >>confdefs.h <<\_ACEOF
16262 #define HAVE_BDI_SETUP_AND_REGISTER 1
16263 _ACEOF
16264
16265
16266 fi
16267
16268
16269 else
16270
16271                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16272 $as_echo "yes" >&6; }
16273
16274 cat >>confdefs.h <<\_ACEOF
16275 #define HAVE_BDI_SETUP_AND_REGISTER 1
16276 _ACEOF
16277
16278
16279 fi
16280
16281
16282
16283
16284         { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
16285 $as_echo_n "checking whether set_nlink() is available... " >&6; }
16286
16287
16288 cat confdefs.h - <<_ACEOF >conftest.c
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294
16295
16296                 #include <linux/fs.h>
16297
16298 int
16299 main (void)
16300 {
16301
16302                 struct inode node;
16303                 unsigned int link = 0;
16304                 (void) set_nlink(&node, link);
16305
16306   ;
16307   return 0;
16308 }
16309
16310 _ACEOF
16311
16312
16313         rm -Rf build && mkdir -p build
16314         echo "obj-m := conftest.o" >build/Makefile
16315         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'
16316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317   (eval $ac_try) 2>&5
16318   ac_status=$?
16319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; }; then
16326
16327                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16328 $as_echo "yes" >&6; }
16329
16330 cat >>confdefs.h <<\_ACEOF
16331 #define HAVE_SET_NLINK 1
16332 _ACEOF
16333
16334
16335 else
16336   $as_echo "$as_me: failed program was:" >&5
16337 sed 's/^/| /' conftest.$ac_ext >&5
16338
16339                 { $as_echo "$as_me:$LINENO: result: no" >&5
16340 $as_echo "no" >&6; }
16341
16342
16343
16344 fi
16345
16346         rm -Rf build
16347
16348
16349
16350
16351         if test "$LINUX_OBJ" != "$LINUX"; then
16352
16353                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16354
16355 fi
16356
16357
16358
16359
16360                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
16361         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
16362         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
16363
16364
16365  ;;
16366                 user)
16367
16368
16369 # Check whether --with-udevdir was given.
16370 if test "${with_udevdir+set}" = set; then
16371   withval=$with_udevdir; udevdir=$withval
16372 else
16373   udevdir='${exec_prefix}/lib/udev'
16374 fi
16375
16376
16377
16378 # Check whether --with-udevruledir was given.
16379 if test "${with_udevruledir+set}" = set; then
16380   withval=$with_udevruledir; udevruledir=$withval
16381 else
16382   udevruledir='${udevdir}/rules.d'
16383 fi
16384
16385
16386
16387
16388
16389
16390         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
16391 $as_echo_n "checking for target asm dir... " >&6; }
16392         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
16393
16394         case $TARGET_ARCH in
16395         i386|x86_64)
16396                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
16397                 ;;
16398         *)
16399                 TARGET_ASM_DIR=asm-generic
16400                 ;;
16401         esac
16402
16403
16404         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
16405 $as_echo "$TARGET_ASM_DIR" >&6; }
16406
16407
16408         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
16409 $as_echo_n "checking for ioctl()... " >&6; }
16410         cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h.  */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h.  */
16416 #include <unistd.h>
16417
16418 _ACEOF
16419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16420   $EGREP "ioctl" >/dev/null 2>&1; then
16421   is_unistd=yes
16422 else
16423   is_unistd=no
16424 fi
16425 rm -f conftest*
16426
16427         cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 #include <sys/ioctl.h>
16434
16435 _ACEOF
16436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16437   $EGREP "ioctl" >/dev/null 2>&1; then
16438   is_sys_ioctl=yes
16439 else
16440   is_sys_ioctl=no
16441 fi
16442 rm -f conftest*
16443
16444         cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h.  */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h.  */
16450 #include <stropts.h>
16451
16452 _ACEOF
16453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16454   $EGREP "ioctl" >/dev/null 2>&1; then
16455   is_stropts=yes
16456 else
16457   is_stropts=no
16458 fi
16459 rm -f conftest*
16460
16461
16462         if test $is_unistd = yes; then
16463                 result=unistd.h
16464
16465 cat >>confdefs.h <<\_ACEOF
16466 #define HAVE_IOCTL_IN_UNISTD_H 1
16467 _ACEOF
16468
16469         else
16470
16471                 if test $is_sys_ioctl = yes; then
16472                         result=sys/ioctl.h
16473
16474 cat >>confdefs.h <<\_ACEOF
16475 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
16476 _ACEOF
16477
16478                 elif test $is_stropts = yes; then
16479
16480 cat >>confdefs.h <<\_ACEOF
16481 #define HAVE_IOCTL_IN_STROPTS_H 1
16482 _ACEOF
16483
16484                 else
16485                         result=no
16486                 fi
16487         fi
16488
16489         if test $result = no; then
16490                 { $as_echo "$as_me:$LINENO: result: no" >&5
16491 $as_echo "no" >&6; }
16492                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
16493 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
16494    { (exit 1); exit 1; }; }
16495         else
16496                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16497 $as_echo "yes" >&6; }
16498         fi
16499
16500
16501         ZLIB=
16502
16503         if test "${ac_cv_header_zlib_h+set}" = set; then
16504   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16505 $as_echo_n "checking for zlib.h... " >&6; }
16506 if test "${ac_cv_header_zlib_h+set}" = set; then
16507   $as_echo_n "(cached) " >&6
16508 fi
16509 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16510 $as_echo "$ac_cv_header_zlib_h" >&6; }
16511 else
16512   # Is the header compilable?
16513 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
16514 $as_echo_n "checking zlib.h usability... " >&6; }
16515 cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 $ac_includes_default
16522 #include <zlib.h>
16523 _ACEOF
16524 rm -f conftest.$ac_objext
16525 if { (ac_try="$ac_compile"
16526 case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16531 $as_echo "$ac_try_echo") >&5
16532   (eval "$ac_compile") 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } && {
16539          test -z "$ac_c_werror_flag" ||
16540          test ! -s conftest.err
16541        } && test -s conftest.$ac_objext; then
16542   ac_header_compiler=yes
16543 else
16544   $as_echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547         ac_header_compiler=no
16548 fi
16549
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 $as_echo "$ac_header_compiler" >&6; }
16553
16554 # Is the header present?
16555 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
16556 $as_echo_n "checking zlib.h presence... " >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 #include <zlib.h>
16564 _ACEOF
16565 if { (ac_try="$ac_cpp conftest.$ac_ext"
16566 case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16571 $as_echo "$ac_try_echo") >&5
16572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16573   ac_status=$?
16574   grep -v '^ *+' conftest.er1 >conftest.err
16575   rm -f conftest.er1
16576   cat conftest.err >&5
16577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578   (exit $ac_status); } >/dev/null && {
16579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16580          test ! -s conftest.err
16581        }; then
16582   ac_header_preproc=yes
16583 else
16584   $as_echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16586
16587   ac_header_preproc=no
16588 fi
16589
16590 rm -f conftest.err conftest.$ac_ext
16591 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16592 $as_echo "$ac_header_preproc" >&6; }
16593
16594 # So?  What about this header?
16595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16596   yes:no: )
16597     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16598 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16599     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
16600 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
16601     ac_header_preproc=yes
16602     ;;
16603   no:yes:* )
16604     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
16605 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
16606     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
16607 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
16608     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
16609 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
16610     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
16611 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16612     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
16613 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
16614     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
16615 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
16616
16617     ;;
16618 esac
16619 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
16620 $as_echo_n "checking for zlib.h... " >&6; }
16621 if test "${ac_cv_header_zlib_h+set}" = set; then
16622   $as_echo_n "(cached) " >&6
16623 else
16624   ac_cv_header_zlib_h=$ac_header_preproc
16625 fi
16626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
16627 $as_echo "$ac_cv_header_zlib_h" >&6; }
16628
16629 fi
16630 if test "x$ac_cv_header_zlib_h" = x""yes; then
16631   :
16632 else
16633   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16635 { { $as_echo "$as_me:$LINENO: error:
16636         *** zlib.h missing, zlib-devel package required
16637 See \`config.log' for more details." >&5
16638 $as_echo "$as_me: error:
16639         *** zlib.h missing, zlib-devel package required
16640 See \`config.log' for more details." >&2;}
16641    { (exit 1); exit 1; }; }; }
16642 fi
16643
16644
16645
16646
16647 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
16648 $as_echo_n "checking for compress2 in -lz... " >&6; }
16649 if test "${ac_cv_lib_z_compress2+set}" = set; then
16650   $as_echo_n "(cached) " >&6
16651 else
16652   ac_check_lib_save_LIBS=$LIBS
16653 LIBS="-lz  $LIBS"
16654 cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h.  */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h.  */
16660
16661 /* Override any GCC internal prototype to avoid an error.
16662    Use char because int might match the return type of a GCC
16663    builtin and then its argument prototype would still apply.  */
16664 #ifdef __cplusplus
16665 extern "C"
16666 #endif
16667 char compress2 ();
16668 int
16669 main ()
16670 {
16671 return compress2 ();
16672   ;
16673   return 0;
16674 }
16675 _ACEOF
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (ac_try="$ac_link"
16678 case "(($ac_try" in
16679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680   *) ac_try_echo=$ac_try;;
16681 esac
16682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16683 $as_echo "$ac_try_echo") >&5
16684   (eval "$ac_link") 2>conftest.er1
16685   ac_status=$?
16686   grep -v '^ *+' conftest.er1 >conftest.err
16687   rm -f conftest.er1
16688   cat conftest.err >&5
16689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); } && {
16691          test -z "$ac_c_werror_flag" ||
16692          test ! -s conftest.err
16693        } && test -s conftest$ac_exeext && {
16694          test "$cross_compiling" = yes ||
16695          $as_test_x conftest$ac_exeext
16696        }; then
16697   ac_cv_lib_z_compress2=yes
16698 else
16699   $as_echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702         ac_cv_lib_z_compress2=no
16703 fi
16704
16705 rm -rf conftest.dSYM
16706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16707       conftest$ac_exeext conftest.$ac_ext
16708 LIBS=$ac_check_lib_save_LIBS
16709 fi
16710 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
16711 $as_echo "$ac_cv_lib_z_compress2" >&6; }
16712 if test "x$ac_cv_lib_z_compress2" = x""yes; then
16713   cat >>confdefs.h <<_ACEOF
16714 #define HAVE_LIBZ 1
16715 _ACEOF
16716
16717   LIBS="-lz $LIBS"
16718
16719 else
16720   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16722 { { $as_echo "$as_me:$LINENO: error:
16723         *** compress2() missing, zlib-devel package required
16724 See \`config.log' for more details." >&5
16725 $as_echo "$as_me: error:
16726         *** compress2() missing, zlib-devel package required
16727 See \`config.log' for more details." >&2;}
16728    { (exit 1); exit 1; }; }; }
16729 fi
16730
16731
16732
16733 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
16734 $as_echo_n "checking for uncompress in -lz... " >&6; }
16735 if test "${ac_cv_lib_z_uncompress+set}" = set; then
16736   $as_echo_n "(cached) " >&6
16737 else
16738   ac_check_lib_save_LIBS=$LIBS
16739 LIBS="-lz  $LIBS"
16740 cat >conftest.$ac_ext <<_ACEOF
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746
16747 /* Override any GCC internal prototype to avoid an error.
16748    Use char because int might match the return type of a GCC
16749    builtin and then its argument prototype would still apply.  */
16750 #ifdef __cplusplus
16751 extern "C"
16752 #endif
16753 char uncompress ();
16754 int
16755 main ()
16756 {
16757 return uncompress ();
16758   ;
16759   return 0;
16760 }
16761 _ACEOF
16762 rm -f conftest.$ac_objext conftest$ac_exeext
16763 if { (ac_try="$ac_link"
16764 case "(($ac_try" in
16765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766   *) ac_try_echo=$ac_try;;
16767 esac
16768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16769 $as_echo "$ac_try_echo") >&5
16770   (eval "$ac_link") 2>conftest.er1
16771   ac_status=$?
16772   grep -v '^ *+' conftest.er1 >conftest.err
16773   rm -f conftest.er1
16774   cat conftest.err >&5
16775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); } && {
16777          test -z "$ac_c_werror_flag" ||
16778          test ! -s conftest.err
16779        } && test -s conftest$ac_exeext && {
16780          test "$cross_compiling" = yes ||
16781          $as_test_x conftest$ac_exeext
16782        }; then
16783   ac_cv_lib_z_uncompress=yes
16784 else
16785   $as_echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788         ac_cv_lib_z_uncompress=no
16789 fi
16790
16791 rm -rf conftest.dSYM
16792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16793       conftest$ac_exeext conftest.$ac_ext
16794 LIBS=$ac_check_lib_save_LIBS
16795 fi
16796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
16797 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16798 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
16799   cat >>confdefs.h <<_ACEOF
16800 #define HAVE_LIBZ 1
16801 _ACEOF
16802
16803   LIBS="-lz $LIBS"
16804
16805 else
16806   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16808 { { $as_echo "$as_me:$LINENO: error:
16809         *** uncompress() missing, zlib-devel package required
16810 See \`config.log' for more details." >&5
16811 $as_echo "$as_me: error:
16812         *** uncompress() missing, zlib-devel package required
16813 See \`config.log' for more details." >&2;}
16814    { (exit 1); exit 1; }; }; }
16815 fi
16816
16817
16818
16819 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
16820 $as_echo_n "checking for crc32 in -lz... " >&6; }
16821 if test "${ac_cv_lib_z_crc32+set}" = set; then
16822   $as_echo_n "(cached) " >&6
16823 else
16824   ac_check_lib_save_LIBS=$LIBS
16825 LIBS="-lz  $LIBS"
16826 cat >conftest.$ac_ext <<_ACEOF
16827 /* confdefs.h.  */
16828 _ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h.  */
16832
16833 /* Override any GCC internal prototype to avoid an error.
16834    Use char because int might match the return type of a GCC
16835    builtin and then its argument prototype would still apply.  */
16836 #ifdef __cplusplus
16837 extern "C"
16838 #endif
16839 char crc32 ();
16840 int
16841 main ()
16842 {
16843 return crc32 ();
16844   ;
16845   return 0;
16846 }
16847 _ACEOF
16848 rm -f conftest.$ac_objext conftest$ac_exeext
16849 if { (ac_try="$ac_link"
16850 case "(($ac_try" in
16851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852   *) ac_try_echo=$ac_try;;
16853 esac
16854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16855 $as_echo "$ac_try_echo") >&5
16856   (eval "$ac_link") 2>conftest.er1
16857   ac_status=$?
16858   grep -v '^ *+' conftest.er1 >conftest.err
16859   rm -f conftest.er1
16860   cat conftest.err >&5
16861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); } && {
16863          test -z "$ac_c_werror_flag" ||
16864          test ! -s conftest.err
16865        } && test -s conftest$ac_exeext && {
16866          test "$cross_compiling" = yes ||
16867          $as_test_x conftest$ac_exeext
16868        }; then
16869   ac_cv_lib_z_crc32=yes
16870 else
16871   $as_echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874         ac_cv_lib_z_crc32=no
16875 fi
16876
16877 rm -rf conftest.dSYM
16878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16879       conftest$ac_exeext conftest.$ac_ext
16880 LIBS=$ac_check_lib_save_LIBS
16881 fi
16882 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
16883 $as_echo "$ac_cv_lib_z_crc32" >&6; }
16884 if test "x$ac_cv_lib_z_crc32" = x""yes; then
16885   cat >>confdefs.h <<_ACEOF
16886 #define HAVE_LIBZ 1
16887 _ACEOF
16888
16889   LIBS="-lz $LIBS"
16890
16891 else
16892   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16894 { { $as_echo "$as_me:$LINENO: error:
16895         *** crc32() missing, zlib-devel package required
16896 See \`config.log' for more details." >&5
16897 $as_echo "$as_me: error:
16898         *** crc32() missing, zlib-devel package required
16899 See \`config.log' for more details." >&2;}
16900    { (exit 1); exit 1; }; }; }
16901 fi
16902
16903
16904         ZLIB="-lz"
16905
16906
16907 cat >>confdefs.h <<\_ACEOF
16908 #define HAVE_ZLIB 1
16909 _ACEOF
16910
16911
16912
16913         LIBUUID=
16914
16915         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16916   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
16917 $as_echo_n "checking for uuid/uuid.h... " >&6; }
16918 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
16919   $as_echo_n "(cached) " >&6
16920 fi
16921 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
16922 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
16923 else
16924   # Is the header compilable?
16925 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
16926 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
16927 cat >conftest.$ac_ext <<_ACEOF
16928 /* confdefs.h.  */
16929 _ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h.  */
16933 $ac_includes_default
16934 #include <uuid/uuid.h>
16935 _ACEOF
16936 rm -f conftest.$ac_objext
16937 if { (ac_try="$ac_compile"
16938 case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16943 $as_echo "$ac_try_echo") >&5
16944   (eval "$ac_compile") 2>conftest.er1
16945   ac_status=$?
16946   grep -v '^ *+' conftest.er1 >conftest.err
16947   rm -f conftest.er1
16948   cat conftest.err >&5
16949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); } && {
16951          test -z "$ac_c_werror_flag" ||
16952          test ! -s conftest.err
16953        } && test -s conftest.$ac_objext; then
16954   ac_header_compiler=yes
16955 else
16956   $as_echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16958
16959         ac_header_compiler=no
16960 fi
16961
16962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16963 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16964 $as_echo "$ac_header_compiler" >&6; }
16965
16966 # Is the header present?
16967 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
16968 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975 #include <uuid/uuid.h>
16976 _ACEOF
16977 if { (ac_try="$ac_cpp conftest.$ac_ext"
16978 case "(($ac_try" in
16979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980   *) ac_try_echo=$ac_try;;
16981 esac
16982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16983 $as_echo "$ac_try_echo") >&5
16984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } >/dev/null && {
16991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16992          test ! -s conftest.err
16993        }; then
16994   ac_header_preproc=yes
16995 else
16996   $as_echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16998
16999   ac_header_preproc=no
17000 fi
17001
17002 rm -f conftest.err conftest.$ac_ext
17003 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17004 $as_echo "$ac_header_preproc" >&6; }
17005
17006 # So?  What about this header?
17007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17008   yes:no: )
17009     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
17010 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17011     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
17012 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
17013     ac_header_preproc=yes
17014     ;;
17015   no:yes:* )
17016     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
17017 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
17018     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
17019 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
17020     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
17021 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
17022     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
17023 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17024     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
17025 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
17026     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
17027 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
17028
17029     ;;
17030 esac
17031 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
17032 $as_echo_n "checking for uuid/uuid.h... " >&6; }
17033 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
17034   $as_echo_n "(cached) " >&6
17035 else
17036   ac_cv_header_uuid_uuid_h=$ac_header_preproc
17037 fi
17038 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
17039 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
17040
17041 fi
17042 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
17043   :
17044 else
17045   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17047 { { $as_echo "$as_me:$LINENO: error:
17048         *** uuid/uuid.h missing, libuuid-devel package required
17049 See \`config.log' for more details." >&5
17050 $as_echo "$as_me: error:
17051         *** uuid/uuid.h missing, libuuid-devel package required
17052 See \`config.log' for more details." >&2;}
17053    { (exit 1); exit 1; }; }; }
17054 fi
17055
17056
17057
17058
17059 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
17060 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17061 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
17062   $as_echo_n "(cached) " >&6
17063 else
17064   ac_check_lib_save_LIBS=$LIBS
17065 LIBS="-luuid  $LIBS"
17066 cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h.  */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h.  */
17072
17073 /* Override any GCC internal prototype to avoid an error.
17074    Use char because int might match the return type of a GCC
17075    builtin and then its argument prototype would still apply.  */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char uuid_generate ();
17080 int
17081 main ()
17082 {
17083 return uuid_generate ();
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092   *) ac_try_echo=$ac_try;;
17093 esac
17094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095 $as_echo "$ac_try_echo") >&5
17096   (eval "$ac_link") 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } && {
17103          test -z "$ac_c_werror_flag" ||
17104          test ! -s conftest.err
17105        } && test -s conftest$ac_exeext && {
17106          test "$cross_compiling" = yes ||
17107          $as_test_x conftest$ac_exeext
17108        }; then
17109   ac_cv_lib_uuid_uuid_generate=yes
17110 else
17111   $as_echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114         ac_cv_lib_uuid_uuid_generate=no
17115 fi
17116
17117 rm -rf conftest.dSYM
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119       conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17121 fi
17122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
17123 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17124 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
17125   cat >>confdefs.h <<_ACEOF
17126 #define HAVE_LIBUUID 1
17127 _ACEOF
17128
17129   LIBS="-luuid $LIBS"
17130
17131 else
17132   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17134 { { $as_echo "$as_me:$LINENO: error:
17135         *** uuid_generate() missing, libuuid-devel package required
17136 See \`config.log' for more details." >&5
17137 $as_echo "$as_me: error:
17138         *** uuid_generate() missing, libuuid-devel package required
17139 See \`config.log' for more details." >&2;}
17140    { (exit 1); exit 1; }; }; }
17141 fi
17142
17143
17144
17145 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
17146 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17147 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
17148   $as_echo_n "(cached) " >&6
17149 else
17150   ac_check_lib_save_LIBS=$LIBS
17151 LIBS="-luuid  $LIBS"
17152 cat >conftest.$ac_ext <<_ACEOF
17153 /* confdefs.h.  */
17154 _ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h.  */
17158
17159 /* Override any GCC internal prototype to avoid an error.
17160    Use char because int might match the return type of a GCC
17161    builtin and then its argument prototype would still apply.  */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char uuid_is_null ();
17166 int
17167 main ()
17168 {
17169 return uuid_is_null ();
17170   ;
17171   return 0;
17172 }
17173 _ACEOF
17174 rm -f conftest.$ac_objext conftest$ac_exeext
17175 if { (ac_try="$ac_link"
17176 case "(($ac_try" in
17177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178   *) ac_try_echo=$ac_try;;
17179 esac
17180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17181 $as_echo "$ac_try_echo") >&5
17182   (eval "$ac_link") 2>conftest.er1
17183   ac_status=$?
17184   grep -v '^ *+' conftest.er1 >conftest.err
17185   rm -f conftest.er1
17186   cat conftest.err >&5
17187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); } && {
17189          test -z "$ac_c_werror_flag" ||
17190          test ! -s conftest.err
17191        } && test -s conftest$ac_exeext && {
17192          test "$cross_compiling" = yes ||
17193          $as_test_x conftest$ac_exeext
17194        }; then
17195   ac_cv_lib_uuid_uuid_is_null=yes
17196 else
17197   $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200         ac_cv_lib_uuid_uuid_is_null=no
17201 fi
17202
17203 rm -rf conftest.dSYM
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205       conftest$ac_exeext conftest.$ac_ext
17206 LIBS=$ac_check_lib_save_LIBS
17207 fi
17208 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17209 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17210 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
17211   cat >>confdefs.h <<_ACEOF
17212 #define HAVE_LIBUUID 1
17213 _ACEOF
17214
17215   LIBS="-luuid $LIBS"
17216
17217 else
17218   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17220 { { $as_echo "$as_me:$LINENO: error:
17221         *** uuid_is_null() missing, libuuid-devel package required
17222 See \`config.log' for more details." >&5
17223 $as_echo "$as_me: error:
17224         *** uuid_is_null() missing, libuuid-devel package required
17225 See \`config.log' for more details." >&2;}
17226    { (exit 1); exit 1; }; }; }
17227 fi
17228
17229
17230         LIBUUID="-luuid"
17231
17232
17233 cat >>confdefs.h <<\_ACEOF
17234 #define HAVE_LIBUUID 1
17235 _ACEOF
17236
17237
17238
17239
17240 # Check whether --with-blkid was given.
17241 if test "${with_blkid+set}" = set; then
17242   withval=$with_blkid;
17243 else
17244   with_blkid=check
17245 fi
17246
17247
17248         LIBBLKID=
17249         if test "x$with_blkid" != xno; then
17250
17251                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
17252 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17253 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
17254   $as_echo_n "(cached) " >&6
17255 else
17256   ac_check_lib_save_LIBS=$LIBS
17257 LIBS="-lblkid  $LIBS"
17258 cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h.  */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h.  */
17264
17265 /* Override any GCC internal prototype to avoid an error.
17266    Use char because int might match the return type of a GCC
17267    builtin and then its argument prototype would still apply.  */
17268 #ifdef __cplusplus
17269 extern "C"
17270 #endif
17271 char blkid_get_cache ();
17272 int
17273 main ()
17274 {
17275 return blkid_get_cache ();
17276   ;
17277   return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (ac_try="$ac_link"
17282 case "(($ac_try" in
17283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284   *) ac_try_echo=$ac_try;;
17285 esac
17286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17287 $as_echo "$ac_try_echo") >&5
17288   (eval "$ac_link") 2>conftest.er1
17289   ac_status=$?
17290   grep -v '^ *+' conftest.er1 >conftest.err
17291   rm -f conftest.er1
17292   cat conftest.err >&5
17293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); } && {
17295          test -z "$ac_c_werror_flag" ||
17296          test ! -s conftest.err
17297        } && test -s conftest$ac_exeext && {
17298          test "$cross_compiling" = yes ||
17299          $as_test_x conftest$ac_exeext
17300        }; then
17301   ac_cv_lib_blkid_blkid_get_cache=yes
17302 else
17303   $as_echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17305
17306         ac_cv_lib_blkid_blkid_get_cache=no
17307 fi
17308
17309 rm -rf conftest.dSYM
17310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17311       conftest$ac_exeext conftest.$ac_ext
17312 LIBS=$ac_check_lib_save_LIBS
17313 fi
17314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17315 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17316 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
17317
17318                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
17319 $as_echo_n "checking for blkid zfs support... " >&6; }
17320
17321                         ZFS_DEV=`mktemp`
17322                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
17323                                 >/dev/null 2>/dev/null
17324                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17325                                 dd of=$ZFS_DEV bs=1k count=8 \
17326                                 seek=132 conv=notrunc &>/dev/null \
17327                                 >/dev/null 2>/dev/null
17328
17329                         saved_LDFLAGS="$LDFLAGS"
17330                         LDFLAGS="-lblkid"
17331
17332                         if test "$cross_compiling" = yes; then
17333   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17335 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17336 See \`config.log' for more details." >&5
17337 $as_echo "$as_me: error: cannot run test program while cross compiling
17338 See \`config.log' for more details." >&2;}
17339    { (exit 1); exit 1; }; }; }
17340 else
17341   cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h.  */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h.  */
17347
17348                                 #include <stdio.h>
17349                                 #include <blkid/blkid.h>
17350
17351 int
17352 main ()
17353 {
17354
17355                                 blkid_cache cache;
17356                                 char *value;
17357
17358                                 if (blkid_get_cache(&cache, NULL) < 0)
17359                                         return 1;
17360
17361                                 value = blkid_get_tag_value(cache, "TYPE",
17362                                                             "$ZFS_DEV");
17363                                 if (!value) {
17364                                         blkid_put_cache(cache);
17365                                         return 2;
17366                                 }
17367
17368                                 if (strcmp(value, "zfs")) {
17369                                         free(value);
17370                                         blkid_put_cache(cache);
17371                                         return 3;
17372                                 }
17373
17374                                 free(value);
17375                                 blkid_put_cache(cache);
17376
17377   ;
17378   return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest$ac_exeext
17382 if { (ac_try="$ac_link"
17383 case "(($ac_try" in
17384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385   *) ac_try_echo=$ac_try;;
17386 esac
17387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17388 $as_echo "$ac_try_echo") >&5
17389   (eval "$ac_link") 2>&5
17390   ac_status=$?
17391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17393   { (case "(($ac_try" in
17394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395   *) ac_try_echo=$ac_try;;
17396 esac
17397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17398 $as_echo "$ac_try_echo") >&5
17399   (eval "$ac_try") 2>&5
17400   ac_status=$?
17401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); }; }; then
17403
17404                                 rm -f $ZFS_DEV
17405                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17406 $as_echo "yes" >&6; }
17407                                 LIBBLKID="-lblkid"
17408
17409
17410 cat >>confdefs.h <<\_ACEOF
17411 #define HAVE_LIBBLKID 1
17412 _ACEOF
17413
17414
17415 else
17416   $as_echo "$as_me: program exited with status $ac_status" >&5
17417 $as_echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17419
17420 ( exit $ac_status )
17421
17422                                 rm -f $ZFS_DEV
17423                                 { $as_echo "$as_me:$LINENO: result: no" >&5
17424 $as_echo "no" >&6; }
17425                                 if test "x$with_blkid" != xcheck; then
17426   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17428 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17429 See \`config.log' for more details." >&5
17430 $as_echo "$as_me: error: --with-blkid given but unavailable
17431 See \`config.log' for more details." >&2;}
17432    { (exit 1); exit 1; }; }; }
17433 fi
17434
17435
17436 fi
17437 rm -rf conftest.dSYM
17438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17439 fi
17440
17441
17442
17443                         LDFLAGS="$saved_LDFLAGS"
17444
17445 else
17446
17447                         if test "x$with_blkid" != xcheck; then
17448   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17450 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
17451 See \`config.log' for more details." >&5
17452 $as_echo "$as_me: error: --with-blkid given but unavailable
17453 See \`config.log' for more details." >&2;}
17454    { (exit 1); exit 1; }; }; }
17455 fi
17456
17457
17458
17459 fi
17460
17461
17462 fi
17463
17464
17465
17466
17467 # Check whether --with-selinux was given.
17468 if test "${with_selinux+set}" = set; then
17469   withval=$with_selinux;
17470 else
17471   with_selinux=check
17472 fi
17473
17474
17475         LIBSELINUX=
17476         if test "x$with_selinux" != xno; then
17477
17478                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17479   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17480 $as_echo_n "checking for selinux/selinux.h... " >&6; }
17481 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17482   $as_echo_n "(cached) " >&6
17483 fi
17484 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17485 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17486 else
17487   # Is the header compilable?
17488 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
17489 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
17490 cat >conftest.$ac_ext <<_ACEOF
17491 /* confdefs.h.  */
17492 _ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h.  */
17496 $ac_includes_default
17497 #include <selinux/selinux.h>
17498 _ACEOF
17499 rm -f conftest.$ac_objext
17500 if { (ac_try="$ac_compile"
17501 case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17506 $as_echo "$ac_try_echo") >&5
17507   (eval "$ac_compile") 2>conftest.er1
17508   ac_status=$?
17509   grep -v '^ *+' conftest.er1 >conftest.err
17510   rm -f conftest.er1
17511   cat conftest.err >&5
17512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); } && {
17514          test -z "$ac_c_werror_flag" ||
17515          test ! -s conftest.err
17516        } && test -s conftest.$ac_objext; then
17517   ac_header_compiler=yes
17518 else
17519   $as_echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522         ac_header_compiler=no
17523 fi
17524
17525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17526 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17527 $as_echo "$ac_header_compiler" >&6; }
17528
17529 # Is the header present?
17530 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
17531 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
17532 cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538 #include <selinux/selinux.h>
17539 _ACEOF
17540 if { (ac_try="$ac_cpp conftest.$ac_ext"
17541 case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17546 $as_echo "$ac_try_echo") >&5
17547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17548   ac_status=$?
17549   grep -v '^ *+' conftest.er1 >conftest.err
17550   rm -f conftest.er1
17551   cat conftest.err >&5
17552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); } >/dev/null && {
17554          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17555          test ! -s conftest.err
17556        }; then
17557   ac_header_preproc=yes
17558 else
17559   $as_echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17561
17562   ac_header_preproc=no
17563 fi
17564
17565 rm -f conftest.err conftest.$ac_ext
17566 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17567 $as_echo "$ac_header_preproc" >&6; }
17568
17569 # So?  What about this header?
17570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17571   yes:no: )
17572     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
17573 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17574     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
17575 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
17576     ac_header_preproc=yes
17577     ;;
17578   no:yes:* )
17579     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
17580 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
17581     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
17582 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
17583     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
17584 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
17585     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
17586 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17587     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
17588 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
17589     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
17590 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
17591
17592     ;;
17593 esac
17594 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
17595 $as_echo_n "checking for selinux/selinux.h... " >&6; }
17596 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
17597   $as_echo_n "(cached) " >&6
17598 else
17599   ac_cv_header_selinux_selinux_h=$ac_header_preproc
17600 fi
17601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
17602 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
17603
17604 fi
17605 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
17606
17607                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
17608 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17609 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
17610   $as_echo_n "(cached) " >&6
17611 else
17612   ac_check_lib_save_LIBS=$LIBS
17613 LIBS="-lselinux  $LIBS"
17614 cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h.  */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h.  */
17620
17621 /* Override any GCC internal prototype to avoid an error.
17622    Use char because int might match the return type of a GCC
17623    builtin and then its argument prototype would still apply.  */
17624 #ifdef __cplusplus
17625 extern "C"
17626 #endif
17627 char is_selinux_enabled ();
17628 int
17629 main ()
17630 {
17631 return is_selinux_enabled ();
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 rm -f conftest.$ac_objext conftest$ac_exeext
17637 if { (ac_try="$ac_link"
17638 case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17643 $as_echo "$ac_try_echo") >&5
17644   (eval "$ac_link") 2>conftest.er1
17645   ac_status=$?
17646   grep -v '^ *+' conftest.er1 >conftest.err
17647   rm -f conftest.er1
17648   cat conftest.err >&5
17649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); } && {
17651          test -z "$ac_c_werror_flag" ||
17652          test ! -s conftest.err
17653        } && test -s conftest$ac_exeext && {
17654          test "$cross_compiling" = yes ||
17655          $as_test_x conftest$ac_exeext
17656        }; then
17657   ac_cv_lib_selinux_is_selinux_enabled=yes
17658 else
17659   $as_echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662         ac_cv_lib_selinux_is_selinux_enabled=no
17663 fi
17664
17665 rm -rf conftest.dSYM
17666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17667       conftest$ac_exeext conftest.$ac_ext
17668 LIBS=$ac_check_lib_save_LIBS
17669 fi
17670 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17671 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17672 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
17673
17674                                 LIBSELINUX="-lselinux"
17675
17676
17677 cat >>confdefs.h <<\_ACEOF
17678 #define HAVE_LIBSELINUX 1
17679 _ACEOF
17680
17681
17682 else
17683
17684                                 if test "x$with_selinux" != xcheck; then
17685   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17687 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17688 See \`config.log' for more details." >&5
17689 $as_echo "$as_me: error: --with-selinux given but unavailable
17690 See \`config.log' for more details." >&2;}
17691    { (exit 1); exit 1; }; }; }
17692
17693 fi
17694
17695
17696 fi
17697
17698
17699 else
17700
17701                         if test "x$with_selinux" != xcheck; then
17702   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17704 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
17705 See \`config.log' for more details." >&5
17706 $as_echo "$as_me: error: --with-selinux given but unavailable
17707 See \`config.log' for more details." >&2;}
17708    { (exit 1); exit 1; }; }; }
17709
17710 fi
17711
17712
17713 fi
17714
17715
17716
17717 else
17718
17719                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
17720 $as_echo_n "checking for selinux support... " >&6; }
17721                 { $as_echo "$as_me:$LINENO: result: no" >&5
17722 $as_echo "no" >&6; }
17723
17724 fi
17725
17726
17727
17728         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
17729 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17730
17731         saved_flags="$CFLAGS"
17732         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
17733
17734         if test "$cross_compiling" = yes; then
17735   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17737 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17738 See \`config.log' for more details." >&5
17739 $as_echo "$as_me: error: cannot run test program while cross compiling
17740 See \`config.log' for more details." >&2;}
17741    { (exit 1); exit 1; }; }; }
17742 else
17743   cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h.  */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h.  */
17749
17750 int
17751 main ()
17752 {
17753
17754   ;
17755   return 0;
17756 }
17757 _ACEOF
17758 rm -f conftest$ac_exeext
17759 if { (ac_try="$ac_link"
17760 case "(($ac_try" in
17761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762   *) ac_try_echo=$ac_try;;
17763 esac
17764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17765 $as_echo "$ac_try_echo") >&5
17766   (eval "$ac_link") 2>&5
17767   ac_status=$?
17768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17770   { (case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17775 $as_echo "$ac_try_echo") >&5
17776   (eval "$ac_try") 2>&5
17777   ac_status=$?
17778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); }; }; then
17780
17781                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
17782                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17783 $as_echo "yes" >&6; }
17784
17785 else
17786   $as_echo "$as_me: program exited with status $ac_status" >&5
17787 $as_echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17789
17790 ( exit $ac_status )
17791
17792                 FRAME_LARGER_THAN=
17793                 { $as_echo "$as_me:$LINENO: result: no" >&5
17794 $as_echo "no" >&6; }
17795
17796 fi
17797 rm -rf conftest.dSYM
17798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17799 fi
17800
17801
17802
17803         CFLAGS="$saved_flags"
17804
17805
17806
17807
17808         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
17809 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
17810
17811         saved_CFLAGS="$CFLAGS"
17812         CFLAGS="-fstack-check"
17813         saved_LDFLAGS="$LDFLAGS"
17814         LDFLAGS="-lpthread"
17815
17816         if test "$cross_compiling" = yes; then
17817   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17819 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17820 See \`config.log' for more details." >&5
17821 $as_echo "$as_me: error: cannot run test program while cross compiling
17822 See \`config.log' for more details." >&2;}
17823    { (exit 1); exit 1; }; }; }
17824 else
17825   cat >conftest.$ac_ext <<_ACEOF
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831
17832                 #include <pthread.h>
17833                 #include <sys/resource.h>
17834                 #include <unistd.h>
17835                 #include <bits/local_lim.h>
17836
17837                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
17838                 #define STACK_SIZE 8192
17839                 #define BUFSIZE 4096
17840
17841                 void * func(void *arg)
17842                 {
17843                         char buf[BUFSIZE];
17844                 }
17845
17846 int
17847 main ()
17848 {
17849
17850                 pthread_t tid;
17851                 pthread_attr_t attr;
17852                 struct rlimit l;
17853
17854                 l.rlim_cur = 0;
17855                 l.rlim_max = 0;
17856                 setrlimit(RLIMIT_CORE, &l);
17857                 pthread_attr_init(&attr);
17858                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
17859                 pthread_attr_setguardsize(&attr, PAGESIZE);
17860                 pthread_create(&tid, &attr, func, NULL);
17861                 pthread_join(tid, NULL);
17862
17863   ;
17864   return 0;
17865 }
17866 _ACEOF
17867 rm -f conftest$ac_exeext
17868 if { (ac_try="$ac_link"
17869 case "(($ac_try" in
17870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871   *) ac_try_echo=$ac_try;;
17872 esac
17873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17874 $as_echo "$ac_try_echo") >&5
17875   (eval "$ac_link") 2>&5
17876   ac_status=$?
17877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17879   { (case "(($ac_try" in
17880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881   *) ac_try_echo=$ac_try;;
17882 esac
17883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17884 $as_echo "$ac_try_echo") >&5
17885   (eval "$ac_try") 2>&5
17886   ac_status=$?
17887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); }; }; then
17889
17890                 { $as_echo "$as_me:$LINENO: result: no" >&5
17891 $as_echo "no" >&6; }
17892
17893 else
17894   $as_echo "$as_me: program exited with status $ac_status" >&5
17895 $as_echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898 ( exit $ac_status )
17899
17900
17901 cat >>confdefs.h <<\_ACEOF
17902 #define NPTL_GUARD_WITHIN_STACK 1
17903 _ACEOF
17904
17905                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17906 $as_echo "yes" >&6; }
17907
17908 fi
17909 rm -rf conftest.dSYM
17910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17911 fi
17912
17913
17914         CFLAGS="$saved_CFLAGS"
17915         LDFLAGS="$saved_LDFLAGS"
17916
17917    ;;
17918                 all)
17919
17920
17921 # Check whether --with-linux was given.
17922 if test "${with_linux+set}" = set; then
17923   withval=$with_linux; kernelsrc="$withval"
17924 fi
17925
17926
17927
17928 # Check whether --with-linux-obj was given.
17929 if test "${with_linux_obj+set}" = set; then
17930   withval=$with_linux_obj; kernelbuild="$withval"
17931 fi
17932
17933
17934         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
17935 $as_echo_n "checking kernel source directory... " >&6; }
17936         if test -z "$kernelsrc"; then
17937
17938                 if test -e "/lib/modules/$(uname -r)/source"; then
17939
17940                         headersdir="/lib/modules/$(uname -r)/source"
17941                         sourcelink=$(readlink -f "$headersdir")
17942
17943 elif test -e "/lib/modules/$(uname -r)/build"; then
17944
17945                         headersdir="/lib/modules/$(uname -r)/build"
17946                         sourcelink=$(readlink -f "$headersdir")
17947
17948 else
17949
17950                         sourcelink=$(ls -1d /usr/src/kernels/* \
17951                                      /usr/src/linux-* \
17952                                      2>/dev/null | grep -v obj | tail -1)
17953
17954 fi
17955
17956
17957                 if test -n "$sourcelink" && test -e ${sourcelink}; then
17958
17959                         kernelsrc=`readlink -f ${sourcelink}`
17960
17961 else
17962
17963                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
17964 $as_echo "Not found" >&6; }
17965                         { { $as_echo "$as_me:$LINENO: error:
17966         *** Please make sure the kernel devel package for your distribution
17967         *** is installed then try again.  If that fails you can specify the
17968         *** location of the kernel source with the '--with-linux=PATH' option." >&5
17969 $as_echo "$as_me: error:
17970         *** Please make sure the kernel devel package for your distribution
17971         *** is installed then try again.  If that fails you can specify the
17972         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
17973    { (exit 1); exit 1; }; }
17974
17975 fi
17976
17977
17978 else
17979
17980                 if test "$kernelsrc" = "NONE"; then
17981
17982                         kernsrcver=NONE
17983
17984 fi
17985
17986
17987 fi
17988
17989
17990         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
17991 $as_echo "$kernelsrc" >&6; }
17992         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
17993 $as_echo_n "checking kernel build directory... " >&6; }
17994         if test -z "$kernelbuild"; then
17995
17996                 if test -e "/lib/modules/$(uname -r)/build"; then
17997
17998                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
17999
18000 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
18001
18002                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18003
18004 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
18005
18006                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
18007
18008 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
18009
18010                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
18011
18012 else
18013
18014                         kernelbuild=${kernelsrc}
18015
18016 fi
18017
18018
18019 fi
18020
18021         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
18022 $as_echo "$kernelbuild" >&6; }
18023
18024         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
18025 $as_echo_n "checking kernel source version... " >&6; }
18026         utsrelease1=$kernelbuild/include/linux/version.h
18027         utsrelease2=$kernelbuild/include/linux/utsrelease.h
18028         utsrelease3=$kernelbuild/include/generated/utsrelease.h
18029         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
18030
18031                 utsrelease=linux/version.h
18032
18033 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
18034
18035                 utsrelease=linux/utsrelease.h
18036
18037 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
18038
18039                 utsrelease=generated/utsrelease.h
18040
18041 fi
18042
18043
18044         if test "$utsrelease"; then
18045
18046                 kernsrcver=`(echo "#include <$utsrelease>";
18047                              echo "kernsrcver=UTS_RELEASE") |
18048                              cpp -I $kernelbuild/include |
18049                              grep "^kernsrcver=" | cut -d \" -f 2`
18050
18051                 if test -z "$kernsrcver"; then
18052
18053                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
18054 $as_echo "Not found" >&6; }
18055                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
18056 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
18057    { (exit 1); exit 1; }; }
18058
18059 fi
18060
18061
18062 else
18063
18064                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18065 $as_echo "Not found" >&6; }
18066                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
18067 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
18068    { (exit 1); exit 1; }; }
18069
18070 fi
18071
18072
18073         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
18074 $as_echo "$kernsrcver" >&6; }
18075
18076         LINUX=${kernelsrc}
18077         LINUX_OBJ=${kernelbuild}
18078         LINUX_VERSION=${kernsrcver}
18079
18080
18081
18082
18083
18084
18085         modpost=$LINUX/scripts/Makefile.modpost
18086         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
18087 $as_echo_n "checking kernel file name for module symbols... " >&6; }
18088         if test -f "$modpost"; then
18089
18090                 if grep -q Modules.symvers $modpost; then
18091
18092                         LINUX_SYMBOLS=Modules.symvers
18093
18094 else
18095
18096                         LINUX_SYMBOLS=Module.symvers
18097
18098 fi
18099
18100
18101                 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
18102
18103                         { { $as_echo "$as_me:$LINENO: error:
18104         *** Please make sure the kernel devel package for your distribution
18105         *** is installed.  If your building with a custom kernel make sure the
18106         *** kernel is configured, built, and the '--with-linux=PATH' configure
18107         *** option refers to the location of the kernel source." >&5
18108 $as_echo "$as_me: error:
18109         *** Please make sure the kernel devel package for your distribution
18110         *** is installed.  If your building with a custom kernel make sure the
18111         *** kernel is configured, built, and the '--with-linux=PATH' configure
18112         *** option refers to the location of the kernel source." >&2;}
18113    { (exit 1); exit 1; }; }
18114
18115 fi
18116
18117
18118 else
18119
18120                 LINUX_SYMBOLS=NONE
18121
18122 fi
18123
18124         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
18125 $as_echo "$LINUX_SYMBOLS" >&6; }
18126
18127
18128
18129
18130
18131 # Check whether --with-spl was given.
18132 if test "${with_spl+set}" = set; then
18133   withval=$with_spl; splsrc="$withval"
18134 fi
18135
18136
18137
18138 # Check whether --with-spl-obj was given.
18139 if test "${with_spl_obj+set}" = set; then
18140   withval=$with_spl_obj; splbuild="$withval"
18141 fi
18142
18143
18144
18145         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
18146 $as_echo_n "checking spl source directory... " >&6; }
18147         if test -z "$splsrc"; then
18148
18149                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
18150                             2>/dev/null | tail -1`
18151
18152                 if test -z "$sourcelink" || test ! -e $sourcelink; then
18153
18154                         sourcelink=../spl
18155
18156 fi
18157
18158
18159                 if test -e $sourcelink; then
18160
18161                         splsrc=`readlink -f ${sourcelink}`
18162
18163 else
18164
18165                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
18166 $as_echo "Not found" >&6; }
18167                         { { $as_echo "$as_me:$LINENO: error:
18168         *** Please make sure the spl devel package for your distribution
18169         *** is installed then try again.  If that fails you can specify the
18170         *** location of the spl source with the '--with-spl=PATH' option." >&5
18171 $as_echo "$as_me: error:
18172         *** Please make sure the spl devel package for your distribution
18173         *** is installed then try again.  If that fails you can specify the
18174         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
18175    { (exit 1); exit 1; }; }
18176
18177 fi
18178
18179
18180 else
18181
18182                 if test "$splsrc" = "NONE"; then
18183
18184                         splbuild=NONE
18185                         splsrcver=NONE
18186
18187 fi
18188
18189
18190 fi
18191
18192
18193         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
18194 $as_echo "$splsrc" >&6; }
18195         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
18196 $as_echo_n "checking spl build directory... " >&6; }
18197         if test -z "$splbuild"; then
18198
18199                 splbuild=${splsrc}
18200
18201 fi
18202
18203         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
18204 $as_echo "$splbuild" >&6; }
18205
18206         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
18207 $as_echo_n "checking spl source version... " >&6; }
18208         if test -r $splbuild/spl_config.h &&
18209                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
18210
18211
18212                 splsrcver=`(echo "#include <spl_config.h>";
18213                             echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18214                             cpp -I $splbuild |
18215                             grep "^splsrcver=" | tr -d \" | cut -d= -f2`
18216
18217 fi
18218
18219
18220         if test -z "$splsrcver"; then
18221
18222                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
18223 $as_echo "Not found" >&6; }
18224                 { { $as_echo "$as_me:$LINENO: error:
18225         *** Cannot determine the version of the spl source.
18226         *** Please prepare the spl source before running this script" >&5
18227 $as_echo "$as_me: error:
18228         *** Cannot determine the version of the spl source.
18229         *** Please prepare the spl source before running this script" >&2;}
18230    { (exit 1); exit 1; }; }
18231
18232 fi
18233
18234
18235         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
18236 $as_echo "$splsrcver" >&6; }
18237
18238         SPL=${splsrc}
18239         SPL_OBJ=${splbuild}
18240         SPL_VERSION=${splsrcver}
18241
18242
18243
18244
18245
18246
18247         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
18248 $as_echo_n "checking spl file name for module symbols... " >&6; }
18249         if test -r $SPL_OBJ/Module.symvers; then
18250
18251                 SPL_SYMBOLS=Module.symvers
18252
18253 elif test -r $SPL_OBJ/Modules.symvers; then
18254
18255                 SPL_SYMBOLS=Modules.symvers
18256
18257 elif test -r $SPL_OBJ/module/Module.symvers; then
18258
18259                 SPL_SYMBOLS=Module.symvers
18260
18261 elif test -r $SPL_OBJ/module/Modules.symvers; then
18262
18263                 SPL_SYMBOLS=Modules.symvers
18264
18265 else
18266
18267                 SPL_SYMBOLS=$LINUX_SYMBOLS
18268
18269 fi
18270
18271
18272         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
18273 $as_echo "$SPL_SYMBOLS" >&6; }
18274
18275
18276
18277
18278
18279         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
18280 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
18281
18282
18283 cat confdefs.h - <<_ACEOF >conftest.c
18284 /* confdefs.h.  */
18285 _ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h.  */
18289
18290
18291                 #include <linux/module.h>
18292
18293 int
18294 main (void)
18295 {
18296
18297                 #ifndef CONFIG_PREEMPT
18298                 #error CONFIG_PREEMPT not #defined
18299                 #endif
18300
18301   ;
18302   return 0;
18303 }
18304
18305 _ACEOF
18306
18307
18308         rm -Rf build && mkdir -p build
18309         echo "obj-m := conftest.o" >build/Makefile
18310         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'
18311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18312   (eval $ac_try) 2>&5
18313   ac_status=$?
18314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317   (eval $ac_try) 2>&5
18318   ac_status=$?
18319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320   (exit $ac_status); }; }; then
18321
18322                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18323 $as_echo "yes" >&6; }
18324                 { { $as_echo "$as_me:$LINENO: error:
18325         *** Kernel built with CONFIG_PREEMPT which is not supported.
18326         *** You must rebuild your kernel without this option." >&5
18327 $as_echo "$as_me: error:
18328         *** Kernel built with CONFIG_PREEMPT which is not supported.
18329         *** You must rebuild your kernel without this option." >&2;}
18330    { (exit 1); exit 1; }; }
18331
18332 else
18333   $as_echo "$as_me: failed program was:" >&5
18334 sed 's/^/| /' conftest.$ac_ext >&5
18335
18336                 { $as_echo "$as_me:$LINENO: result: no" >&5
18337 $as_echo "no" >&6; }
18338
18339
18340
18341
18342 fi
18343
18344         rm -Rf build
18345
18346
18347
18348
18349         if test "$ZFS_META_LICENSE" = CDDL; then
18350
18351                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18352 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
18353
18354
18355 cat confdefs.h - <<_ACEOF >conftest.c
18356 /* confdefs.h.  */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h.  */
18361
18362
18363                 #include <linux/module.h>
18364
18365 int
18366 main (void)
18367 {
18368
18369                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18370                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18371                 #endif
18372
18373   ;
18374   return 0;
18375 }
18376
18377 _ACEOF
18378
18379
18380         rm -Rf build && mkdir -p build
18381         echo "obj-m := conftest.o" >build/Makefile
18382         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'
18383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384   (eval $ac_try) 2>&5
18385   ac_status=$?
18386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389   (eval $ac_try) 2>&5
18390   ac_status=$?
18391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); }; }; then
18393
18394                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18395 $as_echo "yes" >&6; }
18396                 { { $as_echo "$as_me:$LINENO: error:
18397         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
18398         *** incompatible with the CDDL license.  You must rebuild
18399         *** your kernel without this option." >&5
18400 $as_echo "$as_me: error:
18401         *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
18402         *** incompatible with the CDDL license.  You must rebuild
18403         *** your kernel without this option." >&2;}
18404    { (exit 1); exit 1; }; }
18405
18406 else
18407   $as_echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410                 { $as_echo "$as_me:$LINENO: result: no" >&5
18411 $as_echo "no" >&6; }
18412
18413
18414
18415
18416 fi
18417
18418         rm -Rf build
18419
18420
18421
18422
18423 fi
18424
18425
18426         if test "$ZFS_META_LICENSE" = GPL; then
18427
18428
18429 cat >>confdefs.h <<\_ACEOF
18430 #define HAVE_GPL_ONLY_SYMBOLS 1
18431 _ACEOF
18432
18433
18434 fi
18435
18436
18437
18438         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
18439 $as_echo_n "checking block device operation prototypes... " >&6; }
18440         tmp_flags="$EXTRA_KCFLAGS"
18441         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18442
18443
18444 cat confdefs.h - <<_ACEOF >conftest.c
18445 /* confdefs.h.  */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h.  */
18450
18451
18452                 #include <linux/blkdev.h>
18453
18454 int
18455 main (void)
18456 {
18457
18458                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
18459                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
18460                 int (*blk_ioctl) (struct block_device *, fmode_t,
18461                                   unsigned, unsigned long) = NULL;
18462                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
18463                                          unsigned, unsigned long) = NULL;
18464                 struct block_device_operations blk_ops = {
18465                         .open           = blk_open,
18466                         .release        = blk_release,
18467                         .ioctl          = blk_ioctl,
18468                         .compat_ioctl   = blk_compat_ioctl,
18469                 };
18470
18471                 blk_ops.open(NULL, 0);
18472                 blk_ops.release(NULL, 0);
18473                 blk_ops.ioctl(NULL, 0, 0, 0);
18474                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
18475
18476   ;
18477   return 0;
18478 }
18479
18480 _ACEOF
18481
18482
18483         rm -Rf build && mkdir -p build
18484         echo "obj-m := conftest.o" >build/Makefile
18485         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'
18486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487   (eval $ac_try) 2>&5
18488   ac_status=$?
18489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18492   (eval $ac_try) 2>&5
18493   ac_status=$?
18494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; }; then
18496
18497                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
18498 $as_echo "struct block_device" >&6; }
18499
18500 cat >>confdefs.h <<\_ACEOF
18501 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
18502 _ACEOF
18503
18504
18505 else
18506   $as_echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18508
18509                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
18510 $as_echo "struct inode" >&6; }
18511
18512
18513
18514 fi
18515
18516         rm -Rf build
18517
18518
18519         EXTRA_KCFLAGS="$tmp_flags"
18520
18521         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
18522 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
18523
18524
18525 cat confdefs.h - <<_ACEOF >conftest.c
18526 /* confdefs.h.  */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h.  */
18531
18532
18533                 #include <linux/types.h>
18534
18535 int
18536 main (void)
18537 {
18538
18539                 fmode_t *ptr __attribute__ ((unused));
18540
18541   ;
18542   return 0;
18543 }
18544
18545 _ACEOF
18546
18547
18548         rm -Rf build && mkdir -p build
18549         echo "obj-m := conftest.o" >build/Makefile
18550         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'
18551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552   (eval $ac_try) 2>&5
18553   ac_status=$?
18554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557   (eval $ac_try) 2>&5
18558   ac_status=$?
18559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; }; then
18561
18562                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18563 $as_echo "yes" >&6; }
18564
18565 cat >>confdefs.h <<\_ACEOF
18566 #define HAVE_FMODE_T 1
18567 _ACEOF
18568
18569
18570 else
18571   $as_echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574                 { $as_echo "$as_me:$LINENO: result: no" >&5
18575 $as_echo "no" >&6; }
18576
18577
18578
18579 fi
18580
18581         rm -Rf build
18582
18583
18584
18585
18586         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
18587 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
18588
18589
18590 cat confdefs.h - <<_ACEOF >conftest.c
18591 /* confdefs.h.  */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h.  */
18596
18597
18598                 #include <linux/kobject.h>
18599
18600 int
18601 main (void)
18602 {
18603
18604                 int val __attribute__ ((unused));
18605                 val = KOBJ_NAME_LEN;
18606
18607   ;
18608   return 0;
18609 }
18610
18611 _ACEOF
18612
18613
18614         rm -Rf build && mkdir -p build
18615         echo "obj-m := conftest.o" >build/Makefile
18616         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'
18617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618   (eval $ac_try) 2>&5
18619   ac_status=$?
18620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623   (eval $ac_try) 2>&5
18624   ac_status=$?
18625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); }; }; then
18627
18628                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18629 $as_echo "yes" >&6; }
18630
18631 cat >>confdefs.h <<\_ACEOF
18632 #define HAVE_KOBJ_NAME_LEN 1
18633 _ACEOF
18634
18635
18636 else
18637   $as_echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18639
18640                 { $as_echo "$as_me:$LINENO: result: no" >&5
18641 $as_echo "no" >&6; }
18642
18643
18644
18645 fi
18646
18647         rm -Rf build
18648
18649
18650
18651
18652         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
18653 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
18654         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
18655                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18656         rc=$?
18657         if test $rc -ne 0; then
18658
18659                 export=0
18660                 for file in fs/block_dev.c; do
18661                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
18662                         rc=$?
18663                         if test $rc -eq 0; then
18664
18665                                 export=1
18666                                 break;
18667
18668 fi
18669
18670                 done
18671                 if test $export -eq 0; then
18672
18673                         { $as_echo "$as_me:$LINENO: result: no" >&5
18674 $as_echo "no" >&6; }
18675
18676
18677 else
18678
18679                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18680 $as_echo "yes" >&6; }
18681
18682 cat >>confdefs.h <<\_ACEOF
18683 #define HAVE_BLKDEV_GET_BY_PATH 1
18684 _ACEOF
18685
18686
18687 fi
18688
18689
18690 else
18691
18692                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18693 $as_echo "yes" >&6; }
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define HAVE_BLKDEV_GET_BY_PATH 1
18697 _ACEOF
18698
18699
18700 fi
18701
18702
18703
18704
18705         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
18706 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
18707         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
18708                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
18709         rc=$?
18710         if test $rc -ne 0; then
18711
18712                 export=0
18713                 for file in fs/block_dev.c; do
18714                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
18715                         rc=$?
18716                         if test $rc -eq 0; then
18717
18718                                 export=1
18719                                 break;
18720
18721 fi
18722
18723                 done
18724                 if test $export -eq 0; then
18725
18726                         { $as_echo "$as_me:$LINENO: result: no" >&5
18727 $as_echo "no" >&6; }
18728
18729
18730 else
18731
18732                         { $as_echo "$as_me:$LINENO: result: yes" >&5
18733 $as_echo "yes" >&6; }
18734
18735 cat >>confdefs.h <<\_ACEOF
18736 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
18737 _ACEOF
18738
18739
18740 fi
18741
18742
18743 else
18744
18745                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18746 $as_echo "yes" >&6; }
18747
18748 cat >>confdefs.h <<\_ACEOF
18749 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
18750 _ACEOF
18751
18752
18753 fi
18754
18755
18756
18757
18758         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
18759 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
18760
18761
18762 cat confdefs.h - <<_ACEOF >conftest.c
18763 /* confdefs.h.  */
18764 _ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h.  */
18768
18769
18770                 #include <linux/buffer_head.h>
18771
18772 int
18773 main (void)
18774 {
18775
18776                 struct block_device *bdev = NULL;
18777                 invalidate_bdev(bdev);
18778
18779   ;
18780   return 0;
18781 }
18782
18783 _ACEOF
18784
18785
18786         rm -Rf build && mkdir -p build
18787         echo "obj-m := conftest.o" >build/Makefile
18788         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'
18789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790   (eval $ac_try) 2>&5
18791   ac_status=$?
18792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795   (eval $ac_try) 2>&5
18796   ac_status=$?
18797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; }; then
18799
18800                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18801 $as_echo "yes" >&6; }
18802
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE_1ARG_INVALIDATE_BDEV 1
18805 _ACEOF
18806
18807
18808 else
18809   $as_echo "$as_me: failed program was:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18811
18812                 { $as_echo "$as_me:$LINENO: result: no" >&5
18813 $as_echo "no" >&6; }
18814
18815
18816
18817 fi
18818
18819         rm -Rf build
18820
18821
18822
18823
18824         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
18825 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
18826         tmp_flags="$EXTRA_KCFLAGS"
18827         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
18828
18829
18830 cat confdefs.h - <<_ACEOF >conftest.c
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836
18837
18838                 #include <linux/blkdev.h>
18839
18840 int
18841 main (void)
18842 {
18843
18844                 struct block_device *bdev = NULL;
18845                 bdev_logical_block_size(bdev);
18846
18847   ;
18848   return 0;
18849 }
18850
18851 _ACEOF
18852
18853
18854         rm -Rf build && mkdir -p build
18855         echo "obj-m := conftest.o" >build/Makefile
18856         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'
18857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858   (eval $ac_try) 2>&5
18859   ac_status=$?
18860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863   (eval $ac_try) 2>&5
18864   ac_status=$?
18865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866   (exit $ac_status); }; }; then
18867
18868                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18869 $as_echo "yes" >&6; }
18870
18871 cat >>confdefs.h <<\_ACEOF
18872 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
18873 _ACEOF
18874
18875
18876 else
18877   $as_echo "$as_me: failed program was:" >&5
18878 sed 's/^/| /' conftest.$ac_ext >&5
18879
18880                 { $as_echo "$as_me:$LINENO: result: no" >&5
18881 $as_echo "no" >&6; }
18882
18883
18884
18885 fi
18886
18887         rm -Rf build
18888
18889
18890         EXTRA_KCFLAGS="$tmp_flags"
18891
18892
18893         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
18894 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
18895         EXTRA_KCFLAGS="-Werror"
18896
18897
18898 cat confdefs.h - <<_ACEOF >conftest.c
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904
18905
18906                 #include <linux/bio.h>
18907
18908 int
18909 main (void)
18910 {
18911
18912                 struct bio bio;
18913                 (void)bio_empty_barrier(&bio);
18914
18915   ;
18916   return 0;
18917 }
18918
18919 _ACEOF
18920
18921
18922         rm -Rf build && mkdir -p build
18923         echo "obj-m := conftest.o" >build/Makefile
18924         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'
18925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926   (eval $ac_try) 2>&5
18927   ac_status=$?
18928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931   (eval $ac_try) 2>&5
18932   ac_status=$?
18933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; }; then
18935
18936                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18937 $as_echo "yes" >&6; }
18938
18939 cat >>confdefs.h <<\_ACEOF
18940 #define HAVE_BIO_EMPTY_BARRIER 1
18941 _ACEOF
18942
18943
18944 else
18945   $as_echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18947
18948                 { $as_echo "$as_me:$LINENO: result: no" >&5
18949 $as_echo "no" >&6; }
18950
18951
18952
18953 fi
18954
18955         rm -Rf build
18956
18957
18958
18959
18960         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
18961 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
18962
18963
18964 cat confdefs.h - <<_ACEOF >conftest.c
18965 /* confdefs.h.  */
18966 _ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h.  */
18970
18971
18972                 #include <linux/bio.h>
18973
18974 int
18975 main (void)
18976 {
18977
18978                 int flags __attribute__ ((unused));
18979                 flags = (1 << BIO_RW_FAILFAST);
18980
18981   ;
18982   return 0;
18983 }
18984
18985 _ACEOF
18986
18987
18988         rm -Rf build && mkdir -p build
18989         echo "obj-m := conftest.o" >build/Makefile
18990         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'
18991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992   (eval $ac_try) 2>&5
18993   ac_status=$?
18994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997   (eval $ac_try) 2>&5
18998   ac_status=$?
18999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }; }; then
19001
19002                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19003 $as_echo "yes" >&6; }
19004
19005 cat >>confdefs.h <<\_ACEOF
19006 #define HAVE_BIO_RW_FAILFAST 1
19007 _ACEOF
19008
19009
19010 else
19011   $as_echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19013
19014                 { $as_echo "$as_me:$LINENO: result: no" >&5
19015 $as_echo "no" >&6; }
19016
19017
19018
19019 fi
19020
19021         rm -Rf build
19022
19023
19024
19025
19026         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
19027 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19028
19029
19030 cat confdefs.h - <<_ACEOF >conftest.c
19031 /* confdefs.h.  */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h.  */
19036
19037
19038                 #include <linux/bio.h>
19039
19040 int
19041 main (void)
19042 {
19043
19044                 int flags __attribute__ ((unused));
19045                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19046                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
19047                          (1 << BIO_RW_FAILFAST_DRIVER));
19048
19049   ;
19050   return 0;
19051 }
19052
19053 _ACEOF
19054
19055
19056         rm -Rf build && mkdir -p build
19057         echo "obj-m := conftest.o" >build/Makefile
19058         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'
19059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19060   (eval $ac_try) 2>&5
19061   ac_status=$?
19062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065   (eval $ac_try) 2>&5
19066   ac_status=$?
19067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; }; then
19069
19070                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19071 $as_echo "yes" >&6; }
19072
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE_BIO_RW_FAILFAST_DTD 1
19075 _ACEOF
19076
19077
19078 else
19079   $as_echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19081
19082                 { $as_echo "$as_me:$LINENO: result: no" >&5
19083 $as_echo "no" >&6; }
19084
19085
19086
19087 fi
19088
19089         rm -Rf build
19090
19091
19092
19093
19094         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
19095 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
19096
19097
19098 cat confdefs.h - <<_ACEOF >conftest.c
19099 /* confdefs.h.  */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h.  */
19104
19105
19106                 #include <linux/bio.h>
19107
19108 int
19109 main (void)
19110 {
19111
19112                 int flags __attribute__ ((unused));
19113                 flags = REQ_FAILFAST_MASK;
19114
19115   ;
19116   return 0;
19117 }
19118
19119 _ACEOF
19120
19121
19122         rm -Rf build && mkdir -p build
19123         echo "obj-m := conftest.o" >build/Makefile
19124         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'
19125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126   (eval $ac_try) 2>&5
19127   ac_status=$?
19128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131   (eval $ac_try) 2>&5
19132   ac_status=$?
19133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; }; then
19135
19136                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19137 $as_echo "yes" >&6; }
19138
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE_BIO_REQ_FAILFAST_MASK 1
19141 _ACEOF
19142
19143
19144 else
19145   $as_echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148                 { $as_echo "$as_me:$LINENO: result: no" >&5
19149 $as_echo "no" >&6; }
19150
19151
19152
19153 fi
19154
19155         rm -Rf build
19156
19157
19158
19159
19160         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
19161 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
19162         tmp_flags="$EXTRA_KCFLAGS"
19163         EXTRA_KCFLAGS="-Werror"
19164
19165
19166 cat confdefs.h - <<_ACEOF >conftest.c
19167 /* confdefs.h.  */
19168 _ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h.  */
19172
19173
19174                 #include <linux/bio.h>
19175
19176 int
19177 main (void)
19178 {
19179
19180                 void (*wanted_end_io)(struct bio *, int) = NULL;
19181                 bio_end_io_t *local_end_io __attribute__ ((unused));
19182
19183                 local_end_io = wanted_end_io;
19184
19185   ;
19186   return 0;
19187 }
19188
19189 _ACEOF
19190
19191
19192         rm -Rf build && mkdir -p build
19193         echo "obj-m := conftest.o" >build/Makefile
19194         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'
19195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196   (eval $ac_try) 2>&5
19197   ac_status=$?
19198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201   (eval $ac_try) 2>&5
19202   ac_status=$?
19203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); }; }; then
19205
19206                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19207 $as_echo "yes" >&6; }
19208
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_2ARGS_BIO_END_IO_T 1
19211 _ACEOF
19212
19213
19214 else
19215   $as_echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218                 { $as_echo "$as_me:$LINENO: result: no" >&5
19219 $as_echo "no" >&6; }
19220
19221
19222
19223 fi
19224
19225         rm -Rf build
19226
19227
19228         EXTRA_KCFLAGS="$tmp_flags"
19229
19230
19231         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
19232 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
19233
19234
19235 cat confdefs.h - <<_ACEOF >conftest.c
19236 /* confdefs.h.  */
19237 _ACEOF
19238 cat confdefs.h >>conftest.$ac_ext
19239 cat >>conftest.$ac_ext <<_ACEOF
19240 /* end confdefs.h.  */
19241
19242
19243                 #include <linux/bio.h>
19244
19245 int
19246 main (void)
19247 {
19248
19249                 int flags __attribute__ ((unused));
19250                 flags = BIO_RW_SYNC;
19251
19252   ;
19253   return 0;
19254 }
19255
19256 _ACEOF
19257
19258
19259         rm -Rf build && mkdir -p build
19260         echo "obj-m := conftest.o" >build/Makefile
19261         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'
19262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19263   (eval $ac_try) 2>&5
19264   ac_status=$?
19265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268   (eval $ac_try) 2>&5
19269   ac_status=$?
19270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; }; then
19272
19273                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19274 $as_echo "yes" >&6; }
19275
19276 cat >>confdefs.h <<\_ACEOF
19277 #define HAVE_BIO_RW_SYNC 1
19278 _ACEOF
19279
19280
19281 else
19282   $as_echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19284
19285                 { $as_echo "$as_me:$LINENO: result: no" >&5
19286 $as_echo "no" >&6; }
19287
19288
19289
19290 fi
19291
19292         rm -Rf build
19293
19294
19295
19296
19297         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
19298 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&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/bio.h>
19310
19311 int
19312 main (void)
19313 {
19314
19315                 int flags __attribute__ ((unused));
19316                 flags = BIO_RW_SYNCIO;
19317
19318   ;
19319   return 0;
19320 }
19321
19322 _ACEOF
19323
19324
19325         rm -Rf build && mkdir -p build
19326         echo "obj-m := conftest.o" >build/Makefile
19327         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'
19328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329   (eval $ac_try) 2>&5
19330   ac_status=$?
19331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334   (eval $ac_try) 2>&5
19335   ac_status=$?
19336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); }; }; then
19338
19339                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19340 $as_echo "yes" >&6; }
19341
19342 cat >>confdefs.h <<\_ACEOF
19343 #define HAVE_BIO_RW_SYNCIO 1
19344 _ACEOF
19345
19346
19347 else
19348   $as_echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351                 { $as_echo "$as_me:$LINENO: result: no" >&5
19352 $as_echo "no" >&6; }
19353
19354
19355
19356 fi
19357
19358         rm -Rf build
19359
19360
19361
19362
19363         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
19364 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
19365
19366
19367 cat confdefs.h - <<_ACEOF >conftest.c
19368 /* confdefs.h.  */
19369 _ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h.  */
19373
19374
19375                 #include <linux/bio.h>
19376
19377 int
19378 main (void)
19379 {
19380
19381                 int flags __attribute__ ((unused));
19382                 flags = REQ_SYNC;
19383
19384   ;
19385   return 0;
19386 }
19387
19388 _ACEOF
19389
19390
19391         rm -Rf build && mkdir -p build
19392         echo "obj-m := conftest.o" >build/Makefile
19393         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'
19394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19395   (eval $ac_try) 2>&5
19396   ac_status=$?
19397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400   (eval $ac_try) 2>&5
19401   ac_status=$?
19402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); }; }; then
19404
19405                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19406 $as_echo "yes" >&6; }
19407
19408 cat >>confdefs.h <<\_ACEOF
19409 #define HAVE_REQ_SYNC 1
19410 _ACEOF
19411
19412
19413 else
19414   $as_echo "$as_me: failed program was:" >&5
19415 sed 's/^/| /' conftest.$ac_ext >&5
19416
19417                 { $as_echo "$as_me:$LINENO: result: no" >&5
19418 $as_echo "no" >&6; }
19419
19420
19421
19422 fi
19423
19424         rm -Rf build
19425
19426
19427
19428
19429         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
19430 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
19431         tmp_flags="$EXTRA_KCFLAGS"
19432         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19433
19434
19435 cat confdefs.h - <<_ACEOF >conftest.c
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441
19442
19443                 #include <linux/blkdev.h>
19444
19445 int
19446 main (void)
19447 {
19448
19449                 struct request *req = NULL;
19450                 (void) blk_end_request(req, 0, 0);
19451
19452   ;
19453   return 0;
19454 }
19455
19456 _ACEOF
19457
19458
19459         rm -Rf build && mkdir -p build
19460         echo "obj-m := conftest.o" >build/Makefile
19461         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'
19462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463   (eval $ac_try) 2>&5
19464   ac_status=$?
19465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468   (eval $ac_try) 2>&5
19469   ac_status=$?
19470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471   (exit $ac_status); }; }; then
19472
19473                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19474 $as_echo "yes" >&6; }
19475
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE_BLK_END_REQUEST 1
19478 _ACEOF
19479
19480
19481 else
19482   $as_echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19484
19485                 { $as_echo "$as_me:$LINENO: result: no" >&5
19486 $as_echo "no" >&6; }
19487
19488
19489
19490 fi
19491
19492         rm -Rf build
19493
19494
19495
19496         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
19497 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
19498
19499
19500 cat confdefs.h - <<_ACEOF >conftest.c
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506
19507
19508                 #include <linux/module.h>
19509                 #include <linux/blkdev.h>
19510
19511                 MODULE_LICENSE("CDDL");
19512
19513 int
19514 main (void)
19515 {
19516
19517                 struct request *req = NULL;
19518                 (void) blk_end_request(req, 0, 0);
19519
19520   ;
19521   return 0;
19522 }
19523
19524 _ACEOF
19525
19526
19527         rm -Rf build && mkdir -p build
19528         echo "obj-m := conftest.o" >build/Makefile
19529         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'
19530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531   (eval $ac_try) 2>&5
19532   ac_status=$?
19533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536   (eval $ac_try) 2>&5
19537   ac_status=$?
19538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); }; }; then
19540
19541                 { $as_echo "$as_me:$LINENO: result: no" >&5
19542 $as_echo "no" >&6; }
19543
19544 else
19545   $as_echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19547
19548                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19549 $as_echo "yes" >&6; }
19550
19551 cat >>confdefs.h <<\_ACEOF
19552 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
19553 _ACEOF
19554
19555
19556
19557
19558 fi
19559
19560         rm -Rf build
19561
19562
19563         EXTRA_KCFLAGS="$tmp_flags"
19564
19565
19566         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
19567 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
19568         tmp_flags="$EXTRA_KCFLAGS"
19569         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19570
19571
19572 cat confdefs.h - <<_ACEOF >conftest.c
19573 /* confdefs.h.  */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h.  */
19578
19579
19580                 #include <linux/blkdev.h>
19581
19582 int
19583 main (void)
19584 {
19585
19586                 struct request_queue *q = NULL;
19587                 (void) blk_queue_flush(q, REQ_FLUSH);
19588
19589   ;
19590   return 0;
19591 }
19592
19593 _ACEOF
19594
19595
19596         rm -Rf build && mkdir -p build
19597         echo "obj-m := conftest.o" >build/Makefile
19598         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'
19599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600   (eval $ac_try) 2>&5
19601   ac_status=$?
19602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; }; then
19609
19610                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19611 $as_echo "yes" >&6; }
19612
19613 cat >>confdefs.h <<\_ACEOF
19614 #define HAVE_BLK_QUEUE_FLUSH 1
19615 _ACEOF
19616
19617
19618 else
19619   $as_echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622                 { $as_echo "$as_me:$LINENO: result: no" >&5
19623 $as_echo "no" >&6; }
19624
19625
19626
19627 fi
19628
19629         rm -Rf build
19630
19631
19632
19633         { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
19634 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
19635
19636
19637 cat confdefs.h - <<_ACEOF >conftest.c
19638 /* confdefs.h.  */
19639 _ACEOF
19640 cat confdefs.h >>conftest.$ac_ext
19641 cat >>conftest.$ac_ext <<_ACEOF
19642 /* end confdefs.h.  */
19643
19644
19645                 #include <linux/module.h>
19646                 #include <linux/blkdev.h>
19647
19648                 MODULE_LICENSE("CDDL");
19649
19650 int
19651 main (void)
19652 {
19653
19654                 struct request_queue *q = NULL;
19655                 (void) blk_queue_flush(q, REQ_FLUSH);
19656
19657   ;
19658   return 0;
19659 }
19660
19661 _ACEOF
19662
19663
19664         rm -Rf build && mkdir -p build
19665         echo "obj-m := conftest.o" >build/Makefile
19666         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'
19667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668   (eval $ac_try) 2>&5
19669   ac_status=$?
19670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673   (eval $ac_try) 2>&5
19674   ac_status=$?
19675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; }; then
19677
19678                 { $as_echo "$as_me:$LINENO: result: no" >&5
19679 $as_echo "no" >&6; }
19680
19681 else
19682   $as_echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19686 $as_echo "yes" >&6; }
19687
19688 cat >>confdefs.h <<\_ACEOF
19689 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
19690 _ACEOF
19691
19692
19693
19694
19695 fi
19696
19697         rm -Rf build
19698
19699
19700         EXTRA_KCFLAGS="$tmp_flags"
19701
19702
19703         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
19704 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
19705         tmp_flags="$EXTRA_KCFLAGS"
19706         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19707
19708
19709 cat confdefs.h - <<_ACEOF >conftest.c
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715
19716
19717                 #include <linux/blkdev.h>
19718
19719 int
19720 main (void)
19721 {
19722
19723                 struct request_queue *q = NULL;
19724                 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
19725
19726   ;
19727   return 0;
19728 }
19729
19730 _ACEOF
19731
19732
19733         rm -Rf build && mkdir -p build
19734         echo "obj-m := conftest.o" >build/Makefile
19735         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'
19736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737   (eval $ac_try) 2>&5
19738   ac_status=$?
19739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742   (eval $ac_try) 2>&5
19743   ac_status=$?
19744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); }; }; then
19746
19747                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19748 $as_echo "yes" >&6; }
19749
19750 cat >>confdefs.h <<\_ACEOF
19751 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
19752 _ACEOF
19753
19754
19755 else
19756   $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19758
19759                 { $as_echo "$as_me:$LINENO: result: no" >&5
19760 $as_echo "no" >&6; }
19761
19762
19763
19764 fi
19765
19766         rm -Rf build
19767
19768
19769         EXTRA_KCFLAGS="$tmp_flags"
19770
19771
19772         { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
19773 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
19774         tmp_flags="$EXTRA_KCFLAGS"
19775         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19776
19777
19778 cat confdefs.h - <<_ACEOF >conftest.c
19779 /* confdefs.h.  */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h.  */
19784
19785
19786                 #include <linux/blkdev.h>
19787
19788 int
19789 main (void)
19790 {
19791
19792                 struct request_queue *q = NULL;
19793                 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
19794
19795   ;
19796   return 0;
19797 }
19798
19799 _ACEOF
19800
19801
19802         rm -Rf build && mkdir -p build
19803         echo "obj-m := conftest.o" >build/Makefile
19804         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'
19805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806   (eval $ac_try) 2>&5
19807   ac_status=$?
19808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; }; then
19815
19816                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19817 $as_echo "yes" >&6; }
19818
19819 cat >>confdefs.h <<\_ACEOF
19820 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
19821 _ACEOF
19822
19823
19824 else
19825   $as_echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828                 { $as_echo "$as_me:$LINENO: result: no" >&5
19829 $as_echo "no" >&6; }
19830
19831
19832
19833 fi
19834
19835         rm -Rf build
19836
19837
19838         EXTRA_KCFLAGS="$tmp_flags"
19839
19840
19841         { $as_echo "$as_me:$LINENO: checking whether blk_queue_physical_block_size() is available" >&5
19842 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
19843         tmp_flags="$EXTRA_KCFLAGS"
19844         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19845
19846
19847 cat confdefs.h - <<_ACEOF >conftest.c
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853
19854
19855                 #include <linux/blkdev.h>
19856
19857 int
19858 main (void)
19859 {
19860
19861                 struct request_queue *q = NULL;
19862                 unsigned short block_size = 1;
19863                 (void) blk_queue_physical_block_size(q, block_size);
19864
19865   ;
19866   return 0;
19867 }
19868
19869 _ACEOF
19870
19871
19872         rm -Rf build && mkdir -p build
19873         echo "obj-m := conftest.o" >build/Makefile
19874         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'
19875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876   (eval $ac_try) 2>&5
19877   ac_status=$?
19878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; }; then
19885
19886                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19887 $as_echo "yes" >&6; }
19888
19889 cat >>confdefs.h <<\_ACEOF
19890 #define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1
19891 _ACEOF
19892
19893
19894 else
19895   $as_echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19897
19898                 { $as_echo "$as_me:$LINENO: result: no" >&5
19899 $as_echo "no" >&6; }
19900
19901
19902
19903 fi
19904
19905         rm -Rf build
19906
19907
19908         EXTRA_KCFLAGS="$tmp_flags"
19909
19910
19911         { $as_echo "$as_me:$LINENO: checking whether blk_queue_io_opt() is available" >&5
19912 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
19913         tmp_flags="$EXTRA_KCFLAGS"
19914         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19915
19916
19917 cat confdefs.h - <<_ACEOF >conftest.c
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923
19924
19925                 #include <linux/blkdev.h>
19926
19927 int
19928 main (void)
19929 {
19930
19931                 struct request_queue *q = NULL;
19932                 unsigned int opt = 1;
19933                 (void) blk_queue_io_opt(q, opt);
19934
19935   ;
19936   return 0;
19937 }
19938
19939 _ACEOF
19940
19941
19942         rm -Rf build && mkdir -p build
19943         echo "obj-m := conftest.o" >build/Makefile
19944         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'
19945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946   (eval $ac_try) 2>&5
19947   ac_status=$?
19948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19951   (eval $ac_try) 2>&5
19952   ac_status=$?
19953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; }; then
19955
19956                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19957 $as_echo "yes" >&6; }
19958
19959 cat >>confdefs.h <<\_ACEOF
19960 #define HAVE_BLK_QUEUE_IO_OPT 1
19961 _ACEOF
19962
19963
19964 else
19965   $as_echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19967
19968                 { $as_echo "$as_me:$LINENO: result: no" >&5
19969 $as_echo "no" >&6; }
19970
19971
19972
19973 fi
19974
19975         rm -Rf build
19976
19977
19978         EXTRA_KCFLAGS="$tmp_flags"
19979
19980
19981         { $as_echo "$as_me:$LINENO: checking whether blk_queue_nonrot() is available" >&5
19982 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
19983         tmp_flags="$EXTRA_KCFLAGS"
19984         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
19985
19986
19987 cat confdefs.h - <<_ACEOF >conftest.c
19988 /* confdefs.h.  */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h.  */
19993
19994
19995                 #include <linux/blkdev.h>
19996
19997 int
19998 main (void)
19999 {
20000
20001                 struct request_queue *q = NULL;
20002                 (void) blk_queue_nonrot(q);
20003
20004   ;
20005   return 0;
20006 }
20007
20008 _ACEOF
20009
20010
20011         rm -Rf build && mkdir -p build
20012         echo "obj-m := conftest.o" >build/Makefile
20013         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'
20014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015   (eval $ac_try) 2>&5
20016   ac_status=$?
20017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020   (eval $ac_try) 2>&5
20021   ac_status=$?
20022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); }; }; then
20024
20025                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20026 $as_echo "yes" >&6; }
20027
20028 cat >>confdefs.h <<\_ACEOF
20029 #define HAVE_BLK_QUEUE_NONROT 1
20030 _ACEOF
20031
20032
20033 else
20034   $as_echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20036
20037                 { $as_echo "$as_me:$LINENO: result: no" >&5
20038 $as_echo "no" >&6; }
20039
20040
20041
20042 fi
20043
20044         rm -Rf build
20045
20046
20047         EXTRA_KCFLAGS="$tmp_flags"
20048
20049
20050         { $as_echo "$as_me:$LINENO: checking whether blk_queue_discard() is available" >&5
20051 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20052         tmp_flags="$EXTRA_KCFLAGS"
20053         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20054
20055
20056 cat confdefs.h - <<_ACEOF >conftest.c
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062
20063
20064                 #include <linux/blkdev.h>
20065
20066 int
20067 main (void)
20068 {
20069
20070                 struct request_queue *q = NULL;
20071                 (void) blk_queue_discard(q);
20072
20073   ;
20074   return 0;
20075 }
20076
20077 _ACEOF
20078
20079
20080         rm -Rf build && mkdir -p build
20081         echo "obj-m := conftest.o" >build/Makefile
20082         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'
20083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084   (eval $ac_try) 2>&5
20085   ac_status=$?
20086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; }; then
20093
20094                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20095 $as_echo "yes" >&6; }
20096
20097 cat >>confdefs.h <<\_ACEOF
20098 #define HAVE_BLK_QUEUE_DISCARD 1
20099 _ACEOF
20100
20101
20102 else
20103   $as_echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20105
20106                 { $as_echo "$as_me:$LINENO: result: no" >&5
20107 $as_echo "no" >&6; }
20108
20109
20110
20111 fi
20112
20113         rm -Rf build
20114
20115
20116         EXTRA_KCFLAGS="$tmp_flags"
20117
20118
20119         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
20120 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
20121         tmp_flags="$EXTRA_KCFLAGS"
20122         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20123
20124
20125 cat confdefs.h - <<_ACEOF >conftest.c
20126 /* confdefs.h.  */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h.  */
20131
20132
20133                 #include <linux/blkdev.h>
20134
20135 int
20136 main (void)
20137 {
20138
20139                 struct request_queue *q = NULL;
20140                 (void) blk_fetch_request(q);
20141
20142   ;
20143   return 0;
20144 }
20145
20146 _ACEOF
20147
20148
20149         rm -Rf build && mkdir -p build
20150         echo "obj-m := conftest.o" >build/Makefile
20151         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'
20152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153   (eval $ac_try) 2>&5
20154   ac_status=$?
20155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162
20163                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20164 $as_echo "yes" >&6; }
20165
20166 cat >>confdefs.h <<\_ACEOF
20167 #define HAVE_BLK_FETCH_REQUEST 1
20168 _ACEOF
20169
20170
20171 else
20172   $as_echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.$ac_ext >&5
20174
20175                 { $as_echo "$as_me:$LINENO: result: no" >&5
20176 $as_echo "no" >&6; }
20177
20178
20179
20180 fi
20181
20182         rm -Rf build
20183
20184
20185         EXTRA_KCFLAGS="$tmp_flags"
20186
20187
20188         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
20189 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
20190         tmp_flags="$EXTRA_KCFLAGS"
20191         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20192
20193
20194 cat confdefs.h - <<_ACEOF >conftest.c
20195 /* confdefs.h.  */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h.  */
20200
20201
20202                 #include <linux/blkdev.h>
20203
20204 int
20205 main (void)
20206 {
20207
20208                 struct request_queue *q = NULL;
20209                 struct request *req = NULL;
20210                 blk_requeue_request(q, req);
20211
20212   ;
20213   return 0;
20214 }
20215
20216 _ACEOF
20217
20218
20219         rm -Rf build && mkdir -p build
20220         echo "obj-m := conftest.o" >build/Makefile
20221         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'
20222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20223   (eval $ac_try) 2>&5
20224   ac_status=$?
20225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228   (eval $ac_try) 2>&5
20229   ac_status=$?
20230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); }; }; then
20232
20233                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20234 $as_echo "yes" >&6; }
20235
20236 cat >>confdefs.h <<\_ACEOF
20237 #define HAVE_BLK_REQUEUE_REQUEST 1
20238 _ACEOF
20239
20240
20241 else
20242   $as_echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20244
20245                 { $as_echo "$as_me:$LINENO: result: no" >&5
20246 $as_echo "no" >&6; }
20247
20248
20249
20250 fi
20251
20252         rm -Rf build
20253
20254
20255         EXTRA_KCFLAGS="$tmp_flags"
20256
20257
20258         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
20259 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
20260         tmp_flags="$EXTRA_KCFLAGS"
20261         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20262
20263
20264 cat confdefs.h - <<_ACEOF >conftest.c
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270
20271
20272                 #include <linux/blkdev.h>
20273
20274 int
20275 main (void)
20276 {
20277
20278                 struct request *req = NULL;
20279                 (void) blk_rq_bytes(req);
20280
20281   ;
20282   return 0;
20283 }
20284
20285 _ACEOF
20286
20287
20288         rm -Rf build && mkdir -p build
20289         echo "obj-m := conftest.o" >build/Makefile
20290         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'
20291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292   (eval $ac_try) 2>&5
20293   ac_status=$?
20294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297   (eval $ac_try) 2>&5
20298   ac_status=$?
20299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); }; }; then
20301
20302                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20303 $as_echo "yes" >&6; }
20304
20305 cat >>confdefs.h <<\_ACEOF
20306 #define HAVE_BLK_RQ_BYTES 1
20307 _ACEOF
20308
20309
20310 else
20311   $as_echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314                 { $as_echo "$as_me:$LINENO: result: no" >&5
20315 $as_echo "no" >&6; }
20316
20317
20318
20319 fi
20320
20321         rm -Rf build
20322
20323
20324
20325         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
20326 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20327
20328
20329 cat confdefs.h - <<_ACEOF >conftest.c
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335
20336
20337                 #include <linux/module.h>
20338                 #include <linux/blkdev.h>
20339
20340                 MODULE_LICENSE("CDDL");
20341
20342 int
20343 main (void)
20344 {
20345
20346                 struct request *req = NULL;
20347                 (void) blk_rq_bytes(req);
20348
20349   ;
20350   return 0;
20351 }
20352
20353 _ACEOF
20354
20355
20356         rm -Rf build && mkdir -p build
20357         echo "obj-m := conftest.o" >build/Makefile
20358         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'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365   (eval $ac_try) 2>&5
20366   ac_status=$?
20367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; }; then
20369
20370                 { $as_echo "$as_me:$LINENO: result: no" >&5
20371 $as_echo "no" >&6; }
20372
20373 else
20374   $as_echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.$ac_ext >&5
20376
20377                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20378 $as_echo "yes" >&6; }
20379
20380 cat >>confdefs.h <<\_ACEOF
20381 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
20382 _ACEOF
20383
20384
20385
20386
20387 fi
20388
20389         rm -Rf build
20390
20391
20392         EXTRA_KCFLAGS="$tmp_flags"
20393
20394
20395         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
20396 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
20397         tmp_flags="$EXTRA_KCFLAGS"
20398         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20399
20400
20401 cat confdefs.h - <<_ACEOF >conftest.c
20402 /* confdefs.h.  */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h.  */
20407
20408
20409                 #include <linux/blkdev.h>
20410
20411 int
20412 main (void)
20413 {
20414
20415                 struct request *req = NULL;
20416                 (void) blk_rq_pos(req);
20417
20418   ;
20419   return 0;
20420 }
20421
20422 _ACEOF
20423
20424
20425         rm -Rf build && mkdir -p build
20426         echo "obj-m := conftest.o" >build/Makefile
20427         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'
20428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429   (eval $ac_try) 2>&5
20430   ac_status=$?
20431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434   (eval $ac_try) 2>&5
20435   ac_status=$?
20436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); }; }; then
20438
20439                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20440 $as_echo "yes" >&6; }
20441
20442 cat >>confdefs.h <<\_ACEOF
20443 #define HAVE_BLK_RQ_POS 1
20444 _ACEOF
20445
20446
20447 else
20448   $as_echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451                 { $as_echo "$as_me:$LINENO: result: no" >&5
20452 $as_echo "no" >&6; }
20453
20454
20455
20456 fi
20457
20458         rm -Rf build
20459
20460
20461         EXTRA_KCFLAGS="$tmp_flags"
20462
20463
20464         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
20465 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
20466         tmp_flags="$EXTRA_KCFLAGS"
20467         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20468
20469
20470 cat confdefs.h - <<_ACEOF >conftest.c
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476
20477
20478                 #include <linux/blkdev.h>
20479
20480 int
20481 main (void)
20482 {
20483
20484                 struct request *req = NULL;
20485                 (void) blk_rq_sectors(req);
20486
20487   ;
20488   return 0;
20489 }
20490
20491 _ACEOF
20492
20493
20494         rm -Rf build && mkdir -p build
20495         echo "obj-m := conftest.o" >build/Makefile
20496         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'
20497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498   (eval $ac_try) 2>&5
20499   ac_status=$?
20500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503   (eval $ac_try) 2>&5
20504   ac_status=$?
20505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; }; then
20507
20508                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20509 $as_echo "yes" >&6; }
20510
20511 cat >>confdefs.h <<\_ACEOF
20512 #define HAVE_BLK_RQ_SECTORS 1
20513 _ACEOF
20514
20515
20516 else
20517   $as_echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520                 { $as_echo "$as_me:$LINENO: result: no" >&5
20521 $as_echo "no" >&6; }
20522
20523
20524
20525 fi
20526
20527         rm -Rf build
20528
20529
20530         EXTRA_KCFLAGS="$tmp_flags"
20531
20532
20533         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
20534 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
20535         tmp_flags="$EXTRA_KCFLAGS"
20536         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20537
20538
20539 cat confdefs.h - <<_ACEOF >conftest.c
20540 /* confdefs.h.  */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h.  */
20545
20546
20547                 #include <linux/blkdev.h>
20548
20549 int
20550 main (void)
20551 {
20552
20553                 struct gendisk *disk = NULL;
20554                 (void) get_disk_ro(disk);
20555
20556   ;
20557   return 0;
20558 }
20559
20560 _ACEOF
20561
20562
20563         rm -Rf build && mkdir -p build
20564         echo "obj-m := conftest.o" >build/Makefile
20565         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'
20566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567   (eval $ac_try) 2>&5
20568   ac_status=$?
20569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572   (eval $ac_try) 2>&5
20573   ac_status=$?
20574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); }; }; then
20576
20577                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20578 $as_echo "yes" >&6; }
20579
20580 cat >>confdefs.h <<\_ACEOF
20581 #define HAVE_GET_DISK_RO 1
20582 _ACEOF
20583
20584
20585 else
20586   $as_echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20588
20589                 { $as_echo "$as_me:$LINENO: result: no" >&5
20590 $as_echo "no" >&6; }
20591
20592
20593
20594 fi
20595
20596         rm -Rf build
20597
20598
20599         EXTRA_KCFLAGS="$tmp_flags"
20600
20601
20602         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
20603 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
20604         tmp_flags="$EXTRA_KCFLAGS"
20605         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20606
20607
20608 cat confdefs.h - <<_ACEOF >conftest.c
20609 /* confdefs.h.  */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h.  */
20614
20615
20616                 #include <linux/blkdev.h>
20617
20618 int
20619 main (void)
20620 {
20621
20622                 struct request *req = NULL;
20623                 (void) rq_is_sync(req);
20624
20625   ;
20626   return 0;
20627 }
20628
20629 _ACEOF
20630
20631
20632         rm -Rf build && mkdir -p build
20633         echo "obj-m := conftest.o" >build/Makefile
20634         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'
20635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20636   (eval $ac_try) 2>&5
20637   ac_status=$?
20638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20641   (eval $ac_try) 2>&5
20642   ac_status=$?
20643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); }; }; then
20645
20646                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20647 $as_echo "yes" >&6; }
20648
20649 cat >>confdefs.h <<\_ACEOF
20650 #define HAVE_RQ_IS_SYNC 1
20651 _ACEOF
20652
20653
20654 else
20655   $as_echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658                 { $as_echo "$as_me:$LINENO: result: no" >&5
20659 $as_echo "no" >&6; }
20660
20661
20662
20663 fi
20664
20665         rm -Rf build
20666
20667
20668         EXTRA_KCFLAGS="$tmp_flags"
20669
20670
20671         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
20672 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
20673         tmp_flags="$EXTRA_KCFLAGS"
20674         EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
20675
20676
20677 cat confdefs.h - <<_ACEOF >conftest.c
20678 /* confdefs.h.  */
20679 _ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h.  */
20683
20684
20685                 #include <linux/blkdev.h>
20686
20687 int
20688 main (void)
20689 {
20690
20691                 struct bio_vec *bv;
20692                 struct req_iterator iter;
20693                 struct request *req = NULL;
20694                 rq_for_each_segment(bv, req, iter) { }
20695
20696   ;
20697   return 0;
20698 }
20699
20700 _ACEOF
20701
20702
20703         rm -Rf build && mkdir -p build
20704         echo "obj-m := conftest.o" >build/Makefile
20705         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'
20706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707   (eval $ac_try) 2>&5
20708   ac_status=$?
20709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712   (eval $ac_try) 2>&5
20713   ac_status=$?
20714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); }; }; then
20716
20717                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20718 $as_echo "yes" >&6; }
20719
20720 cat >>confdefs.h <<\_ACEOF
20721 #define HAVE_RQ_FOR_EACH_SEGMENT 1
20722 _ACEOF
20723
20724
20725 else
20726   $as_echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729                 { $as_echo "$as_me:$LINENO: result: no" >&5
20730 $as_echo "no" >&6; }
20731
20732
20733
20734 fi
20735
20736         rm -Rf build
20737
20738
20739         EXTRA_KCFLAGS="$tmp_flags"
20740
20741         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
20742 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
20743
20744
20745 cat confdefs.h - <<_ACEOF >conftest.c
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751
20752
20753                 #include <linux/fs.h>
20754                 #include <linux/xattr.h>
20755
20756                 const struct xattr_handler xattr_test_handler = {
20757                         .prefix = "test",
20758                         .get    = NULL,
20759                         .set    = NULL,
20760                 };
20761
20762                 const struct xattr_handler *xattr_handlers[] = {
20763                         &xattr_test_handler,
20764                 };
20765
20766 int
20767 main (void)
20768 {
20769
20770                 struct super_block sb __attribute__ ((unused));
20771
20772                 sb.s_xattr = xattr_handlers;
20773
20774   ;
20775   return 0;
20776 }
20777
20778 _ACEOF
20779
20780
20781         rm -Rf build && mkdir -p build
20782         echo "obj-m := conftest.o" >build/Makefile
20783         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'
20784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785   (eval $ac_try) 2>&5
20786   ac_status=$?
20787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790   (eval $ac_try) 2>&5
20791   ac_status=$?
20792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; }; then
20794
20795                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20796 $as_echo "yes" >&6; }
20797
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_CONST_XATTR_HANDLER 1
20800 _ACEOF
20801
20802
20803 else
20804   $as_echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807                 { $as_echo "$as_me:$LINENO: result: no" >&5
20808 $as_echo "no" >&6; }
20809
20810
20811
20812 fi
20813
20814         rm -Rf build
20815
20816
20817
20818
20819         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
20820 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
20821
20822
20823 cat confdefs.h - <<_ACEOF >conftest.c
20824 /* confdefs.h.  */
20825 _ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h.  */
20829
20830
20831                 #include <linux/xattr.h>
20832
20833 int
20834 main (void)
20835 {
20836
20837                 int (*get)(struct dentry *dentry, const char *name,
20838                     void *buffer, size_t size, int handler_flags) = NULL;
20839                 struct xattr_handler xops __attribute__ ((unused));
20840
20841                 xops.get = get;
20842
20843   ;
20844   return 0;
20845 }
20846
20847 _ACEOF
20848
20849
20850         rm -Rf build && mkdir -p build
20851         echo "obj-m := conftest.o" >build/Makefile
20852         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'
20853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854   (eval $ac_try) 2>&5
20855   ac_status=$?
20856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859   (eval $ac_try) 2>&5
20860   ac_status=$?
20861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862   (exit $ac_status); }; }; then
20863
20864                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20865 $as_echo "yes" >&6; }
20866
20867 cat >>confdefs.h <<\_ACEOF
20868 #define HAVE_DENTRY_XATTR_GET 1
20869 _ACEOF
20870
20871
20872 else
20873   $as_echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20875
20876                 { $as_echo "$as_me:$LINENO: result: no" >&5
20877 $as_echo "no" >&6; }
20878
20879
20880
20881 fi
20882
20883         rm -Rf build
20884
20885
20886
20887
20888         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
20889 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
20890
20891
20892 cat confdefs.h - <<_ACEOF >conftest.c
20893 /* confdefs.h.  */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h.  */
20898
20899
20900                 #include <linux/xattr.h>
20901
20902 int
20903 main (void)
20904 {
20905
20906                 int (*set)(struct dentry *dentry, const char *name,
20907                     const void *buffer, size_t size, int flags,
20908                     int handler_flags) = NULL;
20909                 struct xattr_handler xops __attribute__ ((unused));
20910
20911                 xops.set = set;
20912
20913   ;
20914   return 0;
20915 }
20916
20917 _ACEOF
20918
20919
20920         rm -Rf build && mkdir -p build
20921         echo "obj-m := conftest.o" >build/Makefile
20922         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'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929   (eval $ac_try) 2>&5
20930   ac_status=$?
20931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); }; }; then
20933
20934                 { $as_echo "$as_me:$LINENO: result: yes" >&5
20935 $as_echo "yes" >&6; }
20936
20937 cat >>confdefs.h <<\_ACEOF
20938 #define HAVE_DENTRY_XATTR_SET 1
20939 _ACEOF
20940
20941
20942 else
20943   $as_echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20945
20946                 { $as_echo "$as_me:$LINENO: result: no" >&5
20947 $as_echo "no" >&6; }
20948
20949
20950
20951 fi
20952
20953         rm -Rf build
20954
20955
20956
20957
20958         { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
20959 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
20960
20961
20962
20963 cat confdefs.h - <<_ACEOF >conftest.c
20964 /* confdefs.h.  */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h.  */
20969
20970
20971                 #include <linux/fs.h>
20972
20973 int
20974 main (void)
20975 {
20976
20977                 int (*show_options) (struct seq_file *, struct dentry *) = NULL;
20978                 struct super_operations sops __attribute__ ((unused));
20979
20980                 sops.show_options = show_options;
20981
20982   ;
20983   return 0;
20984 }
20985
20986 _ACEOF
20987
20988
20989         rm -Rf build && mkdir -p build
20990         echo "obj-m := conftest.o" >build/Makefile
20991         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'
20992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993   (eval $ac_try) 2>&5
20994   ac_status=$?
20995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20998   (eval $ac_try) 2>&5
20999   ac_status=$?
21000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); }; }; then
21002
21003                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21004 $as_echo "yes" >&6; }
21005
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
21008 _ACEOF
21009
21010
21011 else
21012   $as_echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015                 { $as_echo "$as_me:$LINENO: result: no" >&5
21016 $as_echo "no" >&6; }
21017
21018
21019
21020 fi
21021
21022         rm -Rf build
21023
21024
21025
21026
21027         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
21028 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21029
21030
21031
21032 cat confdefs.h - <<_ACEOF >conftest.c
21033 /* confdefs.h.  */
21034 _ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h.  */
21038
21039
21040                 #include <linux/fs.h>
21041
21042 int
21043 main (void)
21044 {
21045
21046                 int (*fsync) (struct file *, struct dentry *, int) = NULL;
21047                 struct file_operations fops __attribute__ ((unused));
21048
21049                 fops.fsync = fsync;
21050
21051   ;
21052   return 0;
21053 }
21054
21055 _ACEOF
21056
21057
21058         rm -Rf build && mkdir -p build
21059         echo "obj-m := conftest.o" >build/Makefile
21060         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'
21061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062   (eval $ac_try) 2>&5
21063   ac_status=$?
21064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067   (eval $ac_try) 2>&5
21068   ac_status=$?
21069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070   (exit $ac_status); }; }; then
21071
21072                 { $as_echo "$as_me:$LINENO: result: dentry" >&5
21073 $as_echo "dentry" >&6; }
21074
21075 cat >>confdefs.h <<\_ACEOF
21076 #define HAVE_FSYNC_WITH_DENTRY 1
21077 _ACEOF
21078
21079
21080 else
21081   $as_echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084
21085
21086
21087 fi
21088
21089         rm -Rf build
21090
21091
21092
21093
21094
21095
21096 cat confdefs.h - <<_ACEOF >conftest.c
21097 /* confdefs.h.  */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h.  */
21102
21103
21104                 #include <linux/fs.h>
21105
21106 int
21107 main (void)
21108 {
21109
21110                 int (*fsync) (struct file *, int) = NULL;
21111                 struct file_operations fops __attribute__ ((unused));
21112
21113                 fops.fsync = fsync;
21114
21115   ;
21116   return 0;
21117 }
21118
21119 _ACEOF
21120
21121
21122         rm -Rf build && mkdir -p build
21123         echo "obj-m := conftest.o" >build/Makefile
21124         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'
21125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126   (eval $ac_try) 2>&5
21127   ac_status=$?
21128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131   (eval $ac_try) 2>&5
21132   ac_status=$?
21133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; }; then
21135
21136                 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
21137 $as_echo "no dentry" >&6; }
21138
21139 cat >>confdefs.h <<\_ACEOF
21140 #define HAVE_FSYNC_WITHOUT_DENTRY 1
21141 _ACEOF
21142
21143
21144 else
21145   $as_echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21147
21148
21149
21150
21151 fi
21152
21153         rm -Rf build
21154
21155
21156
21157
21158
21159
21160 cat confdefs.h - <<_ACEOF >conftest.c
21161 /* confdefs.h.  */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h.  */
21166
21167
21168                 #include <linux/fs.h>
21169
21170 int
21171 main (void)
21172 {
21173
21174                 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
21175                 struct file_operations fops __attribute__ ((unused));
21176
21177                 fops.fsync = fsync;
21178
21179   ;
21180   return 0;
21181 }
21182
21183 _ACEOF
21184
21185
21186         rm -Rf build && mkdir -p build
21187         echo "obj-m := conftest.o" >build/Makefile
21188         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'
21189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190   (eval $ac_try) 2>&5
21191   ac_status=$?
21192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195   (eval $ac_try) 2>&5
21196   ac_status=$?
21197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); }; }; then
21199
21200                 { $as_echo "$as_me:$LINENO: result: range" >&5
21201 $as_echo "range" >&6; }
21202
21203 cat >>confdefs.h <<\_ACEOF
21204 #define HAVE_FSYNC_RANGE 1
21205 _ACEOF
21206
21207
21208 else
21209   $as_echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212
21213
21214
21215 fi
21216
21217         rm -Rf build
21218
21219
21220
21221
21222
21223         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
21224 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21225
21226
21227 cat confdefs.h - <<_ACEOF >conftest.c
21228 /* confdefs.h.  */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h.  */
21233
21234
21235                 #include <linux/fs.h>
21236
21237 int
21238 main (void)
21239 {
21240
21241                 void (*evict_inode) (struct inode *) = NULL;
21242                 struct super_operations sops __attribute__ ((unused)) = {
21243                         .evict_inode = evict_inode,
21244                 };
21245
21246   ;
21247   return 0;
21248 }
21249
21250 _ACEOF
21251
21252
21253         rm -Rf build && mkdir -p build
21254         echo "obj-m := conftest.o" >build/Makefile
21255         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'
21256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257   (eval $ac_try) 2>&5
21258   ac_status=$?
21259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262   (eval $ac_try) 2>&5
21263   ac_status=$?
21264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); }; }; then
21266
21267                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21268 $as_echo "yes" >&6; }
21269
21270 cat >>confdefs.h <<\_ACEOF
21271 #define HAVE_EVICT_INODE 1
21272 _ACEOF
21273
21274
21275 else
21276   $as_echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21278
21279                 { $as_echo "$as_me:$LINENO: result: no" >&5
21280 $as_echo "no" >&6; }
21281
21282
21283
21284 fi
21285
21286         rm -Rf build
21287
21288
21289
21290
21291         { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
21292 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21293
21294
21295 cat confdefs.h - <<_ACEOF >conftest.c
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301
21302
21303                 #include <linux/fs.h>
21304
21305 int
21306 main (void)
21307 {
21308
21309                 int (*nr_cached_objects)(struct super_block *)
21310                         __attribute__ ((unused)) = NULL;
21311                 struct super_operations sops __attribute__ ((unused)) = {
21312                         .nr_cached_objects = nr_cached_objects,
21313                 };
21314
21315   ;
21316   return 0;
21317 }
21318
21319 _ACEOF
21320
21321
21322         rm -Rf build && mkdir -p build
21323         echo "obj-m := conftest.o" >build/Makefile
21324         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'
21325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326   (eval $ac_try) 2>&5
21327   ac_status=$?
21328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331   (eval $ac_try) 2>&5
21332   ac_status=$?
21333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); }; }; then
21335
21336                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21337 $as_echo "yes" >&6; }
21338
21339 cat >>confdefs.h <<\_ACEOF
21340 #define HAVE_NR_CACHED_OBJECTS 1
21341 _ACEOF
21342
21343
21344 else
21345   $as_echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348                 { $as_echo "$as_me:$LINENO: result: no" >&5
21349 $as_echo "no" >&6; }
21350
21351
21352
21353 fi
21354
21355         rm -Rf build
21356
21357
21358
21359
21360         { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
21361 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
21362
21363
21364 cat confdefs.h - <<_ACEOF >conftest.c
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370
21371
21372                 #include <linux/fs.h>
21373
21374 int
21375 main (void)
21376 {
21377
21378                 void (*free_cached_objects)(struct super_block *, int)
21379                         __attribute__ ((unused)) = NULL;
21380                 struct super_operations sops __attribute__ ((unused)) = {
21381                         .free_cached_objects = free_cached_objects,
21382                 };
21383
21384   ;
21385   return 0;
21386 }
21387
21388 _ACEOF
21389
21390
21391         rm -Rf build && mkdir -p build
21392         echo "obj-m := conftest.o" >build/Makefile
21393         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'
21394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395   (eval $ac_try) 2>&5
21396   ac_status=$?
21397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400   (eval $ac_try) 2>&5
21401   ac_status=$?
21402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); }; }; then
21404
21405                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21406 $as_echo "yes" >&6; }
21407
21408 cat >>confdefs.h <<\_ACEOF
21409 #define HAVE_FREE_CACHED_OBJECTS 1
21410 _ACEOF
21411
21412
21413 else
21414   $as_echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.$ac_ext >&5
21416
21417                 { $as_echo "$as_me:$LINENO: result: no" >&5
21418 $as_echo "no" >&6; }
21419
21420
21421
21422 fi
21423
21424         rm -Rf build
21425
21426
21427
21428
21429
21430         { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
21431 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21432
21433
21434 cat confdefs.h - <<_ACEOF >conftest.c
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440
21441
21442                 #include <linux/fs.h>
21443
21444 int
21445 main (void)
21446 {
21447
21448                 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
21449                 struct file_operations fops __attribute__ ((unused)) = {
21450                         .fallocate = fallocate,
21451                 };
21452
21453   ;
21454   return 0;
21455 }
21456
21457 _ACEOF
21458
21459
21460         rm -Rf build && mkdir -p build
21461         echo "obj-m := conftest.o" >build/Makefile
21462         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'
21463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464   (eval $ac_try) 2>&5
21465   ac_status=$?
21466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21469   (eval $ac_try) 2>&5
21470   ac_status=$?
21471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); }; }; then
21473
21474                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21475 $as_echo "yes" >&6; }
21476
21477 cat >>confdefs.h <<\_ACEOF
21478 #define HAVE_FILE_FALLOCATE 1
21479 _ACEOF
21480
21481
21482 else
21483   $as_echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486                 { $as_echo "$as_me:$LINENO: result: no" >&5
21487 $as_echo "no" >&6; }
21488
21489
21490
21491 fi
21492
21493         rm -Rf build
21494
21495
21496
21497
21498         { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
21499 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21500
21501
21502 cat confdefs.h - <<_ACEOF >conftest.c
21503 /* confdefs.h.  */
21504 _ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h.  */
21508
21509
21510                 #include <linux/fs.h>
21511
21512 int
21513 main (void)
21514 {
21515
21516                 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
21517                 struct inode_operations fops __attribute__ ((unused)) = {
21518                         .fallocate = fallocate,
21519                 };
21520
21521   ;
21522   return 0;
21523 }
21524
21525 _ACEOF
21526
21527
21528         rm -Rf build && mkdir -p build
21529         echo "obj-m := conftest.o" >build/Makefile
21530         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'
21531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532   (eval $ac_try) 2>&5
21533   ac_status=$?
21534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537   (eval $ac_try) 2>&5
21538   ac_status=$?
21539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); }; }; then
21541
21542                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21543 $as_echo "yes" >&6; }
21544
21545 cat >>confdefs.h <<\_ACEOF
21546 #define HAVE_INODE_FALLOCATE 1
21547 _ACEOF
21548
21549
21550 else
21551   $as_echo "$as_me: failed program was:" >&5
21552 sed 's/^/| /' conftest.$ac_ext >&5
21553
21554                 { $as_echo "$as_me:$LINENO: result: no" >&5
21555 $as_echo "no" >&6; }
21556
21557
21558
21559 fi
21560
21561         rm -Rf build
21562
21563
21564
21565
21566
21567         { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
21568 $as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
21569         grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21570                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21571         rc=$?
21572         if test $rc -ne 0; then
21573
21574                 export=0
21575                 for file in fs/inode.c; do
21576                         grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
21577                         rc=$?
21578                         if test $rc -eq 0; then
21579
21580                                 export=1
21581                                 break;
21582
21583 fi
21584
21585                 done
21586                 if test $export -eq 0; then
21587
21588                         { $as_echo "$as_me:$LINENO: result: no" >&5
21589 $as_echo "no" >&6; }
21590
21591
21592 else
21593
21594                         { $as_echo "$as_me:$LINENO: result: yes" >&5
21595 $as_echo "yes" >&6; }
21596
21597 cat >>confdefs.h <<\_ACEOF
21598 #define HAVE_INSERT_INODE_LOCKED 1
21599 _ACEOF
21600
21601
21602 fi
21603
21604
21605 else
21606
21607                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21608 $as_echo "yes" >&6; }
21609
21610 cat >>confdefs.h <<\_ACEOF
21611 #define HAVE_INSERT_INODE_LOCKED 1
21612 _ACEOF
21613
21614
21615 fi
21616
21617
21618
21619
21620         { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
21621 $as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
21622         grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
21623                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21624         rc=$?
21625         if test $rc -ne 0; then
21626
21627                 export=0
21628                 for file in fs/dcache.c; do
21629                         grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
21630                         rc=$?
21631                         if test $rc -eq 0; then
21632
21633                                 export=1
21634                                 break;
21635
21636 fi
21637
21638                 done
21639                 if test $export -eq 0; then
21640
21641                         { $as_echo "$as_me:$LINENO: result: no" >&5
21642 $as_echo "no" >&6; }
21643
21644
21645 else
21646
21647                         { $as_echo "$as_me:$LINENO: result: yes" >&5
21648 $as_echo "yes" >&6; }
21649
21650 cat >>confdefs.h <<\_ACEOF
21651 #define HAVE_D_OBTAIN_ALIAS 1
21652 _ACEOF
21653
21654
21655 fi
21656
21657
21658 else
21659
21660                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21661 $as_echo "yes" >&6; }
21662
21663 cat >>confdefs.h <<\_ACEOF
21664 #define HAVE_D_OBTAIN_ALIAS 1
21665 _ACEOF
21666
21667
21668 fi
21669
21670
21671
21672
21673         { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
21674 $as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
21675         grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
21676                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21677         rc=$?
21678         if test $rc -ne 0; then
21679
21680                 export=0
21681                 for file in fs/block_dev.c; do
21682                         grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
21683                         rc=$?
21684                         if test $rc -eq 0; then
21685
21686                                 export=1
21687                                 break;
21688
21689 fi
21690
21691                 done
21692                 if test $export -eq 0; then
21693
21694                         { $as_echo "$as_me:$LINENO: result: no" >&5
21695 $as_echo "no" >&6; }
21696
21697
21698 else
21699
21700                         { $as_echo "$as_me:$LINENO: result: yes" >&5
21701 $as_echo "yes" >&6; }
21702
21703 cat >>confdefs.h <<\_ACEOF
21704 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
21705 _ACEOF
21706
21707
21708 fi
21709
21710
21711 else
21712
21713                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21714 $as_echo "yes" >&6; }
21715
21716 cat >>confdefs.h <<\_ACEOF
21717 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
21718 _ACEOF
21719
21720
21721 fi
21722
21723
21724
21725
21726         { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
21727 $as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
21728         grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21729                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21730         rc=$?
21731         if test $rc -ne 0; then
21732
21733                 export=0
21734                 for file in mm/truncate.c; do
21735                         grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
21736                         rc=$?
21737                         if test $rc -eq 0; then
21738
21739                                 export=1
21740                                 break;
21741
21742 fi
21743
21744                 done
21745                 if test $export -eq 0; then
21746
21747                         { $as_echo "$as_me:$LINENO: result: no" >&5
21748 $as_echo "no" >&6; }
21749
21750
21751 else
21752
21753                         { $as_echo "$as_me:$LINENO: result: yes" >&5
21754 $as_echo "yes" >&6; }
21755
21756 cat >>confdefs.h <<\_ACEOF
21757 #define HAVE_TRUNCATE_SETSIZE 1
21758 _ACEOF
21759
21760
21761 fi
21762
21763
21764 else
21765
21766                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21767 $as_echo "yes" >&6; }
21768
21769 cat >>confdefs.h <<\_ACEOF
21770 #define HAVE_TRUNCATE_SETSIZE 1
21771 _ACEOF
21772
21773
21774 fi
21775
21776
21777
21778
21779         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
21780 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
21781         tmp_flags="$EXTRA_KCFLAGS"
21782         EXTRA_KCFLAGS="-Werror"
21783
21784
21785 cat confdefs.h - <<_ACEOF >conftest.c
21786 /* confdefs.h.  */
21787 _ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h.  */
21791
21792
21793                 #include <linux/security.h>
21794
21795 int
21796 main (void)
21797 {
21798
21799                 struct inode *ip __attribute__ ((unused)) = NULL;
21800                 struct inode *dip __attribute__ ((unused)) = NULL;
21801                 const struct qstr *str __attribute__ ((unused)) = NULL;
21802                 char *name __attribute__ ((unused)) = NULL;
21803                 void *value __attribute__ ((unused)) = NULL;
21804                 size_t len __attribute__ ((unused)) = 0;
21805
21806                 security_inode_init_security(ip, dip, str, &name, &value, &len);
21807
21808   ;
21809   return 0;
21810 }
21811
21812 _ACEOF
21813
21814
21815         rm -Rf build && mkdir -p build
21816         echo "obj-m := conftest.o" >build/Makefile
21817         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'
21818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819   (eval $ac_try) 2>&5
21820   ac_status=$?
21821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824   (eval $ac_try) 2>&5
21825   ac_status=$?
21826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; }; then
21828
21829                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21830 $as_echo "yes" >&6; }
21831
21832 cat >>confdefs.h <<\_ACEOF
21833 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
21834 _ACEOF
21835
21836
21837 else
21838   $as_echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841                 { $as_echo "$as_me:$LINENO: result: no" >&5
21842 $as_echo "no" >&6; }
21843
21844
21845
21846 fi
21847
21848         rm -Rf build
21849
21850
21851         EXTRA_KCFLAGS="$tmp_flags"
21852
21853
21854         { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
21855 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
21856         tmp_flags="$EXTRA_KCFLAGS"
21857         EXTRA_KCFLAGS="-Werror"
21858
21859
21860 cat confdefs.h - <<_ACEOF >conftest.c
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866
21867
21868                 #include <linux/security.h>
21869
21870 int
21871 main (void)
21872 {
21873
21874                 struct inode *ip __attribute__ ((unused)) = NULL;
21875                 struct inode *dip __attribute__ ((unused)) = NULL;
21876                 const struct qstr *str __attribute__ ((unused)) = NULL;
21877                 initxattrs func __attribute__ ((unused)) = NULL;
21878
21879                 security_inode_init_security(ip, dip, str, func, NULL);
21880
21881   ;
21882   return 0;
21883 }
21884
21885 _ACEOF
21886
21887
21888         rm -Rf build && mkdir -p build
21889         echo "obj-m := conftest.o" >build/Makefile
21890         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'
21891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892   (eval $ac_try) 2>&5
21893   ac_status=$?
21894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
21896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897   (eval $ac_try) 2>&5
21898   ac_status=$?
21899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); }; }; then
21901
21902                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21903 $as_echo "yes" >&6; }
21904
21905 cat >>confdefs.h <<\_ACEOF
21906 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
21907 _ACEOF
21908
21909
21910 else
21911   $as_echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21913
21914                 { $as_echo "$as_me:$LINENO: result: no" >&5
21915 $as_echo "no" >&6; }
21916
21917
21918
21919 fi
21920
21921         rm -Rf build
21922
21923
21924         EXTRA_KCFLAGS="$tmp_flags"
21925
21926
21927         { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
21928 $as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
21929         grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
21930                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
21931         rc=$?
21932         if test $rc -ne 0; then
21933
21934                 export=0
21935                 for file in fs/super.c; do
21936                         grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
21937                         rc=$?
21938                         if test $rc -eq 0; then
21939
21940                                 export=1
21941                                 break;
21942
21943 fi
21944
21945                 done
21946                 if test $export -eq 0; then
21947
21948                         { $as_echo "$as_me:$LINENO: result: no" >&5
21949 $as_echo "no" >&6; }
21950
21951
21952 else
21953
21954                         { $as_echo "$as_me:$LINENO: result: yes" >&5
21955 $as_echo "yes" >&6; }
21956
21957 cat >>confdefs.h <<\_ACEOF
21958 #define HAVE_MOUNT_NODEV 1
21959 _ACEOF
21960
21961
21962 fi
21963
21964
21965 else
21966
21967                 { $as_echo "$as_me:$LINENO: result: yes" >&5
21968 $as_echo "yes" >&6; }
21969
21970 cat >>confdefs.h <<\_ACEOF
21971 #define HAVE_MOUNT_NODEV 1
21972 _ACEOF
21973
21974
21975 fi
21976
21977
21978
21979
21980         { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
21981 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
21982
21983
21984 cat confdefs.h - <<_ACEOF >conftest.c
21985 /* confdefs.h.  */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h.  */
21990
21991
21992                 #include <linux/fs.h>
21993
21994 int
21995 main (void)
21996 {
21997
21998                 int (*shrink)(struct shrinker *, struct shrink_control *sc)
21999                         __attribute__ ((unused)) = NULL;
22000                 struct super_block sb __attribute__ ((unused)) = {
22001                         .s_shrink.shrink = shrink,
22002                         .s_shrink.seeks = DEFAULT_SEEKS,
22003                         .s_shrink.batch = 0,
22004                 };
22005
22006   ;
22007   return 0;
22008 }
22009
22010 _ACEOF
22011
22012
22013         rm -Rf build && mkdir -p build
22014         echo "obj-m := conftest.o" >build/Makefile
22015         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'
22016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017   (eval $ac_try) 2>&5
22018   ac_status=$?
22019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22022   (eval $ac_try) 2>&5
22023   ac_status=$?
22024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); }; }; then
22026
22027                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22028 $as_echo "yes" >&6; }
22029
22030 cat >>confdefs.h <<\_ACEOF
22031 #define HAVE_SHRINK 1
22032 _ACEOF
22033
22034
22035
22036 else
22037   $as_echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22039
22040                 { $as_echo "$as_me:$LINENO: result: no" >&5
22041 $as_echo "no" >&6; }
22042
22043
22044
22045 fi
22046
22047         rm -Rf build
22048
22049
22050
22051
22052         { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
22053 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
22054
22055
22056 cat confdefs.h - <<_ACEOF >conftest.c
22057 /* confdefs.h.  */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h.  */
22062
22063
22064                 #include <linux/fs.h>
22065
22066 int
22067 main (void)
22068 {
22069
22070                 struct super_block sb __attribute__ ((unused));
22071                 sb.s_bdi = NULL;
22072
22073   ;
22074   return 0;
22075 }
22076
22077 _ACEOF
22078
22079
22080         rm -Rf build && mkdir -p build
22081         echo "obj-m := conftest.o" >build/Makefile
22082         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'
22083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084   (eval $ac_try) 2>&5
22085   ac_status=$?
22086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089   (eval $ac_try) 2>&5
22090   ac_status=$?
22091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092   (exit $ac_status); }; }; then
22093
22094                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22095 $as_echo "yes" >&6; }
22096
22097 cat >>confdefs.h <<\_ACEOF
22098 #define HAVE_BDI 1
22099 _ACEOF
22100
22101
22102 else
22103   $as_echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22105
22106                 { $as_echo "$as_me:$LINENO: result: no" >&5
22107 $as_echo "no" >&6; }
22108
22109
22110
22111 fi
22112
22113         rm -Rf build
22114
22115
22116
22117
22118         { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
22119 $as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
22120         grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22121                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
22122         rc=$?
22123         if test $rc -ne 0; then
22124
22125                 export=0
22126                 for file in mm/backing-dev.c; do
22127                         grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
22128                         rc=$?
22129                         if test $rc -eq 0; then
22130
22131                                 export=1
22132                                 break;
22133
22134 fi
22135
22136                 done
22137                 if test $export -eq 0; then
22138
22139                         { $as_echo "$as_me:$LINENO: result: no" >&5
22140 $as_echo "no" >&6; }
22141
22142
22143 else
22144
22145                         { $as_echo "$as_me:$LINENO: result: yes" >&5
22146 $as_echo "yes" >&6; }
22147
22148 cat >>confdefs.h <<\_ACEOF
22149 #define HAVE_BDI_SETUP_AND_REGISTER 1
22150 _ACEOF
22151
22152
22153 fi
22154
22155
22156 else
22157
22158                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22159 $as_echo "yes" >&6; }
22160
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_BDI_SETUP_AND_REGISTER 1
22163 _ACEOF
22164
22165
22166 fi
22167
22168
22169
22170
22171         { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
22172 $as_echo_n "checking whether set_nlink() is available... " >&6; }
22173
22174
22175 cat confdefs.h - <<_ACEOF >conftest.c
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181
22182
22183                 #include <linux/fs.h>
22184
22185 int
22186 main (void)
22187 {
22188
22189                 struct inode node;
22190                 unsigned int link = 0;
22191                 (void) set_nlink(&node, link);
22192
22193   ;
22194   return 0;
22195 }
22196
22197 _ACEOF
22198
22199
22200         rm -Rf build && mkdir -p build
22201         echo "obj-m := conftest.o" >build/Makefile
22202         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'
22203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204   (eval $ac_try) 2>&5
22205   ac_status=$?
22206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
22208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209   (eval $ac_try) 2>&5
22210   ac_status=$?
22211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); }; }; then
22213
22214                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22215 $as_echo "yes" >&6; }
22216
22217 cat >>confdefs.h <<\_ACEOF
22218 #define HAVE_SET_NLINK 1
22219 _ACEOF
22220
22221
22222 else
22223   $as_echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22225
22226                 { $as_echo "$as_me:$LINENO: result: no" >&5
22227 $as_echo "no" >&6; }
22228
22229
22230
22231 fi
22232
22233         rm -Rf build
22234
22235
22236
22237
22238         if test "$LINUX_OBJ" != "$LINUX"; then
22239
22240                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
22241
22242 fi
22243
22244
22245
22246
22247                         KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
22248         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
22249         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
22250
22251
22252
22253
22254
22255
22256 # Check whether --with-udevdir was given.
22257 if test "${with_udevdir+set}" = set; then
22258   withval=$with_udevdir; udevdir=$withval
22259 else
22260   udevdir='${exec_prefix}/lib/udev'
22261 fi
22262
22263
22264
22265 # Check whether --with-udevruledir was given.
22266 if test "${with_udevruledir+set}" = set; then
22267   withval=$with_udevruledir; udevruledir=$withval
22268 else
22269   udevruledir='${udevdir}/rules.d'
22270 fi
22271
22272
22273
22274
22275
22276
22277         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
22278 $as_echo_n "checking for target asm dir... " >&6; }
22279         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
22280
22281         case $TARGET_ARCH in
22282         i386|x86_64)
22283                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
22284                 ;;
22285         *)
22286                 TARGET_ASM_DIR=asm-generic
22287                 ;;
22288         esac
22289
22290
22291         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
22292 $as_echo "$TARGET_ASM_DIR" >&6; }
22293
22294
22295         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
22296 $as_echo_n "checking for ioctl()... " >&6; }
22297         cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 #include <unistd.h>
22304
22305 _ACEOF
22306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22307   $EGREP "ioctl" >/dev/null 2>&1; then
22308   is_unistd=yes
22309 else
22310   is_unistd=no
22311 fi
22312 rm -f conftest*
22313
22314         cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h.  */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h.  */
22320 #include <sys/ioctl.h>
22321
22322 _ACEOF
22323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22324   $EGREP "ioctl" >/dev/null 2>&1; then
22325   is_sys_ioctl=yes
22326 else
22327   is_sys_ioctl=no
22328 fi
22329 rm -f conftest*
22330
22331         cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h.  */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h.  */
22337 #include <stropts.h>
22338
22339 _ACEOF
22340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22341   $EGREP "ioctl" >/dev/null 2>&1; then
22342   is_stropts=yes
22343 else
22344   is_stropts=no
22345 fi
22346 rm -f conftest*
22347
22348
22349         if test $is_unistd = yes; then
22350                 result=unistd.h
22351
22352 cat >>confdefs.h <<\_ACEOF
22353 #define HAVE_IOCTL_IN_UNISTD_H 1
22354 _ACEOF
22355
22356         else
22357
22358                 if test $is_sys_ioctl = yes; then
22359                         result=sys/ioctl.h
22360
22361 cat >>confdefs.h <<\_ACEOF
22362 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
22363 _ACEOF
22364
22365                 elif test $is_stropts = yes; then
22366
22367 cat >>confdefs.h <<\_ACEOF
22368 #define HAVE_IOCTL_IN_STROPTS_H 1
22369 _ACEOF
22370
22371                 else
22372                         result=no
22373                 fi
22374         fi
22375
22376         if test $result = no; then
22377                 { $as_echo "$as_me:$LINENO: result: no" >&5
22378 $as_echo "no" >&6; }
22379                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
22380 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
22381    { (exit 1); exit 1; }; }
22382         else
22383                 { $as_echo "$as_me:$LINENO: result: yes" >&5
22384 $as_echo "yes" >&6; }
22385         fi
22386
22387
22388         ZLIB=
22389
22390         if test "${ac_cv_header_zlib_h+set}" = set; then
22391   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
22392 $as_echo_n "checking for zlib.h... " >&6; }
22393 if test "${ac_cv_header_zlib_h+set}" = set; then
22394   $as_echo_n "(cached) " >&6
22395 fi
22396 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22397 $as_echo "$ac_cv_header_zlib_h" >&6; }
22398 else
22399   # Is the header compilable?
22400 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
22401 $as_echo_n "checking zlib.h usability... " >&6; }
22402 cat >conftest.$ac_ext <<_ACEOF
22403 /* confdefs.h.  */
22404 _ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h.  */
22408 $ac_includes_default
22409 #include <zlib.h>
22410 _ACEOF
22411 rm -f conftest.$ac_objext
22412 if { (ac_try="$ac_compile"
22413 case "(($ac_try" in
22414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415   *) ac_try_echo=$ac_try;;
22416 esac
22417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22418 $as_echo "$ac_try_echo") >&5
22419   (eval "$ac_compile") 2>conftest.er1
22420   ac_status=$?
22421   grep -v '^ *+' conftest.er1 >conftest.err
22422   rm -f conftest.er1
22423   cat conftest.err >&5
22424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); } && {
22426          test -z "$ac_c_werror_flag" ||
22427          test ! -s conftest.err
22428        } && test -s conftest.$ac_objext; then
22429   ac_header_compiler=yes
22430 else
22431   $as_echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22433
22434         ac_header_compiler=no
22435 fi
22436
22437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22439 $as_echo "$ac_header_compiler" >&6; }
22440
22441 # Is the header present?
22442 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
22443 $as_echo_n "checking zlib.h presence... " >&6; }
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 #include <zlib.h>
22451 _ACEOF
22452 if { (ac_try="$ac_cpp conftest.$ac_ext"
22453 case "(($ac_try" in
22454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455   *) ac_try_echo=$ac_try;;
22456 esac
22457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22458 $as_echo "$ac_try_echo") >&5
22459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22460   ac_status=$?
22461   grep -v '^ *+' conftest.er1 >conftest.err
22462   rm -f conftest.er1
22463   cat conftest.err >&5
22464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); } >/dev/null && {
22466          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22467          test ! -s conftest.err
22468        }; then
22469   ac_header_preproc=yes
22470 else
22471   $as_echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22473
22474   ac_header_preproc=no
22475 fi
22476
22477 rm -f conftest.err conftest.$ac_ext
22478 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22479 $as_echo "$ac_header_preproc" >&6; }
22480
22481 # So?  What about this header?
22482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22483   yes:no: )
22484     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22485 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22486     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22487 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22488     ac_header_preproc=yes
22489     ;;
22490   no:yes:* )
22491     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22492 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22493     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
22494 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
22495     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22496 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22497     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
22498 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22499     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22500 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22501     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22502 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22503
22504     ;;
22505 esac
22506 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
22507 $as_echo_n "checking for zlib.h... " >&6; }
22508 if test "${ac_cv_header_zlib_h+set}" = set; then
22509   $as_echo_n "(cached) " >&6
22510 else
22511   ac_cv_header_zlib_h=$ac_header_preproc
22512 fi
22513 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22514 $as_echo "$ac_cv_header_zlib_h" >&6; }
22515
22516 fi
22517 if test "x$ac_cv_header_zlib_h" = x""yes; then
22518   :
22519 else
22520   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22522 { { $as_echo "$as_me:$LINENO: error:
22523         *** zlib.h missing, zlib-devel package required
22524 See \`config.log' for more details." >&5
22525 $as_echo "$as_me: error:
22526         *** zlib.h missing, zlib-devel package required
22527 See \`config.log' for more details." >&2;}
22528    { (exit 1); exit 1; }; }; }
22529 fi
22530
22531
22532
22533
22534 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
22535 $as_echo_n "checking for compress2 in -lz... " >&6; }
22536 if test "${ac_cv_lib_z_compress2+set}" = set; then
22537   $as_echo_n "(cached) " >&6
22538 else
22539   ac_check_lib_save_LIBS=$LIBS
22540 LIBS="-lz  $LIBS"
22541 cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547
22548 /* Override any GCC internal prototype to avoid an error.
22549    Use char because int might match the return type of a GCC
22550    builtin and then its argument prototype would still apply.  */
22551 #ifdef __cplusplus
22552 extern "C"
22553 #endif
22554 char compress2 ();
22555 int
22556 main ()
22557 {
22558 return compress2 ();
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 rm -f conftest.$ac_objext conftest$ac_exeext
22564 if { (ac_try="$ac_link"
22565 case "(($ac_try" in
22566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567   *) ac_try_echo=$ac_try;;
22568 esac
22569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22570 $as_echo "$ac_try_echo") >&5
22571   (eval "$ac_link") 2>conftest.er1
22572   ac_status=$?
22573   grep -v '^ *+' conftest.er1 >conftest.err
22574   rm -f conftest.er1
22575   cat conftest.err >&5
22576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577   (exit $ac_status); } && {
22578          test -z "$ac_c_werror_flag" ||
22579          test ! -s conftest.err
22580        } && test -s conftest$ac_exeext && {
22581          test "$cross_compiling" = yes ||
22582          $as_test_x conftest$ac_exeext
22583        }; then
22584   ac_cv_lib_z_compress2=yes
22585 else
22586   $as_echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22588
22589         ac_cv_lib_z_compress2=no
22590 fi
22591
22592 rm -rf conftest.dSYM
22593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22594       conftest$ac_exeext conftest.$ac_ext
22595 LIBS=$ac_check_lib_save_LIBS
22596 fi
22597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
22598 $as_echo "$ac_cv_lib_z_compress2" >&6; }
22599 if test "x$ac_cv_lib_z_compress2" = x""yes; then
22600   cat >>confdefs.h <<_ACEOF
22601 #define HAVE_LIBZ 1
22602 _ACEOF
22603
22604   LIBS="-lz $LIBS"
22605
22606 else
22607   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22609 { { $as_echo "$as_me:$LINENO: error:
22610         *** compress2() missing, zlib-devel package required
22611 See \`config.log' for more details." >&5
22612 $as_echo "$as_me: error:
22613         *** compress2() missing, zlib-devel package required
22614 See \`config.log' for more details." >&2;}
22615    { (exit 1); exit 1; }; }; }
22616 fi
22617
22618
22619
22620 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
22621 $as_echo_n "checking for uncompress in -lz... " >&6; }
22622 if test "${ac_cv_lib_z_uncompress+set}" = set; then
22623   $as_echo_n "(cached) " >&6
22624 else
22625   ac_check_lib_save_LIBS=$LIBS
22626 LIBS="-lz  $LIBS"
22627 cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h.  */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h.  */
22633
22634 /* Override any GCC internal prototype to avoid an error.
22635    Use char because int might match the return type of a GCC
22636    builtin and then its argument prototype would still apply.  */
22637 #ifdef __cplusplus
22638 extern "C"
22639 #endif
22640 char uncompress ();
22641 int
22642 main ()
22643 {
22644 return uncompress ();
22645   ;
22646   return 0;
22647 }
22648 _ACEOF
22649 rm -f conftest.$ac_objext conftest$ac_exeext
22650 if { (ac_try="$ac_link"
22651 case "(($ac_try" in
22652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22653   *) ac_try_echo=$ac_try;;
22654 esac
22655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22656 $as_echo "$ac_try_echo") >&5
22657   (eval "$ac_link") 2>conftest.er1
22658   ac_status=$?
22659   grep -v '^ *+' conftest.er1 >conftest.err
22660   rm -f conftest.er1
22661   cat conftest.err >&5
22662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); } && {
22664          test -z "$ac_c_werror_flag" ||
22665          test ! -s conftest.err
22666        } && test -s conftest$ac_exeext && {
22667          test "$cross_compiling" = yes ||
22668          $as_test_x conftest$ac_exeext
22669        }; then
22670   ac_cv_lib_z_uncompress=yes
22671 else
22672   $as_echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675         ac_cv_lib_z_uncompress=no
22676 fi
22677
22678 rm -rf conftest.dSYM
22679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22680       conftest$ac_exeext conftest.$ac_ext
22681 LIBS=$ac_check_lib_save_LIBS
22682 fi
22683 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
22684 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
22685 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
22686   cat >>confdefs.h <<_ACEOF
22687 #define HAVE_LIBZ 1
22688 _ACEOF
22689
22690   LIBS="-lz $LIBS"
22691
22692 else
22693   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22695 { { $as_echo "$as_me:$LINENO: error:
22696         *** uncompress() missing, zlib-devel package required
22697 See \`config.log' for more details." >&5
22698 $as_echo "$as_me: error:
22699         *** uncompress() missing, zlib-devel package required
22700 See \`config.log' for more details." >&2;}
22701    { (exit 1); exit 1; }; }; }
22702 fi
22703
22704
22705
22706 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
22707 $as_echo_n "checking for crc32 in -lz... " >&6; }
22708 if test "${ac_cv_lib_z_crc32+set}" = set; then
22709   $as_echo_n "(cached) " >&6
22710 else
22711   ac_check_lib_save_LIBS=$LIBS
22712 LIBS="-lz  $LIBS"
22713 cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719
22720 /* Override any GCC internal prototype to avoid an error.
22721    Use char because int might match the return type of a GCC
22722    builtin and then its argument prototype would still apply.  */
22723 #ifdef __cplusplus
22724 extern "C"
22725 #endif
22726 char crc32 ();
22727 int
22728 main ()
22729 {
22730 return crc32 ();
22731   ;
22732   return 0;
22733 }
22734 _ACEOF
22735 rm -f conftest.$ac_objext conftest$ac_exeext
22736 if { (ac_try="$ac_link"
22737 case "(($ac_try" in
22738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739   *) ac_try_echo=$ac_try;;
22740 esac
22741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22742 $as_echo "$ac_try_echo") >&5
22743   (eval "$ac_link") 2>conftest.er1
22744   ac_status=$?
22745   grep -v '^ *+' conftest.er1 >conftest.err
22746   rm -f conftest.er1
22747   cat conftest.err >&5
22748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } && {
22750          test -z "$ac_c_werror_flag" ||
22751          test ! -s conftest.err
22752        } && test -s conftest$ac_exeext && {
22753          test "$cross_compiling" = yes ||
22754          $as_test_x conftest$ac_exeext
22755        }; then
22756   ac_cv_lib_z_crc32=yes
22757 else
22758   $as_echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22760
22761         ac_cv_lib_z_crc32=no
22762 fi
22763
22764 rm -rf conftest.dSYM
22765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22766       conftest$ac_exeext conftest.$ac_ext
22767 LIBS=$ac_check_lib_save_LIBS
22768 fi
22769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
22770 $as_echo "$ac_cv_lib_z_crc32" >&6; }
22771 if test "x$ac_cv_lib_z_crc32" = x""yes; then
22772   cat >>confdefs.h <<_ACEOF
22773 #define HAVE_LIBZ 1
22774 _ACEOF
22775
22776   LIBS="-lz $LIBS"
22777
22778 else
22779   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22781 { { $as_echo "$as_me:$LINENO: error:
22782         *** crc32() missing, zlib-devel package required
22783 See \`config.log' for more details." >&5
22784 $as_echo "$as_me: error:
22785         *** crc32() missing, zlib-devel package required
22786 See \`config.log' for more details." >&2;}
22787    { (exit 1); exit 1; }; }; }
22788 fi
22789
22790
22791         ZLIB="-lz"
22792
22793
22794 cat >>confdefs.h <<\_ACEOF
22795 #define HAVE_ZLIB 1
22796 _ACEOF
22797
22798
22799
22800         LIBUUID=
22801
22802         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22803   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
22804 $as_echo_n "checking for uuid/uuid.h... " >&6; }
22805 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22806   $as_echo_n "(cached) " >&6
22807 fi
22808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
22809 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
22810 else
22811   # Is the header compilable?
22812 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
22813 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
22814 cat >conftest.$ac_ext <<_ACEOF
22815 /* confdefs.h.  */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h.  */
22820 $ac_includes_default
22821 #include <uuid/uuid.h>
22822 _ACEOF
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827   *) ac_try_echo=$ac_try;;
22828 esac
22829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22830 $as_echo "$ac_try_echo") >&5
22831   (eval "$ac_compile") 2>conftest.er1
22832   ac_status=$?
22833   grep -v '^ *+' conftest.er1 >conftest.err
22834   rm -f conftest.er1
22835   cat conftest.err >&5
22836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); } && {
22838          test -z "$ac_c_werror_flag" ||
22839          test ! -s conftest.err
22840        } && test -s conftest.$ac_objext; then
22841   ac_header_compiler=yes
22842 else
22843   $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846         ac_header_compiler=no
22847 fi
22848
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22851 $as_echo "$ac_header_compiler" >&6; }
22852
22853 # Is the header present?
22854 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
22855 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
22856 cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862 #include <uuid/uuid.h>
22863 _ACEOF
22864 if { (ac_try="$ac_cpp conftest.$ac_ext"
22865 case "(($ac_try" in
22866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867   *) ac_try_echo=$ac_try;;
22868 esac
22869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22870 $as_echo "$ac_try_echo") >&5
22871   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22872   ac_status=$?
22873   grep -v '^ *+' conftest.er1 >conftest.err
22874   rm -f conftest.er1
22875   cat conftest.err >&5
22876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } >/dev/null && {
22878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22879          test ! -s conftest.err
22880        }; then
22881   ac_header_preproc=yes
22882 else
22883   $as_echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22885
22886   ac_header_preproc=no
22887 fi
22888
22889 rm -f conftest.err conftest.$ac_ext
22890 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22891 $as_echo "$ac_header_preproc" >&6; }
22892
22893 # So?  What about this header?
22894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22895   yes:no: )
22896     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
22897 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22898     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
22899 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
22900     ac_header_preproc=yes
22901     ;;
22902   no:yes:* )
22903     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
22904 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
22905     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
22906 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
22907     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
22908 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
22909     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
22910 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22911     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
22912 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
22913     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
22914 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
22915
22916     ;;
22917 esac
22918 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
22919 $as_echo_n "checking for uuid/uuid.h... " >&6; }
22920 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
22921   $as_echo_n "(cached) " >&6
22922 else
22923   ac_cv_header_uuid_uuid_h=$ac_header_preproc
22924 fi
22925 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
22926 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
22927
22928 fi
22929 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
22930   :
22931 else
22932   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22934 { { $as_echo "$as_me:$LINENO: error:
22935         *** uuid/uuid.h missing, libuuid-devel package required
22936 See \`config.log' for more details." >&5
22937 $as_echo "$as_me: error:
22938         *** uuid/uuid.h missing, libuuid-devel package required
22939 See \`config.log' for more details." >&2;}
22940    { (exit 1); exit 1; }; }; }
22941 fi
22942
22943
22944
22945
22946 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
22947 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
22948 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
22949   $as_echo_n "(cached) " >&6
22950 else
22951   ac_check_lib_save_LIBS=$LIBS
22952 LIBS="-luuid  $LIBS"
22953 cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h.  */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h.  */
22959
22960 /* Override any GCC internal prototype to avoid an error.
22961    Use char because int might match the return type of a GCC
22962    builtin and then its argument prototype would still apply.  */
22963 #ifdef __cplusplus
22964 extern "C"
22965 #endif
22966 char uuid_generate ();
22967 int
22968 main ()
22969 {
22970 return uuid_generate ();
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (ac_try="$ac_link"
22977 case "(($ac_try" in
22978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979   *) ac_try_echo=$ac_try;;
22980 esac
22981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22982 $as_echo "$ac_try_echo") >&5
22983   (eval "$ac_link") 2>conftest.er1
22984   ac_status=$?
22985   grep -v '^ *+' conftest.er1 >conftest.err
22986   rm -f conftest.er1
22987   cat conftest.err >&5
22988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); } && {
22990          test -z "$ac_c_werror_flag" ||
22991          test ! -s conftest.err
22992        } && test -s conftest$ac_exeext && {
22993          test "$cross_compiling" = yes ||
22994          $as_test_x conftest$ac_exeext
22995        }; then
22996   ac_cv_lib_uuid_uuid_generate=yes
22997 else
22998   $as_echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23000
23001         ac_cv_lib_uuid_uuid_generate=no
23002 fi
23003
23004 rm -rf conftest.dSYM
23005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23006       conftest$ac_exeext conftest.$ac_ext
23007 LIBS=$ac_check_lib_save_LIBS
23008 fi
23009 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
23010 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
23011 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
23012   cat >>confdefs.h <<_ACEOF
23013 #define HAVE_LIBUUID 1
23014 _ACEOF
23015
23016   LIBS="-luuid $LIBS"
23017
23018 else
23019   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23021 { { $as_echo "$as_me:$LINENO: error:
23022         *** uuid_generate() missing, libuuid-devel package required
23023 See \`config.log' for more details." >&5
23024 $as_echo "$as_me: error:
23025         *** uuid_generate() missing, libuuid-devel package required
23026 See \`config.log' for more details." >&2;}
23027    { (exit 1); exit 1; }; }; }
23028 fi
23029
23030
23031
23032 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
23033 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
23034 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
23035   $as_echo_n "(cached) " >&6
23036 else
23037   ac_check_lib_save_LIBS=$LIBS
23038 LIBS="-luuid  $LIBS"
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h.  */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h.  */
23045
23046 /* Override any GCC internal prototype to avoid an error.
23047    Use char because int might match the return type of a GCC
23048    builtin and then its argument prototype would still apply.  */
23049 #ifdef __cplusplus
23050 extern "C"
23051 #endif
23052 char uuid_is_null ();
23053 int
23054 main ()
23055 {
23056 return uuid_is_null ();
23057   ;
23058   return 0;
23059 }
23060 _ACEOF
23061 rm -f conftest.$ac_objext conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23068 $as_echo "$ac_try_echo") >&5
23069   (eval "$ac_link") 2>conftest.er1
23070   ac_status=$?
23071   grep -v '^ *+' conftest.er1 >conftest.err
23072   rm -f conftest.er1
23073   cat conftest.err >&5
23074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); } && {
23076          test -z "$ac_c_werror_flag" ||
23077          test ! -s conftest.err
23078        } && test -s conftest$ac_exeext && {
23079          test "$cross_compiling" = yes ||
23080          $as_test_x conftest$ac_exeext
23081        }; then
23082   ac_cv_lib_uuid_uuid_is_null=yes
23083 else
23084   $as_echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23086
23087         ac_cv_lib_uuid_uuid_is_null=no
23088 fi
23089
23090 rm -rf conftest.dSYM
23091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23092       conftest$ac_exeext conftest.$ac_ext
23093 LIBS=$ac_check_lib_save_LIBS
23094 fi
23095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
23096 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
23097 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
23098   cat >>confdefs.h <<_ACEOF
23099 #define HAVE_LIBUUID 1
23100 _ACEOF
23101
23102   LIBS="-luuid $LIBS"
23103
23104 else
23105   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23107 { { $as_echo "$as_me:$LINENO: error:
23108         *** uuid_is_null() missing, libuuid-devel package required
23109 See \`config.log' for more details." >&5
23110 $as_echo "$as_me: error:
23111         *** uuid_is_null() missing, libuuid-devel package required
23112 See \`config.log' for more details." >&2;}
23113    { (exit 1); exit 1; }; }; }
23114 fi
23115
23116
23117         LIBUUID="-luuid"
23118
23119
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_LIBUUID 1
23122 _ACEOF
23123
23124
23125
23126
23127 # Check whether --with-blkid was given.
23128 if test "${with_blkid+set}" = set; then
23129   withval=$with_blkid;
23130 else
23131   with_blkid=check
23132 fi
23133
23134
23135         LIBBLKID=
23136         if test "x$with_blkid" != xno; then
23137
23138                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
23139 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
23140 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
23141   $as_echo_n "(cached) " >&6
23142 else
23143   ac_check_lib_save_LIBS=$LIBS
23144 LIBS="-lblkid  $LIBS"
23145 cat >conftest.$ac_ext <<_ACEOF
23146 /* confdefs.h.  */
23147 _ACEOF
23148 cat confdefs.h >>conftest.$ac_ext
23149 cat >>conftest.$ac_ext <<_ACEOF
23150 /* end confdefs.h.  */
23151
23152 /* Override any GCC internal prototype to avoid an error.
23153    Use char because int might match the return type of a GCC
23154    builtin and then its argument prototype would still apply.  */
23155 #ifdef __cplusplus
23156 extern "C"
23157 #endif
23158 char blkid_get_cache ();
23159 int
23160 main ()
23161 {
23162 return blkid_get_cache ();
23163   ;
23164   return 0;
23165 }
23166 _ACEOF
23167 rm -f conftest.$ac_objext conftest$ac_exeext
23168 if { (ac_try="$ac_link"
23169 case "(($ac_try" in
23170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23171   *) ac_try_echo=$ac_try;;
23172 esac
23173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23174 $as_echo "$ac_try_echo") >&5
23175   (eval "$ac_link") 2>conftest.er1
23176   ac_status=$?
23177   grep -v '^ *+' conftest.er1 >conftest.err
23178   rm -f conftest.er1
23179   cat conftest.err >&5
23180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); } && {
23182          test -z "$ac_c_werror_flag" ||
23183          test ! -s conftest.err
23184        } && test -s conftest$ac_exeext && {
23185          test "$cross_compiling" = yes ||
23186          $as_test_x conftest$ac_exeext
23187        }; then
23188   ac_cv_lib_blkid_blkid_get_cache=yes
23189 else
23190   $as_echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23192
23193         ac_cv_lib_blkid_blkid_get_cache=no
23194 fi
23195
23196 rm -rf conftest.dSYM
23197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23198       conftest$ac_exeext conftest.$ac_ext
23199 LIBS=$ac_check_lib_save_LIBS
23200 fi
23201 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
23202 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
23203 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
23204
23205                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
23206 $as_echo_n "checking for blkid zfs support... " >&6; }
23207
23208                         ZFS_DEV=`mktemp`
23209                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
23210                                 >/dev/null 2>/dev/null
23211                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
23212                                 dd of=$ZFS_DEV bs=1k count=8 \
23213                                 seek=132 conv=notrunc &>/dev/null \
23214                                 >/dev/null 2>/dev/null
23215
23216                         saved_LDFLAGS="$LDFLAGS"
23217                         LDFLAGS="-lblkid"
23218
23219                         if test "$cross_compiling" = yes; then
23220   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23222 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23223 See \`config.log' for more details." >&5
23224 $as_echo "$as_me: error: cannot run test program while cross compiling
23225 See \`config.log' for more details." >&2;}
23226    { (exit 1); exit 1; }; }; }
23227 else
23228   cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h.  */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h.  */
23234
23235                                 #include <stdio.h>
23236                                 #include <blkid/blkid.h>
23237
23238 int
23239 main ()
23240 {
23241
23242                                 blkid_cache cache;
23243                                 char *value;
23244
23245                                 if (blkid_get_cache(&cache, NULL) < 0)
23246                                         return 1;
23247
23248                                 value = blkid_get_tag_value(cache, "TYPE",
23249                                                             "$ZFS_DEV");
23250                                 if (!value) {
23251                                         blkid_put_cache(cache);
23252                                         return 2;
23253                                 }
23254
23255                                 if (strcmp(value, "zfs")) {
23256                                         free(value);
23257                                         blkid_put_cache(cache);
23258                                         return 3;
23259                                 }
23260
23261                                 free(value);
23262                                 blkid_put_cache(cache);
23263
23264   ;
23265   return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272   *) ac_try_echo=$ac_try;;
23273 esac
23274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23275 $as_echo "$ac_try_echo") >&5
23276   (eval "$ac_link") 2>&5
23277   ac_status=$?
23278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23280   { (case "(($ac_try" in
23281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282   *) ac_try_echo=$ac_try;;
23283 esac
23284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23285 $as_echo "$ac_try_echo") >&5
23286   (eval "$ac_try") 2>&5
23287   ac_status=$?
23288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289   (exit $ac_status); }; }; then
23290
23291                                 rm -f $ZFS_DEV
23292                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23293 $as_echo "yes" >&6; }
23294                                 LIBBLKID="-lblkid"
23295
23296
23297 cat >>confdefs.h <<\_ACEOF
23298 #define HAVE_LIBBLKID 1
23299 _ACEOF
23300
23301
23302 else
23303   $as_echo "$as_me: program exited with status $ac_status" >&5
23304 $as_echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23306
23307 ( exit $ac_status )
23308
23309                                 rm -f $ZFS_DEV
23310                                 { $as_echo "$as_me:$LINENO: result: no" >&5
23311 $as_echo "no" >&6; }
23312                                 if test "x$with_blkid" != xcheck; then
23313   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23315 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
23316 See \`config.log' for more details." >&5
23317 $as_echo "$as_me: error: --with-blkid given but unavailable
23318 See \`config.log' for more details." >&2;}
23319    { (exit 1); exit 1; }; }; }
23320 fi
23321
23322
23323 fi
23324 rm -rf conftest.dSYM
23325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23326 fi
23327
23328
23329
23330                         LDFLAGS="$saved_LDFLAGS"
23331
23332 else
23333
23334                         if test "x$with_blkid" != xcheck; then
23335   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23337 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
23338 See \`config.log' for more details." >&5
23339 $as_echo "$as_me: error: --with-blkid given but unavailable
23340 See \`config.log' for more details." >&2;}
23341    { (exit 1); exit 1; }; }; }
23342 fi
23343
23344
23345
23346 fi
23347
23348
23349 fi
23350
23351
23352
23353
23354 # Check whether --with-selinux was given.
23355 if test "${with_selinux+set}" = set; then
23356   withval=$with_selinux;
23357 else
23358   with_selinux=check
23359 fi
23360
23361
23362         LIBSELINUX=
23363         if test "x$with_selinux" != xno; then
23364
23365                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23366   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
23367 $as_echo_n "checking for selinux/selinux.h... " >&6; }
23368 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23369   $as_echo_n "(cached) " >&6
23370 fi
23371 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
23372 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
23373 else
23374   # Is the header compilable?
23375 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
23376 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
23377 cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h.  */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h.  */
23383 $ac_includes_default
23384 #include <selinux/selinux.h>
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23393 $as_echo "$ac_try_echo") >&5
23394   (eval "$ac_compile") 2>conftest.er1
23395   ac_status=$?
23396   grep -v '^ *+' conftest.er1 >conftest.err
23397   rm -f conftest.er1
23398   cat conftest.err >&5
23399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); } && {
23401          test -z "$ac_c_werror_flag" ||
23402          test ! -s conftest.err
23403        } && test -s conftest.$ac_objext; then
23404   ac_header_compiler=yes
23405 else
23406   $as_echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23408
23409         ac_header_compiler=no
23410 fi
23411
23412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23414 $as_echo "$ac_header_compiler" >&6; }
23415
23416 # Is the header present?
23417 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
23418 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
23419 cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h.  */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h.  */
23425 #include <selinux/selinux.h>
23426 _ACEOF
23427 if { (ac_try="$ac_cpp conftest.$ac_ext"
23428 case "(($ac_try" in
23429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430   *) ac_try_echo=$ac_try;;
23431 esac
23432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23433 $as_echo "$ac_try_echo") >&5
23434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23435   ac_status=$?
23436   grep -v '^ *+' conftest.er1 >conftest.err
23437   rm -f conftest.er1
23438   cat conftest.err >&5
23439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); } >/dev/null && {
23441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23442          test ! -s conftest.err
23443        }; then
23444   ac_header_preproc=yes
23445 else
23446   $as_echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449   ac_header_preproc=no
23450 fi
23451
23452 rm -f conftest.err conftest.$ac_ext
23453 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23454 $as_echo "$ac_header_preproc" >&6; }
23455
23456 # So?  What about this header?
23457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23458   yes:no: )
23459     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
23460 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23461     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
23462 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
23463     ac_header_preproc=yes
23464     ;;
23465   no:yes:* )
23466     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
23467 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
23468     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
23469 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
23470     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
23471 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
23472     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
23473 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23474     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
23475 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
23476     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
23477 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
23478
23479     ;;
23480 esac
23481 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
23482 $as_echo_n "checking for selinux/selinux.h... " >&6; }
23483 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
23484   $as_echo_n "(cached) " >&6
23485 else
23486   ac_cv_header_selinux_selinux_h=$ac_header_preproc
23487 fi
23488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
23489 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
23490
23491 fi
23492 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
23493
23494                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
23495 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
23496 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
23497   $as_echo_n "(cached) " >&6
23498 else
23499   ac_check_lib_save_LIBS=$LIBS
23500 LIBS="-lselinux  $LIBS"
23501 cat >conftest.$ac_ext <<_ACEOF
23502 /* confdefs.h.  */
23503 _ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h.  */
23507
23508 /* Override any GCC internal prototype to avoid an error.
23509    Use char because int might match the return type of a GCC
23510    builtin and then its argument prototype would still apply.  */
23511 #ifdef __cplusplus
23512 extern "C"
23513 #endif
23514 char is_selinux_enabled ();
23515 int
23516 main ()
23517 {
23518 return is_selinux_enabled ();
23519   ;
23520   return 0;
23521 }
23522 _ACEOF
23523 rm -f conftest.$ac_objext conftest$ac_exeext
23524 if { (ac_try="$ac_link"
23525 case "(($ac_try" in
23526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527   *) ac_try_echo=$ac_try;;
23528 esac
23529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23530 $as_echo "$ac_try_echo") >&5
23531   (eval "$ac_link") 2>conftest.er1
23532   ac_status=$?
23533   grep -v '^ *+' conftest.er1 >conftest.err
23534   rm -f conftest.er1
23535   cat conftest.err >&5
23536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537   (exit $ac_status); } && {
23538          test -z "$ac_c_werror_flag" ||
23539          test ! -s conftest.err
23540        } && test -s conftest$ac_exeext && {
23541          test "$cross_compiling" = yes ||
23542          $as_test_x conftest$ac_exeext
23543        }; then
23544   ac_cv_lib_selinux_is_selinux_enabled=yes
23545 else
23546   $as_echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23548
23549         ac_cv_lib_selinux_is_selinux_enabled=no
23550 fi
23551
23552 rm -rf conftest.dSYM
23553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23554       conftest$ac_exeext conftest.$ac_ext
23555 LIBS=$ac_check_lib_save_LIBS
23556 fi
23557 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
23558 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
23559 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
23560
23561                                 LIBSELINUX="-lselinux"
23562
23563
23564 cat >>confdefs.h <<\_ACEOF
23565 #define HAVE_LIBSELINUX 1
23566 _ACEOF
23567
23568
23569 else
23570
23571                                 if test "x$with_selinux" != xcheck; then
23572   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23574 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
23575 See \`config.log' for more details." >&5
23576 $as_echo "$as_me: error: --with-selinux given but unavailable
23577 See \`config.log' for more details." >&2;}
23578    { (exit 1); exit 1; }; }; }
23579
23580 fi
23581
23582
23583 fi
23584
23585
23586 else
23587
23588                         if test "x$with_selinux" != xcheck; then
23589   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23591 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
23592 See \`config.log' for more details." >&5
23593 $as_echo "$as_me: error: --with-selinux given but unavailable
23594 See \`config.log' for more details." >&2;}
23595    { (exit 1); exit 1; }; }; }
23596
23597 fi
23598
23599
23600 fi
23601
23602
23603
23604 else
23605
23606                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
23607 $as_echo_n "checking for selinux support... " >&6; }
23608                 { $as_echo "$as_me:$LINENO: result: no" >&5
23609 $as_echo "no" >&6; }
23610
23611 fi
23612
23613
23614
23615         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
23616 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
23617
23618         saved_flags="$CFLAGS"
23619         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
23620
23621         if test "$cross_compiling" = yes; then
23622   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23624 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23625 See \`config.log' for more details." >&5
23626 $as_echo "$as_me: error: cannot run test program while cross compiling
23627 See \`config.log' for more details." >&2;}
23628    { (exit 1); exit 1; }; }; }
23629 else
23630   cat >conftest.$ac_ext <<_ACEOF
23631 /* confdefs.h.  */
23632 _ACEOF
23633 cat confdefs.h >>conftest.$ac_ext
23634 cat >>conftest.$ac_ext <<_ACEOF
23635 /* end confdefs.h.  */
23636
23637 int
23638 main ()
23639 {
23640
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest$ac_exeext
23646 if { (ac_try="$ac_link"
23647 case "(($ac_try" in
23648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649   *) ac_try_echo=$ac_try;;
23650 esac
23651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23652 $as_echo "$ac_try_echo") >&5
23653   (eval "$ac_link") 2>&5
23654   ac_status=$?
23655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23657   { (case "(($ac_try" in
23658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23659   *) ac_try_echo=$ac_try;;
23660 esac
23661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23662 $as_echo "$ac_try_echo") >&5
23663   (eval "$ac_try") 2>&5
23664   ac_status=$?
23665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; }; then
23667
23668                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
23669                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23670 $as_echo "yes" >&6; }
23671
23672 else
23673   $as_echo "$as_me: program exited with status $ac_status" >&5
23674 $as_echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677 ( exit $ac_status )
23678
23679                 FRAME_LARGER_THAN=
23680                 { $as_echo "$as_me:$LINENO: result: no" >&5
23681 $as_echo "no" >&6; }
23682
23683 fi
23684 rm -rf conftest.dSYM
23685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23686 fi
23687
23688
23689
23690         CFLAGS="$saved_flags"
23691
23692
23693
23694
23695         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
23696 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
23697
23698         saved_CFLAGS="$CFLAGS"
23699         CFLAGS="-fstack-check"
23700         saved_LDFLAGS="$LDFLAGS"
23701         LDFLAGS="-lpthread"
23702
23703         if test "$cross_compiling" = yes; then
23704   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23706 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23707 See \`config.log' for more details." >&5
23708 $as_echo "$as_me: error: cannot run test program while cross compiling
23709 See \`config.log' for more details." >&2;}
23710    { (exit 1); exit 1; }; }; }
23711 else
23712   cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718
23719                 #include <pthread.h>
23720                 #include <sys/resource.h>
23721                 #include <unistd.h>
23722                 #include <bits/local_lim.h>
23723
23724                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
23725                 #define STACK_SIZE 8192
23726                 #define BUFSIZE 4096
23727
23728                 void * func(void *arg)
23729                 {
23730                         char buf[BUFSIZE];
23731                 }
23732
23733 int
23734 main ()
23735 {
23736
23737                 pthread_t tid;
23738                 pthread_attr_t attr;
23739                 struct rlimit l;
23740
23741                 l.rlim_cur = 0;
23742                 l.rlim_max = 0;
23743                 setrlimit(RLIMIT_CORE, &l);
23744                 pthread_attr_init(&attr);
23745                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
23746                 pthread_attr_setguardsize(&attr, PAGESIZE);
23747                 pthread_create(&tid, &attr, func, NULL);
23748                 pthread_join(tid, NULL);
23749
23750   ;
23751   return 0;
23752 }
23753 _ACEOF
23754 rm -f conftest$ac_exeext
23755 if { (ac_try="$ac_link"
23756 case "(($ac_try" in
23757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758   *) ac_try_echo=$ac_try;;
23759 esac
23760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23761 $as_echo "$ac_try_echo") >&5
23762   (eval "$ac_link") 2>&5
23763   ac_status=$?
23764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23766   { (case "(($ac_try" in
23767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23768   *) ac_try_echo=$ac_try;;
23769 esac
23770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23771 $as_echo "$ac_try_echo") >&5
23772   (eval "$ac_try") 2>&5
23773   ac_status=$?
23774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); }; }; then
23776
23777                 { $as_echo "$as_me:$LINENO: result: no" >&5
23778 $as_echo "no" >&6; }
23779
23780 else
23781   $as_echo "$as_me: program exited with status $ac_status" >&5
23782 $as_echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785 ( exit $ac_status )
23786
23787
23788 cat >>confdefs.h <<\_ACEOF
23789 #define NPTL_GUARD_WITHIN_STACK 1
23790 _ACEOF
23791
23792                 { $as_echo "$as_me:$LINENO: result: yes" >&5
23793 $as_echo "yes" >&6; }
23794
23795 fi
23796 rm -rf conftest.dSYM
23797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23798 fi
23799
23800
23801         CFLAGS="$saved_CFLAGS"
23802         LDFLAGS="$saved_LDFLAGS"
23803
23804    ;;
23805                 srpm)                        ;;
23806                 *)
23807                 { $as_echo "$as_me:$LINENO: result: Error!" >&5
23808 $as_echo "Error!" >&6; }
23809                 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
23810                               user kernel|user|all|srpm" >&5
23811 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
23812                               user kernel|user|all|srpm" >&2;}
23813    { (exit 1); exit 1; }; } ;;
23814         esac
23815
23816          if test "$ZFS_CONFIG" = user ||
23817                        test "$ZFS_CONFIG" = all; then
23818   CONFIG_USER_TRUE=
23819   CONFIG_USER_FALSE='#'
23820 else
23821   CONFIG_USER_TRUE='#'
23822   CONFIG_USER_FALSE=
23823 fi
23824
23825          if test "$ZFS_CONFIG" = kernel ||
23826                        test "$ZFS_CONFIG" = all; then
23827   CONFIG_KERNEL_TRUE=
23828   CONFIG_KERNEL_FALSE='#'
23829 else
23830   CONFIG_KERNEL_TRUE='#'
23831   CONFIG_KERNEL_FALSE=
23832 fi
23833
23834
23835
23836         { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
23837 $as_echo_n "checking whether debugging is enabled... " >&6; }
23838         # Check whether --enable-debug was given.
23839 if test "${enable_debug+set}" = set; then
23840   enableval=$enable_debug;
23841 else
23842   enable_debug=no
23843 fi
23844
23845
23846         if test "x$enable_debug" = xyes; then
23847
23848                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
23849                 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
23850                 DEBUG_CFLAGS="-DDEBUG -Werror"
23851                 DEBUG_STACKFLAGS="-fstack-check"
23852                 DEBUG_ZFS="_with_debug"
23853
23854 cat >>confdefs.h <<\_ACEOF
23855 #define ZFS_DEBUG 1
23856 _ACEOF
23857
23858
23859 else
23860
23861                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
23862                 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
23863                 DEBUG_CFLAGS="-DNDEBUG"
23864                 DEBUG_STACKFLAGS=""
23865                 DEBUG_ZFS="_without_debug"
23866
23867 fi
23868
23869
23870
23871
23872
23873         { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
23874 $as_echo "$enable_debug" >&6; }
23875
23876
23877 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/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/sas_switch_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec PKGBUILD-zfs PKGBUILD-zfs-modules zfs-script-config.sh"
23878
23879
23880 cat >confcache <<\_ACEOF
23881 # This file is a shell script that caches the results of configure
23882 # tests run on this system so they can be shared between configure
23883 # scripts and configure runs, see configure's option --config-cache.
23884 # It is not useful on other systems.  If it contains results you don't
23885 # want to keep, you may remove or edit it.
23886 #
23887 # config.status only pays attention to the cache file if you give it
23888 # the --recheck option to rerun configure.
23889 #
23890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23892 # following values.
23893
23894 _ACEOF
23895
23896 # The following way of writing the cache mishandles newlines in values,
23897 # but we know of no workaround that is simple, portable, and efficient.
23898 # So, we kill variables containing newlines.
23899 # Ultrix sh set writes to stderr and can't be redirected directly,
23900 # and sets the high bit in the cache file unless we assign to the vars.
23901 (
23902   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23903     eval ac_val=\$$ac_var
23904     case $ac_val in #(
23905     *${as_nl}*)
23906       case $ac_var in #(
23907       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23908 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23909       esac
23910       case $ac_var in #(
23911       _ | IFS | as_nl) ;; #(
23912       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23913       *) $as_unset $ac_var ;;
23914       esac ;;
23915     esac
23916   done
23917
23918   (set) 2>&1 |
23919     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23920     *${as_nl}ac_space=\ *)
23921       # `set' does not quote correctly, so add quotes (double-quote
23922       # substitution turns \\\\ into \\, and sed turns \\ into \).
23923       sed -n \
23924         "s/'/'\\\\''/g;
23925           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23926       ;; #(
23927     *)
23928       # `set' quotes correctly as required by POSIX, so do not add quotes.
23929       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23930       ;;
23931     esac |
23932     sort
23933 ) |
23934   sed '
23935      /^ac_cv_env_/b end
23936      t clear
23937      :clear
23938      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23939      t end
23940      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23941      :end' >>confcache
23942 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23943   if test -w "$cache_file"; then
23944     test "x$cache_file" != "x/dev/null" &&
23945       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23946 $as_echo "$as_me: updating cache $cache_file" >&6;}
23947     cat confcache >$cache_file
23948   else
23949     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23950 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23951   fi
23952 fi
23953 rm -f confcache
23954
23955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23956 # Let make expand exec_prefix.
23957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23958
23959 DEFS=-DHAVE_CONFIG_H
23960
23961 ac_libobjs=
23962 ac_ltlibobjs=
23963 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23964   # 1. Remove the extension, and $U if already installed.
23965   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23966   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23967   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23968   #    will be set to the directory where LIBOBJS objects are built.
23969   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23970   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23971 done
23972 LIBOBJS=$ac_libobjs
23973
23974 LTLIBOBJS=$ac_ltlibobjs
23975
23976
23977 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23978   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23979 Usually this means the macro was only invoked conditionally." >&5
23980 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23981 Usually this means the macro was only invoked conditionally." >&2;}
23982    { (exit 1); exit 1; }; }
23983 fi
23984  if test -n "$EXEEXT"; then
23985   am__EXEEXT_TRUE=
23986   am__EXEEXT_FALSE='#'
23987 else
23988   am__EXEEXT_TRUE='#'
23989   am__EXEEXT_FALSE=
23990 fi
23991
23992 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23993   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23994 Usually this means the macro was only invoked conditionally." >&5
23995 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23996 Usually this means the macro was only invoked conditionally." >&2;}
23997    { (exit 1); exit 1; }; }
23998 fi
23999 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24000   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24001 Usually this means the macro was only invoked conditionally." >&5
24002 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24003 Usually this means the macro was only invoked conditionally." >&2;}
24004    { (exit 1); exit 1; }; }
24005 fi
24006 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24007   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
24008 Usually this means the macro was only invoked conditionally." >&5
24009 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
24010 Usually this means the macro was only invoked conditionally." >&2;}
24011    { (exit 1); exit 1; }; }
24012 fi
24013 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
24014   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
24015 Usually this means the macro was only invoked conditionally." >&5
24016 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
24017 Usually this means the macro was only invoked conditionally." >&2;}
24018    { (exit 1); exit 1; }; }
24019 fi
24020 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
24021   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
24022 Usually this means the macro was only invoked conditionally." >&5
24023 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
24024 Usually this means the macro was only invoked conditionally." >&2;}
24025    { (exit 1); exit 1; }; }
24026 fi
24027
24028 : ${CONFIG_STATUS=./config.status}
24029 ac_write_fail=0
24030 ac_clean_files_save=$ac_clean_files
24031 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24032 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24033 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24034 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24035 #! $SHELL
24036 # Generated by $as_me.
24037 # Run this file to recreate the current configuration.
24038 # Compiler output produced by configure, useful for debugging
24039 # configure, is in config.log if it exists.
24040
24041 debug=false
24042 ac_cs_recheck=false
24043 ac_cs_silent=false
24044 SHELL=\${CONFIG_SHELL-$SHELL}
24045 _ACEOF
24046
24047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24048 ## --------------------- ##
24049 ## M4sh Initialization.  ##
24050 ## --------------------- ##
24051
24052 # Be more Bourne compatible
24053 DUALCASE=1; export DUALCASE # for MKS sh
24054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24055   emulate sh
24056   NULLCMD=:
24057   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24058   # is contrary to our usage.  Disable this feature.
24059   alias -g '${1+"$@"}'='"$@"'
24060   setopt NO_GLOB_SUBST
24061 else
24062   case `(set -o) 2>/dev/null` in
24063   *posix*) set -o posix ;;
24064 esac
24065
24066 fi
24067
24068
24069
24070
24071 # PATH needs CR
24072 # Avoid depending upon Character Ranges.
24073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24076 as_cr_digits='0123456789'
24077 as_cr_alnum=$as_cr_Letters$as_cr_digits
24078
24079 as_nl='
24080 '
24081 export as_nl
24082 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24083 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24084 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24086 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24087   as_echo='printf %s\n'
24088   as_echo_n='printf %s'
24089 else
24090   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24091     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24092     as_echo_n='/usr/ucb/echo -n'
24093   else
24094     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24095     as_echo_n_body='eval
24096       arg=$1;
24097       case $arg in
24098       *"$as_nl"*)
24099         expr "X$arg" : "X\\(.*\\)$as_nl";
24100         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24101       esac;
24102       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24103     '
24104     export as_echo_n_body
24105     as_echo_n='sh -c $as_echo_n_body as_echo'
24106   fi
24107   export as_echo_body
24108   as_echo='sh -c $as_echo_body as_echo'
24109 fi
24110
24111 # The user is always right.
24112 if test "${PATH_SEPARATOR+set}" != set; then
24113   PATH_SEPARATOR=:
24114   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24115     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24116       PATH_SEPARATOR=';'
24117   }
24118 fi
24119
24120 # Support unset when possible.
24121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24122   as_unset=unset
24123 else
24124   as_unset=false
24125 fi
24126
24127
24128 # IFS
24129 # We need space, tab and new line, in precisely that order.  Quoting is
24130 # there to prevent editors from complaining about space-tab.
24131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24132 # splitting by setting IFS to empty value.)
24133 IFS=" ""        $as_nl"
24134
24135 # Find who we are.  Look in the path if we contain no directory separator.
24136 case $0 in
24137   *[\\/]* ) as_myself=$0 ;;
24138   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24139 for as_dir in $PATH
24140 do
24141   IFS=$as_save_IFS
24142   test -z "$as_dir" && as_dir=.
24143   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24144 done
24145 IFS=$as_save_IFS
24146
24147      ;;
24148 esac
24149 # We did not find ourselves, most probably we were run as `sh COMMAND'
24150 # in which case we are not to be found in the path.
24151 if test "x$as_myself" = x; then
24152   as_myself=$0
24153 fi
24154 if test ! -f "$as_myself"; then
24155   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24156   { (exit 1); exit 1; }
24157 fi
24158
24159 # Work around bugs in pre-3.0 UWIN ksh.
24160 for as_var in ENV MAIL MAILPATH
24161 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24162 done
24163 PS1='$ '
24164 PS2='> '
24165 PS4='+ '
24166
24167 # NLS nuisances.
24168 LC_ALL=C
24169 export LC_ALL
24170 LANGUAGE=C
24171 export LANGUAGE
24172
24173 # Required to use basename.
24174 if expr a : '\(a\)' >/dev/null 2>&1 &&
24175    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24176   as_expr=expr
24177 else
24178   as_expr=false
24179 fi
24180
24181 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24182   as_basename=basename
24183 else
24184   as_basename=false
24185 fi
24186
24187
24188 # Name of the executable.
24189 as_me=`$as_basename -- "$0" ||
24190 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24191          X"$0" : 'X\(//\)$' \| \
24192          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24193 $as_echo X/"$0" |
24194     sed '/^.*\/\([^/][^/]*\)\/*$/{
24195             s//\1/
24196             q
24197           }
24198           /^X\/\(\/\/\)$/{
24199             s//\1/
24200             q
24201           }
24202           /^X\/\(\/\).*/{
24203             s//\1/
24204             q
24205           }
24206           s/.*/./; q'`
24207
24208 # CDPATH.
24209 $as_unset CDPATH
24210
24211
24212
24213   as_lineno_1=$LINENO
24214   as_lineno_2=$LINENO
24215   test "x$as_lineno_1" != "x$as_lineno_2" &&
24216   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24217
24218   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24219   # uniformly replaced by the line number.  The first 'sed' inserts a
24220   # line-number line after each line using $LINENO; the second 'sed'
24221   # does the real work.  The second script uses 'N' to pair each
24222   # line-number line with the line containing $LINENO, and appends
24223   # trailing '-' during substitution so that $LINENO is not a special
24224   # case at line end.
24225   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24226   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24227   # E. McMahon (1931-1989) for sed's syntax.  :-)
24228   sed -n '
24229     p
24230     /[$]LINENO/=
24231   ' <$as_myself |
24232     sed '
24233       s/[$]LINENO.*/&-/
24234       t lineno
24235       b
24236       :lineno
24237       N
24238       :loop
24239       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24240       t loop
24241       s/-\n.*//
24242     ' >$as_me.lineno &&
24243   chmod +x "$as_me.lineno" ||
24244     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24245    { (exit 1); exit 1; }; }
24246
24247   # Don't try to exec as it changes $[0], causing all sort of problems
24248   # (the dirname of $[0] is not the place where we might find the
24249   # original and so on.  Autoconf is especially sensitive to this).
24250   . "./$as_me.lineno"
24251   # Exit status is that of the last command.
24252   exit
24253 }
24254
24255
24256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24257   as_dirname=dirname
24258 else
24259   as_dirname=false
24260 fi
24261
24262 ECHO_C= ECHO_N= ECHO_T=
24263 case `echo -n x` in
24264 -n*)
24265   case `echo 'x\c'` in
24266   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24267   *)   ECHO_C='\c';;
24268   esac;;
24269 *)
24270   ECHO_N='-n';;
24271 esac
24272 if expr a : '\(a\)' >/dev/null 2>&1 &&
24273    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24274   as_expr=expr
24275 else
24276   as_expr=false
24277 fi
24278
24279 rm -f conf$$ conf$$.exe conf$$.file
24280 if test -d conf$$.dir; then
24281   rm -f conf$$.dir/conf$$.file
24282 else
24283   rm -f conf$$.dir
24284   mkdir conf$$.dir 2>/dev/null
24285 fi
24286 if (echo >conf$$.file) 2>/dev/null; then
24287   if ln -s conf$$.file conf$$ 2>/dev/null; then
24288     as_ln_s='ln -s'
24289     # ... but there are two gotchas:
24290     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24291     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24292     # In both cases, we have to default to `cp -p'.
24293     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24294       as_ln_s='cp -p'
24295   elif ln conf$$.file conf$$ 2>/dev/null; then
24296     as_ln_s=ln
24297   else
24298     as_ln_s='cp -p'
24299   fi
24300 else
24301   as_ln_s='cp -p'
24302 fi
24303 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24304 rmdir conf$$.dir 2>/dev/null
24305
24306 if mkdir -p . 2>/dev/null; then
24307   as_mkdir_p=:
24308 else
24309   test -d ./-p && rmdir ./-p
24310   as_mkdir_p=false
24311 fi
24312
24313 if test -x / >/dev/null 2>&1; then
24314   as_test_x='test -x'
24315 else
24316   if ls -dL / >/dev/null 2>&1; then
24317     as_ls_L_option=L
24318   else
24319     as_ls_L_option=
24320   fi
24321   as_test_x='
24322     eval sh -c '\''
24323       if test -d "$1"; then
24324         test -d "$1/.";
24325       else
24326         case $1 in
24327         -*)set "./$1";;
24328         esac;
24329         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24330         ???[sx]*):;;*)false;;esac;fi
24331     '\'' sh
24332   '
24333 fi
24334 as_executable_p=$as_test_x
24335
24336 # Sed expression to map a string onto a valid CPP name.
24337 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24338
24339 # Sed expression to map a string onto a valid variable name.
24340 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24341
24342
24343 exec 6>&1
24344
24345 # Save the log message, to keep $[0] and so on meaningful, and to
24346 # report actual input values of CONFIG_FILES etc. instead of their
24347 # values after options handling.
24348 ac_log="
24349 This file was extended by $as_me, which was
24350 generated by GNU Autoconf 2.63.  Invocation command line was
24351
24352   CONFIG_FILES    = $CONFIG_FILES
24353   CONFIG_HEADERS  = $CONFIG_HEADERS
24354   CONFIG_LINKS    = $CONFIG_LINKS
24355   CONFIG_COMMANDS = $CONFIG_COMMANDS
24356   $ $0 $@
24357
24358 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24359 "
24360
24361 _ACEOF
24362
24363 case $ac_config_files in *"
24364 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24365 esac
24366
24367 case $ac_config_headers in *"
24368 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24369 esac
24370
24371
24372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24373 # Files that config.status was made for.
24374 config_files="$ac_config_files"
24375 config_headers="$ac_config_headers"
24376 config_commands="$ac_config_commands"
24377
24378 _ACEOF
24379
24380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24381 ac_cs_usage="\
24382 \`$as_me' instantiates files from templates according to the
24383 current configuration.
24384
24385 Usage: $0 [OPTION]... [FILE]...
24386
24387   -h, --help       print this help, then exit
24388   -V, --version    print version number and configuration settings, then exit
24389   -q, --quiet, --silent
24390                    do not print progress messages
24391   -d, --debug      don't remove temporary files
24392       --recheck    update $as_me by reconfiguring in the same conditions
24393       --file=FILE[:TEMPLATE]
24394                    instantiate the configuration file FILE
24395       --header=FILE[:TEMPLATE]
24396                    instantiate the configuration header FILE
24397
24398 Configuration files:
24399 $config_files
24400
24401 Configuration headers:
24402 $config_headers
24403
24404 Configuration commands:
24405 $config_commands
24406
24407 Report bugs to <bug-autoconf@gnu.org>."
24408
24409 _ACEOF
24410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24411 ac_cs_version="\\
24412 config.status
24413 configured by $0, generated by GNU Autoconf 2.63,
24414   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24415
24416 Copyright (C) 2008 Free Software Foundation, Inc.
24417 This config.status script is free software; the Free Software Foundation
24418 gives unlimited permission to copy, distribute and modify it."
24419
24420 ac_pwd='$ac_pwd'
24421 srcdir='$srcdir'
24422 INSTALL='$INSTALL'
24423 MKDIR_P='$MKDIR_P'
24424 AWK='$AWK'
24425 test -n "\$AWK" || AWK=awk
24426 _ACEOF
24427
24428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24429 # The default lists apply if the user does not specify any file.
24430 ac_need_defaults=:
24431 while test $# != 0
24432 do
24433   case $1 in
24434   --*=*)
24435     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24436     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24437     ac_shift=:
24438     ;;
24439   *)
24440     ac_option=$1
24441     ac_optarg=$2
24442     ac_shift=shift
24443     ;;
24444   esac
24445
24446   case $ac_option in
24447   # Handling of the options.
24448   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24449     ac_cs_recheck=: ;;
24450   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24451     $as_echo "$ac_cs_version"; exit ;;
24452   --debug | --debu | --deb | --de | --d | -d )
24453     debug=: ;;
24454   --file | --fil | --fi | --f )
24455     $ac_shift
24456     case $ac_optarg in
24457     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24458     esac
24459     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24460     ac_need_defaults=false;;
24461   --header | --heade | --head | --hea )
24462     $ac_shift
24463     case $ac_optarg in
24464     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24465     esac
24466     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24467     ac_need_defaults=false;;
24468   --he | --h)
24469     # Conflict between --help and --header
24470     { $as_echo "$as_me: error: ambiguous option: $1
24471 Try \`$0 --help' for more information." >&2
24472    { (exit 1); exit 1; }; };;
24473   --help | --hel | -h )
24474     $as_echo "$ac_cs_usage"; exit ;;
24475   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24476   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24477     ac_cs_silent=: ;;
24478
24479   # This is an error.
24480   -*) { $as_echo "$as_me: error: unrecognized option: $1
24481 Try \`$0 --help' for more information." >&2
24482    { (exit 1); exit 1; }; } ;;
24483
24484   *) ac_config_targets="$ac_config_targets $1"
24485      ac_need_defaults=false ;;
24486
24487   esac
24488   shift
24489 done
24490
24491 ac_configure_extra_args=
24492
24493 if $ac_cs_silent; then
24494   exec 6>/dev/null
24495   ac_configure_extra_args="$ac_configure_extra_args --silent"
24496 fi
24497
24498 _ACEOF
24499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24500 if \$ac_cs_recheck; then
24501   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24502   shift
24503   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24504   CONFIG_SHELL='$SHELL'
24505   export CONFIG_SHELL
24506   exec "\$@"
24507 fi
24508
24509 _ACEOF
24510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24511 exec 5>>config.log
24512 {
24513   echo
24514   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24515 ## Running $as_me. ##
24516 _ASBOX
24517   $as_echo "$ac_log"
24518 } >&5
24519
24520 _ACEOF
24521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24522 #
24523 # INIT-COMMANDS
24524 #
24525 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24526
24527
24528 # The HP-UX ksh and POSIX shell print the target directory to stdout
24529 # if CDPATH is set.
24530 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24531
24532 sed_quote_subst='$sed_quote_subst'
24533 double_quote_subst='$double_quote_subst'
24534 delay_variable_subst='$delay_variable_subst'
24535 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
24536 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
24537 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
24538 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
24539 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
24540 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
24541 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
24542 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
24543 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
24544 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
24545 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
24546 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
24547 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
24548 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
24549 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
24550 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
24551 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
24552 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
24553 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
24554 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
24555 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
24556 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
24557 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
24558 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
24559 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
24560 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
24561 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
24562 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24563 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
24564 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
24565 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
24566 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
24567 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24568 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
24569 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
24570 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24571 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24572 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24573 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
24574 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
24575 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
24576 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
24577 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
24578 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
24579 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"`'
24580 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"`'
24581 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
24582 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
24583 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
24584 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
24585 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
24586 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
24587 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
24588 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
24589 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
24590 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
24591 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
24592 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
24593 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
24594 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
24595 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
24596 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
24597 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24598 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24599 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
24600 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
24601 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24602 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24603 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
24604 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24605 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24606 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24607 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24608 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24609 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24610 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
24611 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24612 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
24613 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
24614 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
24615 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
24616 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
24617 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
24618 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
24619 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24620 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
24621 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
24622 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
24623 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
24624 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
24625 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24626 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24627 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
24628 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24629 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
24630 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
24631 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
24632 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
24633 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
24634 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24635 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
24636 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
24637 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24638 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
24639 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
24640 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24641 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24642 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
24643 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
24644 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
24645 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24646 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
24647 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
24648 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
24649 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
24650 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
24651 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
24652 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
24653
24654 LTCC='$LTCC'
24655 LTCFLAGS='$LTCFLAGS'
24656 compiler='$compiler_DEFAULT'
24657
24658 # Quote evaled strings.
24659 for var in SED \
24660 GREP \
24661 EGREP \
24662 FGREP \
24663 LD \
24664 NM \
24665 LN_S \
24666 lt_SP2NL \
24667 lt_NL2SP \
24668 reload_flag \
24669 OBJDUMP \
24670 deplibs_check_method \
24671 file_magic_cmd \
24672 AR \
24673 AR_FLAGS \
24674 STRIP \
24675 RANLIB \
24676 CC \
24677 CFLAGS \
24678 compiler \
24679 lt_cv_sys_global_symbol_pipe \
24680 lt_cv_sys_global_symbol_to_cdecl \
24681 lt_cv_sys_global_symbol_to_c_name_address \
24682 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24683 SHELL \
24684 ECHO \
24685 lt_prog_compiler_no_builtin_flag \
24686 lt_prog_compiler_wl \
24687 lt_prog_compiler_pic \
24688 lt_prog_compiler_static \
24689 lt_cv_prog_compiler_c_o \
24690 need_locks \
24691 DSYMUTIL \
24692 NMEDIT \
24693 LIPO \
24694 OTOOL \
24695 OTOOL64 \
24696 shrext_cmds \
24697 export_dynamic_flag_spec \
24698 whole_archive_flag_spec \
24699 compiler_needs_object \
24700 with_gnu_ld \
24701 allow_undefined_flag \
24702 no_undefined_flag \
24703 hardcode_libdir_flag_spec \
24704 hardcode_libdir_flag_spec_ld \
24705 hardcode_libdir_separator \
24706 fix_srcfile_path \
24707 exclude_expsyms \
24708 include_expsyms \
24709 file_list_spec \
24710 variables_saved_for_relink \
24711 libname_spec \
24712 library_names_spec \
24713 soname_spec \
24714 finish_eval \
24715 old_striplib \
24716 striplib; do
24717     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24718     *[\\\\\\\`\\"\\\$]*)
24719       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24720       ;;
24721     *)
24722       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24723       ;;
24724     esac
24725 done
24726
24727 # Double-quote double-evaled strings.
24728 for var in reload_cmds \
24729 old_postinstall_cmds \
24730 old_postuninstall_cmds \
24731 old_archive_cmds \
24732 extract_expsyms_cmds \
24733 old_archive_from_new_cmds \
24734 old_archive_from_expsyms_cmds \
24735 archive_cmds \
24736 archive_expsym_cmds \
24737 module_cmds \
24738 module_expsym_cmds \
24739 export_symbols_cmds \
24740 prelink_cmds \
24741 postinstall_cmds \
24742 postuninstall_cmds \
24743 finish_cmds \
24744 sys_lib_search_path_spec \
24745 sys_lib_dlsearch_path_spec; do
24746     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
24747     *[\\\\\\\`\\"\\\$]*)
24748       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24749       ;;
24750     *)
24751       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24752       ;;
24753     esac
24754 done
24755
24756 # Fix-up fallback echo if it was mangled by the above quoting rules.
24757 case \$lt_ECHO in
24758 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
24759   ;;
24760 esac
24761
24762 ac_aux_dir='$ac_aux_dir'
24763 xsi_shell='$xsi_shell'
24764 lt_shell_append='$lt_shell_append'
24765
24766 # See if we are running on zsh, and set the options which allow our
24767 # commands through without removal of \ escapes INIT.
24768 if test -n "\${ZSH_VERSION+set}" ; then
24769    setopt NO_GLOB_SUBST
24770 fi
24771
24772
24773     PACKAGE='$PACKAGE'
24774     VERSION='$VERSION'
24775     TIMESTAMP='$TIMESTAMP'
24776     RM='$RM'
24777     ofile='$ofile'
24778
24779
24780
24781
24782 _ACEOF
24783
24784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24785
24786 # Handling of arguments.
24787 for ac_config_target in $ac_config_targets
24788 do
24789   case $ac_config_target in
24790     "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
24791     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24792     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24793     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24794     "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
24795     "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
24796     "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
24797     "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
24798     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24799     "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
24800     "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
24801     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24802     "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
24803     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24804     "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
24805     "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
24806     "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
24807     "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
24808     "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
24809     "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
24810     "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
24811     "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
24812     "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
24813     "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
24814     "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
24815     "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
24816     "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
24817     "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
24818     "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
24819     "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
24820     "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
24821     "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
24822     "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
24823     "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
24824     "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
24825     "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
24826     "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
24827     "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
24828     "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
24829     "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
24830     "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
24831     "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
24832     "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
24833     "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
24834     "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
24835     "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
24836     "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
24837     "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
24838     "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
24839     "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
24840     "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
24841     "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
24842     "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
24843     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24844     "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
24845     "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
24846     "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
24847     "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
24848     "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
24849     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24850     "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
24851     "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
24852     "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
24853     "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
24854     "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
24855     "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
24856     "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
24857     "PKGBUILD-zfs") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs" ;;
24858     "PKGBUILD-zfs-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-zfs-modules" ;;
24859     "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
24860
24861   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24862 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24863    { (exit 1); exit 1; }; };;
24864   esac
24865 done
24866
24867
24868 # If the user did not use the arguments to specify the items to instantiate,
24869 # then the envvar interface is used.  Set only those that are not.
24870 # We use the long form for the default assignment because of an extremely
24871 # bizarre bug on SunOS 4.1.3.
24872 if $ac_need_defaults; then
24873   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24874   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24875   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24876 fi
24877
24878 # Have a temporary directory for convenience.  Make it in the build tree
24879 # simply because there is no reason against having it here, and in addition,
24880 # creating and moving files from /tmp can sometimes cause problems.
24881 # Hook for its removal unless debugging.
24882 # Note that there is a small window in which the directory will not be cleaned:
24883 # after its creation but before its name has been assigned to `$tmp'.
24884 $debug ||
24885 {
24886   tmp=
24887   trap 'exit_status=$?
24888   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24889 ' 0
24890   trap '{ (exit 1); exit 1; }' 1 2 13 15
24891 }
24892 # Create a (secure) tmp directory for tmp files.
24893
24894 {
24895   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24896   test -n "$tmp" && test -d "$tmp"
24897 }  ||
24898 {
24899   tmp=./conf$$-$RANDOM
24900   (umask 077 && mkdir "$tmp")
24901 } ||
24902 {
24903    $as_echo "$as_me: cannot create a temporary directory in ." >&2
24904    { (exit 1); exit 1; }
24905 }
24906
24907 # Set up the scripts for CONFIG_FILES section.
24908 # No need to generate them if there are no CONFIG_FILES.
24909 # This happens for instance with `./config.status config.h'.
24910 if test -n "$CONFIG_FILES"; then
24911
24912
24913 ac_cr='\r'
24914 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24915 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24916   ac_cs_awk_cr='\\r'
24917 else
24918   ac_cs_awk_cr=$ac_cr
24919 fi
24920
24921 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24922 _ACEOF
24923
24924
24925 {
24926   echo "cat >conf$$subs.awk <<_ACEOF" &&
24927   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24928   echo "_ACEOF"
24929 } >conf$$subs.sh ||
24930   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24931 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24932    { (exit 1); exit 1; }; }
24933 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24934 ac_delim='%!_!# '
24935 for ac_last_try in false false false false false :; do
24936   . ./conf$$subs.sh ||
24937     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24938 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24939    { (exit 1); exit 1; }; }
24940
24941   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24942   if test $ac_delim_n = $ac_delim_num; then
24943     break
24944   elif $ac_last_try; then
24945     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24946 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24947    { (exit 1); exit 1; }; }
24948   else
24949     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24950   fi
24951 done
24952 rm -f conf$$subs.sh
24953
24954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24955 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24956 _ACEOF
24957 sed -n '
24958 h
24959 s/^/S["/; s/!.*/"]=/
24960 p
24961 g
24962 s/^[^!]*!//
24963 :repl
24964 t repl
24965 s/'"$ac_delim"'$//
24966 t delim
24967 :nl
24968 h
24969 s/\(.\{148\}\).*/\1/
24970 t more1
24971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24972 p
24973 n
24974 b repl
24975 :more1
24976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24977 p
24978 g
24979 s/.\{148\}//
24980 t nl
24981 :delim
24982 h
24983 s/\(.\{148\}\).*/\1/
24984 t more2
24985 s/["\\]/\\&/g; s/^/"/; s/$/"/
24986 p
24987 b
24988 :more2
24989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24990 p
24991 g
24992 s/.\{148\}//
24993 t delim
24994 ' <conf$$subs.awk | sed '
24995 /^[^""]/{
24996   N
24997   s/\n//
24998 }
24999 ' >>$CONFIG_STATUS || ac_write_fail=1
25000 rm -f conf$$subs.awk
25001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25002 _ACAWK
25003 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25004   for (key in S) S_is_set[key] = 1
25005   FS = "\a"
25006
25007 }
25008 {
25009   line = $ 0
25010   nfields = split(line, field, "@")
25011   substed = 0
25012   len = length(field[1])
25013   for (i = 2; i < nfields; i++) {
25014     key = field[i]
25015     keylen = length(key)
25016     if (S_is_set[key]) {
25017       value = S[key]
25018       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25019       len += length(value) + length(field[++i])
25020       substed = 1
25021     } else
25022       len += 1 + keylen
25023   }
25024
25025   print line
25026 }
25027
25028 _ACAWK
25029 _ACEOF
25030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25032   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25033 else
25034   cat
25035 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25036   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
25037 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
25038    { (exit 1); exit 1; }; }
25039 _ACEOF
25040
25041 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25042 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25043 # trailing colons and then remove the whole line if VPATH becomes empty
25044 # (actually we leave an empty line to preserve line numbers).
25045 if test "x$srcdir" = x.; then
25046   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25047 s/:*\$(srcdir):*/:/
25048 s/:*\${srcdir}:*/:/
25049 s/:*@srcdir@:*/:/
25050 s/^\([^=]*=[     ]*\):*/\1/
25051 s/:*$//
25052 s/^[^=]*=[       ]*$//
25053 }'
25054 fi
25055
25056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25057 fi # test -n "$CONFIG_FILES"
25058
25059 # Set up the scripts for CONFIG_HEADERS section.
25060 # No need to generate them if there are no CONFIG_HEADERS.
25061 # This happens for instance with `./config.status Makefile'.
25062 if test -n "$CONFIG_HEADERS"; then
25063 cat >"$tmp/defines.awk" <<\_ACAWK ||
25064 BEGIN {
25065 _ACEOF
25066
25067 # Transform confdefs.h into an awk script `defines.awk', embedded as
25068 # here-document in config.status, that substitutes the proper values into
25069 # config.h.in to produce config.h.
25070
25071 # Create a delimiter string that does not exist in confdefs.h, to ease
25072 # handling of long lines.
25073 ac_delim='%!_!# '
25074 for ac_last_try in false false :; do
25075   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25076   if test -z "$ac_t"; then
25077     break
25078   elif $ac_last_try; then
25079     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25080 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25081    { (exit 1); exit 1; }; }
25082   else
25083     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25084   fi
25085 done
25086
25087 # For the awk script, D is an array of macro values keyed by name,
25088 # likewise P contains macro parameters if any.  Preserve backslash
25089 # newline sequences.
25090
25091 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25092 sed -n '
25093 s/.\{148\}/&'"$ac_delim"'/g
25094 t rset
25095 :rset
25096 s/^[     ]*#[    ]*define[       ][      ]*/ /
25097 t def
25098 d
25099 :def
25100 s/\\$//
25101 t bsnl
25102 s/["\\]/\\&/g
25103 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25104 D["\1"]=" \3"/p
25105 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
25106 d
25107 :bsnl
25108 s/["\\]/\\&/g
25109 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
25110 D["\1"]=" \3\\\\\\n"\\/p
25111 t cont
25112 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25113 t cont
25114 d
25115 :cont
25116 n
25117 s/.\{148\}/&'"$ac_delim"'/g
25118 t clear
25119 :clear
25120 s/\\$//
25121 t bsnlc
25122 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25123 d
25124 :bsnlc
25125 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25126 b cont
25127 ' <confdefs.h | sed '
25128 s/'"$ac_delim"'/"\\\
25129 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25130
25131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25132   for (key in D) D_is_set[key] = 1
25133   FS = "\a"
25134 }
25135 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25136   line = \$ 0
25137   split(line, arg, " ")
25138   if (arg[1] == "#") {
25139     defundef = arg[2]
25140     mac1 = arg[3]
25141   } else {
25142     defundef = substr(arg[1], 2)
25143     mac1 = arg[2]
25144   }
25145   split(mac1, mac2, "(") #)
25146   macro = mac2[1]
25147   prefix = substr(line, 1, index(line, defundef) - 1)
25148   if (D_is_set[macro]) {
25149     # Preserve the white space surrounding the "#".
25150     print prefix "define", macro P[macro] D[macro]
25151     next
25152   } else {
25153     # Replace #undef with comments.  This is necessary, for example,
25154     # in the case of _POSIX_SOURCE, which is predefined and required
25155     # on some systems where configure will not decide to define it.
25156     if (defundef == "undef") {
25157       print "/*", prefix defundef, macro, "*/"
25158       next
25159     }
25160   }
25161 }
25162 { print }
25163 _ACAWK
25164 _ACEOF
25165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25166   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25167 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25168    { (exit 1); exit 1; }; }
25169 fi # test -n "$CONFIG_HEADERS"
25170
25171
25172 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
25173 shift
25174 for ac_tag
25175 do
25176   case $ac_tag in
25177   :[FHLC]) ac_mode=$ac_tag; continue;;
25178   esac
25179   case $ac_mode$ac_tag in
25180   :[FHL]*:*);;
25181   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
25182 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
25183    { (exit 1); exit 1; }; };;
25184   :[FH]-) ac_tag=-:-;;
25185   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25186   esac
25187   ac_save_IFS=$IFS
25188   IFS=:
25189   set x $ac_tag
25190   IFS=$ac_save_IFS
25191   shift
25192   ac_file=$1
25193   shift
25194
25195   case $ac_mode in
25196   :L) ac_source=$1;;
25197   :[FH])
25198     ac_file_inputs=
25199     for ac_f
25200     do
25201       case $ac_f in
25202       -) ac_f="$tmp/stdin";;
25203       *) # Look for the file first in the build tree, then in the source tree
25204          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25205          # because $ac_f cannot contain `:'.
25206          test -f "$ac_f" ||
25207            case $ac_f in
25208            [\\/$]*) false;;
25209            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25210            esac ||
25211            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25212 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25213    { (exit 1); exit 1; }; };;
25214       esac
25215       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25216       ac_file_inputs="$ac_file_inputs '$ac_f'"
25217     done
25218
25219     # Let's still pretend it is `configure' which instantiates (i.e., don't
25220     # use $as_me), people would be surprised to read:
25221     #    /* config.h.  Generated by config.status.  */
25222     configure_input='Generated from '`
25223           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25224         `' by configure.'
25225     if test x"$ac_file" != x-; then
25226       configure_input="$ac_file.  $configure_input"
25227       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25228 $as_echo "$as_me: creating $ac_file" >&6;}
25229     fi
25230     # Neutralize special characters interpreted by sed in replacement strings.
25231     case $configure_input in #(
25232     *\&* | *\|* | *\\* )
25233        ac_sed_conf_input=`$as_echo "$configure_input" |
25234        sed 's/[\\\\&|]/\\\\&/g'`;; #(
25235     *) ac_sed_conf_input=$configure_input;;
25236     esac
25237
25238     case $ac_tag in
25239     *:-:* | *:-) cat >"$tmp/stdin" \
25240       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25241 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25242    { (exit 1); exit 1; }; } ;;
25243     esac
25244     ;;
25245   esac
25246
25247   ac_dir=`$as_dirname -- "$ac_file" ||
25248 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25249          X"$ac_file" : 'X\(//\)[^/]' \| \
25250          X"$ac_file" : 'X\(//\)$' \| \
25251          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25252 $as_echo X"$ac_file" |
25253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25254             s//\1/
25255             q
25256           }
25257           /^X\(\/\/\)[^/].*/{
25258             s//\1/
25259             q
25260           }
25261           /^X\(\/\/\)$/{
25262             s//\1/
25263             q
25264           }
25265           /^X\(\/\).*/{
25266             s//\1/
25267             q
25268           }
25269           s/.*/./; q'`
25270   { as_dir="$ac_dir"
25271   case $as_dir in #(
25272   -*) as_dir=./$as_dir;;
25273   esac
25274   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25275     as_dirs=
25276     while :; do
25277       case $as_dir in #(
25278       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25279       *) as_qdir=$as_dir;;
25280       esac
25281       as_dirs="'$as_qdir' $as_dirs"
25282       as_dir=`$as_dirname -- "$as_dir" ||
25283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25284          X"$as_dir" : 'X\(//\)[^/]' \| \
25285          X"$as_dir" : 'X\(//\)$' \| \
25286          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25287 $as_echo X"$as_dir" |
25288     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25289             s//\1/
25290             q
25291           }
25292           /^X\(\/\/\)[^/].*/{
25293             s//\1/
25294             q
25295           }
25296           /^X\(\/\/\)$/{
25297             s//\1/
25298             q
25299           }
25300           /^X\(\/\).*/{
25301             s//\1/
25302             q
25303           }
25304           s/.*/./; q'`
25305       test -d "$as_dir" && break
25306     done
25307     test -z "$as_dirs" || eval "mkdir $as_dirs"
25308   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25309 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25310    { (exit 1); exit 1; }; }; }
25311   ac_builddir=.
25312
25313 case "$ac_dir" in
25314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25315 *)
25316   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25317   # A ".." for each directory in $ac_dir_suffix.
25318   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25319   case $ac_top_builddir_sub in
25320   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25321   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25322   esac ;;
25323 esac
25324 ac_abs_top_builddir=$ac_pwd
25325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25326 # for backward compatibility:
25327 ac_top_builddir=$ac_top_build_prefix
25328
25329 case $srcdir in
25330   .)  # We are building in place.
25331     ac_srcdir=.
25332     ac_top_srcdir=$ac_top_builddir_sub
25333     ac_abs_top_srcdir=$ac_pwd ;;
25334   [\\/]* | ?:[\\/]* )  # Absolute name.
25335     ac_srcdir=$srcdir$ac_dir_suffix;
25336     ac_top_srcdir=$srcdir
25337     ac_abs_top_srcdir=$srcdir ;;
25338   *) # Relative name.
25339     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25340     ac_top_srcdir=$ac_top_build_prefix$srcdir
25341     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25342 esac
25343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25344
25345
25346   case $ac_mode in
25347   :F)
25348   #
25349   # CONFIG_FILE
25350   #
25351
25352   case $INSTALL in
25353   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25354   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25355   esac
25356   ac_MKDIR_P=$MKDIR_P
25357   case $MKDIR_P in
25358   [\\/$]* | ?:[\\/]* ) ;;
25359   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25360   esac
25361 _ACEOF
25362
25363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25364 # If the template does not know about datarootdir, expand it.
25365 # FIXME: This hack should be removed a few years after 2.60.
25366 ac_datarootdir_hack=; ac_datarootdir_seen=
25367
25368 ac_sed_dataroot='
25369 /datarootdir/ {
25370   p
25371   q
25372 }
25373 /@datadir@/p
25374 /@docdir@/p
25375 /@infodir@/p
25376 /@localedir@/p
25377 /@mandir@/p
25378 '
25379 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25380 *datarootdir*) ac_datarootdir_seen=yes;;
25381 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25382   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25383 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25384 _ACEOF
25385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25386   ac_datarootdir_hack='
25387   s&@datadir@&$datadir&g
25388   s&@docdir@&$docdir&g
25389   s&@infodir@&$infodir&g
25390   s&@localedir@&$localedir&g
25391   s&@mandir@&$mandir&g
25392     s&\\\${datarootdir}&$datarootdir&g' ;;
25393 esac
25394 _ACEOF
25395
25396 # Neutralize VPATH when `$srcdir' = `.'.
25397 # Shell code in configure.ac might set extrasub.
25398 # FIXME: do we really want to maintain this feature?
25399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25400 ac_sed_extra="$ac_vpsub
25401 $extrasub
25402 _ACEOF
25403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25404 :t
25405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25406 s|@configure_input@|$ac_sed_conf_input|;t t
25407 s&@top_builddir@&$ac_top_builddir_sub&;t t
25408 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25409 s&@srcdir@&$ac_srcdir&;t t
25410 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25411 s&@top_srcdir@&$ac_top_srcdir&;t t
25412 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25413 s&@builddir@&$ac_builddir&;t t
25414 s&@abs_builddir@&$ac_abs_builddir&;t t
25415 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25416 s&@INSTALL@&$ac_INSTALL&;t t
25417 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25418 $ac_datarootdir_hack
25419 "
25420 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25421   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25422 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25423    { (exit 1); exit 1; }; }
25424
25425 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25426   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25427   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25428   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25429 which seems to be undefined.  Please make sure it is defined." >&5
25430 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25431 which seems to be undefined.  Please make sure it is defined." >&2;}
25432
25433   rm -f "$tmp/stdin"
25434   case $ac_file in
25435   -) cat "$tmp/out" && rm -f "$tmp/out";;
25436   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25437   esac \
25438   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25439 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25440    { (exit 1); exit 1; }; }
25441  ;;
25442   :H)
25443   #
25444   # CONFIG_HEADER
25445   #
25446   if test x"$ac_file" != x-; then
25447     {
25448       $as_echo "/* $configure_input  */" \
25449       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25450     } >"$tmp/config.h" \
25451       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25452 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25453    { (exit 1); exit 1; }; }
25454     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25455       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25456 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25457     else
25458       rm -f "$ac_file"
25459       mv "$tmp/config.h" "$ac_file" \
25460         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25461 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25462    { (exit 1); exit 1; }; }
25463     fi
25464   else
25465     $as_echo "/* $configure_input  */" \
25466       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25467       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25468 $as_echo "$as_me: error: could not create -" >&2;}
25469    { (exit 1); exit 1; }; }
25470   fi
25471 # Compute "$ac_file"'s index in $config_headers.
25472 _am_arg="$ac_file"
25473 _am_stamp_count=1
25474 for _am_header in $config_headers :; do
25475   case $_am_header in
25476     $_am_arg | $_am_arg:* )
25477       break ;;
25478     * )
25479       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25480   esac
25481 done
25482 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25483 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25484          X"$_am_arg" : 'X\(//\)[^/]' \| \
25485          X"$_am_arg" : 'X\(//\)$' \| \
25486          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25487 $as_echo X"$_am_arg" |
25488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25489             s//\1/
25490             q
25491           }
25492           /^X\(\/\/\)[^/].*/{
25493             s//\1/
25494             q
25495           }
25496           /^X\(\/\/\)$/{
25497             s//\1/
25498             q
25499           }
25500           /^X\(\/\).*/{
25501             s//\1/
25502             q
25503           }
25504           s/.*/./; q'`/stamp-h$_am_stamp_count
25505  ;;
25506
25507   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25508 $as_echo "$as_me: executing $ac_file commands" >&6;}
25509  ;;
25510   esac
25511
25512
25513   case $ac_file$ac_mode in
25514     "zfs_config.h":H)
25515         (mv zfs_config.h zfs_config.h.tmp &&
25516         awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
25517         rm zfs_config.h.tmp) || exit 1 ;;
25518     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25519   # Autoconf 2.62 quotes --file arguments for eval, but not when files
25520   # are listed without --file.  Let's play safe and only enable the eval
25521   # if we detect the quoting.
25522   case $CONFIG_FILES in
25523   *\'*) eval set x "$CONFIG_FILES" ;;
25524   *)   set x $CONFIG_FILES ;;
25525   esac
25526   shift
25527   for mf
25528   do
25529     # Strip MF so we end up with the name of the file.
25530     mf=`echo "$mf" | sed -e 's/:.*$//'`
25531     # Check whether this is an Automake generated Makefile or not.
25532     # We used to match only the files named `Makefile.in', but
25533     # some people rename them; so instead we look at the file content.
25534     # Grep'ing the first line is not enough: some people post-process
25535     # each Makefile.in and add a new line on top of each file to say so.
25536     # Grep'ing the whole file is not good either: AIX grep has a line
25537     # limit of 2048, but all sed's we know have understand at least 4000.
25538     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25539       dirpart=`$as_dirname -- "$mf" ||
25540 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25541          X"$mf" : 'X\(//\)[^/]' \| \
25542          X"$mf" : 'X\(//\)$' \| \
25543          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25544 $as_echo X"$mf" |
25545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25546             s//\1/
25547             q
25548           }
25549           /^X\(\/\/\)[^/].*/{
25550             s//\1/
25551             q
25552           }
25553           /^X\(\/\/\)$/{
25554             s//\1/
25555             q
25556           }
25557           /^X\(\/\).*/{
25558             s//\1/
25559             q
25560           }
25561           s/.*/./; q'`
25562     else
25563       continue
25564     fi
25565     # Extract the definition of DEPDIR, am__include, and am__quote
25566     # from the Makefile without running `make'.
25567     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25568     test -z "$DEPDIR" && continue
25569     am__include=`sed -n 's/^am__include = //p' < "$mf"`
25570     test -z "am__include" && continue
25571     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25572     # When using ansi2knr, U may be empty or an underscore; expand it
25573     U=`sed -n 's/^U = //p' < "$mf"`
25574     # Find all dependency output files, they are included files with
25575     # $(DEPDIR) in their names.  We invoke sed twice because it is the
25576     # simplest approach to changing $(DEPDIR) to its actual value in the
25577     # expansion.
25578     for file in `sed -n "
25579       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25580          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25581       # Make sure the directory exists.
25582       test -f "$dirpart/$file" && continue
25583       fdir=`$as_dirname -- "$file" ||
25584 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25585          X"$file" : 'X\(//\)[^/]' \| \
25586          X"$file" : 'X\(//\)$' \| \
25587          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25588 $as_echo X"$file" |
25589     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25590             s//\1/
25591             q
25592           }
25593           /^X\(\/\/\)[^/].*/{
25594             s//\1/
25595             q
25596           }
25597           /^X\(\/\/\)$/{
25598             s//\1/
25599             q
25600           }
25601           /^X\(\/\).*/{
25602             s//\1/
25603             q
25604           }
25605           s/.*/./; q'`
25606       { as_dir=$dirpart/$fdir
25607   case $as_dir in #(
25608   -*) as_dir=./$as_dir;;
25609   esac
25610   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25611     as_dirs=
25612     while :; do
25613       case $as_dir in #(
25614       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25615       *) as_qdir=$as_dir;;
25616       esac
25617       as_dirs="'$as_qdir' $as_dirs"
25618       as_dir=`$as_dirname -- "$as_dir" ||
25619 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25620          X"$as_dir" : 'X\(//\)[^/]' \| \
25621          X"$as_dir" : 'X\(//\)$' \| \
25622          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25623 $as_echo X"$as_dir" |
25624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25625             s//\1/
25626             q
25627           }
25628           /^X\(\/\/\)[^/].*/{
25629             s//\1/
25630             q
25631           }
25632           /^X\(\/\/\)$/{
25633             s//\1/
25634             q
25635           }
25636           /^X\(\/\).*/{
25637             s//\1/
25638             q
25639           }
25640           s/.*/./; q'`
25641       test -d "$as_dir" && break
25642     done
25643     test -z "$as_dirs" || eval "mkdir $as_dirs"
25644   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25645 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25646    { (exit 1); exit 1; }; }; }
25647       # echo "creating $dirpart/$file"
25648       echo '# dummy' > "$dirpart/$file"
25649     done
25650   done
25651 }
25652  ;;
25653     "libtool":C)
25654
25655     # See if we are running on zsh, and set the options which allow our
25656     # commands through without removal of \ escapes.
25657     if test -n "${ZSH_VERSION+set}" ; then
25658       setopt NO_GLOB_SUBST
25659     fi
25660
25661     cfgfile="${ofile}T"
25662     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25663     $RM "$cfgfile"
25664
25665     cat <<_LT_EOF >> "$cfgfile"
25666 #! $SHELL
25667
25668 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25669 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25671 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25672 #
25673 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25674 #                 2006, 2007, 2008 Free Software Foundation, Inc.
25675 #   Written by Gordon Matzigkeit, 1996
25676 #
25677 #   This file is part of GNU Libtool.
25678 #
25679 # GNU Libtool is free software; you can redistribute it and/or
25680 # modify it under the terms of the GNU General Public License as
25681 # published by the Free Software Foundation; either version 2 of
25682 # the License, or (at your option) any later version.
25683 #
25684 # As a special exception to the GNU General Public License,
25685 # if you distribute this file as part of a program or library that
25686 # is built using GNU Libtool, you may include this file under the
25687 # same distribution terms that you use for the rest of that program.
25688 #
25689 # GNU Libtool is distributed in the hope that it will be useful,
25690 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25691 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25692 # GNU General Public License for more details.
25693 #
25694 # You should have received a copy of the GNU General Public License
25695 # along with GNU Libtool; see the file COPYING.  If not, a copy
25696 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25697 # obtained by writing to the Free Software Foundation, Inc.,
25698 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25699
25700
25701 # The names of the tagged configurations supported by this script.
25702 available_tags=""
25703
25704 # ### BEGIN LIBTOOL CONFIG
25705
25706 # Which release of libtool.m4 was used?
25707 macro_version=$macro_version
25708 macro_revision=$macro_revision
25709
25710 # Whether or not to build shared libraries.
25711 build_libtool_libs=$enable_shared
25712
25713 # Whether or not to build static libraries.
25714 build_old_libs=$enable_static
25715
25716 # What type of objects to build.
25717 pic_mode=$pic_mode
25718
25719 # Whether or not to optimize for fast installation.
25720 fast_install=$enable_fast_install
25721
25722 # The host system.
25723 host_alias=$host_alias
25724 host=$host
25725 host_os=$host_os
25726
25727 # The build system.
25728 build_alias=$build_alias
25729 build=$build
25730 build_os=$build_os
25731
25732 # A sed program that does not truncate output.
25733 SED=$lt_SED
25734
25735 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25736 Xsed="\$SED -e 1s/^X//"
25737
25738 # A grep program that handles long lines.
25739 GREP=$lt_GREP
25740
25741 # An ERE matcher.
25742 EGREP=$lt_EGREP
25743
25744 # A literal string matcher.
25745 FGREP=$lt_FGREP
25746
25747 # A BSD- or MS-compatible name lister.
25748 NM=$lt_NM
25749
25750 # Whether we need soft or hard links.
25751 LN_S=$lt_LN_S
25752
25753 # What is the maximum length of a command?
25754 max_cmd_len=$max_cmd_len
25755
25756 # Object file suffix (normally "o").
25757 objext=$ac_objext
25758
25759 # Executable file suffix (normally "").
25760 exeext=$exeext
25761
25762 # whether the shell understands "unset".
25763 lt_unset=$lt_unset
25764
25765 # turn spaces into newlines.
25766 SP2NL=$lt_lt_SP2NL
25767
25768 # turn newlines into spaces.
25769 NL2SP=$lt_lt_NL2SP
25770
25771 # How to create reloadable object files.
25772 reload_flag=$lt_reload_flag
25773 reload_cmds=$lt_reload_cmds
25774
25775 # An object symbol dumper.
25776 OBJDUMP=$lt_OBJDUMP
25777
25778 # Method to check whether dependent libraries are shared objects.
25779 deplibs_check_method=$lt_deplibs_check_method
25780
25781 # Command to use when deplibs_check_method == "file_magic".
25782 file_magic_cmd=$lt_file_magic_cmd
25783
25784 # The archiver.
25785 AR=$lt_AR
25786 AR_FLAGS=$lt_AR_FLAGS
25787
25788 # A symbol stripping program.
25789 STRIP=$lt_STRIP
25790
25791 # Commands used to install an old-style archive.
25792 RANLIB=$lt_RANLIB
25793 old_postinstall_cmds=$lt_old_postinstall_cmds
25794 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25795
25796 # A C compiler.
25797 LTCC=$lt_CC
25798
25799 # LTCC compiler flags.
25800 LTCFLAGS=$lt_CFLAGS
25801
25802 # Take the output of nm and produce a listing of raw symbols and C names.
25803 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25804
25805 # Transform the output of nm in a proper C declaration.
25806 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25807
25808 # Transform the output of nm in a C name address pair.
25809 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25810
25811 # Transform the output of nm in a C name address pair when lib prefix is needed.
25812 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25813
25814 # The name of the directory that contains temporary libtool files.
25815 objdir=$objdir
25816
25817 # Shell to use when invoking shell scripts.
25818 SHELL=$lt_SHELL
25819
25820 # An echo program that does not interpret backslashes.
25821 ECHO=$lt_ECHO
25822
25823 # Used to examine libraries when file_magic_cmd begins with "file".
25824 MAGIC_CMD=$MAGIC_CMD
25825
25826 # Must we lock files when doing compilation?
25827 need_locks=$lt_need_locks
25828
25829 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25830 DSYMUTIL=$lt_DSYMUTIL
25831
25832 # Tool to change global to local symbols on Mac OS X.
25833 NMEDIT=$lt_NMEDIT
25834
25835 # Tool to manipulate fat objects and archives on Mac OS X.
25836 LIPO=$lt_LIPO
25837
25838 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25839 OTOOL=$lt_OTOOL
25840
25841 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25842 OTOOL64=$lt_OTOOL64
25843
25844 # Old archive suffix (normally "a").
25845 libext=$libext
25846
25847 # Shared library suffix (normally ".so").
25848 shrext_cmds=$lt_shrext_cmds
25849
25850 # The commands to extract the exported symbol list from a shared archive.
25851 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25852
25853 # Variables whose values should be saved in libtool wrapper scripts and
25854 # restored at link time.
25855 variables_saved_for_relink=$lt_variables_saved_for_relink
25856
25857 # Do we need the "lib" prefix for modules?
25858 need_lib_prefix=$need_lib_prefix
25859
25860 # Do we need a version for libraries?
25861 need_version=$need_version
25862
25863 # Library versioning type.
25864 version_type=$version_type
25865
25866 # Shared library runtime path variable.
25867 runpath_var=$runpath_var
25868
25869 # Shared library path variable.
25870 shlibpath_var=$shlibpath_var
25871
25872 # Is shlibpath searched before the hard-coded library search path?
25873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25874
25875 # Format of library name prefix.
25876 libname_spec=$lt_libname_spec
25877
25878 # List of archive names.  First name is the real one, the rest are links.
25879 # The last name is the one that the linker finds with -lNAME
25880 library_names_spec=$lt_library_names_spec
25881
25882 # The coded name of the library, if different from the real name.
25883 soname_spec=$lt_soname_spec
25884
25885 # Command to use after installation of a shared archive.
25886 postinstall_cmds=$lt_postinstall_cmds
25887
25888 # Command to use after uninstallation of a shared archive.
25889 postuninstall_cmds=$lt_postuninstall_cmds
25890
25891 # Commands used to finish a libtool library installation in a directory.
25892 finish_cmds=$lt_finish_cmds
25893
25894 # As "finish_cmds", except a single script fragment to be evaled but
25895 # not shown.
25896 finish_eval=$lt_finish_eval
25897
25898 # Whether we should hardcode library paths into libraries.
25899 hardcode_into_libs=$hardcode_into_libs
25900
25901 # Compile-time system search path for libraries.
25902 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25903
25904 # Run-time system search path for libraries.
25905 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25906
25907 # Whether dlopen is supported.
25908 dlopen_support=$enable_dlopen
25909
25910 # Whether dlopen of programs is supported.
25911 dlopen_self=$enable_dlopen_self
25912
25913 # Whether dlopen of statically linked programs is supported.
25914 dlopen_self_static=$enable_dlopen_self_static
25915
25916 # Commands to strip libraries.
25917 old_striplib=$lt_old_striplib
25918 striplib=$lt_striplib
25919
25920
25921 # The linker used to build libraries.
25922 LD=$lt_LD
25923
25924 # Commands used to build an old-style archive.
25925 old_archive_cmds=$lt_old_archive_cmds
25926
25927 # A language specific compiler.
25928 CC=$lt_compiler
25929
25930 # Is the compiler the GNU compiler?
25931 with_gcc=$GCC
25932
25933 # Compiler flag to turn off builtin functions.
25934 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25935
25936 # How to pass a linker flag through the compiler.
25937 wl=$lt_lt_prog_compiler_wl
25938
25939 # Additional compiler flags for building library objects.
25940 pic_flag=$lt_lt_prog_compiler_pic
25941
25942 # Compiler flag to prevent dynamic linking.
25943 link_static_flag=$lt_lt_prog_compiler_static
25944
25945 # Does compiler simultaneously support -c and -o options?
25946 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25947
25948 # Whether or not to add -lc for building shared libraries.
25949 build_libtool_need_lc=$archive_cmds_need_lc
25950
25951 # Whether or not to disallow shared libs when runtime libs are static.
25952 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25953
25954 # Compiler flag to allow reflexive dlopens.
25955 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25956
25957 # Compiler flag to generate shared objects directly from archives.
25958 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25959
25960 # Whether the compiler copes with passing no objects directly.
25961 compiler_needs_object=$lt_compiler_needs_object
25962
25963 # Create an old-style archive from a shared archive.
25964 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25965
25966 # Create a temporary old-style archive to link instead of a shared archive.
25967 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25968
25969 # Commands used to build a shared archive.
25970 archive_cmds=$lt_archive_cmds
25971 archive_expsym_cmds=$lt_archive_expsym_cmds
25972
25973 # Commands used to build a loadable module if different from building
25974 # a shared archive.
25975 module_cmds=$lt_module_cmds
25976 module_expsym_cmds=$lt_module_expsym_cmds
25977
25978 # Whether we are building with GNU ld or not.
25979 with_gnu_ld=$lt_with_gnu_ld
25980
25981 # Flag that allows shared libraries with undefined symbols to be built.
25982 allow_undefined_flag=$lt_allow_undefined_flag
25983
25984 # Flag that enforces no undefined symbols.
25985 no_undefined_flag=$lt_no_undefined_flag
25986
25987 # Flag to hardcode \$libdir into a binary during linking.
25988 # This must work even if \$libdir does not exist
25989 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25990
25991 # If ld is used when linking, flag to hardcode \$libdir into a binary
25992 # during linking.  This must work even if \$libdir does not exist.
25993 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25994
25995 # Whether we need a single "-rpath" flag with a separated argument.
25996 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25997
25998 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25999 # DIR into the resulting binary.
26000 hardcode_direct=$hardcode_direct
26001
26002 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26003 # DIR into the resulting binary and the resulting library dependency is
26004 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26005 # library is relocated.
26006 hardcode_direct_absolute=$hardcode_direct_absolute
26007
26008 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26009 # into the resulting binary.
26010 hardcode_minus_L=$hardcode_minus_L
26011
26012 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26013 # into the resulting binary.
26014 hardcode_shlibpath_var=$hardcode_shlibpath_var
26015
26016 # Set to "yes" if building a shared library automatically hardcodes DIR
26017 # into the library and all subsequent libraries and executables linked
26018 # against it.
26019 hardcode_automatic=$hardcode_automatic
26020
26021 # Set to yes if linker adds runtime paths of dependent libraries
26022 # to runtime path list.
26023 inherit_rpath=$inherit_rpath
26024
26025 # Whether libtool must link a program against all its dependency libraries.
26026 link_all_deplibs=$link_all_deplibs
26027
26028 # Fix the shell variable \$srcfile for the compiler.
26029 fix_srcfile_path=$lt_fix_srcfile_path
26030
26031 # Set to "yes" if exported symbols are required.
26032 always_export_symbols=$always_export_symbols
26033
26034 # The commands to list exported symbols.
26035 export_symbols_cmds=$lt_export_symbols_cmds
26036
26037 # Symbols that should not be listed in the preloaded symbols.
26038 exclude_expsyms=$lt_exclude_expsyms
26039
26040 # Symbols that must always be exported.
26041 include_expsyms=$lt_include_expsyms
26042
26043 # Commands necessary for linking programs (against libraries) with templates.
26044 prelink_cmds=$lt_prelink_cmds
26045
26046 # Specify filename containing input files.
26047 file_list_spec=$lt_file_list_spec
26048
26049 # How to hardcode a shared library path into an executable.
26050 hardcode_action=$hardcode_action
26051
26052 # ### END LIBTOOL CONFIG
26053
26054 _LT_EOF
26055
26056   case $host_os in
26057   aix3*)
26058     cat <<\_LT_EOF >> "$cfgfile"
26059 # AIX sometimes has problems with the GCC collect2 program.  For some
26060 # reason, if we set the COLLECT_NAMES environment variable, the problems
26061 # vanish in a puff of smoke.
26062 if test "X${COLLECT_NAMES+set}" != Xset; then
26063   COLLECT_NAMES=
26064   export COLLECT_NAMES
26065 fi
26066 _LT_EOF
26067     ;;
26068   esac
26069
26070
26071 ltmain="$ac_aux_dir/ltmain.sh"
26072
26073
26074   # We use sed instead of cat because bash on DJGPP gets confused if
26075   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
26076   # text mode, it properly converts lines to CR/LF.  This bash problem
26077   # is reportedly fixed, but why not run on old versions too?
26078   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26079     || (rm -f "$cfgfile"; exit 1)
26080
26081   case $xsi_shell in
26082   yes)
26083     cat << \_LT_EOF >> "$cfgfile"
26084
26085 # func_dirname file append nondir_replacement
26086 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
26087 # otherwise set result to NONDIR_REPLACEMENT.
26088 func_dirname ()
26089 {
26090   case ${1} in
26091     */*) func_dirname_result="${1%/*}${2}" ;;
26092     *  ) func_dirname_result="${3}" ;;
26093   esac
26094 }
26095
26096 # func_basename file
26097 func_basename ()
26098 {
26099   func_basename_result="${1##*/}"
26100 }
26101
26102 # func_dirname_and_basename file append nondir_replacement
26103 # perform func_basename and func_dirname in a single function
26104 # call:
26105 #   dirname:  Compute the dirname of FILE.  If nonempty,
26106 #             add APPEND to the result, otherwise set result
26107 #             to NONDIR_REPLACEMENT.
26108 #             value returned in "$func_dirname_result"
26109 #   basename: Compute filename of FILE.
26110 #             value retuned in "$func_basename_result"
26111 # Implementation must be kept synchronized with func_dirname
26112 # and func_basename. For efficiency, we do not delegate to
26113 # those functions but instead duplicate the functionality here.
26114 func_dirname_and_basename ()
26115 {
26116   case ${1} in
26117     */*) func_dirname_result="${1%/*}${2}" ;;
26118     *  ) func_dirname_result="${3}" ;;
26119   esac
26120   func_basename_result="${1##*/}"
26121 }
26122
26123 # func_stripname prefix suffix name
26124 # strip PREFIX and SUFFIX off of NAME.
26125 # PREFIX and SUFFIX must not contain globbing or regex special
26126 # characters, hashes, percent signs, but SUFFIX may contain a leading
26127 # dot (in which case that matches only a dot).
26128 func_stripname ()
26129 {
26130   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26131   # positional parameters, so assign one to ordinary parameter first.
26132   func_stripname_result=${3}
26133   func_stripname_result=${func_stripname_result#"${1}"}
26134   func_stripname_result=${func_stripname_result%"${2}"}
26135 }
26136
26137 # func_opt_split
26138 func_opt_split ()
26139 {
26140   func_opt_split_opt=${1%%=*}
26141   func_opt_split_arg=${1#*=}
26142 }
26143
26144 # func_lo2o object
26145 func_lo2o ()
26146 {
26147   case ${1} in
26148     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
26149     *)    func_lo2o_result=${1} ;;
26150   esac
26151 }
26152
26153 # func_xform libobj-or-source
26154 func_xform ()
26155 {
26156   func_xform_result=${1%.*}.lo
26157 }
26158
26159 # func_arith arithmetic-term...
26160 func_arith ()
26161 {
26162   func_arith_result=$(( $* ))
26163 }
26164
26165 # func_len string
26166 # STRING may not start with a hyphen.
26167 func_len ()
26168 {
26169   func_len_result=${#1}
26170 }
26171
26172 _LT_EOF
26173     ;;
26174   *) # Bourne compatible functions.
26175     cat << \_LT_EOF >> "$cfgfile"
26176
26177 # func_dirname file append nondir_replacement
26178 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
26179 # otherwise set result to NONDIR_REPLACEMENT.
26180 func_dirname ()
26181 {
26182   # Extract subdirectory from the argument.
26183   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
26184   if test "X$func_dirname_result" = "X${1}"; then
26185     func_dirname_result="${3}"
26186   else
26187     func_dirname_result="$func_dirname_result${2}"
26188   fi
26189 }
26190
26191 # func_basename file
26192 func_basename ()
26193 {
26194   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
26195 }
26196
26197
26198 # func_stripname prefix suffix name
26199 # strip PREFIX and SUFFIX off of NAME.
26200 # PREFIX and SUFFIX must not contain globbing or regex special
26201 # characters, hashes, percent signs, but SUFFIX may contain a leading
26202 # dot (in which case that matches only a dot).
26203 # func_strip_suffix prefix name
26204 func_stripname ()
26205 {
26206   case ${2} in
26207     .*) func_stripname_result=`$ECHO "X${3}" \
26208            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
26209     *)  func_stripname_result=`$ECHO "X${3}" \
26210            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
26211   esac
26212 }
26213
26214 # sed scripts:
26215 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
26216 my_sed_long_arg='1s/^-[^=]*=//'
26217
26218 # func_opt_split
26219 func_opt_split ()
26220 {
26221   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
26222   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
26223 }
26224
26225 # func_lo2o object
26226 func_lo2o ()
26227 {
26228   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
26229 }
26230
26231 # func_xform libobj-or-source
26232 func_xform ()
26233 {
26234   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
26235 }
26236
26237 # func_arith arithmetic-term...
26238 func_arith ()
26239 {
26240   func_arith_result=`expr "$@"`
26241 }
26242
26243 # func_len string
26244 # STRING may not start with a hyphen.
26245 func_len ()
26246 {
26247   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
26248 }
26249
26250 _LT_EOF
26251 esac
26252
26253 case $lt_shell_append in
26254   yes)
26255     cat << \_LT_EOF >> "$cfgfile"
26256
26257 # func_append var value
26258 # Append VALUE to the end of shell variable VAR.
26259 func_append ()
26260 {
26261   eval "$1+=\$2"
26262 }
26263 _LT_EOF
26264     ;;
26265   *)
26266     cat << \_LT_EOF >> "$cfgfile"
26267
26268 # func_append var value
26269 # Append VALUE to the end of shell variable VAR.
26270 func_append ()
26271 {
26272   eval "$1=\$$1\$2"
26273 }
26274
26275 _LT_EOF
26276     ;;
26277   esac
26278
26279
26280   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
26281     || (rm -f "$cfgfile"; exit 1)
26282
26283   mv -f "$cfgfile" "$ofile" ||
26284     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26285   chmod +x "$ofile"
26286
26287  ;;
26288
26289   esac
26290 done # for ac_tag
26291
26292
26293 { (exit 0); exit 0; }
26294 _ACEOF
26295 chmod +x $CONFIG_STATUS
26296 ac_clean_files=$ac_clean_files_save
26297
26298 test $ac_write_fail = 0 ||
26299   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
26300 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
26301    { (exit 1); exit 1; }; }
26302
26303
26304 # configure is writing to config.log, and then calls config.status.
26305 # config.status does its own redirection, appending to config.log.
26306 # Unfortunately, on DOS this fails, as config.log is still kept open
26307 # by configure, so config.status won't be able to write to it; its
26308 # output is simply discarded.  So we exec the FD to /dev/null,
26309 # effectively closing config.log, so it can be properly (re)opened and
26310 # appended to by config.status.  When coming back to configure, we
26311 # need to make the FD available again.
26312 if test "$no_create" != yes; then
26313   ac_cs_success=:
26314   ac_config_status_args=
26315   test "$silent" = yes &&
26316     ac_config_status_args="$ac_config_status_args --quiet"
26317   exec 5>/dev/null
26318   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26319   exec 5>>config.log
26320   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26321   # would make configure fail if this is the last instruction.
26322   $ac_cs_success || { (exit 1); exit 1; }
26323 fi
26324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26325   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26327 fi
26328