Make CONFIG_PREEMPT Fatal
[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_STACKFLAGS
791 DEBUG_CFLAGS
792 CONFIG_KERNEL_FALSE
793 CONFIG_KERNEL_TRUE
794 CONFIG_USER_FALSE
795 CONFIG_USER_TRUE
796 FRAME_LARGER_THAN
797 LIBSELINUX
798 LIBBLKID
799 LIBUUID
800 ZLIB
801 KERNELCPPFLAGS
802 KERNELMAKE_PARAMS
803 SPL_SYMBOLS
804 SPL_VERSION
805 SPL_OBJ
806 SPL
807 LINUX_SYMBOLS
808 LINUX_VERSION
809 LINUX_OBJ
810 LINUX
811 ZFS_CONFIG
812 TARGET_ASM_DIR
813 DEFAULT_PACKAGE
814 VENDOR
815 ALIEN_VERSION
816 ALIEN
817 HAVE_ALIEN
818 DPKGBUILD_VERSION
819 DPKGBUILD
820 HAVE_DPKGBUILD
821 DPKG_VERSION
822 DPKG
823 HAVE_DPKG
824 RPMBUILD_VERSION
825 RPMBUILD
826 HAVE_RPMBUILD
827 RPM_VERSION
828 RPM
829 HAVE_RPM
830 am__fastdepCCAS_FALSE
831 am__fastdepCCAS_TRUE
832 CCASDEPMODE
833 CCASFLAGS
834 CCAS
835 CPP
836 OTOOL64
837 OTOOL
838 LIPO
839 NMEDIT
840 DSYMUTIL
841 lt_ECHO
842 RANLIB
843 AR
844 OBJDUMP
845 LN_S
846 NM
847 ac_ct_DUMPBIN
848 DUMPBIN
849 LD
850 FGREP
851 EGREP
852 GREP
853 SED
854 LIBTOOL
855 am__fastdepCC_FALSE
856 am__fastdepCC_TRUE
857 CCDEPMODE
858 AMDEPBACKSLASH
859 AMDEP_FALSE
860 AMDEP_TRUE
861 am__quote
862 am__include
863 DEPDIR
864 OBJEXT
865 EXEEXT
866 ac_ct_CC
867 CPPFLAGS
868 LDFLAGS
869 CFLAGS
870 CC
871 am__untar
872 am__tar
873 AMTAR
874 am__leading_dot
875 SET_MAKE
876 AWK
877 mkdir_p
878 MKDIR_P
879 INSTALL_STRIP_PROGRAM
880 STRIP
881 install_sh
882 MAKEINFO
883 AUTOHEADER
884 AUTOMAKE
885 AUTOCONF
886 ACLOCAL
887 VERSION
888 PACKAGE
889 CYGPATH_W
890 am__isrc
891 INSTALL_DATA
892 INSTALL_SCRIPT
893 INSTALL_PROGRAM
894 AM_BACKSLASH
895 AM_DEFAULT_VERBOSITY
896 MAINT
897 MAINTAINER_MODE_FALSE
898 MAINTAINER_MODE_TRUE
899 target_os
900 target_vendor
901 target_cpu
902 target
903 host_os
904 host_vendor
905 host_cpu
906 host
907 build_os
908 build_vendor
909 build_cpu
910 build
911 ZFS_META_LT_AGE
912 ZFS_META_LT_REVISION
913 ZFS_META_LT_CURRENT
914 ZFS_META_AUTHOR
915 ZFS_META_DATA
916 ZFS_META_ALIAS
917 ZFS_META_LICENSE
918 ZFS_META_RELEASE
919 ZFS_META_VERSION
920 ZFS_META_NAME
921 target_alias
922 host_alias
923 build_alias
924 LIBS
925 ECHO_T
926 ECHO_N
927 ECHO_C
928 DEFS
929 mandir
930 localedir
931 libdir
932 psdir
933 pdfdir
934 dvidir
935 htmldir
936 infodir
937 docdir
938 oldincludedir
939 includedir
940 localstatedir
941 sharedstatedir
942 sysconfdir
943 datadir
944 datarootdir
945 libexecdir
946 sbindir
947 bindir
948 program_transform_name
949 prefix
950 exec_prefix
951 PACKAGE_BUGREPORT
952 PACKAGE_STRING
953 PACKAGE_VERSION
954 PACKAGE_TARNAME
955 PACKAGE_NAME
956 PATH_SEPARATOR
957 SHELL'
958 ac_subst_files=''
959 ac_user_opts='
960 enable_option_checking
961 enable_maintainer_mode
962 enable_silent_rules
963 enable_dependency_tracking
964 enable_shared
965 enable_static
966 with_pic
967 enable_fast_install
968 with_gnu_ld
969 enable_libtool_lock
970 with_config
971 with_linux
972 with_linux_obj
973 with_spl
974 with_spl_obj
975 with_blkid
976 with_selinux
977 enable_debug
978 '
979       ac_precious_vars='build_alias
980 host_alias
981 target_alias
982 CC
983 CFLAGS
984 LDFLAGS
985 LIBS
986 CPPFLAGS
987 CPP
988 CCAS
989 CCASFLAGS'
990
991
992 # Initialize some variables set by options.
993 ac_init_help=
994 ac_init_version=false
995 ac_unrecognized_opts=
996 ac_unrecognized_sep=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
999 cache_file=/dev/null
1000 exec_prefix=NONE
1001 no_create=
1002 no_recursion=
1003 prefix=NONE
1004 program_prefix=NONE
1005 program_suffix=NONE
1006 program_transform_name=s,x,x,
1007 silent=
1008 site=
1009 srcdir=
1010 verbose=
1011 x_includes=NONE
1012 x_libraries=NONE
1013
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 includedir='${prefix}/include'
1029 oldincludedir='/usr/include'
1030 docdir='${datarootdir}/doc/${PACKAGE}'
1031 infodir='${datarootdir}/info'
1032 htmldir='${docdir}'
1033 dvidir='${docdir}'
1034 pdfdir='${docdir}'
1035 psdir='${docdir}'
1036 libdir='${exec_prefix}/lib'
1037 localedir='${datarootdir}/locale'
1038 mandir='${datarootdir}/man'
1039
1040 ac_prev=
1041 ac_dashdash=
1042 for ac_option
1043 do
1044   # If the previous option needs an argument, assign it.
1045   if test -n "$ac_prev"; then
1046     eval $ac_prev=\$ac_option
1047     ac_prev=
1048     continue
1049   fi
1050
1051   case $ac_option in
1052   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053   *)    ac_optarg=yes ;;
1054   esac
1055
1056   # Accept the important Cygnus configure options, so we can diagnose typos.
1057
1058   case $ac_dashdash$ac_option in
1059   --)
1060     ac_dashdash=yes ;;
1061
1062   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063     ac_prev=bindir ;;
1064   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065     bindir=$ac_optarg ;;
1066
1067   -build | --build | --buil | --bui | --bu)
1068     ac_prev=build_alias ;;
1069   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070     build_alias=$ac_optarg ;;
1071
1072   -cache-file | --cache-file | --cache-fil | --cache-fi \
1073   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074     ac_prev=cache_file ;;
1075   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077     cache_file=$ac_optarg ;;
1078
1079   --config-cache | -C)
1080     cache_file=config.cache ;;
1081
1082   -datadir | --datadir | --datadi | --datad)
1083     ac_prev=datadir ;;
1084   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085     datadir=$ac_optarg ;;
1086
1087   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088   | --dataroo | --dataro | --datar)
1089     ac_prev=datarootdir ;;
1090   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092     datarootdir=$ac_optarg ;;
1093
1094   -disable-* | --disable-*)
1095     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096     # Reject names that are not valid shell variable names.
1097     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099    { (exit 1); exit 1; }; }
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval enable_$ac_useropt=no ;;
1110
1111   -docdir | --docdir | --docdi | --doc | --do)
1112     ac_prev=docdir ;;
1113   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114     docdir=$ac_optarg ;;
1115
1116   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117     ac_prev=dvidir ;;
1118   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119     dvidir=$ac_optarg ;;
1120
1121   -enable-* | --enable-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1126    { (exit 1); exit 1; }; }
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130       *"
1131 "enable_$ac_useropt"
1132 "*) ;;
1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134          ac_unrecognized_sep=', ';;
1135     esac
1136     eval enable_$ac_useropt=\$ac_optarg ;;
1137
1138   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140   | --exec | --exe | --ex)
1141     ac_prev=exec_prefix ;;
1142   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144   | --exec=* | --exe=* | --ex=*)
1145     exec_prefix=$ac_optarg ;;
1146
1147   -gas | --gas | --ga | --g)
1148     # Obsolete; use --with-gas.
1149     with_gas=yes ;;
1150
1151   -help | --help | --hel | --he | -h)
1152     ac_init_help=long ;;
1153   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154     ac_init_help=recursive ;;
1155   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156     ac_init_help=short ;;
1157
1158   -host | --host | --hos | --ho)
1159     ac_prev=host_alias ;;
1160   -host=* | --host=* | --hos=* | --ho=*)
1161     host_alias=$ac_optarg ;;
1162
1163   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164     ac_prev=htmldir ;;
1165   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166   | --ht=*)
1167     htmldir=$ac_optarg ;;
1168
1169   -includedir | --includedir | --includedi | --included | --include \
1170   | --includ | --inclu | --incl | --inc)
1171     ac_prev=includedir ;;
1172   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173   | --includ=* | --inclu=* | --incl=* | --inc=*)
1174     includedir=$ac_optarg ;;
1175
1176   -infodir | --infodir | --infodi | --infod | --info | --inf)
1177     ac_prev=infodir ;;
1178   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179     infodir=$ac_optarg ;;
1180
1181   -libdir | --libdir | --libdi | --libd)
1182     ac_prev=libdir ;;
1183   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184     libdir=$ac_optarg ;;
1185
1186   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187   | --libexe | --libex | --libe)
1188     ac_prev=libexecdir ;;
1189   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190   | --libexe=* | --libex=* | --libe=*)
1191     libexecdir=$ac_optarg ;;
1192
1193   -localedir | --localedir | --localedi | --localed | --locale)
1194     ac_prev=localedir ;;
1195   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196     localedir=$ac_optarg ;;
1197
1198   -localstatedir | --localstatedir | --localstatedi | --localstated \
1199   | --localstate | --localstat | --localsta | --localst | --locals)
1200     ac_prev=localstatedir ;;
1201   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203     localstatedir=$ac_optarg ;;
1204
1205   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206     ac_prev=mandir ;;
1207   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208     mandir=$ac_optarg ;;
1209
1210   -nfp | --nfp | --nf)
1211     # Obsolete; use --without-fp.
1212     with_fp=no ;;
1213
1214   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215   | --no-cr | --no-c | -n)
1216     no_create=yes ;;
1217
1218   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220     no_recursion=yes ;;
1221
1222   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224   | --oldin | --oldi | --old | --ol | --o)
1225     ac_prev=oldincludedir ;;
1226   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229     oldincludedir=$ac_optarg ;;
1230
1231   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232     ac_prev=prefix ;;
1233   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234     prefix=$ac_optarg ;;
1235
1236   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237   | --program-pre | --program-pr | --program-p)
1238     ac_prev=program_prefix ;;
1239   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241     program_prefix=$ac_optarg ;;
1242
1243   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244   | --program-suf | --program-su | --program-s)
1245     ac_prev=program_suffix ;;
1246   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248     program_suffix=$ac_optarg ;;
1249
1250   -program-transform-name | --program-transform-name \
1251   | --program-transform-nam | --program-transform-na \
1252   | --program-transform-n | --program-transform- \
1253   | --program-transform | --program-transfor \
1254   | --program-transfo | --program-transf \
1255   | --program-trans | --program-tran \
1256   | --progr-tra | --program-tr | --program-t)
1257     ac_prev=program_transform_name ;;
1258   -program-transform-name=* | --program-transform-name=* \
1259   | --program-transform-nam=* | --program-transform-na=* \
1260   | --program-transform-n=* | --program-transform-=* \
1261   | --program-transform=* | --program-transfor=* \
1262   | --program-transfo=* | --program-transf=* \
1263   | --program-trans=* | --program-tran=* \
1264   | --progr-tra=* | --program-tr=* | --program-t=*)
1265     program_transform_name=$ac_optarg ;;
1266
1267   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268     ac_prev=pdfdir ;;
1269   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270     pdfdir=$ac_optarg ;;
1271
1272   -psdir | --psdir | --psdi | --psd | --ps)
1273     ac_prev=psdir ;;
1274   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275     psdir=$ac_optarg ;;
1276
1277   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278   | -silent | --silent | --silen | --sile | --sil)
1279     silent=yes ;;
1280
1281   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282     ac_prev=sbindir ;;
1283   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284   | --sbi=* | --sb=*)
1285     sbindir=$ac_optarg ;;
1286
1287   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289   | --sharedst | --shareds | --shared | --share | --shar \
1290   | --sha | --sh)
1291     ac_prev=sharedstatedir ;;
1292   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295   | --sha=* | --sh=*)
1296     sharedstatedir=$ac_optarg ;;
1297
1298   -site | --site | --sit)
1299     ac_prev=site ;;
1300   -site=* | --site=* | --sit=*)
1301     site=$ac_optarg ;;
1302
1303   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304     ac_prev=srcdir ;;
1305   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306     srcdir=$ac_optarg ;;
1307
1308   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309   | --syscon | --sysco | --sysc | --sys | --sy)
1310     ac_prev=sysconfdir ;;
1311   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313     sysconfdir=$ac_optarg ;;
1314
1315   -target | --target | --targe | --targ | --tar | --ta | --t)
1316     ac_prev=target_alias ;;
1317   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318     target_alias=$ac_optarg ;;
1319
1320   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321     verbose=yes ;;
1322
1323   -version | --version | --versio | --versi | --vers | -V)
1324     ac_init_version=: ;;
1325
1326   -with-* | --with-*)
1327     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1331    { (exit 1); exit 1; }; }
1332     ac_useropt_orig=$ac_useropt
1333     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334     case $ac_user_opts in
1335       *"
1336 "with_$ac_useropt"
1337 "*) ;;
1338       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339          ac_unrecognized_sep=', ';;
1340     esac
1341     eval with_$ac_useropt=\$ac_optarg ;;
1342
1343   -without-* | --without-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1348    { (exit 1); exit 1; }; }
1349     ac_useropt_orig=$ac_useropt
1350     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351     case $ac_user_opts in
1352       *"
1353 "with_$ac_useropt"
1354 "*) ;;
1355       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356          ac_unrecognized_sep=', ';;
1357     esac
1358     eval with_$ac_useropt=no ;;
1359
1360   --x)
1361     # Obsolete; use --with-x.
1362     with_x=yes ;;
1363
1364   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365   | --x-incl | --x-inc | --x-in | --x-i)
1366     ac_prev=x_includes ;;
1367   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369     x_includes=$ac_optarg ;;
1370
1371   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373     ac_prev=x_libraries ;;
1374   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376     x_libraries=$ac_optarg ;;
1377
1378   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1379 Try \`$0 --help' for more information." >&2
1380    { (exit 1); exit 1; }; }
1381     ;;
1382
1383   *=*)
1384     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385     # Reject names that are not valid shell variable names.
1386     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1387       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1388    { (exit 1); exit 1; }; }
1389     eval $ac_envvar=\$ac_optarg
1390     export $ac_envvar ;;
1391
1392   *)
1393     # FIXME: should be removed in autoconf 3.0.
1394     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1398     ;;
1399
1400   esac
1401 done
1402
1403 if test -n "$ac_prev"; then
1404   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1406    { (exit 1); exit 1; }; }
1407 fi
1408
1409 if test -n "$ac_unrecognized_opts"; then
1410   case $enable_option_checking in
1411     no) ;;
1412     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1413    { (exit 1); exit 1; }; } ;;
1414     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415   esac
1416 fi
1417
1418 # Check all directory arguments for consistency.
1419 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420                 datadir sysconfdir sharedstatedir localstatedir includedir \
1421                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422                 libdir localedir mandir
1423 do
1424   eval ac_val=\$$ac_var
1425   # Remove trailing slashes.
1426   case $ac_val in
1427     */ )
1428       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429       eval $ac_var=\$ac_val;;
1430   esac
1431   # Be sure to have absolute directory names.
1432   case $ac_val in
1433     [\\/$]* | ?:[\\/]* )  continue;;
1434     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435   esac
1436   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1437    { (exit 1); exit 1; }; }
1438 done
1439
1440 # There might be people who depend on the old broken behavior: `$host'
1441 # used to hold the argument of --host etc.
1442 # FIXME: To remove some day.
1443 build=$build_alias
1444 host=$host_alias
1445 target=$target_alias
1446
1447 # FIXME: To remove some day.
1448 if test "x$host_alias" != x; then
1449   if test "x$build_alias" = x; then
1450     cross_compiling=maybe
1451     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1452     If a cross compiler is detected then cross compile mode will be used." >&2
1453   elif test "x$build_alias" != "x$host_alias"; then
1454     cross_compiling=yes
1455   fi
1456 fi
1457
1458 ac_tool_prefix=
1459 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1460
1461 test "$silent" = yes && exec 6>/dev/null
1462
1463
1464 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465 ac_ls_di=`ls -di .` &&
1466 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1468    { (exit 1); exit 1; }; }
1469 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1471    { (exit 1); exit 1; }; }
1472
1473
1474 # Find the source files, if location was not specified.
1475 if test -z "$srcdir"; then
1476   ac_srcdir_defaulted=yes
1477   # Try the directory containing this script, then the parent directory.
1478   ac_confdir=`$as_dirname -- "$as_myself" ||
1479 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480          X"$as_myself" : 'X\(//\)[^/]' \| \
1481          X"$as_myself" : 'X\(//\)$' \| \
1482          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483 $as_echo X"$as_myself" |
1484     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485             s//\1/
1486             q
1487           }
1488           /^X\(\/\/\)[^/].*/{
1489             s//\1/
1490             q
1491           }
1492           /^X\(\/\/\)$/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\).*/{
1497             s//\1/
1498             q
1499           }
1500           s/.*/./; q'`
1501   srcdir=$ac_confdir
1502   if test ! -r "$srcdir/$ac_unique_file"; then
1503     srcdir=..
1504   fi
1505 else
1506   ac_srcdir_defaulted=no
1507 fi
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1511    { (exit 1); exit 1; }; }
1512 fi
1513 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514 ac_abs_confdir=`(
1515         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1516    { (exit 1); exit 1; }; }
1517         pwd)`
1518 # When building in place, set srcdir=.
1519 if test "$ac_abs_confdir" = "$ac_pwd"; then
1520   srcdir=.
1521 fi
1522 # Remove unnecessary trailing slashes from srcdir.
1523 # Double slashes in file names in object file debugging info
1524 # mess up M-x gdb in Emacs.
1525 case $srcdir in
1526 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527 esac
1528 for ac_var in $ac_precious_vars; do
1529   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530   eval ac_env_${ac_var}_value=\$${ac_var}
1531   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533 done
1534
1535 #
1536 # Report the --help message.
1537 #
1538 if test "$ac_init_help" = "long"; then
1539   # Omit some internal or obsolete options to make the list less imposing.
1540   # This message is too long to be a string in the A/UX 3.1 sh.
1541   cat <<_ACEOF
1542 \`configure' configures this package to adapt to many kinds of systems.
1543
1544 Usage: $0 [OPTION]... [VAR=VALUE]...
1545
1546 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547 VAR=VALUE.  See below for descriptions of some of the useful variables.
1548
1549 Defaults for the options are specified in brackets.
1550
1551 Configuration:
1552   -h, --help              display this help and exit
1553       --help=short        display options specific to this package
1554       --help=recursive    display the short help of all the included packages
1555   -V, --version           display version information and exit
1556   -q, --quiet, --silent   do not print \`checking...' messages
1557       --cache-file=FILE   cache test results in FILE [disabled]
1558   -C, --config-cache      alias for \`--cache-file=config.cache'
1559   -n, --no-create         do not create output files
1560       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1561
1562 Installation directories:
1563   --prefix=PREFIX         install architecture-independent files in PREFIX
1564                           [$ac_default_prefix]
1565   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1566                           [PREFIX]
1567
1568 By default, \`make install' will install all the files in
1569 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1570 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571 for instance \`--prefix=\$HOME'.
1572
1573 For better control, use the options below.
1574
1575 Fine tuning of the installation directories:
1576   --bindir=DIR            user executables [EPREFIX/bin]
1577   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1578   --libexecdir=DIR        program executables [EPREFIX/libexec]
1579   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1580   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1581   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1582   --libdir=DIR            object code libraries [EPREFIX/lib]
1583   --includedir=DIR        C header files [PREFIX/include]
1584   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1585   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1586   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1587   --infodir=DIR           info documentation [DATAROOTDIR/info]
1588   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1589   --mandir=DIR            man documentation [DATAROOTDIR/man]
1590   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1591   --htmldir=DIR           html documentation [DOCDIR]
1592   --dvidir=DIR            dvi documentation [DOCDIR]
1593   --pdfdir=DIR            pdf documentation [DOCDIR]
1594   --psdir=DIR             ps documentation [DOCDIR]
1595 _ACEOF
1596
1597   cat <<\_ACEOF
1598
1599 Program names:
1600   --program-prefix=PREFIX            prepend PREFIX to installed program names
1601   --program-suffix=SUFFIX            append SUFFIX to installed program names
1602   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1603
1604 System types:
1605   --build=BUILD     configure for building on BUILD [guessed]
1606   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1607   --target=TARGET   configure for building compilers for TARGET [HOST]
1608 _ACEOF
1609 fi
1610
1611 if test -n "$ac_init_help"; then
1612
1613   cat <<\_ACEOF
1614
1615 Optional Features:
1616   --disable-option-checking  ignore unrecognized --enable/--with options
1617   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1618   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1619   --enable-maintainer-mode  enable make rules and dependencies not useful
1620                           (and sometimes confusing) to the casual installer
1621   --enable-silent-rules          less verbose build output (undo: `make V=1')
1622   --disable-silent-rules         verbose build output (undo: `make V=0')
1623   --disable-dependency-tracking  speeds up one-time build
1624   --enable-dependency-tracking   do not reject slow dependency extractors
1625   --enable-shared[=PKGS]  build shared libraries [default=yes]
1626   --enable-static[=PKGS]  build static libraries [default=yes]
1627   --enable-fast-install[=PKGS]
1628                           optimize for fast installation [default=yes]
1629   --disable-libtool-lock  avoid locking (might break parallel builds)
1630   --enable-debug          Enable generic debug support [default=no]
1631
1632 Optional Packages:
1633   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1634   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1635   --with-pic              try to use only PIC/non-PIC objects [default=use
1636                           both]
1637   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1638   --with-config=CONFIG    Config file 'kernel|user|all|srpm'
1639   --with-linux=PATH       Path to kernel source
1640   --with-linux-obj=PATH   Path to kernel build objects
1641   --with-spl=PATH         Path to spl source
1642   --with-spl-obj=PATH     Path to spl build objects
1643   --with-blkid            support blkid caching [default=check]
1644   --with-selinux          support selinux [default=check]
1645
1646 Some influential environment variables:
1647   CC          C compiler command
1648   CFLAGS      C compiler flags
1649   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1650               nonstandard directory <lib dir>
1651   LIBS        libraries to pass to the linker, e.g. -l<library>
1652   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1653               you have headers in a nonstandard directory <include dir>
1654   CPP         C preprocessor
1655   CCAS        assembler compiler command (defaults to CC)
1656   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1657
1658 Use these variables to override the choices made by `configure' or to help
1659 it to find libraries and programs with nonstandard names/locations.
1660
1661 _ACEOF
1662 ac_status=$?
1663 fi
1664
1665 if test "$ac_init_help" = "recursive"; then
1666   # If there are subdirs, report their specific --help.
1667   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668     test -d "$ac_dir" ||
1669       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670       continue
1671     ac_builddir=.
1672
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 *)
1676   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677   # A ".." for each directory in $ac_dir_suffix.
1678   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679   case $ac_top_builddir_sub in
1680   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682   esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1688
1689 case $srcdir in
1690   .)  # We are building in place.
1691     ac_srcdir=.
1692     ac_top_srcdir=$ac_top_builddir_sub
1693     ac_abs_top_srcdir=$ac_pwd ;;
1694   [\\/]* | ?:[\\/]* )  # Absolute name.
1695     ac_srcdir=$srcdir$ac_dir_suffix;
1696     ac_top_srcdir=$srcdir
1697     ac_abs_top_srcdir=$srcdir ;;
1698   *) # Relative name.
1699     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700     ac_top_srcdir=$ac_top_build_prefix$srcdir
1701     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705     cd "$ac_dir" || { ac_status=$?; continue; }
1706     # Check for guested configure.
1707     if test -f "$ac_srcdir/configure.gnu"; then
1708       echo &&
1709       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710     elif test -f "$ac_srcdir/configure"; then
1711       echo &&
1712       $SHELL "$ac_srcdir/configure" --help=recursive
1713     else
1714       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715     fi || ac_status=$?
1716     cd "$ac_pwd" || { ac_status=$?; break; }
1717   done
1718 fi
1719
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722   cat <<\_ACEOF
1723 configure
1724 generated by GNU Autoconf 2.63
1725
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1730 _ACEOF
1731   exit
1732 fi
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1736
1737 It was created by $as_me, which was
1738 generated by GNU Autoconf 2.63.  Invocation command line was
1739
1740   $ $0 $@
1741
1742 _ACEOF
1743 exec 5>>config.log
1744 {
1745 cat <<_ASUNAME
1746 ## --------- ##
1747 ## Platform. ##
1748 ## --------- ##
1749
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1758
1759 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1760 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1763 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1764 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1765 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1766
1767 _ASUNAME
1768
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1771 do
1772   IFS=$as_save_IFS
1773   test -z "$as_dir" && as_dir=.
1774   $as_echo "PATH: $as_dir"
1775 done
1776 IFS=$as_save_IFS
1777
1778 } >&5
1779
1780 cat >&5 <<_ACEOF
1781
1782
1783 ## ----------- ##
1784 ## Core tests. ##
1785 ## ----------- ##
1786
1787 _ACEOF
1788
1789
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_configure_args=
1796 ac_configure_args0=
1797 ac_configure_args1=
1798 ac_must_keep_next=false
1799 for ac_pass in 1 2
1800 do
1801   for ac_arg
1802   do
1803     case $ac_arg in
1804     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806     | -silent | --silent | --silen | --sile | --sil)
1807       continue ;;
1808     *\'*)
1809       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810     esac
1811     case $ac_pass in
1812     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813     2)
1814       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815       if test $ac_must_keep_next = true; then
1816         ac_must_keep_next=false # Got value, back to normal.
1817       else
1818         case $ac_arg in
1819           *=* | --config-cache | -C | -disable-* | --disable-* \
1820           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822           | -with-* | --with-* | -without-* | --without-* | --x)
1823             case "$ac_configure_args0 " in
1824               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825             esac
1826             ;;
1827           -* ) ac_must_keep_next=true ;;
1828         esac
1829       fi
1830       ac_configure_args="$ac_configure_args '$ac_arg'"
1831       ;;
1832     esac
1833   done
1834 done
1835 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log.  We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844   # Save into config.log some information that might help in debugging.
1845   {
1846     echo
1847
1848     cat <<\_ASBOX
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1852 _ASBOX
1853     echo
1854     # The following way of writing the cache mishandles newlines in values,
1855 (
1856   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857     eval ac_val=\$$ac_var
1858     case $ac_val in #(
1859     *${as_nl}*)
1860       case $ac_var in #(
1861       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863       esac
1864       case $ac_var in #(
1865       _ | IFS | as_nl) ;; #(
1866       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867       *) $as_unset $ac_var ;;
1868       esac ;;
1869     esac
1870   done
1871   (set) 2>&1 |
1872     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873     *${as_nl}ac_space=\ *)
1874       sed -n \
1875         "s/'\''/'\''\\\\'\'''\''/g;
1876           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877       ;; #(
1878     *)
1879       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880       ;;
1881     esac |
1882     sort
1883 )
1884     echo
1885
1886     cat <<\_ASBOX
1887 ## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##
1890 _ASBOX
1891     echo
1892     for ac_var in $ac_subst_vars
1893     do
1894       eval ac_val=\$$ac_var
1895       case $ac_val in
1896       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897       esac
1898       $as_echo "$ac_var='\''$ac_val'\''"
1899     done | sort
1900     echo
1901
1902     if test -n "$ac_subst_files"; then
1903       cat <<\_ASBOX
1904 ## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##
1907 _ASBOX
1908       echo
1909       for ac_var in $ac_subst_files
1910       do
1911         eval ac_val=\$$ac_var
1912         case $ac_val in
1913         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914         esac
1915         $as_echo "$ac_var='\''$ac_val'\''"
1916       done | sort
1917       echo
1918     fi
1919
1920     if test -s confdefs.h; then
1921       cat <<\_ASBOX
1922 ## ----------- ##
1923 ## confdefs.h. ##
1924 ## ----------- ##
1925 _ASBOX
1926       echo
1927       cat confdefs.h
1928       echo
1929     fi
1930     test "$ac_signal" != 0 &&
1931       $as_echo "$as_me: caught signal $ac_signal"
1932     $as_echo "$as_me: exit $exit_status"
1933   } >&5
1934   rm -f core *.core core.conftest.* &&
1935     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936     exit $exit_status
1937 ' 0
1938 for ac_signal in 1 2 13 15; do
1939   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940 done
1941 ac_signal=0
1942
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1945
1946 # Predefined preprocessor variables.
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 _ACEOF
1961
1962
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1965 _ACEOF
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970 _ACEOF
1971
1972
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer an explicitly selected file to automatically selected ones.
1975 ac_site_file1=NONE
1976 ac_site_file2=NONE
1977 if test -n "$CONFIG_SITE"; then
1978   ac_site_file1=$CONFIG_SITE
1979 elif test "x$prefix" != xNONE; then
1980   ac_site_file1=$prefix/share/config.site
1981   ac_site_file2=$prefix/etc/config.site
1982 else
1983   ac_site_file1=$ac_default_prefix/share/config.site
1984   ac_site_file2=$ac_default_prefix/etc/config.site
1985 fi
1986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987 do
1988   test "x$ac_site_file" = xNONE && continue
1989   if test -r "$ac_site_file"; then
1990     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992     sed 's/^/| /' "$ac_site_file" >&5
1993     . "$ac_site_file"
1994   fi
1995 done
1996
1997 if test -r "$cache_file"; then
1998   # Some versions of bash will fail to source /dev/null (special
1999   # files actually), so we avoid doing that.
2000   if test -f "$cache_file"; then
2001     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 $as_echo "$as_me: loading cache $cache_file" >&6;}
2003     case $cache_file in
2004       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005       *)                      . "./$cache_file";;
2006     esac
2007   fi
2008 else
2009   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 $as_echo "$as_me: creating cache $cache_file" >&6;}
2011   >$cache_file
2012 fi
2013
2014 # Check that the precious variables saved in the cache have kept the same
2015 # value.
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019   eval ac_new_set=\$ac_env_${ac_var}_set
2020   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021   eval ac_new_val=\$ac_env_${ac_var}_value
2022   case $ac_old_set,$ac_new_set in
2023     set,)
2024       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026       ac_cache_corrupted=: ;;
2027     ,set)
2028       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030       ac_cache_corrupted=: ;;
2031     ,);;
2032     *)
2033       if test "x$ac_old_val" != "x$ac_new_val"; then
2034         # differences in whitespace do not lead to failure.
2035         ac_old_val_w=`echo x $ac_old_val`
2036         ac_new_val_w=`echo x $ac_new_val`
2037         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040           ac_cache_corrupted=:
2041         else
2042           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044           eval $ac_var=\$ac_old_val
2045         fi
2046         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2047 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2048         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2049 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2050       fi;;
2051   esac
2052   # Pass precious variables to config.status.
2053   if test "$ac_new_set" = set; then
2054     case $ac_new_val in
2055     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056     *) ac_arg=$ac_var=$ac_new_val ;;
2057     esac
2058     case " $ac_configure_args " in
2059       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2060       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061     esac
2062   fi
2063 done
2064 if $ac_cache_corrupted; then
2065   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071    { (exit 1); exit 1; }; }
2072 fi
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097 ac_ext=c
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102
2103
2104
2105
2106
2107
2108         { $as_echo "$as_me:$LINENO: checking metadata" >&5
2109 $as_echo_n "checking metadata... " >&6; }
2110
2111         META="$srcdir/META"
2112         _zfs_ac_meta_got_file=no
2113         if test -f "$META"; then
2114                 _zfs_ac_meta_got_file=yes
2115
2116                 ZFS_META_NAME=`perl -n\
2117                 -e "BEGIN { \\$key=shift @ARGV; }"\
2118                 -e "next unless s/^\s*\\$key[:=]//i;"\
2119                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2120                 -e "s/^\s+//;"\
2121                 -e "s/\s+$//;"\
2122                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2123                 -e "\\$val=\\$_;"\
2124                 -e "END { print \\$val if defined \\$val; }"\
2125                 '(?:NAME|PROJECT|PACKAGE)' $META`;
2126                 if test -n "$ZFS_META_NAME"; then
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define ZFS_META_NAME "$ZFS_META_NAME"
2130 _ACEOF
2131
2132
2133                 fi
2134
2135                 ZFS_META_VERSION=`perl -n\
2136                 -e "BEGIN { \\$key=shift @ARGV; }"\
2137                 -e "next unless s/^\s*\\$key[:=]//i;"\
2138                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2139                 -e "s/^\s+//;"\
2140                 -e "s/\s+$//;"\
2141                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2142                 -e "\\$val=\\$_;"\
2143                 -e "END { print \\$val if defined \\$val; }"\
2144                 'VERSION' $META`;
2145                 if test -n "$ZFS_META_VERSION"; then
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2149 _ACEOF
2150
2151
2152                 fi
2153
2154                 ZFS_META_RELEASE=`perl -n\
2155                 -e "BEGIN { \\$key=shift @ARGV; }"\
2156                 -e "next unless s/^\s*\\$key[:=]//i;"\
2157                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2158                 -e "s/^\s+//;"\
2159                 -e "s/\s+$//;"\
2160                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2161                 -e "\\$val=\\$_;"\
2162                 -e "END { print \\$val if defined \\$val; }"\
2163                 'RELEASE' $META`;
2164                 if test -n "$ZFS_META_RELEASE"; then
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2168 _ACEOF
2169
2170
2171                 fi
2172
2173                 ZFS_META_LICENSE=`perl -n\
2174                 -e "BEGIN { \\$key=shift @ARGV; }"\
2175                 -e "next unless s/^\s*\\$key[:=]//i;"\
2176                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2177                 -e "s/^\s+//;"\
2178                 -e "s/\s+$//;"\
2179                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2180                 -e "\\$val=\\$_;"\
2181                 -e "END { print \\$val if defined \\$val; }"\
2182                 'LICENSE' $META`;
2183                 if test -n "$ZFS_META_LICENSE"; then
2184
2185 cat >>confdefs.h <<_ACEOF
2186 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2187 _ACEOF
2188
2189
2190                 fi
2191
2192                 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2193                                 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2194                                 test -n "$ZFS_META_RELEASE" &&
2195                                         ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2196
2197 cat >>confdefs.h <<_ACEOF
2198 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2199 _ACEOF
2200
2201
2202                 fi
2203
2204                 ZFS_META_DATA=`perl -n\
2205                 -e "BEGIN { \\$key=shift @ARGV; }"\
2206                 -e "next unless s/^\s*\\$key[:=]//i;"\
2207                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2208                 -e "s/^\s+//;"\
2209                 -e "s/\s+$//;"\
2210                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2211                 -e "\\$val=\\$_;"\
2212                 -e "END { print \\$val if defined \\$val; }"\
2213                 'DATE' $META`;
2214                 if test -n "$ZFS_META_DATA"; then
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define ZFS_META_DATA "$ZFS_META_DATA"
2218 _ACEOF
2219
2220
2221                 fi
2222
2223                 ZFS_META_AUTHOR=`perl -n\
2224                 -e "BEGIN { \\$key=shift @ARGV; }"\
2225                 -e "next unless s/^\s*\\$key[:=]//i;"\
2226                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2227                 -e "s/^\s+//;"\
2228                 -e "s/\s+$//;"\
2229                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2230                 -e "\\$val=\\$_;"\
2231                 -e "END { print \\$val if defined \\$val; }"\
2232                 'AUTHOR' $META`;
2233                 if test -n "$ZFS_META_AUTHOR"; then
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2237 _ACEOF
2238
2239
2240                 fi
2241
2242
2243                 ZFS_META_LT_CURRENT=`perl -n\
2244                 -e "BEGIN { \\$key=shift @ARGV; }"\
2245                 -e "next unless s/^\s*\\$key[:=]//i;"\
2246                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2247                 -e "s/^\s+//;"\
2248                 -e "s/\s+$//;"\
2249                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2250                 -e "\\$val=\\$_;"\
2251                 -e "END { print \\$val if defined \\$val; }"\
2252                 'LT_CURRENT' $META`;
2253                 ZFS_META_LT_REVISION=`perl -n\
2254                 -e "BEGIN { \\$key=shift @ARGV; }"\
2255                 -e "next unless s/^\s*\\$key[:=]//i;"\
2256                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2257                 -e "s/^\s+//;"\
2258                 -e "s/\s+$//;"\
2259                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2260                 -e "\\$val=\\$_;"\
2261                 -e "END { print \\$val if defined \\$val; }"\
2262                 'LT_REVISION' $META`;
2263                 ZFS_META_LT_AGE=`perl -n\
2264                 -e "BEGIN { \\$key=shift @ARGV; }"\
2265                 -e "next unless s/^\s*\\$key[:=]//i;"\
2266                 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2267                 -e "s/^\s+//;"\
2268                 -e "s/\s+$//;"\
2269                 -e "s/^(['\"])(.*)\1/\\$2/;"\
2270                 -e "\\$val=\\$_;"\
2271                 -e "END { print \\$val if defined \\$val; }"\
2272                 'LT_AGE' $META`;
2273                 if test -n "$ZFS_META_LT_CURRENT" \
2274                                  -o -n "$ZFS_META_LT_REVISION" \
2275                                  -o -n "$ZFS_META_LT_AGE"; then
2276                         test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2277                         test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2278                         test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2282 _ACEOF
2283
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2287 _ACEOF
2288
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2292 _ACEOF
2293
2294
2295
2296
2297                 fi
2298         fi
2299
2300         { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2301 $as_echo "$_zfs_ac_meta_got_file" >&6; }
2302
2303
2304 ac_aux_dir=
2305 for ac_dir in config "$srcdir"/config; do
2306   if test -f "$ac_dir/install-sh"; then
2307     ac_aux_dir=$ac_dir
2308     ac_install_sh="$ac_aux_dir/install-sh -c"
2309     break
2310   elif test -f "$ac_dir/install.sh"; then
2311     ac_aux_dir=$ac_dir
2312     ac_install_sh="$ac_aux_dir/install.sh -c"
2313     break
2314   elif test -f "$ac_dir/shtool"; then
2315     ac_aux_dir=$ac_dir
2316     ac_install_sh="$ac_aux_dir/shtool install -c"
2317     break
2318   fi
2319 done
2320 if test -z "$ac_aux_dir"; then
2321   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2322 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2323    { (exit 1); exit 1; }; }
2324 fi
2325
2326 # These three variables are undocumented and unsupported,
2327 # and are intended to be withdrawn in a future Autoconf release.
2328 # They can cause serious problems if a builder's source tree is in a directory
2329 # whose full name contains unusual characters.
2330 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2331 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2332 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2333
2334
2335 # Make sure we can run config.sub.
2336 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2337   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2338 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2339    { (exit 1); exit 1; }; }
2340
2341 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2342 $as_echo_n "checking build system type... " >&6; }
2343 if test "${ac_cv_build+set}" = set; then
2344   $as_echo_n "(cached) " >&6
2345 else
2346   ac_build_alias=$build_alias
2347 test "x$ac_build_alias" = x &&
2348   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2349 test "x$ac_build_alias" = x &&
2350   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2351 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2352    { (exit 1); exit 1; }; }
2353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2354   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2355 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2356    { (exit 1); exit 1; }; }
2357
2358 fi
2359 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2360 $as_echo "$ac_cv_build" >&6; }
2361 case $ac_cv_build in
2362 *-*-*) ;;
2363 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2364 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2365    { (exit 1); exit 1; }; };;
2366 esac
2367 build=$ac_cv_build
2368 ac_save_IFS=$IFS; IFS='-'
2369 set x $ac_cv_build
2370 shift
2371 build_cpu=$1
2372 build_vendor=$2
2373 shift; shift
2374 # Remember, the first character of IFS is used to create $*,
2375 # except with old shells:
2376 build_os=$*
2377 IFS=$ac_save_IFS
2378 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379
2380
2381 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2382 $as_echo_n "checking host system type... " >&6; }
2383 if test "${ac_cv_host+set}" = set; then
2384   $as_echo_n "(cached) " >&6
2385 else
2386   if test "x$host_alias" = x; then
2387   ac_cv_host=$ac_cv_build
2388 else
2389   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2391 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2392    { (exit 1); exit 1; }; }
2393 fi
2394
2395 fi
2396 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2397 $as_echo "$ac_cv_host" >&6; }
2398 case $ac_cv_host in
2399 *-*-*) ;;
2400 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2401 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2402    { (exit 1); exit 1; }; };;
2403 esac
2404 host=$ac_cv_host
2405 ac_save_IFS=$IFS; IFS='-'
2406 set x $ac_cv_host
2407 shift
2408 host_cpu=$1
2409 host_vendor=$2
2410 shift; shift
2411 # Remember, the first character of IFS is used to create $*,
2412 # except with old shells:
2413 host_os=$*
2414 IFS=$ac_save_IFS
2415 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2416
2417
2418 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2419 $as_echo_n "checking target system type... " >&6; }
2420 if test "${ac_cv_target+set}" = set; then
2421   $as_echo_n "(cached) " >&6
2422 else
2423   if test "x$target_alias" = x; then
2424   ac_cv_target=$ac_cv_host
2425 else
2426   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2427     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2428 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2429    { (exit 1); exit 1; }; }
2430 fi
2431
2432 fi
2433 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2434 $as_echo "$ac_cv_target" >&6; }
2435 case $ac_cv_target in
2436 *-*-*) ;;
2437 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2438 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2439    { (exit 1); exit 1; }; };;
2440 esac
2441 target=$ac_cv_target
2442 ac_save_IFS=$IFS; IFS='-'
2443 set x $ac_cv_target
2444 shift
2445 target_cpu=$1
2446 target_vendor=$2
2447 shift; shift
2448 # Remember, the first character of IFS is used to create $*,
2449 # except with old shells:
2450 target_os=$*
2451 IFS=$ac_save_IFS
2452 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2453
2454
2455 # The aliases save the names the user supplied, while $host etc.
2456 # will get canonicalized.
2457 test -n "$target_alias" &&
2458   test "$program_prefix$program_suffix$program_transform_name" = \
2459     NONENONEs,x,x, &&
2460   program_prefix=${target_alias}-
2461
2462 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2463 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2464     # Check whether --enable-maintainer-mode was given.
2465 if test "${enable_maintainer_mode+set}" = set; then
2466   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2467 else
2468   USE_MAINTAINER_MODE=no
2469 fi
2470
2471   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2472 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2473    if test $USE_MAINTAINER_MODE = yes; then
2474   MAINTAINER_MODE_TRUE=
2475   MAINTAINER_MODE_FALSE='#'
2476 else
2477   MAINTAINER_MODE_TRUE='#'
2478   MAINTAINER_MODE_FALSE=
2479 fi
2480
2481   MAINT=$MAINTAINER_MODE_TRUE
2482
2483
2484 # Check whether --enable-silent-rules was given.
2485 if test "${enable_silent_rules+set}" = set; then
2486   enableval=$enable_silent_rules;
2487 fi
2488
2489 case $enable_silent_rules in
2490 yes) AM_DEFAULT_VERBOSITY=0;;
2491 no)  AM_DEFAULT_VERBOSITY=1;;
2492 *)   AM_DEFAULT_VERBOSITY=1;;
2493 esac
2494 AM_BACKSLASH='\'
2495
2496 am__api_version='1.11'
2497
2498 # Find a good install program.  We prefer a C program (faster),
2499 # so one script is as good as another.  But avoid the broken or
2500 # incompatible versions:
2501 # SysV /etc/install, /usr/sbin/install
2502 # SunOS /usr/etc/install
2503 # IRIX /sbin/install
2504 # AIX /bin/install
2505 # AmigaOS /C/install, which installs bootblocks on floppy discs
2506 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2507 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2508 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2509 # OS/2's system install, which has a completely different semantic
2510 # ./install, which can be erroneously created by make from ./install.sh.
2511 # Reject install programs that cannot install multiple files.
2512 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2513 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2514 if test -z "$INSTALL"; then
2515 if test "${ac_cv_path_install+set}" = set; then
2516   $as_echo_n "(cached) " >&6
2517 else
2518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521   IFS=$as_save_IFS
2522   test -z "$as_dir" && as_dir=.
2523   # Account for people who put trailing slashes in PATH elements.
2524 case $as_dir/ in
2525   ./ | .// | /cC/* | \
2526   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2527   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2528   /usr/ucb/* ) ;;
2529   *)
2530     # OSF1 and SCO ODT 3.0 have their own names for install.
2531     # Don't use installbsd from OSF since it installs stuff as root
2532     # by default.
2533     for ac_prog in ginstall scoinst install; do
2534       for ac_exec_ext in '' $ac_executable_extensions; do
2535         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2536           if test $ac_prog = install &&
2537             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538             # AIX install.  It has an incompatible calling convention.
2539             :
2540           elif test $ac_prog = install &&
2541             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542             # program-specific install script used by HP pwplus--don't use.
2543             :
2544           else
2545             rm -rf conftest.one conftest.two conftest.dir
2546             echo one > conftest.one
2547             echo two > conftest.two
2548             mkdir conftest.dir
2549             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2550               test -s conftest.one && test -s conftest.two &&
2551               test -s conftest.dir/conftest.one &&
2552               test -s conftest.dir/conftest.two
2553             then
2554               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2555               break 3
2556             fi
2557           fi
2558         fi
2559       done
2560     done
2561     ;;
2562 esac
2563
2564 done
2565 IFS=$as_save_IFS
2566
2567 rm -rf conftest.one conftest.two conftest.dir
2568
2569 fi
2570   if test "${ac_cv_path_install+set}" = set; then
2571     INSTALL=$ac_cv_path_install
2572   else
2573     # As a last resort, use the slow shell script.  Don't cache a
2574     # value for INSTALL within a source directory, because that will
2575     # break other packages using the cache if that directory is
2576     # removed, or if the value is a relative name.
2577     INSTALL=$ac_install_sh
2578   fi
2579 fi
2580 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2581 $as_echo "$INSTALL" >&6; }
2582
2583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2584 # It thinks the first close brace ends the variable substitution.
2585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2586
2587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2588
2589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2590
2591 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2592 $as_echo_n "checking whether build environment is sane... " >&6; }
2593 # Just in case
2594 sleep 1
2595 echo timestamp > conftest.file
2596 # Reject unsafe characters in $srcdir or the absolute working directory
2597 # name.  Accept space and tab only in the latter.
2598 am_lf='
2599 '
2600 case `pwd` in
2601   *[\\\"\#\$\&\'\`$am_lf]*)
2602     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2603 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2604    { (exit 1); exit 1; }; };;
2605 esac
2606 case $srcdir in
2607   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2608     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2609 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2610    { (exit 1); exit 1; }; };;
2611 esac
2612
2613 # Do `set' in a subshell so we don't clobber the current shell's
2614 # arguments.  Must try -L first in case configure is actually a
2615 # symlink; some systems play weird games with the mod time of symlinks
2616 # (eg FreeBSD returns the mod time of the symlink's containing
2617 # directory).
2618 if (
2619    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620    if test "$*" = "X"; then
2621       # -L didn't work.
2622       set X `ls -t "$srcdir/configure" conftest.file`
2623    fi
2624    rm -f conftest.file
2625    if test "$*" != "X $srcdir/configure conftest.file" \
2626       && test "$*" != "X conftest.file $srcdir/configure"; then
2627
2628       # If neither matched, then we have a broken ls.  This can happen
2629       # if, for instance, CONFIG_SHELL is bash and it inherits a
2630       # broken ls alias from the environment.  This has actually
2631       # happened.  Such a system could not be considered "sane".
2632       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2633 alias in your environment" >&5
2634 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2635 alias in your environment" >&2;}
2636    { (exit 1); exit 1; }; }
2637    fi
2638
2639    test "$2" = conftest.file
2640    )
2641 then
2642    # Ok.
2643    :
2644 else
2645    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2646 Check your system clock" >&5
2647 $as_echo "$as_me: error: newly created file is older than distributed files!
2648 Check your system clock" >&2;}
2649    { (exit 1); exit 1; }; }
2650 fi
2651 { $as_echo "$as_me:$LINENO: result: yes" >&5
2652 $as_echo "yes" >&6; }
2653 test "$program_prefix" != NONE &&
2654   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2655 # Use a double $ so make ignores it.
2656 test "$program_suffix" != NONE &&
2657   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2658 # Double any \ or $.
2659 # By default was `s,x,x', remove it if useless.
2660 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2661 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2662
2663 # expand $ac_aux_dir to an absolute path
2664 am_aux_dir=`cd $ac_aux_dir && pwd`
2665
2666 if test x"${MISSING+set}" != xset; then
2667   case $am_aux_dir in
2668   *\ * | *\     *)
2669     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2670   *)
2671     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2672   esac
2673 fi
2674 # Use eval to expand $SHELL
2675 if eval "$MISSING --run true"; then
2676   am_missing_run="$MISSING --run "
2677 else
2678   am_missing_run=
2679   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2680 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2681 fi
2682
2683 if test x"${install_sh}" != xset; then
2684   case $am_aux_dir in
2685   *\ * | *\     *)
2686     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2687   *)
2688     install_sh="\${SHELL} $am_aux_dir/install-sh"
2689   esac
2690 fi
2691
2692 # Installed binaries are usually stripped using `strip' when the user
2693 # run `make install-strip'.  However `strip' might not be the right
2694 # tool to use in cross-compilation environments, therefore Automake
2695 # will honor the `STRIP' environment variable to overrule this program.
2696 if test "$cross_compiling" != no; then
2697   if test -n "$ac_tool_prefix"; then
2698   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}strip; ac_word=$2
2700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_STRIP+set}" = set; then
2703   $as_echo_n "(cached) " >&6
2704 else
2705   if test -n "$STRIP"; then
2706   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2716     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 STRIP=$ac_cv_prog_STRIP
2726 if test -n "$STRIP"; then
2727   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2728 $as_echo "$STRIP" >&6; }
2729 else
2730   { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735 fi
2736 if test -z "$ac_cv_prog_STRIP"; then
2737   ac_ct_STRIP=$STRIP
2738   # Extract the first word of "strip", so it can be a program name with args.
2739 set dummy strip; ac_word=$2
2740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2743   $as_echo_n "(cached) " >&6
2744 else
2745   if test -n "$ac_ct_STRIP"; then
2746   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751   IFS=$as_save_IFS
2752   test -z "$as_dir" && as_dir=.
2753   for ac_exec_ext in '' $ac_executable_extensions; do
2754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755     ac_cv_prog_ac_ct_STRIP="strip"
2756     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757     break 2
2758   fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2766 if test -n "$ac_ct_STRIP"; then
2767   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2768 $as_echo "$ac_ct_STRIP" >&6; }
2769 else
2770   { $as_echo "$as_me:$LINENO: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774   if test "x$ac_ct_STRIP" = x; then
2775     STRIP=":"
2776   else
2777     case $cross_compiling:$ac_tool_warned in
2778 yes:)
2779 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783     STRIP=$ac_ct_STRIP
2784   fi
2785 else
2786   STRIP="$ac_cv_prog_STRIP"
2787 fi
2788
2789 fi
2790 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2791
2792 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2793 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2794 if test -z "$MKDIR_P"; then
2795   if test "${ac_cv_path_mkdir+set}" = set; then
2796   $as_echo_n "(cached) " >&6
2797 else
2798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803   for ac_prog in mkdir gmkdir; do
2804          for ac_exec_ext in '' $ac_executable_extensions; do
2805            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2806            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2807              'mkdir (GNU coreutils) '* | \
2808              'mkdir (coreutils) '* | \
2809              'mkdir (fileutils) '4.1*)
2810                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2811                break 3;;
2812            esac
2813          done
2814        done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819
2820   if test "${ac_cv_path_mkdir+set}" = set; then
2821     MKDIR_P="$ac_cv_path_mkdir -p"
2822   else
2823     # As a last resort, use the slow shell script.  Don't cache a
2824     # value for MKDIR_P within a source directory, because that will
2825     # break other packages using the cache if that directory is
2826     # removed, or if the value is a relative name.
2827     test -d ./--version && rmdir ./--version
2828     MKDIR_P="$ac_install_sh -d"
2829   fi
2830 fi
2831 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2832 $as_echo "$MKDIR_P" >&6; }
2833
2834 mkdir_p="$MKDIR_P"
2835 case $mkdir_p in
2836   [\\/$]* | ?:[\\/]*) ;;
2837   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2838 esac
2839
2840 for ac_prog in gawk mawk nawk awk
2841 do
2842   # Extract the first word of "$ac_prog", so it can be a program name with args.
2843 set dummy $ac_prog; ac_word=$2
2844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if test "${ac_cv_prog_AWK+set}" = set; then
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$AWK"; then
2850   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857   for ac_exec_ext in '' $ac_executable_extensions; do
2858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859     ac_cv_prog_AWK="$ac_prog"
2860     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 AWK=$ac_cv_prog_AWK
2870 if test -n "$AWK"; then
2871   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2872 $as_echo "$AWK" >&6; }
2873 else
2874   { $as_echo "$as_me:$LINENO: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879   test -n "$AWK" && break
2880 done
2881
2882 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2883 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2884 set x ${MAKE-make}
2885 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2886 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2887   $as_echo_n "(cached) " >&6
2888 else
2889   cat >conftest.make <<\_ACEOF
2890 SHELL = /bin/sh
2891 all:
2892         @echo '@@@%%%=$(MAKE)=@@@%%%'
2893 _ACEOF
2894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2895 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2896   *@@@%%%=?*=@@@%%%*)
2897     eval ac_cv_prog_make_${ac_make}_set=yes;;
2898   *)
2899     eval ac_cv_prog_make_${ac_make}_set=no;;
2900 esac
2901 rm -f conftest.make
2902 fi
2903 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2904   { $as_echo "$as_me:$LINENO: result: yes" >&5
2905 $as_echo "yes" >&6; }
2906   SET_MAKE=
2907 else
2908   { $as_echo "$as_me:$LINENO: result: no" >&5
2909 $as_echo "no" >&6; }
2910   SET_MAKE="MAKE=${MAKE-make}"
2911 fi
2912
2913 rm -rf .tst 2>/dev/null
2914 mkdir .tst 2>/dev/null
2915 if test -d .tst; then
2916   am__leading_dot=.
2917 else
2918   am__leading_dot=_
2919 fi
2920 rmdir .tst 2>/dev/null
2921
2922 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2923   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2924   # is not polluted with repeated "-I."
2925   am__isrc=' -I$(srcdir)'
2926   # test to see if srcdir already configured
2927   if test -f $srcdir/config.status; then
2928     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2929 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2930    { (exit 1); exit 1; }; }
2931   fi
2932 fi
2933
2934 # test whether we have cygpath
2935 if test -z "$CYGPATH_W"; then
2936   if (cygpath --version) >/dev/null 2>/dev/null; then
2937     CYGPATH_W='cygpath -w'
2938   else
2939     CYGPATH_W=echo
2940   fi
2941 fi
2942
2943
2944 # Define the identity of the package.
2945  PACKAGE=$ZFS_META_NAME
2946  VERSION=$ZFS_META_VERSION
2947
2948
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE "$PACKAGE"
2951 _ACEOF
2952
2953
2954 cat >>confdefs.h <<_ACEOF
2955 #define VERSION "$VERSION"
2956 _ACEOF
2957
2958 # Some tools Automake needs.
2959
2960 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2961
2962
2963 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2964
2965
2966 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2967
2968
2969 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2970
2971
2972 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2973
2974 # We need awk for the "check" target.  The system "awk" is bad on
2975 # some platforms.
2976 # Always define AMTAR for backward compatibility.
2977
2978 AMTAR=${AMTAR-"${am_missing_run}tar"}
2979
2980 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2981
2982
2983
2984
2985
2986 ac_config_headers="$ac_config_headers zfs_config.h"
2987
2988
2989 # Find a good install program.  We prefer a C program (faster),
2990 # so one script is as good as another.  But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2995 # AIX /bin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 # Reject install programs that cannot install multiple files.
3003 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3004 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3005 if test -z "$INSTALL"; then
3006 if test "${ac_cv_path_install+set}" = set; then
3007   $as_echo_n "(cached) " >&6
3008 else
3009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH
3011 do
3012   IFS=$as_save_IFS
3013   test -z "$as_dir" && as_dir=.
3014   # Account for people who put trailing slashes in PATH elements.
3015 case $as_dir/ in
3016   ./ | .// | /cC/* | \
3017   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3018   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3019   /usr/ucb/* ) ;;
3020   *)
3021     # OSF1 and SCO ODT 3.0 have their own names for install.
3022     # Don't use installbsd from OSF since it installs stuff as root
3023     # by default.
3024     for ac_prog in ginstall scoinst install; do
3025       for ac_exec_ext in '' $ac_executable_extensions; do
3026         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3027           if test $ac_prog = install &&
3028             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3029             # AIX install.  It has an incompatible calling convention.
3030             :
3031           elif test $ac_prog = install &&
3032             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033             # program-specific install script used by HP pwplus--don't use.
3034             :
3035           else
3036             rm -rf conftest.one conftest.two conftest.dir
3037             echo one > conftest.one
3038             echo two > conftest.two
3039             mkdir conftest.dir
3040             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3041               test -s conftest.one && test -s conftest.two &&
3042               test -s conftest.dir/conftest.one &&
3043               test -s conftest.dir/conftest.two
3044             then
3045               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3046               break 3
3047             fi
3048           fi
3049         fi
3050       done
3051     done
3052     ;;
3053 esac
3054
3055 done
3056 IFS=$as_save_IFS
3057
3058 rm -rf conftest.one conftest.two conftest.dir
3059
3060 fi
3061   if test "${ac_cv_path_install+set}" = set; then
3062     INSTALL=$ac_cv_path_install
3063   else
3064     # As a last resort, use the slow shell script.  Don't cache a
3065     # value for INSTALL within a source directory, because that will
3066     # break other packages using the cache if that directory is
3067     # removed, or if the value is a relative name.
3068     INSTALL=$ac_install_sh
3069   fi
3070 fi
3071 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3072 $as_echo "$INSTALL" >&6; }
3073
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3077
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3079
3080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3081
3082 ac_ext=c
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087 if test -n "$ac_tool_prefix"; then
3088   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$CC"; then
3096   ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103   for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3106     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120   { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 fi
3126 if test -z "$ac_cv_prog_CC"; then
3127   ac_ct_CC=$CC
3128   # Extract the first word of "gcc", so it can be a program name with args.
3129 set dummy gcc; ac_word=$2
3130 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if test -n "$ac_ct_CC"; then
3136   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143   for ac_exec_ext in '' $ac_executable_extensions; do
3144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145     ac_cv_prog_ac_ct_CC="gcc"
3146     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147     break 2
3148   fi
3149 done
3150 done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3159 else
3160   { $as_echo "$as_me:$LINENO: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164   if test "x$ac_ct_CC" = x; then
3165     CC=""
3166   else
3167     case $cross_compiling:$ac_tool_warned in
3168 yes:)
3169 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173     CC=$ac_ct_CC
3174   fi
3175 else
3176   CC="$ac_cv_prog_CC"
3177 fi
3178
3179 if test -z "$CC"; then
3180           if test -n "$ac_tool_prefix"; then
3181     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}cc; ac_word=$2
3183 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_CC+set}" = set; then
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$CC"; then
3189   ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196   for ac_exec_ext in '' $ac_executable_extensions; do
3197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198     ac_cv_prog_CC="${ac_tool_prefix}cc"
3199     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3212 else
3213   { $as_echo "$as_me:$LINENO: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218   fi
3219 fi
3220 if test -z "$CC"; then
3221   # Extract the first word of "cc", so it can be a program name with args.
3222 set dummy cc; ac_word=$2
3223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_CC+set}" = set; then
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test -n "$CC"; then
3229   ac_cv_prog_CC="$CC" # Let the user override the test.
3230 else
3231   ac_prog_rejected=no
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   test -z "$as_dir" && as_dir=.
3237   for ac_exec_ext in '' $ac_executable_extensions; do
3238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3240        ac_prog_rejected=yes
3241        continue
3242      fi
3243     ac_cv_prog_CC="cc"
3244     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248 done
3249 IFS=$as_save_IFS
3250
3251 if test $ac_prog_rejected = yes; then
3252   # We found a bogon in the path, so make sure we never use it.
3253   set dummy $ac_cv_prog_CC
3254   shift
3255   if test $# != 0; then
3256     # We chose a different compiler from the bogus one.
3257     # However, it has the same basename, so the bogon will be chosen
3258     # first if we set CC to just the basename; use the full file name.
3259     shift
3260     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3261   fi
3262 fi
3263 fi
3264 fi
3265 CC=$ac_cv_prog_CC
3266 if test -n "$CC"; then
3267   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3269 else
3270   { $as_echo "$as_me:$LINENO: result: no" >&5
3271 $as_echo "no" >&6; }
3272 fi
3273
3274
3275 fi
3276 if test -z "$CC"; then
3277   if test -n "$ac_tool_prefix"; then
3278   for ac_prog in cl.exe
3279   do
3280     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3281 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_CC+set}" = set; then
3285   $as_echo_n "(cached) " >&6
3286 else
3287   if test -n "$CC"; then
3288   ac_cv_prog_CC="$CC" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293   IFS=$as_save_IFS
3294   test -z "$as_dir" && as_dir=.
3295   for ac_exec_ext in '' $ac_executable_extensions; do
3296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3298     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299     break 2
3300   fi
3301 done
3302 done
3303 IFS=$as_save_IFS
3304
3305 fi
3306 fi
3307 CC=$ac_cv_prog_CC
3308 if test -n "$CC"; then
3309   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3310 $as_echo "$CC" >&6; }
3311 else
3312   { $as_echo "$as_me:$LINENO: result: no" >&5
3313 $as_echo "no" >&6; }
3314 fi
3315
3316
3317     test -n "$CC" && break
3318   done
3319 fi
3320 if test -z "$CC"; then
3321   ac_ct_CC=$CC
3322   for ac_prog in cl.exe
3323 do
3324   # Extract the first word of "$ac_prog", so it can be a program name with args.
3325 set dummy $ac_prog; ac_word=$2
3326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3327 $as_echo_n "checking for $ac_word... " >&6; }
3328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3329   $as_echo_n "(cached) " >&6
3330 else
3331   if test -n "$ac_ct_CC"; then
3332   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333 else
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337   IFS=$as_save_IFS
3338   test -z "$as_dir" && as_dir=.
3339   for ac_exec_ext in '' $ac_executable_extensions; do
3340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341     ac_cv_prog_ac_ct_CC="$ac_prog"
3342     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343     break 2
3344   fi
3345 done
3346 done
3347 IFS=$as_save_IFS
3348
3349 fi
3350 fi
3351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352 if test -n "$ac_ct_CC"; then
3353   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3354 $as_echo "$ac_ct_CC" >&6; }
3355 else
3356   { $as_echo "$as_me:$LINENO: result: no" >&5
3357 $as_echo "no" >&6; }
3358 fi
3359
3360
3361   test -n "$ac_ct_CC" && break
3362 done
3363
3364   if test "x$ac_ct_CC" = x; then
3365     CC=""
3366   else
3367     case $cross_compiling:$ac_tool_warned in
3368 yes:)
3369 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3372 esac
3373     CC=$ac_ct_CC
3374   fi
3375 fi
3376
3377 fi
3378
3379
3380 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3383 See \`config.log' for more details." >&5
3384 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3385 See \`config.log' for more details." >&2;}
3386    { (exit 1); exit 1; }; }; }
3387
3388 # Provide some information about the compiler.
3389 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3390 set X $ac_compile
3391 ac_compiler=$2
3392 { (ac_try="$ac_compiler --version >&5"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398 $as_echo "$ac_try_echo") >&5
3399   (eval "$ac_compiler --version >&5") 2>&5
3400   ac_status=$?
3401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }
3403 { (ac_try="$ac_compiler -v >&5"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409 $as_echo "$ac_try_echo") >&5
3410   (eval "$ac_compiler -v >&5") 2>&5
3411   ac_status=$?
3412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }
3414 { (ac_try="$ac_compiler -V >&5"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420 $as_echo "$ac_try_echo") >&5
3421   (eval "$ac_compiler -V >&5") 2>&5
3422   ac_status=$?
3423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }
3425
3426 cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 ac_clean_files_save=$ac_clean_files
3442 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3443 # Try to create an executable without -o first, disregard a.out.
3444 # It will help us diagnose broken compilers, and finding out an intuition
3445 # of exeext.
3446 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3447 $as_echo_n "checking for C compiler default output file name... " >&6; }
3448 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3449
3450 # The possible output files:
3451 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3452
3453 ac_rmfiles=
3454 for ac_file in $ac_files
3455 do
3456   case $ac_file in
3457     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3459   esac
3460 done
3461 rm -f $ac_rmfiles
3462
3463 if { (ac_try="$ac_link_default"
3464 case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470   (eval "$ac_link_default") 2>&5
3471   ac_status=$?
3472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }; then
3474   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3475 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3476 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3477 # so that the user can short-circuit this test for compilers unknown to
3478 # Autoconf.
3479 for ac_file in $ac_files ''
3480 do
3481   test -f "$ac_file" || continue
3482   case $ac_file in
3483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3484         ;;
3485     [ab].out )
3486         # We found the default executable, but exeext='' is most
3487         # certainly right.
3488         break;;
3489     *.* )
3490         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3491         then :; else
3492            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493         fi
3494         # We set ac_cv_exeext here because the later test for it is not
3495         # safe: cross compilers may not add the suffix if given an `-o'
3496         # argument, so we may need to know it at that point already.
3497         # Even if this section looks crufty: it has the advantage of
3498         # actually working.
3499         break;;
3500     * )
3501         break;;
3502   esac
3503 done
3504 test "$ac_cv_exeext" = no && ac_cv_exeext=
3505
3506 else
3507   ac_file=''
3508 fi
3509
3510 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 if test -z "$ac_file"; then
3513   $as_echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3519 See \`config.log' for more details." >&5
3520 $as_echo "$as_me: error: C compiler cannot create executables
3521 See \`config.log' for more details." >&2;}
3522    { (exit 77); exit 77; }; }; }
3523 fi
3524
3525 ac_exeext=$ac_cv_exeext
3526
3527 # Check that the compiler produces executables we can run.  If not, either
3528 # the compiler is broken, or we cross compile.
3529 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3530 $as_echo_n "checking whether the C compiler works... " >&6; }
3531 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3532 # If not cross compiling, check that we can run a simple program.
3533 if test "$cross_compiling" != yes; then
3534   if { ac_try='./$ac_file'
3535   { (case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541   (eval "$ac_try") 2>&5
3542   ac_status=$?
3543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; }; then
3545     cross_compiling=no
3546   else
3547     if test "$cross_compiling" = maybe; then
3548         cross_compiling=yes
3549     else
3550         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3553 If you meant to cross compile, use \`--host'.
3554 See \`config.log' for more details." >&5
3555 $as_echo "$as_me: error: cannot run C compiled programs.
3556 If you meant to cross compile, use \`--host'.
3557 See \`config.log' for more details." >&2;}
3558    { (exit 1); exit 1; }; }; }
3559     fi
3560   fi
3561 fi
3562 { $as_echo "$as_me:$LINENO: result: yes" >&5
3563 $as_echo "yes" >&6; }
3564
3565 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3566 ac_clean_files=$ac_clean_files_save
3567 # Check that the compiler produces executables we can run.  If not, either
3568 # the compiler is broken, or we cross compile.
3569 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3570 $as_echo_n "checking whether we are cross compiling... " >&6; }
3571 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3572 $as_echo "$cross_compiling" >&6; }
3573
3574 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3575 $as_echo_n "checking for suffix of executables... " >&6; }
3576 if { (ac_try="$ac_link"
3577 case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583   (eval "$ac_link") 2>&5
3584   ac_status=$?
3585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; then
3587   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3589 # work properly (i.e., refer to `conftest.exe'), while it won't with
3590 # `rm'.
3591 for ac_file in conftest.exe conftest conftest.*; do
3592   test -f "$ac_file" || continue
3593   case $ac_file in
3594     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596           break;;
3597     * ) break;;
3598   esac
3599 done
3600 else
3601   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3604 See \`config.log' for more details." >&5
3605 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3606 See \`config.log' for more details." >&2;}
3607    { (exit 1); exit 1; }; }; }
3608 fi
3609
3610 rm -f conftest$ac_cv_exeext
3611 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3612 $as_echo "$ac_cv_exeext" >&6; }
3613
3614 rm -f conftest.$ac_ext
3615 EXEEXT=$ac_cv_exeext
3616 ac_exeext=$EXEEXT
3617 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3618 $as_echo_n "checking for suffix of object files... " >&6; }
3619 if test "${ac_cv_objext+set}" = set; then
3620   $as_echo_n "(cached) " >&6
3621 else
3622   cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628
3629 int
3630 main ()
3631 {
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.o conftest.obj
3638 if { (ac_try="$ac_compile"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645   (eval "$ac_compile") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; then
3649   for ac_file in conftest.o conftest.obj conftest.*; do
3650   test -f "$ac_file" || continue;
3651   case $ac_file in
3652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3653     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3654        break;;
3655   esac
3656 done
3657 else
3658   $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3664 See \`config.log' for more details." >&5
3665 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3666 See \`config.log' for more details." >&2;}
3667    { (exit 1); exit 1; }; }; }
3668 fi
3669
3670 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3671 fi
3672 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3673 $as_echo "$ac_cv_objext" >&6; }
3674 OBJEXT=$ac_cv_objext
3675 ac_objext=$OBJEXT
3676 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3677 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3678 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3679   $as_echo_n "(cached) " >&6
3680 else
3681   cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687
3688 int
3689 main ()
3690 {
3691 #ifndef __GNUC__
3692        choke me
3693 #endif
3694
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707   (eval "$ac_compile") 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } && {
3714          test -z "$ac_c_werror_flag" ||
3715          test ! -s conftest.err
3716        } && test -s conftest.$ac_objext; then
3717   ac_compiler_gnu=yes
3718 else
3719   $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722         ac_compiler_gnu=no
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3727
3728 fi
3729 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3730 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3731 if test $ac_compiler_gnu = yes; then
3732   GCC=yes
3733 else
3734   GCC=
3735 fi
3736 ac_test_CFLAGS=${CFLAGS+set}
3737 ac_save_CFLAGS=$CFLAGS
3738 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3739 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3740 if test "${ac_cv_prog_cc_g+set}" = set; then
3741   $as_echo_n "(cached) " >&6
3742 else
3743   ac_save_c_werror_flag=$ac_c_werror_flag
3744    ac_c_werror_flag=yes
3745    ac_cv_prog_cc_g=no
3746    CFLAGS="-g"
3747    cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h.  */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h.  */
3753
3754 int
3755 main ()
3756 {
3757
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 rm -f conftest.$ac_objext
3763 if { (ac_try="$ac_compile"
3764 case "(($ac_try" in
3765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766   *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3769 $as_echo "$ac_try_echo") >&5
3770   (eval "$ac_compile") 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } && {
3777          test -z "$ac_c_werror_flag" ||
3778          test ! -s conftest.err
3779        } && test -s conftest.$ac_objext; then
3780   ac_cv_prog_cc_g=yes
3781 else
3782   $as_echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3784
3785         CFLAGS=""
3786       cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792
3793 int
3794 main ()
3795 {
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 rm -f conftest.$ac_objext
3802 if { (ac_try="$ac_compile"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808 $as_echo "$ac_try_echo") >&5
3809   (eval "$ac_compile") 2>conftest.er1
3810   ac_status=$?
3811   grep -v '^ *+' conftest.er1 >conftest.err
3812   rm -f conftest.er1
3813   cat conftest.err >&5
3814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); } && {
3816          test -z "$ac_c_werror_flag" ||
3817          test ! -s conftest.err
3818        } && test -s conftest.$ac_objext; then
3819   :
3820 else
3821   $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824         ac_c_werror_flag=$ac_save_c_werror_flag
3825          CFLAGS="-g"
3826          cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849   (eval "$ac_compile") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } && {
3856          test -z "$ac_c_werror_flag" ||
3857          test ! -s conftest.err
3858        } && test -s conftest.$ac_objext; then
3859   ac_cv_prog_cc_g=yes
3860 else
3861   $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 fi
3869
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 fi
3872
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874    ac_c_werror_flag=$ac_save_c_werror_flag
3875 fi
3876 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3877 $as_echo "$ac_cv_prog_cc_g" >&6; }
3878 if test "$ac_test_CFLAGS" = set; then
3879   CFLAGS=$ac_save_CFLAGS
3880 elif test $ac_cv_prog_cc_g = yes; then
3881   if test "$GCC" = yes; then
3882     CFLAGS="-g -O2"
3883   else
3884     CFLAGS="-g"
3885   fi
3886 else
3887   if test "$GCC" = yes; then
3888     CFLAGS="-O2"
3889   else
3890     CFLAGS=
3891   fi
3892 fi
3893 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3894 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3895 if test "${ac_cv_prog_cc_c89+set}" = set; then
3896   $as_echo_n "(cached) " >&6
3897 else
3898   ac_cv_prog_cc_c89=no
3899 ac_save_CC=$CC
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h.  */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h.  */
3906 #include <stdarg.h>
3907 #include <stdio.h>
3908 #include <sys/types.h>
3909 #include <sys/stat.h>
3910 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3911 struct buf { int x; };
3912 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3913 static char *e (p, i)
3914      char **p;
3915      int i;
3916 {
3917   return p[i];
3918 }
3919 static char *f (char * (*g) (char **, int), char **p, ...)
3920 {
3921   char *s;
3922   va_list v;
3923   va_start (v,p);
3924   s = g (p, va_arg (v,int));
3925   va_end (v);
3926   return s;
3927 }
3928
3929 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3930    function prototypes and stuff, but not '\xHH' hex character constants.
3931    These don't provoke an error unfortunately, instead are silently treated
3932    as 'x'.  The following induces an error, until -std is added to get
3933    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3934    array size at least.  It's necessary to write '\x00'==0 to get something
3935    that's true only with -std.  */
3936 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3937
3938 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3939    inside strings and character constants.  */
3940 #define FOO(x) 'x'
3941 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3942
3943 int test (int i, double x);
3944 struct s1 {int (*f) (int a);};
3945 struct s2 {int (*f) (double a);};
3946 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3947 int argc;
3948 char **argv;
3949 int
3950 main ()
3951 {
3952 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3958         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3959 do
3960   CC="$ac_save_CC $ac_arg"
3961   rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3968 $as_echo "$ac_try_echo") >&5
3969   (eval "$ac_compile") 2>conftest.er1
3970   ac_status=$?
3971   grep -v '^ *+' conftest.er1 >conftest.err
3972   rm -f conftest.er1
3973   cat conftest.err >&5
3974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } && {
3976          test -z "$ac_c_werror_flag" ||
3977          test ! -s conftest.err
3978        } && test -s conftest.$ac_objext; then
3979   ac_cv_prog_cc_c89=$ac_arg
3980 else
3981   $as_echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984
3985 fi
3986
3987 rm -f core conftest.err conftest.$ac_objext
3988   test "x$ac_cv_prog_cc_c89" != "xno" && break
3989 done
3990 rm -f conftest.$ac_ext
3991 CC=$ac_save_CC
3992
3993 fi
3994 # AC_CACHE_VAL
3995 case "x$ac_cv_prog_cc_c89" in
3996   x)
3997     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3998 $as_echo "none needed" >&6; } ;;
3999   xno)
4000     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4001 $as_echo "unsupported" >&6; } ;;
4002   *)
4003     CC="$CC $ac_cv_prog_cc_c89"
4004     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4006 esac
4007
4008
4009 ac_ext=c
4010 ac_cpp='$CPP $CPPFLAGS'
4011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014 DEPDIR="${am__leading_dot}deps"
4015
4016 ac_config_commands="$ac_config_commands depfiles"
4017
4018
4019 am_make=${MAKE-make}
4020 cat > confinc << 'END'
4021 am__doit:
4022         @echo this is the am__doit target
4023 .PHONY: am__doit
4024 END
4025 # If we don't find an include directive, just comment out the code.
4026 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4027 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4028 am__include="#"
4029 am__quote=
4030 _am_result=none
4031 # First try GNU make style include.
4032 echo "include confinc" > confmf
4033 # Ignore all kinds of additional output from `make'.
4034 case `$am_make -s -f confmf 2> /dev/null` in #(
4035 *the\ am__doit\ target*)
4036   am__include=include
4037   am__quote=
4038   _am_result=GNU
4039   ;;
4040 esac
4041 # Now try BSD make style include.
4042 if test "$am__include" = "#"; then
4043    echo '.include "confinc"' > confmf
4044    case `$am_make -s -f confmf 2> /dev/null` in #(
4045    *the\ am__doit\ target*)
4046      am__include=.include
4047      am__quote="\""
4048      _am_result=BSD
4049      ;;
4050    esac
4051 fi
4052
4053
4054 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4055 $as_echo "$_am_result" >&6; }
4056 rm -f confinc confmf
4057
4058 # Check whether --enable-dependency-tracking was given.
4059 if test "${enable_dependency_tracking+set}" = set; then
4060   enableval=$enable_dependency_tracking;
4061 fi
4062
4063 if test "x$enable_dependency_tracking" != xno; then
4064   am_depcomp="$ac_aux_dir/depcomp"
4065   AMDEPBACKSLASH='\'
4066 fi
4067  if test "x$enable_dependency_tracking" != xno; then
4068   AMDEP_TRUE=
4069   AMDEP_FALSE='#'
4070 else
4071   AMDEP_TRUE='#'
4072   AMDEP_FALSE=
4073 fi
4074
4075
4076
4077 depcc="$CC"   am_compiler_list=
4078
4079 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4080 $as_echo_n "checking dependency style of $depcc... " >&6; }
4081 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4082   $as_echo_n "(cached) " >&6
4083 else
4084   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4085   # We make a subdir and do the tests there.  Otherwise we can end up
4086   # making bogus files that we don't know about and never remove.  For
4087   # instance it was reported that on HP-UX the gcc test will end up
4088   # making a dummy file named `D' -- because `-MD' means `put the output
4089   # in D'.
4090   mkdir conftest.dir
4091   # Copy depcomp to subdir because otherwise we won't find it if we're
4092   # using a relative directory.
4093   cp "$am_depcomp" conftest.dir
4094   cd conftest.dir
4095   # We will build objects and dependencies in a subdirectory because
4096   # it helps to detect inapplicable dependency modes.  For instance
4097   # both Tru64's cc and ICC support -MD to output dependencies as a
4098   # side effect of compilation, but ICC will put the dependencies in
4099   # the current directory while Tru64 will put them in the object
4100   # directory.
4101   mkdir sub
4102
4103   am_cv_CC_dependencies_compiler_type=none
4104   if test "$am_compiler_list" = ""; then
4105      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4106   fi
4107   am__universal=false
4108   case " $depcc " in #(
4109      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4110      esac
4111
4112   for depmode in $am_compiler_list; do
4113     # Setup a source with many dependencies, because some compilers
4114     # like to wrap large dependency lists on column 80 (with \), and
4115     # we should not choose a depcomp mode which is confused by this.
4116     #
4117     # We need to recreate these files for each test, as the compiler may
4118     # overwrite some of them when testing with obscure command lines.
4119     # This happens at least with the AIX C compiler.
4120     : > sub/conftest.c
4121     for i in 1 2 3 4 5 6; do
4122       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4123       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4124       # Solaris 8's {/usr,}/bin/sh.
4125       touch sub/conftst$i.h
4126     done
4127     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4128
4129     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4130     # mode.  It turns out that the SunPro C++ compiler does not properly
4131     # handle `-M -o', and we need to detect this.  Also, some Intel
4132     # versions had trouble with output in subdirs
4133     am__obj=sub/conftest.${OBJEXT-o}
4134     am__minus_obj="-o $am__obj"
4135     case $depmode in
4136     gcc)
4137       # This depmode causes a compiler race in universal mode.
4138       test "$am__universal" = false || continue
4139       ;;
4140     nosideeffect)
4141       # after this tag, mechanisms are not by side-effect, so they'll
4142       # only be used when explicitly requested
4143       if test "x$enable_dependency_tracking" = xyes; then
4144         continue
4145       else
4146         break
4147       fi
4148       ;;
4149     msvisualcpp | msvcmsys)
4150       # This compiler won't grok `-c -o', but also, the minuso test has
4151       # not run yet.  These depmodes are late enough in the game, and
4152       # so weak that their functioning should not be impacted.
4153       am__obj=conftest.${OBJEXT-o}
4154       am__minus_obj=
4155       ;;
4156     none) break ;;
4157     esac
4158     if depmode=$depmode \
4159        source=sub/conftest.c object=$am__obj \
4160        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4161        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4162          >/dev/null 2>conftest.err &&
4163        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4164        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4165        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4166        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4167       # icc doesn't choke on unknown options, it will just issue warnings
4168       # or remarks (even with -Werror).  So we grep stderr for any message
4169       # that says an option was ignored or not supported.
4170       # When given -MP, icc 7.0 and 7.1 complain thusly:
4171       #   icc: Command line warning: ignoring option '-M'; no argument required
4172       # The diagnosis changed in icc 8.0:
4173       #   icc: Command line remark: option '-MP' not supported
4174       if (grep 'ignoring option' conftest.err ||
4175           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4176         am_cv_CC_dependencies_compiler_type=$depmode
4177         break
4178       fi
4179     fi
4180   done
4181
4182   cd ..
4183   rm -rf conftest.dir
4184 else
4185   am_cv_CC_dependencies_compiler_type=none
4186 fi
4187
4188 fi
4189 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4190 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4192
4193  if
4194   test "x$enable_dependency_tracking" != xno \
4195   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4196   am__fastdepCC_TRUE=
4197   am__fastdepCC_FALSE='#'
4198 else
4199   am__fastdepCC_TRUE='#'
4200   am__fastdepCC_FALSE=
4201 fi
4202
4203
4204 case `pwd` in
4205   *\ * | *\     *)
4206     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4207 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4208 esac
4209
4210
4211
4212 macro_version='2.2.6b'
4213 macro_revision='1.3017'
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227 ltmain="$ac_aux_dir/ltmain.sh"
4228
4229 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4230 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4231 if test "${ac_cv_path_SED+set}" = set; then
4232   $as_echo_n "(cached) " >&6
4233 else
4234             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4235      for ac_i in 1 2 3 4 5 6 7; do
4236        ac_script="$ac_script$as_nl$ac_script"
4237      done
4238      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4239      $as_unset ac_script || ac_script=
4240      if test -z "$SED"; then
4241   ac_path_SED_found=false
4242   # Loop through the user's path and test for each of PROGNAME-LIST
4243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_prog in sed gsed; do
4249     for ac_exec_ext in '' $ac_executable_extensions; do
4250       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4251       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4252 # Check for GNU ac_path_SED and select it if it is found.
4253   # Check for GNU $ac_path_SED
4254 case `"$ac_path_SED" --version 2>&1` in
4255 *GNU*)
4256   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4257 *)
4258   ac_count=0
4259   $as_echo_n 0123456789 >"conftest.in"
4260   while :
4261   do
4262     cat "conftest.in" "conftest.in" >"conftest.tmp"
4263     mv "conftest.tmp" "conftest.in"
4264     cp "conftest.in" "conftest.nl"
4265     $as_echo '' >> "conftest.nl"
4266     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268     ac_count=`expr $ac_count + 1`
4269     if test $ac_count -gt ${ac_path_SED_max-0}; then
4270       # Best one so far, save it but keep looking for a better one
4271       ac_cv_path_SED="$ac_path_SED"
4272       ac_path_SED_max=$ac_count
4273     fi
4274     # 10*(2^10) chars as input seems more than enough
4275     test $ac_count -gt 10 && break
4276   done
4277   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 esac
4279
4280       $ac_path_SED_found && break 3
4281     done
4282   done
4283 done
4284 IFS=$as_save_IFS
4285   if test -z "$ac_cv_path_SED"; then
4286     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4287 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4288    { (exit 1); exit 1; }; }
4289   fi
4290 else
4291   ac_cv_path_SED=$SED
4292 fi
4293
4294 fi
4295 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4296 $as_echo "$ac_cv_path_SED" >&6; }
4297  SED="$ac_cv_path_SED"
4298   rm -f conftest.sed
4299
4300 test -z "$SED" && SED=sed
4301 Xsed="$SED -e 1s/^X//"
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4314 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4315 if test "${ac_cv_path_GREP+set}" = set; then
4316   $as_echo_n "(cached) " >&6
4317 else
4318   if test -z "$GREP"; then
4319   ac_path_GREP_found=false
4320   # Loop through the user's path and test for each of PROGNAME-LIST
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_prog in grep ggrep; do
4327     for ac_exec_ext in '' $ac_executable_extensions; do
4328       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4329       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4330 # Check for GNU ac_path_GREP and select it if it is found.
4331   # Check for GNU $ac_path_GREP
4332 case `"$ac_path_GREP" --version 2>&1` in
4333 *GNU*)
4334   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4335 *)
4336   ac_count=0
4337   $as_echo_n 0123456789 >"conftest.in"
4338   while :
4339   do
4340     cat "conftest.in" "conftest.in" >"conftest.tmp"
4341     mv "conftest.tmp" "conftest.in"
4342     cp "conftest.in" "conftest.nl"
4343     $as_echo 'GREP' >> "conftest.nl"
4344     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346     ac_count=`expr $ac_count + 1`
4347     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4348       # Best one so far, save it but keep looking for a better one
4349       ac_cv_path_GREP="$ac_path_GREP"
4350       ac_path_GREP_max=$ac_count
4351     fi
4352     # 10*(2^10) chars as input seems more than enough
4353     test $ac_count -gt 10 && break
4354   done
4355   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356 esac
4357
4358       $ac_path_GREP_found && break 3
4359     done
4360   done
4361 done
4362 IFS=$as_save_IFS
4363   if test -z "$ac_cv_path_GREP"; then
4364     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4365 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4366    { (exit 1); exit 1; }; }
4367   fi
4368 else
4369   ac_cv_path_GREP=$GREP
4370 fi
4371
4372 fi
4373 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4374 $as_echo "$ac_cv_path_GREP" >&6; }
4375  GREP="$ac_cv_path_GREP"
4376
4377
4378 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4379 $as_echo_n "checking for egrep... " >&6; }
4380 if test "${ac_cv_path_EGREP+set}" = set; then
4381   $as_echo_n "(cached) " >&6
4382 else
4383   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4384    then ac_cv_path_EGREP="$GREP -E"
4385    else
4386      if test -z "$EGREP"; then
4387   ac_path_EGREP_found=false
4388   # Loop through the user's path and test for each of PROGNAME-LIST
4389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_prog in egrep; do
4395     for ac_exec_ext in '' $ac_executable_extensions; do
4396       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4397       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4398 # Check for GNU ac_path_EGREP and select it if it is found.
4399   # Check for GNU $ac_path_EGREP
4400 case `"$ac_path_EGREP" --version 2>&1` in
4401 *GNU*)
4402   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4403 *)
4404   ac_count=0
4405   $as_echo_n 0123456789 >"conftest.in"
4406   while :
4407   do
4408     cat "conftest.in" "conftest.in" >"conftest.tmp"
4409     mv "conftest.tmp" "conftest.in"
4410     cp "conftest.in" "conftest.nl"
4411     $as_echo 'EGREP' >> "conftest.nl"
4412     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414     ac_count=`expr $ac_count + 1`
4415     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4416       # Best one so far, save it but keep looking for a better one
4417       ac_cv_path_EGREP="$ac_path_EGREP"
4418       ac_path_EGREP_max=$ac_count
4419     fi
4420     # 10*(2^10) chars as input seems more than enough
4421     test $ac_count -gt 10 && break
4422   done
4423   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4424 esac
4425
4426       $ac_path_EGREP_found && break 3
4427     done
4428   done
4429 done
4430 IFS=$as_save_IFS
4431   if test -z "$ac_cv_path_EGREP"; then
4432     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4433 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4434    { (exit 1); exit 1; }; }
4435   fi
4436 else
4437   ac_cv_path_EGREP=$EGREP
4438 fi
4439
4440    fi
4441 fi
4442 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4443 $as_echo "$ac_cv_path_EGREP" >&6; }
4444  EGREP="$ac_cv_path_EGREP"
4445
4446
4447 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4448 $as_echo_n "checking for fgrep... " >&6; }
4449 if test "${ac_cv_path_FGREP+set}" = set; then
4450   $as_echo_n "(cached) " >&6
4451 else
4452   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4453    then ac_cv_path_FGREP="$GREP -F"
4454    else
4455      if test -z "$FGREP"; then
4456   ac_path_FGREP_found=false
4457   # Loop through the user's path and test for each of PROGNAME-LIST
4458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463   for ac_prog in fgrep; do
4464     for ac_exec_ext in '' $ac_executable_extensions; do
4465       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4466       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4467 # Check for GNU ac_path_FGREP and select it if it is found.
4468   # Check for GNU $ac_path_FGREP
4469 case `"$ac_path_FGREP" --version 2>&1` in
4470 *GNU*)
4471   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4472 *)
4473   ac_count=0
4474   $as_echo_n 0123456789 >"conftest.in"
4475   while :
4476   do
4477     cat "conftest.in" "conftest.in" >"conftest.tmp"
4478     mv "conftest.tmp" "conftest.in"
4479     cp "conftest.in" "conftest.nl"
4480     $as_echo 'FGREP' >> "conftest.nl"
4481     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483     ac_count=`expr $ac_count + 1`
4484     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4485       # Best one so far, save it but keep looking for a better one
4486       ac_cv_path_FGREP="$ac_path_FGREP"
4487       ac_path_FGREP_max=$ac_count
4488     fi
4489     # 10*(2^10) chars as input seems more than enough
4490     test $ac_count -gt 10 && break
4491   done
4492   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493 esac
4494
4495       $ac_path_FGREP_found && break 3
4496     done
4497   done
4498 done
4499 IFS=$as_save_IFS
4500   if test -z "$ac_cv_path_FGREP"; then
4501     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4502 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4503    { (exit 1); exit 1; }; }
4504   fi
4505 else
4506   ac_cv_path_FGREP=$FGREP
4507 fi
4508
4509    fi
4510 fi
4511 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4512 $as_echo "$ac_cv_path_FGREP" >&6; }
4513  FGREP="$ac_cv_path_FGREP"
4514
4515
4516 test -z "$GREP" && GREP=grep
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536 # Check whether --with-gnu-ld was given.
4537 if test "${with_gnu_ld+set}" = set; then
4538   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4539 else
4540   with_gnu_ld=no
4541 fi
4542
4543 ac_prog=ld
4544 if test "$GCC" = yes; then
4545   # Check if gcc -print-prog-name=ld gives a path.
4546   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4547 $as_echo_n "checking for ld used by $CC... " >&6; }
4548   case $host in
4549   *-*-mingw*)
4550     # gcc leaves a trailing carriage return which upsets mingw
4551     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4552   *)
4553     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4554   esac
4555   case $ac_prog in
4556     # Accept absolute paths.
4557     [\\/]* | ?:[\\/]*)
4558       re_direlt='/[^/][^/]*/\.\./'
4559       # Canonicalize the pathname of ld
4560       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4561       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4562         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4563       done
4564       test -z "$LD" && LD="$ac_prog"
4565       ;;
4566   "")
4567     # If it fails, then pretend we aren't using GCC.
4568     ac_prog=ld
4569     ;;
4570   *)
4571     # If it is relative, then search for the first ld in PATH.
4572     with_gnu_ld=unknown
4573     ;;
4574   esac
4575 elif test "$with_gnu_ld" = yes; then
4576   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4577 $as_echo_n "checking for GNU ld... " >&6; }
4578 else
4579   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4580 $as_echo_n "checking for non-GNU ld... " >&6; }
4581 fi
4582 if test "${lt_cv_path_LD+set}" = set; then
4583   $as_echo_n "(cached) " >&6
4584 else
4585   if test -z "$LD"; then
4586   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4587   for ac_dir in $PATH; do
4588     IFS="$lt_save_ifs"
4589     test -z "$ac_dir" && ac_dir=.
4590     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4591       lt_cv_path_LD="$ac_dir/$ac_prog"
4592       # Check to see if the program is GNU ld.  I'd rather use --version,
4593       # but apparently some variants of GNU ld only accept -v.
4594       # Break only if it was the GNU/non-GNU ld that we prefer.
4595       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4596       *GNU* | *'with BFD'*)
4597         test "$with_gnu_ld" != no && break
4598         ;;
4599       *)
4600         test "$with_gnu_ld" != yes && break
4601         ;;
4602       esac
4603     fi
4604   done
4605   IFS="$lt_save_ifs"
4606 else
4607   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4608 fi
4609 fi
4610
4611 LD="$lt_cv_path_LD"
4612 if test -n "$LD"; then
4613   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4614 $as_echo "$LD" >&6; }
4615 else
4616   { $as_echo "$as_me:$LINENO: result: no" >&5
4617 $as_echo "no" >&6; }
4618 fi
4619 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4620 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4621    { (exit 1); exit 1; }; }
4622 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4623 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4624 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4625   $as_echo_n "(cached) " >&6
4626 else
4627   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4628 case `$LD -v 2>&1 </dev/null` in
4629 *GNU* | *'with BFD'*)
4630   lt_cv_prog_gnu_ld=yes
4631   ;;
4632 *)
4633   lt_cv_prog_gnu_ld=no
4634   ;;
4635 esac
4636 fi
4637 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4638 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4639 with_gnu_ld=$lt_cv_prog_gnu_ld
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4650 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4651 if test "${lt_cv_path_NM+set}" = set; then
4652   $as_echo_n "(cached) " >&6
4653 else
4654   if test -n "$NM"; then
4655   # Let the user override the test.
4656   lt_cv_path_NM="$NM"
4657 else
4658   lt_nm_to_check="${ac_tool_prefix}nm"
4659   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4660     lt_nm_to_check="$lt_nm_to_check nm"
4661   fi
4662   for lt_tmp_nm in $lt_nm_to_check; do
4663     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4665       IFS="$lt_save_ifs"
4666       test -z "$ac_dir" && ac_dir=.
4667       tmp_nm="$ac_dir/$lt_tmp_nm"
4668       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4669         # Check to see if the nm accepts a BSD-compat flag.
4670         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4671         #   nm: unknown option "B" ignored
4672         # Tru64's nm complains that /dev/null is an invalid object file
4673         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4674         */dev/null* | *'Invalid file or object type'*)
4675           lt_cv_path_NM="$tmp_nm -B"
4676           break
4677           ;;
4678         *)
4679           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4680           */dev/null*)
4681             lt_cv_path_NM="$tmp_nm -p"
4682             break
4683             ;;
4684           *)
4685             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4686             continue # so that we can try to find one that supports BSD flags
4687             ;;
4688           esac
4689           ;;
4690         esac
4691       fi
4692     done
4693     IFS="$lt_save_ifs"
4694   done
4695   : ${lt_cv_path_NM=no}
4696 fi
4697 fi
4698 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4699 $as_echo "$lt_cv_path_NM" >&6; }
4700 if test "$lt_cv_path_NM" != "no"; then
4701   NM="$lt_cv_path_NM"
4702 else
4703   # Didn't find any BSD compatible name lister, look for dumpbin.
4704   if test -n "$ac_tool_prefix"; then
4705   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4706   do
4707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4712   $as_echo_n "(cached) " >&6
4713 else
4714   if test -n "$DUMPBIN"; then
4715   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722   for ac_exec_ext in '' $ac_executable_extensions; do
4723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4725     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732 fi
4733 fi
4734 DUMPBIN=$ac_cv_prog_DUMPBIN
4735 if test -n "$DUMPBIN"; then
4736   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4737 $as_echo "$DUMPBIN" >&6; }
4738 else
4739   { $as_echo "$as_me:$LINENO: result: no" >&5
4740 $as_echo "no" >&6; }
4741 fi
4742
4743
4744     test -n "$DUMPBIN" && break
4745   done
4746 fi
4747 if test -z "$DUMPBIN"; then
4748   ac_ct_DUMPBIN=$DUMPBIN
4749   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4750 do
4751   # Extract the first word of "$ac_prog", so it can be a program name with args.
4752 set dummy $ac_prog; ac_word=$2
4753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4756   $as_echo_n "(cached) " >&6
4757 else
4758   if test -n "$ac_ct_DUMPBIN"; then
4759   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764   IFS=$as_save_IFS
4765   test -z "$as_dir" && as_dir=.
4766   for ac_exec_ext in '' $ac_executable_extensions; do
4767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4769     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770     break 2
4771   fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779 if test -n "$ac_ct_DUMPBIN"; then
4780   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4781 $as_echo "$ac_ct_DUMPBIN" >&6; }
4782 else
4783   { $as_echo "$as_me:$LINENO: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787
4788   test -n "$ac_ct_DUMPBIN" && break
4789 done
4790
4791   if test "x$ac_ct_DUMPBIN" = x; then
4792     DUMPBIN=":"
4793   else
4794     case $cross_compiling:$ac_tool_warned in
4795 yes:)
4796 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4798 ac_tool_warned=yes ;;
4799 esac
4800     DUMPBIN=$ac_ct_DUMPBIN
4801   fi
4802 fi
4803
4804
4805   if test "$DUMPBIN" != ":"; then
4806     NM="$DUMPBIN"
4807   fi
4808 fi
4809 test -z "$NM" && NM=nm
4810
4811
4812
4813
4814
4815
4816 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4817 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4818 if test "${lt_cv_nm_interface+set}" = set; then
4819   $as_echo_n "(cached) " >&6
4820 else
4821   lt_cv_nm_interface="BSD nm"
4822   echo "int some_variable = 0;" > conftest.$ac_ext
4823   (eval echo "\"\$as_me:4823: $ac_compile\"" >&5)
4824   (eval "$ac_compile" 2>conftest.err)
4825   cat conftest.err >&5
4826   (eval echo "\"\$as_me:4826: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4827   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4828   cat conftest.err >&5
4829   (eval echo "\"\$as_me:4829: output\"" >&5)
4830   cat conftest.out >&5
4831   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4832     lt_cv_nm_interface="MS dumpbin"
4833   fi
4834   rm -f conftest*
4835 fi
4836 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4837 $as_echo "$lt_cv_nm_interface" >&6; }
4838
4839 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4840 $as_echo_n "checking whether ln -s works... " >&6; }
4841 LN_S=$as_ln_s
4842 if test "$LN_S" = "ln -s"; then
4843   { $as_echo "$as_me:$LINENO: result: yes" >&5
4844 $as_echo "yes" >&6; }
4845 else
4846   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4847 $as_echo "no, using $LN_S" >&6; }
4848 fi
4849
4850 # find the maximum length of command line arguments
4851 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4852 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4853 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4854   $as_echo_n "(cached) " >&6
4855 else
4856     i=0
4857   teststring="ABCD"
4858
4859   case $build_os in
4860   msdosdjgpp*)
4861     # On DJGPP, this test can blow up pretty badly due to problems in libc
4862     # (any single argument exceeding 2000 bytes causes a buffer overrun
4863     # during glob expansion).  Even if it were fixed, the result of this
4864     # check would be larger than it should be.
4865     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4866     ;;
4867
4868   gnu*)
4869     # Under GNU Hurd, this test is not required because there is
4870     # no limit to the length of command line arguments.
4871     # Libtool will interpret -1 as no limit whatsoever
4872     lt_cv_sys_max_cmd_len=-1;
4873     ;;
4874
4875   cygwin* | mingw* | cegcc*)
4876     # On Win9x/ME, this test blows up -- it succeeds, but takes
4877     # about 5 minutes as the teststring grows exponentially.
4878     # Worse, since 9x/ME are not pre-emptively multitasking,
4879     # you end up with a "frozen" computer, even though with patience
4880     # the test eventually succeeds (with a max line length of 256k).
4881     # Instead, let's just punt: use the minimum linelength reported by
4882     # all of the supported platforms: 8192 (on NT/2K/XP).
4883     lt_cv_sys_max_cmd_len=8192;
4884     ;;
4885
4886   amigaos*)
4887     # On AmigaOS with pdksh, this test takes hours, literally.
4888     # So we just punt and use a minimum line length of 8192.
4889     lt_cv_sys_max_cmd_len=8192;
4890     ;;
4891
4892   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4893     # This has been around since 386BSD, at least.  Likely further.
4894     if test -x /sbin/sysctl; then
4895       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4896     elif test -x /usr/sbin/sysctl; then
4897       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4898     else
4899       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4900     fi
4901     # And add a safety zone
4902     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4903     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4904     ;;
4905
4906   interix*)
4907     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4908     lt_cv_sys_max_cmd_len=196608
4909     ;;
4910
4911   osf*)
4912     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4913     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4914     # nice to cause kernel panics so lets avoid the loop below.
4915     # First set a reasonable default.
4916     lt_cv_sys_max_cmd_len=16384
4917     #
4918     if test -x /sbin/sysconfig; then
4919       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4920         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4921       esac
4922     fi
4923     ;;
4924   sco3.2v5*)
4925     lt_cv_sys_max_cmd_len=102400
4926     ;;
4927   sysv5* | sco5v6* | sysv4.2uw2*)
4928     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4929     if test -n "$kargmax"; then
4930       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4931     else
4932       lt_cv_sys_max_cmd_len=32768
4933     fi
4934     ;;
4935   *)
4936     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4937     if test -n "$lt_cv_sys_max_cmd_len"; then
4938       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4939       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4940     else
4941       # Make teststring a little bigger before we do anything with it.
4942       # a 1K string should be a reasonable start.
4943       for i in 1 2 3 4 5 6 7 8 ; do
4944         teststring=$teststring$teststring
4945       done
4946       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4947       # If test is not a shell built-in, we'll probably end up computing a
4948       # maximum length that is only half of the actual maximum length, but
4949       # we can't tell.
4950       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4951                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4952               test $i != 17 # 1/2 MB should be enough
4953       do
4954         i=`expr $i + 1`
4955         teststring=$teststring$teststring
4956       done
4957       # Only check the string length outside the loop.
4958       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4959       teststring=
4960       # Add a significant safety factor because C++ compilers can tack on
4961       # massive amounts of additional arguments before passing them to the
4962       # linker.  It appears as though 1/2 is a usable value.
4963       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4964     fi
4965     ;;
4966   esac
4967
4968 fi
4969
4970 if test -n $lt_cv_sys_max_cmd_len ; then
4971   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4972 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4973 else
4974   { $as_echo "$as_me:$LINENO: result: none" >&5
4975 $as_echo "none" >&6; }
4976 fi
4977 max_cmd_len=$lt_cv_sys_max_cmd_len
4978
4979
4980
4981
4982
4983
4984 : ${CP="cp -f"}
4985 : ${MV="mv -f"}
4986 : ${RM="rm -f"}
4987
4988 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4989 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4990 # Try some XSI features
4991 xsi_shell=no
4992 ( _lt_dummy="a/b/c"
4993   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4994       = c,a/b,, \
4995     && eval 'test $(( 1 + 1 )) -eq 2 \
4996     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4997   && xsi_shell=yes
4998 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4999 $as_echo "$xsi_shell" >&6; }
5000
5001
5002 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5003 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5004 lt_shell_append=no
5005 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5006     >/dev/null 2>&1 \
5007   && lt_shell_append=yes
5008 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5009 $as_echo "$lt_shell_append" >&6; }
5010
5011
5012 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5013   lt_unset=unset
5014 else
5015   lt_unset=false
5016 fi
5017
5018
5019
5020
5021
5022 # test EBCDIC or ASCII
5023 case `echo X|tr X '\101'` in
5024  A) # ASCII based system
5025     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5026   lt_SP2NL='tr \040 \012'
5027   lt_NL2SP='tr \015\012 \040\040'
5028   ;;
5029  *) # EBCDIC based system
5030   lt_SP2NL='tr \100 \n'
5031   lt_NL2SP='tr \r\n \100\100'
5032   ;;
5033 esac
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5044 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5045 if test "${lt_cv_ld_reload_flag+set}" = set; then
5046   $as_echo_n "(cached) " >&6
5047 else
5048   lt_cv_ld_reload_flag='-r'
5049 fi
5050 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5051 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5052 reload_flag=$lt_cv_ld_reload_flag
5053 case $reload_flag in
5054 "" | " "*) ;;
5055 *) reload_flag=" $reload_flag" ;;
5056 esac
5057 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5058 case $host_os in
5059   darwin*)
5060     if test "$GCC" = yes; then
5061       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5062     else
5063       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5064     fi
5065     ;;
5066 esac
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 if test -n "$ac_tool_prefix"; then
5077   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5082   $as_echo_n "(cached) " >&6
5083 else
5084   if test -n "$OBJDUMP"; then
5085   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090   IFS=$as_save_IFS
5091   test -z "$as_dir" && as_dir=.
5092   for ac_exec_ext in '' $ac_executable_extensions; do
5093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5095     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096     break 2
5097   fi
5098 done
5099 done
5100 IFS=$as_save_IFS
5101
5102 fi
5103 fi
5104 OBJDUMP=$ac_cv_prog_OBJDUMP
5105 if test -n "$OBJDUMP"; then
5106   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5107 $as_echo "$OBJDUMP" >&6; }
5108 else
5109   { $as_echo "$as_me:$LINENO: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113
5114 fi
5115 if test -z "$ac_cv_prog_OBJDUMP"; then
5116   ac_ct_OBJDUMP=$OBJDUMP
5117   # Extract the first word of "objdump", so it can be a program name with args.
5118 set dummy objdump; ac_word=$2
5119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5122   $as_echo_n "(cached) " >&6
5123 else
5124   if test -n "$ac_ct_OBJDUMP"; then
5125   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132   for ac_exec_ext in '' $ac_executable_extensions; do
5133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5145 if test -n "$ac_ct_OBJDUMP"; then
5146   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5147 $as_echo "$ac_ct_OBJDUMP" >&6; }
5148 else
5149   { $as_echo "$as_me:$LINENO: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153   if test "x$ac_ct_OBJDUMP" = x; then
5154     OBJDUMP="false"
5155   else
5156     case $cross_compiling:$ac_tool_warned in
5157 yes:)
5158 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162     OBJDUMP=$ac_ct_OBJDUMP
5163   fi
5164 else
5165   OBJDUMP="$ac_cv_prog_OBJDUMP"
5166 fi
5167
5168 test -z "$OBJDUMP" && OBJDUMP=objdump
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5179 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5180 if test "${lt_cv_deplibs_check_method+set}" = set; then
5181   $as_echo_n "(cached) " >&6
5182 else
5183   lt_cv_file_magic_cmd='$MAGIC_CMD'
5184 lt_cv_file_magic_test_file=
5185 lt_cv_deplibs_check_method='unknown'
5186 # Need to set the preceding variable on all platforms that support
5187 # interlibrary dependencies.
5188 # 'none' -- dependencies not supported.
5189 # `unknown' -- same as none, but documents that we really don't know.
5190 # 'pass_all' -- all dependencies passed with no checks.
5191 # 'test_compile' -- check by making test program.
5192 # 'file_magic [[regex]]' -- check by looking for files in library path
5193 # which responds to the $file_magic_cmd with a given extended regex.
5194 # If you have `file' or equivalent on your system and you're not sure
5195 # whether `pass_all' will *always* work, you probably want this one.
5196
5197 case $host_os in
5198 aix[4-9]*)
5199   lt_cv_deplibs_check_method=pass_all
5200   ;;
5201
5202 beos*)
5203   lt_cv_deplibs_check_method=pass_all
5204   ;;
5205
5206 bsdi[45]*)
5207   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5208   lt_cv_file_magic_cmd='/usr/bin/file -L'
5209   lt_cv_file_magic_test_file=/shlib/libc.so
5210   ;;
5211
5212 cygwin*)
5213   # func_win32_libid is a shell function defined in ltmain.sh
5214   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5215   lt_cv_file_magic_cmd='func_win32_libid'
5216   ;;
5217
5218 mingw* | pw32*)
5219   # Base MSYS/MinGW do not provide the 'file' command needed by
5220   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5221   # unless we find 'file', for example because we are cross-compiling.
5222   if ( file / ) >/dev/null 2>&1; then
5223     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224     lt_cv_file_magic_cmd='func_win32_libid'
5225   else
5226     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5227     lt_cv_file_magic_cmd='$OBJDUMP -f'
5228   fi
5229   ;;
5230
5231 cegcc)
5232   # use the weaker test based on 'objdump'. See mingw*.
5233   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5234   lt_cv_file_magic_cmd='$OBJDUMP -f'
5235   ;;
5236
5237 darwin* | rhapsody*)
5238   lt_cv_deplibs_check_method=pass_all
5239   ;;
5240
5241 freebsd* | dragonfly*)
5242   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243     case $host_cpu in
5244     i*86 )
5245       # Not sure whether the presence of OpenBSD here was a mistake.
5246       # Let's accept both of them until this is cleared up.
5247       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5248       lt_cv_file_magic_cmd=/usr/bin/file
5249       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5250       ;;
5251     esac
5252   else
5253     lt_cv_deplibs_check_method=pass_all
5254   fi
5255   ;;
5256
5257 gnu*)
5258   lt_cv_deplibs_check_method=pass_all
5259   ;;
5260
5261 hpux10.20* | hpux11*)
5262   lt_cv_file_magic_cmd=/usr/bin/file
5263   case $host_cpu in
5264   ia64*)
5265     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5266     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5267     ;;
5268   hppa*64*)
5269     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]'
5270     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5271     ;;
5272   *)
5273     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5274     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5275     ;;
5276   esac
5277   ;;
5278
5279 interix[3-9]*)
5280   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5281   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5282   ;;
5283
5284 irix5* | irix6* | nonstopux*)
5285   case $LD in
5286   *-32|*"-32 ") libmagic=32-bit;;
5287   *-n32|*"-n32 ") libmagic=N32;;
5288   *-64|*"-64 ") libmagic=64-bit;;
5289   *) libmagic=never-match;;
5290   esac
5291   lt_cv_deplibs_check_method=pass_all
5292   ;;
5293
5294 # This must be Linux ELF.
5295 linux* | k*bsd*-gnu)
5296   lt_cv_deplibs_check_method=pass_all
5297   ;;
5298
5299 netbsd*)
5300   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5302   else
5303     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5304   fi
5305   ;;
5306
5307 newos6*)
5308   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5309   lt_cv_file_magic_cmd=/usr/bin/file
5310   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5311   ;;
5312
5313 *nto* | *qnx*)
5314   lt_cv_deplibs_check_method=pass_all
5315   ;;
5316
5317 openbsd*)
5318   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5319     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5320   else
5321     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322   fi
5323   ;;
5324
5325 osf3* | osf4* | osf5*)
5326   lt_cv_deplibs_check_method=pass_all
5327   ;;
5328
5329 rdos*)
5330   lt_cv_deplibs_check_method=pass_all
5331   ;;
5332
5333 solaris*)
5334   lt_cv_deplibs_check_method=pass_all
5335   ;;
5336
5337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5338   lt_cv_deplibs_check_method=pass_all
5339   ;;
5340
5341 sysv4 | sysv4.3*)
5342   case $host_vendor in
5343   motorola)
5344     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]'
5345     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5346     ;;
5347   ncr)
5348     lt_cv_deplibs_check_method=pass_all
5349     ;;
5350   sequent)
5351     lt_cv_file_magic_cmd='/bin/file'
5352     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5353     ;;
5354   sni)
5355     lt_cv_file_magic_cmd='/bin/file'
5356     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5357     lt_cv_file_magic_test_file=/lib/libc.so
5358     ;;
5359   siemens)
5360     lt_cv_deplibs_check_method=pass_all
5361     ;;
5362   pc)
5363     lt_cv_deplibs_check_method=pass_all
5364     ;;
5365   esac
5366   ;;
5367
5368 tpf*)
5369   lt_cv_deplibs_check_method=pass_all
5370   ;;
5371 esac
5372
5373 fi
5374 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5375 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5376 file_magic_cmd=$lt_cv_file_magic_cmd
5377 deplibs_check_method=$lt_cv_deplibs_check_method
5378 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391 if test -n "$ac_tool_prefix"; then
5392   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5393 set dummy ${ac_tool_prefix}ar; ac_word=$2
5394 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5395 $as_echo_n "checking for $ac_word... " >&6; }
5396 if test "${ac_cv_prog_AR+set}" = set; then
5397   $as_echo_n "(cached) " >&6
5398 else
5399   if test -n "$AR"; then
5400   ac_cv_prog_AR="$AR" # Let the user override the test.
5401 else
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407   for ac_exec_ext in '' $ac_executable_extensions; do
5408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409     ac_cv_prog_AR="${ac_tool_prefix}ar"
5410     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414 done
5415 IFS=$as_save_IFS
5416
5417 fi
5418 fi
5419 AR=$ac_cv_prog_AR
5420 if test -n "$AR"; then
5421   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5422 $as_echo "$AR" >&6; }
5423 else
5424   { $as_echo "$as_me:$LINENO: result: no" >&5
5425 $as_echo "no" >&6; }
5426 fi
5427
5428
5429 fi
5430 if test -z "$ac_cv_prog_AR"; then
5431   ac_ct_AR=$AR
5432   # Extract the first word of "ar", so it can be a program name with args.
5433 set dummy ar; ac_word=$2
5434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5437   $as_echo_n "(cached) " >&6
5438 else
5439   if test -n "$ac_ct_AR"; then
5440   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445   IFS=$as_save_IFS
5446   test -z "$as_dir" && as_dir=.
5447   for ac_exec_ext in '' $ac_executable_extensions; do
5448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449     ac_cv_prog_ac_ct_AR="ar"
5450     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452   fi
5453 done
5454 done
5455 IFS=$as_save_IFS
5456
5457 fi
5458 fi
5459 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5460 if test -n "$ac_ct_AR"; then
5461   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5462 $as_echo "$ac_ct_AR" >&6; }
5463 else
5464   { $as_echo "$as_me:$LINENO: result: no" >&5
5465 $as_echo "no" >&6; }
5466 fi
5467
5468   if test "x$ac_ct_AR" = x; then
5469     AR="false"
5470   else
5471     case $cross_compiling:$ac_tool_warned in
5472 yes:)
5473 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475 ac_tool_warned=yes ;;
5476 esac
5477     AR=$ac_ct_AR
5478   fi
5479 else
5480   AR="$ac_cv_prog_AR"
5481 fi
5482
5483 test -z "$AR" && AR=ar
5484 test -z "$AR_FLAGS" && AR_FLAGS=cru
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496 if test -n "$ac_tool_prefix"; then
5497   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}strip; ac_word=$2
5499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_prog_STRIP+set}" = set; then
5502   $as_echo_n "(cached) " >&6
5503 else
5504   if test -n "$STRIP"; then
5505   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510   IFS=$as_save_IFS
5511   test -z "$as_dir" && as_dir=.
5512   for ac_exec_ext in '' $ac_executable_extensions; do
5513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5515     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516     break 2
5517   fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 STRIP=$ac_cv_prog_STRIP
5525 if test -n "$STRIP"; then
5526   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5527 $as_echo "$STRIP" >&6; }
5528 else
5529   { $as_echo "$as_me:$LINENO: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534 fi
5535 if test -z "$ac_cv_prog_STRIP"; then
5536   ac_ct_STRIP=$STRIP
5537   # Extract the first word of "strip", so it can be a program name with args.
5538 set dummy strip; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5542   $as_echo_n "(cached) " >&6
5543 else
5544   if test -n "$ac_ct_STRIP"; then
5545   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552   for ac_exec_ext in '' $ac_executable_extensions; do
5553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554     ac_cv_prog_ac_ct_STRIP="strip"
5555     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559 done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5565 if test -n "$ac_ct_STRIP"; then
5566   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5567 $as_echo "$ac_ct_STRIP" >&6; }
5568 else
5569   { $as_echo "$as_me:$LINENO: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573   if test "x$ac_ct_STRIP" = x; then
5574     STRIP=":"
5575   else
5576     case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582     STRIP=$ac_ct_STRIP
5583   fi
5584 else
5585   STRIP="$ac_cv_prog_STRIP"
5586 fi
5587
5588 test -z "$STRIP" && STRIP=:
5589
5590
5591
5592
5593
5594
5595 if test -n "$ac_tool_prefix"; then
5596   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5597 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if test "${ac_cv_prog_RANLIB+set}" = set; then
5601   $as_echo_n "(cached) " >&6
5602 else
5603   if test -n "$RANLIB"; then
5604   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611   for ac_exec_ext in '' $ac_executable_extensions; do
5612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615     break 2
5616   fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 RANLIB=$ac_cv_prog_RANLIB
5624 if test -n "$RANLIB"; then
5625   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5626 $as_echo "$RANLIB" >&6; }
5627 else
5628   { $as_echo "$as_me:$LINENO: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631
5632
5633 fi
5634 if test -z "$ac_cv_prog_RANLIB"; then
5635   ac_ct_RANLIB=$RANLIB
5636   # Extract the first word of "ranlib", so it can be a program name with args.
5637 set dummy ranlib; ac_word=$2
5638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5641   $as_echo_n "(cached) " >&6
5642 else
5643   if test -n "$ac_ct_RANLIB"; then
5644   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651   for ac_exec_ext in '' $ac_executable_extensions; do
5652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653     ac_cv_prog_ac_ct_RANLIB="ranlib"
5654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655     break 2
5656   fi
5657 done
5658 done
5659 IFS=$as_save_IFS
5660
5661 fi
5662 fi
5663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5664 if test -n "$ac_ct_RANLIB"; then
5665   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5666 $as_echo "$ac_ct_RANLIB" >&6; }
5667 else
5668   { $as_echo "$as_me:$LINENO: result: no" >&5
5669 $as_echo "no" >&6; }
5670 fi
5671
5672   if test "x$ac_ct_RANLIB" = x; then
5673     RANLIB=":"
5674   else
5675     case $cross_compiling:$ac_tool_warned in
5676 yes:)
5677 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679 ac_tool_warned=yes ;;
5680 esac
5681     RANLIB=$ac_ct_RANLIB
5682   fi
5683 else
5684   RANLIB="$ac_cv_prog_RANLIB"
5685 fi
5686
5687 test -z "$RANLIB" && RANLIB=:
5688
5689
5690
5691
5692
5693
5694 # Determine commands to create old-style static archives.
5695 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5696 old_postinstall_cmds='chmod 644 $oldlib'
5697 old_postuninstall_cmds=
5698
5699 if test -n "$RANLIB"; then
5700   case $host_os in
5701   openbsd*)
5702     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5703     ;;
5704   *)
5705     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5706     ;;
5707   esac
5708   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5709 fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744 # If no C compiler was specified, use CC.
5745 LTCC=${LTCC-"$CC"}
5746
5747 # If no C compiler flags were specified, use CFLAGS.
5748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5749
5750 # Allow CC to be a program name with arguments.
5751 compiler=$CC
5752
5753
5754 # Check for command to grab the raw symbol name followed by C symbol from nm.
5755 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5756 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5757 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5758   $as_echo_n "(cached) " >&6
5759 else
5760
5761 # These are sane defaults that work on at least a few old systems.
5762 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5763
5764 # Character class describing NM global symbol codes.
5765 symcode='[BCDEGRST]'
5766
5767 # Regexp to match symbols that can be accessed directly from C.
5768 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5769
5770 # Define system-specific variables.
5771 case $host_os in
5772 aix*)
5773   symcode='[BCDT]'
5774   ;;
5775 cygwin* | mingw* | pw32* | cegcc*)
5776   symcode='[ABCDGISTW]'
5777   ;;
5778 hpux*)
5779   if test "$host_cpu" = ia64; then
5780     symcode='[ABCDEGRST]'
5781   fi
5782   ;;
5783 irix* | nonstopux*)
5784   symcode='[BCDEGRST]'
5785   ;;
5786 osf*)
5787   symcode='[BCDEGQRST]'
5788   ;;
5789 solaris*)
5790   symcode='[BDRT]'
5791   ;;
5792 sco3.2v5*)
5793   symcode='[DT]'
5794   ;;
5795 sysv4.2uw2*)
5796   symcode='[DT]'
5797   ;;
5798 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5799   symcode='[ABDT]'
5800   ;;
5801 sysv4)
5802   symcode='[DFNSTU]'
5803   ;;
5804 esac
5805
5806 # If we're using GNU nm, then use its standard symbol codes.
5807 case `$NM -V 2>&1` in
5808 *GNU* | *'with BFD'*)
5809   symcode='[ABCDGIRSTW]' ;;
5810 esac
5811
5812 # Transform an extracted symbol line into a proper C declaration.
5813 # Some systems (esp. on ia64) link data and code symbols differently,
5814 # so use this general approach.
5815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5816
5817 # Transform an extracted symbol line into symbol name and symbol address
5818 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5819 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'"
5820
5821 # Handle CRLF in mingw tool chain
5822 opt_cr=
5823 case $build_os in
5824 mingw*)
5825   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5826   ;;
5827 esac
5828
5829 # Try without a prefix underscore, then with it.
5830 for ac_symprfx in "" "_"; do
5831
5832   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5833   symxfrm="\\1 $ac_symprfx\\2 \\2"
5834
5835   # Write the raw and C identifiers.
5836   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5837     # Fake it for dumpbin and say T for any non-static function
5838     # and D for any global variable.
5839     # Also find C++ and __fastcall symbols from MSVC++,
5840     # which start with @ or ?.
5841     lt_cv_sys_global_symbol_pipe="$AWK '"\
5842 "     {last_section=section; section=\$ 3};"\
5843 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5844 "     \$ 0!~/External *\|/{next};"\
5845 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5846 "     {if(hide[section]) next};"\
5847 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5848 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5849 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5850 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5851 "     ' prfx=^$ac_symprfx"
5852   else
5853     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5854   fi
5855
5856   # Check to see that the pipe works correctly.
5857   pipe_works=no
5858
5859   rm -f conftest*
5860   cat > conftest.$ac_ext <<_LT_EOF
5861 #ifdef __cplusplus
5862 extern "C" {
5863 #endif
5864 char nm_test_var;
5865 void nm_test_func(void);
5866 void nm_test_func(void){}
5867 #ifdef __cplusplus
5868 }
5869 #endif
5870 int main(){nm_test_var='a';nm_test_func();return(0);}
5871 _LT_EOF
5872
5873   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874   (eval $ac_compile) 2>&5
5875   ac_status=$?
5876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; then
5878     # Now try to grab the symbols.
5879     nlist=conftest.nm
5880     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5881   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5882   ac_status=$?
5883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); } && test -s "$nlist"; then
5885       # Try sorting and uniquifying the output.
5886       if sort "$nlist" | uniq > "$nlist"T; then
5887         mv -f "$nlist"T "$nlist"
5888       else
5889         rm -f "$nlist"T
5890       fi
5891
5892       # Make sure that we snagged all the symbols we need.
5893       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5894         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5895           cat <<_LT_EOF > conftest.$ac_ext
5896 #ifdef __cplusplus
5897 extern "C" {
5898 #endif
5899
5900 _LT_EOF
5901           # Now generate the symbol file.
5902           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5903
5904           cat <<_LT_EOF >> conftest.$ac_ext
5905
5906 /* The mapping between symbol names and symbols.  */
5907 const struct {
5908   const char *name;
5909   void       *address;
5910 }
5911 lt__PROGRAM__LTX_preloaded_symbols[] =
5912 {
5913   { "@PROGRAM@", (void *) 0 },
5914 _LT_EOF
5915           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5916           cat <<\_LT_EOF >> conftest.$ac_ext
5917   {0, (void *) 0}
5918 };
5919
5920 /* This works around a problem in FreeBSD linker */
5921 #ifdef FREEBSD_WORKAROUND
5922 static const void *lt_preloaded_setup() {
5923   return lt__PROGRAM__LTX_preloaded_symbols;
5924 }
5925 #endif
5926
5927 #ifdef __cplusplus
5928 }
5929 #endif
5930 _LT_EOF
5931           # Now try linking the two files.
5932           mv conftest.$ac_objext conftstm.$ac_objext
5933           lt_save_LIBS="$LIBS"
5934           lt_save_CFLAGS="$CFLAGS"
5935           LIBS="conftstm.$ac_objext"
5936           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5937           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938   (eval $ac_link) 2>&5
5939   ac_status=$?
5940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5942             pipe_works=yes
5943           fi
5944           LIBS="$lt_save_LIBS"
5945           CFLAGS="$lt_save_CFLAGS"
5946         else
5947           echo "cannot find nm_test_func in $nlist" >&5
5948         fi
5949       else
5950         echo "cannot find nm_test_var in $nlist" >&5
5951       fi
5952     else
5953       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5954     fi
5955   else
5956     echo "$progname: failed program was:" >&5
5957     cat conftest.$ac_ext >&5
5958   fi
5959   rm -rf conftest* conftst*
5960
5961   # Do not use the global_symbol_pipe unless it works.
5962   if test "$pipe_works" = yes; then
5963     break
5964   else
5965     lt_cv_sys_global_symbol_pipe=
5966   fi
5967 done
5968
5969 fi
5970
5971 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5972   lt_cv_sys_global_symbol_to_cdecl=
5973 fi
5974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5975   { $as_echo "$as_me:$LINENO: result: failed" >&5
5976 $as_echo "failed" >&6; }
5977 else
5978   { $as_echo "$as_me:$LINENO: result: ok" >&5
5979 $as_echo "ok" >&6; }
5980 fi
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 # Check whether --enable-libtool-lock was given.
6005 if test "${enable_libtool_lock+set}" = set; then
6006   enableval=$enable_libtool_lock;
6007 fi
6008
6009 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6010
6011 # Some flags need to be propagated to the compiler or linker for good
6012 # libtool support.
6013 case $host in
6014 ia64-*-hpux*)
6015   # Find out which ABI we are using.
6016   echo 'int i;' > conftest.$ac_ext
6017   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018   (eval $ac_compile) 2>&5
6019   ac_status=$?
6020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; then
6022     case `/usr/bin/file conftest.$ac_objext` in
6023       *ELF-32*)
6024         HPUX_IA64_MODE="32"
6025         ;;
6026       *ELF-64*)
6027         HPUX_IA64_MODE="64"
6028         ;;
6029     esac
6030   fi
6031   rm -rf conftest*
6032   ;;
6033 *-*-irix6*)
6034   # Find out which ABI we are using.
6035   echo '#line 6035 "configure"' > conftest.$ac_ext
6036   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037   (eval $ac_compile) 2>&5
6038   ac_status=$?
6039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); }; then
6041     if test "$lt_cv_prog_gnu_ld" = yes; then
6042       case `/usr/bin/file conftest.$ac_objext` in
6043         *32-bit*)
6044           LD="${LD-ld} -melf32bsmip"
6045           ;;
6046         *N32*)
6047           LD="${LD-ld} -melf32bmipn32"
6048           ;;
6049         *64-bit*)
6050           LD="${LD-ld} -melf64bmip"
6051         ;;
6052       esac
6053     else
6054       case `/usr/bin/file conftest.$ac_objext` in
6055         *32-bit*)
6056           LD="${LD-ld} -32"
6057           ;;
6058         *N32*)
6059           LD="${LD-ld} -n32"
6060           ;;
6061         *64-bit*)
6062           LD="${LD-ld} -64"
6063           ;;
6064       esac
6065     fi
6066   fi
6067   rm -rf conftest*
6068   ;;
6069
6070 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6071 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6072   # Find out which ABI we are using.
6073   echo 'int i;' > conftest.$ac_ext
6074   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075   (eval $ac_compile) 2>&5
6076   ac_status=$?
6077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); }; then
6079     case `/usr/bin/file conftest.o` in
6080       *32-bit*)
6081         case $host in
6082           x86_64-*kfreebsd*-gnu)
6083             LD="${LD-ld} -m elf_i386_fbsd"
6084             ;;
6085           x86_64-*linux*)
6086             LD="${LD-ld} -m elf_i386"
6087             ;;
6088           ppc64-*linux*|powerpc64-*linux*)
6089             LD="${LD-ld} -m elf32ppclinux"
6090             ;;
6091           s390x-*linux*)
6092             LD="${LD-ld} -m elf_s390"
6093             ;;
6094           sparc64-*linux*)
6095             LD="${LD-ld} -m elf32_sparc"
6096             ;;
6097         esac
6098         ;;
6099       *64-bit*)
6100         case $host in
6101           x86_64-*kfreebsd*-gnu)
6102             LD="${LD-ld} -m elf_x86_64_fbsd"
6103             ;;
6104           x86_64-*linux*)
6105             LD="${LD-ld} -m elf_x86_64"
6106             ;;
6107           ppc*-*linux*|powerpc*-*linux*)
6108             LD="${LD-ld} -m elf64ppc"
6109             ;;
6110           s390*-*linux*|s390*-*tpf*)
6111             LD="${LD-ld} -m elf64_s390"
6112             ;;
6113           sparc*-*linux*)
6114             LD="${LD-ld} -m elf64_sparc"
6115             ;;
6116         esac
6117         ;;
6118     esac
6119   fi
6120   rm -rf conftest*
6121   ;;
6122
6123 *-*-sco3.2v5*)
6124   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6125   SAVE_CFLAGS="$CFLAGS"
6126   CFLAGS="$CFLAGS -belf"
6127   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6128 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6129 if test "${lt_cv_cc_needs_belf+set}" = set; then
6130   $as_echo_n "(cached) " >&6
6131 else
6132   ac_ext=c
6133 ac_cpp='$CPP $CPPFLAGS'
6134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
6138      cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h.  */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h.  */
6144
6145 int
6146 main ()
6147 {
6148
6149   ;
6150   return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest.$ac_objext conftest$ac_exeext
6154 if { (ac_try="$ac_link"
6155 case "(($ac_try" in
6156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157   *) ac_try_echo=$ac_try;;
6158 esac
6159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160 $as_echo "$ac_try_echo") >&5
6161   (eval "$ac_link") 2>conftest.er1
6162   ac_status=$?
6163   grep -v '^ *+' conftest.er1 >conftest.err
6164   rm -f conftest.er1
6165   cat conftest.err >&5
6166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } && {
6168          test -z "$ac_c_werror_flag" ||
6169          test ! -s conftest.err
6170        } && test -s conftest$ac_exeext && {
6171          test "$cross_compiling" = yes ||
6172          $as_test_x conftest$ac_exeext
6173        }; then
6174   lt_cv_cc_needs_belf=yes
6175 else
6176   $as_echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179         lt_cv_cc_needs_belf=no
6180 fi
6181
6182 rm -rf conftest.dSYM
6183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6184       conftest$ac_exeext conftest.$ac_ext
6185      ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191 fi
6192 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6193 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6194   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6195     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6196     CFLAGS="$SAVE_CFLAGS"
6197   fi
6198   ;;
6199 sparc*-*solaris*)
6200   # Find out which ABI we are using.
6201   echo 'int i;' > conftest.$ac_ext
6202   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203   (eval $ac_compile) 2>&5
6204   ac_status=$?
6205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; then
6207     case `/usr/bin/file conftest.o` in
6208     *64-bit*)
6209       case $lt_cv_prog_gnu_ld in
6210       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6211       *)
6212         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6213           LD="${LD-ld} -64"
6214         fi
6215         ;;
6216       esac
6217       ;;
6218     esac
6219   fi
6220   rm -rf conftest*
6221   ;;
6222 esac
6223
6224 need_locks="$enable_libtool_lock"
6225
6226
6227   case $host_os in
6228     rhapsody* | darwin*)
6229     if test -n "$ac_tool_prefix"; then
6230   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6231 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$DSYMUTIL"; then
6238   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6248     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6258 if test -n "$DSYMUTIL"; then
6259   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6260 $as_echo "$DSYMUTIL" >&6; }
6261 else
6262   { $as_echo "$as_me:$LINENO: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266
6267 fi
6268 if test -z "$ac_cv_prog_DSYMUTIL"; then
6269   ac_ct_DSYMUTIL=$DSYMUTIL
6270   # Extract the first word of "dsymutil", so it can be a program name with args.
6271 set dummy dsymutil; ac_word=$2
6272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6275   $as_echo_n "(cached) " >&6
6276 else
6277   if test -n "$ac_ct_DSYMUTIL"; then
6278   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285   for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6288     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6298 if test -n "$ac_ct_DSYMUTIL"; then
6299   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6300 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6301 else
6302   { $as_echo "$as_me:$LINENO: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306   if test "x$ac_ct_DSYMUTIL" = x; then
6307     DSYMUTIL=":"
6308   else
6309     case $cross_compiling:$ac_tool_warned in
6310 yes:)
6311 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313 ac_tool_warned=yes ;;
6314 esac
6315     DSYMUTIL=$ac_ct_DSYMUTIL
6316   fi
6317 else
6318   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6319 fi
6320
6321     if test -n "$ac_tool_prefix"; then
6322   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6327   $as_echo_n "(cached) " >&6
6328 else
6329   if test -n "$NMEDIT"; then
6330   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337   for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6340     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 NMEDIT=$ac_cv_prog_NMEDIT
6350 if test -n "$NMEDIT"; then
6351   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6352 $as_echo "$NMEDIT" >&6; }
6353 else
6354   { $as_echo "$as_me:$LINENO: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358
6359 fi
6360 if test -z "$ac_cv_prog_NMEDIT"; then
6361   ac_ct_NMEDIT=$NMEDIT
6362   # Extract the first word of "nmedit", so it can be a program name with args.
6363 set dummy nmedit; ac_word=$2
6364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6365 $as_echo_n "checking for $ac_word... " >&6; }
6366 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6367   $as_echo_n "(cached) " >&6
6368 else
6369   if test -n "$ac_ct_NMEDIT"; then
6370   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6371 else
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377   for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6380     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387 fi
6388 fi
6389 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6390 if test -n "$ac_ct_NMEDIT"; then
6391   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6392 $as_echo "$ac_ct_NMEDIT" >&6; }
6393 else
6394   { $as_echo "$as_me:$LINENO: result: no" >&5
6395 $as_echo "no" >&6; }
6396 fi
6397
6398   if test "x$ac_ct_NMEDIT" = x; then
6399     NMEDIT=":"
6400   else
6401     case $cross_compiling:$ac_tool_warned in
6402 yes:)
6403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405 ac_tool_warned=yes ;;
6406 esac
6407     NMEDIT=$ac_ct_NMEDIT
6408   fi
6409 else
6410   NMEDIT="$ac_cv_prog_NMEDIT"
6411 fi
6412
6413     if test -n "$ac_tool_prefix"; then
6414   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6415 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_prog_LIPO+set}" = set; then
6419   $as_echo_n "(cached) " >&6
6420 else
6421   if test -n "$LIPO"; then
6422   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429   for ac_exec_ext in '' $ac_executable_extensions; do
6430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6432     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433     break 2
6434   fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 fi
6440 fi
6441 LIPO=$ac_cv_prog_LIPO
6442 if test -n "$LIPO"; then
6443   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6444 $as_echo "$LIPO" >&6; }
6445 else
6446   { $as_echo "$as_me:$LINENO: result: no" >&5
6447 $as_echo "no" >&6; }
6448 fi
6449
6450
6451 fi
6452 if test -z "$ac_cv_prog_LIPO"; then
6453   ac_ct_LIPO=$LIPO
6454   # Extract the first word of "lipo", so it can be a program name with args.
6455 set dummy lipo; ac_word=$2
6456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$ac_ct_LIPO"; then
6462   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469   for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_ac_ct_LIPO="lipo"
6472     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6482 if test -n "$ac_ct_LIPO"; then
6483   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6484 $as_echo "$ac_ct_LIPO" >&6; }
6485 else
6486   { $as_echo "$as_me:$LINENO: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490   if test "x$ac_ct_LIPO" = x; then
6491     LIPO=":"
6492   else
6493     case $cross_compiling:$ac_tool_warned in
6494 yes:)
6495 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6498 esac
6499     LIPO=$ac_ct_LIPO
6500   fi
6501 else
6502   LIPO="$ac_cv_prog_LIPO"
6503 fi
6504
6505     if test -n "$ac_tool_prefix"; then
6506   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6507 set dummy ${ac_tool_prefix}otool; ac_word=$2
6508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if test "${ac_cv_prog_OTOOL+set}" = set; then
6511   $as_echo_n "(cached) " >&6
6512 else
6513   if test -n "$OTOOL"; then
6514   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6515 else
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519   IFS=$as_save_IFS
6520   test -z "$as_dir" && as_dir=.
6521   for ac_exec_ext in '' $ac_executable_extensions; do
6522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6524     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525     break 2
6526   fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531 fi
6532 fi
6533 OTOOL=$ac_cv_prog_OTOOL
6534 if test -n "$OTOOL"; then
6535   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6536 $as_echo "$OTOOL" >&6; }
6537 else
6538   { $as_echo "$as_me:$LINENO: result: no" >&5
6539 $as_echo "no" >&6; }
6540 fi
6541
6542
6543 fi
6544 if test -z "$ac_cv_prog_OTOOL"; then
6545   ac_ct_OTOOL=$OTOOL
6546   # Extract the first word of "otool", so it can be a program name with args.
6547 set dummy otool; ac_word=$2
6548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6551   $as_echo_n "(cached) " >&6
6552 else
6553   if test -n "$ac_ct_OTOOL"; then
6554   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561   for ac_exec_ext in '' $ac_executable_extensions; do
6562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563     ac_cv_prog_ac_ct_OTOOL="otool"
6564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568 done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6574 if test -n "$ac_ct_OTOOL"; then
6575   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6576 $as_echo "$ac_ct_OTOOL" >&6; }
6577 else
6578   { $as_echo "$as_me:$LINENO: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582   if test "x$ac_ct_OTOOL" = x; then
6583     OTOOL=":"
6584   else
6585     case $cross_compiling:$ac_tool_warned in
6586 yes:)
6587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589 ac_tool_warned=yes ;;
6590 esac
6591     OTOOL=$ac_ct_OTOOL
6592   fi
6593 else
6594   OTOOL="$ac_cv_prog_OTOOL"
6595 fi
6596
6597     if test -n "$ac_tool_prefix"; then
6598   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6599 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6603   $as_echo_n "(cached) " >&6
6604 else
6605   if test -n "$OTOOL64"; then
6606   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611   IFS=$as_save_IFS
6612   test -z "$as_dir" && as_dir=.
6613   for ac_exec_ext in '' $ac_executable_extensions; do
6614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617     break 2
6618   fi
6619 done
6620 done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 OTOOL64=$ac_cv_prog_OTOOL64
6626 if test -n "$OTOOL64"; then
6627   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6628 $as_echo "$OTOOL64" >&6; }
6629 else
6630   { $as_echo "$as_me:$LINENO: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634
6635 fi
6636 if test -z "$ac_cv_prog_OTOOL64"; then
6637   ac_ct_OTOOL64=$OTOOL64
6638   # Extract the first word of "otool64", so it can be a program name with args.
6639 set dummy otool64; ac_word=$2
6640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6643   $as_echo_n "(cached) " >&6
6644 else
6645   if test -n "$ac_ct_OTOOL64"; then
6646   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653   for ac_exec_ext in '' $ac_executable_extensions; do
6654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655     ac_cv_prog_ac_ct_OTOOL64="otool64"
6656     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660 done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6666 if test -n "$ac_ct_OTOOL64"; then
6667   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6668 $as_echo "$ac_ct_OTOOL64" >&6; }
6669 else
6670   { $as_echo "$as_me:$LINENO: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674   if test "x$ac_ct_OTOOL64" = x; then
6675     OTOOL64=":"
6676   else
6677     case $cross_compiling:$ac_tool_warned in
6678 yes:)
6679 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681 ac_tool_warned=yes ;;
6682 esac
6683     OTOOL64=$ac_ct_OTOOL64
6684   fi
6685 else
6686   OTOOL64="$ac_cv_prog_OTOOL64"
6687 fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6716 $as_echo_n "checking for -single_module linker flag... " >&6; }
6717 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6718   $as_echo_n "(cached) " >&6
6719 else
6720   lt_cv_apple_cc_single_mod=no
6721       if test -z "${LT_MULTI_MODULE}"; then
6722         # By default we will add the -single_module flag. You can override
6723         # by either setting the environment variable LT_MULTI_MODULE
6724         # non-empty at configure time, or by adding -multi_module to the
6725         # link flags.
6726         rm -rf libconftest.dylib*
6727         echo "int foo(void){return 1;}" > conftest.c
6728         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6729 -dynamiclib -Wl,-single_module conftest.c" >&5
6730         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6731           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6732         _lt_result=$?
6733         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6734           lt_cv_apple_cc_single_mod=yes
6735         else
6736           cat conftest.err >&5
6737         fi
6738         rm -rf libconftest.dylib*
6739         rm -f conftest.*
6740       fi
6741 fi
6742 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6743 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6744     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6745 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6746 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6747   $as_echo_n "(cached) " >&6
6748 else
6749   lt_cv_ld_exported_symbols_list=no
6750       save_LDFLAGS=$LDFLAGS
6751       echo "_main" > conftest.sym
6752       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6753       cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h.  */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h.  */
6759
6760 int
6761 main ()
6762 {
6763
6764   ;
6765   return 0;
6766 }
6767 _ACEOF
6768 rm -f conftest.$ac_objext conftest$ac_exeext
6769 if { (ac_try="$ac_link"
6770 case "(($ac_try" in
6771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772   *) ac_try_echo=$ac_try;;
6773 esac
6774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6775 $as_echo "$ac_try_echo") >&5
6776   (eval "$ac_link") 2>conftest.er1
6777   ac_status=$?
6778   grep -v '^ *+' conftest.er1 >conftest.err
6779   rm -f conftest.er1
6780   cat conftest.err >&5
6781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); } && {
6783          test -z "$ac_c_werror_flag" ||
6784          test ! -s conftest.err
6785        } && test -s conftest$ac_exeext && {
6786          test "$cross_compiling" = yes ||
6787          $as_test_x conftest$ac_exeext
6788        }; then
6789   lt_cv_ld_exported_symbols_list=yes
6790 else
6791   $as_echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794         lt_cv_ld_exported_symbols_list=no
6795 fi
6796
6797 rm -rf conftest.dSYM
6798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6799       conftest$ac_exeext conftest.$ac_ext
6800         LDFLAGS="$save_LDFLAGS"
6801
6802 fi
6803 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6804 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6805     case $host_os in
6806     rhapsody* | darwin1.[012])
6807       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6808     darwin1.*)
6809       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6810     darwin*) # darwin 5.x on
6811       # if running on 10.5 or later, the deployment target defaults
6812       # to the OS version, if on x86, and 10.4, the deployment
6813       # target defaults to 10.4. Don't you love it?
6814       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6815         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6816           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6817         10.[012]*)
6818           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6819         10.*)
6820           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6821       esac
6822     ;;
6823   esac
6824     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6825       _lt_dar_single_mod='$single_module'
6826     fi
6827     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6828       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6829     else
6830       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6831     fi
6832     if test "$DSYMUTIL" != ":"; then
6833       _lt_dsymutil='~$DSYMUTIL $lib || :'
6834     else
6835       _lt_dsymutil=
6836     fi
6837     ;;
6838   esac
6839
6840 ac_ext=c
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6846 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6847 # On Suns, sometimes $CPP names a directory.
6848 if test -n "$CPP" && test -d "$CPP"; then
6849   CPP=
6850 fi
6851 if test -z "$CPP"; then
6852   if test "${ac_cv_prog_CPP+set}" = set; then
6853   $as_echo_n "(cached) " >&6
6854 else
6855       # Double quotes because CPP needs to be expanded
6856     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6857     do
6858       ac_preproc_ok=false
6859 for ac_c_preproc_warn_flag in '' yes
6860 do
6861   # Use a header file that comes with gcc, so configuring glibc
6862   # with a fresh cross-compiler works.
6863   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864   # <limits.h> exists even on freestanding compilers.
6865   # On the NeXT, cc -E runs the code through the compiler's parser,
6866   # not just through cpp. "Syntax error" is here to catch this case.
6867   cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h.  */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h.  */
6873 #ifdef __STDC__
6874 # include <limits.h>
6875 #else
6876 # include <assert.h>
6877 #endif
6878                      Syntax error
6879 _ACEOF
6880 if { (ac_try="$ac_cpp conftest.$ac_ext"
6881 case "(($ac_try" in
6882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883   *) ac_try_echo=$ac_try;;
6884 esac
6885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6886 $as_echo "$ac_try_echo") >&5
6887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6888   ac_status=$?
6889   grep -v '^ *+' conftest.er1 >conftest.err
6890   rm -f conftest.er1
6891   cat conftest.err >&5
6892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } >/dev/null && {
6894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6895          test ! -s conftest.err
6896        }; then
6897   :
6898 else
6899   $as_echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902   # Broken: fails on valid input.
6903 continue
6904 fi
6905
6906 rm -f conftest.err conftest.$ac_ext
6907
6908   # OK, works on sane cases.  Now check whether nonexistent headers
6909   # can be detected and how.
6910   cat >conftest.$ac_ext <<_ACEOF
6911 /* confdefs.h.  */
6912 _ACEOF
6913 cat confdefs.h >>conftest.$ac_ext
6914 cat >>conftest.$ac_ext <<_ACEOF
6915 /* end confdefs.h.  */
6916 #include <ac_nonexistent.h>
6917 _ACEOF
6918 if { (ac_try="$ac_cpp conftest.$ac_ext"
6919 case "(($ac_try" in
6920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921   *) ac_try_echo=$ac_try;;
6922 esac
6923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6924 $as_echo "$ac_try_echo") >&5
6925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6926   ac_status=$?
6927   grep -v '^ *+' conftest.er1 >conftest.err
6928   rm -f conftest.er1
6929   cat conftest.err >&5
6930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); } >/dev/null && {
6932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6933          test ! -s conftest.err
6934        }; then
6935   # Broken: success on invalid input.
6936 continue
6937 else
6938   $as_echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6940
6941   # Passes both tests.
6942 ac_preproc_ok=:
6943 break
6944 fi
6945
6946 rm -f conftest.err conftest.$ac_ext
6947
6948 done
6949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6950 rm -f conftest.err conftest.$ac_ext
6951 if $ac_preproc_ok; then
6952   break
6953 fi
6954
6955     done
6956     ac_cv_prog_CPP=$CPP
6957
6958 fi
6959   CPP=$ac_cv_prog_CPP
6960 else
6961   ac_cv_prog_CPP=$CPP
6962 fi
6963 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6964 $as_echo "$CPP" >&6; }
6965 ac_preproc_ok=false
6966 for ac_c_preproc_warn_flag in '' yes
6967 do
6968   # Use a header file that comes with gcc, so configuring glibc
6969   # with a fresh cross-compiler works.
6970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971   # <limits.h> exists even on freestanding compilers.
6972   # On the NeXT, cc -E runs the code through the compiler's parser,
6973   # not just through cpp. "Syntax error" is here to catch this case.
6974   cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980 #ifdef __STDC__
6981 # include <limits.h>
6982 #else
6983 # include <assert.h>
6984 #endif
6985                      Syntax error
6986 _ACEOF
6987 if { (ac_try="$ac_cpp conftest.$ac_ext"
6988 case "(($ac_try" in
6989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990   *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6995   ac_status=$?
6996   grep -v '^ *+' conftest.er1 >conftest.err
6997   rm -f conftest.er1
6998   cat conftest.err >&5
6999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000   (exit $ac_status); } >/dev/null && {
7001          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002          test ! -s conftest.err
7003        }; then
7004   :
7005 else
7006   $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7008
7009   # Broken: fails on valid input.
7010 continue
7011 fi
7012
7013 rm -f conftest.err conftest.$ac_ext
7014
7015   # OK, works on sane cases.  Now check whether nonexistent headers
7016   # can be detected and how.
7017   cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h.  */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h.  */
7023 #include <ac_nonexistent.h>
7024 _ACEOF
7025 if { (ac_try="$ac_cpp conftest.$ac_ext"
7026 case "(($ac_try" in
7027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028   *) ac_try_echo=$ac_try;;
7029 esac
7030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7031 $as_echo "$ac_try_echo") >&5
7032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7033   ac_status=$?
7034   grep -v '^ *+' conftest.er1 >conftest.err
7035   rm -f conftest.er1
7036   cat conftest.err >&5
7037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); } >/dev/null && {
7039          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7040          test ! -s conftest.err
7041        }; then
7042   # Broken: success on invalid input.
7043 continue
7044 else
7045   $as_echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7047
7048   # Passes both tests.
7049 ac_preproc_ok=:
7050 break
7051 fi
7052
7053 rm -f conftest.err conftest.$ac_ext
7054
7055 done
7056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7057 rm -f conftest.err conftest.$ac_ext
7058 if $ac_preproc_ok; then
7059   :
7060 else
7061   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7063 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7064 See \`config.log' for more details." >&5
7065 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7066 See \`config.log' for more details." >&2;}
7067    { (exit 1); exit 1; }; }; }
7068 fi
7069
7070 ac_ext=c
7071 ac_cpp='$CPP $CPPFLAGS'
7072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075
7076
7077 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7078 $as_echo_n "checking for ANSI C header files... " >&6; }
7079 if test "${ac_cv_header_stdc+set}" = set; then
7080   $as_echo_n "(cached) " >&6
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088 #include <stdlib.h>
7089 #include <stdarg.h>
7090 #include <string.h>
7091 #include <float.h>
7092
7093 int
7094 main ()
7095 {
7096
7097   ;
7098   return 0;
7099 }
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7103 case "(($ac_try" in
7104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105   *) ac_try_echo=$ac_try;;
7106 esac
7107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7108 $as_echo "$ac_try_echo") >&5
7109   (eval "$ac_compile") 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } && {
7116          test -z "$ac_c_werror_flag" ||
7117          test ! -s conftest.err
7118        } && test -s conftest.$ac_objext; then
7119   ac_cv_header_stdc=yes
7120 else
7121   $as_echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.$ac_ext >&5
7123
7124         ac_cv_header_stdc=no
7125 fi
7126
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128
7129 if test $ac_cv_header_stdc = yes; then
7130   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7131   cat >conftest.$ac_ext <<_ACEOF
7132 /* confdefs.h.  */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h.  */
7137 #include <string.h>
7138
7139 _ACEOF
7140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7141   $EGREP "memchr" >/dev/null 2>&1; then
7142   :
7143 else
7144   ac_cv_header_stdc=no
7145 fi
7146 rm -f conftest*
7147
7148 fi
7149
7150 if test $ac_cv_header_stdc = yes; then
7151   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7152   cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158 #include <stdlib.h>
7159
7160 _ACEOF
7161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7162   $EGREP "free" >/dev/null 2>&1; then
7163   :
7164 else
7165   ac_cv_header_stdc=no
7166 fi
7167 rm -f conftest*
7168
7169 fi
7170
7171 if test $ac_cv_header_stdc = yes; then
7172   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7173   if test "$cross_compiling" = yes; then
7174   :
7175 else
7176   cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h.  */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h.  */
7182 #include <ctype.h>
7183 #include <stdlib.h>
7184 #if ((' ' & 0x0FF) == 0x020)
7185 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7186 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7187 #else
7188 # define ISLOWER(c) \
7189                    (('a' <= (c) && (c) <= 'i') \
7190                      || ('j' <= (c) && (c) <= 'r') \
7191                      || ('s' <= (c) && (c) <= 'z'))
7192 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7193 #endif
7194
7195 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7196 int
7197 main ()
7198 {
7199   int i;
7200   for (i = 0; i < 256; i++)
7201     if (XOR (islower (i), ISLOWER (i))
7202         || toupper (i) != TOUPPER (i))
7203       return 2;
7204   return 0;
7205 }
7206 _ACEOF
7207 rm -f conftest$ac_exeext
7208 if { (ac_try="$ac_link"
7209 case "(($ac_try" in
7210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211   *) ac_try_echo=$ac_try;;
7212 esac
7213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7214 $as_echo "$ac_try_echo") >&5
7215   (eval "$ac_link") 2>&5
7216   ac_status=$?
7217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7219   { (case "(($ac_try" in
7220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221   *) ac_try_echo=$ac_try;;
7222 esac
7223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7224 $as_echo "$ac_try_echo") >&5
7225   (eval "$ac_try") 2>&5
7226   ac_status=$?
7227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; }; then
7229   :
7230 else
7231   $as_echo "$as_me: program exited with status $ac_status" >&5
7232 $as_echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 ( exit $ac_status )
7236 ac_cv_header_stdc=no
7237 fi
7238 rm -rf conftest.dSYM
7239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7240 fi
7241
7242
7243 fi
7244 fi
7245 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7246 $as_echo "$ac_cv_header_stdc" >&6; }
7247 if test $ac_cv_header_stdc = yes; then
7248
7249 cat >>confdefs.h <<\_ACEOF
7250 #define STDC_HEADERS 1
7251 _ACEOF
7252
7253 fi
7254
7255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7266                   inttypes.h stdint.h unistd.h
7267 do
7268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7270 $as_echo_n "checking for $ac_header... " >&6; }
7271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272   $as_echo_n "(cached) " >&6
7273 else
7274   cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280 $ac_includes_default
7281
7282 #include <$ac_header>
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7286 case "(($ac_try" in
7287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288   *) ac_try_echo=$ac_try;;
7289 esac
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292   (eval "$ac_compile") 2>conftest.er1
7293   ac_status=$?
7294   grep -v '^ *+' conftest.er1 >conftest.err
7295   rm -f conftest.er1
7296   cat conftest.err >&5
7297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); } && {
7299          test -z "$ac_c_werror_flag" ||
7300          test ! -s conftest.err
7301        } && test -s conftest.$ac_objext; then
7302   eval "$as_ac_Header=yes"
7303 else
7304   $as_echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307         eval "$as_ac_Header=no"
7308 fi
7309
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 fi
7312 ac_res=`eval 'as_val=${'$as_ac_Header'}
7313                  $as_echo "$as_val"'`
7314                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7315 $as_echo "$ac_res" >&6; }
7316 as_val=`eval 'as_val=${'$as_ac_Header'}
7317                  $as_echo "$as_val"'`
7318    if test "x$as_val" = x""yes; then
7319   cat >>confdefs.h <<_ACEOF
7320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321 _ACEOF
7322
7323 fi
7324
7325 done
7326
7327
7328
7329 for ac_header in dlfcn.h
7330 do
7331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7332 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7333 $as_echo_n "checking for $ac_header... " >&6; }
7334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7335   $as_echo_n "(cached) " >&6
7336 else
7337   cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h.  */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h.  */
7343 $ac_includes_default
7344
7345 #include <$ac_header>
7346 _ACEOF
7347 rm -f conftest.$ac_objext
7348 if { (ac_try="$ac_compile"
7349 case "(($ac_try" in
7350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351   *) ac_try_echo=$ac_try;;
7352 esac
7353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355   (eval "$ac_compile") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } && {
7362          test -z "$ac_c_werror_flag" ||
7363          test ! -s conftest.err
7364        } && test -s conftest.$ac_objext; then
7365   eval "$as_ac_Header=yes"
7366 else
7367   $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370         eval "$as_ac_Header=no"
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 ac_res=`eval 'as_val=${'$as_ac_Header'}
7376                  $as_echo "$as_val"'`
7377                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7378 $as_echo "$ac_res" >&6; }
7379 as_val=`eval 'as_val=${'$as_ac_Header'}
7380                  $as_echo "$as_val"'`
7381    if test "x$as_val" = x""yes; then
7382   cat >>confdefs.h <<_ACEOF
7383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7384 _ACEOF
7385
7386 fi
7387
7388 done
7389
7390
7391
7392 # Set options
7393
7394
7395
7396         enable_dlopen=no
7397
7398
7399   enable_win32_dll=no
7400
7401
7402             # Check whether --enable-shared was given.
7403 if test "${enable_shared+set}" = set; then
7404   enableval=$enable_shared; p=${PACKAGE-default}
7405     case $enableval in
7406     yes) enable_shared=yes ;;
7407     no) enable_shared=no ;;
7408     *)
7409       enable_shared=no
7410       # Look at the argument we got.  We use all the common list separators.
7411       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412       for pkg in $enableval; do
7413         IFS="$lt_save_ifs"
7414         if test "X$pkg" = "X$p"; then
7415           enable_shared=yes
7416         fi
7417       done
7418       IFS="$lt_save_ifs"
7419       ;;
7420     esac
7421 else
7422   enable_shared=yes
7423 fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433   # Check whether --enable-static was given.
7434 if test "${enable_static+set}" = set; then
7435   enableval=$enable_static; p=${PACKAGE-default}
7436     case $enableval in
7437     yes) enable_static=yes ;;
7438     no) enable_static=no ;;
7439     *)
7440      enable_static=no
7441       # Look at the argument we got.  We use all the common list separators.
7442       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7443       for pkg in $enableval; do
7444         IFS="$lt_save_ifs"
7445         if test "X$pkg" = "X$p"; then
7446           enable_static=yes
7447         fi
7448       done
7449       IFS="$lt_save_ifs"
7450       ;;
7451     esac
7452 else
7453   enable_static=yes
7454 fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465 # Check whether --with-pic was given.
7466 if test "${with_pic+set}" = set; then
7467   withval=$with_pic; pic_mode="$withval"
7468 else
7469   pic_mode=default
7470 fi
7471
7472
7473 test -z "$pic_mode" && pic_mode=default
7474
7475
7476
7477
7478
7479
7480
7481   # Check whether --enable-fast-install was given.
7482 if test "${enable_fast_install+set}" = set; then
7483   enableval=$enable_fast_install; p=${PACKAGE-default}
7484     case $enableval in
7485     yes) enable_fast_install=yes ;;
7486     no) enable_fast_install=no ;;
7487     *)
7488       enable_fast_install=no
7489       # Look at the argument we got.  We use all the common list separators.
7490       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491       for pkg in $enableval; do
7492         IFS="$lt_save_ifs"
7493         if test "X$pkg" = "X$p"; then
7494           enable_fast_install=yes
7495         fi
7496       done
7497       IFS="$lt_save_ifs"
7498       ;;
7499     esac
7500 else
7501   enable_fast_install=yes
7502 fi
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514 # This can be used to rebuild libtool when needed
7515 LIBTOOL_DEPS="$ltmain"
7516
7517 # Always use our own libtool.
7518 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544 test -z "$LN_S" && LN_S="ln -s"
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559 if test -n "${ZSH_VERSION+set}" ; then
7560    setopt NO_GLOB_SUBST
7561 fi
7562
7563 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7564 $as_echo_n "checking for objdir... " >&6; }
7565 if test "${lt_cv_objdir+set}" = set; then
7566   $as_echo_n "(cached) " >&6
7567 else
7568   rm -f .libs 2>/dev/null
7569 mkdir .libs 2>/dev/null
7570 if test -d .libs; then
7571   lt_cv_objdir=.libs
7572 else
7573   # MS-DOS does not allow filenames that begin with a dot.
7574   lt_cv_objdir=_libs
7575 fi
7576 rmdir .libs 2>/dev/null
7577 fi
7578 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7579 $as_echo "$lt_cv_objdir" >&6; }
7580 objdir=$lt_cv_objdir
7581
7582
7583
7584
7585
7586 cat >>confdefs.h <<_ACEOF
7587 #define LT_OBJDIR "$lt_cv_objdir/"
7588 _ACEOF
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606 case $host_os in
7607 aix3*)
7608   # AIX sometimes has problems with the GCC collect2 program.  For some
7609   # reason, if we set the COLLECT_NAMES environment variable, the problems
7610   # vanish in a puff of smoke.
7611   if test "X${COLLECT_NAMES+set}" != Xset; then
7612     COLLECT_NAMES=
7613     export COLLECT_NAMES
7614   fi
7615   ;;
7616 esac
7617
7618 # Sed substitution that helps us do robust quoting.  It backslashifies
7619 # metacharacters that are still active within double-quoted strings.
7620 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7621
7622 # Same as above, but do not quote variable references.
7623 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7624
7625 # Sed substitution to delay expansion of an escaped shell variable in a
7626 # double_quote_subst'ed string.
7627 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7628
7629 # Sed substitution to delay expansion of an escaped single quote.
7630 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7631
7632 # Sed substitution to avoid accidental globbing in evaled expressions
7633 no_glob_subst='s/\*/\\\*/g'
7634
7635 # Global variables:
7636 ofile=libtool
7637 can_build_shared=yes
7638
7639 # All known linkers require a `.a' archive for static linking (except MSVC,
7640 # which needs '.lib').
7641 libext=a
7642
7643 with_gnu_ld="$lt_cv_prog_gnu_ld"
7644
7645 old_CC="$CC"
7646 old_CFLAGS="$CFLAGS"
7647
7648 # Set sane defaults for various variables
7649 test -z "$CC" && CC=cc
7650 test -z "$LTCC" && LTCC=$CC
7651 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7652 test -z "$LD" && LD=ld
7653 test -z "$ac_objext" && ac_objext=o
7654
7655 for cc_temp in $compiler""; do
7656   case $cc_temp in
7657     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7658     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7659     \-*) ;;
7660     *) break;;
7661   esac
7662 done
7663 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7664
7665
7666 # Only perform the check for file, if the check method requires it
7667 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7668 case $deplibs_check_method in
7669 file_magic*)
7670   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7671     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7672 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7673 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7674   $as_echo_n "(cached) " >&6
7675 else
7676   case $MAGIC_CMD in
7677 [\\/*] |  ?:[\\/]*)
7678   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7679   ;;
7680 *)
7681   lt_save_MAGIC_CMD="$MAGIC_CMD"
7682   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7683   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7684   for ac_dir in $ac_dummy; do
7685     IFS="$lt_save_ifs"
7686     test -z "$ac_dir" && ac_dir=.
7687     if test -f $ac_dir/${ac_tool_prefix}file; then
7688       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7689       if test -n "$file_magic_test_file"; then
7690         case $deplibs_check_method in
7691         "file_magic "*)
7692           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7693           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7695             $EGREP "$file_magic_regex" > /dev/null; then
7696             :
7697           else
7698             cat <<_LT_EOF 1>&2
7699
7700 *** Warning: the command libtool uses to detect shared libraries,
7701 *** $file_magic_cmd, produces output that libtool cannot recognize.
7702 *** The result is that libtool may fail to recognize shared libraries
7703 *** as such.  This will affect the creation of libtool libraries that
7704 *** depend on shared libraries, but programs linked with such libtool
7705 *** libraries will work regardless of this problem.  Nevertheless, you
7706 *** may want to report the problem to your system manager and/or to
7707 *** bug-libtool@gnu.org
7708
7709 _LT_EOF
7710           fi ;;
7711         esac
7712       fi
7713       break
7714     fi
7715   done
7716   IFS="$lt_save_ifs"
7717   MAGIC_CMD="$lt_save_MAGIC_CMD"
7718   ;;
7719 esac
7720 fi
7721
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if test -n "$MAGIC_CMD"; then
7724   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7725 $as_echo "$MAGIC_CMD" >&6; }
7726 else
7727   { $as_echo "$as_me:$LINENO: result: no" >&5
7728 $as_echo "no" >&6; }
7729 fi
7730
7731
7732
7733
7734
7735 if test -z "$lt_cv_path_MAGIC_CMD"; then
7736   if test -n "$ac_tool_prefix"; then
7737     { $as_echo "$as_me:$LINENO: checking for file" >&5
7738 $as_echo_n "checking for file... " >&6; }
7739 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7740   $as_echo_n "(cached) " >&6
7741 else
7742   case $MAGIC_CMD in
7743 [\\/*] |  ?:[\\/]*)
7744   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7745   ;;
7746 *)
7747   lt_save_MAGIC_CMD="$MAGIC_CMD"
7748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750   for ac_dir in $ac_dummy; do
7751     IFS="$lt_save_ifs"
7752     test -z "$ac_dir" && ac_dir=.
7753     if test -f $ac_dir/file; then
7754       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7755       if test -n "$file_magic_test_file"; then
7756         case $deplibs_check_method in
7757         "file_magic "*)
7758           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761             $EGREP "$file_magic_regex" > /dev/null; then
7762             :
7763           else
7764             cat <<_LT_EOF 1>&2
7765
7766 *** Warning: the command libtool uses to detect shared libraries,
7767 *** $file_magic_cmd, produces output that libtool cannot recognize.
7768 *** The result is that libtool may fail to recognize shared libraries
7769 *** as such.  This will affect the creation of libtool libraries that
7770 *** depend on shared libraries, but programs linked with such libtool
7771 *** libraries will work regardless of this problem.  Nevertheless, you
7772 *** may want to report the problem to your system manager and/or to
7773 *** bug-libtool@gnu.org
7774
7775 _LT_EOF
7776           fi ;;
7777         esac
7778       fi
7779       break
7780     fi
7781   done
7782   IFS="$lt_save_ifs"
7783   MAGIC_CMD="$lt_save_MAGIC_CMD"
7784   ;;
7785 esac
7786 fi
7787
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if test -n "$MAGIC_CMD"; then
7790   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7791 $as_echo "$MAGIC_CMD" >&6; }
7792 else
7793   { $as_echo "$as_me:$LINENO: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798   else
7799     MAGIC_CMD=:
7800   fi
7801 fi
7802
7803   fi
7804   ;;
7805 esac
7806
7807 # Use C for the default configuration in the libtool script
7808
7809 lt_save_CC="$CC"
7810 ac_ext=c
7811 ac_cpp='$CPP $CPPFLAGS'
7812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7815
7816
7817 # Source file extension for C test sources.
7818 ac_ext=c
7819
7820 # Object file extension for compiled C test sources.
7821 objext=o
7822 objext=$objext
7823
7824 # Code to be used in simple compile tests
7825 lt_simple_compile_test_code="int some_variable = 0;"
7826
7827 # Code to be used in simple link tests
7828 lt_simple_link_test_code='int main(){return(0);}'
7829
7830
7831
7832
7833
7834
7835
7836 # If no C compiler was specified, use CC.
7837 LTCC=${LTCC-"$CC"}
7838
7839 # If no C compiler flags were specified, use CFLAGS.
7840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7841
7842 # Allow CC to be a program name with arguments.
7843 compiler=$CC
7844
7845 # Save the default compiler, since it gets overwritten when the other
7846 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7847 compiler_DEFAULT=$CC
7848
7849 # save warnings/boilerplate of simple test code
7850 ac_outfile=conftest.$ac_objext
7851 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7852 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7853 _lt_compiler_boilerplate=`cat conftest.err`
7854 $RM conftest*
7855
7856 ac_outfile=conftest.$ac_objext
7857 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7858 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7859 _lt_linker_boilerplate=`cat conftest.err`
7860 $RM -r conftest*
7861
7862
7863 if test -n "$compiler"; then
7864
7865 lt_prog_compiler_no_builtin_flag=
7866
7867 if test "$GCC" = yes; then
7868   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7869
7870   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7871 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7872 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7873   $as_echo_n "(cached) " >&6
7874 else
7875   lt_cv_prog_compiler_rtti_exceptions=no
7876    ac_outfile=conftest.$ac_objext
7877    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878    lt_compiler_flag="-fno-rtti -fno-exceptions"
7879    # Insert the option either (1) after the last *FLAGS variable, or
7880    # (2) before a word containing "conftest.", or (3) at the end.
7881    # Note that $ac_compile itself does not contain backslashes and begins
7882    # with a dollar sign (not a hyphen), so the echo should work correctly.
7883    # The option is referenced via a variable to avoid confusing sed.
7884    lt_compile=`echo "$ac_compile" | $SED \
7885    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7886    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7887    -e 's:$: $lt_compiler_flag:'`
7888    (eval echo "\"\$as_me:7888: $lt_compile\"" >&5)
7889    (eval "$lt_compile" 2>conftest.err)
7890    ac_status=$?
7891    cat conftest.err >&5
7892    echo "$as_me:7892: \$? = $ac_status" >&5
7893    if (exit $ac_status) && test -s "$ac_outfile"; then
7894      # The compiler can only warn and ignore the option if not recognized
7895      # So say no if there are warnings other than the usual output.
7896      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7897      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7898      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7899        lt_cv_prog_compiler_rtti_exceptions=yes
7900      fi
7901    fi
7902    $RM conftest*
7903
7904 fi
7905 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7906 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7907
7908 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7909     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7910 else
7911     :
7912 fi
7913
7914 fi
7915
7916
7917
7918
7919
7920
7921   lt_prog_compiler_wl=
7922 lt_prog_compiler_pic=
7923 lt_prog_compiler_static=
7924
7925 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7926 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7927
7928   if test "$GCC" = yes; then
7929     lt_prog_compiler_wl='-Wl,'
7930     lt_prog_compiler_static='-static'
7931
7932     case $host_os in
7933       aix*)
7934       # All AIX code is PIC.
7935       if test "$host_cpu" = ia64; then
7936         # AIX 5 now supports IA64 processor
7937         lt_prog_compiler_static='-Bstatic'
7938       fi
7939       ;;
7940
7941     amigaos*)
7942       case $host_cpu in
7943       powerpc)
7944             # see comment about AmigaOS4 .so support
7945             lt_prog_compiler_pic='-fPIC'
7946         ;;
7947       m68k)
7948             # FIXME: we need at least 68020 code to build shared libraries, but
7949             # adding the `-m68020' flag to GCC prevents building anything better,
7950             # like `-m68040'.
7951             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7952         ;;
7953       esac
7954       ;;
7955
7956     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7957       # PIC is the default for these OSes.
7958       ;;
7959
7960     mingw* | cygwin* | pw32* | os2* | cegcc*)
7961       # This hack is so that the source file can tell whether it is being
7962       # built for inclusion in a dll (and should export symbols for example).
7963       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7964       # (--disable-auto-import) libraries
7965       lt_prog_compiler_pic='-DDLL_EXPORT'
7966       ;;
7967
7968     darwin* | rhapsody*)
7969       # PIC is the default on this platform
7970       # Common symbols not allowed in MH_DYLIB files
7971       lt_prog_compiler_pic='-fno-common'
7972       ;;
7973
7974     hpux*)
7975       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7976       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7977       # sets the default TLS model and affects inlining.
7978       case $host_cpu in
7979       hppa*64*)
7980         # +Z the default
7981         ;;
7982       *)
7983         lt_prog_compiler_pic='-fPIC'
7984         ;;
7985       esac
7986       ;;
7987
7988     interix[3-9]*)
7989       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7990       # Instead, we relocate shared libraries at runtime.
7991       ;;
7992
7993     msdosdjgpp*)
7994       # Just because we use GCC doesn't mean we suddenly get shared libraries
7995       # on systems that don't support them.
7996       lt_prog_compiler_can_build_shared=no
7997       enable_shared=no
7998       ;;
7999
8000     *nto* | *qnx*)
8001       # QNX uses GNU C++, but need to define -shared option too, otherwise
8002       # it will coredump.
8003       lt_prog_compiler_pic='-fPIC -shared'
8004       ;;
8005
8006     sysv4*MP*)
8007       if test -d /usr/nec; then
8008         lt_prog_compiler_pic=-Kconform_pic
8009       fi
8010       ;;
8011
8012     *)
8013       lt_prog_compiler_pic='-fPIC'
8014       ;;
8015     esac
8016   else
8017     # PORTME Check for flag to pass linker flags through the system compiler.
8018     case $host_os in
8019     aix*)
8020       lt_prog_compiler_wl='-Wl,'
8021       if test "$host_cpu" = ia64; then
8022         # AIX 5 now supports IA64 processor
8023         lt_prog_compiler_static='-Bstatic'
8024       else
8025         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8026       fi
8027       ;;
8028
8029     mingw* | cygwin* | pw32* | os2* | cegcc*)
8030       # This hack is so that the source file can tell whether it is being
8031       # built for inclusion in a dll (and should export symbols for example).
8032       lt_prog_compiler_pic='-DDLL_EXPORT'
8033       ;;
8034
8035     hpux9* | hpux10* | hpux11*)
8036       lt_prog_compiler_wl='-Wl,'
8037       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8038       # not for PA HP-UX.
8039       case $host_cpu in
8040       hppa*64*|ia64*)
8041         # +Z the default
8042         ;;
8043       *)
8044         lt_prog_compiler_pic='+Z'
8045         ;;
8046       esac
8047       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8048       lt_prog_compiler_static='${wl}-a ${wl}archive'
8049       ;;
8050
8051     irix5* | irix6* | nonstopux*)
8052       lt_prog_compiler_wl='-Wl,'
8053       # PIC (with -KPIC) is the default.
8054       lt_prog_compiler_static='-non_shared'
8055       ;;
8056
8057     linux* | k*bsd*-gnu)
8058       case $cc_basename in
8059       # old Intel for x86_64 which still supported -KPIC.
8060       ecc*)
8061         lt_prog_compiler_wl='-Wl,'
8062         lt_prog_compiler_pic='-KPIC'
8063         lt_prog_compiler_static='-static'
8064         ;;
8065       # icc used to be incompatible with GCC.
8066       # ICC 10 doesn't accept -KPIC any more.
8067       icc* | ifort*)
8068         lt_prog_compiler_wl='-Wl,'
8069         lt_prog_compiler_pic='-fPIC'
8070         lt_prog_compiler_static='-static'
8071         ;;
8072       # Lahey Fortran 8.1.
8073       lf95*)
8074         lt_prog_compiler_wl='-Wl,'
8075         lt_prog_compiler_pic='--shared'
8076         lt_prog_compiler_static='--static'
8077         ;;
8078       pgcc* | pgf77* | pgf90* | pgf95*)
8079         # Portland Group compilers (*not* the Pentium gcc compiler,
8080         # which looks to be a dead project)
8081         lt_prog_compiler_wl='-Wl,'
8082         lt_prog_compiler_pic='-fpic'
8083         lt_prog_compiler_static='-Bstatic'
8084         ;;
8085       ccc*)
8086         lt_prog_compiler_wl='-Wl,'
8087         # All Alpha code is PIC.
8088         lt_prog_compiler_static='-non_shared'
8089         ;;
8090       xl*)
8091         # IBM XL C 8.0/Fortran 10.1 on PPC
8092         lt_prog_compiler_wl='-Wl,'
8093         lt_prog_compiler_pic='-qpic'
8094         lt_prog_compiler_static='-qstaticlink'
8095         ;;
8096       *)
8097         case `$CC -V 2>&1 | sed 5q` in
8098         *Sun\ C*)
8099           # Sun C 5.9
8100           lt_prog_compiler_pic='-KPIC'
8101           lt_prog_compiler_static='-Bstatic'
8102           lt_prog_compiler_wl='-Wl,'
8103           ;;
8104         *Sun\ F*)
8105           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8106           lt_prog_compiler_pic='-KPIC'
8107           lt_prog_compiler_static='-Bstatic'
8108           lt_prog_compiler_wl=''
8109           ;;
8110         esac
8111         ;;
8112       esac
8113       ;;
8114
8115     newsos6)
8116       lt_prog_compiler_pic='-KPIC'
8117       lt_prog_compiler_static='-Bstatic'
8118       ;;
8119
8120     *nto* | *qnx*)
8121       # QNX uses GNU C++, but need to define -shared option too, otherwise
8122       # it will coredump.
8123       lt_prog_compiler_pic='-fPIC -shared'
8124       ;;
8125
8126     osf3* | osf4* | osf5*)
8127       lt_prog_compiler_wl='-Wl,'
8128       # All OSF/1 code is PIC.
8129       lt_prog_compiler_static='-non_shared'
8130       ;;
8131
8132     rdos*)
8133       lt_prog_compiler_static='-non_shared'
8134       ;;
8135
8136     solaris*)
8137       lt_prog_compiler_pic='-KPIC'
8138       lt_prog_compiler_static='-Bstatic'
8139       case $cc_basename in
8140       f77* | f90* | f95*)
8141         lt_prog_compiler_wl='-Qoption ld ';;
8142       *)
8143         lt_prog_compiler_wl='-Wl,';;
8144       esac
8145       ;;
8146
8147     sunos4*)
8148       lt_prog_compiler_wl='-Qoption ld '
8149       lt_prog_compiler_pic='-PIC'
8150       lt_prog_compiler_static='-Bstatic'
8151       ;;
8152
8153     sysv4 | sysv4.2uw2* | sysv4.3*)
8154       lt_prog_compiler_wl='-Wl,'
8155       lt_prog_compiler_pic='-KPIC'
8156       lt_prog_compiler_static='-Bstatic'
8157       ;;
8158
8159     sysv4*MP*)
8160       if test -d /usr/nec ;then
8161         lt_prog_compiler_pic='-Kconform_pic'
8162         lt_prog_compiler_static='-Bstatic'
8163       fi
8164       ;;
8165
8166     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8167       lt_prog_compiler_wl='-Wl,'
8168       lt_prog_compiler_pic='-KPIC'
8169       lt_prog_compiler_static='-Bstatic'
8170       ;;
8171
8172     unicos*)
8173       lt_prog_compiler_wl='-Wl,'
8174       lt_prog_compiler_can_build_shared=no
8175       ;;
8176
8177     uts4*)
8178       lt_prog_compiler_pic='-pic'
8179       lt_prog_compiler_static='-Bstatic'
8180       ;;
8181
8182     *)
8183       lt_prog_compiler_can_build_shared=no
8184       ;;
8185     esac
8186   fi
8187
8188 case $host_os in
8189   # For platforms which do not support PIC, -DPIC is meaningless:
8190   *djgpp*)
8191     lt_prog_compiler_pic=
8192     ;;
8193   *)
8194     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8195     ;;
8196 esac
8197 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8198 $as_echo "$lt_prog_compiler_pic" >&6; }
8199
8200
8201
8202
8203
8204
8205 #
8206 # Check to make sure the PIC flag actually works.
8207 #
8208 if test -n "$lt_prog_compiler_pic"; then
8209   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8210 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8211 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8212   $as_echo_n "(cached) " >&6
8213 else
8214   lt_cv_prog_compiler_pic_works=no
8215    ac_outfile=conftest.$ac_objext
8216    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8217    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8218    # Insert the option either (1) after the last *FLAGS variable, or
8219    # (2) before a word containing "conftest.", or (3) at the end.
8220    # Note that $ac_compile itself does not contain backslashes and begins
8221    # with a dollar sign (not a hyphen), so the echo should work correctly.
8222    # The option is referenced via a variable to avoid confusing sed.
8223    lt_compile=`echo "$ac_compile" | $SED \
8224    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8225    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8226    -e 's:$: $lt_compiler_flag:'`
8227    (eval echo "\"\$as_me:8227: $lt_compile\"" >&5)
8228    (eval "$lt_compile" 2>conftest.err)
8229    ac_status=$?
8230    cat conftest.err >&5
8231    echo "$as_me:8231: \$? = $ac_status" >&5
8232    if (exit $ac_status) && test -s "$ac_outfile"; then
8233      # The compiler can only warn and ignore the option if not recognized
8234      # So say no if there are warnings other than the usual output.
8235      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8236      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8237      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8238        lt_cv_prog_compiler_pic_works=yes
8239      fi
8240    fi
8241    $RM conftest*
8242
8243 fi
8244 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8245 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8246
8247 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8248     case $lt_prog_compiler_pic in
8249      "" | " "*) ;;
8250      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8251      esac
8252 else
8253     lt_prog_compiler_pic=
8254      lt_prog_compiler_can_build_shared=no
8255 fi
8256
8257 fi
8258
8259
8260
8261
8262
8263
8264 #
8265 # Check to make sure the static flag actually works.
8266 #
8267 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8268 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8269 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8270 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8271   $as_echo_n "(cached) " >&6
8272 else
8273   lt_cv_prog_compiler_static_works=no
8274    save_LDFLAGS="$LDFLAGS"
8275    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8276    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8277    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8278      # The linker can only warn and ignore the option if not recognized
8279      # So say no if there are warnings
8280      if test -s conftest.err; then
8281        # Append any errors to the config.log.
8282        cat conftest.err 1>&5
8283        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8284        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8285        if diff conftest.exp conftest.er2 >/dev/null; then
8286          lt_cv_prog_compiler_static_works=yes
8287        fi
8288      else
8289        lt_cv_prog_compiler_static_works=yes
8290      fi
8291    fi
8292    $RM -r conftest*
8293    LDFLAGS="$save_LDFLAGS"
8294
8295 fi
8296 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8297 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8298
8299 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8300     :
8301 else
8302     lt_prog_compiler_static=
8303 fi
8304
8305
8306
8307
8308
8309
8310
8311   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8312 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8313 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8314   $as_echo_n "(cached) " >&6
8315 else
8316   lt_cv_prog_compiler_c_o=no
8317    $RM -r conftest 2>/dev/null
8318    mkdir conftest
8319    cd conftest
8320    mkdir out
8321    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8322
8323    lt_compiler_flag="-o out/conftest2.$ac_objext"
8324    # Insert the option either (1) after the last *FLAGS variable, or
8325    # (2) before a word containing "conftest.", or (3) at the end.
8326    # Note that $ac_compile itself does not contain backslashes and begins
8327    # with a dollar sign (not a hyphen), so the echo should work correctly.
8328    lt_compile=`echo "$ac_compile" | $SED \
8329    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8330    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8331    -e 's:$: $lt_compiler_flag:'`
8332    (eval echo "\"\$as_me:8332: $lt_compile\"" >&5)
8333    (eval "$lt_compile" 2>out/conftest.err)
8334    ac_status=$?
8335    cat out/conftest.err >&5
8336    echo "$as_me:8336: \$? = $ac_status" >&5
8337    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8338    then
8339      # The compiler can only warn and ignore the option if not recognized
8340      # So say no if there are warnings
8341      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8342      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8343      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8344        lt_cv_prog_compiler_c_o=yes
8345      fi
8346    fi
8347    chmod u+w . 2>&5
8348    $RM conftest*
8349    # SGI C++ compiler will create directory out/ii_files/ for
8350    # template instantiation
8351    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8352    $RM out/* && rmdir out
8353    cd ..
8354    $RM -r conftest
8355    $RM conftest*
8356
8357 fi
8358 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8359 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8360
8361
8362
8363
8364
8365
8366   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8367 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8368 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8369   $as_echo_n "(cached) " >&6
8370 else
8371   lt_cv_prog_compiler_c_o=no
8372    $RM -r conftest 2>/dev/null
8373    mkdir conftest
8374    cd conftest
8375    mkdir out
8376    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8377
8378    lt_compiler_flag="-o out/conftest2.$ac_objext"
8379    # Insert the option either (1) after the last *FLAGS variable, or
8380    # (2) before a word containing "conftest.", or (3) at the end.
8381    # Note that $ac_compile itself does not contain backslashes and begins
8382    # with a dollar sign (not a hyphen), so the echo should work correctly.
8383    lt_compile=`echo "$ac_compile" | $SED \
8384    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386    -e 's:$: $lt_compiler_flag:'`
8387    (eval echo "\"\$as_me:8387: $lt_compile\"" >&5)
8388    (eval "$lt_compile" 2>out/conftest.err)
8389    ac_status=$?
8390    cat out/conftest.err >&5
8391    echo "$as_me:8391: \$? = $ac_status" >&5
8392    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8393    then
8394      # The compiler can only warn and ignore the option if not recognized
8395      # So say no if there are warnings
8396      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8397      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8398      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8399        lt_cv_prog_compiler_c_o=yes
8400      fi
8401    fi
8402    chmod u+w . 2>&5
8403    $RM conftest*
8404    # SGI C++ compiler will create directory out/ii_files/ for
8405    # template instantiation
8406    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8407    $RM out/* && rmdir out
8408    cd ..
8409    $RM -r conftest
8410    $RM conftest*
8411
8412 fi
8413 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8414 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8415
8416
8417
8418
8419 hard_links="nottested"
8420 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8421   # do not overwrite the value of need_locks provided by the user
8422   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8423 $as_echo_n "checking if we can lock with hard links... " >&6; }
8424   hard_links=yes
8425   $RM conftest*
8426   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8427   touch conftest.a
8428   ln conftest.a conftest.b 2>&5 || hard_links=no
8429   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8430   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8431 $as_echo "$hard_links" >&6; }
8432   if test "$hard_links" = no; then
8433     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8434 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8435     need_locks=warn
8436   fi
8437 else
8438   need_locks=no
8439 fi
8440
8441
8442
8443
8444
8445
8446   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8447 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8448
8449   runpath_var=
8450   allow_undefined_flag=
8451   always_export_symbols=no
8452   archive_cmds=
8453   archive_expsym_cmds=
8454   compiler_needs_object=no
8455   enable_shared_with_static_runtimes=no
8456   export_dynamic_flag_spec=
8457   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8458   hardcode_automatic=no
8459   hardcode_direct=no
8460   hardcode_direct_absolute=no
8461   hardcode_libdir_flag_spec=
8462   hardcode_libdir_flag_spec_ld=
8463   hardcode_libdir_separator=
8464   hardcode_minus_L=no
8465   hardcode_shlibpath_var=unsupported
8466   inherit_rpath=no
8467   link_all_deplibs=unknown
8468   module_cmds=
8469   module_expsym_cmds=
8470   old_archive_from_new_cmds=
8471   old_archive_from_expsyms_cmds=
8472   thread_safe_flag_spec=
8473   whole_archive_flag_spec=
8474   # include_expsyms should be a list of space-separated symbols to be *always*
8475   # included in the symbol list
8476   include_expsyms=
8477   # exclude_expsyms can be an extended regexp of symbols to exclude
8478   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8479   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8480   # as well as any symbol that contains `d'.
8481   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8482   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8483   # platforms (ab)use it in PIC code, but their linkers get confused if
8484   # the symbol is explicitly referenced.  Since portable code cannot
8485   # rely on this symbol name, it's probably fine to never include it in
8486   # preloaded symbol tables.
8487   # Exclude shared library initialization/finalization symbols.
8488   extract_expsyms_cmds=
8489
8490   case $host_os in
8491   cygwin* | mingw* | pw32* | cegcc*)
8492     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8493     # When not using gcc, we currently assume that we are using
8494     # Microsoft Visual C++.
8495     if test "$GCC" != yes; then
8496       with_gnu_ld=no
8497     fi
8498     ;;
8499   interix*)
8500     # we just hope/assume this is gcc and not c89 (= MSVC++)
8501     with_gnu_ld=yes
8502     ;;
8503   openbsd*)
8504     with_gnu_ld=no
8505     ;;
8506   esac
8507
8508   ld_shlibs=yes
8509   if test "$with_gnu_ld" = yes; then
8510     # If archive_cmds runs LD, not CC, wlarc should be empty
8511     wlarc='${wl}'
8512
8513     # Set some defaults for GNU ld with shared library support. These
8514     # are reset later if shared libraries are not supported. Putting them
8515     # here allows them to be overridden if necessary.
8516     runpath_var=LD_RUN_PATH
8517     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8518     export_dynamic_flag_spec='${wl}--export-dynamic'
8519     # ancient GNU ld didn't support --whole-archive et. al.
8520     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8521       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8522     else
8523       whole_archive_flag_spec=
8524     fi
8525     supports_anon_versioning=no
8526     case `$LD -v 2>&1` in
8527       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8528       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8529       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8530       *\ 2.11.*) ;; # other 2.11 versions
8531       *) supports_anon_versioning=yes ;;
8532     esac
8533
8534     # See if GNU ld supports shared libraries.
8535     case $host_os in
8536     aix[3-9]*)
8537       # On AIX/PPC, the GNU linker is very broken
8538       if test "$host_cpu" != ia64; then
8539         ld_shlibs=no
8540         cat <<_LT_EOF 1>&2
8541
8542 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8543 *** to be unable to reliably create shared libraries on AIX.
8544 *** Therefore, libtool is disabling shared libraries support.  If you
8545 *** really care for shared libraries, you may want to modify your PATH
8546 *** so that a non-GNU linker is found, and then restart.
8547
8548 _LT_EOF
8549       fi
8550       ;;
8551
8552     amigaos*)
8553       case $host_cpu in
8554       powerpc)
8555             # see comment about AmigaOS4 .so support
8556             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557             archive_expsym_cmds=''
8558         ;;
8559       m68k)
8560             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)'
8561             hardcode_libdir_flag_spec='-L$libdir'
8562             hardcode_minus_L=yes
8563         ;;
8564       esac
8565       ;;
8566
8567     beos*)
8568       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8569         allow_undefined_flag=unsupported
8570         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8571         # support --undefined.  This deserves some investigation.  FIXME
8572         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573       else
8574         ld_shlibs=no
8575       fi
8576       ;;
8577
8578     cygwin* | mingw* | pw32* | cegcc*)
8579       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8580       # as there is no search path for DLLs.
8581       hardcode_libdir_flag_spec='-L$libdir'
8582       allow_undefined_flag=unsupported
8583       always_export_symbols=no
8584       enable_shared_with_static_runtimes=yes
8585       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8586
8587       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8588         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8589         # If the export-symbols file already is a .def file (1st line
8590         # is EXPORTS), use it as is; otherwise, prepend...
8591         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8592           cp $export_symbols $output_objdir/$soname.def;
8593         else
8594           echo EXPORTS > $output_objdir/$soname.def;
8595           cat $export_symbols >> $output_objdir/$soname.def;
8596         fi~
8597         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8598       else
8599         ld_shlibs=no
8600       fi
8601       ;;
8602
8603     interix[3-9]*)
8604       hardcode_direct=no
8605       hardcode_shlibpath_var=no
8606       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8607       export_dynamic_flag_spec='${wl}-E'
8608       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8609       # Instead, shared libraries are loaded at an image base (0x10000000 by
8610       # default) and relocated if they conflict, which is a slow very memory
8611       # consuming and fragmenting process.  To avoid this, we pick a random,
8612       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8613       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8614       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8615       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'
8616       ;;
8617
8618     gnu* | linux* | tpf* | k*bsd*-gnu)
8619       tmp_diet=no
8620       if test "$host_os" = linux-dietlibc; then
8621         case $cc_basename in
8622           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8623         esac
8624       fi
8625       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8626          && test "$tmp_diet" = no
8627       then
8628         tmp_addflag=
8629         tmp_sharedflag='-shared'
8630         case $cc_basename,$host_cpu in
8631         pgcc*)                          # Portland Group C compiler
8632           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'
8633           tmp_addflag=' $pic_flag'
8634           ;;
8635         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8636           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'
8637           tmp_addflag=' $pic_flag -Mnomain' ;;
8638         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8639           tmp_addflag=' -i_dynamic' ;;
8640         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8641           tmp_addflag=' -i_dynamic -nofor_main' ;;
8642         ifc* | ifort*)                  # Intel Fortran compiler
8643           tmp_addflag=' -nofor_main' ;;
8644         lf95*)                          # Lahey Fortran 8.1
8645           whole_archive_flag_spec=
8646           tmp_sharedflag='--shared' ;;
8647         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8648           tmp_sharedflag='-qmkshrobj'
8649           tmp_addflag= ;;
8650         esac
8651         case `$CC -V 2>&1 | sed 5q` in
8652         *Sun\ C*)                       # Sun C 5.9
8653           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'
8654           compiler_needs_object=yes
8655           tmp_sharedflag='-G' ;;
8656         *Sun\ F*)                       # Sun Fortran 8.3
8657           tmp_sharedflag='-G' ;;
8658         esac
8659         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660
8661         if test "x$supports_anon_versioning" = xyes; then
8662           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664             echo "local: *; };" >> $output_objdir/$libname.ver~
8665             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8666         fi
8667
8668         case $cc_basename in
8669         xlf*)
8670           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8671           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8672           hardcode_libdir_flag_spec=
8673           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8674           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8675           if test "x$supports_anon_versioning" = xyes; then
8676             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8677               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8678               echo "local: *; };" >> $output_objdir/$libname.ver~
8679               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8680           fi
8681           ;;
8682         esac
8683       else
8684         ld_shlibs=no
8685       fi
8686       ;;
8687
8688     netbsd*)
8689       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8690         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8691         wlarc=
8692       else
8693         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695       fi
8696       ;;
8697
8698     solaris*)
8699       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8700         ld_shlibs=no
8701         cat <<_LT_EOF 1>&2
8702
8703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8704 *** create shared libraries on Solaris systems.  Therefore, libtool
8705 *** is disabling shared libraries support.  We urge you to upgrade GNU
8706 *** binutils to release 2.9.1 or newer.  Another option is to modify
8707 *** your PATH or compiler configuration so that the native linker is
8708 *** used, and then restart.
8709
8710 _LT_EOF
8711       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8712         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714       else
8715         ld_shlibs=no
8716       fi
8717       ;;
8718
8719     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8720       case `$LD -v 2>&1` in
8721         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8722         ld_shlibs=no
8723         cat <<_LT_EOF 1>&2
8724
8725 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8726 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8727 *** is disabling shared libraries support.  We urge you to upgrade GNU
8728 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8729 *** your PATH or compiler configuration so that the native linker is
8730 *** used, and then restart.
8731
8732 _LT_EOF
8733         ;;
8734         *)
8735           # For security reasons, it is highly recommended that you always
8736           # use absolute paths for naming shared libraries, and exclude the
8737           # DT_RUNPATH tag from executables and libraries.  But doing so
8738           # requires that you compile everything twice, which is a pain.
8739           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8743           else
8744             ld_shlibs=no
8745           fi
8746         ;;
8747       esac
8748       ;;
8749
8750     sunos4*)
8751       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8752       wlarc=
8753       hardcode_direct=yes
8754       hardcode_shlibpath_var=no
8755       ;;
8756
8757     *)
8758       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8759         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8761       else
8762         ld_shlibs=no
8763       fi
8764       ;;
8765     esac
8766
8767     if test "$ld_shlibs" = no; then
8768       runpath_var=
8769       hardcode_libdir_flag_spec=
8770       export_dynamic_flag_spec=
8771       whole_archive_flag_spec=
8772     fi
8773   else
8774     # PORTME fill in a description of your system's linker (not GNU ld)
8775     case $host_os in
8776     aix3*)
8777       allow_undefined_flag=unsupported
8778       always_export_symbols=yes
8779       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'
8780       # Note: this linker hardcodes the directories in LIBPATH if there
8781       # are no directories specified by -L.
8782       hardcode_minus_L=yes
8783       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8784         # Neither direct hardcoding nor static linking is supported with a
8785         # broken collect2.
8786         hardcode_direct=unsupported
8787       fi
8788       ;;
8789
8790     aix[4-9]*)
8791       if test "$host_cpu" = ia64; then
8792         # On IA64, the linker does run time linking by default, so we don't
8793         # have to do anything special.
8794         aix_use_runtimelinking=no
8795         exp_sym_flag='-Bexport'
8796         no_entry_flag=""
8797       else
8798         # If we're using GNU nm, then we don't want the "-C" option.
8799         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8800         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8801           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'
8802         else
8803           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'
8804         fi
8805         aix_use_runtimelinking=no
8806
8807         # Test if we are trying to use run time linking or normal
8808         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8809         # need to do runtime linking.
8810         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8811           for ld_flag in $LDFLAGS; do
8812           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8813             aix_use_runtimelinking=yes
8814             break
8815           fi
8816           done
8817           ;;
8818         esac
8819
8820         exp_sym_flag='-bexport'
8821         no_entry_flag='-bnoentry'
8822       fi
8823
8824       # When large executables or shared objects are built, AIX ld can
8825       # have problems creating the table of contents.  If linking a library
8826       # or program results in "error TOC overflow" add -mminimal-toc to
8827       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8828       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8829
8830       archive_cmds=''
8831       hardcode_direct=yes
8832       hardcode_direct_absolute=yes
8833       hardcode_libdir_separator=':'
8834       link_all_deplibs=yes
8835       file_list_spec='${wl}-f,'
8836
8837       if test "$GCC" = yes; then
8838         case $host_os in aix4.[012]|aix4.[012].*)
8839         # We only want to do this on AIX 4.2 and lower, the check
8840         # below for broken collect2 doesn't work under 4.3+
8841           collect2name=`${CC} -print-prog-name=collect2`
8842           if test -f "$collect2name" &&
8843            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8844           then
8845           # We have reworked collect2
8846           :
8847           else
8848           # We have old collect2
8849           hardcode_direct=unsupported
8850           # It fails to find uninstalled libraries when the uninstalled
8851           # path is not listed in the libpath.  Setting hardcode_minus_L
8852           # to unsupported forces relinking
8853           hardcode_minus_L=yes
8854           hardcode_libdir_flag_spec='-L$libdir'
8855           hardcode_libdir_separator=
8856           fi
8857           ;;
8858         esac
8859         shared_flag='-shared'
8860         if test "$aix_use_runtimelinking" = yes; then
8861           shared_flag="$shared_flag "'${wl}-G'
8862         fi
8863       else
8864         # not using gcc
8865         if test "$host_cpu" = ia64; then
8866         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8867         # chokes on -Wl,-G. The following line is correct:
8868           shared_flag='-G'
8869         else
8870           if test "$aix_use_runtimelinking" = yes; then
8871             shared_flag='${wl}-G'
8872           else
8873             shared_flag='${wl}-bM:SRE'
8874           fi
8875         fi
8876       fi
8877
8878       export_dynamic_flag_spec='${wl}-bexpall'
8879       # It seems that -bexpall does not export symbols beginning with
8880       # underscore (_), so it is better to generate a list of symbols to export.
8881       always_export_symbols=yes
8882       if test "$aix_use_runtimelinking" = yes; then
8883         # Warning - without using the other runtime loading flags (-brtl),
8884         # -berok will link without error, but may produce a broken library.
8885         allow_undefined_flag='-berok'
8886         # Determine the default libpath from the value encoded in an
8887         # empty executable.
8888         cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h.  */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h.  */
8894
8895 int
8896 main ()
8897 {
8898
8899   ;
8900   return 0;
8901 }
8902 _ACEOF
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (ac_try="$ac_link"
8905 case "(($ac_try" in
8906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907   *) ac_try_echo=$ac_try;;
8908 esac
8909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8910 $as_echo "$ac_try_echo") >&5
8911   (eval "$ac_link") 2>conftest.er1
8912   ac_status=$?
8913   grep -v '^ *+' conftest.er1 >conftest.err
8914   rm -f conftest.er1
8915   cat conftest.err >&5
8916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } && {
8918          test -z "$ac_c_werror_flag" ||
8919          test ! -s conftest.err
8920        } && test -s conftest$ac_exeext && {
8921          test "$cross_compiling" = yes ||
8922          $as_test_x conftest$ac_exeext
8923        }; then
8924
8925 lt_aix_libpath_sed='
8926     /Import File Strings/,/^$/ {
8927         /^0/ {
8928             s/^0  *\(.*\)$/\1/
8929             p
8930         }
8931     }'
8932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8933 # Check for a 64-bit object if we didn't find anything.
8934 if test -z "$aix_libpath"; then
8935   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8936 fi
8937 else
8938   $as_echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941
8942 fi
8943
8944 rm -rf conftest.dSYM
8945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946       conftest$ac_exeext conftest.$ac_ext
8947 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8948
8949         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8950         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"
8951       else
8952         if test "$host_cpu" = ia64; then
8953           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8954           allow_undefined_flag="-z nodefs"
8955           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"
8956         else
8957          # Determine the default libpath from the value encoded in an
8958          # empty executable.
8959          cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h.  */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h.  */
8965
8966 int
8967 main ()
8968 {
8969
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 rm -f conftest.$ac_objext conftest$ac_exeext
8975 if { (ac_try="$ac_link"
8976 case "(($ac_try" in
8977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978   *) ac_try_echo=$ac_try;;
8979 esac
8980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982   (eval "$ac_link") 2>conftest.er1
8983   ac_status=$?
8984   grep -v '^ *+' conftest.er1 >conftest.err
8985   rm -f conftest.er1
8986   cat conftest.err >&5
8987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); } && {
8989          test -z "$ac_c_werror_flag" ||
8990          test ! -s conftest.err
8991        } && test -s conftest$ac_exeext && {
8992          test "$cross_compiling" = yes ||
8993          $as_test_x conftest$ac_exeext
8994        }; then
8995
8996 lt_aix_libpath_sed='
8997     /Import File Strings/,/^$/ {
8998         /^0/ {
8999             s/^0  *\(.*\)$/\1/
9000             p
9001         }
9002     }'
9003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004 # Check for a 64-bit object if we didn't find anything.
9005 if test -z "$aix_libpath"; then
9006   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9007 fi
9008 else
9009   $as_echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012
9013 fi
9014
9015 rm -rf conftest.dSYM
9016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9017       conftest$ac_exeext conftest.$ac_ext
9018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9019
9020          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9021           # Warning - without using the other run time loading flags,
9022           # -berok will link without error, but may produce a broken library.
9023           no_undefined_flag=' ${wl}-bernotok'
9024           allow_undefined_flag=' ${wl}-berok'
9025           # Exported symbols can be pulled into shared objects from archives
9026           whole_archive_flag_spec='$convenience'
9027           archive_cmds_need_lc=yes
9028           # This is similar to how AIX traditionally builds its shared libraries.
9029           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'
9030         fi
9031       fi
9032       ;;
9033
9034     amigaos*)
9035       case $host_cpu in
9036       powerpc)
9037             # see comment about AmigaOS4 .so support
9038             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9039             archive_expsym_cmds=''
9040         ;;
9041       m68k)
9042             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)'
9043             hardcode_libdir_flag_spec='-L$libdir'
9044             hardcode_minus_L=yes
9045         ;;
9046       esac
9047       ;;
9048
9049     bsdi[45]*)
9050       export_dynamic_flag_spec=-rdynamic
9051       ;;
9052
9053     cygwin* | mingw* | pw32* | cegcc*)
9054       # When not using gcc, we currently assume that we are using
9055       # Microsoft Visual C++.
9056       # hardcode_libdir_flag_spec is actually meaningless, as there is
9057       # no search path for DLLs.
9058       hardcode_libdir_flag_spec=' '
9059       allow_undefined_flag=unsupported
9060       # Tell ltmain to make .lib files, not .a files.
9061       libext=lib
9062       # Tell ltmain to make .dll files, not .so files.
9063       shrext_cmds=".dll"
9064       # FIXME: Setting linknames here is a bad hack.
9065       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9066       # The linker will automatically build a .lib file if we build a DLL.
9067       old_archive_from_new_cmds='true'
9068       # FIXME: Should let the user specify the lib program.
9069       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9070       fix_srcfile_path='`cygpath -w "$srcfile"`'
9071       enable_shared_with_static_runtimes=yes
9072       ;;
9073
9074     darwin* | rhapsody*)
9075
9076
9077   archive_cmds_need_lc=no
9078   hardcode_direct=no
9079   hardcode_automatic=yes
9080   hardcode_shlibpath_var=unsupported
9081   whole_archive_flag_spec=''
9082   link_all_deplibs=yes
9083   allow_undefined_flag="$_lt_dar_allow_undefined"
9084   case $cc_basename in
9085      ifort*) _lt_dar_can_shared=yes ;;
9086      *) _lt_dar_can_shared=$GCC ;;
9087   esac
9088   if test "$_lt_dar_can_shared" = "yes"; then
9089     output_verbose_link_cmd=echo
9090     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9091     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9092     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}"
9093     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}"
9094
9095   else
9096   ld_shlibs=no
9097   fi
9098
9099       ;;
9100
9101     dgux*)
9102       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103       hardcode_libdir_flag_spec='-L$libdir'
9104       hardcode_shlibpath_var=no
9105       ;;
9106
9107     freebsd1*)
9108       ld_shlibs=no
9109       ;;
9110
9111     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9112     # support.  Future versions do this automatically, but an explicit c++rt0.o
9113     # does not break anything, and helps significantly (at the cost of a little
9114     # extra space).
9115     freebsd2.2*)
9116       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9117       hardcode_libdir_flag_spec='-R$libdir'
9118       hardcode_direct=yes
9119       hardcode_shlibpath_var=no
9120       ;;
9121
9122     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9123     freebsd2*)
9124       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9125       hardcode_direct=yes
9126       hardcode_minus_L=yes
9127       hardcode_shlibpath_var=no
9128       ;;
9129
9130     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9131     freebsd* | dragonfly*)
9132       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9133       hardcode_libdir_flag_spec='-R$libdir'
9134       hardcode_direct=yes
9135       hardcode_shlibpath_var=no
9136       ;;
9137
9138     hpux9*)
9139       if test "$GCC" = yes; then
9140         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'
9141       else
9142         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'
9143       fi
9144       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9145       hardcode_libdir_separator=:
9146       hardcode_direct=yes
9147
9148       # hardcode_minus_L: Not really in the search PATH,
9149       # but as the default location of the library.
9150       hardcode_minus_L=yes
9151       export_dynamic_flag_spec='${wl}-E'
9152       ;;
9153
9154     hpux10*)
9155       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9156         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9157       else
9158         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9159       fi
9160       if test "$with_gnu_ld" = no; then
9161         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162         hardcode_libdir_flag_spec_ld='+b $libdir'
9163         hardcode_libdir_separator=:
9164         hardcode_direct=yes
9165         hardcode_direct_absolute=yes
9166         export_dynamic_flag_spec='${wl}-E'
9167         # hardcode_minus_L: Not really in the search PATH,
9168         # but as the default location of the library.
9169         hardcode_minus_L=yes
9170       fi
9171       ;;
9172
9173     hpux11*)
9174       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9175         case $host_cpu in
9176         hppa*64*)
9177           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9178           ;;
9179         ia64*)
9180           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9181           ;;
9182         *)
9183           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9184           ;;
9185         esac
9186       else
9187         case $host_cpu in
9188         hppa*64*)
9189           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9190           ;;
9191         ia64*)
9192           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9193           ;;
9194         *)
9195           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9196           ;;
9197         esac
9198       fi
9199       if test "$with_gnu_ld" = no; then
9200         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9201         hardcode_libdir_separator=:
9202
9203         case $host_cpu in
9204         hppa*64*|ia64*)
9205           hardcode_direct=no
9206           hardcode_shlibpath_var=no
9207           ;;
9208         *)
9209           hardcode_direct=yes
9210           hardcode_direct_absolute=yes
9211           export_dynamic_flag_spec='${wl}-E'
9212
9213           # hardcode_minus_L: Not really in the search PATH,
9214           # but as the default location of the library.
9215           hardcode_minus_L=yes
9216           ;;
9217         esac
9218       fi
9219       ;;
9220
9221     irix5* | irix6* | nonstopux*)
9222       if test "$GCC" = yes; then
9223         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'
9224         # Try to use the -exported_symbol ld option, if it does not
9225         # work, assume that -exports_file does not work either and
9226         # implicitly export all symbols.
9227         save_LDFLAGS="$LDFLAGS"
9228         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9229         cat >conftest.$ac_ext <<_ACEOF
9230 int foo(void) {}
9231 _ACEOF
9232 rm -f conftest.$ac_objext conftest$ac_exeext
9233 if { (ac_try="$ac_link"
9234 case "(($ac_try" in
9235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236   *) ac_try_echo=$ac_try;;
9237 esac
9238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9239 $as_echo "$ac_try_echo") >&5
9240   (eval "$ac_link") 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } && {
9247          test -z "$ac_c_werror_flag" ||
9248          test ! -s conftest.err
9249        } && test -s conftest$ac_exeext && {
9250          test "$cross_compiling" = yes ||
9251          $as_test_x conftest$ac_exeext
9252        }; then
9253   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'
9254
9255 else
9256   $as_echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259
9260 fi
9261
9262 rm -rf conftest.dSYM
9263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9264       conftest$ac_exeext conftest.$ac_ext
9265         LDFLAGS="$save_LDFLAGS"
9266       else
9267         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'
9268         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'
9269       fi
9270       archive_cmds_need_lc='no'
9271       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272       hardcode_libdir_separator=:
9273       inherit_rpath=yes
9274       link_all_deplibs=yes
9275       ;;
9276
9277     netbsd*)
9278       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9279         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9280       else
9281         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9282       fi
9283       hardcode_libdir_flag_spec='-R$libdir'
9284       hardcode_direct=yes
9285       hardcode_shlibpath_var=no
9286       ;;
9287
9288     newsos6)
9289       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290       hardcode_direct=yes
9291       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292       hardcode_libdir_separator=:
9293       hardcode_shlibpath_var=no
9294       ;;
9295
9296     *nto* | *qnx*)
9297       ;;
9298
9299     openbsd*)
9300       if test -f /usr/libexec/ld.so; then
9301         hardcode_direct=yes
9302         hardcode_shlibpath_var=no
9303         hardcode_direct_absolute=yes
9304         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9305           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9306           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9307           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9308           export_dynamic_flag_spec='${wl}-E'
9309         else
9310           case $host_os in
9311            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9312              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9313              hardcode_libdir_flag_spec='-R$libdir'
9314              ;;
9315            *)
9316              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9317              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9318              ;;
9319           esac
9320         fi
9321       else
9322         ld_shlibs=no
9323       fi
9324       ;;
9325
9326     os2*)
9327       hardcode_libdir_flag_spec='-L$libdir'
9328       hardcode_minus_L=yes
9329       allow_undefined_flag=unsupported
9330       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'
9331       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9332       ;;
9333
9334     osf3*)
9335       if test "$GCC" = yes; then
9336         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9337         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'
9338       else
9339         allow_undefined_flag=' -expect_unresolved \*'
9340         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'
9341       fi
9342       archive_cmds_need_lc='no'
9343       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344       hardcode_libdir_separator=:
9345       ;;
9346
9347     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9348       if test "$GCC" = yes; then
9349         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9350         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'
9351         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9352       else
9353         allow_undefined_flag=' -expect_unresolved \*'
9354         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'
9355         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~
9356         $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'
9357
9358         # Both c and cxx compiler support -rpath directly
9359         hardcode_libdir_flag_spec='-rpath $libdir'
9360       fi
9361       archive_cmds_need_lc='no'
9362       hardcode_libdir_separator=:
9363       ;;
9364
9365     solaris*)
9366       no_undefined_flag=' -z defs'
9367       if test "$GCC" = yes; then
9368         wlarc='${wl}'
9369         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9370         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9371           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9372       else
9373         case `$CC -V 2>&1` in
9374         *"Compilers 5.0"*)
9375           wlarc=''
9376           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9378           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9379           ;;
9380         *)
9381           wlarc='${wl}'
9382           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9383           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9384           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9385           ;;
9386         esac
9387       fi
9388       hardcode_libdir_flag_spec='-R$libdir'
9389       hardcode_shlibpath_var=no
9390       case $host_os in
9391       solaris2.[0-5] | solaris2.[0-5].*) ;;
9392       *)
9393         # The compiler driver will combine and reorder linker options,
9394         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9395         # but is careful enough not to reorder.
9396         # Supported since Solaris 2.6 (maybe 2.5.1?)
9397         if test "$GCC" = yes; then
9398           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9399         else
9400           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9401         fi
9402         ;;
9403       esac
9404       link_all_deplibs=yes
9405       ;;
9406
9407     sunos4*)
9408       if test "x$host_vendor" = xsequent; then
9409         # Use $CC to link under sequent, because it throws in some extra .o
9410         # files that make .init and .fini sections work.
9411         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9412       else
9413         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9414       fi
9415       hardcode_libdir_flag_spec='-L$libdir'
9416       hardcode_direct=yes
9417       hardcode_minus_L=yes
9418       hardcode_shlibpath_var=no
9419       ;;
9420
9421     sysv4)
9422       case $host_vendor in
9423         sni)
9424           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425           hardcode_direct=yes # is this really true???
9426         ;;
9427         siemens)
9428           ## LD is ld it makes a PLAMLIB
9429           ## CC just makes a GrossModule.
9430           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9431           reload_cmds='$CC -r -o $output$reload_objs'
9432           hardcode_direct=no
9433         ;;
9434         motorola)
9435           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9437         ;;
9438       esac
9439       runpath_var='LD_RUN_PATH'
9440       hardcode_shlibpath_var=no
9441       ;;
9442
9443     sysv4.3*)
9444       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445       hardcode_shlibpath_var=no
9446       export_dynamic_flag_spec='-Bexport'
9447       ;;
9448
9449     sysv4*MP*)
9450       if test -d /usr/nec; then
9451         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452         hardcode_shlibpath_var=no
9453         runpath_var=LD_RUN_PATH
9454         hardcode_runpath_var=yes
9455         ld_shlibs=yes
9456       fi
9457       ;;
9458
9459     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9460       no_undefined_flag='${wl}-z,text'
9461       archive_cmds_need_lc=no
9462       hardcode_shlibpath_var=no
9463       runpath_var='LD_RUN_PATH'
9464
9465       if test "$GCC" = yes; then
9466         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468       else
9469         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471       fi
9472       ;;
9473
9474     sysv5* | sco3.2v5* | sco5v6*)
9475       # Note: We can NOT use -z defs as we might desire, because we do not
9476       # link with -lc, and that would cause any symbols used from libc to
9477       # always be unresolved, which means just about no library would
9478       # ever link correctly.  If we're not using GNU ld we use -z text
9479       # though, which does catch some bad symbols but isn't as heavy-handed
9480       # as -z defs.
9481       no_undefined_flag='${wl}-z,text'
9482       allow_undefined_flag='${wl}-z,nodefs'
9483       archive_cmds_need_lc=no
9484       hardcode_shlibpath_var=no
9485       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9486       hardcode_libdir_separator=':'
9487       link_all_deplibs=yes
9488       export_dynamic_flag_spec='${wl}-Bexport'
9489       runpath_var='LD_RUN_PATH'
9490
9491       if test "$GCC" = yes; then
9492         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494       else
9495         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497       fi
9498       ;;
9499
9500     uts4*)
9501       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502       hardcode_libdir_flag_spec='-L$libdir'
9503       hardcode_shlibpath_var=no
9504       ;;
9505
9506     *)
9507       ld_shlibs=no
9508       ;;
9509     esac
9510
9511     if test x$host_vendor = xsni; then
9512       case $host in
9513       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9514         export_dynamic_flag_spec='${wl}-Blargedynsym'
9515         ;;
9516       esac
9517     fi
9518   fi
9519
9520 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9521 $as_echo "$ld_shlibs" >&6; }
9522 test "$ld_shlibs" = no && can_build_shared=no
9523
9524 with_gnu_ld=$with_gnu_ld
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540 #
9541 # Do we need to explicitly link libc?
9542 #
9543 case "x$archive_cmds_need_lc" in
9544 x|xyes)
9545   # Assume -lc should be added
9546   archive_cmds_need_lc=yes
9547
9548   if test "$enable_shared" = yes && test "$GCC" = yes; then
9549     case $archive_cmds in
9550     *'~'*)
9551       # FIXME: we may have to deal with multi-command sequences.
9552       ;;
9553     '$CC '*)
9554       # Test whether the compiler implicitly links with -lc since on some
9555       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9556       # to ld, don't add -lc before -lgcc.
9557       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9558 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9559       $RM conftest*
9560       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9561
9562       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563   (eval $ac_compile) 2>&5
9564   ac_status=$?
9565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } 2>conftest.err; then
9567         soname=conftest
9568         lib=conftest
9569         libobjs=conftest.$ac_objext
9570         deplibs=
9571         wl=$lt_prog_compiler_wl
9572         pic_flag=$lt_prog_compiler_pic
9573         compiler_flags=-v
9574         linker_flags=-v
9575         verstring=
9576         output_objdir=.
9577         libname=conftest
9578         lt_save_allow_undefined_flag=$allow_undefined_flag
9579         allow_undefined_flag=
9580         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9581   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9582   ac_status=$?
9583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }
9585         then
9586           archive_cmds_need_lc=no
9587         else
9588           archive_cmds_need_lc=yes
9589         fi
9590         allow_undefined_flag=$lt_save_allow_undefined_flag
9591       else
9592         cat conftest.err 1>&5
9593       fi
9594       $RM conftest*
9595       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9596 $as_echo "$archive_cmds_need_lc" >&6; }
9597       ;;
9598     esac
9599   fi
9600   ;;
9601 esac
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
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   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9760 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9761
9762 if test "$GCC" = yes; then
9763   case $host_os in
9764     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9765     *) lt_awk_arg="/^libraries:/" ;;
9766   esac
9767   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9768   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9769     # if the path contains ";" then we assume it to be the separator
9770     # otherwise default to the standard path separator (i.e. ":") - it is
9771     # assumed that no part of a normal pathname contains ";" but that should
9772     # okay in the real world where ";" in dirpaths is itself problematic.
9773     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9774   else
9775     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9776   fi
9777   # Ok, now we have the path, separated by spaces, we can step through it
9778   # and add multilib dir if necessary.
9779   lt_tmp_lt_search_path_spec=
9780   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9781   for lt_sys_path in $lt_search_path_spec; do
9782     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9783       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9784     else
9785       test -d "$lt_sys_path" && \
9786         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9787     fi
9788   done
9789   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9790 BEGIN {RS=" "; FS="/|\n";} {
9791   lt_foo="";
9792   lt_count=0;
9793   for (lt_i = NF; lt_i > 0; lt_i--) {
9794     if ($lt_i != "" && $lt_i != ".") {
9795       if ($lt_i == "..") {
9796         lt_count++;
9797       } else {
9798         if (lt_count == 0) {
9799           lt_foo="/" $lt_i lt_foo;
9800         } else {
9801           lt_count--;
9802         }
9803       }
9804     }
9805   }
9806   if (lt_foo != "") { lt_freq[lt_foo]++; }
9807   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9808 }'`
9809   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9810 else
9811   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9812 fi
9813 library_names_spec=
9814 libname_spec='lib$name'
9815 soname_spec=
9816 shrext_cmds=".so"
9817 postinstall_cmds=
9818 postuninstall_cmds=
9819 finish_cmds=
9820 finish_eval=
9821 shlibpath_var=
9822 shlibpath_overrides_runpath=unknown
9823 version_type=none
9824 dynamic_linker="$host_os ld.so"
9825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9826 need_lib_prefix=unknown
9827 hardcode_into_libs=no
9828
9829 # when you set need_version to no, make sure it does not cause -set_version
9830 # flags to be left without arguments
9831 need_version=unknown
9832
9833 case $host_os in
9834 aix3*)
9835   version_type=linux
9836   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9837   shlibpath_var=LIBPATH
9838
9839   # AIX 3 has no versioning support, so we append a major version to the name.
9840   soname_spec='${libname}${release}${shared_ext}$major'
9841   ;;
9842
9843 aix[4-9]*)
9844   version_type=linux
9845   need_lib_prefix=no
9846   need_version=no
9847   hardcode_into_libs=yes
9848   if test "$host_cpu" = ia64; then
9849     # AIX 5 supports IA64
9850     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9851     shlibpath_var=LD_LIBRARY_PATH
9852   else
9853     # With GCC up to 2.95.x, collect2 would create an import file
9854     # for dependence libraries.  The import file would start with
9855     # the line `#! .'.  This would cause the generated library to
9856     # depend on `.', always an invalid library.  This was fixed in
9857     # development snapshots of GCC prior to 3.0.
9858     case $host_os in
9859       aix4 | aix4.[01] | aix4.[01].*)
9860       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9861            echo ' yes '
9862            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9863         :
9864       else
9865         can_build_shared=no
9866       fi
9867       ;;
9868     esac
9869     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9870     # soname into executable. Probably we can add versioning support to
9871     # collect2, so additional links can be useful in future.
9872     if test "$aix_use_runtimelinking" = yes; then
9873       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9874       # instead of lib<name>.a to let people know that these are not
9875       # typical AIX shared libraries.
9876       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877     else
9878       # We preserve .a as extension for shared libraries through AIX4.2
9879       # and later when we are not doing run time linking.
9880       library_names_spec='${libname}${release}.a $libname.a'
9881       soname_spec='${libname}${release}${shared_ext}$major'
9882     fi
9883     shlibpath_var=LIBPATH
9884   fi
9885   ;;
9886
9887 amigaos*)
9888   case $host_cpu in
9889   powerpc)
9890     # Since July 2007 AmigaOS4 officially supports .so libraries.
9891     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893     ;;
9894   m68k)
9895     library_names_spec='$libname.ixlibrary $libname.a'
9896     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9897     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'
9898     ;;
9899   esac
9900   ;;
9901
9902 beos*)
9903   library_names_spec='${libname}${shared_ext}'
9904   dynamic_linker="$host_os ld.so"
9905   shlibpath_var=LIBRARY_PATH
9906   ;;
9907
9908 bsdi[45]*)
9909   version_type=linux
9910   need_version=no
9911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912   soname_spec='${libname}${release}${shared_ext}$major'
9913   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9914   shlibpath_var=LD_LIBRARY_PATH
9915   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9916   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9917   # the default ld.so.conf also contains /usr/contrib/lib and
9918   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9919   # libtool to hard-code these into programs
9920   ;;
9921
9922 cygwin* | mingw* | pw32* | cegcc*)
9923   version_type=windows
9924   shrext_cmds=".dll"
9925   need_version=no
9926   need_lib_prefix=no
9927
9928   case $GCC,$host_os in
9929   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9930     library_names_spec='$libname.dll.a'
9931     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9932     postinstall_cmds='base_file=`basename \${file}`~
9933       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9934       dldir=$destdir/`dirname \$dlpath`~
9935       test -d \$dldir || mkdir -p \$dldir~
9936       $install_prog $dir/$dlname \$dldir/$dlname~
9937       chmod a+x \$dldir/$dlname~
9938       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9939         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9940       fi'
9941     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9942       dlpath=$dir/\$dldll~
9943        $RM \$dlpath'
9944     shlibpath_overrides_runpath=yes
9945
9946     case $host_os in
9947     cygwin*)
9948       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9949       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9950       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9951       ;;
9952     mingw* | cegcc*)
9953       # MinGW DLLs use traditional 'lib' prefix
9954       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9956       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9957         # It is most probably a Windows format PATH printed by
9958         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9959         # path with ; separators, and with drive letters. We can handle the
9960         # drive letters (cygwin fileutils understands them), so leave them,
9961         # especially as we might pass files found there to a mingw objdump,
9962         # which wouldn't understand a cygwinified path. Ahh.
9963         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9964       else
9965         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9966       fi
9967       ;;
9968     pw32*)
9969       # pw32 DLLs use 'pw' prefix rather than 'lib'
9970       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9971       ;;
9972     esac
9973     ;;
9974
9975   *)
9976     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9977     ;;
9978   esac
9979   dynamic_linker='Win32 ld.exe'
9980   # FIXME: first we should search . and the directory the executable is in
9981   shlibpath_var=PATH
9982   ;;
9983
9984 darwin* | rhapsody*)
9985   dynamic_linker="$host_os dyld"
9986   version_type=darwin
9987   need_lib_prefix=no
9988   need_version=no
9989   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9990   soname_spec='${libname}${release}${major}$shared_ext'
9991   shlibpath_overrides_runpath=yes
9992   shlibpath_var=DYLD_LIBRARY_PATH
9993   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9994
9995   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9996   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9997   ;;
9998
9999 dgux*)
10000   version_type=linux
10001   need_lib_prefix=no
10002   need_version=no
10003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10004   soname_spec='${libname}${release}${shared_ext}$major'
10005   shlibpath_var=LD_LIBRARY_PATH
10006   ;;
10007
10008 freebsd1*)
10009   dynamic_linker=no
10010   ;;
10011
10012 freebsd* | dragonfly*)
10013   # DragonFly does not have aout.  When/if they implement a new
10014   # versioning mechanism, adjust this.
10015   if test -x /usr/bin/objformat; then
10016     objformat=`/usr/bin/objformat`
10017   else
10018     case $host_os in
10019     freebsd[123]*) objformat=aout ;;
10020     *) objformat=elf ;;
10021     esac
10022   fi
10023   version_type=freebsd-$objformat
10024   case $version_type in
10025     freebsd-elf*)
10026       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10027       need_version=no
10028       need_lib_prefix=no
10029       ;;
10030     freebsd-*)
10031       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10032       need_version=yes
10033       ;;
10034   esac
10035   shlibpath_var=LD_LIBRARY_PATH
10036   case $host_os in
10037   freebsd2*)
10038     shlibpath_overrides_runpath=yes
10039     ;;
10040   freebsd3.[01]* | freebsdelf3.[01]*)
10041     shlibpath_overrides_runpath=yes
10042     hardcode_into_libs=yes
10043     ;;
10044   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10045   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10046     shlibpath_overrides_runpath=no
10047     hardcode_into_libs=yes
10048     ;;
10049   *) # from 4.6 on, and DragonFly
10050     shlibpath_overrides_runpath=yes
10051     hardcode_into_libs=yes
10052     ;;
10053   esac
10054   ;;
10055
10056 gnu*)
10057   version_type=linux
10058   need_lib_prefix=no
10059   need_version=no
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10061   soname_spec='${libname}${release}${shared_ext}$major'
10062   shlibpath_var=LD_LIBRARY_PATH
10063   hardcode_into_libs=yes
10064   ;;
10065
10066 hpux9* | hpux10* | hpux11*)
10067   # Give a soname corresponding to the major version so that dld.sl refuses to
10068   # link against other versions.
10069   version_type=sunos
10070   need_lib_prefix=no
10071   need_version=no
10072   case $host_cpu in
10073   ia64*)
10074     shrext_cmds='.so'
10075     hardcode_into_libs=yes
10076     dynamic_linker="$host_os dld.so"
10077     shlibpath_var=LD_LIBRARY_PATH
10078     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080     soname_spec='${libname}${release}${shared_ext}$major'
10081     if test "X$HPUX_IA64_MODE" = X32; then
10082       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10083     else
10084       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10085     fi
10086     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10087     ;;
10088   hppa*64*)
10089     shrext_cmds='.sl'
10090     hardcode_into_libs=yes
10091     dynamic_linker="$host_os dld.sl"
10092     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10093     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095     soname_spec='${libname}${release}${shared_ext}$major'
10096     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10097     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10098     ;;
10099   *)
10100     shrext_cmds='.sl'
10101     dynamic_linker="$host_os dld.sl"
10102     shlibpath_var=SHLIB_PATH
10103     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105     soname_spec='${libname}${release}${shared_ext}$major'
10106     ;;
10107   esac
10108   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10109   postinstall_cmds='chmod 555 $lib'
10110   ;;
10111
10112 interix[3-9]*)
10113   version_type=linux
10114   need_lib_prefix=no
10115   need_version=no
10116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10117   soname_spec='${libname}${release}${shared_ext}$major'
10118   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10119   shlibpath_var=LD_LIBRARY_PATH
10120   shlibpath_overrides_runpath=no
10121   hardcode_into_libs=yes
10122   ;;
10123
10124 irix5* | irix6* | nonstopux*)
10125   case $host_os in
10126     nonstopux*) version_type=nonstopux ;;
10127     *)
10128         if test "$lt_cv_prog_gnu_ld" = yes; then
10129                 version_type=linux
10130         else
10131                 version_type=irix
10132         fi ;;
10133   esac
10134   need_lib_prefix=no
10135   need_version=no
10136   soname_spec='${libname}${release}${shared_ext}$major'
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10138   case $host_os in
10139   irix5* | nonstopux*)
10140     libsuff= shlibsuff=
10141     ;;
10142   *)
10143     case $LD in # libtool.m4 will add one of these switches to LD
10144     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10145       libsuff= shlibsuff= libmagic=32-bit;;
10146     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10147       libsuff=32 shlibsuff=N32 libmagic=N32;;
10148     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10149       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10150     *) libsuff= shlibsuff= libmagic=never-match;;
10151     esac
10152     ;;
10153   esac
10154   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10155   shlibpath_overrides_runpath=no
10156   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10157   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10158   hardcode_into_libs=yes
10159   ;;
10160
10161 # No shared lib support for Linux oldld, aout, or coff.
10162 linux*oldld* | linux*aout* | linux*coff*)
10163   dynamic_linker=no
10164   ;;
10165
10166 # This must be Linux ELF.
10167 linux* | k*bsd*-gnu)
10168   version_type=linux
10169   need_lib_prefix=no
10170   need_version=no
10171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172   soname_spec='${libname}${release}${shared_ext}$major'
10173   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10174   shlibpath_var=LD_LIBRARY_PATH
10175   shlibpath_overrides_runpath=no
10176   # Some binutils ld are patched to set DT_RUNPATH
10177   save_LDFLAGS=$LDFLAGS
10178   save_libdir=$libdir
10179   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10180        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10181   cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187
10188 int
10189 main ()
10190 {
10191
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (ac_try="$ac_link"
10198 case "(($ac_try" in
10199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200   *) ac_try_echo=$ac_try;;
10201 esac
10202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10203 $as_echo "$ac_try_echo") >&5
10204   (eval "$ac_link") 2>conftest.er1
10205   ac_status=$?
10206   grep -v '^ *+' conftest.er1 >conftest.err
10207   rm -f conftest.er1
10208   cat conftest.err >&5
10209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210   (exit $ac_status); } && {
10211          test -z "$ac_c_werror_flag" ||
10212          test ! -s conftest.err
10213        } && test -s conftest$ac_exeext && {
10214          test "$cross_compiling" = yes ||
10215          $as_test_x conftest$ac_exeext
10216        }; then
10217   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10218   shlibpath_overrides_runpath=yes
10219 fi
10220
10221 else
10222   $as_echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225
10226 fi
10227
10228 rm -rf conftest.dSYM
10229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230       conftest$ac_exeext conftest.$ac_ext
10231   LDFLAGS=$save_LDFLAGS
10232   libdir=$save_libdir
10233
10234   # This implies no fast_install, which is unacceptable.
10235   # Some rework will be needed to allow for fast_install
10236   # before this can be enabled.
10237   hardcode_into_libs=yes
10238
10239   # Add ABI-specific directories to the system library path.
10240   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10241
10242   # Append ld.so.conf contents to the search path
10243   if test -f /etc/ld.so.conf; then
10244     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' ' '`
10245     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10246   fi
10247
10248   # We used to test for /lib/ld.so.1 and disable shared libraries on
10249   # powerpc, because MkLinux only supported shared libraries with the
10250   # GNU dynamic linker.  Since this was broken with cross compilers,
10251   # most powerpc-linux boxes support dynamic linking these days and
10252   # people can always --disable-shared, the test was removed, and we
10253   # assume the GNU/Linux dynamic linker is in use.
10254   dynamic_linker='GNU/Linux ld.so'
10255   ;;
10256
10257 netbsd*)
10258   version_type=sunos
10259   need_lib_prefix=no
10260   need_version=no
10261   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10263     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10264     dynamic_linker='NetBSD (a.out) ld.so'
10265   else
10266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10267     soname_spec='${libname}${release}${shared_ext}$major'
10268     dynamic_linker='NetBSD ld.elf_so'
10269   fi
10270   shlibpath_var=LD_LIBRARY_PATH
10271   shlibpath_overrides_runpath=yes
10272   hardcode_into_libs=yes
10273   ;;
10274
10275 newsos6)
10276   version_type=linux
10277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278   shlibpath_var=LD_LIBRARY_PATH
10279   shlibpath_overrides_runpath=yes
10280   ;;
10281
10282 *nto* | *qnx*)
10283   version_type=qnx
10284   need_lib_prefix=no
10285   need_version=no
10286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287   soname_spec='${libname}${release}${shared_ext}$major'
10288   shlibpath_var=LD_LIBRARY_PATH
10289   shlibpath_overrides_runpath=no
10290   hardcode_into_libs=yes
10291   dynamic_linker='ldqnx.so'
10292   ;;
10293
10294 openbsd*)
10295   version_type=sunos
10296   sys_lib_dlsearch_path_spec="/usr/lib"
10297   need_lib_prefix=no
10298   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10299   case $host_os in
10300     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10301     *)                          need_version=no  ;;
10302   esac
10303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10305   shlibpath_var=LD_LIBRARY_PATH
10306   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10307     case $host_os in
10308       openbsd2.[89] | openbsd2.[89].*)
10309         shlibpath_overrides_runpath=no
10310         ;;
10311       *)
10312         shlibpath_overrides_runpath=yes
10313         ;;
10314       esac
10315   else
10316     shlibpath_overrides_runpath=yes
10317   fi
10318   ;;
10319
10320 os2*)
10321   libname_spec='$name'
10322   shrext_cmds=".dll"
10323   need_lib_prefix=no
10324   library_names_spec='$libname${shared_ext} $libname.a'
10325   dynamic_linker='OS/2 ld.exe'
10326   shlibpath_var=LIBPATH
10327   ;;
10328
10329 osf3* | osf4* | osf5*)
10330   version_type=osf
10331   need_lib_prefix=no
10332   need_version=no
10333   soname_spec='${libname}${release}${shared_ext}$major'
10334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335   shlibpath_var=LD_LIBRARY_PATH
10336   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10337   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10338   ;;
10339
10340 rdos*)
10341   dynamic_linker=no
10342   ;;
10343
10344 solaris*)
10345   version_type=linux
10346   need_lib_prefix=no
10347   need_version=no
10348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349   soname_spec='${libname}${release}${shared_ext}$major'
10350   shlibpath_var=LD_LIBRARY_PATH
10351   shlibpath_overrides_runpath=yes
10352   hardcode_into_libs=yes
10353   # ldd complains unless libraries are executable
10354   postinstall_cmds='chmod +x $lib'
10355   ;;
10356
10357 sunos4*)
10358   version_type=sunos
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10360   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   shlibpath_overrides_runpath=yes
10363   if test "$with_gnu_ld" = yes; then
10364     need_lib_prefix=no
10365   fi
10366   need_version=yes
10367   ;;
10368
10369 sysv4 | sysv4.3*)
10370   version_type=linux
10371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372   soname_spec='${libname}${release}${shared_ext}$major'
10373   shlibpath_var=LD_LIBRARY_PATH
10374   case $host_vendor in
10375     sni)
10376       shlibpath_overrides_runpath=no
10377       need_lib_prefix=no
10378       runpath_var=LD_RUN_PATH
10379       ;;
10380     siemens)
10381       need_lib_prefix=no
10382       ;;
10383     motorola)
10384       need_lib_prefix=no
10385       need_version=no
10386       shlibpath_overrides_runpath=no
10387       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10388       ;;
10389   esac
10390   ;;
10391
10392 sysv4*MP*)
10393   if test -d /usr/nec ;then
10394     version_type=linux
10395     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10396     soname_spec='$libname${shared_ext}.$major'
10397     shlibpath_var=LD_LIBRARY_PATH
10398   fi
10399   ;;
10400
10401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10402   version_type=freebsd-elf
10403   need_lib_prefix=no
10404   need_version=no
10405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10406   soname_spec='${libname}${release}${shared_ext}$major'
10407   shlibpath_var=LD_LIBRARY_PATH
10408   shlibpath_overrides_runpath=yes
10409   hardcode_into_libs=yes
10410   if test "$with_gnu_ld" = yes; then
10411     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10412   else
10413     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10414     case $host_os in
10415       sco3.2v5*)
10416         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10417         ;;
10418     esac
10419   fi
10420   sys_lib_dlsearch_path_spec='/usr/lib'
10421   ;;
10422
10423 tpf*)
10424   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10425   version_type=linux
10426   need_lib_prefix=no
10427   need_version=no
10428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429   shlibpath_var=LD_LIBRARY_PATH
10430   shlibpath_overrides_runpath=no
10431   hardcode_into_libs=yes
10432   ;;
10433
10434 uts4*)
10435   version_type=linux
10436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437   soname_spec='${libname}${release}${shared_ext}$major'
10438   shlibpath_var=LD_LIBRARY_PATH
10439   ;;
10440
10441 *)
10442   dynamic_linker=no
10443   ;;
10444 esac
10445 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10446 $as_echo "$dynamic_linker" >&6; }
10447 test "$dynamic_linker" = no && can_build_shared=no
10448
10449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10450 if test "$GCC" = yes; then
10451   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10452 fi
10453
10454 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10455   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10456 fi
10457 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10458   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10459 fi
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
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   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10548 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10549 hardcode_action=
10550 if test -n "$hardcode_libdir_flag_spec" ||
10551    test -n "$runpath_var" ||
10552    test "X$hardcode_automatic" = "Xyes" ; then
10553
10554   # We can hardcode non-existent directories.
10555   if test "$hardcode_direct" != no &&
10556      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10557      # have to relink, otherwise we might link with an installed library
10558      # when we should be linking with a yet-to-be-installed one
10559      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10560      test "$hardcode_minus_L" != no; then
10561     # Linking always hardcodes the temporary library directory.
10562     hardcode_action=relink
10563   else
10564     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10565     hardcode_action=immediate
10566   fi
10567 else
10568   # We cannot hardcode anything, or else we can only hardcode existing
10569   # directories.
10570   hardcode_action=unsupported
10571 fi
10572 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10573 $as_echo "$hardcode_action" >&6; }
10574
10575 if test "$hardcode_action" = relink ||
10576    test "$inherit_rpath" = yes; then
10577   # Fast installation is not supported
10578   enable_fast_install=no
10579 elif test "$shlibpath_overrides_runpath" = yes ||
10580      test "$enable_shared" = no; then
10581   # Fast installation is not necessary
10582   enable_fast_install=needless
10583 fi
10584
10585
10586
10587
10588
10589
10590   if test "x$enable_dlopen" != xyes; then
10591   enable_dlopen=unknown
10592   enable_dlopen_self=unknown
10593   enable_dlopen_self_static=unknown
10594 else
10595   lt_cv_dlopen=no
10596   lt_cv_dlopen_libs=
10597
10598   case $host_os in
10599   beos*)
10600     lt_cv_dlopen="load_add_on"
10601     lt_cv_dlopen_libs=
10602     lt_cv_dlopen_self=yes
10603     ;;
10604
10605   mingw* | pw32* | cegcc*)
10606     lt_cv_dlopen="LoadLibrary"
10607     lt_cv_dlopen_libs=
10608     ;;
10609
10610   cygwin*)
10611     lt_cv_dlopen="dlopen"
10612     lt_cv_dlopen_libs=
10613     ;;
10614
10615   darwin*)
10616   # if libdl is installed we need to link against it
10617     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10618 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10620   $as_echo_n "(cached) " >&6
10621 else
10622   ac_check_lib_save_LIBS=$LIBS
10623 LIBS="-ldl  $LIBS"
10624 cat >conftest.$ac_ext <<_ACEOF
10625 /* confdefs.h.  */
10626 _ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h.  */
10630
10631 /* Override any GCC internal prototype to avoid an error.
10632    Use char because int might match the return type of a GCC
10633    builtin and then its argument prototype would still apply.  */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char dlopen ();
10638 int
10639 main ()
10640 {
10641 return dlopen ();
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (ac_try="$ac_link"
10648 case "(($ac_try" in
10649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650   *) ac_try_echo=$ac_try;;
10651 esac
10652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10653 $as_echo "$ac_try_echo") >&5
10654   (eval "$ac_link") 2>conftest.er1
10655   ac_status=$?
10656   grep -v '^ *+' conftest.er1 >conftest.err
10657   rm -f conftest.er1
10658   cat conftest.err >&5
10659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); } && {
10661          test -z "$ac_c_werror_flag" ||
10662          test ! -s conftest.err
10663        } && test -s conftest$ac_exeext && {
10664          test "$cross_compiling" = yes ||
10665          $as_test_x conftest$ac_exeext
10666        }; then
10667   ac_cv_lib_dl_dlopen=yes
10668 else
10669   $as_echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672         ac_cv_lib_dl_dlopen=no
10673 fi
10674
10675 rm -rf conftest.dSYM
10676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677       conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10679 fi
10680 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10681 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10682 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10683   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10684 else
10685
10686     lt_cv_dlopen="dyld"
10687     lt_cv_dlopen_libs=
10688     lt_cv_dlopen_self=yes
10689
10690 fi
10691
10692     ;;
10693
10694   *)
10695     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10696 $as_echo_n "checking for shl_load... " >&6; }
10697 if test "${ac_cv_func_shl_load+set}" = set; then
10698   $as_echo_n "(cached) " >&6
10699 else
10700   cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10708 #define shl_load innocuous_shl_load
10709
10710 /* System header to define __stub macros and hopefully few prototypes,
10711     which can conflict with char shl_load (); below.
10712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713     <limits.h> exists even on freestanding compilers.  */
10714
10715 #ifdef __STDC__
10716 # include <limits.h>
10717 #else
10718 # include <assert.h>
10719 #endif
10720
10721 #undef shl_load
10722
10723 /* Override any GCC internal prototype to avoid an error.
10724    Use char because int might match the return type of a GCC
10725    builtin and then its argument prototype would still apply.  */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 char shl_load ();
10730 /* The GNU C library defines this for functions which it implements
10731     to always fail with ENOSYS.  Some functions are actually named
10732     something starting with __ and the normal name is an alias.  */
10733 #if defined __stub_shl_load || defined __stub___shl_load
10734 choke me
10735 #endif
10736
10737 int
10738 main ()
10739 {
10740 return shl_load ();
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (ac_try="$ac_link"
10747 case "(($ac_try" in
10748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749   *) ac_try_echo=$ac_try;;
10750 esac
10751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752 $as_echo "$ac_try_echo") >&5
10753   (eval "$ac_link") 2>conftest.er1
10754   ac_status=$?
10755   grep -v '^ *+' conftest.er1 >conftest.err
10756   rm -f conftest.er1
10757   cat conftest.err >&5
10758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759   (exit $ac_status); } && {
10760          test -z "$ac_c_werror_flag" ||
10761          test ! -s conftest.err
10762        } && test -s conftest$ac_exeext && {
10763          test "$cross_compiling" = yes ||
10764          $as_test_x conftest$ac_exeext
10765        }; then
10766   ac_cv_func_shl_load=yes
10767 else
10768   $as_echo "$as_me: failed program was:" >&5
10769 sed 's/^/| /' conftest.$ac_ext >&5
10770
10771         ac_cv_func_shl_load=no
10772 fi
10773
10774 rm -rf conftest.dSYM
10775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776       conftest$ac_exeext conftest.$ac_ext
10777 fi
10778 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10779 $as_echo "$ac_cv_func_shl_load" >&6; }
10780 if test "x$ac_cv_func_shl_load" = x""yes; then
10781   lt_cv_dlopen="shl_load"
10782 else
10783   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10784 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10785 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10786   $as_echo_n "(cached) " >&6
10787 else
10788   ac_check_lib_save_LIBS=$LIBS
10789 LIBS="-ldld  $LIBS"
10790 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h.  */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h.  */
10796
10797 /* Override any GCC internal prototype to avoid an error.
10798    Use char because int might match the return type of a GCC
10799    builtin and then its argument prototype would still apply.  */
10800 #ifdef __cplusplus
10801 extern "C"
10802 #endif
10803 char shl_load ();
10804 int
10805 main ()
10806 {
10807 return shl_load ();
10808   ;
10809   return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (ac_try="$ac_link"
10814 case "(($ac_try" in
10815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816   *) ac_try_echo=$ac_try;;
10817 esac
10818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10819 $as_echo "$ac_try_echo") >&5
10820   (eval "$ac_link") 2>conftest.er1
10821   ac_status=$?
10822   grep -v '^ *+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } && {
10827          test -z "$ac_c_werror_flag" ||
10828          test ! -s conftest.err
10829        } && test -s conftest$ac_exeext && {
10830          test "$cross_compiling" = yes ||
10831          $as_test_x conftest$ac_exeext
10832        }; then
10833   ac_cv_lib_dld_shl_load=yes
10834 else
10835   $as_echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838         ac_cv_lib_dld_shl_load=no
10839 fi
10840
10841 rm -rf conftest.dSYM
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843       conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10845 fi
10846 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10847 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10848 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10849   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10850 else
10851   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10852 $as_echo_n "checking for dlopen... " >&6; }
10853 if test "${ac_cv_func_dlopen+set}" = set; then
10854   $as_echo_n "(cached) " >&6
10855 else
10856   cat >conftest.$ac_ext <<_ACEOF
10857 /* confdefs.h.  */
10858 _ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h.  */
10862 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10864 #define dlopen innocuous_dlopen
10865
10866 /* System header to define __stub macros and hopefully few prototypes,
10867     which can conflict with char dlopen (); below.
10868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10869     <limits.h> exists even on freestanding compilers.  */
10870
10871 #ifdef __STDC__
10872 # include <limits.h>
10873 #else
10874 # include <assert.h>
10875 #endif
10876
10877 #undef dlopen
10878
10879 /* Override any GCC internal prototype to avoid an error.
10880    Use char because int might match the return type of a GCC
10881    builtin and then its argument prototype would still apply.  */
10882 #ifdef __cplusplus
10883 extern "C"
10884 #endif
10885 char dlopen ();
10886 /* The GNU C library defines this for functions which it implements
10887     to always fail with ENOSYS.  Some functions are actually named
10888     something starting with __ and the normal name is an alias.  */
10889 #if defined __stub_dlopen || defined __stub___dlopen
10890 choke me
10891 #endif
10892
10893 int
10894 main ()
10895 {
10896 return dlopen ();
10897   ;
10898   return 0;
10899 }
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (ac_try="$ac_link"
10903 case "(($ac_try" in
10904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905   *) ac_try_echo=$ac_try;;
10906 esac
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909   (eval "$ac_link") 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } && {
10916          test -z "$ac_c_werror_flag" ||
10917          test ! -s conftest.err
10918        } && test -s conftest$ac_exeext && {
10919          test "$cross_compiling" = yes ||
10920          $as_test_x conftest$ac_exeext
10921        }; then
10922   ac_cv_func_dlopen=yes
10923 else
10924   $as_echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10926
10927         ac_cv_func_dlopen=no
10928 fi
10929
10930 rm -rf conftest.dSYM
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932       conftest$ac_exeext conftest.$ac_ext
10933 fi
10934 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10935 $as_echo "$ac_cv_func_dlopen" >&6; }
10936 if test "x$ac_cv_func_dlopen" = x""yes; then
10937   lt_cv_dlopen="dlopen"
10938 else
10939   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10942   $as_echo_n "(cached) " >&6
10943 else
10944   ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-ldl  $LIBS"
10946 cat >conftest.$ac_ext <<_ACEOF
10947 /* confdefs.h.  */
10948 _ACEOF
10949 cat confdefs.h >>conftest.$ac_ext
10950 cat >>conftest.$ac_ext <<_ACEOF
10951 /* end confdefs.h.  */
10952
10953 /* Override any GCC internal prototype to avoid an error.
10954    Use char because int might match the return type of a GCC
10955    builtin and then its argument prototype would still apply.  */
10956 #ifdef __cplusplus
10957 extern "C"
10958 #endif
10959 char dlopen ();
10960 int
10961 main ()
10962 {
10963 return dlopen ();
10964   ;
10965   return 0;
10966 }
10967 _ACEOF
10968 rm -f conftest.$ac_objext conftest$ac_exeext
10969 if { (ac_try="$ac_link"
10970 case "(($ac_try" in
10971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972   *) ac_try_echo=$ac_try;;
10973 esac
10974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975 $as_echo "$ac_try_echo") >&5
10976   (eval "$ac_link") 2>conftest.er1
10977   ac_status=$?
10978   grep -v '^ *+' conftest.er1 >conftest.err
10979   rm -f conftest.er1
10980   cat conftest.err >&5
10981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); } && {
10983          test -z "$ac_c_werror_flag" ||
10984          test ! -s conftest.err
10985        } && test -s conftest$ac_exeext && {
10986          test "$cross_compiling" = yes ||
10987          $as_test_x conftest$ac_exeext
10988        }; then
10989   ac_cv_lib_dl_dlopen=yes
10990 else
10991   $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994         ac_cv_lib_dl_dlopen=no
10995 fi
10996
10997 rm -rf conftest.dSYM
10998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999       conftest$ac_exeext conftest.$ac_ext
11000 LIBS=$ac_check_lib_save_LIBS
11001 fi
11002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11005   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11006 else
11007   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11008 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11010   $as_echo_n "(cached) " >&6
11011 else
11012   ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lsvld  $LIBS"
11014 cat >conftest.$ac_ext <<_ACEOF
11015 /* confdefs.h.  */
11016 _ACEOF
11017 cat confdefs.h >>conftest.$ac_ext
11018 cat >>conftest.$ac_ext <<_ACEOF
11019 /* end confdefs.h.  */
11020
11021 /* Override any GCC internal prototype to avoid an error.
11022    Use char because int might match the return type of a GCC
11023    builtin and then its argument prototype would still apply.  */
11024 #ifdef __cplusplus
11025 extern "C"
11026 #endif
11027 char dlopen ();
11028 int
11029 main ()
11030 {
11031 return dlopen ();
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040   *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044   (eval "$ac_link") 2>conftest.er1
11045   ac_status=$?
11046   grep -v '^ *+' conftest.er1 >conftest.err
11047   rm -f conftest.er1
11048   cat conftest.err >&5
11049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050   (exit $ac_status); } && {
11051          test -z "$ac_c_werror_flag" ||
11052          test ! -s conftest.err
11053        } && test -s conftest$ac_exeext && {
11054          test "$cross_compiling" = yes ||
11055          $as_test_x conftest$ac_exeext
11056        }; then
11057   ac_cv_lib_svld_dlopen=yes
11058 else
11059   $as_echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11061
11062         ac_cv_lib_svld_dlopen=no
11063 fi
11064
11065 rm -rf conftest.dSYM
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067       conftest$ac_exeext conftest.$ac_ext
11068 LIBS=$ac_check_lib_save_LIBS
11069 fi
11070 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11072 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11074 else
11075   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11077 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11078   $as_echo_n "(cached) " >&6
11079 else
11080   ac_check_lib_save_LIBS=$LIBS
11081 LIBS="-ldld  $LIBS"
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h.  */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h.  */
11088
11089 /* Override any GCC internal prototype to avoid an error.
11090    Use char because int might match the return type of a GCC
11091    builtin and then its argument prototype would still apply.  */
11092 #ifdef __cplusplus
11093 extern "C"
11094 #endif
11095 char dld_link ();
11096 int
11097 main ()
11098 {
11099 return dld_link ();
11100   ;
11101   return 0;
11102 }
11103 _ACEOF
11104 rm -f conftest.$ac_objext conftest$ac_exeext
11105 if { (ac_try="$ac_link"
11106 case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11111 $as_echo "$ac_try_echo") >&5
11112   (eval "$ac_link") 2>conftest.er1
11113   ac_status=$?
11114   grep -v '^ *+' conftest.er1 >conftest.err
11115   rm -f conftest.er1
11116   cat conftest.err >&5
11117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } && {
11119          test -z "$ac_c_werror_flag" ||
11120          test ! -s conftest.err
11121        } && test -s conftest$ac_exeext && {
11122          test "$cross_compiling" = yes ||
11123          $as_test_x conftest$ac_exeext
11124        }; then
11125   ac_cv_lib_dld_dld_link=yes
11126 else
11127   $as_echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130         ac_cv_lib_dld_dld_link=no
11131 fi
11132
11133 rm -rf conftest.dSYM
11134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11135       conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11137 fi
11138 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11139 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11140 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11141   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11142 fi
11143
11144
11145 fi
11146
11147
11148 fi
11149
11150
11151 fi
11152
11153
11154 fi
11155
11156
11157 fi
11158
11159     ;;
11160   esac
11161
11162   if test "x$lt_cv_dlopen" != xno; then
11163     enable_dlopen=yes
11164   else
11165     enable_dlopen=no
11166   fi
11167
11168   case $lt_cv_dlopen in
11169   dlopen)
11170     save_CPPFLAGS="$CPPFLAGS"
11171     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11172
11173     save_LDFLAGS="$LDFLAGS"
11174     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11175
11176     save_LIBS="$LIBS"
11177     LIBS="$lt_cv_dlopen_libs $LIBS"
11178
11179     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11180 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11181 if test "${lt_cv_dlopen_self+set}" = set; then
11182   $as_echo_n "(cached) " >&6
11183 else
11184           if test "$cross_compiling" = yes; then :
11185   lt_cv_dlopen_self=cross
11186 else
11187   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11188   lt_status=$lt_dlunknown
11189   cat > conftest.$ac_ext <<_LT_EOF
11190 #line 11190 "configure"
11191 #include "confdefs.h"
11192
11193 #if HAVE_DLFCN_H
11194 #include <dlfcn.h>
11195 #endif
11196
11197 #include <stdio.h>
11198
11199 #ifdef RTLD_GLOBAL
11200 #  define LT_DLGLOBAL           RTLD_GLOBAL
11201 #else
11202 #  ifdef DL_GLOBAL
11203 #    define LT_DLGLOBAL         DL_GLOBAL
11204 #  else
11205 #    define LT_DLGLOBAL         0
11206 #  endif
11207 #endif
11208
11209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11210    find out it does not work in some platform. */
11211 #ifndef LT_DLLAZY_OR_NOW
11212 #  ifdef RTLD_LAZY
11213 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11214 #  else
11215 #    ifdef DL_LAZY
11216 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11217 #    else
11218 #      ifdef RTLD_NOW
11219 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11220 #      else
11221 #        ifdef DL_NOW
11222 #          define LT_DLLAZY_OR_NOW      DL_NOW
11223 #        else
11224 #          define LT_DLLAZY_OR_NOW      0
11225 #        endif
11226 #      endif
11227 #    endif
11228 #  endif
11229 #endif
11230
11231 void fnord() { int i=42;}
11232 int main ()
11233 {
11234   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11235   int status = $lt_dlunknown;
11236
11237   if (self)
11238     {
11239       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11240       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11241       /* dlclose (self); */
11242     }
11243   else
11244     puts (dlerror ());
11245
11246   return status;
11247 }
11248 _LT_EOF
11249   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250   (eval $ac_link) 2>&5
11251   ac_status=$?
11252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11254     (./conftest; exit; ) >&5 2>/dev/null
11255     lt_status=$?
11256     case x$lt_status in
11257       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11258       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11259       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11260     esac
11261   else :
11262     # compilation failed
11263     lt_cv_dlopen_self=no
11264   fi
11265 fi
11266 rm -fr conftest*
11267
11268
11269 fi
11270 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11271 $as_echo "$lt_cv_dlopen_self" >&6; }
11272
11273     if test "x$lt_cv_dlopen_self" = xyes; then
11274       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11275       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11276 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11277 if test "${lt_cv_dlopen_self_static+set}" = set; then
11278   $as_echo_n "(cached) " >&6
11279 else
11280           if test "$cross_compiling" = yes; then :
11281   lt_cv_dlopen_self_static=cross
11282 else
11283   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11284   lt_status=$lt_dlunknown
11285   cat > conftest.$ac_ext <<_LT_EOF
11286 #line 11286 "configure"
11287 #include "confdefs.h"
11288
11289 #if HAVE_DLFCN_H
11290 #include <dlfcn.h>
11291 #endif
11292
11293 #include <stdio.h>
11294
11295 #ifdef RTLD_GLOBAL
11296 #  define LT_DLGLOBAL           RTLD_GLOBAL
11297 #else
11298 #  ifdef DL_GLOBAL
11299 #    define LT_DLGLOBAL         DL_GLOBAL
11300 #  else
11301 #    define LT_DLGLOBAL         0
11302 #  endif
11303 #endif
11304
11305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11306    find out it does not work in some platform. */
11307 #ifndef LT_DLLAZY_OR_NOW
11308 #  ifdef RTLD_LAZY
11309 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11310 #  else
11311 #    ifdef DL_LAZY
11312 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11313 #    else
11314 #      ifdef RTLD_NOW
11315 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11316 #      else
11317 #        ifdef DL_NOW
11318 #          define LT_DLLAZY_OR_NOW      DL_NOW
11319 #        else
11320 #          define LT_DLLAZY_OR_NOW      0
11321 #        endif
11322 #      endif
11323 #    endif
11324 #  endif
11325 #endif
11326
11327 void fnord() { int i=42;}
11328 int main ()
11329 {
11330   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11331   int status = $lt_dlunknown;
11332
11333   if (self)
11334     {
11335       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11336       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11337       /* dlclose (self); */
11338     }
11339   else
11340     puts (dlerror ());
11341
11342   return status;
11343 }
11344 _LT_EOF
11345   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346   (eval $ac_link) 2>&5
11347   ac_status=$?
11348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11350     (./conftest; exit; ) >&5 2>/dev/null
11351     lt_status=$?
11352     case x$lt_status in
11353       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11354       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11355       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11356     esac
11357   else :
11358     # compilation failed
11359     lt_cv_dlopen_self_static=no
11360   fi
11361 fi
11362 rm -fr conftest*
11363
11364
11365 fi
11366 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11367 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11368     fi
11369
11370     CPPFLAGS="$save_CPPFLAGS"
11371     LDFLAGS="$save_LDFLAGS"
11372     LIBS="$save_LIBS"
11373     ;;
11374   esac
11375
11376   case $lt_cv_dlopen_self in
11377   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11378   *) enable_dlopen_self=unknown ;;
11379   esac
11380
11381   case $lt_cv_dlopen_self_static in
11382   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11383   *) enable_dlopen_self_static=unknown ;;
11384   esac
11385 fi
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403 striplib=
11404 old_striplib=
11405 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11406 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11407 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11408   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11409   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11410   { $as_echo "$as_me:$LINENO: result: yes" >&5
11411 $as_echo "yes" >&6; }
11412 else
11413 # FIXME - insert some real tests, host_os isn't really good enough
11414   case $host_os in
11415   darwin*)
11416     if test -n "$STRIP" ; then
11417       striplib="$STRIP -x"
11418       old_striplib="$STRIP -S"
11419       { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11421     else
11422       { $as_echo "$as_me:$LINENO: result: no" >&5
11423 $as_echo "no" >&6; }
11424     fi
11425     ;;
11426   *)
11427     { $as_echo "$as_me:$LINENO: result: no" >&5
11428 $as_echo "no" >&6; }
11429     ;;
11430   esac
11431 fi
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444   # Report which library types will actually be built
11445   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11446 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11447   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11448 $as_echo "$can_build_shared" >&6; }
11449
11450   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11451 $as_echo_n "checking whether to build shared libraries... " >&6; }
11452   test "$can_build_shared" = "no" && enable_shared=no
11453
11454   # On AIX, shared libraries and static libraries use the same namespace, and
11455   # are all built from PIC.
11456   case $host_os in
11457   aix3*)
11458     test "$enable_shared" = yes && enable_static=no
11459     if test -n "$RANLIB"; then
11460       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11461       postinstall_cmds='$RANLIB $lib'
11462     fi
11463     ;;
11464
11465   aix[4-9]*)
11466     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11467       test "$enable_shared" = yes && enable_static=no
11468     fi
11469     ;;
11470   esac
11471   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11472 $as_echo "$enable_shared" >&6; }
11473
11474   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11475 $as_echo_n "checking whether to build static libraries... " >&6; }
11476   # Make sure either enable_shared or enable_static is yes.
11477   test "$enable_shared" = yes || enable_static=yes
11478   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11479 $as_echo "$enable_static" >&6; }
11480
11481
11482
11483
11484 fi
11485 ac_ext=c
11486 ac_cpp='$CPP $CPPFLAGS'
11487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11490
11491 CC="$lt_save_CC"
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505         ac_config_commands="$ac_config_commands libtool"
11506
11507
11508
11509
11510 # Only expand once:
11511
11512
11513 # By default we simply use the C compiler to build assembly code.
11514
11515 test "${CCAS+set}" = set || CCAS=$CC
11516 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11517
11518
11519
11520 depcc="$CCAS"   am_compiler_list=
11521
11522 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11523 $as_echo_n "checking dependency style of $depcc... " >&6; }
11524 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11525   $as_echo_n "(cached) " >&6
11526 else
11527   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11528   # We make a subdir and do the tests there.  Otherwise we can end up
11529   # making bogus files that we don't know about and never remove.  For
11530   # instance it was reported that on HP-UX the gcc test will end up
11531   # making a dummy file named `D' -- because `-MD' means `put the output
11532   # in D'.
11533   mkdir conftest.dir
11534   # Copy depcomp to subdir because otherwise we won't find it if we're
11535   # using a relative directory.
11536   cp "$am_depcomp" conftest.dir
11537   cd conftest.dir
11538   # We will build objects and dependencies in a subdirectory because
11539   # it helps to detect inapplicable dependency modes.  For instance
11540   # both Tru64's cc and ICC support -MD to output dependencies as a
11541   # side effect of compilation, but ICC will put the dependencies in
11542   # the current directory while Tru64 will put them in the object
11543   # directory.
11544   mkdir sub
11545
11546   am_cv_CCAS_dependencies_compiler_type=none
11547   if test "$am_compiler_list" = ""; then
11548      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11549   fi
11550   am__universal=false
11551
11552
11553   for depmode in $am_compiler_list; do
11554     # Setup a source with many dependencies, because some compilers
11555     # like to wrap large dependency lists on column 80 (with \), and
11556     # we should not choose a depcomp mode which is confused by this.
11557     #
11558     # We need to recreate these files for each test, as the compiler may
11559     # overwrite some of them when testing with obscure command lines.
11560     # This happens at least with the AIX C compiler.
11561     : > sub/conftest.c
11562     for i in 1 2 3 4 5 6; do
11563       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11564       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11565       # Solaris 8's {/usr,}/bin/sh.
11566       touch sub/conftst$i.h
11567     done
11568     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11569
11570     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11571     # mode.  It turns out that the SunPro C++ compiler does not properly
11572     # handle `-M -o', and we need to detect this.  Also, some Intel
11573     # versions had trouble with output in subdirs
11574     am__obj=sub/conftest.${OBJEXT-o}
11575     am__minus_obj="-o $am__obj"
11576     case $depmode in
11577     gcc)
11578       # This depmode causes a compiler race in universal mode.
11579       test "$am__universal" = false || continue
11580       ;;
11581     nosideeffect)
11582       # after this tag, mechanisms are not by side-effect, so they'll
11583       # only be used when explicitly requested
11584       if test "x$enable_dependency_tracking" = xyes; then
11585         continue
11586       else
11587         break
11588       fi
11589       ;;
11590     msvisualcpp | msvcmsys)
11591       # This compiler won't grok `-c -o', but also, the minuso test has
11592       # not run yet.  These depmodes are late enough in the game, and
11593       # so weak that their functioning should not be impacted.
11594       am__obj=conftest.${OBJEXT-o}
11595       am__minus_obj=
11596       ;;
11597     none) break ;;
11598     esac
11599     if depmode=$depmode \
11600        source=sub/conftest.c object=$am__obj \
11601        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11602        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11603          >/dev/null 2>conftest.err &&
11604        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11605        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11606        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11607        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11608       # icc doesn't choke on unknown options, it will just issue warnings
11609       # or remarks (even with -Werror).  So we grep stderr for any message
11610       # that says an option was ignored or not supported.
11611       # When given -MP, icc 7.0 and 7.1 complain thusly:
11612       #   icc: Command line warning: ignoring option '-M'; no argument required
11613       # The diagnosis changed in icc 8.0:
11614       #   icc: Command line remark: option '-MP' not supported
11615       if (grep 'ignoring option' conftest.err ||
11616           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11617         am_cv_CCAS_dependencies_compiler_type=$depmode
11618         break
11619       fi
11620     fi
11621   done
11622
11623   cd ..
11624   rm -rf conftest.dir
11625 else
11626   am_cv_CCAS_dependencies_compiler_type=none
11627 fi
11628
11629 fi
11630 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11631 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11632 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11633
11634  if
11635   test "x$enable_dependency_tracking" != xno \
11636   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11637   am__fastdepCCAS_TRUE=
11638   am__fastdepCCAS_FALSE='#'
11639 else
11640   am__fastdepCCAS_TRUE='#'
11641   am__fastdepCCAS_FALSE=
11642 fi
11643
11644
11645
11646
11647         { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11648 $as_echo_n "checking zfs author... " >&6; }
11649         { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11650 $as_echo "$ZFS_META_AUTHOR" >&6; }
11651
11652         { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11653 $as_echo_n "checking zfs license... " >&6; }
11654         { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11655 $as_echo "$ZFS_META_LICENSE" >&6; }
11656
11657
11658
11659         RPM=rpm
11660         RPMBUILD=rpmbuild
11661
11662         { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11663 $as_echo_n "checking whether $RPM is available... " >&6; }
11664         if tmp=$($RPM --version 2>/dev/null); then
11665
11666                 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11667                 HAVE_RPM=yes
11668                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11669 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11670
11671 else
11672
11673                 HAVE_RPM=no
11674                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11675 $as_echo "$HAVE_RPM" >&6; }
11676
11677 fi
11678
11679
11680         { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11681 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11682         if tmp=$($RPMBUILD --version 2>/dev/null); then
11683
11684                 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11685                 HAVE_RPMBUILD=yes
11686                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11687 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11688
11689 else
11690
11691                 HAVE_RPMBUILD=no
11692                 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11693 $as_echo "$HAVE_RPMBUILD" >&6; }
11694
11695 fi
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707         DPKG=dpkg
11708         DPKGBUILD=dpkg-buildpackage
11709
11710         { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11711 $as_echo_n "checking whether $DPKG is available... " >&6; }
11712         if tmp=$($DPKG --version 2>/dev/null); then
11713
11714                 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11715                 HAVE_DPKG=yes
11716                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11717 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11718
11719 else
11720
11721                 HAVE_DPKG=no
11722                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11723 $as_echo "$HAVE_DPKG" >&6; }
11724
11725 fi
11726
11727
11728         { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11729 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11730         if tmp=$($DPKGBUILD --version 2>/dev/null); then
11731
11732                 DPKGBUILD_VERSION=$(echo $tmp | \
11733                     $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11734                 HAVE_DPKGBUILD=yes
11735                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11736 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11737
11738 else
11739
11740                 HAVE_DPKGBUILD=no
11741                 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11742 $as_echo "$HAVE_DPKGBUILD" >&6; }
11743
11744 fi
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756         ALIEN=alien
11757
11758         { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11759 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11760         if tmp=$($ALIEN --version 2>/dev/null); then
11761
11762                 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11763                 HAVE_ALIEN=yes
11764                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11765 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11766
11767 else
11768
11769                 HAVE_ALIEN=no
11770                 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11771 $as_echo "$HAVE_ALIEN" >&6; }
11772
11773 fi
11774
11775
11776
11777
11778
11779
11780
11781         { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11782 $as_echo_n "checking linux distribution... " >&6; }
11783         if test -f /etc/redhat-release ; then
11784                 VENDOR=redhat ;
11785         elif test -f /etc/fedora-release ; then
11786                 VENDOR=fedora ;
11787         elif test -f /etc/lsb-release ; then
11788                 VENDOR=ubuntu ;
11789         elif test -f /etc/debian_version ; then
11790                 VENDOR=debian ;
11791         elif test -f /etc/SuSE-release ; then
11792                 VENDOR=sles ;
11793         elif test -f /etc/slackware-version ; then
11794                 VENDOR=slackware ;
11795         elif test -f /etc/gentoo-release ; then
11796                 VENDOR=gentoo ;
11797         else
11798                 VENDOR= ;
11799         fi
11800         { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11801 $as_echo "$VENDOR" >&6; }
11802
11803
11804         { $as_echo "$as_me:$LINENO: checking default package type" >&5
11805 $as_echo_n "checking default package type... " >&6; }
11806         case "$VENDOR" in
11807                 fedora)     DEFAULT_PACKAGE=rpm ;;
11808                 redhat)     DEFAULT_PACKAGE=rpm ;;
11809                 sles)       DEFAULT_PACKAGE=rpm ;;
11810                 ubuntu)     DEFAULT_PACKAGE=deb ;;
11811                 debian)     DEFAULT_PACKAGE=deb ;;
11812                 slackware)  DEFAULT_PACKAGE=tgz ;;
11813                 *)          DEFAULT_PACKAGE=rpm ;;
11814         esac
11815
11816         { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11817 $as_echo "$DEFAULT_PACKAGE" >&6; }
11818
11819
11820
11821
11822         TARGET_ASM_DIR=asm-generic
11823
11824
11825         ZFS_CONFIG=all
11826
11827 # Check whether --with-config was given.
11828 if test "${with_config+set}" = set; then
11829   withval=$with_config; ZFS_CONFIG="$withval"
11830 fi
11831
11832
11833         { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11834 $as_echo_n "checking zfs config... " >&6; }
11835         { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11836 $as_echo "$ZFS_CONFIG" >&6; };
11837
11838
11839         case "$ZFS_CONFIG" in
11840                 kernel)
11841
11842
11843 # Check whether --with-linux was given.
11844 if test "${with_linux+set}" = set; then
11845   withval=$with_linux; kernelsrc="$withval"
11846 fi
11847
11848
11849
11850 # Check whether --with-linux-obj was given.
11851 if test "${with_linux_obj+set}" = set; then
11852   withval=$with_linux_obj; kernelbuild="$withval"
11853 fi
11854
11855
11856         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11857 $as_echo_n "checking kernel source directory... " >&6; }
11858         if test -z "$kernelsrc"; then
11859                 if test -e "/lib/modules/$(uname -r)/source"; then
11860                         headersdir="/lib/modules/$(uname -r)/source"
11861                         sourcelink=$(readlink -f "$headersdir")
11862                 elif test -e "/lib/modules/$(uname -r)/build"; then
11863                         headersdir="/lib/modules/$(uname -r)/build"
11864                         sourcelink=$(readlink -f "$headersdir")
11865                 else
11866                         sourcelink=$(ls -1d /usr/src/kernels/* \
11867                                      /usr/src/linux-* \
11868                                      2>/dev/null | grep -v obj | tail -1)
11869                 fi
11870
11871                 if test -n "$sourcelink" && test -e ${sourcelink}; then
11872                         kernelsrc=`readlink -f ${sourcelink}`
11873                 else
11874                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
11875 $as_echo "Not found" >&6; }
11876                         { { $as_echo "$as_me:$LINENO: error:
11877         *** Please make sure the kernel devel package for your distribution
11878         *** is installed then try again.  If that fails you can specify the
11879         *** location of the kernel source with the '--with-linux=PATH' option." >&5
11880 $as_echo "$as_me: error:
11881         *** Please make sure the kernel devel package for your distribution
11882         *** is installed then try again.  If that fails you can specify the
11883         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11884    { (exit 1); exit 1; }; }
11885                 fi
11886         else
11887                 if test "$kernelsrc" = "NONE"; then
11888                         kernsrcver=NONE
11889                 fi
11890         fi
11891
11892         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11893 $as_echo "$kernelsrc" >&6; }
11894         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11895 $as_echo_n "checking kernel build directory... " >&6; }
11896         if test -z "$kernelbuild"; then
11897                 if test -e "/lib/modules/$(uname -r)/build"; then
11898                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11899                 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11900                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11901                 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11902                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11903                 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11904                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11905                 else
11906                         kernelbuild=${kernelsrc}
11907                 fi
11908         fi
11909         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11910 $as_echo "$kernelbuild" >&6; }
11911
11912         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11913 $as_echo_n "checking kernel source version... " >&6; }
11914         utsrelease1=$kernelbuild/include/linux/version.h
11915         utsrelease2=$kernelbuild/include/linux/utsrelease.h
11916         utsrelease3=$kernelbuild/include/generated/utsrelease.h
11917         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11918                 utsrelease=linux/version.h
11919         elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11920                 utsrelease=linux/utsrelease.h
11921         elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11922                 utsrelease=generated/utsrelease.h
11923         fi
11924
11925         if test "$utsrelease"; then
11926                 kernsrcver=`(echo "#include <$utsrelease>";
11927                              echo "kernsrcver=UTS_RELEASE") |
11928                              cpp -I $kernelbuild/include |
11929                              grep "^kernsrcver=" | cut -d \" -f 2`
11930
11931                 if test -z "$kernsrcver"; then
11932                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
11933 $as_echo "Not found" >&6; }
11934                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11935 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11936    { (exit 1); exit 1; }; }
11937                 fi
11938         else
11939                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11940 $as_echo "Not found" >&6; }
11941                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11942 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11943    { (exit 1); exit 1; }; }
11944         fi
11945
11946         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11947 $as_echo "$kernsrcver" >&6; }
11948
11949         LINUX=${kernelsrc}
11950         LINUX_OBJ=${kernelbuild}
11951         LINUX_VERSION=${kernsrcver}
11952
11953
11954
11955
11956
11957
11958         modpost=$LINUX/scripts/Makefile.modpost
11959         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11960 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11961         if test -f "$modpost"; then
11962                 if grep -q Modules.symvers $modpost; then
11963                         LINUX_SYMBOLS=Modules.symvers
11964                 else
11965                         LINUX_SYMBOLS=Module.symvers
11966                 fi
11967         else
11968                 LINUX_SYMBOLS=NONE
11969         fi
11970         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11971 $as_echo "$LINUX_SYMBOLS" >&6; }
11972
11973
11974
11975
11976
11977 # Check whether --with-spl was given.
11978 if test "${with_spl+set}" = set; then
11979   withval=$with_spl; splsrc="$withval"
11980 fi
11981
11982
11983
11984 # Check whether --with-spl-obj was given.
11985 if test "${with_spl_obj+set}" = set; then
11986   withval=$with_spl_obj; splbuild="$withval"
11987 fi
11988
11989
11990
11991         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
11992 $as_echo_n "checking spl source directory... " >&6; }
11993         if test -z "$splsrc"; then
11994                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
11995                             2>/dev/null | tail -1`
11996
11997                 if test -z "$sourcelink" || test ! -e $sourcelink; then
11998                         sourcelink=../spl
11999                 fi
12000
12001                 if test -e $sourcelink; then
12002                         splsrc=`readlink -f ${sourcelink}`
12003                 else
12004                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
12005 $as_echo "Not found" >&6; }
12006                         { { $as_echo "$as_me:$LINENO: error:
12007         *** Please make sure the spl devel package for your distribution
12008         *** is installed then try again.  If that fails you can specify the
12009         *** location of the spl source with the '--with-spl=PATH' option." >&5
12010 $as_echo "$as_me: error:
12011         *** Please make sure the spl devel package for your distribution
12012         *** is installed then try again.  If that fails you can specify the
12013         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12014    { (exit 1); exit 1; }; }
12015                 fi
12016         else
12017                 if test "$splsrc" = "NONE"; then
12018                         splbuild=NONE
12019                         splsrcver=NONE
12020                 fi
12021         fi
12022
12023         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12024 $as_echo "$splsrc" >&6; }
12025         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12026 $as_echo_n "checking spl build directory... " >&6; }
12027         if test -z "$splbuild"; then
12028                 splbuild=${splsrc}
12029         fi
12030         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12031 $as_echo "$splbuild" >&6; }
12032
12033         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12034 $as_echo_n "checking spl source version... " >&6; }
12035         if test -r $splbuild/spl_config.h &&
12036                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
12037
12038                 splsrcver=`(echo "#include <spl_config.h>";
12039                             echo "splsrcver=SPL_META_VERSION") |
12040                             cpp -I $splbuild |
12041                             grep "^splsrcver=" | cut -d \" -f 2`
12042         fi
12043
12044         if test -z "$splsrcver"; then
12045                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12046 $as_echo "Not found" >&6; }
12047                 { { $as_echo "$as_me:$LINENO: error:
12048                 *** Cannot determine the version of the spl source.
12049                 *** Please prepare the spl source before running this script" >&5
12050 $as_echo "$as_me: error:
12051                 *** Cannot determine the version of the spl source.
12052                 *** Please prepare the spl source before running this script" >&2;}
12053    { (exit 1); exit 1; }; }
12054         fi
12055
12056         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12057 $as_echo "$splsrcver" >&6; }
12058
12059         SPL=${splsrc}
12060         SPL_OBJ=${splbuild}
12061         SPL_VERSION=${splsrcver}
12062
12063
12064
12065
12066
12067
12068         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12069 $as_echo_n "checking spl file name for module symbols... " >&6; }
12070         if test -r $SPL_OBJ/Module.symvers; then
12071                 SPL_SYMBOLS=Module.symvers
12072         elif test -r $SPL_OBJ/Modules.symvers; then
12073                 SPL_SYMBOLS=Modules.symvers
12074         elif test -r $SPL_OBJ/module/Module.symvers; then
12075                 SPL_SYMBOLS=Module.symvers
12076         elif test -r $SPL_OBJ/module/Modules.symvers; then
12077                 SPL_SYMBOLS=Modules.symvers
12078         else
12079                 SPL_SYMBOLS=$LINUX_SYMBOLS
12080         fi
12081
12082         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12083 $as_echo "$SPL_SYMBOLS" >&6; }
12084
12085
12086
12087
12088
12089         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12090 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12091
12092
12093 cat confdefs.h - <<_ACEOF >conftest.c
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099
12100
12101                 #ifndef AUTOCONF_INCLUDED
12102                 #include <linux/config.h>
12103                 #endif
12104
12105 int
12106 main (void)
12107 {
12108
12109                 #ifndef CONFIG_PREEMPT
12110                 #error CONFIG_PREEMPT not #defined
12111                 #endif
12112
12113   ;
12114   return 0;
12115 }
12116
12117 _ACEOF
12118
12119
12120         rm -Rf build && mkdir -p build
12121         echo "obj-m := conftest.o" >build/Makefile
12122         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129   (eval $ac_try) 2>&5
12130   ac_status=$?
12131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; }; then
12133
12134                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12135 $as_echo "yes" >&6; }
12136                 { { $as_echo "$as_me:$LINENO: error:
12137                 *** Kernel built with CONFIG_PREEMPT which is not supported.
12138                 ** You must rebuild your kernel without this option." >&5
12139 $as_echo "$as_me: error:
12140                 *** Kernel built with CONFIG_PREEMPT which is not supported.
12141                 ** You must rebuild your kernel without this option." >&2;}
12142    { (exit 1); exit 1; }; }
12143
12144 else
12145   $as_echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148                 { $as_echo "$as_me:$LINENO: result: no" >&5
12149 $as_echo "no" >&6; }
12150
12151
12152
12153
12154 fi
12155
12156         rm -Rf build
12157
12158
12159
12160
12161         if test "$ZFS_META_LICENSE" = CDDL; then
12162                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12163 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12164
12165
12166 cat confdefs.h - <<_ACEOF >conftest.c
12167 /* confdefs.h.  */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h.  */
12172
12173
12174                 #ifndef AUTOCONF_INCLUDED
12175                 #include <linux/config.h>
12176                 #endif
12177
12178 int
12179 main (void)
12180 {
12181
12182                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12183                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12184                 #endif
12185
12186   ;
12187   return 0;
12188 }
12189
12190 _ACEOF
12191
12192
12193         rm -Rf build && mkdir -p build
12194         echo "obj-m := conftest.o" >build/Makefile
12195         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197   (eval $ac_try) 2>&5
12198   ac_status=$?
12199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202   (eval $ac_try) 2>&5
12203   ac_status=$?
12204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206
12207                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12208 $as_echo "yes" >&6; }
12209                 { { $as_echo "$as_me:$LINENO: error:
12210                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12211                 *** incompatible with the CDDL license.  You must rebuild
12212                 *** your kernel without this option." >&5
12213 $as_echo "$as_me: error:
12214                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12215                 *** incompatible with the CDDL license.  You must rebuild
12216                 *** your kernel without this option." >&2;}
12217    { (exit 1); exit 1; }; }
12218
12219 else
12220   $as_echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223                 { $as_echo "$as_me:$LINENO: result: no" >&5
12224 $as_echo "no" >&6; }
12225
12226
12227
12228
12229 fi
12230
12231         rm -Rf build
12232
12233
12234
12235         fi
12236
12237         if test "$ZFS_META_LICENSE" = GPL; then
12238
12239 cat >>confdefs.h <<\_ACEOF
12240 #define HAVE_GPL_ONLY_SYMBOLS 1
12241 _ACEOF
12242
12243         fi
12244
12245
12246         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12247 $as_echo_n "checking block device operation prototypes... " >&6; }
12248
12249
12250 cat confdefs.h - <<_ACEOF >conftest.c
12251 /* confdefs.h.  */
12252 _ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h.  */
12256
12257
12258                 #include <linux/blkdev.h>
12259
12260 int
12261 main (void)
12262 {
12263
12264                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12265                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12266                 int (*blk_ioctl) (struct block_device *, fmode_t,
12267                                   unsigned, unsigned long) = NULL;
12268                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12269                                          unsigned, unsigned long) = NULL;
12270                 struct block_device_operations blk_ops = {
12271                         .open           = blk_open,
12272                         .release        = blk_release,
12273                         .ioctl          = blk_ioctl,
12274                         .compat_ioctl   = blk_compat_ioctl,
12275                 };
12276
12277                 blk_ops.open(NULL, 0);
12278                 blk_ops.release(NULL, 0);
12279                 blk_ops.ioctl(NULL, 0, 0, 0);
12280                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12281
12282   ;
12283   return 0;
12284 }
12285
12286 _ACEOF
12287
12288
12289         rm -Rf build && mkdir -p build
12290         echo "obj-m := conftest.o" >build/Makefile
12291         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; }; then
12302
12303                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12304 $as_echo "struct block_device" >&6; }
12305
12306 cat >>confdefs.h <<\_ACEOF
12307 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12308 _ACEOF
12309
12310
12311 else
12312   $as_echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12316 $as_echo "struct inode" >&6; }
12317
12318
12319
12320 fi
12321
12322         rm -Rf build
12323
12324
12325
12326         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12327 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12328
12329
12330 cat confdefs.h - <<_ACEOF >conftest.c
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336
12337
12338                 #include <linux/types.h>
12339
12340 int
12341 main (void)
12342 {
12343
12344                 fmode_t *ptr;
12345
12346   ;
12347   return 0;
12348 }
12349
12350 _ACEOF
12351
12352
12353         rm -Rf build && mkdir -p build
12354         echo "obj-m := conftest.o" >build/Makefile
12355         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357   (eval $ac_try) 2>&5
12358   ac_status=$?
12359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362   (eval $ac_try) 2>&5
12363   ac_status=$?
12364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); }; }; then
12366
12367                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12368 $as_echo "yes" >&6; }
12369
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_FMODE_T 1
12372 _ACEOF
12373
12374
12375 else
12376   $as_echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379                 { $as_echo "$as_me:$LINENO: result: no" >&5
12380 $as_echo "no" >&6; }
12381
12382
12383
12384 fi
12385
12386         rm -Rf build
12387
12388
12389
12390
12391         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12392 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12393
12394
12395 cat confdefs.h - <<_ACEOF >conftest.c
12396 /* confdefs.h.  */
12397 _ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h.  */
12401
12402
12403                 #include <linux/kobject.h>
12404
12405 int
12406 main (void)
12407 {
12408
12409                 int val;
12410                 val = KOBJ_NAME_LEN;
12411
12412   ;
12413   return 0;
12414 }
12415
12416 _ACEOF
12417
12418
12419         rm -Rf build && mkdir -p build
12420         echo "obj-m := conftest.o" >build/Makefile
12421         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432
12433                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12434 $as_echo "yes" >&6; }
12435
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_KOBJ_NAME_LEN 1
12438 _ACEOF
12439
12440
12441 else
12442   $as_echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445                 { $as_echo "$as_me:$LINENO: result: no" >&5
12446 $as_echo "no" >&6; }
12447
12448
12449
12450 fi
12451
12452         rm -Rf build
12453
12454
12455
12456
12457         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12458 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12459         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12460                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12461         rc=$?
12462         if test $rc -ne 0; then
12463                 export=0
12464                 for file in fs/block_dev.c; do
12465                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12466                         rc=$?
12467                         if test $rc -eq 0; then
12468                                 export=1
12469                                 break;
12470                         fi
12471                 done
12472                 if test $export -eq 0; then
12473                         { $as_echo "$as_me:$LINENO: result: no" >&5
12474 $as_echo "no" >&6; }
12475
12476                 else
12477                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12478 $as_echo "yes" >&6; }
12479
12480 cat >>confdefs.h <<\_ACEOF
12481 #define HAVE_BLKDEV_GET_BY_PATH 1
12482 _ACEOF
12483
12484                 fi
12485         else
12486                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12487 $as_echo "yes" >&6; }
12488
12489 cat >>confdefs.h <<\_ACEOF
12490 #define HAVE_BLKDEV_GET_BY_PATH 1
12491 _ACEOF
12492
12493         fi
12494
12495
12496
12497         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12498 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12499         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12500                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12501         rc=$?
12502         if test $rc -ne 0; then
12503                 export=0
12504                 for file in fs/block_dev.c; do
12505                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12506                         rc=$?
12507                         if test $rc -eq 0; then
12508                                 export=1
12509                                 break;
12510                         fi
12511                 done
12512                 if test $export -eq 0; then
12513                         { $as_echo "$as_me:$LINENO: result: no" >&5
12514 $as_echo "no" >&6; }
12515
12516                 else
12517                         { $as_echo "$as_me:$LINENO: result: yes" >&5
12518 $as_echo "yes" >&6; }
12519
12520 cat >>confdefs.h <<\_ACEOF
12521 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12522 _ACEOF
12523
12524                 fi
12525         else
12526                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12527 $as_echo "yes" >&6; }
12528
12529 cat >>confdefs.h <<\_ACEOF
12530 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
12531 _ACEOF
12532
12533         fi
12534
12535
12536
12537         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12538 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12539
12540
12541 cat confdefs.h - <<_ACEOF >conftest.c
12542 /* confdefs.h.  */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h.  */
12547
12548
12549                 #include <linux/buffer_head.h>
12550
12551 int
12552 main (void)
12553 {
12554
12555                 struct block_device *bdev;
12556                 invalidate_bdev(bdev);
12557
12558   ;
12559   return 0;
12560 }
12561
12562 _ACEOF
12563
12564
12565         rm -Rf build && mkdir -p build
12566         echo "obj-m := conftest.o" >build/Makefile
12567         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569   (eval $ac_try) 2>&5
12570   ac_status=$?
12571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578
12579                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12580 $as_echo "yes" >&6; }
12581
12582 cat >>confdefs.h <<\_ACEOF
12583 #define HAVE_1ARG_INVALIDATE_BDEV 1
12584 _ACEOF
12585
12586
12587 else
12588   $as_echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591                 { $as_echo "$as_me:$LINENO: result: no" >&5
12592 $as_echo "no" >&6; }
12593
12594
12595
12596 fi
12597
12598         rm -Rf build
12599
12600
12601
12602
12603         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12604 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12605
12606
12607 cat confdefs.h - <<_ACEOF >conftest.c
12608 /* confdefs.h.  */
12609 _ACEOF
12610 cat confdefs.h >>conftest.$ac_ext
12611 cat >>conftest.$ac_ext <<_ACEOF
12612 /* end confdefs.h.  */
12613
12614
12615                 #include <linux/blkdev.h>
12616
12617 int
12618 main (void)
12619 {
12620
12621                 struct block_device *bdev = NULL;
12622                 bdev_logical_block_size(bdev);
12623
12624   ;
12625   return 0;
12626 }
12627
12628 _ACEOF
12629
12630
12631         rm -Rf build && mkdir -p build
12632         echo "obj-m := conftest.o" >build/Makefile
12633         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640   (eval $ac_try) 2>&5
12641   ac_status=$?
12642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; }; then
12644
12645                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12646 $as_echo "yes" >&6; }
12647
12648 cat >>confdefs.h <<\_ACEOF
12649 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12650 _ACEOF
12651
12652
12653 else
12654   $as_echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657                 { $as_echo "$as_me:$LINENO: result: no" >&5
12658 $as_echo "no" >&6; }
12659
12660
12661
12662 fi
12663
12664         rm -Rf build
12665
12666
12667
12668
12669         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12670 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12671         EXTRA_KCFLAGS="-Werror"
12672
12673
12674 cat confdefs.h - <<_ACEOF >conftest.c
12675 /* confdefs.h.  */
12676 _ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h.  */
12680
12681
12682                 #include <linux/bio.h>
12683
12684 int
12685 main (void)
12686 {
12687
12688                 struct bio bio;
12689                 (void)bio_empty_barrier(&bio);
12690
12691   ;
12692   return 0;
12693 }
12694
12695 _ACEOF
12696
12697
12698         rm -Rf build && mkdir -p build
12699         echo "obj-m := conftest.o" >build/Makefile
12700         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702   (eval $ac_try) 2>&5
12703   ac_status=$?
12704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707   (eval $ac_try) 2>&5
12708   ac_status=$?
12709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; }; then
12711
12712                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12713 $as_echo "yes" >&6; }
12714
12715 cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_BIO_EMPTY_BARRIER 1
12717 _ACEOF
12718
12719
12720 else
12721   $as_echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724                 { $as_echo "$as_me:$LINENO: result: no" >&5
12725 $as_echo "no" >&6; }
12726
12727
12728
12729 fi
12730
12731         rm -Rf build
12732
12733
12734
12735
12736         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
12737 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12738
12739
12740 cat confdefs.h - <<_ACEOF >conftest.c
12741 /* confdefs.h.  */
12742 _ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h.  */
12746
12747
12748                 #include <linux/bio.h>
12749
12750 int
12751 main (void)
12752 {
12753
12754                 int flags;
12755                 flags = (1 << BIO_RW_FAILFAST);
12756
12757   ;
12758   return 0;
12759 }
12760
12761 _ACEOF
12762
12763
12764         rm -Rf build && mkdir -p build
12765         echo "obj-m := conftest.o" >build/Makefile
12766         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773   (eval $ac_try) 2>&5
12774   ac_status=$?
12775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); }; }; then
12777
12778                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12779 $as_echo "yes" >&6; }
12780
12781 cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_BIO_RW_FAILFAST 1
12783 _ACEOF
12784
12785
12786 else
12787   $as_echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12789
12790                 { $as_echo "$as_me:$LINENO: result: no" >&5
12791 $as_echo "no" >&6; }
12792
12793
12794
12795 fi
12796
12797         rm -Rf build
12798
12799
12800
12801
12802         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
12803 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12804
12805
12806 cat confdefs.h - <<_ACEOF >conftest.c
12807 /* confdefs.h.  */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h.  */
12812
12813
12814                 #include <linux/bio.h>
12815
12816 int
12817 main (void)
12818 {
12819
12820                 int flags;
12821                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12822                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
12823                          (1 << BIO_RW_FAILFAST_DRIVER));
12824
12825   ;
12826   return 0;
12827 }
12828
12829 _ACEOF
12830
12831
12832         rm -Rf build && mkdir -p build
12833         echo "obj-m := conftest.o" >build/Makefile
12834         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841   (eval $ac_try) 2>&5
12842   ac_status=$?
12843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); }; }; then
12845
12846                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12847 $as_echo "yes" >&6; }
12848
12849 cat >>confdefs.h <<\_ACEOF
12850 #define HAVE_BIO_RW_FAILFAST_DTD 1
12851 _ACEOF
12852
12853
12854 else
12855   $as_echo "$as_me: failed program was:" >&5
12856 sed 's/^/| /' conftest.$ac_ext >&5
12857
12858                 { $as_echo "$as_me:$LINENO: result: no" >&5
12859 $as_echo "no" >&6; }
12860
12861
12862
12863 fi
12864
12865         rm -Rf build
12866
12867
12868
12869
12870         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
12871 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12872
12873
12874 cat confdefs.h - <<_ACEOF >conftest.c
12875 /* confdefs.h.  */
12876 _ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h.  */
12880
12881
12882                 #include <linux/bio.h>
12883
12884 int
12885 main (void)
12886 {
12887
12888                 int flags;
12889                 flags = REQ_FAILFAST_MASK;
12890
12891   ;
12892   return 0;
12893 }
12894
12895 _ACEOF
12896
12897
12898         rm -Rf build && mkdir -p build
12899         echo "obj-m := conftest.o" >build/Makefile
12900         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907   (eval $ac_try) 2>&5
12908   ac_status=$?
12909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910   (exit $ac_status); }; }; then
12911
12912                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12913 $as_echo "yes" >&6; }
12914
12915 cat >>confdefs.h <<\_ACEOF
12916 #define HAVE_BIO_REQ_FAILFAST_MASK 1
12917 _ACEOF
12918
12919
12920 else
12921   $as_echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924                 { $as_echo "$as_me:$LINENO: result: no" >&5
12925 $as_echo "no" >&6; }
12926
12927
12928
12929 fi
12930
12931         rm -Rf build
12932
12933
12934
12935
12936         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12937 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12938         tmp_flags="$EXTRA_KCFLAGS"
12939         EXTRA_KCFLAGS="-Werror"
12940
12941
12942 cat confdefs.h - <<_ACEOF >conftest.c
12943 /* confdefs.h.  */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h.  */
12948
12949
12950                 #include <linux/bio.h>
12951
12952 int
12953 main (void)
12954 {
12955
12956                 void (*wanted_end_io)(struct bio *, int) = NULL;
12957                 bio_end_io_t *local_end_io;
12958
12959                 local_end_io = wanted_end_io;
12960
12961   ;
12962   return 0;
12963 }
12964
12965 _ACEOF
12966
12967
12968         rm -Rf build && mkdir -p build
12969         echo "obj-m := conftest.o" >build/Makefile
12970         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972   (eval $ac_try) 2>&5
12973   ac_status=$?
12974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977   (eval $ac_try) 2>&5
12978   ac_status=$?
12979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981
12982                 { $as_echo "$as_me:$LINENO: result: yes" >&5
12983 $as_echo "yes" >&6; }
12984
12985 cat >>confdefs.h <<\_ACEOF
12986 #define HAVE_2ARGS_BIO_END_IO_T 1
12987 _ACEOF
12988
12989
12990 else
12991   $as_echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994                 { $as_echo "$as_me:$LINENO: result: no" >&5
12995 $as_echo "no" >&6; }
12996
12997
12998
12999 fi
13000
13001         rm -Rf build
13002
13003
13004         EXTRA_KCFLAGS="$tmp_flags"
13005
13006
13007         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13008 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
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                 int flags;
13026                 flags = BIO_RW_SYNC;
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_RW_SYNC 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_SYNCIO is defined" >&5
13074 $as_echo_n "checking whether BIO_RW_SYNCIO 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;
13092                 flags = BIO_RW_SYNCIO;
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_SYNCIO 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 REQ_SYNC is defined" >&5
13140 $as_echo_n "checking whether REQ_SYNC is 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;
13158                 flags = REQ_SYNC;
13159
13160   ;
13161   return 0;
13162 }
13163
13164 _ACEOF
13165
13166
13167         rm -Rf build && mkdir -p build
13168         echo "obj-m := conftest.o" >build/Makefile
13169         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171   (eval $ac_try) 2>&5
13172   ac_status=$?
13173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; }; then
13180
13181                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13182 $as_echo "yes" >&6; }
13183
13184 cat >>confdefs.h <<\_ACEOF
13185 #define HAVE_REQ_SYNC 1
13186 _ACEOF
13187
13188
13189 else
13190   $as_echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13192
13193                 { $as_echo "$as_me:$LINENO: result: no" >&5
13194 $as_echo "no" >&6; }
13195
13196
13197
13198 fi
13199
13200         rm -Rf build
13201
13202
13203
13204
13205         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13206 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13207
13208
13209 cat confdefs.h - <<_ACEOF >conftest.c
13210 /* confdefs.h.  */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h.  */
13215
13216
13217                 #include <linux/blkdev.h>
13218
13219 int
13220 main (void)
13221 {
13222
13223                 struct request *req = NULL;
13224                 (void) blk_end_request(req, 0, 0);
13225
13226   ;
13227   return 0;
13228 }
13229
13230 _ACEOF
13231
13232
13233         rm -Rf build && mkdir -p build
13234         echo "obj-m := conftest.o" >build/Makefile
13235         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237   (eval $ac_try) 2>&5
13238   ac_status=$?
13239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242   (eval $ac_try) 2>&5
13243   ac_status=$?
13244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); }; }; then
13246
13247                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13248 $as_echo "yes" >&6; }
13249
13250 cat >>confdefs.h <<\_ACEOF
13251 #define HAVE_BLK_END_REQUEST 1
13252 _ACEOF
13253
13254
13255 else
13256   $as_echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259                 { $as_echo "$as_me:$LINENO: result: no" >&5
13260 $as_echo "no" >&6; }
13261
13262
13263
13264 fi
13265
13266         rm -Rf build
13267
13268
13269
13270         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13271 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13272
13273
13274 cat confdefs.h - <<_ACEOF >conftest.c
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280
13281
13282                 #include <linux/module.h>
13283                 #include <linux/blkdev.h>
13284
13285                 MODULE_LICENSE("CDDL");
13286
13287 int
13288 main (void)
13289 {
13290
13291                 struct request *req = NULL;
13292                 (void) blk_end_request(req, 0, 0);
13293
13294   ;
13295   return 0;
13296 }
13297
13298 _ACEOF
13299
13300
13301         rm -Rf build && mkdir -p build
13302         echo "obj-m := conftest.o" >build/Makefile
13303         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305   (eval $ac_try) 2>&5
13306   ac_status=$?
13307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314
13315                 { $as_echo "$as_me:$LINENO: result: no" >&5
13316 $as_echo "no" >&6; }
13317
13318 else
13319   $as_echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13321
13322                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13323 $as_echo "yes" >&6; }
13324
13325 cat >>confdefs.h <<\_ACEOF
13326 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13327 _ACEOF
13328
13329
13330
13331
13332 fi
13333
13334         rm -Rf build
13335
13336
13337
13338
13339         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13340 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13341
13342
13343 cat confdefs.h - <<_ACEOF >conftest.c
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349
13350
13351                 #include <linux/blkdev.h>
13352
13353 int
13354 main (void)
13355 {
13356
13357                 struct request_queue *q = NULL;
13358                 (void) blk_fetch_request(q);
13359
13360   ;
13361   return 0;
13362 }
13363
13364 _ACEOF
13365
13366
13367         rm -Rf build && mkdir -p build
13368         echo "obj-m := conftest.o" >build/Makefile
13369         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371   (eval $ac_try) 2>&5
13372   ac_status=$?
13373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
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); }; }; then
13380
13381                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13382 $as_echo "yes" >&6; }
13383
13384 cat >>confdefs.h <<\_ACEOF
13385 #define HAVE_BLK_FETCH_REQUEST 1
13386 _ACEOF
13387
13388
13389 else
13390   $as_echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13392
13393                 { $as_echo "$as_me:$LINENO: result: no" >&5
13394 $as_echo "no" >&6; }
13395
13396
13397
13398 fi
13399
13400         rm -Rf build
13401
13402
13403
13404
13405         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13406 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13407
13408
13409 cat confdefs.h - <<_ACEOF >conftest.c
13410 /* confdefs.h.  */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h.  */
13415
13416
13417                 #include <linux/blkdev.h>
13418
13419 int
13420 main (void)
13421 {
13422
13423                 struct request_queue *q = NULL;
13424                 struct request *req = NULL;
13425                 blk_requeue_request(q, req);
13426
13427   ;
13428   return 0;
13429 }
13430
13431 _ACEOF
13432
13433
13434         rm -Rf build && mkdir -p build
13435         echo "obj-m := conftest.o" >build/Makefile
13436         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438   (eval $ac_try) 2>&5
13439   ac_status=$?
13440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443   (eval $ac_try) 2>&5
13444   ac_status=$?
13445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; }; then
13447
13448                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13449 $as_echo "yes" >&6; }
13450
13451 cat >>confdefs.h <<\_ACEOF
13452 #define HAVE_BLK_REQUEUE_REQUEST 1
13453 _ACEOF
13454
13455
13456 else
13457   $as_echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13459
13460                 { $as_echo "$as_me:$LINENO: result: no" >&5
13461 $as_echo "no" >&6; }
13462
13463
13464
13465 fi
13466
13467         rm -Rf build
13468
13469
13470
13471
13472         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13473 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13474
13475
13476 cat confdefs.h - <<_ACEOF >conftest.c
13477 /* confdefs.h.  */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h.  */
13482
13483
13484                 #include <linux/blkdev.h>
13485
13486 int
13487 main (void)
13488 {
13489
13490                 struct request *req = NULL;
13491                 (void) blk_rq_bytes(req);
13492
13493   ;
13494   return 0;
13495 }
13496
13497 _ACEOF
13498
13499
13500         rm -Rf build && mkdir -p build
13501         echo "obj-m := conftest.o" >build/Makefile
13502         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13504   (eval $ac_try) 2>&5
13505   ac_status=$?
13506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; }; then
13513
13514                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13515 $as_echo "yes" >&6; }
13516
13517 cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_BLK_RQ_BYTES 1
13519 _ACEOF
13520
13521
13522 else
13523   $as_echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526                 { $as_echo "$as_me:$LINENO: result: no" >&5
13527 $as_echo "no" >&6; }
13528
13529
13530
13531 fi
13532
13533         rm -Rf build
13534
13535
13536
13537         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13538 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13539
13540
13541 cat confdefs.h - <<_ACEOF >conftest.c
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547
13548
13549                 #include <linux/module.h>
13550                 #include <linux/blkdev.h>
13551
13552                 MODULE_LICENSE("CDDL");
13553
13554 int
13555 main (void)
13556 {
13557
13558                 struct request *req = NULL;
13559                 (void) blk_rq_bytes(req);
13560
13561   ;
13562   return 0;
13563 }
13564
13565 _ACEOF
13566
13567
13568         rm -Rf build && mkdir -p build
13569         echo "obj-m := conftest.o" >build/Makefile
13570         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572   (eval $ac_try) 2>&5
13573   ac_status=$?
13574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581
13582                 { $as_echo "$as_me:$LINENO: result: no" >&5
13583 $as_echo "no" >&6; }
13584
13585 else
13586   $as_echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13590 $as_echo "yes" >&6; }
13591
13592 cat >>confdefs.h <<\_ACEOF
13593 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13594 _ACEOF
13595
13596
13597
13598
13599 fi
13600
13601         rm -Rf build
13602
13603
13604
13605
13606         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13607 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13608
13609
13610 cat confdefs.h - <<_ACEOF >conftest.c
13611 /* confdefs.h.  */
13612 _ACEOF
13613 cat confdefs.h >>conftest.$ac_ext
13614 cat >>conftest.$ac_ext <<_ACEOF
13615 /* end confdefs.h.  */
13616
13617
13618                 #include <linux/blkdev.h>
13619
13620 int
13621 main (void)
13622 {
13623
13624                 struct request *req = NULL;
13625                 (void) blk_rq_pos(req);
13626
13627   ;
13628   return 0;
13629 }
13630
13631 _ACEOF
13632
13633
13634         rm -Rf build && mkdir -p build
13635         echo "obj-m := conftest.o" >build/Makefile
13636         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638   (eval $ac_try) 2>&5
13639   ac_status=$?
13640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643   (eval $ac_try) 2>&5
13644   ac_status=$?
13645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; }; then
13647
13648                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13649 $as_echo "yes" >&6; }
13650
13651 cat >>confdefs.h <<\_ACEOF
13652 #define HAVE_BLK_RQ_POS 1
13653 _ACEOF
13654
13655
13656 else
13657   $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660                 { $as_echo "$as_me:$LINENO: result: no" >&5
13661 $as_echo "no" >&6; }
13662
13663
13664
13665 fi
13666
13667         rm -Rf build
13668
13669
13670
13671
13672         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13673 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13674
13675
13676 cat confdefs.h - <<_ACEOF >conftest.c
13677 /* confdefs.h.  */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h.  */
13682
13683
13684                 #include <linux/blkdev.h>
13685
13686 int
13687 main (void)
13688 {
13689
13690                 struct request *req = NULL;
13691                 (void) blk_rq_sectors(req);
13692
13693   ;
13694   return 0;
13695 }
13696
13697 _ACEOF
13698
13699
13700         rm -Rf build && mkdir -p build
13701         echo "obj-m := conftest.o" >build/Makefile
13702         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704   (eval $ac_try) 2>&5
13705   ac_status=$?
13706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709   (eval $ac_try) 2>&5
13710   ac_status=$?
13711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713
13714                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13715 $as_echo "yes" >&6; }
13716
13717 cat >>confdefs.h <<\_ACEOF
13718 #define HAVE_BLK_RQ_SECTORS 1
13719 _ACEOF
13720
13721
13722 else
13723   $as_echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726                 { $as_echo "$as_me:$LINENO: result: no" >&5
13727 $as_echo "no" >&6; }
13728
13729
13730
13731 fi
13732
13733         rm -Rf build
13734
13735
13736
13737
13738         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13739 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13740
13741
13742 cat confdefs.h - <<_ACEOF >conftest.c
13743 /* confdefs.h.  */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h.  */
13748
13749
13750                 #include <linux/blkdev.h>
13751
13752 int
13753 main (void)
13754 {
13755
13756                 struct gendisk *disk = NULL;
13757                 (void) get_disk_ro(disk);
13758
13759   ;
13760   return 0;
13761 }
13762
13763 _ACEOF
13764
13765
13766         rm -Rf build && mkdir -p build
13767         echo "obj-m := conftest.o" >build/Makefile
13768         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775   (eval $ac_try) 2>&5
13776   ac_status=$?
13777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; }; then
13779
13780                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13781 $as_echo "yes" >&6; }
13782
13783 cat >>confdefs.h <<\_ACEOF
13784 #define HAVE_GET_DISK_RO 1
13785 _ACEOF
13786
13787
13788 else
13789   $as_echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792                 { $as_echo "$as_me:$LINENO: result: no" >&5
13793 $as_echo "no" >&6; }
13794
13795
13796
13797 fi
13798
13799         rm -Rf build
13800
13801
13802
13803
13804         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13805 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13806
13807
13808 cat confdefs.h - <<_ACEOF >conftest.c
13809 /* confdefs.h.  */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h.  */
13814
13815
13816                 #include <linux/blkdev.h>
13817
13818 int
13819 main (void)
13820 {
13821
13822                 struct request *req = NULL;
13823                 (void) rq_is_sync(req);
13824
13825   ;
13826   return 0;
13827 }
13828
13829 _ACEOF
13830
13831
13832         rm -Rf build && mkdir -p build
13833         echo "obj-m := conftest.o" >build/Makefile
13834         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845
13846                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13847 $as_echo "yes" >&6; }
13848
13849 cat >>confdefs.h <<\_ACEOF
13850 #define HAVE_RQ_IS_SYNC 1
13851 _ACEOF
13852
13853
13854 else
13855   $as_echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858                 { $as_echo "$as_me:$LINENO: result: no" >&5
13859 $as_echo "no" >&6; }
13860
13861
13862
13863 fi
13864
13865         rm -Rf build
13866
13867
13868
13869
13870         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13871 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13872
13873
13874 cat confdefs.h - <<_ACEOF >conftest.c
13875 /* confdefs.h.  */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h.  */
13880
13881
13882                 #include <linux/blkdev.h>
13883
13884 int
13885 main (void)
13886 {
13887
13888                 struct bio_vec *bv;
13889                 struct req_iterator iter;
13890                 struct request *req = NULL;
13891                 rq_for_each_segment(bv, req, iter) { }
13892
13893   ;
13894   return 0;
13895 }
13896
13897 _ACEOF
13898
13899
13900         rm -Rf build && mkdir -p build
13901         echo "obj-m := conftest.o" >build/Makefile
13902         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904   (eval $ac_try) 2>&5
13905   ac_status=$?
13906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909   (eval $ac_try) 2>&5
13910   ac_status=$?
13911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; }; then
13913
13914                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13915 $as_echo "yes" >&6; }
13916
13917 cat >>confdefs.h <<\_ACEOF
13918 #define HAVE_RQ_FOR_EACH_SEGMENT 1
13919 _ACEOF
13920
13921
13922 else
13923   $as_echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13925
13926                 { $as_echo "$as_me:$LINENO: result: no" >&5
13927 $as_echo "no" >&6; }
13928
13929
13930
13931 fi
13932
13933         rm -Rf build
13934
13935
13936
13937         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
13938 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
13939
13940
13941 cat confdefs.h - <<_ACEOF >conftest.c
13942 /* confdefs.h.  */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h.  */
13947
13948
13949                 #include <linux/fs.h>
13950                 #include <linux/xattr.h>
13951
13952                 const struct xattr_handler xattr_test_handler = {
13953                         .prefix = "test",
13954                         .get    = NULL,
13955                         .set    = NULL,
13956                 };
13957
13958                 const struct xattr_handler *xattr_handlers[] = {
13959                         &xattr_test_handler,
13960                 };
13961
13962 int
13963 main (void)
13964 {
13965
13966                 struct super_block sb;
13967
13968                 sb.s_xattr = xattr_handlers;
13969
13970   ;
13971   return 0;
13972 }
13973
13974 _ACEOF
13975
13976
13977         rm -Rf build && mkdir -p build
13978         echo "obj-m := conftest.o" >build/Makefile
13979         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981   (eval $ac_try) 2>&5
13982   ac_status=$?
13983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986   (eval $ac_try) 2>&5
13987   ac_status=$?
13988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; }; then
13990
13991                 { $as_echo "$as_me:$LINENO: result: yes" >&5
13992 $as_echo "yes" >&6; }
13993
13994 cat >>confdefs.h <<\_ACEOF
13995 #define HAVE_CONST_XATTR_HANDLER 1
13996 _ACEOF
13997
13998
13999 else
14000   $as_echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003                 { $as_echo "$as_me:$LINENO: result: no" >&5
14004 $as_echo "no" >&6; }
14005
14006
14007
14008 fi
14009
14010         rm -Rf build
14011
14012
14013
14014
14015         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14016 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14017
14018
14019 cat confdefs.h - <<_ACEOF >conftest.c
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025
14026
14027                 #include <linux/xattr.h>
14028
14029 int
14030 main (void)
14031 {
14032
14033                 int (*get)(struct dentry *dentry, const char *name,
14034                     void *buffer, size_t size, int handler_flags) = NULL;
14035                 struct xattr_handler xops;
14036
14037                 xops.get = get;
14038
14039   ;
14040   return 0;
14041 }
14042
14043 _ACEOF
14044
14045
14046         rm -Rf build && mkdir -p build
14047         echo "obj-m := conftest.o" >build/Makefile
14048         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050   (eval $ac_try) 2>&5
14051   ac_status=$?
14052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055   (eval $ac_try) 2>&5
14056   ac_status=$?
14057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; }; then
14059
14060                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14061 $as_echo "yes" >&6; }
14062
14063 cat >>confdefs.h <<\_ACEOF
14064 #define HAVE_DENTRY_XATTR_GET 1
14065 _ACEOF
14066
14067
14068 else
14069   $as_echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072                 { $as_echo "$as_me:$LINENO: result: no" >&5
14073 $as_echo "no" >&6; }
14074
14075
14076
14077 fi
14078
14079         rm -Rf build
14080
14081
14082
14083
14084         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14085 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14086
14087
14088 cat confdefs.h - <<_ACEOF >conftest.c
14089 /* confdefs.h.  */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h.  */
14094
14095
14096                 #include <linux/xattr.h>
14097
14098 int
14099 main (void)
14100 {
14101
14102                 int (*set)(struct dentry *dentry, const char *name,
14103                     const void *buffer, size_t size, int flags,
14104                     int handler_flags) = NULL;
14105                 struct xattr_handler xops;
14106
14107                 xops.set = set;
14108
14109   ;
14110   return 0;
14111 }
14112
14113 _ACEOF
14114
14115
14116         rm -Rf build && mkdir -p build
14117         echo "obj-m := conftest.o" >build/Makefile
14118         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; }; then
14129
14130                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14131 $as_echo "yes" >&6; }
14132
14133 cat >>confdefs.h <<\_ACEOF
14134 #define HAVE_DENTRY_XATTR_SET 1
14135 _ACEOF
14136
14137
14138 else
14139   $as_echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142                 { $as_echo "$as_me:$LINENO: result: no" >&5
14143 $as_echo "no" >&6; }
14144
14145
14146
14147 fi
14148
14149         rm -Rf build
14150
14151
14152
14153
14154         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
14155 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
14156
14157
14158 cat confdefs.h - <<_ACEOF >conftest.c
14159 /* confdefs.h.  */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h.  */
14164
14165
14166                 #include <linux/fs.h>
14167
14168 int
14169 main (void)
14170 {
14171
14172                 int (*fsync) (struct file *, int datasync) = NULL;
14173                 struct file_operations fops;
14174
14175                 fops.fsync = fsync;
14176
14177   ;
14178   return 0;
14179 }
14180
14181 _ACEOF
14182
14183
14184         rm -Rf build && mkdir -p build
14185         echo "obj-m := conftest.o" >build/Makefile
14186         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188   (eval $ac_try) 2>&5
14189   ac_status=$?
14190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; }; then
14197
14198                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14199 $as_echo "yes" >&6; }
14200
14201 cat >>confdefs.h <<\_ACEOF
14202 #define HAVE_2ARGS_FSYNC 1
14203 _ACEOF
14204
14205
14206 else
14207   $as_echo "$as_me: failed program was:" >&5
14208 sed 's/^/| /' conftest.$ac_ext >&5
14209
14210                 { $as_echo "$as_me:$LINENO: result: no" >&5
14211 $as_echo "no" >&6; }
14212
14213
14214
14215 fi
14216
14217         rm -Rf build
14218
14219
14220
14221
14222         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14223 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14224
14225
14226 cat confdefs.h - <<_ACEOF >conftest.c
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232
14233
14234                 #include <linux/fs.h>
14235
14236 int
14237 main (void)
14238 {
14239
14240                 void (*evict_inode) (struct inode *) = NULL;
14241                 struct super_operations sops;
14242
14243                 sops.evict_inode = evict_inode;
14244
14245   ;
14246   return 0;
14247 }
14248
14249 _ACEOF
14250
14251
14252         rm -Rf build && mkdir -p build
14253         echo "obj-m := conftest.o" >build/Makefile
14254         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256   (eval $ac_try) 2>&5
14257   ac_status=$?
14258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; }; then
14265
14266                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14267 $as_echo "yes" >&6; }
14268
14269 cat >>confdefs.h <<\_ACEOF
14270 #define HAVE_EVICT_INODE 1
14271 _ACEOF
14272
14273
14274 else
14275   $as_echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14277
14278                 { $as_echo "$as_me:$LINENO: result: no" >&5
14279 $as_echo "no" >&6; }
14280
14281
14282
14283 fi
14284
14285         rm -Rf build
14286
14287
14288
14289
14290         if test "$LINUX_OBJ" != "$LINUX"; then
14291                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14292         fi
14293
14294
14295
14296                         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
14297         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
14298
14299
14300  ;;
14301                 user)
14302
14303         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
14304 $as_echo_n "checking for target asm dir... " >&6; }
14305         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
14306
14307         case $TARGET_ARCH in
14308         i386|x86_64)
14309                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
14310                 ;;
14311         *)
14312                 TARGET_ASM_DIR=asm-generic
14313                 ;;
14314         esac
14315
14316
14317         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
14318 $as_echo "$TARGET_ASM_DIR" >&6; }
14319
14320
14321         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
14322 $as_echo_n "checking for ioctl()... " >&6; }
14323         cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329 #include <unistd.h>
14330
14331 _ACEOF
14332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14333   $EGREP "ioctl" >/dev/null 2>&1; then
14334   is_unistd=yes
14335 else
14336   is_unistd=no
14337 fi
14338 rm -f conftest*
14339
14340         cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h.  */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h.  */
14346 #include <sys/ioctl.h>
14347
14348 _ACEOF
14349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14350   $EGREP "ioctl" >/dev/null 2>&1; then
14351   is_sys_ioctl=yes
14352 else
14353   is_sys_ioctl=no
14354 fi
14355 rm -f conftest*
14356
14357         cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h.  */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h.  */
14363 #include <stropts.h>
14364
14365 _ACEOF
14366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14367   $EGREP "ioctl" >/dev/null 2>&1; then
14368   is_stropts=yes
14369 else
14370   is_stropts=no
14371 fi
14372 rm -f conftest*
14373
14374
14375         if test $is_unistd = yes; then
14376                 result=unistd.h
14377
14378 cat >>confdefs.h <<\_ACEOF
14379 #define HAVE_IOCTL_IN_UNISTD_H 1
14380 _ACEOF
14381
14382         else
14383
14384                 if test $is_sys_ioctl = yes; then
14385                         result=sys/ioctl.h
14386
14387 cat >>confdefs.h <<\_ACEOF
14388 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
14389 _ACEOF
14390
14391                 elif test $is_stropts = yes; then
14392
14393 cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_IOCTL_IN_STROPTS_H 1
14395 _ACEOF
14396
14397                 else
14398                         result=no
14399                 fi
14400         fi
14401
14402         if test $result = no; then
14403                 { $as_echo "$as_me:$LINENO: result: no" >&5
14404 $as_echo "no" >&6; }
14405                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
14406 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
14407    { (exit 1); exit 1; }; }
14408         else
14409                 { $as_echo "$as_me:$LINENO: result: yes" >&5
14410 $as_echo "yes" >&6; }
14411         fi
14412
14413
14414         ZLIB=
14415
14416         if test "${ac_cv_header_zlib_h+set}" = set; then
14417   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14418 $as_echo_n "checking for zlib.h... " >&6; }
14419 if test "${ac_cv_header_zlib_h+set}" = set; then
14420   $as_echo_n "(cached) " >&6
14421 fi
14422 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14423 $as_echo "$ac_cv_header_zlib_h" >&6; }
14424 else
14425   # Is the header compilable?
14426 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
14427 $as_echo_n "checking zlib.h usability... " >&6; }
14428 cat >conftest.$ac_ext <<_ACEOF
14429 /* confdefs.h.  */
14430 _ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h.  */
14434 $ac_includes_default
14435 #include <zlib.h>
14436 _ACEOF
14437 rm -f conftest.$ac_objext
14438 if { (ac_try="$ac_compile"
14439 case "(($ac_try" in
14440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441   *) ac_try_echo=$ac_try;;
14442 esac
14443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14444 $as_echo "$ac_try_echo") >&5
14445   (eval "$ac_compile") 2>conftest.er1
14446   ac_status=$?
14447   grep -v '^ *+' conftest.er1 >conftest.err
14448   rm -f conftest.er1
14449   cat conftest.err >&5
14450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); } && {
14452          test -z "$ac_c_werror_flag" ||
14453          test ! -s conftest.err
14454        } && test -s conftest.$ac_objext; then
14455   ac_header_compiler=yes
14456 else
14457   $as_echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460         ac_header_compiler=no
14461 fi
14462
14463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14465 $as_echo "$ac_header_compiler" >&6; }
14466
14467 # Is the header present?
14468 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
14469 $as_echo_n "checking zlib.h presence... " >&6; }
14470 cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476 #include <zlib.h>
14477 _ACEOF
14478 if { (ac_try="$ac_cpp conftest.$ac_ext"
14479 case "(($ac_try" in
14480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481   *) ac_try_echo=$ac_try;;
14482 esac
14483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14484 $as_echo "$ac_try_echo") >&5
14485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14486   ac_status=$?
14487   grep -v '^ *+' conftest.er1 >conftest.err
14488   rm -f conftest.er1
14489   cat conftest.err >&5
14490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); } >/dev/null && {
14492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14493          test ! -s conftest.err
14494        }; then
14495   ac_header_preproc=yes
14496 else
14497   $as_echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500   ac_header_preproc=no
14501 fi
14502
14503 rm -f conftest.err conftest.$ac_ext
14504 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14505 $as_echo "$ac_header_preproc" >&6; }
14506
14507 # So?  What about this header?
14508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14509   yes:no: )
14510     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14511 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14512     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
14513 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
14514     ac_header_preproc=yes
14515     ;;
14516   no:yes:* )
14517     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
14518 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
14519     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
14520 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
14521     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
14522 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
14523     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
14524 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14525     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
14526 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
14527     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
14528 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
14529
14530     ;;
14531 esac
14532 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14533 $as_echo_n "checking for zlib.h... " >&6; }
14534 if test "${ac_cv_header_zlib_h+set}" = set; then
14535   $as_echo_n "(cached) " >&6
14536 else
14537   ac_cv_header_zlib_h=$ac_header_preproc
14538 fi
14539 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14540 $as_echo "$ac_cv_header_zlib_h" >&6; }
14541
14542 fi
14543 if test "x$ac_cv_header_zlib_h" = x""yes; then
14544   :
14545 else
14546   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14548 { { $as_echo "$as_me:$LINENO: error:
14549         *** zlib.h missing, zlib-devel package required
14550 See \`config.log' for more details." >&5
14551 $as_echo "$as_me: error:
14552         *** zlib.h missing, zlib-devel package required
14553 See \`config.log' for more details." >&2;}
14554    { (exit 1); exit 1; }; }; }
14555 fi
14556
14557
14558
14559
14560 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
14561 $as_echo_n "checking for compress2 in -lz... " >&6; }
14562 if test "${ac_cv_lib_z_compress2+set}" = set; then
14563   $as_echo_n "(cached) " >&6
14564 else
14565   ac_check_lib_save_LIBS=$LIBS
14566 LIBS="-lz  $LIBS"
14567 cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h.  */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h.  */
14573
14574 /* Override any GCC internal prototype to avoid an error.
14575    Use char because int might match the return type of a GCC
14576    builtin and then its argument prototype would still apply.  */
14577 #ifdef __cplusplus
14578 extern "C"
14579 #endif
14580 char compress2 ();
14581 int
14582 main ()
14583 {
14584 return compress2 ();
14585   ;
14586   return 0;
14587 }
14588 _ACEOF
14589 rm -f conftest.$ac_objext conftest$ac_exeext
14590 if { (ac_try="$ac_link"
14591 case "(($ac_try" in
14592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593   *) ac_try_echo=$ac_try;;
14594 esac
14595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14596 $as_echo "$ac_try_echo") >&5
14597   (eval "$ac_link") 2>conftest.er1
14598   ac_status=$?
14599   grep -v '^ *+' conftest.er1 >conftest.err
14600   rm -f conftest.er1
14601   cat conftest.err >&5
14602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); } && {
14604          test -z "$ac_c_werror_flag" ||
14605          test ! -s conftest.err
14606        } && test -s conftest$ac_exeext && {
14607          test "$cross_compiling" = yes ||
14608          $as_test_x conftest$ac_exeext
14609        }; then
14610   ac_cv_lib_z_compress2=yes
14611 else
14612   $as_echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615         ac_cv_lib_z_compress2=no
14616 fi
14617
14618 rm -rf conftest.dSYM
14619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14620       conftest$ac_exeext conftest.$ac_ext
14621 LIBS=$ac_check_lib_save_LIBS
14622 fi
14623 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
14624 $as_echo "$ac_cv_lib_z_compress2" >&6; }
14625 if test "x$ac_cv_lib_z_compress2" = x""yes; then
14626   cat >>confdefs.h <<_ACEOF
14627 #define HAVE_LIBZ 1
14628 _ACEOF
14629
14630   LIBS="-lz $LIBS"
14631
14632 else
14633   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14635 { { $as_echo "$as_me:$LINENO: error:
14636         *** compress2() missing, zlib-devel package required
14637 See \`config.log' for more details." >&5
14638 $as_echo "$as_me: error:
14639         *** compress2() missing, zlib-devel package required
14640 See \`config.log' for more details." >&2;}
14641    { (exit 1); exit 1; }; }; }
14642 fi
14643
14644
14645
14646 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
14647 $as_echo_n "checking for uncompress in -lz... " >&6; }
14648 if test "${ac_cv_lib_z_uncompress+set}" = set; then
14649   $as_echo_n "(cached) " >&6
14650 else
14651   ac_check_lib_save_LIBS=$LIBS
14652 LIBS="-lz  $LIBS"
14653 cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659
14660 /* Override any GCC internal prototype to avoid an error.
14661    Use char because int might match the return type of a GCC
14662    builtin and then its argument prototype would still apply.  */
14663 #ifdef __cplusplus
14664 extern "C"
14665 #endif
14666 char uncompress ();
14667 int
14668 main ()
14669 {
14670 return uncompress ();
14671   ;
14672   return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (ac_try="$ac_link"
14677 case "(($ac_try" in
14678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679   *) ac_try_echo=$ac_try;;
14680 esac
14681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14682 $as_echo "$ac_try_echo") >&5
14683   (eval "$ac_link") 2>conftest.er1
14684   ac_status=$?
14685   grep -v '^ *+' conftest.er1 >conftest.err
14686   rm -f conftest.er1
14687   cat conftest.err >&5
14688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } && {
14690          test -z "$ac_c_werror_flag" ||
14691          test ! -s conftest.err
14692        } && test -s conftest$ac_exeext && {
14693          test "$cross_compiling" = yes ||
14694          $as_test_x conftest$ac_exeext
14695        }; then
14696   ac_cv_lib_z_uncompress=yes
14697 else
14698   $as_echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701         ac_cv_lib_z_uncompress=no
14702 fi
14703
14704 rm -rf conftest.dSYM
14705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14706       conftest$ac_exeext conftest.$ac_ext
14707 LIBS=$ac_check_lib_save_LIBS
14708 fi
14709 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
14710 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
14711 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
14712   cat >>confdefs.h <<_ACEOF
14713 #define HAVE_LIBZ 1
14714 _ACEOF
14715
14716   LIBS="-lz $LIBS"
14717
14718 else
14719   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14721 { { $as_echo "$as_me:$LINENO: error:
14722         *** uncompress() missing, zlib-devel package required
14723 See \`config.log' for more details." >&5
14724 $as_echo "$as_me: error:
14725         *** uncompress() missing, zlib-devel package required
14726 See \`config.log' for more details." >&2;}
14727    { (exit 1); exit 1; }; }; }
14728 fi
14729
14730
14731
14732 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
14733 $as_echo_n "checking for crc32 in -lz... " >&6; }
14734 if test "${ac_cv_lib_z_crc32+set}" = set; then
14735   $as_echo_n "(cached) " >&6
14736 else
14737   ac_check_lib_save_LIBS=$LIBS
14738 LIBS="-lz  $LIBS"
14739 cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745
14746 /* Override any GCC internal prototype to avoid an error.
14747    Use char because int might match the return type of a GCC
14748    builtin and then its argument prototype would still apply.  */
14749 #ifdef __cplusplus
14750 extern "C"
14751 #endif
14752 char crc32 ();
14753 int
14754 main ()
14755 {
14756 return crc32 ();
14757   ;
14758   return 0;
14759 }
14760 _ACEOF
14761 rm -f conftest.$ac_objext conftest$ac_exeext
14762 if { (ac_try="$ac_link"
14763 case "(($ac_try" in
14764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765   *) ac_try_echo=$ac_try;;
14766 esac
14767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14768 $as_echo "$ac_try_echo") >&5
14769   (eval "$ac_link") 2>conftest.er1
14770   ac_status=$?
14771   grep -v '^ *+' conftest.er1 >conftest.err
14772   rm -f conftest.er1
14773   cat conftest.err >&5
14774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } && {
14776          test -z "$ac_c_werror_flag" ||
14777          test ! -s conftest.err
14778        } && test -s conftest$ac_exeext && {
14779          test "$cross_compiling" = yes ||
14780          $as_test_x conftest$ac_exeext
14781        }; then
14782   ac_cv_lib_z_crc32=yes
14783 else
14784   $as_echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787         ac_cv_lib_z_crc32=no
14788 fi
14789
14790 rm -rf conftest.dSYM
14791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14792       conftest$ac_exeext conftest.$ac_ext
14793 LIBS=$ac_check_lib_save_LIBS
14794 fi
14795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
14796 $as_echo "$ac_cv_lib_z_crc32" >&6; }
14797 if test "x$ac_cv_lib_z_crc32" = x""yes; then
14798   cat >>confdefs.h <<_ACEOF
14799 #define HAVE_LIBZ 1
14800 _ACEOF
14801
14802   LIBS="-lz $LIBS"
14803
14804 else
14805   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14807 { { $as_echo "$as_me:$LINENO: error:
14808         *** crc32() missing, zlib-devel package required
14809 See \`config.log' for more details." >&5
14810 $as_echo "$as_me: error:
14811         *** crc32() missing, zlib-devel package required
14812 See \`config.log' for more details." >&2;}
14813    { (exit 1); exit 1; }; }; }
14814 fi
14815
14816
14817         ZLIB="-lz"
14818
14819
14820 cat >>confdefs.h <<\_ACEOF
14821 #define HAVE_ZLIB 1
14822 _ACEOF
14823
14824
14825
14826         LIBUUID=
14827
14828         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14829   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14830 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14831 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14832   $as_echo_n "(cached) " >&6
14833 fi
14834 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14835 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14836 else
14837   # Is the header compilable?
14838 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14839 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 $ac_includes_default
14847 #include <uuid/uuid.h>
14848 _ACEOF
14849 rm -f conftest.$ac_objext
14850 if { (ac_try="$ac_compile"
14851 case "(($ac_try" in
14852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853   *) ac_try_echo=$ac_try;;
14854 esac
14855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14856 $as_echo "$ac_try_echo") >&5
14857   (eval "$ac_compile") 2>conftest.er1
14858   ac_status=$?
14859   grep -v '^ *+' conftest.er1 >conftest.err
14860   rm -f conftest.er1
14861   cat conftest.err >&5
14862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); } && {
14864          test -z "$ac_c_werror_flag" ||
14865          test ! -s conftest.err
14866        } && test -s conftest.$ac_objext; then
14867   ac_header_compiler=yes
14868 else
14869   $as_echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872         ac_header_compiler=no
14873 fi
14874
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14877 $as_echo "$ac_header_compiler" >&6; }
14878
14879 # Is the header present?
14880 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
14881 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
14882 cat >conftest.$ac_ext <<_ACEOF
14883 /* confdefs.h.  */
14884 _ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h.  */
14888 #include <uuid/uuid.h>
14889 _ACEOF
14890 if { (ac_try="$ac_cpp conftest.$ac_ext"
14891 case "(($ac_try" in
14892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893   *) ac_try_echo=$ac_try;;
14894 esac
14895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14896 $as_echo "$ac_try_echo") >&5
14897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14898   ac_status=$?
14899   grep -v '^ *+' conftest.er1 >conftest.err
14900   rm -f conftest.er1
14901   cat conftest.err >&5
14902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903   (exit $ac_status); } >/dev/null && {
14904          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14905          test ! -s conftest.err
14906        }; then
14907   ac_header_preproc=yes
14908 else
14909   $as_echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912   ac_header_preproc=no
14913 fi
14914
14915 rm -f conftest.err conftest.$ac_ext
14916 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14917 $as_echo "$ac_header_preproc" >&6; }
14918
14919 # So?  What about this header?
14920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14921   yes:no: )
14922     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
14923 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14924     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
14925 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
14926     ac_header_preproc=yes
14927     ;;
14928   no:yes:* )
14929     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
14930 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
14931     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
14932 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
14933     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
14934 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
14935     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
14936 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14937     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
14938 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
14939     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
14940 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
14941
14942     ;;
14943 esac
14944 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14945 $as_echo_n "checking for uuid/uuid.h... " >&6; }
14946 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14947   $as_echo_n "(cached) " >&6
14948 else
14949   ac_cv_header_uuid_uuid_h=$ac_header_preproc
14950 fi
14951 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14952 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14953
14954 fi
14955 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
14956   :
14957 else
14958   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14960 { { $as_echo "$as_me:$LINENO: error:
14961         *** uuid/uuid.h missing, libuuid-devel package required
14962 See \`config.log' for more details." >&5
14963 $as_echo "$as_me: error:
14964         *** uuid/uuid.h missing, libuuid-devel package required
14965 See \`config.log' for more details." >&2;}
14966    { (exit 1); exit 1; }; }; }
14967 fi
14968
14969
14970
14971
14972 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
14973 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
14974 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
14975   $as_echo_n "(cached) " >&6
14976 else
14977   ac_check_lib_save_LIBS=$LIBS
14978 LIBS="-luuid  $LIBS"
14979 cat >conftest.$ac_ext <<_ACEOF
14980 /* confdefs.h.  */
14981 _ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h.  */
14985
14986 /* Override any GCC internal prototype to avoid an error.
14987    Use char because int might match the return type of a GCC
14988    builtin and then its argument prototype would still apply.  */
14989 #ifdef __cplusplus
14990 extern "C"
14991 #endif
14992 char uuid_generate ();
14993 int
14994 main ()
14995 {
14996 return uuid_generate ();
14997   ;
14998   return 0;
14999 }
15000 _ACEOF
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (ac_try="$ac_link"
15003 case "(($ac_try" in
15004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005   *) ac_try_echo=$ac_try;;
15006 esac
15007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15008 $as_echo "$ac_try_echo") >&5
15009   (eval "$ac_link") 2>conftest.er1
15010   ac_status=$?
15011   grep -v '^ *+' conftest.er1 >conftest.err
15012   rm -f conftest.er1
15013   cat conftest.err >&5
15014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); } && {
15016          test -z "$ac_c_werror_flag" ||
15017          test ! -s conftest.err
15018        } && test -s conftest$ac_exeext && {
15019          test "$cross_compiling" = yes ||
15020          $as_test_x conftest$ac_exeext
15021        }; then
15022   ac_cv_lib_uuid_uuid_generate=yes
15023 else
15024   $as_echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027         ac_cv_lib_uuid_uuid_generate=no
15028 fi
15029
15030 rm -rf conftest.dSYM
15031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15032       conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15034 fi
15035 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15036 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15037 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15038   cat >>confdefs.h <<_ACEOF
15039 #define HAVE_LIBUUID 1
15040 _ACEOF
15041
15042   LIBS="-luuid $LIBS"
15043
15044 else
15045   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15047 { { $as_echo "$as_me:$LINENO: error:
15048         *** uuid_generate() missing, libuuid-devel package required
15049 See \`config.log' for more details." >&5
15050 $as_echo "$as_me: error:
15051         *** uuid_generate() missing, libuuid-devel package required
15052 See \`config.log' for more details." >&2;}
15053    { (exit 1); exit 1; }; }; }
15054 fi
15055
15056
15057
15058 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
15059 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
15060 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15061   $as_echo_n "(cached) " >&6
15062 else
15063   ac_check_lib_save_LIBS=$LIBS
15064 LIBS="-luuid  $LIBS"
15065 cat >conftest.$ac_ext <<_ACEOF
15066 /* confdefs.h.  */
15067 _ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h.  */
15071
15072 /* Override any GCC internal prototype to avoid an error.
15073    Use char because int might match the return type of a GCC
15074    builtin and then its argument prototype would still apply.  */
15075 #ifdef __cplusplus
15076 extern "C"
15077 #endif
15078 char uuid_is_null ();
15079 int
15080 main ()
15081 {
15082 return uuid_is_null ();
15083   ;
15084   return 0;
15085 }
15086 _ACEOF
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (ac_try="$ac_link"
15089 case "(($ac_try" in
15090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091   *) ac_try_echo=$ac_try;;
15092 esac
15093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15094 $as_echo "$ac_try_echo") >&5
15095   (eval "$ac_link") 2>conftest.er1
15096   ac_status=$?
15097   grep -v '^ *+' conftest.er1 >conftest.err
15098   rm -f conftest.er1
15099   cat conftest.err >&5
15100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } && {
15102          test -z "$ac_c_werror_flag" ||
15103          test ! -s conftest.err
15104        } && test -s conftest$ac_exeext && {
15105          test "$cross_compiling" = yes ||
15106          $as_test_x conftest$ac_exeext
15107        }; then
15108   ac_cv_lib_uuid_uuid_is_null=yes
15109 else
15110   $as_echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113         ac_cv_lib_uuid_uuid_is_null=no
15114 fi
15115
15116 rm -rf conftest.dSYM
15117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15118       conftest$ac_exeext conftest.$ac_ext
15119 LIBS=$ac_check_lib_save_LIBS
15120 fi
15121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
15122 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
15123 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
15124   cat >>confdefs.h <<_ACEOF
15125 #define HAVE_LIBUUID 1
15126 _ACEOF
15127
15128   LIBS="-luuid $LIBS"
15129
15130 else
15131   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15133 { { $as_echo "$as_me:$LINENO: error:
15134         *** uuid_is_null() missing, libuuid-devel package required
15135 See \`config.log' for more details." >&5
15136 $as_echo "$as_me: error:
15137         *** uuid_is_null() missing, libuuid-devel package required
15138 See \`config.log' for more details." >&2;}
15139    { (exit 1); exit 1; }; }; }
15140 fi
15141
15142
15143         LIBUUID="-luuid"
15144
15145
15146 cat >>confdefs.h <<\_ACEOF
15147 #define HAVE_LIBUUID 1
15148 _ACEOF
15149
15150
15151
15152
15153 # Check whether --with-blkid was given.
15154 if test "${with_blkid+set}" = set; then
15155   withval=$with_blkid;
15156 else
15157   with_blkid=check
15158 fi
15159
15160
15161         LIBBLKID=
15162         if test "x$with_blkid" != xno; then
15163
15164                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
15165 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
15166 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
15167   $as_echo_n "(cached) " >&6
15168 else
15169   ac_check_lib_save_LIBS=$LIBS
15170 LIBS="-lblkid  $LIBS"
15171 cat >conftest.$ac_ext <<_ACEOF
15172 /* confdefs.h.  */
15173 _ACEOF
15174 cat confdefs.h >>conftest.$ac_ext
15175 cat >>conftest.$ac_ext <<_ACEOF
15176 /* end confdefs.h.  */
15177
15178 /* Override any GCC internal prototype to avoid an error.
15179    Use char because int might match the return type of a GCC
15180    builtin and then its argument prototype would still apply.  */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 char blkid_get_cache ();
15185 int
15186 main ()
15187 {
15188 return blkid_get_cache ();
15189   ;
15190   return 0;
15191 }
15192 _ACEOF
15193 rm -f conftest.$ac_objext conftest$ac_exeext
15194 if { (ac_try="$ac_link"
15195 case "(($ac_try" in
15196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197   *) ac_try_echo=$ac_try;;
15198 esac
15199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15200 $as_echo "$ac_try_echo") >&5
15201   (eval "$ac_link") 2>conftest.er1
15202   ac_status=$?
15203   grep -v '^ *+' conftest.er1 >conftest.err
15204   rm -f conftest.er1
15205   cat conftest.err >&5
15206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } && {
15208          test -z "$ac_c_werror_flag" ||
15209          test ! -s conftest.err
15210        } && test -s conftest$ac_exeext && {
15211          test "$cross_compiling" = yes ||
15212          $as_test_x conftest$ac_exeext
15213        }; then
15214   ac_cv_lib_blkid_blkid_get_cache=yes
15215 else
15216   $as_echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15218
15219         ac_cv_lib_blkid_blkid_get_cache=no
15220 fi
15221
15222 rm -rf conftest.dSYM
15223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15224       conftest$ac_exeext conftest.$ac_ext
15225 LIBS=$ac_check_lib_save_LIBS
15226 fi
15227 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
15228 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
15229 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
15230
15231                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
15232 $as_echo_n "checking for blkid zfs support... " >&6; }
15233
15234                         ZFS_DEV=`mktemp`
15235                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
15236                                 >/dev/null 2>/dev/null
15237                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
15238                                 dd of=$ZFS_DEV bs=1k count=8 \
15239                                 seek=132 conv=notrunc &>/dev/null \
15240                                 >/dev/null 2>/dev/null
15241
15242                         saved_LDFLAGS="$LDFLAGS"
15243                         LDFLAGS="-lblkid"
15244
15245                         if test "$cross_compiling" = yes; then
15246   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15248 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15249 See \`config.log' for more details." >&5
15250 $as_echo "$as_me: error: cannot run test program while cross compiling
15251 See \`config.log' for more details." >&2;}
15252    { (exit 1); exit 1; }; }; }
15253 else
15254   cat >conftest.$ac_ext <<_ACEOF
15255 /* confdefs.h.  */
15256 _ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h.  */
15260
15261                                 #include <stdio.h>
15262                                 #include <blkid/blkid.h>
15263
15264 int
15265 main ()
15266 {
15267
15268                                 blkid_cache cache;
15269                                 char *value;
15270
15271                                 if (blkid_get_cache(&cache, NULL) < 0)
15272                                         return 1;
15273
15274                                 value = blkid_get_tag_value(cache, "TYPE",
15275                                                             "$ZFS_DEV");
15276                                 if (!value) {
15277                                         blkid_put_cache(cache);
15278                                         return 2;
15279                                 }
15280
15281                                 if (strcmp(value, "zfs")) {
15282                                         free(value);
15283                                         blkid_put_cache(cache);
15284                                         return 3;
15285                                 }
15286
15287                                 free(value);
15288                                 blkid_put_cache(cache);
15289
15290   ;
15291   return 0;
15292 }
15293 _ACEOF
15294 rm -f conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298   *) ac_try_echo=$ac_try;;
15299 esac
15300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15301 $as_echo "$ac_try_echo") >&5
15302   (eval "$ac_link") 2>&5
15303   ac_status=$?
15304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15306   { (case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311 $as_echo "$ac_try_echo") >&5
15312   (eval "$ac_try") 2>&5
15313   ac_status=$?
15314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); }; }; then
15316
15317                                 rm -f $ZFS_DEV
15318                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15319 $as_echo "yes" >&6; }
15320                                 LIBBLKID="-lblkid"
15321
15322
15323 cat >>confdefs.h <<\_ACEOF
15324 #define HAVE_LIBBLKID 1
15325 _ACEOF
15326
15327
15328 else
15329   $as_echo "$as_me: program exited with status $ac_status" >&5
15330 $as_echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15332
15333 ( exit $ac_status )
15334
15335                                 rm -f $ZFS_DEV
15336                                 { $as_echo "$as_me:$LINENO: result: no" >&5
15337 $as_echo "no" >&6; }
15338                                 if test "x$with_blkid" != xcheck; then
15339   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15341 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15342 See \`config.log' for more details." >&5
15343 $as_echo "$as_me: error: --with-blkid given but unavailable
15344 See \`config.log' for more details." >&2;}
15345    { (exit 1); exit 1; }; }; }
15346 fi
15347
15348
15349 fi
15350 rm -rf conftest.dSYM
15351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15352 fi
15353
15354
15355
15356                         LDFLAGS="$saved_LDFLAGS"
15357
15358 else
15359
15360                         if test "x$with_blkid" != xcheck; then
15361   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15363 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15364 See \`config.log' for more details." >&5
15365 $as_echo "$as_me: error: --with-blkid given but unavailable
15366 See \`config.log' for more details." >&2;}
15367    { (exit 1); exit 1; }; }; }
15368 fi
15369
15370
15371
15372 fi
15373
15374
15375 fi
15376
15377
15378
15379
15380 # Check whether --with-selinux was given.
15381 if test "${with_selinux+set}" = set; then
15382   withval=$with_selinux;
15383 else
15384   with_selinux=check
15385 fi
15386
15387
15388         LIBSELINUX=
15389         if test "x$with_selinux" != xno; then
15390
15391                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15392   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15393 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15394 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15395   $as_echo_n "(cached) " >&6
15396 fi
15397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15398 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15399 else
15400   # Is the header compilable?
15401 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
15402 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
15403 cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h.  */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h.  */
15409 $ac_includes_default
15410 #include <selinux/selinux.h>
15411 _ACEOF
15412 rm -f conftest.$ac_objext
15413 if { (ac_try="$ac_compile"
15414 case "(($ac_try" in
15415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416   *) ac_try_echo=$ac_try;;
15417 esac
15418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15419 $as_echo "$ac_try_echo") >&5
15420   (eval "$ac_compile") 2>conftest.er1
15421   ac_status=$?
15422   grep -v '^ *+' conftest.er1 >conftest.err
15423   rm -f conftest.er1
15424   cat conftest.err >&5
15425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); } && {
15427          test -z "$ac_c_werror_flag" ||
15428          test ! -s conftest.err
15429        } && test -s conftest.$ac_objext; then
15430   ac_header_compiler=yes
15431 else
15432   $as_echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15434
15435         ac_header_compiler=no
15436 fi
15437
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15440 $as_echo "$ac_header_compiler" >&6; }
15441
15442 # Is the header present?
15443 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
15444 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451 #include <selinux/selinux.h>
15452 _ACEOF
15453 if { (ac_try="$ac_cpp conftest.$ac_ext"
15454 case "(($ac_try" in
15455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456   *) ac_try_echo=$ac_try;;
15457 esac
15458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15459 $as_echo "$ac_try_echo") >&5
15460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15461   ac_status=$?
15462   grep -v '^ *+' conftest.er1 >conftest.err
15463   rm -f conftest.er1
15464   cat conftest.err >&5
15465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); } >/dev/null && {
15467          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15468          test ! -s conftest.err
15469        }; then
15470   ac_header_preproc=yes
15471 else
15472   $as_echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15474
15475   ac_header_preproc=no
15476 fi
15477
15478 rm -f conftest.err conftest.$ac_ext
15479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15480 $as_echo "$ac_header_preproc" >&6; }
15481
15482 # So?  What about this header?
15483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484   yes:no: )
15485     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
15486 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15487     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
15488 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
15489     ac_header_preproc=yes
15490     ;;
15491   no:yes:* )
15492     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
15493 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
15494     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
15495 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
15496     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
15497 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
15498     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
15499 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15500     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
15501 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
15502     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
15503 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
15504
15505     ;;
15506 esac
15507 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15508 $as_echo_n "checking for selinux/selinux.h... " >&6; }
15509 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15510   $as_echo_n "(cached) " >&6
15511 else
15512   ac_cv_header_selinux_selinux_h=$ac_header_preproc
15513 fi
15514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15515 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15516
15517 fi
15518 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
15519
15520                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15521 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15522 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15523   $as_echo_n "(cached) " >&6
15524 else
15525   ac_check_lib_save_LIBS=$LIBS
15526 LIBS="-lselinux  $LIBS"
15527 cat >conftest.$ac_ext <<_ACEOF
15528 /* confdefs.h.  */
15529 _ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h.  */
15533
15534 /* Override any GCC internal prototype to avoid an error.
15535    Use char because int might match the return type of a GCC
15536    builtin and then its argument prototype would still apply.  */
15537 #ifdef __cplusplus
15538 extern "C"
15539 #endif
15540 char is_selinux_enabled ();
15541 int
15542 main ()
15543 {
15544 return is_selinux_enabled ();
15545   ;
15546   return 0;
15547 }
15548 _ACEOF
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (ac_try="$ac_link"
15551 case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15556 $as_echo "$ac_try_echo") >&5
15557   (eval "$ac_link") 2>conftest.er1
15558   ac_status=$?
15559   grep -v '^ *+' conftest.er1 >conftest.err
15560   rm -f conftest.er1
15561   cat conftest.err >&5
15562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } && {
15564          test -z "$ac_c_werror_flag" ||
15565          test ! -s conftest.err
15566        } && test -s conftest$ac_exeext && {
15567          test "$cross_compiling" = yes ||
15568          $as_test_x conftest$ac_exeext
15569        }; then
15570   ac_cv_lib_selinux_is_selinux_enabled=yes
15571 else
15572   $as_echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575         ac_cv_lib_selinux_is_selinux_enabled=no
15576 fi
15577
15578 rm -rf conftest.dSYM
15579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15580       conftest$ac_exeext conftest.$ac_ext
15581 LIBS=$ac_check_lib_save_LIBS
15582 fi
15583 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15584 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15585 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15586
15587                                 LIBSELINUX="-lselinux"
15588
15589
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE_LIBSELINUX 1
15592 _ACEOF
15593
15594
15595 else
15596
15597                                 if test "x$with_selinux" != xcheck; then
15598   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15600 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15601 See \`config.log' for more details." >&5
15602 $as_echo "$as_me: error: --with-selinux given but unavailable
15603 See \`config.log' for more details." >&2;}
15604    { (exit 1); exit 1; }; }; }
15605
15606 fi
15607
15608
15609 fi
15610
15611
15612 else
15613
15614                         if test "x$with_selinux" != xcheck; then
15615   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15617 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15618 See \`config.log' for more details." >&5
15619 $as_echo "$as_me: error: --with-selinux given but unavailable
15620 See \`config.log' for more details." >&2;}
15621    { (exit 1); exit 1; }; }; }
15622
15623 fi
15624
15625
15626 fi
15627
15628
15629
15630 else
15631
15632                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
15633 $as_echo_n "checking for selinux support... " >&6; }
15634                 { $as_echo "$as_me:$LINENO: result: no" >&5
15635 $as_echo "no" >&6; }
15636
15637 fi
15638
15639
15640
15641         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
15642 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
15643
15644         saved_flags="$CFLAGS"
15645         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
15646
15647         if test "$cross_compiling" = yes; then
15648   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15650 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15651 See \`config.log' for more details." >&5
15652 $as_echo "$as_me: error: cannot run test program while cross compiling
15653 See \`config.log' for more details." >&2;}
15654    { (exit 1); exit 1; }; }; }
15655 else
15656   cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662
15663 int
15664 main ()
15665 {
15666
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675   *) ac_try_echo=$ac_try;;
15676 esac
15677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15678 $as_echo "$ac_try_echo") >&5
15679   (eval "$ac_link") 2>&5
15680   ac_status=$?
15681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15683   { (case "(($ac_try" in
15684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685   *) ac_try_echo=$ac_try;;
15686 esac
15687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15688 $as_echo "$ac_try_echo") >&5
15689   (eval "$ac_try") 2>&5
15690   ac_status=$?
15691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; }; then
15693
15694                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
15695                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15696 $as_echo "yes" >&6; }
15697
15698 else
15699   $as_echo "$as_me: program exited with status $ac_status" >&5
15700 $as_echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703 ( exit $ac_status )
15704
15705                 FRAME_LARGER_THAN=
15706                 { $as_echo "$as_me:$LINENO: result: no" >&5
15707 $as_echo "no" >&6; }
15708
15709 fi
15710 rm -rf conftest.dSYM
15711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15712 fi
15713
15714
15715
15716         CFLAGS="$saved_flags"
15717
15718
15719
15720
15721         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
15722 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
15723
15724         saved_CFLAGS="$CFLAGS"
15725         CFLAGS="-fstack-check"
15726         saved_LDFLAGS="$LDFLAGS"
15727         LDFLAGS="-lpthread"
15728
15729         if test "$cross_compiling" = yes; then
15730   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15732 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15733 See \`config.log' for more details." >&5
15734 $as_echo "$as_me: error: cannot run test program while cross compiling
15735 See \`config.log' for more details." >&2;}
15736    { (exit 1); exit 1; }; }; }
15737 else
15738   cat >conftest.$ac_ext <<_ACEOF
15739 /* confdefs.h.  */
15740 _ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h.  */
15744
15745                 #include <pthread.h>
15746                 #include <sys/resource.h>
15747                 #include <unistd.h>
15748                 #include <bits/local_lim.h>
15749
15750                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
15751                 #define STACK_SIZE 8192
15752                 #define BUFSIZE 4096
15753
15754                 void * func(void *arg)
15755                 {
15756                         char buf[BUFSIZE];
15757                 }
15758
15759 int
15760 main ()
15761 {
15762
15763                 pthread_t tid;
15764                 pthread_attr_t attr;
15765                 struct rlimit l;
15766
15767                 l.rlim_cur = 0;
15768                 l.rlim_max = 0;
15769                 setrlimit(RLIMIT_CORE, &l);
15770                 pthread_attr_init(&attr);
15771                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
15772                 pthread_attr_setguardsize(&attr, PAGESIZE);
15773                 pthread_create(&tid, &attr, func, NULL);
15774                 pthread_join(tid, NULL);
15775
15776   ;
15777   return 0;
15778 }
15779 _ACEOF
15780 rm -f conftest$ac_exeext
15781 if { (ac_try="$ac_link"
15782 case "(($ac_try" in
15783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784   *) ac_try_echo=$ac_try;;
15785 esac
15786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15787 $as_echo "$ac_try_echo") >&5
15788   (eval "$ac_link") 2>&5
15789   ac_status=$?
15790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15792   { (case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15797 $as_echo "$ac_try_echo") >&5
15798   (eval "$ac_try") 2>&5
15799   ac_status=$?
15800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; }; then
15802
15803                 { $as_echo "$as_me:$LINENO: result: no" >&5
15804 $as_echo "no" >&6; }
15805
15806 else
15807   $as_echo "$as_me: program exited with status $ac_status" >&5
15808 $as_echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811 ( exit $ac_status )
15812
15813
15814 cat >>confdefs.h <<\_ACEOF
15815 #define NPTL_GUARD_WITHIN_STACK 1
15816 _ACEOF
15817
15818                 { $as_echo "$as_me:$LINENO: result: yes" >&5
15819 $as_echo "yes" >&6; }
15820
15821 fi
15822 rm -rf conftest.dSYM
15823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15824 fi
15825
15826
15827         CFLAGS="$saved_CFLAGS"
15828         LDFLAGS="$saved_LDFLAGS"
15829
15830    ;;
15831                 all)
15832
15833
15834 # Check whether --with-linux was given.
15835 if test "${with_linux+set}" = set; then
15836   withval=$with_linux; kernelsrc="$withval"
15837 fi
15838
15839
15840
15841 # Check whether --with-linux-obj was given.
15842 if test "${with_linux_obj+set}" = set; then
15843   withval=$with_linux_obj; kernelbuild="$withval"
15844 fi
15845
15846
15847         { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15848 $as_echo_n "checking kernel source directory... " >&6; }
15849         if test -z "$kernelsrc"; then
15850                 if test -e "/lib/modules/$(uname -r)/source"; then
15851                         headersdir="/lib/modules/$(uname -r)/source"
15852                         sourcelink=$(readlink -f "$headersdir")
15853                 elif test -e "/lib/modules/$(uname -r)/build"; then
15854                         headersdir="/lib/modules/$(uname -r)/build"
15855                         sourcelink=$(readlink -f "$headersdir")
15856                 else
15857                         sourcelink=$(ls -1d /usr/src/kernels/* \
15858                                      /usr/src/linux-* \
15859                                      2>/dev/null | grep -v obj | tail -1)
15860                 fi
15861
15862                 if test -n "$sourcelink" && test -e ${sourcelink}; then
15863                         kernelsrc=`readlink -f ${sourcelink}`
15864                 else
15865                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
15866 $as_echo "Not found" >&6; }
15867                         { { $as_echo "$as_me:$LINENO: error:
15868         *** Please make sure the kernel devel package for your distribution
15869         *** is installed then try again.  If that fails you can specify the
15870         *** location of the kernel source with the '--with-linux=PATH' option." >&5
15871 $as_echo "$as_me: error:
15872         *** Please make sure the kernel devel package for your distribution
15873         *** is installed then try again.  If that fails you can specify the
15874         *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15875    { (exit 1); exit 1; }; }
15876                 fi
15877         else
15878                 if test "$kernelsrc" = "NONE"; then
15879                         kernsrcver=NONE
15880                 fi
15881         fi
15882
15883         { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15884 $as_echo "$kernelsrc" >&6; }
15885         { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15886 $as_echo_n "checking kernel build directory... " >&6; }
15887         if test -z "$kernelbuild"; then
15888                 if test -e "/lib/modules/$(uname -r)/build"; then
15889                         kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15890                 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15891                         kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15892                 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15893                         kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15894                 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15895                         kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15896                 else
15897                         kernelbuild=${kernelsrc}
15898                 fi
15899         fi
15900         { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15901 $as_echo "$kernelbuild" >&6; }
15902
15903         { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15904 $as_echo_n "checking kernel source version... " >&6; }
15905         utsrelease1=$kernelbuild/include/linux/version.h
15906         utsrelease2=$kernelbuild/include/linux/utsrelease.h
15907         utsrelease3=$kernelbuild/include/generated/utsrelease.h
15908         if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15909                 utsrelease=linux/version.h
15910         elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15911                 utsrelease=linux/utsrelease.h
15912         elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15913                 utsrelease=generated/utsrelease.h
15914         fi
15915
15916         if test "$utsrelease"; then
15917                 kernsrcver=`(echo "#include <$utsrelease>";
15918                              echo "kernsrcver=UTS_RELEASE") |
15919                              cpp -I $kernelbuild/include |
15920                              grep "^kernsrcver=" | cut -d \" -f 2`
15921
15922                 if test -z "$kernsrcver"; then
15923                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
15924 $as_echo "Not found" >&6; }
15925                         { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15926 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15927    { (exit 1); exit 1; }; }
15928                 fi
15929         else
15930                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15931 $as_echo "Not found" >&6; }
15932                 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15933 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15934    { (exit 1); exit 1; }; }
15935         fi
15936
15937         { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15938 $as_echo "$kernsrcver" >&6; }
15939
15940         LINUX=${kernelsrc}
15941         LINUX_OBJ=${kernelbuild}
15942         LINUX_VERSION=${kernsrcver}
15943
15944
15945
15946
15947
15948
15949         modpost=$LINUX/scripts/Makefile.modpost
15950         { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15951 $as_echo_n "checking kernel file name for module symbols... " >&6; }
15952         if test -f "$modpost"; then
15953                 if grep -q Modules.symvers $modpost; then
15954                         LINUX_SYMBOLS=Modules.symvers
15955                 else
15956                         LINUX_SYMBOLS=Module.symvers
15957                 fi
15958         else
15959                 LINUX_SYMBOLS=NONE
15960         fi
15961         { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15962 $as_echo "$LINUX_SYMBOLS" >&6; }
15963
15964
15965
15966
15967
15968 # Check whether --with-spl was given.
15969 if test "${with_spl+set}" = set; then
15970   withval=$with_spl; splsrc="$withval"
15971 fi
15972
15973
15974
15975 # Check whether --with-spl-obj was given.
15976 if test "${with_spl_obj+set}" = set; then
15977   withval=$with_spl_obj; splbuild="$withval"
15978 fi
15979
15980
15981
15982         { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
15983 $as_echo_n "checking spl source directory... " >&6; }
15984         if test -z "$splsrc"; then
15985                 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
15986                             2>/dev/null | tail -1`
15987
15988                 if test -z "$sourcelink" || test ! -e $sourcelink; then
15989                         sourcelink=../spl
15990                 fi
15991
15992                 if test -e $sourcelink; then
15993                         splsrc=`readlink -f ${sourcelink}`
15994                 else
15995                         { $as_echo "$as_me:$LINENO: result: Not found" >&5
15996 $as_echo "Not found" >&6; }
15997                         { { $as_echo "$as_me:$LINENO: error:
15998         *** Please make sure the spl devel package for your distribution
15999         *** is installed then try again.  If that fails you can specify the
16000         *** location of the spl source with the '--with-spl=PATH' option." >&5
16001 $as_echo "$as_me: error:
16002         *** Please make sure the spl devel package for your distribution
16003         *** is installed then try again.  If that fails you can specify the
16004         *** location of the spl source with the '--with-spl=PATH' option." >&2;}
16005    { (exit 1); exit 1; }; }
16006                 fi
16007         else
16008                 if test "$splsrc" = "NONE"; then
16009                         splbuild=NONE
16010                         splsrcver=NONE
16011                 fi
16012         fi
16013
16014         { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
16015 $as_echo "$splsrc" >&6; }
16016         { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
16017 $as_echo_n "checking spl build directory... " >&6; }
16018         if test -z "$splbuild"; then
16019                 splbuild=${splsrc}
16020         fi
16021         { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
16022 $as_echo "$splbuild" >&6; }
16023
16024         { $as_echo "$as_me:$LINENO: checking spl source version" >&5
16025 $as_echo_n "checking spl source version... " >&6; }
16026         if test -r $splbuild/spl_config.h &&
16027                 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
16028
16029                 splsrcver=`(echo "#include <spl_config.h>";
16030                             echo "splsrcver=SPL_META_VERSION") |
16031                             cpp -I $splbuild |
16032                             grep "^splsrcver=" | cut -d \" -f 2`
16033         fi
16034
16035         if test -z "$splsrcver"; then
16036                 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16037 $as_echo "Not found" >&6; }
16038                 { { $as_echo "$as_me:$LINENO: error:
16039                 *** Cannot determine the version of the spl source.
16040                 *** Please prepare the spl source before running this script" >&5
16041 $as_echo "$as_me: error:
16042                 *** Cannot determine the version of the spl source.
16043                 *** Please prepare the spl source before running this script" >&2;}
16044    { (exit 1); exit 1; }; }
16045         fi
16046
16047         { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
16048 $as_echo "$splsrcver" >&6; }
16049
16050         SPL=${splsrc}
16051         SPL_OBJ=${splbuild}
16052         SPL_VERSION=${splsrcver}
16053
16054
16055
16056
16057
16058
16059         { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
16060 $as_echo_n "checking spl file name for module symbols... " >&6; }
16061         if test -r $SPL_OBJ/Module.symvers; then
16062                 SPL_SYMBOLS=Module.symvers
16063         elif test -r $SPL_OBJ/Modules.symvers; then
16064                 SPL_SYMBOLS=Modules.symvers
16065         elif test -r $SPL_OBJ/module/Module.symvers; then
16066                 SPL_SYMBOLS=Module.symvers
16067         elif test -r $SPL_OBJ/module/Modules.symvers; then
16068                 SPL_SYMBOLS=Modules.symvers
16069         else
16070                 SPL_SYMBOLS=$LINUX_SYMBOLS
16071         fi
16072
16073         { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
16074 $as_echo "$SPL_SYMBOLS" >&6; }
16075
16076
16077
16078
16079
16080         { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16081 $as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16082
16083
16084 cat confdefs.h - <<_ACEOF >conftest.c
16085 /* confdefs.h.  */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h.  */
16090
16091
16092                 #ifndef AUTOCONF_INCLUDED
16093                 #include <linux/config.h>
16094                 #endif
16095
16096 int
16097 main (void)
16098 {
16099
16100                 #ifndef CONFIG_PREEMPT
16101                 #error CONFIG_PREEMPT not #defined
16102                 #endif
16103
16104   ;
16105   return 0;
16106 }
16107
16108 _ACEOF
16109
16110
16111         rm -Rf build && mkdir -p build
16112         echo "obj-m := conftest.o" >build/Makefile
16113         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115   (eval $ac_try) 2>&5
16116   ac_status=$?
16117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; }; then
16124
16125                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16126 $as_echo "yes" >&6; }
16127                 { { $as_echo "$as_me:$LINENO: error:
16128                 *** Kernel built with CONFIG_PREEMPT which is not supported.
16129                 ** You must rebuild your kernel without this option." >&5
16130 $as_echo "$as_me: error:
16131                 *** Kernel built with CONFIG_PREEMPT which is not supported.
16132                 ** You must rebuild your kernel without this option." >&2;}
16133    { (exit 1); exit 1; }; }
16134
16135 else
16136   $as_echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139                 { $as_echo "$as_me:$LINENO: result: no" >&5
16140 $as_echo "no" >&6; }
16141
16142
16143
16144
16145 fi
16146
16147         rm -Rf build
16148
16149
16150
16151
16152         if test "$ZFS_META_LICENSE" = CDDL; then
16153                 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
16154 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
16155
16156
16157 cat confdefs.h - <<_ACEOF >conftest.c
16158 /* confdefs.h.  */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h.  */
16163
16164
16165                 #ifndef AUTOCONF_INCLUDED
16166                 #include <linux/config.h>
16167                 #endif
16168
16169 int
16170 main (void)
16171 {
16172
16173                 #ifndef CONFIG_DEBUG_LOCK_ALLOC
16174                 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
16175                 #endif
16176
16177   ;
16178   return 0;
16179 }
16180
16181 _ACEOF
16182
16183
16184         rm -Rf build && mkdir -p build
16185         echo "obj-m := conftest.o" >build/Makefile
16186         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188   (eval $ac_try) 2>&5
16189   ac_status=$?
16190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193   (eval $ac_try) 2>&5
16194   ac_status=$?
16195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); }; }; then
16197
16198                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16199 $as_echo "yes" >&6; }
16200                 { { $as_echo "$as_me:$LINENO: error:
16201                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16202                 *** incompatible with the CDDL license.  You must rebuild
16203                 *** your kernel without this option." >&5
16204 $as_echo "$as_me: error:
16205                 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
16206                 *** incompatible with the CDDL license.  You must rebuild
16207                 *** your kernel without this option." >&2;}
16208    { (exit 1); exit 1; }; }
16209
16210 else
16211   $as_echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214                 { $as_echo "$as_me:$LINENO: result: no" >&5
16215 $as_echo "no" >&6; }
16216
16217
16218
16219
16220 fi
16221
16222         rm -Rf build
16223
16224
16225
16226         fi
16227
16228         if test "$ZFS_META_LICENSE" = GPL; then
16229
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_GPL_ONLY_SYMBOLS 1
16232 _ACEOF
16233
16234         fi
16235
16236
16237         { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
16238 $as_echo_n "checking block device operation prototypes... " >&6; }
16239
16240
16241 cat confdefs.h - <<_ACEOF >conftest.c
16242 /* confdefs.h.  */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h.  */
16247
16248
16249                 #include <linux/blkdev.h>
16250
16251 int
16252 main (void)
16253 {
16254
16255                 int (*blk_open) (struct block_device *, fmode_t) = NULL;
16256                 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
16257                 int (*blk_ioctl) (struct block_device *, fmode_t,
16258                                   unsigned, unsigned long) = NULL;
16259                 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
16260                                          unsigned, unsigned long) = NULL;
16261                 struct block_device_operations blk_ops = {
16262                         .open           = blk_open,
16263                         .release        = blk_release,
16264                         .ioctl          = blk_ioctl,
16265                         .compat_ioctl   = blk_compat_ioctl,
16266                 };
16267
16268                 blk_ops.open(NULL, 0);
16269                 blk_ops.release(NULL, 0);
16270                 blk_ops.ioctl(NULL, 0, 0, 0);
16271                 blk_ops.compat_ioctl(NULL, 0, 0, 0);
16272
16273   ;
16274   return 0;
16275 }
16276
16277 _ACEOF
16278
16279
16280         rm -Rf build && mkdir -p build
16281         echo "obj-m := conftest.o" >build/Makefile
16282         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289   (eval $ac_try) 2>&5
16290   ac_status=$?
16291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; }; then
16293
16294                 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
16295 $as_echo "struct block_device" >&6; }
16296
16297 cat >>confdefs.h <<\_ACEOF
16298 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
16299 _ACEOF
16300
16301
16302 else
16303   $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306                 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
16307 $as_echo "struct inode" >&6; }
16308
16309
16310
16311 fi
16312
16313         rm -Rf build
16314
16315
16316
16317         { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
16318 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
16319
16320
16321 cat confdefs.h - <<_ACEOF >conftest.c
16322 /* confdefs.h.  */
16323 _ACEOF
16324 cat confdefs.h >>conftest.$ac_ext
16325 cat >>conftest.$ac_ext <<_ACEOF
16326 /* end confdefs.h.  */
16327
16328
16329                 #include <linux/types.h>
16330
16331 int
16332 main (void)
16333 {
16334
16335                 fmode_t *ptr;
16336
16337   ;
16338   return 0;
16339 }
16340
16341 _ACEOF
16342
16343
16344         rm -Rf build && mkdir -p build
16345         echo "obj-m := conftest.o" >build/Makefile
16346         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348   (eval $ac_try) 2>&5
16349   ac_status=$?
16350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353   (eval $ac_try) 2>&5
16354   ac_status=$?
16355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; }; then
16357
16358                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16359 $as_echo "yes" >&6; }
16360
16361 cat >>confdefs.h <<\_ACEOF
16362 #define HAVE_FMODE_T 1
16363 _ACEOF
16364
16365
16366 else
16367   $as_echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16369
16370                 { $as_echo "$as_me:$LINENO: result: no" >&5
16371 $as_echo "no" >&6; }
16372
16373
16374
16375 fi
16376
16377         rm -Rf build
16378
16379
16380
16381
16382         { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
16383 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
16384
16385
16386 cat confdefs.h - <<_ACEOF >conftest.c
16387 /* confdefs.h.  */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h.  */
16392
16393
16394                 #include <linux/kobject.h>
16395
16396 int
16397 main (void)
16398 {
16399
16400                 int val;
16401                 val = KOBJ_NAME_LEN;
16402
16403   ;
16404   return 0;
16405 }
16406
16407 _ACEOF
16408
16409
16410         rm -Rf build && mkdir -p build
16411         echo "obj-m := conftest.o" >build/Makefile
16412         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414   (eval $ac_try) 2>&5
16415   ac_status=$?
16416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419   (eval $ac_try) 2>&5
16420   ac_status=$?
16421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422   (exit $ac_status); }; }; then
16423
16424                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16425 $as_echo "yes" >&6; }
16426
16427 cat >>confdefs.h <<\_ACEOF
16428 #define HAVE_KOBJ_NAME_LEN 1
16429 _ACEOF
16430
16431
16432 else
16433   $as_echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436                 { $as_echo "$as_me:$LINENO: result: no" >&5
16437 $as_echo "no" >&6; }
16438
16439
16440
16441 fi
16442
16443         rm -Rf build
16444
16445
16446
16447
16448         { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
16449 $as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
16450         grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
16451                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16452         rc=$?
16453         if test $rc -ne 0; then
16454                 export=0
16455                 for file in fs/block_dev.c; do
16456                         grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
16457                         rc=$?
16458                         if test $rc -eq 0; then
16459                                 export=1
16460                                 break;
16461                         fi
16462                 done
16463                 if test $export -eq 0; then
16464                         { $as_echo "$as_me:$LINENO: result: no" >&5
16465 $as_echo "no" >&6; }
16466
16467                 else
16468                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16469 $as_echo "yes" >&6; }
16470
16471 cat >>confdefs.h <<\_ACEOF
16472 #define HAVE_BLKDEV_GET_BY_PATH 1
16473 _ACEOF
16474
16475                 fi
16476         else
16477                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16478 $as_echo "yes" >&6; }
16479
16480 cat >>confdefs.h <<\_ACEOF
16481 #define HAVE_BLKDEV_GET_BY_PATH 1
16482 _ACEOF
16483
16484         fi
16485
16486
16487
16488         { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
16489 $as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
16490         grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
16491                 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16492         rc=$?
16493         if test $rc -ne 0; then
16494                 export=0
16495                 for file in fs/block_dev.c; do
16496                         grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
16497                         rc=$?
16498                         if test $rc -eq 0; then
16499                                 export=1
16500                                 break;
16501                         fi
16502                 done
16503                 if test $export -eq 0; then
16504                         { $as_echo "$as_me:$LINENO: result: no" >&5
16505 $as_echo "no" >&6; }
16506
16507                 else
16508                         { $as_echo "$as_me:$LINENO: result: yes" >&5
16509 $as_echo "yes" >&6; }
16510
16511 cat >>confdefs.h <<\_ACEOF
16512 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16513 _ACEOF
16514
16515                 fi
16516         else
16517                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16518 $as_echo "yes" >&6; }
16519
16520 cat >>confdefs.h <<\_ACEOF
16521 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
16522 _ACEOF
16523
16524         fi
16525
16526
16527
16528         { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16529 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16530
16531
16532 cat confdefs.h - <<_ACEOF >conftest.c
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538
16539
16540                 #include <linux/buffer_head.h>
16541
16542 int
16543 main (void)
16544 {
16545
16546                 struct block_device *bdev;
16547                 invalidate_bdev(bdev);
16548
16549   ;
16550   return 0;
16551 }
16552
16553 _ACEOF
16554
16555
16556         rm -Rf build && mkdir -p build
16557         echo "obj-m := conftest.o" >build/Makefile
16558         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560   (eval $ac_try) 2>&5
16561   ac_status=$?
16562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565   (eval $ac_try) 2>&5
16566   ac_status=$?
16567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); }; }; then
16569
16570                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16571 $as_echo "yes" >&6; }
16572
16573 cat >>confdefs.h <<\_ACEOF
16574 #define HAVE_1ARG_INVALIDATE_BDEV 1
16575 _ACEOF
16576
16577
16578 else
16579   $as_echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582                 { $as_echo "$as_me:$LINENO: result: no" >&5
16583 $as_echo "no" >&6; }
16584
16585
16586
16587 fi
16588
16589         rm -Rf build
16590
16591
16592
16593
16594         { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16595 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16596
16597
16598 cat confdefs.h - <<_ACEOF >conftest.c
16599 /* confdefs.h.  */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h.  */
16604
16605
16606                 #include <linux/blkdev.h>
16607
16608 int
16609 main (void)
16610 {
16611
16612                 struct block_device *bdev = NULL;
16613                 bdev_logical_block_size(bdev);
16614
16615   ;
16616   return 0;
16617 }
16618
16619 _ACEOF
16620
16621
16622         rm -Rf build && mkdir -p build
16623         echo "obj-m := conftest.o" >build/Makefile
16624         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626   (eval $ac_try) 2>&5
16627   ac_status=$?
16628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631   (eval $ac_try) 2>&5
16632   ac_status=$?
16633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); }; }; then
16635
16636                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16637 $as_echo "yes" >&6; }
16638
16639 cat >>confdefs.h <<\_ACEOF
16640 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16641 _ACEOF
16642
16643
16644 else
16645   $as_echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16647
16648                 { $as_echo "$as_me:$LINENO: result: no" >&5
16649 $as_echo "no" >&6; }
16650
16651
16652
16653 fi
16654
16655         rm -Rf build
16656
16657
16658
16659
16660         { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
16661 $as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
16662         EXTRA_KCFLAGS="-Werror"
16663
16664
16665 cat confdefs.h - <<_ACEOF >conftest.c
16666 /* confdefs.h.  */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h.  */
16671
16672
16673                 #include <linux/bio.h>
16674
16675 int
16676 main (void)
16677 {
16678
16679                 struct bio bio;
16680                 (void)bio_empty_barrier(&bio);
16681
16682   ;
16683   return 0;
16684 }
16685
16686 _ACEOF
16687
16688
16689         rm -Rf build && mkdir -p build
16690         echo "obj-m := conftest.o" >build/Makefile
16691         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698   (eval $ac_try) 2>&5
16699   ac_status=$?
16700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); }; }; then
16702
16703                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16704 $as_echo "yes" >&6; }
16705
16706 cat >>confdefs.h <<\_ACEOF
16707 #define HAVE_BIO_EMPTY_BARRIER 1
16708 _ACEOF
16709
16710
16711 else
16712   $as_echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16714
16715                 { $as_echo "$as_me:$LINENO: result: no" >&5
16716 $as_echo "no" >&6; }
16717
16718
16719
16720 fi
16721
16722         rm -Rf build
16723
16724
16725
16726
16727         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
16728 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
16729
16730
16731 cat confdefs.h - <<_ACEOF >conftest.c
16732 /* confdefs.h.  */
16733 _ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h.  */
16737
16738
16739                 #include <linux/bio.h>
16740
16741 int
16742 main (void)
16743 {
16744
16745                 int flags;
16746                 flags = (1 << BIO_RW_FAILFAST);
16747
16748   ;
16749   return 0;
16750 }
16751
16752 _ACEOF
16753
16754
16755         rm -Rf build && mkdir -p build
16756         echo "obj-m := conftest.o" >build/Makefile
16757         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759   (eval $ac_try) 2>&5
16760   ac_status=$?
16761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764   (eval $ac_try) 2>&5
16765   ac_status=$?
16766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); }; }; then
16768
16769                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16770 $as_echo "yes" >&6; }
16771
16772 cat >>confdefs.h <<\_ACEOF
16773 #define HAVE_BIO_RW_FAILFAST 1
16774 _ACEOF
16775
16776
16777 else
16778   $as_echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781                 { $as_echo "$as_me:$LINENO: result: no" >&5
16782 $as_echo "no" >&6; }
16783
16784
16785
16786 fi
16787
16788         rm -Rf build
16789
16790
16791
16792
16793         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16794 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16795
16796
16797 cat confdefs.h - <<_ACEOF >conftest.c
16798 /* confdefs.h.  */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h.  */
16803
16804
16805                 #include <linux/bio.h>
16806
16807 int
16808 main (void)
16809 {
16810
16811                 int flags;
16812                 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16813                          (1 << BIO_RW_FAILFAST_TRANSPORT) |
16814                          (1 << BIO_RW_FAILFAST_DRIVER));
16815
16816   ;
16817   return 0;
16818 }
16819
16820 _ACEOF
16821
16822
16823         rm -Rf build && mkdir -p build
16824         echo "obj-m := conftest.o" >build/Makefile
16825         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827   (eval $ac_try) 2>&5
16828   ac_status=$?
16829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832   (eval $ac_try) 2>&5
16833   ac_status=$?
16834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }; }; then
16836
16837                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16838 $as_echo "yes" >&6; }
16839
16840 cat >>confdefs.h <<\_ACEOF
16841 #define HAVE_BIO_RW_FAILFAST_DTD 1
16842 _ACEOF
16843
16844
16845 else
16846   $as_echo "$as_me: failed program was:" >&5
16847 sed 's/^/| /' conftest.$ac_ext >&5
16848
16849                 { $as_echo "$as_me:$LINENO: result: no" >&5
16850 $as_echo "no" >&6; }
16851
16852
16853
16854 fi
16855
16856         rm -Rf build
16857
16858
16859
16860
16861         { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16862 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16863
16864
16865 cat confdefs.h - <<_ACEOF >conftest.c
16866 /* confdefs.h.  */
16867 _ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h.  */
16871
16872
16873                 #include <linux/bio.h>
16874
16875 int
16876 main (void)
16877 {
16878
16879                 int flags;
16880                 flags = REQ_FAILFAST_MASK;
16881
16882   ;
16883   return 0;
16884 }
16885
16886 _ACEOF
16887
16888
16889         rm -Rf build && mkdir -p build
16890         echo "obj-m := conftest.o" >build/Makefile
16891         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898   (eval $ac_try) 2>&5
16899   ac_status=$?
16900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902
16903                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16904 $as_echo "yes" >&6; }
16905
16906 cat >>confdefs.h <<\_ACEOF
16907 #define HAVE_BIO_REQ_FAILFAST_MASK 1
16908 _ACEOF
16909
16910
16911 else
16912   $as_echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915                 { $as_echo "$as_me:$LINENO: result: no" >&5
16916 $as_echo "no" >&6; }
16917
16918
16919
16920 fi
16921
16922         rm -Rf build
16923
16924
16925
16926
16927         { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
16928 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
16929         tmp_flags="$EXTRA_KCFLAGS"
16930         EXTRA_KCFLAGS="-Werror"
16931
16932
16933 cat confdefs.h - <<_ACEOF >conftest.c
16934 /* confdefs.h.  */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h.  */
16939
16940
16941                 #include <linux/bio.h>
16942
16943 int
16944 main (void)
16945 {
16946
16947                 void (*wanted_end_io)(struct bio *, int) = NULL;
16948                 bio_end_io_t *local_end_io;
16949
16950                 local_end_io = wanted_end_io;
16951
16952   ;
16953   return 0;
16954 }
16955
16956 _ACEOF
16957
16958
16959         rm -Rf build && mkdir -p build
16960         echo "obj-m := conftest.o" >build/Makefile
16961         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968   (eval $ac_try) 2>&5
16969   ac_status=$?
16970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }; }; then
16972
16973                 { $as_echo "$as_me:$LINENO: result: yes" >&5
16974 $as_echo "yes" >&6; }
16975
16976 cat >>confdefs.h <<\_ACEOF
16977 #define HAVE_2ARGS_BIO_END_IO_T 1
16978 _ACEOF
16979
16980
16981 else
16982   $as_echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16984
16985                 { $as_echo "$as_me:$LINENO: result: no" >&5
16986 $as_echo "no" >&6; }
16987
16988
16989
16990 fi
16991
16992         rm -Rf build
16993
16994
16995         EXTRA_KCFLAGS="$tmp_flags"
16996
16997
16998         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
16999 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
17000
17001
17002 cat confdefs.h - <<_ACEOF >conftest.c
17003 /* confdefs.h.  */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h.  */
17008
17009
17010                 #include <linux/bio.h>
17011
17012 int
17013 main (void)
17014 {
17015
17016                 int flags;
17017                 flags = BIO_RW_SYNC;
17018
17019   ;
17020   return 0;
17021 }
17022
17023 _ACEOF
17024
17025
17026         rm -Rf build && mkdir -p build
17027         echo "obj-m := conftest.o" >build/Makefile
17028         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030   (eval $ac_try) 2>&5
17031   ac_status=$?
17032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035   (eval $ac_try) 2>&5
17036   ac_status=$?
17037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; }; then
17039
17040                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17041 $as_echo "yes" >&6; }
17042
17043 cat >>confdefs.h <<\_ACEOF
17044 #define HAVE_BIO_RW_SYNC 1
17045 _ACEOF
17046
17047
17048 else
17049   $as_echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17051
17052                 { $as_echo "$as_me:$LINENO: result: no" >&5
17053 $as_echo "no" >&6; }
17054
17055
17056
17057 fi
17058
17059         rm -Rf build
17060
17061
17062
17063
17064         { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
17065 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
17066
17067
17068 cat confdefs.h - <<_ACEOF >conftest.c
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074
17075
17076                 #include <linux/bio.h>
17077
17078 int
17079 main (void)
17080 {
17081
17082                 int flags;
17083                 flags = BIO_RW_SYNCIO;
17084
17085   ;
17086   return 0;
17087 }
17088
17089 _ACEOF
17090
17091
17092         rm -Rf build && mkdir -p build
17093         echo "obj-m := conftest.o" >build/Makefile
17094         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101   (eval $ac_try) 2>&5
17102   ac_status=$?
17103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); }; }; then
17105
17106                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17107 $as_echo "yes" >&6; }
17108
17109 cat >>confdefs.h <<\_ACEOF
17110 #define HAVE_BIO_RW_SYNCIO 1
17111 _ACEOF
17112
17113
17114 else
17115   $as_echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118                 { $as_echo "$as_me:$LINENO: result: no" >&5
17119 $as_echo "no" >&6; }
17120
17121
17122
17123 fi
17124
17125         rm -Rf build
17126
17127
17128
17129
17130         { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
17131 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
17132
17133
17134 cat confdefs.h - <<_ACEOF >conftest.c
17135 /* confdefs.h.  */
17136 _ACEOF
17137 cat confdefs.h >>conftest.$ac_ext
17138 cat >>conftest.$ac_ext <<_ACEOF
17139 /* end confdefs.h.  */
17140
17141
17142                 #include <linux/bio.h>
17143
17144 int
17145 main (void)
17146 {
17147
17148                 int flags;
17149                 flags = REQ_SYNC;
17150
17151   ;
17152   return 0;
17153 }
17154
17155 _ACEOF
17156
17157
17158         rm -Rf build && mkdir -p build
17159         echo "obj-m := conftest.o" >build/Makefile
17160         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162   (eval $ac_try) 2>&5
17163   ac_status=$?
17164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167   (eval $ac_try) 2>&5
17168   ac_status=$?
17169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; }; then
17171
17172                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17173 $as_echo "yes" >&6; }
17174
17175 cat >>confdefs.h <<\_ACEOF
17176 #define HAVE_REQ_SYNC 1
17177 _ACEOF
17178
17179
17180 else
17181   $as_echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17183
17184                 { $as_echo "$as_me:$LINENO: result: no" >&5
17185 $as_echo "no" >&6; }
17186
17187
17188
17189 fi
17190
17191         rm -Rf build
17192
17193
17194
17195
17196         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
17197 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
17198
17199
17200 cat confdefs.h - <<_ACEOF >conftest.c
17201 /* confdefs.h.  */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h.  */
17206
17207
17208                 #include <linux/blkdev.h>
17209
17210 int
17211 main (void)
17212 {
17213
17214                 struct request *req = NULL;
17215                 (void) blk_end_request(req, 0, 0);
17216
17217   ;
17218   return 0;
17219 }
17220
17221 _ACEOF
17222
17223
17224         rm -Rf build && mkdir -p build
17225         echo "obj-m := conftest.o" >build/Makefile
17226         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228   (eval $ac_try) 2>&5
17229   ac_status=$?
17230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233   (eval $ac_try) 2>&5
17234   ac_status=$?
17235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); }; }; then
17237
17238                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17239 $as_echo "yes" >&6; }
17240
17241 cat >>confdefs.h <<\_ACEOF
17242 #define HAVE_BLK_END_REQUEST 1
17243 _ACEOF
17244
17245
17246 else
17247   $as_echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250                 { $as_echo "$as_me:$LINENO: result: no" >&5
17251 $as_echo "no" >&6; }
17252
17253
17254
17255 fi
17256
17257         rm -Rf build
17258
17259
17260
17261         { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
17262 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
17263
17264
17265 cat confdefs.h - <<_ACEOF >conftest.c
17266 /* confdefs.h.  */
17267 _ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h.  */
17271
17272
17273                 #include <linux/module.h>
17274                 #include <linux/blkdev.h>
17275
17276                 MODULE_LICENSE("CDDL");
17277
17278 int
17279 main (void)
17280 {
17281
17282                 struct request *req = NULL;
17283                 (void) blk_end_request(req, 0, 0);
17284
17285   ;
17286   return 0;
17287 }
17288
17289 _ACEOF
17290
17291
17292         rm -Rf build && mkdir -p build
17293         echo "obj-m := conftest.o" >build/Makefile
17294         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296   (eval $ac_try) 2>&5
17297   ac_status=$?
17298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301   (eval $ac_try) 2>&5
17302   ac_status=$?
17303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304   (exit $ac_status); }; }; then
17305
17306                 { $as_echo "$as_me:$LINENO: result: no" >&5
17307 $as_echo "no" >&6; }
17308
17309 else
17310   $as_echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17314 $as_echo "yes" >&6; }
17315
17316 cat >>confdefs.h <<\_ACEOF
17317 #define HAVE_BLK_END_REQUEST_GPL_ONLY 1
17318 _ACEOF
17319
17320
17321
17322
17323 fi
17324
17325         rm -Rf build
17326
17327
17328
17329
17330         { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
17331 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
17332
17333
17334 cat confdefs.h - <<_ACEOF >conftest.c
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340
17341
17342                 #include <linux/blkdev.h>
17343
17344 int
17345 main (void)
17346 {
17347
17348                 struct request_queue *q = NULL;
17349                 (void) blk_fetch_request(q);
17350
17351   ;
17352   return 0;
17353 }
17354
17355 _ACEOF
17356
17357
17358         rm -Rf build && mkdir -p build
17359         echo "obj-m := conftest.o" >build/Makefile
17360         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362   (eval $ac_try) 2>&5
17363   ac_status=$?
17364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367   (eval $ac_try) 2>&5
17368   ac_status=$?
17369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); }; }; then
17371
17372                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17373 $as_echo "yes" >&6; }
17374
17375 cat >>confdefs.h <<\_ACEOF
17376 #define HAVE_BLK_FETCH_REQUEST 1
17377 _ACEOF
17378
17379
17380 else
17381   $as_echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384                 { $as_echo "$as_me:$LINENO: result: no" >&5
17385 $as_echo "no" >&6; }
17386
17387
17388
17389 fi
17390
17391         rm -Rf build
17392
17393
17394
17395
17396         { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
17397 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
17398
17399
17400 cat confdefs.h - <<_ACEOF >conftest.c
17401 /* confdefs.h.  */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h.  */
17406
17407
17408                 #include <linux/blkdev.h>
17409
17410 int
17411 main (void)
17412 {
17413
17414                 struct request_queue *q = NULL;
17415                 struct request *req = NULL;
17416                 blk_requeue_request(q, req);
17417
17418   ;
17419   return 0;
17420 }
17421
17422 _ACEOF
17423
17424
17425         rm -Rf build && mkdir -p build
17426         echo "obj-m := conftest.o" >build/Makefile
17427         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429   (eval $ac_try) 2>&5
17430   ac_status=$?
17431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434   (eval $ac_try) 2>&5
17435   ac_status=$?
17436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; }; then
17438
17439                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17440 $as_echo "yes" >&6; }
17441
17442 cat >>confdefs.h <<\_ACEOF
17443 #define HAVE_BLK_REQUEUE_REQUEST 1
17444 _ACEOF
17445
17446
17447 else
17448   $as_echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451                 { $as_echo "$as_me:$LINENO: result: no" >&5
17452 $as_echo "no" >&6; }
17453
17454
17455
17456 fi
17457
17458         rm -Rf build
17459
17460
17461
17462
17463         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
17464 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
17465
17466
17467 cat confdefs.h - <<_ACEOF >conftest.c
17468 /* confdefs.h.  */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h.  */
17473
17474
17475                 #include <linux/blkdev.h>
17476
17477 int
17478 main (void)
17479 {
17480
17481                 struct request *req = NULL;
17482                 (void) blk_rq_bytes(req);
17483
17484   ;
17485   return 0;
17486 }
17487
17488 _ACEOF
17489
17490
17491         rm -Rf build && mkdir -p build
17492         echo "obj-m := conftest.o" >build/Makefile
17493         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495   (eval $ac_try) 2>&5
17496   ac_status=$?
17497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500   (eval $ac_try) 2>&5
17501   ac_status=$?
17502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; }; then
17504
17505                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17506 $as_echo "yes" >&6; }
17507
17508 cat >>confdefs.h <<\_ACEOF
17509 #define HAVE_BLK_RQ_BYTES 1
17510 _ACEOF
17511
17512
17513 else
17514   $as_echo "$as_me: failed program was:" >&5
17515 sed 's/^/| /' conftest.$ac_ext >&5
17516
17517                 { $as_echo "$as_me:$LINENO: result: no" >&5
17518 $as_echo "no" >&6; }
17519
17520
17521
17522 fi
17523
17524         rm -Rf build
17525
17526
17527
17528         { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
17529 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
17530
17531
17532 cat confdefs.h - <<_ACEOF >conftest.c
17533 /* confdefs.h.  */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h.  */
17538
17539
17540                 #include <linux/module.h>
17541                 #include <linux/blkdev.h>
17542
17543                 MODULE_LICENSE("CDDL");
17544
17545 int
17546 main (void)
17547 {
17548
17549                 struct request *req = NULL;
17550                 (void) blk_rq_bytes(req);
17551
17552   ;
17553   return 0;
17554 }
17555
17556 _ACEOF
17557
17558
17559         rm -Rf build && mkdir -p build
17560         echo "obj-m := conftest.o" >build/Makefile
17561         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563   (eval $ac_try) 2>&5
17564   ac_status=$?
17565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568   (eval $ac_try) 2>&5
17569   ac_status=$?
17570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); }; }; then
17572
17573                 { $as_echo "$as_me:$LINENO: result: no" >&5
17574 $as_echo "no" >&6; }
17575
17576 else
17577   $as_echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17579
17580                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17581 $as_echo "yes" >&6; }
17582
17583 cat >>confdefs.h <<\_ACEOF
17584 #define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
17585 _ACEOF
17586
17587
17588
17589
17590 fi
17591
17592         rm -Rf build
17593
17594
17595
17596
17597         { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
17598 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
17599
17600
17601 cat confdefs.h - <<_ACEOF >conftest.c
17602 /* confdefs.h.  */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h.  */
17607
17608
17609                 #include <linux/blkdev.h>
17610
17611 int
17612 main (void)
17613 {
17614
17615                 struct request *req = NULL;
17616                 (void) blk_rq_pos(req);
17617
17618   ;
17619   return 0;
17620 }
17621
17622 _ACEOF
17623
17624
17625         rm -Rf build && mkdir -p build
17626         echo "obj-m := conftest.o" >build/Makefile
17627         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634   (eval $ac_try) 2>&5
17635   ac_status=$?
17636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; }; then
17638
17639                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17640 $as_echo "yes" >&6; }
17641
17642 cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_BLK_RQ_POS 1
17644 _ACEOF
17645
17646
17647 else
17648   $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651                 { $as_echo "$as_me:$LINENO: result: no" >&5
17652 $as_echo "no" >&6; }
17653
17654
17655
17656 fi
17657
17658         rm -Rf build
17659
17660
17661
17662
17663         { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
17664 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
17665
17666
17667 cat confdefs.h - <<_ACEOF >conftest.c
17668 /* confdefs.h.  */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h.  */
17673
17674
17675                 #include <linux/blkdev.h>
17676
17677 int
17678 main (void)
17679 {
17680
17681                 struct request *req = NULL;
17682                 (void) blk_rq_sectors(req);
17683
17684   ;
17685   return 0;
17686 }
17687
17688 _ACEOF
17689
17690
17691         rm -Rf build && mkdir -p build
17692         echo "obj-m := conftest.o" >build/Makefile
17693         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695   (eval $ac_try) 2>&5
17696   ac_status=$?
17697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700   (eval $ac_try) 2>&5
17701   ac_status=$?
17702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); }; }; then
17704
17705                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17706 $as_echo "yes" >&6; }
17707
17708 cat >>confdefs.h <<\_ACEOF
17709 #define HAVE_BLK_RQ_SECTORS 1
17710 _ACEOF
17711
17712
17713 else
17714   $as_echo "$as_me: failed program was:" >&5
17715 sed 's/^/| /' conftest.$ac_ext >&5
17716
17717                 { $as_echo "$as_me:$LINENO: result: no" >&5
17718 $as_echo "no" >&6; }
17719
17720
17721
17722 fi
17723
17724         rm -Rf build
17725
17726
17727
17728
17729         { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
17730 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17731
17732
17733 cat confdefs.h - <<_ACEOF >conftest.c
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739
17740
17741                 #include <linux/blkdev.h>
17742
17743 int
17744 main (void)
17745 {
17746
17747                 struct gendisk *disk = NULL;
17748                 (void) get_disk_ro(disk);
17749
17750   ;
17751   return 0;
17752 }
17753
17754 _ACEOF
17755
17756
17757         rm -Rf build && mkdir -p build
17758         echo "obj-m := conftest.o" >build/Makefile
17759         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761   (eval $ac_try) 2>&5
17762   ac_status=$?
17763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; }; then
17770
17771                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17772 $as_echo "yes" >&6; }
17773
17774 cat >>confdefs.h <<\_ACEOF
17775 #define HAVE_GET_DISK_RO 1
17776 _ACEOF
17777
17778
17779 else
17780   $as_echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17782
17783                 { $as_echo "$as_me:$LINENO: result: no" >&5
17784 $as_echo "no" >&6; }
17785
17786
17787
17788 fi
17789
17790         rm -Rf build
17791
17792
17793
17794
17795         { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
17796 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
17797
17798
17799 cat confdefs.h - <<_ACEOF >conftest.c
17800 /* confdefs.h.  */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h.  */
17805
17806
17807                 #include <linux/blkdev.h>
17808
17809 int
17810 main (void)
17811 {
17812
17813                 struct request *req = NULL;
17814                 (void) rq_is_sync(req);
17815
17816   ;
17817   return 0;
17818 }
17819
17820 _ACEOF
17821
17822
17823         rm -Rf build && mkdir -p build
17824         echo "obj-m := conftest.o" >build/Makefile
17825         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827   (eval $ac_try) 2>&5
17828   ac_status=$?
17829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836
17837                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17838 $as_echo "yes" >&6; }
17839
17840 cat >>confdefs.h <<\_ACEOF
17841 #define HAVE_RQ_IS_SYNC 1
17842 _ACEOF
17843
17844
17845 else
17846   $as_echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849                 { $as_echo "$as_me:$LINENO: result: no" >&5
17850 $as_echo "no" >&6; }
17851
17852
17853
17854 fi
17855
17856         rm -Rf build
17857
17858
17859
17860
17861         { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
17862 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
17863
17864
17865 cat confdefs.h - <<_ACEOF >conftest.c
17866 /* confdefs.h.  */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h.  */
17871
17872
17873                 #include <linux/blkdev.h>
17874
17875 int
17876 main (void)
17877 {
17878
17879                 struct bio_vec *bv;
17880                 struct req_iterator iter;
17881                 struct request *req = NULL;
17882                 rq_for_each_segment(bv, req, iter) { }
17883
17884   ;
17885   return 0;
17886 }
17887
17888 _ACEOF
17889
17890
17891         rm -Rf build && mkdir -p build
17892         echo "obj-m := conftest.o" >build/Makefile
17893         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900   (eval $ac_try) 2>&5
17901   ac_status=$?
17902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); }; }; then
17904
17905                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17906 $as_echo "yes" >&6; }
17907
17908 cat >>confdefs.h <<\_ACEOF
17909 #define HAVE_RQ_FOR_EACH_SEGMENT 1
17910 _ACEOF
17911
17912
17913 else
17914   $as_echo "$as_me: failed program was:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17916
17917                 { $as_echo "$as_me:$LINENO: result: no" >&5
17918 $as_echo "no" >&6; }
17919
17920
17921
17922 fi
17923
17924         rm -Rf build
17925
17926
17927
17928         { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
17929 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
17930
17931
17932 cat confdefs.h - <<_ACEOF >conftest.c
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938
17939
17940                 #include <linux/fs.h>
17941                 #include <linux/xattr.h>
17942
17943                 const struct xattr_handler xattr_test_handler = {
17944                         .prefix = "test",
17945                         .get    = NULL,
17946                         .set    = NULL,
17947                 };
17948
17949                 const struct xattr_handler *xattr_handlers[] = {
17950                         &xattr_test_handler,
17951                 };
17952
17953 int
17954 main (void)
17955 {
17956
17957                 struct super_block sb;
17958
17959                 sb.s_xattr = xattr_handlers;
17960
17961   ;
17962   return 0;
17963 }
17964
17965 _ACEOF
17966
17967
17968         rm -Rf build && mkdir -p build
17969         echo "obj-m := conftest.o" >build/Makefile
17970         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972   (eval $ac_try) 2>&5
17973   ac_status=$?
17974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977   (eval $ac_try) 2>&5
17978   ac_status=$?
17979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); }; }; then
17981
17982                 { $as_echo "$as_me:$LINENO: result: yes" >&5
17983 $as_echo "yes" >&6; }
17984
17985 cat >>confdefs.h <<\_ACEOF
17986 #define HAVE_CONST_XATTR_HANDLER 1
17987 _ACEOF
17988
17989
17990 else
17991   $as_echo "$as_me: failed program was:" >&5
17992 sed 's/^/| /' conftest.$ac_ext >&5
17993
17994                 { $as_echo "$as_me:$LINENO: result: no" >&5
17995 $as_echo "no" >&6; }
17996
17997
17998
17999 fi
18000
18001         rm -Rf build
18002
18003
18004
18005
18006         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
18007 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
18008
18009
18010 cat confdefs.h - <<_ACEOF >conftest.c
18011 /* confdefs.h.  */
18012 _ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h.  */
18016
18017
18018                 #include <linux/xattr.h>
18019
18020 int
18021 main (void)
18022 {
18023
18024                 int (*get)(struct dentry *dentry, const char *name,
18025                     void *buffer, size_t size, int handler_flags) = NULL;
18026                 struct xattr_handler xops;
18027
18028                 xops.get = get;
18029
18030   ;
18031   return 0;
18032 }
18033
18034 _ACEOF
18035
18036
18037         rm -Rf build && mkdir -p build
18038         echo "obj-m := conftest.o" >build/Makefile
18039         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041   (eval $ac_try) 2>&5
18042   ac_status=$?
18043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046   (eval $ac_try) 2>&5
18047   ac_status=$?
18048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; }; then
18050
18051                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18052 $as_echo "yes" >&6; }
18053
18054 cat >>confdefs.h <<\_ACEOF
18055 #define HAVE_DENTRY_XATTR_GET 1
18056 _ACEOF
18057
18058
18059 else
18060   $as_echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18062
18063                 { $as_echo "$as_me:$LINENO: result: no" >&5
18064 $as_echo "no" >&6; }
18065
18066
18067
18068 fi
18069
18070         rm -Rf build
18071
18072
18073
18074
18075         { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
18076 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18077
18078
18079 cat confdefs.h - <<_ACEOF >conftest.c
18080 /* confdefs.h.  */
18081 _ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h.  */
18085
18086
18087                 #include <linux/xattr.h>
18088
18089 int
18090 main (void)
18091 {
18092
18093                 int (*set)(struct dentry *dentry, const char *name,
18094                     const void *buffer, size_t size, int flags,
18095                     int handler_flags) = NULL;
18096                 struct xattr_handler xops;
18097
18098                 xops.set = set;
18099
18100   ;
18101   return 0;
18102 }
18103
18104 _ACEOF
18105
18106
18107         rm -Rf build && mkdir -p build
18108         echo "obj-m := conftest.o" >build/Makefile
18109         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111   (eval $ac_try) 2>&5
18112   ac_status=$?
18113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116   (eval $ac_try) 2>&5
18117   ac_status=$?
18118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; }; then
18120
18121                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18122 $as_echo "yes" >&6; }
18123
18124 cat >>confdefs.h <<\_ACEOF
18125 #define HAVE_DENTRY_XATTR_SET 1
18126 _ACEOF
18127
18128
18129 else
18130   $as_echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133                 { $as_echo "$as_me:$LINENO: result: no" >&5
18134 $as_echo "no" >&6; }
18135
18136
18137
18138 fi
18139
18140         rm -Rf build
18141
18142
18143
18144
18145         { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
18146 $as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
18147
18148
18149 cat confdefs.h - <<_ACEOF >conftest.c
18150 /* confdefs.h.  */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h.  */
18155
18156
18157                 #include <linux/fs.h>
18158
18159 int
18160 main (void)
18161 {
18162
18163                 int (*fsync) (struct file *, int datasync) = NULL;
18164                 struct file_operations fops;
18165
18166                 fops.fsync = fsync;
18167
18168   ;
18169   return 0;
18170 }
18171
18172 _ACEOF
18173
18174
18175         rm -Rf build && mkdir -p build
18176         echo "obj-m := conftest.o" >build/Makefile
18177         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179   (eval $ac_try) 2>&5
18180   ac_status=$?
18181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18184   (eval $ac_try) 2>&5
18185   ac_status=$?
18186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); }; }; then
18188
18189                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18190 $as_echo "yes" >&6; }
18191
18192 cat >>confdefs.h <<\_ACEOF
18193 #define HAVE_2ARGS_FSYNC 1
18194 _ACEOF
18195
18196
18197 else
18198   $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201                 { $as_echo "$as_me:$LINENO: result: no" >&5
18202 $as_echo "no" >&6; }
18203
18204
18205
18206 fi
18207
18208         rm -Rf build
18209
18210
18211
18212
18213         { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
18214 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18215
18216
18217 cat confdefs.h - <<_ACEOF >conftest.c
18218 /* confdefs.h.  */
18219 _ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h.  */
18223
18224
18225                 #include <linux/fs.h>
18226
18227 int
18228 main (void)
18229 {
18230
18231                 void (*evict_inode) (struct inode *) = NULL;
18232                 struct super_operations sops;
18233
18234                 sops.evict_inode = evict_inode;
18235
18236   ;
18237   return 0;
18238 }
18239
18240 _ACEOF
18241
18242
18243         rm -Rf build && mkdir -p build
18244         echo "obj-m := conftest.o" >build/Makefile
18245         if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247   (eval $ac_try) 2>&5
18248   ac_status=$?
18249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252   (eval $ac_try) 2>&5
18253   ac_status=$?
18254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255   (exit $ac_status); }; }; then
18256
18257                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18258 $as_echo "yes" >&6; }
18259
18260 cat >>confdefs.h <<\_ACEOF
18261 #define HAVE_EVICT_INODE 1
18262 _ACEOF
18263
18264
18265 else
18266   $as_echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269                 { $as_echo "$as_me:$LINENO: result: no" >&5
18270 $as_echo "no" >&6; }
18271
18272
18273
18274 fi
18275
18276         rm -Rf build
18277
18278
18279
18280
18281         if test "$LINUX_OBJ" != "$LINUX"; then
18282                 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
18283         fi
18284
18285
18286
18287                         KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
18288         KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
18289
18290
18291
18292
18293
18294         { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
18295 $as_echo_n "checking for target asm dir... " >&6; }
18296         TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
18297
18298         case $TARGET_ARCH in
18299         i386|x86_64)
18300                 TARGET_ASM_DIR=asm-${TARGET_ARCH}
18301                 ;;
18302         *)
18303                 TARGET_ASM_DIR=asm-generic
18304                 ;;
18305         esac
18306
18307
18308         { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
18309 $as_echo "$TARGET_ASM_DIR" >&6; }
18310
18311
18312         { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
18313 $as_echo_n "checking for ioctl()... " >&6; }
18314         cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h.  */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h.  */
18320 #include <unistd.h>
18321
18322 _ACEOF
18323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18324   $EGREP "ioctl" >/dev/null 2>&1; then
18325   is_unistd=yes
18326 else
18327   is_unistd=no
18328 fi
18329 rm -f conftest*
18330
18331         cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337 #include <sys/ioctl.h>
18338
18339 _ACEOF
18340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18341   $EGREP "ioctl" >/dev/null 2>&1; then
18342   is_sys_ioctl=yes
18343 else
18344   is_sys_ioctl=no
18345 fi
18346 rm -f conftest*
18347
18348         cat >conftest.$ac_ext <<_ACEOF
18349 /* confdefs.h.  */
18350 _ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h.  */
18354 #include <stropts.h>
18355
18356 _ACEOF
18357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18358   $EGREP "ioctl" >/dev/null 2>&1; then
18359   is_stropts=yes
18360 else
18361   is_stropts=no
18362 fi
18363 rm -f conftest*
18364
18365
18366         if test $is_unistd = yes; then
18367                 result=unistd.h
18368
18369 cat >>confdefs.h <<\_ACEOF
18370 #define HAVE_IOCTL_IN_UNISTD_H 1
18371 _ACEOF
18372
18373         else
18374
18375                 if test $is_sys_ioctl = yes; then
18376                         result=sys/ioctl.h
18377
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18380 _ACEOF
18381
18382                 elif test $is_stropts = yes; then
18383
18384 cat >>confdefs.h <<\_ACEOF
18385 #define HAVE_IOCTL_IN_STROPTS_H 1
18386 _ACEOF
18387
18388                 else
18389                         result=no
18390                 fi
18391         fi
18392
18393         if test $result = no; then
18394                 { $as_echo "$as_me:$LINENO: result: no" >&5
18395 $as_echo "no" >&6; }
18396                 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18397 $as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18398    { (exit 1); exit 1; }; }
18399         else
18400                 { $as_echo "$as_me:$LINENO: result: yes" >&5
18401 $as_echo "yes" >&6; }
18402         fi
18403
18404
18405         ZLIB=
18406
18407         if test "${ac_cv_header_zlib_h+set}" = set; then
18408   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18409 $as_echo_n "checking for zlib.h... " >&6; }
18410 if test "${ac_cv_header_zlib_h+set}" = set; then
18411   $as_echo_n "(cached) " >&6
18412 fi
18413 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18414 $as_echo "$ac_cv_header_zlib_h" >&6; }
18415 else
18416   # Is the header compilable?
18417 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18418 $as_echo_n "checking zlib.h usability... " >&6; }
18419 cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h.  */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h.  */
18425 $ac_includes_default
18426 #include <zlib.h>
18427 _ACEOF
18428 rm -f conftest.$ac_objext
18429 if { (ac_try="$ac_compile"
18430 case "(($ac_try" in
18431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432   *) ac_try_echo=$ac_try;;
18433 esac
18434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18435 $as_echo "$ac_try_echo") >&5
18436   (eval "$ac_compile") 2>conftest.er1
18437   ac_status=$?
18438   grep -v '^ *+' conftest.er1 >conftest.err
18439   rm -f conftest.er1
18440   cat conftest.err >&5
18441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); } && {
18443          test -z "$ac_c_werror_flag" ||
18444          test ! -s conftest.err
18445        } && test -s conftest.$ac_objext; then
18446   ac_header_compiler=yes
18447 else
18448   $as_echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.$ac_ext >&5
18450
18451         ac_header_compiler=no
18452 fi
18453
18454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18455 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18456 $as_echo "$ac_header_compiler" >&6; }
18457
18458 # Is the header present?
18459 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18460 $as_echo_n "checking zlib.h presence... " >&6; }
18461 cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h.  */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h.  */
18467 #include <zlib.h>
18468 _ACEOF
18469 if { (ac_try="$ac_cpp conftest.$ac_ext"
18470 case "(($ac_try" in
18471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472   *) ac_try_echo=$ac_try;;
18473 esac
18474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18475 $as_echo "$ac_try_echo") >&5
18476   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } >/dev/null && {
18483          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18484          test ! -s conftest.err
18485        }; then
18486   ac_header_preproc=yes
18487 else
18488   $as_echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491   ac_header_preproc=no
18492 fi
18493
18494 rm -f conftest.err conftest.$ac_ext
18495 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18496 $as_echo "$ac_header_preproc" >&6; }
18497
18498 # So?  What about this header?
18499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18500   yes:no: )
18501     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18502 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18503     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
18504 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
18505     ac_header_preproc=yes
18506     ;;
18507   no:yes:* )
18508     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18509 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18510     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
18511 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
18512     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18513 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18514     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
18515 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18516     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18517 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18518     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18519 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18520
18521     ;;
18522 esac
18523 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18524 $as_echo_n "checking for zlib.h... " >&6; }
18525 if test "${ac_cv_header_zlib_h+set}" = set; then
18526   $as_echo_n "(cached) " >&6
18527 else
18528   ac_cv_header_zlib_h=$ac_header_preproc
18529 fi
18530 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18531 $as_echo "$ac_cv_header_zlib_h" >&6; }
18532
18533 fi
18534 if test "x$ac_cv_header_zlib_h" = x""yes; then
18535   :
18536 else
18537   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18539 { { $as_echo "$as_me:$LINENO: error:
18540         *** zlib.h missing, zlib-devel package required
18541 See \`config.log' for more details." >&5
18542 $as_echo "$as_me: error:
18543         *** zlib.h missing, zlib-devel package required
18544 See \`config.log' for more details." >&2;}
18545    { (exit 1); exit 1; }; }; }
18546 fi
18547
18548
18549
18550
18551 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
18552 $as_echo_n "checking for compress2 in -lz... " >&6; }
18553 if test "${ac_cv_lib_z_compress2+set}" = set; then
18554   $as_echo_n "(cached) " >&6
18555 else
18556   ac_check_lib_save_LIBS=$LIBS
18557 LIBS="-lz  $LIBS"
18558 cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564
18565 /* Override any GCC internal prototype to avoid an error.
18566    Use char because int might match the return type of a GCC
18567    builtin and then its argument prototype would still apply.  */
18568 #ifdef __cplusplus
18569 extern "C"
18570 #endif
18571 char compress2 ();
18572 int
18573 main ()
18574 {
18575 return compress2 ();
18576   ;
18577   return 0;
18578 }
18579 _ACEOF
18580 rm -f conftest.$ac_objext conftest$ac_exeext
18581 if { (ac_try="$ac_link"
18582 case "(($ac_try" in
18583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584   *) ac_try_echo=$ac_try;;
18585 esac
18586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18587 $as_echo "$ac_try_echo") >&5
18588   (eval "$ac_link") 2>conftest.er1
18589   ac_status=$?
18590   grep -v '^ *+' conftest.er1 >conftest.err
18591   rm -f conftest.er1
18592   cat conftest.err >&5
18593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); } && {
18595          test -z "$ac_c_werror_flag" ||
18596          test ! -s conftest.err
18597        } && test -s conftest$ac_exeext && {
18598          test "$cross_compiling" = yes ||
18599          $as_test_x conftest$ac_exeext
18600        }; then
18601   ac_cv_lib_z_compress2=yes
18602 else
18603   $as_echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606         ac_cv_lib_z_compress2=no
18607 fi
18608
18609 rm -rf conftest.dSYM
18610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18611       conftest$ac_exeext conftest.$ac_ext
18612 LIBS=$ac_check_lib_save_LIBS
18613 fi
18614 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
18615 $as_echo "$ac_cv_lib_z_compress2" >&6; }
18616 if test "x$ac_cv_lib_z_compress2" = x""yes; then
18617   cat >>confdefs.h <<_ACEOF
18618 #define HAVE_LIBZ 1
18619 _ACEOF
18620
18621   LIBS="-lz $LIBS"
18622
18623 else
18624   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18626 { { $as_echo "$as_me:$LINENO: error:
18627         *** compress2() missing, zlib-devel package required
18628 See \`config.log' for more details." >&5
18629 $as_echo "$as_me: error:
18630         *** compress2() missing, zlib-devel package required
18631 See \`config.log' for more details." >&2;}
18632    { (exit 1); exit 1; }; }; }
18633 fi
18634
18635
18636
18637 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
18638 $as_echo_n "checking for uncompress in -lz... " >&6; }
18639 if test "${ac_cv_lib_z_uncompress+set}" = set; then
18640   $as_echo_n "(cached) " >&6
18641 else
18642   ac_check_lib_save_LIBS=$LIBS
18643 LIBS="-lz  $LIBS"
18644 cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h.  */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h.  */
18650
18651 /* Override any GCC internal prototype to avoid an error.
18652    Use char because int might match the return type of a GCC
18653    builtin and then its argument prototype would still apply.  */
18654 #ifdef __cplusplus
18655 extern "C"
18656 #endif
18657 char uncompress ();
18658 int
18659 main ()
18660 {
18661 return uncompress ();
18662   ;
18663   return 0;
18664 }
18665 _ACEOF
18666 rm -f conftest.$ac_objext conftest$ac_exeext
18667 if { (ac_try="$ac_link"
18668 case "(($ac_try" in
18669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670   *) ac_try_echo=$ac_try;;
18671 esac
18672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18673 $as_echo "$ac_try_echo") >&5
18674   (eval "$ac_link") 2>conftest.er1
18675   ac_status=$?
18676   grep -v '^ *+' conftest.er1 >conftest.err
18677   rm -f conftest.er1
18678   cat conftest.err >&5
18679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } && {
18681          test -z "$ac_c_werror_flag" ||
18682          test ! -s conftest.err
18683        } && test -s conftest$ac_exeext && {
18684          test "$cross_compiling" = yes ||
18685          $as_test_x conftest$ac_exeext
18686        }; then
18687   ac_cv_lib_z_uncompress=yes
18688 else
18689   $as_echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.$ac_ext >&5
18691
18692         ac_cv_lib_z_uncompress=no
18693 fi
18694
18695 rm -rf conftest.dSYM
18696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18697       conftest$ac_exeext conftest.$ac_ext
18698 LIBS=$ac_check_lib_save_LIBS
18699 fi
18700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
18701 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
18702 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
18703   cat >>confdefs.h <<_ACEOF
18704 #define HAVE_LIBZ 1
18705 _ACEOF
18706
18707   LIBS="-lz $LIBS"
18708
18709 else
18710   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18712 { { $as_echo "$as_me:$LINENO: error:
18713         *** uncompress() missing, zlib-devel package required
18714 See \`config.log' for more details." >&5
18715 $as_echo "$as_me: error:
18716         *** uncompress() missing, zlib-devel package required
18717 See \`config.log' for more details." >&2;}
18718    { (exit 1); exit 1; }; }; }
18719 fi
18720
18721
18722
18723 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
18724 $as_echo_n "checking for crc32 in -lz... " >&6; }
18725 if test "${ac_cv_lib_z_crc32+set}" = set; then
18726   $as_echo_n "(cached) " >&6
18727 else
18728   ac_check_lib_save_LIBS=$LIBS
18729 LIBS="-lz  $LIBS"
18730 cat >conftest.$ac_ext <<_ACEOF
18731 /* confdefs.h.  */
18732 _ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h.  */
18736
18737 /* Override any GCC internal prototype to avoid an error.
18738    Use char because int might match the return type of a GCC
18739    builtin and then its argument prototype would still apply.  */
18740 #ifdef __cplusplus
18741 extern "C"
18742 #endif
18743 char crc32 ();
18744 int
18745 main ()
18746 {
18747 return crc32 ();
18748   ;
18749   return 0;
18750 }
18751 _ACEOF
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (ac_try="$ac_link"
18754 case "(($ac_try" in
18755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756   *) ac_try_echo=$ac_try;;
18757 esac
18758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18759 $as_echo "$ac_try_echo") >&5
18760   (eval "$ac_link") 2>conftest.er1
18761   ac_status=$?
18762   grep -v '^ *+' conftest.er1 >conftest.err
18763   rm -f conftest.er1
18764   cat conftest.err >&5
18765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); } && {
18767          test -z "$ac_c_werror_flag" ||
18768          test ! -s conftest.err
18769        } && test -s conftest$ac_exeext && {
18770          test "$cross_compiling" = yes ||
18771          $as_test_x conftest$ac_exeext
18772        }; then
18773   ac_cv_lib_z_crc32=yes
18774 else
18775   $as_echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18777
18778         ac_cv_lib_z_crc32=no
18779 fi
18780
18781 rm -rf conftest.dSYM
18782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18783       conftest$ac_exeext conftest.$ac_ext
18784 LIBS=$ac_check_lib_save_LIBS
18785 fi
18786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
18787 $as_echo "$ac_cv_lib_z_crc32" >&6; }
18788 if test "x$ac_cv_lib_z_crc32" = x""yes; then
18789   cat >>confdefs.h <<_ACEOF
18790 #define HAVE_LIBZ 1
18791 _ACEOF
18792
18793   LIBS="-lz $LIBS"
18794
18795 else
18796   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18798 { { $as_echo "$as_me:$LINENO: error:
18799         *** crc32() missing, zlib-devel package required
18800 See \`config.log' for more details." >&5
18801 $as_echo "$as_me: error:
18802         *** crc32() missing, zlib-devel package required
18803 See \`config.log' for more details." >&2;}
18804    { (exit 1); exit 1; }; }; }
18805 fi
18806
18807
18808         ZLIB="-lz"
18809
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_ZLIB 1
18813 _ACEOF
18814
18815
18816
18817         LIBUUID=
18818
18819         if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18820   { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18821 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18822 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18823   $as_echo_n "(cached) " >&6
18824 fi
18825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18826 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18827 else
18828   # Is the header compilable?
18829 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
18830 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
18831 cat >conftest.$ac_ext <<_ACEOF
18832 /* confdefs.h.  */
18833 _ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h.  */
18837 $ac_includes_default
18838 #include <uuid/uuid.h>
18839 _ACEOF
18840 rm -f conftest.$ac_objext
18841 if { (ac_try="$ac_compile"
18842 case "(($ac_try" in
18843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844   *) ac_try_echo=$ac_try;;
18845 esac
18846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18847 $as_echo "$ac_try_echo") >&5
18848   (eval "$ac_compile") 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } && {
18855          test -z "$ac_c_werror_flag" ||
18856          test ! -s conftest.err
18857        } && test -s conftest.$ac_objext; then
18858   ac_header_compiler=yes
18859 else
18860   $as_echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863         ac_header_compiler=no
18864 fi
18865
18866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18868 $as_echo "$ac_header_compiler" >&6; }
18869
18870 # Is the header present?
18871 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
18872 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
18873 cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h.  */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h.  */
18879 #include <uuid/uuid.h>
18880 _ACEOF
18881 if { (ac_try="$ac_cpp conftest.$ac_ext"
18882 case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18887 $as_echo "$ac_try_echo") >&5
18888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18889   ac_status=$?
18890   grep -v '^ *+' conftest.er1 >conftest.err
18891   rm -f conftest.er1
18892   cat conftest.err >&5
18893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } >/dev/null && {
18895          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18896          test ! -s conftest.err
18897        }; then
18898   ac_header_preproc=yes
18899 else
18900   $as_echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903   ac_header_preproc=no
18904 fi
18905
18906 rm -f conftest.err conftest.$ac_ext
18907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18908 $as_echo "$ac_header_preproc" >&6; }
18909
18910 # So?  What about this header?
18911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18912   yes:no: )
18913     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
18914 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18915     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
18916 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
18917     ac_header_preproc=yes
18918     ;;
18919   no:yes:* )
18920     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
18921 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
18922     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&5
18923 $as_echo "$as_me: WARNING: uuid/uuid.h:     check for missing prerequisite headers?" >&2;}
18924     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
18925 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
18926     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&5
18927 $as_echo "$as_me: WARNING: uuid/uuid.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18928     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
18929 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
18930     { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
18931 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
18932
18933     ;;
18934 esac
18935 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18936 $as_echo_n "checking for uuid/uuid.h... " >&6; }
18937 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18938   $as_echo_n "(cached) " >&6
18939 else
18940   ac_cv_header_uuid_uuid_h=$ac_header_preproc
18941 fi
18942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18943 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18944
18945 fi
18946 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
18947   :
18948 else
18949   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18951 { { $as_echo "$as_me:$LINENO: error:
18952         *** uuid/uuid.h missing, libuuid-devel package required
18953 See \`config.log' for more details." >&5
18954 $as_echo "$as_me: error:
18955         *** uuid/uuid.h missing, libuuid-devel package required
18956 See \`config.log' for more details." >&2;}
18957    { (exit 1); exit 1; }; }; }
18958 fi
18959
18960
18961
18962
18963 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
18964 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
18965 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
18966   $as_echo_n "(cached) " >&6
18967 else
18968   ac_check_lib_save_LIBS=$LIBS
18969 LIBS="-luuid  $LIBS"
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h.  */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h.  */
18976
18977 /* Override any GCC internal prototype to avoid an error.
18978    Use char because int might match the return type of a GCC
18979    builtin and then its argument prototype would still apply.  */
18980 #ifdef __cplusplus
18981 extern "C"
18982 #endif
18983 char uuid_generate ();
18984 int
18985 main ()
18986 {
18987 return uuid_generate ();
18988   ;
18989   return 0;
18990 }
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996   *) ac_try_echo=$ac_try;;
18997 esac
18998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18999 $as_echo "$ac_try_echo") >&5
19000   (eval "$ac_link") 2>conftest.er1
19001   ac_status=$?
19002   grep -v '^ *+' conftest.er1 >conftest.err
19003   rm -f conftest.er1
19004   cat conftest.err >&5
19005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); } && {
19007          test -z "$ac_c_werror_flag" ||
19008          test ! -s conftest.err
19009        } && test -s conftest$ac_exeext && {
19010          test "$cross_compiling" = yes ||
19011          $as_test_x conftest$ac_exeext
19012        }; then
19013   ac_cv_lib_uuid_uuid_generate=yes
19014 else
19015   $as_echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018         ac_cv_lib_uuid_uuid_generate=no
19019 fi
19020
19021 rm -rf conftest.dSYM
19022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19023       conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19025 fi
19026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
19027 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
19028 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
19029   cat >>confdefs.h <<_ACEOF
19030 #define HAVE_LIBUUID 1
19031 _ACEOF
19032
19033   LIBS="-luuid $LIBS"
19034
19035 else
19036   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19038 { { $as_echo "$as_me:$LINENO: error:
19039         *** uuid_generate() missing, libuuid-devel package required
19040 See \`config.log' for more details." >&5
19041 $as_echo "$as_me: error:
19042         *** uuid_generate() missing, libuuid-devel package required
19043 See \`config.log' for more details." >&2;}
19044    { (exit 1); exit 1; }; }; }
19045 fi
19046
19047
19048
19049 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
19050 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
19051 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
19052   $as_echo_n "(cached) " >&6
19053 else
19054   ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-luuid  $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h.  */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h.  */
19062
19063 /* Override any GCC internal prototype to avoid an error.
19064    Use char because int might match the return type of a GCC
19065    builtin and then its argument prototype would still apply.  */
19066 #ifdef __cplusplus
19067 extern "C"
19068 #endif
19069 char uuid_is_null ();
19070 int
19071 main ()
19072 {
19073 return uuid_is_null ();
19074   ;
19075   return 0;
19076 }
19077 _ACEOF
19078 rm -f conftest.$ac_objext conftest$ac_exeext
19079 if { (ac_try="$ac_link"
19080 case "(($ac_try" in
19081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082   *) ac_try_echo=$ac_try;;
19083 esac
19084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19085 $as_echo "$ac_try_echo") >&5
19086   (eval "$ac_link") 2>conftest.er1
19087   ac_status=$?
19088   grep -v '^ *+' conftest.er1 >conftest.err
19089   rm -f conftest.er1
19090   cat conftest.err >&5
19091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092   (exit $ac_status); } && {
19093          test -z "$ac_c_werror_flag" ||
19094          test ! -s conftest.err
19095        } && test -s conftest$ac_exeext && {
19096          test "$cross_compiling" = yes ||
19097          $as_test_x conftest$ac_exeext
19098        }; then
19099   ac_cv_lib_uuid_uuid_is_null=yes
19100 else
19101   $as_echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104         ac_cv_lib_uuid_uuid_is_null=no
19105 fi
19106
19107 rm -rf conftest.dSYM
19108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109       conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19111 fi
19112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
19113 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
19114 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
19115   cat >>confdefs.h <<_ACEOF
19116 #define HAVE_LIBUUID 1
19117 _ACEOF
19118
19119   LIBS="-luuid $LIBS"
19120
19121 else
19122   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19124 { { $as_echo "$as_me:$LINENO: error:
19125         *** uuid_is_null() missing, libuuid-devel package required
19126 See \`config.log' for more details." >&5
19127 $as_echo "$as_me: error:
19128         *** uuid_is_null() missing, libuuid-devel package required
19129 See \`config.log' for more details." >&2;}
19130    { (exit 1); exit 1; }; }; }
19131 fi
19132
19133
19134         LIBUUID="-luuid"
19135
19136
19137 cat >>confdefs.h <<\_ACEOF
19138 #define HAVE_LIBUUID 1
19139 _ACEOF
19140
19141
19142
19143
19144 # Check whether --with-blkid was given.
19145 if test "${with_blkid+set}" = set; then
19146   withval=$with_blkid;
19147 else
19148   with_blkid=check
19149 fi
19150
19151
19152         LIBBLKID=
19153         if test "x$with_blkid" != xno; then
19154
19155                 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
19156 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
19157 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
19158   $as_echo_n "(cached) " >&6
19159 else
19160   ac_check_lib_save_LIBS=$LIBS
19161 LIBS="-lblkid  $LIBS"
19162 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168
19169 /* Override any GCC internal prototype to avoid an error.
19170    Use char because int might match the return type of a GCC
19171    builtin and then its argument prototype would still apply.  */
19172 #ifdef __cplusplus
19173 extern "C"
19174 #endif
19175 char blkid_get_cache ();
19176 int
19177 main ()
19178 {
19179 return blkid_get_cache ();
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (ac_try="$ac_link"
19186 case "(($ac_try" in
19187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188   *) ac_try_echo=$ac_try;;
19189 esac
19190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19191 $as_echo "$ac_try_echo") >&5
19192   (eval "$ac_link") 2>conftest.er1
19193   ac_status=$?
19194   grep -v '^ *+' conftest.er1 >conftest.err
19195   rm -f conftest.er1
19196   cat conftest.err >&5
19197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } && {
19199          test -z "$ac_c_werror_flag" ||
19200          test ! -s conftest.err
19201        } && test -s conftest$ac_exeext && {
19202          test "$cross_compiling" = yes ||
19203          $as_test_x conftest$ac_exeext
19204        }; then
19205   ac_cv_lib_blkid_blkid_get_cache=yes
19206 else
19207   $as_echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210         ac_cv_lib_blkid_blkid_get_cache=no
19211 fi
19212
19213 rm -rf conftest.dSYM
19214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215       conftest$ac_exeext conftest.$ac_ext
19216 LIBS=$ac_check_lib_save_LIBS
19217 fi
19218 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
19219 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
19220 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
19221
19222                         { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
19223 $as_echo_n "checking for blkid zfs support... " >&6; }
19224
19225                         ZFS_DEV=`mktemp`
19226                         dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
19227                                 >/dev/null 2>/dev/null
19228                         echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
19229                                 dd of=$ZFS_DEV bs=1k count=8 \
19230                                 seek=132 conv=notrunc &>/dev/null \
19231                                 >/dev/null 2>/dev/null
19232
19233                         saved_LDFLAGS="$LDFLAGS"
19234                         LDFLAGS="-lblkid"
19235
19236                         if test "$cross_compiling" = yes; then
19237   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19239 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19240 See \`config.log' for more details." >&5
19241 $as_echo "$as_me: error: cannot run test program while cross compiling
19242 See \`config.log' for more details." >&2;}
19243    { (exit 1); exit 1; }; }; }
19244 else
19245   cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251
19252                                 #include <stdio.h>
19253                                 #include <blkid/blkid.h>
19254
19255 int
19256 main ()
19257 {
19258
19259                                 blkid_cache cache;
19260                                 char *value;
19261
19262                                 if (blkid_get_cache(&cache, NULL) < 0)
19263                                         return 1;
19264
19265                                 value = blkid_get_tag_value(cache, "TYPE",
19266                                                             "$ZFS_DEV");
19267                                 if (!value) {
19268                                         blkid_put_cache(cache);
19269                                         return 2;
19270                                 }
19271
19272                                 if (strcmp(value, "zfs")) {
19273                                         free(value);
19274                                         blkid_put_cache(cache);
19275                                         return 3;
19276                                 }
19277
19278                                 free(value);
19279                                 blkid_put_cache(cache);
19280
19281   ;
19282   return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest$ac_exeext
19286 if { (ac_try="$ac_link"
19287 case "(($ac_try" in
19288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289   *) ac_try_echo=$ac_try;;
19290 esac
19291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19292 $as_echo "$ac_try_echo") >&5
19293   (eval "$ac_link") 2>&5
19294   ac_status=$?
19295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19297   { (case "(($ac_try" in
19298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299   *) ac_try_echo=$ac_try;;
19300 esac
19301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19302 $as_echo "$ac_try_echo") >&5
19303   (eval "$ac_try") 2>&5
19304   ac_status=$?
19305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); }; }; then
19307
19308                                 rm -f $ZFS_DEV
19309                                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19310 $as_echo "yes" >&6; }
19311                                 LIBBLKID="-lblkid"
19312
19313
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE_LIBBLKID 1
19316 _ACEOF
19317
19318
19319 else
19320   $as_echo "$as_me: program exited with status $ac_status" >&5
19321 $as_echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 ( exit $ac_status )
19325
19326                                 rm -f $ZFS_DEV
19327                                 { $as_echo "$as_me:$LINENO: result: no" >&5
19328 $as_echo "no" >&6; }
19329                                 if test "x$with_blkid" != xcheck; then
19330   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19332 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19333 See \`config.log' for more details." >&5
19334 $as_echo "$as_me: error: --with-blkid given but unavailable
19335 See \`config.log' for more details." >&2;}
19336    { (exit 1); exit 1; }; }; }
19337 fi
19338
19339
19340 fi
19341 rm -rf conftest.dSYM
19342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19343 fi
19344
19345
19346
19347                         LDFLAGS="$saved_LDFLAGS"
19348
19349 else
19350
19351                         if test "x$with_blkid" != xcheck; then
19352   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19354 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
19355 See \`config.log' for more details." >&5
19356 $as_echo "$as_me: error: --with-blkid given but unavailable
19357 See \`config.log' for more details." >&2;}
19358    { (exit 1); exit 1; }; }; }
19359 fi
19360
19361
19362
19363 fi
19364
19365
19366 fi
19367
19368
19369
19370
19371 # Check whether --with-selinux was given.
19372 if test "${with_selinux+set}" = set; then
19373   withval=$with_selinux;
19374 else
19375   with_selinux=check
19376 fi
19377
19378
19379         LIBSELINUX=
19380         if test "x$with_selinux" != xno; then
19381
19382                 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19383   { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19384 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19385 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19386   $as_echo_n "(cached) " >&6
19387 fi
19388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19389 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19390 else
19391   # Is the header compilable?
19392 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
19393 $as_echo_n "checking selinux/selinux.h usability... " >&6; }
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400 $ac_includes_default
19401 #include <selinux/selinux.h>
19402 _ACEOF
19403 rm -f conftest.$ac_objext
19404 if { (ac_try="$ac_compile"
19405 case "(($ac_try" in
19406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407   *) ac_try_echo=$ac_try;;
19408 esac
19409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19410 $as_echo "$ac_try_echo") >&5
19411   (eval "$ac_compile") 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } && {
19418          test -z "$ac_c_werror_flag" ||
19419          test ! -s conftest.err
19420        } && test -s conftest.$ac_objext; then
19421   ac_header_compiler=yes
19422 else
19423   $as_echo "$as_me: failed program was:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19425
19426         ac_header_compiler=no
19427 fi
19428
19429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19430 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19431 $as_echo "$ac_header_compiler" >&6; }
19432
19433 # Is the header present?
19434 { $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
19435 $as_echo_n "checking selinux/selinux.h presence... " >&6; }
19436 cat >conftest.$ac_ext <<_ACEOF
19437 /* confdefs.h.  */
19438 _ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h.  */
19442 #include <selinux/selinux.h>
19443 _ACEOF
19444 if { (ac_try="$ac_cpp conftest.$ac_ext"
19445 case "(($ac_try" in
19446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447   *) ac_try_echo=$ac_try;;
19448 esac
19449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19450 $as_echo "$ac_try_echo") >&5
19451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } >/dev/null && {
19458          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19459          test ! -s conftest.err
19460        }; then
19461   ac_header_preproc=yes
19462 else
19463   $as_echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19465
19466   ac_header_preproc=no
19467 fi
19468
19469 rm -f conftest.err conftest.$ac_ext
19470 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19471 $as_echo "$ac_header_preproc" >&6; }
19472
19473 # So?  What about this header?
19474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19475   yes:no: )
19476     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
19477 $as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19478     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
19479 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
19480     ac_header_preproc=yes
19481     ;;
19482   no:yes:* )
19483     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
19484 $as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
19485     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&5
19486 $as_echo "$as_me: WARNING: selinux/selinux.h:     check for missing prerequisite headers?" >&2;}
19487     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
19488 $as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
19489     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&5
19490 $as_echo "$as_me: WARNING: selinux/selinux.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19491     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
19492 $as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
19493     { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
19494 $as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
19495
19496     ;;
19497 esac
19498 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19499 $as_echo_n "checking for selinux/selinux.h... " >&6; }
19500 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19501   $as_echo_n "(cached) " >&6
19502 else
19503   ac_cv_header_selinux_selinux_h=$ac_header_preproc
19504 fi
19505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19506 $as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19507
19508 fi
19509 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
19510
19511                         { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
19512 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19513 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19514   $as_echo_n "(cached) " >&6
19515 else
19516   ac_check_lib_save_LIBS=$LIBS
19517 LIBS="-lselinux  $LIBS"
19518 cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h.  */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h.  */
19524
19525 /* Override any GCC internal prototype to avoid an error.
19526    Use char because int might match the return type of a GCC
19527    builtin and then its argument prototype would still apply.  */
19528 #ifdef __cplusplus
19529 extern "C"
19530 #endif
19531 char is_selinux_enabled ();
19532 int
19533 main ()
19534 {
19535 return is_selinux_enabled ();
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext conftest$ac_exeext
19541 if { (ac_try="$ac_link"
19542 case "(($ac_try" in
19543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544   *) ac_try_echo=$ac_try;;
19545 esac
19546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19547 $as_echo "$ac_try_echo") >&5
19548   (eval "$ac_link") 2>conftest.er1
19549   ac_status=$?
19550   grep -v '^ *+' conftest.er1 >conftest.err
19551   rm -f conftest.er1
19552   cat conftest.err >&5
19553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } && {
19555          test -z "$ac_c_werror_flag" ||
19556          test ! -s conftest.err
19557        } && test -s conftest$ac_exeext && {
19558          test "$cross_compiling" = yes ||
19559          $as_test_x conftest$ac_exeext
19560        }; then
19561   ac_cv_lib_selinux_is_selinux_enabled=yes
19562 else
19563   $as_echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566         ac_cv_lib_selinux_is_selinux_enabled=no
19567 fi
19568
19569 rm -rf conftest.dSYM
19570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19571       conftest$ac_exeext conftest.$ac_ext
19572 LIBS=$ac_check_lib_save_LIBS
19573 fi
19574 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19575 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19576 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
19577
19578                                 LIBSELINUX="-lselinux"
19579
19580
19581 cat >>confdefs.h <<\_ACEOF
19582 #define HAVE_LIBSELINUX 1
19583 _ACEOF
19584
19585
19586 else
19587
19588                                 if test "x$with_selinux" != xcheck; then
19589   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19591 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19592 See \`config.log' for more details." >&5
19593 $as_echo "$as_me: error: --with-selinux given but unavailable
19594 See \`config.log' for more details." >&2;}
19595    { (exit 1); exit 1; }; }; }
19596
19597 fi
19598
19599
19600 fi
19601
19602
19603 else
19604
19605                         if test "x$with_selinux" != xcheck; then
19606   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19608 { { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19609 See \`config.log' for more details." >&5
19610 $as_echo "$as_me: error: --with-selinux given but unavailable
19611 See \`config.log' for more details." >&2;}
19612    { (exit 1); exit 1; }; }; }
19613
19614 fi
19615
19616
19617 fi
19618
19619
19620
19621 else
19622
19623                 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
19624 $as_echo_n "checking for selinux support... " >&6; }
19625                 { $as_echo "$as_me:$LINENO: result: no" >&5
19626 $as_echo "no" >&6; }
19627
19628 fi
19629
19630
19631
19632         { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
19633 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
19634
19635         saved_flags="$CFLAGS"
19636         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
19637
19638         if test "$cross_compiling" = yes; then
19639   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19641 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19642 See \`config.log' for more details." >&5
19643 $as_echo "$as_me: error: cannot run test program while cross compiling
19644 See \`config.log' for more details." >&2;}
19645    { (exit 1); exit 1; }; }; }
19646 else
19647   cat >conftest.$ac_ext <<_ACEOF
19648 /* confdefs.h.  */
19649 _ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h.  */
19653
19654 int
19655 main ()
19656 {
19657
19658   ;
19659   return 0;
19660 }
19661 _ACEOF
19662 rm -f conftest$ac_exeext
19663 if { (ac_try="$ac_link"
19664 case "(($ac_try" in
19665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666   *) ac_try_echo=$ac_try;;
19667 esac
19668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19669 $as_echo "$ac_try_echo") >&5
19670   (eval "$ac_link") 2>&5
19671   ac_status=$?
19672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19674   { (case "(($ac_try" in
19675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676   *) ac_try_echo=$ac_try;;
19677 esac
19678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19679 $as_echo "$ac_try_echo") >&5
19680   (eval "$ac_try") 2>&5
19681   ac_status=$?
19682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683   (exit $ac_status); }; }; then
19684
19685                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
19686                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19687 $as_echo "yes" >&6; }
19688
19689 else
19690   $as_echo "$as_me: program exited with status $ac_status" >&5
19691 $as_echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694 ( exit $ac_status )
19695
19696                 FRAME_LARGER_THAN=
19697                 { $as_echo "$as_me:$LINENO: result: no" >&5
19698 $as_echo "no" >&6; }
19699
19700 fi
19701 rm -rf conftest.dSYM
19702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19703 fi
19704
19705
19706
19707         CFLAGS="$saved_flags"
19708
19709
19710
19711
19712         { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
19713 $as_echo_n "checking whether pthread stack includes guard... " >&6; }
19714
19715         saved_CFLAGS="$CFLAGS"
19716         CFLAGS="-fstack-check"
19717         saved_LDFLAGS="$LDFLAGS"
19718         LDFLAGS="-lpthread"
19719
19720         if test "$cross_compiling" = yes; then
19721   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19723 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19724 See \`config.log' for more details." >&5
19725 $as_echo "$as_me: error: cannot run test program while cross compiling
19726 See \`config.log' for more details." >&2;}
19727    { (exit 1); exit 1; }; }; }
19728 else
19729   cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h.  */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h.  */
19735
19736                 #include <pthread.h>
19737                 #include <sys/resource.h>
19738                 #include <unistd.h>
19739                 #include <bits/local_lim.h>
19740
19741                 #define PAGESIZE (sysconf(_SC_PAGESIZE))
19742                 #define STACK_SIZE 8192
19743                 #define BUFSIZE 4096
19744
19745                 void * func(void *arg)
19746                 {
19747                         char buf[BUFSIZE];
19748                 }
19749
19750 int
19751 main ()
19752 {
19753
19754                 pthread_t tid;
19755                 pthread_attr_t attr;
19756                 struct rlimit l;
19757
19758                 l.rlim_cur = 0;
19759                 l.rlim_max = 0;
19760                 setrlimit(RLIMIT_CORE, &l);
19761                 pthread_attr_init(&attr);
19762                 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
19763                 pthread_attr_setguardsize(&attr, PAGESIZE);
19764                 pthread_create(&tid, &attr, func, NULL);
19765                 pthread_join(tid, NULL);
19766
19767   ;
19768   return 0;
19769 }
19770 _ACEOF
19771 rm -f conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775   *) ac_try_echo=$ac_try;;
19776 esac
19777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19778 $as_echo "$ac_try_echo") >&5
19779   (eval "$ac_link") 2>&5
19780   ac_status=$?
19781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19783   { (case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789   (eval "$ac_try") 2>&5
19790   ac_status=$?
19791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; }; then
19793
19794                 { $as_echo "$as_me:$LINENO: result: no" >&5
19795 $as_echo "no" >&6; }
19796
19797 else
19798   $as_echo "$as_me: program exited with status $ac_status" >&5
19799 $as_echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19801
19802 ( exit $ac_status )
19803
19804
19805 cat >>confdefs.h <<\_ACEOF
19806 #define NPTL_GUARD_WITHIN_STACK 1
19807 _ACEOF
19808
19809                 { $as_echo "$as_me:$LINENO: result: yes" >&5
19810 $as_echo "yes" >&6; }
19811
19812 fi
19813 rm -rf conftest.dSYM
19814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19815 fi
19816
19817
19818         CFLAGS="$saved_CFLAGS"
19819         LDFLAGS="$saved_LDFLAGS"
19820
19821    ;;
19822                 srpm)                        ;;
19823                 *)
19824                 { $as_echo "$as_me:$LINENO: result: Error!" >&5
19825 $as_echo "Error!" >&6; }
19826                 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
19827                               user kernel|user|all|srpm" >&5
19828 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
19829                               user kernel|user|all|srpm" >&2;}
19830    { (exit 1); exit 1; }; } ;;
19831         esac
19832
19833          if test "$ZFS_CONFIG" = user ||
19834                        test "$ZFS_CONFIG" = all; then
19835   CONFIG_USER_TRUE=
19836   CONFIG_USER_FALSE='#'
19837 else
19838   CONFIG_USER_TRUE='#'
19839   CONFIG_USER_FALSE=
19840 fi
19841
19842          if test "$ZFS_CONFIG" = kernel ||
19843                        test "$ZFS_CONFIG" = all; then
19844   CONFIG_KERNEL_TRUE=
19845   CONFIG_KERNEL_FALSE='#'
19846 else
19847   CONFIG_KERNEL_TRUE='#'
19848   CONFIG_KERNEL_FALSE=
19849 fi
19850
19851
19852
19853         { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19854 $as_echo_n "checking whether debugging is enabled... " >&6; }
19855         # Check whether --enable-debug was given.
19856 if test "${enable_debug+set}" = set; then
19857   enableval=$enable_debug;
19858 else
19859   enable_debug=no
19860 fi
19861
19862
19863         if test "x$enable_debug" = xyes; then
19864
19865                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
19866                 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
19867                 DEBUG_CFLAGS="-DDEBUG -Werror"
19868                 DEBUG_STACKFLAGS="-fstack-check"
19869
19870 else
19871
19872                 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
19873                 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
19874                 DEBUG_CFLAGS="-DNDEBUG"
19875                 DEBUG_STACKFLAGS=""
19876
19877 fi
19878
19879
19880
19881
19882         { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
19883 $as_echo "$enable_debug" >&6; }
19884
19885
19886 ac_config_files="$ac_config_files Makefile etc/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 cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zpool_id/Makefile cmd/zpool_layout/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/zvol_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 zfs-script-config.sh"
19887
19888
19889 cat >confcache <<\_ACEOF
19890 # This file is a shell script that caches the results of configure
19891 # tests run on this system so they can be shared between configure
19892 # scripts and configure runs, see configure's option --config-cache.
19893 # It is not useful on other systems.  If it contains results you don't
19894 # want to keep, you may remove or edit it.
19895 #
19896 # config.status only pays attention to the cache file if you give it
19897 # the --recheck option to rerun configure.
19898 #
19899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19901 # following values.
19902
19903 _ACEOF
19904
19905 # The following way of writing the cache mishandles newlines in values,
19906 # but we know of no workaround that is simple, portable, and efficient.
19907 # So, we kill variables containing newlines.
19908 # Ultrix sh set writes to stderr and can't be redirected directly,
19909 # and sets the high bit in the cache file unless we assign to the vars.
19910 (
19911   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19912     eval ac_val=\$$ac_var
19913     case $ac_val in #(
19914     *${as_nl}*)
19915       case $ac_var in #(
19916       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19917 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19918       esac
19919       case $ac_var in #(
19920       _ | IFS | as_nl) ;; #(
19921       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19922       *) $as_unset $ac_var ;;
19923       esac ;;
19924     esac
19925   done
19926
19927   (set) 2>&1 |
19928     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19929     *${as_nl}ac_space=\ *)
19930       # `set' does not quote correctly, so add quotes (double-quote
19931       # substitution turns \\\\ into \\, and sed turns \\ into \).
19932       sed -n \
19933         "s/'/'\\\\''/g;
19934           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19935       ;; #(
19936     *)
19937       # `set' quotes correctly as required by POSIX, so do not add quotes.
19938       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19939       ;;
19940     esac |
19941     sort
19942 ) |
19943   sed '
19944      /^ac_cv_env_/b end
19945      t clear
19946      :clear
19947      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19948      t end
19949      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19950      :end' >>confcache
19951 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19952   if test -w "$cache_file"; then
19953     test "x$cache_file" != "x/dev/null" &&
19954       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19955 $as_echo "$as_me: updating cache $cache_file" >&6;}
19956     cat confcache >$cache_file
19957   else
19958     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19959 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19960   fi
19961 fi
19962 rm -f confcache
19963
19964 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19965 # Let make expand exec_prefix.
19966 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19967
19968 DEFS=-DHAVE_CONFIG_H
19969
19970 ac_libobjs=
19971 ac_ltlibobjs=
19972 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19973   # 1. Remove the extension, and $U if already installed.
19974   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19975   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19976   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19977   #    will be set to the directory where LIBOBJS objects are built.
19978   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19979   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19980 done
19981 LIBOBJS=$ac_libobjs
19982
19983 LTLIBOBJS=$ac_ltlibobjs
19984
19985
19986 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19987   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19988 Usually this means the macro was only invoked conditionally." >&5
19989 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19990 Usually this means the macro was only invoked conditionally." >&2;}
19991    { (exit 1); exit 1; }; }
19992 fi
19993  if test -n "$EXEEXT"; then
19994   am__EXEEXT_TRUE=
19995   am__EXEEXT_FALSE='#'
19996 else
19997   am__EXEEXT_TRUE='#'
19998   am__EXEEXT_FALSE=
19999 fi
20000
20001 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20002   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20003 Usually this means the macro was only invoked conditionally." >&5
20004 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20005 Usually this means the macro was only invoked conditionally." >&2;}
20006    { (exit 1); exit 1; }; }
20007 fi
20008 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20009   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20010 Usually this means the macro was only invoked conditionally." >&5
20011 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20012 Usually this means the macro was only invoked conditionally." >&2;}
20013    { (exit 1); exit 1; }; }
20014 fi
20015 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20016   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20017 Usually this means the macro was only invoked conditionally." >&5
20018 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20019 Usually this means the macro was only invoked conditionally." >&2;}
20020    { (exit 1); exit 1; }; }
20021 fi
20022 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20023   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20024 Usually this means the macro was only invoked conditionally." >&5
20025 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20026 Usually this means the macro was only invoked conditionally." >&2;}
20027    { (exit 1); exit 1; }; }
20028 fi
20029 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20030   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20031 Usually this means the macro was only invoked conditionally." >&5
20032 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20033 Usually this means the macro was only invoked conditionally." >&2;}
20034    { (exit 1); exit 1; }; }
20035 fi
20036
20037 : ${CONFIG_STATUS=./config.status}
20038 ac_write_fail=0
20039 ac_clean_files_save=$ac_clean_files
20040 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20041 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20042 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20043 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20044 #! $SHELL
20045 # Generated by $as_me.
20046 # Run this file to recreate the current configuration.
20047 # Compiler output produced by configure, useful for debugging
20048 # configure, is in config.log if it exists.
20049
20050 debug=false
20051 ac_cs_recheck=false
20052 ac_cs_silent=false
20053 SHELL=\${CONFIG_SHELL-$SHELL}
20054 _ACEOF
20055
20056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20057 ## --------------------- ##
20058 ## M4sh Initialization.  ##
20059 ## --------------------- ##
20060
20061 # Be more Bourne compatible
20062 DUALCASE=1; export DUALCASE # for MKS sh
20063 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20064   emulate sh
20065   NULLCMD=:
20066   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20067   # is contrary to our usage.  Disable this feature.
20068   alias -g '${1+"$@"}'='"$@"'
20069   setopt NO_GLOB_SUBST
20070 else
20071   case `(set -o) 2>/dev/null` in
20072   *posix*) set -o posix ;;
20073 esac
20074
20075 fi
20076
20077
20078
20079
20080 # PATH needs CR
20081 # Avoid depending upon Character Ranges.
20082 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20083 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20084 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20085 as_cr_digits='0123456789'
20086 as_cr_alnum=$as_cr_Letters$as_cr_digits
20087
20088 as_nl='
20089 '
20090 export as_nl
20091 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20092 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20093 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20094 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20095 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20096   as_echo='printf %s\n'
20097   as_echo_n='printf %s'
20098 else
20099   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20100     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20101     as_echo_n='/usr/ucb/echo -n'
20102   else
20103     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20104     as_echo_n_body='eval
20105       arg=$1;
20106       case $arg in
20107       *"$as_nl"*)
20108         expr "X$arg" : "X\\(.*\\)$as_nl";
20109         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20110       esac;
20111       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20112     '
20113     export as_echo_n_body
20114     as_echo_n='sh -c $as_echo_n_body as_echo'
20115   fi
20116   export as_echo_body
20117   as_echo='sh -c $as_echo_body as_echo'
20118 fi
20119
20120 # The user is always right.
20121 if test "${PATH_SEPARATOR+set}" != set; then
20122   PATH_SEPARATOR=:
20123   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20124     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20125       PATH_SEPARATOR=';'
20126   }
20127 fi
20128
20129 # Support unset when possible.
20130 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20131   as_unset=unset
20132 else
20133   as_unset=false
20134 fi
20135
20136
20137 # IFS
20138 # We need space, tab and new line, in precisely that order.  Quoting is
20139 # there to prevent editors from complaining about space-tab.
20140 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20141 # splitting by setting IFS to empty value.)
20142 IFS=" ""        $as_nl"
20143
20144 # Find who we are.  Look in the path if we contain no directory separator.
20145 case $0 in
20146   *[\\/]* ) as_myself=$0 ;;
20147   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20148 for as_dir in $PATH
20149 do
20150   IFS=$as_save_IFS
20151   test -z "$as_dir" && as_dir=.
20152   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20153 done
20154 IFS=$as_save_IFS
20155
20156      ;;
20157 esac
20158 # We did not find ourselves, most probably we were run as `sh COMMAND'
20159 # in which case we are not to be found in the path.
20160 if test "x$as_myself" = x; then
20161   as_myself=$0
20162 fi
20163 if test ! -f "$as_myself"; then
20164   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20165   { (exit 1); exit 1; }
20166 fi
20167
20168 # Work around bugs in pre-3.0 UWIN ksh.
20169 for as_var in ENV MAIL MAILPATH
20170 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20171 done
20172 PS1='$ '
20173 PS2='> '
20174 PS4='+ '
20175
20176 # NLS nuisances.
20177 LC_ALL=C
20178 export LC_ALL
20179 LANGUAGE=C
20180 export LANGUAGE
20181
20182 # Required to use basename.
20183 if expr a : '\(a\)' >/dev/null 2>&1 &&
20184    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20185   as_expr=expr
20186 else
20187   as_expr=false
20188 fi
20189
20190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20191   as_basename=basename
20192 else
20193   as_basename=false
20194 fi
20195
20196
20197 # Name of the executable.
20198 as_me=`$as_basename -- "$0" ||
20199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20200          X"$0" : 'X\(//\)$' \| \
20201          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20202 $as_echo X/"$0" |
20203     sed '/^.*\/\([^/][^/]*\)\/*$/{
20204             s//\1/
20205             q
20206           }
20207           /^X\/\(\/\/\)$/{
20208             s//\1/
20209             q
20210           }
20211           /^X\/\(\/\).*/{
20212             s//\1/
20213             q
20214           }
20215           s/.*/./; q'`
20216
20217 # CDPATH.
20218 $as_unset CDPATH
20219
20220
20221
20222   as_lineno_1=$LINENO
20223   as_lineno_2=$LINENO
20224   test "x$as_lineno_1" != "x$as_lineno_2" &&
20225   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20226
20227   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20228   # uniformly replaced by the line number.  The first 'sed' inserts a
20229   # line-number line after each line using $LINENO; the second 'sed'
20230   # does the real work.  The second script uses 'N' to pair each
20231   # line-number line with the line containing $LINENO, and appends
20232   # trailing '-' during substitution so that $LINENO is not a special
20233   # case at line end.
20234   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20235   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20236   # E. McMahon (1931-1989) for sed's syntax.  :-)
20237   sed -n '
20238     p
20239     /[$]LINENO/=
20240   ' <$as_myself |
20241     sed '
20242       s/[$]LINENO.*/&-/
20243       t lineno
20244       b
20245       :lineno
20246       N
20247       :loop
20248       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20249       t loop
20250       s/-\n.*//
20251     ' >$as_me.lineno &&
20252   chmod +x "$as_me.lineno" ||
20253     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20254    { (exit 1); exit 1; }; }
20255
20256   # Don't try to exec as it changes $[0], causing all sort of problems
20257   # (the dirname of $[0] is not the place where we might find the
20258   # original and so on.  Autoconf is especially sensitive to this).
20259   . "./$as_me.lineno"
20260   # Exit status is that of the last command.
20261   exit
20262 }
20263
20264
20265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20266   as_dirname=dirname
20267 else
20268   as_dirname=false
20269 fi
20270
20271 ECHO_C= ECHO_N= ECHO_T=
20272 case `echo -n x` in
20273 -n*)
20274   case `echo 'x\c'` in
20275   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20276   *)   ECHO_C='\c';;
20277   esac;;
20278 *)
20279   ECHO_N='-n';;
20280 esac
20281 if expr a : '\(a\)' >/dev/null 2>&1 &&
20282    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20283   as_expr=expr
20284 else
20285   as_expr=false
20286 fi
20287
20288 rm -f conf$$ conf$$.exe conf$$.file
20289 if test -d conf$$.dir; then
20290   rm -f conf$$.dir/conf$$.file
20291 else
20292   rm -f conf$$.dir
20293   mkdir conf$$.dir 2>/dev/null
20294 fi
20295 if (echo >conf$$.file) 2>/dev/null; then
20296   if ln -s conf$$.file conf$$ 2>/dev/null; then
20297     as_ln_s='ln -s'
20298     # ... but there are two gotchas:
20299     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20300     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20301     # In both cases, we have to default to `cp -p'.
20302     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20303       as_ln_s='cp -p'
20304   elif ln conf$$.file conf$$ 2>/dev/null; then
20305     as_ln_s=ln
20306   else
20307     as_ln_s='cp -p'
20308   fi
20309 else
20310   as_ln_s='cp -p'
20311 fi
20312 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20313 rmdir conf$$.dir 2>/dev/null
20314
20315 if mkdir -p . 2>/dev/null; then
20316   as_mkdir_p=:
20317 else
20318   test -d ./-p && rmdir ./-p
20319   as_mkdir_p=false
20320 fi
20321
20322 if test -x / >/dev/null 2>&1; then
20323   as_test_x='test -x'
20324 else
20325   if ls -dL / >/dev/null 2>&1; then
20326     as_ls_L_option=L
20327   else
20328     as_ls_L_option=
20329   fi
20330   as_test_x='
20331     eval sh -c '\''
20332       if test -d "$1"; then
20333         test -d "$1/.";
20334       else
20335         case $1 in
20336         -*)set "./$1";;
20337         esac;
20338         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20339         ???[sx]*):;;*)false;;esac;fi
20340     '\'' sh
20341   '
20342 fi
20343 as_executable_p=$as_test_x
20344
20345 # Sed expression to map a string onto a valid CPP name.
20346 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20347
20348 # Sed expression to map a string onto a valid variable name.
20349 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20350
20351
20352 exec 6>&1
20353
20354 # Save the log message, to keep $[0] and so on meaningful, and to
20355 # report actual input values of CONFIG_FILES etc. instead of their
20356 # values after options handling.
20357 ac_log="
20358 This file was extended by $as_me, which was
20359 generated by GNU Autoconf 2.63.  Invocation command line was
20360
20361   CONFIG_FILES    = $CONFIG_FILES
20362   CONFIG_HEADERS  = $CONFIG_HEADERS
20363   CONFIG_LINKS    = $CONFIG_LINKS
20364   CONFIG_COMMANDS = $CONFIG_COMMANDS
20365   $ $0 $@
20366
20367 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20368 "
20369
20370 _ACEOF
20371
20372 case $ac_config_files in *"
20373 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20374 esac
20375
20376 case $ac_config_headers in *"
20377 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20378 esac
20379
20380
20381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20382 # Files that config.status was made for.
20383 config_files="$ac_config_files"
20384 config_headers="$ac_config_headers"
20385 config_commands="$ac_config_commands"
20386
20387 _ACEOF
20388
20389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20390 ac_cs_usage="\
20391 \`$as_me' instantiates files from templates according to the
20392 current configuration.
20393
20394 Usage: $0 [OPTION]... [FILE]...
20395
20396   -h, --help       print this help, then exit
20397   -V, --version    print version number and configuration settings, then exit
20398   -q, --quiet, --silent
20399                    do not print progress messages
20400   -d, --debug      don't remove temporary files
20401       --recheck    update $as_me by reconfiguring in the same conditions
20402       --file=FILE[:TEMPLATE]
20403                    instantiate the configuration file FILE
20404       --header=FILE[:TEMPLATE]
20405                    instantiate the configuration header FILE
20406
20407 Configuration files:
20408 $config_files
20409
20410 Configuration headers:
20411 $config_headers
20412
20413 Configuration commands:
20414 $config_commands
20415
20416 Report bugs to <bug-autoconf@gnu.org>."
20417
20418 _ACEOF
20419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20420 ac_cs_version="\\
20421 config.status
20422 configured by $0, generated by GNU Autoconf 2.63,
20423   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20424
20425 Copyright (C) 2008 Free Software Foundation, Inc.
20426 This config.status script is free software; the Free Software Foundation
20427 gives unlimited permission to copy, distribute and modify it."
20428
20429 ac_pwd='$ac_pwd'
20430 srcdir='$srcdir'
20431 INSTALL='$INSTALL'
20432 MKDIR_P='$MKDIR_P'
20433 AWK='$AWK'
20434 test -n "\$AWK" || AWK=awk
20435 _ACEOF
20436
20437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20438 # The default lists apply if the user does not specify any file.
20439 ac_need_defaults=:
20440 while test $# != 0
20441 do
20442   case $1 in
20443   --*=*)
20444     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20445     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20446     ac_shift=:
20447     ;;
20448   *)
20449     ac_option=$1
20450     ac_optarg=$2
20451     ac_shift=shift
20452     ;;
20453   esac
20454
20455   case $ac_option in
20456   # Handling of the options.
20457   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20458     ac_cs_recheck=: ;;
20459   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20460     $as_echo "$ac_cs_version"; exit ;;
20461   --debug | --debu | --deb | --de | --d | -d )
20462     debug=: ;;
20463   --file | --fil | --fi | --f )
20464     $ac_shift
20465     case $ac_optarg in
20466     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20467     esac
20468     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20469     ac_need_defaults=false;;
20470   --header | --heade | --head | --hea )
20471     $ac_shift
20472     case $ac_optarg in
20473     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20474     esac
20475     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20476     ac_need_defaults=false;;
20477   --he | --h)
20478     # Conflict between --help and --header
20479     { $as_echo "$as_me: error: ambiguous option: $1
20480 Try \`$0 --help' for more information." >&2
20481    { (exit 1); exit 1; }; };;
20482   --help | --hel | -h )
20483     $as_echo "$ac_cs_usage"; exit ;;
20484   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20485   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20486     ac_cs_silent=: ;;
20487
20488   # This is an error.
20489   -*) { $as_echo "$as_me: error: unrecognized option: $1
20490 Try \`$0 --help' for more information." >&2
20491    { (exit 1); exit 1; }; } ;;
20492
20493   *) ac_config_targets="$ac_config_targets $1"
20494      ac_need_defaults=false ;;
20495
20496   esac
20497   shift
20498 done
20499
20500 ac_configure_extra_args=
20501
20502 if $ac_cs_silent; then
20503   exec 6>/dev/null
20504   ac_configure_extra_args="$ac_configure_extra_args --silent"
20505 fi
20506
20507 _ACEOF
20508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20509 if \$ac_cs_recheck; then
20510   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20511   shift
20512   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20513   CONFIG_SHELL='$SHELL'
20514   export CONFIG_SHELL
20515   exec "\$@"
20516 fi
20517
20518 _ACEOF
20519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20520 exec 5>>config.log
20521 {
20522   echo
20523   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20524 ## Running $as_me. ##
20525 _ASBOX
20526   $as_echo "$ac_log"
20527 } >&5
20528
20529 _ACEOF
20530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20531 #
20532 # INIT-COMMANDS
20533 #
20534 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20535
20536
20537 # The HP-UX ksh and POSIX shell print the target directory to stdout
20538 # if CDPATH is set.
20539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20540
20541 sed_quote_subst='$sed_quote_subst'
20542 double_quote_subst='$double_quote_subst'
20543 delay_variable_subst='$delay_variable_subst'
20544 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20545 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20546 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20547 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20548 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20549 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20550 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20551 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20552 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20553 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20554 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20555 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20556 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20557 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20558 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20559 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20560 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20561 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20562 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20563 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20564 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20565 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20566 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20567 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20568 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20569 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20570 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20571 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20572 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20573 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20574 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20575 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20576 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20577 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20578 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20579 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20580 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20581 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20582 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20583 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20584 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20585 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20586 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20587 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20588 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"`'
20589 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"`'
20590 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20591 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20592 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20593 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20594 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20595 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20596 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20597 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20598 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20599 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20600 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20601 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20602 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20603 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20604 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20605 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20606 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20607 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20608 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20609 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20610 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20611 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20612 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20613 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20614 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20615 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20616 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20617 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20618 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20619 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20620 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20621 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20622 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20623 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20624 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20625 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20626 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20627 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20628 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20629 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20630 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20631 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20632 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20633 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20634 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20635 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20636 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20637 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20638 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20639 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20640 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20641 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20642 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20643 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20644 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20645 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20646 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20647 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20648 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20649 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20650 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20651 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20652 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20653 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20654 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20655 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20656 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20657 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20658 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20659 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20660 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20661 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20662
20663 LTCC='$LTCC'
20664 LTCFLAGS='$LTCFLAGS'
20665 compiler='$compiler_DEFAULT'
20666
20667 # Quote evaled strings.
20668 for var in SED \
20669 GREP \
20670 EGREP \
20671 FGREP \
20672 LD \
20673 NM \
20674 LN_S \
20675 lt_SP2NL \
20676 lt_NL2SP \
20677 reload_flag \
20678 OBJDUMP \
20679 deplibs_check_method \
20680 file_magic_cmd \
20681 AR \
20682 AR_FLAGS \
20683 STRIP \
20684 RANLIB \
20685 CC \
20686 CFLAGS \
20687 compiler \
20688 lt_cv_sys_global_symbol_pipe \
20689 lt_cv_sys_global_symbol_to_cdecl \
20690 lt_cv_sys_global_symbol_to_c_name_address \
20691 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20692 SHELL \
20693 ECHO \
20694 lt_prog_compiler_no_builtin_flag \
20695 lt_prog_compiler_wl \
20696 lt_prog_compiler_pic \
20697 lt_prog_compiler_static \
20698 lt_cv_prog_compiler_c_o \
20699 need_locks \
20700 DSYMUTIL \
20701 NMEDIT \
20702 LIPO \
20703 OTOOL \
20704 OTOOL64 \
20705 shrext_cmds \
20706 export_dynamic_flag_spec \
20707 whole_archive_flag_spec \
20708 compiler_needs_object \
20709 with_gnu_ld \
20710 allow_undefined_flag \
20711 no_undefined_flag \
20712 hardcode_libdir_flag_spec \
20713 hardcode_libdir_flag_spec_ld \
20714 hardcode_libdir_separator \
20715 fix_srcfile_path \
20716 exclude_expsyms \
20717 include_expsyms \
20718 file_list_spec \
20719 variables_saved_for_relink \
20720 libname_spec \
20721 library_names_spec \
20722 soname_spec \
20723 finish_eval \
20724 old_striplib \
20725 striplib; do
20726     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20727     *[\\\\\\\`\\"\\\$]*)
20728       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20729       ;;
20730     *)
20731       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20732       ;;
20733     esac
20734 done
20735
20736 # Double-quote double-evaled strings.
20737 for var in reload_cmds \
20738 old_postinstall_cmds \
20739 old_postuninstall_cmds \
20740 old_archive_cmds \
20741 extract_expsyms_cmds \
20742 old_archive_from_new_cmds \
20743 old_archive_from_expsyms_cmds \
20744 archive_cmds \
20745 archive_expsym_cmds \
20746 module_cmds \
20747 module_expsym_cmds \
20748 export_symbols_cmds \
20749 prelink_cmds \
20750 postinstall_cmds \
20751 postuninstall_cmds \
20752 finish_cmds \
20753 sys_lib_search_path_spec \
20754 sys_lib_dlsearch_path_spec; do
20755     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20756     *[\\\\\\\`\\"\\\$]*)
20757       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20758       ;;
20759     *)
20760       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20761       ;;
20762     esac
20763 done
20764
20765 # Fix-up fallback echo if it was mangled by the above quoting rules.
20766 case \$lt_ECHO in
20767 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20768   ;;
20769 esac
20770
20771 ac_aux_dir='$ac_aux_dir'
20772 xsi_shell='$xsi_shell'
20773 lt_shell_append='$lt_shell_append'
20774
20775 # See if we are running on zsh, and set the options which allow our
20776 # commands through without removal of \ escapes INIT.
20777 if test -n "\${ZSH_VERSION+set}" ; then
20778    setopt NO_GLOB_SUBST
20779 fi
20780
20781
20782     PACKAGE='$PACKAGE'
20783     VERSION='$VERSION'
20784     TIMESTAMP='$TIMESTAMP'
20785     RM='$RM'
20786     ofile='$ofile'
20787
20788
20789
20790
20791 _ACEOF
20792
20793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20794
20795 # Handling of arguments.
20796 for ac_config_target in $ac_config_targets
20797 do
20798   case $ac_config_target in
20799     "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
20800     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20801     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20802     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20803     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20804     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20805     "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
20806     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20807     "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
20808     "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
20809     "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
20810     "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
20811     "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
20812     "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
20813     "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
20814     "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
20815     "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
20816     "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
20817     "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
20818     "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
20819     "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
20820     "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
20821     "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
20822     "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
20823     "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
20824     "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
20825     "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
20826     "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
20827     "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
20828     "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
20829     "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
20830     "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
20831     "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
20832     "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
20833     "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
20834     "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
20835     "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
20836     "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
20837     "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
20838     "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
20839     "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
20840     "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
20841     "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
20842     "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
20843     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20844     "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
20845     "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
20846     "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
20847     "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
20848     "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
20849     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20850     "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
20851     "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
20852     "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
20853     "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
20854     "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
20855     "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
20856     "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
20857     "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
20858
20859   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20860 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20861    { (exit 1); exit 1; }; };;
20862   esac
20863 done
20864
20865
20866 # If the user did not use the arguments to specify the items to instantiate,
20867 # then the envvar interface is used.  Set only those that are not.
20868 # We use the long form for the default assignment because of an extremely
20869 # bizarre bug on SunOS 4.1.3.
20870 if $ac_need_defaults; then
20871   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20872   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20873   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20874 fi
20875
20876 # Have a temporary directory for convenience.  Make it in the build tree
20877 # simply because there is no reason against having it here, and in addition,
20878 # creating and moving files from /tmp can sometimes cause problems.
20879 # Hook for its removal unless debugging.
20880 # Note that there is a small window in which the directory will not be cleaned:
20881 # after its creation but before its name has been assigned to `$tmp'.
20882 $debug ||
20883 {
20884   tmp=
20885   trap 'exit_status=$?
20886   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20887 ' 0
20888   trap '{ (exit 1); exit 1; }' 1 2 13 15
20889 }
20890 # Create a (secure) tmp directory for tmp files.
20891
20892 {
20893   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20894   test -n "$tmp" && test -d "$tmp"
20895 }  ||
20896 {
20897   tmp=./conf$$-$RANDOM
20898   (umask 077 && mkdir "$tmp")
20899 } ||
20900 {
20901    $as_echo "$as_me: cannot create a temporary directory in ." >&2
20902    { (exit 1); exit 1; }
20903 }
20904
20905 # Set up the scripts for CONFIG_FILES section.
20906 # No need to generate them if there are no CONFIG_FILES.
20907 # This happens for instance with `./config.status config.h'.
20908 if test -n "$CONFIG_FILES"; then
20909
20910
20911 ac_cr='\r'
20912 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20913 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20914   ac_cs_awk_cr='\\r'
20915 else
20916   ac_cs_awk_cr=$ac_cr
20917 fi
20918
20919 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20920 _ACEOF
20921
20922
20923 {
20924   echo "cat >conf$$subs.awk <<_ACEOF" &&
20925   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20926   echo "_ACEOF"
20927 } >conf$$subs.sh ||
20928   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20929 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20930    { (exit 1); exit 1; }; }
20931 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20932 ac_delim='%!_!# '
20933 for ac_last_try in false false false false false :; do
20934   . ./conf$$subs.sh ||
20935     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20936 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20937    { (exit 1); exit 1; }; }
20938
20939   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20940   if test $ac_delim_n = $ac_delim_num; then
20941     break
20942   elif $ac_last_try; then
20943     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20944 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20945    { (exit 1); exit 1; }; }
20946   else
20947     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20948   fi
20949 done
20950 rm -f conf$$subs.sh
20951
20952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20953 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20954 _ACEOF
20955 sed -n '
20956 h
20957 s/^/S["/; s/!.*/"]=/
20958 p
20959 g
20960 s/^[^!]*!//
20961 :repl
20962 t repl
20963 s/'"$ac_delim"'$//
20964 t delim
20965 :nl
20966 h
20967 s/\(.\{148\}\).*/\1/
20968 t more1
20969 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20970 p
20971 n
20972 b repl
20973 :more1
20974 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20975 p
20976 g
20977 s/.\{148\}//
20978 t nl
20979 :delim
20980 h
20981 s/\(.\{148\}\).*/\1/
20982 t more2
20983 s/["\\]/\\&/g; s/^/"/; s/$/"/
20984 p
20985 b
20986 :more2
20987 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20988 p
20989 g
20990 s/.\{148\}//
20991 t delim
20992 ' <conf$$subs.awk | sed '
20993 /^[^""]/{
20994   N
20995   s/\n//
20996 }
20997 ' >>$CONFIG_STATUS || ac_write_fail=1
20998 rm -f conf$$subs.awk
20999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21000 _ACAWK
21001 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21002   for (key in S) S_is_set[key] = 1
21003   FS = "\a"
21004
21005 }
21006 {
21007   line = $ 0
21008   nfields = split(line, field, "@")
21009   substed = 0
21010   len = length(field[1])
21011   for (i = 2; i < nfields; i++) {
21012     key = field[i]
21013     keylen = length(key)
21014     if (S_is_set[key]) {
21015       value = S[key]
21016       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21017       len += length(value) + length(field[++i])
21018       substed = 1
21019     } else
21020       len += 1 + keylen
21021   }
21022
21023   print line
21024 }
21025
21026 _ACAWK
21027 _ACEOF
21028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21029 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21030   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21031 else
21032   cat
21033 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21034   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21035 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21036    { (exit 1); exit 1; }; }
21037 _ACEOF
21038
21039 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21040 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21041 # trailing colons and then remove the whole line if VPATH becomes empty
21042 # (actually we leave an empty line to preserve line numbers).
21043 if test "x$srcdir" = x.; then
21044   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21045 s/:*\$(srcdir):*/:/
21046 s/:*\${srcdir}:*/:/
21047 s/:*@srcdir@:*/:/
21048 s/^\([^=]*=[     ]*\):*/\1/
21049 s/:*$//
21050 s/^[^=]*=[       ]*$//
21051 }'
21052 fi
21053
21054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21055 fi # test -n "$CONFIG_FILES"
21056
21057 # Set up the scripts for CONFIG_HEADERS section.
21058 # No need to generate them if there are no CONFIG_HEADERS.
21059 # This happens for instance with `./config.status Makefile'.
21060 if test -n "$CONFIG_HEADERS"; then
21061 cat >"$tmp/defines.awk" <<\_ACAWK ||
21062 BEGIN {
21063 _ACEOF
21064
21065 # Transform confdefs.h into an awk script `defines.awk', embedded as
21066 # here-document in config.status, that substitutes the proper values into
21067 # config.h.in to produce config.h.
21068
21069 # Create a delimiter string that does not exist in confdefs.h, to ease
21070 # handling of long lines.
21071 ac_delim='%!_!# '
21072 for ac_last_try in false false :; do
21073   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21074   if test -z "$ac_t"; then
21075     break
21076   elif $ac_last_try; then
21077     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21078 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21079    { (exit 1); exit 1; }; }
21080   else
21081     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21082   fi
21083 done
21084
21085 # For the awk script, D is an array of macro values keyed by name,
21086 # likewise P contains macro parameters if any.  Preserve backslash
21087 # newline sequences.
21088
21089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21090 sed -n '
21091 s/.\{148\}/&'"$ac_delim"'/g
21092 t rset
21093 :rset
21094 s/^[     ]*#[    ]*define[       ][      ]*/ /
21095 t def
21096 d
21097 :def
21098 s/\\$//
21099 t bsnl
21100 s/["\\]/\\&/g
21101 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21102 D["\1"]=" \3"/p
21103 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21104 d
21105 :bsnl
21106 s/["\\]/\\&/g
21107 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21108 D["\1"]=" \3\\\\\\n"\\/p
21109 t cont
21110 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21111 t cont
21112 d
21113 :cont
21114 n
21115 s/.\{148\}/&'"$ac_delim"'/g
21116 t clear
21117 :clear
21118 s/\\$//
21119 t bsnlc
21120 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21121 d
21122 :bsnlc
21123 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21124 b cont
21125 ' <confdefs.h | sed '
21126 s/'"$ac_delim"'/"\\\
21127 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21128
21129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21130   for (key in D) D_is_set[key] = 1
21131   FS = "\a"
21132 }
21133 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21134   line = \$ 0
21135   split(line, arg, " ")
21136   if (arg[1] == "#") {
21137     defundef = arg[2]
21138     mac1 = arg[3]
21139   } else {
21140     defundef = substr(arg[1], 2)
21141     mac1 = arg[2]
21142   }
21143   split(mac1, mac2, "(") #)
21144   macro = mac2[1]
21145   prefix = substr(line, 1, index(line, defundef) - 1)
21146   if (D_is_set[macro]) {
21147     # Preserve the white space surrounding the "#".
21148     print prefix "define", macro P[macro] D[macro]
21149     next
21150   } else {
21151     # Replace #undef with comments.  This is necessary, for example,
21152     # in the case of _POSIX_SOURCE, which is predefined and required
21153     # on some systems where configure will not decide to define it.
21154     if (defundef == "undef") {
21155       print "/*", prefix defundef, macro, "*/"
21156       next
21157     }
21158   }
21159 }
21160 { print }
21161 _ACAWK
21162 _ACEOF
21163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21164   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21165 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21166    { (exit 1); exit 1; }; }
21167 fi # test -n "$CONFIG_HEADERS"
21168
21169
21170 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21171 shift
21172 for ac_tag
21173 do
21174   case $ac_tag in
21175   :[FHLC]) ac_mode=$ac_tag; continue;;
21176   esac
21177   case $ac_mode$ac_tag in
21178   :[FHL]*:*);;
21179   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21180 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21181    { (exit 1); exit 1; }; };;
21182   :[FH]-) ac_tag=-:-;;
21183   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21184   esac
21185   ac_save_IFS=$IFS
21186   IFS=:
21187   set x $ac_tag
21188   IFS=$ac_save_IFS
21189   shift
21190   ac_file=$1
21191   shift
21192
21193   case $ac_mode in
21194   :L) ac_source=$1;;
21195   :[FH])
21196     ac_file_inputs=
21197     for ac_f
21198     do
21199       case $ac_f in
21200       -) ac_f="$tmp/stdin";;
21201       *) # Look for the file first in the build tree, then in the source tree
21202          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21203          # because $ac_f cannot contain `:'.
21204          test -f "$ac_f" ||
21205            case $ac_f in
21206            [\\/$]*) false;;
21207            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21208            esac ||
21209            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21210 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21211    { (exit 1); exit 1; }; };;
21212       esac
21213       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21214       ac_file_inputs="$ac_file_inputs '$ac_f'"
21215     done
21216
21217     # Let's still pretend it is `configure' which instantiates (i.e., don't
21218     # use $as_me), people would be surprised to read:
21219     #    /* config.h.  Generated by config.status.  */
21220     configure_input='Generated from '`
21221           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21222         `' by configure.'
21223     if test x"$ac_file" != x-; then
21224       configure_input="$ac_file.  $configure_input"
21225       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21226 $as_echo "$as_me: creating $ac_file" >&6;}
21227     fi
21228     # Neutralize special characters interpreted by sed in replacement strings.
21229     case $configure_input in #(
21230     *\&* | *\|* | *\\* )
21231        ac_sed_conf_input=`$as_echo "$configure_input" |
21232        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21233     *) ac_sed_conf_input=$configure_input;;
21234     esac
21235
21236     case $ac_tag in
21237     *:-:* | *:-) cat >"$tmp/stdin" \
21238       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21239 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21240    { (exit 1); exit 1; }; } ;;
21241     esac
21242     ;;
21243   esac
21244
21245   ac_dir=`$as_dirname -- "$ac_file" ||
21246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21247          X"$ac_file" : 'X\(//\)[^/]' \| \
21248          X"$ac_file" : 'X\(//\)$' \| \
21249          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21250 $as_echo X"$ac_file" |
21251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21252             s//\1/
21253             q
21254           }
21255           /^X\(\/\/\)[^/].*/{
21256             s//\1/
21257             q
21258           }
21259           /^X\(\/\/\)$/{
21260             s//\1/
21261             q
21262           }
21263           /^X\(\/\).*/{
21264             s//\1/
21265             q
21266           }
21267           s/.*/./; q'`
21268   { as_dir="$ac_dir"
21269   case $as_dir in #(
21270   -*) as_dir=./$as_dir;;
21271   esac
21272   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21273     as_dirs=
21274     while :; do
21275       case $as_dir in #(
21276       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21277       *) as_qdir=$as_dir;;
21278       esac
21279       as_dirs="'$as_qdir' $as_dirs"
21280       as_dir=`$as_dirname -- "$as_dir" ||
21281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21282          X"$as_dir" : 'X\(//\)[^/]' \| \
21283          X"$as_dir" : 'X\(//\)$' \| \
21284          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21285 $as_echo X"$as_dir" |
21286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21287             s//\1/
21288             q
21289           }
21290           /^X\(\/\/\)[^/].*/{
21291             s//\1/
21292             q
21293           }
21294           /^X\(\/\/\)$/{
21295             s//\1/
21296             q
21297           }
21298           /^X\(\/\).*/{
21299             s//\1/
21300             q
21301           }
21302           s/.*/./; q'`
21303       test -d "$as_dir" && break
21304     done
21305     test -z "$as_dirs" || eval "mkdir $as_dirs"
21306   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21307 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21308    { (exit 1); exit 1; }; }; }
21309   ac_builddir=.
21310
21311 case "$ac_dir" in
21312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21313 *)
21314   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21315   # A ".." for each directory in $ac_dir_suffix.
21316   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21317   case $ac_top_builddir_sub in
21318   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21319   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21320   esac ;;
21321 esac
21322 ac_abs_top_builddir=$ac_pwd
21323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21324 # for backward compatibility:
21325 ac_top_builddir=$ac_top_build_prefix
21326
21327 case $srcdir in
21328   .)  # We are building in place.
21329     ac_srcdir=.
21330     ac_top_srcdir=$ac_top_builddir_sub
21331     ac_abs_top_srcdir=$ac_pwd ;;
21332   [\\/]* | ?:[\\/]* )  # Absolute name.
21333     ac_srcdir=$srcdir$ac_dir_suffix;
21334     ac_top_srcdir=$srcdir
21335     ac_abs_top_srcdir=$srcdir ;;
21336   *) # Relative name.
21337     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21338     ac_top_srcdir=$ac_top_build_prefix$srcdir
21339     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21340 esac
21341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21342
21343
21344   case $ac_mode in
21345   :F)
21346   #
21347   # CONFIG_FILE
21348   #
21349
21350   case $INSTALL in
21351   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21352   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21353   esac
21354   ac_MKDIR_P=$MKDIR_P
21355   case $MKDIR_P in
21356   [\\/$]* | ?:[\\/]* ) ;;
21357   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21358   esac
21359 _ACEOF
21360
21361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21362 # If the template does not know about datarootdir, expand it.
21363 # FIXME: This hack should be removed a few years after 2.60.
21364 ac_datarootdir_hack=; ac_datarootdir_seen=
21365
21366 ac_sed_dataroot='
21367 /datarootdir/ {
21368   p
21369   q
21370 }
21371 /@datadir@/p
21372 /@docdir@/p
21373 /@infodir@/p
21374 /@localedir@/p
21375 /@mandir@/p
21376 '
21377 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21378 *datarootdir*) ac_datarootdir_seen=yes;;
21379 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21380   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21381 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21382 _ACEOF
21383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21384   ac_datarootdir_hack='
21385   s&@datadir@&$datadir&g
21386   s&@docdir@&$docdir&g
21387   s&@infodir@&$infodir&g
21388   s&@localedir@&$localedir&g
21389   s&@mandir@&$mandir&g
21390     s&\\\${datarootdir}&$datarootdir&g' ;;
21391 esac
21392 _ACEOF
21393
21394 # Neutralize VPATH when `$srcdir' = `.'.
21395 # Shell code in configure.ac might set extrasub.
21396 # FIXME: do we really want to maintain this feature?
21397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21398 ac_sed_extra="$ac_vpsub
21399 $extrasub
21400 _ACEOF
21401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21402 :t
21403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21404 s|@configure_input@|$ac_sed_conf_input|;t t
21405 s&@top_builddir@&$ac_top_builddir_sub&;t t
21406 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21407 s&@srcdir@&$ac_srcdir&;t t
21408 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21409 s&@top_srcdir@&$ac_top_srcdir&;t t
21410 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21411 s&@builddir@&$ac_builddir&;t t
21412 s&@abs_builddir@&$ac_abs_builddir&;t t
21413 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21414 s&@INSTALL@&$ac_INSTALL&;t t
21415 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21416 $ac_datarootdir_hack
21417 "
21418 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21419   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21420 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21421    { (exit 1); exit 1; }; }
21422
21423 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21424   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21425   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21426   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21427 which seems to be undefined.  Please make sure it is defined." >&5
21428 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21429 which seems to be undefined.  Please make sure it is defined." >&2;}
21430
21431   rm -f "$tmp/stdin"
21432   case $ac_file in
21433   -) cat "$tmp/out" && rm -f "$tmp/out";;
21434   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21435   esac \
21436   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21437 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21438    { (exit 1); exit 1; }; }
21439  ;;
21440   :H)
21441   #
21442   # CONFIG_HEADER
21443   #
21444   if test x"$ac_file" != x-; then
21445     {
21446       $as_echo "/* $configure_input  */" \
21447       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21448     } >"$tmp/config.h" \
21449       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21451    { (exit 1); exit 1; }; }
21452     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21453       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21454 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21455     else
21456       rm -f "$ac_file"
21457       mv "$tmp/config.h" "$ac_file" \
21458         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21459 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21460    { (exit 1); exit 1; }; }
21461     fi
21462   else
21463     $as_echo "/* $configure_input  */" \
21464       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21465       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21466 $as_echo "$as_me: error: could not create -" >&2;}
21467    { (exit 1); exit 1; }; }
21468   fi
21469 # Compute "$ac_file"'s index in $config_headers.
21470 _am_arg="$ac_file"
21471 _am_stamp_count=1
21472 for _am_header in $config_headers :; do
21473   case $_am_header in
21474     $_am_arg | $_am_arg:* )
21475       break ;;
21476     * )
21477       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21478   esac
21479 done
21480 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21481 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21482          X"$_am_arg" : 'X\(//\)[^/]' \| \
21483          X"$_am_arg" : 'X\(//\)$' \| \
21484          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21485 $as_echo X"$_am_arg" |
21486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21487             s//\1/
21488             q
21489           }
21490           /^X\(\/\/\)[^/].*/{
21491             s//\1/
21492             q
21493           }
21494           /^X\(\/\/\)$/{
21495             s//\1/
21496             q
21497           }
21498           /^X\(\/\).*/{
21499             s//\1/
21500             q
21501           }
21502           s/.*/./; q'`/stamp-h$_am_stamp_count
21503  ;;
21504
21505   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21506 $as_echo "$as_me: executing $ac_file commands" >&6;}
21507  ;;
21508   esac
21509
21510
21511   case $ac_file$ac_mode in
21512     "zfs_config.h":H)
21513         (mv zfs_config.h zfs_config.h.tmp &&
21514         awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
21515         rm zfs_config.h.tmp) || exit 1 ;;
21516     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21517   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21518   # are listed without --file.  Let's play safe and only enable the eval
21519   # if we detect the quoting.
21520   case $CONFIG_FILES in
21521   *\'*) eval set x "$CONFIG_FILES" ;;
21522   *)   set x $CONFIG_FILES ;;
21523   esac
21524   shift
21525   for mf
21526   do
21527     # Strip MF so we end up with the name of the file.
21528     mf=`echo "$mf" | sed -e 's/:.*$//'`
21529     # Check whether this is an Automake generated Makefile or not.
21530     # We used to match only the files named `Makefile.in', but
21531     # some people rename them; so instead we look at the file content.
21532     # Grep'ing the first line is not enough: some people post-process
21533     # each Makefile.in and add a new line on top of each file to say so.
21534     # Grep'ing the whole file is not good either: AIX grep has a line
21535     # limit of 2048, but all sed's we know have understand at least 4000.
21536     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21537       dirpart=`$as_dirname -- "$mf" ||
21538 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21539          X"$mf" : 'X\(//\)[^/]' \| \
21540          X"$mf" : 'X\(//\)$' \| \
21541          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21542 $as_echo X"$mf" |
21543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21544             s//\1/
21545             q
21546           }
21547           /^X\(\/\/\)[^/].*/{
21548             s//\1/
21549             q
21550           }
21551           /^X\(\/\/\)$/{
21552             s//\1/
21553             q
21554           }
21555           /^X\(\/\).*/{
21556             s//\1/
21557             q
21558           }
21559           s/.*/./; q'`
21560     else
21561       continue
21562     fi
21563     # Extract the definition of DEPDIR, am__include, and am__quote
21564     # from the Makefile without running `make'.
21565     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21566     test -z "$DEPDIR" && continue
21567     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21568     test -z "am__include" && continue
21569     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21570     # When using ansi2knr, U may be empty or an underscore; expand it
21571     U=`sed -n 's/^U = //p' < "$mf"`
21572     # Find all dependency output files, they are included files with
21573     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21574     # simplest approach to changing $(DEPDIR) to its actual value in the
21575     # expansion.
21576     for file in `sed -n "
21577       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21578          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21579       # Make sure the directory exists.
21580       test -f "$dirpart/$file" && continue
21581       fdir=`$as_dirname -- "$file" ||
21582 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21583          X"$file" : 'X\(//\)[^/]' \| \
21584          X"$file" : 'X\(//\)$' \| \
21585          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21586 $as_echo X"$file" |
21587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21588             s//\1/
21589             q
21590           }
21591           /^X\(\/\/\)[^/].*/{
21592             s//\1/
21593             q
21594           }
21595           /^X\(\/\/\)$/{
21596             s//\1/
21597             q
21598           }
21599           /^X\(\/\).*/{
21600             s//\1/
21601             q
21602           }
21603           s/.*/./; q'`
21604       { as_dir=$dirpart/$fdir
21605   case $as_dir in #(
21606   -*) as_dir=./$as_dir;;
21607   esac
21608   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21609     as_dirs=
21610     while :; do
21611       case $as_dir in #(
21612       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21613       *) as_qdir=$as_dir;;
21614       esac
21615       as_dirs="'$as_qdir' $as_dirs"
21616       as_dir=`$as_dirname -- "$as_dir" ||
21617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21618          X"$as_dir" : 'X\(//\)[^/]' \| \
21619          X"$as_dir" : 'X\(//\)$' \| \
21620          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21621 $as_echo X"$as_dir" |
21622     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21623             s//\1/
21624             q
21625           }
21626           /^X\(\/\/\)[^/].*/{
21627             s//\1/
21628             q
21629           }
21630           /^X\(\/\/\)$/{
21631             s//\1/
21632             q
21633           }
21634           /^X\(\/\).*/{
21635             s//\1/
21636             q
21637           }
21638           s/.*/./; q'`
21639       test -d "$as_dir" && break
21640     done
21641     test -z "$as_dirs" || eval "mkdir $as_dirs"
21642   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21643 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21644    { (exit 1); exit 1; }; }; }
21645       # echo "creating $dirpart/$file"
21646       echo '# dummy' > "$dirpart/$file"
21647     done
21648   done
21649 }
21650  ;;
21651     "libtool":C)
21652
21653     # See if we are running on zsh, and set the options which allow our
21654     # commands through without removal of \ escapes.
21655     if test -n "${ZSH_VERSION+set}" ; then
21656       setopt NO_GLOB_SUBST
21657     fi
21658
21659     cfgfile="${ofile}T"
21660     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21661     $RM "$cfgfile"
21662
21663     cat <<_LT_EOF >> "$cfgfile"
21664 #! $SHELL
21665
21666 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21667 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21669 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21670 #
21671 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21672 #                 2006, 2007, 2008 Free Software Foundation, Inc.
21673 #   Written by Gordon Matzigkeit, 1996
21674 #
21675 #   This file is part of GNU Libtool.
21676 #
21677 # GNU Libtool is free software; you can redistribute it and/or
21678 # modify it under the terms of the GNU General Public License as
21679 # published by the Free Software Foundation; either version 2 of
21680 # the License, or (at your option) any later version.
21681 #
21682 # As a special exception to the GNU General Public License,
21683 # if you distribute this file as part of a program or library that
21684 # is built using GNU Libtool, you may include this file under the
21685 # same distribution terms that you use for the rest of that program.
21686 #
21687 # GNU Libtool is distributed in the hope that it will be useful,
21688 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21689 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21690 # GNU General Public License for more details.
21691 #
21692 # You should have received a copy of the GNU General Public License
21693 # along with GNU Libtool; see the file COPYING.  If not, a copy
21694 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21695 # obtained by writing to the Free Software Foundation, Inc.,
21696 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21697
21698
21699 # The names of the tagged configurations supported by this script.
21700 available_tags=""
21701
21702 # ### BEGIN LIBTOOL CONFIG
21703
21704 # Which release of libtool.m4 was used?
21705 macro_version=$macro_version
21706 macro_revision=$macro_revision
21707
21708 # Whether or not to build shared libraries.
21709 build_libtool_libs=$enable_shared
21710
21711 # Whether or not to build static libraries.
21712 build_old_libs=$enable_static
21713
21714 # What type of objects to build.
21715 pic_mode=$pic_mode
21716
21717 # Whether or not to optimize for fast installation.
21718 fast_install=$enable_fast_install
21719
21720 # The host system.
21721 host_alias=$host_alias
21722 host=$host
21723 host_os=$host_os
21724
21725 # The build system.
21726 build_alias=$build_alias
21727 build=$build
21728 build_os=$build_os
21729
21730 # A sed program that does not truncate output.
21731 SED=$lt_SED
21732
21733 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21734 Xsed="\$SED -e 1s/^X//"
21735
21736 # A grep program that handles long lines.
21737 GREP=$lt_GREP
21738
21739 # An ERE matcher.
21740 EGREP=$lt_EGREP
21741
21742 # A literal string matcher.
21743 FGREP=$lt_FGREP
21744
21745 # A BSD- or MS-compatible name lister.
21746 NM=$lt_NM
21747
21748 # Whether we need soft or hard links.
21749 LN_S=$lt_LN_S
21750
21751 # What is the maximum length of a command?
21752 max_cmd_len=$max_cmd_len
21753
21754 # Object file suffix (normally "o").
21755 objext=$ac_objext
21756
21757 # Executable file suffix (normally "").
21758 exeext=$exeext
21759
21760 # whether the shell understands "unset".
21761 lt_unset=$lt_unset
21762
21763 # turn spaces into newlines.
21764 SP2NL=$lt_lt_SP2NL
21765
21766 # turn newlines into spaces.
21767 NL2SP=$lt_lt_NL2SP
21768
21769 # How to create reloadable object files.
21770 reload_flag=$lt_reload_flag
21771 reload_cmds=$lt_reload_cmds
21772
21773 # An object symbol dumper.
21774 OBJDUMP=$lt_OBJDUMP
21775
21776 # Method to check whether dependent libraries are shared objects.
21777 deplibs_check_method=$lt_deplibs_check_method
21778
21779 # Command to use when deplibs_check_method == "file_magic".
21780 file_magic_cmd=$lt_file_magic_cmd
21781
21782 # The archiver.
21783 AR=$lt_AR
21784 AR_FLAGS=$lt_AR_FLAGS
21785
21786 # A symbol stripping program.
21787 STRIP=$lt_STRIP
21788
21789 # Commands used to install an old-style archive.
21790 RANLIB=$lt_RANLIB
21791 old_postinstall_cmds=$lt_old_postinstall_cmds
21792 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21793
21794 # A C compiler.
21795 LTCC=$lt_CC
21796
21797 # LTCC compiler flags.
21798 LTCFLAGS=$lt_CFLAGS
21799
21800 # Take the output of nm and produce a listing of raw symbols and C names.
21801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21802
21803 # Transform the output of nm in a proper C declaration.
21804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21805
21806 # Transform the output of nm in a C name address pair.
21807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21808
21809 # Transform the output of nm in a C name address pair when lib prefix is needed.
21810 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21811
21812 # The name of the directory that contains temporary libtool files.
21813 objdir=$objdir
21814
21815 # Shell to use when invoking shell scripts.
21816 SHELL=$lt_SHELL
21817
21818 # An echo program that does not interpret backslashes.
21819 ECHO=$lt_ECHO
21820
21821 # Used to examine libraries when file_magic_cmd begins with "file".
21822 MAGIC_CMD=$MAGIC_CMD
21823
21824 # Must we lock files when doing compilation?
21825 need_locks=$lt_need_locks
21826
21827 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21828 DSYMUTIL=$lt_DSYMUTIL
21829
21830 # Tool to change global to local symbols on Mac OS X.
21831 NMEDIT=$lt_NMEDIT
21832
21833 # Tool to manipulate fat objects and archives on Mac OS X.
21834 LIPO=$lt_LIPO
21835
21836 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21837 OTOOL=$lt_OTOOL
21838
21839 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21840 OTOOL64=$lt_OTOOL64
21841
21842 # Old archive suffix (normally "a").
21843 libext=$libext
21844
21845 # Shared library suffix (normally ".so").
21846 shrext_cmds=$lt_shrext_cmds
21847
21848 # The commands to extract the exported symbol list from a shared archive.
21849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21850
21851 # Variables whose values should be saved in libtool wrapper scripts and
21852 # restored at link time.
21853 variables_saved_for_relink=$lt_variables_saved_for_relink
21854
21855 # Do we need the "lib" prefix for modules?
21856 need_lib_prefix=$need_lib_prefix
21857
21858 # Do we need a version for libraries?
21859 need_version=$need_version
21860
21861 # Library versioning type.
21862 version_type=$version_type
21863
21864 # Shared library runtime path variable.
21865 runpath_var=$runpath_var
21866
21867 # Shared library path variable.
21868 shlibpath_var=$shlibpath_var
21869
21870 # Is shlibpath searched before the hard-coded library search path?
21871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21872
21873 # Format of library name prefix.
21874 libname_spec=$lt_libname_spec
21875
21876 # List of archive names.  First name is the real one, the rest are links.
21877 # The last name is the one that the linker finds with -lNAME
21878 library_names_spec=$lt_library_names_spec
21879
21880 # The coded name of the library, if different from the real name.
21881 soname_spec=$lt_soname_spec
21882
21883 # Command to use after installation of a shared archive.
21884 postinstall_cmds=$lt_postinstall_cmds
21885
21886 # Command to use after uninstallation of a shared archive.
21887 postuninstall_cmds=$lt_postuninstall_cmds
21888
21889 # Commands used to finish a libtool library installation in a directory.
21890 finish_cmds=$lt_finish_cmds
21891
21892 # As "finish_cmds", except a single script fragment to be evaled but
21893 # not shown.
21894 finish_eval=$lt_finish_eval
21895
21896 # Whether we should hardcode library paths into libraries.
21897 hardcode_into_libs=$hardcode_into_libs
21898
21899 # Compile-time system search path for libraries.
21900 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21901
21902 # Run-time system search path for libraries.
21903 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21904
21905 # Whether dlopen is supported.
21906 dlopen_support=$enable_dlopen
21907
21908 # Whether dlopen of programs is supported.
21909 dlopen_self=$enable_dlopen_self
21910
21911 # Whether dlopen of statically linked programs is supported.
21912 dlopen_self_static=$enable_dlopen_self_static
21913
21914 # Commands to strip libraries.
21915 old_striplib=$lt_old_striplib
21916 striplib=$lt_striplib
21917
21918
21919 # The linker used to build libraries.
21920 LD=$lt_LD
21921
21922 # Commands used to build an old-style archive.
21923 old_archive_cmds=$lt_old_archive_cmds
21924
21925 # A language specific compiler.
21926 CC=$lt_compiler
21927
21928 # Is the compiler the GNU compiler?
21929 with_gcc=$GCC
21930
21931 # Compiler flag to turn off builtin functions.
21932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21933
21934 # How to pass a linker flag through the compiler.
21935 wl=$lt_lt_prog_compiler_wl
21936
21937 # Additional compiler flags for building library objects.
21938 pic_flag=$lt_lt_prog_compiler_pic
21939
21940 # Compiler flag to prevent dynamic linking.
21941 link_static_flag=$lt_lt_prog_compiler_static
21942
21943 # Does compiler simultaneously support -c and -o options?
21944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21945
21946 # Whether or not to add -lc for building shared libraries.
21947 build_libtool_need_lc=$archive_cmds_need_lc
21948
21949 # Whether or not to disallow shared libs when runtime libs are static.
21950 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21951
21952 # Compiler flag to allow reflexive dlopens.
21953 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21954
21955 # Compiler flag to generate shared objects directly from archives.
21956 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21957
21958 # Whether the compiler copes with passing no objects directly.
21959 compiler_needs_object=$lt_compiler_needs_object
21960
21961 # Create an old-style archive from a shared archive.
21962 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21963
21964 # Create a temporary old-style archive to link instead of a shared archive.
21965 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21966
21967 # Commands used to build a shared archive.
21968 archive_cmds=$lt_archive_cmds
21969 archive_expsym_cmds=$lt_archive_expsym_cmds
21970
21971 # Commands used to build a loadable module if different from building
21972 # a shared archive.
21973 module_cmds=$lt_module_cmds
21974 module_expsym_cmds=$lt_module_expsym_cmds
21975
21976 # Whether we are building with GNU ld or not.
21977 with_gnu_ld=$lt_with_gnu_ld
21978
21979 # Flag that allows shared libraries with undefined symbols to be built.
21980 allow_undefined_flag=$lt_allow_undefined_flag
21981
21982 # Flag that enforces no undefined symbols.
21983 no_undefined_flag=$lt_no_undefined_flag
21984
21985 # Flag to hardcode \$libdir into a binary during linking.
21986 # This must work even if \$libdir does not exist
21987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21988
21989 # If ld is used when linking, flag to hardcode \$libdir into a binary
21990 # during linking.  This must work even if \$libdir does not exist.
21991 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21992
21993 # Whether we need a single "-rpath" flag with a separated argument.
21994 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21995
21996 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21997 # DIR into the resulting binary.
21998 hardcode_direct=$hardcode_direct
21999
22000 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22001 # DIR into the resulting binary and the resulting library dependency is
22002 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22003 # library is relocated.
22004 hardcode_direct_absolute=$hardcode_direct_absolute
22005
22006 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22007 # into the resulting binary.
22008 hardcode_minus_L=$hardcode_minus_L
22009
22010 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22011 # into the resulting binary.
22012 hardcode_shlibpath_var=$hardcode_shlibpath_var
22013
22014 # Set to "yes" if building a shared library automatically hardcodes DIR
22015 # into the library and all subsequent libraries and executables linked
22016 # against it.
22017 hardcode_automatic=$hardcode_automatic
22018
22019 # Set to yes if linker adds runtime paths of dependent libraries
22020 # to runtime path list.
22021 inherit_rpath=$inherit_rpath
22022
22023 # Whether libtool must link a program against all its dependency libraries.
22024 link_all_deplibs=$link_all_deplibs
22025
22026 # Fix the shell variable \$srcfile for the compiler.
22027 fix_srcfile_path=$lt_fix_srcfile_path
22028
22029 # Set to "yes" if exported symbols are required.
22030 always_export_symbols=$always_export_symbols
22031
22032 # The commands to list exported symbols.
22033 export_symbols_cmds=$lt_export_symbols_cmds
22034
22035 # Symbols that should not be listed in the preloaded symbols.
22036 exclude_expsyms=$lt_exclude_expsyms
22037
22038 # Symbols that must always be exported.
22039 include_expsyms=$lt_include_expsyms
22040
22041 # Commands necessary for linking programs (against libraries) with templates.
22042 prelink_cmds=$lt_prelink_cmds
22043
22044 # Specify filename containing input files.
22045 file_list_spec=$lt_file_list_spec
22046
22047 # How to hardcode a shared library path into an executable.
22048 hardcode_action=$hardcode_action
22049
22050 # ### END LIBTOOL CONFIG
22051
22052 _LT_EOF
22053
22054   case $host_os in
22055   aix3*)
22056     cat <<\_LT_EOF >> "$cfgfile"
22057 # AIX sometimes has problems with the GCC collect2 program.  For some
22058 # reason, if we set the COLLECT_NAMES environment variable, the problems
22059 # vanish in a puff of smoke.
22060 if test "X${COLLECT_NAMES+set}" != Xset; then
22061   COLLECT_NAMES=
22062   export COLLECT_NAMES
22063 fi
22064 _LT_EOF
22065     ;;
22066   esac
22067
22068
22069 ltmain="$ac_aux_dir/ltmain.sh"
22070
22071
22072   # We use sed instead of cat because bash on DJGPP gets confused if
22073   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22074   # text mode, it properly converts lines to CR/LF.  This bash problem
22075   # is reportedly fixed, but why not run on old versions too?
22076   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22077     || (rm -f "$cfgfile"; exit 1)
22078
22079   case $xsi_shell in
22080   yes)
22081     cat << \_LT_EOF >> "$cfgfile"
22082
22083 # func_dirname file append nondir_replacement
22084 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22085 # otherwise set result to NONDIR_REPLACEMENT.
22086 func_dirname ()
22087 {
22088   case ${1} in
22089     */*) func_dirname_result="${1%/*}${2}" ;;
22090     *  ) func_dirname_result="${3}" ;;
22091   esac
22092 }
22093
22094 # func_basename file
22095 func_basename ()
22096 {
22097   func_basename_result="${1##*/}"
22098 }
22099
22100 # func_dirname_and_basename file append nondir_replacement
22101 # perform func_basename and func_dirname in a single function
22102 # call:
22103 #   dirname:  Compute the dirname of FILE.  If nonempty,
22104 #             add APPEND to the result, otherwise set result
22105 #             to NONDIR_REPLACEMENT.
22106 #             value returned in "$func_dirname_result"
22107 #   basename: Compute filename of FILE.
22108 #             value retuned in "$func_basename_result"
22109 # Implementation must be kept synchronized with func_dirname
22110 # and func_basename. For efficiency, we do not delegate to
22111 # those functions but instead duplicate the functionality here.
22112 func_dirname_and_basename ()
22113 {
22114   case ${1} in
22115     */*) func_dirname_result="${1%/*}${2}" ;;
22116     *  ) func_dirname_result="${3}" ;;
22117   esac
22118   func_basename_result="${1##*/}"
22119 }
22120
22121 # func_stripname prefix suffix name
22122 # strip PREFIX and SUFFIX off of NAME.
22123 # PREFIX and SUFFIX must not contain globbing or regex special
22124 # characters, hashes, percent signs, but SUFFIX may contain a leading
22125 # dot (in which case that matches only a dot).
22126 func_stripname ()
22127 {
22128   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22129   # positional parameters, so assign one to ordinary parameter first.
22130   func_stripname_result=${3}
22131   func_stripname_result=${func_stripname_result#"${1}"}
22132   func_stripname_result=${func_stripname_result%"${2}"}
22133 }
22134
22135 # func_opt_split
22136 func_opt_split ()
22137 {
22138   func_opt_split_opt=${1%%=*}
22139   func_opt_split_arg=${1#*=}
22140 }
22141
22142 # func_lo2o object
22143 func_lo2o ()
22144 {
22145   case ${1} in
22146     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22147     *)    func_lo2o_result=${1} ;;
22148   esac
22149 }
22150
22151 # func_xform libobj-or-source
22152 func_xform ()
22153 {
22154   func_xform_result=${1%.*}.lo
22155 }
22156
22157 # func_arith arithmetic-term...
22158 func_arith ()
22159 {
22160   func_arith_result=$(( $* ))
22161 }
22162
22163 # func_len string
22164 # STRING may not start with a hyphen.
22165 func_len ()
22166 {
22167   func_len_result=${#1}
22168 }
22169
22170 _LT_EOF
22171     ;;
22172   *) # Bourne compatible functions.
22173     cat << \_LT_EOF >> "$cfgfile"
22174
22175 # func_dirname file append nondir_replacement
22176 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22177 # otherwise set result to NONDIR_REPLACEMENT.
22178 func_dirname ()
22179 {
22180   # Extract subdirectory from the argument.
22181   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22182   if test "X$func_dirname_result" = "X${1}"; then
22183     func_dirname_result="${3}"
22184   else
22185     func_dirname_result="$func_dirname_result${2}"
22186   fi
22187 }
22188
22189 # func_basename file
22190 func_basename ()
22191 {
22192   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22193 }
22194
22195
22196 # func_stripname prefix suffix name
22197 # strip PREFIX and SUFFIX off of NAME.
22198 # PREFIX and SUFFIX must not contain globbing or regex special
22199 # characters, hashes, percent signs, but SUFFIX may contain a leading
22200 # dot (in which case that matches only a dot).
22201 # func_strip_suffix prefix name
22202 func_stripname ()
22203 {
22204   case ${2} in
22205     .*) func_stripname_result=`$ECHO "X${3}" \
22206            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22207     *)  func_stripname_result=`$ECHO "X${3}" \
22208            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22209   esac
22210 }
22211
22212 # sed scripts:
22213 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22214 my_sed_long_arg='1s/^-[^=]*=//'
22215
22216 # func_opt_split
22217 func_opt_split ()
22218 {
22219   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22220   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22221 }
22222
22223 # func_lo2o object
22224 func_lo2o ()
22225 {
22226   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22227 }
22228
22229 # func_xform libobj-or-source
22230 func_xform ()
22231 {
22232   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22233 }
22234
22235 # func_arith arithmetic-term...
22236 func_arith ()
22237 {
22238   func_arith_result=`expr "$@"`
22239 }
22240
22241 # func_len string
22242 # STRING may not start with a hyphen.
22243 func_len ()
22244 {
22245   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22246 }
22247
22248 _LT_EOF
22249 esac
22250
22251 case $lt_shell_append in
22252   yes)
22253     cat << \_LT_EOF >> "$cfgfile"
22254
22255 # func_append var value
22256 # Append VALUE to the end of shell variable VAR.
22257 func_append ()
22258 {
22259   eval "$1+=\$2"
22260 }
22261 _LT_EOF
22262     ;;
22263   *)
22264     cat << \_LT_EOF >> "$cfgfile"
22265
22266 # func_append var value
22267 # Append VALUE to the end of shell variable VAR.
22268 func_append ()
22269 {
22270   eval "$1=\$$1\$2"
22271 }
22272
22273 _LT_EOF
22274     ;;
22275   esac
22276
22277
22278   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22279     || (rm -f "$cfgfile"; exit 1)
22280
22281   mv -f "$cfgfile" "$ofile" ||
22282     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22283   chmod +x "$ofile"
22284
22285  ;;
22286
22287   esac
22288 done # for ac_tag
22289
22290
22291 { (exit 0); exit 0; }
22292 _ACEOF
22293 chmod +x $CONFIG_STATUS
22294 ac_clean_files=$ac_clean_files_save
22295
22296 test $ac_write_fail = 0 ||
22297   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22298 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22299    { (exit 1); exit 1; }; }
22300
22301
22302 # configure is writing to config.log, and then calls config.status.
22303 # config.status does its own redirection, appending to config.log.
22304 # Unfortunately, on DOS this fails, as config.log is still kept open
22305 # by configure, so config.status won't be able to write to it; its
22306 # output is simply discarded.  So we exec the FD to /dev/null,
22307 # effectively closing config.log, so it can be properly (re)opened and
22308 # appended to by config.status.  When coming back to configure, we
22309 # need to make the FD available again.
22310 if test "$no_create" != yes; then
22311   ac_cs_success=:
22312   ac_config_status_args=
22313   test "$silent" = yes &&
22314     ac_config_status_args="$ac_config_status_args --quiet"
22315   exec 5>/dev/null
22316   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22317   exec 5>>config.log
22318   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22319   # would make configure fail if this is the last instruction.
22320   $ac_cs_success || { (exit 1); exit 1; }
22321 fi
22322 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22323   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22324 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22325 fi
22326