]> git.proxmox.com Git - mirror_zfs.git/blame - configure
Fix configure tests to play nice with GCC 4.6
[mirror_zfs.git] / configure
CommitLineData
e70e591c
BB
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530else
531 as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604$*
605_LT_EOF
606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764# include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769# include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
790DEBUG_STACKFLAGS
791DEBUG_CFLAGS
792CONFIG_KERNEL_FALSE
793CONFIG_KERNEL_TRUE
794CONFIG_USER_FALSE
795CONFIG_USER_TRUE
796FRAME_LARGER_THAN
b3259b6a 797LIBSELINUX
e70e591c
BB
798LIBBLKID
799LIBUUID
800ZLIB
de0a1c09
BB
801udevruledir
802udevdir
e70e591c
BB
803KERNELCPPFLAGS
804KERNELMAKE_PARAMS
805SPL_SYMBOLS
806SPL_VERSION
807SPL_OBJ
808SPL
809LINUX_SYMBOLS
810LINUX_VERSION
811LINUX_OBJ
812LINUX
2e08aedb 813NO_UNUSED_BUT_SET_VARIABLE
e70e591c
BB
814ZFS_CONFIG
815TARGET_ASM_DIR
01c0e61d 816DEFAULT_INIT_SCRIPT
615ab66d 817DEFAULT_INIT_DIR
e70e591c
BB
818DEFAULT_PACKAGE
819VENDOR
820ALIEN_VERSION
821ALIEN
822HAVE_ALIEN
823DPKGBUILD_VERSION
824DPKGBUILD
825HAVE_DPKGBUILD
826DPKG_VERSION
827DPKG
828HAVE_DPKG
829RPMBUILD_VERSION
830RPMBUILD
831HAVE_RPMBUILD
832RPM_VERSION
833RPM
834HAVE_RPM
835am__fastdepCCAS_FALSE
836am__fastdepCCAS_TRUE
837CCASDEPMODE
838CCASFLAGS
839CCAS
840CPP
841OTOOL64
842OTOOL
843LIPO
844NMEDIT
845DSYMUTIL
846lt_ECHO
847RANLIB
848AR
849OBJDUMP
850LN_S
851NM
852ac_ct_DUMPBIN
853DUMPBIN
854LD
855FGREP
856EGREP
857GREP
858SED
859LIBTOOL
860am__fastdepCC_FALSE
861am__fastdepCC_TRUE
862CCDEPMODE
863AMDEPBACKSLASH
864AMDEP_FALSE
865AMDEP_TRUE
866am__quote
867am__include
868DEPDIR
869OBJEXT
870EXEEXT
871ac_ct_CC
872CPPFLAGS
873LDFLAGS
874CFLAGS
875CC
876am__untar
877am__tar
878AMTAR
879am__leading_dot
880SET_MAKE
881AWK
882mkdir_p
883MKDIR_P
884INSTALL_STRIP_PROGRAM
885STRIP
886install_sh
887MAKEINFO
888AUTOHEADER
889AUTOMAKE
890AUTOCONF
891ACLOCAL
892VERSION
893PACKAGE
894CYGPATH_W
895am__isrc
896INSTALL_DATA
897INSTALL_SCRIPT
898INSTALL_PROGRAM
899AM_BACKSLASH
900AM_DEFAULT_VERBOSITY
901MAINT
902MAINTAINER_MODE_FALSE
903MAINTAINER_MODE_TRUE
904target_os
905target_vendor
906target_cpu
907target
908host_os
909host_vendor
910host_cpu
911host
912build_os
913build_vendor
914build_cpu
915build
916ZFS_META_LT_AGE
917ZFS_META_LT_REVISION
918ZFS_META_LT_CURRENT
919ZFS_META_AUTHOR
920ZFS_META_DATA
921ZFS_META_ALIAS
922ZFS_META_LICENSE
923ZFS_META_RELEASE
924ZFS_META_VERSION
925ZFS_META_NAME
926target_alias
927host_alias
928build_alias
929LIBS
930ECHO_T
931ECHO_N
932ECHO_C
933DEFS
934mandir
935localedir
936libdir
937psdir
938pdfdir
939dvidir
940htmldir
941infodir
942docdir
943oldincludedir
944includedir
945localstatedir
946sharedstatedir
947sysconfdir
948datadir
949datarootdir
950libexecdir
951sbindir
952bindir
953program_transform_name
954prefix
955exec_prefix
956PACKAGE_BUGREPORT
957PACKAGE_STRING
958PACKAGE_VERSION
959PACKAGE_TARNAME
960PACKAGE_NAME
961PATH_SEPARATOR
962SHELL'
963ac_subst_files=''
964ac_user_opts='
965enable_option_checking
966enable_maintainer_mode
967enable_silent_rules
968enable_dependency_tracking
969enable_shared
970enable_static
971with_pic
972enable_fast_install
973with_gnu_ld
974enable_libtool_lock
975with_config
976with_linux
977with_linux_obj
978with_spl
979with_spl_obj
de0a1c09
BB
980with_udevdir
981with_udevruledir
e70e591c 982with_blkid
b3259b6a 983with_selinux
e70e591c
BB
984enable_debug
985'
986 ac_precious_vars='build_alias
987host_alias
988target_alias
989CC
990CFLAGS
991LDFLAGS
992LIBS
993CPPFLAGS
994CPP
995CCAS
996CCASFLAGS'
997
998
999# Initialize some variables set by options.
1000ac_init_help=
1001ac_init_version=false
1002ac_unrecognized_opts=
1003ac_unrecognized_sep=
1004# The variables have the same names as the options, with
1005# dashes changed to underlines.
1006cache_file=/dev/null
1007exec_prefix=NONE
1008no_create=
1009no_recursion=
1010prefix=NONE
1011program_prefix=NONE
1012program_suffix=NONE
1013program_transform_name=s,x,x,
1014silent=
1015site=
1016srcdir=
1017verbose=
1018x_includes=NONE
1019x_libraries=NONE
1020
1021# Installation directory options.
1022# These are left unexpanded so users can "make install exec_prefix=/foo"
1023# and all the variables that are supposed to be based on exec_prefix
1024# by default will actually change.
1025# Use braces instead of parens because sh, perl, etc. also accept them.
1026# (The list follows the same order as the GNU Coding Standards.)
1027bindir='${exec_prefix}/bin'
1028sbindir='${exec_prefix}/sbin'
1029libexecdir='${exec_prefix}/libexec'
1030datarootdir='${prefix}/share'
1031datadir='${datarootdir}'
1032sysconfdir='${prefix}/etc'
1033sharedstatedir='${prefix}/com'
1034localstatedir='${prefix}/var'
1035includedir='${prefix}/include'
1036oldincludedir='/usr/include'
1037docdir='${datarootdir}/doc/${PACKAGE}'
1038infodir='${datarootdir}/info'
1039htmldir='${docdir}'
1040dvidir='${docdir}'
1041pdfdir='${docdir}'
1042psdir='${docdir}'
1043libdir='${exec_prefix}/lib'
1044localedir='${datarootdir}/locale'
1045mandir='${datarootdir}/man'
1046
1047ac_prev=
1048ac_dashdash=
1049for ac_option
1050do
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\$ac_option
1054 ac_prev=
1055 continue
1056 fi
1057
1058 case $ac_option in
1059 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060 *) ac_optarg=yes ;;
1061 esac
1062
1063 # Accept the important Cygnus configure options, so we can diagnose typos.
1064
1065 case $ac_dashdash$ac_option in
1066 --)
1067 ac_dashdash=yes ;;
1068
1069 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070 ac_prev=bindir ;;
1071 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072 bindir=$ac_optarg ;;
1073
1074 -build | --build | --buil | --bui | --bu)
1075 ac_prev=build_alias ;;
1076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077 build_alias=$ac_optarg ;;
1078
1079 -cache-file | --cache-file | --cache-fil | --cache-fi \
1080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081 ac_prev=cache_file ;;
1082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084 cache_file=$ac_optarg ;;
1085
1086 --config-cache | -C)
1087 cache_file=config.cache ;;
1088
1089 -datadir | --datadir | --datadi | --datad)
1090 ac_prev=datadir ;;
1091 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092 datadir=$ac_optarg ;;
1093
1094 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095 | --dataroo | --dataro | --datar)
1096 ac_prev=datarootdir ;;
1097 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099 datarootdir=$ac_optarg ;;
1100
1101 -disable-* | --disable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111"enable_$ac_useropt"
1112"*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=no ;;
1117
1118 -docdir | --docdir | --docdi | --doc | --do)
1119 ac_prev=docdir ;;
1120 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121 docdir=$ac_optarg ;;
1122
1123 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124 ac_prev=dvidir ;;
1125 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126 dvidir=$ac_optarg ;;
1127
1128 -enable-* | --enable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"enable_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval enable_$ac_useropt=\$ac_optarg ;;
1144
1145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147 | --exec | --exe | --ex)
1148 ac_prev=exec_prefix ;;
1149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151 | --exec=* | --exe=* | --ex=*)
1152 exec_prefix=$ac_optarg ;;
1153
1154 -gas | --gas | --ga | --g)
1155 # Obsolete; use --with-gas.
1156 with_gas=yes ;;
1157
1158 -help | --help | --hel | --he | -h)
1159 ac_init_help=long ;;
1160 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161 ac_init_help=recursive ;;
1162 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163 ac_init_help=short ;;
1164
1165 -host | --host | --hos | --ho)
1166 ac_prev=host_alias ;;
1167 -host=* | --host=* | --hos=* | --ho=*)
1168 host_alias=$ac_optarg ;;
1169
1170 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171 ac_prev=htmldir ;;
1172 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173 | --ht=*)
1174 htmldir=$ac_optarg ;;
1175
1176 -includedir | --includedir | --includedi | --included | --include \
1177 | --includ | --inclu | --incl | --inc)
1178 ac_prev=includedir ;;
1179 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180 | --includ=* | --inclu=* | --incl=* | --inc=*)
1181 includedir=$ac_optarg ;;
1182
1183 -infodir | --infodir | --infodi | --infod | --info | --inf)
1184 ac_prev=infodir ;;
1185 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186 infodir=$ac_optarg ;;
1187
1188 -libdir | --libdir | --libdi | --libd)
1189 ac_prev=libdir ;;
1190 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191 libdir=$ac_optarg ;;
1192
1193 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194 | --libexe | --libex | --libe)
1195 ac_prev=libexecdir ;;
1196 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197 | --libexe=* | --libex=* | --libe=*)
1198 libexecdir=$ac_optarg ;;
1199
1200 -localedir | --localedir | --localedi | --localed | --locale)
1201 ac_prev=localedir ;;
1202 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203 localedir=$ac_optarg ;;
1204
1205 -localstatedir | --localstatedir | --localstatedi | --localstated \
1206 | --localstate | --localstat | --localsta | --localst | --locals)
1207 ac_prev=localstatedir ;;
1208 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210 localstatedir=$ac_optarg ;;
1211
1212 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213 ac_prev=mandir ;;
1214 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215 mandir=$ac_optarg ;;
1216
1217 -nfp | --nfp | --nf)
1218 # Obsolete; use --without-fp.
1219 with_fp=no ;;
1220
1221 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222 | --no-cr | --no-c | -n)
1223 no_create=yes ;;
1224
1225 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227 no_recursion=yes ;;
1228
1229 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231 | --oldin | --oldi | --old | --ol | --o)
1232 ac_prev=oldincludedir ;;
1233 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236 oldincludedir=$ac_optarg ;;
1237
1238 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239 ac_prev=prefix ;;
1240 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241 prefix=$ac_optarg ;;
1242
1243 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244 | --program-pre | --program-pr | --program-p)
1245 ac_prev=program_prefix ;;
1246 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248 program_prefix=$ac_optarg ;;
1249
1250 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251 | --program-suf | --program-su | --program-s)
1252 ac_prev=program_suffix ;;
1253 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255 program_suffix=$ac_optarg ;;
1256
1257 -program-transform-name | --program-transform-name \
1258 | --program-transform-nam | --program-transform-na \
1259 | --program-transform-n | --program-transform- \
1260 | --program-transform | --program-transfor \
1261 | --program-transfo | --program-transf \
1262 | --program-trans | --program-tran \
1263 | --progr-tra | --program-tr | --program-t)
1264 ac_prev=program_transform_name ;;
1265 -program-transform-name=* | --program-transform-name=* \
1266 | --program-transform-nam=* | --program-transform-na=* \
1267 | --program-transform-n=* | --program-transform-=* \
1268 | --program-transform=* | --program-transfor=* \
1269 | --program-transfo=* | --program-transf=* \
1270 | --program-trans=* | --program-tran=* \
1271 | --progr-tra=* | --program-tr=* | --program-t=*)
1272 program_transform_name=$ac_optarg ;;
1273
1274 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275 ac_prev=pdfdir ;;
1276 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277 pdfdir=$ac_optarg ;;
1278
1279 -psdir | --psdir | --psdi | --psd | --ps)
1280 ac_prev=psdir ;;
1281 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282 psdir=$ac_optarg ;;
1283
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1286 silent=yes ;;
1287
1288 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289 ac_prev=sbindir ;;
1290 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291 | --sbi=* | --sb=*)
1292 sbindir=$ac_optarg ;;
1293
1294 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296 | --sharedst | --shareds | --shared | --share | --shar \
1297 | --sha | --sh)
1298 ac_prev=sharedstatedir ;;
1299 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302 | --sha=* | --sh=*)
1303 sharedstatedir=$ac_optarg ;;
1304
1305 -site | --site | --sit)
1306 ac_prev=site ;;
1307 -site=* | --site=* | --sit=*)
1308 site=$ac_optarg ;;
1309
1310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311 ac_prev=srcdir ;;
1312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313 srcdir=$ac_optarg ;;
1314
1315 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316 | --syscon | --sysco | --sysc | --sys | --sy)
1317 ac_prev=sysconfdir ;;
1318 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320 sysconfdir=$ac_optarg ;;
1321
1322 -target | --target | --targe | --targ | --tar | --ta | --t)
1323 ac_prev=target_alias ;;
1324 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325 target_alias=$ac_optarg ;;
1326
1327 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328 verbose=yes ;;
1329
1330 -version | --version | --versio | --versi | --vers | -V)
1331 ac_init_version=: ;;
1332
1333 -with-* | --with-*)
1334 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338 { (exit 1); exit 1; }; }
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1342 *"
1343"with_$ac_useropt"
1344"*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval with_$ac_useropt=\$ac_optarg ;;
1349
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355 { (exit 1); exit 1; }; }
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360"with_$ac_useropt"
1361"*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval with_$ac_useropt=no ;;
1366
1367 --x)
1368 # Obsolete; use --with-x.
1369 with_x=yes ;;
1370
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1377
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1384
1385 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386Try \`$0 --help' for more information." >&2
1387 { (exit 1); exit 1; }; }
1388 ;;
1389
1390 *=*)
1391 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395 { (exit 1); exit 1; }; }
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1398
1399 *)
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405 ;;
1406
1407 esac
1408done
1409
1410if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413 { (exit 1); exit 1; }; }
1414fi
1415
1416if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1418 no) ;;
1419 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420 { (exit 1); exit 1; }; } ;;
1421 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 esac
1423fi
1424
1425# Check all directory arguments for consistency.
1426for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir
1430do
1431 eval ac_val=\$$ac_var
1432 # Remove trailing slashes.
1433 case $ac_val in
1434 */ )
1435 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\$ac_val;;
1437 esac
1438 # Be sure to have absolute directory names.
1439 case $ac_val in
1440 [\\/$]* | ?:[\\/]* ) continue;;
1441 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442 esac
1443 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444 { (exit 1); exit 1; }; }
1445done
1446
1447# There might be people who depend on the old broken behavior: `$host'
1448# used to hold the argument of --host etc.
1449# FIXME: To remove some day.
1450build=$build_alias
1451host=$host_alias
1452target=$target_alias
1453
1454# FIXME: To remove some day.
1455if test "x$host_alias" != x; then
1456 if test "x$build_alias" = x; then
1457 cross_compiling=maybe
1458 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459 If a cross compiler is detected then cross compile mode will be used." >&2
1460 elif test "x$build_alias" != "x$host_alias"; then
1461 cross_compiling=yes
1462 fi
1463fi
1464
1465ac_tool_prefix=
1466test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467
1468test "$silent" = yes && exec 6>/dev/null
1469
1470
1471ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472ac_ls_di=`ls -di .` &&
1473ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475 { (exit 1); exit 1; }; }
1476test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478 { (exit 1); exit 1; }; }
1479
1480
1481# Find the source files, if location was not specified.
1482if test -z "$srcdir"; then
1483 ac_srcdir_defaulted=yes
1484 # Try the directory containing this script, then the parent directory.
1485 ac_confdir=`$as_dirname -- "$as_myself" ||
1486$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487 X"$as_myself" : 'X\(//\)[^/]' \| \
1488 X"$as_myself" : 'X\(//\)$' \| \
1489 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490$as_echo X"$as_myself" |
1491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492 s//\1/
1493 q
1494 }
1495 /^X\(\/\/\)[^/].*/{
1496 s//\1/
1497 q
1498 }
1499 /^X\(\/\/\)$/{
1500 s//\1/
1501 q
1502 }
1503 /^X\(\/\).*/{
1504 s//\1/
1505 q
1506 }
1507 s/.*/./; q'`
1508 srcdir=$ac_confdir
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1510 srcdir=..
1511 fi
1512else
1513 ac_srcdir_defaulted=no
1514fi
1515if test ! -r "$srcdir/$ac_unique_file"; then
1516 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518 { (exit 1); exit 1; }; }
1519fi
1520ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521ac_abs_confdir=`(
1522 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523 { (exit 1); exit 1; }; }
1524 pwd)`
1525# When building in place, set srcdir=.
1526if test "$ac_abs_confdir" = "$ac_pwd"; then
1527 srcdir=.
1528fi
1529# Remove unnecessary trailing slashes from srcdir.
1530# Double slashes in file names in object file debugging info
1531# mess up M-x gdb in Emacs.
1532case $srcdir in
1533*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534esac
1535for ac_var in $ac_precious_vars; do
1536 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_${ac_var}_value=\$${ac_var}
1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540done
1541
1542#
1543# Report the --help message.
1544#
1545if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1548 cat <<_ACEOF
1549\`configure' configures this package to adapt to many kinds of systems.
1550
1551Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554VAR=VALUE. See below for descriptions of some of the useful variables.
1555
1556Defaults for the options are specified in brackets.
1557
1558Configuration:
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1568
1569Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1573 [PREFIX]
1574
1575By default, \`make install' will install all the files in
1576\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578for instance \`--prefix=\$HOME'.
1579
1580For better control, use the options below.
1581
1582Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1602_ACEOF
1603
1604 cat <<\_ACEOF
1605
1606Program names:
1607 --program-prefix=PREFIX prepend PREFIX to installed program names
1608 --program-suffix=SUFFIX append SUFFIX to installed program names
1609 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1610
1611System types:
1612 --build=BUILD configure for building on BUILD [guessed]
1613 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1614 --target=TARGET configure for building compilers for TARGET [HOST]
1615_ACEOF
1616fi
1617
1618if test -n "$ac_init_help"; then
1619
1620 cat <<\_ACEOF
1621
1622Optional Features:
1623 --disable-option-checking ignore unrecognized --enable/--with options
1624 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1625 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1626 --enable-maintainer-mode enable make rules and dependencies not useful
1627 (and sometimes confusing) to the casual installer
1628 --enable-silent-rules less verbose build output (undo: `make V=1')
1629 --disable-silent-rules verbose build output (undo: `make V=0')
1630 --disable-dependency-tracking speeds up one-time build
1631 --enable-dependency-tracking do not reject slow dependency extractors
1632 --enable-shared[=PKGS] build shared libraries [default=yes]
1633 --enable-static[=PKGS] build static libraries [default=yes]
1634 --enable-fast-install[=PKGS]
1635 optimize for fast installation [default=yes]
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --enable-debug Enable generic debug support [default=no]
1638
1639Optional Packages:
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1642 --with-pic try to use only PIC/non-PIC objects [default=use
1643 both]
1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1645 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1646 --with-linux=PATH Path to kernel source
1647 --with-linux-obj=PATH Path to kernel build objects
1648 --with-spl=PATH Path to spl source
1649 --with-spl-obj=PATH Path to spl build objects
de0a1c09
BB
1650 --with-udevdir=DIR install udev helpers [EPREFIX/lib/udev]
1651 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
e70e591c 1652 --with-blkid support blkid caching [default=check]
b3259b6a 1653 --with-selinux support selinux [default=check]
e70e591c
BB
1654
1655Some influential environment variables:
1656 CC C compiler command
1657 CFLAGS C compiler flags
1658 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1659 nonstandard directory <lib dir>
1660 LIBS libraries to pass to the linker, e.g. -l<library>
1661 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1662 you have headers in a nonstandard directory <include dir>
1663 CPP C preprocessor
1664 CCAS assembler compiler command (defaults to CC)
1665 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1666
1667Use these variables to override the choices made by `configure' or to help
1668it to find libraries and programs with nonstandard names/locations.
1669
1670_ACEOF
1671ac_status=$?
1672fi
1673
1674if test "$ac_init_help" = "recursive"; then
1675 # If there are subdirs, report their specific --help.
1676 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1677 test -d "$ac_dir" ||
1678 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1679 continue
1680 ac_builddir=.
1681
1682case "$ac_dir" in
1683.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684*)
1685 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1686 # A ".." for each directory in $ac_dir_suffix.
1687 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1688 case $ac_top_builddir_sub in
1689 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1691 esac ;;
1692esac
1693ac_abs_top_builddir=$ac_pwd
1694ac_abs_builddir=$ac_pwd$ac_dir_suffix
1695# for backward compatibility:
1696ac_top_builddir=$ac_top_build_prefix
1697
1698case $srcdir in
1699 .) # We are building in place.
1700 ac_srcdir=.
1701 ac_top_srcdir=$ac_top_builddir_sub
1702 ac_abs_top_srcdir=$ac_pwd ;;
1703 [\\/]* | ?:[\\/]* ) # Absolute name.
1704 ac_srcdir=$srcdir$ac_dir_suffix;
1705 ac_top_srcdir=$srcdir
1706 ac_abs_top_srcdir=$srcdir ;;
1707 *) # Relative name.
1708 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1709 ac_top_srcdir=$ac_top_build_prefix$srcdir
1710 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1711esac
1712ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1713
1714 cd "$ac_dir" || { ac_status=$?; continue; }
1715 # Check for guested configure.
1716 if test -f "$ac_srcdir/configure.gnu"; then
1717 echo &&
1718 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1719 elif test -f "$ac_srcdir/configure"; then
1720 echo &&
1721 $SHELL "$ac_srcdir/configure" --help=recursive
1722 else
1723 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1724 fi || ac_status=$?
1725 cd "$ac_pwd" || { ac_status=$?; break; }
1726 done
1727fi
1728
1729test -n "$ac_init_help" && exit $ac_status
1730if $ac_init_version; then
1731 cat <<\_ACEOF
1732configure
1733generated by GNU Autoconf 2.63
1734
1735Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17362002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1737This configure script is free software; the Free Software Foundation
1738gives unlimited permission to copy, distribute and modify it.
1739_ACEOF
1740 exit
1741fi
1742cat >config.log <<_ACEOF
1743This file contains any messages produced by compilers while
1744running configure, to aid debugging if configure makes a mistake.
1745
1746It was created by $as_me, which was
1747generated by GNU Autoconf 2.63. Invocation command line was
1748
1749 $ $0 $@
1750
1751_ACEOF
1752exec 5>>config.log
1753{
1754cat <<_ASUNAME
1755## --------- ##
1756## Platform. ##
1757## --------- ##
1758
1759hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1760uname -m = `(uname -m) 2>/dev/null || echo unknown`
1761uname -r = `(uname -r) 2>/dev/null || echo unknown`
1762uname -s = `(uname -s) 2>/dev/null || echo unknown`
1763uname -v = `(uname -v) 2>/dev/null || echo unknown`
1764
1765/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1766/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1767
1768/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1769/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1770/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1771/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1772/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1773/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1774/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1775
1776_ASUNAME
1777
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 $as_echo "PATH: $as_dir"
1784done
1785IFS=$as_save_IFS
1786
1787} >&5
1788
1789cat >&5 <<_ACEOF
1790
1791
1792## ----------- ##
1793## Core tests. ##
1794## ----------- ##
1795
1796_ACEOF
1797
1798
1799# Keep a trace of the command line.
1800# Strip out --no-create and --no-recursion so they do not pile up.
1801# Strip out --silent because we don't want to record it for future runs.
1802# Also quote any args containing shell meta-characters.
1803# Make two passes to allow for proper duplicate-argument suppression.
1804ac_configure_args=
1805ac_configure_args0=
1806ac_configure_args1=
1807ac_must_keep_next=false
1808for ac_pass in 1 2
1809do
1810 for ac_arg
1811 do
1812 case $ac_arg in
1813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1815 | -silent | --silent | --silen | --sile | --sil)
1816 continue ;;
1817 *\'*)
1818 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1819 esac
1820 case $ac_pass in
1821 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1822 2)
1823 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1824 if test $ac_must_keep_next = true; then
1825 ac_must_keep_next=false # Got value, back to normal.
1826 else
1827 case $ac_arg in
1828 *=* | --config-cache | -C | -disable-* | --disable-* \
1829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1831 | -with-* | --with-* | -without-* | --without-* | --x)
1832 case "$ac_configure_args0 " in
1833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1834 esac
1835 ;;
1836 -* ) ac_must_keep_next=true ;;
1837 esac
1838 fi
1839 ac_configure_args="$ac_configure_args '$ac_arg'"
1840 ;;
1841 esac
1842 done
1843done
1844$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1845$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1846
1847# When interrupted or exit'd, cleanup temporary files, and complete
1848# config.log. We remove comments because anyway the quotes in there
1849# would cause problems or look ugly.
1850# WARNING: Use '\'' to represent an apostrophe within the trap.
1851# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1852trap 'exit_status=$?
1853 # Save into config.log some information that might help in debugging.
1854 {
1855 echo
1856
1857 cat <<\_ASBOX
1858## ---------------- ##
1859## Cache variables. ##
1860## ---------------- ##
1861_ASBOX
1862 echo
1863 # The following way of writing the cache mishandles newlines in values,
1864(
1865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1866 eval ac_val=\$$ac_var
1867 case $ac_val in #(
1868 *${as_nl}*)
1869 case $ac_var in #(
1870 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1871$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1872 esac
1873 case $ac_var in #(
1874 _ | IFS | as_nl) ;; #(
1875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1876 *) $as_unset $ac_var ;;
1877 esac ;;
1878 esac
1879 done
1880 (set) 2>&1 |
1881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882 *${as_nl}ac_space=\ *)
1883 sed -n \
1884 "s/'\''/'\''\\\\'\'''\''/g;
1885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1886 ;; #(
1887 *)
1888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889 ;;
1890 esac |
1891 sort
1892)
1893 echo
1894
1895 cat <<\_ASBOX
1896## ----------------- ##
1897## Output variables. ##
1898## ----------------- ##
1899_ASBOX
1900 echo
1901 for ac_var in $ac_subst_vars
1902 do
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 esac
1907 $as_echo "$ac_var='\''$ac_val'\''"
1908 done | sort
1909 echo
1910
1911 if test -n "$ac_subst_files"; then
1912 cat <<\_ASBOX
1913## ------------------- ##
1914## File substitutions. ##
1915## ------------------- ##
1916_ASBOX
1917 echo
1918 for ac_var in $ac_subst_files
1919 do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in
1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 esac
1924 $as_echo "$ac_var='\''$ac_val'\''"
1925 done | sort
1926 echo
1927 fi
1928
1929 if test -s confdefs.h; then
1930 cat <<\_ASBOX
1931## ----------- ##
1932## confdefs.h. ##
1933## ----------- ##
1934_ASBOX
1935 echo
1936 cat confdefs.h
1937 echo
1938 fi
1939 test "$ac_signal" != 0 &&
1940 $as_echo "$as_me: caught signal $ac_signal"
1941 $as_echo "$as_me: exit $exit_status"
1942 } >&5
1943 rm -f core *.core core.conftest.* &&
1944 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1945 exit $exit_status
1946' 0
1947for ac_signal in 1 2 13 15; do
1948 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1949done
1950ac_signal=0
1951
1952# confdefs.h avoids OS command line length limits that DEFS can exceed.
1953rm -f -r conftest* confdefs.h
1954
1955# Predefined preprocessor variables.
1956
1957cat >>confdefs.h <<_ACEOF
1958#define PACKAGE_NAME "$PACKAGE_NAME"
1959_ACEOF
1960
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1964_ACEOF
1965
1966
1967cat >>confdefs.h <<_ACEOF
1968#define PACKAGE_VERSION "$PACKAGE_VERSION"
1969_ACEOF
1970
1971
1972cat >>confdefs.h <<_ACEOF
1973#define PACKAGE_STRING "$PACKAGE_STRING"
1974_ACEOF
1975
1976
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979_ACEOF
1980
1981
1982# Let the site file select an alternate cache file if it wants to.
1983# Prefer an explicitly selected file to automatically selected ones.
1984ac_site_file1=NONE
1985ac_site_file2=NONE
1986if test -n "$CONFIG_SITE"; then
1987 ac_site_file1=$CONFIG_SITE
1988elif test "x$prefix" != xNONE; then
1989 ac_site_file1=$prefix/share/config.site
1990 ac_site_file2=$prefix/etc/config.site
1991else
1992 ac_site_file1=$ac_default_prefix/share/config.site
1993 ac_site_file2=$ac_default_prefix/etc/config.site
1994fi
1995for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1996do
1997 test "x$ac_site_file" = xNONE && continue
1998 if test -r "$ac_site_file"; then
1999 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2000$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2001 sed 's/^/| /' "$ac_site_file" >&5
2002 . "$ac_site_file"
2003 fi
2004done
2005
2006if test -r "$cache_file"; then
2007 # Some versions of bash will fail to source /dev/null (special
2008 # files actually), so we avoid doing that.
2009 if test -f "$cache_file"; then
2010 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2011$as_echo "$as_me: loading cache $cache_file" >&6;}
2012 case $cache_file in
2013 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014 *) . "./$cache_file";;
2015 esac
2016 fi
2017else
2018 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2019$as_echo "$as_me: creating cache $cache_file" >&6;}
2020 >$cache_file
2021fi
2022
2023# Check that the precious variables saved in the cache have kept the same
2024# value.
2025ac_cache_corrupted=false
2026for ac_var in $ac_precious_vars; do
2027 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2028 eval ac_new_set=\$ac_env_${ac_var}_set
2029 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2030 eval ac_new_val=\$ac_env_${ac_var}_value
2031 case $ac_old_set,$ac_new_set in
2032 set,)
2033 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2034$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2035 ac_cache_corrupted=: ;;
2036 ,set)
2037 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2038$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2039 ac_cache_corrupted=: ;;
2040 ,);;
2041 *)
2042 if test "x$ac_old_val" != "x$ac_new_val"; then
2043 # differences in whitespace do not lead to failure.
2044 ac_old_val_w=`echo x $ac_old_val`
2045 ac_new_val_w=`echo x $ac_new_val`
2046 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2047 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2048$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2049 ac_cache_corrupted=:
2050 else
2051 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2052$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2053 eval $ac_var=\$ac_old_val
2054 fi
2055 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2056$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2057 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2058$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2059 fi;;
2060 esac
2061 # Pass precious variables to config.status.
2062 if test "$ac_new_set" = set; then
2063 case $ac_new_val in
2064 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 *) ac_arg=$ac_var=$ac_new_val ;;
2066 esac
2067 case " $ac_configure_args " in
2068 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2069 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2070 esac
2071 fi
2072done
2073if $ac_cache_corrupted; then
2074 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2076 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2077$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2078 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2079$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2080 { (exit 1); exit 1; }; }
2081fi
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099ac_ext=c
2100ac_cpp='$CPP $CPPFLAGS'
2101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104
2105
2106ac_ext=c
2107ac_cpp='$CPP $CPPFLAGS'
2108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111
2112
2113
2114
2115
2116
2117 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2118$as_echo_n "checking metadata... " >&6; }
2119
2120 META="$srcdir/META"
2121 _zfs_ac_meta_got_file=no
2122 if test -f "$META"; then
2123 _zfs_ac_meta_got_file=yes
2124
2125 ZFS_META_NAME=`perl -n\
2126 -e "BEGIN { \\$key=shift @ARGV; }"\
2127 -e "next unless s/^\s*\\$key[:=]//i;"\
2128 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2129 -e "s/^\s+//;"\
2130 -e "s/\s+$//;"\
2131 -e "s/^(['\"])(.*)\1/\\$2/;"\
2132 -e "\\$val=\\$_;"\
2133 -e "END { print \\$val if defined \\$val; }"\
2134 '(?:NAME|PROJECT|PACKAGE)' $META`;
2135 if test -n "$ZFS_META_NAME"; then
2136
2137cat >>confdefs.h <<_ACEOF
2138#define ZFS_META_NAME "$ZFS_META_NAME"
2139_ACEOF
2140
2141
2142 fi
2143
2144 ZFS_META_VERSION=`perl -n\
2145 -e "BEGIN { \\$key=shift @ARGV; }"\
2146 -e "next unless s/^\s*\\$key[:=]//i;"\
2147 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2148 -e "s/^\s+//;"\
2149 -e "s/\s+$//;"\
2150 -e "s/^(['\"])(.*)\1/\\$2/;"\
2151 -e "\\$val=\\$_;"\
2152 -e "END { print \\$val if defined \\$val; }"\
2153 'VERSION' $META`;
2154 if test -n "$ZFS_META_VERSION"; then
2155
2156cat >>confdefs.h <<_ACEOF
2157#define ZFS_META_VERSION "$ZFS_META_VERSION"
2158_ACEOF
2159
2160
2161 fi
2162
2163 ZFS_META_RELEASE=`perl -n\
2164 -e "BEGIN { \\$key=shift @ARGV; }"\
2165 -e "next unless s/^\s*\\$key[:=]//i;"\
2166 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2167 -e "s/^\s+//;"\
2168 -e "s/\s+$//;"\
2169 -e "s/^(['\"])(.*)\1/\\$2/;"\
2170 -e "\\$val=\\$_;"\
2171 -e "END { print \\$val if defined \\$val; }"\
2172 'RELEASE' $META`;
2173 if test -n "$ZFS_META_RELEASE"; then
2174
2175cat >>confdefs.h <<_ACEOF
2176#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2177_ACEOF
2178
2179
2180 fi
2181
2182 ZFS_META_LICENSE=`perl -n\
2183 -e "BEGIN { \\$key=shift @ARGV; }"\
2184 -e "next unless s/^\s*\\$key[:=]//i;"\
2185 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2186 -e "s/^\s+//;"\
2187 -e "s/\s+$//;"\
2188 -e "s/^(['\"])(.*)\1/\\$2/;"\
2189 -e "\\$val=\\$_;"\
2190 -e "END { print \\$val if defined \\$val; }"\
2191 'LICENSE' $META`;
2192 if test -n "$ZFS_META_LICENSE"; then
2193
2194cat >>confdefs.h <<_ACEOF
2195#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2196_ACEOF
2197
2198
2199 fi
2200
2201 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2202 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2203 test -n "$ZFS_META_RELEASE" &&
2204 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2205
2206cat >>confdefs.h <<_ACEOF
2207#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2208_ACEOF
2209
2210
2211 fi
2212
2213 ZFS_META_DATA=`perl -n\
2214 -e "BEGIN { \\$key=shift @ARGV; }"\
2215 -e "next unless s/^\s*\\$key[:=]//i;"\
2216 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2217 -e "s/^\s+//;"\
2218 -e "s/\s+$//;"\
2219 -e "s/^(['\"])(.*)\1/\\$2/;"\
2220 -e "\\$val=\\$_;"\
2221 -e "END { print \\$val if defined \\$val; }"\
2222 'DATE' $META`;
2223 if test -n "$ZFS_META_DATA"; then
2224
2225cat >>confdefs.h <<_ACEOF
2226#define ZFS_META_DATA "$ZFS_META_DATA"
2227_ACEOF
2228
2229
2230 fi
2231
2232 ZFS_META_AUTHOR=`perl -n\
2233 -e "BEGIN { \\$key=shift @ARGV; }"\
2234 -e "next unless s/^\s*\\$key[:=]//i;"\
2235 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2236 -e "s/^\s+//;"\
2237 -e "s/\s+$//;"\
2238 -e "s/^(['\"])(.*)\1/\\$2/;"\
2239 -e "\\$val=\\$_;"\
2240 -e "END { print \\$val if defined \\$val; }"\
2241 'AUTHOR' $META`;
2242 if test -n "$ZFS_META_AUTHOR"; then
2243
2244cat >>confdefs.h <<_ACEOF
2245#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2246_ACEOF
2247
2248
2249 fi
2250
2251
2252 ZFS_META_LT_CURRENT=`perl -n\
2253 -e "BEGIN { \\$key=shift @ARGV; }"\
2254 -e "next unless s/^\s*\\$key[:=]//i;"\
2255 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2256 -e "s/^\s+//;"\
2257 -e "s/\s+$//;"\
2258 -e "s/^(['\"])(.*)\1/\\$2/;"\
2259 -e "\\$val=\\$_;"\
2260 -e "END { print \\$val if defined \\$val; }"\
2261 'LT_CURRENT' $META`;
2262 ZFS_META_LT_REVISION=`perl -n\
2263 -e "BEGIN { \\$key=shift @ARGV; }"\
2264 -e "next unless s/^\s*\\$key[:=]//i;"\
2265 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2266 -e "s/^\s+//;"\
2267 -e "s/\s+$//;"\
2268 -e "s/^(['\"])(.*)\1/\\$2/;"\
2269 -e "\\$val=\\$_;"\
2270 -e "END { print \\$val if defined \\$val; }"\
2271 'LT_REVISION' $META`;
2272 ZFS_META_LT_AGE=`perl -n\
2273 -e "BEGIN { \\$key=shift @ARGV; }"\
2274 -e "next unless s/^\s*\\$key[:=]//i;"\
2275 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2276 -e "s/^\s+//;"\
2277 -e "s/\s+$//;"\
2278 -e "s/^(['\"])(.*)\1/\\$2/;"\
2279 -e "\\$val=\\$_;"\
2280 -e "END { print \\$val if defined \\$val; }"\
2281 'LT_AGE' $META`;
2282 if test -n "$ZFS_META_LT_CURRENT" \
2283 -o -n "$ZFS_META_LT_REVISION" \
2284 -o -n "$ZFS_META_LT_AGE"; then
2285 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2286 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2287 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2288
2289cat >>confdefs.h <<_ACEOF
2290#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2291_ACEOF
2292
2293
2294cat >>confdefs.h <<_ACEOF
2295#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2296_ACEOF
2297
2298
2299cat >>confdefs.h <<_ACEOF
2300#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2301_ACEOF
2302
2303
2304
2305
2306 fi
2307 fi
2308
2309 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2310$as_echo "$_zfs_ac_meta_got_file" >&6; }
2311
2312
2313ac_aux_dir=
2314for ac_dir in config "$srcdir"/config; do
2315 if test -f "$ac_dir/install-sh"; then
2316 ac_aux_dir=$ac_dir
2317 ac_install_sh="$ac_aux_dir/install-sh -c"
2318 break
2319 elif test -f "$ac_dir/install.sh"; then
2320 ac_aux_dir=$ac_dir
2321 ac_install_sh="$ac_aux_dir/install.sh -c"
2322 break
2323 elif test -f "$ac_dir/shtool"; then
2324 ac_aux_dir=$ac_dir
2325 ac_install_sh="$ac_aux_dir/shtool install -c"
2326 break
2327 fi
2328done
2329if test -z "$ac_aux_dir"; then
2330 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2331$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2332 { (exit 1); exit 1; }; }
2333fi
2334
2335# These three variables are undocumented and unsupported,
2336# and are intended to be withdrawn in a future Autoconf release.
2337# They can cause serious problems if a builder's source tree is in a directory
2338# whose full name contains unusual characters.
2339ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2340ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2341ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2342
2343
2344# Make sure we can run config.sub.
2345$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2346 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2347$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2348 { (exit 1); exit 1; }; }
2349
2350{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2351$as_echo_n "checking build system type... " >&6; }
2352if test "${ac_cv_build+set}" = set; then
2353 $as_echo_n "(cached) " >&6
2354else
2355 ac_build_alias=$build_alias
2356test "x$ac_build_alias" = x &&
2357 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2358test "x$ac_build_alias" = x &&
2359 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2360$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2361 { (exit 1); exit 1; }; }
2362ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2363 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2364$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2365 { (exit 1); exit 1; }; }
2366
2367fi
2368{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2369$as_echo "$ac_cv_build" >&6; }
2370case $ac_cv_build in
2371*-*-*) ;;
2372*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2373$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2374 { (exit 1); exit 1; }; };;
2375esac
2376build=$ac_cv_build
2377ac_save_IFS=$IFS; IFS='-'
2378set x $ac_cv_build
2379shift
2380build_cpu=$1
2381build_vendor=$2
2382shift; shift
2383# Remember, the first character of IFS is used to create $*,
2384# except with old shells:
2385build_os=$*
2386IFS=$ac_save_IFS
2387case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2388
2389
2390{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2391$as_echo_n "checking host system type... " >&6; }
2392if test "${ac_cv_host+set}" = set; then
2393 $as_echo_n "(cached) " >&6
2394else
2395 if test "x$host_alias" = x; then
2396 ac_cv_host=$ac_cv_build
2397else
2398 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2399 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2400$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2401 { (exit 1); exit 1; }; }
2402fi
2403
2404fi
2405{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2406$as_echo "$ac_cv_host" >&6; }
2407case $ac_cv_host in
2408*-*-*) ;;
2409*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2410$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2411 { (exit 1); exit 1; }; };;
2412esac
2413host=$ac_cv_host
2414ac_save_IFS=$IFS; IFS='-'
2415set x $ac_cv_host
2416shift
2417host_cpu=$1
2418host_vendor=$2
2419shift; shift
2420# Remember, the first character of IFS is used to create $*,
2421# except with old shells:
2422host_os=$*
2423IFS=$ac_save_IFS
2424case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2425
2426
2427{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2428$as_echo_n "checking target system type... " >&6; }
2429if test "${ac_cv_target+set}" = set; then
2430 $as_echo_n "(cached) " >&6
2431else
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2437$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2438 { (exit 1); exit 1; }; }
2439fi
2440
2441fi
2442{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2443$as_echo "$ac_cv_target" >&6; }
2444case $ac_cv_target in
2445*-*-*) ;;
2446*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2447$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2448 { (exit 1); exit 1; }; };;
2449esac
2450target=$ac_cv_target
2451ac_save_IFS=$IFS; IFS='-'
2452set x $ac_cv_target
2453shift
2454target_cpu=$1
2455target_vendor=$2
2456shift; shift
2457# Remember, the first character of IFS is used to create $*,
2458# except with old shells:
2459target_os=$*
2460IFS=$ac_save_IFS
2461case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2462
2463
2464# The aliases save the names the user supplied, while $host etc.
2465# will get canonicalized.
2466test -n "$target_alias" &&
2467 test "$program_prefix$program_suffix$program_transform_name" = \
2468 NONENONEs,x,x, &&
2469 program_prefix=${target_alias}-
2470
2471{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2472$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2473 # Check whether --enable-maintainer-mode was given.
2474if test "${enable_maintainer_mode+set}" = set; then
2475 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2476else
2477 USE_MAINTAINER_MODE=no
2478fi
2479
2480 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2481$as_echo "$USE_MAINTAINER_MODE" >&6; }
2482 if test $USE_MAINTAINER_MODE = yes; then
2483 MAINTAINER_MODE_TRUE=
2484 MAINTAINER_MODE_FALSE='#'
2485else
2486 MAINTAINER_MODE_TRUE='#'
2487 MAINTAINER_MODE_FALSE=
2488fi
2489
2490 MAINT=$MAINTAINER_MODE_TRUE
2491
2492
2493# Check whether --enable-silent-rules was given.
2494if test "${enable_silent_rules+set}" = set; then
2495 enableval=$enable_silent_rules;
2496fi
2497
2498case $enable_silent_rules in
2499yes) AM_DEFAULT_VERBOSITY=0;;
2500no) AM_DEFAULT_VERBOSITY=1;;
2501*) AM_DEFAULT_VERBOSITY=1;;
2502esac
2503AM_BACKSLASH='\'
2504
2505am__api_version='1.11'
2506
2507# Find a good install program. We prefer a C program (faster),
2508# so one script is as good as another. But avoid the broken or
2509# incompatible versions:
2510# SysV /etc/install, /usr/sbin/install
2511# SunOS /usr/etc/install
2512# IRIX /sbin/install
2513# AIX /bin/install
2514# AmigaOS /C/install, which installs bootblocks on floppy discs
2515# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2516# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2517# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2518# OS/2's system install, which has a completely different semantic
2519# ./install, which can be erroneously created by make from ./install.sh.
2520# Reject install programs that cannot install multiple files.
2521{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2522$as_echo_n "checking for a BSD-compatible install... " >&6; }
2523if test -z "$INSTALL"; then
2524if test "${ac_cv_path_install+set}" = set; then
2525 $as_echo_n "(cached) " >&6
2526else
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 # Account for people who put trailing slashes in PATH elements.
2533case $as_dir/ in
2534 ./ | .// | /cC/* | \
2535 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2536 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2537 /usr/ucb/* ) ;;
2538 *)
2539 # OSF1 and SCO ODT 3.0 have their own names for install.
2540 # Don't use installbsd from OSF since it installs stuff as root
2541 # by default.
2542 for ac_prog in ginstall scoinst install; do
2543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2545 if test $ac_prog = install &&
2546 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547 # AIX install. It has an incompatible calling convention.
2548 :
2549 elif test $ac_prog = install &&
2550 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # program-specific install script used by HP pwplus--don't use.
2552 :
2553 else
2554 rm -rf conftest.one conftest.two conftest.dir
2555 echo one > conftest.one
2556 echo two > conftest.two
2557 mkdir conftest.dir
2558 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2559 test -s conftest.one && test -s conftest.two &&
2560 test -s conftest.dir/conftest.one &&
2561 test -s conftest.dir/conftest.two
2562 then
2563 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2564 break 3
2565 fi
2566 fi
2567 fi
2568 done
2569 done
2570 ;;
2571esac
2572
2573done
2574IFS=$as_save_IFS
2575
2576rm -rf conftest.one conftest.two conftest.dir
2577
2578fi
2579 if test "${ac_cv_path_install+set}" = set; then
2580 INSTALL=$ac_cv_path_install
2581 else
2582 # As a last resort, use the slow shell script. Don't cache a
2583 # value for INSTALL within a source directory, because that will
2584 # break other packages using the cache if that directory is
2585 # removed, or if the value is a relative name.
2586 INSTALL=$ac_install_sh
2587 fi
2588fi
2589{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2590$as_echo "$INSTALL" >&6; }
2591
2592# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2593# It thinks the first close brace ends the variable substitution.
2594test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2595
2596test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2597
2598test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2599
2600{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2601$as_echo_n "checking whether build environment is sane... " >&6; }
2602# Just in case
2603sleep 1
2604echo timestamp > conftest.file
2605# Reject unsafe characters in $srcdir or the absolute working directory
2606# name. Accept space and tab only in the latter.
2607am_lf='
2608'
2609case `pwd` in
2610 *[\\\"\#\$\&\'\`$am_lf]*)
2611 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2612$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2613 { (exit 1); exit 1; }; };;
2614esac
2615case $srcdir in
2616 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2617 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2618$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2619 { (exit 1); exit 1; }; };;
2620esac
2621
2622# Do `set' in a subshell so we don't clobber the current shell's
2623# arguments. Must try -L first in case configure is actually a
2624# symlink; some systems play weird games with the mod time of symlinks
2625# (eg FreeBSD returns the mod time of the symlink's containing
2626# directory).
2627if (
2628 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2629 if test "$*" = "X"; then
2630 # -L didn't work.
2631 set X `ls -t "$srcdir/configure" conftest.file`
2632 fi
2633 rm -f conftest.file
2634 if test "$*" != "X $srcdir/configure conftest.file" \
2635 && test "$*" != "X conftest.file $srcdir/configure"; then
2636
2637 # If neither matched, then we have a broken ls. This can happen
2638 # if, for instance, CONFIG_SHELL is bash and it inherits a
2639 # broken ls alias from the environment. This has actually
2640 # happened. Such a system could not be considered "sane".
2641 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2642alias in your environment" >&5
2643$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2644alias in your environment" >&2;}
2645 { (exit 1); exit 1; }; }
2646 fi
2647
2648 test "$2" = conftest.file
2649 )
2650then
2651 # Ok.
2652 :
2653else
2654 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2655Check your system clock" >&5
2656$as_echo "$as_me: error: newly created file is older than distributed files!
2657Check your system clock" >&2;}
2658 { (exit 1); exit 1; }; }
2659fi
2660{ $as_echo "$as_me:$LINENO: result: yes" >&5
2661$as_echo "yes" >&6; }
2662test "$program_prefix" != NONE &&
2663 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2664# Use a double $ so make ignores it.
2665test "$program_suffix" != NONE &&
2666 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2667# Double any \ or $.
2668# By default was `s,x,x', remove it if useless.
2669ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2670program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2671
2672# expand $ac_aux_dir to an absolute path
2673am_aux_dir=`cd $ac_aux_dir && pwd`
2674
2675if test x"${MISSING+set}" != xset; then
2676 case $am_aux_dir in
2677 *\ * | *\ *)
2678 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2679 *)
2680 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2681 esac
2682fi
2683# Use eval to expand $SHELL
2684if eval "$MISSING --run true"; then
2685 am_missing_run="$MISSING --run "
2686else
2687 am_missing_run=
2688 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2689$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2690fi
2691
2692if test x"${install_sh}" != xset; then
2693 case $am_aux_dir in
2694 *\ * | *\ *)
2695 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2696 *)
2697 install_sh="\${SHELL} $am_aux_dir/install-sh"
2698 esac
2699fi
2700
2701# Installed binaries are usually stripped using `strip' when the user
2702# run `make install-strip'. However `strip' might not be the right
2703# tool to use in cross-compilation environments, therefore Automake
2704# will honor the `STRIP' environment variable to overrule this program.
2705if test "$cross_compiling" != no; then
2706 if test -n "$ac_tool_prefix"; then
2707 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2708set dummy ${ac_tool_prefix}strip; ac_word=$2
2709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_STRIP+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2713else
2714 if test -n "$STRIP"; then
2715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728done
2729done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734STRIP=$ac_cv_prog_STRIP
2735if test -n "$STRIP"; then
2736 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2737$as_echo "$STRIP" >&6; }
2738else
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743
2744fi
2745if test -z "$ac_cv_prog_STRIP"; then
2746 ac_ct_STRIP=$STRIP
2747 # Extract the first word of "strip", so it can be a program name with args.
2748set dummy strip; ac_word=$2
2749{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2750$as_echo_n "checking for $ac_word... " >&6; }
2751if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2752 $as_echo_n "(cached) " >&6
2753else
2754 if test -n "$ac_ct_STRIP"; then
2755 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2756else
2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764 ac_cv_prog_ac_ct_STRIP="strip"
2765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768done
2769done
2770IFS=$as_save_IFS
2771
2772fi
2773fi
2774ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2775if test -n "$ac_ct_STRIP"; then
2776 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2777$as_echo "$ac_ct_STRIP" >&6; }
2778else
2779 { $as_echo "$as_me:$LINENO: result: no" >&5
2780$as_echo "no" >&6; }
2781fi
2782
2783 if test "x$ac_ct_STRIP" = x; then
2784 STRIP=":"
2785 else
2786 case $cross_compiling:$ac_tool_warned in
2787yes:)
2788{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2790ac_tool_warned=yes ;;
2791esac
2792 STRIP=$ac_ct_STRIP
2793 fi
2794else
2795 STRIP="$ac_cv_prog_STRIP"
2796fi
2797
2798fi
2799INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2800
2801{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2802$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2803if test -z "$MKDIR_P"; then
2804 if test "${ac_cv_path_mkdir+set}" = set; then
2805 $as_echo_n "(cached) " >&6
2806else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2809do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_prog in mkdir gmkdir; do
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2815 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2816 'mkdir (GNU coreutils) '* | \
2817 'mkdir (coreutils) '* | \
2818 'mkdir (fileutils) '4.1*)
2819 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2820 break 3;;
2821 esac
2822 done
2823 done
2824done
2825IFS=$as_save_IFS
2826
2827fi
2828
2829 if test "${ac_cv_path_mkdir+set}" = set; then
2830 MKDIR_P="$ac_cv_path_mkdir -p"
2831 else
2832 # As a last resort, use the slow shell script. Don't cache a
2833 # value for MKDIR_P within a source directory, because that will
2834 # break other packages using the cache if that directory is
2835 # removed, or if the value is a relative name.
2836 test -d ./--version && rmdir ./--version
2837 MKDIR_P="$ac_install_sh -d"
2838 fi
2839fi
2840{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2841$as_echo "$MKDIR_P" >&6; }
2842
2843mkdir_p="$MKDIR_P"
2844case $mkdir_p in
2845 [\\/$]* | ?:[\\/]*) ;;
2846 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2847esac
2848
2849for ac_prog in gawk mawk nawk awk
2850do
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852set dummy $ac_prog; ac_word=$2
2853{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
2855if test "${ac_cv_prog_AWK+set}" = set; then
2856 $as_echo_n "(cached) " >&6
2857else
2858 if test -n "$AWK"; then
2859 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2860else
2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_AWK="$ac_prog"
2869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872done
2873done
2874IFS=$as_save_IFS
2875
2876fi
2877fi
2878AWK=$ac_cv_prog_AWK
2879if test -n "$AWK"; then
2880 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2881$as_echo "$AWK" >&6; }
2882else
2883 { $as_echo "$as_me:$LINENO: result: no" >&5
2884$as_echo "no" >&6; }
2885fi
2886
2887
2888 test -n "$AWK" && break
2889done
2890
2891{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2892$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2893set x ${MAKE-make}
2894ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2895if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2896 $as_echo_n "(cached) " >&6
2897else
2898 cat >conftest.make <<\_ACEOF
2899SHELL = /bin/sh
2900all:
2901 @echo '@@@%%%=$(MAKE)=@@@%%%'
2902_ACEOF
2903# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2904case `${MAKE-make} -f conftest.make 2>/dev/null` in
2905 *@@@%%%=?*=@@@%%%*)
2906 eval ac_cv_prog_make_${ac_make}_set=yes;;
2907 *)
2908 eval ac_cv_prog_make_${ac_make}_set=no;;
2909esac
2910rm -f conftest.make
2911fi
2912if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2913 { $as_echo "$as_me:$LINENO: result: yes" >&5
2914$as_echo "yes" >&6; }
2915 SET_MAKE=
2916else
2917 { $as_echo "$as_me:$LINENO: result: no" >&5
2918$as_echo "no" >&6; }
2919 SET_MAKE="MAKE=${MAKE-make}"
2920fi
2921
2922rm -rf .tst 2>/dev/null
2923mkdir .tst 2>/dev/null
2924if test -d .tst; then
2925 am__leading_dot=.
2926else
2927 am__leading_dot=_
2928fi
2929rmdir .tst 2>/dev/null
2930
2931if test "`cd $srcdir && pwd`" != "`pwd`"; then
2932 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2933 # is not polluted with repeated "-I."
2934 am__isrc=' -I$(srcdir)'
2935 # test to see if srcdir already configured
2936 if test -f $srcdir/config.status; then
2937 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2938$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2939 { (exit 1); exit 1; }; }
2940 fi
2941fi
2942
2943# test whether we have cygpath
2944if test -z "$CYGPATH_W"; then
2945 if (cygpath --version) >/dev/null 2>/dev/null; then
2946 CYGPATH_W='cygpath -w'
2947 else
2948 CYGPATH_W=echo
2949 fi
2950fi
2951
2952
2953# Define the identity of the package.
2954 PACKAGE=$ZFS_META_NAME
2955 VERSION=$ZFS_META_VERSION
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define PACKAGE "$PACKAGE"
2960_ACEOF
2961
2962
2963cat >>confdefs.h <<_ACEOF
2964#define VERSION "$VERSION"
2965_ACEOF
2966
2967# Some tools Automake needs.
2968
2969ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2970
2971
2972AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2973
2974
2975AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2976
2977
2978AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2979
2980
2981MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2982
2983# We need awk for the "check" target. The system "awk" is bad on
2984# some platforms.
2985# Always define AMTAR for backward compatibility.
2986
2987AMTAR=${AMTAR-"${am_missing_run}tar"}
2988
2989am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2990
2991
2992
2993
2994
2995ac_config_headers="$ac_config_headers zfs_config.h"
2996
2997
2998# Find a good install program. We prefer a C program (faster),
2999# so one script is as good as another. But avoid the broken or
3000# incompatible versions:
3001# SysV /etc/install, /usr/sbin/install
3002# SunOS /usr/etc/install
3003# IRIX /sbin/install
3004# AIX /bin/install
3005# AmigaOS /C/install, which installs bootblocks on floppy discs
3006# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009# OS/2's system install, which has a completely different semantic
3010# ./install, which can be erroneously created by make from ./install.sh.
3011# Reject install programs that cannot install multiple files.
3012{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3013$as_echo_n "checking for a BSD-compatible install... " >&6; }
3014if test -z "$INSTALL"; then
3015if test "${ac_cv_path_install+set}" = set; then
3016 $as_echo_n "(cached) " >&6
3017else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 # Account for people who put trailing slashes in PATH elements.
3024case $as_dir/ in
3025 ./ | .// | /cC/* | \
3026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3027 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3028 /usr/ucb/* ) ;;
3029 *)
3030 # OSF1 and SCO ODT 3.0 have their own names for install.
3031 # Don't use installbsd from OSF since it installs stuff as root
3032 # by default.
3033 for ac_prog in ginstall scoinst install; do
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3036 if test $ac_prog = install &&
3037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3038 # AIX install. It has an incompatible calling convention.
3039 :
3040 elif test $ac_prog = install &&
3041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3042 # program-specific install script used by HP pwplus--don't use.
3043 :
3044 else
3045 rm -rf conftest.one conftest.two conftest.dir
3046 echo one > conftest.one
3047 echo two > conftest.two
3048 mkdir conftest.dir
3049 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3050 test -s conftest.one && test -s conftest.two &&
3051 test -s conftest.dir/conftest.one &&
3052 test -s conftest.dir/conftest.two
3053 then
3054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3055 break 3
3056 fi
3057 fi
3058 fi
3059 done
3060 done
3061 ;;
3062esac
3063
3064done
3065IFS=$as_save_IFS
3066
3067rm -rf conftest.one conftest.two conftest.dir
3068
3069fi
3070 if test "${ac_cv_path_install+set}" = set; then
3071 INSTALL=$ac_cv_path_install
3072 else
3073 # As a last resort, use the slow shell script. Don't cache a
3074 # value for INSTALL within a source directory, because that will
3075 # break other packages using the cache if that directory is
3076 # removed, or if the value is a relative name.
3077 INSTALL=$ac_install_sh
3078 fi
3079fi
3080{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3081$as_echo "$INSTALL" >&6; }
3082
3083# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3084# It thinks the first close brace ends the variable substitution.
3085test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3086
3087test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3088
3089test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3090
3091ac_ext=c
3092ac_cpp='$CPP $CPPFLAGS'
3093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3098set dummy ${ac_tool_prefix}gcc; ac_word=$2
3099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3100$as_echo_n "checking for $ac_word... " >&6; }
3101if test "${ac_cv_prog_CC+set}" = set; then
3102 $as_echo_n "(cached) " >&6
3103else
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC="$CC" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3117 fi
3118done
3119done
3120IFS=$as_save_IFS
3121
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129 { $as_echo "$as_me:$LINENO: result: no" >&5
3130$as_echo "no" >&6; }
3131fi
3132
3133
3134fi
3135if test -z "$ac_cv_prog_CC"; then
3136 ac_ct_CC=$CC
3137 # Extract the first word of "gcc", so it can be a program name with args.
3138set dummy gcc; ac_word=$2
3139{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140$as_echo_n "checking for $ac_word... " >&6; }
3141if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3143else
3144 if test -n "$ac_ct_CC"; then
3145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146else
3147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_ac_ct_CC="gcc"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158done
3159done
3160IFS=$as_save_IFS
3161
3162fi
3163fi
3164ac_ct_CC=$ac_cv_prog_ac_ct_CC
3165if test -n "$ac_ct_CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3167$as_echo "$ac_ct_CC" >&6; }
3168else
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170$as_echo "no" >&6; }
3171fi
3172
3173 if test "x$ac_ct_CC" = x; then
3174 CC=""
3175 else
3176 case $cross_compiling:$ac_tool_warned in
3177yes:)
3178{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180ac_tool_warned=yes ;;
3181esac
3182 CC=$ac_ct_CC
3183 fi
3184else
3185 CC="$ac_cv_prog_CC"
3186fi
3187
3188if test -z "$CC"; then
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3191set dummy ${ac_tool_prefix}cc; ac_word=$2
3192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193$as_echo_n "checking for $ac_word... " >&6; }
3194if test "${ac_cv_prog_CC+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3196else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199else
3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201for as_dir in $PATH
3202do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC="${ac_tool_prefix}cc"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3210 fi
3211done
3212done
3213IFS=$as_save_IFS
3214
3215fi
3216fi
3217CC=$ac_cv_prog_CC
3218if test -n "$CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3220$as_echo "$CC" >&6; }
3221else
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223$as_echo "no" >&6; }
3224fi
3225
3226
3227 fi
3228fi
3229if test -z "$CC"; then
3230 # Extract the first word of "cc", so it can be a program name with args.
3231set dummy cc; ac_word=$2
3232{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3233$as_echo_n "checking for $ac_word... " >&6; }
3234if test "${ac_cv_prog_CC+set}" = set; then
3235 $as_echo_n "(cached) " >&6
3236else
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3239else
3240 ac_prog_rejected=no
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3249 ac_prog_rejected=yes
3250 continue
3251 fi
3252 ac_cv_prog_CC="cc"
3253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3255 fi
3256done
3257done
3258IFS=$as_save_IFS
3259
3260if test $ac_prog_rejected = yes; then
3261 # We found a bogon in the path, so make sure we never use it.
3262 set dummy $ac_cv_prog_CC
3263 shift
3264 if test $# != 0; then
3265 # We chose a different compiler from the bogus one.
3266 # However, it has the same basename, so the bogon will be chosen
3267 # first if we set CC to just the basename; use the full file name.
3268 shift
3269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3270 fi
3271fi
3272fi
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
3276 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3277$as_echo "$CC" >&6; }
3278else
3279 { $as_echo "$as_me:$LINENO: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283
3284fi
3285if test -z "$CC"; then
3286 if test -n "$ac_tool_prefix"; then
3287 for ac_prog in cl.exe
3288 do
3289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3290set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
3293if test "${ac_cv_prog_CC+set}" = set; then
3294 $as_echo_n "(cached) " >&6
3295else
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 break 2
3309 fi
3310done
3311done
3312IFS=$as_save_IFS
3313
3314fi
3315fi
3316CC=$ac_cv_prog_CC
3317if test -n "$CC"; then
3318 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3319$as_echo "$CC" >&6; }
3320else
3321 { $as_echo "$as_me:$LINENO: result: no" >&5
3322$as_echo "no" >&6; }
3323fi
3324
3325
3326 test -n "$CC" && break
3327 done
3328fi
3329if test -z "$CC"; then
3330 ac_ct_CC=$CC
3331 for ac_prog in cl.exe
3332do
3333 # Extract the first word of "$ac_prog", so it can be a program name with args.
3334set dummy $ac_prog; ac_word=$2
3335{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3338 $as_echo_n "(cached) " >&6
3339else
3340 if test -n "$ac_ct_CC"; then
3341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350 ac_cv_prog_ac_ct_CC="$ac_prog"
3351 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3353 fi
3354done
3355done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360ac_ct_CC=$ac_cv_prog_ac_ct_CC
3361if test -n "$ac_ct_CC"; then
3362 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3363$as_echo "$ac_ct_CC" >&6; }
3364else
3365 { $as_echo "$as_me:$LINENO: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369
3370 test -n "$ac_ct_CC" && break
3371done
3372
3373 if test "x$ac_ct_CC" = x; then
3374 CC=""
3375 else
3376 case $cross_compiling:$ac_tool_warned in
3377yes:)
3378{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3380ac_tool_warned=yes ;;
3381esac
3382 CC=$ac_ct_CC
3383 fi
3384fi
3385
3386fi
3387
3388
3389test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3392See \`config.log' for more details." >&5
3393$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3394See \`config.log' for more details." >&2;}
3395 { (exit 1); exit 1; }; }; }
3396
3397# Provide some information about the compiler.
3398$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3399set X $ac_compile
3400ac_compiler=$2
3401{ (ac_try="$ac_compiler --version >&5"
3402case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3407$as_echo "$ac_try_echo") >&5
3408 (eval "$ac_compiler --version >&5") 2>&5
3409 ac_status=$?
3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }
3412{ (ac_try="$ac_compiler -v >&5"
3413case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416esac
3417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3418$as_echo "$ac_try_echo") >&5
3419 (eval "$ac_compiler -v >&5") 2>&5
3420 ac_status=$?
3421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }
3423{ (ac_try="$ac_compiler -V >&5"
3424case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427esac
3428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3429$as_echo "$ac_try_echo") >&5
3430 (eval "$ac_compiler -V >&5") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }
3434
3435cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441
3442int
3443main ()
3444{
3445
3446 ;
3447 return 0;
3448}
3449_ACEOF
3450ac_clean_files_save=$ac_clean_files
3451ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3452# Try to create an executable without -o first, disregard a.out.
3453# It will help us diagnose broken compilers, and finding out an intuition
3454# of exeext.
3455{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3456$as_echo_n "checking for C compiler default output file name... " >&6; }
3457ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3458
3459# The possible output files:
3460ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3461
3462ac_rmfiles=
3463for ac_file in $ac_files
3464do
3465 case $ac_file in
3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3467 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3468 esac
3469done
3470rm -f $ac_rmfiles
3471
3472if { (ac_try="$ac_link_default"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478$as_echo "$ac_try_echo") >&5
3479 (eval "$ac_link_default") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; then
3483 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3484# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3485# in a Makefile. We should not override ac_cv_exeext if it was cached,
3486# so that the user can short-circuit this test for compilers unknown to
3487# Autoconf.
3488for ac_file in $ac_files ''
3489do
3490 test -f "$ac_file" || continue
3491 case $ac_file in
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3493 ;;
3494 [ab].out )
3495 # We found the default executable, but exeext='' is most
3496 # certainly right.
3497 break;;
3498 *.* )
3499 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3500 then :; else
3501 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3502 fi
3503 # We set ac_cv_exeext here because the later test for it is not
3504 # safe: cross compilers may not add the suffix if given an `-o'
3505 # argument, so we may need to know it at that point already.
3506 # Even if this section looks crufty: it has the advantage of
3507 # actually working.
3508 break;;
3509 * )
3510 break;;
3511 esac
3512done
3513test "$ac_cv_exeext" = no && ac_cv_exeext=
3514
3515else
3516 ac_file=''
3517fi
3518
3519{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3520$as_echo "$ac_file" >&6; }
3521if test -z "$ac_file"; then
3522 $as_echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3528See \`config.log' for more details." >&5
3529$as_echo "$as_me: error: C compiler cannot create executables
3530See \`config.log' for more details." >&2;}
3531 { (exit 77); exit 77; }; }; }
3532fi
3533
3534ac_exeext=$ac_cv_exeext
3535
3536# Check that the compiler produces executables we can run. If not, either
3537# the compiler is broken, or we cross compile.
3538{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3539$as_echo_n "checking whether the C compiler works... " >&6; }
3540# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3541# If not cross compiling, check that we can run a simple program.
3542if test "$cross_compiling" != yes; then
3543 if { ac_try='./$ac_file'
3544 { (case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547esac
3548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3549$as_echo "$ac_try_echo") >&5
3550 (eval "$ac_try") 2>&5
3551 ac_status=$?
3552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3554 cross_compiling=no
3555 else
3556 if test "$cross_compiling" = maybe; then
3557 cross_compiling=yes
3558 else
3559 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3562If you meant to cross compile, use \`--host'.
3563See \`config.log' for more details." >&5
3564$as_echo "$as_me: error: cannot run C compiled programs.
3565If you meant to cross compile, use \`--host'.
3566See \`config.log' for more details." >&2;}
3567 { (exit 1); exit 1; }; }; }
3568 fi
3569 fi
3570fi
3571{ $as_echo "$as_me:$LINENO: result: yes" >&5
3572$as_echo "yes" >&6; }
3573
3574rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3575ac_clean_files=$ac_clean_files_save
3576# Check that the compiler produces executables we can run. If not, either
3577# the compiler is broken, or we cross compile.
3578{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3579$as_echo_n "checking whether we are cross compiling... " >&6; }
3580{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3581$as_echo "$cross_compiling" >&6; }
3582
3583{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3584$as_echo_n "checking for suffix of executables... " >&6; }
3585if { (ac_try="$ac_link"
3586case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589esac
3590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3591$as_echo "$ac_try_echo") >&5
3592 (eval "$ac_link") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; then
3596 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3597# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3598# work properly (i.e., refer to `conftest.exe'), while it won't with
3599# `rm'.
3600for ac_file in conftest.exe conftest conftest.*; do
3601 test -f "$ac_file" || continue
3602 case $ac_file in
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 break;;
3606 * ) break;;
3607 esac
3608done
3609else
3610 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3613See \`config.log' for more details." >&5
3614$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3615See \`config.log' for more details." >&2;}
3616 { (exit 1); exit 1; }; }; }
3617fi
3618
3619rm -f conftest$ac_cv_exeext
3620{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3621$as_echo "$ac_cv_exeext" >&6; }
3622
3623rm -f conftest.$ac_ext
3624EXEEXT=$ac_cv_exeext
3625ac_exeext=$EXEEXT
3626{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3627$as_echo_n "checking for suffix of object files... " >&6; }
3628if test "${ac_cv_objext+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3630else
3631 cat >conftest.$ac_ext <<_ACEOF
3632/* confdefs.h. */
3633_ACEOF
3634cat confdefs.h >>conftest.$ac_ext
3635cat >>conftest.$ac_ext <<_ACEOF
3636/* end confdefs.h. */
3637
3638int
3639main ()
3640{
3641
3642 ;
3643 return 0;
3644}
3645_ACEOF
3646rm -f conftest.o conftest.obj
3647if { (ac_try="$ac_compile"
3648case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651esac
3652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653$as_echo "$ac_try_echo") >&5
3654 (eval "$ac_compile") 2>&5
3655 ac_status=$?
3656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; then
3658 for ac_file in conftest.o conftest.obj conftest.*; do
3659 test -f "$ac_file" || continue;
3660 case $ac_file in
3661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3662 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3663 break;;
3664 esac
3665done
3666else
3667 $as_echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3673See \`config.log' for more details." >&5
3674$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3675See \`config.log' for more details." >&2;}
3676 { (exit 1); exit 1; }; }; }
3677fi
3678
3679rm -f conftest.$ac_cv_objext conftest.$ac_ext
3680fi
3681{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3682$as_echo "$ac_cv_objext" >&6; }
3683OBJEXT=$ac_cv_objext
3684ac_objext=$OBJEXT
3685{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3686$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3687if test "${ac_cv_c_compiler_gnu+set}" = set; then
3688 $as_echo_n "(cached) " >&6
3689else
3690 cat >conftest.$ac_ext <<_ACEOF
3691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
3696
3697int
3698main ()
3699{
3700#ifndef __GNUC__
3701 choke me
3702#endif
3703
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext
3709if { (ac_try="$ac_compile"
3710case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
3714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715$as_echo "$ac_try_echo") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 ac_compiler_gnu=yes
3727else
3728 $as_echo "$as_me: failed program was:" >&5
3729sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 ac_compiler_gnu=no
3732fi
3733
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735ac_cv_c_compiler_gnu=$ac_compiler_gnu
3736
3737fi
3738{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3739$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740if test $ac_compiler_gnu = yes; then
3741 GCC=yes
3742else
3743 GCC=
3744fi
3745ac_test_CFLAGS=${CFLAGS+set}
3746ac_save_CFLAGS=$CFLAGS
3747{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3748$as_echo_n "checking whether $CC accepts -g... " >&6; }
3749if test "${ac_cv_prog_cc_g+set}" = set; then
3750 $as_echo_n "(cached) " >&6
3751else
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3754 ac_cv_prog_cc_g=no
3755 CFLAGS="-g"
3756 cat >conftest.$ac_ext <<_ACEOF
3757/* confdefs.h. */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h. */
3762
3763int
3764main ()
3765{
3766
3767 ;
3768 return 0;
3769}
3770_ACEOF
3771rm -f conftest.$ac_objext
3772if { (ac_try="$ac_compile"
3773case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776esac
3777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3778$as_echo "$ac_try_echo") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3789 ac_cv_prog_cc_g=yes
3790else
3791 $as_echo "$as_me: failed program was:" >&5
3792sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 CFLAGS=""
3795 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
3801
3802int
3803main ()
3804{
3805
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext
3811if { (ac_try="$ac_compile"
3812case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815esac
3816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3817$as_echo "$ac_try_echo") >&5
3818 (eval "$ac_compile") 2>conftest.er1
3819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } && {
3825 test -z "$ac_c_werror_flag" ||
3826 test ! -s conftest.err
3827 } && test -s conftest.$ac_objext; then
3828 :
3829else
3830 $as_echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 ac_c_werror_flag=$ac_save_c_werror_flag
3834 CFLAGS="-g"
3835 cat >conftest.$ac_ext <<_ACEOF
3836/* confdefs.h. */
3837_ACEOF
3838cat confdefs.h >>conftest.$ac_ext
3839cat >>conftest.$ac_ext <<_ACEOF
3840/* end confdefs.h. */
3841
3842int
3843main ()
3844{
3845
3846 ;
3847 return 0;
3848}
3849_ACEOF
3850rm -f conftest.$ac_objext
3851if { (ac_try="$ac_compile"
3852case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3857$as_echo "$ac_try_echo") >&5
3858 (eval "$ac_compile") 2>conftest.er1
3859 ac_status=$?
3860 grep -v '^ *+' conftest.er1 >conftest.err
3861 rm -f conftest.er1
3862 cat conftest.err >&5
3863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } && {
3865 test -z "$ac_c_werror_flag" ||
3866 test ! -s conftest.err
3867 } && test -s conftest.$ac_objext; then
3868 ac_cv_prog_cc_g=yes
3869else
3870 $as_echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873
3874fi
3875
3876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877fi
3878
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880fi
3881
3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3884fi
3885{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3886$as_echo "$ac_cv_prog_cc_g" >&6; }
3887if test "$ac_test_CFLAGS" = set; then
3888 CFLAGS=$ac_save_CFLAGS
3889elif test $ac_cv_prog_cc_g = yes; then
3890 if test "$GCC" = yes; then
3891 CFLAGS="-g -O2"
3892 else
3893 CFLAGS="-g"
3894 fi
3895else
3896 if test "$GCC" = yes; then
3897 CFLAGS="-O2"
3898 else
3899 CFLAGS=
3900 fi
3901fi
3902{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3903$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3904if test "${ac_cv_prog_cc_c89+set}" = set; then
3905 $as_echo_n "(cached) " >&6
3906else
3907 ac_cv_prog_cc_c89=no
3908ac_save_CC=$CC
3909cat >conftest.$ac_ext <<_ACEOF
3910/* confdefs.h. */
3911_ACEOF
3912cat confdefs.h >>conftest.$ac_ext
3913cat >>conftest.$ac_ext <<_ACEOF
3914/* end confdefs.h. */
3915#include <stdarg.h>
3916#include <stdio.h>
3917#include <sys/types.h>
3918#include <sys/stat.h>
3919/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3920struct buf { int x; };
3921FILE * (*rcsopen) (struct buf *, struct stat *, int);
3922static char *e (p, i)
3923 char **p;
3924 int i;
3925{
3926 return p[i];
3927}
3928static char *f (char * (*g) (char **, int), char **p, ...)
3929{
3930 char *s;
3931 va_list v;
3932 va_start (v,p);
3933 s = g (p, va_arg (v,int));
3934 va_end (v);
3935 return s;
3936}
3937
3938/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3939 function prototypes and stuff, but not '\xHH' hex character constants.
3940 These don't provoke an error unfortunately, instead are silently treated
3941 as 'x'. The following induces an error, until -std is added to get
3942 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3943 array size at least. It's necessary to write '\x00'==0 to get something
3944 that's true only with -std. */
3945int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3946
3947/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3948 inside strings and character constants. */
3949#define FOO(x) 'x'
3950int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3951
3952int test (int i, double x);
3953struct s1 {int (*f) (int a);};
3954struct s2 {int (*f) (double a);};
3955int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3956int argc;
3957char **argv;
3958int
3959main ()
3960{
3961return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3967 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3968do
3969 CC="$ac_save_CC $ac_arg"
3970 rm -f conftest.$ac_objext
3971if { (ac_try="$ac_compile"
3972case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975esac
3976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977$as_echo "$ac_try_echo") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 ac_cv_prog_cc_c89=$ac_arg
3989else
3990 $as_echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993
3994fi
3995
3996rm -f core conftest.err conftest.$ac_objext
3997 test "x$ac_cv_prog_cc_c89" != "xno" && break
3998done
3999rm -f conftest.$ac_ext
4000CC=$ac_save_CC
4001
4002fi
4003# AC_CACHE_VAL
4004case "x$ac_cv_prog_cc_c89" in
4005 x)
4006 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4007$as_echo "none needed" >&6; } ;;
4008 xno)
4009 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4010$as_echo "unsupported" >&6; } ;;
4011 *)
4012 CC="$CC $ac_cv_prog_cc_c89"
4013 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4014$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4015esac
4016
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023DEPDIR="${am__leading_dot}deps"
4024
4025ac_config_commands="$ac_config_commands depfiles"
4026
4027
4028am_make=${MAKE-make}
4029cat > confinc << 'END'
4030am__doit:
4031 @echo this is the am__doit target
4032.PHONY: am__doit
4033END
4034# If we don't find an include directive, just comment out the code.
4035{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4036$as_echo_n "checking for style of include used by $am_make... " >&6; }
4037am__include="#"
4038am__quote=
4039_am_result=none
4040# First try GNU make style include.
4041echo "include confinc" > confmf
4042# Ignore all kinds of additional output from `make'.
4043case `$am_make -s -f confmf 2> /dev/null` in #(
4044*the\ am__doit\ target*)
4045 am__include=include
4046 am__quote=
4047 _am_result=GNU
4048 ;;
4049esac
4050# Now try BSD make style include.
4051if test "$am__include" = "#"; then
4052 echo '.include "confinc"' > confmf
4053 case `$am_make -s -f confmf 2> /dev/null` in #(
4054 *the\ am__doit\ target*)
4055 am__include=.include
4056 am__quote="\""
4057 _am_result=BSD
4058 ;;
4059 esac
4060fi
4061
4062
4063{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4064$as_echo "$_am_result" >&6; }
4065rm -f confinc confmf
4066
4067# Check whether --enable-dependency-tracking was given.
4068if test "${enable_dependency_tracking+set}" = set; then
4069 enableval=$enable_dependency_tracking;
4070fi
4071
4072if test "x$enable_dependency_tracking" != xno; then
4073 am_depcomp="$ac_aux_dir/depcomp"
4074 AMDEPBACKSLASH='\'
4075fi
4076 if test "x$enable_dependency_tracking" != xno; then
4077 AMDEP_TRUE=
4078 AMDEP_FALSE='#'
4079else
4080 AMDEP_TRUE='#'
4081 AMDEP_FALSE=
4082fi
4083
4084
4085
4086depcc="$CC" am_compiler_list=
4087
4088{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4089$as_echo_n "checking dependency style of $depcc... " >&6; }
4090if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4091 $as_echo_n "(cached) " >&6
4092else
4093 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4094 # We make a subdir and do the tests there. Otherwise we can end up
4095 # making bogus files that we don't know about and never remove. For
4096 # instance it was reported that on HP-UX the gcc test will end up
4097 # making a dummy file named `D' -- because `-MD' means `put the output
4098 # in D'.
4099 mkdir conftest.dir
4100 # Copy depcomp to subdir because otherwise we won't find it if we're
4101 # using a relative directory.
4102 cp "$am_depcomp" conftest.dir
4103 cd conftest.dir
4104 # We will build objects and dependencies in a subdirectory because
4105 # it helps to detect inapplicable dependency modes. For instance
4106 # both Tru64's cc and ICC support -MD to output dependencies as a
4107 # side effect of compilation, but ICC will put the dependencies in
4108 # the current directory while Tru64 will put them in the object
4109 # directory.
4110 mkdir sub
4111
4112 am_cv_CC_dependencies_compiler_type=none
4113 if test "$am_compiler_list" = ""; then
4114 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4115 fi
4116 am__universal=false
4117 case " $depcc " in #(
4118 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4119 esac
4120
4121 for depmode in $am_compiler_list; do
4122 # Setup a source with many dependencies, because some compilers
4123 # like to wrap large dependency lists on column 80 (with \), and
4124 # we should not choose a depcomp mode which is confused by this.
4125 #
4126 # We need to recreate these files for each test, as the compiler may
4127 # overwrite some of them when testing with obscure command lines.
4128 # This happens at least with the AIX C compiler.
4129 : > sub/conftest.c
4130 for i in 1 2 3 4 5 6; do
4131 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4132 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4133 # Solaris 8's {/usr,}/bin/sh.
4134 touch sub/conftst$i.h
4135 done
4136 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4137
4138 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4139 # mode. It turns out that the SunPro C++ compiler does not properly
4140 # handle `-M -o', and we need to detect this. Also, some Intel
4141 # versions had trouble with output in subdirs
4142 am__obj=sub/conftest.${OBJEXT-o}
4143 am__minus_obj="-o $am__obj"
4144 case $depmode in
4145 gcc)
4146 # This depmode causes a compiler race in universal mode.
4147 test "$am__universal" = false || continue
4148 ;;
4149 nosideeffect)
4150 # after this tag, mechanisms are not by side-effect, so they'll
4151 # only be used when explicitly requested
4152 if test "x$enable_dependency_tracking" = xyes; then
4153 continue
4154 else
4155 break
4156 fi
4157 ;;
4158 msvisualcpp | msvcmsys)
4159 # This compiler won't grok `-c -o', but also, the minuso test has
4160 # not run yet. These depmodes are late enough in the game, and
4161 # so weak that their functioning should not be impacted.
4162 am__obj=conftest.${OBJEXT-o}
4163 am__minus_obj=
4164 ;;
4165 none) break ;;
4166 esac
4167 if depmode=$depmode \
4168 source=sub/conftest.c object=$am__obj \
4169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4170 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4171 >/dev/null 2>conftest.err &&
4172 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4173 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4174 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4175 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4176 # icc doesn't choke on unknown options, it will just issue warnings
4177 # or remarks (even with -Werror). So we grep stderr for any message
4178 # that says an option was ignored or not supported.
4179 # When given -MP, icc 7.0 and 7.1 complain thusly:
4180 # icc: Command line warning: ignoring option '-M'; no argument required
4181 # The diagnosis changed in icc 8.0:
4182 # icc: Command line remark: option '-MP' not supported
4183 if (grep 'ignoring option' conftest.err ||
4184 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4185 am_cv_CC_dependencies_compiler_type=$depmode
4186 break
4187 fi
4188 fi
4189 done
4190
4191 cd ..
4192 rm -rf conftest.dir
4193else
4194 am_cv_CC_dependencies_compiler_type=none
4195fi
4196
4197fi
4198{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4199$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4200CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4201
4202 if
4203 test "x$enable_dependency_tracking" != xno \
4204 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4205 am__fastdepCC_TRUE=
4206 am__fastdepCC_FALSE='#'
4207else
4208 am__fastdepCC_TRUE='#'
4209 am__fastdepCC_FALSE=
4210fi
4211
4212
4213case `pwd` in
4214 *\ * | *\ *)
4215 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4216$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4217esac
4218
4219
4220
135cf6a8
BB
4221macro_version='2.2.6b'
4222macro_revision='1.3017'
e70e591c
BB
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236ltmain="$ac_aux_dir/ltmain.sh"
4237
4238{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4239$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4240if test "${ac_cv_path_SED+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4242else
4243 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4244 for ac_i in 1 2 3 4 5 6 7; do
4245 ac_script="$ac_script$as_nl$ac_script"
4246 done
4247 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4248 $as_unset ac_script || ac_script=
4249 if test -z "$SED"; then
4250 ac_path_SED_found=false
4251 # Loop through the user's path and test for each of PROGNAME-LIST
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_prog in sed gsed; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4260 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4261# Check for GNU ac_path_SED and select it if it is found.
4262 # Check for GNU $ac_path_SED
4263case `"$ac_path_SED" --version 2>&1` in
4264*GNU*)
4265 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4266*)
4267 ac_count=0
4268 $as_echo_n 0123456789 >"conftest.in"
4269 while :
4270 do
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 $as_echo '' >> "conftest.nl"
4275 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277 ac_count=`expr $ac_count + 1`
4278 if test $ac_count -gt ${ac_path_SED_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_SED="$ac_path_SED"
4281 ac_path_SED_max=$ac_count
4282 fi
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4285 done
4286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287esac
4288
4289 $ac_path_SED_found && break 3
4290 done
4291 done
4292done
4293IFS=$as_save_IFS
4294 if test -z "$ac_cv_path_SED"; then
4295 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4296$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4297 { (exit 1); exit 1; }; }
4298 fi
4299else
4300 ac_cv_path_SED=$SED
4301fi
4302
4303fi
4304{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4305$as_echo "$ac_cv_path_SED" >&6; }
4306 SED="$ac_cv_path_SED"
4307 rm -f conftest.sed
4308
4309test -z "$SED" && SED=sed
4310Xsed="$SED -e 1s/^X//"
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4323$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4324if test "${ac_cv_path_GREP+set}" = set; then
4325 $as_echo_n "(cached) " >&6
4326else
4327 if test -z "$GREP"; then
4328 ac_path_GREP_found=false
4329 # Loop through the user's path and test for each of PROGNAME-LIST
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332do
4333 IFS=$as_save_IFS
4334 test -z "$as_dir" && as_dir=.
4335 for ac_prog in grep ggrep; do
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4338 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4339# Check for GNU ac_path_GREP and select it if it is found.
4340 # Check for GNU $ac_path_GREP
4341case `"$ac_path_GREP" --version 2>&1` in
4342*GNU*)
4343 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4344*)
4345 ac_count=0
4346 $as_echo_n 0123456789 >"conftest.in"
4347 while :
4348 do
4349 cat "conftest.in" "conftest.in" >"conftest.tmp"
4350 mv "conftest.tmp" "conftest.in"
4351 cp "conftest.in" "conftest.nl"
4352 $as_echo 'GREP' >> "conftest.nl"
4353 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355 ac_count=`expr $ac_count + 1`
4356 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4357 # Best one so far, save it but keep looking for a better one
4358 ac_cv_path_GREP="$ac_path_GREP"
4359 ac_path_GREP_max=$ac_count
4360 fi
4361 # 10*(2^10) chars as input seems more than enough
4362 test $ac_count -gt 10 && break
4363 done
4364 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365esac
4366
4367 $ac_path_GREP_found && break 3
4368 done
4369 done
4370done
4371IFS=$as_save_IFS
4372 if test -z "$ac_cv_path_GREP"; then
4373 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4374$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4375 { (exit 1); exit 1; }; }
4376 fi
4377else
4378 ac_cv_path_GREP=$GREP
4379fi
4380
4381fi
4382{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4383$as_echo "$ac_cv_path_GREP" >&6; }
4384 GREP="$ac_cv_path_GREP"
4385
4386
4387{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4388$as_echo_n "checking for egrep... " >&6; }
4389if test "${ac_cv_path_EGREP+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4391else
4392 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4393 then ac_cv_path_EGREP="$GREP -E"
4394 else
4395 if test -z "$EGREP"; then
4396 ac_path_EGREP_found=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_prog in egrep; do
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4406 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4407# Check for GNU ac_path_EGREP and select it if it is found.
4408 # Check for GNU $ac_path_EGREP
4409case `"$ac_path_EGREP" --version 2>&1` in
4410*GNU*)
4411 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4412*)
4413 ac_count=0
4414 $as_echo_n 0123456789 >"conftest.in"
4415 while :
4416 do
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 $as_echo 'EGREP' >> "conftest.nl"
4421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423 ac_count=`expr $ac_count + 1`
4424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_EGREP="$ac_path_EGREP"
4427 ac_path_EGREP_max=$ac_count
4428 fi
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4431 done
4432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433esac
4434
4435 $ac_path_EGREP_found && break 3
4436 done
4437 done
4438done
4439IFS=$as_save_IFS
4440 if test -z "$ac_cv_path_EGREP"; then
4441 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4442$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4443 { (exit 1); exit 1; }; }
4444 fi
4445else
4446 ac_cv_path_EGREP=$EGREP
4447fi
4448
4449 fi
4450fi
4451{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4452$as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4454
4455
4456{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4457$as_echo_n "checking for fgrep... " >&6; }
4458if test "${ac_cv_path_FGREP+set}" = set; then
4459 $as_echo_n "(cached) " >&6
4460else
4461 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4462 then ac_cv_path_FGREP="$GREP -F"
4463 else
4464 if test -z "$FGREP"; then
4465 ac_path_FGREP_found=false
4466 # Loop through the user's path and test for each of PROGNAME-LIST
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_prog in fgrep; do
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4475 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4476# Check for GNU ac_path_FGREP and select it if it is found.
4477 # Check for GNU $ac_path_FGREP
4478case `"$ac_path_FGREP" --version 2>&1` in
4479*GNU*)
4480 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4481*)
4482 ac_count=0
4483 $as_echo_n 0123456789 >"conftest.in"
4484 while :
4485 do
4486 cat "conftest.in" "conftest.in" >"conftest.tmp"
4487 mv "conftest.tmp" "conftest.in"
4488 cp "conftest.in" "conftest.nl"
4489 $as_echo 'FGREP' >> "conftest.nl"
4490 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492 ac_count=`expr $ac_count + 1`
4493 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4494 # Best one so far, save it but keep looking for a better one
4495 ac_cv_path_FGREP="$ac_path_FGREP"
4496 ac_path_FGREP_max=$ac_count
4497 fi
4498 # 10*(2^10) chars as input seems more than enough
4499 test $ac_count -gt 10 && break
4500 done
4501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502esac
4503
4504 $ac_path_FGREP_found && break 3
4505 done
4506 done
4507done
4508IFS=$as_save_IFS
4509 if test -z "$ac_cv_path_FGREP"; then
4510 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4511$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4512 { (exit 1); exit 1; }; }
4513 fi
4514else
4515 ac_cv_path_FGREP=$FGREP
4516fi
4517
4518 fi
4519fi
4520{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4521$as_echo "$ac_cv_path_FGREP" >&6; }
4522 FGREP="$ac_cv_path_FGREP"
4523
4524
4525test -z "$GREP" && GREP=grep
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545# Check whether --with-gnu-ld was given.
4546if test "${with_gnu_ld+set}" = set; then
4547 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4548else
4549 with_gnu_ld=no
4550fi
4551
4552ac_prog=ld
4553if test "$GCC" = yes; then
4554 # Check if gcc -print-prog-name=ld gives a path.
4555 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4556$as_echo_n "checking for ld used by $CC... " >&6; }
4557 case $host in
4558 *-*-mingw*)
4559 # gcc leaves a trailing carriage return which upsets mingw
4560 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4561 *)
4562 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4563 esac
4564 case $ac_prog in
4565 # Accept absolute paths.
4566 [\\/]* | ?:[\\/]*)
4567 re_direlt='/[^/][^/]*/\.\./'
4568 # Canonicalize the pathname of ld
4569 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4570 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4571 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4572 done
4573 test -z "$LD" && LD="$ac_prog"
4574 ;;
4575 "")
4576 # If it fails, then pretend we aren't using GCC.
4577 ac_prog=ld
4578 ;;
4579 *)
4580 # If it is relative, then search for the first ld in PATH.
4581 with_gnu_ld=unknown
4582 ;;
4583 esac
4584elif test "$with_gnu_ld" = yes; then
4585 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4586$as_echo_n "checking for GNU ld... " >&6; }
4587else
4588 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4589$as_echo_n "checking for non-GNU ld... " >&6; }
4590fi
4591if test "${lt_cv_path_LD+set}" = set; then
4592 $as_echo_n "(cached) " >&6
4593else
4594 if test -z "$LD"; then
4595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4596 for ac_dir in $PATH; do
4597 IFS="$lt_save_ifs"
4598 test -z "$ac_dir" && ac_dir=.
4599 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4600 lt_cv_path_LD="$ac_dir/$ac_prog"
4601 # Check to see if the program is GNU ld. I'd rather use --version,
4602 # but apparently some variants of GNU ld only accept -v.
4603 # Break only if it was the GNU/non-GNU ld that we prefer.
4604 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4605 *GNU* | *'with BFD'*)
4606 test "$with_gnu_ld" != no && break
4607 ;;
4608 *)
4609 test "$with_gnu_ld" != yes && break
4610 ;;
4611 esac
4612 fi
4613 done
4614 IFS="$lt_save_ifs"
4615else
4616 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4617fi
4618fi
4619
4620LD="$lt_cv_path_LD"
4621if test -n "$LD"; then
4622 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4623$as_echo "$LD" >&6; }
4624else
4625 { $as_echo "$as_me:$LINENO: result: no" >&5
4626$as_echo "no" >&6; }
4627fi
4628test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4629$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4630 { (exit 1); exit 1; }; }
4631{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4632$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4633if test "${lt_cv_prog_gnu_ld+set}" = set; then
4634 $as_echo_n "(cached) " >&6
4635else
4636 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4637case `$LD -v 2>&1 </dev/null` in
4638*GNU* | *'with BFD'*)
4639 lt_cv_prog_gnu_ld=yes
4640 ;;
4641*)
4642 lt_cv_prog_gnu_ld=no
4643 ;;
4644esac
4645fi
4646{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4647$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4648with_gnu_ld=$lt_cv_prog_gnu_ld
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4659$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4660if test "${lt_cv_path_NM+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4662else
4663 if test -n "$NM"; then
4664 # Let the user override the test.
4665 lt_cv_path_NM="$NM"
4666else
4667 lt_nm_to_check="${ac_tool_prefix}nm"
4668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4669 lt_nm_to_check="$lt_nm_to_check nm"
4670 fi
4671 for lt_tmp_nm in $lt_nm_to_check; do
4672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4674 IFS="$lt_save_ifs"
4675 test -z "$ac_dir" && ac_dir=.
4676 tmp_nm="$ac_dir/$lt_tmp_nm"
4677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4678 # Check to see if the nm accepts a BSD-compat flag.
4679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4680 # nm: unknown option "B" ignored
4681 # Tru64's nm complains that /dev/null is an invalid object file
4682 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4683 */dev/null* | *'Invalid file or object type'*)
4684 lt_cv_path_NM="$tmp_nm -B"
4685 break
4686 ;;
4687 *)
4688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4689 */dev/null*)
4690 lt_cv_path_NM="$tmp_nm -p"
4691 break
4692 ;;
4693 *)
4694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4695 continue # so that we can try to find one that supports BSD flags
4696 ;;
4697 esac
4698 ;;
4699 esac
4700 fi
4701 done
4702 IFS="$lt_save_ifs"
4703 done
4704 : ${lt_cv_path_NM=no}
4705fi
4706fi
4707{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4708$as_echo "$lt_cv_path_NM" >&6; }
4709if test "$lt_cv_path_NM" != "no"; then
4710 NM="$lt_cv_path_NM"
4711else
4712 # Didn't find any BSD compatible name lister, look for dumpbin.
4713 if test -n "$ac_tool_prefix"; then
4714 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4715 do
4716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4718{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
4720if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4722else
4723 if test -n "$DUMPBIN"; then
4724 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737done
4738done
4739IFS=$as_save_IFS
4740
4741fi
4742fi
4743DUMPBIN=$ac_cv_prog_DUMPBIN
4744if test -n "$DUMPBIN"; then
4745 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4746$as_echo "$DUMPBIN" >&6; }
4747else
4748 { $as_echo "$as_me:$LINENO: result: no" >&5
4749$as_echo "no" >&6; }
4750fi
4751
4752
4753 test -n "$DUMPBIN" && break
4754 done
4755fi
4756if test -z "$DUMPBIN"; then
4757 ac_ct_DUMPBIN=$DUMPBIN
4758 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4759do
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761set dummy $ac_prog; ac_word=$2
4762{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4763$as_echo_n "checking for $ac_word... " >&6; }
4764if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4765 $as_echo_n "(cached) " >&6
4766else
4767 if test -n "$ac_ct_DUMPBIN"; then
4768 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4769else
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781done
4782done
4783IFS=$as_save_IFS
4784
4785fi
4786fi
4787ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4788if test -n "$ac_ct_DUMPBIN"; then
4789 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4790$as_echo "$ac_ct_DUMPBIN" >&6; }
4791else
4792 { $as_echo "$as_me:$LINENO: result: no" >&5
4793$as_echo "no" >&6; }
4794fi
4795
4796
4797 test -n "$ac_ct_DUMPBIN" && break
4798done
4799
4800 if test "x$ac_ct_DUMPBIN" = x; then
4801 DUMPBIN=":"
4802 else
4803 case $cross_compiling:$ac_tool_warned in
4804yes:)
4805{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807ac_tool_warned=yes ;;
4808esac
4809 DUMPBIN=$ac_ct_DUMPBIN
4810 fi
4811fi
4812
4813
4814 if test "$DUMPBIN" != ":"; then
4815 NM="$DUMPBIN"
4816 fi
4817fi
4818test -z "$NM" && NM=nm
4819
4820
4821
4822
4823
4824
4825{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4826$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4827if test "${lt_cv_nm_interface+set}" = set; then
4828 $as_echo_n "(cached) " >&6
4829else
4830 lt_cv_nm_interface="BSD nm"
4831 echo "int some_variable = 0;" > conftest.$ac_ext
de0a1c09 4832 (eval echo "\"\$as_me:4832: $ac_compile\"" >&5)
e70e591c
BB
4833 (eval "$ac_compile" 2>conftest.err)
4834 cat conftest.err >&5
de0a1c09 4835 (eval echo "\"\$as_me:4835: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
e70e591c
BB
4836 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4837 cat conftest.err >&5
de0a1c09 4838 (eval echo "\"\$as_me:4838: output\"" >&5)
e70e591c
BB
4839 cat conftest.out >&5
4840 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4841 lt_cv_nm_interface="MS dumpbin"
4842 fi
4843 rm -f conftest*
4844fi
4845{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4846$as_echo "$lt_cv_nm_interface" >&6; }
4847
4848{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4849$as_echo_n "checking whether ln -s works... " >&6; }
4850LN_S=$as_ln_s
4851if test "$LN_S" = "ln -s"; then
4852 { $as_echo "$as_me:$LINENO: result: yes" >&5
4853$as_echo "yes" >&6; }
4854else
4855 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4856$as_echo "no, using $LN_S" >&6; }
4857fi
4858
4859# find the maximum length of command line arguments
4860{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4861$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4862if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4863 $as_echo_n "(cached) " >&6
4864else
4865 i=0
4866 teststring="ABCD"
4867
4868 case $build_os in
4869 msdosdjgpp*)
4870 # On DJGPP, this test can blow up pretty badly due to problems in libc
4871 # (any single argument exceeding 2000 bytes causes a buffer overrun
4872 # during glob expansion). Even if it were fixed, the result of this
4873 # check would be larger than it should be.
4874 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4875 ;;
4876
4877 gnu*)
4878 # Under GNU Hurd, this test is not required because there is
4879 # no limit to the length of command line arguments.
4880 # Libtool will interpret -1 as no limit whatsoever
4881 lt_cv_sys_max_cmd_len=-1;
4882 ;;
4883
4884 cygwin* | mingw* | cegcc*)
4885 # On Win9x/ME, this test blows up -- it succeeds, but takes
4886 # about 5 minutes as the teststring grows exponentially.
4887 # Worse, since 9x/ME are not pre-emptively multitasking,
4888 # you end up with a "frozen" computer, even though with patience
4889 # the test eventually succeeds (with a max line length of 256k).
4890 # Instead, let's just punt: use the minimum linelength reported by
4891 # all of the supported platforms: 8192 (on NT/2K/XP).
4892 lt_cv_sys_max_cmd_len=8192;
4893 ;;
4894
4895 amigaos*)
4896 # On AmigaOS with pdksh, this test takes hours, literally.
4897 # So we just punt and use a minimum line length of 8192.
4898 lt_cv_sys_max_cmd_len=8192;
4899 ;;
4900
4901 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4902 # This has been around since 386BSD, at least. Likely further.
4903 if test -x /sbin/sysctl; then
4904 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4905 elif test -x /usr/sbin/sysctl; then
4906 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4907 else
4908 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4909 fi
4910 # And add a safety zone
4911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4913 ;;
4914
4915 interix*)
4916 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4917 lt_cv_sys_max_cmd_len=196608
4918 ;;
4919
4920 osf*)
4921 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4922 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4923 # nice to cause kernel panics so lets avoid the loop below.
4924 # First set a reasonable default.
4925 lt_cv_sys_max_cmd_len=16384
4926 #
4927 if test -x /sbin/sysconfig; then
4928 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4929 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4930 esac
4931 fi
4932 ;;
4933 sco3.2v5*)
4934 lt_cv_sys_max_cmd_len=102400
4935 ;;
4936 sysv5* | sco5v6* | sysv4.2uw2*)
4937 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4938 if test -n "$kargmax"; then
4939 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4940 else
4941 lt_cv_sys_max_cmd_len=32768
4942 fi
4943 ;;
4944 *)
4945 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4946 if test -n "$lt_cv_sys_max_cmd_len"; then
4947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4949 else
4950 # Make teststring a little bigger before we do anything with it.
4951 # a 1K string should be a reasonable start.
4952 for i in 1 2 3 4 5 6 7 8 ; do
4953 teststring=$teststring$teststring
4954 done
4955 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4956 # If test is not a shell built-in, we'll probably end up computing a
4957 # maximum length that is only half of the actual maximum length, but
4958 # we can't tell.
4959 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4960 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4961 test $i != 17 # 1/2 MB should be enough
4962 do
4963 i=`expr $i + 1`
4964 teststring=$teststring$teststring
4965 done
4966 # Only check the string length outside the loop.
4967 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4968 teststring=
4969 # Add a significant safety factor because C++ compilers can tack on
4970 # massive amounts of additional arguments before passing them to the
4971 # linker. It appears as though 1/2 is a usable value.
4972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4973 fi
4974 ;;
4975 esac
4976
4977fi
4978
4979if test -n $lt_cv_sys_max_cmd_len ; then
4980 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4981$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4982else
4983 { $as_echo "$as_me:$LINENO: result: none" >&5
4984$as_echo "none" >&6; }
4985fi
4986max_cmd_len=$lt_cv_sys_max_cmd_len
4987
4988
4989
4990
4991
4992
4993: ${CP="cp -f"}
4994: ${MV="mv -f"}
4995: ${RM="rm -f"}
4996
4997{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4998$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4999# Try some XSI features
5000xsi_shell=no
5001( _lt_dummy="a/b/c"
5002 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5003 = c,a/b,, \
5004 && eval 'test $(( 1 + 1 )) -eq 2 \
5005 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5006 && xsi_shell=yes
5007{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5008$as_echo "$xsi_shell" >&6; }
5009
5010
5011{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5012$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5013lt_shell_append=no
5014( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5015 >/dev/null 2>&1 \
5016 && lt_shell_append=yes
5017{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5018$as_echo "$lt_shell_append" >&6; }
5019
5020
5021if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5022 lt_unset=unset
5023else
5024 lt_unset=false
5025fi
5026
5027
5028
5029
5030
5031# test EBCDIC or ASCII
5032case `echo X|tr X '\101'` in
5033 A) # ASCII based system
5034 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5035 lt_SP2NL='tr \040 \012'
5036 lt_NL2SP='tr \015\012 \040\040'
5037 ;;
5038 *) # EBCDIC based system
5039 lt_SP2NL='tr \100 \n'
5040 lt_NL2SP='tr \r\n \100\100'
5041 ;;
5042esac
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5053$as_echo_n "checking for $LD option to reload object files... " >&6; }
5054if test "${lt_cv_ld_reload_flag+set}" = set; then
5055 $as_echo_n "(cached) " >&6
5056else
5057 lt_cv_ld_reload_flag='-r'
5058fi
5059{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5060$as_echo "$lt_cv_ld_reload_flag" >&6; }
5061reload_flag=$lt_cv_ld_reload_flag
5062case $reload_flag in
5063"" | " "*) ;;
5064*) reload_flag=" $reload_flag" ;;
5065esac
5066reload_cmds='$LD$reload_flag -o $output$reload_objs'
5067case $host_os in
5068 darwin*)
5069 if test "$GCC" = yes; then
5070 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5071 else
5072 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073 fi
5074 ;;
5075esac
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085if test -n "$ac_tool_prefix"; then
5086 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5087set dummy ${ac_tool_prefix}objdump; ac_word=$2
5088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5089$as_echo_n "checking for $ac_word... " >&6; }
5090if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5091 $as_echo_n "(cached) " >&6
5092else
5093 if test -n "$OBJDUMP"; then
5094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107done
5108done
5109IFS=$as_save_IFS
5110
5111fi
5112fi
5113OBJDUMP=$ac_cv_prog_OBJDUMP
5114if test -n "$OBJDUMP"; then
5115 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5116$as_echo "$OBJDUMP" >&6; }
5117else
5118 { $as_echo "$as_me:$LINENO: result: no" >&5
5119$as_echo "no" >&6; }
5120fi
5121
5122
5123fi
5124if test -z "$ac_cv_prog_OBJDUMP"; then
5125 ac_ct_OBJDUMP=$OBJDUMP
5126 # Extract the first word of "objdump", so it can be a program name with args.
5127set dummy objdump; ac_word=$2
5128{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5129$as_echo_n "checking for $ac_word... " >&6; }
5130if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5131 $as_echo_n "(cached) " >&6
5132else
5133 if test -n "$ac_ct_OBJDUMP"; then
5134 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147done
5148done
5149IFS=$as_save_IFS
5150
5151fi
5152fi
5153ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5154if test -n "$ac_ct_OBJDUMP"; then
5155 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5156$as_echo "$ac_ct_OBJDUMP" >&6; }
5157else
5158 { $as_echo "$as_me:$LINENO: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162 if test "x$ac_ct_OBJDUMP" = x; then
5163 OBJDUMP="false"
5164 else
5165 case $cross_compiling:$ac_tool_warned in
5166yes:)
5167{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169ac_tool_warned=yes ;;
5170esac
5171 OBJDUMP=$ac_ct_OBJDUMP
5172 fi
5173else
5174 OBJDUMP="$ac_cv_prog_OBJDUMP"
5175fi
5176
5177test -z "$OBJDUMP" && OBJDUMP=objdump
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5188$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5189if test "${lt_cv_deplibs_check_method+set}" = set; then
5190 $as_echo_n "(cached) " >&6
5191else
5192 lt_cv_file_magic_cmd='$MAGIC_CMD'
5193lt_cv_file_magic_test_file=
5194lt_cv_deplibs_check_method='unknown'
5195# Need to set the preceding variable on all platforms that support
5196# interlibrary dependencies.
5197# 'none' -- dependencies not supported.
5198# `unknown' -- same as none, but documents that we really don't know.
5199# 'pass_all' -- all dependencies passed with no checks.
5200# 'test_compile' -- check by making test program.
5201# 'file_magic [[regex]]' -- check by looking for files in library path
5202# which responds to the $file_magic_cmd with a given extended regex.
5203# If you have `file' or equivalent on your system and you're not sure
5204# whether `pass_all' will *always* work, you probably want this one.
5205
5206case $host_os in
5207aix[4-9]*)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210
5211beos*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215bsdi[45]*)
5216 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5217 lt_cv_file_magic_cmd='/usr/bin/file -L'
5218 lt_cv_file_magic_test_file=/shlib/libc.so
5219 ;;
5220
5221cygwin*)
5222 # func_win32_libid is a shell function defined in ltmain.sh
5223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224 lt_cv_file_magic_cmd='func_win32_libid'
5225 ;;
5226
5227mingw* | pw32*)
5228 # Base MSYS/MinGW do not provide the 'file' command needed by
5229 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5230 # unless we find 'file', for example because we are cross-compiling.
5231 if ( file / ) >/dev/null 2>&1; then
5232 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5233 lt_cv_file_magic_cmd='func_win32_libid'
5234 else
5235 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5236 lt_cv_file_magic_cmd='$OBJDUMP -f'
5237 fi
5238 ;;
5239
5240cegcc)
5241 # use the weaker test based on 'objdump'. See mingw*.
5242 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5243 lt_cv_file_magic_cmd='$OBJDUMP -f'
5244 ;;
5245
5246darwin* | rhapsody*)
5247 lt_cv_deplibs_check_method=pass_all
5248 ;;
5249
5250freebsd* | dragonfly*)
5251 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5252 case $host_cpu in
5253 i*86 )
5254 # Not sure whether the presence of OpenBSD here was a mistake.
5255 # Let's accept both of them until this is cleared up.
5256 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5257 lt_cv_file_magic_cmd=/usr/bin/file
5258 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5259 ;;
5260 esac
5261 else
5262 lt_cv_deplibs_check_method=pass_all
5263 fi
5264 ;;
5265
5266gnu*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269
5270hpux10.20* | hpux11*)
5271 lt_cv_file_magic_cmd=/usr/bin/file
5272 case $host_cpu in
5273 ia64*)
5274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5275 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5276 ;;
5277 hppa*64*)
5278 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]'
5279 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5280 ;;
5281 *)
5282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5283 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5284 ;;
5285 esac
5286 ;;
5287
5288interix[3-9]*)
5289 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5291 ;;
5292
5293irix5* | irix6* | nonstopux*)
5294 case $LD in
5295 *-32|*"-32 ") libmagic=32-bit;;
5296 *-n32|*"-n32 ") libmagic=N32;;
5297 *-64|*"-64 ") libmagic=64-bit;;
5298 *) libmagic=never-match;;
5299 esac
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302
5303# This must be Linux ELF.
5304linux* | k*bsd*-gnu)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307
5308netbsd*)
5309 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5311 else
5312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5313 fi
5314 ;;
5315
5316newos6*)
5317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5318 lt_cv_file_magic_cmd=/usr/bin/file
5319 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5320 ;;
5321
5322*nto* | *qnx*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325
5326openbsd*)
5327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5329 else
5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5331 fi
5332 ;;
5333
5334osf3* | osf4* | osf5*)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337
5338rdos*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341
5342solaris*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
5346sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5347 lt_cv_deplibs_check_method=pass_all
5348 ;;
5349
5350sysv4 | sysv4.3*)
5351 case $host_vendor in
5352 motorola)
5353 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]'
5354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5355 ;;
5356 ncr)
5357 lt_cv_deplibs_check_method=pass_all
5358 ;;
5359 sequent)
5360 lt_cv_file_magic_cmd='/bin/file'
5361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5362 ;;
5363 sni)
5364 lt_cv_file_magic_cmd='/bin/file'
5365 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5366 lt_cv_file_magic_test_file=/lib/libc.so
5367 ;;
5368 siemens)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371 pc)
5372 lt_cv_deplibs_check_method=pass_all
5373 ;;
5374 esac
5375 ;;
5376
5377tpf*)
5378 lt_cv_deplibs_check_method=pass_all
5379 ;;
5380esac
5381
5382fi
5383{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5384$as_echo "$lt_cv_deplibs_check_method" >&6; }
5385file_magic_cmd=$lt_cv_file_magic_cmd
5386deplibs_check_method=$lt_cv_deplibs_check_method
5387test -z "$deplibs_check_method" && deplibs_check_method=unknown
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400if test -n "$ac_tool_prefix"; then
5401 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5402set dummy ${ac_tool_prefix}ar; ac_word=$2
5403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404$as_echo_n "checking for $ac_word... " >&6; }
5405if test "${ac_cv_prog_AR+set}" = set; then
5406 $as_echo_n "(cached) " >&6
5407else
5408 if test -n "$AR"; then
5409 ac_cv_prog_AR="$AR" # Let the user override the test.
5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_AR="${ac_tool_prefix}ar"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422done
5423done
5424IFS=$as_save_IFS
5425
5426fi
5427fi
5428AR=$ac_cv_prog_AR
5429if test -n "$AR"; then
5430 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5431$as_echo "$AR" >&6; }
5432else
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434$as_echo "no" >&6; }
5435fi
5436
5437
5438fi
5439if test -z "$ac_cv_prog_AR"; then
5440 ac_ct_AR=$AR
5441 # Extract the first word of "ar", so it can be a program name with args.
5442set dummy ar; ac_word=$2
5443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
5445if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5447else
5448 if test -n "$ac_ct_AR"; then
5449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_ac_ct_AR="ar"
5459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462done
5463done
5464IFS=$as_save_IFS
5465
5466fi
5467fi
5468ac_ct_AR=$ac_cv_prog_ac_ct_AR
5469if test -n "$ac_ct_AR"; then
5470 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5471$as_echo "$ac_ct_AR" >&6; }
5472else
5473 { $as_echo "$as_me:$LINENO: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477 if test "x$ac_ct_AR" = x; then
5478 AR="false"
5479 else
5480 case $cross_compiling:$ac_tool_warned in
5481yes:)
5482{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484ac_tool_warned=yes ;;
5485esac
5486 AR=$ac_ct_AR
5487 fi
5488else
5489 AR="$ac_cv_prog_AR"
5490fi
5491
5492test -z "$AR" && AR=ar
5493test -z "$AR_FLAGS" && AR_FLAGS=cru
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5507set dummy ${ac_tool_prefix}strip; ac_word=$2
5508{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5509$as_echo_n "checking for $ac_word... " >&6; }
5510if test "${ac_cv_prog_STRIP+set}" = set; then
5511 $as_echo_n "(cached) " >&6
5512else
5513 if test -n "$STRIP"; then
5514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528done
5529IFS=$as_save_IFS
5530
5531fi
5532fi
5533STRIP=$ac_cv_prog_STRIP
5534if test -n "$STRIP"; then
5535 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5536$as_echo "$STRIP" >&6; }
5537else
5538 { $as_echo "$as_me:$LINENO: result: no" >&5
5539$as_echo "no" >&6; }
5540fi
5541
5542
5543fi
5544if test -z "$ac_cv_prog_STRIP"; then
5545 ac_ct_STRIP=$STRIP
5546 # Extract the first word of "strip", so it can be a program name with args.
5547set dummy strip; ac_word=$2
5548{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
5550if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5551 $as_echo_n "(cached) " >&6
5552else
5553 if test -n "$ac_ct_STRIP"; then
5554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_STRIP="strip"
5564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567done
5568done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
5573ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5574if test -n "$ac_ct_STRIP"; then
5575 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5576$as_echo "$ac_ct_STRIP" >&6; }
5577else
5578 { $as_echo "$as_me:$LINENO: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
5582 if test "x$ac_ct_STRIP" = x; then
5583 STRIP=":"
5584 else
5585 case $cross_compiling:$ac_tool_warned in
5586yes:)
5587{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589ac_tool_warned=yes ;;
5590esac
5591 STRIP=$ac_ct_STRIP
5592 fi
5593else
5594 STRIP="$ac_cv_prog_STRIP"
5595fi
5596
5597test -z "$STRIP" && STRIP=:
5598
5599
5600
5601
5602
5603
5604if test -n "$ac_tool_prefix"; then
5605 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5606set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
5609if test "${ac_cv_prog_RANLIB+set}" = set; then
5610 $as_echo_n "(cached) " >&6
5611else
5612 if test -n "$RANLIB"; then
5613 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627done
5628IFS=$as_save_IFS
5629
5630fi
5631fi
5632RANLIB=$ac_cv_prog_RANLIB
5633if test -n "$RANLIB"; then
5634 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5635$as_echo "$RANLIB" >&6; }
5636else
5637 { $as_echo "$as_me:$LINENO: result: no" >&5
5638$as_echo "no" >&6; }
5639fi
5640
5641
5642fi
5643if test -z "$ac_cv_prog_RANLIB"; then
5644 ac_ct_RANLIB=$RANLIB
5645 # Extract the first word of "ranlib", so it can be a program name with args.
5646set dummy ranlib; ac_word=$2
5647{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5650 $as_echo_n "(cached) " >&6
5651else
5652 if test -n "$ac_ct_RANLIB"; then
5653 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658 IFS=$as_save_IFS
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_prog_ac_ct_RANLIB="ranlib"
5663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666done
5667done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5673if test -n "$ac_ct_RANLIB"; then
5674 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5675$as_echo "$ac_ct_RANLIB" >&6; }
5676else
5677 { $as_echo "$as_me:$LINENO: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681 if test "x$ac_ct_RANLIB" = x; then
5682 RANLIB=":"
5683 else
5684 case $cross_compiling:$ac_tool_warned in
5685yes:)
5686{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688ac_tool_warned=yes ;;
5689esac
5690 RANLIB=$ac_ct_RANLIB
5691 fi
5692else
5693 RANLIB="$ac_cv_prog_RANLIB"
5694fi
5695
5696test -z "$RANLIB" && RANLIB=:
5697
5698
5699
5700
5701
5702
5703# Determine commands to create old-style static archives.
5704old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5705old_postinstall_cmds='chmod 644 $oldlib'
5706old_postuninstall_cmds=
5707
5708if test -n "$RANLIB"; then
5709 case $host_os in
5710 openbsd*)
5711 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5712 ;;
5713 *)
5714 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5715 ;;
5716 esac
5717 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5718fi
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
5745
5746
5747
5748
5749
5750
5751
5752
5753# If no C compiler was specified, use CC.
5754LTCC=${LTCC-"$CC"}
5755
5756# If no C compiler flags were specified, use CFLAGS.
5757LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5758
5759# Allow CC to be a program name with arguments.
5760compiler=$CC
5761
5762
5763# Check for command to grab the raw symbol name followed by C symbol from nm.
5764{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5765$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5766if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5767 $as_echo_n "(cached) " >&6
5768else
5769
5770# These are sane defaults that work on at least a few old systems.
5771# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5772
5773# Character class describing NM global symbol codes.
5774symcode='[BCDEGRST]'
5775
5776# Regexp to match symbols that can be accessed directly from C.
5777sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5778
5779# Define system-specific variables.
5780case $host_os in
5781aix*)
5782 symcode='[BCDT]'
5783 ;;
5784cygwin* | mingw* | pw32* | cegcc*)
5785 symcode='[ABCDGISTW]'
5786 ;;
5787hpux*)
5788 if test "$host_cpu" = ia64; then
5789 symcode='[ABCDEGRST]'
5790 fi
5791 ;;
5792irix* | nonstopux*)
5793 symcode='[BCDEGRST]'
5794 ;;
5795osf*)
5796 symcode='[BCDEGQRST]'
5797 ;;
5798solaris*)
5799 symcode='[BDRT]'
5800 ;;
5801sco3.2v5*)
5802 symcode='[DT]'
5803 ;;
5804sysv4.2uw2*)
5805 symcode='[DT]'
5806 ;;
5807sysv5* | sco5v6* | unixware* | OpenUNIX*)
5808 symcode='[ABDT]'
5809 ;;
5810sysv4)
5811 symcode='[DFNSTU]'
5812 ;;
5813esac
5814
5815# If we're using GNU nm, then use its standard symbol codes.
5816case `$NM -V 2>&1` in
5817*GNU* | *'with BFD'*)
5818 symcode='[ABCDGIRSTW]' ;;
5819esac
5820
5821# Transform an extracted symbol line into a proper C declaration.
5822# Some systems (esp. on ia64) link data and code symbols differently,
5823# so use this general approach.
5824lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5825
5826# Transform an extracted symbol line into symbol name and symbol address
5827lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5828lt_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'"
5829
5830# Handle CRLF in mingw tool chain
5831opt_cr=
5832case $build_os in
5833mingw*)
5834 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5835 ;;
5836esac
5837
5838# Try without a prefix underscore, then with it.
5839for ac_symprfx in "" "_"; do
5840
5841 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5842 symxfrm="\\1 $ac_symprfx\\2 \\2"
5843
5844 # Write the raw and C identifiers.
5845 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5846 # Fake it for dumpbin and say T for any non-static function
5847 # and D for any global variable.
5848 # Also find C++ and __fastcall symbols from MSVC++,
5849 # which start with @ or ?.
5850 lt_cv_sys_global_symbol_pipe="$AWK '"\
5851" {last_section=section; section=\$ 3};"\
5852" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5853" \$ 0!~/External *\|/{next};"\
5854" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5855" {if(hide[section]) next};"\
5856" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5857" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5858" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5859" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5860" ' prfx=^$ac_symprfx"
5861 else
5862 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5863 fi
5864
5865 # Check to see that the pipe works correctly.
5866 pipe_works=no
5867
5868 rm -f conftest*
5869 cat > conftest.$ac_ext <<_LT_EOF
5870#ifdef __cplusplus
5871extern "C" {
5872#endif
5873char nm_test_var;
5874void nm_test_func(void);
5875void nm_test_func(void){}
5876#ifdef __cplusplus
5877}
5878#endif
5879int main(){nm_test_var='a';nm_test_func();return(0);}
5880_LT_EOF
5881
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883 (eval $ac_compile) 2>&5
5884 ac_status=$?
5885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; then
5887 # Now try to grab the symbols.
5888 nlist=conftest.nm
5889 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5890 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5891 ac_status=$?
5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && test -s "$nlist"; then
5894 # Try sorting and uniquifying the output.
5895 if sort "$nlist" | uniq > "$nlist"T; then
5896 mv -f "$nlist"T "$nlist"
5897 else
5898 rm -f "$nlist"T
5899 fi
5900
5901 # Make sure that we snagged all the symbols we need.
5902 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5903 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5904 cat <<_LT_EOF > conftest.$ac_ext
5905#ifdef __cplusplus
5906extern "C" {
5907#endif
5908
5909_LT_EOF
5910 # Now generate the symbol file.
5911 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5912
5913 cat <<_LT_EOF >> conftest.$ac_ext
5914
5915/* The mapping between symbol names and symbols. */
5916const struct {
5917 const char *name;
5918 void *address;
5919}
5920lt__PROGRAM__LTX_preloaded_symbols[] =
5921{
5922 { "@PROGRAM@", (void *) 0 },
5923_LT_EOF
5924 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5925 cat <<\_LT_EOF >> conftest.$ac_ext
5926 {0, (void *) 0}
5927};
5928
5929/* This works around a problem in FreeBSD linker */
5930#ifdef FREEBSD_WORKAROUND
5931static const void *lt_preloaded_setup() {
5932 return lt__PROGRAM__LTX_preloaded_symbols;
5933}
5934#endif
5935
5936#ifdef __cplusplus
5937}
5938#endif
5939_LT_EOF
5940 # Now try linking the two files.
5941 mv conftest.$ac_objext conftstm.$ac_objext
5942 lt_save_LIBS="$LIBS"
5943 lt_save_CFLAGS="$CFLAGS"
5944 LIBS="conftstm.$ac_objext"
5945 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947 (eval $ac_link) 2>&5
5948 ac_status=$?
5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5951 pipe_works=yes
5952 fi
5953 LIBS="$lt_save_LIBS"
5954 CFLAGS="$lt_save_CFLAGS"
5955 else
5956 echo "cannot find nm_test_func in $nlist" >&5
5957 fi
5958 else
5959 echo "cannot find nm_test_var in $nlist" >&5
5960 fi
5961 else
5962 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5963 fi
5964 else
5965 echo "$progname: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5967 fi
5968 rm -rf conftest* conftst*
5969
5970 # Do not use the global_symbol_pipe unless it works.
5971 if test "$pipe_works" = yes; then
5972 break
5973 else
5974 lt_cv_sys_global_symbol_pipe=
5975 fi
5976done
5977
5978fi
5979
5980if test -z "$lt_cv_sys_global_symbol_pipe"; then
5981 lt_cv_sys_global_symbol_to_cdecl=
5982fi
5983if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5984 { $as_echo "$as_me:$LINENO: result: failed" >&5
5985$as_echo "failed" >&6; }
5986else
5987 { $as_echo "$as_me:$LINENO: result: ok" >&5
5988$as_echo "ok" >&6; }
5989fi
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013# Check whether --enable-libtool-lock was given.
6014if test "${enable_libtool_lock+set}" = set; then
6015 enableval=$enable_libtool_lock;
6016fi
6017
6018test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6019
6020# Some flags need to be propagated to the compiler or linker for good
6021# libtool support.
6022case $host in
6023ia64-*-hpux*)
6024 # Find out which ABI we are using.
6025 echo 'int i;' > conftest.$ac_ext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6028 ac_status=$?
6029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; then
6031 case `/usr/bin/file conftest.$ac_objext` in
6032 *ELF-32*)
6033 HPUX_IA64_MODE="32"
6034 ;;
6035 *ELF-64*)
6036 HPUX_IA64_MODE="64"
6037 ;;
6038 esac
6039 fi
6040 rm -rf conftest*
6041 ;;
6042*-*-irix6*)
6043 # Find out which ABI we are using.
de0a1c09 6044 echo '#line 6044 "configure"' > conftest.$ac_ext
e70e591c
BB
6045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6046 (eval $ac_compile) 2>&5
6047 ac_status=$?
6048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; then
6050 if test "$lt_cv_prog_gnu_ld" = yes; then
6051 case `/usr/bin/file conftest.$ac_objext` in
6052 *32-bit*)
6053 LD="${LD-ld} -melf32bsmip"
6054 ;;
6055 *N32*)
6056 LD="${LD-ld} -melf32bmipn32"
6057 ;;
6058 *64-bit*)
6059 LD="${LD-ld} -melf64bmip"
6060 ;;
6061 esac
6062 else
6063 case `/usr/bin/file conftest.$ac_objext` in
6064 *32-bit*)
6065 LD="${LD-ld} -32"
6066 ;;
6067 *N32*)
6068 LD="${LD-ld} -n32"
6069 ;;
6070 *64-bit*)
6071 LD="${LD-ld} -64"
6072 ;;
6073 esac
6074 fi
6075 fi
6076 rm -rf conftest*
6077 ;;
6078
6079x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6080s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6081 # Find out which ABI we are using.
6082 echo 'int i;' > conftest.$ac_ext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>&5
6085 ac_status=$?
6086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; then
6088 case `/usr/bin/file conftest.o` in
6089 *32-bit*)
6090 case $host in
6091 x86_64-*kfreebsd*-gnu)
6092 LD="${LD-ld} -m elf_i386_fbsd"
6093 ;;
6094 x86_64-*linux*)
6095 LD="${LD-ld} -m elf_i386"
6096 ;;
6097 ppc64-*linux*|powerpc64-*linux*)
6098 LD="${LD-ld} -m elf32ppclinux"
6099 ;;
6100 s390x-*linux*)
6101 LD="${LD-ld} -m elf_s390"
6102 ;;
6103 sparc64-*linux*)
6104 LD="${LD-ld} -m elf32_sparc"
6105 ;;
6106 esac
6107 ;;
6108 *64-bit*)
6109 case $host in
6110 x86_64-*kfreebsd*-gnu)
6111 LD="${LD-ld} -m elf_x86_64_fbsd"
6112 ;;
6113 x86_64-*linux*)
6114 LD="${LD-ld} -m elf_x86_64"
6115 ;;
6116 ppc*-*linux*|powerpc*-*linux*)
6117 LD="${LD-ld} -m elf64ppc"
6118 ;;
6119 s390*-*linux*|s390*-*tpf*)
6120 LD="${LD-ld} -m elf64_s390"
6121 ;;
6122 sparc*-*linux*)
6123 LD="${LD-ld} -m elf64_sparc"
6124 ;;
6125 esac
6126 ;;
6127 esac
6128 fi
6129 rm -rf conftest*
6130 ;;
6131
6132*-*-sco3.2v5*)
6133 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6134 SAVE_CFLAGS="$CFLAGS"
6135 CFLAGS="$CFLAGS -belf"
6136 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6137$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6138if test "${lt_cv_cc_needs_belf+set}" = set; then
6139 $as_echo_n "(cached) " >&6
6140else
6141 ac_ext=c
6142ac_cpp='$CPP $CPPFLAGS'
6143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146
6147 cat >conftest.$ac_ext <<_ACEOF
6148/* confdefs.h. */
6149_ACEOF
6150cat confdefs.h >>conftest.$ac_ext
6151cat >>conftest.$ac_ext <<_ACEOF
6152/* end confdefs.h. */
6153
6154int
6155main ()
6156{
6157
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162rm -f conftest.$ac_objext conftest$ac_exeext
6163if { (ac_try="$ac_link"
6164case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167esac
6168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6169$as_echo "$ac_try_echo") >&5
6170 (eval "$ac_link") 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } && {
6177 test -z "$ac_c_werror_flag" ||
6178 test ! -s conftest.err
6179 } && test -s conftest$ac_exeext && {
6180 test "$cross_compiling" = yes ||
6181 $as_test_x conftest$ac_exeext
6182 }; then
6183 lt_cv_cc_needs_belf=yes
6184else
6185 $as_echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188 lt_cv_cc_needs_belf=no
6189fi
6190
6191rm -rf conftest.dSYM
6192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6193 conftest$ac_exeext conftest.$ac_ext
6194 ac_ext=c
6195ac_cpp='$CPP $CPPFLAGS'
6196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199
6200fi
6201{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6202$as_echo "$lt_cv_cc_needs_belf" >&6; }
6203 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6204 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6205 CFLAGS="$SAVE_CFLAGS"
6206 fi
6207 ;;
6208sparc*-*solaris*)
6209 # Find out which ABI we are using.
6210 echo 'int i;' > conftest.$ac_ext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>&5
6213 ac_status=$?
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; then
6216 case `/usr/bin/file conftest.o` in
6217 *64-bit*)
6218 case $lt_cv_prog_gnu_ld in
6219 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6220 *)
6221 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6222 LD="${LD-ld} -64"
6223 fi
6224 ;;
6225 esac
6226 ;;
6227 esac
6228 fi
6229 rm -rf conftest*
6230 ;;
6231esac
6232
6233need_locks="$enable_libtool_lock"
6234
6235
6236 case $host_os in
6237 rhapsody* | darwin*)
6238 if test -n "$ac_tool_prefix"; then
6239 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6240set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6244 $as_echo_n "(cached) " >&6
6245else
6246 if test -n "$DSYMUTIL"; then
6247 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260done
6261done
6262IFS=$as_save_IFS
6263
6264fi
6265fi
6266DSYMUTIL=$ac_cv_prog_DSYMUTIL
6267if test -n "$DSYMUTIL"; then
6268 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6269$as_echo "$DSYMUTIL" >&6; }
6270else
6271 { $as_echo "$as_me:$LINENO: result: no" >&5
6272$as_echo "no" >&6; }
6273fi
6274
6275
6276fi
6277if test -z "$ac_cv_prog_DSYMUTIL"; then
6278 ac_ct_DSYMUTIL=$DSYMUTIL
6279 # Extract the first word of "dsymutil", so it can be a program name with args.
6280set dummy dsymutil; ac_word=$2
6281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
6283if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6284 $as_echo_n "(cached) " >&6
6285else
6286 if test -n "$ac_ct_DSYMUTIL"; then
6287 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300done
6301done
6302IFS=$as_save_IFS
6303
6304fi
6305fi
6306ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6307if test -n "$ac_ct_DSYMUTIL"; then
6308 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6309$as_echo "$ac_ct_DSYMUTIL" >&6; }
6310else
6311 { $as_echo "$as_me:$LINENO: result: no" >&5
6312$as_echo "no" >&6; }
6313fi
6314
6315 if test "x$ac_ct_DSYMUTIL" = x; then
6316 DSYMUTIL=":"
6317 else
6318 case $cross_compiling:$ac_tool_warned in
6319yes:)
6320{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6322ac_tool_warned=yes ;;
6323esac
6324 DSYMUTIL=$ac_ct_DSYMUTIL
6325 fi
6326else
6327 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6328fi
6329
6330 if test -n "$ac_tool_prefix"; then
6331 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6332set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6333{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6334$as_echo_n "checking for $ac_word... " >&6; }
6335if test "${ac_cv_prog_NMEDIT+set}" = set; then
6336 $as_echo_n "(cached) " >&6
6337else
6338 if test -n "$NMEDIT"; then
6339 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6340else
6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6351 fi
6352done
6353done
6354IFS=$as_save_IFS
6355
6356fi
6357fi
6358NMEDIT=$ac_cv_prog_NMEDIT
6359if test -n "$NMEDIT"; then
6360 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6361$as_echo "$NMEDIT" >&6; }
6362else
6363 { $as_echo "$as_me:$LINENO: result: no" >&5
6364$as_echo "no" >&6; }
6365fi
6366
6367
6368fi
6369if test -z "$ac_cv_prog_NMEDIT"; then
6370 ac_ct_NMEDIT=$NMEDIT
6371 # Extract the first word of "nmedit", so it can be a program name with args.
6372set dummy nmedit; ac_word=$2
6373{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; }
6375if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6376 $as_echo_n "(cached) " >&6
6377else
6378 if test -n "$ac_ct_NMEDIT"; then
6379 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6380else
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392done
6393done
6394IFS=$as_save_IFS
6395
6396fi
6397fi
6398ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6399if test -n "$ac_ct_NMEDIT"; then
6400 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6401$as_echo "$ac_ct_NMEDIT" >&6; }
6402else
6403 { $as_echo "$as_me:$LINENO: result: no" >&5
6404$as_echo "no" >&6; }
6405fi
6406
6407 if test "x$ac_ct_NMEDIT" = x; then
6408 NMEDIT=":"
6409 else
6410 case $cross_compiling:$ac_tool_warned in
6411yes:)
6412{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414ac_tool_warned=yes ;;
6415esac
6416 NMEDIT=$ac_ct_NMEDIT
6417 fi
6418else
6419 NMEDIT="$ac_cv_prog_NMEDIT"
6420fi
6421
6422 if test -n "$ac_tool_prefix"; then
6423 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6424set dummy ${ac_tool_prefix}lipo; ac_word=$2
6425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if test "${ac_cv_prog_LIPO+set}" = set; then
6428 $as_echo_n "(cached) " >&6
6429else
6430 if test -n "$LIPO"; then
6431 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6443 fi
6444done
6445done
6446IFS=$as_save_IFS
6447
6448fi
6449fi
6450LIPO=$ac_cv_prog_LIPO
6451if test -n "$LIPO"; then
6452 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6453$as_echo "$LIPO" >&6; }
6454else
6455 { $as_echo "$as_me:$LINENO: result: no" >&5
6456$as_echo "no" >&6; }
6457fi
6458
6459
6460fi
6461if test -z "$ac_cv_prog_LIPO"; then
6462 ac_ct_LIPO=$LIPO
6463 # Extract the first word of "lipo", so it can be a program name with args.
6464set dummy lipo; ac_word=$2
6465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6468 $as_echo_n "(cached) " >&6
6469else
6470 if test -n "$ac_ct_LIPO"; then
6471 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_ac_ct_LIPO="lipo"
6481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6483 fi
6484done
6485done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6491if test -n "$ac_ct_LIPO"; then
6492 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6493$as_echo "$ac_ct_LIPO" >&6; }
6494else
6495 { $as_echo "$as_me:$LINENO: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
6498
6499 if test "x$ac_ct_LIPO" = x; then
6500 LIPO=":"
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503yes:)
6504{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506ac_tool_warned=yes ;;
6507esac
6508 LIPO=$ac_ct_LIPO
6509 fi
6510else
6511 LIPO="$ac_cv_prog_LIPO"
6512fi
6513
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6516set dummy ${ac_tool_prefix}otool; ac_word=$2
6517{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518$as_echo_n "checking for $ac_word... " >&6; }
6519if test "${ac_cv_prog_OTOOL+set}" = set; then
6520 $as_echo_n "(cached) " >&6
6521else
6522 if test -n "$OTOOL"; then
6523 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6524else
6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536done
6537done
6538IFS=$as_save_IFS
6539
6540fi
6541fi
6542OTOOL=$ac_cv_prog_OTOOL
6543if test -n "$OTOOL"; then
6544 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6545$as_echo "$OTOOL" >&6; }
6546else
6547 { $as_echo "$as_me:$LINENO: result: no" >&5
6548$as_echo "no" >&6; }
6549fi
6550
6551
6552fi
6553if test -z "$ac_cv_prog_OTOOL"; then
6554 ac_ct_OTOOL=$OTOOL
6555 # Extract the first word of "otool", so it can be a program name with args.
6556set dummy otool; ac_word=$2
6557{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6560 $as_echo_n "(cached) " >&6
6561else
6562 if test -n "$ac_ct_OTOOL"; then
6563 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6572 ac_cv_prog_ac_ct_OTOOL="otool"
6573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576done
6577done
6578IFS=$as_save_IFS
6579
6580fi
6581fi
6582ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6583if test -n "$ac_ct_OTOOL"; then
6584 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6585$as_echo "$ac_ct_OTOOL" >&6; }
6586else
6587 { $as_echo "$as_me:$LINENO: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
6590
6591 if test "x$ac_ct_OTOOL" = x; then
6592 OTOOL=":"
6593 else
6594 case $cross_compiling:$ac_tool_warned in
6595yes:)
6596{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598ac_tool_warned=yes ;;
6599esac
6600 OTOOL=$ac_ct_OTOOL
6601 fi
6602else
6603 OTOOL="$ac_cv_prog_OTOOL"
6604fi
6605
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6608set dummy ${ac_tool_prefix}otool64; ac_word=$2
6609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
6611if test "${ac_cv_prog_OTOOL64+set}" = set; then
6612 $as_echo_n "(cached) " >&6
6613else
6614 if test -n "$OTOOL64"; then
6615 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628done
6629done
6630IFS=$as_save_IFS
6631
6632fi
6633fi
6634OTOOL64=$ac_cv_prog_OTOOL64
6635if test -n "$OTOOL64"; then
6636 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6637$as_echo "$OTOOL64" >&6; }
6638else
6639 { $as_echo "$as_me:$LINENO: result: no" >&5
6640$as_echo "no" >&6; }
6641fi
6642
6643
6644fi
6645if test -z "$ac_cv_prog_OTOOL64"; then
6646 ac_ct_OTOOL64=$OTOOL64
6647 # Extract the first word of "otool64", so it can be a program name with args.
6648set dummy otool64; ac_word=$2
6649{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6652 $as_echo_n "(cached) " >&6
6653else
6654 if test -n "$ac_ct_OTOOL64"; then
6655 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6656else
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_prog_ac_ct_OTOOL64="otool64"
6665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669done
6670IFS=$as_save_IFS
6671
6672fi
6673fi
6674ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6675if test -n "$ac_ct_OTOOL64"; then
6676 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6677$as_echo "$ac_ct_OTOOL64" >&6; }
6678else
6679 { $as_echo "$as_me:$LINENO: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683 if test "x$ac_ct_OTOOL64" = x; then
6684 OTOOL64=":"
6685 else
6686 case $cross_compiling:$ac_tool_warned in
6687yes:)
6688{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690ac_tool_warned=yes ;;
6691esac
6692 OTOOL64=$ac_ct_OTOOL64
6693 fi
6694else
6695 OTOOL64="$ac_cv_prog_OTOOL64"
6696fi
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6725$as_echo_n "checking for -single_module linker flag... " >&6; }
6726if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6727 $as_echo_n "(cached) " >&6
6728else
6729 lt_cv_apple_cc_single_mod=no
6730 if test -z "${LT_MULTI_MODULE}"; then
6731 # By default we will add the -single_module flag. You can override
6732 # by either setting the environment variable LT_MULTI_MODULE
6733 # non-empty at configure time, or by adding -multi_module to the
6734 # link flags.
6735 rm -rf libconftest.dylib*
6736 echo "int foo(void){return 1;}" > conftest.c
6737 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6738-dynamiclib -Wl,-single_module conftest.c" >&5
6739 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6740 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6741 _lt_result=$?
6742 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6743 lt_cv_apple_cc_single_mod=yes
6744 else
6745 cat conftest.err >&5
6746 fi
6747 rm -rf libconftest.dylib*
6748 rm -f conftest.*
6749 fi
6750fi
6751{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6752$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6753 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6754$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6755if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6756 $as_echo_n "(cached) " >&6
6757else
6758 lt_cv_ld_exported_symbols_list=no
6759 save_LDFLAGS=$LDFLAGS
6760 echo "_main" > conftest.sym
6761 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6762 cat >conftest.$ac_ext <<_ACEOF
6763/* confdefs.h. */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h. */
6768
6769int
6770main ()
6771{
6772
6773 ;
6774 return 0;
6775}
6776_ACEOF
6777rm -f conftest.$ac_objext conftest$ac_exeext
6778if { (ac_try="$ac_link"
6779case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782esac
6783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784$as_echo "$ac_try_echo") >&5
6785 (eval "$ac_link") 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest$ac_exeext && {
6795 test "$cross_compiling" = yes ||
6796 $as_test_x conftest$ac_exeext
6797 }; then
6798 lt_cv_ld_exported_symbols_list=yes
6799else
6800 $as_echo "$as_me: failed program was:" >&5
6801sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 lt_cv_ld_exported_symbols_list=no
6804fi
6805
6806rm -rf conftest.dSYM
6807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext conftest.$ac_ext
6809 LDFLAGS="$save_LDFLAGS"
6810
6811fi
6812{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6813$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6814 case $host_os in
6815 rhapsody* | darwin1.[012])
6816 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6817 darwin1.*)
6818 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6819 darwin*) # darwin 5.x on
6820 # if running on 10.5 or later, the deployment target defaults
6821 # to the OS version, if on x86, and 10.4, the deployment
6822 # target defaults to 10.4. Don't you love it?
6823 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6824 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6825 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6826 10.[012]*)
6827 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6828 10.*)
6829 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6830 esac
6831 ;;
6832 esac
6833 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6834 _lt_dar_single_mod='$single_module'
6835 fi
6836 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6837 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6838 else
6839 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6840 fi
6841 if test "$DSYMUTIL" != ":"; then
6842 _lt_dsymutil='~$DSYMUTIL $lib || :'
6843 else
6844 _lt_dsymutil=
6845 fi
6846 ;;
6847 esac
6848
6849ac_ext=c
6850ac_cpp='$CPP $CPPFLAGS'
6851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6853ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6855$as_echo_n "checking how to run the C preprocessor... " >&6; }
6856# On Suns, sometimes $CPP names a directory.
6857if test -n "$CPP" && test -d "$CPP"; then
6858 CPP=
6859fi
6860if test -z "$CPP"; then
6861 if test "${ac_cv_prog_CPP+set}" = set; then
6862 $as_echo_n "(cached) " >&6
6863else
6864 # Double quotes because CPP needs to be expanded
6865 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6866 do
6867 ac_preproc_ok=false
6868for ac_c_preproc_warn_flag in '' yes
6869do
6870 # Use a header file that comes with gcc, so configuring glibc
6871 # with a fresh cross-compiler works.
6872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6873 # <limits.h> exists even on freestanding compilers.
6874 # On the NeXT, cc -E runs the code through the compiler's parser,
6875 # not just through cpp. "Syntax error" is here to catch this case.
6876 cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h. */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h. */
6882#ifdef __STDC__
6883# include <limits.h>
6884#else
6885# include <assert.h>
6886#endif
6887 Syntax error
6888_ACEOF
6889if { (ac_try="$ac_cpp conftest.$ac_ext"
6890case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893esac
6894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895$as_echo "$ac_try_echo") >&5
6896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } >/dev/null && {
6903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 }; then
6906 :
6907else
6908 $as_echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 # Broken: fails on valid input.
6912continue
6913fi
6914
6915rm -f conftest.err conftest.$ac_ext
6916
6917 # OK, works on sane cases. Now check whether nonexistent headers
6918 # can be detected and how.
6919 cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h. */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h. */
6925#include <ac_nonexistent.h>
6926_ACEOF
6927if { (ac_try="$ac_cpp conftest.$ac_ext"
6928case "(($ac_try" in
6929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6931esac
6932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6933$as_echo "$ac_try_echo") >&5
6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } >/dev/null && {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 }; then
6944 # Broken: success on invalid input.
6945continue
6946else
6947 $as_echo "$as_me: failed program was:" >&5
6948sed 's/^/| /' conftest.$ac_ext >&5
6949
6950 # Passes both tests.
6951ac_preproc_ok=:
6952break
6953fi
6954
6955rm -f conftest.err conftest.$ac_ext
6956
6957done
6958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6959rm -f conftest.err conftest.$ac_ext
6960if $ac_preproc_ok; then
6961 break
6962fi
6963
6964 done
6965 ac_cv_prog_CPP=$CPP
6966
6967fi
6968 CPP=$ac_cv_prog_CPP
6969else
6970 ac_cv_prog_CPP=$CPP
6971fi
6972{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6973$as_echo "$CPP" >&6; }
6974ac_preproc_ok=false
6975for ac_c_preproc_warn_flag in '' yes
6976do
6977 # Use a header file that comes with gcc, so configuring glibc
6978 # with a fresh cross-compiler works.
6979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6980 # <limits.h> exists even on freestanding compilers.
6981 # On the NeXT, cc -E runs the code through the compiler's parser,
6982 # not just through cpp. "Syntax error" is here to catch this case.
6983 cat >conftest.$ac_ext <<_ACEOF
6984/* confdefs.h. */
6985_ACEOF
6986cat confdefs.h >>conftest.$ac_ext
6987cat >>conftest.$ac_ext <<_ACEOF
6988/* end confdefs.h. */
6989#ifdef __STDC__
6990# include <limits.h>
6991#else
6992# include <assert.h>
6993#endif
6994 Syntax error
6995_ACEOF
6996if { (ac_try="$ac_cpp conftest.$ac_ext"
6997case "(($ac_try" in
6998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999 *) ac_try_echo=$ac_try;;
7000esac
7001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7002$as_echo "$ac_try_echo") >&5
7003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } >/dev/null && {
7010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 }; then
7013 :
7014else
7015 $as_echo "$as_me: failed program was:" >&5
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7018 # Broken: fails on valid input.
7019continue
7020fi
7021
7022rm -f conftest.err conftest.$ac_ext
7023
7024 # OK, works on sane cases. Now check whether nonexistent headers
7025 # can be detected and how.
7026 cat >conftest.$ac_ext <<_ACEOF
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032#include <ac_nonexistent.h>
7033_ACEOF
7034if { (ac_try="$ac_cpp conftest.$ac_ext"
7035case "(($ac_try" in
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7038esac
7039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7040$as_echo "$ac_try_echo") >&5
7041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } >/dev/null && {
7048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7049 test ! -s conftest.err
7050 }; then
7051 # Broken: success on invalid input.
7052continue
7053else
7054 $as_echo "$as_me: failed program was:" >&5
7055sed 's/^/| /' conftest.$ac_ext >&5
7056
7057 # Passes both tests.
7058ac_preproc_ok=:
7059break
7060fi
7061
7062rm -f conftest.err conftest.$ac_ext
7063
7064done
7065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7066rm -f conftest.err conftest.$ac_ext
7067if $ac_preproc_ok; then
7068 :
7069else
7070 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7072{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7073See \`config.log' for more details." >&5
7074$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7075See \`config.log' for more details." >&2;}
7076 { (exit 1); exit 1; }; }; }
7077fi
7078
7079ac_ext=c
7080ac_cpp='$CPP $CPPFLAGS'
7081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083ac_compiler_gnu=$ac_cv_c_compiler_gnu
7084
7085
7086{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7087$as_echo_n "checking for ANSI C header files... " >&6; }
7088if test "${ac_cv_header_stdc+set}" = set; then
7089 $as_echo_n "(cached) " >&6
7090else
7091 cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h. */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h. */
7097#include <stdlib.h>
7098#include <stdarg.h>
7099#include <string.h>
7100#include <float.h>
7101
7102int
7103main ()
7104{
7105
7106 ;
7107 return 0;
7108}
7109_ACEOF
7110rm -f conftest.$ac_objext
7111if { (ac_try="$ac_compile"
7112case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115esac
7116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7117$as_echo "$ac_try_echo") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 ac_cv_header_stdc=yes
7129else
7130 $as_echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 ac_cv_header_stdc=no
7134fi
7135
7136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137
7138if test $ac_cv_header_stdc = yes; then
7139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7140 cat >conftest.$ac_ext <<_ACEOF
7141/* confdefs.h. */
7142_ACEOF
7143cat confdefs.h >>conftest.$ac_ext
7144cat >>conftest.$ac_ext <<_ACEOF
7145/* end confdefs.h. */
7146#include <string.h>
7147
7148_ACEOF
7149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150 $EGREP "memchr" >/dev/null 2>&1; then
7151 :
7152else
7153 ac_cv_header_stdc=no
7154fi
7155rm -f conftest*
7156
7157fi
7158
7159if test $ac_cv_header_stdc = yes; then
7160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7161 cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167#include <stdlib.h>
7168
7169_ACEOF
7170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 $EGREP "free" >/dev/null 2>&1; then
7172 :
7173else
7174 ac_cv_header_stdc=no
7175fi
7176rm -f conftest*
7177
7178fi
7179
7180if test $ac_cv_header_stdc = yes; then
7181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7182 if test "$cross_compiling" = yes; then
7183 :
7184else
7185 cat >conftest.$ac_ext <<_ACEOF
7186/* confdefs.h. */
7187_ACEOF
7188cat confdefs.h >>conftest.$ac_ext
7189cat >>conftest.$ac_ext <<_ACEOF
7190/* end confdefs.h. */
7191#include <ctype.h>
7192#include <stdlib.h>
7193#if ((' ' & 0x0FF) == 0x020)
7194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7196#else
7197# define ISLOWER(c) \
7198 (('a' <= (c) && (c) <= 'i') \
7199 || ('j' <= (c) && (c) <= 'r') \
7200 || ('s' <= (c) && (c) <= 'z'))
7201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7202#endif
7203
7204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7205int
7206main ()
7207{
7208 int i;
7209 for (i = 0; i < 256; i++)
7210 if (XOR (islower (i), ISLOWER (i))
7211 || toupper (i) != TOUPPER (i))
7212 return 2;
7213 return 0;
7214}
7215_ACEOF
7216rm -f conftest$ac_exeext
7217if { (ac_try="$ac_link"
7218case "(($ac_try" in
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7221esac
7222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7223$as_echo "$ac_try_echo") >&5
7224 (eval "$ac_link") 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7228 { (case "(($ac_try" in
7229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7230 *) ac_try_echo=$ac_try;;
7231esac
7232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7233$as_echo "$ac_try_echo") >&5
7234 (eval "$ac_try") 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7238 :
7239else
7240 $as_echo "$as_me: program exited with status $ac_status" >&5
7241$as_echo "$as_me: failed program was:" >&5
7242sed 's/^/| /' conftest.$ac_ext >&5
7243
7244( exit $ac_status )
7245ac_cv_header_stdc=no
7246fi
7247rm -rf conftest.dSYM
7248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7249fi
7250
7251
7252fi
7253fi
7254{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7255$as_echo "$ac_cv_header_stdc" >&6; }
7256if test $ac_cv_header_stdc = yes; then
7257
7258cat >>confdefs.h <<\_ACEOF
7259#define STDC_HEADERS 1
7260_ACEOF
7261
7262fi
7263
7264# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7275 inttypes.h stdint.h unistd.h
7276do
7277as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7278{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7279$as_echo_n "checking for $ac_header... " >&6; }
7280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7281 $as_echo_n "(cached) " >&6
7282else
7283 cat >conftest.$ac_ext <<_ACEOF
7284/* confdefs.h. */
7285_ACEOF
7286cat confdefs.h >>conftest.$ac_ext
7287cat >>conftest.$ac_ext <<_ACEOF
7288/* end confdefs.h. */
7289$ac_includes_default
7290
7291#include <$ac_header>
7292_ACEOF
7293rm -f conftest.$ac_objext
7294if { (ac_try="$ac_compile"
7295case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298esac
7299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7300$as_echo "$ac_try_echo") >&5
7301 (eval "$ac_compile") 2>conftest.er1
7302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && {
7308 test -z "$ac_c_werror_flag" ||
7309 test ! -s conftest.err
7310 } && test -s conftest.$ac_objext; then
7311 eval "$as_ac_Header=yes"
7312else
7313 $as_echo "$as_me: failed program was:" >&5
7314sed 's/^/| /' conftest.$ac_ext >&5
7315
7316 eval "$as_ac_Header=no"
7317fi
7318
7319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7320fi
7321ac_res=`eval 'as_val=${'$as_ac_Header'}
7322 $as_echo "$as_val"'`
7323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7324$as_echo "$ac_res" >&6; }
7325as_val=`eval 'as_val=${'$as_ac_Header'}
7326 $as_echo "$as_val"'`
7327 if test "x$as_val" = x""yes; then
7328 cat >>confdefs.h <<_ACEOF
7329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7330_ACEOF
7331
7332fi
7333
7334done
7335
7336
7337
7338for ac_header in dlfcn.h
7339do
7340as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7341{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7342$as_echo_n "checking for $ac_header... " >&6; }
7343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7344 $as_echo_n "(cached) " >&6
7345else
7346 cat >conftest.$ac_ext <<_ACEOF
7347/* confdefs.h. */
7348_ACEOF
7349cat confdefs.h >>conftest.$ac_ext
7350cat >>conftest.$ac_ext <<_ACEOF
7351/* end confdefs.h. */
7352$ac_includes_default
7353
7354#include <$ac_header>
7355_ACEOF
7356rm -f conftest.$ac_objext
7357if { (ac_try="$ac_compile"
7358case "(($ac_try" in
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7361esac
7362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7363$as_echo "$ac_try_echo") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
7374 eval "$as_ac_Header=yes"
7375else
7376 $as_echo "$as_me: failed program was:" >&5
7377sed 's/^/| /' conftest.$ac_ext >&5
7378
7379 eval "$as_ac_Header=no"
7380fi
7381
7382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383fi
7384ac_res=`eval 'as_val=${'$as_ac_Header'}
7385 $as_echo "$as_val"'`
7386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7387$as_echo "$ac_res" >&6; }
7388as_val=`eval 'as_val=${'$as_ac_Header'}
7389 $as_echo "$as_val"'`
7390 if test "x$as_val" = x""yes; then
7391 cat >>confdefs.h <<_ACEOF
7392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393_ACEOF
7394
7395fi
7396
7397done
7398
7399
7400
7401# Set options
7402
7403
7404
7405 enable_dlopen=no
7406
7407
7408 enable_win32_dll=no
7409
7410
7411 # Check whether --enable-shared was given.
7412if test "${enable_shared+set}" = set; then
7413 enableval=$enable_shared; p=${PACKAGE-default}
7414 case $enableval in
7415 yes) enable_shared=yes ;;
7416 no) enable_shared=no ;;
7417 *)
7418 enable_shared=no
7419 # Look at the argument we got. We use all the common list separators.
7420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7421 for pkg in $enableval; do
7422 IFS="$lt_save_ifs"
7423 if test "X$pkg" = "X$p"; then
7424 enable_shared=yes
7425 fi
7426 done
7427 IFS="$lt_save_ifs"
7428 ;;
7429 esac
7430else
7431 enable_shared=yes
7432fi
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442 # Check whether --enable-static was given.
7443if test "${enable_static+set}" = set; then
7444 enableval=$enable_static; p=${PACKAGE-default}
7445 case $enableval in
7446 yes) enable_static=yes ;;
7447 no) enable_static=no ;;
7448 *)
7449 enable_static=no
7450 # Look at the argument we got. We use all the common list separators.
7451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7452 for pkg in $enableval; do
7453 IFS="$lt_save_ifs"
7454 if test "X$pkg" = "X$p"; then
7455 enable_static=yes
7456 fi
7457 done
7458 IFS="$lt_save_ifs"
7459 ;;
7460 esac
7461else
7462 enable_static=yes
7463fi
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474# Check whether --with-pic was given.
7475if test "${with_pic+set}" = set; then
7476 withval=$with_pic; pic_mode="$withval"
7477else
7478 pic_mode=default
7479fi
7480
7481
7482test -z "$pic_mode" && pic_mode=default
7483
7484
7485
7486
7487
7488
7489
7490 # Check whether --enable-fast-install was given.
7491if test "${enable_fast_install+set}" = set; then
7492 enableval=$enable_fast_install; p=${PACKAGE-default}
7493 case $enableval in
7494 yes) enable_fast_install=yes ;;
7495 no) enable_fast_install=no ;;
7496 *)
7497 enable_fast_install=no
7498 # Look at the argument we got. We use all the common list separators.
7499 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7500 for pkg in $enableval; do
7501 IFS="$lt_save_ifs"
7502 if test "X$pkg" = "X$p"; then
7503 enable_fast_install=yes
7504 fi
7505 done
7506 IFS="$lt_save_ifs"
7507 ;;
7508 esac
7509else
7510 enable_fast_install=yes
7511fi
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523# This can be used to rebuild libtool when needed
7524LIBTOOL_DEPS="$ltmain"
7525
7526# Always use our own libtool.
7527LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553test -z "$LN_S" && LN_S="ln -s"
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568if test -n "${ZSH_VERSION+set}" ; then
7569 setopt NO_GLOB_SUBST
7570fi
7571
7572{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7573$as_echo_n "checking for objdir... " >&6; }
7574if test "${lt_cv_objdir+set}" = set; then
7575 $as_echo_n "(cached) " >&6
7576else
7577 rm -f .libs 2>/dev/null
7578mkdir .libs 2>/dev/null
7579if test -d .libs; then
7580 lt_cv_objdir=.libs
7581else
7582 # MS-DOS does not allow filenames that begin with a dot.
7583 lt_cv_objdir=_libs
7584fi
7585rmdir .libs 2>/dev/null
7586fi
7587{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7588$as_echo "$lt_cv_objdir" >&6; }
7589objdir=$lt_cv_objdir
7590
7591
7592
7593
7594
7595cat >>confdefs.h <<_ACEOF
7596#define LT_OBJDIR "$lt_cv_objdir/"
7597_ACEOF
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615case $host_os in
7616aix3*)
7617 # AIX sometimes has problems with the GCC collect2 program. For some
7618 # reason, if we set the COLLECT_NAMES environment variable, the problems
7619 # vanish in a puff of smoke.
7620 if test "X${COLLECT_NAMES+set}" != Xset; then
7621 COLLECT_NAMES=
7622 export COLLECT_NAMES
7623 fi
7624 ;;
7625esac
7626
7627# Sed substitution that helps us do robust quoting. It backslashifies
7628# metacharacters that are still active within double-quoted strings.
7629sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7630
7631# Same as above, but do not quote variable references.
7632double_quote_subst='s/\(["`\\]\)/\\\1/g'
7633
7634# Sed substitution to delay expansion of an escaped shell variable in a
7635# double_quote_subst'ed string.
7636delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7637
7638# Sed substitution to delay expansion of an escaped single quote.
7639delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7640
7641# Sed substitution to avoid accidental globbing in evaled expressions
7642no_glob_subst='s/\*/\\\*/g'
7643
7644# Global variables:
7645ofile=libtool
7646can_build_shared=yes
7647
7648# All known linkers require a `.a' archive for static linking (except MSVC,
7649# which needs '.lib').
7650libext=a
7651
7652with_gnu_ld="$lt_cv_prog_gnu_ld"
7653
7654old_CC="$CC"
7655old_CFLAGS="$CFLAGS"
7656
7657# Set sane defaults for various variables
7658test -z "$CC" && CC=cc
7659test -z "$LTCC" && LTCC=$CC
7660test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7661test -z "$LD" && LD=ld
7662test -z "$ac_objext" && ac_objext=o
7663
7664for cc_temp in $compiler""; do
7665 case $cc_temp in
7666 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7667 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7668 \-*) ;;
7669 *) break;;
7670 esac
7671done
7672cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7673
7674
7675# Only perform the check for file, if the check method requires it
7676test -z "$MAGIC_CMD" && MAGIC_CMD=file
7677case $deplibs_check_method in
7678file_magic*)
7679 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7680 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7681$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7682if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7683 $as_echo_n "(cached) " >&6
7684else
7685 case $MAGIC_CMD in
7686[\\/*] | ?:[\\/]*)
7687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7688 ;;
7689*)
7690 lt_save_MAGIC_CMD="$MAGIC_CMD"
7691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7692 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7693 for ac_dir in $ac_dummy; do
7694 IFS="$lt_save_ifs"
7695 test -z "$ac_dir" && ac_dir=.
7696 if test -f $ac_dir/${ac_tool_prefix}file; then
7697 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7698 if test -n "$file_magic_test_file"; then
7699 case $deplibs_check_method in
7700 "file_magic "*)
7701 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7703 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7704 $EGREP "$file_magic_regex" > /dev/null; then
7705 :
7706 else
7707 cat <<_LT_EOF 1>&2
7708
7709*** Warning: the command libtool uses to detect shared libraries,
7710*** $file_magic_cmd, produces output that libtool cannot recognize.
7711*** The result is that libtool may fail to recognize shared libraries
7712*** as such. This will affect the creation of libtool libraries that
7713*** depend on shared libraries, but programs linked with such libtool
7714*** libraries will work regardless of this problem. Nevertheless, you
7715*** may want to report the problem to your system manager and/or to
7716*** bug-libtool@gnu.org
7717
7718_LT_EOF
7719 fi ;;
7720 esac
7721 fi
7722 break
7723 fi
7724 done
7725 IFS="$lt_save_ifs"
7726 MAGIC_CMD="$lt_save_MAGIC_CMD"
7727 ;;
7728esac
7729fi
7730
7731MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7732if test -n "$MAGIC_CMD"; then
7733 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7734$as_echo "$MAGIC_CMD" >&6; }
7735else
7736 { $as_echo "$as_me:$LINENO: result: no" >&5
7737$as_echo "no" >&6; }
7738fi
7739
7740
7741
7742
7743
7744if test -z "$lt_cv_path_MAGIC_CMD"; then
7745 if test -n "$ac_tool_prefix"; then
7746 { $as_echo "$as_me:$LINENO: checking for file" >&5
7747$as_echo_n "checking for file... " >&6; }
7748if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7749 $as_echo_n "(cached) " >&6
7750else
7751 case $MAGIC_CMD in
7752[\\/*] | ?:[\\/]*)
7753 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7754 ;;
7755*)
7756 lt_save_MAGIC_CMD="$MAGIC_CMD"
7757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7759 for ac_dir in $ac_dummy; do
7760 IFS="$lt_save_ifs"
7761 test -z "$ac_dir" && ac_dir=.
7762 if test -f $ac_dir/file; then
7763 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7764 if test -n "$file_magic_test_file"; then
7765 case $deplibs_check_method in
7766 "file_magic "*)
7767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7770 $EGREP "$file_magic_regex" > /dev/null; then
7771 :
7772 else
7773 cat <<_LT_EOF 1>&2
7774
7775*** Warning: the command libtool uses to detect shared libraries,
7776*** $file_magic_cmd, produces output that libtool cannot recognize.
7777*** The result is that libtool may fail to recognize shared libraries
7778*** as such. This will affect the creation of libtool libraries that
7779*** depend on shared libraries, but programs linked with such libtool
7780*** libraries will work regardless of this problem. Nevertheless, you
7781*** may want to report the problem to your system manager and/or to
7782*** bug-libtool@gnu.org
7783
7784_LT_EOF
7785 fi ;;
7786 esac
7787 fi
7788 break
7789 fi
7790 done
7791 IFS="$lt_save_ifs"
7792 MAGIC_CMD="$lt_save_MAGIC_CMD"
7793 ;;
7794esac
7795fi
7796
7797MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7798if test -n "$MAGIC_CMD"; then
7799 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7800$as_echo "$MAGIC_CMD" >&6; }
7801else
7802 { $as_echo "$as_me:$LINENO: result: no" >&5
7803$as_echo "no" >&6; }
7804fi
7805
7806
7807 else
7808 MAGIC_CMD=:
7809 fi
7810fi
7811
7812 fi
7813 ;;
7814esac
7815
7816# Use C for the default configuration in the libtool script
7817
7818lt_save_CC="$CC"
7819ac_ext=c
7820ac_cpp='$CPP $CPPFLAGS'
7821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826# Source file extension for C test sources.
7827ac_ext=c
7828
7829# Object file extension for compiled C test sources.
7830objext=o
7831objext=$objext
7832
7833# Code to be used in simple compile tests
7834lt_simple_compile_test_code="int some_variable = 0;"
7835
7836# Code to be used in simple link tests
7837lt_simple_link_test_code='int main(){return(0);}'
7838
7839
7840
7841
7842
7843
7844
7845# If no C compiler was specified, use CC.
7846LTCC=${LTCC-"$CC"}
7847
7848# If no C compiler flags were specified, use CFLAGS.
7849LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7850
7851# Allow CC to be a program name with arguments.
7852compiler=$CC
7853
7854# Save the default compiler, since it gets overwritten when the other
7855# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7856compiler_DEFAULT=$CC
7857
7858# save warnings/boilerplate of simple test code
7859ac_outfile=conftest.$ac_objext
7860echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7861eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7862_lt_compiler_boilerplate=`cat conftest.err`
7863$RM conftest*
7864
7865ac_outfile=conftest.$ac_objext
7866echo "$lt_simple_link_test_code" >conftest.$ac_ext
7867eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7868_lt_linker_boilerplate=`cat conftest.err`
7869$RM -r conftest*
7870
7871
7872if test -n "$compiler"; then
7873
7874lt_prog_compiler_no_builtin_flag=
7875
7876if test "$GCC" = yes; then
7877 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7878
7879 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7880$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7881if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7882 $as_echo_n "(cached) " >&6
7883else
7884 lt_cv_prog_compiler_rtti_exceptions=no
7885 ac_outfile=conftest.$ac_objext
7886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887 lt_compiler_flag="-fno-rtti -fno-exceptions"
7888 # Insert the option either (1) after the last *FLAGS variable, or
7889 # (2) before a word containing "conftest.", or (3) at the end.
7890 # Note that $ac_compile itself does not contain backslashes and begins
7891 # with a dollar sign (not a hyphen), so the echo should work correctly.
7892 # The option is referenced via a variable to avoid confusing sed.
7893 lt_compile=`echo "$ac_compile" | $SED \
7894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896 -e 's:$: $lt_compiler_flag:'`
de0a1c09 7897 (eval echo "\"\$as_me:7897: $lt_compile\"" >&5)
e70e591c
BB
7898 (eval "$lt_compile" 2>conftest.err)
7899 ac_status=$?
7900 cat conftest.err >&5
de0a1c09 7901 echo "$as_me:7901: \$? = $ac_status" >&5
e70e591c
BB
7902 if (exit $ac_status) && test -s "$ac_outfile"; then
7903 # The compiler can only warn and ignore the option if not recognized
7904 # So say no if there are warnings other than the usual output.
7905 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7908 lt_cv_prog_compiler_rtti_exceptions=yes
7909 fi
7910 fi
7911 $RM conftest*
7912
7913fi
7914{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7915$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7916
7917if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7918 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7919else
7920 :
7921fi
7922
7923fi
7924
7925
7926
7927
7928
7929
7930 lt_prog_compiler_wl=
7931lt_prog_compiler_pic=
7932lt_prog_compiler_static=
7933
7934{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7935$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7936
7937 if test "$GCC" = yes; then
7938 lt_prog_compiler_wl='-Wl,'
7939 lt_prog_compiler_static='-static'
7940
7941 case $host_os in
7942 aix*)
7943 # All AIX code is PIC.
7944 if test "$host_cpu" = ia64; then
7945 # AIX 5 now supports IA64 processor
7946 lt_prog_compiler_static='-Bstatic'
7947 fi
7948 ;;
7949
7950 amigaos*)
7951 case $host_cpu in
7952 powerpc)
7953 # see comment about AmigaOS4 .so support
7954 lt_prog_compiler_pic='-fPIC'
7955 ;;
7956 m68k)
7957 # FIXME: we need at least 68020 code to build shared libraries, but
7958 # adding the `-m68020' flag to GCC prevents building anything better,
7959 # like `-m68040'.
7960 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7961 ;;
7962 esac
7963 ;;
7964
7965 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7966 # PIC is the default for these OSes.
7967 ;;
7968
7969 mingw* | cygwin* | pw32* | os2* | cegcc*)
7970 # This hack is so that the source file can tell whether it is being
7971 # built for inclusion in a dll (and should export symbols for example).
7972 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7973 # (--disable-auto-import) libraries
7974 lt_prog_compiler_pic='-DDLL_EXPORT'
7975 ;;
7976
7977 darwin* | rhapsody*)
7978 # PIC is the default on this platform
7979 # Common symbols not allowed in MH_DYLIB files
7980 lt_prog_compiler_pic='-fno-common'
7981 ;;
7982
7983 hpux*)
7984 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7985 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7986 # sets the default TLS model and affects inlining.
7987 case $host_cpu in
7988 hppa*64*)
7989 # +Z the default
7990 ;;
7991 *)
7992 lt_prog_compiler_pic='-fPIC'
7993 ;;
7994 esac
7995 ;;
7996
7997 interix[3-9]*)
7998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7999 # Instead, we relocate shared libraries at runtime.
8000 ;;
8001
8002 msdosdjgpp*)
8003 # Just because we use GCC doesn't mean we suddenly get shared libraries
8004 # on systems that don't support them.
8005 lt_prog_compiler_can_build_shared=no
8006 enable_shared=no
8007 ;;
8008
8009 *nto* | *qnx*)
8010 # QNX uses GNU C++, but need to define -shared option too, otherwise
8011 # it will coredump.
8012 lt_prog_compiler_pic='-fPIC -shared'
8013 ;;
8014
8015 sysv4*MP*)
8016 if test -d /usr/nec; then
8017 lt_prog_compiler_pic=-Kconform_pic
8018 fi
8019 ;;
8020
8021 *)
8022 lt_prog_compiler_pic='-fPIC'
8023 ;;
8024 esac
8025 else
8026 # PORTME Check for flag to pass linker flags through the system compiler.
8027 case $host_os in
8028 aix*)
8029 lt_prog_compiler_wl='-Wl,'
8030 if test "$host_cpu" = ia64; then
8031 # AIX 5 now supports IA64 processor
8032 lt_prog_compiler_static='-Bstatic'
8033 else
8034 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8035 fi
8036 ;;
8037
8038 mingw* | cygwin* | pw32* | os2* | cegcc*)
8039 # This hack is so that the source file can tell whether it is being
8040 # built for inclusion in a dll (and should export symbols for example).
8041 lt_prog_compiler_pic='-DDLL_EXPORT'
8042 ;;
8043
8044 hpux9* | hpux10* | hpux11*)
8045 lt_prog_compiler_wl='-Wl,'
8046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8047 # not for PA HP-UX.
8048 case $host_cpu in
8049 hppa*64*|ia64*)
8050 # +Z the default
8051 ;;
8052 *)
8053 lt_prog_compiler_pic='+Z'
8054 ;;
8055 esac
8056 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8057 lt_prog_compiler_static='${wl}-a ${wl}archive'
8058 ;;
8059
8060 irix5* | irix6* | nonstopux*)
8061 lt_prog_compiler_wl='-Wl,'
8062 # PIC (with -KPIC) is the default.
8063 lt_prog_compiler_static='-non_shared'
8064 ;;
8065
8066 linux* | k*bsd*-gnu)
8067 case $cc_basename in
8068 # old Intel for x86_64 which still supported -KPIC.
8069 ecc*)
8070 lt_prog_compiler_wl='-Wl,'
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-static'
8073 ;;
8074 # icc used to be incompatible with GCC.
8075 # ICC 10 doesn't accept -KPIC any more.
8076 icc* | ifort*)
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-fPIC'
8079 lt_prog_compiler_static='-static'
8080 ;;
8081 # Lahey Fortran 8.1.
8082 lf95*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_pic='--shared'
8085 lt_prog_compiler_static='--static'
8086 ;;
8087 pgcc* | pgf77* | pgf90* | pgf95*)
8088 # Portland Group compilers (*not* the Pentium gcc compiler,
8089 # which looks to be a dead project)
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_pic='-fpic'
8092 lt_prog_compiler_static='-Bstatic'
8093 ;;
8094 ccc*)
8095 lt_prog_compiler_wl='-Wl,'
8096 # All Alpha code is PIC.
8097 lt_prog_compiler_static='-non_shared'
8098 ;;
8099 xl*)
8100 # IBM XL C 8.0/Fortran 10.1 on PPC
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-qpic'
8103 lt_prog_compiler_static='-qstaticlink'
8104 ;;
8105 *)
8106 case `$CC -V 2>&1 | sed 5q` in
8107 *Sun\ C*)
8108 # Sun C 5.9
8109 lt_prog_compiler_pic='-KPIC'
8110 lt_prog_compiler_static='-Bstatic'
8111 lt_prog_compiler_wl='-Wl,'
8112 ;;
8113 *Sun\ F*)
8114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
8117 lt_prog_compiler_wl=''
8118 ;;
8119 esac
8120 ;;
8121 esac
8122 ;;
8123
8124 newsos6)
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8127 ;;
8128
8129 *nto* | *qnx*)
8130 # QNX uses GNU C++, but need to define -shared option too, otherwise
8131 # it will coredump.
8132 lt_prog_compiler_pic='-fPIC -shared'
8133 ;;
8134
8135 osf3* | osf4* | osf5*)
8136 lt_prog_compiler_wl='-Wl,'
8137 # All OSF/1 code is PIC.
8138 lt_prog_compiler_static='-non_shared'
8139 ;;
8140
8141 rdos*)
8142 lt_prog_compiler_static='-non_shared'
8143 ;;
8144
8145 solaris*)
8146 lt_prog_compiler_pic='-KPIC'
8147 lt_prog_compiler_static='-Bstatic'
8148 case $cc_basename in
8149 f77* | f90* | f95*)
8150 lt_prog_compiler_wl='-Qoption ld ';;
8151 *)
8152 lt_prog_compiler_wl='-Wl,';;
8153 esac
8154 ;;
8155
8156 sunos4*)
8157 lt_prog_compiler_wl='-Qoption ld '
8158 lt_prog_compiler_pic='-PIC'
8159 lt_prog_compiler_static='-Bstatic'
8160 ;;
8161
8162 sysv4 | sysv4.2uw2* | sysv4.3*)
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-Bstatic'
8166 ;;
8167
8168 sysv4*MP*)
8169 if test -d /usr/nec ;then
8170 lt_prog_compiler_pic='-Kconform_pic'
8171 lt_prog_compiler_static='-Bstatic'
8172 fi
8173 ;;
8174
8175 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='-KPIC'
8178 lt_prog_compiler_static='-Bstatic'
8179 ;;
8180
8181 unicos*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_can_build_shared=no
8184 ;;
8185
8186 uts4*)
8187 lt_prog_compiler_pic='-pic'
8188 lt_prog_compiler_static='-Bstatic'
8189 ;;
8190
8191 *)
8192 lt_prog_compiler_can_build_shared=no
8193 ;;
8194 esac
8195 fi
8196
8197case $host_os in
8198 # For platforms which do not support PIC, -DPIC is meaningless:
8199 *djgpp*)
8200 lt_prog_compiler_pic=
8201 ;;
8202 *)
8203 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8204 ;;
8205esac
8206{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8207$as_echo "$lt_prog_compiler_pic" >&6; }
8208
8209
8210
8211
8212
8213
8214#
8215# Check to make sure the PIC flag actually works.
8216#
8217if test -n "$lt_prog_compiler_pic"; then
8218 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8219$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8220if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8221 $as_echo_n "(cached) " >&6
8222else
8223 lt_cv_prog_compiler_pic_works=no
8224 ac_outfile=conftest.$ac_objext
8225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8226 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8227 # Insert the option either (1) after the last *FLAGS variable, or
8228 # (2) before a word containing "conftest.", or (3) at the end.
8229 # Note that $ac_compile itself does not contain backslashes and begins
8230 # with a dollar sign (not a hyphen), so the echo should work correctly.
8231 # The option is referenced via a variable to avoid confusing sed.
8232 lt_compile=`echo "$ac_compile" | $SED \
8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235 -e 's:$: $lt_compiler_flag:'`
de0a1c09 8236 (eval echo "\"\$as_me:8236: $lt_compile\"" >&5)
e70e591c
BB
8237 (eval "$lt_compile" 2>conftest.err)
8238 ac_status=$?
8239 cat conftest.err >&5
de0a1c09 8240 echo "$as_me:8240: \$? = $ac_status" >&5
e70e591c
BB
8241 if (exit $ac_status) && test -s "$ac_outfile"; then
8242 # The compiler can only warn and ignore the option if not recognized
8243 # So say no if there are warnings other than the usual output.
8244 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8246 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8247 lt_cv_prog_compiler_pic_works=yes
8248 fi
8249 fi
8250 $RM conftest*
8251
8252fi
8253{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8254$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8255
8256if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8257 case $lt_prog_compiler_pic in
8258 "" | " "*) ;;
8259 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8260 esac
8261else
8262 lt_prog_compiler_pic=
8263 lt_prog_compiler_can_build_shared=no
8264fi
8265
8266fi
8267
8268
8269
8270
8271
8272
8273#
8274# Check to make sure the static flag actually works.
8275#
8276wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8277{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8278$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8279if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8280 $as_echo_n "(cached) " >&6
8281else
8282 lt_cv_prog_compiler_static_works=no
8283 save_LDFLAGS="$LDFLAGS"
8284 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8285 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8286 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8287 # The linker can only warn and ignore the option if not recognized
8288 # So say no if there are warnings
8289 if test -s conftest.err; then
8290 # Append any errors to the config.log.
8291 cat conftest.err 1>&5
8292 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8293 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8294 if diff conftest.exp conftest.er2 >/dev/null; then
8295 lt_cv_prog_compiler_static_works=yes
8296 fi
8297 else
8298 lt_cv_prog_compiler_static_works=yes
8299 fi
8300 fi
8301 $RM -r conftest*
8302 LDFLAGS="$save_LDFLAGS"
8303
8304fi
8305{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8306$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8307
8308if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8309 :
8310else
8311 lt_prog_compiler_static=
8312fi
8313
8314
8315
8316
8317
8318
8319
8320 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8321$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8323 $as_echo_n "(cached) " >&6
8324else
8325 lt_cv_prog_compiler_c_o=no
8326 $RM -r conftest 2>/dev/null
8327 mkdir conftest
8328 cd conftest
8329 mkdir out
8330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8331
8332 lt_compiler_flag="-o out/conftest2.$ac_objext"
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 lt_compile=`echo "$ac_compile" | $SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
de0a1c09 8341 (eval echo "\"\$as_me:8341: $lt_compile\"" >&5)
e70e591c
BB
8342 (eval "$lt_compile" 2>out/conftest.err)
8343 ac_status=$?
8344 cat out/conftest.err >&5
de0a1c09 8345 echo "$as_me:8345: \$? = $ac_status" >&5
e70e591c
BB
8346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8347 then
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings
8350 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8353 lt_cv_prog_compiler_c_o=yes
8354 fi
8355 fi
8356 chmod u+w . 2>&5
8357 $RM conftest*
8358 # SGI C++ compiler will create directory out/ii_files/ for
8359 # template instantiation
8360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8361 $RM out/* && rmdir out
8362 cd ..
8363 $RM -r conftest
8364 $RM conftest*
8365
8366fi
8367{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8368$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8369
8370
8371
8372
8373
8374
8375 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8376$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8377if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8378 $as_echo_n "(cached) " >&6
8379else
8380 lt_cv_prog_compiler_c_o=no
8381 $RM -r conftest 2>/dev/null
8382 mkdir conftest
8383 cd conftest
8384 mkdir out
8385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8386
8387 lt_compiler_flag="-o out/conftest2.$ac_objext"
8388 # Insert the option either (1) after the last *FLAGS variable, or
8389 # (2) before a word containing "conftest.", or (3) at the end.
8390 # Note that $ac_compile itself does not contain backslashes and begins
8391 # with a dollar sign (not a hyphen), so the echo should work correctly.
8392 lt_compile=`echo "$ac_compile" | $SED \
8393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395 -e 's:$: $lt_compiler_flag:'`
de0a1c09 8396 (eval echo "\"\$as_me:8396: $lt_compile\"" >&5)
e70e591c
BB
8397 (eval "$lt_compile" 2>out/conftest.err)
8398 ac_status=$?
8399 cat out/conftest.err >&5
de0a1c09 8400 echo "$as_me:8400: \$? = $ac_status" >&5
e70e591c
BB
8401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8402 then
8403 # The compiler can only warn and ignore the option if not recognized
8404 # So say no if there are warnings
8405 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8408 lt_cv_prog_compiler_c_o=yes
8409 fi
8410 fi
8411 chmod u+w . 2>&5
8412 $RM conftest*
8413 # SGI C++ compiler will create directory out/ii_files/ for
8414 # template instantiation
8415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8416 $RM out/* && rmdir out
8417 cd ..
8418 $RM -r conftest
8419 $RM conftest*
8420
8421fi
8422{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8423$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8424
8425
8426
8427
8428hard_links="nottested"
8429if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8430 # do not overwrite the value of need_locks provided by the user
8431 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8432$as_echo_n "checking if we can lock with hard links... " >&6; }
8433 hard_links=yes
8434 $RM conftest*
8435 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8436 touch conftest.a
8437 ln conftest.a conftest.b 2>&5 || hard_links=no
8438 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8439 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8440$as_echo "$hard_links" >&6; }
8441 if test "$hard_links" = no; then
8442 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8443$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8444 need_locks=warn
8445 fi
8446else
8447 need_locks=no
8448fi
8449
8450
8451
8452
8453
8454
8455 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8456$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8457
8458 runpath_var=
8459 allow_undefined_flag=
8460 always_export_symbols=no
8461 archive_cmds=
8462 archive_expsym_cmds=
8463 compiler_needs_object=no
8464 enable_shared_with_static_runtimes=no
8465 export_dynamic_flag_spec=
8466 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8467 hardcode_automatic=no
8468 hardcode_direct=no
8469 hardcode_direct_absolute=no
8470 hardcode_libdir_flag_spec=
8471 hardcode_libdir_flag_spec_ld=
8472 hardcode_libdir_separator=
8473 hardcode_minus_L=no
8474 hardcode_shlibpath_var=unsupported
8475 inherit_rpath=no
8476 link_all_deplibs=unknown
8477 module_cmds=
8478 module_expsym_cmds=
8479 old_archive_from_new_cmds=
8480 old_archive_from_expsyms_cmds=
8481 thread_safe_flag_spec=
8482 whole_archive_flag_spec=
8483 # include_expsyms should be a list of space-separated symbols to be *always*
8484 # included in the symbol list
8485 include_expsyms=
8486 # exclude_expsyms can be an extended regexp of symbols to exclude
8487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8489 # as well as any symbol that contains `d'.
8490 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8492 # platforms (ab)use it in PIC code, but their linkers get confused if
8493 # the symbol is explicitly referenced. Since portable code cannot
8494 # rely on this symbol name, it's probably fine to never include it in
8495 # preloaded symbol tables.
8496 # Exclude shared library initialization/finalization symbols.
8497 extract_expsyms_cmds=
8498
8499 case $host_os in
8500 cygwin* | mingw* | pw32* | cegcc*)
8501 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8502 # When not using gcc, we currently assume that we are using
8503 # Microsoft Visual C++.
8504 if test "$GCC" != yes; then
8505 with_gnu_ld=no
8506 fi
8507 ;;
8508 interix*)
8509 # we just hope/assume this is gcc and not c89 (= MSVC++)
8510 with_gnu_ld=yes
8511 ;;
8512 openbsd*)
8513 with_gnu_ld=no
8514 ;;
8515 esac
8516
8517 ld_shlibs=yes
8518 if test "$with_gnu_ld" = yes; then
8519 # If archive_cmds runs LD, not CC, wlarc should be empty
8520 wlarc='${wl}'
8521
8522 # Set some defaults for GNU ld with shared library support. These
8523 # are reset later if shared libraries are not supported. Putting them
8524 # here allows them to be overridden if necessary.
8525 runpath_var=LD_RUN_PATH
8526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8527 export_dynamic_flag_spec='${wl}--export-dynamic'
8528 # ancient GNU ld didn't support --whole-archive et. al.
8529 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8530 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8531 else
8532 whole_archive_flag_spec=
8533 fi
8534 supports_anon_versioning=no
8535 case `$LD -v 2>&1` in
8536 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8539 *\ 2.11.*) ;; # other 2.11 versions
8540 *) supports_anon_versioning=yes ;;
8541 esac
8542
8543 # See if GNU ld supports shared libraries.
8544 case $host_os in
8545 aix[3-9]*)
8546 # On AIX/PPC, the GNU linker is very broken
8547 if test "$host_cpu" != ia64; then
8548 ld_shlibs=no
8549 cat <<_LT_EOF 1>&2
8550
8551*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8552*** to be unable to reliably create shared libraries on AIX.
8553*** Therefore, libtool is disabling shared libraries support. If you
8554*** really care for shared libraries, you may want to modify your PATH
8555*** so that a non-GNU linker is found, and then restart.
8556
8557_LT_EOF
8558 fi
8559 ;;
8560
8561 amigaos*)
8562 case $host_cpu in
8563 powerpc)
8564 # see comment about AmigaOS4 .so support
8565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566 archive_expsym_cmds=''
8567 ;;
8568 m68k)
8569 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)'
8570 hardcode_libdir_flag_spec='-L$libdir'
8571 hardcode_minus_L=yes
8572 ;;
8573 esac
8574 ;;
8575
8576 beos*)
8577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8578 allow_undefined_flag=unsupported
8579 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8580 # support --undefined. This deserves some investigation. FIXME
8581 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8582 else
8583 ld_shlibs=no
8584 fi
8585 ;;
8586
8587 cygwin* | mingw* | pw32* | cegcc*)
8588 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8589 # as there is no search path for DLLs.
8590 hardcode_libdir_flag_spec='-L$libdir'
8591 allow_undefined_flag=unsupported
8592 always_export_symbols=no
8593 enable_shared_with_static_runtimes=yes
8594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8595
8596 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8598 # If the export-symbols file already is a .def file (1st line
8599 # is EXPORTS), use it as is; otherwise, prepend...
8600 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8601 cp $export_symbols $output_objdir/$soname.def;
8602 else
8603 echo EXPORTS > $output_objdir/$soname.def;
8604 cat $export_symbols >> $output_objdir/$soname.def;
8605 fi~
8606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8607 else
8608 ld_shlibs=no
8609 fi
8610 ;;
8611
8612 interix[3-9]*)
8613 hardcode_direct=no
8614 hardcode_shlibpath_var=no
8615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616 export_dynamic_flag_spec='${wl}-E'
8617 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8618 # Instead, shared libraries are loaded at an image base (0x10000000 by
8619 # default) and relocated if they conflict, which is a slow very memory
8620 # consuming and fragmenting process. To avoid this, we pick a random,
8621 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8622 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8624 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'
8625 ;;
8626
8627 gnu* | linux* | tpf* | k*bsd*-gnu)
8628 tmp_diet=no
8629 if test "$host_os" = linux-dietlibc; then
8630 case $cc_basename in
8631 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8632 esac
8633 fi
8634 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8635 && test "$tmp_diet" = no
8636 then
8637 tmp_addflag=
8638 tmp_sharedflag='-shared'
8639 case $cc_basename,$host_cpu in
8640 pgcc*) # Portland Group C compiler
8641 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'
8642 tmp_addflag=' $pic_flag'
8643 ;;
8644 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8645 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'
8646 tmp_addflag=' $pic_flag -Mnomain' ;;
8647 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8648 tmp_addflag=' -i_dynamic' ;;
8649 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8650 tmp_addflag=' -i_dynamic -nofor_main' ;;
8651 ifc* | ifort*) # Intel Fortran compiler
8652 tmp_addflag=' -nofor_main' ;;
8653 lf95*) # Lahey Fortran 8.1
8654 whole_archive_flag_spec=
8655 tmp_sharedflag='--shared' ;;
8656 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8657 tmp_sharedflag='-qmkshrobj'
8658 tmp_addflag= ;;
8659 esac
8660 case `$CC -V 2>&1 | sed 5q` in
8661 *Sun\ C*) # Sun C 5.9
8662 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'
8663 compiler_needs_object=yes
8664 tmp_sharedflag='-G' ;;
8665 *Sun\ F*) # Sun Fortran 8.3
8666 tmp_sharedflag='-G' ;;
8667 esac
8668 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669
8670 if test "x$supports_anon_versioning" = xyes; then
8671 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673 echo "local: *; };" >> $output_objdir/$libname.ver~
8674 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8675 fi
8676
8677 case $cc_basename in
8678 xlf*)
8679 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8680 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8681 hardcode_libdir_flag_spec=
8682 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8683 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8684 if test "x$supports_anon_versioning" = xyes; then
8685 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687 echo "local: *; };" >> $output_objdir/$libname.ver~
8688 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8689 fi
8690 ;;
8691 esac
8692 else
8693 ld_shlibs=no
8694 fi
8695 ;;
8696
8697 netbsd*)
8698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8700 wlarc=
8701 else
8702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8704 fi
8705 ;;
8706
8707 solaris*)
8708 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8709 ld_shlibs=no
8710 cat <<_LT_EOF 1>&2
8711
8712*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713*** create shared libraries on Solaris systems. Therefore, libtool
8714*** is disabling shared libraries support. We urge you to upgrade GNU
8715*** binutils to release 2.9.1 or newer. Another option is to modify
8716*** your PATH or compiler configuration so that the native linker is
8717*** used, and then restart.
8718
8719_LT_EOF
8720 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8723 else
8724 ld_shlibs=no
8725 fi
8726 ;;
8727
8728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729 case `$LD -v 2>&1` in
8730 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8731 ld_shlibs=no
8732 cat <<_LT_EOF 1>&2
8733
8734*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735*** reliably create shared libraries on SCO systems. Therefore, libtool
8736*** is disabling shared libraries support. We urge you to upgrade GNU
8737*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8738*** your PATH or compiler configuration so that the native linker is
8739*** used, and then restart.
8740
8741_LT_EOF
8742 ;;
8743 *)
8744 # For security reasons, it is highly recommended that you always
8745 # use absolute paths for naming shared libraries, and exclude the
8746 # DT_RUNPATH tag from executables and libraries. But doing so
8747 # requires that you compile everything twice, which is a pain.
8748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752 else
8753 ld_shlibs=no
8754 fi
8755 ;;
8756 esac
8757 ;;
8758
8759 sunos4*)
8760 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8761 wlarc=
8762 hardcode_direct=yes
8763 hardcode_shlibpath_var=no
8764 ;;
8765
8766 *)
8767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8770 else
8771 ld_shlibs=no
8772 fi
8773 ;;
8774 esac
8775
8776 if test "$ld_shlibs" = no; then
8777 runpath_var=
8778 hardcode_libdir_flag_spec=
8779 export_dynamic_flag_spec=
8780 whole_archive_flag_spec=
8781 fi
8782 else
8783 # PORTME fill in a description of your system's linker (not GNU ld)
8784 case $host_os in
8785 aix3*)
8786 allow_undefined_flag=unsupported
8787 always_export_symbols=yes
8788 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'
8789 # Note: this linker hardcodes the directories in LIBPATH if there
8790 # are no directories specified by -L.
8791 hardcode_minus_L=yes
8792 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793 # Neither direct hardcoding nor static linking is supported with a
8794 # broken collect2.
8795 hardcode_direct=unsupported
8796 fi
8797 ;;
8798
8799 aix[4-9]*)
8800 if test "$host_cpu" = ia64; then
8801 # On IA64, the linker does run time linking by default, so we don't
8802 # have to do anything special.
8803 aix_use_runtimelinking=no
8804 exp_sym_flag='-Bexport'
8805 no_entry_flag=""
8806 else
8807 # If we're using GNU nm, then we don't want the "-C" option.
8808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8810 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'
8811 else
8812 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'
8813 fi
8814 aix_use_runtimelinking=no
8815
8816 # Test if we are trying to use run time linking or normal
8817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8818 # need to do runtime linking.
8819 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8820 for ld_flag in $LDFLAGS; do
8821 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8822 aix_use_runtimelinking=yes
8823 break
8824 fi
8825 done
8826 ;;
8827 esac
8828
8829 exp_sym_flag='-bexport'
8830 no_entry_flag='-bnoentry'
8831 fi
8832
8833 # When large executables or shared objects are built, AIX ld can
8834 # have problems creating the table of contents. If linking a library
8835 # or program results in "error TOC overflow" add -mminimal-toc to
8836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8838
8839 archive_cmds=''
8840 hardcode_direct=yes
8841 hardcode_direct_absolute=yes
8842 hardcode_libdir_separator=':'
8843 link_all_deplibs=yes
8844 file_list_spec='${wl}-f,'
8845
8846 if test "$GCC" = yes; then
8847 case $host_os in aix4.[012]|aix4.[012].*)
8848 # We only want to do this on AIX 4.2 and lower, the check
8849 # below for broken collect2 doesn't work under 4.3+
8850 collect2name=`${CC} -print-prog-name=collect2`
8851 if test -f "$collect2name" &&
8852 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8853 then
8854 # We have reworked collect2
8855 :
8856 else
8857 # We have old collect2
8858 hardcode_direct=unsupported
8859 # It fails to find uninstalled libraries when the uninstalled
8860 # path is not listed in the libpath. Setting hardcode_minus_L
8861 # to unsupported forces relinking
8862 hardcode_minus_L=yes
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 hardcode_libdir_separator=
8865 fi
8866 ;;
8867 esac
8868 shared_flag='-shared'
8869 if test "$aix_use_runtimelinking" = yes; then
8870 shared_flag="$shared_flag "'${wl}-G'
8871 fi
8872 else
8873 # not using gcc
8874 if test "$host_cpu" = ia64; then
8875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8876 # chokes on -Wl,-G. The following line is correct:
8877 shared_flag='-G'
8878 else
8879 if test "$aix_use_runtimelinking" = yes; then
8880 shared_flag='${wl}-G'
8881 else
8882 shared_flag='${wl}-bM:SRE'
8883 fi
8884 fi
8885 fi
8886
8887 export_dynamic_flag_spec='${wl}-bexpall'
8888 # It seems that -bexpall does not export symbols beginning with
8889 # underscore (_), so it is better to generate a list of symbols to export.
8890 always_export_symbols=yes
8891 if test "$aix_use_runtimelinking" = yes; then
8892 # Warning - without using the other runtime loading flags (-brtl),
8893 # -berok will link without error, but may produce a broken library.
8894 allow_undefined_flag='-berok'
8895 # Determine the default libpath from the value encoded in an
8896 # empty executable.
8897 cat >conftest.$ac_ext <<_ACEOF
8898/* confdefs.h. */
8899_ACEOF
8900cat confdefs.h >>conftest.$ac_ext
8901cat >>conftest.$ac_ext <<_ACEOF
8902/* end confdefs.h. */
8903
8904int
8905main ()
8906{
8907
8908 ;
8909 return 0;
8910}
8911_ACEOF
8912rm -f conftest.$ac_objext conftest$ac_exeext
8913if { (ac_try="$ac_link"
8914case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917esac
8918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919$as_echo "$ac_try_echo") >&5
8920 (eval "$ac_link") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest$ac_exeext && {
8930 test "$cross_compiling" = yes ||
8931 $as_test_x conftest$ac_exeext
8932 }; then
8933
8934lt_aix_libpath_sed='
8935 /Import File Strings/,/^$/ {
8936 /^0/ {
8937 s/^0 *\(.*\)$/\1/
8938 p
8939 }
8940 }'
8941aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942# Check for a 64-bit object if we didn't find anything.
8943if test -z "$aix_libpath"; then
8944 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8945fi
8946else
8947 $as_echo "$as_me: failed program was:" >&5
8948sed 's/^/| /' conftest.$ac_ext >&5
8949
8950
8951fi
8952
8953rm -rf conftest.dSYM
8954rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955 conftest$ac_exeext conftest.$ac_ext
8956if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8957
8958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8959 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"
8960 else
8961 if test "$host_cpu" = ia64; then
8962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8963 allow_undefined_flag="-z nodefs"
8964 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"
8965 else
8966 # Determine the default libpath from the value encoded in an
8967 # empty executable.
8968 cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
8974
8975int
8976main ()
8977{
8978
8979 ;
8980 return 0;
8981}
8982_ACEOF
8983rm -f conftest.$ac_objext conftest$ac_exeext
8984if { (ac_try="$ac_link"
8985case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988esac
8989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8990$as_echo "$ac_try_echo") >&5
8991 (eval "$ac_link") 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest$ac_exeext && {
9001 test "$cross_compiling" = yes ||
9002 $as_test_x conftest$ac_exeext
9003 }; then
9004
9005lt_aix_libpath_sed='
9006 /Import File Strings/,/^$/ {
9007 /^0/ {
9008 s/^0 *\(.*\)$/\1/
9009 p
9010 }
9011 }'
9012aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9013# Check for a 64-bit object if we didn't find anything.
9014if test -z "$aix_libpath"; then
9015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9016fi
9017else
9018 $as_echo "$as_me: failed program was:" >&5
9019sed 's/^/| /' conftest.$ac_ext >&5
9020
9021
9022fi
9023
9024rm -rf conftest.dSYM
9025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9026 conftest$ac_exeext conftest.$ac_ext
9027if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9028
9029 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9030 # Warning - without using the other run time loading flags,
9031 # -berok will link without error, but may produce a broken library.
9032 no_undefined_flag=' ${wl}-bernotok'
9033 allow_undefined_flag=' ${wl}-berok'
9034 # Exported symbols can be pulled into shared objects from archives
9035 whole_archive_flag_spec='$convenience'
9036 archive_cmds_need_lc=yes
9037 # This is similar to how AIX traditionally builds its shared libraries.
9038 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'
9039 fi
9040 fi
9041 ;;
9042
9043 amigaos*)
9044 case $host_cpu in
9045 powerpc)
9046 # see comment about AmigaOS4 .so support
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds=''
9049 ;;
9050 m68k)
9051 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)'
9052 hardcode_libdir_flag_spec='-L$libdir'
9053 hardcode_minus_L=yes
9054 ;;
9055 esac
9056 ;;
9057
9058 bsdi[45]*)
9059 export_dynamic_flag_spec=-rdynamic
9060 ;;
9061
9062 cygwin* | mingw* | pw32* | cegcc*)
9063 # When not using gcc, we currently assume that we are using
9064 # Microsoft Visual C++.
9065 # hardcode_libdir_flag_spec is actually meaningless, as there is
9066 # no search path for DLLs.
9067 hardcode_libdir_flag_spec=' '
9068 allow_undefined_flag=unsupported
9069 # Tell ltmain to make .lib files, not .a files.
9070 libext=lib
9071 # Tell ltmain to make .dll files, not .so files.
9072 shrext_cmds=".dll"
9073 # FIXME: Setting linknames here is a bad hack.
9074 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9075 # The linker will automatically build a .lib file if we build a DLL.
9076 old_archive_from_new_cmds='true'
9077 # FIXME: Should let the user specify the lib program.
9078 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9079 fix_srcfile_path='`cygpath -w "$srcfile"`'
9080 enable_shared_with_static_runtimes=yes
9081 ;;
9082
9083 darwin* | rhapsody*)
9084
9085
9086 archive_cmds_need_lc=no
9087 hardcode_direct=no
9088 hardcode_automatic=yes
9089 hardcode_shlibpath_var=unsupported
9090 whole_archive_flag_spec=''
9091 link_all_deplibs=yes
9092 allow_undefined_flag="$_lt_dar_allow_undefined"
9093 case $cc_basename in
9094 ifort*) _lt_dar_can_shared=yes ;;
9095 *) _lt_dar_can_shared=$GCC ;;
9096 esac
9097 if test "$_lt_dar_can_shared" = "yes"; then
9098 output_verbose_link_cmd=echo
9099 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9100 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9101 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}"
9102 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}"
9103
9104 else
9105 ld_shlibs=no
9106 fi
9107
9108 ;;
9109
9110 dgux*)
9111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_shlibpath_var=no
9114 ;;
9115
9116 freebsd1*)
9117 ld_shlibs=no
9118 ;;
9119
9120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9121 # support. Future versions do this automatically, but an explicit c++rt0.o
9122 # does not break anything, and helps significantly (at the cost of a little
9123 # extra space).
9124 freebsd2.2*)
9125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9126 hardcode_libdir_flag_spec='-R$libdir'
9127 hardcode_direct=yes
9128 hardcode_shlibpath_var=no
9129 ;;
9130
9131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9132 freebsd2*)
9133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134 hardcode_direct=yes
9135 hardcode_minus_L=yes
9136 hardcode_shlibpath_var=no
9137 ;;
9138
9139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9140 freebsd* | dragonfly*)
9141 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9142 hardcode_libdir_flag_spec='-R$libdir'
9143 hardcode_direct=yes
9144 hardcode_shlibpath_var=no
9145 ;;
9146
9147 hpux9*)
9148 if test "$GCC" = yes; then
9149 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'
9150 else
9151 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'
9152 fi
9153 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9154 hardcode_libdir_separator=:
9155 hardcode_direct=yes
9156
9157 # hardcode_minus_L: Not really in the search PATH,
9158 # but as the default location of the library.
9159 hardcode_minus_L=yes
9160 export_dynamic_flag_spec='${wl}-E'
9161 ;;
9162
9163 hpux10*)
9164 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9165 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9166 else
9167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9168 fi
9169 if test "$with_gnu_ld" = no; then
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_flag_spec_ld='+b $libdir'
9172 hardcode_libdir_separator=:
9173 hardcode_direct=yes
9174 hardcode_direct_absolute=yes
9175 export_dynamic_flag_spec='${wl}-E'
9176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
9178 hardcode_minus_L=yes
9179 fi
9180 ;;
9181
9182 hpux11*)
9183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9184 case $host_cpu in
9185 hppa*64*)
9186 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187 ;;
9188 ia64*)
9189 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9190 ;;
9191 *)
9192 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9193 ;;
9194 esac
9195 else
9196 case $host_cpu in
9197 hppa*64*)
9198 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9199 ;;
9200 ia64*)
9201 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9202 ;;
9203 *)
9204 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9205 ;;
9206 esac
9207 fi
9208 if test "$with_gnu_ld" = no; then
9209 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9210 hardcode_libdir_separator=:
9211
9212 case $host_cpu in
9213 hppa*64*|ia64*)
9214 hardcode_direct=no
9215 hardcode_shlibpath_var=no
9216 ;;
9217 *)
9218 hardcode_direct=yes
9219 hardcode_direct_absolute=yes
9220 export_dynamic_flag_spec='${wl}-E'
9221
9222 # hardcode_minus_L: Not really in the search PATH,
9223 # but as the default location of the library.
9224 hardcode_minus_L=yes
9225 ;;
9226 esac
9227 fi
9228 ;;
9229
9230 irix5* | irix6* | nonstopux*)
9231 if test "$GCC" = yes; then
9232 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'
9233 # Try to use the -exported_symbol ld option, if it does not
9234 # work, assume that -exports_file does not work either and
9235 # implicitly export all symbols.
9236 save_LDFLAGS="$LDFLAGS"
9237 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9238 cat >conftest.$ac_ext <<_ACEOF
9239int foo(void) {}
9240_ACEOF
9241rm -f conftest.$ac_objext conftest$ac_exeext
9242if { (ac_try="$ac_link"
9243case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246esac
9247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9248$as_echo "$ac_try_echo") >&5
9249 (eval "$ac_link") 2>conftest.er1
9250 ac_status=$?
9251 grep -v '^ *+' conftest.er1 >conftest.err
9252 rm -f conftest.er1
9253 cat conftest.err >&5
9254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } && {
9256 test -z "$ac_c_werror_flag" ||
9257 test ! -s conftest.err
9258 } && test -s conftest$ac_exeext && {
9259 test "$cross_compiling" = yes ||
9260 $as_test_x conftest$ac_exeext
9261 }; then
9262 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'
9263
9264else
9265 $as_echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
9267
9268
9269fi
9270
9271rm -rf conftest.dSYM
9272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9273 conftest$ac_exeext conftest.$ac_ext
9274 LDFLAGS="$save_LDFLAGS"
9275 else
9276 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'
9277 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'
9278 fi
9279 archive_cmds_need_lc='no'
9280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9281 hardcode_libdir_separator=:
9282 inherit_rpath=yes
9283 link_all_deplibs=yes
9284 ;;
9285
9286 netbsd*)
9287 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9289 else
9290 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9291 fi
9292 hardcode_libdir_flag_spec='-R$libdir'
9293 hardcode_direct=yes
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 newsos6)
9298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9299 hardcode_direct=yes
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 hardcode_libdir_separator=:
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 *nto* | *qnx*)
9306 ;;
9307
9308 openbsd*)
9309 if test -f /usr/libexec/ld.so; then
9310 hardcode_direct=yes
9311 hardcode_shlibpath_var=no
9312 hardcode_direct_absolute=yes
9313 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9317 export_dynamic_flag_spec='${wl}-E'
9318 else
9319 case $host_os in
9320 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_libdir_flag_spec='-R$libdir'
9323 ;;
9324 *)
9325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9326 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9327 ;;
9328 esac
9329 fi
9330 else
9331 ld_shlibs=no
9332 fi
9333 ;;
9334
9335 os2*)
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_minus_L=yes
9338 allow_undefined_flag=unsupported
9339 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'
9340 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9341 ;;
9342
9343 osf3*)
9344 if test "$GCC" = yes; then
9345 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9346 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'
9347 else
9348 allow_undefined_flag=' -expect_unresolved \*'
9349 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'
9350 fi
9351 archive_cmds_need_lc='no'
9352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353 hardcode_libdir_separator=:
9354 ;;
9355
9356 osf4* | osf5*) # as osf3* with the addition of -msym flag
9357 if test "$GCC" = yes; then
9358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
9360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9361 else
9362 allow_undefined_flag=' -expect_unresolved \*'
9363 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'
9364 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~
9365 $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'
9366
9367 # Both c and cxx compiler support -rpath directly
9368 hardcode_libdir_flag_spec='-rpath $libdir'
9369 fi
9370 archive_cmds_need_lc='no'
9371 hardcode_libdir_separator=:
9372 ;;
9373
9374 solaris*)
9375 no_undefined_flag=' -z defs'
9376 if test "$GCC" = yes; then
9377 wlarc='${wl}'
9378 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9380 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9381 else
9382 case `$CC -V 2>&1` in
9383 *"Compilers 5.0"*)
9384 wlarc=''
9385 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9387 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9388 ;;
9389 *)
9390 wlarc='${wl}'
9391 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9394 ;;
9395 esac
9396 fi
9397 hardcode_libdir_flag_spec='-R$libdir'
9398 hardcode_shlibpath_var=no
9399 case $host_os in
9400 solaris2.[0-5] | solaris2.[0-5].*) ;;
9401 *)
9402 # The compiler driver will combine and reorder linker options,
9403 # but understands `-z linker_flag'. GCC discards it without `$wl',
9404 # but is careful enough not to reorder.
9405 # Supported since Solaris 2.6 (maybe 2.5.1?)
9406 if test "$GCC" = yes; then
9407 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9408 else
9409 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9410 fi
9411 ;;
9412 esac
9413 link_all_deplibs=yes
9414 ;;
9415
9416 sunos4*)
9417 if test "x$host_vendor" = xsequent; then
9418 # Use $CC to link under sequent, because it throws in some extra .o
9419 # files that make .init and .fini sections work.
9420 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9421 else
9422 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9423 fi
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_direct=yes
9426 hardcode_minus_L=yes
9427 hardcode_shlibpath_var=no
9428 ;;
9429
9430 sysv4)
9431 case $host_vendor in
9432 sni)
9433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9434 hardcode_direct=yes # is this really true???
9435 ;;
9436 siemens)
9437 ## LD is ld it makes a PLAMLIB
9438 ## CC just makes a GrossModule.
9439 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9440 reload_cmds='$CC -r -o $output$reload_objs'
9441 hardcode_direct=no
9442 ;;
9443 motorola)
9444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9446 ;;
9447 esac
9448 runpath_var='LD_RUN_PATH'
9449 hardcode_shlibpath_var=no
9450 ;;
9451
9452 sysv4.3*)
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_shlibpath_var=no
9455 export_dynamic_flag_spec='-Bexport'
9456 ;;
9457
9458 sysv4*MP*)
9459 if test -d /usr/nec; then
9460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461 hardcode_shlibpath_var=no
9462 runpath_var=LD_RUN_PATH
9463 hardcode_runpath_var=yes
9464 ld_shlibs=yes
9465 fi
9466 ;;
9467
9468 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9469 no_undefined_flag='${wl}-z,text'
9470 archive_cmds_need_lc=no
9471 hardcode_shlibpath_var=no
9472 runpath_var='LD_RUN_PATH'
9473
9474 if test "$GCC" = yes; then
9475 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477 else
9478 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480 fi
9481 ;;
9482
9483 sysv5* | sco3.2v5* | sco5v6*)
9484 # Note: We can NOT use -z defs as we might desire, because we do not
9485 # link with -lc, and that would cause any symbols used from libc to
9486 # always be unresolved, which means just about no library would
9487 # ever link correctly. If we're not using GNU ld we use -z text
9488 # though, which does catch some bad symbols but isn't as heavy-handed
9489 # as -z defs.
9490 no_undefined_flag='${wl}-z,text'
9491 allow_undefined_flag='${wl}-z,nodefs'
9492 archive_cmds_need_lc=no
9493 hardcode_shlibpath_var=no
9494 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9495 hardcode_libdir_separator=':'
9496 link_all_deplibs=yes
9497 export_dynamic_flag_spec='${wl}-Bexport'
9498 runpath_var='LD_RUN_PATH'
9499
9500 if test "$GCC" = yes; then
9501 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503 else
9504 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506 fi
9507 ;;
9508
9509 uts4*)
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_libdir_flag_spec='-L$libdir'
9512 hardcode_shlibpath_var=no
9513 ;;
9514
9515 *)
9516 ld_shlibs=no
9517 ;;
9518 esac
9519
9520 if test x$host_vendor = xsni; then
9521 case $host in
9522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9523 export_dynamic_flag_spec='${wl}-Blargedynsym'
9524 ;;
9525 esac
9526 fi
9527 fi
9528
9529{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9530$as_echo "$ld_shlibs" >&6; }
9531test "$ld_shlibs" = no && can_build_shared=no
9532
9533with_gnu_ld=$with_gnu_ld
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549#
9550# Do we need to explicitly link libc?
9551#
9552case "x$archive_cmds_need_lc" in
9553x|xyes)
9554 # Assume -lc should be added
9555 archive_cmds_need_lc=yes
9556
9557 if test "$enable_shared" = yes && test "$GCC" = yes; then
9558 case $archive_cmds in
9559 *'~'*)
9560 # FIXME: we may have to deal with multi-command sequences.
9561 ;;
9562 '$CC '*)
9563 # Test whether the compiler implicitly links with -lc since on some
9564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9565 # to ld, don't add -lc before -lgcc.
9566 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9567$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9568 $RM conftest*
9569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9570
9571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9572 (eval $ac_compile) 2>&5
9573 ac_status=$?
9574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } 2>conftest.err; then
9576 soname=conftest
9577 lib=conftest
9578 libobjs=conftest.$ac_objext
9579 deplibs=
9580 wl=$lt_prog_compiler_wl
9581 pic_flag=$lt_prog_compiler_pic
9582 compiler_flags=-v
9583 linker_flags=-v
9584 verstring=
9585 output_objdir=.
9586 libname=conftest
9587 lt_save_allow_undefined_flag=$allow_undefined_flag
9588 allow_undefined_flag=
9589 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9590 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9591 ac_status=$?
9592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }
9594 then
9595 archive_cmds_need_lc=no
9596 else
9597 archive_cmds_need_lc=yes
9598 fi
9599 allow_undefined_flag=$lt_save_allow_undefined_flag
9600 else
9601 cat conftest.err 1>&5
9602 fi
9603 $RM conftest*
9604 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9605$as_echo "$archive_cmds_need_lc" >&6; }
9606 ;;
9607 esac
9608 fi
9609 ;;
9610esac
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
9760
9761
9762
9763
9764
9765
9766
9767
9768 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9769$as_echo_n "checking dynamic linker characteristics... " >&6; }
9770
9771if test "$GCC" = yes; then
9772 case $host_os in
9773 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9774 *) lt_awk_arg="/^libraries:/" ;;
9775 esac
9776 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9777 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9778 # if the path contains ";" then we assume it to be the separator
9779 # otherwise default to the standard path separator (i.e. ":") - it is
9780 # assumed that no part of a normal pathname contains ";" but that should
9781 # okay in the real world where ";" in dirpaths is itself problematic.
9782 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9783 else
9784 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9785 fi
9786 # Ok, now we have the path, separated by spaces, we can step through it
9787 # and add multilib dir if necessary.
9788 lt_tmp_lt_search_path_spec=
9789 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9790 for lt_sys_path in $lt_search_path_spec; do
9791 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9792 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9793 else
9794 test -d "$lt_sys_path" && \
9795 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9796 fi
9797 done
9798 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9799BEGIN {RS=" "; FS="/|\n";} {
9800 lt_foo="";
9801 lt_count=0;
9802 for (lt_i = NF; lt_i > 0; lt_i--) {
9803 if ($lt_i != "" && $lt_i != ".") {
9804 if ($lt_i == "..") {
9805 lt_count++;
9806 } else {
9807 if (lt_count == 0) {
9808 lt_foo="/" $lt_i lt_foo;
9809 } else {
9810 lt_count--;
9811 }
9812 }
9813 }
9814 }
9815 if (lt_foo != "") { lt_freq[lt_foo]++; }
9816 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9817}'`
9818 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9819else
9820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9821fi
9822library_names_spec=
9823libname_spec='lib$name'
9824soname_spec=
9825shrext_cmds=".so"
9826postinstall_cmds=
9827postuninstall_cmds=
9828finish_cmds=
9829finish_eval=
9830shlibpath_var=
9831shlibpath_overrides_runpath=unknown
9832version_type=none
9833dynamic_linker="$host_os ld.so"
9834sys_lib_dlsearch_path_spec="/lib /usr/lib"
9835need_lib_prefix=unknown
9836hardcode_into_libs=no
9837
9838# when you set need_version to no, make sure it does not cause -set_version
9839# flags to be left without arguments
9840need_version=unknown
9841
9842case $host_os in
9843aix3*)
9844 version_type=linux
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9846 shlibpath_var=LIBPATH
9847
9848 # AIX 3 has no versioning support, so we append a major version to the name.
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 ;;
9851
9852aix[4-9]*)
9853 version_type=linux
9854 need_lib_prefix=no
9855 need_version=no
9856 hardcode_into_libs=yes
9857 if test "$host_cpu" = ia64; then
9858 # AIX 5 supports IA64
9859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 else
9862 # With GCC up to 2.95.x, collect2 would create an import file
9863 # for dependence libraries. The import file would start with
9864 # the line `#! .'. This would cause the generated library to
9865 # depend on `.', always an invalid library. This was fixed in
9866 # development snapshots of GCC prior to 3.0.
9867 case $host_os in
9868 aix4 | aix4.[01] | aix4.[01].*)
9869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9870 echo ' yes '
9871 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9872 :
9873 else
9874 can_build_shared=no
9875 fi
9876 ;;
9877 esac
9878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879 # soname into executable. Probably we can add versioning support to
9880 # collect2, so additional links can be useful in future.
9881 if test "$aix_use_runtimelinking" = yes; then
9882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883 # instead of lib<name>.a to let people know that these are not
9884 # typical AIX shared libraries.
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886 else
9887 # We preserve .a as extension for shared libraries through AIX4.2
9888 # and later when we are not doing run time linking.
9889 library_names_spec='${libname}${release}.a $libname.a'
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 fi
9892 shlibpath_var=LIBPATH
9893 fi
9894 ;;
9895
9896amigaos*)
9897 case $host_cpu in
9898 powerpc)
9899 # Since July 2007 AmigaOS4 officially supports .so libraries.
9900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 ;;
9903 m68k)
9904 library_names_spec='$libname.ixlibrary $libname.a'
9905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9906 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'
9907 ;;
9908 esac
9909 ;;
9910
9911beos*)
9912 library_names_spec='${libname}${shared_ext}'
9913 dynamic_linker="$host_os ld.so"
9914 shlibpath_var=LIBRARY_PATH
9915 ;;
9916
9917bsdi[45]*)
9918 version_type=linux
9919 need_version=no
9920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec='${libname}${release}${shared_ext}$major'
9922 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9923 shlibpath_var=LD_LIBRARY_PATH
9924 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9925 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9926 # the default ld.so.conf also contains /usr/contrib/lib and
9927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9928 # libtool to hard-code these into programs
9929 ;;
9930
9931cygwin* | mingw* | pw32* | cegcc*)
9932 version_type=windows
9933 shrext_cmds=".dll"
9934 need_version=no
9935 need_lib_prefix=no
9936
9937 case $GCC,$host_os in
9938 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9939 library_names_spec='$libname.dll.a'
9940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9941 postinstall_cmds='base_file=`basename \${file}`~
9942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9943 dldir=$destdir/`dirname \$dlpath`~
9944 test -d \$dldir || mkdir -p \$dldir~
9945 $install_prog $dir/$dlname \$dldir/$dlname~
9946 chmod a+x \$dldir/$dlname~
9947 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9948 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9949 fi'
9950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9951 dlpath=$dir/\$dldll~
9952 $RM \$dlpath'
9953 shlibpath_overrides_runpath=yes
9954
9955 case $host_os in
9956 cygwin*)
9957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9959 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9960 ;;
9961 mingw* | cegcc*)
9962 # MinGW DLLs use traditional 'lib' prefix
9963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9965 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9966 # It is most probably a Windows format PATH printed by
9967 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9968 # path with ; separators, and with drive letters. We can handle the
9969 # drive letters (cygwin fileutils understands them), so leave them,
9970 # especially as we might pass files found there to a mingw objdump,
9971 # which wouldn't understand a cygwinified path. Ahh.
9972 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9973 else
9974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9975 fi
9976 ;;
9977 pw32*)
9978 # pw32 DLLs use 'pw' prefix rather than 'lib'
9979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9980 ;;
9981 esac
9982 ;;
9983
9984 *)
9985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9986 ;;
9987 esac
9988 dynamic_linker='Win32 ld.exe'
9989 # FIXME: first we should search . and the directory the executable is in
9990 shlibpath_var=PATH
9991 ;;
9992
9993darwin* | rhapsody*)
9994 dynamic_linker="$host_os dyld"
9995 version_type=darwin
9996 need_lib_prefix=no
9997 need_version=no
9998 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9999 soname_spec='${libname}${release}${major}$shared_ext'
10000 shlibpath_overrides_runpath=yes
10001 shlibpath_var=DYLD_LIBRARY_PATH
10002 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10003
10004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10006 ;;
10007
10008dgux*)
10009 version_type=linux
10010 need_lib_prefix=no
10011 need_version=no
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 shlibpath_var=LD_LIBRARY_PATH
10015 ;;
10016
10017freebsd1*)
10018 dynamic_linker=no
10019 ;;
10020
10021freebsd* | dragonfly*)
10022 # DragonFly does not have aout. When/if they implement a new
10023 # versioning mechanism, adjust this.
10024 if test -x /usr/bin/objformat; then
10025 objformat=`/usr/bin/objformat`
10026 else
10027 case $host_os in
10028 freebsd[123]*) objformat=aout ;;
10029 *) objformat=elf ;;
10030 esac
10031 fi
10032 version_type=freebsd-$objformat
10033 case $version_type in
10034 freebsd-elf*)
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10036 need_version=no
10037 need_lib_prefix=no
10038 ;;
10039 freebsd-*)
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10041 need_version=yes
10042 ;;
10043 esac
10044 shlibpath_var=LD_LIBRARY_PATH
10045 case $host_os in
10046 freebsd2*)
10047 shlibpath_overrides_runpath=yes
10048 ;;
10049 freebsd3.[01]* | freebsdelf3.[01]*)
10050 shlibpath_overrides_runpath=yes
10051 hardcode_into_libs=yes
10052 ;;
10053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10055 shlibpath_overrides_runpath=no
10056 hardcode_into_libs=yes
10057 ;;
10058 *) # from 4.6 on, and DragonFly
10059 shlibpath_overrides_runpath=yes
10060 hardcode_into_libs=yes
10061 ;;
10062 esac
10063 ;;
10064
10065gnu*)
10066 version_type=linux
10067 need_lib_prefix=no
10068 need_version=no
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 shlibpath_var=LD_LIBRARY_PATH
10072 hardcode_into_libs=yes
10073 ;;
10074
10075hpux9* | hpux10* | hpux11*)
10076 # Give a soname corresponding to the major version so that dld.sl refuses to
10077 # link against other versions.
10078 version_type=sunos
10079 need_lib_prefix=no
10080 need_version=no
10081 case $host_cpu in
10082 ia64*)
10083 shrext_cmds='.so'
10084 hardcode_into_libs=yes
10085 dynamic_linker="$host_os dld.so"
10086 shlibpath_var=LD_LIBRARY_PATH
10087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 if test "X$HPUX_IA64_MODE" = X32; then
10091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10092 else
10093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10094 fi
10095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10096 ;;
10097 hppa*64*)
10098 shrext_cmds='.sl'
10099 hardcode_into_libs=yes
10100 dynamic_linker="$host_os dld.sl"
10101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10107 ;;
10108 *)
10109 shrext_cmds='.sl'
10110 dynamic_linker="$host_os dld.sl"
10111 shlibpath_var=SHLIB_PATH
10112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 ;;
10116 esac
10117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10118 postinstall_cmds='chmod 555 $lib'
10119 ;;
10120
10121interix[3-9]*)
10122 version_type=linux
10123 need_lib_prefix=no
10124 need_version=no
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=no
10130 hardcode_into_libs=yes
10131 ;;
10132
10133irix5* | irix6* | nonstopux*)
10134 case $host_os in
10135 nonstopux*) version_type=nonstopux ;;
10136 *)
10137 if test "$lt_cv_prog_gnu_ld" = yes; then
10138 version_type=linux
10139 else
10140 version_type=irix
10141 fi ;;
10142 esac
10143 need_lib_prefix=no
10144 need_version=no
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10147 case $host_os in
10148 irix5* | nonstopux*)
10149 libsuff= shlibsuff=
10150 ;;
10151 *)
10152 case $LD in # libtool.m4 will add one of these switches to LD
10153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10154 libsuff= shlibsuff= libmagic=32-bit;;
10155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10156 libsuff=32 shlibsuff=N32 libmagic=N32;;
10157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10159 *) libsuff= shlibsuff= libmagic=never-match;;
10160 esac
10161 ;;
10162 esac
10163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10164 shlibpath_overrides_runpath=no
10165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10167 hardcode_into_libs=yes
10168 ;;
10169
10170# No shared lib support for Linux oldld, aout, or coff.
10171linux*oldld* | linux*aout* | linux*coff*)
10172 dynamic_linker=no
10173 ;;
10174
10175# This must be Linux ELF.
10176linux* | k*bsd*-gnu)
10177 version_type=linux
10178 need_lib_prefix=no
10179 need_version=no
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=no
10185 # Some binutils ld are patched to set DT_RUNPATH
10186 save_LDFLAGS=$LDFLAGS
10187 save_libdir=$libdir
10188 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10189 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10190 cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h. */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h. */
10196
10197int
10198main ()
10199{
10200
10201 ;
10202 return 0;
10203}
10204_ACEOF
10205rm -f conftest.$ac_objext conftest$ac_exeext
10206if { (ac_try="$ac_link"
10207case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210esac
10211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212$as_echo "$ac_try_echo") >&5
10213 (eval "$ac_link") 2>conftest.er1
10214 ac_status=$?
10215 grep -v '^ *+' conftest.er1 >conftest.err
10216 rm -f conftest.er1
10217 cat conftest.err >&5
10218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } && {
10220 test -z "$ac_c_werror_flag" ||
10221 test ! -s conftest.err
10222 } && test -s conftest$ac_exeext && {
10223 test "$cross_compiling" = yes ||
10224 $as_test_x conftest$ac_exeext
10225 }; then
10226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10227 shlibpath_overrides_runpath=yes
10228fi
10229
10230else
10231 $as_echo "$as_me: failed program was:" >&5
10232sed 's/^/| /' conftest.$ac_ext >&5
10233
10234
10235fi
10236
10237rm -rf conftest.dSYM
10238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LDFLAGS=$save_LDFLAGS
10241 libdir=$save_libdir
10242
10243 # This implies no fast_install, which is unacceptable.
10244 # Some rework will be needed to allow for fast_install
10245 # before this can be enabled.
10246 hardcode_into_libs=yes
10247
10248 # Add ABI-specific directories to the system library path.
10249 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10250
10251 # Append ld.so.conf contents to the search path
10252 if test -f /etc/ld.so.conf; then
10253 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' ' '`
10254 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10255 fi
10256
10257 # We used to test for /lib/ld.so.1 and disable shared libraries on
10258 # powerpc, because MkLinux only supported shared libraries with the
10259 # GNU dynamic linker. Since this was broken with cross compilers,
10260 # most powerpc-linux boxes support dynamic linking these days and
10261 # people can always --disable-shared, the test was removed, and we
10262 # assume the GNU/Linux dynamic linker is in use.
10263 dynamic_linker='GNU/Linux ld.so'
10264 ;;
10265
10266netbsd*)
10267 version_type=sunos
10268 need_lib_prefix=no
10269 need_version=no
10270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 dynamic_linker='NetBSD (a.out) ld.so'
10274 else
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 dynamic_linker='NetBSD ld.elf_so'
10278 fi
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10282 ;;
10283
10284newsos6)
10285 version_type=linux
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 ;;
10290
10291*nto* | *qnx*)
10292 version_type=qnx
10293 need_lib_prefix=no
10294 need_version=no
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=no
10299 hardcode_into_libs=yes
10300 dynamic_linker='ldqnx.so'
10301 ;;
10302
10303openbsd*)
10304 version_type=sunos
10305 sys_lib_dlsearch_path_spec="/usr/lib"
10306 need_lib_prefix=no
10307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10308 case $host_os in
10309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10310 *) need_version=no ;;
10311 esac
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10316 case $host_os in
10317 openbsd2.[89] | openbsd2.[89].*)
10318 shlibpath_overrides_runpath=no
10319 ;;
10320 *)
10321 shlibpath_overrides_runpath=yes
10322 ;;
10323 esac
10324 else
10325 shlibpath_overrides_runpath=yes
10326 fi
10327 ;;
10328
10329os2*)
10330 libname_spec='$name'
10331 shrext_cmds=".dll"
10332 need_lib_prefix=no
10333 library_names_spec='$libname${shared_ext} $libname.a'
10334 dynamic_linker='OS/2 ld.exe'
10335 shlibpath_var=LIBPATH
10336 ;;
10337
10338osf3* | osf4* | osf5*)
10339 version_type=osf
10340 need_lib_prefix=no
10341 need_version=no
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10347 ;;
10348
10349rdos*)
10350 dynamic_linker=no
10351 ;;
10352
10353solaris*)
10354 version_type=linux
10355 need_lib_prefix=no
10356 need_version=no
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 # ldd complains unless libraries are executable
10363 postinstall_cmds='chmod +x $lib'
10364 ;;
10365
10366sunos4*)
10367 version_type=sunos
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 if test "$with_gnu_ld" = yes; then
10373 need_lib_prefix=no
10374 fi
10375 need_version=yes
10376 ;;
10377
10378sysv4 | sysv4.3*)
10379 version_type=linux
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_vendor in
10384 sni)
10385 shlibpath_overrides_runpath=no
10386 need_lib_prefix=no
10387 runpath_var=LD_RUN_PATH
10388 ;;
10389 siemens)
10390 need_lib_prefix=no
10391 ;;
10392 motorola)
10393 need_lib_prefix=no
10394 need_version=no
10395 shlibpath_overrides_runpath=no
10396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10397 ;;
10398 esac
10399 ;;
10400
10401sysv4*MP*)
10402 if test -d /usr/nec ;then
10403 version_type=linux
10404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10405 soname_spec='$libname${shared_ext}.$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10407 fi
10408 ;;
10409
10410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10411 version_type=freebsd-elf
10412 need_lib_prefix=no
10413 need_version=no
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=yes
10418 hardcode_into_libs=yes
10419 if test "$with_gnu_ld" = yes; then
10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10421 else
10422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10423 case $host_os in
10424 sco3.2v5*)
10425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10426 ;;
10427 esac
10428 fi
10429 sys_lib_dlsearch_path_spec='/usr/lib'
10430 ;;
10431
10432tpf*)
10433 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10434 version_type=linux
10435 need_lib_prefix=no
10436 need_version=no
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=no
10440 hardcode_into_libs=yes
10441 ;;
10442
10443uts4*)
10444 version_type=linux
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 shlibpath_var=LD_LIBRARY_PATH
10448 ;;
10449
10450*)
10451 dynamic_linker=no
10452 ;;
10453esac
10454{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10455$as_echo "$dynamic_linker" >&6; }
10456test "$dynamic_linker" = no && can_build_shared=no
10457
10458variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10459if test "$GCC" = yes; then
10460 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10461fi
10462
10463if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10464 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10465fi
10466if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10467 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10468fi
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
10548
10549
10550
10551
10552
10553
10554
10555
10556 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10557$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10558hardcode_action=
10559if test -n "$hardcode_libdir_flag_spec" ||
10560 test -n "$runpath_var" ||
10561 test "X$hardcode_automatic" = "Xyes" ; then
10562
10563 # We can hardcode non-existent directories.
10564 if test "$hardcode_direct" != no &&
10565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10566 # have to relink, otherwise we might link with an installed library
10567 # when we should be linking with a yet-to-be-installed one
10568 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10569 test "$hardcode_minus_L" != no; then
10570 # Linking always hardcodes the temporary library directory.
10571 hardcode_action=relink
10572 else
10573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10574 hardcode_action=immediate
10575 fi
10576else
10577 # We cannot hardcode anything, or else we can only hardcode existing
10578 # directories.
10579 hardcode_action=unsupported
10580fi
10581{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10582$as_echo "$hardcode_action" >&6; }
10583
10584if test "$hardcode_action" = relink ||
10585 test "$inherit_rpath" = yes; then
10586 # Fast installation is not supported
10587 enable_fast_install=no
10588elif test "$shlibpath_overrides_runpath" = yes ||
10589 test "$enable_shared" = no; then
10590 # Fast installation is not necessary
10591 enable_fast_install=needless
10592fi
10593
10594
10595
10596
10597
10598
10599 if test "x$enable_dlopen" != xyes; then
10600 enable_dlopen=unknown
10601 enable_dlopen_self=unknown
10602 enable_dlopen_self_static=unknown
10603else
10604 lt_cv_dlopen=no
10605 lt_cv_dlopen_libs=
10606
10607 case $host_os in
10608 beos*)
10609 lt_cv_dlopen="load_add_on"
10610 lt_cv_dlopen_libs=
10611 lt_cv_dlopen_self=yes
10612 ;;
10613
10614 mingw* | pw32* | cegcc*)
10615 lt_cv_dlopen="LoadLibrary"
10616 lt_cv_dlopen_libs=
10617 ;;
10618
10619 cygwin*)
10620 lt_cv_dlopen="dlopen"
10621 lt_cv_dlopen_libs=
10622 ;;
10623
10624 darwin*)
10625 # if libdl is installed we need to link against it
10626 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10627$as_echo_n "checking for dlopen in -ldl... " >&6; }
10628if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10629 $as_echo_n "(cached) " >&6
10630else
10631 ac_check_lib_save_LIBS=$LIBS
10632LIBS="-ldl $LIBS"
10633cat >conftest.$ac_ext <<_ACEOF
10634/* confdefs.h. */
10635_ACEOF
10636cat confdefs.h >>conftest.$ac_ext
10637cat >>conftest.$ac_ext <<_ACEOF
10638/* end confdefs.h. */
10639
10640/* Override any GCC internal prototype to avoid an error.
10641 Use char because int might match the return type of a GCC
10642 builtin and then its argument prototype would still apply. */
10643#ifdef __cplusplus
10644extern "C"
10645#endif
10646char dlopen ();
10647int
10648main ()
10649{
10650return dlopen ();
10651 ;
10652 return 0;
10653}
10654_ACEOF
10655rm -f conftest.$ac_objext conftest$ac_exeext
10656if { (ac_try="$ac_link"
10657case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660esac
10661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10662$as_echo "$ac_try_echo") >&5
10663 (eval "$ac_link") 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && {
10670 test -z "$ac_c_werror_flag" ||
10671 test ! -s conftest.err
10672 } && test -s conftest$ac_exeext && {
10673 test "$cross_compiling" = yes ||
10674 $as_test_x conftest$ac_exeext
10675 }; then
10676 ac_cv_lib_dl_dlopen=yes
10677else
10678 $as_echo "$as_me: failed program was:" >&5
10679sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 ac_cv_lib_dl_dlopen=no
10682fi
10683
10684rm -rf conftest.dSYM
10685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10686 conftest$ac_exeext conftest.$ac_ext
10687LIBS=$ac_check_lib_save_LIBS
10688fi
10689{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10690$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10691if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10693else
10694
10695 lt_cv_dlopen="dyld"
10696 lt_cv_dlopen_libs=
10697 lt_cv_dlopen_self=yes
10698
10699fi
10700
10701 ;;
10702
10703 *)
10704 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10705$as_echo_n "checking for shl_load... " >&6; }
10706if test "${ac_cv_func_shl_load+set}" = set; then
10707 $as_echo_n "(cached) " >&6
10708else
10709 cat >conftest.$ac_ext <<_ACEOF
10710/* confdefs.h. */
10711_ACEOF
10712cat confdefs.h >>conftest.$ac_ext
10713cat >>conftest.$ac_ext <<_ACEOF
10714/* end confdefs.h. */
10715/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10717#define shl_load innocuous_shl_load
10718
10719/* System header to define __stub macros and hopefully few prototypes,
10720 which can conflict with char shl_load (); below.
10721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10722 <limits.h> exists even on freestanding compilers. */
10723
10724#ifdef __STDC__
10725# include <limits.h>
10726#else
10727# include <assert.h>
10728#endif
10729
10730#undef shl_load
10731
10732/* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10735#ifdef __cplusplus
10736extern "C"
10737#endif
10738char shl_load ();
10739/* The GNU C library defines this for functions which it implements
10740 to always fail with ENOSYS. Some functions are actually named
10741 something starting with __ and the normal name is an alias. */
10742#if defined __stub_shl_load || defined __stub___shl_load
10743choke me
10744#endif
10745
10746int
10747main ()
10748{
10749return shl_load ();
10750 ;
10751 return 0;
10752}
10753_ACEOF
10754rm -f conftest.$ac_objext conftest$ac_exeext
10755if { (ac_try="$ac_link"
10756case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759esac
10760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761$as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10774 }; then
10775 ac_cv_func_shl_load=yes
10776else
10777 $as_echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 ac_cv_func_shl_load=no
10781fi
10782
10783rm -rf conftest.dSYM
10784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786fi
10787{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10788$as_echo "$ac_cv_func_shl_load" >&6; }
10789if test "x$ac_cv_func_shl_load" = x""yes; then
10790 lt_cv_dlopen="shl_load"
10791else
10792 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10793$as_echo_n "checking for shl_load in -ldld... " >&6; }
10794if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10795 $as_echo_n "(cached) " >&6
10796else
10797 ac_check_lib_save_LIBS=$LIBS
10798LIBS="-ldld $LIBS"
10799cat >conftest.$ac_ext <<_ACEOF
10800/* confdefs.h. */
10801_ACEOF
10802cat confdefs.h >>conftest.$ac_ext
10803cat >>conftest.$ac_ext <<_ACEOF
10804/* end confdefs.h. */
10805
10806/* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10809#ifdef __cplusplus
10810extern "C"
10811#endif
10812char shl_load ();
10813int
10814main ()
10815{
10816return shl_load ();
10817 ;
10818 return 0;
10819}
10820_ACEOF
10821rm -f conftest.$ac_objext conftest$ac_exeext
10822if { (ac_try="$ac_link"
10823case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10826esac
10827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10828$as_echo "$ac_try_echo") >&5
10829 (eval "$ac_link") 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest$ac_exeext && {
10839 test "$cross_compiling" = yes ||
10840 $as_test_x conftest$ac_exeext
10841 }; then
10842 ac_cv_lib_dld_shl_load=yes
10843else
10844 $as_echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_lib_dld_shl_load=no
10848fi
10849
10850rm -rf conftest.dSYM
10851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10852 conftest$ac_exeext conftest.$ac_ext
10853LIBS=$ac_check_lib_save_LIBS
10854fi
10855{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10856$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10857if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10858 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10859else
10860 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10861$as_echo_n "checking for dlopen... " >&6; }
10862if test "${ac_cv_func_dlopen+set}" = set; then
10863 $as_echo_n "(cached) " >&6
10864else
10865 cat >conftest.$ac_ext <<_ACEOF
10866/* confdefs.h. */
10867_ACEOF
10868cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */
10871/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10873#define dlopen innocuous_dlopen
10874
10875/* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char dlopen (); below.
10877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878 <limits.h> exists even on freestanding compilers. */
10879
10880#ifdef __STDC__
10881# include <limits.h>
10882#else
10883# include <assert.h>
10884#endif
10885
10886#undef dlopen
10887
10888/* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10891#ifdef __cplusplus
10892extern "C"
10893#endif
10894char dlopen ();
10895/* The GNU C library defines this for functions which it implements
10896 to always fail with ENOSYS. Some functions are actually named
10897 something starting with __ and the normal name is an alias. */
10898#if defined __stub_dlopen || defined __stub___dlopen
10899choke me
10900#endif
10901
10902int
10903main ()
10904{
10905return dlopen ();
10906 ;
10907 return 0;
10908}
10909_ACEOF
10910rm -f conftest.$ac_objext conftest$ac_exeext
10911if { (ac_try="$ac_link"
10912case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10917$as_echo "$ac_try_echo") >&5
10918 (eval "$ac_link") 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest$ac_exeext && {
10928 test "$cross_compiling" = yes ||
10929 $as_test_x conftest$ac_exeext
10930 }; then
10931 ac_cv_func_dlopen=yes
10932else
10933 $as_echo "$as_me: failed program was:" >&5
10934sed 's/^/| /' conftest.$ac_ext >&5
10935
10936 ac_cv_func_dlopen=no
10937fi
10938
10939rm -rf conftest.dSYM
10940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941 conftest$ac_exeext conftest.$ac_ext
10942fi
10943{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10944$as_echo "$ac_cv_func_dlopen" >&6; }
10945if test "x$ac_cv_func_dlopen" = x""yes; then
10946 lt_cv_dlopen="dlopen"
10947else
10948 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10949$as_echo_n "checking for dlopen in -ldl... " >&6; }
10950if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10951 $as_echo_n "(cached) " >&6
10952else
10953 ac_check_lib_save_LIBS=$LIBS
10954LIBS="-ldl $LIBS"
10955cat >conftest.$ac_ext <<_ACEOF
10956/* confdefs.h. */
10957_ACEOF
10958cat confdefs.h >>conftest.$ac_ext
10959cat >>conftest.$ac_ext <<_ACEOF
10960/* end confdefs.h. */
10961
10962/* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10965#ifdef __cplusplus
10966extern "C"
10967#endif
10968char dlopen ();
10969int
10970main ()
10971{
10972return dlopen ();
10973 ;
10974 return 0;
10975}
10976_ACEOF
10977rm -f conftest.$ac_objext conftest$ac_exeext
10978if { (ac_try="$ac_link"
10979case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982esac
10983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10984$as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest$ac_exeext
10997 }; then
10998 ac_cv_lib_dl_dlopen=yes
10999else
11000 $as_echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_cv_lib_dl_dlopen=no
11004fi
11005
11006rm -rf conftest.dSYM
11007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009LIBS=$ac_check_lib_save_LIBS
11010fi
11011{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11012$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11013if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11015else
11016 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11017$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11018if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11019 $as_echo_n "(cached) " >&6
11020else
11021 ac_check_lib_save_LIBS=$LIBS
11022LIBS="-lsvld $LIBS"
11023cat >conftest.$ac_ext <<_ACEOF
11024/* confdefs.h. */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
11028/* end confdefs.h. */
11029
11030/* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11033#ifdef __cplusplus
11034extern "C"
11035#endif
11036char dlopen ();
11037int
11038main ()
11039{
11040return dlopen ();
11041 ;
11042 return 0;
11043}
11044_ACEOF
11045rm -f conftest.$ac_objext conftest$ac_exeext
11046if { (ac_try="$ac_link"
11047case "(($ac_try" in
11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11050esac
11051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052$as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11054 ac_status=$?
11055 grep -v '^ *+' conftest.er1 >conftest.err
11056 rm -f conftest.er1
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest$ac_exeext
11065 }; then
11066 ac_cv_lib_svld_dlopen=yes
11067else
11068 $as_echo "$as_me: failed program was:" >&5
11069sed 's/^/| /' conftest.$ac_ext >&5
11070
11071 ac_cv_lib_svld_dlopen=no
11072fi
11073
11074rm -rf conftest.dSYM
11075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext conftest.$ac_ext
11077LIBS=$ac_check_lib_save_LIBS
11078fi
11079{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11080$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11081if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11083else
11084 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11085$as_echo_n "checking for dld_link in -ldld... " >&6; }
11086if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11087 $as_echo_n "(cached) " >&6
11088else
11089 ac_check_lib_save_LIBS=$LIBS
11090LIBS="-ldld $LIBS"
11091cat >conftest.$ac_ext <<_ACEOF
11092/* confdefs.h. */
11093_ACEOF
11094cat confdefs.h >>conftest.$ac_ext
11095cat >>conftest.$ac_ext <<_ACEOF
11096/* end confdefs.h. */
11097
11098/* Override any GCC internal prototype to avoid an error.
11099 Use char because int might match the return type of a GCC
11100 builtin and then its argument prototype would still apply. */
11101#ifdef __cplusplus
11102extern "C"
11103#endif
11104char dld_link ();
11105int
11106main ()
11107{
11108return dld_link ();
11109 ;
11110 return 0;
11111}
11112_ACEOF
11113rm -f conftest.$ac_objext conftest$ac_exeext
11114if { (ac_try="$ac_link"
11115case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118esac
11119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11120$as_echo "$ac_try_echo") >&5
11121 (eval "$ac_link") 2>conftest.er1
11122 ac_status=$?
11123 grep -v '^ *+' conftest.er1 >conftest.err
11124 rm -f conftest.er1
11125 cat conftest.err >&5
11126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } && {
11128 test -z "$ac_c_werror_flag" ||
11129 test ! -s conftest.err
11130 } && test -s conftest$ac_exeext && {
11131 test "$cross_compiling" = yes ||
11132 $as_test_x conftest$ac_exeext
11133 }; then
11134 ac_cv_lib_dld_dld_link=yes
11135else
11136 $as_echo "$as_me: failed program was:" >&5
11137sed 's/^/| /' conftest.$ac_ext >&5
11138
11139 ac_cv_lib_dld_dld_link=no
11140fi
11141
11142rm -rf conftest.dSYM
11143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11144 conftest$ac_exeext conftest.$ac_ext
11145LIBS=$ac_check_lib_save_LIBS
11146fi
11147{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11148$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11149if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11150 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11151fi
11152
11153
11154fi
11155
11156
11157fi
11158
11159
11160fi
11161
11162
11163fi
11164
11165
11166fi
11167
11168 ;;
11169 esac
11170
11171 if test "x$lt_cv_dlopen" != xno; then
11172 enable_dlopen=yes
11173 else
11174 enable_dlopen=no
11175 fi
11176
11177 case $lt_cv_dlopen in
11178 dlopen)
11179 save_CPPFLAGS="$CPPFLAGS"
11180 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11181
11182 save_LDFLAGS="$LDFLAGS"
11183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11184
11185 save_LIBS="$LIBS"
11186 LIBS="$lt_cv_dlopen_libs $LIBS"
11187
11188 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11189$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11190if test "${lt_cv_dlopen_self+set}" = set; then
11191 $as_echo_n "(cached) " >&6
11192else
11193 if test "$cross_compiling" = yes; then :
11194 lt_cv_dlopen_self=cross
11195else
11196 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11197 lt_status=$lt_dlunknown
11198 cat > conftest.$ac_ext <<_LT_EOF
de0a1c09 11199#line 11199 "configure"
e70e591c
BB
11200#include "confdefs.h"
11201
11202#if HAVE_DLFCN_H
11203#include <dlfcn.h>
11204#endif
11205
11206#include <stdio.h>
11207
11208#ifdef RTLD_GLOBAL
11209# define LT_DLGLOBAL RTLD_GLOBAL
11210#else
11211# ifdef DL_GLOBAL
11212# define LT_DLGLOBAL DL_GLOBAL
11213# else
11214# define LT_DLGLOBAL 0
11215# endif
11216#endif
11217
11218/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219 find out it does not work in some platform. */
11220#ifndef LT_DLLAZY_OR_NOW
11221# ifdef RTLD_LAZY
11222# define LT_DLLAZY_OR_NOW RTLD_LAZY
11223# else
11224# ifdef DL_LAZY
11225# define LT_DLLAZY_OR_NOW DL_LAZY
11226# else
11227# ifdef RTLD_NOW
11228# define LT_DLLAZY_OR_NOW RTLD_NOW
11229# else
11230# ifdef DL_NOW
11231# define LT_DLLAZY_OR_NOW DL_NOW
11232# else
11233# define LT_DLLAZY_OR_NOW 0
11234# endif
11235# endif
11236# endif
11237# endif
11238#endif
11239
11240void fnord() { int i=42;}
11241int main ()
11242{
11243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11244 int status = $lt_dlunknown;
11245
11246 if (self)
11247 {
11248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 /* dlclose (self); */
11251 }
11252 else
11253 puts (dlerror ());
11254
11255 return status;
11256}
11257_LT_EOF
11258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>&5
11260 ac_status=$?
11261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11263 (./conftest; exit; ) >&5 2>/dev/null
11264 lt_status=$?
11265 case x$lt_status in
11266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11268 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11269 esac
11270 else :
11271 # compilation failed
11272 lt_cv_dlopen_self=no
11273 fi
11274fi
11275rm -fr conftest*
11276
11277
11278fi
11279{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11280$as_echo "$lt_cv_dlopen_self" >&6; }
11281
11282 if test "x$lt_cv_dlopen_self" = xyes; then
11283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11284 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11285$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11286if test "${lt_cv_dlopen_self_static+set}" = set; then
11287 $as_echo_n "(cached) " >&6
11288else
11289 if test "$cross_compiling" = yes; then :
11290 lt_cv_dlopen_self_static=cross
11291else
11292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11293 lt_status=$lt_dlunknown
11294 cat > conftest.$ac_ext <<_LT_EOF
de0a1c09 11295#line 11295 "configure"
e70e591c
BB
11296#include "confdefs.h"
11297
11298#if HAVE_DLFCN_H
11299#include <dlfcn.h>
11300#endif
11301
11302#include <stdio.h>
11303
11304#ifdef RTLD_GLOBAL
11305# define LT_DLGLOBAL RTLD_GLOBAL
11306#else
11307# ifdef DL_GLOBAL
11308# define LT_DLGLOBAL DL_GLOBAL
11309# else
11310# define LT_DLGLOBAL 0
11311# endif
11312#endif
11313
11314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11315 find out it does not work in some platform. */
11316#ifndef LT_DLLAZY_OR_NOW
11317# ifdef RTLD_LAZY
11318# define LT_DLLAZY_OR_NOW RTLD_LAZY
11319# else
11320# ifdef DL_LAZY
11321# define LT_DLLAZY_OR_NOW DL_LAZY
11322# else
11323# ifdef RTLD_NOW
11324# define LT_DLLAZY_OR_NOW RTLD_NOW
11325# else
11326# ifdef DL_NOW
11327# define LT_DLLAZY_OR_NOW DL_NOW
11328# else
11329# define LT_DLLAZY_OR_NOW 0
11330# endif
11331# endif
11332# endif
11333# endif
11334#endif
11335
11336void fnord() { int i=42;}
11337int main ()
11338{
11339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11340 int status = $lt_dlunknown;
11341
11342 if (self)
11343 {
11344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11345 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11346 /* dlclose (self); */
11347 }
11348 else
11349 puts (dlerror ());
11350
11351 return status;
11352}
11353_LT_EOF
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>&5
11356 ac_status=$?
11357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11359 (./conftest; exit; ) >&5 2>/dev/null
11360 lt_status=$?
11361 case x$lt_status in
11362 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11363 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11364 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11365 esac
11366 else :
11367 # compilation failed
11368 lt_cv_dlopen_self_static=no
11369 fi
11370fi
11371rm -fr conftest*
11372
11373
11374fi
11375{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11376$as_echo "$lt_cv_dlopen_self_static" >&6; }
11377 fi
11378
11379 CPPFLAGS="$save_CPPFLAGS"
11380 LDFLAGS="$save_LDFLAGS"
11381 LIBS="$save_LIBS"
11382 ;;
11383 esac
11384
11385 case $lt_cv_dlopen_self in
11386 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11387 *) enable_dlopen_self=unknown ;;
11388 esac
11389
11390 case $lt_cv_dlopen_self_static in
11391 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11392 *) enable_dlopen_self_static=unknown ;;
11393 esac
11394fi
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412striplib=
11413old_striplib=
11414{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11415$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11416if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11417 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11418 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420$as_echo "yes" >&6; }
11421else
11422# FIXME - insert some real tests, host_os isn't really good enough
11423 case $host_os in
11424 darwin*)
11425 if test -n "$STRIP" ; then
11426 striplib="$STRIP -x"
11427 old_striplib="$STRIP -S"
11428 { $as_echo "$as_me:$LINENO: result: yes" >&5
11429$as_echo "yes" >&6; }
11430 else
11431 { $as_echo "$as_me:$LINENO: result: no" >&5
11432$as_echo "no" >&6; }
11433 fi
11434 ;;
11435 *)
11436 { $as_echo "$as_me:$LINENO: result: no" >&5
11437$as_echo "no" >&6; }
11438 ;;
11439 esac
11440fi
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453 # Report which library types will actually be built
11454 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11455$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11456 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11457$as_echo "$can_build_shared" >&6; }
11458
11459 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11460$as_echo_n "checking whether to build shared libraries... " >&6; }
11461 test "$can_build_shared" = "no" && enable_shared=no
11462
11463 # On AIX, shared libraries and static libraries use the same namespace, and
11464 # are all built from PIC.
11465 case $host_os in
11466 aix3*)
11467 test "$enable_shared" = yes && enable_static=no
11468 if test -n "$RANLIB"; then
11469 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11470 postinstall_cmds='$RANLIB $lib'
11471 fi
11472 ;;
11473
11474 aix[4-9]*)
11475 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11476 test "$enable_shared" = yes && enable_static=no
11477 fi
11478 ;;
11479 esac
11480 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11481$as_echo "$enable_shared" >&6; }
11482
11483 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11484$as_echo_n "checking whether to build static libraries... " >&6; }
11485 # Make sure either enable_shared or enable_static is yes.
11486 test "$enable_shared" = yes || enable_static=yes
11487 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11488$as_echo "$enable_static" >&6; }
11489
11490
11491
11492
11493fi
11494ac_ext=c
11495ac_cpp='$CPP $CPPFLAGS'
11496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11498ac_compiler_gnu=$ac_cv_c_compiler_gnu
11499
11500CC="$lt_save_CC"
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514 ac_config_commands="$ac_config_commands libtool"
11515
11516
11517
11518
11519# Only expand once:
11520
11521
11522# By default we simply use the C compiler to build assembly code.
11523
11524test "${CCAS+set}" = set || CCAS=$CC
11525test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11526
11527
11528
11529depcc="$CCAS" am_compiler_list=
11530
11531{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11532$as_echo_n "checking dependency style of $depcc... " >&6; }
11533if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11534 $as_echo_n "(cached) " >&6
11535else
11536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11537 # We make a subdir and do the tests there. Otherwise we can end up
11538 # making bogus files that we don't know about and never remove. For
11539 # instance it was reported that on HP-UX the gcc test will end up
11540 # making a dummy file named `D' -- because `-MD' means `put the output
11541 # in D'.
11542 mkdir conftest.dir
11543 # Copy depcomp to subdir because otherwise we won't find it if we're
11544 # using a relative directory.
11545 cp "$am_depcomp" conftest.dir
11546 cd conftest.dir
11547 # We will build objects and dependencies in a subdirectory because
11548 # it helps to detect inapplicable dependency modes. For instance
11549 # both Tru64's cc and ICC support -MD to output dependencies as a
11550 # side effect of compilation, but ICC will put the dependencies in
11551 # the current directory while Tru64 will put them in the object
11552 # directory.
11553 mkdir sub
11554
11555 am_cv_CCAS_dependencies_compiler_type=none
11556 if test "$am_compiler_list" = ""; then
11557 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11558 fi
11559 am__universal=false
11560
11561
11562 for depmode in $am_compiler_list; do
11563 # Setup a source with many dependencies, because some compilers
11564 # like to wrap large dependency lists on column 80 (with \), and
11565 # we should not choose a depcomp mode which is confused by this.
11566 #
11567 # We need to recreate these files for each test, as the compiler may
11568 # overwrite some of them when testing with obscure command lines.
11569 # This happens at least with the AIX C compiler.
11570 : > sub/conftest.c
11571 for i in 1 2 3 4 5 6; do
11572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11574 # Solaris 8's {/usr,}/bin/sh.
11575 touch sub/conftst$i.h
11576 done
11577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11578
11579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11580 # mode. It turns out that the SunPro C++ compiler does not properly
11581 # handle `-M -o', and we need to detect this. Also, some Intel
11582 # versions had trouble with output in subdirs
11583 am__obj=sub/conftest.${OBJEXT-o}
11584 am__minus_obj="-o $am__obj"
11585 case $depmode in
11586 gcc)
11587 # This depmode causes a compiler race in universal mode.
11588 test "$am__universal" = false || continue
11589 ;;
11590 nosideeffect)
11591 # after this tag, mechanisms are not by side-effect, so they'll
11592 # only be used when explicitly requested
11593 if test "x$enable_dependency_tracking" = xyes; then
11594 continue
11595 else
11596 break
11597 fi
11598 ;;
11599 msvisualcpp | msvcmsys)
11600 # This compiler won't grok `-c -o', but also, the minuso test has
11601 # not run yet. These depmodes are late enough in the game, and
11602 # so weak that their functioning should not be impacted.
11603 am__obj=conftest.${OBJEXT-o}
11604 am__minus_obj=
11605 ;;
11606 none) break ;;
11607 esac
11608 if depmode=$depmode \
11609 source=sub/conftest.c object=$am__obj \
11610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11611 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11612 >/dev/null 2>conftest.err &&
11613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11615 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11617 # icc doesn't choke on unknown options, it will just issue warnings
11618 # or remarks (even with -Werror). So we grep stderr for any message
11619 # that says an option was ignored or not supported.
11620 # When given -MP, icc 7.0 and 7.1 complain thusly:
11621 # icc: Command line warning: ignoring option '-M'; no argument required
11622 # The diagnosis changed in icc 8.0:
11623 # icc: Command line remark: option '-MP' not supported
11624 if (grep 'ignoring option' conftest.err ||
11625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11626 am_cv_CCAS_dependencies_compiler_type=$depmode
11627 break
11628 fi
11629 fi
11630 done
11631
11632 cd ..
11633 rm -rf conftest.dir
11634else
11635 am_cv_CCAS_dependencies_compiler_type=none
11636fi
11637
11638fi
11639{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11640$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11641CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11642
11643 if
11644 test "x$enable_dependency_tracking" != xno \
11645 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11646 am__fastdepCCAS_TRUE=
11647 am__fastdepCCAS_FALSE='#'
11648else
11649 am__fastdepCCAS_TRUE='#'
11650 am__fastdepCCAS_FALSE=
11651fi
11652
11653
11654
11655
11656 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11657$as_echo_n "checking zfs author... " >&6; }
11658 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11659$as_echo "$ZFS_META_AUTHOR" >&6; }
11660
11661 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11662$as_echo_n "checking zfs license... " >&6; }
11663 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11664$as_echo "$ZFS_META_LICENSE" >&6; }
11665
11666
11667
11668 RPM=rpm
11669 RPMBUILD=rpmbuild
11670
11671 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11672$as_echo_n "checking whether $RPM is available... " >&6; }
11673 if tmp=$($RPM --version 2>/dev/null); then
11674
11675 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11676 HAVE_RPM=yes
11677 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11678$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11679
11680else
11681
11682 HAVE_RPM=no
11683 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11684$as_echo "$HAVE_RPM" >&6; }
11685
11686fi
11687
11688
11689 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11690$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11691 if tmp=$($RPMBUILD --version 2>/dev/null); then
11692
11693 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11694 HAVE_RPMBUILD=yes
11695 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11696$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11697
11698else
11699
11700 HAVE_RPMBUILD=no
11701 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11702$as_echo "$HAVE_RPMBUILD" >&6; }
11703
11704fi
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716 DPKG=dpkg
11717 DPKGBUILD=dpkg-buildpackage
11718
11719 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11720$as_echo_n "checking whether $DPKG is available... " >&6; }
11721 if tmp=$($DPKG --version 2>/dev/null); then
11722
11723 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11724 HAVE_DPKG=yes
11725 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11726$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11727
11728else
11729
11730 HAVE_DPKG=no
11731 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11732$as_echo "$HAVE_DPKG" >&6; }
11733
11734fi
11735
11736
11737 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11738$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11739 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11740
11741 DPKGBUILD_VERSION=$(echo $tmp | \
11742 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11743 HAVE_DPKGBUILD=yes
11744 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11745$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11746
11747else
11748
11749 HAVE_DPKGBUILD=no
11750 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11751$as_echo "$HAVE_DPKGBUILD" >&6; }
11752
11753fi
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765 ALIEN=alien
11766
11767 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11768$as_echo_n "checking whether $ALIEN is available... " >&6; }
11769 if tmp=$($ALIEN --version 2>/dev/null); then
11770
11771 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11772 HAVE_ALIEN=yes
11773 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11774$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11775
11776else
11777
11778 HAVE_ALIEN=no
11779 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11780$as_echo "$HAVE_ALIEN" >&6; }
11781
11782fi
11783
11784
11785
11786
11787
11788
11789
11790 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11791$as_echo_n "checking linux distribution... " >&6; }
11792 if test -f /etc/redhat-release ; then
11793 VENDOR=redhat ;
11794 elif test -f /etc/fedora-release ; then
11795 VENDOR=fedora ;
d9bfe0f5
AS
11796 elif test -f /etc/gentoo-release ; then
11797 VENDOR=gentoo ;
6283f55e
BB
11798 elif test -f /etc/debian_version ; then
11799 VENDOR=debian ;
e70e591c
BB
11800 elif test -f /etc/SuSE-release ; then
11801 VENDOR=sles ;
11802 elif test -f /etc/slackware-version ; then
11803 VENDOR=slackware ;
d9bfe0f5
AS
11804 elif test -f /etc/lsb-release ; then
11805 VENDOR=ubuntu ;
712f8bd8
BB
11806 elif test -f /etc/lunar.release ; then
11807 VENDOR=lunar ;
615ab66d
KF
11808 elif test -f /etc/arch-release ; then
11809 VENDOR=arch ;
e70e591c
BB
11810 else
11811 VENDOR= ;
11812 fi
11813 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11814$as_echo "$VENDOR" >&6; }
11815
11816
11817 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11818$as_echo_n "checking default package type... " >&6; }
11819 case "$VENDOR" in
e70e591c 11820 redhat) DEFAULT_PACKAGE=rpm ;;
712f8bd8 11821 fedora) DEFAULT_PACKAGE=rpm ;;
e70e591c
BB
11822 ubuntu) DEFAULT_PACKAGE=deb ;;
11823 debian) DEFAULT_PACKAGE=deb ;;
712f8bd8 11824 sles) DEFAULT_PACKAGE=rpm ;;
e70e591c 11825 slackware) DEFAULT_PACKAGE=tgz ;;
712f8bd8
BB
11826 gentoo) DEFAULT_PACKAGE=tgz ;;
11827 lunar) DEFAULT_PACKAGE=tgz ;;
e70e591c
BB
11828 *) DEFAULT_PACKAGE=rpm ;;
11829 esac
11830
11831 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11832$as_echo "$DEFAULT_PACKAGE" >&6; }
11833
11834
615ab66d
KF
11835 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11836$as_echo_n "checking default init directory... " >&6; }
11837 case "$VENDOR" in
11838 arch) DEFAULT_INIT_DIR=$sysconfdir/rc.d ;;
11839 *) DEFAULT_INIT_DIR=$sysconfdir/init.d ;;
11840 esac
11841
11842 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11843$as_echo "$DEFAULT_INIT_DIR" >&6; }
11844
11845
01c0e61d
BB
11846 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11847$as_echo_n "checking default init script type... " >&6; }
11848 case "$VENDOR" in
712f8bd8 11849 redhat) DEFAULT_INIT_SCRIPT=redhat ;;
01c0e61d 11850 fedora) DEFAULT_INIT_SCRIPT=fedora ;;
01c0e61d
BB
11851 ubuntu) DEFAULT_INIT_SCRIPT=lsb ;;
11852 debian) DEFAULT_INIT_SCRIPT=lsb ;;
712f8bd8 11853 sles) DEFAULT_INIT_SCRIPT=lsb ;;
01c0e61d 11854 slackware) DEFAULT_INIT_SCRIPT=lsb ;;
712f8bd8
BB
11855 gentoo) DEFAULT_INIT_SCRIPT=gentoo ;;
11856 lunar) DEFAULT_INIT_SCRIPT=lunar ;;
615ab66d 11857 arch) DEFAULT_INIT_SCRIPT=arch ;;
01c0e61d
BB
11858 *) DEFAULT_INIT_SCRIPT=lsb ;;
11859 esac
11860
11861 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11862$as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11863
11864
e70e591c
BB
11865
11866
e70e591c
BB
11867 TARGET_ASM_DIR=asm-generic
11868
11869
e70e591c
BB
11870 ZFS_CONFIG=all
11871
11872# Check whether --with-config was given.
11873if test "${with_config+set}" = set; then
11874 withval=$with_config; ZFS_CONFIG="$withval"
11875fi
11876
11877
11878 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11879$as_echo_n "checking zfs config... " >&6; }
11880 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11881$as_echo "$ZFS_CONFIG" >&6; };
11882
11883
2e08aedb
BB
11884
11885
11886 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11887$as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11888
11889 saved_flags="$CFLAGS"
11890 CFLAGS="$CFLAGS -Wunused-but-set-variable"
11891
11892 if test "$cross_compiling" = yes; then
11893 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11895{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11896See \`config.log' for more details." >&5
11897$as_echo "$as_me: error: cannot run test program while cross compiling
11898See \`config.log' for more details." >&2;}
11899 { (exit 1); exit 1; }; }; }
11900else
11901 cat >conftest.$ac_ext <<_ACEOF
11902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
11907
11908int
11909main ()
11910{
11911
11912 ;
11913 return 0;
11914}
11915_ACEOF
11916rm -f conftest$ac_exeext
11917if { (ac_try="$ac_link"
11918case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11923$as_echo "$ac_try_echo") >&5
11924 (eval "$ac_link") 2>&5
11925 ac_status=$?
11926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931esac
11932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933$as_echo "$ac_try_echo") >&5
11934 (eval "$ac_try") 2>&5
11935 ac_status=$?
11936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938
11939 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
11940 { $as_echo "$as_me:$LINENO: result: yes" >&5
11941$as_echo "yes" >&6; }
11942
11943else
11944 $as_echo "$as_me: program exited with status $ac_status" >&5
11945$as_echo "$as_me: failed program was:" >&5
11946sed 's/^/| /' conftest.$ac_ext >&5
11947
11948( exit $ac_status )
11949
11950 NO_UNUSED_BUT_SET_VARIABLE=
11951 { $as_echo "$as_me:$LINENO: result: no" >&5
11952$as_echo "no" >&6; }
11953
11954fi
11955rm -rf conftest.dSYM
11956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11957fi
11958
11959
11960
11961 CFLAGS="$saved_flags"
11962
11963
11964
11965
e70e591c
BB
11966 case "$ZFS_CONFIG" in
11967 kernel)
11968
11969
11970# Check whether --with-linux was given.
11971if test "${with_linux+set}" = set; then
11972 withval=$with_linux; kernelsrc="$withval"
11973fi
11974
11975
11976
11977# Check whether --with-linux-obj was given.
11978if test "${with_linux_obj+set}" = set; then
11979 withval=$with_linux_obj; kernelbuild="$withval"
11980fi
11981
11982
11983 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11984$as_echo_n "checking kernel source directory... " >&6; }
11985 if test -z "$kernelsrc"; then
8366cd6a 11986
1b94c25c 11987 if test -e "/lib/modules/$(uname -r)/source"; then
8366cd6a 11988
1b94c25c
BB
11989 headersdir="/lib/modules/$(uname -r)/source"
11990 sourcelink=$(readlink -f "$headersdir")
8366cd6a
PS
11991
11992elif test -e "/lib/modules/$(uname -r)/build"; then
11993
1b94c25c 11994 headersdir="/lib/modules/$(uname -r)/build"
e70e591c 11995 sourcelink=$(readlink -f "$headersdir")
8366cd6a
PS
11996
11997else
11998
e70e591c 11999 sourcelink=$(ls -1d /usr/src/kernels/* \
8366cd6a 12000 /usr/src/linux-* \
e70e591c 12001 2>/dev/null | grep -v obj | tail -1)
8366cd6a
PS
12002
12003fi
12004
e70e591c
BB
12005
12006 if test -n "$sourcelink" && test -e ${sourcelink}; then
8366cd6a 12007
e70e591c 12008 kernelsrc=`readlink -f ${sourcelink}`
8366cd6a
PS
12009
12010else
12011
e70e591c
BB
12012 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12013$as_echo "Not found" >&6; }
12014 { { $as_echo "$as_me:$LINENO: error:
12015 *** Please make sure the kernel devel package for your distribution
12016 *** is installed then try again. If that fails you can specify the
12017 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12018$as_echo "$as_me: error:
12019 *** Please make sure the kernel devel package for your distribution
12020 *** is installed then try again. If that fails you can specify the
12021 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12022 { (exit 1); exit 1; }; }
8366cd6a
PS
12023
12024fi
12025
12026
12027else
12028
e70e591c 12029 if test "$kernelsrc" = "NONE"; then
8366cd6a 12030
e70e591c 12031 kernsrcver=NONE
8366cd6a
PS
12032
12033fi
12034
12035
12036fi
12037
e70e591c
BB
12038
12039 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12040$as_echo "$kernelsrc" >&6; }
12041 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12042$as_echo_n "checking kernel build directory... " >&6; }
12043 if test -z "$kernelbuild"; then
8366cd6a 12044
1b94c25c 12045 if test -e "/lib/modules/$(uname -r)/build"; then
8366cd6a 12046
1b94c25c 12047 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
8366cd6a
PS
12048
12049elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12050
e70e591c 12051 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
8366cd6a
PS
12052
12053elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
12054
e70e591c 12055 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
8366cd6a
PS
12056
12057elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
12058
e70e591c 12059 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
8366cd6a
PS
12060
12061else
12062
e70e591c 12063 kernelbuild=${kernelsrc}
8366cd6a
PS
12064
12065fi
12066
12067
12068fi
12069
e70e591c
BB
12070 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12071$as_echo "$kernelbuild" >&6; }
12072
12073 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12074$as_echo_n "checking kernel source version... " >&6; }
12075 utsrelease1=$kernelbuild/include/linux/version.h
12076 utsrelease2=$kernelbuild/include/linux/utsrelease.h
12077 utsrelease3=$kernelbuild/include/generated/utsrelease.h
12078 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
8366cd6a 12079
e70e591c 12080 utsrelease=linux/version.h
8366cd6a
PS
12081
12082elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
12083
e70e591c 12084 utsrelease=linux/utsrelease.h
8366cd6a
PS
12085
12086elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
12087
e70e591c 12088 utsrelease=generated/utsrelease.h
8366cd6a
PS
12089
12090fi
12091
e70e591c
BB
12092
12093 if test "$utsrelease"; then
8366cd6a 12094
e70e591c
BB
12095 kernsrcver=`(echo "#include <$utsrelease>";
12096 echo "kernsrcver=UTS_RELEASE") |
12097 cpp -I $kernelbuild/include |
12098 grep "^kernsrcver=" | cut -d \" -f 2`
12099
12100 if test -z "$kernsrcver"; then
8366cd6a 12101
e70e591c
BB
12102 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12103$as_echo "Not found" >&6; }
12104 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12105$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12106 { (exit 1); exit 1; }; }
8366cd6a
PS
12107
12108fi
12109
12110
12111else
12112
e70e591c
BB
12113 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12114$as_echo "Not found" >&6; }
12115 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12116$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12117 { (exit 1); exit 1; }; }
8366cd6a
PS
12118
12119fi
12120
e70e591c
BB
12121
12122 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12123$as_echo "$kernsrcver" >&6; }
12124
12125 LINUX=${kernelsrc}
12126 LINUX_OBJ=${kernelbuild}
12127 LINUX_VERSION=${kernsrcver}
12128
12129
12130
12131
12132
12133
12134 modpost=$LINUX/scripts/Makefile.modpost
12135 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12136$as_echo_n "checking kernel file name for module symbols... " >&6; }
12137 if test -f "$modpost"; then
8366cd6a 12138
e70e591c 12139 if grep -q Modules.symvers $modpost; then
8366cd6a 12140
e70e591c 12141 LINUX_SYMBOLS=Modules.symvers
8366cd6a
PS
12142
12143else
12144
e70e591c 12145 LINUX_SYMBOLS=Module.symvers
a60b1c0a 12146
8366cd6a
PS
12147fi
12148
12149
12150 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12151
a60b1c0a
BB
12152 { { $as_echo "$as_me:$LINENO: error:
12153 *** Please make sure the kernel devel package for your distribution
12154 *** is installed. If your building with a custom kernel make sure the
12155 *** kernel is configured, built, and the '--with-linux=PATH' configure
12156 *** option refers to the location of the kernel source." >&5
12157$as_echo "$as_me: error:
12158 *** Please make sure the kernel devel package for your distribution
12159 *** is installed. If your building with a custom kernel make sure the
12160 *** kernel is configured, built, and the '--with-linux=PATH' configure
12161 *** option refers to the location of the kernel source." >&2;}
12162 { (exit 1); exit 1; }; }
8366cd6a
PS
12163
12164fi
12165
12166
12167else
12168
e70e591c 12169 LINUX_SYMBOLS=NONE
8366cd6a
PS
12170
12171fi
12172
e70e591c
BB
12173 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12174$as_echo "$LINUX_SYMBOLS" >&6; }
12175
12176
12177
12178
12179
12180# Check whether --with-spl was given.
12181if test "${with_spl+set}" = set; then
12182 withval=$with_spl; splsrc="$withval"
12183fi
12184
12185
12186
12187# Check whether --with-spl-obj was given.
12188if test "${with_spl_obj+set}" = set; then
12189 withval=$with_spl_obj; splbuild="$withval"
12190fi
12191
12192
12193
12194 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12195$as_echo_n "checking spl source directory... " >&6; }
12196 if test -z "$splsrc"; then
8366cd6a 12197
e70e591c
BB
12198 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
12199 2>/dev/null | tail -1`
12200
12201 if test -z "$sourcelink" || test ! -e $sourcelink; then
8366cd6a 12202
e70e591c 12203 sourcelink=../spl
8366cd6a
PS
12204
12205fi
12206
e70e591c
BB
12207
12208 if test -e $sourcelink; then
8366cd6a 12209
e70e591c 12210 splsrc=`readlink -f ${sourcelink}`
8366cd6a
PS
12211
12212else
12213
e70e591c
BB
12214 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12215$as_echo "Not found" >&6; }
12216 { { $as_echo "$as_me:$LINENO: error:
12217 *** Please make sure the spl devel package for your distribution
12218 *** is installed then try again. If that fails you can specify the
12219 *** location of the spl source with the '--with-spl=PATH' option." >&5
12220$as_echo "$as_me: error:
12221 *** Please make sure the spl devel package for your distribution
12222 *** is installed then try again. If that fails you can specify the
12223 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12224 { (exit 1); exit 1; }; }
8366cd6a
PS
12225
12226fi
12227
12228
12229else
12230
e70e591c 12231 if test "$splsrc" = "NONE"; then
8366cd6a 12232
e70e591c
BB
12233 splbuild=NONE
12234 splsrcver=NONE
8366cd6a
PS
12235
12236fi
12237
12238
12239fi
12240
e70e591c
BB
12241
12242 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12243$as_echo "$splsrc" >&6; }
12244 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12245$as_echo_n "checking spl build directory... " >&6; }
12246 if test -z "$splbuild"; then
8366cd6a 12247
6283f55e 12248 splbuild=${splsrc}
8366cd6a
PS
12249
12250fi
12251
e70e591c
BB
12252 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12253$as_echo "$splbuild" >&6; }
12254
12255 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12256$as_echo_n "checking spl source version... " >&6; }
5e612145
BB
12257 if test -r $splbuild/spl_config.h &&
12258 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
e70e591c 12259
8366cd6a 12260
e70e591c
BB
12261 splsrcver=`(echo "#include <spl_config.h>";
12262 echo "splsrcver=SPL_META_VERSION") |
5e612145 12263 cpp -I $splbuild |
e70e591c 12264 grep "^splsrcver=" | cut -d \" -f 2`
8366cd6a
PS
12265
12266fi
12267
e70e591c
BB
12268
12269 if test -z "$splsrcver"; then
8366cd6a 12270
e70e591c
BB
12271 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12272$as_echo "Not found" >&6; }
12273 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12274 *** Cannot determine the version of the spl source.
12275 *** Please prepare the spl source before running this script" >&5
e70e591c 12276$as_echo "$as_me: error:
2984e0bb
PS
12277 *** Cannot determine the version of the spl source.
12278 *** Please prepare the spl source before running this script" >&2;}
e70e591c 12279 { (exit 1); exit 1; }; }
8366cd6a
PS
12280
12281fi
12282
e70e591c
BB
12283
12284 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12285$as_echo "$splsrcver" >&6; }
12286
12287 SPL=${splsrc}
12288 SPL_OBJ=${splbuild}
12289 SPL_VERSION=${splsrcver}
12290
12291
12292
12293
12294
12295
12296 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12297$as_echo_n "checking spl file name for module symbols... " >&6; }
12298 if test -r $SPL_OBJ/Module.symvers; then
8366cd6a 12299
e70e591c 12300 SPL_SYMBOLS=Module.symvers
8366cd6a
PS
12301
12302elif test -r $SPL_OBJ/Modules.symvers; then
12303
e70e591c 12304 SPL_SYMBOLS=Modules.symvers
8366cd6a
PS
12305
12306elif test -r $SPL_OBJ/module/Module.symvers; then
12307
6283f55e 12308 SPL_SYMBOLS=Module.symvers
8366cd6a
PS
12309
12310elif test -r $SPL_OBJ/module/Modules.symvers; then
12311
6283f55e 12312 SPL_SYMBOLS=Modules.symvers
8366cd6a
PS
12313
12314else
12315
e70e591c 12316 SPL_SYMBOLS=$LINUX_SYMBOLS
8366cd6a
PS
12317
12318fi
12319
e70e591c
BB
12320
12321 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12322$as_echo "$SPL_SYMBOLS" >&6; }
12323
12324
12325
12326
12327
15805c77
BB
12328 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
12329$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
12330
12331
12332cat confdefs.h - <<_ACEOF >conftest.c
12333/* confdefs.h. */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h. */
12338
12339
0da78696 12340 #include <linux/module.h>
15805c77
BB
12341
12342int
12343main (void)
12344{
12345
12346 #ifndef CONFIG_PREEMPT
12347 #error CONFIG_PREEMPT not #defined
12348 #endif
12349
12350 ;
12351 return 0;
12352}
12353
12354_ACEOF
12355
12356
12357 rm -Rf build && mkdir -p build
12358 echo "obj-m := conftest.o" >build/Makefile
12359 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370
12371 { $as_echo "$as_me:$LINENO: result: yes" >&5
12372$as_echo "yes" >&6; }
12373 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12374 *** Kernel built with CONFIG_PREEMPT which is not supported.
12375 *** You must rebuild your kernel without this option." >&5
15805c77 12376$as_echo "$as_me: error:
2984e0bb
PS
12377 *** Kernel built with CONFIG_PREEMPT which is not supported.
12378 *** You must rebuild your kernel without this option." >&2;}
15805c77
BB
12379 { (exit 1); exit 1; }; }
12380
12381else
12382 $as_echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385 { $as_echo "$as_me:$LINENO: result: no" >&5
12386$as_echo "no" >&6; }
12387
12388
12389
12390
12391fi
12392
12393 rm -Rf build
12394
12395
12396
12397
e70e591c 12398 if test "$ZFS_META_LICENSE" = CDDL; then
8366cd6a 12399
e70e591c
BB
12400 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12401$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12402
12403
12404cat confdefs.h - <<_ACEOF >conftest.c
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
12410
12411
0da78696 12412 #include <linux/module.h>
e70e591c
BB
12413
12414int
12415main (void)
12416{
12417
12418 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12419 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12420 #endif
12421
12422 ;
12423 return 0;
12424}
12425
12426_ACEOF
12427
12428
12429 rm -Rf build && mkdir -p build
12430 echo "obj-m := conftest.o" >build/Makefile
12431 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438 (eval $ac_try) 2>&5
12439 ac_status=$?
12440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; }; then
12442
12443 { $as_echo "$as_me:$LINENO: result: yes" >&5
12444$as_echo "yes" >&6; }
12445 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
12446 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12447 *** incompatible with the CDDL license. You must rebuild
12448 *** your kernel without this option." >&5
e70e591c 12449$as_echo "$as_me: error:
2984e0bb
PS
12450 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12451 *** incompatible with the CDDL license. You must rebuild
12452 *** your kernel without this option." >&2;}
e70e591c
BB
12453 { (exit 1); exit 1; }; }
12454
12455else
12456 $as_echo "$as_me: failed program was:" >&5
12457sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 { $as_echo "$as_me:$LINENO: result: no" >&5
12460$as_echo "no" >&6; }
12461
12462
12463
12464
12465fi
12466
12467 rm -Rf build
12468
12469
12470
8366cd6a
PS
12471
12472fi
12473
e70e591c
BB
12474
12475 if test "$ZFS_META_LICENSE" = GPL; then
12476
8366cd6a 12477
e70e591c
BB
12478cat >>confdefs.h <<\_ACEOF
12479#define HAVE_GPL_ONLY_SYMBOLS 1
12480_ACEOF
12481
8366cd6a
PS
12482
12483fi
12484
e70e591c
BB
12485
12486
12487 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12488$as_echo_n "checking block device operation prototypes... " >&6; }
b9c59ec8
PS
12489 tmp_flags="$EXTRA_KCFLAGS"
12490 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
12491
12492
12493cat confdefs.h - <<_ACEOF >conftest.c
12494/* confdefs.h. */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h. */
12499
12500
12501 #include <linux/blkdev.h>
12502
12503int
12504main (void)
12505{
12506
12507 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12508 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12509 int (*blk_ioctl) (struct block_device *, fmode_t,
12510 unsigned, unsigned long) = NULL;
12511 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12512 unsigned, unsigned long) = NULL;
12513 struct block_device_operations blk_ops = {
12514 .open = blk_open,
12515 .release = blk_release,
12516 .ioctl = blk_ioctl,
12517 .compat_ioctl = blk_compat_ioctl,
12518 };
12519
12520 blk_ops.open(NULL, 0);
12521 blk_ops.release(NULL, 0);
12522 blk_ops.ioctl(NULL, 0, 0, 0);
12523 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12524
12525 ;
12526 return 0;
12527}
12528
12529_ACEOF
12530
12531
12532 rm -Rf build && mkdir -p build
12533 echo "obj-m := conftest.o" >build/Makefile
12534 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545
12546 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12547$as_echo "struct block_device" >&6; }
12548
12549cat >>confdefs.h <<\_ACEOF
12550#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12551_ACEOF
12552
12553
12554else
12555 $as_echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12559$as_echo "struct inode" >&6; }
12560
12561
12562
12563fi
12564
12565 rm -Rf build
12566
12567
b9c59ec8 12568 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
12569
12570 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12571$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12572
12573
12574cat confdefs.h - <<_ACEOF >conftest.c
12575/* confdefs.h. */
12576_ACEOF
12577cat confdefs.h >>conftest.$ac_ext
12578cat >>conftest.$ac_ext <<_ACEOF
12579/* end confdefs.h. */
12580
12581
12582 #include <linux/types.h>
12583
12584int
12585main (void)
12586{
12587
79713039 12588 fmode_t *ptr __attribute__ ((unused));
e70e591c
BB
12589
12590 ;
12591 return 0;
12592}
12593
12594_ACEOF
12595
12596
12597 rm -Rf build && mkdir -p build
12598 echo "obj-m := conftest.o" >build/Makefile
12599 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12602 ac_status=$?
12603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610
12611 { $as_echo "$as_me:$LINENO: result: yes" >&5
12612$as_echo "yes" >&6; }
12613
12614cat >>confdefs.h <<\_ACEOF
12615#define HAVE_FMODE_T 1
12616_ACEOF
12617
12618
12619else
12620 $as_echo "$as_me: failed program was:" >&5
12621sed 's/^/| /' conftest.$ac_ext >&5
12622
12623 { $as_echo "$as_me:$LINENO: result: no" >&5
12624$as_echo "no" >&6; }
12625
12626
12627
12628fi
12629
12630 rm -Rf build
12631
12632
12633
12634
12635 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12636$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12637
12638
12639cat confdefs.h - <<_ACEOF >conftest.c
12640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h. */
12645
12646
12647 #include <linux/kobject.h>
12648
12649int
12650main (void)
12651{
12652
79713039 12653 int val __attribute__ ((unused));
e70e591c
BB
12654 val = KOBJ_NAME_LEN;
12655
12656 ;
12657 return 0;
12658}
12659
12660_ACEOF
12661
12662
12663 rm -Rf build && mkdir -p build
12664 echo "obj-m := conftest.o" >build/Makefile
12665 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12667 (eval $ac_try) 2>&5
12668 ac_status=$?
12669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676
12677 { $as_echo "$as_me:$LINENO: result: yes" >&5
12678$as_echo "yes" >&6; }
12679
12680cat >>confdefs.h <<\_ACEOF
12681#define HAVE_KOBJ_NAME_LEN 1
12682_ACEOF
12683
12684
12685else
12686 $as_echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689 { $as_echo "$as_me:$LINENO: result: no" >&5
12690$as_echo "no" >&6; }
12691
12692
12693
12694fi
12695
12696 rm -Rf build
12697
12698
12699
12700
45066d1f
BB
12701 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
12702$as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
12703 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12704 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12705 rc=$?
12706 if test $rc -ne 0; then
8366cd6a 12707
45066d1f
BB
12708 export=0
12709 for file in fs/block_dev.c; do
12710 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
12711 rc=$?
8366cd6a
PS
12712 if test $rc -eq 0; then
12713
12714 export=1
12715 break;
12716
12717fi
12718
45066d1f
BB
12719 done
12720 if test $export -eq 0; then
8366cd6a 12721
45066d1f
BB
12722 { $as_echo "$as_me:$LINENO: result: no" >&5
12723$as_echo "no" >&6; }
12724
8366cd6a
PS
12725
12726else
12727
45066d1f
BB
12728 { $as_echo "$as_me:$LINENO: result: yes" >&5
12729$as_echo "yes" >&6; }
12730
12731cat >>confdefs.h <<\_ACEOF
12732#define HAVE_BLKDEV_GET_BY_PATH 1
12733_ACEOF
12734
8366cd6a
PS
12735
12736fi
12737
12738
12739else
12740
45066d1f
BB
12741 { $as_echo "$as_me:$LINENO: result: yes" >&5
12742$as_echo "yes" >&6; }
12743
12744cat >>confdefs.h <<\_ACEOF
12745#define HAVE_BLKDEV_GET_BY_PATH 1
12746_ACEOF
12747
8366cd6a
PS
12748
12749fi
12750
45066d1f
BB
12751
12752
12753
e70e591c
BB
12754 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12755$as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12756 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12757 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12758 rc=$?
12759 if test $rc -ne 0; then
8366cd6a 12760
e70e591c
BB
12761 export=0
12762 for file in fs/block_dev.c; do
12763 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12764 rc=$?
8366cd6a
PS
12765 if test $rc -eq 0; then
12766
12767 export=1
12768 break;
12769
12770fi
12771
e70e591c
BB
12772 done
12773 if test $export -eq 0; then
8366cd6a 12774
e70e591c
BB
12775 { $as_echo "$as_me:$LINENO: result: no" >&5
12776$as_echo "no" >&6; }
12777
8366cd6a
PS
12778
12779else
12780
e70e591c
BB
12781 { $as_echo "$as_me:$LINENO: result: yes" >&5
12782$as_echo "yes" >&6; }
12783
12784cat >>confdefs.h <<\_ACEOF
12785#define HAVE_OPEN_BDEV_EXCLUSIVE 1
12786_ACEOF
12787
8366cd6a
PS
12788
12789fi
12790
12791
12792else
12793
e70e591c
BB
12794 { $as_echo "$as_me:$LINENO: result: yes" >&5
12795$as_echo "yes" >&6; }
12796
12797cat >>confdefs.h <<\_ACEOF
12798#define HAVE_OPEN_BDEV_EXCLUSIVE 1
12799_ACEOF
12800
8366cd6a
PS
12801
12802fi
12803
e70e591c
BB
12804
12805
12806
12807 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12808$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12809
12810
12811cat confdefs.h - <<_ACEOF >conftest.c
12812/* confdefs.h. */
12813_ACEOF
12814cat confdefs.h >>conftest.$ac_ext
12815cat >>conftest.$ac_ext <<_ACEOF
12816/* end confdefs.h. */
12817
12818
12819 #include <linux/buffer_head.h>
12820
12821int
12822main (void)
12823{
12824
79713039 12825 struct block_device *bdev = NULL;
e70e591c
BB
12826 invalidate_bdev(bdev);
12827
12828 ;
12829 return 0;
12830}
12831
12832_ACEOF
12833
12834
12835 rm -Rf build && mkdir -p build
12836 echo "obj-m := conftest.o" >build/Makefile
12837 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848
12849 { $as_echo "$as_me:$LINENO: result: yes" >&5
12850$as_echo "yes" >&6; }
12851
12852cat >>confdefs.h <<\_ACEOF
12853#define HAVE_1ARG_INVALIDATE_BDEV 1
12854_ACEOF
12855
12856
12857else
12858 $as_echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 { $as_echo "$as_me:$LINENO: result: no" >&5
12862$as_echo "no" >&6; }
12863
12864
12865
12866fi
12867
12868 rm -Rf build
12869
12870
12871
12872
12873 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12874$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
b9c59ec8
PS
12875 tmp_flags="$EXTRA_KCFLAGS"
12876 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
12877
12878
12879cat confdefs.h - <<_ACEOF >conftest.c
12880/* confdefs.h. */
12881_ACEOF
12882cat confdefs.h >>conftest.$ac_ext
12883cat >>conftest.$ac_ext <<_ACEOF
12884/* end confdefs.h. */
12885
12886
12887 #include <linux/blkdev.h>
12888
12889int
12890main (void)
12891{
12892
12893 struct block_device *bdev = NULL;
12894 bdev_logical_block_size(bdev);
12895
12896 ;
12897 return 0;
12898}
12899
12900_ACEOF
12901
12902
12903 rm -Rf build && mkdir -p build
12904 echo "obj-m := conftest.o" >build/Makefile
12905 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916
12917 { $as_echo "$as_me:$LINENO: result: yes" >&5
12918$as_echo "yes" >&6; }
12919
12920cat >>confdefs.h <<\_ACEOF
12921#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12922_ACEOF
12923
12924
12925else
12926 $as_echo "$as_me: failed program was:" >&5
12927sed 's/^/| /' conftest.$ac_ext >&5
12928
12929 { $as_echo "$as_me:$LINENO: result: no" >&5
12930$as_echo "no" >&6; }
12931
12932
12933
12934fi
12935
12936 rm -Rf build
12937
12938
b9c59ec8 12939 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
12940
12941
12942 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12943$as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12944 EXTRA_KCFLAGS="-Werror"
12945
12946
12947cat confdefs.h - <<_ACEOF >conftest.c
12948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
12953
12954
12955 #include <linux/bio.h>
12956
12957int
12958main (void)
12959{
12960
12961 struct bio bio;
12962 (void)bio_empty_barrier(&bio);
12963
12964 ;
12965 return 0;
12966}
12967
12968_ACEOF
12969
12970
12971 rm -Rf build && mkdir -p build
12972 echo "obj-m := conftest.o" >build/Makefile
12973 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12976 ac_status=$?
12977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984
12985 { $as_echo "$as_me:$LINENO: result: yes" >&5
12986$as_echo "yes" >&6; }
12987
12988cat >>confdefs.h <<\_ACEOF
12989#define HAVE_BIO_EMPTY_BARRIER 1
12990_ACEOF
12991
12992
12993else
12994 $as_echo "$as_me: failed program was:" >&5
12995sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 { $as_echo "$as_me:$LINENO: result: no" >&5
12998$as_echo "no" >&6; }
12999
13000
13001
13002fi
13003
13004 rm -Rf build
13005
13006
13007
13008
f4af6bb7
BB
13009 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
13010$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13011
13012
13013cat confdefs.h - <<_ACEOF >conftest.c
13014/* confdefs.h. */
13015_ACEOF
13016cat confdefs.h >>conftest.$ac_ext
13017cat >>conftest.$ac_ext <<_ACEOF
13018/* end confdefs.h. */
13019
13020
13021 #include <linux/bio.h>
13022
13023int
13024main (void)
13025{
13026
79713039 13027 int flags __attribute__ ((unused));
f4af6bb7
BB
13028 flags = (1 << BIO_RW_FAILFAST);
13029
13030 ;
13031 return 0;
13032}
13033
13034_ACEOF
13035
13036
13037 rm -Rf build && mkdir -p build
13038 echo "obj-m := conftest.o" >build/Makefile
13039 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13047 ac_status=$?
13048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; }; then
13050
13051 { $as_echo "$as_me:$LINENO: result: yes" >&5
13052$as_echo "yes" >&6; }
13053
13054cat >>confdefs.h <<\_ACEOF
13055#define HAVE_BIO_RW_FAILFAST 1
13056_ACEOF
13057
13058
13059else
13060 $as_echo "$as_me: failed program was:" >&5
13061sed 's/^/| /' conftest.$ac_ext >&5
13062
13063 { $as_echo "$as_me:$LINENO: result: no" >&5
13064$as_echo "no" >&6; }
13065
13066
13067
13068fi
13069
13070 rm -Rf build
13071
13072
13073
13074
2959d94a
BB
13075 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
13076$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13077
13078
13079cat confdefs.h - <<_ACEOF >conftest.c
13080/* confdefs.h. */
13081_ACEOF
13082cat confdefs.h >>conftest.$ac_ext
13083cat >>conftest.$ac_ext <<_ACEOF
13084/* end confdefs.h. */
13085
13086
13087 #include <linux/bio.h>
13088
13089int
13090main (void)
13091{
13092
79713039 13093 int flags __attribute__ ((unused));
2959d94a
BB
13094 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13095 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13096 (1 << BIO_RW_FAILFAST_DRIVER));
13097
13098 ;
13099 return 0;
13100}
13101
13102_ACEOF
13103
13104
13105 rm -Rf build && mkdir -p build
13106 echo "obj-m := conftest.o" >build/Makefile
13107 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118
13119 { $as_echo "$as_me:$LINENO: result: yes" >&5
13120$as_echo "yes" >&6; }
13121
13122cat >>confdefs.h <<\_ACEOF
f4af6bb7
BB
13123#define HAVE_BIO_RW_FAILFAST_DTD 1
13124_ACEOF
13125
13126
13127else
13128 $as_echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 { $as_echo "$as_me:$LINENO: result: no" >&5
13132$as_echo "no" >&6; }
13133
13134
13135
13136fi
13137
13138 rm -Rf build
13139
13140
13141
13142
13143 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
13144$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13145
13146
13147cat confdefs.h - <<_ACEOF >conftest.c
13148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
13153
13154
13155 #include <linux/bio.h>
13156
13157int
13158main (void)
13159{
13160
79713039 13161 int flags __attribute__ ((unused));
f4af6bb7
BB
13162 flags = REQ_FAILFAST_MASK;
13163
13164 ;
13165 return 0;
13166}
13167
13168_ACEOF
13169
13170
13171 rm -Rf build && mkdir -p build
13172 echo "obj-m := conftest.o" >build/Makefile
13173 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184
13185 { $as_echo "$as_me:$LINENO: result: yes" >&5
13186$as_echo "yes" >&6; }
13187
13188cat >>confdefs.h <<\_ACEOF
13189#define HAVE_BIO_REQ_FAILFAST_MASK 1
2959d94a
BB
13190_ACEOF
13191
13192
13193else
13194 $as_echo "$as_me: failed program was:" >&5
13195sed 's/^/| /' conftest.$ac_ext >&5
13196
13197 { $as_echo "$as_me:$LINENO: result: no" >&5
13198$as_echo "no" >&6; }
13199
13200
13201
13202fi
13203
13204 rm -Rf build
13205
13206
13207
13208
e70e591c
BB
13209 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
13210$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13211 tmp_flags="$EXTRA_KCFLAGS"
13212 EXTRA_KCFLAGS="-Werror"
13213
13214
13215cat confdefs.h - <<_ACEOF >conftest.c
13216/* confdefs.h. */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h. */
13221
13222
13223 #include <linux/bio.h>
13224
13225int
13226main (void)
13227{
13228
13229 void (*wanted_end_io)(struct bio *, int) = NULL;
79713039 13230 bio_end_io_t *local_end_io __attribute__ ((unused));
e70e591c
BB
13231
13232 local_end_io = wanted_end_io;
13233
13234 ;
13235 return 0;
13236}
13237
13238_ACEOF
13239
13240
13241 rm -Rf build && mkdir -p build
13242 echo "obj-m := conftest.o" >build/Makefile
13243 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13246 ac_status=$?
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254
13255 { $as_echo "$as_me:$LINENO: result: yes" >&5
13256$as_echo "yes" >&6; }
13257
13258cat >>confdefs.h <<\_ACEOF
13259#define HAVE_2ARGS_BIO_END_IO_T 1
13260_ACEOF
13261
13262
13263else
13264 $as_echo "$as_me: failed program was:" >&5
13265sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 { $as_echo "$as_me:$LINENO: result: no" >&5
13268$as_echo "no" >&6; }
13269
13270
13271
13272fi
13273
13274 rm -Rf build
13275
13276
13277 EXTRA_KCFLAGS="$tmp_flags"
13278
13279
675de5aa
BB
13280 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
13281$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
13282
13283
13284cat confdefs.h - <<_ACEOF >conftest.c
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
13290
13291
13292 #include <linux/bio.h>
13293
13294int
13295main (void)
13296{
13297
79713039 13298 int flags __attribute__ ((unused));
675de5aa
BB
13299 flags = BIO_RW_SYNC;
13300
13301 ;
13302 return 0;
13303}
13304
13305_ACEOF
13306
13307
13308 rm -Rf build && mkdir -p build
13309 echo "obj-m := conftest.o" >build/Makefile
13310 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13313 ac_status=$?
13314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321
13322 { $as_echo "$as_me:$LINENO: result: yes" >&5
13323$as_echo "yes" >&6; }
13324
13325cat >>confdefs.h <<\_ACEOF
13326#define HAVE_BIO_RW_SYNC 1
13327_ACEOF
13328
13329
13330else
13331 $as_echo "$as_me: failed program was:" >&5
13332sed 's/^/| /' conftest.$ac_ext >&5
13333
13334 { $as_echo "$as_me:$LINENO: result: no" >&5
13335$as_echo "no" >&6; }
13336
13337
13338
13339fi
13340
13341 rm -Rf build
13342
13343
13344
13345
e70e591c
BB
13346 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
13347$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
13348
13349
13350cat confdefs.h - <<_ACEOF >conftest.c
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356
13357
13358 #include <linux/bio.h>
13359
13360int
13361main (void)
13362{
13363
79713039 13364 int flags __attribute__ ((unused));
e70e591c
BB
13365 flags = BIO_RW_SYNCIO;
13366
13367 ;
13368 return 0;
13369}
13370
13371_ACEOF
13372
13373
13374 rm -Rf build && mkdir -p build
13375 echo "obj-m := conftest.o" >build/Makefile
13376 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13384 ac_status=$?
13385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387
13388 { $as_echo "$as_me:$LINENO: result: yes" >&5
13389$as_echo "yes" >&6; }
13390
13391cat >>confdefs.h <<\_ACEOF
13392#define HAVE_BIO_RW_SYNCIO 1
13393_ACEOF
13394
13395
13396else
13397 $as_echo "$as_me: failed program was:" >&5
13398sed 's/^/| /' conftest.$ac_ext >&5
13399
13400 { $as_echo "$as_me:$LINENO: result: no" >&5
13401$as_echo "no" >&6; }
13402
13403
13404
13405fi
13406
13407 rm -Rf build
13408
13409
13410
13411
675de5aa
BB
13412 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13413$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13414
13415
13416cat confdefs.h - <<_ACEOF >conftest.c
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
13422
13423
13424 #include <linux/bio.h>
13425
13426int
13427main (void)
13428{
13429
79713039 13430 int flags __attribute__ ((unused));
675de5aa
BB
13431 flags = REQ_SYNC;
13432
13433 ;
13434 return 0;
13435}
13436
13437_ACEOF
13438
13439
13440 rm -Rf build && mkdir -p build
13441 echo "obj-m := conftest.o" >build/Makefile
13442 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13445 ac_status=$?
13446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453
13454 { $as_echo "$as_me:$LINENO: result: yes" >&5
13455$as_echo "yes" >&6; }
13456
13457cat >>confdefs.h <<\_ACEOF
13458#define HAVE_REQ_SYNC 1
13459_ACEOF
13460
13461
13462else
13463 $as_echo "$as_me: failed program was:" >&5
13464sed 's/^/| /' conftest.$ac_ext >&5
13465
13466 { $as_echo "$as_me:$LINENO: result: no" >&5
13467$as_echo "no" >&6; }
13468
13469
13470
13471fi
13472
13473 rm -Rf build
13474
13475
13476
13477
e70e591c
BB
13478 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13479$as_echo_n "checking whether blk_end_request() is available... " >&6; }
b9c59ec8
PS
13480 tmp_flags="$EXTRA_KCFLAGS"
13481 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13482
13483
13484cat confdefs.h - <<_ACEOF >conftest.c
13485/* confdefs.h. */
13486_ACEOF
13487cat confdefs.h >>conftest.$ac_ext
13488cat >>conftest.$ac_ext <<_ACEOF
13489/* end confdefs.h. */
13490
13491
13492 #include <linux/blkdev.h>
13493
13494int
13495main (void)
13496{
13497
13498 struct request *req = NULL;
13499 (void) blk_end_request(req, 0, 0);
13500
13501 ;
13502 return 0;
13503}
13504
13505_ACEOF
13506
13507
13508 rm -Rf build && mkdir -p build
13509 echo "obj-m := conftest.o" >build/Makefile
13510 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }; then
13521
13522 { $as_echo "$as_me:$LINENO: result: yes" >&5
13523$as_echo "yes" >&6; }
13524
13525cat >>confdefs.h <<\_ACEOF
13526#define HAVE_BLK_END_REQUEST 1
13527_ACEOF
13528
13529
13530else
13531 $as_echo "$as_me: failed program was:" >&5
13532sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 { $as_echo "$as_me:$LINENO: result: no" >&5
13535$as_echo "no" >&6; }
13536
13537
13538
13539fi
13540
13541 rm -Rf build
13542
13543
13544
13545 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13546$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13547
13548
13549cat confdefs.h - <<_ACEOF >conftest.c
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555
13556
13557 #include <linux/module.h>
13558 #include <linux/blkdev.h>
13559
13560 MODULE_LICENSE("CDDL");
13561
13562int
13563main (void)
13564{
13565
13566 struct request *req = NULL;
13567 (void) blk_end_request(req, 0, 0);
13568
13569 ;
13570 return 0;
13571}
13572
13573_ACEOF
13574
13575
13576 rm -Rf build && mkdir -p build
13577 echo "obj-m := conftest.o" >build/Makefile
13578 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13585 (eval $ac_try) 2>&5
13586 ac_status=$?
13587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589
13590 { $as_echo "$as_me:$LINENO: result: no" >&5
13591$as_echo "no" >&6; }
13592
13593else
13594 $as_echo "$as_me: failed program was:" >&5
13595sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 { $as_echo "$as_me:$LINENO: result: yes" >&5
13598$as_echo "yes" >&6; }
13599
13600cat >>confdefs.h <<\_ACEOF
13601#define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13602_ACEOF
13603
13604
13605
13606
13607fi
13608
13609 rm -Rf build
13610
13611
b9c59ec8 13612 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13613
13614
13615 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13616$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
b9c59ec8
PS
13617 tmp_flags="$EXTRA_KCFLAGS"
13618 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13619
13620
13621cat confdefs.h - <<_ACEOF >conftest.c
13622/* confdefs.h. */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
13626/* end confdefs.h. */
13627
13628
13629 #include <linux/blkdev.h>
13630
13631int
13632main (void)
13633{
13634
13635 struct request_queue *q = NULL;
13636 (void) blk_fetch_request(q);
13637
13638 ;
13639 return 0;
13640}
13641
13642_ACEOF
13643
13644
13645 rm -Rf build && mkdir -p build
13646 echo "obj-m := conftest.o" >build/Makefile
13647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658
13659 { $as_echo "$as_me:$LINENO: result: yes" >&5
13660$as_echo "yes" >&6; }
13661
13662cat >>confdefs.h <<\_ACEOF
13663#define HAVE_BLK_FETCH_REQUEST 1
13664_ACEOF
13665
13666
13667else
13668 $as_echo "$as_me: failed program was:" >&5
13669sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 { $as_echo "$as_me:$LINENO: result: no" >&5
13672$as_echo "no" >&6; }
13673
13674
13675
13676fi
13677
13678 rm -Rf build
13679
13680
b9c59ec8 13681 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13682
13683
13684 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13685$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
b9c59ec8
PS
13686 tmp_flags="$EXTRA_KCFLAGS"
13687 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13688
13689
13690cat confdefs.h - <<_ACEOF >conftest.c
13691/* confdefs.h. */
13692_ACEOF
13693cat confdefs.h >>conftest.$ac_ext
13694cat >>conftest.$ac_ext <<_ACEOF
13695/* end confdefs.h. */
13696
13697
13698 #include <linux/blkdev.h>
13699
13700int
13701main (void)
13702{
13703
13704 struct request_queue *q = NULL;
13705 struct request *req = NULL;
13706 blk_requeue_request(q, req);
13707
13708 ;
13709 return 0;
13710}
13711
13712_ACEOF
13713
13714
13715 rm -Rf build && mkdir -p build
13716 echo "obj-m := conftest.o" >build/Makefile
13717 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
13728
13729 { $as_echo "$as_me:$LINENO: result: yes" >&5
13730$as_echo "yes" >&6; }
13731
13732cat >>confdefs.h <<\_ACEOF
13733#define HAVE_BLK_REQUEUE_REQUEST 1
13734_ACEOF
13735
13736
13737else
13738 $as_echo "$as_me: failed program was:" >&5
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 { $as_echo "$as_me:$LINENO: result: no" >&5
13742$as_echo "no" >&6; }
13743
13744
13745
13746fi
13747
13748 rm -Rf build
13749
13750
b9c59ec8 13751 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13752
13753
13754 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13755$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
b9c59ec8
PS
13756 tmp_flags="$EXTRA_KCFLAGS"
13757 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13758
13759
13760cat confdefs.h - <<_ACEOF >conftest.c
13761/* confdefs.h. */
13762_ACEOF
13763cat confdefs.h >>conftest.$ac_ext
13764cat >>conftest.$ac_ext <<_ACEOF
13765/* end confdefs.h. */
13766
13767
13768 #include <linux/blkdev.h>
13769
13770int
13771main (void)
13772{
13773
13774 struct request *req = NULL;
13775 (void) blk_rq_bytes(req);
13776
13777 ;
13778 return 0;
13779}
13780
13781_ACEOF
13782
13783
13784 rm -Rf build && mkdir -p build
13785 echo "obj-m := conftest.o" >build/Makefile
13786 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797
13798 { $as_echo "$as_me:$LINENO: result: yes" >&5
13799$as_echo "yes" >&6; }
13800
13801cat >>confdefs.h <<\_ACEOF
13802#define HAVE_BLK_RQ_BYTES 1
13803_ACEOF
13804
13805
13806else
13807 $as_echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810 { $as_echo "$as_me:$LINENO: result: no" >&5
13811$as_echo "no" >&6; }
13812
13813
13814
13815fi
13816
13817 rm -Rf build
13818
13819
13820
13821 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13822$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13823
13824
13825cat confdefs.h - <<_ACEOF >conftest.c
13826/* confdefs.h. */
13827_ACEOF
13828cat confdefs.h >>conftest.$ac_ext
13829cat >>conftest.$ac_ext <<_ACEOF
13830/* end confdefs.h. */
13831
13832
13833 #include <linux/module.h>
13834 #include <linux/blkdev.h>
13835
13836 MODULE_LICENSE("CDDL");
13837
13838int
13839main (void)
13840{
13841
13842 struct request *req = NULL;
13843 (void) blk_rq_bytes(req);
13844
13845 ;
13846 return 0;
13847}
13848
13849_ACEOF
13850
13851
13852 rm -Rf build && mkdir -p build
13853 echo "obj-m := conftest.o" >build/Makefile
13854 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865
13866 { $as_echo "$as_me:$LINENO: result: no" >&5
13867$as_echo "no" >&6; }
13868
13869else
13870 $as_echo "$as_me: failed program was:" >&5
13871sed 's/^/| /' conftest.$ac_ext >&5
13872
13873 { $as_echo "$as_me:$LINENO: result: yes" >&5
13874$as_echo "yes" >&6; }
13875
13876cat >>confdefs.h <<\_ACEOF
13877#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13878_ACEOF
13879
13880
13881
13882
13883fi
13884
13885 rm -Rf build
13886
13887
b9c59ec8 13888 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13889
13890
13891 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13892$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
b9c59ec8
PS
13893 tmp_flags="$EXTRA_KCFLAGS"
13894 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13895
13896
13897cat confdefs.h - <<_ACEOF >conftest.c
13898/* confdefs.h. */
13899_ACEOF
13900cat confdefs.h >>conftest.$ac_ext
13901cat >>conftest.$ac_ext <<_ACEOF
13902/* end confdefs.h. */
13903
13904
13905 #include <linux/blkdev.h>
13906
13907int
13908main (void)
13909{
13910
13911 struct request *req = NULL;
13912 (void) blk_rq_pos(req);
13913
13914 ;
13915 return 0;
13916}
13917
13918_ACEOF
13919
13920
13921 rm -Rf build && mkdir -p build
13922 echo "obj-m := conftest.o" >build/Makefile
13923 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934
13935 { $as_echo "$as_me:$LINENO: result: yes" >&5
13936$as_echo "yes" >&6; }
13937
13938cat >>confdefs.h <<\_ACEOF
13939#define HAVE_BLK_RQ_POS 1
13940_ACEOF
13941
13942
13943else
13944 $as_echo "$as_me: failed program was:" >&5
13945sed 's/^/| /' conftest.$ac_ext >&5
13946
13947 { $as_echo "$as_me:$LINENO: result: no" >&5
13948$as_echo "no" >&6; }
13949
13950
13951
13952fi
13953
13954 rm -Rf build
13955
13956
b9c59ec8 13957 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
13958
13959
13960 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13961$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
b9c59ec8
PS
13962 tmp_flags="$EXTRA_KCFLAGS"
13963 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
13964
13965
13966cat confdefs.h - <<_ACEOF >conftest.c
13967/* confdefs.h. */
13968_ACEOF
13969cat confdefs.h >>conftest.$ac_ext
13970cat >>conftest.$ac_ext <<_ACEOF
13971/* end confdefs.h. */
13972
13973
13974 #include <linux/blkdev.h>
13975
13976int
13977main (void)
13978{
13979
13980 struct request *req = NULL;
13981 (void) blk_rq_sectors(req);
13982
13983 ;
13984 return 0;
13985}
13986
13987_ACEOF
13988
13989
13990 rm -Rf build && mkdir -p build
13991 echo "obj-m := conftest.o" >build/Makefile
13992 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003
14004 { $as_echo "$as_me:$LINENO: result: yes" >&5
14005$as_echo "yes" >&6; }
14006
14007cat >>confdefs.h <<\_ACEOF
14008#define HAVE_BLK_RQ_SECTORS 1
14009_ACEOF
14010
14011
14012else
14013 $as_echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 { $as_echo "$as_me:$LINENO: result: no" >&5
14017$as_echo "no" >&6; }
14018
14019
14020
14021fi
14022
14023 rm -Rf build
14024
14025
b9c59ec8 14026 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14027
14028
14029 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
14030$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
b9c59ec8
PS
14031 tmp_flags="$EXTRA_KCFLAGS"
14032 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14033
14034
14035cat confdefs.h - <<_ACEOF >conftest.c
14036/* confdefs.h. */
14037_ACEOF
14038cat confdefs.h >>conftest.$ac_ext
14039cat >>conftest.$ac_ext <<_ACEOF
14040/* end confdefs.h. */
14041
14042
14043 #include <linux/blkdev.h>
14044
14045int
14046main (void)
14047{
14048
14049 struct gendisk *disk = NULL;
14050 (void) get_disk_ro(disk);
14051
14052 ;
14053 return 0;
14054}
14055
14056_ACEOF
14057
14058
14059 rm -Rf build && mkdir -p build
14060 echo "obj-m := conftest.o" >build/Makefile
14061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072
14073 { $as_echo "$as_me:$LINENO: result: yes" >&5
14074$as_echo "yes" >&6; }
14075
14076cat >>confdefs.h <<\_ACEOF
14077#define HAVE_GET_DISK_RO 1
14078_ACEOF
14079
14080
14081else
14082 $as_echo "$as_me: failed program was:" >&5
14083sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 { $as_echo "$as_me:$LINENO: result: no" >&5
14086$as_echo "no" >&6; }
14087
14088
14089
14090fi
14091
14092 rm -Rf build
14093
14094
b9c59ec8 14095 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14096
14097
14098 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
14099$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
b9c59ec8
PS
14100 tmp_flags="$EXTRA_KCFLAGS"
14101 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14102
14103
14104cat confdefs.h - <<_ACEOF >conftest.c
14105/* confdefs.h. */
14106_ACEOF
14107cat confdefs.h >>conftest.$ac_ext
14108cat >>conftest.$ac_ext <<_ACEOF
14109/* end confdefs.h. */
14110
14111
14112 #include <linux/blkdev.h>
14113
14114int
14115main (void)
14116{
14117
14118 struct request *req = NULL;
14119 (void) rq_is_sync(req);
14120
14121 ;
14122 return 0;
14123}
14124
14125_ACEOF
14126
14127
14128 rm -Rf build && mkdir -p build
14129 echo "obj-m := conftest.o" >build/Makefile
14130 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141
14142 { $as_echo "$as_me:$LINENO: result: yes" >&5
14143$as_echo "yes" >&6; }
14144
14145cat >>confdefs.h <<\_ACEOF
14146#define HAVE_RQ_IS_SYNC 1
14147_ACEOF
14148
14149
14150else
14151 $as_echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154 { $as_echo "$as_me:$LINENO: result: no" >&5
14155$as_echo "no" >&6; }
14156
14157
14158
14159fi
14160
14161 rm -Rf build
14162
14163
b9c59ec8 14164 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
14165
14166
14167 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
14168$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
b9c59ec8
PS
14169 tmp_flags="$EXTRA_KCFLAGS"
14170 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
14171
14172
14173cat confdefs.h - <<_ACEOF >conftest.c
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179
14180
14181 #include <linux/blkdev.h>
14182
14183int
14184main (void)
14185{
14186
14187 struct bio_vec *bv;
14188 struct req_iterator iter;
14189 struct request *req = NULL;
14190 rq_for_each_segment(bv, req, iter) { }
14191
14192 ;
14193 return 0;
14194}
14195
14196_ACEOF
14197
14198
14199 rm -Rf build && mkdir -p build
14200 echo "obj-m := conftest.o" >build/Makefile
14201 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212
14213 { $as_echo "$as_me:$LINENO: result: yes" >&5
14214$as_echo "yes" >&6; }
14215
14216cat >>confdefs.h <<\_ACEOF
14217#define HAVE_RQ_FOR_EACH_SEGMENT 1
14218_ACEOF
14219
14220
14221else
14222 $as_echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 { $as_echo "$as_me:$LINENO: result: no" >&5
14226$as_echo "no" >&6; }
14227
14228
14229
777d4af8
BB
14230fi
14231
14232 rm -Rf build
14233
14234
b9c59ec8 14235 EXTRA_KCFLAGS="$tmp_flags"
777d4af8
BB
14236
14237 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
14238$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14239
14240
14241cat confdefs.h - <<_ACEOF >conftest.c
14242/* confdefs.h. */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
14246/* end confdefs.h. */
14247
14248
14249 #include <linux/fs.h>
14250 #include <linux/xattr.h>
14251
14252 const struct xattr_handler xattr_test_handler = {
14253 .prefix = "test",
14254 .get = NULL,
14255 .set = NULL,
14256 };
14257
14258 const struct xattr_handler *xattr_handlers[] = {
14259 &xattr_test_handler,
14260 };
14261
14262int
14263main (void)
14264{
14265
79713039 14266 struct super_block sb __attribute__ ((unused));
777d4af8
BB
14267
14268 sb.s_xattr = xattr_handlers;
14269
14270 ;
14271 return 0;
14272}
14273
14274_ACEOF
14275
14276
14277 rm -Rf build && mkdir -p build
14278 echo "obj-m := conftest.o" >build/Makefile
14279 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290
14291 { $as_echo "$as_me:$LINENO: result: yes" >&5
14292$as_echo "yes" >&6; }
14293
14294cat >>confdefs.h <<\_ACEOF
14295#define HAVE_CONST_XATTR_HANDLER 1
14296_ACEOF
14297
14298
14299else
14300 $as_echo "$as_me: failed program was:" >&5
14301sed 's/^/| /' conftest.$ac_ext >&5
14302
14303 { $as_echo "$as_me:$LINENO: result: no" >&5
14304$as_echo "no" >&6; }
14305
14306
14307
e70e591c
BB
14308fi
14309
14310 rm -Rf build
14311
14312
14313
14314
f9637c6c
BB
14315 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
14316$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14317
14318
14319cat confdefs.h - <<_ACEOF >conftest.c
14320/* confdefs.h. */
14321_ACEOF
14322cat confdefs.h >>conftest.$ac_ext
14323cat >>conftest.$ac_ext <<_ACEOF
14324/* end confdefs.h. */
14325
14326
14327 #include <linux/xattr.h>
14328
14329int
14330main (void)
14331{
14332
14333 int (*get)(struct dentry *dentry, const char *name,
14334 void *buffer, size_t size, int handler_flags) = NULL;
79713039 14335 struct xattr_handler xops __attribute__ ((unused));
f9637c6c
BB
14336
14337 xops.get = get;
14338
14339 ;
14340 return 0;
14341}
14342
14343_ACEOF
14344
14345
14346 rm -Rf build && mkdir -p build
14347 echo "obj-m := conftest.o" >build/Makefile
14348 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14351 ac_status=$?
14352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359
14360 { $as_echo "$as_me:$LINENO: result: yes" >&5
14361$as_echo "yes" >&6; }
14362
14363cat >>confdefs.h <<\_ACEOF
14364#define HAVE_DENTRY_XATTR_GET 1
14365_ACEOF
14366
14367
14368else
14369 $as_echo "$as_me: failed program was:" >&5
14370sed 's/^/| /' conftest.$ac_ext >&5
14371
14372 { $as_echo "$as_me:$LINENO: result: no" >&5
14373$as_echo "no" >&6; }
14374
14375
14376
14377fi
14378
14379 rm -Rf build
14380
14381
14382
14383
14384 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
14385$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14386
14387
14388cat confdefs.h - <<_ACEOF >conftest.c
14389/* confdefs.h. */
14390_ACEOF
14391cat confdefs.h >>conftest.$ac_ext
14392cat >>conftest.$ac_ext <<_ACEOF
14393/* end confdefs.h. */
14394
14395
14396 #include <linux/xattr.h>
14397
14398int
14399main (void)
14400{
14401
14402 int (*set)(struct dentry *dentry, const char *name,
14403 const void *buffer, size_t size, int flags,
14404 int handler_flags) = NULL;
79713039 14405 struct xattr_handler xops __attribute__ ((unused));
f9637c6c
BB
14406
14407 xops.set = set;
14408
14409 ;
14410 return 0;
14411}
14412
14413_ACEOF
14414
14415
14416 rm -Rf build && mkdir -p build
14417 echo "obj-m := conftest.o" >build/Makefile
14418 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14426 ac_status=$?
14427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429
14430 { $as_echo "$as_me:$LINENO: result: yes" >&5
14431$as_echo "yes" >&6; }
14432
14433cat >>confdefs.h <<\_ACEOF
14434#define HAVE_DENTRY_XATTR_SET 1
14435_ACEOF
14436
14437
14438else
14439 $as_echo "$as_me: failed program was:" >&5
14440sed 's/^/| /' conftest.$ac_ext >&5
14441
14442 { $as_echo "$as_me:$LINENO: result: no" >&5
14443$as_echo "no" >&6; }
14444
14445
14446
14447fi
14448
14449 rm -Rf build
14450
14451
14452
14453
adcd70bd
BB
14454 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
14455$as_echo_n "checking whether fops->fsync() wants... " >&6; }
14456
7268e1be
BB
14457
14458
14459cat confdefs.h - <<_ACEOF >conftest.c
14460/* confdefs.h. */
14461_ACEOF
14462cat confdefs.h >>conftest.$ac_ext
14463cat >>conftest.$ac_ext <<_ACEOF
14464/* end confdefs.h. */
14465
14466
14467 #include <linux/fs.h>
14468
14469int
14470main (void)
14471{
14472
adcd70bd 14473 int (*fsync) (struct file *, struct dentry *, int) = NULL;
79713039 14474 struct file_operations fops __attribute__ ((unused));
7268e1be
BB
14475
14476 fops.fsync = fsync;
14477
14478 ;
14479 return 0;
14480}
14481
14482_ACEOF
14483
14484
14485 rm -Rf build && mkdir -p build
14486 echo "obj-m := conftest.o" >build/Makefile
14487 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14490 ac_status=$?
14491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498
adcd70bd
BB
14499 { $as_echo "$as_me:$LINENO: result: dentry" >&5
14500$as_echo "dentry" >&6; }
7268e1be
BB
14501
14502cat >>confdefs.h <<\_ACEOF
adcd70bd
BB
14503#define HAVE_FSYNC_WITH_DENTRY 1
14504_ACEOF
14505
14506
14507else
14508 $as_echo "$as_me: failed program was:" >&5
14509sed 's/^/| /' conftest.$ac_ext >&5
14510
14511
14512
14513
14514fi
14515
14516 rm -Rf build
14517
14518
14519
14520
14521
14522
14523cat confdefs.h - <<_ACEOF >conftest.c
14524/* confdefs.h. */
14525_ACEOF
14526cat confdefs.h >>conftest.$ac_ext
14527cat >>conftest.$ac_ext <<_ACEOF
14528/* end confdefs.h. */
14529
14530
14531 #include <linux/fs.h>
14532
14533int
14534main (void)
14535{
14536
14537 int (*fsync) (struct file *, int) = NULL;
14538 struct file_operations fops __attribute__ ((unused));
14539
14540 fops.fsync = fsync;
14541
14542 ;
14543 return 0;
14544}
14545
14546_ACEOF
14547
14548
14549 rm -Rf build && mkdir -p build
14550 echo "obj-m := conftest.o" >build/Makefile
14551 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562
14563 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
14564$as_echo "no dentry" >&6; }
14565
14566cat >>confdefs.h <<\_ACEOF
14567#define HAVE_FSYNC_WITHOUT_DENTRY 1
7268e1be
BB
14568_ACEOF
14569
14570
14571else
14572 $as_echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
7268e1be
BB
14575
14576
14577
14578fi
14579
14580 rm -Rf build
14581
14582
14583
14584
adcd70bd
BB
14585
14586
14587cat confdefs.h - <<_ACEOF >conftest.c
14588/* confdefs.h. */
14589_ACEOF
14590cat confdefs.h >>conftest.$ac_ext
14591cat >>conftest.$ac_ext <<_ACEOF
14592/* end confdefs.h. */
14593
14594
14595 #include <linux/fs.h>
14596
14597int
14598main (void)
14599{
14600
14601 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
14602 struct file_operations fops __attribute__ ((unused));
14603
14604 fops.fsync = fsync;
14605
14606 ;
14607 return 0;
14608}
14609
14610_ACEOF
14611
14612
14613 rm -Rf build && mkdir -p build
14614 echo "obj-m := conftest.o" >build/Makefile
14615 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14623 ac_status=$?
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626
14627 { $as_echo "$as_me:$LINENO: result: range" >&5
14628$as_echo "range" >&6; }
14629
14630cat >>confdefs.h <<\_ACEOF
14631#define HAVE_FSYNC_RANGE 1
14632_ACEOF
14633
14634
14635else
14636 $as_echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
14639
14640
14641
14642fi
14643
14644 rm -Rf build
14645
14646
14647
14648
14649
2c395def
BB
14650 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
14651$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14652
14653
14654cat confdefs.h - <<_ACEOF >conftest.c
14655/* confdefs.h. */
14656_ACEOF
14657cat confdefs.h >>conftest.$ac_ext
14658cat >>conftest.$ac_ext <<_ACEOF
14659/* end confdefs.h. */
14660
14661
14662 #include <linux/fs.h>
14663
14664int
14665main (void)
14666{
14667
14668 void (*evict_inode) (struct inode *) = NULL;
ddd052aa
BB
14669 struct super_operations sops __attribute__ ((unused)) = {
14670 .evict_inode = evict_inode,
14671 };
2c395def
BB
14672
14673 ;
14674 return 0;
14675}
14676
14677_ACEOF
14678
14679
14680 rm -Rf build && mkdir -p build
14681 echo "obj-m := conftest.o" >build/Makefile
14682 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14684 (eval $ac_try) 2>&5
14685 ac_status=$?
14686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693
14694 { $as_echo "$as_me:$LINENO: result: yes" >&5
14695$as_echo "yes" >&6; }
14696
14697cat >>confdefs.h <<\_ACEOF
14698#define HAVE_EVICT_INODE 1
14699_ACEOF
14700
14701
14702else
14703 $as_echo "$as_me: failed program was:" >&5
14704sed 's/^/| /' conftest.$ac_ext >&5
14705
14706 { $as_echo "$as_me:$LINENO: result: no" >&5
14707$as_echo "no" >&6; }
14708
14709
14710
14711fi
14712
14713 rm -Rf build
14714
14715
14716
14717
bdf4328b
BB
14718 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
14719$as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
14720 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
14721 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14722 rc=$?
14723 if test $rc -ne 0; then
8366cd6a 14724
bdf4328b
BB
14725 export=0
14726 for file in fs/inode.c; do
14727 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
14728 rc=$?
8366cd6a
PS
14729 if test $rc -eq 0; then
14730
14731 export=1
14732 break;
14733
14734fi
14735
bdf4328b
BB
14736 done
14737 if test $export -eq 0; then
8366cd6a 14738
bdf4328b
BB
14739 { $as_echo "$as_me:$LINENO: result: no" >&5
14740$as_echo "no" >&6; }
14741
8366cd6a
PS
14742
14743else
14744
bdf4328b
BB
14745 { $as_echo "$as_me:$LINENO: result: yes" >&5
14746$as_echo "yes" >&6; }
14747
14748cat >>confdefs.h <<\_ACEOF
14749#define HAVE_INSERT_INODE_LOCKED 1
14750_ACEOF
14751
8366cd6a
PS
14752
14753fi
14754
14755
14756else
14757
bdf4328b
BB
14758 { $as_echo "$as_me:$LINENO: result: yes" >&5
14759$as_echo "yes" >&6; }
14760
14761cat >>confdefs.h <<\_ACEOF
14762#define HAVE_INSERT_INODE_LOCKED 1
14763_ACEOF
14764
8366cd6a
PS
14765
14766fi
14767
bdf4328b
BB
14768
14769
14770
055656d4
GB
14771 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
14772$as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
14773 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
14774 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14775 rc=$?
14776 if test $rc -ne 0; then
8366cd6a 14777
055656d4
GB
14778 export=0
14779 for file in fs/dcache.c; do
14780 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
14781 rc=$?
8366cd6a
PS
14782 if test $rc -eq 0; then
14783
14784 export=1
14785 break;
14786
14787fi
14788
055656d4
GB
14789 done
14790 if test $export -eq 0; then
8366cd6a 14791
055656d4
GB
14792 { $as_echo "$as_me:$LINENO: result: no" >&5
14793$as_echo "no" >&6; }
14794
8366cd6a
PS
14795
14796else
14797
055656d4
GB
14798 { $as_echo "$as_me:$LINENO: result: yes" >&5
14799$as_echo "yes" >&6; }
14800
14801cat >>confdefs.h <<\_ACEOF
14802#define HAVE_D_OBTAIN_ALIAS 1
14803_ACEOF
14804
8366cd6a
PS
14805
14806fi
14807
14808
14809else
14810
055656d4
GB
14811 { $as_echo "$as_me:$LINENO: result: yes" >&5
14812$as_echo "yes" >&6; }
14813
14814cat >>confdefs.h <<\_ACEOF
14815#define HAVE_D_OBTAIN_ALIAS 1
14816_ACEOF
14817
8366cd6a
PS
14818
14819fi
14820
055656d4
GB
14821
14822
14823
df554c14
BB
14824 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
14825$as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
14826 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
14827 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14828 rc=$?
14829 if test $rc -ne 0; then
8366cd6a 14830
df554c14
BB
14831 export=0
14832 for file in fs/block_dev.c; do
14833 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
14834 rc=$?
8366cd6a
PS
14835 if test $rc -eq 0; then
14836
14837 export=1
14838 break;
14839
14840fi
14841
df554c14
BB
14842 done
14843 if test $export -eq 0; then
8366cd6a 14844
df554c14
BB
14845 { $as_echo "$as_me:$LINENO: result: no" >&5
14846$as_echo "no" >&6; }
14847
8366cd6a
PS
14848
14849else
14850
df554c14
BB
14851 { $as_echo "$as_me:$LINENO: result: yes" >&5
14852$as_echo "yes" >&6; }
14853
14854cat >>confdefs.h <<\_ACEOF
14855#define HAVE_CHECK_DISK_SIZE_CHANGE 1
14856_ACEOF
14857
8366cd6a
PS
14858
14859fi
14860
14861
14862else
14863
df554c14
BB
14864 { $as_echo "$as_me:$LINENO: result: yes" >&5
14865$as_echo "yes" >&6; }
14866
14867cat >>confdefs.h <<\_ACEOF
14868#define HAVE_CHECK_DISK_SIZE_CHANGE 1
14869_ACEOF
14870
8366cd6a
PS
14871
14872fi
14873
df554c14
BB
14874
14875
14876
b3129792
PJ
14877 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
14878$as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
14879 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
14880 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
14881 rc=$?
14882 if test $rc -ne 0; then
8366cd6a 14883
b3129792
PJ
14884 export=0
14885 for file in mm/truncate.c; do
14886 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
14887 rc=$?
8366cd6a
PS
14888 if test $rc -eq 0; then
14889
14890 export=1
14891 break;
14892
14893fi
14894
b3129792
PJ
14895 done
14896 if test $export -eq 0; then
8366cd6a 14897
b3129792
PJ
14898 { $as_echo "$as_me:$LINENO: result: no" >&5
14899$as_echo "no" >&6; }
14900
8366cd6a
PS
14901
14902else
14903
b3129792
PJ
14904 { $as_echo "$as_me:$LINENO: result: yes" >&5
14905$as_echo "yes" >&6; }
14906
14907cat >>confdefs.h <<\_ACEOF
14908#define HAVE_TRUNCATE_SETSIZE 1
14909_ACEOF
14910
8366cd6a
PS
14911
14912fi
14913
14914
14915else
14916
b3129792
PJ
14917 { $as_echo "$as_me:$LINENO: result: yes" >&5
14918$as_echo "yes" >&6; }
14919
14920cat >>confdefs.h <<\_ACEOF
14921#define HAVE_TRUNCATE_SETSIZE 1
14922_ACEOF
14923
8366cd6a
PS
14924
14925fi
14926
b3129792
PJ
14927
14928
14929
5c03efc3
BB
14930 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
14931$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
14932 tmp_flags="$EXTRA_KCFLAGS"
14933 EXTRA_KCFLAGS="-Werror"
14934
14935
14936cat confdefs.h - <<_ACEOF >conftest.c
14937/* confdefs.h. */
14938_ACEOF
14939cat confdefs.h >>conftest.$ac_ext
14940cat >>conftest.$ac_ext <<_ACEOF
14941/* end confdefs.h. */
14942
14943
14944 #include <linux/security.h>
14945
14946int
14947main (void)
14948{
14949
14950 security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL);
14951
14952 ;
14953 return 0;
14954}
14955
14956_ACEOF
14957
14958
14959 rm -Rf build && mkdir -p build
14960 echo "obj-m := conftest.o" >build/Makefile
14961 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14964 ac_status=$?
14965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972
14973 { $as_echo "$as_me:$LINENO: result: yes" >&5
14974$as_echo "yes" >&6; }
14975
14976cat >>confdefs.h <<\_ACEOF
14977#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
14978_ACEOF
14979
14980
14981else
14982 $as_echo "$as_me: failed program was:" >&5
14983sed 's/^/| /' conftest.$ac_ext >&5
14984
14985 { $as_echo "$as_me:$LINENO: result: no" >&5
14986$as_echo "no" >&6; }
14987
14988
14989
14990fi
14991
14992 rm -Rf build
14993
14994
14995 EXTRA_KCFLAGS="$tmp_flags"
14996
14997
2cf7f52b
BB
14998 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
14999$as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
15000 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
15001 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15002 rc=$?
15003 if test $rc -ne 0; then
8366cd6a 15004
2cf7f52b
BB
15005 export=0
15006 for file in fs/super.c; do
15007 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
15008 rc=$?
8366cd6a
PS
15009 if test $rc -eq 0; then
15010
15011 export=1
15012 break;
15013
15014fi
15015
2cf7f52b
BB
15016 done
15017 if test $export -eq 0; then
8366cd6a 15018
2cf7f52b
BB
15019 { $as_echo "$as_me:$LINENO: result: no" >&5
15020$as_echo "no" >&6; }
15021
8366cd6a
PS
15022
15023else
15024
2cf7f52b
BB
15025 { $as_echo "$as_me:$LINENO: result: yes" >&5
15026$as_echo "yes" >&6; }
15027
15028cat >>confdefs.h <<\_ACEOF
15029#define HAVE_MOUNT_NODEV 1
15030_ACEOF
15031
8366cd6a
PS
15032
15033fi
15034
15035
15036else
15037
2cf7f52b
BB
15038 { $as_echo "$as_me:$LINENO: result: yes" >&5
15039$as_echo "yes" >&6; }
15040
15041cat >>confdefs.h <<\_ACEOF
15042#define HAVE_MOUNT_NODEV 1
15043_ACEOF
15044
8366cd6a
PS
15045
15046fi
15047
2cf7f52b
BB
15048
15049
15050
76659dc1
BB
15051 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
15052$as_echo_n "checking whether super_block has s_bdi... " >&6; }
15053
15054
15055cat confdefs.h - <<_ACEOF >conftest.c
15056/* confdefs.h. */
15057_ACEOF
15058cat confdefs.h >>conftest.$ac_ext
15059cat >>conftest.$ac_ext <<_ACEOF
15060/* end confdefs.h. */
15061
15062
15063 #include <linux/fs.h>
15064
15065int
15066main (void)
15067{
15068
15069 struct super_block sb __attribute__ ((unused));
15070 sb.s_bdi = NULL;
15071
15072 ;
15073 return 0;
15074}
15075
15076_ACEOF
15077
15078
15079 rm -Rf build && mkdir -p build
15080 echo "obj-m := conftest.o" >build/Makefile
15081 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15089 ac_status=$?
15090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092
15093 { $as_echo "$as_me:$LINENO: result: yes" >&5
15094$as_echo "yes" >&6; }
15095
15096cat >>confdefs.h <<\_ACEOF
15097#define HAVE_BDI 1
15098_ACEOF
15099
15100
15101else
15102 $as_echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 { $as_echo "$as_me:$LINENO: result: no" >&5
15106$as_echo "no" >&6; }
15107
15108
15109
15110fi
15111
15112 rm -Rf build
15113
15114
15115
15116
5547c2f1
BB
15117 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
15118$as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
15119 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
15120 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
15121 rc=$?
15122 if test $rc -ne 0; then
15123
15124 export=0
15125 for file in mm/backing-dev.c; do
15126 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
15127 rc=$?
15128 if test $rc -eq 0; then
15129
15130 export=1
15131 break;
15132
15133fi
15134
15135 done
15136 if test $export -eq 0; then
15137
15138 { $as_echo "$as_me:$LINENO: result: no" >&5
15139$as_echo "no" >&6; }
15140
15141
15142else
15143
15144 { $as_echo "$as_me:$LINENO: result: yes" >&5
15145$as_echo "yes" >&6; }
15146
15147cat >>confdefs.h <<\_ACEOF
15148#define HAVE_BDI_SETUP_AND_REGISTER 1
15149_ACEOF
15150
15151
15152fi
15153
15154
15155else
15156
15157 { $as_echo "$as_me:$LINENO: result: yes" >&5
15158$as_echo "yes" >&6; }
15159
15160cat >>confdefs.h <<\_ACEOF
15161#define HAVE_BDI_SETUP_AND_REGISTER 1
15162_ACEOF
15163
15164
15165fi
15166
15167
15168
15169
e70e591c 15170 if test "$LINUX_OBJ" != "$LINUX"; then
8366cd6a 15171
e70e591c 15172 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
8366cd6a
PS
15173
15174fi
15175
e70e591c
BB
15176
15177
15178
8a7e1cee 15179 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
12c1acde 15180 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
6283f55e
BB
15181 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
15182
15183
e70e591c
BB
15184 ;;
15185 user)
15186
de0a1c09
BB
15187
15188# Check whether --with-udevdir was given.
15189if test "${with_udevdir+set}" = set; then
15190 withval=$with_udevdir; udevdir=$withval
15191else
15192 udevdir='${exec_prefix}/lib/udev'
15193fi
15194
15195
15196
15197# Check whether --with-udevruledir was given.
15198if test "${with_udevruledir+set}" = set; then
15199 withval=$with_udevruledir; udevruledir=$withval
15200else
15201 udevruledir='${udevdir}/rules.d'
15202fi
15203
15204
15205
15206
15207
15208
e70e591c
BB
15209 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
15210$as_echo_n "checking for target asm dir... " >&6; }
15211 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
15212
15213 case $TARGET_ARCH in
15214 i386|x86_64)
15215 TARGET_ASM_DIR=asm-${TARGET_ARCH}
15216 ;;
15217 *)
15218 TARGET_ASM_DIR=asm-generic
15219 ;;
15220 esac
15221
15222
15223 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
15224$as_echo "$TARGET_ASM_DIR" >&6; }
15225
15226
e70e591c
BB
15227 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
15228$as_echo_n "checking for ioctl()... " >&6; }
15229 cat >conftest.$ac_ext <<_ACEOF
15230/* confdefs.h. */
15231_ACEOF
15232cat confdefs.h >>conftest.$ac_ext
15233cat >>conftest.$ac_ext <<_ACEOF
15234/* end confdefs.h. */
15235#include <unistd.h>
15236
15237_ACEOF
15238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15239 $EGREP "ioctl" >/dev/null 2>&1; then
15240 is_unistd=yes
15241else
15242 is_unistd=no
15243fi
15244rm -f conftest*
15245
15246 cat >conftest.$ac_ext <<_ACEOF
15247/* confdefs.h. */
15248_ACEOF
15249cat confdefs.h >>conftest.$ac_ext
15250cat >>conftest.$ac_ext <<_ACEOF
15251/* end confdefs.h. */
15252#include <sys/ioctl.h>
15253
15254_ACEOF
15255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15256 $EGREP "ioctl" >/dev/null 2>&1; then
15257 is_sys_ioctl=yes
15258else
15259 is_sys_ioctl=no
15260fi
15261rm -f conftest*
15262
15263 cat >conftest.$ac_ext <<_ACEOF
15264/* confdefs.h. */
15265_ACEOF
15266cat confdefs.h >>conftest.$ac_ext
15267cat >>conftest.$ac_ext <<_ACEOF
15268/* end confdefs.h. */
15269#include <stropts.h>
15270
15271_ACEOF
15272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15273 $EGREP "ioctl" >/dev/null 2>&1; then
15274 is_stropts=yes
15275else
15276 is_stropts=no
15277fi
15278rm -f conftest*
15279
15280
15281 if test $is_unistd = yes; then
15282 result=unistd.h
15283
15284cat >>confdefs.h <<\_ACEOF
15285#define HAVE_IOCTL_IN_UNISTD_H 1
15286_ACEOF
15287
15288 else
15289
15290 if test $is_sys_ioctl = yes; then
15291 result=sys/ioctl.h
15292
15293cat >>confdefs.h <<\_ACEOF
15294#define HAVE_IOCTL_IN_SYS_IOCTL_H 1
15295_ACEOF
15296
15297 elif test $is_stropts = yes; then
15298
15299cat >>confdefs.h <<\_ACEOF
15300#define HAVE_IOCTL_IN_STROPTS_H 1
15301_ACEOF
15302
15303 else
15304 result=no
15305 fi
15306 fi
15307
15308 if test $result = no; then
15309 { $as_echo "$as_me:$LINENO: result: no" >&5
15310$as_echo "no" >&6; }
15311 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
15312$as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
15313 { (exit 1); exit 1; }; }
15314 else
15315 { $as_echo "$as_me:$LINENO: result: yes" >&5
15316$as_echo "yes" >&6; }
15317 fi
15318
15319
15320 ZLIB=
15321
15322 if test "${ac_cv_header_zlib_h+set}" = set; then
15323 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15324$as_echo_n "checking for zlib.h... " >&6; }
15325if test "${ac_cv_header_zlib_h+set}" = set; then
15326 $as_echo_n "(cached) " >&6
15327fi
15328{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15329$as_echo "$ac_cv_header_zlib_h" >&6; }
15330else
15331 # Is the header compilable?
15332{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
15333$as_echo_n "checking zlib.h usability... " >&6; }
15334cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340$ac_includes_default
15341#include <zlib.h>
15342_ACEOF
15343rm -f conftest.$ac_objext
15344if { (ac_try="$ac_compile"
15345case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348esac
15349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15350$as_echo "$ac_try_echo") >&5
15351 (eval "$ac_compile") 2>conftest.er1
15352 ac_status=$?
15353 grep -v '^ *+' conftest.er1 >conftest.err
15354 rm -f conftest.er1
15355 cat conftest.err >&5
15356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } && {
15358 test -z "$ac_c_werror_flag" ||
15359 test ! -s conftest.err
15360 } && test -s conftest.$ac_objext; then
15361 ac_header_compiler=yes
15362else
15363 $as_echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 ac_header_compiler=no
15367fi
15368
15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15371$as_echo "$ac_header_compiler" >&6; }
15372
15373# Is the header present?
15374{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
15375$as_echo_n "checking zlib.h presence... " >&6; }
15376cat >conftest.$ac_ext <<_ACEOF
15377/* confdefs.h. */
15378_ACEOF
15379cat confdefs.h >>conftest.$ac_ext
15380cat >>conftest.$ac_ext <<_ACEOF
15381/* end confdefs.h. */
15382#include <zlib.h>
15383_ACEOF
15384if { (ac_try="$ac_cpp conftest.$ac_ext"
15385case "(($ac_try" in
15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387 *) ac_try_echo=$ac_try;;
15388esac
15389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15390$as_echo "$ac_try_echo") >&5
15391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15392 ac_status=$?
15393 grep -v '^ *+' conftest.er1 >conftest.err
15394 rm -f conftest.er1
15395 cat conftest.err >&5
15396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); } >/dev/null && {
15398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15399 test ! -s conftest.err
15400 }; then
15401 ac_header_preproc=yes
15402else
15403 $as_echo "$as_me: failed program was:" >&5
15404sed 's/^/| /' conftest.$ac_ext >&5
15405
15406 ac_header_preproc=no
15407fi
15408
15409rm -f conftest.err conftest.$ac_ext
15410{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15411$as_echo "$ac_header_preproc" >&6; }
15412
15413# So? What about this header?
15414case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15415 yes:no: )
15416 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15417$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15418 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
15419$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
15420 ac_header_preproc=yes
15421 ;;
15422 no:yes:* )
15423 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
15424$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
15425 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
15426$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
15427 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
15428$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
15429 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
15430$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15431 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
15432$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
15433 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
15434$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
15435
15436 ;;
15437esac
15438{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
15439$as_echo_n "checking for zlib.h... " >&6; }
15440if test "${ac_cv_header_zlib_h+set}" = set; then
15441 $as_echo_n "(cached) " >&6
15442else
15443 ac_cv_header_zlib_h=$ac_header_preproc
15444fi
15445{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
15446$as_echo "$ac_cv_header_zlib_h" >&6; }
15447
15448fi
15449if test "x$ac_cv_header_zlib_h" = x""yes; then
15450 :
15451else
15452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15454{ { $as_echo "$as_me:$LINENO: error:
15455 *** zlib.h missing, zlib-devel package required
15456See \`config.log' for more details." >&5
15457$as_echo "$as_me: error:
15458 *** zlib.h missing, zlib-devel package required
15459See \`config.log' for more details." >&2;}
15460 { (exit 1); exit 1; }; }; }
15461fi
15462
15463
15464
15465
15466{ $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
15467$as_echo_n "checking for compress2 in -lz... " >&6; }
15468if test "${ac_cv_lib_z_compress2+set}" = set; then
15469 $as_echo_n "(cached) " >&6
15470else
15471 ac_check_lib_save_LIBS=$LIBS
15472LIBS="-lz $LIBS"
15473cat >conftest.$ac_ext <<_ACEOF
15474/* confdefs.h. */
15475_ACEOF
15476cat confdefs.h >>conftest.$ac_ext
15477cat >>conftest.$ac_ext <<_ACEOF
15478/* end confdefs.h. */
15479
15480/* Override any GCC internal prototype to avoid an error.
15481 Use char because int might match the return type of a GCC
15482 builtin and then its argument prototype would still apply. */
15483#ifdef __cplusplus
15484extern "C"
15485#endif
15486char compress2 ();
15487int
15488main ()
15489{
15490return compress2 ();
15491 ;
15492 return 0;
15493}
15494_ACEOF
15495rm -f conftest.$ac_objext conftest$ac_exeext
15496if { (ac_try="$ac_link"
15497case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15500esac
15501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15502$as_echo "$ac_try_echo") >&5
15503 (eval "$ac_link") 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } && {
15510 test -z "$ac_c_werror_flag" ||
15511 test ! -s conftest.err
15512 } && test -s conftest$ac_exeext && {
15513 test "$cross_compiling" = yes ||
15514 $as_test_x conftest$ac_exeext
15515 }; then
15516 ac_cv_lib_z_compress2=yes
15517else
15518 $as_echo "$as_me: failed program was:" >&5
15519sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 ac_cv_lib_z_compress2=no
15522fi
15523
15524rm -rf conftest.dSYM
15525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15526 conftest$ac_exeext conftest.$ac_ext
15527LIBS=$ac_check_lib_save_LIBS
15528fi
15529{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
15530$as_echo "$ac_cv_lib_z_compress2" >&6; }
15531if test "x$ac_cv_lib_z_compress2" = x""yes; then
15532 cat >>confdefs.h <<_ACEOF
15533#define HAVE_LIBZ 1
15534_ACEOF
15535
15536 LIBS="-lz $LIBS"
15537
15538else
15539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15541{ { $as_echo "$as_me:$LINENO: error:
15542 *** compress2() missing, zlib-devel package required
15543See \`config.log' for more details." >&5
15544$as_echo "$as_me: error:
15545 *** compress2() missing, zlib-devel package required
15546See \`config.log' for more details." >&2;}
15547 { (exit 1); exit 1; }; }; }
15548fi
15549
15550
15551
15552{ $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
15553$as_echo_n "checking for uncompress in -lz... " >&6; }
15554if test "${ac_cv_lib_z_uncompress+set}" = set; then
15555 $as_echo_n "(cached) " >&6
15556else
15557 ac_check_lib_save_LIBS=$LIBS
15558LIBS="-lz $LIBS"
15559cat >conftest.$ac_ext <<_ACEOF
15560/* confdefs.h. */
15561_ACEOF
15562cat confdefs.h >>conftest.$ac_ext
15563cat >>conftest.$ac_ext <<_ACEOF
15564/* end confdefs.h. */
15565
15566/* Override any GCC internal prototype to avoid an error.
15567 Use char because int might match the return type of a GCC
15568 builtin and then its argument prototype would still apply. */
15569#ifdef __cplusplus
15570extern "C"
15571#endif
15572char uncompress ();
15573int
15574main ()
15575{
15576return uncompress ();
15577 ;
15578 return 0;
15579}
15580_ACEOF
15581rm -f conftest.$ac_objext conftest$ac_exeext
15582if { (ac_try="$ac_link"
15583case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15586esac
15587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15588$as_echo "$ac_try_echo") >&5
15589 (eval "$ac_link") 2>conftest.er1
15590 ac_status=$?
15591 grep -v '^ *+' conftest.er1 >conftest.err
15592 rm -f conftest.er1
15593 cat conftest.err >&5
15594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); } && {
15596 test -z "$ac_c_werror_flag" ||
15597 test ! -s conftest.err
15598 } && test -s conftest$ac_exeext && {
15599 test "$cross_compiling" = yes ||
15600 $as_test_x conftest$ac_exeext
15601 }; then
15602 ac_cv_lib_z_uncompress=yes
15603else
15604 $as_echo "$as_me: failed program was:" >&5
15605sed 's/^/| /' conftest.$ac_ext >&5
15606
15607 ac_cv_lib_z_uncompress=no
15608fi
15609
15610rm -rf conftest.dSYM
15611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15612 conftest$ac_exeext conftest.$ac_ext
15613LIBS=$ac_check_lib_save_LIBS
15614fi
15615{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
15616$as_echo "$ac_cv_lib_z_uncompress" >&6; }
15617if test "x$ac_cv_lib_z_uncompress" = x""yes; then
15618 cat >>confdefs.h <<_ACEOF
15619#define HAVE_LIBZ 1
15620_ACEOF
15621
15622 LIBS="-lz $LIBS"
15623
15624else
15625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15627{ { $as_echo "$as_me:$LINENO: error:
15628 *** uncompress() missing, zlib-devel package required
15629See \`config.log' for more details." >&5
15630$as_echo "$as_me: error:
15631 *** uncompress() missing, zlib-devel package required
15632See \`config.log' for more details." >&2;}
15633 { (exit 1); exit 1; }; }; }
15634fi
15635
15636
15637
15638{ $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
15639$as_echo_n "checking for crc32 in -lz... " >&6; }
15640if test "${ac_cv_lib_z_crc32+set}" = set; then
15641 $as_echo_n "(cached) " >&6
15642else
15643 ac_check_lib_save_LIBS=$LIBS
15644LIBS="-lz $LIBS"
15645cat >conftest.$ac_ext <<_ACEOF
15646/* confdefs.h. */
15647_ACEOF
15648cat confdefs.h >>conftest.$ac_ext
15649cat >>conftest.$ac_ext <<_ACEOF
15650/* end confdefs.h. */
15651
15652/* Override any GCC internal prototype to avoid an error.
15653 Use char because int might match the return type of a GCC
15654 builtin and then its argument prototype would still apply. */
15655#ifdef __cplusplus
15656extern "C"
15657#endif
15658char crc32 ();
15659int
15660main ()
15661{
15662return crc32 ();
15663 ;
15664 return 0;
15665}
15666_ACEOF
15667rm -f conftest.$ac_objext conftest$ac_exeext
15668if { (ac_try="$ac_link"
15669case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15672esac
15673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15674$as_echo "$ac_try_echo") >&5
15675 (eval "$ac_link") 2>conftest.er1
15676 ac_status=$?
15677 grep -v '^ *+' conftest.er1 >conftest.err
15678 rm -f conftest.er1
15679 cat conftest.err >&5
15680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); } && {
15682 test -z "$ac_c_werror_flag" ||
15683 test ! -s conftest.err
15684 } && test -s conftest$ac_exeext && {
15685 test "$cross_compiling" = yes ||
15686 $as_test_x conftest$ac_exeext
15687 }; then
15688 ac_cv_lib_z_crc32=yes
15689else
15690 $as_echo "$as_me: failed program was:" >&5
15691sed 's/^/| /' conftest.$ac_ext >&5
15692
15693 ac_cv_lib_z_crc32=no
15694fi
15695
15696rm -rf conftest.dSYM
15697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698 conftest$ac_exeext conftest.$ac_ext
15699LIBS=$ac_check_lib_save_LIBS
15700fi
15701{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
15702$as_echo "$ac_cv_lib_z_crc32" >&6; }
15703if test "x$ac_cv_lib_z_crc32" = x""yes; then
15704 cat >>confdefs.h <<_ACEOF
15705#define HAVE_LIBZ 1
15706_ACEOF
15707
15708 LIBS="-lz $LIBS"
15709
15710else
15711 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15713{ { $as_echo "$as_me:$LINENO: error:
15714 *** crc32() missing, zlib-devel package required
15715See \`config.log' for more details." >&5
15716$as_echo "$as_me: error:
15717 *** crc32() missing, zlib-devel package required
15718See \`config.log' for more details." >&2;}
15719 { (exit 1); exit 1; }; }; }
15720fi
15721
15722
15723 ZLIB="-lz"
15724
15725
15726cat >>confdefs.h <<\_ACEOF
15727#define HAVE_ZLIB 1
15728_ACEOF
15729
15730
15731
15732 LIBUUID=
15733
15734 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15735 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15736$as_echo_n "checking for uuid/uuid.h... " >&6; }
15737if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15738 $as_echo_n "(cached) " >&6
15739fi
15740{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15741$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15742else
15743 # Is the header compilable?
15744{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
15745$as_echo_n "checking uuid/uuid.h usability... " >&6; }
15746cat >conftest.$ac_ext <<_ACEOF
15747/* confdefs.h. */
15748_ACEOF
15749cat confdefs.h >>conftest.$ac_ext
15750cat >>conftest.$ac_ext <<_ACEOF
15751/* end confdefs.h. */
15752$ac_includes_default
15753#include <uuid/uuid.h>
15754_ACEOF
15755rm -f conftest.$ac_objext
15756if { (ac_try="$ac_compile"
15757case "(($ac_try" in
15758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759 *) ac_try_echo=$ac_try;;
15760esac
15761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15762$as_echo "$ac_try_echo") >&5
15763 (eval "$ac_compile") 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } && {
15770 test -z "$ac_c_werror_flag" ||
15771 test ! -s conftest.err
15772 } && test -s conftest.$ac_objext; then
15773 ac_header_compiler=yes
15774else
15775 $as_echo "$as_me: failed program was:" >&5
15776sed 's/^/| /' conftest.$ac_ext >&5
15777
15778 ac_header_compiler=no
15779fi
15780
15781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15782{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15783$as_echo "$ac_header_compiler" >&6; }
15784
15785# Is the header present?
15786{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
15787$as_echo_n "checking uuid/uuid.h presence... " >&6; }
15788cat >conftest.$ac_ext <<_ACEOF
15789/* confdefs.h. */
15790_ACEOF
15791cat confdefs.h >>conftest.$ac_ext
15792cat >>conftest.$ac_ext <<_ACEOF
15793/* end confdefs.h. */
15794#include <uuid/uuid.h>
15795_ACEOF
15796if { (ac_try="$ac_cpp conftest.$ac_ext"
15797case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15800esac
15801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15802$as_echo "$ac_try_echo") >&5
15803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15804 ac_status=$?
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
15808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } >/dev/null && {
15810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15811 test ! -s conftest.err
15812 }; then
15813 ac_header_preproc=yes
15814else
15815 $as_echo "$as_me: failed program was:" >&5
15816sed 's/^/| /' conftest.$ac_ext >&5
15817
15818 ac_header_preproc=no
15819fi
15820
15821rm -f conftest.err conftest.$ac_ext
15822{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15823$as_echo "$ac_header_preproc" >&6; }
15824
15825# So? What about this header?
15826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15827 yes:no: )
15828 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
15829$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15830 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
15831$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
15832 ac_header_preproc=yes
15833 ;;
15834 no:yes:* )
15835 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
15836$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
15837 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
15838$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
15839 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
15840$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
15841 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
15842$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
15843 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
15844$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
15845 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
15846$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
15847
15848 ;;
15849esac
15850{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
15851$as_echo_n "checking for uuid/uuid.h... " >&6; }
15852if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
15853 $as_echo_n "(cached) " >&6
15854else
15855 ac_cv_header_uuid_uuid_h=$ac_header_preproc
15856fi
15857{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
15858$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
15859
15860fi
15861if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
15862 :
15863else
15864 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15866{ { $as_echo "$as_me:$LINENO: error:
15867 *** uuid/uuid.h missing, libuuid-devel package required
15868See \`config.log' for more details." >&5
15869$as_echo "$as_me: error:
15870 *** uuid/uuid.h missing, libuuid-devel package required
15871See \`config.log' for more details." >&2;}
15872 { (exit 1); exit 1; }; }; }
15873fi
15874
15875
15876
15877
15878{ $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
15879$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
15880if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
15881 $as_echo_n "(cached) " >&6
15882else
15883 ac_check_lib_save_LIBS=$LIBS
15884LIBS="-luuid $LIBS"
15885cat >conftest.$ac_ext <<_ACEOF
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
15891
15892/* Override any GCC internal prototype to avoid an error.
15893 Use char because int might match the return type of a GCC
15894 builtin and then its argument prototype would still apply. */
15895#ifdef __cplusplus
15896extern "C"
15897#endif
15898char uuid_generate ();
15899int
15900main ()
15901{
15902return uuid_generate ();
15903 ;
15904 return 0;
15905}
15906_ACEOF
15907rm -f conftest.$ac_objext conftest$ac_exeext
15908if { (ac_try="$ac_link"
15909case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15912esac
15913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15914$as_echo "$ac_try_echo") >&5
15915 (eval "$ac_link") 2>conftest.er1
15916 ac_status=$?
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
15920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); } && {
15922 test -z "$ac_c_werror_flag" ||
15923 test ! -s conftest.err
15924 } && test -s conftest$ac_exeext && {
15925 test "$cross_compiling" = yes ||
15926 $as_test_x conftest$ac_exeext
15927 }; then
15928 ac_cv_lib_uuid_uuid_generate=yes
15929else
15930 $as_echo "$as_me: failed program was:" >&5
15931sed 's/^/| /' conftest.$ac_ext >&5
15932
15933 ac_cv_lib_uuid_uuid_generate=no
15934fi
15935
15936rm -rf conftest.dSYM
15937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15938 conftest$ac_exeext conftest.$ac_ext
15939LIBS=$ac_check_lib_save_LIBS
15940fi
15941{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
15942$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
15943if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
15944 cat >>confdefs.h <<_ACEOF
15945#define HAVE_LIBUUID 1
15946_ACEOF
15947
15948 LIBS="-luuid $LIBS"
15949
15950else
15951 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15953{ { $as_echo "$as_me:$LINENO: error:
15954 *** uuid_generate() missing, libuuid-devel package required
15955See \`config.log' for more details." >&5
15956$as_echo "$as_me: error:
15957 *** uuid_generate() missing, libuuid-devel package required
15958See \`config.log' for more details." >&2;}
15959 { (exit 1); exit 1; }; }; }
15960fi
15961
15962
15963
15964{ $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
15965$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
15966if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
15967 $as_echo_n "(cached) " >&6
15968else
15969 ac_check_lib_save_LIBS=$LIBS
15970LIBS="-luuid $LIBS"
15971cat >conftest.$ac_ext <<_ACEOF
15972/* confdefs.h. */
15973_ACEOF
15974cat confdefs.h >>conftest.$ac_ext
15975cat >>conftest.$ac_ext <<_ACEOF
15976/* end confdefs.h. */
15977
15978/* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
15981#ifdef __cplusplus
15982extern "C"
15983#endif
15984char uuid_is_null ();
15985int
15986main ()
15987{
15988return uuid_is_null ();
15989 ;
15990 return 0;
15991}
15992_ACEOF
15993rm -f conftest.$ac_objext conftest$ac_exeext
15994if { (ac_try="$ac_link"
15995case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998esac
15999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16000$as_echo "$ac_try_echo") >&5
16001 (eval "$ac_link") 2>conftest.er1
16002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
16006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } && {
16008 test -z "$ac_c_werror_flag" ||
16009 test ! -s conftest.err
16010 } && test -s conftest$ac_exeext && {
16011 test "$cross_compiling" = yes ||
16012 $as_test_x conftest$ac_exeext
16013 }; then
16014 ac_cv_lib_uuid_uuid_is_null=yes
16015else
16016 $as_echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 ac_cv_lib_uuid_uuid_is_null=no
16020fi
16021
16022rm -rf conftest.dSYM
16023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16024 conftest$ac_exeext conftest.$ac_ext
16025LIBS=$ac_check_lib_save_LIBS
16026fi
16027{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
16028$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
16029if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
16030 cat >>confdefs.h <<_ACEOF
16031#define HAVE_LIBUUID 1
16032_ACEOF
16033
16034 LIBS="-luuid $LIBS"
16035
16036else
16037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16039{ { $as_echo "$as_me:$LINENO: error:
16040 *** uuid_is_null() missing, libuuid-devel package required
16041See \`config.log' for more details." >&5
16042$as_echo "$as_me: error:
16043 *** uuid_is_null() missing, libuuid-devel package required
16044See \`config.log' for more details." >&2;}
16045 { (exit 1); exit 1; }; }; }
16046fi
16047
16048
16049 LIBUUID="-luuid"
16050
16051
16052cat >>confdefs.h <<\_ACEOF
16053#define HAVE_LIBUUID 1
16054_ACEOF
16055
16056
16057
16058
16059# Check whether --with-blkid was given.
16060if test "${with_blkid+set}" = set; then
16061 withval=$with_blkid;
16062else
16063 with_blkid=check
16064fi
16065
16066
16067 LIBBLKID=
16068 if test "x$with_blkid" != xno; then
16069
16070 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
16071$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
16072if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
16073 $as_echo_n "(cached) " >&6
16074else
16075 ac_check_lib_save_LIBS=$LIBS
16076LIBS="-lblkid $LIBS"
16077cat >conftest.$ac_ext <<_ACEOF
16078/* confdefs.h. */
16079_ACEOF
16080cat confdefs.h >>conftest.$ac_ext
16081cat >>conftest.$ac_ext <<_ACEOF
16082/* end confdefs.h. */
16083
16084/* Override any GCC internal prototype to avoid an error.
16085 Use char because int might match the return type of a GCC
16086 builtin and then its argument prototype would still apply. */
16087#ifdef __cplusplus
16088extern "C"
16089#endif
16090char blkid_get_cache ();
16091int
16092main ()
16093{
16094return blkid_get_cache ();
16095 ;
16096 return 0;
16097}
16098_ACEOF
16099rm -f conftest.$ac_objext conftest$ac_exeext
16100if { (ac_try="$ac_link"
16101case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104esac
16105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16106$as_echo "$ac_try_echo") >&5
16107 (eval "$ac_link") 2>conftest.er1
16108 ac_status=$?
16109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
16112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } && {
16114 test -z "$ac_c_werror_flag" ||
16115 test ! -s conftest.err
16116 } && test -s conftest$ac_exeext && {
16117 test "$cross_compiling" = yes ||
16118 $as_test_x conftest$ac_exeext
16119 }; then
16120 ac_cv_lib_blkid_blkid_get_cache=yes
16121else
16122 $as_echo "$as_me: failed program was:" >&5
16123sed 's/^/| /' conftest.$ac_ext >&5
16124
16125 ac_cv_lib_blkid_blkid_get_cache=no
16126fi
16127
16128rm -rf conftest.dSYM
16129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16130 conftest$ac_exeext conftest.$ac_ext
16131LIBS=$ac_check_lib_save_LIBS
16132fi
16133{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
16134$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
16135if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
16136
16137 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
16138$as_echo_n "checking for blkid zfs support... " >&6; }
16139
16140 ZFS_DEV=`mktemp`
16141 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
16142 >/dev/null 2>/dev/null
16143 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
16144 dd of=$ZFS_DEV bs=1k count=8 \
16145 seek=132 conv=notrunc &>/dev/null \
16146 >/dev/null 2>/dev/null
16147
16148 saved_LDFLAGS="$LDFLAGS"
16149 LDFLAGS="-lblkid"
16150
16151 if test "$cross_compiling" = yes; then
16152 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16154{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16155See \`config.log' for more details." >&5
16156$as_echo "$as_me: error: cannot run test program while cross compiling
16157See \`config.log' for more details." >&2;}
16158 { (exit 1); exit 1; }; }; }
16159else
16160 cat >conftest.$ac_ext <<_ACEOF
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
16165/* end confdefs.h. */
16166
16167 #include <stdio.h>
16168 #include <blkid/blkid.h>
16169
16170int
16171main ()
16172{
16173
16174 blkid_cache cache;
16175 char *value;
16176
16177 if (blkid_get_cache(&cache, NULL) < 0)
16178 return 1;
16179
16180 value = blkid_get_tag_value(cache, "TYPE",
16181 "$ZFS_DEV");
16182 if (!value) {
16183 blkid_put_cache(cache);
16184 return 2;
16185 }
16186
16187 if (strcmp(value, "zfs")) {
16188 free(value);
16189 blkid_put_cache(cache);
16190 return 3;
16191 }
16192
16193 free(value);
16194 blkid_put_cache(cache);
16195
16196 ;
16197 return 0;
16198}
16199_ACEOF
16200rm -f conftest$ac_exeext
16201if { (ac_try="$ac_link"
16202case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16205esac
16206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16207$as_echo "$ac_try_echo") >&5
16208 (eval "$ac_link") 2>&5
16209 ac_status=$?
16210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16212 { (case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16215esac
16216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16217$as_echo "$ac_try_echo") >&5
16218 (eval "$ac_try") 2>&5
16219 ac_status=$?
16220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; }; then
16222
16223 rm -f $ZFS_DEV
16224 { $as_echo "$as_me:$LINENO: result: yes" >&5
16225$as_echo "yes" >&6; }
16226 LIBBLKID="-lblkid"
16227
16228
16229cat >>confdefs.h <<\_ACEOF
16230#define HAVE_LIBBLKID 1
16231_ACEOF
16232
16233
16234else
16235 $as_echo "$as_me: program exited with status $ac_status" >&5
16236$as_echo "$as_me: failed program was:" >&5
16237sed 's/^/| /' conftest.$ac_ext >&5
16238
16239( exit $ac_status )
16240
16241 rm -f $ZFS_DEV
16242 { $as_echo "$as_me:$LINENO: result: no" >&5
16243$as_echo "no" >&6; }
16244 if test "x$with_blkid" != xcheck; then
16245 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16247{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
16248See \`config.log' for more details." >&5
16249$as_echo "$as_me: error: --with-blkid given but unavailable
16250See \`config.log' for more details." >&2;}
16251 { (exit 1); exit 1; }; }; }
16252fi
16253
16254
16255fi
16256rm -rf conftest.dSYM
16257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16258fi
16259
16260
16261
16262 LDFLAGS="$saved_LDFLAGS"
16263
16264else
16265
16266 if test "x$with_blkid" != xcheck; then
16267 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16269{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
16270See \`config.log' for more details." >&5
16271$as_echo "$as_me: error: --with-blkid given but unavailable
16272See \`config.log' for more details." >&2;}
16273 { (exit 1); exit 1; }; }; }
16274fi
16275
16276
16277
16278fi
16279
16280
16281fi
16282
16283
16284
b3259b6a
BB
16285
16286# Check whether --with-selinux was given.
16287if test "${with_selinux+set}" = set; then
16288 withval=$with_selinux;
16289else
16290 with_selinux=check
16291fi
16292
16293
16294 LIBSELINUX=
16295 if test "x$with_selinux" != xno; then
16296
16297 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16298 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
16299$as_echo_n "checking for selinux/selinux.h... " >&6; }
16300if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16301 $as_echo_n "(cached) " >&6
16302fi
16303{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
16304$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
16305else
16306 # Is the header compilable?
16307{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
16308$as_echo_n "checking selinux/selinux.h usability... " >&6; }
16309cat >conftest.$ac_ext <<_ACEOF
16310/* confdefs.h. */
16311_ACEOF
16312cat confdefs.h >>conftest.$ac_ext
16313cat >>conftest.$ac_ext <<_ACEOF
16314/* end confdefs.h. */
16315$ac_includes_default
16316#include <selinux/selinux.h>
16317_ACEOF
16318rm -f conftest.$ac_objext
16319if { (ac_try="$ac_compile"
16320case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16325$as_echo "$ac_try_echo") >&5
16326 (eval "$ac_compile") 2>conftest.er1
16327 ac_status=$?
16328 grep -v '^ *+' conftest.er1 >conftest.err
16329 rm -f conftest.er1
16330 cat conftest.err >&5
16331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332 (exit $ac_status); } && {
16333 test -z "$ac_c_werror_flag" ||
16334 test ! -s conftest.err
16335 } && test -s conftest.$ac_objext; then
16336 ac_header_compiler=yes
16337else
16338 $as_echo "$as_me: failed program was:" >&5
16339sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 ac_header_compiler=no
16342fi
16343
16344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16346$as_echo "$ac_header_compiler" >&6; }
16347
16348# Is the header present?
16349{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
16350$as_echo_n "checking selinux/selinux.h presence... " >&6; }
16351cat >conftest.$ac_ext <<_ACEOF
16352/* confdefs.h. */
16353_ACEOF
16354cat confdefs.h >>conftest.$ac_ext
16355cat >>conftest.$ac_ext <<_ACEOF
16356/* end confdefs.h. */
16357#include <selinux/selinux.h>
16358_ACEOF
16359if { (ac_try="$ac_cpp conftest.$ac_ext"
16360case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16363esac
16364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16365$as_echo "$ac_try_echo") >&5
16366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16367 ac_status=$?
16368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
16371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } >/dev/null && {
16373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16374 test ! -s conftest.err
16375 }; then
16376 ac_header_preproc=yes
16377else
16378 $as_echo "$as_me: failed program was:" >&5
16379sed 's/^/| /' conftest.$ac_ext >&5
16380
16381 ac_header_preproc=no
16382fi
16383
16384rm -f conftest.err conftest.$ac_ext
16385{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16386$as_echo "$ac_header_preproc" >&6; }
16387
16388# So? What about this header?
16389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16390 yes:no: )
16391 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
16392$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16393 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
16394$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
16395 ac_header_preproc=yes
16396 ;;
16397 no:yes:* )
16398 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
16399$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
16400 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
16401$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
16402 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
16403$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
16404 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
16405$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
16406 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
16407$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
16408 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
16409$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
16410
16411 ;;
16412esac
16413{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
16414$as_echo_n "checking for selinux/selinux.h... " >&6; }
16415if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
16416 $as_echo_n "(cached) " >&6
16417else
16418 ac_cv_header_selinux_selinux_h=$ac_header_preproc
16419fi
16420{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
16421$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
16422
16423fi
16424if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
16425
16426 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
16427$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
16428if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
16429 $as_echo_n "(cached) " >&6
16430else
16431 ac_check_lib_save_LIBS=$LIBS
16432LIBS="-lselinux $LIBS"
16433cat >conftest.$ac_ext <<_ACEOF
16434/* confdefs.h. */
16435_ACEOF
16436cat confdefs.h >>conftest.$ac_ext
16437cat >>conftest.$ac_ext <<_ACEOF
16438/* end confdefs.h. */
16439
16440/* Override any GCC internal prototype to avoid an error.
16441 Use char because int might match the return type of a GCC
16442 builtin and then its argument prototype would still apply. */
16443#ifdef __cplusplus
16444extern "C"
16445#endif
16446char is_selinux_enabled ();
16447int
16448main ()
16449{
16450return is_selinux_enabled ();
16451 ;
16452 return 0;
16453}
16454_ACEOF
16455rm -f conftest.$ac_objext conftest$ac_exeext
16456if { (ac_try="$ac_link"
16457case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16460esac
16461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16462$as_echo "$ac_try_echo") >&5
16463 (eval "$ac_link") 2>conftest.er1
16464 ac_status=$?
16465 grep -v '^ *+' conftest.er1 >conftest.err
16466 rm -f conftest.er1
16467 cat conftest.err >&5
16468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
16472 } && test -s conftest$ac_exeext && {
16473 test "$cross_compiling" = yes ||
16474 $as_test_x conftest$ac_exeext
16475 }; then
16476 ac_cv_lib_selinux_is_selinux_enabled=yes
16477else
16478 $as_echo "$as_me: failed program was:" >&5
16479sed 's/^/| /' conftest.$ac_ext >&5
16480
16481 ac_cv_lib_selinux_is_selinux_enabled=no
16482fi
16483
16484rm -rf conftest.dSYM
16485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16486 conftest$ac_exeext conftest.$ac_ext
16487LIBS=$ac_check_lib_save_LIBS
16488fi
16489{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
16490$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
16491if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
16492
16493 LIBSELINUX="-lselinux"
16494
16495
16496cat >>confdefs.h <<\_ACEOF
16497#define HAVE_LIBSELINUX 1
16498_ACEOF
16499
16500
16501else
16502
16503 if test "x$with_selinux" != xcheck; then
16504 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16506{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
16507See \`config.log' for more details." >&5
16508$as_echo "$as_me: error: --with-selinux given but unavailable
16509See \`config.log' for more details." >&2;}
16510 { (exit 1); exit 1; }; }; }
16511
16512fi
16513
16514
16515fi
16516
16517
16518else
16519
16520 if test "x$with_selinux" != xcheck; then
16521 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16523{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
16524See \`config.log' for more details." >&5
16525$as_echo "$as_me: error: --with-selinux given but unavailable
16526See \`config.log' for more details." >&2;}
16527 { (exit 1); exit 1; }; }; }
16528
16529fi
16530
16531
16532fi
16533
16534
16535
16536else
16537
16538 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
16539$as_echo_n "checking for selinux support... " >&6; }
16540 { $as_echo "$as_me:$LINENO: result: no" >&5
16541$as_echo "no" >&6; }
16542
16543fi
16544
16545
16546
e70e591c
BB
16547 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
16548$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
16549
16550 saved_flags="$CFLAGS"
16551 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
16552
16553 if test "$cross_compiling" = yes; then
16554 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16556{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16557See \`config.log' for more details." >&5
16558$as_echo "$as_me: error: cannot run test program while cross compiling
16559See \`config.log' for more details." >&2;}
16560 { (exit 1); exit 1; }; }; }
16561else
16562 cat >conftest.$ac_ext <<_ACEOF
16563/* confdefs.h. */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h. */
16568
16569int
16570main ()
16571{
16572
16573 ;
16574 return 0;
16575}
16576_ACEOF
16577rm -f conftest$ac_exeext
16578if { (ac_try="$ac_link"
16579case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582esac
16583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16584$as_echo "$ac_try_echo") >&5
16585 (eval "$ac_link") 2>&5
16586 ac_status=$?
16587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16589 { (case "(($ac_try" in
16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16591 *) ac_try_echo=$ac_try;;
16592esac
16593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16594$as_echo "$ac_try_echo") >&5
16595 (eval "$ac_try") 2>&5
16596 ac_status=$?
16597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599
16600 FRAME_LARGER_THAN=-Wframe-larger-than=1024
16601 { $as_echo "$as_me:$LINENO: result: yes" >&5
16602$as_echo "yes" >&6; }
16603
16604else
16605 $as_echo "$as_me: program exited with status $ac_status" >&5
16606$as_echo "$as_me: failed program was:" >&5
16607sed 's/^/| /' conftest.$ac_ext >&5
16608
16609( exit $ac_status )
16610
16611 FRAME_LARGER_THAN=
16612 { $as_echo "$as_me:$LINENO: result: no" >&5
16613$as_echo "no" >&6; }
16614
16615fi
16616rm -rf conftest.dSYM
16617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16618fi
16619
16620
16621
16622 CFLAGS="$saved_flags"
16623
16624
16625
16626
16627 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
16628$as_echo_n "checking whether pthread stack includes guard... " >&6; }
16629
16630 saved_CFLAGS="$CFLAGS"
16631 CFLAGS="-fstack-check"
16632 saved_LDFLAGS="$LDFLAGS"
16633 LDFLAGS="-lpthread"
16634
16635 if test "$cross_compiling" = yes; then
16636 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16638{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16639See \`config.log' for more details." >&5
16640$as_echo "$as_me: error: cannot run test program while cross compiling
16641See \`config.log' for more details." >&2;}
16642 { (exit 1); exit 1; }; }; }
16643else
16644 cat >conftest.$ac_ext <<_ACEOF
16645/* confdefs.h. */
16646_ACEOF
16647cat confdefs.h >>conftest.$ac_ext
16648cat >>conftest.$ac_ext <<_ACEOF
16649/* end confdefs.h. */
16650
16651 #include <pthread.h>
16652 #include <sys/resource.h>
16653 #include <unistd.h>
16654 #include <bits/local_lim.h>
16655
16656 #define PAGESIZE (sysconf(_SC_PAGESIZE))
16657 #define STACK_SIZE 8192
16658 #define BUFSIZE 4096
16659
16660 void * func(void *arg)
16661 {
16662 char buf[BUFSIZE];
16663 }
16664
16665int
16666main ()
16667{
16668
16669 pthread_t tid;
16670 pthread_attr_t attr;
16671 struct rlimit l;
16672
16673 l.rlim_cur = 0;
16674 l.rlim_max = 0;
16675 setrlimit(RLIMIT_CORE, &l);
16676 pthread_attr_init(&attr);
16677 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
16678 pthread_attr_setguardsize(&attr, PAGESIZE);
16679 pthread_create(&tid, &attr, func, NULL);
16680 pthread_join(tid, NULL);
16681
16682 ;
16683 return 0;
16684}
16685_ACEOF
16686rm -f conftest$ac_exeext
16687if { (ac_try="$ac_link"
16688case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16691esac
16692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16693$as_echo "$ac_try_echo") >&5
16694 (eval "$ac_link") 2>&5
16695 ac_status=$?
16696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701esac
16702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16703$as_echo "$ac_try_echo") >&5
16704 (eval "$ac_try") 2>&5
16705 ac_status=$?
16706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708
16709 { $as_echo "$as_me:$LINENO: result: no" >&5
16710$as_echo "no" >&6; }
16711
16712else
16713 $as_echo "$as_me: program exited with status $ac_status" >&5
16714$as_echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
16717( exit $ac_status )
16718
16719
16720cat >>confdefs.h <<\_ACEOF
16721#define NPTL_GUARD_WITHIN_STACK 1
16722_ACEOF
16723
16724 { $as_echo "$as_me:$LINENO: result: yes" >&5
16725$as_echo "yes" >&6; }
16726
16727fi
16728rm -rf conftest.dSYM
16729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16730fi
16731
16732
16733 CFLAGS="$saved_CFLAGS"
16734 LDFLAGS="$saved_LDFLAGS"
16735
16736 ;;
16737 all)
16738
16739
16740# Check whether --with-linux was given.
16741if test "${with_linux+set}" = set; then
16742 withval=$with_linux; kernelsrc="$withval"
16743fi
16744
16745
16746
16747# Check whether --with-linux-obj was given.
16748if test "${with_linux_obj+set}" = set; then
16749 withval=$with_linux_obj; kernelbuild="$withval"
16750fi
16751
16752
16753 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16754$as_echo_n "checking kernel source directory... " >&6; }
16755 if test -z "$kernelsrc"; then
8366cd6a 16756
1b94c25c 16757 if test -e "/lib/modules/$(uname -r)/source"; then
8366cd6a 16758
1b94c25c
BB
16759 headersdir="/lib/modules/$(uname -r)/source"
16760 sourcelink=$(readlink -f "$headersdir")
8366cd6a
PS
16761
16762elif test -e "/lib/modules/$(uname -r)/build"; then
16763
1b94c25c 16764 headersdir="/lib/modules/$(uname -r)/build"
e70e591c 16765 sourcelink=$(readlink -f "$headersdir")
8366cd6a
PS
16766
16767else
16768
e70e591c 16769 sourcelink=$(ls -1d /usr/src/kernels/* \
8366cd6a 16770 /usr/src/linux-* \
e70e591c 16771 2>/dev/null | grep -v obj | tail -1)
8366cd6a
PS
16772
16773fi
16774
e70e591c
BB
16775
16776 if test -n "$sourcelink" && test -e ${sourcelink}; then
8366cd6a 16777
e70e591c 16778 kernelsrc=`readlink -f ${sourcelink}`
8366cd6a
PS
16779
16780else
16781
e70e591c
BB
16782 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16783$as_echo "Not found" >&6; }
16784 { { $as_echo "$as_me:$LINENO: error:
16785 *** Please make sure the kernel devel package for your distribution
16786 *** is installed then try again. If that fails you can specify the
16787 *** location of the kernel source with the '--with-linux=PATH' option." >&5
16788$as_echo "$as_me: error:
16789 *** Please make sure the kernel devel package for your distribution
16790 *** is installed then try again. If that fails you can specify the
16791 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
16792 { (exit 1); exit 1; }; }
8366cd6a
PS
16793
16794fi
16795
16796
16797else
16798
e70e591c 16799 if test "$kernelsrc" = "NONE"; then
8366cd6a 16800
e70e591c 16801 kernsrcver=NONE
8366cd6a
PS
16802
16803fi
16804
16805
16806fi
16807
e70e591c
BB
16808
16809 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16810$as_echo "$kernelsrc" >&6; }
16811 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16812$as_echo_n "checking kernel build directory... " >&6; }
16813 if test -z "$kernelbuild"; then
8366cd6a 16814
1b94c25c 16815 if test -e "/lib/modules/$(uname -r)/build"; then
8366cd6a 16816
1b94c25c 16817 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
8366cd6a
PS
16818
16819elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
16820
e70e591c 16821 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
8366cd6a
PS
16822
16823elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16824
e70e591c 16825 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
8366cd6a
PS
16826
16827elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16828
e70e591c 16829 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
8366cd6a
PS
16830
16831else
16832
e70e591c 16833 kernelbuild=${kernelsrc}
8366cd6a
PS
16834
16835fi
16836
16837
16838fi
16839
e70e591c
BB
16840 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16841$as_echo "$kernelbuild" >&6; }
16842
16843 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16844$as_echo_n "checking kernel source version... " >&6; }
16845 utsrelease1=$kernelbuild/include/linux/version.h
16846 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16847 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16848 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
8366cd6a 16849
e70e591c 16850 utsrelease=linux/version.h
8366cd6a
PS
16851
16852elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16853
e70e591c 16854 utsrelease=linux/utsrelease.h
8366cd6a
PS
16855
16856elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16857
e70e591c 16858 utsrelease=generated/utsrelease.h
8366cd6a
PS
16859
16860fi
16861
e70e591c
BB
16862
16863 if test "$utsrelease"; then
8366cd6a 16864
e70e591c
BB
16865 kernsrcver=`(echo "#include <$utsrelease>";
16866 echo "kernsrcver=UTS_RELEASE") |
16867 cpp -I $kernelbuild/include |
16868 grep "^kernsrcver=" | cut -d \" -f 2`
16869
16870 if test -z "$kernsrcver"; then
8366cd6a 16871
e70e591c
BB
16872 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16873$as_echo "Not found" >&6; }
16874 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16875$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16876 { (exit 1); exit 1; }; }
8366cd6a
PS
16877
16878fi
16879
16880
16881else
16882
e70e591c
BB
16883 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16884$as_echo "Not found" >&6; }
16885 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16886$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
16887 { (exit 1); exit 1; }; }
8366cd6a
PS
16888
16889fi
16890
e70e591c
BB
16891
16892 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16893$as_echo "$kernsrcver" >&6; }
16894
16895 LINUX=${kernelsrc}
16896 LINUX_OBJ=${kernelbuild}
16897 LINUX_VERSION=${kernsrcver}
16898
16899
16900
16901
16902
16903
16904 modpost=$LINUX/scripts/Makefile.modpost
16905 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16906$as_echo_n "checking kernel file name for module symbols... " >&6; }
16907 if test -f "$modpost"; then
8366cd6a 16908
e70e591c 16909 if grep -q Modules.symvers $modpost; then
8366cd6a 16910
e70e591c 16911 LINUX_SYMBOLS=Modules.symvers
8366cd6a
PS
16912
16913else
16914
e70e591c 16915 LINUX_SYMBOLS=Module.symvers
a60b1c0a 16916
8366cd6a
PS
16917fi
16918
16919
16920 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16921
a60b1c0a
BB
16922 { { $as_echo "$as_me:$LINENO: error:
16923 *** Please make sure the kernel devel package for your distribution
16924 *** is installed. If your building with a custom kernel make sure the
16925 *** kernel is configured, built, and the '--with-linux=PATH' configure
16926 *** option refers to the location of the kernel source." >&5
16927$as_echo "$as_me: error:
16928 *** Please make sure the kernel devel package for your distribution
16929 *** is installed. If your building with a custom kernel make sure the
16930 *** kernel is configured, built, and the '--with-linux=PATH' configure
16931 *** option refers to the location of the kernel source." >&2;}
16932 { (exit 1); exit 1; }; }
8366cd6a
PS
16933
16934fi
16935
16936
16937else
16938
e70e591c 16939 LINUX_SYMBOLS=NONE
8366cd6a
PS
16940
16941fi
16942
e70e591c
BB
16943 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16944$as_echo "$LINUX_SYMBOLS" >&6; }
16945
16946
16947
16948
16949
16950# Check whether --with-spl was given.
16951if test "${with_spl+set}" = set; then
16952 withval=$with_spl; splsrc="$withval"
16953fi
16954
16955
16956
16957# Check whether --with-spl-obj was given.
16958if test "${with_spl_obj+set}" = set; then
16959 withval=$with_spl_obj; splbuild="$withval"
16960fi
16961
16962
16963
16964 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
16965$as_echo_n "checking spl source directory... " >&6; }
16966 if test -z "$splsrc"; then
8366cd6a 16967
e70e591c
BB
16968 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
16969 2>/dev/null | tail -1`
16970
16971 if test -z "$sourcelink" || test ! -e $sourcelink; then
8366cd6a 16972
e70e591c 16973 sourcelink=../spl
8366cd6a
PS
16974
16975fi
16976
e70e591c
BB
16977
16978 if test -e $sourcelink; then
8366cd6a 16979
e70e591c 16980 splsrc=`readlink -f ${sourcelink}`
8366cd6a
PS
16981
16982else
16983
e70e591c
BB
16984 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16985$as_echo "Not found" >&6; }
16986 { { $as_echo "$as_me:$LINENO: error:
16987 *** Please make sure the spl devel package for your distribution
16988 *** is installed then try again. If that fails you can specify the
16989 *** location of the spl source with the '--with-spl=PATH' option." >&5
16990$as_echo "$as_me: error:
16991 *** Please make sure the spl devel package for your distribution
16992 *** is installed then try again. If that fails you can specify the
16993 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
16994 { (exit 1); exit 1; }; }
8366cd6a
PS
16995
16996fi
16997
16998
16999else
17000
e70e591c 17001 if test "$splsrc" = "NONE"; then
8366cd6a 17002
e70e591c
BB
17003 splbuild=NONE
17004 splsrcver=NONE
8366cd6a
PS
17005
17006fi
17007
17008
17009fi
17010
e70e591c
BB
17011
17012 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
17013$as_echo "$splsrc" >&6; }
17014 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
17015$as_echo_n "checking spl build directory... " >&6; }
17016 if test -z "$splbuild"; then
8366cd6a 17017
6283f55e 17018 splbuild=${splsrc}
8366cd6a
PS
17019
17020fi
17021
e70e591c
BB
17022 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
17023$as_echo "$splbuild" >&6; }
17024
17025 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
17026$as_echo_n "checking spl source version... " >&6; }
5e612145
BB
17027 if test -r $splbuild/spl_config.h &&
17028 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
e70e591c 17029
8366cd6a 17030
e70e591c
BB
17031 splsrcver=`(echo "#include <spl_config.h>";
17032 echo "splsrcver=SPL_META_VERSION") |
5e612145 17033 cpp -I $splbuild |
e70e591c 17034 grep "^splsrcver=" | cut -d \" -f 2`
8366cd6a
PS
17035
17036fi
17037
e70e591c
BB
17038
17039 if test -z "$splsrcver"; then
8366cd6a 17040
e70e591c
BB
17041 { $as_echo "$as_me:$LINENO: result: Not found" >&5
17042$as_echo "Not found" >&6; }
17043 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
17044 *** Cannot determine the version of the spl source.
17045 *** Please prepare the spl source before running this script" >&5
e70e591c 17046$as_echo "$as_me: error:
2984e0bb
PS
17047 *** Cannot determine the version of the spl source.
17048 *** Please prepare the spl source before running this script" >&2;}
e70e591c 17049 { (exit 1); exit 1; }; }
8366cd6a
PS
17050
17051fi
17052
e70e591c
BB
17053
17054 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
17055$as_echo "$splsrcver" >&6; }
17056
17057 SPL=${splsrc}
17058 SPL_OBJ=${splbuild}
17059 SPL_VERSION=${splsrcver}
17060
17061
17062
17063
17064
17065
17066 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
17067$as_echo_n "checking spl file name for module symbols... " >&6; }
17068 if test -r $SPL_OBJ/Module.symvers; then
8366cd6a 17069
e70e591c 17070 SPL_SYMBOLS=Module.symvers
8366cd6a
PS
17071
17072elif test -r $SPL_OBJ/Modules.symvers; then
17073
e70e591c 17074 SPL_SYMBOLS=Modules.symvers
8366cd6a
PS
17075
17076elif test -r $SPL_OBJ/module/Module.symvers; then
17077
6283f55e 17078 SPL_SYMBOLS=Module.symvers
8366cd6a
PS
17079
17080elif test -r $SPL_OBJ/module/Modules.symvers; then
17081
6283f55e 17082 SPL_SYMBOLS=Modules.symvers
8366cd6a
PS
17083
17084else
17085
e70e591c 17086 SPL_SYMBOLS=$LINUX_SYMBOLS
8366cd6a
PS
17087
17088fi
17089
e70e591c
BB
17090
17091 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
17092$as_echo "$SPL_SYMBOLS" >&6; }
17093
17094
17095
17096
17097
15805c77
BB
17098 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
17099$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
17100
17101
17102cat confdefs.h - <<_ACEOF >conftest.c
17103/* confdefs.h. */
17104_ACEOF
17105cat confdefs.h >>conftest.$ac_ext
17106cat >>conftest.$ac_ext <<_ACEOF
17107/* end confdefs.h. */
17108
17109
0da78696 17110 #include <linux/module.h>
15805c77
BB
17111
17112int
17113main (void)
17114{
17115
17116 #ifndef CONFIG_PREEMPT
17117 #error CONFIG_PREEMPT not #defined
17118 #endif
17119
17120 ;
17121 return 0;
17122}
17123
17124_ACEOF
17125
17126
17127 rm -Rf build && mkdir -p build
17128 echo "obj-m := conftest.o" >build/Makefile
17129 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136 (eval $ac_try) 2>&5
17137 ac_status=$?
17138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139 (exit $ac_status); }; }; then
17140
17141 { $as_echo "$as_me:$LINENO: result: yes" >&5
17142$as_echo "yes" >&6; }
17143 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
17144 *** Kernel built with CONFIG_PREEMPT which is not supported.
17145 *** You must rebuild your kernel without this option." >&5
15805c77 17146$as_echo "$as_me: error:
2984e0bb
PS
17147 *** Kernel built with CONFIG_PREEMPT which is not supported.
17148 *** You must rebuild your kernel without this option." >&2;}
15805c77
BB
17149 { (exit 1); exit 1; }; }
17150
17151else
17152 $as_echo "$as_me: failed program was:" >&5
17153sed 's/^/| /' conftest.$ac_ext >&5
17154
17155 { $as_echo "$as_me:$LINENO: result: no" >&5
17156$as_echo "no" >&6; }
17157
17158
17159
17160
17161fi
17162
17163 rm -Rf build
17164
17165
17166
17167
e70e591c 17168 if test "$ZFS_META_LICENSE" = CDDL; then
8366cd6a 17169
e70e591c
BB
17170 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
17171$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
17172
17173
17174cat confdefs.h - <<_ACEOF >conftest.c
17175/* confdefs.h. */
17176_ACEOF
17177cat confdefs.h >>conftest.$ac_ext
17178cat >>conftest.$ac_ext <<_ACEOF
17179/* end confdefs.h. */
17180
17181
0da78696 17182 #include <linux/module.h>
e70e591c
BB
17183
17184int
17185main (void)
17186{
17187
17188 #ifndef CONFIG_DEBUG_LOCK_ALLOC
17189 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
17190 #endif
17191
17192 ;
17193 return 0;
17194}
17195
17196_ACEOF
17197
17198
17199 rm -Rf build && mkdir -p build
17200 echo "obj-m := conftest.o" >build/Makefile
17201 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17204 ac_status=$?
17205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208 (eval $ac_try) 2>&5
17209 ac_status=$?
17210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; }; then
17212
17213 { $as_echo "$as_me:$LINENO: result: yes" >&5
17214$as_echo "yes" >&6; }
17215 { { $as_echo "$as_me:$LINENO: error:
2984e0bb
PS
17216 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
17217 *** incompatible with the CDDL license. You must rebuild
17218 *** your kernel without this option." >&5
e70e591c 17219$as_echo "$as_me: error:
2984e0bb
PS
17220 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
17221 *** incompatible with the CDDL license. You must rebuild
17222 *** your kernel without this option." >&2;}
e70e591c
BB
17223 { (exit 1); exit 1; }; }
17224
17225else
17226 $as_echo "$as_me: failed program was:" >&5
17227sed 's/^/| /' conftest.$ac_ext >&5
17228
17229 { $as_echo "$as_me:$LINENO: result: no" >&5
17230$as_echo "no" >&6; }
17231
17232
17233
17234
17235fi
17236
17237 rm -Rf build
17238
17239
17240
8366cd6a
PS
17241
17242fi
17243
e70e591c
BB
17244
17245 if test "$ZFS_META_LICENSE" = GPL; then
17246
8366cd6a 17247
e70e591c
BB
17248cat >>confdefs.h <<\_ACEOF
17249#define HAVE_GPL_ONLY_SYMBOLS 1
17250_ACEOF
17251
8366cd6a
PS
17252
17253fi
17254
e70e591c
BB
17255
17256
17257 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
17258$as_echo_n "checking block device operation prototypes... " >&6; }
b9c59ec8
PS
17259 tmp_flags="$EXTRA_KCFLAGS"
17260 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
17261
17262
17263cat confdefs.h - <<_ACEOF >conftest.c
17264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
17269
17270
17271 #include <linux/blkdev.h>
17272
17273int
17274main (void)
17275{
17276
17277 int (*blk_open) (struct block_device *, fmode_t) = NULL;
17278 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
17279 int (*blk_ioctl) (struct block_device *, fmode_t,
17280 unsigned, unsigned long) = NULL;
17281 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
17282 unsigned, unsigned long) = NULL;
17283 struct block_device_operations blk_ops = {
17284 .open = blk_open,
17285 .release = blk_release,
17286 .ioctl = blk_ioctl,
17287 .compat_ioctl = blk_compat_ioctl,
17288 };
17289
17290 blk_ops.open(NULL, 0);
17291 blk_ops.release(NULL, 0);
17292 blk_ops.ioctl(NULL, 0, 0, 0);
17293 blk_ops.compat_ioctl(NULL, 0, 0, 0);
17294
17295 ;
17296 return 0;
17297}
17298
17299_ACEOF
17300
17301
17302 rm -Rf build && mkdir -p build
17303 echo "obj-m := conftest.o" >build/Makefile
17304 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306 (eval $ac_try) 2>&5
17307 ac_status=$?
17308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
17313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; }; then
17315
17316 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
17317$as_echo "struct block_device" >&6; }
17318
17319cat >>confdefs.h <<\_ACEOF
17320#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
17321_ACEOF
17322
17323
17324else
17325 $as_echo "$as_me: failed program was:" >&5
17326sed 's/^/| /' conftest.$ac_ext >&5
17327
17328 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
17329$as_echo "struct inode" >&6; }
17330
17331
17332
17333fi
17334
17335 rm -Rf build
17336
17337
b9c59ec8 17338 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
17339
17340 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
17341$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
17342
17343
17344cat confdefs.h - <<_ACEOF >conftest.c
17345/* confdefs.h. */
17346_ACEOF
17347cat confdefs.h >>conftest.$ac_ext
17348cat >>conftest.$ac_ext <<_ACEOF
17349/* end confdefs.h. */
17350
17351
17352 #include <linux/types.h>
17353
17354int
17355main (void)
17356{
17357
79713039 17358 fmode_t *ptr __attribute__ ((unused));
e70e591c
BB
17359
17360 ;
17361 return 0;
17362}
17363
17364_ACEOF
17365
17366
17367 rm -Rf build && mkdir -p build
17368 echo "obj-m := conftest.o" >build/Makefile
17369 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; }; then
17380
17381 { $as_echo "$as_me:$LINENO: result: yes" >&5
17382$as_echo "yes" >&6; }
17383
17384cat >>confdefs.h <<\_ACEOF
17385#define HAVE_FMODE_T 1
17386_ACEOF
17387
17388
17389else
17390 $as_echo "$as_me: failed program was:" >&5
17391sed 's/^/| /' conftest.$ac_ext >&5
17392
17393 { $as_echo "$as_me:$LINENO: result: no" >&5
17394$as_echo "no" >&6; }
17395
17396
17397
17398fi
17399
17400 rm -Rf build
17401
17402
17403
17404
17405 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
17406$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
17407
17408
17409cat confdefs.h - <<_ACEOF >conftest.c
17410/* confdefs.h. */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h. */
17415
17416
17417 #include <linux/kobject.h>
17418
17419int
17420main (void)
17421{
17422
79713039 17423 int val __attribute__ ((unused));
e70e591c
BB
17424 val = KOBJ_NAME_LEN;
17425
17426 ;
17427 return 0;
17428}
17429
17430_ACEOF
17431
17432
17433 rm -Rf build && mkdir -p build
17434 echo "obj-m := conftest.o" >build/Makefile
17435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446
17447 { $as_echo "$as_me:$LINENO: result: yes" >&5
17448$as_echo "yes" >&6; }
17449
17450cat >>confdefs.h <<\_ACEOF
17451#define HAVE_KOBJ_NAME_LEN 1
17452_ACEOF
17453
17454
17455else
17456 $as_echo "$as_me: failed program was:" >&5
17457sed 's/^/| /' conftest.$ac_ext >&5
17458
17459 { $as_echo "$as_me:$LINENO: result: no" >&5
17460$as_echo "no" >&6; }
17461
17462
17463
17464fi
17465
17466 rm -Rf build
17467
17468
17469
17470
45066d1f
BB
17471 { $as_echo "$as_me:$LINENO: checking whether symbol blkdev_get_by_path is exported" >&5
17472$as_echo_n "checking whether symbol blkdev_get_by_path is exported... " >&6; }
17473 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
17474 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17475 rc=$?
17476 if test $rc -ne 0; then
8366cd6a 17477
45066d1f
BB
17478 export=0
17479 for file in fs/block_dev.c; do
17480 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" "$LINUX/$file" 2>/dev/null
17481 rc=$?
8366cd6a
PS
17482 if test $rc -eq 0; then
17483
17484 export=1
17485 break;
17486
17487fi
17488
45066d1f
BB
17489 done
17490 if test $export -eq 0; then
8366cd6a 17491
45066d1f
BB
17492 { $as_echo "$as_me:$LINENO: result: no" >&5
17493$as_echo "no" >&6; }
17494
8366cd6a
PS
17495
17496else
17497
45066d1f
BB
17498 { $as_echo "$as_me:$LINENO: result: yes" >&5
17499$as_echo "yes" >&6; }
17500
17501cat >>confdefs.h <<\_ACEOF
17502#define HAVE_BLKDEV_GET_BY_PATH 1
17503_ACEOF
17504
8366cd6a
PS
17505
17506fi
17507
17508
17509else
17510
45066d1f
BB
17511 { $as_echo "$as_me:$LINENO: result: yes" >&5
17512$as_echo "yes" >&6; }
17513
17514cat >>confdefs.h <<\_ACEOF
17515#define HAVE_BLKDEV_GET_BY_PATH 1
17516_ACEOF
17517
8366cd6a
PS
17518
17519fi
17520
45066d1f
BB
17521
17522
17523
e70e591c
BB
17524 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
17525$as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
17526 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
17527 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
17528 rc=$?
17529 if test $rc -ne 0; then
8366cd6a 17530
e70e591c
BB
17531 export=0
17532 for file in fs/block_dev.c; do
17533 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
17534 rc=$?
8366cd6a
PS
17535 if test $rc -eq 0; then
17536
17537 export=1
17538 break;
17539
17540fi
17541
e70e591c
BB
17542 done
17543 if test $export -eq 0; then
8366cd6a 17544
e70e591c
BB
17545 { $as_echo "$as_me:$LINENO: result: no" >&5
17546$as_echo "no" >&6; }
17547
8366cd6a
PS
17548
17549else
17550
e70e591c
BB
17551 { $as_echo "$as_me:$LINENO: result: yes" >&5
17552$as_echo "yes" >&6; }
17553
17554cat >>confdefs.h <<\_ACEOF
17555#define HAVE_OPEN_BDEV_EXCLUSIVE 1
17556_ACEOF
17557
8366cd6a
PS
17558
17559fi
17560
17561
17562else
17563
e70e591c
BB
17564 { $as_echo "$as_me:$LINENO: result: yes" >&5
17565$as_echo "yes" >&6; }
17566
17567cat >>confdefs.h <<\_ACEOF
17568#define HAVE_OPEN_BDEV_EXCLUSIVE 1
17569_ACEOF
17570
8366cd6a
PS
17571
17572fi
17573
e70e591c
BB
17574
17575
17576
17577 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
17578$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
17579
17580
17581cat confdefs.h - <<_ACEOF >conftest.c
17582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
17587
17588
17589 #include <linux/buffer_head.h>
17590
17591int
17592main (void)
17593{
17594
79713039 17595 struct block_device *bdev = NULL;
e70e591c
BB
17596 invalidate_bdev(bdev);
17597
17598 ;
17599 return 0;
17600}
17601
17602_ACEOF
17603
17604
17605 rm -Rf build && mkdir -p build
17606 echo "obj-m := conftest.o" >build/Makefile
17607 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17610 ac_status=$?
17611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17615 ac_status=$?
17616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618
17619 { $as_echo "$as_me:$LINENO: result: yes" >&5
17620$as_echo "yes" >&6; }
17621
17622cat >>confdefs.h <<\_ACEOF
17623#define HAVE_1ARG_INVALIDATE_BDEV 1
17624_ACEOF
17625
17626
17627else
17628 $as_echo "$as_me: failed program was:" >&5
17629sed 's/^/| /' conftest.$ac_ext >&5
17630
17631 { $as_echo "$as_me:$LINENO: result: no" >&5
17632$as_echo "no" >&6; }
17633
17634
17635
17636fi
17637
17638 rm -Rf build
17639
17640
17641
17642
17643 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
17644$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
b9c59ec8
PS
17645 tmp_flags="$EXTRA_KCFLAGS"
17646 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
17647
17648
17649cat confdefs.h - <<_ACEOF >conftest.c
17650/* confdefs.h. */
17651_ACEOF
17652cat confdefs.h >>conftest.$ac_ext
17653cat >>conftest.$ac_ext <<_ACEOF
17654/* end confdefs.h. */
17655
17656
17657 #include <linux/blkdev.h>
17658
17659int
17660main (void)
17661{
17662
17663 struct block_device *bdev = NULL;
17664 bdev_logical_block_size(bdev);
17665
17666 ;
17667 return 0;
17668}
17669
17670_ACEOF
17671
17672
17673 rm -Rf build && mkdir -p build
17674 echo "obj-m := conftest.o" >build/Makefile
17675 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
17679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17683 ac_status=$?
17684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686
17687 { $as_echo "$as_me:$LINENO: result: yes" >&5
17688$as_echo "yes" >&6; }
17689
17690cat >>confdefs.h <<\_ACEOF
17691#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
17692_ACEOF
17693
17694
17695else
17696 $as_echo "$as_me: failed program was:" >&5
17697sed 's/^/| /' conftest.$ac_ext >&5
17698
17699 { $as_echo "$as_me:$LINENO: result: no" >&5
17700$as_echo "no" >&6; }
17701
17702
17703
17704fi
17705
17706 rm -Rf build
17707
17708
b9c59ec8 17709 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
17710
17711
17712 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
17713$as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
17714 EXTRA_KCFLAGS="-Werror"
17715
17716
17717cat confdefs.h - <<_ACEOF >conftest.c
17718/* confdefs.h. */
17719_ACEOF
17720cat confdefs.h >>conftest.$ac_ext
17721cat >>conftest.$ac_ext <<_ACEOF
17722/* end confdefs.h. */
17723
17724
17725 #include <linux/bio.h>
17726
17727int
17728main (void)
17729{
17730
17731 struct bio bio;
17732 (void)bio_empty_barrier(&bio);
17733
17734 ;
17735 return 0;
17736}
17737
17738_ACEOF
17739
17740
17741 rm -Rf build && mkdir -p build
17742 echo "obj-m := conftest.o" >build/Makefile
17743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750 (eval $ac_try) 2>&5
17751 ac_status=$?
17752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
17754
17755 { $as_echo "$as_me:$LINENO: result: yes" >&5
17756$as_echo "yes" >&6; }
17757
17758cat >>confdefs.h <<\_ACEOF
17759#define HAVE_BIO_EMPTY_BARRIER 1
17760_ACEOF
17761
17762
17763else
17764 $as_echo "$as_me: failed program was:" >&5
17765sed 's/^/| /' conftest.$ac_ext >&5
17766
17767 { $as_echo "$as_me:$LINENO: result: no" >&5
17768$as_echo "no" >&6; }
17769
17770
17771
17772fi
17773
17774 rm -Rf build
17775
17776
17777
17778
f4af6bb7
BB
17779 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
17780$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
17781
17782
17783cat confdefs.h - <<_ACEOF >conftest.c
17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789
17790
17791 #include <linux/bio.h>
17792
17793int
17794main (void)
17795{
17796
79713039 17797 int flags __attribute__ ((unused));
f4af6bb7
BB
17798 flags = (1 << BIO_RW_FAILFAST);
17799
17800 ;
17801 return 0;
17802}
17803
17804_ACEOF
17805
17806
17807 rm -Rf build && mkdir -p build
17808 echo "obj-m := conftest.o" >build/Makefile
17809 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; }; then
17820
17821 { $as_echo "$as_me:$LINENO: result: yes" >&5
17822$as_echo "yes" >&6; }
17823
17824cat >>confdefs.h <<\_ACEOF
17825#define HAVE_BIO_RW_FAILFAST 1
17826_ACEOF
17827
17828
17829else
17830 $as_echo "$as_me: failed program was:" >&5
17831sed 's/^/| /' conftest.$ac_ext >&5
17832
17833 { $as_echo "$as_me:$LINENO: result: no" >&5
17834$as_echo "no" >&6; }
17835
17836
17837
17838fi
17839
17840 rm -Rf build
17841
17842
17843
17844
2959d94a
BB
17845 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
17846$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
17847
17848
17849cat confdefs.h - <<_ACEOF >conftest.c
17850/* confdefs.h. */
17851_ACEOF
17852cat confdefs.h >>conftest.$ac_ext
17853cat >>conftest.$ac_ext <<_ACEOF
17854/* end confdefs.h. */
17855
17856
17857 #include <linux/bio.h>
17858
17859int
17860main (void)
17861{
17862
79713039 17863 int flags __attribute__ ((unused));
2959d94a
BB
17864 flags = ((1 << BIO_RW_FAILFAST_DEV) |
17865 (1 << BIO_RW_FAILFAST_TRANSPORT) |
17866 (1 << BIO_RW_FAILFAST_DRIVER));
17867
17868 ;
17869 return 0;
17870}
17871
17872_ACEOF
17873
17874
17875 rm -Rf build && mkdir -p build
17876 echo "obj-m := conftest.o" >build/Makefile
17877 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888
17889 { $as_echo "$as_me:$LINENO: result: yes" >&5
17890$as_echo "yes" >&6; }
17891
17892cat >>confdefs.h <<\_ACEOF
f4af6bb7
BB
17893#define HAVE_BIO_RW_FAILFAST_DTD 1
17894_ACEOF
17895
17896
17897else
17898 $as_echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901 { $as_echo "$as_me:$LINENO: result: no" >&5
17902$as_echo "no" >&6; }
17903
17904
17905
17906fi
17907
17908 rm -Rf build
17909
17910
17911
17912
17913 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
17914$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
17915
17916
17917cat confdefs.h - <<_ACEOF >conftest.c
17918/* confdefs.h. */
17919_ACEOF
17920cat confdefs.h >>conftest.$ac_ext
17921cat >>conftest.$ac_ext <<_ACEOF
17922/* end confdefs.h. */
17923
17924
17925 #include <linux/bio.h>
17926
17927int
17928main (void)
17929{
17930
79713039 17931 int flags __attribute__ ((unused));
f4af6bb7
BB
17932 flags = REQ_FAILFAST_MASK;
17933
17934 ;
17935 return 0;
17936}
17937
17938_ACEOF
17939
17940
17941 rm -Rf build && mkdir -p build
17942 echo "obj-m := conftest.o" >build/Makefile
17943 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954
17955 { $as_echo "$as_me:$LINENO: result: yes" >&5
17956$as_echo "yes" >&6; }
17957
17958cat >>confdefs.h <<\_ACEOF
17959#define HAVE_BIO_REQ_FAILFAST_MASK 1
2959d94a
BB
17960_ACEOF
17961
17962
17963else
17964 $as_echo "$as_me: failed program was:" >&5
17965sed 's/^/| /' conftest.$ac_ext >&5
17966
17967 { $as_echo "$as_me:$LINENO: result: no" >&5
17968$as_echo "no" >&6; }
17969
17970
17971
17972fi
17973
17974 rm -Rf build
17975
17976
17977
17978
e70e591c
BB
17979 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
17980$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
17981 tmp_flags="$EXTRA_KCFLAGS"
17982 EXTRA_KCFLAGS="-Werror"
17983
17984
17985cat confdefs.h - <<_ACEOF >conftest.c
17986/* confdefs.h. */
17987_ACEOF
17988cat confdefs.h >>conftest.$ac_ext
17989cat >>conftest.$ac_ext <<_ACEOF
17990/* end confdefs.h. */
17991
17992
17993 #include <linux/bio.h>
17994
17995int
17996main (void)
17997{
17998
17999 void (*wanted_end_io)(struct bio *, int) = NULL;
79713039 18000 bio_end_io_t *local_end_io __attribute__ ((unused));
e70e591c
BB
18001
18002 local_end_io = wanted_end_io;
18003
18004 ;
18005 return 0;
18006}
18007
18008_ACEOF
18009
18010
18011 rm -Rf build && mkdir -p build
18012 echo "obj-m := conftest.o" >build/Makefile
18013 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18016 ac_status=$?
18017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18021 ac_status=$?
18022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024
18025 { $as_echo "$as_me:$LINENO: result: yes" >&5
18026$as_echo "yes" >&6; }
18027
18028cat >>confdefs.h <<\_ACEOF
18029#define HAVE_2ARGS_BIO_END_IO_T 1
18030_ACEOF
18031
18032
18033else
18034 $as_echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 { $as_echo "$as_me:$LINENO: result: no" >&5
18038$as_echo "no" >&6; }
18039
18040
18041
18042fi
18043
18044 rm -Rf build
18045
18046
18047 EXTRA_KCFLAGS="$tmp_flags"
18048
18049
675de5aa
BB
18050 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
18051$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
18052
18053
18054cat confdefs.h - <<_ACEOF >conftest.c
18055/* confdefs.h. */
18056_ACEOF
18057cat confdefs.h >>conftest.$ac_ext
18058cat >>conftest.$ac_ext <<_ACEOF
18059/* end confdefs.h. */
18060
18061
18062 #include <linux/bio.h>
18063
18064int
18065main (void)
18066{
18067
79713039 18068 int flags __attribute__ ((unused));
675de5aa
BB
18069 flags = BIO_RW_SYNC;
18070
18071 ;
18072 return 0;
18073}
18074
18075_ACEOF
18076
18077
18078 rm -Rf build && mkdir -p build
18079 echo "obj-m := conftest.o" >build/Makefile
18080 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
18084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091
18092 { $as_echo "$as_me:$LINENO: result: yes" >&5
18093$as_echo "yes" >&6; }
18094
18095cat >>confdefs.h <<\_ACEOF
18096#define HAVE_BIO_RW_SYNC 1
18097_ACEOF
18098
18099
18100else
18101 $as_echo "$as_me: failed program was:" >&5
18102sed 's/^/| /' conftest.$ac_ext >&5
18103
18104 { $as_echo "$as_me:$LINENO: result: no" >&5
18105$as_echo "no" >&6; }
18106
18107
18108
18109fi
18110
18111 rm -Rf build
18112
18113
18114
18115
e70e591c
BB
18116 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
18117$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
18118
18119
18120cat confdefs.h - <<_ACEOF >conftest.c
18121/* confdefs.h. */
18122_ACEOF
18123cat confdefs.h >>conftest.$ac_ext
18124cat >>conftest.$ac_ext <<_ACEOF
18125/* end confdefs.h. */
18126
18127
18128 #include <linux/bio.h>
18129
18130int
18131main (void)
18132{
18133
79713039 18134 int flags __attribute__ ((unused));
e70e591c
BB
18135 flags = BIO_RW_SYNCIO;
18136
18137 ;
18138 return 0;
18139}
18140
18141_ACEOF
18142
18143
18144 rm -Rf build && mkdir -p build
18145 echo "obj-m := conftest.o" >build/Makefile
18146 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157
18158 { $as_echo "$as_me:$LINENO: result: yes" >&5
18159$as_echo "yes" >&6; }
18160
18161cat >>confdefs.h <<\_ACEOF
18162#define HAVE_BIO_RW_SYNCIO 1
18163_ACEOF
18164
18165
18166else
18167 $as_echo "$as_me: failed program was:" >&5
18168sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 { $as_echo "$as_me:$LINENO: result: no" >&5
18171$as_echo "no" >&6; }
18172
18173
18174
18175fi
18176
18177 rm -Rf build
18178
18179
18180
18181
675de5aa
BB
18182 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
18183$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
18184
18185
18186cat confdefs.h - <<_ACEOF >conftest.c
18187/* confdefs.h. */
18188_ACEOF
18189cat confdefs.h >>conftest.$ac_ext
18190cat >>conftest.$ac_ext <<_ACEOF
18191/* end confdefs.h. */
18192
18193
18194 #include <linux/bio.h>
18195
18196int
18197main (void)
18198{
18199
79713039 18200 int flags __attribute__ ((unused));
675de5aa
BB
18201 flags = REQ_SYNC;
18202
18203 ;
18204 return 0;
18205}
18206
18207_ACEOF
18208
18209
18210 rm -Rf build && mkdir -p build
18211 echo "obj-m := conftest.o" >build/Makefile
18212 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223
18224 { $as_echo "$as_me:$LINENO: result: yes" >&5
18225$as_echo "yes" >&6; }
18226
18227cat >>confdefs.h <<\_ACEOF
18228#define HAVE_REQ_SYNC 1
18229_ACEOF
18230
18231
18232else
18233 $as_echo "$as_me: failed program was:" >&5
18234sed 's/^/| /' conftest.$ac_ext >&5
18235
18236 { $as_echo "$as_me:$LINENO: result: no" >&5
18237$as_echo "no" >&6; }
18238
18239
18240
18241fi
18242
18243 rm -Rf build
18244
18245
18246
18247
e70e591c
BB
18248 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
18249$as_echo_n "checking whether blk_end_request() is available... " >&6; }
b9c59ec8
PS
18250 tmp_flags="$EXTRA_KCFLAGS"
18251 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18252
18253
18254cat confdefs.h - <<_ACEOF >conftest.c
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260
18261
18262 #include <linux/blkdev.h>
18263
18264int
18265main (void)
18266{
18267
18268 struct request *req = NULL;
18269 (void) blk_end_request(req, 0, 0);
18270
18271 ;
18272 return 0;
18273}
18274
18275_ACEOF
18276
18277
18278 rm -Rf build && mkdir -p build
18279 echo "obj-m := conftest.o" >build/Makefile
18280 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18288 ac_status=$?
18289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291
18292 { $as_echo "$as_me:$LINENO: result: yes" >&5
18293$as_echo "yes" >&6; }
18294
18295cat >>confdefs.h <<\_ACEOF
18296#define HAVE_BLK_END_REQUEST 1
18297_ACEOF
18298
18299
18300else
18301 $as_echo "$as_me: failed program was:" >&5
18302sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 { $as_echo "$as_me:$LINENO: result: no" >&5
18305$as_echo "no" >&6; }
18306
18307
18308
18309fi
18310
18311 rm -Rf build
18312
18313
18314
18315 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
18316$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
18317
18318
18319cat confdefs.h - <<_ACEOF >conftest.c
18320/* confdefs.h. */
18321_ACEOF
18322cat confdefs.h >>conftest.$ac_ext
18323cat >>conftest.$ac_ext <<_ACEOF
18324/* end confdefs.h. */
18325
18326
18327 #include <linux/module.h>
18328 #include <linux/blkdev.h>
18329
18330 MODULE_LICENSE("CDDL");
18331
18332int
18333main (void)
18334{
18335
18336 struct request *req = NULL;
18337 (void) blk_end_request(req, 0, 0);
18338
18339 ;
18340 return 0;
18341}
18342
18343_ACEOF
18344
18345
18346 rm -Rf build && mkdir -p build
18347 echo "obj-m := conftest.o" >build/Makefile
18348 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359
18360 { $as_echo "$as_me:$LINENO: result: no" >&5
18361$as_echo "no" >&6; }
18362
18363else
18364 $as_echo "$as_me: failed program was:" >&5
18365sed 's/^/| /' conftest.$ac_ext >&5
18366
18367 { $as_echo "$as_me:$LINENO: result: yes" >&5
18368$as_echo "yes" >&6; }
18369
18370cat >>confdefs.h <<\_ACEOF
18371#define HAVE_BLK_END_REQUEST_GPL_ONLY 1
18372_ACEOF
18373
18374
18375
18376
18377fi
18378
18379 rm -Rf build
18380
18381
b9c59ec8 18382 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
18383
18384
18385 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
18386$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
b9c59ec8
PS
18387 tmp_flags="$EXTRA_KCFLAGS"
18388 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18389
18390
18391cat confdefs.h - <<_ACEOF >conftest.c
18392/* confdefs.h. */
18393_ACEOF
18394cat confdefs.h >>conftest.$ac_ext
18395cat >>conftest.$ac_ext <<_ACEOF
18396/* end confdefs.h. */
18397
18398
18399 #include <linux/blkdev.h>
18400
18401int
18402main (void)
18403{
18404
18405 struct request_queue *q = NULL;
18406 (void) blk_fetch_request(q);
18407
18408 ;
18409 return 0;
18410}
18411
18412_ACEOF
18413
18414
18415 rm -Rf build && mkdir -p build
18416 echo "obj-m := conftest.o" >build/Makefile
18417 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
18421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; }; then
18428
18429 { $as_echo "$as_me:$LINENO: result: yes" >&5
18430$as_echo "yes" >&6; }
18431
18432cat >>confdefs.h <<\_ACEOF
18433#define HAVE_BLK_FETCH_REQUEST 1
18434_ACEOF
18435
18436
18437else
18438 $as_echo "$as_me: failed program was:" >&5
18439sed 's/^/| /' conftest.$ac_ext >&5
18440
18441 { $as_echo "$as_me:$LINENO: result: no" >&5
18442$as_echo "no" >&6; }
18443
18444
18445
18446fi
18447
18448 rm -Rf build
18449
18450
b9c59ec8 18451 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
18452
18453
18454 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
18455$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
b9c59ec8
PS
18456 tmp_flags="$EXTRA_KCFLAGS"
18457 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18458
18459
18460cat confdefs.h - <<_ACEOF >conftest.c
18461/* confdefs.h. */
18462_ACEOF
18463cat confdefs.h >>conftest.$ac_ext
18464cat >>conftest.$ac_ext <<_ACEOF
18465/* end confdefs.h. */
18466
18467
18468 #include <linux/blkdev.h>
18469
18470int
18471main (void)
18472{
18473
18474 struct request_queue *q = NULL;
18475 struct request *req = NULL;
18476 blk_requeue_request(q, req);
18477
18478 ;
18479 return 0;
18480}
18481
18482_ACEOF
18483
18484
18485 rm -Rf build && mkdir -p build
18486 echo "obj-m := conftest.o" >build/Makefile
18487 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18489 (eval $ac_try) 2>&5
18490 ac_status=$?
18491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18495 ac_status=$?
18496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; }; then
18498
18499 { $as_echo "$as_me:$LINENO: result: yes" >&5
18500$as_echo "yes" >&6; }
18501
18502cat >>confdefs.h <<\_ACEOF
18503#define HAVE_BLK_REQUEUE_REQUEST 1
18504_ACEOF
18505
18506
18507else
18508 $as_echo "$as_me: failed program was:" >&5
18509sed 's/^/| /' conftest.$ac_ext >&5
18510
18511 { $as_echo "$as_me:$LINENO: result: no" >&5
18512$as_echo "no" >&6; }
18513
18514
18515
18516fi
18517
18518 rm -Rf build
18519
18520
b9c59ec8 18521 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
18522
18523
18524 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
18525$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
b9c59ec8
PS
18526 tmp_flags="$EXTRA_KCFLAGS"
18527 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18528
18529
18530cat confdefs.h - <<_ACEOF >conftest.c
18531/* confdefs.h. */
18532_ACEOF
18533cat confdefs.h >>conftest.$ac_ext
18534cat >>conftest.$ac_ext <<_ACEOF
18535/* end confdefs.h. */
18536
18537
18538 #include <linux/blkdev.h>
18539
18540int
18541main (void)
18542{
18543
18544 struct request *req = NULL;
18545 (void) blk_rq_bytes(req);
18546
18547 ;
18548 return 0;
18549}
18550
18551_ACEOF
18552
18553
18554 rm -Rf build && mkdir -p build
18555 echo "obj-m := conftest.o" >build/Makefile
18556 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18558 (eval $ac_try) 2>&5
18559 ac_status=$?
18560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18564 ac_status=$?
18565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567
18568 { $as_echo "$as_me:$LINENO: result: yes" >&5
18569$as_echo "yes" >&6; }
18570
18571cat >>confdefs.h <<\_ACEOF
18572#define HAVE_BLK_RQ_BYTES 1
18573_ACEOF
18574
18575
18576else
18577 $as_echo "$as_me: failed program was:" >&5
18578sed 's/^/| /' conftest.$ac_ext >&5
18579
18580 { $as_echo "$as_me:$LINENO: result: no" >&5
18581$as_echo "no" >&6; }
18582
18583
18584
18585fi
18586
18587 rm -Rf build
18588
18589
18590
18591 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
18592$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
18593
18594
18595cat confdefs.h - <<_ACEOF >conftest.c
18596/* confdefs.h. */
18597_ACEOF
18598cat confdefs.h >>conftest.$ac_ext
18599cat >>conftest.$ac_ext <<_ACEOF
18600/* end confdefs.h. */
18601
18602
18603 #include <linux/module.h>
18604 #include <linux/blkdev.h>
18605
18606 MODULE_LICENSE("CDDL");
18607
18608int
18609main (void)
18610{
18611
18612 struct request *req = NULL;
18613 (void) blk_rq_bytes(req);
18614
18615 ;
18616 return 0;
18617}
18618
18619_ACEOF
18620
18621
18622 rm -Rf build && mkdir -p build
18623 echo "obj-m := conftest.o" >build/Makefile
18624 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635
18636 { $as_echo "$as_me:$LINENO: result: no" >&5
18637$as_echo "no" >&6; }
18638
18639else
18640 $as_echo "$as_me: failed program was:" >&5
18641sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 { $as_echo "$as_me:$LINENO: result: yes" >&5
18644$as_echo "yes" >&6; }
18645
18646cat >>confdefs.h <<\_ACEOF
18647#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
18648_ACEOF
18649
18650
18651
18652
18653fi
18654
18655 rm -Rf build
18656
18657
b9c59ec8 18658 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
18659
18660
18661 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
18662$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
b9c59ec8
PS
18663 tmp_flags="$EXTRA_KCFLAGS"
18664 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18665
18666
18667cat confdefs.h - <<_ACEOF >conftest.c
18668/* confdefs.h. */
18669_ACEOF
18670cat confdefs.h >>conftest.$ac_ext
18671cat >>conftest.$ac_ext <<_ACEOF
18672/* end confdefs.h. */
18673
18674
18675 #include <linux/blkdev.h>
18676
18677int
18678main (void)
18679{
18680
18681 struct request *req = NULL;
18682 (void) blk_rq_pos(req);
18683
18684 ;
18685 return 0;
18686}
18687
18688_ACEOF
18689
18690
18691 rm -Rf build && mkdir -p build
18692 echo "obj-m := conftest.o" >build/Makefile
18693 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704
18705 { $as_echo "$as_me:$LINENO: result: yes" >&5
18706$as_echo "yes" >&6; }
18707
18708cat >>confdefs.h <<\_ACEOF
18709#define HAVE_BLK_RQ_POS 1
18710_ACEOF
18711
18712
18713else
18714 $as_echo "$as_me: failed program was:" >&5
18715sed 's/^/| /' conftest.$ac_ext >&5
18716
18717 { $as_echo "$as_me:$LINENO: result: no" >&5
18718$as_echo "no" >&6; }
18719
18720
18721
18722fi
18723
18724 rm -Rf build
18725
18726
b9c59ec8 18727 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
18728
18729
18730 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
18731$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
b9c59ec8
PS
18732 tmp_flags="$EXTRA_KCFLAGS"
18733 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18734
18735
18736cat confdefs.h - <<_ACEOF >conftest.c
18737/* confdefs.h. */
18738_ACEOF
18739cat confdefs.h >>conftest.$ac_ext
18740cat >>conftest.$ac_ext <<_ACEOF
18741/* end confdefs.h. */
18742
18743
18744 #include <linux/blkdev.h>
18745
18746int
18747main (void)
18748{
18749
18750 struct request *req = NULL;
18751 (void) blk_rq_sectors(req);
18752
18753 ;
18754 return 0;
18755}
18756
18757_ACEOF
18758
18759
18760 rm -Rf build && mkdir -p build
18761 echo "obj-m := conftest.o" >build/Makefile
18762 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773
18774 { $as_echo "$as_me:$LINENO: result: yes" >&5
18775$as_echo "yes" >&6; }
18776
18777cat >>confdefs.h <<\_ACEOF
18778#define HAVE_BLK_RQ_SECTORS 1
18779_ACEOF
18780
18781
18782else
18783 $as_echo "$as_me: failed program was:" >&5
18784sed 's/^/| /' conftest.$ac_ext >&5
18785
18786 { $as_echo "$as_me:$LINENO: result: no" >&5
18787$as_echo "no" >&6; }
18788
18789
18790
18791fi
18792
18793 rm -Rf build
18794
18795
b9c59ec8 18796 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
18797
18798
18799 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
18800$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
b9c59ec8
PS
18801 tmp_flags="$EXTRA_KCFLAGS"
18802 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18803
18804
18805cat confdefs.h - <<_ACEOF >conftest.c
18806/* confdefs.h. */
18807_ACEOF
18808cat confdefs.h >>conftest.$ac_ext
18809cat >>conftest.$ac_ext <<_ACEOF
18810/* end confdefs.h. */
18811
18812
18813 #include <linux/blkdev.h>
18814
18815int
18816main (void)
18817{
18818
18819 struct gendisk *disk = NULL;
18820 (void) get_disk_ro(disk);
18821
18822 ;
18823 return 0;
18824}
18825
18826_ACEOF
18827
18828
18829 rm -Rf build && mkdir -p build
18830 echo "obj-m := conftest.o" >build/Makefile
18831 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18833 (eval $ac_try) 2>&5
18834 ac_status=$?
18835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842
18843 { $as_echo "$as_me:$LINENO: result: yes" >&5
18844$as_echo "yes" >&6; }
18845
18846cat >>confdefs.h <<\_ACEOF
18847#define HAVE_GET_DISK_RO 1
18848_ACEOF
18849
18850
18851else
18852 $as_echo "$as_me: failed program was:" >&5
18853sed 's/^/| /' conftest.$ac_ext >&5
18854
18855 { $as_echo "$as_me:$LINENO: result: no" >&5
18856$as_echo "no" >&6; }
18857
18858
18859
18860fi
18861
18862 rm -Rf build
18863
18864
b9c59ec8 18865 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
18866
18867
18868 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
18869$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
b9c59ec8
PS
18870 tmp_flags="$EXTRA_KCFLAGS"
18871 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18872
18873
18874cat confdefs.h - <<_ACEOF >conftest.c
18875/* confdefs.h. */
18876_ACEOF
18877cat confdefs.h >>conftest.$ac_ext
18878cat >>conftest.$ac_ext <<_ACEOF
18879/* end confdefs.h. */
18880
18881
18882 #include <linux/blkdev.h>
18883
18884int
18885main (void)
18886{
18887
18888 struct request *req = NULL;
18889 (void) rq_is_sync(req);
18890
18891 ;
18892 return 0;
18893}
18894
18895_ACEOF
18896
18897
18898 rm -Rf build && mkdir -p build
18899 echo "obj-m := conftest.o" >build/Makefile
18900 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18908 ac_status=$?
18909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911
18912 { $as_echo "$as_me:$LINENO: result: yes" >&5
18913$as_echo "yes" >&6; }
18914
18915cat >>confdefs.h <<\_ACEOF
18916#define HAVE_RQ_IS_SYNC 1
18917_ACEOF
18918
18919
18920else
18921 $as_echo "$as_me: failed program was:" >&5
18922sed 's/^/| /' conftest.$ac_ext >&5
18923
18924 { $as_echo "$as_me:$LINENO: result: no" >&5
18925$as_echo "no" >&6; }
18926
18927
18928
18929fi
18930
18931 rm -Rf build
18932
18933
b9c59ec8 18934 EXTRA_KCFLAGS="$tmp_flags"
e70e591c
BB
18935
18936
18937 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
18938$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
b9c59ec8
PS
18939 tmp_flags="$EXTRA_KCFLAGS"
18940 EXTRA_KCFLAGS="-Wno-unused-but-set-variable"
e70e591c
BB
18941
18942
18943cat confdefs.h - <<_ACEOF >conftest.c
18944/* confdefs.h. */
18945_ACEOF
18946cat confdefs.h >>conftest.$ac_ext
18947cat >>conftest.$ac_ext <<_ACEOF
18948/* end confdefs.h. */
18949
18950
18951 #include <linux/blkdev.h>
18952
18953int
18954main (void)
18955{
18956
18957 struct bio_vec *bv;
18958 struct req_iterator iter;
18959 struct request *req = NULL;
18960 rq_for_each_segment(bv, req, iter) { }
18961
18962 ;
18963 return 0;
18964}
18965
18966_ACEOF
18967
18968
18969 rm -Rf build && mkdir -p build
18970 echo "obj-m := conftest.o" >build/Makefile
18971 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18978 (eval $ac_try) 2>&5
18979 ac_status=$?
18980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); }; }; then
18982
18983 { $as_echo "$as_me:$LINENO: result: yes" >&5
18984$as_echo "yes" >&6; }
18985
18986cat >>confdefs.h <<\_ACEOF
18987#define HAVE_RQ_FOR_EACH_SEGMENT 1
18988_ACEOF
18989
18990
18991else
18992 $as_echo "$as_me: failed program was:" >&5
18993sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 { $as_echo "$as_me:$LINENO: result: no" >&5
18996$as_echo "no" >&6; }
18997
18998
18999
777d4af8
BB
19000fi
19001
19002 rm -Rf build
19003
19004
b9c59ec8 19005 EXTRA_KCFLAGS="$tmp_flags"
777d4af8
BB
19006
19007 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
19008$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
19009
19010
19011cat confdefs.h - <<_ACEOF >conftest.c
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017
19018
19019 #include <linux/fs.h>
19020 #include <linux/xattr.h>
19021
19022 const struct xattr_handler xattr_test_handler = {
19023 .prefix = "test",
19024 .get = NULL,
19025 .set = NULL,
19026 };
19027
19028 const struct xattr_handler *xattr_handlers[] = {
19029 &xattr_test_handler,
19030 };
19031
19032int
19033main (void)
19034{
19035
79713039 19036 struct super_block sb __attribute__ ((unused));
777d4af8
BB
19037
19038 sb.s_xattr = xattr_handlers;
19039
19040 ;
19041 return 0;
19042}
19043
19044_ACEOF
19045
19046
19047 rm -Rf build && mkdir -p build
19048 echo "obj-m := conftest.o" >build/Makefile
19049 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056 (eval $ac_try) 2>&5
19057 ac_status=$?
19058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059 (exit $ac_status); }; }; then
19060
19061 { $as_echo "$as_me:$LINENO: result: yes" >&5
19062$as_echo "yes" >&6; }
19063
19064cat >>confdefs.h <<\_ACEOF
19065#define HAVE_CONST_XATTR_HANDLER 1
19066_ACEOF
19067
19068
19069else
19070 $as_echo "$as_me: failed program was:" >&5
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
19073 { $as_echo "$as_me:$LINENO: result: no" >&5
19074$as_echo "no" >&6; }
19075
19076
19077
e70e591c
BB
19078fi
19079
19080 rm -Rf build
19081
19082
19083
19084
f9637c6c
BB
19085 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
19086$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
19087
19088
19089cat confdefs.h - <<_ACEOF >conftest.c
19090/* confdefs.h. */
19091_ACEOF
19092cat confdefs.h >>conftest.$ac_ext
19093cat >>conftest.$ac_ext <<_ACEOF
19094/* end confdefs.h. */
19095
19096
19097 #include <linux/xattr.h>
19098
19099int
19100main (void)
19101{
19102
19103 int (*get)(struct dentry *dentry, const char *name,
19104 void *buffer, size_t size, int handler_flags) = NULL;
79713039 19105 struct xattr_handler xops __attribute__ ((unused));
f9637c6c
BB
19106
19107 xops.get = get;
19108
19109 ;
19110 return 0;
19111}
19112
19113_ACEOF
19114
19115
19116 rm -Rf build && mkdir -p build
19117 echo "obj-m := conftest.o" >build/Makefile
19118 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129
19130 { $as_echo "$as_me:$LINENO: result: yes" >&5
19131$as_echo "yes" >&6; }
19132
19133cat >>confdefs.h <<\_ACEOF
19134#define HAVE_DENTRY_XATTR_GET 1
19135_ACEOF
19136
19137
19138else
19139 $as_echo "$as_me: failed program was:" >&5
19140sed 's/^/| /' conftest.$ac_ext >&5
19141
19142 { $as_echo "$as_me:$LINENO: result: no" >&5
19143$as_echo "no" >&6; }
19144
19145
19146
19147fi
19148
19149 rm -Rf build
19150
19151
19152
19153
19154 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
19155$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
19156
19157
19158cat confdefs.h - <<_ACEOF >conftest.c
19159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
19164
19165
19166 #include <linux/xattr.h>
19167
19168int
19169main (void)
19170{
19171
19172 int (*set)(struct dentry *dentry, const char *name,
19173 const void *buffer, size_t size, int flags,
19174 int handler_flags) = NULL;
79713039 19175 struct xattr_handler xops __attribute__ ((unused));
f9637c6c
BB
19176
19177 xops.set = set;
19178
19179 ;
19180 return 0;
19181}
19182
19183_ACEOF
19184
19185
19186 rm -Rf build && mkdir -p build
19187 echo "obj-m := conftest.o" >build/Makefile
19188 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
19199
19200 { $as_echo "$as_me:$LINENO: result: yes" >&5
19201$as_echo "yes" >&6; }
19202
19203cat >>confdefs.h <<\_ACEOF
19204#define HAVE_DENTRY_XATTR_SET 1
19205_ACEOF
19206
19207
19208else
19209 $as_echo "$as_me: failed program was:" >&5
19210sed 's/^/| /' conftest.$ac_ext >&5
19211
19212 { $as_echo "$as_me:$LINENO: result: no" >&5
19213$as_echo "no" >&6; }
19214
19215
19216
19217fi
19218
19219 rm -Rf build
19220
19221
19222
19223
adcd70bd
BB
19224 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
19225$as_echo_n "checking whether fops->fsync() wants... " >&6; }
19226
7268e1be
BB
19227
19228
19229cat confdefs.h - <<_ACEOF >conftest.c
19230/* confdefs.h. */
19231_ACEOF
19232cat confdefs.h >>conftest.$ac_ext
19233cat >>conftest.$ac_ext <<_ACEOF
19234/* end confdefs.h. */
19235
19236
19237 #include <linux/fs.h>
19238
19239int
19240main (void)
19241{
19242
adcd70bd 19243 int (*fsync) (struct file *, struct dentry *, int) = NULL;
79713039 19244 struct file_operations fops __attribute__ ((unused));
7268e1be
BB
19245
19246 fops.fsync = fsync;
19247
19248 ;
19249 return 0;
19250}
19251
19252_ACEOF
19253
19254
19255 rm -Rf build && mkdir -p build
19256 echo "obj-m := conftest.o" >build/Makefile
19257 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; }; then
19268
adcd70bd
BB
19269 { $as_echo "$as_me:$LINENO: result: dentry" >&5
19270$as_echo "dentry" >&6; }
7268e1be
BB
19271
19272cat >>confdefs.h <<\_ACEOF
adcd70bd
BB
19273#define HAVE_FSYNC_WITH_DENTRY 1
19274_ACEOF
19275
19276
19277else
19278 $as_echo "$as_me: failed program was:" >&5
19279sed 's/^/| /' conftest.$ac_ext >&5
19280
19281
19282
19283
19284fi
19285
19286 rm -Rf build
19287
19288
19289
19290
19291
19292
19293cat confdefs.h - <<_ACEOF >conftest.c
19294/* confdefs.h. */
19295_ACEOF
19296cat confdefs.h >>conftest.$ac_ext
19297cat >>conftest.$ac_ext <<_ACEOF
19298/* end confdefs.h. */
19299
19300
19301 #include <linux/fs.h>
19302
19303int
19304main (void)
19305{
19306
19307 int (*fsync) (struct file *, int) = NULL;
19308 struct file_operations fops __attribute__ ((unused));
19309
19310 fops.fsync = fsync;
19311
19312 ;
19313 return 0;
19314}
19315
19316_ACEOF
19317
19318
19319 rm -Rf build && mkdir -p build
19320 echo "obj-m := conftest.o" >build/Makefile
19321 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332
19333 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
19334$as_echo "no dentry" >&6; }
19335
19336cat >>confdefs.h <<\_ACEOF
19337#define HAVE_FSYNC_WITHOUT_DENTRY 1
7268e1be
BB
19338_ACEOF
19339
19340
19341else
19342 $as_echo "$as_me: failed program was:" >&5
19343sed 's/^/| /' conftest.$ac_ext >&5
19344
7268e1be
BB
19345
19346
19347
19348fi
19349
19350 rm -Rf build
19351
19352
19353
19354
adcd70bd
BB
19355
19356
19357cat confdefs.h - <<_ACEOF >conftest.c
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363
19364
19365 #include <linux/fs.h>
19366
19367int
19368main (void)
19369{
19370
19371 int (*fsync) (struct file *, loff_t, loff_t, int) = NULL;
19372 struct file_operations fops __attribute__ ((unused));
19373
19374 fops.fsync = fsync;
19375
19376 ;
19377 return 0;
19378}
19379
19380_ACEOF
19381
19382
19383 rm -Rf build && mkdir -p build
19384 echo "obj-m := conftest.o" >build/Makefile
19385 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396
19397 { $as_echo "$as_me:$LINENO: result: range" >&5
19398$as_echo "range" >&6; }
19399
19400cat >>confdefs.h <<\_ACEOF
19401#define HAVE_FSYNC_RANGE 1
19402_ACEOF
19403
19404
19405else
19406 $as_echo "$as_me: failed program was:" >&5
19407sed 's/^/| /' conftest.$ac_ext >&5
19408
19409
19410
19411
19412fi
19413
19414 rm -Rf build
19415
19416
19417
19418
19419
2c395def
BB
19420 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
19421$as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
19422
19423
19424cat confdefs.h - <<_ACEOF >conftest.c
19425/* confdefs.h. */
19426_ACEOF
19427cat confdefs.h >>conftest.$ac_ext
19428cat >>conftest.$ac_ext <<_ACEOF
19429/* end confdefs.h. */
19430
19431
19432 #include <linux/fs.h>
19433
19434int
19435main (void)
19436{
19437
19438 void (*evict_inode) (struct inode *) = NULL;
ddd052aa
BB
19439 struct super_operations sops __attribute__ ((unused)) = {
19440 .evict_inode = evict_inode,
19441 };
2c395def
BB
19442
19443 ;
19444 return 0;
19445}
19446
19447_ACEOF
19448
19449
19450 rm -Rf build && mkdir -p build
19451 echo "obj-m := conftest.o" >build/Makefile
19452 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19459 (eval $ac_try) 2>&5
19460 ac_status=$?
19461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463
19464 { $as_echo "$as_me:$LINENO: result: yes" >&5
19465$as_echo "yes" >&6; }
19466
19467cat >>confdefs.h <<\_ACEOF
19468#define HAVE_EVICT_INODE 1
19469_ACEOF
19470
19471
19472else
19473 $as_echo "$as_me: failed program was:" >&5
19474sed 's/^/| /' conftest.$ac_ext >&5
19475
19476 { $as_echo "$as_me:$LINENO: result: no" >&5
19477$as_echo "no" >&6; }
19478
19479
19480
19481fi
19482
19483 rm -Rf build
19484
19485
19486
19487
bdf4328b
BB
19488 { $as_echo "$as_me:$LINENO: checking whether symbol insert_inode_locked is exported" >&5
19489$as_echo_n "checking whether symbol insert_inode_locked is exported... " >&6; }
19490 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
19491 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19492 rc=$?
19493 if test $rc -ne 0; then
8366cd6a 19494
bdf4328b
BB
19495 export=0
19496 for file in fs/inode.c; do
19497 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" "$LINUX/$file" 2>/dev/null
19498 rc=$?
8366cd6a
PS
19499 if test $rc -eq 0; then
19500
19501 export=1
19502 break;
19503
19504fi
19505
bdf4328b
BB
19506 done
19507 if test $export -eq 0; then
8366cd6a 19508
bdf4328b
BB
19509 { $as_echo "$as_me:$LINENO: result: no" >&5
19510$as_echo "no" >&6; }
19511
8366cd6a
PS
19512
19513else
19514
bdf4328b
BB
19515 { $as_echo "$as_me:$LINENO: result: yes" >&5
19516$as_echo "yes" >&6; }
19517
19518cat >>confdefs.h <<\_ACEOF
19519#define HAVE_INSERT_INODE_LOCKED 1
19520_ACEOF
19521
8366cd6a
PS
19522
19523fi
19524
19525
19526else
19527
bdf4328b
BB
19528 { $as_echo "$as_me:$LINENO: result: yes" >&5
19529$as_echo "yes" >&6; }
19530
19531cat >>confdefs.h <<\_ACEOF
19532#define HAVE_INSERT_INODE_LOCKED 1
19533_ACEOF
19534
8366cd6a
PS
19535
19536fi
19537
bdf4328b
BB
19538
19539
19540
055656d4
GB
19541 { $as_echo "$as_me:$LINENO: checking whether symbol d_obtain_alias is exported" >&5
19542$as_echo_n "checking whether symbol d_obtain_alias is exported... " >&6; }
19543 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
19544 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19545 rc=$?
19546 if test $rc -ne 0; then
8366cd6a 19547
055656d4
GB
19548 export=0
19549 for file in fs/dcache.c; do
19550 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" "$LINUX/$file" 2>/dev/null
19551 rc=$?
8366cd6a
PS
19552 if test $rc -eq 0; then
19553
19554 export=1
19555 break;
19556
19557fi
19558
055656d4
GB
19559 done
19560 if test $export -eq 0; then
8366cd6a 19561
055656d4
GB
19562 { $as_echo "$as_me:$LINENO: result: no" >&5
19563$as_echo "no" >&6; }
19564
8366cd6a
PS
19565
19566else
19567
055656d4
GB
19568 { $as_echo "$as_me:$LINENO: result: yes" >&5
19569$as_echo "yes" >&6; }
19570
19571cat >>confdefs.h <<\_ACEOF
19572#define HAVE_D_OBTAIN_ALIAS 1
19573_ACEOF
19574
8366cd6a
PS
19575
19576fi
19577
19578
19579else
19580
055656d4
GB
19581 { $as_echo "$as_me:$LINENO: result: yes" >&5
19582$as_echo "yes" >&6; }
19583
19584cat >>confdefs.h <<\_ACEOF
19585#define HAVE_D_OBTAIN_ALIAS 1
19586_ACEOF
19587
8366cd6a
PS
19588
19589fi
19590
055656d4
GB
19591
19592
19593
df554c14
BB
19594 { $as_echo "$as_me:$LINENO: checking whether symbol check_disk_size_change is exported" >&5
19595$as_echo_n "checking whether symbol check_disk_size_change is exported... " >&6; }
19596 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
19597 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19598 rc=$?
19599 if test $rc -ne 0; then
8366cd6a 19600
df554c14
BB
19601 export=0
19602 for file in fs/block_dev.c; do
19603 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" "$LINUX/$file" 2>/dev/null
19604 rc=$?
8366cd6a
PS
19605 if test $rc -eq 0; then
19606
19607 export=1
19608 break;
19609
19610fi
19611
df554c14
BB
19612 done
19613 if test $export -eq 0; then
8366cd6a 19614
df554c14
BB
19615 { $as_echo "$as_me:$LINENO: result: no" >&5
19616$as_echo "no" >&6; }
19617
8366cd6a
PS
19618
19619else
19620
df554c14
BB
19621 { $as_echo "$as_me:$LINENO: result: yes" >&5
19622$as_echo "yes" >&6; }
19623
19624cat >>confdefs.h <<\_ACEOF
19625#define HAVE_CHECK_DISK_SIZE_CHANGE 1
19626_ACEOF
19627
8366cd6a
PS
19628
19629fi
19630
19631
19632else
19633
df554c14
BB
19634 { $as_echo "$as_me:$LINENO: result: yes" >&5
19635$as_echo "yes" >&6; }
19636
19637cat >>confdefs.h <<\_ACEOF
19638#define HAVE_CHECK_DISK_SIZE_CHANGE 1
19639_ACEOF
19640
8366cd6a
PS
19641
19642fi
19643
df554c14
BB
19644
19645
19646
b3129792
PJ
19647 { $as_echo "$as_me:$LINENO: checking whether symbol truncate_setsize is exported" >&5
19648$as_echo_n "checking whether symbol truncate_setsize is exported... " >&6; }
19649 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
19650 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19651 rc=$?
19652 if test $rc -ne 0; then
8366cd6a 19653
b3129792
PJ
19654 export=0
19655 for file in mm/truncate.c; do
19656 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" "$LINUX/$file" 2>/dev/null
19657 rc=$?
8366cd6a
PS
19658 if test $rc -eq 0; then
19659
19660 export=1
19661 break;
19662
19663fi
19664
b3129792
PJ
19665 done
19666 if test $export -eq 0; then
8366cd6a 19667
b3129792
PJ
19668 { $as_echo "$as_me:$LINENO: result: no" >&5
19669$as_echo "no" >&6; }
19670
8366cd6a
PS
19671
19672else
19673
b3129792
PJ
19674 { $as_echo "$as_me:$LINENO: result: yes" >&5
19675$as_echo "yes" >&6; }
19676
19677cat >>confdefs.h <<\_ACEOF
19678#define HAVE_TRUNCATE_SETSIZE 1
19679_ACEOF
19680
8366cd6a
PS
19681
19682fi
19683
19684
19685else
19686
b3129792
PJ
19687 { $as_echo "$as_me:$LINENO: result: yes" >&5
19688$as_echo "yes" >&6; }
19689
19690cat >>confdefs.h <<\_ACEOF
19691#define HAVE_TRUNCATE_SETSIZE 1
19692_ACEOF
19693
8366cd6a
PS
19694
19695fi
19696
b3129792
PJ
19697
19698
19699
5c03efc3
BB
19700 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
19701$as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
19702 tmp_flags="$EXTRA_KCFLAGS"
19703 EXTRA_KCFLAGS="-Werror"
19704
19705
19706cat confdefs.h - <<_ACEOF >conftest.c
19707/* confdefs.h. */
19708_ACEOF
19709cat confdefs.h >>conftest.$ac_ext
19710cat >>conftest.$ac_ext <<_ACEOF
19711/* end confdefs.h. */
19712
19713
19714 #include <linux/security.h>
19715
19716int
19717main (void)
19718{
19719
19720 security_inode_init_security(NULL,NULL,NULL,NULL,NULL,NULL);
19721
19722 ;
19723 return 0;
19724}
19725
19726_ACEOF
19727
19728
19729 rm -Rf build && mkdir -p build
19730 echo "obj-m := conftest.o" >build/Makefile
19731 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742
19743 { $as_echo "$as_me:$LINENO: result: yes" >&5
19744$as_echo "yes" >&6; }
19745
19746cat >>confdefs.h <<\_ACEOF
19747#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
19748_ACEOF
19749
19750
19751else
19752 $as_echo "$as_me: failed program was:" >&5
19753sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 { $as_echo "$as_me:$LINENO: result: no" >&5
19756$as_echo "no" >&6; }
19757
19758
19759
19760fi
19761
19762 rm -Rf build
19763
19764
19765 EXTRA_KCFLAGS="$tmp_flags"
19766
19767
2cf7f52b
BB
19768 { $as_echo "$as_me:$LINENO: checking whether symbol mount_nodev is exported" >&5
19769$as_echo_n "checking whether symbol mount_nodev is exported... " >&6; }
19770 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
19771 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19772 rc=$?
19773 if test $rc -ne 0; then
8366cd6a 19774
2cf7f52b
BB
19775 export=0
19776 for file in fs/super.c; do
19777 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" "$LINUX/$file" 2>/dev/null
19778 rc=$?
8366cd6a
PS
19779 if test $rc -eq 0; then
19780
19781 export=1
19782 break;
19783
19784fi
19785
2cf7f52b
BB
19786 done
19787 if test $export -eq 0; then
8366cd6a 19788
2cf7f52b
BB
19789 { $as_echo "$as_me:$LINENO: result: no" >&5
19790$as_echo "no" >&6; }
19791
8366cd6a
PS
19792
19793else
19794
2cf7f52b
BB
19795 { $as_echo "$as_me:$LINENO: result: yes" >&5
19796$as_echo "yes" >&6; }
19797
19798cat >>confdefs.h <<\_ACEOF
19799#define HAVE_MOUNT_NODEV 1
19800_ACEOF
19801
8366cd6a
PS
19802
19803fi
19804
19805
19806else
19807
2cf7f52b
BB
19808 { $as_echo "$as_me:$LINENO: result: yes" >&5
19809$as_echo "yes" >&6; }
19810
19811cat >>confdefs.h <<\_ACEOF
19812#define HAVE_MOUNT_NODEV 1
19813_ACEOF
19814
8366cd6a
PS
19815
19816fi
19817
2cf7f52b
BB
19818
19819
19820
76659dc1
BB
19821 { $as_echo "$as_me:$LINENO: checking whether super_block has s_bdi" >&5
19822$as_echo_n "checking whether super_block has s_bdi... " >&6; }
19823
19824
19825cat confdefs.h - <<_ACEOF >conftest.c
19826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h. */
19831
19832
19833 #include <linux/fs.h>
19834
19835int
19836main (void)
19837{
19838
19839 struct super_block sb __attribute__ ((unused));
19840 sb.s_bdi = NULL;
19841
19842 ;
19843 return 0;
19844}
19845
19846_ACEOF
19847
19848
19849 rm -Rf build && mkdir -p build
19850 echo "obj-m := conftest.o" >build/Makefile
19851 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862
19863 { $as_echo "$as_me:$LINENO: result: yes" >&5
19864$as_echo "yes" >&6; }
19865
19866cat >>confdefs.h <<\_ACEOF
19867#define HAVE_BDI 1
19868_ACEOF
19869
19870
19871else
19872 $as_echo "$as_me: failed program was:" >&5
19873sed 's/^/| /' conftest.$ac_ext >&5
19874
19875 { $as_echo "$as_me:$LINENO: result: no" >&5
19876$as_echo "no" >&6; }
19877
19878
19879
19880fi
19881
19882 rm -Rf build
19883
19884
19885
19886
5547c2f1
BB
19887 { $as_echo "$as_me:$LINENO: checking whether symbol bdi_setup_and_register is exported" >&5
19888$as_echo_n "checking whether symbol bdi_setup_and_register is exported... " >&6; }
19889 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
19890 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
19891 rc=$?
19892 if test $rc -ne 0; then
19893
19894 export=0
19895 for file in mm/backing-dev.c; do
19896 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" "$LINUX/$file" 2>/dev/null
19897 rc=$?
19898 if test $rc -eq 0; then
19899
19900 export=1
19901 break;
19902
19903fi
19904
19905 done
19906 if test $export -eq 0; then
19907
19908 { $as_echo "$as_me:$LINENO: result: no" >&5
19909$as_echo "no" >&6; }
19910
19911
19912else
19913
19914 { $as_echo "$as_me:$LINENO: result: yes" >&5
19915$as_echo "yes" >&6; }
19916
19917cat >>confdefs.h <<\_ACEOF
19918#define HAVE_BDI_SETUP_AND_REGISTER 1
19919_ACEOF
19920
19921
19922fi
19923
19924
19925else
19926
19927 { $as_echo "$as_me:$LINENO: result: yes" >&5
19928$as_echo "yes" >&6; }
19929
19930cat >>confdefs.h <<\_ACEOF
19931#define HAVE_BDI_SETUP_AND_REGISTER 1
19932_ACEOF
19933
19934
19935fi
19936
19937
19938
19939
e70e591c 19940 if test "$LINUX_OBJ" != "$LINUX"; then
8366cd6a 19941
e70e591c 19942 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
8366cd6a
PS
19943
19944fi
19945
e70e591c
BB
19946
19947
19948
8a7e1cee 19949 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
12c1acde 19950 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
6283f55e
BB
19951 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
19952
19953
e70e591c
BB
19954
19955
19956
de0a1c09
BB
19957
19958# Check whether --with-udevdir was given.
19959if test "${with_udevdir+set}" = set; then
19960 withval=$with_udevdir; udevdir=$withval
19961else
19962 udevdir='${exec_prefix}/lib/udev'
19963fi
19964
19965
19966
19967# Check whether --with-udevruledir was given.
19968if test "${with_udevruledir+set}" = set; then
19969 withval=$with_udevruledir; udevruledir=$withval
19970else
19971 udevruledir='${udevdir}/rules.d'
19972fi
19973
19974
19975
19976
19977
19978
e70e591c
BB
19979 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
19980$as_echo_n "checking for target asm dir... " >&6; }
19981 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
19982
19983 case $TARGET_ARCH in
19984 i386|x86_64)
19985 TARGET_ASM_DIR=asm-${TARGET_ARCH}
19986 ;;
19987 *)
19988 TARGET_ASM_DIR=asm-generic
19989 ;;
19990 esac
19991
19992
19993 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
19994$as_echo "$TARGET_ASM_DIR" >&6; }
19995
19996
e70e591c
BB
19997 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
19998$as_echo_n "checking for ioctl()... " >&6; }
19999 cat >conftest.$ac_ext <<_ACEOF
20000/* confdefs.h. */
20001_ACEOF
20002cat confdefs.h >>conftest.$ac_ext
20003cat >>conftest.$ac_ext <<_ACEOF
20004/* end confdefs.h. */
20005#include <unistd.h>
20006
20007_ACEOF
20008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20009 $EGREP "ioctl" >/dev/null 2>&1; then
20010 is_unistd=yes
20011else
20012 is_unistd=no
20013fi
20014rm -f conftest*
20015
20016 cat >conftest.$ac_ext <<_ACEOF
20017/* confdefs.h. */
20018_ACEOF
20019cat confdefs.h >>conftest.$ac_ext
20020cat >>conftest.$ac_ext <<_ACEOF
20021/* end confdefs.h. */
20022#include <sys/ioctl.h>
20023
20024_ACEOF
20025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20026 $EGREP "ioctl" >/dev/null 2>&1; then
20027 is_sys_ioctl=yes
20028else
20029 is_sys_ioctl=no
20030fi
20031rm -f conftest*
20032
20033 cat >conftest.$ac_ext <<_ACEOF
20034/* confdefs.h. */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h. */
20039#include <stropts.h>
20040
20041_ACEOF
20042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20043 $EGREP "ioctl" >/dev/null 2>&1; then
20044 is_stropts=yes
20045else
20046 is_stropts=no
20047fi
20048rm -f conftest*
20049
20050
20051 if test $is_unistd = yes; then
20052 result=unistd.h
20053
20054cat >>confdefs.h <<\_ACEOF
20055#define HAVE_IOCTL_IN_UNISTD_H 1
20056_ACEOF
20057
20058 else
20059
20060 if test $is_sys_ioctl = yes; then
20061 result=sys/ioctl.h
20062
20063cat >>confdefs.h <<\_ACEOF
20064#define HAVE_IOCTL_IN_SYS_IOCTL_H 1
20065_ACEOF
20066
20067 elif test $is_stropts = yes; then
20068
20069cat >>confdefs.h <<\_ACEOF
20070#define HAVE_IOCTL_IN_STROPTS_H 1
20071_ACEOF
20072
20073 else
20074 result=no
20075 fi
20076 fi
20077
20078 if test $result = no; then
20079 { $as_echo "$as_me:$LINENO: result: no" >&5
20080$as_echo "no" >&6; }
20081 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
20082$as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
20083 { (exit 1); exit 1; }; }
20084 else
20085 { $as_echo "$as_me:$LINENO: result: yes" >&5
20086$as_echo "yes" >&6; }
20087 fi
20088
20089
20090 ZLIB=
20091
20092 if test "${ac_cv_header_zlib_h+set}" = set; then
20093 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
20094$as_echo_n "checking for zlib.h... " >&6; }
20095if test "${ac_cv_header_zlib_h+set}" = set; then
20096 $as_echo_n "(cached) " >&6
20097fi
20098{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20099$as_echo "$ac_cv_header_zlib_h" >&6; }
20100else
20101 # Is the header compilable?
20102{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
20103$as_echo_n "checking zlib.h usability... " >&6; }
20104cat >conftest.$ac_ext <<_ACEOF
20105/* confdefs.h. */
20106_ACEOF
20107cat confdefs.h >>conftest.$ac_ext
20108cat >>conftest.$ac_ext <<_ACEOF
20109/* end confdefs.h. */
20110$ac_includes_default
20111#include <zlib.h>
20112_ACEOF
20113rm -f conftest.$ac_objext
20114if { (ac_try="$ac_compile"
20115case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118esac
20119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20120$as_echo "$ac_try_echo") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest.$ac_objext; then
20131 ac_header_compiler=yes
20132else
20133 $as_echo "$as_me: failed program was:" >&5
20134sed 's/^/| /' conftest.$ac_ext >&5
20135
20136 ac_header_compiler=no
20137fi
20138
20139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20141$as_echo "$ac_header_compiler" >&6; }
20142
20143# Is the header present?
20144{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
20145$as_echo_n "checking zlib.h presence... " >&6; }
20146cat >conftest.$ac_ext <<_ACEOF
20147/* confdefs.h. */
20148_ACEOF
20149cat confdefs.h >>conftest.$ac_ext
20150cat >>conftest.$ac_ext <<_ACEOF
20151/* end confdefs.h. */
20152#include <zlib.h>
20153_ACEOF
20154if { (ac_try="$ac_cpp conftest.$ac_ext"
20155case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20158esac
20159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20160$as_echo "$ac_try_echo") >&5
20161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } >/dev/null && {
20168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 }; then
20171 ac_header_preproc=yes
20172else
20173 $as_echo "$as_me: failed program was:" >&5
20174sed 's/^/| /' conftest.$ac_ext >&5
20175
20176 ac_header_preproc=no
20177fi
20178
20179rm -f conftest.err conftest.$ac_ext
20180{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20181$as_echo "$ac_header_preproc" >&6; }
20182
20183# So? What about this header?
20184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20185 yes:no: )
20186 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20187$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20188 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20189$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20190 ac_header_preproc=yes
20191 ;;
20192 no:yes:* )
20193 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20194$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20195 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20196$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20197 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20198$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20199 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20200$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20201 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20202$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20203 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20204$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20205
20206 ;;
20207esac
20208{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
20209$as_echo_n "checking for zlib.h... " >&6; }
20210if test "${ac_cv_header_zlib_h+set}" = set; then
20211 $as_echo_n "(cached) " >&6
20212else
20213 ac_cv_header_zlib_h=$ac_header_preproc
20214fi
20215{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20216$as_echo "$ac_cv_header_zlib_h" >&6; }
20217
20218fi
20219if test "x$ac_cv_header_zlib_h" = x""yes; then
20220 :
20221else
20222 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20224{ { $as_echo "$as_me:$LINENO: error:
20225 *** zlib.h missing, zlib-devel package required
20226See \`config.log' for more details." >&5
20227$as_echo "$as_me: error:
20228 *** zlib.h missing, zlib-devel package required
20229See \`config.log' for more details." >&2;}
20230 { (exit 1); exit 1; }; }; }
20231fi
20232
20233
20234
20235
20236{ $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
20237$as_echo_n "checking for compress2 in -lz... " >&6; }
20238if test "${ac_cv_lib_z_compress2+set}" = set; then
20239 $as_echo_n "(cached) " >&6
20240else
20241 ac_check_lib_save_LIBS=$LIBS
20242LIBS="-lz $LIBS"
20243cat >conftest.$ac_ext <<_ACEOF
20244/* confdefs.h. */
20245_ACEOF
20246cat confdefs.h >>conftest.$ac_ext
20247cat >>conftest.$ac_ext <<_ACEOF
20248/* end confdefs.h. */
20249
20250/* Override any GCC internal prototype to avoid an error.
20251 Use char because int might match the return type of a GCC
20252 builtin and then its argument prototype would still apply. */
20253#ifdef __cplusplus
20254extern "C"
20255#endif
20256char compress2 ();
20257int
20258main ()
20259{
20260return compress2 ();
20261 ;
20262 return 0;
20263}
20264_ACEOF
20265rm -f conftest.$ac_objext conftest$ac_exeext
20266if { (ac_try="$ac_link"
20267case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270esac
20271eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20272$as_echo "$ac_try_echo") >&5
20273 (eval "$ac_link") 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest$ac_exeext && {
20283 test "$cross_compiling" = yes ||
20284 $as_test_x conftest$ac_exeext
20285 }; then
20286 ac_cv_lib_z_compress2=yes
20287else
20288 $as_echo "$as_me: failed program was:" >&5
20289sed 's/^/| /' conftest.$ac_ext >&5
20290
20291 ac_cv_lib_z_compress2=no
20292fi
20293
20294rm -rf conftest.dSYM
20295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20296 conftest$ac_exeext conftest.$ac_ext
20297LIBS=$ac_check_lib_save_LIBS
20298fi
20299{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
20300$as_echo "$ac_cv_lib_z_compress2" >&6; }
20301if test "x$ac_cv_lib_z_compress2" = x""yes; then
20302 cat >>confdefs.h <<_ACEOF
20303#define HAVE_LIBZ 1
20304_ACEOF
20305
20306 LIBS="-lz $LIBS"
20307
20308else
20309 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20311{ { $as_echo "$as_me:$LINENO: error:
20312 *** compress2() missing, zlib-devel package required
20313See \`config.log' for more details." >&5
20314$as_echo "$as_me: error:
20315 *** compress2() missing, zlib-devel package required
20316See \`config.log' for more details." >&2;}
20317 { (exit 1); exit 1; }; }; }
20318fi
20319
20320
20321
20322{ $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
20323$as_echo_n "checking for uncompress in -lz... " >&6; }
20324if test "${ac_cv_lib_z_uncompress+set}" = set; then
20325 $as_echo_n "(cached) " >&6
20326else
20327 ac_check_lib_save_LIBS=$LIBS
20328LIBS="-lz $LIBS"
20329cat >conftest.$ac_ext <<_ACEOF
20330/* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h. */
20335
20336/* Override any GCC internal prototype to avoid an error.
20337 Use char because int might match the return type of a GCC
20338 builtin and then its argument prototype would still apply. */
20339#ifdef __cplusplus
20340extern "C"
20341#endif
20342char uncompress ();
20343int
20344main ()
20345{
20346return uncompress ();
20347 ;
20348 return 0;
20349}
20350_ACEOF
20351rm -f conftest.$ac_objext conftest$ac_exeext
20352if { (ac_try="$ac_link"
20353case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356esac
20357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20358$as_echo "$ac_try_echo") >&5
20359 (eval "$ac_link") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext && {
20369 test "$cross_compiling" = yes ||
20370 $as_test_x conftest$ac_exeext
20371 }; then
20372 ac_cv_lib_z_uncompress=yes
20373else
20374 $as_echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 ac_cv_lib_z_uncompress=no
20378fi
20379
20380rm -rf conftest.dSYM
20381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20382 conftest$ac_exeext conftest.$ac_ext
20383LIBS=$ac_check_lib_save_LIBS
20384fi
20385{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
20386$as_echo "$ac_cv_lib_z_uncompress" >&6; }
20387if test "x$ac_cv_lib_z_uncompress" = x""yes; then
20388 cat >>confdefs.h <<_ACEOF
20389#define HAVE_LIBZ 1
20390_ACEOF
20391
20392 LIBS="-lz $LIBS"
20393
20394else
20395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20397{ { $as_echo "$as_me:$LINENO: error:
20398 *** uncompress() missing, zlib-devel package required
20399See \`config.log' for more details." >&5
20400$as_echo "$as_me: error:
20401 *** uncompress() missing, zlib-devel package required
20402See \`config.log' for more details." >&2;}
20403 { (exit 1); exit 1; }; }; }
20404fi
20405
20406
20407
20408{ $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
20409$as_echo_n "checking for crc32 in -lz... " >&6; }
20410if test "${ac_cv_lib_z_crc32+set}" = set; then
20411 $as_echo_n "(cached) " >&6
20412else
20413 ac_check_lib_save_LIBS=$LIBS
20414LIBS="-lz $LIBS"
20415cat >conftest.$ac_ext <<_ACEOF
20416/* confdefs.h. */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
20420/* end confdefs.h. */
20421
20422/* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20425#ifdef __cplusplus
20426extern "C"
20427#endif
20428char crc32 ();
20429int
20430main ()
20431{
20432return crc32 ();
20433 ;
20434 return 0;
20435}
20436_ACEOF
20437rm -f conftest.$ac_objext conftest$ac_exeext
20438if { (ac_try="$ac_link"
20439case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442esac
20443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20444$as_echo "$ac_try_echo") >&5
20445 (eval "$ac_link") 2>conftest.er1
20446 ac_status=$?
20447 grep -v '^ *+' conftest.er1 >conftest.err
20448 rm -f conftest.er1
20449 cat conftest.err >&5
20450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest$ac_exeext && {
20455 test "$cross_compiling" = yes ||
20456 $as_test_x conftest$ac_exeext
20457 }; then
20458 ac_cv_lib_z_crc32=yes
20459else
20460 $as_echo "$as_me: failed program was:" >&5
20461sed 's/^/| /' conftest.$ac_ext >&5
20462
20463 ac_cv_lib_z_crc32=no
20464fi
20465
20466rm -rf conftest.dSYM
20467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20468 conftest$ac_exeext conftest.$ac_ext
20469LIBS=$ac_check_lib_save_LIBS
20470fi
20471{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
20472$as_echo "$ac_cv_lib_z_crc32" >&6; }
20473if test "x$ac_cv_lib_z_crc32" = x""yes; then
20474 cat >>confdefs.h <<_ACEOF
20475#define HAVE_LIBZ 1
20476_ACEOF
20477
20478 LIBS="-lz $LIBS"
20479
20480else
20481 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20483{ { $as_echo "$as_me:$LINENO: error:
20484 *** crc32() missing, zlib-devel package required
20485See \`config.log' for more details." >&5
20486$as_echo "$as_me: error:
20487 *** crc32() missing, zlib-devel package required
20488See \`config.log' for more details." >&2;}
20489 { (exit 1); exit 1; }; }; }
20490fi
20491
20492
20493 ZLIB="-lz"
20494
20495
20496cat >>confdefs.h <<\_ACEOF
20497#define HAVE_ZLIB 1
20498_ACEOF
20499
20500
20501
20502 LIBUUID=
20503
20504 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
20505 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
20506$as_echo_n "checking for uuid/uuid.h... " >&6; }
20507if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
20508 $as_echo_n "(cached) " >&6
20509fi
20510{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
20511$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
20512else
20513 # Is the header compilable?
20514{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
20515$as_echo_n "checking uuid/uuid.h usability... " >&6; }
20516cat >conftest.$ac_ext <<_ACEOF
20517/* confdefs.h. */
20518_ACEOF
20519cat confdefs.h >>conftest.$ac_ext
20520cat >>conftest.$ac_ext <<_ACEOF
20521/* end confdefs.h. */
20522$ac_includes_default
20523#include <uuid/uuid.h>
20524_ACEOF
20525rm -f conftest.$ac_objext
20526if { (ac_try="$ac_compile"
20527case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530esac
20531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20532$as_echo "$ac_try_echo") >&5
20533 (eval "$ac_compile") 2>conftest.er1
20534 ac_status=$?
20535 grep -v '^ *+' conftest.er1 >conftest.err
20536 rm -f conftest.er1
20537 cat conftest.err >&5
20538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest.$ac_objext; then
20543 ac_header_compiler=yes
20544else
20545 $as_echo "$as_me: failed program was:" >&5
20546sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_header_compiler=no
20549fi
20550
20551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20552{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20553$as_echo "$ac_header_compiler" >&6; }
20554
20555# Is the header present?
20556{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
20557$as_echo_n "checking uuid/uuid.h presence... " >&6; }
20558cat >conftest.$ac_ext <<_ACEOF
20559/* confdefs.h. */
20560_ACEOF
20561cat confdefs.h >>conftest.$ac_ext
20562cat >>conftest.$ac_ext <<_ACEOF
20563/* end confdefs.h. */
20564#include <uuid/uuid.h>
20565_ACEOF
20566if { (ac_try="$ac_cpp conftest.$ac_ext"
20567case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570esac
20571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572$as_echo "$ac_try_echo") >&5
20573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } >/dev/null && {
20580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 }; then
20583 ac_header_preproc=yes
20584else
20585 $as_echo "$as_me: failed program was:" >&5
20586sed 's/^/| /' conftest.$ac_ext >&5
20587
20588 ac_header_preproc=no
20589fi
20590
20591rm -f conftest.err conftest.$ac_ext
20592{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20593$as_echo "$ac_header_preproc" >&6; }
20594
20595# So? What about this header?
20596case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20597 yes:no: )
20598 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
20599$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20600 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
20601$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
20602 ac_header_preproc=yes
20603 ;;
20604 no:yes:* )
20605 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
20606$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
20607 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
20608$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
20609 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
20610$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
20611 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
20612$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
20613 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
20614$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
20615 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
20616$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
20617
20618 ;;
20619esac
20620{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
20621$as_echo_n "checking for uuid/uuid.h... " >&6; }
20622if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
20623 $as_echo_n "(cached) " >&6
20624else
20625 ac_cv_header_uuid_uuid_h=$ac_header_preproc
20626fi
20627{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
20628$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
20629
20630fi
20631if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
20632 :
20633else
20634 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20636{ { $as_echo "$as_me:$LINENO: error:
20637 *** uuid/uuid.h missing, libuuid-devel package required
20638See \`config.log' for more details." >&5
20639$as_echo "$as_me: error:
20640 *** uuid/uuid.h missing, libuuid-devel package required
20641See \`config.log' for more details." >&2;}
20642 { (exit 1); exit 1; }; }; }
20643fi
20644
20645
20646
20647
20648{ $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
20649$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
20650if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
20651 $as_echo_n "(cached) " >&6
20652else
20653 ac_check_lib_save_LIBS=$LIBS
20654LIBS="-luuid $LIBS"
20655cat >conftest.$ac_ext <<_ACEOF
20656/* confdefs.h. */
20657_ACEOF
20658cat confdefs.h >>conftest.$ac_ext
20659cat >>conftest.$ac_ext <<_ACEOF
20660/* end confdefs.h. */
20661
20662/* Override any GCC internal prototype to avoid an error.
20663 Use char because int might match the return type of a GCC
20664 builtin and then its argument prototype would still apply. */
20665#ifdef __cplusplus
20666extern "C"
20667#endif
20668char uuid_generate ();
20669int
20670main ()
20671{
20672return uuid_generate ();
20673 ;
20674 return 0;
20675}
20676_ACEOF
20677rm -f conftest.$ac_objext conftest$ac_exeext
20678if { (ac_try="$ac_link"
20679case "(($ac_try" in
20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20681 *) ac_try_echo=$ac_try;;
20682esac
20683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20684$as_echo "$ac_try_echo") >&5
20685 (eval "$ac_link") 2>conftest.er1
20686 ac_status=$?
20687 grep -v '^ *+' conftest.er1 >conftest.err
20688 rm -f conftest.er1
20689 cat conftest.err >&5
20690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } && {
20692 test -z "$ac_c_werror_flag" ||
20693 test ! -s conftest.err
20694 } && test -s conftest$ac_exeext && {
20695 test "$cross_compiling" = yes ||
20696 $as_test_x conftest$ac_exeext
20697 }; then
20698 ac_cv_lib_uuid_uuid_generate=yes
20699else
20700 $as_echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703 ac_cv_lib_uuid_uuid_generate=no
20704fi
20705
20706rm -rf conftest.dSYM
20707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20708 conftest$ac_exeext conftest.$ac_ext
20709LIBS=$ac_check_lib_save_LIBS
20710fi
20711{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
20712$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
20713if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
20714 cat >>confdefs.h <<_ACEOF
20715#define HAVE_LIBUUID 1
20716_ACEOF
20717
20718 LIBS="-luuid $LIBS"
20719
20720else
20721 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20723{ { $as_echo "$as_me:$LINENO: error:
20724 *** uuid_generate() missing, libuuid-devel package required
20725See \`config.log' for more details." >&5
20726$as_echo "$as_me: error:
20727 *** uuid_generate() missing, libuuid-devel package required
20728See \`config.log' for more details." >&2;}
20729 { (exit 1); exit 1; }; }; }
20730fi
20731
20732
20733
20734{ $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
20735$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
20736if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
20737 $as_echo_n "(cached) " >&6
20738else
20739 ac_check_lib_save_LIBS=$LIBS
20740LIBS="-luuid $LIBS"
20741cat >conftest.$ac_ext <<_ACEOF
20742/* confdefs.h. */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h. */
20747
20748/* Override any GCC internal prototype to avoid an error.
20749 Use char because int might match the return type of a GCC
20750 builtin and then its argument prototype would still apply. */
20751#ifdef __cplusplus
20752extern "C"
20753#endif
20754char uuid_is_null ();
20755int
20756main ()
20757{
20758return uuid_is_null ();
20759 ;
20760 return 0;
20761}
20762_ACEOF
20763rm -f conftest.$ac_objext conftest$ac_exeext
20764if { (ac_try="$ac_link"
20765case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20768esac
20769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20770$as_echo "$ac_try_echo") >&5
20771 (eval "$ac_link") 2>conftest.er1
20772 ac_status=$?
20773 grep -v '^ *+' conftest.er1 >conftest.err
20774 rm -f conftest.er1
20775 cat conftest.err >&5
20776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); } && {
20778 test -z "$ac_c_werror_flag" ||
20779 test ! -s conftest.err
20780 } && test -s conftest$ac_exeext && {
20781 test "$cross_compiling" = yes ||
20782 $as_test_x conftest$ac_exeext
20783 }; then
20784 ac_cv_lib_uuid_uuid_is_null=yes
20785else
20786 $as_echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 ac_cv_lib_uuid_uuid_is_null=no
20790fi
20791
20792rm -rf conftest.dSYM
20793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20794 conftest$ac_exeext conftest.$ac_ext
20795LIBS=$ac_check_lib_save_LIBS
20796fi
20797{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
20798$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
20799if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
20800 cat >>confdefs.h <<_ACEOF
20801#define HAVE_LIBUUID 1
20802_ACEOF
20803
20804 LIBS="-luuid $LIBS"
20805
20806else
20807 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20809{ { $as_echo "$as_me:$LINENO: error:
20810 *** uuid_is_null() missing, libuuid-devel package required
20811See \`config.log' for more details." >&5
20812$as_echo "$as_me: error:
20813 *** uuid_is_null() missing, libuuid-devel package required
20814See \`config.log' for more details." >&2;}
20815 { (exit 1); exit 1; }; }; }
20816fi
20817
20818
20819 LIBUUID="-luuid"
20820
20821
20822cat >>confdefs.h <<\_ACEOF
20823#define HAVE_LIBUUID 1
20824_ACEOF
20825
20826
20827
20828
20829# Check whether --with-blkid was given.
20830if test "${with_blkid+set}" = set; then
20831 withval=$with_blkid;
20832else
20833 with_blkid=check
20834fi
20835
20836
20837 LIBBLKID=
20838 if test "x$with_blkid" != xno; then
20839
20840 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
20841$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
20842if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
20843 $as_echo_n "(cached) " >&6
20844else
20845 ac_check_lib_save_LIBS=$LIBS
20846LIBS="-lblkid $LIBS"
20847cat >conftest.$ac_ext <<_ACEOF
20848/* confdefs.h. */
20849_ACEOF
20850cat confdefs.h >>conftest.$ac_ext
20851cat >>conftest.$ac_ext <<_ACEOF
20852/* end confdefs.h. */
20853
20854/* Override any GCC internal prototype to avoid an error.
20855 Use char because int might match the return type of a GCC
20856 builtin and then its argument prototype would still apply. */
20857#ifdef __cplusplus
20858extern "C"
20859#endif
20860char blkid_get_cache ();
20861int
20862main ()
20863{
20864return blkid_get_cache ();
20865 ;
20866 return 0;
20867}
20868_ACEOF
20869rm -f conftest.$ac_objext conftest$ac_exeext
20870if { (ac_try="$ac_link"
20871case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20874esac
20875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20876$as_echo "$ac_try_echo") >&5
20877 (eval "$ac_link") 2>conftest.er1
20878 ac_status=$?
20879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
20882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && {
20884 test -z "$ac_c_werror_flag" ||
20885 test ! -s conftest.err
20886 } && test -s conftest$ac_exeext && {
20887 test "$cross_compiling" = yes ||
20888 $as_test_x conftest$ac_exeext
20889 }; then
20890 ac_cv_lib_blkid_blkid_get_cache=yes
20891else
20892 $as_echo "$as_me: failed program was:" >&5
20893sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ac_cv_lib_blkid_blkid_get_cache=no
20896fi
20897
20898rm -rf conftest.dSYM
20899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20900 conftest$ac_exeext conftest.$ac_ext
20901LIBS=$ac_check_lib_save_LIBS
20902fi
20903{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
20904$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
20905if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
20906
20907 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
20908$as_echo_n "checking for blkid zfs support... " >&6; }
20909
20910 ZFS_DEV=`mktemp`
20911 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
20912 >/dev/null 2>/dev/null
20913 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
20914 dd of=$ZFS_DEV bs=1k count=8 \
20915 seek=132 conv=notrunc &>/dev/null \
20916 >/dev/null 2>/dev/null
20917
20918 saved_LDFLAGS="$LDFLAGS"
20919 LDFLAGS="-lblkid"
20920
20921 if test "$cross_compiling" = yes; then
20922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20924{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20925See \`config.log' for more details." >&5
20926$as_echo "$as_me: error: cannot run test program while cross compiling
20927See \`config.log' for more details." >&2;}
20928 { (exit 1); exit 1; }; }; }
20929else
20930 cat >conftest.$ac_ext <<_ACEOF
20931/* confdefs.h. */
20932_ACEOF
20933cat confdefs.h >>conftest.$ac_ext
20934cat >>conftest.$ac_ext <<_ACEOF
20935/* end confdefs.h. */
20936
20937 #include <stdio.h>
20938 #include <blkid/blkid.h>
20939
20940int
20941main ()
20942{
20943
20944 blkid_cache cache;
20945 char *value;
20946
20947 if (blkid_get_cache(&cache, NULL) < 0)
20948 return 1;
20949
20950 value = blkid_get_tag_value(cache, "TYPE",
20951 "$ZFS_DEV");
20952 if (!value) {
20953 blkid_put_cache(cache);
20954 return 2;
20955 }
20956
20957 if (strcmp(value, "zfs")) {
20958 free(value);
20959 blkid_put_cache(cache);
20960 return 3;
20961 }
20962
20963 free(value);
20964 blkid_put_cache(cache);
20965
20966 ;
20967 return 0;
20968}
20969_ACEOF
20970rm -f conftest$ac_exeext
20971if { (ac_try="$ac_link"
20972case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20975esac
20976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20977$as_echo "$ac_try_echo") >&5
20978 (eval "$ac_link") 2>&5
20979 ac_status=$?
20980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20982 { (case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20985esac
20986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20987$as_echo "$ac_try_echo") >&5
20988 (eval "$ac_try") 2>&5
20989 ac_status=$?
20990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); }; }; then
20992
20993 rm -f $ZFS_DEV
20994 { $as_echo "$as_me:$LINENO: result: yes" >&5
20995$as_echo "yes" >&6; }
20996 LIBBLKID="-lblkid"
20997
20998
20999cat >>confdefs.h <<\_ACEOF
21000#define HAVE_LIBBLKID 1
21001_ACEOF
21002
21003
21004else
21005 $as_echo "$as_me: program exited with status $ac_status" >&5
21006$as_echo "$as_me: failed program was:" >&5
21007sed 's/^/| /' conftest.$ac_ext >&5
21008
21009( exit $ac_status )
21010
21011 rm -f $ZFS_DEV
21012 { $as_echo "$as_me:$LINENO: result: no" >&5
21013$as_echo "no" >&6; }
21014 if test "x$with_blkid" != xcheck; then
21015 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21017{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
21018See \`config.log' for more details." >&5
21019$as_echo "$as_me: error: --with-blkid given but unavailable
21020See \`config.log' for more details." >&2;}
21021 { (exit 1); exit 1; }; }; }
21022fi
21023
21024
21025fi
21026rm -rf conftest.dSYM
21027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21028fi
21029
21030
21031
21032 LDFLAGS="$saved_LDFLAGS"
21033
21034else
21035
21036 if test "x$with_blkid" != xcheck; then
21037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21039{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
21040See \`config.log' for more details." >&5
21041$as_echo "$as_me: error: --with-blkid given but unavailable
21042See \`config.log' for more details." >&2;}
21043 { (exit 1); exit 1; }; }; }
21044fi
21045
21046
21047
21048fi
21049
21050
21051fi
21052
21053
21054
b3259b6a
BB
21055
21056# Check whether --with-selinux was given.
21057if test "${with_selinux+set}" = set; then
21058 withval=$with_selinux;
21059else
21060 with_selinux=check
21061fi
21062
21063
21064 LIBSELINUX=
21065 if test "x$with_selinux" != xno; then
21066
21067 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21068 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
21069$as_echo_n "checking for selinux/selinux.h... " >&6; }
21070if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21071 $as_echo_n "(cached) " >&6
21072fi
21073{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
21074$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
21075else
21076 # Is the header compilable?
21077{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
21078$as_echo_n "checking selinux/selinux.h usability... " >&6; }
21079cat >conftest.$ac_ext <<_ACEOF
21080/* confdefs.h. */
21081_ACEOF
21082cat confdefs.h >>conftest.$ac_ext
21083cat >>conftest.$ac_ext <<_ACEOF
21084/* end confdefs.h. */
21085$ac_includes_default
21086#include <selinux/selinux.h>
21087_ACEOF
21088rm -f conftest.$ac_objext
21089if { (ac_try="$ac_compile"
21090case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21093esac
21094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21095$as_echo "$ac_try_echo") >&5
21096 (eval "$ac_compile") 2>conftest.er1
21097 ac_status=$?
21098 grep -v '^ *+' conftest.er1 >conftest.err
21099 rm -f conftest.er1
21100 cat conftest.err >&5
21101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } && {
21103 test -z "$ac_c_werror_flag" ||
21104 test ! -s conftest.err
21105 } && test -s conftest.$ac_objext; then
21106 ac_header_compiler=yes
21107else
21108 $as_echo "$as_me: failed program was:" >&5
21109sed 's/^/| /' conftest.$ac_ext >&5
21110
21111 ac_header_compiler=no
21112fi
21113
21114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21115{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21116$as_echo "$ac_header_compiler" >&6; }
21117
21118# Is the header present?
21119{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
21120$as_echo_n "checking selinux/selinux.h presence... " >&6; }
21121cat >conftest.$ac_ext <<_ACEOF
21122/* confdefs.h. */
21123_ACEOF
21124cat confdefs.h >>conftest.$ac_ext
21125cat >>conftest.$ac_ext <<_ACEOF
21126/* end confdefs.h. */
21127#include <selinux/selinux.h>
21128_ACEOF
21129if { (ac_try="$ac_cpp conftest.$ac_ext"
21130case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21133esac
21134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21135$as_echo "$ac_try_echo") >&5
21136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21137 ac_status=$?
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
21141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } >/dev/null && {
21143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21144 test ! -s conftest.err
21145 }; then
21146 ac_header_preproc=yes
21147else
21148 $as_echo "$as_me: failed program was:" >&5
21149sed 's/^/| /' conftest.$ac_ext >&5
21150
21151 ac_header_preproc=no
21152fi
21153
21154rm -f conftest.err conftest.$ac_ext
21155{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21156$as_echo "$ac_header_preproc" >&6; }
21157
21158# So? What about this header?
21159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21160 yes:no: )
21161 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
21162$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21163 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
21164$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
21165 ac_header_preproc=yes
21166 ;;
21167 no:yes:* )
21168 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
21169$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
21170 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
21171$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
21172 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
21173$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
21174 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
21175$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
21176 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
21177$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
21178 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
21179$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
21180
21181 ;;
21182esac
21183{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
21184$as_echo_n "checking for selinux/selinux.h... " >&6; }
21185if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
21186 $as_echo_n "(cached) " >&6
21187else
21188 ac_cv_header_selinux_selinux_h=$ac_header_preproc
21189fi
21190{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
21191$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
21192
21193fi
21194if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
21195
21196 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
21197$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
21198if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
21199 $as_echo_n "(cached) " >&6
21200else
21201 ac_check_lib_save_LIBS=$LIBS
21202LIBS="-lselinux $LIBS"
21203cat >conftest.$ac_ext <<_ACEOF
21204/* confdefs.h. */
21205_ACEOF
21206cat confdefs.h >>conftest.$ac_ext
21207cat >>conftest.$ac_ext <<_ACEOF
21208/* end confdefs.h. */
21209
21210/* Override any GCC internal prototype to avoid an error.
21211 Use char because int might match the return type of a GCC
21212 builtin and then its argument prototype would still apply. */
21213#ifdef __cplusplus
21214extern "C"
21215#endif
21216char is_selinux_enabled ();
21217int
21218main ()
21219{
21220return is_selinux_enabled ();
21221 ;
21222 return 0;
21223}
21224_ACEOF
21225rm -f conftest.$ac_objext conftest$ac_exeext
21226if { (ac_try="$ac_link"
21227case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230esac
21231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21232$as_echo "$ac_try_echo") >&5
21233 (eval "$ac_link") 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest$ac_exeext && {
21243 test "$cross_compiling" = yes ||
21244 $as_test_x conftest$ac_exeext
21245 }; then
21246 ac_cv_lib_selinux_is_selinux_enabled=yes
21247else
21248 $as_echo "$as_me: failed program was:" >&5
21249sed 's/^/| /' conftest.$ac_ext >&5
21250
21251 ac_cv_lib_selinux_is_selinux_enabled=no
21252fi
21253
21254rm -rf conftest.dSYM
21255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21256 conftest$ac_exeext conftest.$ac_ext
21257LIBS=$ac_check_lib_save_LIBS
21258fi
21259{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
21260$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
21261if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
21262
21263 LIBSELINUX="-lselinux"
21264
21265
21266cat >>confdefs.h <<\_ACEOF
21267#define HAVE_LIBSELINUX 1
21268_ACEOF
21269
21270
21271else
21272
21273 if test "x$with_selinux" != xcheck; then
21274 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21276{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
21277See \`config.log' for more details." >&5
21278$as_echo "$as_me: error: --with-selinux given but unavailable
21279See \`config.log' for more details." >&2;}
21280 { (exit 1); exit 1; }; }; }
21281
21282fi
21283
21284
21285fi
21286
21287
21288else
21289
21290 if test "x$with_selinux" != xcheck; then
21291 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21293{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
21294See \`config.log' for more details." >&5
21295$as_echo "$as_me: error: --with-selinux given but unavailable
21296See \`config.log' for more details." >&2;}
21297 { (exit 1); exit 1; }; }; }
21298
21299fi
21300
21301
21302fi
21303
21304
21305
21306else
21307
21308 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
21309$as_echo_n "checking for selinux support... " >&6; }
21310 { $as_echo "$as_me:$LINENO: result: no" >&5
21311$as_echo "no" >&6; }
21312
21313fi
21314
21315
21316
e70e591c
BB
21317 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
21318$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
21319
21320 saved_flags="$CFLAGS"
21321 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
21322
21323 if test "$cross_compiling" = yes; then
21324 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21326{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21327See \`config.log' for more details." >&5
21328$as_echo "$as_me: error: cannot run test program while cross compiling
21329See \`config.log' for more details." >&2;}
21330 { (exit 1); exit 1; }; }; }
21331else
21332 cat >conftest.$ac_ext <<_ACEOF
21333/* confdefs.h. */
21334_ACEOF
21335cat confdefs.h >>conftest.$ac_ext
21336cat >>conftest.$ac_ext <<_ACEOF
21337/* end confdefs.h. */
21338
21339int
21340main ()
21341{
21342
21343 ;
21344 return 0;
21345}
21346_ACEOF
21347rm -f conftest$ac_exeext
21348if { (ac_try="$ac_link"
21349case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21352esac
21353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21354$as_echo "$ac_try_echo") >&5
21355 (eval "$ac_link") 2>&5
21356 ac_status=$?
21357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21359 { (case "(($ac_try" in
21360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361 *) ac_try_echo=$ac_try;;
21362esac
21363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21364$as_echo "$ac_try_echo") >&5
21365 (eval "$ac_try") 2>&5
21366 ac_status=$?
21367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369
21370 FRAME_LARGER_THAN=-Wframe-larger-than=1024
21371 { $as_echo "$as_me:$LINENO: result: yes" >&5
21372$as_echo "yes" >&6; }
21373
21374else
21375 $as_echo "$as_me: program exited with status $ac_status" >&5
21376$as_echo "$as_me: failed program was:" >&5
21377sed 's/^/| /' conftest.$ac_ext >&5
21378
21379( exit $ac_status )
21380
21381 FRAME_LARGER_THAN=
21382 { $as_echo "$as_me:$LINENO: result: no" >&5
21383$as_echo "no" >&6; }
21384
21385fi
21386rm -rf conftest.dSYM
21387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21388fi
21389
21390
21391
21392 CFLAGS="$saved_flags"
21393
21394
21395
21396
21397 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
21398$as_echo_n "checking whether pthread stack includes guard... " >&6; }
21399
21400 saved_CFLAGS="$CFLAGS"
21401 CFLAGS="-fstack-check"
21402 saved_LDFLAGS="$LDFLAGS"
21403 LDFLAGS="-lpthread"
21404
21405 if test "$cross_compiling" = yes; then
21406 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21408{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21409See \`config.log' for more details." >&5
21410$as_echo "$as_me: error: cannot run test program while cross compiling
21411See \`config.log' for more details." >&2;}
21412 { (exit 1); exit 1; }; }; }
21413else
21414 cat >conftest.$ac_ext <<_ACEOF
21415/* confdefs.h. */
21416_ACEOF
21417cat confdefs.h >>conftest.$ac_ext
21418cat >>conftest.$ac_ext <<_ACEOF
21419/* end confdefs.h. */
21420
21421 #include <pthread.h>
21422 #include <sys/resource.h>
21423 #include <unistd.h>
21424 #include <bits/local_lim.h>
21425
21426 #define PAGESIZE (sysconf(_SC_PAGESIZE))
21427 #define STACK_SIZE 8192
21428 #define BUFSIZE 4096
21429
21430 void * func(void *arg)
21431 {
21432 char buf[BUFSIZE];
21433 }
21434
21435int
21436main ()
21437{
21438
21439 pthread_t tid;
21440 pthread_attr_t attr;
21441 struct rlimit l;
21442
21443 l.rlim_cur = 0;
21444 l.rlim_max = 0;
21445 setrlimit(RLIMIT_CORE, &l);
21446 pthread_attr_init(&attr);
21447 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
21448 pthread_attr_setguardsize(&attr, PAGESIZE);
21449 pthread_create(&tid, &attr, func, NULL);
21450 pthread_join(tid, NULL);
21451
21452 ;
21453 return 0;
21454}
21455_ACEOF
21456rm -f conftest$ac_exeext
21457if { (ac_try="$ac_link"
21458case "(($ac_try" in
21459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460 *) ac_try_echo=$ac_try;;
21461esac
21462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21463$as_echo "$ac_try_echo") >&5
21464 (eval "$ac_link") 2>&5
21465 ac_status=$?
21466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21468 { (case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21471esac
21472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21473$as_echo "$ac_try_echo") >&5
21474 (eval "$ac_try") 2>&5
21475 ac_status=$?
21476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); }; }; then
21478
21479 { $as_echo "$as_me:$LINENO: result: no" >&5
21480$as_echo "no" >&6; }
21481
21482else
21483 $as_echo "$as_me: program exited with status $ac_status" >&5
21484$as_echo "$as_me: failed program was:" >&5
21485sed 's/^/| /' conftest.$ac_ext >&5
21486
21487( exit $ac_status )
21488
21489
21490cat >>confdefs.h <<\_ACEOF
21491#define NPTL_GUARD_WITHIN_STACK 1
21492_ACEOF
21493
21494 { $as_echo "$as_me:$LINENO: result: yes" >&5
21495$as_echo "yes" >&6; }
21496
21497fi
21498rm -rf conftest.dSYM
21499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21500fi
21501
21502
21503 CFLAGS="$saved_CFLAGS"
21504 LDFLAGS="$saved_LDFLAGS"
21505
21506 ;;
21507 srpm) ;;
21508 *)
21509 { $as_echo "$as_me:$LINENO: result: Error!" >&5
21510$as_echo "Error!" >&6; }
21511 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
21512 user kernel|user|all|srpm" >&5
21513$as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
21514 user kernel|user|all|srpm" >&2;}
21515 { (exit 1); exit 1; }; } ;;
21516 esac
21517
21518 if test "$ZFS_CONFIG" = user ||
21519 test "$ZFS_CONFIG" = all; then
21520 CONFIG_USER_TRUE=
21521 CONFIG_USER_FALSE='#'
21522else
21523 CONFIG_USER_TRUE='#'
21524 CONFIG_USER_FALSE=
21525fi
21526
21527 if test "$ZFS_CONFIG" = kernel ||
21528 test "$ZFS_CONFIG" = all; then
21529 CONFIG_KERNEL_TRUE=
21530 CONFIG_KERNEL_FALSE='#'
21531else
21532 CONFIG_KERNEL_TRUE='#'
21533 CONFIG_KERNEL_FALSE=
21534fi
21535
21536
21537
e70e591c
BB
21538 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
21539$as_echo_n "checking whether debugging is enabled... " >&6; }
21540 # Check whether --enable-debug was given.
21541if test "${enable_debug+set}" = set; then
21542 enableval=$enable_debug;
21543else
21544 enable_debug=no
21545fi
21546
21547
21548 if test "x$enable_debug" = xyes; then
21549
21550 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
21551 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
21552 DEBUG_CFLAGS="-DDEBUG -Werror"
21553 DEBUG_STACKFLAGS="-fstack-check"
21554
21555else
21556
21557 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
21558 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
21559 DEBUG_CFLAGS="-DNDEBUG"
21560 DEBUG_STACKFLAGS=""
21561
21562fi
21563
21564
21565
21566
21567 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
21568$as_echo "$enable_debug" >&6; }
21569
21570
aa2b4896 21571ac_config_files="$ac_config_files Makefile dracut/Makefile dracut/90zfs/Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/zpool_layout/Makefile cmd/zvol_id/Makefile cmd/zpool_id/Makefile cmd/sas_switch_id/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/zpool-layout/Makefile scripts/common.sh zfs.spec zfs-modules.spec zfs-script-config.sh"
e70e591c
BB
21572
21573
21574cat >confcache <<\_ACEOF
21575# This file is a shell script that caches the results of configure
21576# tests run on this system so they can be shared between configure
21577# scripts and configure runs, see configure's option --config-cache.
21578# It is not useful on other systems. If it contains results you don't
21579# want to keep, you may remove or edit it.
21580#
21581# config.status only pays attention to the cache file if you give it
21582# the --recheck option to rerun configure.
21583#
21584# `ac_cv_env_foo' variables (set or unset) will be overridden when
21585# loading this file, other *unset* `ac_cv_foo' will be assigned the
21586# following values.
21587
21588_ACEOF
21589
21590# The following way of writing the cache mishandles newlines in values,
21591# but we know of no workaround that is simple, portable, and efficient.
21592# So, we kill variables containing newlines.
21593# Ultrix sh set writes to stderr and can't be redirected directly,
21594# and sets the high bit in the cache file unless we assign to the vars.
21595(
21596 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21597 eval ac_val=\$$ac_var
21598 case $ac_val in #(
21599 *${as_nl}*)
21600 case $ac_var in #(
21601 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21602$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21603 esac
21604 case $ac_var in #(
21605 _ | IFS | as_nl) ;; #(
21606 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21607 *) $as_unset $ac_var ;;
21608 esac ;;
21609 esac
21610 done
21611
21612 (set) 2>&1 |
21613 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21614 *${as_nl}ac_space=\ *)
21615 # `set' does not quote correctly, so add quotes (double-quote
21616 # substitution turns \\\\ into \\, and sed turns \\ into \).
21617 sed -n \
21618 "s/'/'\\\\''/g;
21619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21620 ;; #(
21621 *)
21622 # `set' quotes correctly as required by POSIX, so do not add quotes.
21623 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21624 ;;
21625 esac |
21626 sort
21627) |
21628 sed '
21629 /^ac_cv_env_/b end
21630 t clear
21631 :clear
21632 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21633 t end
21634 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21635 :end' >>confcache
21636if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21637 if test -w "$cache_file"; then
21638 test "x$cache_file" != "x/dev/null" &&
21639 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21640$as_echo "$as_me: updating cache $cache_file" >&6;}
21641 cat confcache >$cache_file
21642 else
21643 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21644$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21645 fi
21646fi
21647rm -f confcache
21648
21649test "x$prefix" = xNONE && prefix=$ac_default_prefix
21650# Let make expand exec_prefix.
21651test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21652
21653DEFS=-DHAVE_CONFIG_H
21654
21655ac_libobjs=
21656ac_ltlibobjs=
21657for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21658 # 1. Remove the extension, and $U if already installed.
21659 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21660 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21661 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21662 # will be set to the directory where LIBOBJS objects are built.
21663 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21664 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21665done
21666LIBOBJS=$ac_libobjs
21667
21668LTLIBOBJS=$ac_ltlibobjs
21669
21670
21671if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21672 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21673Usually this means the macro was only invoked conditionally." >&5
21674$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21675Usually this means the macro was only invoked conditionally." >&2;}
21676 { (exit 1); exit 1; }; }
21677fi
21678 if test -n "$EXEEXT"; then
21679 am__EXEEXT_TRUE=
21680 am__EXEEXT_FALSE='#'
21681else
21682 am__EXEEXT_TRUE='#'
21683 am__EXEEXT_FALSE=
21684fi
21685
21686if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21687 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21688Usually this means the macro was only invoked conditionally." >&5
21689$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21690Usually this means the macro was only invoked conditionally." >&2;}
21691 { (exit 1); exit 1; }; }
21692fi
21693if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21694 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21695Usually this means the macro was only invoked conditionally." >&5
21696$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21697Usually this means the macro was only invoked conditionally." >&2;}
21698 { (exit 1); exit 1; }; }
21699fi
21700if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
21701 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
21702Usually this means the macro was only invoked conditionally." >&5
21703$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
21704Usually this means the macro was only invoked conditionally." >&2;}
21705 { (exit 1); exit 1; }; }
21706fi
21707if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
21708 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
21709Usually this means the macro was only invoked conditionally." >&5
21710$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
21711Usually this means the macro was only invoked conditionally." >&2;}
21712 { (exit 1); exit 1; }; }
21713fi
21714if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
21715 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
21716Usually this means the macro was only invoked conditionally." >&5
21717$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
21718Usually this means the macro was only invoked conditionally." >&2;}
21719 { (exit 1); exit 1; }; }
21720fi
21721
21722: ${CONFIG_STATUS=./config.status}
21723ac_write_fail=0
21724ac_clean_files_save=$ac_clean_files
21725ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21726{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21727$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21728cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21729#! $SHELL
21730# Generated by $as_me.
21731# Run this file to recreate the current configuration.
21732# Compiler output produced by configure, useful for debugging
21733# configure, is in config.log if it exists.
21734
21735debug=false
21736ac_cs_recheck=false
21737ac_cs_silent=false
21738SHELL=\${CONFIG_SHELL-$SHELL}
21739_ACEOF
21740
21741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21742## --------------------- ##
21743## M4sh Initialization. ##
21744## --------------------- ##
21745
21746# Be more Bourne compatible
21747DUALCASE=1; export DUALCASE # for MKS sh
21748if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21749 emulate sh
21750 NULLCMD=:
21751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21752 # is contrary to our usage. Disable this feature.
21753 alias -g '${1+"$@"}'='"$@"'
21754 setopt NO_GLOB_SUBST
21755else
21756 case `(set -o) 2>/dev/null` in
21757 *posix*) set -o posix ;;
21758esac
21759
21760fi
21761
21762
21763
21764
21765# PATH needs CR
21766# Avoid depending upon Character Ranges.
21767as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21768as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21769as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21770as_cr_digits='0123456789'
21771as_cr_alnum=$as_cr_Letters$as_cr_digits
21772
21773as_nl='
21774'
21775export as_nl
21776# Printing a long string crashes Solaris 7 /usr/bin/printf.
21777as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21778as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21779as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21780if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21781 as_echo='printf %s\n'
21782 as_echo_n='printf %s'
21783else
21784 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21785 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21786 as_echo_n='/usr/ucb/echo -n'
21787 else
21788 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21789 as_echo_n_body='eval
21790 arg=$1;
21791 case $arg in
21792 *"$as_nl"*)
21793 expr "X$arg" : "X\\(.*\\)$as_nl";
21794 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21795 esac;
21796 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21797 '
21798 export as_echo_n_body
21799 as_echo_n='sh -c $as_echo_n_body as_echo'
21800 fi
21801 export as_echo_body
21802 as_echo='sh -c $as_echo_body as_echo'
21803fi
21804
21805# The user is always right.
21806if test "${PATH_SEPARATOR+set}" != set; then
21807 PATH_SEPARATOR=:
21808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21809 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21810 PATH_SEPARATOR=';'
21811 }
21812fi
21813
21814# Support unset when possible.
21815if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21816 as_unset=unset
21817else
21818 as_unset=false
21819fi
21820
21821
21822# IFS
21823# We need space, tab and new line, in precisely that order. Quoting is
21824# there to prevent editors from complaining about space-tab.
21825# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21826# splitting by setting IFS to empty value.)
21827IFS=" "" $as_nl"
21828
21829# Find who we are. Look in the path if we contain no directory separator.
21830case $0 in
21831 *[\\/]* ) as_myself=$0 ;;
21832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21833for as_dir in $PATH
21834do
21835 IFS=$as_save_IFS
21836 test -z "$as_dir" && as_dir=.
21837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21838done
21839IFS=$as_save_IFS
21840
21841 ;;
21842esac
21843# We did not find ourselves, most probably we were run as `sh COMMAND'
21844# in which case we are not to be found in the path.
21845if test "x$as_myself" = x; then
21846 as_myself=$0
21847fi
21848if test ! -f "$as_myself"; then
21849 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21850 { (exit 1); exit 1; }
21851fi
21852
21853# Work around bugs in pre-3.0 UWIN ksh.
21854for as_var in ENV MAIL MAILPATH
21855do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21856done
21857PS1='$ '
21858PS2='> '
21859PS4='+ '
21860
21861# NLS nuisances.
21862LC_ALL=C
21863export LC_ALL
21864LANGUAGE=C
21865export LANGUAGE
21866
21867# Required to use basename.
21868if expr a : '\(a\)' >/dev/null 2>&1 &&
21869 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21870 as_expr=expr
21871else
21872 as_expr=false
21873fi
21874
21875if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21876 as_basename=basename
21877else
21878 as_basename=false
21879fi
21880
21881
21882# Name of the executable.
21883as_me=`$as_basename -- "$0" ||
21884$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21885 X"$0" : 'X\(//\)$' \| \
21886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21887$as_echo X/"$0" |
21888 sed '/^.*\/\([^/][^/]*\)\/*$/{
21889 s//\1/
21890 q
21891 }
21892 /^X\/\(\/\/\)$/{
21893 s//\1/
21894 q
21895 }
21896 /^X\/\(\/\).*/{
21897 s//\1/
21898 q
21899 }
21900 s/.*/./; q'`
21901
21902# CDPATH.
21903$as_unset CDPATH
21904
21905
21906
21907 as_lineno_1=$LINENO
21908 as_lineno_2=$LINENO
21909 test "x$as_lineno_1" != "x$as_lineno_2" &&
21910 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21911
21912 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21913 # uniformly replaced by the line number. The first 'sed' inserts a
21914 # line-number line after each line using $LINENO; the second 'sed'
21915 # does the real work. The second script uses 'N' to pair each
21916 # line-number line with the line containing $LINENO, and appends
21917 # trailing '-' during substitution so that $LINENO is not a special
21918 # case at line end.
21919 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21920 # scripts with optimization help from Paolo Bonzini. Blame Lee
21921 # E. McMahon (1931-1989) for sed's syntax. :-)
21922 sed -n '
21923 p
21924 /[$]LINENO/=
21925 ' <$as_myself |
21926 sed '
21927 s/[$]LINENO.*/&-/
21928 t lineno
21929 b
21930 :lineno
21931 N
21932 :loop
21933 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21934 t loop
21935 s/-\n.*//
21936 ' >$as_me.lineno &&
21937 chmod +x "$as_me.lineno" ||
21938 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21939 { (exit 1); exit 1; }; }
21940
21941 # Don't try to exec as it changes $[0], causing all sort of problems
21942 # (the dirname of $[0] is not the place where we might find the
21943 # original and so on. Autoconf is especially sensitive to this).
21944 . "./$as_me.lineno"
21945 # Exit status is that of the last command.
21946 exit
21947}
21948
21949
21950if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21951 as_dirname=dirname
21952else
21953 as_dirname=false
21954fi
21955
21956ECHO_C= ECHO_N= ECHO_T=
21957case `echo -n x` in
21958-n*)
21959 case `echo 'x\c'` in
21960 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21961 *) ECHO_C='\c';;
21962 esac;;
21963*)
21964 ECHO_N='-n';;
21965esac
21966if expr a : '\(a\)' >/dev/null 2>&1 &&
21967 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21968 as_expr=expr
21969else
21970 as_expr=false
21971fi
21972
21973rm -f conf$$ conf$$.exe conf$$.file
21974if test -d conf$$.dir; then
21975 rm -f conf$$.dir/conf$$.file
21976else
21977 rm -f conf$$.dir
21978 mkdir conf$$.dir 2>/dev/null
21979fi
21980if (echo >conf$$.file) 2>/dev/null; then
21981 if ln -s conf$$.file conf$$ 2>/dev/null; then
21982 as_ln_s='ln -s'
21983 # ... but there are two gotchas:
21984 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21985 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21986 # In both cases, we have to default to `cp -p'.
21987 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21988 as_ln_s='cp -p'
21989 elif ln conf$$.file conf$$ 2>/dev/null; then
21990 as_ln_s=ln
21991 else
21992 as_ln_s='cp -p'
21993 fi
21994else
21995 as_ln_s='cp -p'
21996fi
21997rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21998rmdir conf$$.dir 2>/dev/null
21999
22000if mkdir -p . 2>/dev/null; then
22001 as_mkdir_p=:
22002else
22003 test -d ./-p && rmdir ./-p
22004 as_mkdir_p=false
22005fi
22006
22007if test -x / >/dev/null 2>&1; then
22008 as_test_x='test -x'
22009else
22010 if ls -dL / >/dev/null 2>&1; then
22011 as_ls_L_option=L
22012 else
22013 as_ls_L_option=
22014 fi
22015 as_test_x='
22016 eval sh -c '\''
22017 if test -d "$1"; then
22018 test -d "$1/.";
22019 else
22020 case $1 in
22021 -*)set "./$1";;
22022 esac;
22023 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22024 ???[sx]*):;;*)false;;esac;fi
22025 '\'' sh
22026 '
22027fi
22028as_executable_p=$as_test_x
22029
22030# Sed expression to map a string onto a valid CPP name.
22031as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22032
22033# Sed expression to map a string onto a valid variable name.
22034as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22035
22036
22037exec 6>&1
22038
22039# Save the log message, to keep $[0] and so on meaningful, and to
22040# report actual input values of CONFIG_FILES etc. instead of their
22041# values after options handling.
22042ac_log="
22043This file was extended by $as_me, which was
22044generated by GNU Autoconf 2.63. Invocation command line was
22045
22046 CONFIG_FILES = $CONFIG_FILES
22047 CONFIG_HEADERS = $CONFIG_HEADERS
22048 CONFIG_LINKS = $CONFIG_LINKS
22049 CONFIG_COMMANDS = $CONFIG_COMMANDS
22050 $ $0 $@
22051
22052on `(hostname || uname -n) 2>/dev/null | sed 1q`
22053"
22054
22055_ACEOF
22056
22057case $ac_config_files in *"
22058"*) set x $ac_config_files; shift; ac_config_files=$*;;
22059esac
22060
22061case $ac_config_headers in *"
22062"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22063esac
22064
22065
22066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22067# Files that config.status was made for.
22068config_files="$ac_config_files"
22069config_headers="$ac_config_headers"
22070config_commands="$ac_config_commands"
22071
22072_ACEOF
22073
22074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22075ac_cs_usage="\
22076\`$as_me' instantiates files from templates according to the
22077current configuration.
22078
22079Usage: $0 [OPTION]... [FILE]...
22080
22081 -h, --help print this help, then exit
22082 -V, --version print version number and configuration settings, then exit
22083 -q, --quiet, --silent
22084 do not print progress messages
22085 -d, --debug don't remove temporary files
22086 --recheck update $as_me by reconfiguring in the same conditions
22087 --file=FILE[:TEMPLATE]
22088 instantiate the configuration file FILE
22089 --header=FILE[:TEMPLATE]
22090 instantiate the configuration header FILE
22091
22092Configuration files:
22093$config_files
22094
22095Configuration headers:
22096$config_headers
22097
22098Configuration commands:
22099$config_commands
22100
22101Report bugs to <bug-autoconf@gnu.org>."
22102
22103_ACEOF
22104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22105ac_cs_version="\\
22106config.status
22107configured by $0, generated by GNU Autoconf 2.63,
22108 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22109
22110Copyright (C) 2008 Free Software Foundation, Inc.
22111This config.status script is free software; the Free Software Foundation
22112gives unlimited permission to copy, distribute and modify it."
22113
22114ac_pwd='$ac_pwd'
22115srcdir='$srcdir'
22116INSTALL='$INSTALL'
22117MKDIR_P='$MKDIR_P'
22118AWK='$AWK'
22119test -n "\$AWK" || AWK=awk
22120_ACEOF
22121
22122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22123# The default lists apply if the user does not specify any file.
22124ac_need_defaults=:
22125while test $# != 0
22126do
22127 case $1 in
22128 --*=*)
22129 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22130 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22131 ac_shift=:
22132 ;;
22133 *)
22134 ac_option=$1
22135 ac_optarg=$2
22136 ac_shift=shift
22137 ;;
22138 esac
22139
22140 case $ac_option in
22141 # Handling of the options.
22142 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22143 ac_cs_recheck=: ;;
22144 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22145 $as_echo "$ac_cs_version"; exit ;;
22146 --debug | --debu | --deb | --de | --d | -d )
22147 debug=: ;;
22148 --file | --fil | --fi | --f )
22149 $ac_shift
22150 case $ac_optarg in
22151 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22152 esac
22153 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22154 ac_need_defaults=false;;
22155 --header | --heade | --head | --hea )
22156 $ac_shift
22157 case $ac_optarg in
22158 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22159 esac
22160 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22161 ac_need_defaults=false;;
22162 --he | --h)
22163 # Conflict between --help and --header
22164 { $as_echo "$as_me: error: ambiguous option: $1
22165Try \`$0 --help' for more information." >&2
22166 { (exit 1); exit 1; }; };;
22167 --help | --hel | -h )
22168 $as_echo "$ac_cs_usage"; exit ;;
22169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22170 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22171 ac_cs_silent=: ;;
22172
22173 # This is an error.
22174 -*) { $as_echo "$as_me: error: unrecognized option: $1
22175Try \`$0 --help' for more information." >&2
22176 { (exit 1); exit 1; }; } ;;
22177
22178 *) ac_config_targets="$ac_config_targets $1"
22179 ac_need_defaults=false ;;
22180
22181 esac
22182 shift
22183done
22184
22185ac_configure_extra_args=
22186
22187if $ac_cs_silent; then
22188 exec 6>/dev/null
22189 ac_configure_extra_args="$ac_configure_extra_args --silent"
22190fi
22191
22192_ACEOF
22193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22194if \$ac_cs_recheck; then
22195 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22196 shift
22197 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22198 CONFIG_SHELL='$SHELL'
22199 export CONFIG_SHELL
22200 exec "\$@"
22201fi
22202
22203_ACEOF
22204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22205exec 5>>config.log
22206{
22207 echo
22208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22209## Running $as_me. ##
22210_ASBOX
22211 $as_echo "$ac_log"
22212} >&5
22213
22214_ACEOF
22215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22216#
22217# INIT-COMMANDS
22218#
22219AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22220
22221
22222# The HP-UX ksh and POSIX shell print the target directory to stdout
22223# if CDPATH is set.
22224(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22225
22226sed_quote_subst='$sed_quote_subst'
22227double_quote_subst='$double_quote_subst'
22228delay_variable_subst='$delay_variable_subst'
22229macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22230macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22231enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22232enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22233pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22234enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22235host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22236host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22237host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22238build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22239build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22240build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22241SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22242Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22243GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22244EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22245FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22246LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22247NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22248LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22249max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22250ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22251exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22252lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22253lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22254lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22255reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22256reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22257OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
22258deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22259file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22260AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22261AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22262STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22263RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22264old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22265old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22266old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22267CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22268CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22269compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22270GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22271lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22272lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22273lt_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"`'
22274lt_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"`'
22275objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22276SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22277ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22278MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22279lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22280lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22281lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22282lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22283lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22284need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22285DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22286NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22287LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22288OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22289OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22290libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22291shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22292extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22293archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22294enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22295export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22296whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22297compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22298old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22299old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22300archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22301archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22302module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22303module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22304with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22305allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22306no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22307hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22308hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22309hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22310hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22311hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22312hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22313hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22314hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22315inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22316link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22317fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22318always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22319export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22320exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22321include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22322prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22323file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22324variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22325need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22326need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22327version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22328runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22329shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22330shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22331libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22332library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22333soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22334postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22335postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22336finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22337finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22338hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22339sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22340sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22341hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22342enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22343enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22344enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22345old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22346striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22347
22348LTCC='$LTCC'
22349LTCFLAGS='$LTCFLAGS'
22350compiler='$compiler_DEFAULT'
22351
22352# Quote evaled strings.
22353for var in SED \
22354GREP \
22355EGREP \
22356FGREP \
22357LD \
22358NM \
22359LN_S \
22360lt_SP2NL \
22361lt_NL2SP \
22362reload_flag \
22363OBJDUMP \
22364deplibs_check_method \
22365file_magic_cmd \
22366AR \
22367AR_FLAGS \
22368STRIP \
22369RANLIB \
22370CC \
22371CFLAGS \
22372compiler \
22373lt_cv_sys_global_symbol_pipe \
22374lt_cv_sys_global_symbol_to_cdecl \
22375lt_cv_sys_global_symbol_to_c_name_address \
22376lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22377SHELL \
22378ECHO \
22379lt_prog_compiler_no_builtin_flag \
22380lt_prog_compiler_wl \
22381lt_prog_compiler_pic \
22382lt_prog_compiler_static \
22383lt_cv_prog_compiler_c_o \
22384need_locks \
22385DSYMUTIL \
22386NMEDIT \
22387LIPO \
22388OTOOL \
22389OTOOL64 \
22390shrext_cmds \
22391export_dynamic_flag_spec \
22392whole_archive_flag_spec \
22393compiler_needs_object \
22394with_gnu_ld \
22395allow_undefined_flag \
22396no_undefined_flag \
22397hardcode_libdir_flag_spec \
22398hardcode_libdir_flag_spec_ld \
22399hardcode_libdir_separator \
22400fix_srcfile_path \
22401exclude_expsyms \
22402include_expsyms \
22403file_list_spec \
22404variables_saved_for_relink \
22405libname_spec \
22406library_names_spec \
22407soname_spec \
22408finish_eval \
22409old_striplib \
22410striplib; do
22411 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22412 *[\\\\\\\`\\"\\\$]*)
22413 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22414 ;;
22415 *)
22416 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22417 ;;
22418 esac
22419done
22420
22421# Double-quote double-evaled strings.
22422for var in reload_cmds \
22423old_postinstall_cmds \
22424old_postuninstall_cmds \
22425old_archive_cmds \
22426extract_expsyms_cmds \
22427old_archive_from_new_cmds \
22428old_archive_from_expsyms_cmds \
22429archive_cmds \
22430archive_expsym_cmds \
22431module_cmds \
22432module_expsym_cmds \
22433export_symbols_cmds \
22434prelink_cmds \
22435postinstall_cmds \
22436postuninstall_cmds \
22437finish_cmds \
22438sys_lib_search_path_spec \
22439sys_lib_dlsearch_path_spec; do
22440 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22441 *[\\\\\\\`\\"\\\$]*)
22442 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22443 ;;
22444 *)
22445 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22446 ;;
22447 esac
22448done
22449
22450# Fix-up fallback echo if it was mangled by the above quoting rules.
22451case \$lt_ECHO in
22452*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22453 ;;
22454esac
22455
22456ac_aux_dir='$ac_aux_dir'
22457xsi_shell='$xsi_shell'
22458lt_shell_append='$lt_shell_append'
22459
22460# See if we are running on zsh, and set the options which allow our
22461# commands through without removal of \ escapes INIT.
22462if test -n "\${ZSH_VERSION+set}" ; then
22463 setopt NO_GLOB_SUBST
22464fi
22465
22466
22467 PACKAGE='$PACKAGE'
22468 VERSION='$VERSION'
22469 TIMESTAMP='$TIMESTAMP'
22470 RM='$RM'
22471 ofile='$ofile'
22472
22473
22474
22475
22476_ACEOF
22477
22478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22479
22480# Handling of arguments.
22481for ac_config_target in $ac_config_targets
22482do
22483 case $ac_config_target in
22484 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
22485 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22486 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22487 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
ae26d046
MAR
22488 "dracut/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/Makefile" ;;
22489 "dracut/90zfs/Makefile") CONFIG_FILES="$CONFIG_FILES dracut/90zfs/Makefile" ;;
de0a1c09
BB
22490 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
22491 "udev/rules.d/Makefile") CONFIG_FILES="$CONFIG_FILES udev/rules.d/Makefile" ;;
e70e591c 22492 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
01c0e61d
BB
22493 "etc/init.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/init.d/Makefile" ;;
22494 "etc/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES etc/zfs/Makefile" ;;
e70e591c
BB
22495 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22496 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
22497 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
22498 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
22499 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
22500 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
22501 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
22502 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
6283f55e
BB
22503 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
22504 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
22505 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
22506 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
22507 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
22508 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
22509 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
e70e591c
BB
22510 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
22511 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
22512 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
22513 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
22514 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
22515 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
e70e591c 22516 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
46e18b3f 22517 "lib/libshare/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libshare/Makefile" ;;
e70e591c
BB
22518 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
22519 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
22520 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
22521 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
22522 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
e70e591c
BB
22523 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
22524 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
d53368f6
BB
22525 "cmd/mount_zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
22526 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
4c0d8e50 22527 "cmd/zvol_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
d53368f6 22528 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
560bcf9d 22529 "cmd/sas_switch_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/sas_switch_id/Makefile" ;;
e70e591c
BB
22530 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
22531 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
22532 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
22533 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
22534 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
22535 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
22536 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
6283f55e 22537 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8299a1f4 22538 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
6283f55e
BB
22539 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
22540 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
22541 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
22542 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
e70e591c 22543 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
6283f55e
BB
22544 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
22545 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
22546 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
a5b4d635 22547 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
e70e591c
BB
22548 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
22549 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
22550 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
6283f55e 22551 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
e70e591c
BB
22552
22553 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22554$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22555 { (exit 1); exit 1; }; };;
22556 esac
22557done
22558
22559
22560# If the user did not use the arguments to specify the items to instantiate,
22561# then the envvar interface is used. Set only those that are not.
22562# We use the long form for the default assignment because of an extremely
22563# bizarre bug on SunOS 4.1.3.
22564if $ac_need_defaults; then
22565 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22566 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22567 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22568fi
22569
22570# Have a temporary directory for convenience. Make it in the build tree
22571# simply because there is no reason against having it here, and in addition,
22572# creating and moving files from /tmp can sometimes cause problems.
22573# Hook for its removal unless debugging.
22574# Note that there is a small window in which the directory will not be cleaned:
22575# after its creation but before its name has been assigned to `$tmp'.
22576$debug ||
22577{
22578 tmp=
22579 trap 'exit_status=$?
22580 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22581' 0
22582 trap '{ (exit 1); exit 1; }' 1 2 13 15
22583}
22584# Create a (secure) tmp directory for tmp files.
22585
22586{
22587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22588 test -n "$tmp" && test -d "$tmp"
22589} ||
22590{
22591 tmp=./conf$$-$RANDOM
22592 (umask 077 && mkdir "$tmp")
22593} ||
22594{
22595 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22596 { (exit 1); exit 1; }
22597}
22598
22599# Set up the scripts for CONFIG_FILES section.
22600# No need to generate them if there are no CONFIG_FILES.
22601# This happens for instance with `./config.status config.h'.
22602if test -n "$CONFIG_FILES"; then
22603
22604
22605ac_cr='\r'
22606ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22607if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22608 ac_cs_awk_cr='\\r'
22609else
22610 ac_cs_awk_cr=$ac_cr
22611fi
22612
22613echo 'BEGIN {' >"$tmp/subs1.awk" &&
22614_ACEOF
22615
22616
22617{
22618 echo "cat >conf$$subs.awk <<_ACEOF" &&
22619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22620 echo "_ACEOF"
22621} >conf$$subs.sh ||
22622 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22623$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22624 { (exit 1); exit 1; }; }
22625ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22626ac_delim='%!_!# '
22627for ac_last_try in false false false false false :; do
22628 . ./conf$$subs.sh ||
22629 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22630$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22631 { (exit 1); exit 1; }; }
22632
22633 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22634 if test $ac_delim_n = $ac_delim_num; then
22635 break
22636 elif $ac_last_try; then
22637 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22638$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22639 { (exit 1); exit 1; }; }
22640 else
22641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22642 fi
22643done
22644rm -f conf$$subs.sh
22645
22646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22647cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22648_ACEOF
22649sed -n '
22650h
22651s/^/S["/; s/!.*/"]=/
22652p
22653g
22654s/^[^!]*!//
22655:repl
22656t repl
22657s/'"$ac_delim"'$//
22658t delim
22659:nl
22660h
22661s/\(.\{148\}\).*/\1/
22662t more1
22663s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22664p
22665n
22666b repl
22667:more1
22668s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22669p
22670g
22671s/.\{148\}//
22672t nl
22673:delim
22674h
22675s/\(.\{148\}\).*/\1/
22676t more2
22677s/["\\]/\\&/g; s/^/"/; s/$/"/
22678p
22679b
22680:more2
22681s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22682p
22683g
22684s/.\{148\}//
22685t delim
22686' <conf$$subs.awk | sed '
22687/^[^""]/{
22688 N
22689 s/\n//
22690}
22691' >>$CONFIG_STATUS || ac_write_fail=1
22692rm -f conf$$subs.awk
22693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22694_ACAWK
22695cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22696 for (key in S) S_is_set[key] = 1
22697 FS = "\a"
22698
22699}
22700{
22701 line = $ 0
22702 nfields = split(line, field, "@")
22703 substed = 0
22704 len = length(field[1])
22705 for (i = 2; i < nfields; i++) {
22706 key = field[i]
22707 keylen = length(key)
22708 if (S_is_set[key]) {
22709 value = S[key]
22710 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22711 len += length(value) + length(field[++i])
22712 substed = 1
22713 } else
22714 len += 1 + keylen
22715 }
22716
22717 print line
22718}
22719
22720_ACAWK
22721_ACEOF
22722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22723if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22724 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22725else
22726 cat
22727fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22728 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22729$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22730 { (exit 1); exit 1; }; }
22731_ACEOF
22732
22733# VPATH may cause trouble with some makes, so we remove $(srcdir),
22734# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22735# trailing colons and then remove the whole line if VPATH becomes empty
22736# (actually we leave an empty line to preserve line numbers).
22737if test "x$srcdir" = x.; then
22738 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22739s/:*\$(srcdir):*/:/
22740s/:*\${srcdir}:*/:/
22741s/:*@srcdir@:*/:/
22742s/^\([^=]*=[ ]*\):*/\1/
22743s/:*$//
22744s/^[^=]*=[ ]*$//
22745}'
22746fi
22747
22748cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22749fi # test -n "$CONFIG_FILES"
22750
22751# Set up the scripts for CONFIG_HEADERS section.
22752# No need to generate them if there are no CONFIG_HEADERS.
22753# This happens for instance with `./config.status Makefile'.
22754if test -n "$CONFIG_HEADERS"; then
22755cat >"$tmp/defines.awk" <<\_ACAWK ||
22756BEGIN {
22757_ACEOF
22758
22759# Transform confdefs.h into an awk script `defines.awk', embedded as
22760# here-document in config.status, that substitutes the proper values into
22761# config.h.in to produce config.h.
22762
22763# Create a delimiter string that does not exist in confdefs.h, to ease
22764# handling of long lines.
22765ac_delim='%!_!# '
22766for ac_last_try in false false :; do
22767 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22768 if test -z "$ac_t"; then
22769 break
22770 elif $ac_last_try; then
22771 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22772$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22773 { (exit 1); exit 1; }; }
22774 else
22775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22776 fi
22777done
22778
22779# For the awk script, D is an array of macro values keyed by name,
22780# likewise P contains macro parameters if any. Preserve backslash
22781# newline sequences.
22782
22783ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22784sed -n '
22785s/.\{148\}/&'"$ac_delim"'/g
22786t rset
22787:rset
22788s/^[ ]*#[ ]*define[ ][ ]*/ /
22789t def
22790d
22791:def
22792s/\\$//
22793t bsnl
22794s/["\\]/\\&/g
22795s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22796D["\1"]=" \3"/p
22797s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22798d
22799:bsnl
22800s/["\\]/\\&/g
22801s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22802D["\1"]=" \3\\\\\\n"\\/p
22803t cont
22804s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22805t cont
22806d
22807:cont
22808n
22809s/.\{148\}/&'"$ac_delim"'/g
22810t clear
22811:clear
22812s/\\$//
22813t bsnlc
22814s/["\\]/\\&/g; s/^/"/; s/$/"/p
22815d
22816:bsnlc
22817s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22818b cont
22819' <confdefs.h | sed '
22820s/'"$ac_delim"'/"\\\
22821"/g' >>$CONFIG_STATUS || ac_write_fail=1
22822
22823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22824 for (key in D) D_is_set[key] = 1
22825 FS = "\a"
22826}
22827/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22828 line = \$ 0
22829 split(line, arg, " ")
22830 if (arg[1] == "#") {
22831 defundef = arg[2]
22832 mac1 = arg[3]
22833 } else {
22834 defundef = substr(arg[1], 2)
22835 mac1 = arg[2]
22836 }
22837 split(mac1, mac2, "(") #)
22838 macro = mac2[1]
22839 prefix = substr(line, 1, index(line, defundef) - 1)
22840 if (D_is_set[macro]) {
22841 # Preserve the white space surrounding the "#".
22842 print prefix "define", macro P[macro] D[macro]
22843 next
22844 } else {
22845 # Replace #undef with comments. This is necessary, for example,
22846 # in the case of _POSIX_SOURCE, which is predefined and required
22847 # on some systems where configure will not decide to define it.
22848 if (defundef == "undef") {
22849 print "/*", prefix defundef, macro, "*/"
22850 next
22851 }
22852 }
22853}
22854{ print }
22855_ACAWK
22856_ACEOF
22857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22858 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22859$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22860 { (exit 1); exit 1; }; }
22861fi # test -n "$CONFIG_HEADERS"
22862
22863
22864eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22865shift
22866for ac_tag
22867do
22868 case $ac_tag in
22869 :[FHLC]) ac_mode=$ac_tag; continue;;
22870 esac
22871 case $ac_mode$ac_tag in
22872 :[FHL]*:*);;
22873 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22874$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22875 { (exit 1); exit 1; }; };;
22876 :[FH]-) ac_tag=-:-;;
22877 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22878 esac
22879 ac_save_IFS=$IFS
22880 IFS=:
22881 set x $ac_tag
22882 IFS=$ac_save_IFS
22883 shift
22884 ac_file=$1
22885 shift
22886
22887 case $ac_mode in
22888 :L) ac_source=$1;;
22889 :[FH])
22890 ac_file_inputs=
22891 for ac_f
22892 do
22893 case $ac_f in
22894 -) ac_f="$tmp/stdin";;
22895 *) # Look for the file first in the build tree, then in the source tree
22896 # (if the path is not absolute). The absolute path cannot be DOS-style,
22897 # because $ac_f cannot contain `:'.
22898 test -f "$ac_f" ||
22899 case $ac_f in
22900 [\\/$]*) false;;
22901 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22902 esac ||
22903 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22904$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22905 { (exit 1); exit 1; }; };;
22906 esac
22907 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22908 ac_file_inputs="$ac_file_inputs '$ac_f'"
22909 done
22910
22911 # Let's still pretend it is `configure' which instantiates (i.e., don't
22912 # use $as_me), people would be surprised to read:
22913 # /* config.h. Generated by config.status. */
22914 configure_input='Generated from '`
22915 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22916 `' by configure.'
22917 if test x"$ac_file" != x-; then
22918 configure_input="$ac_file. $configure_input"
22919 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22920$as_echo "$as_me: creating $ac_file" >&6;}
22921 fi
22922 # Neutralize special characters interpreted by sed in replacement strings.
22923 case $configure_input in #(
22924 *\&* | *\|* | *\\* )
22925 ac_sed_conf_input=`$as_echo "$configure_input" |
22926 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22927 *) ac_sed_conf_input=$configure_input;;
22928 esac
22929
22930 case $ac_tag in
22931 *:-:* | *:-) cat >"$tmp/stdin" \
22932 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22933$as_echo "$as_me: error: could not create $ac_file" >&2;}
22934 { (exit 1); exit 1; }; } ;;
22935 esac
22936 ;;
22937 esac
22938
22939 ac_dir=`$as_dirname -- "$ac_file" ||
22940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22941 X"$ac_file" : 'X\(//\)[^/]' \| \
22942 X"$ac_file" : 'X\(//\)$' \| \
22943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22944$as_echo X"$ac_file" |
22945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22946 s//\1/
22947 q
22948 }
22949 /^X\(\/\/\)[^/].*/{
22950 s//\1/
22951 q
22952 }
22953 /^X\(\/\/\)$/{
22954 s//\1/
22955 q
22956 }
22957 /^X\(\/\).*/{
22958 s//\1/
22959 q
22960 }
22961 s/.*/./; q'`
22962 { as_dir="$ac_dir"
22963 case $as_dir in #(
22964 -*) as_dir=./$as_dir;;
22965 esac
22966 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22967 as_dirs=
22968 while :; do
22969 case $as_dir in #(
22970 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22971 *) as_qdir=$as_dir;;
22972 esac
22973 as_dirs="'$as_qdir' $as_dirs"
22974 as_dir=`$as_dirname -- "$as_dir" ||
22975$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22976 X"$as_dir" : 'X\(//\)[^/]' \| \
22977 X"$as_dir" : 'X\(//\)$' \| \
22978 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22979$as_echo X"$as_dir" |
22980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22981 s//\1/
22982 q
22983 }
22984 /^X\(\/\/\)[^/].*/{
22985 s//\1/
22986 q
22987 }
22988 /^X\(\/\/\)$/{
22989 s//\1/
22990 q
22991 }
22992 /^X\(\/\).*/{
22993 s//\1/
22994 q
22995 }
22996 s/.*/./; q'`
22997 test -d "$as_dir" && break
22998 done
22999 test -z "$as_dirs" || eval "mkdir $as_dirs"
23000 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23001$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23002 { (exit 1); exit 1; }; }; }
23003 ac_builddir=.
23004
23005case "$ac_dir" in
23006.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23007*)
23008 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23009 # A ".." for each directory in $ac_dir_suffix.
23010 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23011 case $ac_top_builddir_sub in
23012 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23013 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23014 esac ;;
23015esac
23016ac_abs_top_builddir=$ac_pwd
23017ac_abs_builddir=$ac_pwd$ac_dir_suffix
23018# for backward compatibility:
23019ac_top_builddir=$ac_top_build_prefix
23020
23021case $srcdir in
23022 .) # We are building in place.
23023 ac_srcdir=.
23024 ac_top_srcdir=$ac_top_builddir_sub
23025 ac_abs_top_srcdir=$ac_pwd ;;
23026 [\\/]* | ?:[\\/]* ) # Absolute name.
23027 ac_srcdir=$srcdir$ac_dir_suffix;
23028 ac_top_srcdir=$srcdir
23029 ac_abs_top_srcdir=$srcdir ;;
23030 *) # Relative name.
23031 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23032 ac_top_srcdir=$ac_top_build_prefix$srcdir
23033 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23034esac
23035ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23036
23037
23038 case $ac_mode in
23039 :F)
23040 #
23041 # CONFIG_FILE
23042 #
23043
23044 case $INSTALL in
23045 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23046 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23047 esac
23048 ac_MKDIR_P=$MKDIR_P
23049 case $MKDIR_P in
23050 [\\/$]* | ?:[\\/]* ) ;;
23051 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23052 esac
23053_ACEOF
23054
23055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23056# If the template does not know about datarootdir, expand it.
23057# FIXME: This hack should be removed a few years after 2.60.
23058ac_datarootdir_hack=; ac_datarootdir_seen=
23059
23060ac_sed_dataroot='
23061/datarootdir/ {
23062 p
23063 q
23064}
23065/@datadir@/p
23066/@docdir@/p
23067/@infodir@/p
23068/@localedir@/p
23069/@mandir@/p
23070'
23071case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23072*datarootdir*) ac_datarootdir_seen=yes;;
23073*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23074 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23075$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23076_ACEOF
23077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23078 ac_datarootdir_hack='
23079 s&@datadir@&$datadir&g
23080 s&@docdir@&$docdir&g
23081 s&@infodir@&$infodir&g
23082 s&@localedir@&$localedir&g
23083 s&@mandir@&$mandir&g
23084 s&\\\${datarootdir}&$datarootdir&g' ;;
23085esac
23086_ACEOF
23087
23088# Neutralize VPATH when `$srcdir' = `.'.
23089# Shell code in configure.ac might set extrasub.
23090# FIXME: do we really want to maintain this feature?
23091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23092ac_sed_extra="$ac_vpsub
23093$extrasub
23094_ACEOF
23095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23096:t
23097/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23098s|@configure_input@|$ac_sed_conf_input|;t t
23099s&@top_builddir@&$ac_top_builddir_sub&;t t
23100s&@top_build_prefix@&$ac_top_build_prefix&;t t
23101s&@srcdir@&$ac_srcdir&;t t
23102s&@abs_srcdir@&$ac_abs_srcdir&;t t
23103s&@top_srcdir@&$ac_top_srcdir&;t t
23104s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23105s&@builddir@&$ac_builddir&;t t
23106s&@abs_builddir@&$ac_abs_builddir&;t t
23107s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23108s&@INSTALL@&$ac_INSTALL&;t t
23109s&@MKDIR_P@&$ac_MKDIR_P&;t t
23110$ac_datarootdir_hack
23111"
23112eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23113 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23114$as_echo "$as_me: error: could not create $ac_file" >&2;}
23115 { (exit 1); exit 1; }; }
23116
23117test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23118 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23119 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23120 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23121which seems to be undefined. Please make sure it is defined." >&5
23122$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23123which seems to be undefined. Please make sure it is defined." >&2;}
23124
23125 rm -f "$tmp/stdin"
23126 case $ac_file in
23127 -) cat "$tmp/out" && rm -f "$tmp/out";;
23128 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23129 esac \
23130 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23131$as_echo "$as_me: error: could not create $ac_file" >&2;}
23132 { (exit 1); exit 1; }; }
23133 ;;
23134 :H)
23135 #
23136 # CONFIG_HEADER
23137 #
23138 if test x"$ac_file" != x-; then
23139 {
23140 $as_echo "/* $configure_input */" \
23141 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23142 } >"$tmp/config.h" \
23143 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23144$as_echo "$as_me: error: could not create $ac_file" >&2;}
23145 { (exit 1); exit 1; }; }
23146 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23147 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23148$as_echo "$as_me: $ac_file is unchanged" >&6;}
23149 else
23150 rm -f "$ac_file"
23151 mv "$tmp/config.h" "$ac_file" \
23152 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23153$as_echo "$as_me: error: could not create $ac_file" >&2;}
23154 { (exit 1); exit 1; }; }
23155 fi
23156 else
23157 $as_echo "/* $configure_input */" \
23158 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23159 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23160$as_echo "$as_me: error: could not create -" >&2;}
23161 { (exit 1); exit 1; }; }
23162 fi
23163# Compute "$ac_file"'s index in $config_headers.
23164_am_arg="$ac_file"
23165_am_stamp_count=1
23166for _am_header in $config_headers :; do
23167 case $_am_header in
23168 $_am_arg | $_am_arg:* )
23169 break ;;
23170 * )
23171 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23172 esac
23173done
23174echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23175$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23176 X"$_am_arg" : 'X\(//\)[^/]' \| \
23177 X"$_am_arg" : 'X\(//\)$' \| \
23178 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23179$as_echo X"$_am_arg" |
23180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23181 s//\1/
23182 q
23183 }
23184 /^X\(\/\/\)[^/].*/{
23185 s//\1/
23186 q
23187 }
23188 /^X\(\/\/\)$/{
23189 s//\1/
23190 q
23191 }
23192 /^X\(\/\).*/{
23193 s//\1/
23194 q
23195 }
23196 s/.*/./; q'`/stamp-h$_am_stamp_count
23197 ;;
23198
23199 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23200$as_echo "$as_me: executing $ac_file commands" >&6;}
23201 ;;
23202 esac
23203
23204
23205 case $ac_file$ac_mode in
23206 "zfs_config.h":H)
23207 (mv zfs_config.h zfs_config.h.tmp &&
6283f55e 23208 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
e70e591c
BB
23209 rm zfs_config.h.tmp) || exit 1 ;;
23210 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23211 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23212 # are listed without --file. Let's play safe and only enable the eval
23213 # if we detect the quoting.
23214 case $CONFIG_FILES in
23215 *\'*) eval set x "$CONFIG_FILES" ;;
23216 *) set x $CONFIG_FILES ;;
23217 esac
23218 shift
23219 for mf
23220 do
23221 # Strip MF so we end up with the name of the file.
23222 mf=`echo "$mf" | sed -e 's/:.*$//'`
23223 # Check whether this is an Automake generated Makefile or not.
23224 # We used to match only the files named `Makefile.in', but
23225 # some people rename them; so instead we look at the file content.
23226 # Grep'ing the first line is not enough: some people post-process
23227 # each Makefile.in and add a new line on top of each file to say so.
23228 # Grep'ing the whole file is not good either: AIX grep has a line
23229 # limit of 2048, but all sed's we know have understand at least 4000.
23230 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23231 dirpart=`$as_dirname -- "$mf" ||
23232$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23233 X"$mf" : 'X\(//\)[^/]' \| \
23234 X"$mf" : 'X\(//\)$' \| \
23235 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23236$as_echo X"$mf" |
23237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23238 s//\1/
23239 q
23240 }
23241 /^X\(\/\/\)[^/].*/{
23242 s//\1/
23243 q
23244 }
23245 /^X\(\/\/\)$/{
23246 s//\1/
23247 q
23248 }
23249 /^X\(\/\).*/{
23250 s//\1/
23251 q
23252 }
23253 s/.*/./; q'`
23254 else
23255 continue
23256 fi
23257 # Extract the definition of DEPDIR, am__include, and am__quote
23258 # from the Makefile without running `make'.
23259 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23260 test -z "$DEPDIR" && continue
23261 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23262 test -z "am__include" && continue
23263 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23264 # When using ansi2knr, U may be empty or an underscore; expand it
23265 U=`sed -n 's/^U = //p' < "$mf"`
23266 # Find all dependency output files, they are included files with
23267 # $(DEPDIR) in their names. We invoke sed twice because it is the
23268 # simplest approach to changing $(DEPDIR) to its actual value in the
23269 # expansion.
23270 for file in `sed -n "
23271 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23272 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23273 # Make sure the directory exists.
23274 test -f "$dirpart/$file" && continue
23275 fdir=`$as_dirname -- "$file" ||
23276$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23277 X"$file" : 'X\(//\)[^/]' \| \
23278 X"$file" : 'X\(//\)$' \| \
23279 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23280$as_echo X"$file" |
23281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23282 s//\1/
23283 q
23284 }
23285 /^X\(\/\/\)[^/].*/{
23286 s//\1/
23287 q
23288 }
23289 /^X\(\/\/\)$/{
23290 s//\1/
23291 q
23292 }
23293 /^X\(\/\).*/{
23294 s//\1/
23295 q
23296 }
23297 s/.*/./; q'`
23298 { as_dir=$dirpart/$fdir
23299 case $as_dir in #(
23300 -*) as_dir=./$as_dir;;
23301 esac
23302 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23303 as_dirs=
23304 while :; do
23305 case $as_dir in #(
23306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23307 *) as_qdir=$as_dir;;
23308 esac
23309 as_dirs="'$as_qdir' $as_dirs"
23310 as_dir=`$as_dirname -- "$as_dir" ||
23311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23312 X"$as_dir" : 'X\(//\)[^/]' \| \
23313 X"$as_dir" : 'X\(//\)$' \| \
23314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23315$as_echo X"$as_dir" |
23316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23317 s//\1/
23318 q
23319 }
23320 /^X\(\/\/\)[^/].*/{
23321 s//\1/
23322 q
23323 }
23324 /^X\(\/\/\)$/{
23325 s//\1/
23326 q
23327 }
23328 /^X\(\/\).*/{
23329 s//\1/
23330 q
23331 }
23332 s/.*/./; q'`
23333 test -d "$as_dir" && break
23334 done
23335 test -z "$as_dirs" || eval "mkdir $as_dirs"
23336 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23337$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23338 { (exit 1); exit 1; }; }; }
23339 # echo "creating $dirpart/$file"
23340 echo '# dummy' > "$dirpart/$file"
23341 done
23342 done
23343}
23344 ;;
23345 "libtool":C)
23346
23347 # See if we are running on zsh, and set the options which allow our
23348 # commands through without removal of \ escapes.
23349 if test -n "${ZSH_VERSION+set}" ; then
23350 setopt NO_GLOB_SUBST
23351 fi
23352
23353 cfgfile="${ofile}T"
23354 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23355 $RM "$cfgfile"
23356
23357 cat <<_LT_EOF >> "$cfgfile"
23358#! $SHELL
23359
23360# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23361# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23362# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23363# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23364#
23365# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23366# 2006, 2007, 2008 Free Software Foundation, Inc.
23367# Written by Gordon Matzigkeit, 1996
23368#
23369# This file is part of GNU Libtool.
23370#
23371# GNU Libtool is free software; you can redistribute it and/or
23372# modify it under the terms of the GNU General Public License as
23373# published by the Free Software Foundation; either version 2 of
23374# the License, or (at your option) any later version.
23375#
23376# As a special exception to the GNU General Public License,
23377# if you distribute this file as part of a program or library that
23378# is built using GNU Libtool, you may include this file under the
23379# same distribution terms that you use for the rest of that program.
23380#
23381# GNU Libtool is distributed in the hope that it will be useful,
23382# but WITHOUT ANY WARRANTY; without even the implied warranty of
23383# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23384# GNU General Public License for more details.
23385#
23386# You should have received a copy of the GNU General Public License
23387# along with GNU Libtool; see the file COPYING. If not, a copy
23388# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23389# obtained by writing to the Free Software Foundation, Inc.,
23390# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23391
23392
23393# The names of the tagged configurations supported by this script.
23394available_tags=""
23395
23396# ### BEGIN LIBTOOL CONFIG
23397
23398# Which release of libtool.m4 was used?
23399macro_version=$macro_version
23400macro_revision=$macro_revision
23401
23402# Whether or not to build shared libraries.
23403build_libtool_libs=$enable_shared
23404
23405# Whether or not to build static libraries.
23406build_old_libs=$enable_static
23407
23408# What type of objects to build.
23409pic_mode=$pic_mode
23410
23411# Whether or not to optimize for fast installation.
23412fast_install=$enable_fast_install
23413
23414# The host system.
23415host_alias=$host_alias
23416host=$host
23417host_os=$host_os
23418
23419# The build system.
23420build_alias=$build_alias
23421build=$build
23422build_os=$build_os
23423
23424# A sed program that does not truncate output.
23425SED=$lt_SED
23426
23427# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23428Xsed="\$SED -e 1s/^X//"
23429
23430# A grep program that handles long lines.
23431GREP=$lt_GREP
23432
23433# An ERE matcher.
23434EGREP=$lt_EGREP
23435
23436# A literal string matcher.
23437FGREP=$lt_FGREP
23438
23439# A BSD- or MS-compatible name lister.
23440NM=$lt_NM
23441
23442# Whether we need soft or hard links.
23443LN_S=$lt_LN_S
23444
23445# What is the maximum length of a command?
23446max_cmd_len=$max_cmd_len
23447
23448# Object file suffix (normally "o").
23449objext=$ac_objext
23450
23451# Executable file suffix (normally "").
23452exeext=$exeext
23453
23454# whether the shell understands "unset".
23455lt_unset=$lt_unset
23456
23457# turn spaces into newlines.
23458SP2NL=$lt_lt_SP2NL
23459
23460# turn newlines into spaces.
23461NL2SP=$lt_lt_NL2SP
23462
23463# How to create reloadable object files.
23464reload_flag=$lt_reload_flag
23465reload_cmds=$lt_reload_cmds
23466
23467# An object symbol dumper.
23468OBJDUMP=$lt_OBJDUMP
23469
23470# Method to check whether dependent libraries are shared objects.
23471deplibs_check_method=$lt_deplibs_check_method
23472
23473# Command to use when deplibs_check_method == "file_magic".
23474file_magic_cmd=$lt_file_magic_cmd
23475
23476# The archiver.
23477AR=$lt_AR
23478AR_FLAGS=$lt_AR_FLAGS
23479
23480# A symbol stripping program.
23481STRIP=$lt_STRIP
23482
23483# Commands used to install an old-style archive.
23484RANLIB=$lt_RANLIB
23485old_postinstall_cmds=$lt_old_postinstall_cmds
23486old_postuninstall_cmds=$lt_old_postuninstall_cmds
23487
23488# A C compiler.
23489LTCC=$lt_CC
23490
23491# LTCC compiler flags.
23492LTCFLAGS=$lt_CFLAGS
23493
23494# Take the output of nm and produce a listing of raw symbols and C names.
23495global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23496
23497# Transform the output of nm in a proper C declaration.
23498global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23499
23500# Transform the output of nm in a C name address pair.
23501global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23502
23503# Transform the output of nm in a C name address pair when lib prefix is needed.
23504global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23505
23506# The name of the directory that contains temporary libtool files.
23507objdir=$objdir
23508
23509# Shell to use when invoking shell scripts.
23510SHELL=$lt_SHELL
23511
23512# An echo program that does not interpret backslashes.
23513ECHO=$lt_ECHO
23514
23515# Used to examine libraries when file_magic_cmd begins with "file".
23516MAGIC_CMD=$MAGIC_CMD
23517
23518# Must we lock files when doing compilation?
23519need_locks=$lt_need_locks
23520
23521# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23522DSYMUTIL=$lt_DSYMUTIL
23523
23524# Tool to change global to local symbols on Mac OS X.
23525NMEDIT=$lt_NMEDIT
23526
23527# Tool to manipulate fat objects and archives on Mac OS X.
23528LIPO=$lt_LIPO
23529
23530# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23531OTOOL=$lt_OTOOL
23532
23533# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23534OTOOL64=$lt_OTOOL64
23535
23536# Old archive suffix (normally "a").
23537libext=$libext
23538
23539# Shared library suffix (normally ".so").
23540shrext_cmds=$lt_shrext_cmds
23541
23542# The commands to extract the exported symbol list from a shared archive.
23543extract_expsyms_cmds=$lt_extract_expsyms_cmds
23544
23545# Variables whose values should be saved in libtool wrapper scripts and
23546# restored at link time.
23547variables_saved_for_relink=$lt_variables_saved_for_relink
23548
23549# Do we need the "lib" prefix for modules?
23550need_lib_prefix=$need_lib_prefix
23551
23552# Do we need a version for libraries?
23553need_version=$need_version
23554
23555# Library versioning type.
23556version_type=$version_type
23557
23558# Shared library runtime path variable.
23559runpath_var=$runpath_var
23560
23561# Shared library path variable.
23562shlibpath_var=$shlibpath_var
23563
23564# Is shlibpath searched before the hard-coded library search path?
23565shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23566
23567# Format of library name prefix.
23568libname_spec=$lt_libname_spec
23569
23570# List of archive names. First name is the real one, the rest are links.
23571# The last name is the one that the linker finds with -lNAME
23572library_names_spec=$lt_library_names_spec
23573
23574# The coded name of the library, if different from the real name.
23575soname_spec=$lt_soname_spec
23576
23577# Command to use after installation of a shared archive.
23578postinstall_cmds=$lt_postinstall_cmds
23579
23580# Command to use after uninstallation of a shared archive.
23581postuninstall_cmds=$lt_postuninstall_cmds
23582
23583# Commands used to finish a libtool library installation in a directory.
23584finish_cmds=$lt_finish_cmds
23585
23586# As "finish_cmds", except a single script fragment to be evaled but
23587# not shown.
23588finish_eval=$lt_finish_eval
23589
23590# Whether we should hardcode library paths into libraries.
23591hardcode_into_libs=$hardcode_into_libs
23592
23593# Compile-time system search path for libraries.
23594sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23595
23596# Run-time system search path for libraries.
23597sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23598
23599# Whether dlopen is supported.
23600dlopen_support=$enable_dlopen
23601
23602# Whether dlopen of programs is supported.
23603dlopen_self=$enable_dlopen_self
23604
23605# Whether dlopen of statically linked programs is supported.
23606dlopen_self_static=$enable_dlopen_self_static
23607
23608# Commands to strip libraries.
23609old_striplib=$lt_old_striplib
23610striplib=$lt_striplib
23611
23612
23613# The linker used to build libraries.
23614LD=$lt_LD
23615
23616# Commands used to build an old-style archive.
23617old_archive_cmds=$lt_old_archive_cmds
23618
23619# A language specific compiler.
23620CC=$lt_compiler
23621
23622# Is the compiler the GNU compiler?
23623with_gcc=$GCC
23624
23625# Compiler flag to turn off builtin functions.
23626no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23627
23628# How to pass a linker flag through the compiler.
23629wl=$lt_lt_prog_compiler_wl
23630
23631# Additional compiler flags for building library objects.
23632pic_flag=$lt_lt_prog_compiler_pic
23633
23634# Compiler flag to prevent dynamic linking.
23635link_static_flag=$lt_lt_prog_compiler_static
23636
23637# Does compiler simultaneously support -c and -o options?
23638compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23639
23640# Whether or not to add -lc for building shared libraries.
23641build_libtool_need_lc=$archive_cmds_need_lc
23642
23643# Whether or not to disallow shared libs when runtime libs are static.
23644allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23645
23646# Compiler flag to allow reflexive dlopens.
23647export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23648
23649# Compiler flag to generate shared objects directly from archives.
23650whole_archive_flag_spec=$lt_whole_archive_flag_spec
23651
23652# Whether the compiler copes with passing no objects directly.
23653compiler_needs_object=$lt_compiler_needs_object
23654
23655# Create an old-style archive from a shared archive.
23656old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23657
23658# Create a temporary old-style archive to link instead of a shared archive.
23659old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23660
23661# Commands used to build a shared archive.
23662archive_cmds=$lt_archive_cmds
23663archive_expsym_cmds=$lt_archive_expsym_cmds
23664
23665# Commands used to build a loadable module if different from building
23666# a shared archive.
23667module_cmds=$lt_module_cmds
23668module_expsym_cmds=$lt_module_expsym_cmds
23669
23670# Whether we are building with GNU ld or not.
23671with_gnu_ld=$lt_with_gnu_ld
23672
23673# Flag that allows shared libraries with undefined symbols to be built.
23674allow_undefined_flag=$lt_allow_undefined_flag
23675
23676# Flag that enforces no undefined symbols.
23677no_undefined_flag=$lt_no_undefined_flag
23678
23679# Flag to hardcode \$libdir into a binary during linking.
23680# This must work even if \$libdir does not exist
23681hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23682
23683# If ld is used when linking, flag to hardcode \$libdir into a binary
23684# during linking. This must work even if \$libdir does not exist.
23685hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23686
23687# Whether we need a single "-rpath" flag with a separated argument.
23688hardcode_libdir_separator=$lt_hardcode_libdir_separator
23689
23690# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23691# DIR into the resulting binary.
23692hardcode_direct=$hardcode_direct
23693
23694# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23695# DIR into the resulting binary and the resulting library dependency is
23696# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23697# library is relocated.
23698hardcode_direct_absolute=$hardcode_direct_absolute
23699
23700# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23701# into the resulting binary.
23702hardcode_minus_L=$hardcode_minus_L
23703
23704# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23705# into the resulting binary.
23706hardcode_shlibpath_var=$hardcode_shlibpath_var
23707
23708# Set to "yes" if building a shared library automatically hardcodes DIR
23709# into the library and all subsequent libraries and executables linked
23710# against it.
23711hardcode_automatic=$hardcode_automatic
23712
23713# Set to yes if linker adds runtime paths of dependent libraries
23714# to runtime path list.
23715inherit_rpath=$inherit_rpath
23716
23717# Whether libtool must link a program against all its dependency libraries.
23718link_all_deplibs=$link_all_deplibs
23719
23720# Fix the shell variable \$srcfile for the compiler.
23721fix_srcfile_path=$lt_fix_srcfile_path
23722
23723# Set to "yes" if exported symbols are required.
23724always_export_symbols=$always_export_symbols
23725
23726# The commands to list exported symbols.
23727export_symbols_cmds=$lt_export_symbols_cmds
23728
23729# Symbols that should not be listed in the preloaded symbols.
23730exclude_expsyms=$lt_exclude_expsyms
23731
23732# Symbols that must always be exported.
23733include_expsyms=$lt_include_expsyms
23734
23735# Commands necessary for linking programs (against libraries) with templates.
23736prelink_cmds=$lt_prelink_cmds
23737
23738# Specify filename containing input files.
23739file_list_spec=$lt_file_list_spec
23740
23741# How to hardcode a shared library path into an executable.
23742hardcode_action=$hardcode_action
23743
23744# ### END LIBTOOL CONFIG
23745
23746_LT_EOF
23747
23748 case $host_os in
23749 aix3*)
23750 cat <<\_LT_EOF >> "$cfgfile"
23751# AIX sometimes has problems with the GCC collect2 program. For some
23752# reason, if we set the COLLECT_NAMES environment variable, the problems
23753# vanish in a puff of smoke.
23754if test "X${COLLECT_NAMES+set}" != Xset; then
23755 COLLECT_NAMES=
23756 export COLLECT_NAMES
23757fi
23758_LT_EOF
23759 ;;
23760 esac
23761
23762
23763ltmain="$ac_aux_dir/ltmain.sh"
23764
23765
23766 # We use sed instead of cat because bash on DJGPP gets confused if
23767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23768 # text mode, it properly converts lines to CR/LF. This bash problem
23769 # is reportedly fixed, but why not run on old versions too?
23770 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23771 || (rm -f "$cfgfile"; exit 1)
23772
23773 case $xsi_shell in
23774 yes)
23775 cat << \_LT_EOF >> "$cfgfile"
23776
23777# func_dirname file append nondir_replacement
23778# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23779# otherwise set result to NONDIR_REPLACEMENT.
23780func_dirname ()
23781{
23782 case ${1} in
23783 */*) func_dirname_result="${1%/*}${2}" ;;
23784 * ) func_dirname_result="${3}" ;;
23785 esac
23786}
23787
23788# func_basename file
23789func_basename ()
23790{
23791 func_basename_result="${1##*/}"
23792}
23793
23794# func_dirname_and_basename file append nondir_replacement
23795# perform func_basename and func_dirname in a single function
23796# call:
23797# dirname: Compute the dirname of FILE. If nonempty,
23798# add APPEND to the result, otherwise set result
23799# to NONDIR_REPLACEMENT.
23800# value returned in "$func_dirname_result"
23801# basename: Compute filename of FILE.
23802# value retuned in "$func_basename_result"
23803# Implementation must be kept synchronized with func_dirname
23804# and func_basename. For efficiency, we do not delegate to
23805# those functions but instead duplicate the functionality here.
23806func_dirname_and_basename ()
23807{
23808 case ${1} in
23809 */*) func_dirname_result="${1%/*}${2}" ;;
23810 * ) func_dirname_result="${3}" ;;
23811 esac
23812 func_basename_result="${1##*/}"
23813}
23814
23815# func_stripname prefix suffix name
23816# strip PREFIX and SUFFIX off of NAME.
23817# PREFIX and SUFFIX must not contain globbing or regex special
23818# characters, hashes, percent signs, but SUFFIX may contain a leading
23819# dot (in which case that matches only a dot).
23820func_stripname ()
23821{
23822 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23823 # positional parameters, so assign one to ordinary parameter first.
23824 func_stripname_result=${3}
23825 func_stripname_result=${func_stripname_result#"${1}"}
23826 func_stripname_result=${func_stripname_result%"${2}"}
23827}
23828
23829# func_opt_split
23830func_opt_split ()
23831{
23832 func_opt_split_opt=${1%%=*}
23833 func_opt_split_arg=${1#*=}
23834}
23835
23836# func_lo2o object
23837func_lo2o ()
23838{
23839 case ${1} in
23840 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23841 *) func_lo2o_result=${1} ;;
23842 esac
23843}
23844
23845# func_xform libobj-or-source
23846func_xform ()
23847{
23848 func_xform_result=${1%.*}.lo
23849}
23850
23851# func_arith arithmetic-term...
23852func_arith ()
23853{
23854 func_arith_result=$(( $* ))
23855}
23856
23857# func_len string
23858# STRING may not start with a hyphen.
23859func_len ()
23860{
23861 func_len_result=${#1}
23862}
23863
23864_LT_EOF
23865 ;;
23866 *) # Bourne compatible functions.
23867 cat << \_LT_EOF >> "$cfgfile"
23868
23869# func_dirname file append nondir_replacement
23870# Compute the dirname of FILE. If nonempty, add APPEND to the result,
23871# otherwise set result to NONDIR_REPLACEMENT.
23872func_dirname ()
23873{
23874 # Extract subdirectory from the argument.
23875 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23876 if test "X$func_dirname_result" = "X${1}"; then
23877 func_dirname_result="${3}"
23878 else
23879 func_dirname_result="$func_dirname_result${2}"
23880 fi
23881}
23882
23883# func_basename file
23884func_basename ()
23885{
23886 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23887}
23888
23889
23890# func_stripname prefix suffix name
23891# strip PREFIX and SUFFIX off of NAME.
23892# PREFIX and SUFFIX must not contain globbing or regex special
23893# characters, hashes, percent signs, but SUFFIX may contain a leading
23894# dot (in which case that matches only a dot).
23895# func_strip_suffix prefix name
23896func_stripname ()
23897{
23898 case ${2} in
23899 .*) func_stripname_result=`$ECHO "X${3}" \
23900 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23901 *) func_stripname_result=`$ECHO "X${3}" \
23902 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23903 esac
23904}
23905
23906# sed scripts:
23907my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23908my_sed_long_arg='1s/^-[^=]*=//'
23909
23910# func_opt_split
23911func_opt_split ()
23912{
23913 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23914 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23915}
23916
23917# func_lo2o object
23918func_lo2o ()
23919{
23920 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23921}
23922
23923# func_xform libobj-or-source
23924func_xform ()
23925{
23926 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23927}
23928
23929# func_arith arithmetic-term...
23930func_arith ()
23931{
23932 func_arith_result=`expr "$@"`
23933}
23934
23935# func_len string
23936# STRING may not start with a hyphen.
23937func_len ()
23938{
23939 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23940}
23941
23942_LT_EOF
23943esac
23944
23945case $lt_shell_append in
23946 yes)
23947 cat << \_LT_EOF >> "$cfgfile"
23948
23949# func_append var value
23950# Append VALUE to the end of shell variable VAR.
23951func_append ()
23952{
23953 eval "$1+=\$2"
23954}
23955_LT_EOF
23956 ;;
23957 *)
23958 cat << \_LT_EOF >> "$cfgfile"
23959
23960# func_append var value
23961# Append VALUE to the end of shell variable VAR.
23962func_append ()
23963{
23964 eval "$1=\$$1\$2"
23965}
23966
23967_LT_EOF
23968 ;;
23969 esac
23970
23971
23972 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23973 || (rm -f "$cfgfile"; exit 1)
23974
23975 mv -f "$cfgfile" "$ofile" ||
23976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23977 chmod +x "$ofile"
23978
23979 ;;
23980
23981 esac
23982done # for ac_tag
23983
23984
23985{ (exit 0); exit 0; }
23986_ACEOF
23987chmod +x $CONFIG_STATUS
23988ac_clean_files=$ac_clean_files_save
23989
23990test $ac_write_fail = 0 ||
23991 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23992$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23993 { (exit 1); exit 1; }; }
23994
23995
23996# configure is writing to config.log, and then calls config.status.
23997# config.status does its own redirection, appending to config.log.
23998# Unfortunately, on DOS this fails, as config.log is still kept open
23999# by configure, so config.status won't be able to write to it; its
24000# output is simply discarded. So we exec the FD to /dev/null,
24001# effectively closing config.log, so it can be properly (re)opened and
24002# appended to by config.status. When coming back to configure, we
24003# need to make the FD available again.
24004if test "$no_create" != yes; then
24005 ac_cs_success=:
24006 ac_config_status_args=
24007 test "$silent" = yes &&
24008 ac_config_status_args="$ac_config_status_args --quiet"
24009 exec 5>/dev/null
24010 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24011 exec 5>>config.log
24012 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24013 # would make configure fail if this is the last instruction.
24014 $ac_cs_success || { (exit 1); exit 1; }
24015fi
24016if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24017 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24018$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24019fi
24020