]> git.proxmox.com Git - mirror_zfs.git/blame - configure
Linux 2.6.33 compat, get/set xattr callbacks
[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
801KERNELCPPFLAGS
802KERNELMAKE_PARAMS
803SPL_SYMBOLS
804SPL_VERSION
805SPL_OBJ
806SPL
807LINUX_SYMBOLS
808LINUX_VERSION
809LINUX_OBJ
810LINUX
811ZFS_CONFIG
812TARGET_ASM_DIR
e70e591c
BB
813DEFAULT_PACKAGE
814VENDOR
815ALIEN_VERSION
816ALIEN
817HAVE_ALIEN
818DPKGBUILD_VERSION
819DPKGBUILD
820HAVE_DPKGBUILD
821DPKG_VERSION
822DPKG
823HAVE_DPKG
824RPMBUILD_VERSION
825RPMBUILD
826HAVE_RPMBUILD
827RPM_VERSION
828RPM
829HAVE_RPM
830am__fastdepCCAS_FALSE
831am__fastdepCCAS_TRUE
832CCASDEPMODE
833CCASFLAGS
834CCAS
835CPP
836OTOOL64
837OTOOL
838LIPO
839NMEDIT
840DSYMUTIL
841lt_ECHO
842RANLIB
843AR
844OBJDUMP
845LN_S
846NM
847ac_ct_DUMPBIN
848DUMPBIN
849LD
850FGREP
851EGREP
852GREP
853SED
854LIBTOOL
855am__fastdepCC_FALSE
856am__fastdepCC_TRUE
857CCDEPMODE
858AMDEPBACKSLASH
859AMDEP_FALSE
860AMDEP_TRUE
861am__quote
862am__include
863DEPDIR
864OBJEXT
865EXEEXT
866ac_ct_CC
867CPPFLAGS
868LDFLAGS
869CFLAGS
870CC
871am__untar
872am__tar
873AMTAR
874am__leading_dot
875SET_MAKE
876AWK
877mkdir_p
878MKDIR_P
879INSTALL_STRIP_PROGRAM
880STRIP
881install_sh
882MAKEINFO
883AUTOHEADER
884AUTOMAKE
885AUTOCONF
886ACLOCAL
887VERSION
888PACKAGE
889CYGPATH_W
890am__isrc
891INSTALL_DATA
892INSTALL_SCRIPT
893INSTALL_PROGRAM
894AM_BACKSLASH
895AM_DEFAULT_VERBOSITY
896MAINT
897MAINTAINER_MODE_FALSE
898MAINTAINER_MODE_TRUE
899target_os
900target_vendor
901target_cpu
902target
903host_os
904host_vendor
905host_cpu
906host
907build_os
908build_vendor
909build_cpu
910build
911ZFS_META_LT_AGE
912ZFS_META_LT_REVISION
913ZFS_META_LT_CURRENT
914ZFS_META_AUTHOR
915ZFS_META_DATA
916ZFS_META_ALIAS
917ZFS_META_LICENSE
918ZFS_META_RELEASE
919ZFS_META_VERSION
920ZFS_META_NAME
921target_alias
922host_alias
923build_alias
924LIBS
925ECHO_T
926ECHO_N
927ECHO_C
928DEFS
929mandir
930localedir
931libdir
932psdir
933pdfdir
934dvidir
935htmldir
936infodir
937docdir
938oldincludedir
939includedir
940localstatedir
941sharedstatedir
942sysconfdir
943datadir
944datarootdir
945libexecdir
946sbindir
947bindir
948program_transform_name
949prefix
950exec_prefix
951PACKAGE_BUGREPORT
952PACKAGE_STRING
953PACKAGE_VERSION
954PACKAGE_TARNAME
955PACKAGE_NAME
956PATH_SEPARATOR
957SHELL'
958ac_subst_files=''
959ac_user_opts='
960enable_option_checking
961enable_maintainer_mode
962enable_silent_rules
963enable_dependency_tracking
964enable_shared
965enable_static
966with_pic
967enable_fast_install
968with_gnu_ld
969enable_libtool_lock
970with_config
971with_linux
972with_linux_obj
973with_spl
974with_spl_obj
975with_blkid
b3259b6a 976with_selinux
e70e591c
BB
977enable_debug
978'
979 ac_precious_vars='build_alias
980host_alias
981target_alias
982CC
983CFLAGS
984LDFLAGS
985LIBS
986CPPFLAGS
987CPP
988CCAS
989CCASFLAGS'
990
991
992# Initialize some variables set by options.
993ac_init_help=
994ac_init_version=false
995ac_unrecognized_opts=
996ac_unrecognized_sep=
997# The variables have the same names as the options, with
998# dashes changed to underlines.
999cache_file=/dev/null
1000exec_prefix=NONE
1001no_create=
1002no_recursion=
1003prefix=NONE
1004program_prefix=NONE
1005program_suffix=NONE
1006program_transform_name=s,x,x,
1007silent=
1008site=
1009srcdir=
1010verbose=
1011x_includes=NONE
1012x_libraries=NONE
1013
1014# Installation directory options.
1015# These are left unexpanded so users can "make install exec_prefix=/foo"
1016# and all the variables that are supposed to be based on exec_prefix
1017# by default will actually change.
1018# Use braces instead of parens because sh, perl, etc. also accept them.
1019# (The list follows the same order as the GNU Coding Standards.)
1020bindir='${exec_prefix}/bin'
1021sbindir='${exec_prefix}/sbin'
1022libexecdir='${exec_prefix}/libexec'
1023datarootdir='${prefix}/share'
1024datadir='${datarootdir}'
1025sysconfdir='${prefix}/etc'
1026sharedstatedir='${prefix}/com'
1027localstatedir='${prefix}/var'
1028includedir='${prefix}/include'
1029oldincludedir='/usr/include'
1030docdir='${datarootdir}/doc/${PACKAGE}'
1031infodir='${datarootdir}/info'
1032htmldir='${docdir}'
1033dvidir='${docdir}'
1034pdfdir='${docdir}'
1035psdir='${docdir}'
1036libdir='${exec_prefix}/lib'
1037localedir='${datarootdir}/locale'
1038mandir='${datarootdir}/man'
1039
1040ac_prev=
1041ac_dashdash=
1042for ac_option
1043do
1044 # If the previous option needs an argument, assign it.
1045 if test -n "$ac_prev"; then
1046 eval $ac_prev=\$ac_option
1047 ac_prev=
1048 continue
1049 fi
1050
1051 case $ac_option in
1052 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053 *) ac_optarg=yes ;;
1054 esac
1055
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1057
1058 case $ac_dashdash$ac_option in
1059 --)
1060 ac_dashdash=yes ;;
1061
1062 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063 ac_prev=bindir ;;
1064 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065 bindir=$ac_optarg ;;
1066
1067 -build | --build | --buil | --bui | --bu)
1068 ac_prev=build_alias ;;
1069 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070 build_alias=$ac_optarg ;;
1071
1072 -cache-file | --cache-file | --cache-fil | --cache-fi \
1073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074 ac_prev=cache_file ;;
1075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077 cache_file=$ac_optarg ;;
1078
1079 --config-cache | -C)
1080 cache_file=config.cache ;;
1081
1082 -datadir | --datadir | --datadi | --datad)
1083 ac_prev=datadir ;;
1084 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085 datadir=$ac_optarg ;;
1086
1087 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088 | --dataroo | --dataro | --datar)
1089 ac_prev=datarootdir ;;
1090 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092 datarootdir=$ac_optarg ;;
1093
1094 -disable-* | --disable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104"enable_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=no ;;
1110
1111 -docdir | --docdir | --docdi | --doc | --do)
1112 ac_prev=docdir ;;
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1115
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 ac_prev=dvidir ;;
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1120
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1126 { (exit 1); exit 1; }; }
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"enable_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval enable_$ac_useropt=\$ac_optarg ;;
1137
1138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140 | --exec | --exe | --ex)
1141 ac_prev=exec_prefix ;;
1142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144 | --exec=* | --exe=* | --ex=*)
1145 exec_prefix=$ac_optarg ;;
1146
1147 -gas | --gas | --ga | --g)
1148 # Obsolete; use --with-gas.
1149 with_gas=yes ;;
1150
1151 -help | --help | --hel | --he | -h)
1152 ac_init_help=long ;;
1153 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154 ac_init_help=recursive ;;
1155 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156 ac_init_help=short ;;
1157
1158 -host | --host | --hos | --ho)
1159 ac_prev=host_alias ;;
1160 -host=* | --host=* | --hos=* | --ho=*)
1161 host_alias=$ac_optarg ;;
1162
1163 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164 ac_prev=htmldir ;;
1165 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166 | --ht=*)
1167 htmldir=$ac_optarg ;;
1168
1169 -includedir | --includedir | --includedi | --included | --include \
1170 | --includ | --inclu | --incl | --inc)
1171 ac_prev=includedir ;;
1172 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173 | --includ=* | --inclu=* | --incl=* | --inc=*)
1174 includedir=$ac_optarg ;;
1175
1176 -infodir | --infodir | --infodi | --infod | --info | --inf)
1177 ac_prev=infodir ;;
1178 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179 infodir=$ac_optarg ;;
1180
1181 -libdir | --libdir | --libdi | --libd)
1182 ac_prev=libdir ;;
1183 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184 libdir=$ac_optarg ;;
1185
1186 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187 | --libexe | --libex | --libe)
1188 ac_prev=libexecdir ;;
1189 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190 | --libexe=* | --libex=* | --libe=*)
1191 libexecdir=$ac_optarg ;;
1192
1193 -localedir | --localedir | --localedi | --localed | --locale)
1194 ac_prev=localedir ;;
1195 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196 localedir=$ac_optarg ;;
1197
1198 -localstatedir | --localstatedir | --localstatedi | --localstated \
1199 | --localstate | --localstat | --localsta | --localst | --locals)
1200 ac_prev=localstatedir ;;
1201 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203 localstatedir=$ac_optarg ;;
1204
1205 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206 ac_prev=mandir ;;
1207 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208 mandir=$ac_optarg ;;
1209
1210 -nfp | --nfp | --nf)
1211 # Obsolete; use --without-fp.
1212 with_fp=no ;;
1213
1214 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215 | --no-cr | --no-c | -n)
1216 no_create=yes ;;
1217
1218 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220 no_recursion=yes ;;
1221
1222 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224 | --oldin | --oldi | --old | --ol | --o)
1225 ac_prev=oldincludedir ;;
1226 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229 oldincludedir=$ac_optarg ;;
1230
1231 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232 ac_prev=prefix ;;
1233 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234 prefix=$ac_optarg ;;
1235
1236 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237 | --program-pre | --program-pr | --program-p)
1238 ac_prev=program_prefix ;;
1239 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241 program_prefix=$ac_optarg ;;
1242
1243 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244 | --program-suf | --program-su | --program-s)
1245 ac_prev=program_suffix ;;
1246 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248 program_suffix=$ac_optarg ;;
1249
1250 -program-transform-name | --program-transform-name \
1251 | --program-transform-nam | --program-transform-na \
1252 | --program-transform-n | --program-transform- \
1253 | --program-transform | --program-transfor \
1254 | --program-transfo | --program-transf \
1255 | --program-trans | --program-tran \
1256 | --progr-tra | --program-tr | --program-t)
1257 ac_prev=program_transform_name ;;
1258 -program-transform-name=* | --program-transform-name=* \
1259 | --program-transform-nam=* | --program-transform-na=* \
1260 | --program-transform-n=* | --program-transform-=* \
1261 | --program-transform=* | --program-transfor=* \
1262 | --program-transfo=* | --program-transf=* \
1263 | --program-trans=* | --program-tran=* \
1264 | --progr-tra=* | --program-tr=* | --program-t=*)
1265 program_transform_name=$ac_optarg ;;
1266
1267 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268 ac_prev=pdfdir ;;
1269 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270 pdfdir=$ac_optarg ;;
1271
1272 -psdir | --psdir | --psdi | --psd | --ps)
1273 ac_prev=psdir ;;
1274 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275 psdir=$ac_optarg ;;
1276
1277 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278 | -silent | --silent | --silen | --sile | --sil)
1279 silent=yes ;;
1280
1281 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282 ac_prev=sbindir ;;
1283 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284 | --sbi=* | --sb=*)
1285 sbindir=$ac_optarg ;;
1286
1287 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289 | --sharedst | --shareds | --shared | --share | --shar \
1290 | --sha | --sh)
1291 ac_prev=sharedstatedir ;;
1292 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295 | --sha=* | --sh=*)
1296 sharedstatedir=$ac_optarg ;;
1297
1298 -site | --site | --sit)
1299 ac_prev=site ;;
1300 -site=* | --site=* | --sit=*)
1301 site=$ac_optarg ;;
1302
1303 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304 ac_prev=srcdir ;;
1305 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306 srcdir=$ac_optarg ;;
1307
1308 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309 | --syscon | --sysco | --sysc | --sys | --sy)
1310 ac_prev=sysconfdir ;;
1311 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313 sysconfdir=$ac_optarg ;;
1314
1315 -target | --target | --targe | --targ | --tar | --ta | --t)
1316 ac_prev=target_alias ;;
1317 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318 target_alias=$ac_optarg ;;
1319
1320 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321 verbose=yes ;;
1322
1323 -version | --version | --versio | --versi | --vers | -V)
1324 ac_init_version=: ;;
1325
1326 -with-* | --with-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1331 { (exit 1); exit 1; }; }
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336"with_$ac_useropt"
1337"*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=\$ac_optarg ;;
1342
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1348 { (exit 1); exit 1; }; }
1349 ac_useropt_orig=$ac_useropt
1350 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1352 *"
1353"with_$ac_useropt"
1354"*) ;;
1355 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356 ac_unrecognized_sep=', ';;
1357 esac
1358 eval with_$ac_useropt=no ;;
1359
1360 --x)
1361 # Obsolete; use --with-x.
1362 with_x=yes ;;
1363
1364 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365 | --x-incl | --x-inc | --x-in | --x-i)
1366 ac_prev=x_includes ;;
1367 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369 x_includes=$ac_optarg ;;
1370
1371 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373 ac_prev=x_libraries ;;
1374 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376 x_libraries=$ac_optarg ;;
1377
1378 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1379Try \`$0 --help' for more information." >&2
1380 { (exit 1); exit 1; }; }
1381 ;;
1382
1383 *=*)
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1387 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1388 { (exit 1); exit 1; }; }
1389 eval $ac_envvar=\$ac_optarg
1390 export $ac_envvar ;;
1391
1392 *)
1393 # FIXME: should be removed in autoconf 3.0.
1394 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1398 ;;
1399
1400 esac
1401done
1402
1403if test -n "$ac_prev"; then
1404 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1406 { (exit 1); exit 1; }; }
1407fi
1408
1409if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1411 no) ;;
1412 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1413 { (exit 1); exit 1; }; } ;;
1414 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1415 esac
1416fi
1417
1418# Check all directory arguments for consistency.
1419for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1420 datadir sysconfdir sharedstatedir localstatedir includedir \
1421 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1422 libdir localedir mandir
1423do
1424 eval ac_val=\$$ac_var
1425 # Remove trailing slashes.
1426 case $ac_val in
1427 */ )
1428 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1429 eval $ac_var=\$ac_val;;
1430 esac
1431 # Be sure to have absolute directory names.
1432 case $ac_val in
1433 [\\/$]* | ?:[\\/]* ) continue;;
1434 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1435 esac
1436 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1437 { (exit 1); exit 1; }; }
1438done
1439
1440# There might be people who depend on the old broken behavior: `$host'
1441# used to hold the argument of --host etc.
1442# FIXME: To remove some day.
1443build=$build_alias
1444host=$host_alias
1445target=$target_alias
1446
1447# FIXME: To remove some day.
1448if test "x$host_alias" != x; then
1449 if test "x$build_alias" = x; then
1450 cross_compiling=maybe
1451 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1452 If a cross compiler is detected then cross compile mode will be used." >&2
1453 elif test "x$build_alias" != "x$host_alias"; then
1454 cross_compiling=yes
1455 fi
1456fi
1457
1458ac_tool_prefix=
1459test -n "$host_alias" && ac_tool_prefix=$host_alias-
1460
1461test "$silent" = yes && exec 6>/dev/null
1462
1463
1464ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465ac_ls_di=`ls -di .` &&
1466ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1468 { (exit 1); exit 1; }; }
1469test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1470 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1471 { (exit 1); exit 1; }; }
1472
1473
1474# Find the source files, if location was not specified.
1475if test -z "$srcdir"; then
1476 ac_srcdir_defaulted=yes
1477 # Try the directory containing this script, then the parent directory.
1478 ac_confdir=`$as_dirname -- "$as_myself" ||
1479$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1480 X"$as_myself" : 'X\(//\)[^/]' \| \
1481 X"$as_myself" : 'X\(//\)$' \| \
1482 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1483$as_echo X"$as_myself" |
1484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)[^/].*/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\/\)$/{
1493 s//\1/
1494 q
1495 }
1496 /^X\(\/\).*/{
1497 s//\1/
1498 q
1499 }
1500 s/.*/./; q'`
1501 srcdir=$ac_confdir
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 srcdir=..
1504 fi
1505else
1506 ac_srcdir_defaulted=no
1507fi
1508if test ! -r "$srcdir/$ac_unique_file"; then
1509 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1510 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1511 { (exit 1); exit 1; }; }
1512fi
1513ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514ac_abs_confdir=`(
1515 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1516 { (exit 1); exit 1; }; }
1517 pwd)`
1518# When building in place, set srcdir=.
1519if test "$ac_abs_confdir" = "$ac_pwd"; then
1520 srcdir=.
1521fi
1522# Remove unnecessary trailing slashes from srcdir.
1523# Double slashes in file names in object file debugging info
1524# mess up M-x gdb in Emacs.
1525case $srcdir in
1526*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1527esac
1528for ac_var in $ac_precious_vars; do
1529 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1530 eval ac_env_${ac_var}_value=\$${ac_var}
1531 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1533done
1534
1535#
1536# Report the --help message.
1537#
1538if test "$ac_init_help" = "long"; then
1539 # Omit some internal or obsolete options to make the list less imposing.
1540 # This message is too long to be a string in the A/UX 3.1 sh.
1541 cat <<_ACEOF
1542\`configure' configures this package to adapt to many kinds of systems.
1543
1544Usage: $0 [OPTION]... [VAR=VALUE]...
1545
1546To assign environment variables (e.g., CC, CFLAGS...), specify them as
1547VAR=VALUE. See below for descriptions of some of the useful variables.
1548
1549Defaults for the options are specified in brackets.
1550
1551Configuration:
1552 -h, --help display this help and exit
1553 --help=short display options specific to this package
1554 --help=recursive display the short help of all the included packages
1555 -V, --version display version information and exit
1556 -q, --quiet, --silent do not print \`checking...' messages
1557 --cache-file=FILE cache test results in FILE [disabled]
1558 -C, --config-cache alias for \`--cache-file=config.cache'
1559 -n, --no-create do not create output files
1560 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1561
1562Installation directories:
1563 --prefix=PREFIX install architecture-independent files in PREFIX
1564 [$ac_default_prefix]
1565 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1566 [PREFIX]
1567
1568By default, \`make install' will install all the files in
1569\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1570an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1571for instance \`--prefix=\$HOME'.
1572
1573For better control, use the options below.
1574
1575Fine tuning of the installation directories:
1576 --bindir=DIR user executables [EPREFIX/bin]
1577 --sbindir=DIR system admin executables [EPREFIX/sbin]
1578 --libexecdir=DIR program executables [EPREFIX/libexec]
1579 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1580 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1581 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1582 --libdir=DIR object code libraries [EPREFIX/lib]
1583 --includedir=DIR C header files [PREFIX/include]
1584 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1585 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1586 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1587 --infodir=DIR info documentation [DATAROOTDIR/info]
1588 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1589 --mandir=DIR man documentation [DATAROOTDIR/man]
1590 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1591 --htmldir=DIR html documentation [DOCDIR]
1592 --dvidir=DIR dvi documentation [DOCDIR]
1593 --pdfdir=DIR pdf documentation [DOCDIR]
1594 --psdir=DIR ps documentation [DOCDIR]
1595_ACEOF
1596
1597 cat <<\_ACEOF
1598
1599Program names:
1600 --program-prefix=PREFIX prepend PREFIX to installed program names
1601 --program-suffix=SUFFIX append SUFFIX to installed program names
1602 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1603
1604System types:
1605 --build=BUILD configure for building on BUILD [guessed]
1606 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1607 --target=TARGET configure for building compilers for TARGET [HOST]
1608_ACEOF
1609fi
1610
1611if test -n "$ac_init_help"; then
1612
1613 cat <<\_ACEOF
1614
1615Optional Features:
1616 --disable-option-checking ignore unrecognized --enable/--with options
1617 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1618 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1619 --enable-maintainer-mode enable make rules and dependencies not useful
1620 (and sometimes confusing) to the casual installer
1621 --enable-silent-rules less verbose build output (undo: `make V=1')
1622 --disable-silent-rules verbose build output (undo: `make V=0')
1623 --disable-dependency-tracking speeds up one-time build
1624 --enable-dependency-tracking do not reject slow dependency extractors
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-static[=PKGS] build static libraries [default=yes]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --enable-debug Enable generic debug support [default=no]
1631
1632Optional Packages:
1633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1635 --with-pic try to use only PIC/non-PIC objects [default=use
1636 both]
1637 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1638 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1639 --with-linux=PATH Path to kernel source
1640 --with-linux-obj=PATH Path to kernel build objects
1641 --with-spl=PATH Path to spl source
1642 --with-spl-obj=PATH Path to spl build objects
1643 --with-blkid support blkid caching [default=check]
b3259b6a 1644 --with-selinux support selinux [default=check]
e70e591c
BB
1645
1646Some influential environment variables:
1647 CC C compiler command
1648 CFLAGS C compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
1651 LIBS libraries to pass to the linker, e.g. -l<library>
1652 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1653 you have headers in a nonstandard directory <include dir>
1654 CPP C preprocessor
1655 CCAS assembler compiler command (defaults to CC)
1656 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1657
1658Use these variables to override the choices made by `configure' or to help
1659it to find libraries and programs with nonstandard names/locations.
1660
1661_ACEOF
1662ac_status=$?
1663fi
1664
1665if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
1671 ac_builddir=.
1672
1673case "$ac_dir" in
1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675*)
1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683esac
1684ac_abs_top_builddir=$ac_pwd
1685ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686# for backward compatibility:
1687ac_top_builddir=$ac_top_build_prefix
1688
1689case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702esac
1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
1718fi
1719
1720test -n "$ac_init_help" && exit $ac_status
1721if $ac_init_version; then
1722 cat <<\_ACEOF
1723configure
1724generated by GNU Autoconf 2.63
1725
1726Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17272002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1728This configure script is free software; the Free Software Foundation
1729gives unlimited permission to copy, distribute and modify it.
1730_ACEOF
1731 exit
1732fi
1733cat >config.log <<_ACEOF
1734This file contains any messages produced by compilers while
1735running configure, to aid debugging if configure makes a mistake.
1736
1737It was created by $as_me, which was
1738generated by GNU Autoconf 2.63. Invocation command line was
1739
1740 $ $0 $@
1741
1742_ACEOF
1743exec 5>>config.log
1744{
1745cat <<_ASUNAME
1746## --------- ##
1747## Platform. ##
1748## --------- ##
1749
1750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758
1759/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1766
1767_ASUNAME
1768
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 $as_echo "PATH: $as_dir"
1775done
1776IFS=$as_save_IFS
1777
1778} >&5
1779
1780cat >&5 <<_ACEOF
1781
1782
1783## ----------- ##
1784## Core tests. ##
1785## ----------- ##
1786
1787_ACEOF
1788
1789
1790# Keep a trace of the command line.
1791# Strip out --no-create and --no-recursion so they do not pile up.
1792# Strip out --silent because we don't want to record it for future runs.
1793# Also quote any args containing shell meta-characters.
1794# Make two passes to allow for proper duplicate-argument suppression.
1795ac_configure_args=
1796ac_configure_args0=
1797ac_configure_args1=
1798ac_must_keep_next=false
1799for ac_pass in 1 2
1800do
1801 for ac_arg
1802 do
1803 case $ac_arg in
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1807 continue ;;
1808 *\'*)
1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 case $ac_pass in
1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813 2)
1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1817 else
1818 case $ac_arg in
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 esac
1826 ;;
1827 -* ) ac_must_keep_next=true ;;
1828 esac
1829 fi
1830 ac_configure_args="$ac_configure_args '$ac_arg'"
1831 ;;
1832 esac
1833 done
1834done
1835$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838# When interrupted or exit'd, cleanup temporary files, and complete
1839# config.log. We remove comments because anyway the quotes in there
1840# would cause problems or look ugly.
1841# WARNING: Use '\'' to represent an apostrophe within the trap.
1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1845 {
1846 echo
1847
1848 cat <<\_ASBOX
1849## ---------------- ##
1850## Cache variables. ##
1851## ---------------- ##
1852_ASBOX
1853 echo
1854 # The following way of writing the cache mishandles newlines in values,
1855(
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1867 *) $as_unset $ac_var ;;
1868 esac ;;
1869 esac
1870 done
1871 (set) 2>&1 |
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
1874 sed -n \
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 ;; #(
1878 *)
1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 ;;
1881 esac |
1882 sort
1883)
1884 echo
1885
1886 cat <<\_ASBOX
1887## ----------------- ##
1888## Output variables. ##
1889## ----------------- ##
1890_ASBOX
1891 echo
1892 for ac_var in $ac_subst_vars
1893 do
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897 esac
1898 $as_echo "$ac_var='\''$ac_val'\''"
1899 done | sort
1900 echo
1901
1902 if test -n "$ac_subst_files"; then
1903 cat <<\_ASBOX
1904## ------------------- ##
1905## File substitutions. ##
1906## ------------------- ##
1907_ASBOX
1908 echo
1909 for ac_var in $ac_subst_files
1910 do
1911 eval ac_val=\$$ac_var
1912 case $ac_val in
1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 esac
1915 $as_echo "$ac_var='\''$ac_val'\''"
1916 done | sort
1917 echo
1918 fi
1919
1920 if test -s confdefs.h; then
1921 cat <<\_ASBOX
1922## ----------- ##
1923## confdefs.h. ##
1924## ----------- ##
1925_ASBOX
1926 echo
1927 cat confdefs.h
1928 echo
1929 fi
1930 test "$ac_signal" != 0 &&
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
1933 } >&5
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936 exit $exit_status
1937' 0
1938for ac_signal in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940done
1941ac_signal=0
1942
1943# confdefs.h avoids OS command line length limits that DEFS can exceed.
1944rm -f -r conftest* confdefs.h
1945
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960_ACEOF
1961
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_STRING "$PACKAGE_STRING"
1965_ACEOF
1966
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970_ACEOF
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
1974# Prefer an explicitly selected file to automatically selected ones.
1975ac_site_file1=NONE
1976ac_site_file2=NONE
1977if test -n "$CONFIG_SITE"; then
1978 ac_site_file1=$CONFIG_SITE
1979elif test "x$prefix" != xNONE; then
1980 ac_site_file1=$prefix/share/config.site
1981 ac_site_file2=$prefix/etc/config.site
1982else
1983 ac_site_file1=$ac_default_prefix/share/config.site
1984 ac_site_file2=$ac_default_prefix/etc/config.site
1985fi
1986for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1987do
1988 test "x$ac_site_file" = xNONE && continue
1989 if test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
1993 . "$ac_site_file"
1994 fi
1995done
1996
1997if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special
1999 # files actually), so we avoid doing that.
2000 if test -f "$cache_file"; then
2001 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002$as_echo "$as_me: loading cache $cache_file" >&6;}
2003 case $cache_file in
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2006 esac
2007 fi
2008else
2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010$as_echo "$as_me: creating cache $cache_file" >&6;}
2011 >$cache_file
2012fi
2013
2014# Check that the precious variables saved in the cache have kept the same
2015# value.
2016ac_cache_corrupted=false
2017for ac_var in $ac_precious_vars; do
2018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019 eval ac_new_set=\$ac_env_${ac_var}_set
2020 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021 eval ac_new_val=\$ac_env_${ac_var}_value
2022 case $ac_old_set,$ac_new_set in
2023 set,)
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2027 ,set)
2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030 ac_cache_corrupted=: ;;
2031 ,);;
2032 *)
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
2034 # differences in whitespace do not lead to failure.
2035 ac_old_val_w=`echo x $ac_old_val`
2036 ac_new_val_w=`echo x $ac_new_val`
2037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted=:
2041 else
2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044 eval $ac_var=\$ac_old_val
2045 fi
2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2047$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2049$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2050 fi;;
2051 esac
2052 # Pass precious variables to config.status.
2053 if test "$ac_new_set" = set; then
2054 case $ac_new_val in
2055 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 *) ac_arg=$ac_var=$ac_new_val ;;
2057 esac
2058 case " $ac_configure_args " in
2059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2060 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061 esac
2062 fi
2063done
2064if $ac_cache_corrupted; then
2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2071 { (exit 1); exit 1; }; }
2072fi
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090ac_ext=c
2091ac_cpp='$CPP $CPPFLAGS'
2092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097ac_ext=c
2098ac_cpp='$CPP $CPPFLAGS'
2099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102
2103
2104
2105
2106
2107
2108 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2109$as_echo_n "checking metadata... " >&6; }
2110
2111 META="$srcdir/META"
2112 _zfs_ac_meta_got_file=no
2113 if test -f "$META"; then
2114 _zfs_ac_meta_got_file=yes
2115
2116 ZFS_META_NAME=`perl -n\
2117 -e "BEGIN { \\$key=shift @ARGV; }"\
2118 -e "next unless s/^\s*\\$key[:=]//i;"\
2119 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2120 -e "s/^\s+//;"\
2121 -e "s/\s+$//;"\
2122 -e "s/^(['\"])(.*)\1/\\$2/;"\
2123 -e "\\$val=\\$_;"\
2124 -e "END { print \\$val if defined \\$val; }"\
2125 '(?:NAME|PROJECT|PACKAGE)' $META`;
2126 if test -n "$ZFS_META_NAME"; then
2127
2128cat >>confdefs.h <<_ACEOF
2129#define ZFS_META_NAME "$ZFS_META_NAME"
2130_ACEOF
2131
2132
2133 fi
2134
2135 ZFS_META_VERSION=`perl -n\
2136 -e "BEGIN { \\$key=shift @ARGV; }"\
2137 -e "next unless s/^\s*\\$key[:=]//i;"\
2138 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2139 -e "s/^\s+//;"\
2140 -e "s/\s+$//;"\
2141 -e "s/^(['\"])(.*)\1/\\$2/;"\
2142 -e "\\$val=\\$_;"\
2143 -e "END { print \\$val if defined \\$val; }"\
2144 'VERSION' $META`;
2145 if test -n "$ZFS_META_VERSION"; then
2146
2147cat >>confdefs.h <<_ACEOF
2148#define ZFS_META_VERSION "$ZFS_META_VERSION"
2149_ACEOF
2150
2151
2152 fi
2153
2154 ZFS_META_RELEASE=`perl -n\
2155 -e "BEGIN { \\$key=shift @ARGV; }"\
2156 -e "next unless s/^\s*\\$key[:=]//i;"\
2157 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2158 -e "s/^\s+//;"\
2159 -e "s/\s+$//;"\
2160 -e "s/^(['\"])(.*)\1/\\$2/;"\
2161 -e "\\$val=\\$_;"\
2162 -e "END { print \\$val if defined \\$val; }"\
2163 'RELEASE' $META`;
2164 if test -n "$ZFS_META_RELEASE"; then
2165
2166cat >>confdefs.h <<_ACEOF
2167#define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2168_ACEOF
2169
2170
2171 fi
2172
2173 ZFS_META_LICENSE=`perl -n\
2174 -e "BEGIN { \\$key=shift @ARGV; }"\
2175 -e "next unless s/^\s*\\$key[:=]//i;"\
2176 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2177 -e "s/^\s+//;"\
2178 -e "s/\s+$//;"\
2179 -e "s/^(['\"])(.*)\1/\\$2/;"\
2180 -e "\\$val=\\$_;"\
2181 -e "END { print \\$val if defined \\$val; }"\
2182 'LICENSE' $META`;
2183 if test -n "$ZFS_META_LICENSE"; then
2184
2185cat >>confdefs.h <<_ACEOF
2186#define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2187_ACEOF
2188
2189
2190 fi
2191
2192 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2193 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2194 test -n "$ZFS_META_RELEASE" &&
2195 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2196
2197cat >>confdefs.h <<_ACEOF
2198#define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2199_ACEOF
2200
2201
2202 fi
2203
2204 ZFS_META_DATA=`perl -n\
2205 -e "BEGIN { \\$key=shift @ARGV; }"\
2206 -e "next unless s/^\s*\\$key[:=]//i;"\
2207 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2208 -e "s/^\s+//;"\
2209 -e "s/\s+$//;"\
2210 -e "s/^(['\"])(.*)\1/\\$2/;"\
2211 -e "\\$val=\\$_;"\
2212 -e "END { print \\$val if defined \\$val; }"\
2213 'DATE' $META`;
2214 if test -n "$ZFS_META_DATA"; then
2215
2216cat >>confdefs.h <<_ACEOF
2217#define ZFS_META_DATA "$ZFS_META_DATA"
2218_ACEOF
2219
2220
2221 fi
2222
2223 ZFS_META_AUTHOR=`perl -n\
2224 -e "BEGIN { \\$key=shift @ARGV; }"\
2225 -e "next unless s/^\s*\\$key[:=]//i;"\
2226 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2227 -e "s/^\s+//;"\
2228 -e "s/\s+$//;"\
2229 -e "s/^(['\"])(.*)\1/\\$2/;"\
2230 -e "\\$val=\\$_;"\
2231 -e "END { print \\$val if defined \\$val; }"\
2232 'AUTHOR' $META`;
2233 if test -n "$ZFS_META_AUTHOR"; then
2234
2235cat >>confdefs.h <<_ACEOF
2236#define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2237_ACEOF
2238
2239
2240 fi
2241
2242
2243 ZFS_META_LT_CURRENT=`perl -n\
2244 -e "BEGIN { \\$key=shift @ARGV; }"\
2245 -e "next unless s/^\s*\\$key[:=]//i;"\
2246 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2247 -e "s/^\s+//;"\
2248 -e "s/\s+$//;"\
2249 -e "s/^(['\"])(.*)\1/\\$2/;"\
2250 -e "\\$val=\\$_;"\
2251 -e "END { print \\$val if defined \\$val; }"\
2252 'LT_CURRENT' $META`;
2253 ZFS_META_LT_REVISION=`perl -n\
2254 -e "BEGIN { \\$key=shift @ARGV; }"\
2255 -e "next unless s/^\s*\\$key[:=]//i;"\
2256 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2257 -e "s/^\s+//;"\
2258 -e "s/\s+$//;"\
2259 -e "s/^(['\"])(.*)\1/\\$2/;"\
2260 -e "\\$val=\\$_;"\
2261 -e "END { print \\$val if defined \\$val; }"\
2262 'LT_REVISION' $META`;
2263 ZFS_META_LT_AGE=`perl -n\
2264 -e "BEGIN { \\$key=shift @ARGV; }"\
2265 -e "next unless s/^\s*\\$key[:=]//i;"\
2266 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2267 -e "s/^\s+//;"\
2268 -e "s/\s+$//;"\
2269 -e "s/^(['\"])(.*)\1/\\$2/;"\
2270 -e "\\$val=\\$_;"\
2271 -e "END { print \\$val if defined \\$val; }"\
2272 'LT_AGE' $META`;
2273 if test -n "$ZFS_META_LT_CURRENT" \
2274 -o -n "$ZFS_META_LT_REVISION" \
2275 -o -n "$ZFS_META_LT_AGE"; then
2276 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2277 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2278 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2279
2280cat >>confdefs.h <<_ACEOF
2281#define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2282_ACEOF
2283
2284
2285cat >>confdefs.h <<_ACEOF
2286#define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2287_ACEOF
2288
2289
2290cat >>confdefs.h <<_ACEOF
2291#define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2292_ACEOF
2293
2294
2295
2296
2297 fi
2298 fi
2299
2300 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_got_file" >&5
2301$as_echo "$_zfs_ac_meta_got_file" >&6; }
2302
2303
2304ac_aux_dir=
2305for ac_dir in config "$srcdir"/config; do
2306 if test -f "$ac_dir/install-sh"; then
2307 ac_aux_dir=$ac_dir
2308 ac_install_sh="$ac_aux_dir/install-sh -c"
2309 break
2310 elif test -f "$ac_dir/install.sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install.sh -c"
2313 break
2314 elif test -f "$ac_dir/shtool"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/shtool install -c"
2317 break
2318 fi
2319done
2320if test -z "$ac_aux_dir"; then
2321 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2322$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2323 { (exit 1); exit 1; }; }
2324fi
2325
2326# These three variables are undocumented and unsupported,
2327# and are intended to be withdrawn in a future Autoconf release.
2328# They can cause serious problems if a builder's source tree is in a directory
2329# whose full name contains unusual characters.
2330ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2331ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2332ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2333
2334
2335# Make sure we can run config.sub.
2336$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2337 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2338$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2339 { (exit 1); exit 1; }; }
2340
2341{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2342$as_echo_n "checking build system type... " >&6; }
2343if test "${ac_cv_build+set}" = set; then
2344 $as_echo_n "(cached) " >&6
2345else
2346 ac_build_alias=$build_alias
2347test "x$ac_build_alias" = x &&
2348 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2349test "x$ac_build_alias" = x &&
2350 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2351$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2352 { (exit 1); exit 1; }; }
2353ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2354 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2355$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2356 { (exit 1); exit 1; }; }
2357
2358fi
2359{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2360$as_echo "$ac_cv_build" >&6; }
2361case $ac_cv_build in
2362*-*-*) ;;
2363*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2364$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2365 { (exit 1); exit 1; }; };;
2366esac
2367build=$ac_cv_build
2368ac_save_IFS=$IFS; IFS='-'
2369set x $ac_cv_build
2370shift
2371build_cpu=$1
2372build_vendor=$2
2373shift; shift
2374# Remember, the first character of IFS is used to create $*,
2375# except with old shells:
2376build_os=$*
2377IFS=$ac_save_IFS
2378case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2379
2380
2381{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2382$as_echo_n "checking host system type... " >&6; }
2383if test "${ac_cv_host+set}" = set; then
2384 $as_echo_n "(cached) " >&6
2385else
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2391$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2392 { (exit 1); exit 1; }; }
2393fi
2394
2395fi
2396{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2397$as_echo "$ac_cv_host" >&6; }
2398case $ac_cv_host in
2399*-*-*) ;;
2400*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2401$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2402 { (exit 1); exit 1; }; };;
2403esac
2404host=$ac_cv_host
2405ac_save_IFS=$IFS; IFS='-'
2406set x $ac_cv_host
2407shift
2408host_cpu=$1
2409host_vendor=$2
2410shift; shift
2411# Remember, the first character of IFS is used to create $*,
2412# except with old shells:
2413host_os=$*
2414IFS=$ac_save_IFS
2415case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2416
2417
2418{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2419$as_echo_n "checking target system type... " >&6; }
2420if test "${ac_cv_target+set}" = set; then
2421 $as_echo_n "(cached) " >&6
2422else
2423 if test "x$target_alias" = x; then
2424 ac_cv_target=$ac_cv_host
2425else
2426 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2427 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2428$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2429 { (exit 1); exit 1; }; }
2430fi
2431
2432fi
2433{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2434$as_echo "$ac_cv_target" >&6; }
2435case $ac_cv_target in
2436*-*-*) ;;
2437*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2438$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2439 { (exit 1); exit 1; }; };;
2440esac
2441target=$ac_cv_target
2442ac_save_IFS=$IFS; IFS='-'
2443set x $ac_cv_target
2444shift
2445target_cpu=$1
2446target_vendor=$2
2447shift; shift
2448# Remember, the first character of IFS is used to create $*,
2449# except with old shells:
2450target_os=$*
2451IFS=$ac_save_IFS
2452case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2453
2454
2455# The aliases save the names the user supplied, while $host etc.
2456# will get canonicalized.
2457test -n "$target_alias" &&
2458 test "$program_prefix$program_suffix$program_transform_name" = \
2459 NONENONEs,x,x, &&
2460 program_prefix=${target_alias}-
2461
2462{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2463$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2464 # Check whether --enable-maintainer-mode was given.
2465if test "${enable_maintainer_mode+set}" = set; then
2466 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2467else
2468 USE_MAINTAINER_MODE=no
2469fi
2470
2471 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2472$as_echo "$USE_MAINTAINER_MODE" >&6; }
2473 if test $USE_MAINTAINER_MODE = yes; then
2474 MAINTAINER_MODE_TRUE=
2475 MAINTAINER_MODE_FALSE='#'
2476else
2477 MAINTAINER_MODE_TRUE='#'
2478 MAINTAINER_MODE_FALSE=
2479fi
2480
2481 MAINT=$MAINTAINER_MODE_TRUE
2482
2483
2484# Check whether --enable-silent-rules was given.
2485if test "${enable_silent_rules+set}" = set; then
2486 enableval=$enable_silent_rules;
2487fi
2488
2489case $enable_silent_rules in
2490yes) AM_DEFAULT_VERBOSITY=0;;
2491no) AM_DEFAULT_VERBOSITY=1;;
2492*) AM_DEFAULT_VERBOSITY=1;;
2493esac
2494AM_BACKSLASH='\'
2495
2496am__api_version='1.11'
2497
2498# Find a good install program. We prefer a C program (faster),
2499# so one script is as good as another. But avoid the broken or
2500# incompatible versions:
2501# SysV /etc/install, /usr/sbin/install
2502# SunOS /usr/etc/install
2503# IRIX /sbin/install
2504# AIX /bin/install
2505# AmigaOS /C/install, which installs bootblocks on floppy discs
2506# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2507# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2508# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2509# OS/2's system install, which has a completely different semantic
2510# ./install, which can be erroneously created by make from ./install.sh.
2511# Reject install programs that cannot install multiple files.
2512{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2513$as_echo_n "checking for a BSD-compatible install... " >&6; }
2514if test -z "$INSTALL"; then
2515if test "${ac_cv_path_install+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2517else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 # Account for people who put trailing slashes in PATH elements.
2524case $as_dir/ in
2525 ./ | .// | /cC/* | \
2526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2527 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2528 /usr/ucb/* ) ;;
2529 *)
2530 # OSF1 and SCO ODT 3.0 have their own names for install.
2531 # Don't use installbsd from OSF since it installs stuff as root
2532 # by default.
2533 for ac_prog in ginstall scoinst install; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2536 if test $ac_prog = install &&
2537 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2538 # AIX install. It has an incompatible calling convention.
2539 :
2540 elif test $ac_prog = install &&
2541 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2542 # program-specific install script used by HP pwplus--don't use.
2543 :
2544 else
2545 rm -rf conftest.one conftest.two conftest.dir
2546 echo one > conftest.one
2547 echo two > conftest.two
2548 mkdir conftest.dir
2549 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2550 test -s conftest.one && test -s conftest.two &&
2551 test -s conftest.dir/conftest.one &&
2552 test -s conftest.dir/conftest.two
2553 then
2554 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2555 break 3
2556 fi
2557 fi
2558 fi
2559 done
2560 done
2561 ;;
2562esac
2563
2564done
2565IFS=$as_save_IFS
2566
2567rm -rf conftest.one conftest.two conftest.dir
2568
2569fi
2570 if test "${ac_cv_path_install+set}" = set; then
2571 INSTALL=$ac_cv_path_install
2572 else
2573 # As a last resort, use the slow shell script. Don't cache a
2574 # value for INSTALL within a source directory, because that will
2575 # break other packages using the cache if that directory is
2576 # removed, or if the value is a relative name.
2577 INSTALL=$ac_install_sh
2578 fi
2579fi
2580{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2581$as_echo "$INSTALL" >&6; }
2582
2583# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2584# It thinks the first close brace ends the variable substitution.
2585test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2586
2587test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2588
2589test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2590
2591{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2592$as_echo_n "checking whether build environment is sane... " >&6; }
2593# Just in case
2594sleep 1
2595echo timestamp > conftest.file
2596# Reject unsafe characters in $srcdir or the absolute working directory
2597# name. Accept space and tab only in the latter.
2598am_lf='
2599'
2600case `pwd` in
2601 *[\\\"\#\$\&\'\`$am_lf]*)
2602 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2603$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2604 { (exit 1); exit 1; }; };;
2605esac
2606case $srcdir in
2607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2608 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2609$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2610 { (exit 1); exit 1; }; };;
2611esac
2612
2613# Do `set' in a subshell so we don't clobber the current shell's
2614# arguments. Must try -L first in case configure is actually a
2615# symlink; some systems play weird games with the mod time of symlinks
2616# (eg FreeBSD returns the mod time of the symlink's containing
2617# directory).
2618if (
2619 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2620 if test "$*" = "X"; then
2621 # -L didn't work.
2622 set X `ls -t "$srcdir/configure" conftest.file`
2623 fi
2624 rm -f conftest.file
2625 if test "$*" != "X $srcdir/configure conftest.file" \
2626 && test "$*" != "X conftest.file $srcdir/configure"; then
2627
2628 # If neither matched, then we have a broken ls. This can happen
2629 # if, for instance, CONFIG_SHELL is bash and it inherits a
2630 # broken ls alias from the environment. This has actually
2631 # happened. Such a system could not be considered "sane".
2632 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2633alias in your environment" >&5
2634$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2635alias in your environment" >&2;}
2636 { (exit 1); exit 1; }; }
2637 fi
2638
2639 test "$2" = conftest.file
2640 )
2641then
2642 # Ok.
2643 :
2644else
2645 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2646Check your system clock" >&5
2647$as_echo "$as_me: error: newly created file is older than distributed files!
2648Check your system clock" >&2;}
2649 { (exit 1); exit 1; }; }
2650fi
2651{ $as_echo "$as_me:$LINENO: result: yes" >&5
2652$as_echo "yes" >&6; }
2653test "$program_prefix" != NONE &&
2654 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2655# Use a double $ so make ignores it.
2656test "$program_suffix" != NONE &&
2657 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2658# Double any \ or $.
2659# By default was `s,x,x', remove it if useless.
2660ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2661program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2662
2663# expand $ac_aux_dir to an absolute path
2664am_aux_dir=`cd $ac_aux_dir && pwd`
2665
2666if test x"${MISSING+set}" != xset; then
2667 case $am_aux_dir in
2668 *\ * | *\ *)
2669 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2670 *)
2671 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2672 esac
2673fi
2674# Use eval to expand $SHELL
2675if eval "$MISSING --run true"; then
2676 am_missing_run="$MISSING --run "
2677else
2678 am_missing_run=
2679 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2680$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2681fi
2682
2683if test x"${install_sh}" != xset; then
2684 case $am_aux_dir in
2685 *\ * | *\ *)
2686 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2687 *)
2688 install_sh="\${SHELL} $am_aux_dir/install-sh"
2689 esac
2690fi
2691
2692# Installed binaries are usually stripped using `strip' when the user
2693# run `make install-strip'. However `strip' might not be the right
2694# tool to use in cross-compilation environments, therefore Automake
2695# will honor the `STRIP' environment variable to overrule this program.
2696if test "$cross_compiling" != no; then
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2699set dummy ${ac_tool_prefix}strip; ac_word=$2
2700{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2701$as_echo_n "checking for $ac_word... " >&6; }
2702if test "${ac_cv_prog_STRIP+set}" = set; then
2703 $as_echo_n "(cached) " >&6
2704else
2705 if test -n "$STRIP"; then
2706 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2716 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719done
2720done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725STRIP=$ac_cv_prog_STRIP
2726if test -n "$STRIP"; then
2727 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2728$as_echo "$STRIP" >&6; }
2729else
2730 { $as_echo "$as_me:$LINENO: result: no" >&5
2731$as_echo "no" >&6; }
2732fi
2733
2734
2735fi
2736if test -z "$ac_cv_prog_STRIP"; then
2737 ac_ct_STRIP=$STRIP
2738 # Extract the first word of "strip", so it can be a program name with args.
2739set dummy strip; ac_word=$2
2740{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2743 $as_echo_n "(cached) " >&6
2744else
2745 if test -n "$ac_ct_STRIP"; then
2746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_ac_ct_STRIP="strip"
2756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2766if test -n "$ac_ct_STRIP"; then
2767 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2768$as_echo "$ac_ct_STRIP" >&6; }
2769else
2770 { $as_echo "$as_me:$LINENO: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774 if test "x$ac_ct_STRIP" = x; then
2775 STRIP=":"
2776 else
2777 case $cross_compiling:$ac_tool_warned in
2778yes:)
2779{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781ac_tool_warned=yes ;;
2782esac
2783 STRIP=$ac_ct_STRIP
2784 fi
2785else
2786 STRIP="$ac_cv_prog_STRIP"
2787fi
2788
2789fi
2790INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2791
2792{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2793$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2794if test -z "$MKDIR_P"; then
2795 if test "${ac_cv_path_mkdir+set}" = set; then
2796 $as_echo_n "(cached) " >&6
2797else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2800do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_prog in mkdir gmkdir; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2806 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2807 'mkdir (GNU coreutils) '* | \
2808 'mkdir (coreutils) '* | \
2809 'mkdir (fileutils) '4.1*)
2810 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2811 break 3;;
2812 esac
2813 done
2814 done
2815done
2816IFS=$as_save_IFS
2817
2818fi
2819
2820 if test "${ac_cv_path_mkdir+set}" = set; then
2821 MKDIR_P="$ac_cv_path_mkdir -p"
2822 else
2823 # As a last resort, use the slow shell script. Don't cache a
2824 # value for MKDIR_P within a source directory, because that will
2825 # break other packages using the cache if that directory is
2826 # removed, or if the value is a relative name.
2827 test -d ./--version && rmdir ./--version
2828 MKDIR_P="$ac_install_sh -d"
2829 fi
2830fi
2831{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2832$as_echo "$MKDIR_P" >&6; }
2833
2834mkdir_p="$MKDIR_P"
2835case $mkdir_p in
2836 [\\/$]* | ?:[\\/]*) ;;
2837 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2838esac
2839
2840for ac_prog in gawk mawk nawk awk
2841do
2842 # Extract the first word of "$ac_prog", so it can be a program name with args.
2843set dummy $ac_prog; ac_word=$2
2844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if test "${ac_cv_prog_AWK+set}" = set; then
2847 $as_echo_n "(cached) " >&6
2848else
2849 if test -n "$AWK"; then
2850 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_AWK="$ac_prog"
2860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869AWK=$ac_cv_prog_AWK
2870if test -n "$AWK"; then
2871 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2872$as_echo "$AWK" >&6; }
2873else
2874 { $as_echo "$as_me:$LINENO: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878
2879 test -n "$AWK" && break
2880done
2881
2882{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2883$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2884set x ${MAKE-make}
2885ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2886if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2887 $as_echo_n "(cached) " >&6
2888else
2889 cat >conftest.make <<\_ACEOF
2890SHELL = /bin/sh
2891all:
2892 @echo '@@@%%%=$(MAKE)=@@@%%%'
2893_ACEOF
2894# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2895case `${MAKE-make} -f conftest.make 2>/dev/null` in
2896 *@@@%%%=?*=@@@%%%*)
2897 eval ac_cv_prog_make_${ac_make}_set=yes;;
2898 *)
2899 eval ac_cv_prog_make_${ac_make}_set=no;;
2900esac
2901rm -f conftest.make
2902fi
2903if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2904 { $as_echo "$as_me:$LINENO: result: yes" >&5
2905$as_echo "yes" >&6; }
2906 SET_MAKE=
2907else
2908 { $as_echo "$as_me:$LINENO: result: no" >&5
2909$as_echo "no" >&6; }
2910 SET_MAKE="MAKE=${MAKE-make}"
2911fi
2912
2913rm -rf .tst 2>/dev/null
2914mkdir .tst 2>/dev/null
2915if test -d .tst; then
2916 am__leading_dot=.
2917else
2918 am__leading_dot=_
2919fi
2920rmdir .tst 2>/dev/null
2921
2922if test "`cd $srcdir && pwd`" != "`pwd`"; then
2923 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2924 # is not polluted with repeated "-I."
2925 am__isrc=' -I$(srcdir)'
2926 # test to see if srcdir already configured
2927 if test -f $srcdir/config.status; then
2928 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2929$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2930 { (exit 1); exit 1; }; }
2931 fi
2932fi
2933
2934# test whether we have cygpath
2935if test -z "$CYGPATH_W"; then
2936 if (cygpath --version) >/dev/null 2>/dev/null; then
2937 CYGPATH_W='cygpath -w'
2938 else
2939 CYGPATH_W=echo
2940 fi
2941fi
2942
2943
2944# Define the identity of the package.
2945 PACKAGE=$ZFS_META_NAME
2946 VERSION=$ZFS_META_VERSION
2947
2948
2949cat >>confdefs.h <<_ACEOF
2950#define PACKAGE "$PACKAGE"
2951_ACEOF
2952
2953
2954cat >>confdefs.h <<_ACEOF
2955#define VERSION "$VERSION"
2956_ACEOF
2957
2958# Some tools Automake needs.
2959
2960ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2961
2962
2963AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2964
2965
2966AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2967
2968
2969AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2970
2971
2972MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2973
2974# We need awk for the "check" target. The system "awk" is bad on
2975# some platforms.
2976# Always define AMTAR for backward compatibility.
2977
2978AMTAR=${AMTAR-"${am_missing_run}tar"}
2979
2980am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2981
2982
2983
2984
2985
2986ac_config_headers="$ac_config_headers zfs_config.h"
2987
2988
2989# Find a good install program. We prefer a C program (faster),
2990# so one script is as good as another. But avoid the broken or
2991# incompatible versions:
2992# SysV /etc/install, /usr/sbin/install
2993# SunOS /usr/etc/install
2994# IRIX /sbin/install
2995# AIX /bin/install
2996# AmigaOS /C/install, which installs bootblocks on floppy discs
2997# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000# OS/2's system install, which has a completely different semantic
3001# ./install, which can be erroneously created by make from ./install.sh.
3002# Reject install programs that cannot install multiple files.
3003{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3004$as_echo_n "checking for a BSD-compatible install... " >&6; }
3005if test -z "$INSTALL"; then
3006if test "${ac_cv_path_install+set}" = set; then
3007 $as_echo_n "(cached) " >&6
3008else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 # Account for people who put trailing slashes in PATH elements.
3015case $as_dir/ in
3016 ./ | .// | /cC/* | \
3017 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3018 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3019 /usr/ucb/* ) ;;
3020 *)
3021 # OSF1 and SCO ODT 3.0 have their own names for install.
3022 # Don't use installbsd from OSF since it installs stuff as root
3023 # by default.
3024 for ac_prog in ginstall scoinst install; do
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3027 if test $ac_prog = install &&
3028 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3029 # AIX install. It has an incompatible calling convention.
3030 :
3031 elif test $ac_prog = install &&
3032 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3033 # program-specific install script used by HP pwplus--don't use.
3034 :
3035 else
3036 rm -rf conftest.one conftest.two conftest.dir
3037 echo one > conftest.one
3038 echo two > conftest.two
3039 mkdir conftest.dir
3040 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3041 test -s conftest.one && test -s conftest.two &&
3042 test -s conftest.dir/conftest.one &&
3043 test -s conftest.dir/conftest.two
3044 then
3045 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3046 break 3
3047 fi
3048 fi
3049 fi
3050 done
3051 done
3052 ;;
3053esac
3054
3055done
3056IFS=$as_save_IFS
3057
3058rm -rf conftest.one conftest.two conftest.dir
3059
3060fi
3061 if test "${ac_cv_path_install+set}" = set; then
3062 INSTALL=$ac_cv_path_install
3063 else
3064 # As a last resort, use the slow shell script. Don't cache a
3065 # value for INSTALL within a source directory, because that will
3066 # break other packages using the cache if that directory is
3067 # removed, or if the value is a relative name.
3068 INSTALL=$ac_install_sh
3069 fi
3070fi
3071{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3072$as_echo "$INSTALL" >&6; }
3073
3074# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075# It thinks the first close brace ends the variable substitution.
3076test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3077
3078test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3079
3080test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3081
3082ac_ext=c
3083ac_cpp='$CPP $CPPFLAGS'
3084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3089set dummy ${ac_tool_prefix}gcc; ac_word=$2
3090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if test "${ac_cv_prog_CC+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3094else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097else
3098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109done
3110done
3111IFS=$as_save_IFS
3112
3113fi
3114fi
3115CC=$ac_cv_prog_CC
3116if test -n "$CC"; then
3117 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3118$as_echo "$CC" >&6; }
3119else
3120 { $as_echo "$as_me:$LINENO: result: no" >&5
3121$as_echo "no" >&6; }
3122fi
3123
3124
3125fi
3126if test -z "$ac_cv_prog_CC"; then
3127 ac_ct_CC=$CC
3128 # Extract the first word of "gcc", so it can be a program name with args.
3129set dummy gcc; ac_word=$2
3130{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3131$as_echo_n "checking for $ac_word... " >&6; }
3132if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3133 $as_echo_n "(cached) " >&6
3134else
3135 if test -n "$ac_ct_CC"; then
3136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_ac_ct_CC="gcc"
3146 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149done
3150done
3151IFS=$as_save_IFS
3152
3153fi
3154fi
3155ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156if test -n "$ac_ct_CC"; then
3157 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3158$as_echo "$ac_ct_CC" >&6; }
3159else
3160 { $as_echo "$as_me:$LINENO: result: no" >&5
3161$as_echo "no" >&6; }
3162fi
3163
3164 if test "x$ac_ct_CC" = x; then
3165 CC=""
3166 else
3167 case $cross_compiling:$ac_tool_warned in
3168yes:)
3169{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171ac_tool_warned=yes ;;
3172esac
3173 CC=$ac_ct_CC
3174 fi
3175else
3176 CC="$ac_cv_prog_CC"
3177fi
3178
3179if test -z "$CC"; then
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3182set dummy ${ac_tool_prefix}cc; ac_word=$2
3183{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3184$as_echo_n "checking for $ac_word... " >&6; }
3185if test "${ac_cv_prog_CC+set}" = set; then
3186 $as_echo_n "(cached) " >&6
3187else
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3190else
3191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192for as_dir in $PATH
3193do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198 ac_cv_prog_CC="${ac_tool_prefix}cc"
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202done
3203done
3204IFS=$as_save_IFS
3205
3206fi
3207fi
3208CC=$ac_cv_prog_CC
3209if test -n "$CC"; then
3210 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3211$as_echo "$CC" >&6; }
3212else
3213 { $as_echo "$as_me:$LINENO: result: no" >&5
3214$as_echo "no" >&6; }
3215fi
3216
3217
3218 fi
3219fi
3220if test -z "$CC"; then
3221 # Extract the first word of "cc", so it can be a program name with args.
3222set dummy cc; ac_word=$2
3223{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3224$as_echo_n "checking for $ac_word... " >&6; }
3225if test "${ac_cv_prog_CC+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3227else
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC="$CC" # Let the user override the test.
3230else
3231 ac_prog_rejected=no
3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233for as_dir in $PATH
3234do
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3240 ac_prog_rejected=yes
3241 continue
3242 fi
3243 ac_cv_prog_CC="cc"
3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3246 fi
3247done
3248done
3249IFS=$as_save_IFS
3250
3251if test $ac_prog_rejected = yes; then
3252 # We found a bogon in the path, so make sure we never use it.
3253 set dummy $ac_cv_prog_CC
3254 shift
3255 if test $# != 0; then
3256 # We chose a different compiler from the bogus one.
3257 # However, it has the same basename, so the bogon will be chosen
3258 # first if we set CC to just the basename; use the full file name.
3259 shift
3260 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3261 fi
3262fi
3263fi
3264fi
3265CC=$ac_cv_prog_CC
3266if test -n "$CC"; then
3267 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3268$as_echo "$CC" >&6; }
3269else
3270 { $as_echo "$as_me:$LINENO: result: no" >&5
3271$as_echo "no" >&6; }
3272fi
3273
3274
3275fi
3276if test -z "$CC"; then
3277 if test -n "$ac_tool_prefix"; then
3278 for ac_prog in cl.exe
3279 do
3280 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3281set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3282{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if test "${ac_cv_prog_CC+set}" = set; then
3285 $as_echo_n "(cached) " >&6
3286else
3287 if test -n "$CC"; then
3288 ac_cv_prog_CC="$CC" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301done
3302done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307CC=$ac_cv_prog_CC
3308if test -n "$CC"; then
3309 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3310$as_echo "$CC" >&6; }
3311else
3312 { $as_echo "$as_me:$LINENO: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316
3317 test -n "$CC" && break
3318 done
3319fi
3320if test -z "$CC"; then
3321 ac_ct_CC=$CC
3322 for ac_prog in cl.exe
3323do
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325set dummy $ac_prog; ac_word=$2
3326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3327$as_echo_n "checking for $ac_word... " >&6; }
3328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3329 $as_echo_n "(cached) " >&6
3330else
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 ac_cv_prog_ac_ct_CC="$ac_prog"
3342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345done
3346done
3347IFS=$as_save_IFS
3348
3349fi
3350fi
3351ac_ct_CC=$ac_cv_prog_ac_ct_CC
3352if test -n "$ac_ct_CC"; then
3353 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3354$as_echo "$ac_ct_CC" >&6; }
3355else
3356 { $as_echo "$as_me:$LINENO: result: no" >&5
3357$as_echo "no" >&6; }
3358fi
3359
3360
3361 test -n "$ac_ct_CC" && break
3362done
3363
3364 if test "x$ac_ct_CC" = x; then
3365 CC=""
3366 else
3367 case $cross_compiling:$ac_tool_warned in
3368yes:)
3369{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371ac_tool_warned=yes ;;
3372esac
3373 CC=$ac_ct_CC
3374 fi
3375fi
3376
3377fi
3378
3379
3380test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3383See \`config.log' for more details." >&5
3384$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3385See \`config.log' for more details." >&2;}
3386 { (exit 1); exit 1; }; }; }
3387
3388# Provide some information about the compiler.
3389$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3390set X $ac_compile
3391ac_compiler=$2
3392{ (ac_try="$ac_compiler --version >&5"
3393case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396esac
3397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398$as_echo "$ac_try_echo") >&5
3399 (eval "$ac_compiler --version >&5") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }
3403{ (ac_try="$ac_compiler -v >&5"
3404case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409$as_echo "$ac_try_echo") >&5
3410 (eval "$ac_compiler -v >&5") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }
3414{ (ac_try="$ac_compiler -V >&5"
3415case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420$as_echo "$ac_try_echo") >&5
3421 (eval "$ac_compiler -V >&5") 2>&5
3422 ac_status=$?
3423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }
3425
3426cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432
3433int
3434main ()
3435{
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441ac_clean_files_save=$ac_clean_files
3442ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3443# Try to create an executable without -o first, disregard a.out.
3444# It will help us diagnose broken compilers, and finding out an intuition
3445# of exeext.
3446{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3447$as_echo_n "checking for C compiler default output file name... " >&6; }
3448ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3449
3450# The possible output files:
3451ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3452
3453ac_rmfiles=
3454for ac_file in $ac_files
3455do
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3459 esac
3460done
3461rm -f $ac_rmfiles
3462
3463if { (ac_try="$ac_link_default"
3464case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467esac
3468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469$as_echo "$ac_try_echo") >&5
3470 (eval "$ac_link_default") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }; then
3474 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3475# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3476# in a Makefile. We should not override ac_cv_exeext if it was cached,
3477# so that the user can short-circuit this test for compilers unknown to
3478# Autoconf.
3479for ac_file in $ac_files ''
3480do
3481 test -f "$ac_file" || continue
3482 case $ac_file in
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3484 ;;
3485 [ab].out )
3486 # We found the default executable, but exeext='' is most
3487 # certainly right.
3488 break;;
3489 *.* )
3490 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3491 then :; else
3492 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493 fi
3494 # We set ac_cv_exeext here because the later test for it is not
3495 # safe: cross compilers may not add the suffix if given an `-o'
3496 # argument, so we may need to know it at that point already.
3497 # Even if this section looks crufty: it has the advantage of
3498 # actually working.
3499 break;;
3500 * )
3501 break;;
3502 esac
3503done
3504test "$ac_cv_exeext" = no && ac_cv_exeext=
3505
3506else
3507 ac_file=''
3508fi
3509
3510{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3511$as_echo "$ac_file" >&6; }
3512if test -z "$ac_file"; then
3513 $as_echo "$as_me: failed program was:" >&5
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3519See \`config.log' for more details." >&5
3520$as_echo "$as_me: error: C compiler cannot create executables
3521See \`config.log' for more details." >&2;}
3522 { (exit 77); exit 77; }; }; }
3523fi
3524
3525ac_exeext=$ac_cv_exeext
3526
3527# Check that the compiler produces executables we can run. If not, either
3528# the compiler is broken, or we cross compile.
3529{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3530$as_echo_n "checking whether the C compiler works... " >&6; }
3531# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3532# If not cross compiling, check that we can run a simple program.
3533if test "$cross_compiling" != yes; then
3534 if { ac_try='./$ac_file'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3538esac
3539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540$as_echo "$ac_try_echo") >&5
3541 (eval "$ac_try") 2>&5
3542 ac_status=$?
3543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 cross_compiling=no
3546 else
3547 if test "$cross_compiling" = maybe; then
3548 cross_compiling=yes
3549 else
3550 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3553If you meant to cross compile, use \`--host'.
3554See \`config.log' for more details." >&5
3555$as_echo "$as_me: error: cannot run C compiled programs.
3556If you meant to cross compile, use \`--host'.
3557See \`config.log' for more details." >&2;}
3558 { (exit 1); exit 1; }; }; }
3559 fi
3560 fi
3561fi
3562{ $as_echo "$as_me:$LINENO: result: yes" >&5
3563$as_echo "yes" >&6; }
3564
3565rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3566ac_clean_files=$ac_clean_files_save
3567# Check that the compiler produces executables we can run. If not, either
3568# the compiler is broken, or we cross compile.
3569{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3570$as_echo_n "checking whether we are cross compiling... " >&6; }
3571{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3572$as_echo "$cross_compiling" >&6; }
3573
3574{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3575$as_echo_n "checking for suffix of executables... " >&6; }
3576if { (ac_try="$ac_link"
3577case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580esac
3581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582$as_echo "$ac_try_echo") >&5
3583 (eval "$ac_link") 2>&5
3584 ac_status=$?
3585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); }; then
3587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3588# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3589# work properly (i.e., refer to `conftest.exe'), while it won't with
3590# `rm'.
3591for ac_file in conftest.exe conftest conftest.*; do
3592 test -f "$ac_file" || continue
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596 break;;
3597 * ) break;;
3598 esac
3599done
3600else
3601 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3604See \`config.log' for more details." >&5
3605$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3606See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }; }
3608fi
3609
3610rm -f conftest$ac_cv_exeext
3611{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3612$as_echo "$ac_cv_exeext" >&6; }
3613
3614rm -f conftest.$ac_ext
3615EXEEXT=$ac_cv_exeext
3616ac_exeext=$EXEEXT
3617{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3618$as_echo_n "checking for suffix of object files... " >&6; }
3619if test "${ac_cv_objext+set}" = set; then
3620 $as_echo_n "(cached) " >&6
3621else
3622 cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
3628
3629int
3630main ()
3631{
3632
3633 ;
3634 return 0;
3635}
3636_ACEOF
3637rm -f conftest.o conftest.obj
3638if { (ac_try="$ac_compile"
3639case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642esac
3643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644$as_echo "$ac_try_echo") >&5
3645 (eval "$ac_compile") 2>&5
3646 ac_status=$?
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; then
3649 for ac_file in conftest.o conftest.obj conftest.*; do
3650 test -f "$ac_file" || continue;
3651 case $ac_file in
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3654 break;;
3655 esac
3656done
3657else
3658 $as_echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3664See \`config.log' for more details." >&5
3665$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3666See \`config.log' for more details." >&2;}
3667 { (exit 1); exit 1; }; }; }
3668fi
3669
3670rm -f conftest.$ac_cv_objext conftest.$ac_ext
3671fi
3672{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3673$as_echo "$ac_cv_objext" >&6; }
3674OBJEXT=$ac_cv_objext
3675ac_objext=$OBJEXT
3676{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3677$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3678if test "${ac_cv_c_compiler_gnu+set}" = set; then
3679 $as_echo_n "(cached) " >&6
3680else
3681 cat >conftest.$ac_ext <<_ACEOF
3682/* confdefs.h. */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h. */
3687
3688int
3689main ()
3690{
3691#ifndef __GNUC__
3692 choke me
3693#endif
3694
3695 ;
3696 return 0;
3697}
3698_ACEOF
3699rm -f conftest.$ac_objext
3700if { (ac_try="$ac_compile"
3701case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704esac
3705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706$as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3708 ac_status=$?
3709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3717 ac_compiler_gnu=yes
3718else
3719 $as_echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 ac_compiler_gnu=no
3723fi
3724
3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726ac_cv_c_compiler_gnu=$ac_compiler_gnu
3727
3728fi
3729{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3730$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3731if test $ac_compiler_gnu = yes; then
3732 GCC=yes
3733else
3734 GCC=
3735fi
3736ac_test_CFLAGS=${CFLAGS+set}
3737ac_save_CFLAGS=$CFLAGS
3738{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3739$as_echo_n "checking whether $CC accepts -g... " >&6; }
3740if test "${ac_cv_prog_cc_g+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3742else
3743 ac_save_c_werror_flag=$ac_c_werror_flag
3744 ac_c_werror_flag=yes
3745 ac_cv_prog_cc_g=no
3746 CFLAGS="-g"
3747 cat >conftest.$ac_ext <<_ACEOF
3748/* confdefs.h. */
3749_ACEOF
3750cat confdefs.h >>conftest.$ac_ext
3751cat >>conftest.$ac_ext <<_ACEOF
3752/* end confdefs.h. */
3753
3754int
3755main ()
3756{
3757
3758 ;
3759 return 0;
3760}
3761_ACEOF
3762rm -f conftest.$ac_objext
3763if { (ac_try="$ac_compile"
3764case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3769$as_echo "$ac_try_echo") >&5
3770 (eval "$ac_compile") 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } && {
3777 test -z "$ac_c_werror_flag" ||
3778 test ! -s conftest.err
3779 } && test -s conftest.$ac_objext; then
3780 ac_cv_prog_cc_g=yes
3781else
3782 $as_echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785 CFLAGS=""
3786 cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h. */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h. */
3792
3793int
3794main ()
3795{
3796
3797 ;
3798 return 0;
3799}
3800_ACEOF
3801rm -f conftest.$ac_objext
3802if { (ac_try="$ac_compile"
3803case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806esac
3807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808$as_echo "$ac_try_echo") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } && {
3816 test -z "$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 } && test -s conftest.$ac_objext; then
3819 :
3820else
3821 $as_echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3825 CFLAGS="-g"
3826 cat >conftest.$ac_ext <<_ACEOF
3827/* confdefs.h. */
3828_ACEOF
3829cat confdefs.h >>conftest.$ac_ext
3830cat >>conftest.$ac_ext <<_ACEOF
3831/* end confdefs.h. */
3832
3833int
3834main ()
3835{
3836
3837 ;
3838 return 0;
3839}
3840_ACEOF
3841rm -f conftest.$ac_objext
3842if { (ac_try="$ac_compile"
3843case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846esac
3847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848$as_echo "$ac_try_echo") >&5
3849 (eval "$ac_compile") 2>conftest.er1
3850 ac_status=$?
3851 grep -v '^ *+' conftest.er1 >conftest.err
3852 rm -f conftest.er1
3853 cat conftest.err >&5
3854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && {
3856 test -z "$ac_c_werror_flag" ||
3857 test ! -s conftest.err
3858 } && test -s conftest.$ac_objext; then
3859 ac_cv_prog_cc_g=yes
3860else
3861 $as_echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864
3865fi
3866
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868fi
3869
3870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871fi
3872
3873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_c_werror_flag=$ac_save_c_werror_flag
3875fi
3876{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3877$as_echo "$ac_cv_prog_cc_g" >&6; }
3878if test "$ac_test_CFLAGS" = set; then
3879 CFLAGS=$ac_save_CFLAGS
3880elif test $ac_cv_prog_cc_g = yes; then
3881 if test "$GCC" = yes; then
3882 CFLAGS="-g -O2"
3883 else
3884 CFLAGS="-g"
3885 fi
3886else
3887 if test "$GCC" = yes; then
3888 CFLAGS="-O2"
3889 else
3890 CFLAGS=
3891 fi
3892fi
3893{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3894$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3895if test "${ac_cv_prog_cc_c89+set}" = set; then
3896 $as_echo_n "(cached) " >&6
3897else
3898 ac_cv_prog_cc_c89=no
3899ac_save_CC=$CC
3900cat >conftest.$ac_ext <<_ACEOF
3901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
3906#include <stdarg.h>
3907#include <stdio.h>
3908#include <sys/types.h>
3909#include <sys/stat.h>
3910/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3911struct buf { int x; };
3912FILE * (*rcsopen) (struct buf *, struct stat *, int);
3913static char *e (p, i)
3914 char **p;
3915 int i;
3916{
3917 return p[i];
3918}
3919static char *f (char * (*g) (char **, int), char **p, ...)
3920{
3921 char *s;
3922 va_list v;
3923 va_start (v,p);
3924 s = g (p, va_arg (v,int));
3925 va_end (v);
3926 return s;
3927}
3928
3929/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3930 function prototypes and stuff, but not '\xHH' hex character constants.
3931 These don't provoke an error unfortunately, instead are silently treated
3932 as 'x'. The following induces an error, until -std is added to get
3933 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3934 array size at least. It's necessary to write '\x00'==0 to get something
3935 that's true only with -std. */
3936int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3937
3938/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3939 inside strings and character constants. */
3940#define FOO(x) 'x'
3941int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3942
3943int test (int i, double x);
3944struct s1 {int (*f) (int a);};
3945struct s2 {int (*f) (double a);};
3946int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3947int argc;
3948char **argv;
3949int
3950main ()
3951{
3952return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3953 ;
3954 return 0;
3955}
3956_ACEOF
3957for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3958 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3959do
3960 CC="$ac_save_CC $ac_arg"
3961 rm -f conftest.$ac_objext
3962if { (ac_try="$ac_compile"
3963case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966esac
3967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3968$as_echo "$ac_try_echo") >&5
3969 (eval "$ac_compile") 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && {
3976 test -z "$ac_c_werror_flag" ||
3977 test ! -s conftest.err
3978 } && test -s conftest.$ac_objext; then
3979 ac_cv_prog_cc_c89=$ac_arg
3980else
3981 $as_echo "$as_me: failed program was:" >&5
3982sed 's/^/| /' conftest.$ac_ext >&5
3983
3984
3985fi
3986
3987rm -f core conftest.err conftest.$ac_objext
3988 test "x$ac_cv_prog_cc_c89" != "xno" && break
3989done
3990rm -f conftest.$ac_ext
3991CC=$ac_save_CC
3992
3993fi
3994# AC_CACHE_VAL
3995case "x$ac_cv_prog_cc_c89" in
3996 x)
3997 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3998$as_echo "none needed" >&6; } ;;
3999 xno)
4000 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4001$as_echo "unsupported" >&6; } ;;
4002 *)
4003 CC="$CC $ac_cv_prog_cc_c89"
4004 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4005$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4006esac
4007
4008
4009ac_ext=c
4010ac_cpp='$CPP $CPPFLAGS'
4011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013ac_compiler_gnu=$ac_cv_c_compiler_gnu
4014DEPDIR="${am__leading_dot}deps"
4015
4016ac_config_commands="$ac_config_commands depfiles"
4017
4018
4019am_make=${MAKE-make}
4020cat > confinc << 'END'
4021am__doit:
4022 @echo this is the am__doit target
4023.PHONY: am__doit
4024END
4025# If we don't find an include directive, just comment out the code.
4026{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4027$as_echo_n "checking for style of include used by $am_make... " >&6; }
4028am__include="#"
4029am__quote=
4030_am_result=none
4031# First try GNU make style include.
4032echo "include confinc" > confmf
4033# Ignore all kinds of additional output from `make'.
4034case `$am_make -s -f confmf 2> /dev/null` in #(
4035*the\ am__doit\ target*)
4036 am__include=include
4037 am__quote=
4038 _am_result=GNU
4039 ;;
4040esac
4041# Now try BSD make style include.
4042if test "$am__include" = "#"; then
4043 echo '.include "confinc"' > confmf
4044 case `$am_make -s -f confmf 2> /dev/null` in #(
4045 *the\ am__doit\ target*)
4046 am__include=.include
4047 am__quote="\""
4048 _am_result=BSD
4049 ;;
4050 esac
4051fi
4052
4053
4054{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4055$as_echo "$_am_result" >&6; }
4056rm -f confinc confmf
4057
4058# Check whether --enable-dependency-tracking was given.
4059if test "${enable_dependency_tracking+set}" = set; then
4060 enableval=$enable_dependency_tracking;
4061fi
4062
4063if test "x$enable_dependency_tracking" != xno; then
4064 am_depcomp="$ac_aux_dir/depcomp"
4065 AMDEPBACKSLASH='\'
4066fi
4067 if test "x$enable_dependency_tracking" != xno; then
4068 AMDEP_TRUE=
4069 AMDEP_FALSE='#'
4070else
4071 AMDEP_TRUE='#'
4072 AMDEP_FALSE=
4073fi
4074
4075
4076
4077depcc="$CC" am_compiler_list=
4078
4079{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4080$as_echo_n "checking dependency style of $depcc... " >&6; }
4081if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4082 $as_echo_n "(cached) " >&6
4083else
4084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4085 # We make a subdir and do the tests there. Otherwise we can end up
4086 # making bogus files that we don't know about and never remove. For
4087 # instance it was reported that on HP-UX the gcc test will end up
4088 # making a dummy file named `D' -- because `-MD' means `put the output
4089 # in D'.
4090 mkdir conftest.dir
4091 # Copy depcomp to subdir because otherwise we won't find it if we're
4092 # using a relative directory.
4093 cp "$am_depcomp" conftest.dir
4094 cd conftest.dir
4095 # We will build objects and dependencies in a subdirectory because
4096 # it helps to detect inapplicable dependency modes. For instance
4097 # both Tru64's cc and ICC support -MD to output dependencies as a
4098 # side effect of compilation, but ICC will put the dependencies in
4099 # the current directory while Tru64 will put them in the object
4100 # directory.
4101 mkdir sub
4102
4103 am_cv_CC_dependencies_compiler_type=none
4104 if test "$am_compiler_list" = ""; then
4105 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4106 fi
4107 am__universal=false
4108 case " $depcc " in #(
4109 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4110 esac
4111
4112 for depmode in $am_compiler_list; do
4113 # Setup a source with many dependencies, because some compilers
4114 # like to wrap large dependency lists on column 80 (with \), and
4115 # we should not choose a depcomp mode which is confused by this.
4116 #
4117 # We need to recreate these files for each test, as the compiler may
4118 # overwrite some of them when testing with obscure command lines.
4119 # This happens at least with the AIX C compiler.
4120 : > sub/conftest.c
4121 for i in 1 2 3 4 5 6; do
4122 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4123 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4124 # Solaris 8's {/usr,}/bin/sh.
4125 touch sub/conftst$i.h
4126 done
4127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4128
4129 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4130 # mode. It turns out that the SunPro C++ compiler does not properly
4131 # handle `-M -o', and we need to detect this. Also, some Intel
4132 # versions had trouble with output in subdirs
4133 am__obj=sub/conftest.${OBJEXT-o}
4134 am__minus_obj="-o $am__obj"
4135 case $depmode in
4136 gcc)
4137 # This depmode causes a compiler race in universal mode.
4138 test "$am__universal" = false || continue
4139 ;;
4140 nosideeffect)
4141 # after this tag, mechanisms are not by side-effect, so they'll
4142 # only be used when explicitly requested
4143 if test "x$enable_dependency_tracking" = xyes; then
4144 continue
4145 else
4146 break
4147 fi
4148 ;;
4149 msvisualcpp | msvcmsys)
4150 # This compiler won't grok `-c -o', but also, the minuso test has
4151 # not run yet. These depmodes are late enough in the game, and
4152 # so weak that their functioning should not be impacted.
4153 am__obj=conftest.${OBJEXT-o}
4154 am__minus_obj=
4155 ;;
4156 none) break ;;
4157 esac
4158 if depmode=$depmode \
4159 source=sub/conftest.c object=$am__obj \
4160 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4161 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4162 >/dev/null 2>conftest.err &&
4163 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4165 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4167 # icc doesn't choke on unknown options, it will just issue warnings
4168 # or remarks (even with -Werror). So we grep stderr for any message
4169 # that says an option was ignored or not supported.
4170 # When given -MP, icc 7.0 and 7.1 complain thusly:
4171 # icc: Command line warning: ignoring option '-M'; no argument required
4172 # The diagnosis changed in icc 8.0:
4173 # icc: Command line remark: option '-MP' not supported
4174 if (grep 'ignoring option' conftest.err ||
4175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4176 am_cv_CC_dependencies_compiler_type=$depmode
4177 break
4178 fi
4179 fi
4180 done
4181
4182 cd ..
4183 rm -rf conftest.dir
4184else
4185 am_cv_CC_dependencies_compiler_type=none
4186fi
4187
4188fi
4189{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4190$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4191CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4192
4193 if
4194 test "x$enable_dependency_tracking" != xno \
4195 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4196 am__fastdepCC_TRUE=
4197 am__fastdepCC_FALSE='#'
4198else
4199 am__fastdepCC_TRUE='#'
4200 am__fastdepCC_FALSE=
4201fi
4202
4203
4204case `pwd` in
4205 *\ * | *\ *)
4206 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4207$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4208esac
4209
4210
4211
135cf6a8
BB
4212macro_version='2.2.6b'
4213macro_revision='1.3017'
e70e591c
BB
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227ltmain="$ac_aux_dir/ltmain.sh"
4228
4229{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4230$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4231if test "${ac_cv_path_SED+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4233else
4234 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4235 for ac_i in 1 2 3 4 5 6 7; do
4236 ac_script="$ac_script$as_nl$ac_script"
4237 done
4238 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4239 $as_unset ac_script || ac_script=
4240 if test -z "$SED"; then
4241 ac_path_SED_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in sed gsed; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4251 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4252# Check for GNU ac_path_SED and select it if it is found.
4253 # Check for GNU $ac_path_SED
4254case `"$ac_path_SED" --version 2>&1` in
4255*GNU*)
4256 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4257*)
4258 ac_count=0
4259 $as_echo_n 0123456789 >"conftest.in"
4260 while :
4261 do
4262 cat "conftest.in" "conftest.in" >"conftest.tmp"
4263 mv "conftest.tmp" "conftest.in"
4264 cp "conftest.in" "conftest.nl"
4265 $as_echo '' >> "conftest.nl"
4266 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268 ac_count=`expr $ac_count + 1`
4269 if test $ac_count -gt ${ac_path_SED_max-0}; then
4270 # Best one so far, save it but keep looking for a better one
4271 ac_cv_path_SED="$ac_path_SED"
4272 ac_path_SED_max=$ac_count
4273 fi
4274 # 10*(2^10) chars as input seems more than enough
4275 test $ac_count -gt 10 && break
4276 done
4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278esac
4279
4280 $ac_path_SED_found && break 3
4281 done
4282 done
4283done
4284IFS=$as_save_IFS
4285 if test -z "$ac_cv_path_SED"; then
4286 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4287$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4288 { (exit 1); exit 1; }; }
4289 fi
4290else
4291 ac_cv_path_SED=$SED
4292fi
4293
4294fi
4295{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4296$as_echo "$ac_cv_path_SED" >&6; }
4297 SED="$ac_cv_path_SED"
4298 rm -f conftest.sed
4299
4300test -z "$SED" && SED=sed
4301Xsed="$SED -e 1s/^X//"
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4314$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4315if test "${ac_cv_path_GREP+set}" = set; then
4316 $as_echo_n "(cached) " >&6
4317else
4318 if test -z "$GREP"; then
4319 ac_path_GREP_found=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in grep ggrep; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4329 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4330# Check for GNU ac_path_GREP and select it if it is found.
4331 # Check for GNU $ac_path_GREP
4332case `"$ac_path_GREP" --version 2>&1` in
4333*GNU*)
4334 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4335*)
4336 ac_count=0
4337 $as_echo_n 0123456789 >"conftest.in"
4338 while :
4339 do
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'GREP' >> "conftest.nl"
4344 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 ac_count=`expr $ac_count + 1`
4347 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_GREP="$ac_path_GREP"
4350 ac_path_GREP_max=$ac_count
4351 fi
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4354 done
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356esac
4357
4358 $ac_path_GREP_found && break 3
4359 done
4360 done
4361done
4362IFS=$as_save_IFS
4363 if test -z "$ac_cv_path_GREP"; then
4364 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4365$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4366 { (exit 1); exit 1; }; }
4367 fi
4368else
4369 ac_cv_path_GREP=$GREP
4370fi
4371
4372fi
4373{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4374$as_echo "$ac_cv_path_GREP" >&6; }
4375 GREP="$ac_cv_path_GREP"
4376
4377
4378{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4379$as_echo_n "checking for egrep... " >&6; }
4380if test "${ac_cv_path_EGREP+set}" = set; then
4381 $as_echo_n "(cached) " >&6
4382else
4383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4384 then ac_cv_path_EGREP="$GREP -E"
4385 else
4386 if test -z "$EGREP"; then
4387 ac_path_EGREP_found=false
4388 # Loop through the user's path and test for each of PROGNAME-LIST
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_prog in egrep; do
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4397 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4398# Check for GNU ac_path_EGREP and select it if it is found.
4399 # Check for GNU $ac_path_EGREP
4400case `"$ac_path_EGREP" --version 2>&1` in
4401*GNU*)
4402 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4403*)
4404 ac_count=0
4405 $as_echo_n 0123456789 >"conftest.in"
4406 while :
4407 do
4408 cat "conftest.in" "conftest.in" >"conftest.tmp"
4409 mv "conftest.tmp" "conftest.in"
4410 cp "conftest.in" "conftest.nl"
4411 $as_echo 'EGREP' >> "conftest.nl"
4412 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414 ac_count=`expr $ac_count + 1`
4415 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4416 # Best one so far, save it but keep looking for a better one
4417 ac_cv_path_EGREP="$ac_path_EGREP"
4418 ac_path_EGREP_max=$ac_count
4419 fi
4420 # 10*(2^10) chars as input seems more than enough
4421 test $ac_count -gt 10 && break
4422 done
4423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4424esac
4425
4426 $ac_path_EGREP_found && break 3
4427 done
4428 done
4429done
4430IFS=$as_save_IFS
4431 if test -z "$ac_cv_path_EGREP"; then
4432 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4433$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4434 { (exit 1); exit 1; }; }
4435 fi
4436else
4437 ac_cv_path_EGREP=$EGREP
4438fi
4439
4440 fi
4441fi
4442{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4443$as_echo "$ac_cv_path_EGREP" >&6; }
4444 EGREP="$ac_cv_path_EGREP"
4445
4446
4447{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4448$as_echo_n "checking for fgrep... " >&6; }
4449if test "${ac_cv_path_FGREP+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4451else
4452 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4453 then ac_cv_path_FGREP="$GREP -F"
4454 else
4455 if test -z "$FGREP"; then
4456 ac_path_FGREP_found=false
4457 # Loop through the user's path and test for each of PROGNAME-LIST
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_prog in fgrep; do
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4466 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4467# Check for GNU ac_path_FGREP and select it if it is found.
4468 # Check for GNU $ac_path_FGREP
4469case `"$ac_path_FGREP" --version 2>&1` in
4470*GNU*)
4471 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4472*)
4473 ac_count=0
4474 $as_echo_n 0123456789 >"conftest.in"
4475 while :
4476 do
4477 cat "conftest.in" "conftest.in" >"conftest.tmp"
4478 mv "conftest.tmp" "conftest.in"
4479 cp "conftest.in" "conftest.nl"
4480 $as_echo 'FGREP' >> "conftest.nl"
4481 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483 ac_count=`expr $ac_count + 1`
4484 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4485 # Best one so far, save it but keep looking for a better one
4486 ac_cv_path_FGREP="$ac_path_FGREP"
4487 ac_path_FGREP_max=$ac_count
4488 fi
4489 # 10*(2^10) chars as input seems more than enough
4490 test $ac_count -gt 10 && break
4491 done
4492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493esac
4494
4495 $ac_path_FGREP_found && break 3
4496 done
4497 done
4498done
4499IFS=$as_save_IFS
4500 if test -z "$ac_cv_path_FGREP"; then
4501 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4502$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4503 { (exit 1); exit 1; }; }
4504 fi
4505else
4506 ac_cv_path_FGREP=$FGREP
4507fi
4508
4509 fi
4510fi
4511{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4512$as_echo "$ac_cv_path_FGREP" >&6; }
4513 FGREP="$ac_cv_path_FGREP"
4514
4515
4516test -z "$GREP" && GREP=grep
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536# Check whether --with-gnu-ld was given.
4537if test "${with_gnu_ld+set}" = set; then
4538 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4539else
4540 with_gnu_ld=no
4541fi
4542
4543ac_prog=ld
4544if test "$GCC" = yes; then
4545 # Check if gcc -print-prog-name=ld gives a path.
4546 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4547$as_echo_n "checking for ld used by $CC... " >&6; }
4548 case $host in
4549 *-*-mingw*)
4550 # gcc leaves a trailing carriage return which upsets mingw
4551 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4552 *)
4553 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4554 esac
4555 case $ac_prog in
4556 # Accept absolute paths.
4557 [\\/]* | ?:[\\/]*)
4558 re_direlt='/[^/][^/]*/\.\./'
4559 # Canonicalize the pathname of ld
4560 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4561 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4562 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4563 done
4564 test -z "$LD" && LD="$ac_prog"
4565 ;;
4566 "")
4567 # If it fails, then pretend we aren't using GCC.
4568 ac_prog=ld
4569 ;;
4570 *)
4571 # If it is relative, then search for the first ld in PATH.
4572 with_gnu_ld=unknown
4573 ;;
4574 esac
4575elif test "$with_gnu_ld" = yes; then
4576 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4577$as_echo_n "checking for GNU ld... " >&6; }
4578else
4579 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4580$as_echo_n "checking for non-GNU ld... " >&6; }
4581fi
4582if test "${lt_cv_path_LD+set}" = set; then
4583 $as_echo_n "(cached) " >&6
4584else
4585 if test -z "$LD"; then
4586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4587 for ac_dir in $PATH; do
4588 IFS="$lt_save_ifs"
4589 test -z "$ac_dir" && ac_dir=.
4590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4591 lt_cv_path_LD="$ac_dir/$ac_prog"
4592 # Check to see if the program is GNU ld. I'd rather use --version,
4593 # but apparently some variants of GNU ld only accept -v.
4594 # Break only if it was the GNU/non-GNU ld that we prefer.
4595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4596 *GNU* | *'with BFD'*)
4597 test "$with_gnu_ld" != no && break
4598 ;;
4599 *)
4600 test "$with_gnu_ld" != yes && break
4601 ;;
4602 esac
4603 fi
4604 done
4605 IFS="$lt_save_ifs"
4606else
4607 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4608fi
4609fi
4610
4611LD="$lt_cv_path_LD"
4612if test -n "$LD"; then
4613 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4614$as_echo "$LD" >&6; }
4615else
4616 { $as_echo "$as_me:$LINENO: result: no" >&5
4617$as_echo "no" >&6; }
4618fi
4619test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4620$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4621 { (exit 1); exit 1; }; }
4622{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4623$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4624if test "${lt_cv_prog_gnu_ld+set}" = set; then
4625 $as_echo_n "(cached) " >&6
4626else
4627 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4628case `$LD -v 2>&1 </dev/null` in
4629*GNU* | *'with BFD'*)
4630 lt_cv_prog_gnu_ld=yes
4631 ;;
4632*)
4633 lt_cv_prog_gnu_ld=no
4634 ;;
4635esac
4636fi
4637{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4638$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4639with_gnu_ld=$lt_cv_prog_gnu_ld
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4650$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4651if test "${lt_cv_path_NM+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$NM"; then
4655 # Let the user override the test.
4656 lt_cv_path_NM="$NM"
4657else
4658 lt_nm_to_check="${ac_tool_prefix}nm"
4659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4660 lt_nm_to_check="$lt_nm_to_check nm"
4661 fi
4662 for lt_tmp_nm in $lt_nm_to_check; do
4663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4665 IFS="$lt_save_ifs"
4666 test -z "$ac_dir" && ac_dir=.
4667 tmp_nm="$ac_dir/$lt_tmp_nm"
4668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4669 # Check to see if the nm accepts a BSD-compat flag.
4670 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4671 # nm: unknown option "B" ignored
4672 # Tru64's nm complains that /dev/null is an invalid object file
4673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4674 */dev/null* | *'Invalid file or object type'*)
4675 lt_cv_path_NM="$tmp_nm -B"
4676 break
4677 ;;
4678 *)
4679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4680 */dev/null*)
4681 lt_cv_path_NM="$tmp_nm -p"
4682 break
4683 ;;
4684 *)
4685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4686 continue # so that we can try to find one that supports BSD flags
4687 ;;
4688 esac
4689 ;;
4690 esac
4691 fi
4692 done
4693 IFS="$lt_save_ifs"
4694 done
4695 : ${lt_cv_path_NM=no}
4696fi
4697fi
4698{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4699$as_echo "$lt_cv_path_NM" >&6; }
4700if test "$lt_cv_path_NM" != "no"; then
4701 NM="$lt_cv_path_NM"
4702else
4703 # Didn't find any BSD compatible name lister, look for dumpbin.
4704 if test -n "$ac_tool_prefix"; then
4705 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4706 do
4707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4708set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4710$as_echo_n "checking for $ac_word... " >&6; }
4711if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4712 $as_echo_n "(cached) " >&6
4713else
4714 if test -n "$DUMPBIN"; then
4715 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4716else
4717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726 break 2
4727 fi
4728done
4729done
4730IFS=$as_save_IFS
4731
4732fi
4733fi
4734DUMPBIN=$ac_cv_prog_DUMPBIN
4735if test -n "$DUMPBIN"; then
4736 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4737$as_echo "$DUMPBIN" >&6; }
4738else
4739 { $as_echo "$as_me:$LINENO: result: no" >&5
4740$as_echo "no" >&6; }
4741fi
4742
4743
4744 test -n "$DUMPBIN" && break
4745 done
4746fi
4747if test -z "$DUMPBIN"; then
4748 ac_ct_DUMPBIN=$DUMPBIN
4749 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4750do
4751 # Extract the first word of "$ac_prog", so it can be a program name with args.
4752set dummy $ac_prog; ac_word=$2
4753{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4754$as_echo_n "checking for $ac_word... " >&6; }
4755if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4757else
4758 if test -n "$ac_ct_DUMPBIN"; then
4759 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4760else
4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772done
4773done
4774IFS=$as_save_IFS
4775
4776fi
4777fi
4778ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4779if test -n "$ac_ct_DUMPBIN"; then
4780 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4781$as_echo "$ac_ct_DUMPBIN" >&6; }
4782else
4783 { $as_echo "$as_me:$LINENO: result: no" >&5
4784$as_echo "no" >&6; }
4785fi
4786
4787
4788 test -n "$ac_ct_DUMPBIN" && break
4789done
4790
4791 if test "x$ac_ct_DUMPBIN" = x; then
4792 DUMPBIN=":"
4793 else
4794 case $cross_compiling:$ac_tool_warned in
4795yes:)
4796{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4798ac_tool_warned=yes ;;
4799esac
4800 DUMPBIN=$ac_ct_DUMPBIN
4801 fi
4802fi
4803
4804
4805 if test "$DUMPBIN" != ":"; then
4806 NM="$DUMPBIN"
4807 fi
4808fi
4809test -z "$NM" && NM=nm
4810
4811
4812
4813
4814
4815
4816{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4817$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4818if test "${lt_cv_nm_interface+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4820else
4821 lt_cv_nm_interface="BSD nm"
4822 echo "int some_variable = 0;" > conftest.$ac_ext
b3259b6a 4823 (eval echo "\"\$as_me:4823: $ac_compile\"" >&5)
e70e591c
BB
4824 (eval "$ac_compile" 2>conftest.err)
4825 cat conftest.err >&5
b3259b6a 4826 (eval echo "\"\$as_me:4826: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
e70e591c
BB
4827 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4828 cat conftest.err >&5
b3259b6a 4829 (eval echo "\"\$as_me:4829: output\"" >&5)
e70e591c
BB
4830 cat conftest.out >&5
4831 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4832 lt_cv_nm_interface="MS dumpbin"
4833 fi
4834 rm -f conftest*
4835fi
4836{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4837$as_echo "$lt_cv_nm_interface" >&6; }
4838
4839{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4840$as_echo_n "checking whether ln -s works... " >&6; }
4841LN_S=$as_ln_s
4842if test "$LN_S" = "ln -s"; then
4843 { $as_echo "$as_me:$LINENO: result: yes" >&5
4844$as_echo "yes" >&6; }
4845else
4846 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4847$as_echo "no, using $LN_S" >&6; }
4848fi
4849
4850# find the maximum length of command line arguments
4851{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4852$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4853if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4854 $as_echo_n "(cached) " >&6
4855else
4856 i=0
4857 teststring="ABCD"
4858
4859 case $build_os in
4860 msdosdjgpp*)
4861 # On DJGPP, this test can blow up pretty badly due to problems in libc
4862 # (any single argument exceeding 2000 bytes causes a buffer overrun
4863 # during glob expansion). Even if it were fixed, the result of this
4864 # check would be larger than it should be.
4865 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4866 ;;
4867
4868 gnu*)
4869 # Under GNU Hurd, this test is not required because there is
4870 # no limit to the length of command line arguments.
4871 # Libtool will interpret -1 as no limit whatsoever
4872 lt_cv_sys_max_cmd_len=-1;
4873 ;;
4874
4875 cygwin* | mingw* | cegcc*)
4876 # On Win9x/ME, this test blows up -- it succeeds, but takes
4877 # about 5 minutes as the teststring grows exponentially.
4878 # Worse, since 9x/ME are not pre-emptively multitasking,
4879 # you end up with a "frozen" computer, even though with patience
4880 # the test eventually succeeds (with a max line length of 256k).
4881 # Instead, let's just punt: use the minimum linelength reported by
4882 # all of the supported platforms: 8192 (on NT/2K/XP).
4883 lt_cv_sys_max_cmd_len=8192;
4884 ;;
4885
4886 amigaos*)
4887 # On AmigaOS with pdksh, this test takes hours, literally.
4888 # So we just punt and use a minimum line length of 8192.
4889 lt_cv_sys_max_cmd_len=8192;
4890 ;;
4891
4892 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4893 # This has been around since 386BSD, at least. Likely further.
4894 if test -x /sbin/sysctl; then
4895 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4896 elif test -x /usr/sbin/sysctl; then
4897 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4898 else
4899 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4900 fi
4901 # And add a safety zone
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4904 ;;
4905
4906 interix*)
4907 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4908 lt_cv_sys_max_cmd_len=196608
4909 ;;
4910
4911 osf*)
4912 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4913 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4914 # nice to cause kernel panics so lets avoid the loop below.
4915 # First set a reasonable default.
4916 lt_cv_sys_max_cmd_len=16384
4917 #
4918 if test -x /sbin/sysconfig; then
4919 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4920 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4921 esac
4922 fi
4923 ;;
4924 sco3.2v5*)
4925 lt_cv_sys_max_cmd_len=102400
4926 ;;
4927 sysv5* | sco5v6* | sysv4.2uw2*)
4928 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4929 if test -n "$kargmax"; then
4930 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4931 else
4932 lt_cv_sys_max_cmd_len=32768
4933 fi
4934 ;;
4935 *)
4936 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4937 if test -n "$lt_cv_sys_max_cmd_len"; then
4938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4940 else
4941 # Make teststring a little bigger before we do anything with it.
4942 # a 1K string should be a reasonable start.
4943 for i in 1 2 3 4 5 6 7 8 ; do
4944 teststring=$teststring$teststring
4945 done
4946 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4947 # If test is not a shell built-in, we'll probably end up computing a
4948 # maximum length that is only half of the actual maximum length, but
4949 # we can't tell.
4950 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4951 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4952 test $i != 17 # 1/2 MB should be enough
4953 do
4954 i=`expr $i + 1`
4955 teststring=$teststring$teststring
4956 done
4957 # Only check the string length outside the loop.
4958 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4959 teststring=
4960 # Add a significant safety factor because C++ compilers can tack on
4961 # massive amounts of additional arguments before passing them to the
4962 # linker. It appears as though 1/2 is a usable value.
4963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4964 fi
4965 ;;
4966 esac
4967
4968fi
4969
4970if test -n $lt_cv_sys_max_cmd_len ; then
4971 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4972$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4973else
4974 { $as_echo "$as_me:$LINENO: result: none" >&5
4975$as_echo "none" >&6; }
4976fi
4977max_cmd_len=$lt_cv_sys_max_cmd_len
4978
4979
4980
4981
4982
4983
4984: ${CP="cp -f"}
4985: ${MV="mv -f"}
4986: ${RM="rm -f"}
4987
4988{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4989$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4990# Try some XSI features
4991xsi_shell=no
4992( _lt_dummy="a/b/c"
4993 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4994 = c,a/b,, \
4995 && eval 'test $(( 1 + 1 )) -eq 2 \
4996 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4997 && xsi_shell=yes
4998{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4999$as_echo "$xsi_shell" >&6; }
5000
5001
5002{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5003$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5004lt_shell_append=no
5005( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5006 >/dev/null 2>&1 \
5007 && lt_shell_append=yes
5008{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5009$as_echo "$lt_shell_append" >&6; }
5010
5011
5012if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5013 lt_unset=unset
5014else
5015 lt_unset=false
5016fi
5017
5018
5019
5020
5021
5022# test EBCDIC or ASCII
5023case `echo X|tr X '\101'` in
5024 A) # ASCII based system
5025 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5026 lt_SP2NL='tr \040 \012'
5027 lt_NL2SP='tr \015\012 \040\040'
5028 ;;
5029 *) # EBCDIC based system
5030 lt_SP2NL='tr \100 \n'
5031 lt_NL2SP='tr \r\n \100\100'
5032 ;;
5033esac
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5044$as_echo_n "checking for $LD option to reload object files... " >&6; }
5045if test "${lt_cv_ld_reload_flag+set}" = set; then
5046 $as_echo_n "(cached) " >&6
5047else
5048 lt_cv_ld_reload_flag='-r'
5049fi
5050{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5051$as_echo "$lt_cv_ld_reload_flag" >&6; }
5052reload_flag=$lt_cv_ld_reload_flag
5053case $reload_flag in
5054"" | " "*) ;;
5055*) reload_flag=" $reload_flag" ;;
5056esac
5057reload_cmds='$LD$reload_flag -o $output$reload_objs'
5058case $host_os in
5059 darwin*)
5060 if test "$GCC" = yes; then
5061 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5062 else
5063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5064 fi
5065 ;;
5066esac
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5078set dummy ${ac_tool_prefix}objdump; ac_word=$2
5079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5080$as_echo_n "checking for $ac_word... " >&6; }
5081if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5082 $as_echo_n "(cached) " >&6
5083else
5084 if test -n "$OBJDUMP"; then
5085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5086else
5087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088for as_dir in $PATH
5089do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098done
5099done
5100IFS=$as_save_IFS
5101
5102fi
5103fi
5104OBJDUMP=$ac_cv_prog_OBJDUMP
5105if test -n "$OBJDUMP"; then
5106 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5107$as_echo "$OBJDUMP" >&6; }
5108else
5109 { $as_echo "$as_me:$LINENO: result: no" >&5
5110$as_echo "no" >&6; }
5111fi
5112
5113
5114fi
5115if test -z "$ac_cv_prog_OBJDUMP"; then
5116 ac_ct_OBJDUMP=$OBJDUMP
5117 # Extract the first word of "objdump", so it can be a program name with args.
5118set dummy objdump; ac_word=$2
5119{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5120$as_echo_n "checking for $ac_word... " >&6; }
5121if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5122 $as_echo_n "(cached) " >&6
5123else
5124 if test -n "$ac_ct_OBJDUMP"; then
5125 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
5138done
5139done
5140IFS=$as_save_IFS
5141
5142fi
5143fi
5144ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5145if test -n "$ac_ct_OBJDUMP"; then
5146 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5147$as_echo "$ac_ct_OBJDUMP" >&6; }
5148else
5149 { $as_echo "$as_me:$LINENO: result: no" >&5
5150$as_echo "no" >&6; }
5151fi
5152
5153 if test "x$ac_ct_OBJDUMP" = x; then
5154 OBJDUMP="false"
5155 else
5156 case $cross_compiling:$ac_tool_warned in
5157yes:)
5158{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160ac_tool_warned=yes ;;
5161esac
5162 OBJDUMP=$ac_ct_OBJDUMP
5163 fi
5164else
5165 OBJDUMP="$ac_cv_prog_OBJDUMP"
5166fi
5167
5168test -z "$OBJDUMP" && OBJDUMP=objdump
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5179$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5180if test "${lt_cv_deplibs_check_method+set}" = set; then
5181 $as_echo_n "(cached) " >&6
5182else
5183 lt_cv_file_magic_cmd='$MAGIC_CMD'
5184lt_cv_file_magic_test_file=
5185lt_cv_deplibs_check_method='unknown'
5186# Need to set the preceding variable on all platforms that support
5187# interlibrary dependencies.
5188# 'none' -- dependencies not supported.
5189# `unknown' -- same as none, but documents that we really don't know.
5190# 'pass_all' -- all dependencies passed with no checks.
5191# 'test_compile' -- check by making test program.
5192# 'file_magic [[regex]]' -- check by looking for files in library path
5193# which responds to the $file_magic_cmd with a given extended regex.
5194# If you have `file' or equivalent on your system and you're not sure
5195# whether `pass_all' will *always* work, you probably want this one.
5196
5197case $host_os in
5198aix[4-9]*)
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202beos*)
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
5205
5206bsdi[45]*)
5207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5208 lt_cv_file_magic_cmd='/usr/bin/file -L'
5209 lt_cv_file_magic_test_file=/shlib/libc.so
5210 ;;
5211
5212cygwin*)
5213 # func_win32_libid is a shell function defined in ltmain.sh
5214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5215 lt_cv_file_magic_cmd='func_win32_libid'
5216 ;;
5217
5218mingw* | pw32*)
5219 # Base MSYS/MinGW do not provide the 'file' command needed by
5220 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5221 # unless we find 'file', for example because we are cross-compiling.
5222 if ( file / ) >/dev/null 2>&1; then
5223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224 lt_cv_file_magic_cmd='func_win32_libid'
5225 else
5226 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5227 lt_cv_file_magic_cmd='$OBJDUMP -f'
5228 fi
5229 ;;
5230
5231cegcc)
5232 # use the weaker test based on 'objdump'. See mingw*.
5233 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5234 lt_cv_file_magic_cmd='$OBJDUMP -f'
5235 ;;
5236
5237darwin* | rhapsody*)
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240
5241freebsd* | dragonfly*)
5242 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243 case $host_cpu in
5244 i*86 )
5245 # Not sure whether the presence of OpenBSD here was a mistake.
5246 # Let's accept both of them until this is cleared up.
5247 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5248 lt_cv_file_magic_cmd=/usr/bin/file
5249 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5250 ;;
5251 esac
5252 else
5253 lt_cv_deplibs_check_method=pass_all
5254 fi
5255 ;;
5256
5257gnu*)
5258 lt_cv_deplibs_check_method=pass_all
5259 ;;
5260
5261hpux10.20* | hpux11*)
5262 lt_cv_file_magic_cmd=/usr/bin/file
5263 case $host_cpu in
5264 ia64*)
5265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5266 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5267 ;;
5268 hppa*64*)
5269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5270 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5271 ;;
5272 *)
5273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5274 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5275 ;;
5276 esac
5277 ;;
5278
5279interix[3-9]*)
5280 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5282 ;;
5283
5284irix5* | irix6* | nonstopux*)
5285 case $LD in
5286 *-32|*"-32 ") libmagic=32-bit;;
5287 *-n32|*"-n32 ") libmagic=N32;;
5288 *-64|*"-64 ") libmagic=64-bit;;
5289 *) libmagic=never-match;;
5290 esac
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
5293
5294# This must be Linux ELF.
5295linux* | k*bsd*-gnu)
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299netbsd*)
5300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5302 else
5303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5304 fi
5305 ;;
5306
5307newos6*)
5308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5309 lt_cv_file_magic_cmd=/usr/bin/file
5310 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5311 ;;
5312
5313*nto* | *qnx*)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316
5317openbsd*)
5318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5320 else
5321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322 fi
5323 ;;
5324
5325osf3* | osf4* | osf5*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328
5329rdos*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333solaris*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
5336
5337sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
5340
5341sysv4 | sysv4.3*)
5342 case $host_vendor in
5343 motorola)
5344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5346 ;;
5347 ncr)
5348 lt_cv_deplibs_check_method=pass_all
5349 ;;
5350 sequent)
5351 lt_cv_file_magic_cmd='/bin/file'
5352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5353 ;;
5354 sni)
5355 lt_cv_file_magic_cmd='/bin/file'
5356 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5357 lt_cv_file_magic_test_file=/lib/libc.so
5358 ;;
5359 siemens)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362 pc)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365 esac
5366 ;;
5367
5368tpf*)
5369 lt_cv_deplibs_check_method=pass_all
5370 ;;
5371esac
5372
5373fi
5374{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5375$as_echo "$lt_cv_deplibs_check_method" >&6; }
5376file_magic_cmd=$lt_cv_file_magic_cmd
5377deplibs_check_method=$lt_cv_deplibs_check_method
5378test -z "$deplibs_check_method" && deplibs_check_method=unknown
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5393set dummy ${ac_tool_prefix}ar; ac_word=$2
5394{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5395$as_echo_n "checking for $ac_word... " >&6; }
5396if test "${ac_cv_prog_AR+set}" = set; then
5397 $as_echo_n "(cached) " >&6
5398else
5399 if test -n "$AR"; then
5400 ac_cv_prog_AR="$AR" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_prog_AR="${ac_tool_prefix}ar"
5410 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415IFS=$as_save_IFS
5416
5417fi
5418fi
5419AR=$ac_cv_prog_AR
5420if test -n "$AR"; then
5421 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5422$as_echo "$AR" >&6; }
5423else
5424 { $as_echo "$as_me:$LINENO: result: no" >&5
5425$as_echo "no" >&6; }
5426fi
5427
5428
5429fi
5430if test -z "$ac_cv_prog_AR"; then
5431 ac_ct_AR=$AR
5432 # Extract the first word of "ar", so it can be a program name with args.
5433set dummy ar; ac_word=$2
5434{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5435$as_echo_n "checking for $ac_word... " >&6; }
5436if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5437 $as_echo_n "(cached) " >&6
5438else
5439 if test -n "$ac_ct_AR"; then
5440 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5441else
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_prog_ac_ct_AR="ar"
5450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
5454done
5455IFS=$as_save_IFS
5456
5457fi
5458fi
5459ac_ct_AR=$ac_cv_prog_ac_ct_AR
5460if test -n "$ac_ct_AR"; then
5461 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5462$as_echo "$ac_ct_AR" >&6; }
5463else
5464 { $as_echo "$as_me:$LINENO: result: no" >&5
5465$as_echo "no" >&6; }
5466fi
5467
5468 if test "x$ac_ct_AR" = x; then
5469 AR="false"
5470 else
5471 case $cross_compiling:$ac_tool_warned in
5472yes:)
5473{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475ac_tool_warned=yes ;;
5476esac
5477 AR=$ac_ct_AR
5478 fi
5479else
5480 AR="$ac_cv_prog_AR"
5481fi
5482
5483test -z "$AR" && AR=ar
5484test -z "$AR_FLAGS" && AR_FLAGS=cru
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5498set dummy ${ac_tool_prefix}strip; ac_word=$2
5499{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5500$as_echo_n "checking for $ac_word... " >&6; }
5501if test "${ac_cv_prog_STRIP+set}" = set; then
5502 $as_echo_n "(cached) " >&6
5503else
5504 if test -n "$STRIP"; then
5505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518done
5519done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524STRIP=$ac_cv_prog_STRIP
5525if test -n "$STRIP"; then
5526 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5527$as_echo "$STRIP" >&6; }
5528else
5529 { $as_echo "$as_me:$LINENO: result: no" >&5
5530$as_echo "no" >&6; }
5531fi
5532
5533
5534fi
5535if test -z "$ac_cv_prog_STRIP"; then
5536 ac_ct_STRIP=$STRIP
5537 # Extract the first word of "strip", so it can be a program name with args.
5538set dummy strip; ac_word=$2
5539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540$as_echo_n "checking for $ac_word... " >&6; }
5541if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5543else
5544 if test -n "$ac_ct_STRIP"; then
5545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_prog_ac_ct_STRIP="strip"
5555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558done
5559done
5560IFS=$as_save_IFS
5561
5562fi
5563fi
5564ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5565if test -n "$ac_ct_STRIP"; then
5566 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5567$as_echo "$ac_ct_STRIP" >&6; }
5568else
5569 { $as_echo "$as_me:$LINENO: result: no" >&5
5570$as_echo "no" >&6; }
5571fi
5572
5573 if test "x$ac_ct_STRIP" = x; then
5574 STRIP=":"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577yes:)
5578{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580ac_tool_warned=yes ;;
5581esac
5582 STRIP=$ac_ct_STRIP
5583 fi
5584else
5585 STRIP="$ac_cv_prog_STRIP"
5586fi
5587
5588test -z "$STRIP" && STRIP=:
5589
5590
5591
5592
5593
5594
5595if test -n "$ac_tool_prefix"; then
5596 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5597set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5599$as_echo_n "checking for $ac_word... " >&6; }
5600if test "${ac_cv_prog_RANLIB+set}" = set; then
5601 $as_echo_n "(cached) " >&6
5602else
5603 if test -n "$RANLIB"; then
5604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5605else
5606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607for as_dir in $PATH
5608do
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617done
5618done
5619IFS=$as_save_IFS
5620
5621fi
5622fi
5623RANLIB=$ac_cv_prog_RANLIB
5624if test -n "$RANLIB"; then
5625 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5626$as_echo "$RANLIB" >&6; }
5627else
5628 { $as_echo "$as_me:$LINENO: result: no" >&5
5629$as_echo "no" >&6; }
5630fi
5631
5632
5633fi
5634if test -z "$ac_cv_prog_RANLIB"; then
5635 ac_ct_RANLIB=$RANLIB
5636 # Extract the first word of "ranlib", so it can be a program name with args.
5637set dummy ranlib; ac_word=$2
5638{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5639$as_echo_n "checking for $ac_word... " >&6; }
5640if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5641 $as_echo_n "(cached) " >&6
5642else
5643 if test -n "$ac_ct_RANLIB"; then
5644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5653 ac_cv_prog_ac_ct_RANLIB="ranlib"
5654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657done
5658done
5659IFS=$as_save_IFS
5660
5661fi
5662fi
5663ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5664if test -n "$ac_ct_RANLIB"; then
5665 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5666$as_echo "$ac_ct_RANLIB" >&6; }
5667else
5668 { $as_echo "$as_me:$LINENO: result: no" >&5
5669$as_echo "no" >&6; }
5670fi
5671
5672 if test "x$ac_ct_RANLIB" = x; then
5673 RANLIB=":"
5674 else
5675 case $cross_compiling:$ac_tool_warned in
5676yes:)
5677{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5679ac_tool_warned=yes ;;
5680esac
5681 RANLIB=$ac_ct_RANLIB
5682 fi
5683else
5684 RANLIB="$ac_cv_prog_RANLIB"
5685fi
5686
5687test -z "$RANLIB" && RANLIB=:
5688
5689
5690
5691
5692
5693
5694# Determine commands to create old-style static archives.
5695old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5696old_postinstall_cmds='chmod 644 $oldlib'
5697old_postuninstall_cmds=
5698
5699if test -n "$RANLIB"; then
5700 case $host_os in
5701 openbsd*)
5702 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5703 ;;
5704 *)
5705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5706 ;;
5707 esac
5708 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5709fi
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744# If no C compiler was specified, use CC.
5745LTCC=${LTCC-"$CC"}
5746
5747# If no C compiler flags were specified, use CFLAGS.
5748LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5749
5750# Allow CC to be a program name with arguments.
5751compiler=$CC
5752
5753
5754# Check for command to grab the raw symbol name followed by C symbol from nm.
5755{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5756$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5757if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5758 $as_echo_n "(cached) " >&6
5759else
5760
5761# These are sane defaults that work on at least a few old systems.
5762# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5763
5764# Character class describing NM global symbol codes.
5765symcode='[BCDEGRST]'
5766
5767# Regexp to match symbols that can be accessed directly from C.
5768sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5769
5770# Define system-specific variables.
5771case $host_os in
5772aix*)
5773 symcode='[BCDT]'
5774 ;;
5775cygwin* | mingw* | pw32* | cegcc*)
5776 symcode='[ABCDGISTW]'
5777 ;;
5778hpux*)
5779 if test "$host_cpu" = ia64; then
5780 symcode='[ABCDEGRST]'
5781 fi
5782 ;;
5783irix* | nonstopux*)
5784 symcode='[BCDEGRST]'
5785 ;;
5786osf*)
5787 symcode='[BCDEGQRST]'
5788 ;;
5789solaris*)
5790 symcode='[BDRT]'
5791 ;;
5792sco3.2v5*)
5793 symcode='[DT]'
5794 ;;
5795sysv4.2uw2*)
5796 symcode='[DT]'
5797 ;;
5798sysv5* | sco5v6* | unixware* | OpenUNIX*)
5799 symcode='[ABDT]'
5800 ;;
5801sysv4)
5802 symcode='[DFNSTU]'
5803 ;;
5804esac
5805
5806# If we're using GNU nm, then use its standard symbol codes.
5807case `$NM -V 2>&1` in
5808*GNU* | *'with BFD'*)
5809 symcode='[ABCDGIRSTW]' ;;
5810esac
5811
5812# Transform an extracted symbol line into a proper C declaration.
5813# Some systems (esp. on ia64) link data and code symbols differently,
5814# so use this general approach.
5815lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5816
5817# Transform an extracted symbol line into symbol name and symbol address
5818lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5819lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5820
5821# Handle CRLF in mingw tool chain
5822opt_cr=
5823case $build_os in
5824mingw*)
5825 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5826 ;;
5827esac
5828
5829# Try without a prefix underscore, then with it.
5830for ac_symprfx in "" "_"; do
5831
5832 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5833 symxfrm="\\1 $ac_symprfx\\2 \\2"
5834
5835 # Write the raw and C identifiers.
5836 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5837 # Fake it for dumpbin and say T for any non-static function
5838 # and D for any global variable.
5839 # Also find C++ and __fastcall symbols from MSVC++,
5840 # which start with @ or ?.
5841 lt_cv_sys_global_symbol_pipe="$AWK '"\
5842" {last_section=section; section=\$ 3};"\
5843" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5844" \$ 0!~/External *\|/{next};"\
5845" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5846" {if(hide[section]) next};"\
5847" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5848" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5849" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5850" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5851" ' prfx=^$ac_symprfx"
5852 else
5853 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5854 fi
5855
5856 # Check to see that the pipe works correctly.
5857 pipe_works=no
5858
5859 rm -f conftest*
5860 cat > conftest.$ac_ext <<_LT_EOF
5861#ifdef __cplusplus
5862extern "C" {
5863#endif
5864char nm_test_var;
5865void nm_test_func(void);
5866void nm_test_func(void){}
5867#ifdef __cplusplus
5868}
5869#endif
5870int main(){nm_test_var='a';nm_test_func();return(0);}
5871_LT_EOF
5872
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874 (eval $ac_compile) 2>&5
5875 ac_status=$?
5876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; then
5878 # Now try to grab the symbols.
5879 nlist=conftest.nm
5880 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5881 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5882 ac_status=$?
5883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && test -s "$nlist"; then
5885 # Try sorting and uniquifying the output.
5886 if sort "$nlist" | uniq > "$nlist"T; then
5887 mv -f "$nlist"T "$nlist"
5888 else
5889 rm -f "$nlist"T
5890 fi
5891
5892 # Make sure that we snagged all the symbols we need.
5893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5895 cat <<_LT_EOF > conftest.$ac_ext
5896#ifdef __cplusplus
5897extern "C" {
5898#endif
5899
5900_LT_EOF
5901 # Now generate the symbol file.
5902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5903
5904 cat <<_LT_EOF >> conftest.$ac_ext
5905
5906/* The mapping between symbol names and symbols. */
5907const struct {
5908 const char *name;
5909 void *address;
5910}
5911lt__PROGRAM__LTX_preloaded_symbols[] =
5912{
5913 { "@PROGRAM@", (void *) 0 },
5914_LT_EOF
5915 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5916 cat <<\_LT_EOF >> conftest.$ac_ext
5917 {0, (void *) 0}
5918};
5919
5920/* This works around a problem in FreeBSD linker */
5921#ifdef FREEBSD_WORKAROUND
5922static const void *lt_preloaded_setup() {
5923 return lt__PROGRAM__LTX_preloaded_symbols;
5924}
5925#endif
5926
5927#ifdef __cplusplus
5928}
5929#endif
5930_LT_EOF
5931 # Now try linking the two files.
5932 mv conftest.$ac_objext conftstm.$ac_objext
5933 lt_save_LIBS="$LIBS"
5934 lt_save_CFLAGS="$CFLAGS"
5935 LIBS="conftstm.$ac_objext"
5936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5938 (eval $ac_link) 2>&5
5939 ac_status=$?
5940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5942 pipe_works=yes
5943 fi
5944 LIBS="$lt_save_LIBS"
5945 CFLAGS="$lt_save_CFLAGS"
5946 else
5947 echo "cannot find nm_test_func in $nlist" >&5
5948 fi
5949 else
5950 echo "cannot find nm_test_var in $nlist" >&5
5951 fi
5952 else
5953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5954 fi
5955 else
5956 echo "$progname: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5958 fi
5959 rm -rf conftest* conftst*
5960
5961 # Do not use the global_symbol_pipe unless it works.
5962 if test "$pipe_works" = yes; then
5963 break
5964 else
5965 lt_cv_sys_global_symbol_pipe=
5966 fi
5967done
5968
5969fi
5970
5971if test -z "$lt_cv_sys_global_symbol_pipe"; then
5972 lt_cv_sys_global_symbol_to_cdecl=
5973fi
5974if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5975 { $as_echo "$as_me:$LINENO: result: failed" >&5
5976$as_echo "failed" >&6; }
5977else
5978 { $as_echo "$as_me:$LINENO: result: ok" >&5
5979$as_echo "ok" >&6; }
5980fi
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004# Check whether --enable-libtool-lock was given.
6005if test "${enable_libtool_lock+set}" = set; then
6006 enableval=$enable_libtool_lock;
6007fi
6008
6009test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6010
6011# Some flags need to be propagated to the compiler or linker for good
6012# libtool support.
6013case $host in
6014ia64-*-hpux*)
6015 # Find out which ABI we are using.
6016 echo 'int i;' > conftest.$ac_ext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>&5
6019 ac_status=$?
6020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; then
6022 case `/usr/bin/file conftest.$ac_objext` in
6023 *ELF-32*)
6024 HPUX_IA64_MODE="32"
6025 ;;
6026 *ELF-64*)
6027 HPUX_IA64_MODE="64"
6028 ;;
6029 esac
6030 fi
6031 rm -rf conftest*
6032 ;;
6033*-*-irix6*)
6034 # Find out which ABI we are using.
b3259b6a 6035 echo '#line 6035 "configure"' > conftest.$ac_ext
e70e591c
BB
6036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6037 (eval $ac_compile) 2>&5
6038 ac_status=$?
6039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; then
6041 if test "$lt_cv_prog_gnu_ld" = yes; then
6042 case `/usr/bin/file conftest.$ac_objext` in
6043 *32-bit*)
6044 LD="${LD-ld} -melf32bsmip"
6045 ;;
6046 *N32*)
6047 LD="${LD-ld} -melf32bmipn32"
6048 ;;
6049 *64-bit*)
6050 LD="${LD-ld} -melf64bmip"
6051 ;;
6052 esac
6053 else
6054 case `/usr/bin/file conftest.$ac_objext` in
6055 *32-bit*)
6056 LD="${LD-ld} -32"
6057 ;;
6058 *N32*)
6059 LD="${LD-ld} -n32"
6060 ;;
6061 *64-bit*)
6062 LD="${LD-ld} -64"
6063 ;;
6064 esac
6065 fi
6066 fi
6067 rm -rf conftest*
6068 ;;
6069
6070x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6071s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6072 # Find out which ABI we are using.
6073 echo 'int i;' > conftest.$ac_ext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>&5
6076 ac_status=$?
6077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; then
6079 case `/usr/bin/file conftest.o` in
6080 *32-bit*)
6081 case $host in
6082 x86_64-*kfreebsd*-gnu)
6083 LD="${LD-ld} -m elf_i386_fbsd"
6084 ;;
6085 x86_64-*linux*)
6086 LD="${LD-ld} -m elf_i386"
6087 ;;
6088 ppc64-*linux*|powerpc64-*linux*)
6089 LD="${LD-ld} -m elf32ppclinux"
6090 ;;
6091 s390x-*linux*)
6092 LD="${LD-ld} -m elf_s390"
6093 ;;
6094 sparc64-*linux*)
6095 LD="${LD-ld} -m elf32_sparc"
6096 ;;
6097 esac
6098 ;;
6099 *64-bit*)
6100 case $host in
6101 x86_64-*kfreebsd*-gnu)
6102 LD="${LD-ld} -m elf_x86_64_fbsd"
6103 ;;
6104 x86_64-*linux*)
6105 LD="${LD-ld} -m elf_x86_64"
6106 ;;
6107 ppc*-*linux*|powerpc*-*linux*)
6108 LD="${LD-ld} -m elf64ppc"
6109 ;;
6110 s390*-*linux*|s390*-*tpf*)
6111 LD="${LD-ld} -m elf64_s390"
6112 ;;
6113 sparc*-*linux*)
6114 LD="${LD-ld} -m elf64_sparc"
6115 ;;
6116 esac
6117 ;;
6118 esac
6119 fi
6120 rm -rf conftest*
6121 ;;
6122
6123*-*-sco3.2v5*)
6124 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6125 SAVE_CFLAGS="$CFLAGS"
6126 CFLAGS="$CFLAGS -belf"
6127 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6128$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6129if test "${lt_cv_cc_needs_belf+set}" = set; then
6130 $as_echo_n "(cached) " >&6
6131else
6132 ac_ext=c
6133ac_cpp='$CPP $CPPFLAGS'
6134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144
6145int
6146main ()
6147{
6148
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153rm -f conftest.$ac_objext conftest$ac_exeext
6154if { (ac_try="$ac_link"
6155case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160$as_echo "$ac_try_echo") >&5
6161 (eval "$ac_link") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest$ac_exeext && {
6171 test "$cross_compiling" = yes ||
6172 $as_test_x conftest$ac_exeext
6173 }; then
6174 lt_cv_cc_needs_belf=yes
6175else
6176 $as_echo "$as_me: failed program was:" >&5
6177sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 lt_cv_cc_needs_belf=no
6180fi
6181
6182rm -rf conftest.dSYM
6183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6184 conftest$ac_exeext conftest.$ac_ext
6185 ac_ext=c
6186ac_cpp='$CPP $CPPFLAGS'
6187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_c_compiler_gnu
6190
6191fi
6192{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6193$as_echo "$lt_cv_cc_needs_belf" >&6; }
6194 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6195 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6196 CFLAGS="$SAVE_CFLAGS"
6197 fi
6198 ;;
6199sparc*-*solaris*)
6200 # Find out which ABI we are using.
6201 echo 'int i;' > conftest.$ac_ext
6202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>&5
6204 ac_status=$?
6205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; then
6207 case `/usr/bin/file conftest.o` in
6208 *64-bit*)
6209 case $lt_cv_prog_gnu_ld in
6210 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6211 *)
6212 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6213 LD="${LD-ld} -64"
6214 fi
6215 ;;
6216 esac
6217 ;;
6218 esac
6219 fi
6220 rm -rf conftest*
6221 ;;
6222esac
6223
6224need_locks="$enable_libtool_lock"
6225
6226
6227 case $host_os in
6228 rhapsody* | darwin*)
6229 if test -n "$ac_tool_prefix"; then
6230 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6231set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6232{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6233$as_echo_n "checking for $ac_word... " >&6; }
6234if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6235 $as_echo_n "(cached) " >&6
6236else
6237 if test -n "$DSYMUTIL"; then
6238 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6239else
6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6250 fi
6251done
6252done
6253IFS=$as_save_IFS
6254
6255fi
6256fi
6257DSYMUTIL=$ac_cv_prog_DSYMUTIL
6258if test -n "$DSYMUTIL"; then
6259 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6260$as_echo "$DSYMUTIL" >&6; }
6261else
6262 { $as_echo "$as_me:$LINENO: result: no" >&5
6263$as_echo "no" >&6; }
6264fi
6265
6266
6267fi
6268if test -z "$ac_cv_prog_DSYMUTIL"; then
6269 ac_ct_DSYMUTIL=$DSYMUTIL
6270 # Extract the first word of "dsymutil", so it can be a program name with args.
6271set dummy dsymutil; ac_word=$2
6272{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6273$as_echo_n "checking for $ac_word... " >&6; }
6274if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6275 $as_echo_n "(cached) " >&6
6276else
6277 if test -n "$ac_ct_DSYMUTIL"; then
6278 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6279else
6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281for as_dir in $PATH
6282do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291done
6292done
6293IFS=$as_save_IFS
6294
6295fi
6296fi
6297ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6298if test -n "$ac_ct_DSYMUTIL"; then
6299 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6300$as_echo "$ac_ct_DSYMUTIL" >&6; }
6301else
6302 { $as_echo "$as_me:$LINENO: result: no" >&5
6303$as_echo "no" >&6; }
6304fi
6305
6306 if test "x$ac_ct_DSYMUTIL" = x; then
6307 DSYMUTIL=":"
6308 else
6309 case $cross_compiling:$ac_tool_warned in
6310yes:)
6311{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6313ac_tool_warned=yes ;;
6314esac
6315 DSYMUTIL=$ac_ct_DSYMUTIL
6316 fi
6317else
6318 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6319fi
6320
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6323set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6325$as_echo_n "checking for $ac_word... " >&6; }
6326if test "${ac_cv_prog_NMEDIT+set}" = set; then
6327 $as_echo_n "(cached) " >&6
6328else
6329 if test -n "$NMEDIT"; then
6330 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343done
6344done
6345IFS=$as_save_IFS
6346
6347fi
6348fi
6349NMEDIT=$ac_cv_prog_NMEDIT
6350if test -n "$NMEDIT"; then
6351 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6352$as_echo "$NMEDIT" >&6; }
6353else
6354 { $as_echo "$as_me:$LINENO: result: no" >&5
6355$as_echo "no" >&6; }
6356fi
6357
6358
6359fi
6360if test -z "$ac_cv_prog_NMEDIT"; then
6361 ac_ct_NMEDIT=$NMEDIT
6362 # Extract the first word of "nmedit", so it can be a program name with args.
6363set dummy nmedit; ac_word=$2
6364{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6365$as_echo_n "checking for $ac_word... " >&6; }
6366if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6367 $as_echo_n "(cached) " >&6
6368else
6369 if test -n "$ac_ct_NMEDIT"; then
6370 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6371else
6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383done
6384done
6385IFS=$as_save_IFS
6386
6387fi
6388fi
6389ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6390if test -n "$ac_ct_NMEDIT"; then
6391 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6392$as_echo "$ac_ct_NMEDIT" >&6; }
6393else
6394 { $as_echo "$as_me:$LINENO: result: no" >&5
6395$as_echo "no" >&6; }
6396fi
6397
6398 if test "x$ac_ct_NMEDIT" = x; then
6399 NMEDIT=":"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402yes:)
6403{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6405ac_tool_warned=yes ;;
6406esac
6407 NMEDIT=$ac_ct_NMEDIT
6408 fi
6409else
6410 NMEDIT="$ac_cv_prog_NMEDIT"
6411fi
6412
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6415set dummy ${ac_tool_prefix}lipo; ac_word=$2
6416{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6417$as_echo_n "checking for $ac_word... " >&6; }
6418if test "${ac_cv_prog_LIPO+set}" = set; then
6419 $as_echo_n "(cached) " >&6
6420else
6421 if test -n "$LIPO"; then
6422 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435done
6436done
6437IFS=$as_save_IFS
6438
6439fi
6440fi
6441LIPO=$ac_cv_prog_LIPO
6442if test -n "$LIPO"; then
6443 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6444$as_echo "$LIPO" >&6; }
6445else
6446 { $as_echo "$as_me:$LINENO: result: no" >&5
6447$as_echo "no" >&6; }
6448fi
6449
6450
6451fi
6452if test -z "$ac_cv_prog_LIPO"; then
6453 ac_ct_LIPO=$LIPO
6454 # Extract the first word of "lipo", so it can be a program name with args.
6455set dummy lipo; ac_word=$2
6456{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6457$as_echo_n "checking for $ac_word... " >&6; }
6458if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6459 $as_echo_n "(cached) " >&6
6460else
6461 if test -n "$ac_ct_LIPO"; then
6462 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_LIPO="lipo"
6472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6474 fi
6475done
6476done
6477IFS=$as_save_IFS
6478
6479fi
6480fi
6481ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6482if test -n "$ac_ct_LIPO"; then
6483 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6484$as_echo "$ac_ct_LIPO" >&6; }
6485else
6486 { $as_echo "$as_me:$LINENO: result: no" >&5
6487$as_echo "no" >&6; }
6488fi
6489
6490 if test "x$ac_ct_LIPO" = x; then
6491 LIPO=":"
6492 else
6493 case $cross_compiling:$ac_tool_warned in
6494yes:)
6495{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497ac_tool_warned=yes ;;
6498esac
6499 LIPO=$ac_ct_LIPO
6500 fi
6501else
6502 LIPO="$ac_cv_prog_LIPO"
6503fi
6504
6505 if test -n "$ac_tool_prefix"; then
6506 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6507set dummy ${ac_tool_prefix}otool; ac_word=$2
6508{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6509$as_echo_n "checking for $ac_word... " >&6; }
6510if test "${ac_cv_prog_OTOOL+set}" = set; then
6511 $as_echo_n "(cached) " >&6
6512else
6513 if test -n "$OTOOL"; then
6514 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6515else
6516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517for as_dir in $PATH
6518do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527done
6528done
6529IFS=$as_save_IFS
6530
6531fi
6532fi
6533OTOOL=$ac_cv_prog_OTOOL
6534if test -n "$OTOOL"; then
6535 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6536$as_echo "$OTOOL" >&6; }
6537else
6538 { $as_echo "$as_me:$LINENO: result: no" >&5
6539$as_echo "no" >&6; }
6540fi
6541
6542
6543fi
6544if test -z "$ac_cv_prog_OTOOL"; then
6545 ac_ct_OTOOL=$OTOOL
6546 # Extract the first word of "otool", so it can be a program name with args.
6547set dummy otool; ac_word=$2
6548{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
6550if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6551 $as_echo_n "(cached) " >&6
6552else
6553 if test -n "$ac_ct_OTOOL"; then
6554 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_prog_ac_ct_OTOOL="otool"
6564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 break 2
6566 fi
6567done
6568done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6574if test -n "$ac_ct_OTOOL"; then
6575 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6576$as_echo "$ac_ct_OTOOL" >&6; }
6577else
6578 { $as_echo "$as_me:$LINENO: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582 if test "x$ac_ct_OTOOL" = x; then
6583 OTOOL=":"
6584 else
6585 case $cross_compiling:$ac_tool_warned in
6586yes:)
6587{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6589ac_tool_warned=yes ;;
6590esac
6591 OTOOL=$ac_ct_OTOOL
6592 fi
6593else
6594 OTOOL="$ac_cv_prog_OTOOL"
6595fi
6596
6597 if test -n "$ac_tool_prefix"; then
6598 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6599set dummy ${ac_tool_prefix}otool64; ac_word=$2
6600{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6601$as_echo_n "checking for $ac_word... " >&6; }
6602if test "${ac_cv_prog_OTOOL64+set}" = set; then
6603 $as_echo_n "(cached) " >&6
6604else
6605 if test -n "$OTOOL64"; then
6606 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6607else
6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619done
6620done
6621IFS=$as_save_IFS
6622
6623fi
6624fi
6625OTOOL64=$ac_cv_prog_OTOOL64
6626if test -n "$OTOOL64"; then
6627 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6628$as_echo "$OTOOL64" >&6; }
6629else
6630 { $as_echo "$as_me:$LINENO: result: no" >&5
6631$as_echo "no" >&6; }
6632fi
6633
6634
6635fi
6636if test -z "$ac_cv_prog_OTOOL64"; then
6637 ac_ct_OTOOL64=$OTOOL64
6638 # Extract the first word of "otool64", so it can be a program name with args.
6639set dummy otool64; ac_word=$2
6640{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6641$as_echo_n "checking for $ac_word... " >&6; }
6642if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6643 $as_echo_n "(cached) " >&6
6644else
6645 if test -n "$ac_ct_OTOOL64"; then
6646 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655 ac_cv_prog_ac_ct_OTOOL64="otool64"
6656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659done
6660done
6661IFS=$as_save_IFS
6662
6663fi
6664fi
6665ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6666if test -n "$ac_ct_OTOOL64"; then
6667 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6668$as_echo "$ac_ct_OTOOL64" >&6; }
6669else
6670 { $as_echo "$as_me:$LINENO: result: no" >&5
6671$as_echo "no" >&6; }
6672fi
6673
6674 if test "x$ac_ct_OTOOL64" = x; then
6675 OTOOL64=":"
6676 else
6677 case $cross_compiling:$ac_tool_warned in
6678yes:)
6679{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6681ac_tool_warned=yes ;;
6682esac
6683 OTOOL64=$ac_ct_OTOOL64
6684 fi
6685else
6686 OTOOL64="$ac_cv_prog_OTOOL64"
6687fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6716$as_echo_n "checking for -single_module linker flag... " >&6; }
6717if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6718 $as_echo_n "(cached) " >&6
6719else
6720 lt_cv_apple_cc_single_mod=no
6721 if test -z "${LT_MULTI_MODULE}"; then
6722 # By default we will add the -single_module flag. You can override
6723 # by either setting the environment variable LT_MULTI_MODULE
6724 # non-empty at configure time, or by adding -multi_module to the
6725 # link flags.
6726 rm -rf libconftest.dylib*
6727 echo "int foo(void){return 1;}" > conftest.c
6728 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6729-dynamiclib -Wl,-single_module conftest.c" >&5
6730 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6731 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6732 _lt_result=$?
6733 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6734 lt_cv_apple_cc_single_mod=yes
6735 else
6736 cat conftest.err >&5
6737 fi
6738 rm -rf libconftest.dylib*
6739 rm -f conftest.*
6740 fi
6741fi
6742{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6743$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6744 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6745$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6746if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6747 $as_echo_n "(cached) " >&6
6748else
6749 lt_cv_ld_exported_symbols_list=no
6750 save_LDFLAGS=$LDFLAGS
6751 echo "_main" > conftest.sym
6752 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6753 cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */
6759
6760int
6761main ()
6762{
6763
6764 ;
6765 return 0;
6766}
6767_ACEOF
6768rm -f conftest.$ac_objext conftest$ac_exeext
6769if { (ac_try="$ac_link"
6770case "(($ac_try" in
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772 *) ac_try_echo=$ac_try;;
6773esac
6774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6775$as_echo "$ac_try_echo") >&5
6776 (eval "$ac_link") 2>conftest.er1
6777 ac_status=$?
6778 grep -v '^ *+' conftest.er1 >conftest.err
6779 rm -f conftest.er1
6780 cat conftest.err >&5
6781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest$ac_exeext && {
6786 test "$cross_compiling" = yes ||
6787 $as_test_x conftest$ac_exeext
6788 }; then
6789 lt_cv_ld_exported_symbols_list=yes
6790else
6791 $as_echo "$as_me: failed program was:" >&5
6792sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 lt_cv_ld_exported_symbols_list=no
6795fi
6796
6797rm -rf conftest.dSYM
6798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6799 conftest$ac_exeext conftest.$ac_ext
6800 LDFLAGS="$save_LDFLAGS"
6801
6802fi
6803{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6804$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6805 case $host_os in
6806 rhapsody* | darwin1.[012])
6807 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6808 darwin1.*)
6809 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6810 darwin*) # darwin 5.x on
6811 # if running on 10.5 or later, the deployment target defaults
6812 # to the OS version, if on x86, and 10.4, the deployment
6813 # target defaults to 10.4. Don't you love it?
6814 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6815 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6816 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6817 10.[012]*)
6818 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6819 10.*)
6820 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6821 esac
6822 ;;
6823 esac
6824 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6825 _lt_dar_single_mod='$single_module'
6826 fi
6827 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6828 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6829 else
6830 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6831 fi
6832 if test "$DSYMUTIL" != ":"; then
6833 _lt_dsymutil='~$DSYMUTIL $lib || :'
6834 else
6835 _lt_dsymutil=
6836 fi
6837 ;;
6838 esac
6839
6840ac_ext=c
6841ac_cpp='$CPP $CPPFLAGS'
6842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6846$as_echo_n "checking how to run the C preprocessor... " >&6; }
6847# On Suns, sometimes $CPP names a directory.
6848if test -n "$CPP" && test -d "$CPP"; then
6849 CPP=
6850fi
6851if test -z "$CPP"; then
6852 if test "${ac_cv_prog_CPP+set}" = set; then
6853 $as_echo_n "(cached) " >&6
6854else
6855 # Double quotes because CPP needs to be expanded
6856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6857 do
6858 ac_preproc_ok=false
6859for ac_c_preproc_warn_flag in '' yes
6860do
6861 # Use a header file that comes with gcc, so configuring glibc
6862 # with a fresh cross-compiler works.
6863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 # <limits.h> exists even on freestanding compilers.
6865 # On the NeXT, cc -E runs the code through the compiler's parser,
6866 # not just through cpp. "Syntax error" is here to catch this case.
6867 cat >conftest.$ac_ext <<_ACEOF
6868/* confdefs.h. */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h. */
6873#ifdef __STDC__
6874# include <limits.h>
6875#else
6876# include <assert.h>
6877#endif
6878 Syntax error
6879_ACEOF
6880if { (ac_try="$ac_cpp conftest.$ac_ext"
6881case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884esac
6885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6886$as_echo "$ac_try_echo") >&5
6887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
6892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } >/dev/null && {
6894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6895 test ! -s conftest.err
6896 }; then
6897 :
6898else
6899 $as_echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 # Broken: fails on valid input.
6903continue
6904fi
6905
6906rm -f conftest.err conftest.$ac_ext
6907
6908 # OK, works on sane cases. Now check whether nonexistent headers
6909 # can be detected and how.
6910 cat >conftest.$ac_ext <<_ACEOF
6911/* confdefs.h. */
6912_ACEOF
6913cat confdefs.h >>conftest.$ac_ext
6914cat >>conftest.$ac_ext <<_ACEOF
6915/* end confdefs.h. */
6916#include <ac_nonexistent.h>
6917_ACEOF
6918if { (ac_try="$ac_cpp conftest.$ac_ext"
6919case "(($ac_try" in
6920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6921 *) ac_try_echo=$ac_try;;
6922esac
6923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6924$as_echo "$ac_try_echo") >&5
6925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6926 ac_status=$?
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
6930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } >/dev/null && {
6932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6933 test ! -s conftest.err
6934 }; then
6935 # Broken: success on invalid input.
6936continue
6937else
6938 $as_echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 # Passes both tests.
6942ac_preproc_ok=:
6943break
6944fi
6945
6946rm -f conftest.err conftest.$ac_ext
6947
6948done
6949# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6950rm -f conftest.err conftest.$ac_ext
6951if $ac_preproc_ok; then
6952 break
6953fi
6954
6955 done
6956 ac_cv_prog_CPP=$CPP
6957
6958fi
6959 CPP=$ac_cv_prog_CPP
6960else
6961 ac_cv_prog_CPP=$CPP
6962fi
6963{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6964$as_echo "$CPP" >&6; }
6965ac_preproc_ok=false
6966for ac_c_preproc_warn_flag in '' yes
6967do
6968 # Use a header file that comes with gcc, so configuring glibc
6969 # with a fresh cross-compiler works.
6970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971 # <limits.h> exists even on freestanding compilers.
6972 # On the NeXT, cc -E runs the code through the compiler's parser,
6973 # not just through cpp. "Syntax error" is here to catch this case.
6974 cat >conftest.$ac_ext <<_ACEOF
6975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
6980#ifdef __STDC__
6981# include <limits.h>
6982#else
6983# include <assert.h>
6984#endif
6985 Syntax error
6986_ACEOF
6987if { (ac_try="$ac_cpp conftest.$ac_ext"
6988case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991esac
6992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993$as_echo "$ac_try_echo") >&5
6994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } >/dev/null && {
7001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 }; then
7004 :
7005else
7006 $as_echo "$as_me: failed program was:" >&5
7007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 # Broken: fails on valid input.
7010continue
7011fi
7012
7013rm -f conftest.err conftest.$ac_ext
7014
7015 # OK, works on sane cases. Now check whether nonexistent headers
7016 # can be detected and how.
7017 cat >conftest.$ac_ext <<_ACEOF
7018/* confdefs.h. */
7019_ACEOF
7020cat confdefs.h >>conftest.$ac_ext
7021cat >>conftest.$ac_ext <<_ACEOF
7022/* end confdefs.h. */
7023#include <ac_nonexistent.h>
7024_ACEOF
7025if { (ac_try="$ac_cpp conftest.$ac_ext"
7026case "(($ac_try" in
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7029esac
7030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7031$as_echo "$ac_try_echo") >&5
7032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } >/dev/null && {
7039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 }; then
7042 # Broken: success on invalid input.
7043continue
7044else
7045 $as_echo "$as_me: failed program was:" >&5
7046sed 's/^/| /' conftest.$ac_ext >&5
7047
7048 # Passes both tests.
7049ac_preproc_ok=:
7050break
7051fi
7052
7053rm -f conftest.err conftest.$ac_ext
7054
7055done
7056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7057rm -f conftest.err conftest.$ac_ext
7058if $ac_preproc_ok; then
7059 :
7060else
7061 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7063{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7064See \`config.log' for more details." >&5
7065$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7066See \`config.log' for more details." >&2;}
7067 { (exit 1); exit 1; }; }; }
7068fi
7069
7070ac_ext=c
7071ac_cpp='$CPP $CPPFLAGS'
7072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075
7076
7077{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7078$as_echo_n "checking for ANSI C header files... " >&6; }
7079if test "${ac_cv_header_stdc+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7081else
7082 cat >conftest.$ac_ext <<_ACEOF
7083/* confdefs.h. */
7084_ACEOF
7085cat confdefs.h >>conftest.$ac_ext
7086cat >>conftest.$ac_ext <<_ACEOF
7087/* end confdefs.h. */
7088#include <stdlib.h>
7089#include <stdarg.h>
7090#include <string.h>
7091#include <float.h>
7092
7093int
7094main ()
7095{
7096
7097 ;
7098 return 0;
7099}
7100_ACEOF
7101rm -f conftest.$ac_objext
7102if { (ac_try="$ac_compile"
7103case "(($ac_try" in
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7106esac
7107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7108$as_echo "$ac_try_echo") >&5
7109 (eval "$ac_compile") 2>conftest.er1
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } && {
7116 test -z "$ac_c_werror_flag" ||
7117 test ! -s conftest.err
7118 } && test -s conftest.$ac_objext; then
7119 ac_cv_header_stdc=yes
7120else
7121 $as_echo "$as_me: failed program was:" >&5
7122sed 's/^/| /' conftest.$ac_ext >&5
7123
7124 ac_cv_header_stdc=no
7125fi
7126
7127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128
7129if test $ac_cv_header_stdc = yes; then
7130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7131 cat >conftest.$ac_ext <<_ACEOF
7132/* confdefs.h. */
7133_ACEOF
7134cat confdefs.h >>conftest.$ac_ext
7135cat >>conftest.$ac_ext <<_ACEOF
7136/* end confdefs.h. */
7137#include <string.h>
7138
7139_ACEOF
7140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7141 $EGREP "memchr" >/dev/null 2>&1; then
7142 :
7143else
7144 ac_cv_header_stdc=no
7145fi
7146rm -f conftest*
7147
7148fi
7149
7150if test $ac_cv_header_stdc = yes; then
7151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7152 cat >conftest.$ac_ext <<_ACEOF
7153/* confdefs.h. */
7154_ACEOF
7155cat confdefs.h >>conftest.$ac_ext
7156cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h. */
7158#include <stdlib.h>
7159
7160_ACEOF
7161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7162 $EGREP "free" >/dev/null 2>&1; then
7163 :
7164else
7165 ac_cv_header_stdc=no
7166fi
7167rm -f conftest*
7168
7169fi
7170
7171if test $ac_cv_header_stdc = yes; then
7172 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7173 if test "$cross_compiling" = yes; then
7174 :
7175else
7176 cat >conftest.$ac_ext <<_ACEOF
7177/* confdefs.h. */
7178_ACEOF
7179cat confdefs.h >>conftest.$ac_ext
7180cat >>conftest.$ac_ext <<_ACEOF
7181/* end confdefs.h. */
7182#include <ctype.h>
7183#include <stdlib.h>
7184#if ((' ' & 0x0FF) == 0x020)
7185# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7186# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7187#else
7188# define ISLOWER(c) \
7189 (('a' <= (c) && (c) <= 'i') \
7190 || ('j' <= (c) && (c) <= 'r') \
7191 || ('s' <= (c) && (c) <= 'z'))
7192# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7193#endif
7194
7195#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7196int
7197main ()
7198{
7199 int i;
7200 for (i = 0; i < 256; i++)
7201 if (XOR (islower (i), ISLOWER (i))
7202 || toupper (i) != TOUPPER (i))
7203 return 2;
7204 return 0;
7205}
7206_ACEOF
7207rm -f conftest$ac_exeext
7208if { (ac_try="$ac_link"
7209case "(($ac_try" in
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7212esac
7213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7214$as_echo "$ac_try_echo") >&5
7215 (eval "$ac_link") 2>&5
7216 ac_status=$?
7217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7219 { (case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222esac
7223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7224$as_echo "$ac_try_echo") >&5
7225 (eval "$ac_try") 2>&5
7226 ac_status=$?
7227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7229 :
7230else
7231 $as_echo "$as_me: program exited with status $ac_status" >&5
7232$as_echo "$as_me: failed program was:" >&5
7233sed 's/^/| /' conftest.$ac_ext >&5
7234
7235( exit $ac_status )
7236ac_cv_header_stdc=no
7237fi
7238rm -rf conftest.dSYM
7239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7240fi
7241
7242
7243fi
7244fi
7245{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7246$as_echo "$ac_cv_header_stdc" >&6; }
7247if test $ac_cv_header_stdc = yes; then
7248
7249cat >>confdefs.h <<\_ACEOF
7250#define STDC_HEADERS 1
7251_ACEOF
7252
7253fi
7254
7255# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7266 inttypes.h stdint.h unistd.h
7267do
7268as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7269{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7270$as_echo_n "checking for $ac_header... " >&6; }
7271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7272 $as_echo_n "(cached) " >&6
7273else
7274 cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h. */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h. */
7280$ac_includes_default
7281
7282#include <$ac_header>
7283_ACEOF
7284rm -f conftest.$ac_objext
7285if { (ac_try="$ac_compile"
7286case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289esac
7290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291$as_echo "$ac_try_echo") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 eval "$as_ac_Header=yes"
7303else
7304 $as_echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 eval "$as_ac_Header=no"
7308fi
7309
7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311fi
7312ac_res=`eval 'as_val=${'$as_ac_Header'}
7313 $as_echo "$as_val"'`
7314 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7315$as_echo "$ac_res" >&6; }
7316as_val=`eval 'as_val=${'$as_ac_Header'}
7317 $as_echo "$as_val"'`
7318 if test "x$as_val" = x""yes; then
7319 cat >>confdefs.h <<_ACEOF
7320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7321_ACEOF
7322
7323fi
7324
7325done
7326
7327
7328
7329for ac_header in dlfcn.h
7330do
7331as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7332{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7333$as_echo_n "checking for $ac_header... " >&6; }
7334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7335 $as_echo_n "(cached) " >&6
7336else
7337 cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343$ac_includes_default
7344
7345#include <$ac_header>
7346_ACEOF
7347rm -f conftest.$ac_objext
7348if { (ac_try="$ac_compile"
7349case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352esac
7353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354$as_echo "$ac_try_echo") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7356 ac_status=$?
7357 grep -v '^ *+' conftest.er1 >conftest.err
7358 rm -f conftest.er1
7359 cat conftest.err >&5
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 eval "$as_ac_Header=yes"
7366else
7367 $as_echo "$as_me: failed program was:" >&5
7368sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 eval "$as_ac_Header=no"
7371fi
7372
7373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374fi
7375ac_res=`eval 'as_val=${'$as_ac_Header'}
7376 $as_echo "$as_val"'`
7377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7378$as_echo "$ac_res" >&6; }
7379as_val=`eval 'as_val=${'$as_ac_Header'}
7380 $as_echo "$as_val"'`
7381 if test "x$as_val" = x""yes; then
7382 cat >>confdefs.h <<_ACEOF
7383#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7384_ACEOF
7385
7386fi
7387
7388done
7389
7390
7391
7392# Set options
7393
7394
7395
7396 enable_dlopen=no
7397
7398
7399 enable_win32_dll=no
7400
7401
7402 # Check whether --enable-shared was given.
7403if test "${enable_shared+set}" = set; then
7404 enableval=$enable_shared; p=${PACKAGE-default}
7405 case $enableval in
7406 yes) enable_shared=yes ;;
7407 no) enable_shared=no ;;
7408 *)
7409 enable_shared=no
7410 # Look at the argument we got. We use all the common list separators.
7411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412 for pkg in $enableval; do
7413 IFS="$lt_save_ifs"
7414 if test "X$pkg" = "X$p"; then
7415 enable_shared=yes
7416 fi
7417 done
7418 IFS="$lt_save_ifs"
7419 ;;
7420 esac
7421else
7422 enable_shared=yes
7423fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433 # Check whether --enable-static was given.
7434if test "${enable_static+set}" = set; then
7435 enableval=$enable_static; p=${PACKAGE-default}
7436 case $enableval in
7437 yes) enable_static=yes ;;
7438 no) enable_static=no ;;
7439 *)
7440 enable_static=no
7441 # Look at the argument we got. We use all the common list separators.
7442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7443 for pkg in $enableval; do
7444 IFS="$lt_save_ifs"
7445 if test "X$pkg" = "X$p"; then
7446 enable_static=yes
7447 fi
7448 done
7449 IFS="$lt_save_ifs"
7450 ;;
7451 esac
7452else
7453 enable_static=yes
7454fi
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465# Check whether --with-pic was given.
7466if test "${with_pic+set}" = set; then
7467 withval=$with_pic; pic_mode="$withval"
7468else
7469 pic_mode=default
7470fi
7471
7472
7473test -z "$pic_mode" && pic_mode=default
7474
7475
7476
7477
7478
7479
7480
7481 # Check whether --enable-fast-install was given.
7482if test "${enable_fast_install+set}" = set; then
7483 enableval=$enable_fast_install; p=${PACKAGE-default}
7484 case $enableval in
7485 yes) enable_fast_install=yes ;;
7486 no) enable_fast_install=no ;;
7487 *)
7488 enable_fast_install=no
7489 # Look at the argument we got. We use all the common list separators.
7490 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491 for pkg in $enableval; do
7492 IFS="$lt_save_ifs"
7493 if test "X$pkg" = "X$p"; then
7494 enable_fast_install=yes
7495 fi
7496 done
7497 IFS="$lt_save_ifs"
7498 ;;
7499 esac
7500else
7501 enable_fast_install=yes
7502fi
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514# This can be used to rebuild libtool when needed
7515LIBTOOL_DEPS="$ltmain"
7516
7517# Always use our own libtool.
7518LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544test -z "$LN_S" && LN_S="ln -s"
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559if test -n "${ZSH_VERSION+set}" ; then
7560 setopt NO_GLOB_SUBST
7561fi
7562
7563{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7564$as_echo_n "checking for objdir... " >&6; }
7565if test "${lt_cv_objdir+set}" = set; then
7566 $as_echo_n "(cached) " >&6
7567else
7568 rm -f .libs 2>/dev/null
7569mkdir .libs 2>/dev/null
7570if test -d .libs; then
7571 lt_cv_objdir=.libs
7572else
7573 # MS-DOS does not allow filenames that begin with a dot.
7574 lt_cv_objdir=_libs
7575fi
7576rmdir .libs 2>/dev/null
7577fi
7578{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7579$as_echo "$lt_cv_objdir" >&6; }
7580objdir=$lt_cv_objdir
7581
7582
7583
7584
7585
7586cat >>confdefs.h <<_ACEOF
7587#define LT_OBJDIR "$lt_cv_objdir/"
7588_ACEOF
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606case $host_os in
7607aix3*)
7608 # AIX sometimes has problems with the GCC collect2 program. For some
7609 # reason, if we set the COLLECT_NAMES environment variable, the problems
7610 # vanish in a puff of smoke.
7611 if test "X${COLLECT_NAMES+set}" != Xset; then
7612 COLLECT_NAMES=
7613 export COLLECT_NAMES
7614 fi
7615 ;;
7616esac
7617
7618# Sed substitution that helps us do robust quoting. It backslashifies
7619# metacharacters that are still active within double-quoted strings.
7620sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7621
7622# Same as above, but do not quote variable references.
7623double_quote_subst='s/\(["`\\]\)/\\\1/g'
7624
7625# Sed substitution to delay expansion of an escaped shell variable in a
7626# double_quote_subst'ed string.
7627delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7628
7629# Sed substitution to delay expansion of an escaped single quote.
7630delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7631
7632# Sed substitution to avoid accidental globbing in evaled expressions
7633no_glob_subst='s/\*/\\\*/g'
7634
7635# Global variables:
7636ofile=libtool
7637can_build_shared=yes
7638
7639# All known linkers require a `.a' archive for static linking (except MSVC,
7640# which needs '.lib').
7641libext=a
7642
7643with_gnu_ld="$lt_cv_prog_gnu_ld"
7644
7645old_CC="$CC"
7646old_CFLAGS="$CFLAGS"
7647
7648# Set sane defaults for various variables
7649test -z "$CC" && CC=cc
7650test -z "$LTCC" && LTCC=$CC
7651test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7652test -z "$LD" && LD=ld
7653test -z "$ac_objext" && ac_objext=o
7654
7655for cc_temp in $compiler""; do
7656 case $cc_temp in
7657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7659 \-*) ;;
7660 *) break;;
7661 esac
7662done
7663cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7664
7665
7666# Only perform the check for file, if the check method requires it
7667test -z "$MAGIC_CMD" && MAGIC_CMD=file
7668case $deplibs_check_method in
7669file_magic*)
7670 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7671 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7672$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7673if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7674 $as_echo_n "(cached) " >&6
7675else
7676 case $MAGIC_CMD in
7677[\\/*] | ?:[\\/]*)
7678 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7679 ;;
7680*)
7681 lt_save_MAGIC_CMD="$MAGIC_CMD"
7682 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7683 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7684 for ac_dir in $ac_dummy; do
7685 IFS="$lt_save_ifs"
7686 test -z "$ac_dir" && ac_dir=.
7687 if test -f $ac_dir/${ac_tool_prefix}file; then
7688 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7689 if test -n "$file_magic_test_file"; then
7690 case $deplibs_check_method in
7691 "file_magic "*)
7692 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7695 $EGREP "$file_magic_regex" > /dev/null; then
7696 :
7697 else
7698 cat <<_LT_EOF 1>&2
7699
7700*** Warning: the command libtool uses to detect shared libraries,
7701*** $file_magic_cmd, produces output that libtool cannot recognize.
7702*** The result is that libtool may fail to recognize shared libraries
7703*** as such. This will affect the creation of libtool libraries that
7704*** depend on shared libraries, but programs linked with such libtool
7705*** libraries will work regardless of this problem. Nevertheless, you
7706*** may want to report the problem to your system manager and/or to
7707*** bug-libtool@gnu.org
7708
7709_LT_EOF
7710 fi ;;
7711 esac
7712 fi
7713 break
7714 fi
7715 done
7716 IFS="$lt_save_ifs"
7717 MAGIC_CMD="$lt_save_MAGIC_CMD"
7718 ;;
7719esac
7720fi
7721
7722MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723if test -n "$MAGIC_CMD"; then
7724 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7725$as_echo "$MAGIC_CMD" >&6; }
7726else
7727 { $as_echo "$as_me:$LINENO: result: no" >&5
7728$as_echo "no" >&6; }
7729fi
7730
7731
7732
7733
7734
7735if test -z "$lt_cv_path_MAGIC_CMD"; then
7736 if test -n "$ac_tool_prefix"; then
7737 { $as_echo "$as_me:$LINENO: checking for file" >&5
7738$as_echo_n "checking for file... " >&6; }
7739if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7740 $as_echo_n "(cached) " >&6
7741else
7742 case $MAGIC_CMD in
7743[\\/*] | ?:[\\/]*)
7744 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7745 ;;
7746*)
7747 lt_save_MAGIC_CMD="$MAGIC_CMD"
7748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750 for ac_dir in $ac_dummy; do
7751 IFS="$lt_save_ifs"
7752 test -z "$ac_dir" && ac_dir=.
7753 if test -f $ac_dir/file; then
7754 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7755 if test -n "$file_magic_test_file"; then
7756 case $deplibs_check_method in
7757 "file_magic "*)
7758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761 $EGREP "$file_magic_regex" > /dev/null; then
7762 :
7763 else
7764 cat <<_LT_EOF 1>&2
7765
7766*** Warning: the command libtool uses to detect shared libraries,
7767*** $file_magic_cmd, produces output that libtool cannot recognize.
7768*** The result is that libtool may fail to recognize shared libraries
7769*** as such. This will affect the creation of libtool libraries that
7770*** depend on shared libraries, but programs linked with such libtool
7771*** libraries will work regardless of this problem. Nevertheless, you
7772*** may want to report the problem to your system manager and/or to
7773*** bug-libtool@gnu.org
7774
7775_LT_EOF
7776 fi ;;
7777 esac
7778 fi
7779 break
7780 fi
7781 done
7782 IFS="$lt_save_ifs"
7783 MAGIC_CMD="$lt_save_MAGIC_CMD"
7784 ;;
7785esac
7786fi
7787
7788MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789if test -n "$MAGIC_CMD"; then
7790 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7791$as_echo "$MAGIC_CMD" >&6; }
7792else
7793 { $as_echo "$as_me:$LINENO: result: no" >&5
7794$as_echo "no" >&6; }
7795fi
7796
7797
7798 else
7799 MAGIC_CMD=:
7800 fi
7801fi
7802
7803 fi
7804 ;;
7805esac
7806
7807# Use C for the default configuration in the libtool script
7808
7809lt_save_CC="$CC"
7810ac_ext=c
7811ac_cpp='$CPP $CPPFLAGS'
7812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7814ac_compiler_gnu=$ac_cv_c_compiler_gnu
7815
7816
7817# Source file extension for C test sources.
7818ac_ext=c
7819
7820# Object file extension for compiled C test sources.
7821objext=o
7822objext=$objext
7823
7824# Code to be used in simple compile tests
7825lt_simple_compile_test_code="int some_variable = 0;"
7826
7827# Code to be used in simple link tests
7828lt_simple_link_test_code='int main(){return(0);}'
7829
7830
7831
7832
7833
7834
7835
7836# If no C compiler was specified, use CC.
7837LTCC=${LTCC-"$CC"}
7838
7839# If no C compiler flags were specified, use CFLAGS.
7840LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7841
7842# Allow CC to be a program name with arguments.
7843compiler=$CC
7844
7845# Save the default compiler, since it gets overwritten when the other
7846# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7847compiler_DEFAULT=$CC
7848
7849# save warnings/boilerplate of simple test code
7850ac_outfile=conftest.$ac_objext
7851echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7852eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7853_lt_compiler_boilerplate=`cat conftest.err`
7854$RM conftest*
7855
7856ac_outfile=conftest.$ac_objext
7857echo "$lt_simple_link_test_code" >conftest.$ac_ext
7858eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7859_lt_linker_boilerplate=`cat conftest.err`
7860$RM -r conftest*
7861
7862
7863if test -n "$compiler"; then
7864
7865lt_prog_compiler_no_builtin_flag=
7866
7867if test "$GCC" = yes; then
7868 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7869
7870 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7871$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7872if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7873 $as_echo_n "(cached) " >&6
7874else
7875 lt_cv_prog_compiler_rtti_exceptions=no
7876 ac_outfile=conftest.$ac_objext
7877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878 lt_compiler_flag="-fno-rtti -fno-exceptions"
7879 # Insert the option either (1) after the last *FLAGS variable, or
7880 # (2) before a word containing "conftest.", or (3) at the end.
7881 # Note that $ac_compile itself does not contain backslashes and begins
7882 # with a dollar sign (not a hyphen), so the echo should work correctly.
7883 # The option is referenced via a variable to avoid confusing sed.
7884 lt_compile=`echo "$ac_compile" | $SED \
7885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7887 -e 's:$: $lt_compiler_flag:'`
b3259b6a 7888 (eval echo "\"\$as_me:7888: $lt_compile\"" >&5)
e70e591c
BB
7889 (eval "$lt_compile" 2>conftest.err)
7890 ac_status=$?
7891 cat conftest.err >&5
b3259b6a 7892 echo "$as_me:7892: \$? = $ac_status" >&5
e70e591c
BB
7893 if (exit $ac_status) && test -s "$ac_outfile"; then
7894 # The compiler can only warn and ignore the option if not recognized
7895 # So say no if there are warnings other than the usual output.
7896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7899 lt_cv_prog_compiler_rtti_exceptions=yes
7900 fi
7901 fi
7902 $RM conftest*
7903
7904fi
7905{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7906$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7907
7908if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7909 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7910else
7911 :
7912fi
7913
7914fi
7915
7916
7917
7918
7919
7920
7921 lt_prog_compiler_wl=
7922lt_prog_compiler_pic=
7923lt_prog_compiler_static=
7924
7925{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7926$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7927
7928 if test "$GCC" = yes; then
7929 lt_prog_compiler_wl='-Wl,'
7930 lt_prog_compiler_static='-static'
7931
7932 case $host_os in
7933 aix*)
7934 # All AIX code is PIC.
7935 if test "$host_cpu" = ia64; then
7936 # AIX 5 now supports IA64 processor
7937 lt_prog_compiler_static='-Bstatic'
7938 fi
7939 ;;
7940
7941 amigaos*)
7942 case $host_cpu in
7943 powerpc)
7944 # see comment about AmigaOS4 .so support
7945 lt_prog_compiler_pic='-fPIC'
7946 ;;
7947 m68k)
7948 # FIXME: we need at least 68020 code to build shared libraries, but
7949 # adding the `-m68020' flag to GCC prevents building anything better,
7950 # like `-m68040'.
7951 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7952 ;;
7953 esac
7954 ;;
7955
7956 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7957 # PIC is the default for these OSes.
7958 ;;
7959
7960 mingw* | cygwin* | pw32* | os2* | cegcc*)
7961 # This hack is so that the source file can tell whether it is being
7962 # built for inclusion in a dll (and should export symbols for example).
7963 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7964 # (--disable-auto-import) libraries
7965 lt_prog_compiler_pic='-DDLL_EXPORT'
7966 ;;
7967
7968 darwin* | rhapsody*)
7969 # PIC is the default on this platform
7970 # Common symbols not allowed in MH_DYLIB files
7971 lt_prog_compiler_pic='-fno-common'
7972 ;;
7973
7974 hpux*)
7975 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7976 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7977 # sets the default TLS model and affects inlining.
7978 case $host_cpu in
7979 hppa*64*)
7980 # +Z the default
7981 ;;
7982 *)
7983 lt_prog_compiler_pic='-fPIC'
7984 ;;
7985 esac
7986 ;;
7987
7988 interix[3-9]*)
7989 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7990 # Instead, we relocate shared libraries at runtime.
7991 ;;
7992
7993 msdosdjgpp*)
7994 # Just because we use GCC doesn't mean we suddenly get shared libraries
7995 # on systems that don't support them.
7996 lt_prog_compiler_can_build_shared=no
7997 enable_shared=no
7998 ;;
7999
8000 *nto* | *qnx*)
8001 # QNX uses GNU C++, but need to define -shared option too, otherwise
8002 # it will coredump.
8003 lt_prog_compiler_pic='-fPIC -shared'
8004 ;;
8005
8006 sysv4*MP*)
8007 if test -d /usr/nec; then
8008 lt_prog_compiler_pic=-Kconform_pic
8009 fi
8010 ;;
8011
8012 *)
8013 lt_prog_compiler_pic='-fPIC'
8014 ;;
8015 esac
8016 else
8017 # PORTME Check for flag to pass linker flags through the system compiler.
8018 case $host_os in
8019 aix*)
8020 lt_prog_compiler_wl='-Wl,'
8021 if test "$host_cpu" = ia64; then
8022 # AIX 5 now supports IA64 processor
8023 lt_prog_compiler_static='-Bstatic'
8024 else
8025 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8026 fi
8027 ;;
8028
8029 mingw* | cygwin* | pw32* | os2* | cegcc*)
8030 # This hack is so that the source file can tell whether it is being
8031 # built for inclusion in a dll (and should export symbols for example).
8032 lt_prog_compiler_pic='-DDLL_EXPORT'
8033 ;;
8034
8035 hpux9* | hpux10* | hpux11*)
8036 lt_prog_compiler_wl='-Wl,'
8037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8038 # not for PA HP-UX.
8039 case $host_cpu in
8040 hppa*64*|ia64*)
8041 # +Z the default
8042 ;;
8043 *)
8044 lt_prog_compiler_pic='+Z'
8045 ;;
8046 esac
8047 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8048 lt_prog_compiler_static='${wl}-a ${wl}archive'
8049 ;;
8050
8051 irix5* | irix6* | nonstopux*)
8052 lt_prog_compiler_wl='-Wl,'
8053 # PIC (with -KPIC) is the default.
8054 lt_prog_compiler_static='-non_shared'
8055 ;;
8056
8057 linux* | k*bsd*-gnu)
8058 case $cc_basename in
8059 # old Intel for x86_64 which still supported -KPIC.
8060 ecc*)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-KPIC'
8063 lt_prog_compiler_static='-static'
8064 ;;
8065 # icc used to be incompatible with GCC.
8066 # ICC 10 doesn't accept -KPIC any more.
8067 icc* | ifort*)
8068 lt_prog_compiler_wl='-Wl,'
8069 lt_prog_compiler_pic='-fPIC'
8070 lt_prog_compiler_static='-static'
8071 ;;
8072 # Lahey Fortran 8.1.
8073 lf95*)
8074 lt_prog_compiler_wl='-Wl,'
8075 lt_prog_compiler_pic='--shared'
8076 lt_prog_compiler_static='--static'
8077 ;;
8078 pgcc* | pgf77* | pgf90* | pgf95*)
8079 # Portland Group compilers (*not* the Pentium gcc compiler,
8080 # which looks to be a dead project)
8081 lt_prog_compiler_wl='-Wl,'
8082 lt_prog_compiler_pic='-fpic'
8083 lt_prog_compiler_static='-Bstatic'
8084 ;;
8085 ccc*)
8086 lt_prog_compiler_wl='-Wl,'
8087 # All Alpha code is PIC.
8088 lt_prog_compiler_static='-non_shared'
8089 ;;
8090 xl*)
8091 # IBM XL C 8.0/Fortran 10.1 on PPC
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-qpic'
8094 lt_prog_compiler_static='-qstaticlink'
8095 ;;
8096 *)
8097 case `$CC -V 2>&1 | sed 5q` in
8098 *Sun\ C*)
8099 # Sun C 5.9
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
8102 lt_prog_compiler_wl='-Wl,'
8103 ;;
8104 *Sun\ F*)
8105 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8106 lt_prog_compiler_pic='-KPIC'
8107 lt_prog_compiler_static='-Bstatic'
8108 lt_prog_compiler_wl=''
8109 ;;
8110 esac
8111 ;;
8112 esac
8113 ;;
8114
8115 newsos6)
8116 lt_prog_compiler_pic='-KPIC'
8117 lt_prog_compiler_static='-Bstatic'
8118 ;;
8119
8120 *nto* | *qnx*)
8121 # QNX uses GNU C++, but need to define -shared option too, otherwise
8122 # it will coredump.
8123 lt_prog_compiler_pic='-fPIC -shared'
8124 ;;
8125
8126 osf3* | osf4* | osf5*)
8127 lt_prog_compiler_wl='-Wl,'
8128 # All OSF/1 code is PIC.
8129 lt_prog_compiler_static='-non_shared'
8130 ;;
8131
8132 rdos*)
8133 lt_prog_compiler_static='-non_shared'
8134 ;;
8135
8136 solaris*)
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 case $cc_basename in
8140 f77* | f90* | f95*)
8141 lt_prog_compiler_wl='-Qoption ld ';;
8142 *)
8143 lt_prog_compiler_wl='-Wl,';;
8144 esac
8145 ;;
8146
8147 sunos4*)
8148 lt_prog_compiler_wl='-Qoption ld '
8149 lt_prog_compiler_pic='-PIC'
8150 lt_prog_compiler_static='-Bstatic'
8151 ;;
8152
8153 sysv4 | sysv4.2uw2* | sysv4.3*)
8154 lt_prog_compiler_wl='-Wl,'
8155 lt_prog_compiler_pic='-KPIC'
8156 lt_prog_compiler_static='-Bstatic'
8157 ;;
8158
8159 sysv4*MP*)
8160 if test -d /usr/nec ;then
8161 lt_prog_compiler_pic='-Kconform_pic'
8162 lt_prog_compiler_static='-Bstatic'
8163 fi
8164 ;;
8165
8166 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8167 lt_prog_compiler_wl='-Wl,'
8168 lt_prog_compiler_pic='-KPIC'
8169 lt_prog_compiler_static='-Bstatic'
8170 ;;
8171
8172 unicos*)
8173 lt_prog_compiler_wl='-Wl,'
8174 lt_prog_compiler_can_build_shared=no
8175 ;;
8176
8177 uts4*)
8178 lt_prog_compiler_pic='-pic'
8179 lt_prog_compiler_static='-Bstatic'
8180 ;;
8181
8182 *)
8183 lt_prog_compiler_can_build_shared=no
8184 ;;
8185 esac
8186 fi
8187
8188case $host_os in
8189 # For platforms which do not support PIC, -DPIC is meaningless:
8190 *djgpp*)
8191 lt_prog_compiler_pic=
8192 ;;
8193 *)
8194 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8195 ;;
8196esac
8197{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8198$as_echo "$lt_prog_compiler_pic" >&6; }
8199
8200
8201
8202
8203
8204
8205#
8206# Check to make sure the PIC flag actually works.
8207#
8208if test -n "$lt_prog_compiler_pic"; then
8209 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8210$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8211if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8212 $as_echo_n "(cached) " >&6
8213else
8214 lt_cv_prog_compiler_pic_works=no
8215 ac_outfile=conftest.$ac_objext
8216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8217 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8218 # Insert the option either (1) after the last *FLAGS variable, or
8219 # (2) before a word containing "conftest.", or (3) at the end.
8220 # Note that $ac_compile itself does not contain backslashes and begins
8221 # with a dollar sign (not a hyphen), so the echo should work correctly.
8222 # The option is referenced via a variable to avoid confusing sed.
8223 lt_compile=`echo "$ac_compile" | $SED \
8224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8226 -e 's:$: $lt_compiler_flag:'`
b3259b6a 8227 (eval echo "\"\$as_me:8227: $lt_compile\"" >&5)
e70e591c
BB
8228 (eval "$lt_compile" 2>conftest.err)
8229 ac_status=$?
8230 cat conftest.err >&5
b3259b6a 8231 echo "$as_me:8231: \$? = $ac_status" >&5
e70e591c
BB
8232 if (exit $ac_status) && test -s "$ac_outfile"; then
8233 # The compiler can only warn and ignore the option if not recognized
8234 # So say no if there are warnings other than the usual output.
8235 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8238 lt_cv_prog_compiler_pic_works=yes
8239 fi
8240 fi
8241 $RM conftest*
8242
8243fi
8244{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8245$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8246
8247if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8248 case $lt_prog_compiler_pic in
8249 "" | " "*) ;;
8250 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8251 esac
8252else
8253 lt_prog_compiler_pic=
8254 lt_prog_compiler_can_build_shared=no
8255fi
8256
8257fi
8258
8259
8260
8261
8262
8263
8264#
8265# Check to make sure the static flag actually works.
8266#
8267wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8268{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8269$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8270if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8271 $as_echo_n "(cached) " >&6
8272else
8273 lt_cv_prog_compiler_static_works=no
8274 save_LDFLAGS="$LDFLAGS"
8275 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8276 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8277 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8278 # The linker can only warn and ignore the option if not recognized
8279 # So say no if there are warnings
8280 if test -s conftest.err; then
8281 # Append any errors to the config.log.
8282 cat conftest.err 1>&5
8283 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8284 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8285 if diff conftest.exp conftest.er2 >/dev/null; then
8286 lt_cv_prog_compiler_static_works=yes
8287 fi
8288 else
8289 lt_cv_prog_compiler_static_works=yes
8290 fi
8291 fi
8292 $RM -r conftest*
8293 LDFLAGS="$save_LDFLAGS"
8294
8295fi
8296{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8297$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8298
8299if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8300 :
8301else
8302 lt_prog_compiler_static=
8303fi
8304
8305
8306
8307
8308
8309
8310
8311 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8312$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8313if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8314 $as_echo_n "(cached) " >&6
8315else
8316 lt_cv_prog_compiler_c_o=no
8317 $RM -r conftest 2>/dev/null
8318 mkdir conftest
8319 cd conftest
8320 mkdir out
8321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8322
8323 lt_compiler_flag="-o out/conftest2.$ac_objext"
8324 # Insert the option either (1) after the last *FLAGS variable, or
8325 # (2) before a word containing "conftest.", or (3) at the end.
8326 # Note that $ac_compile itself does not contain backslashes and begins
8327 # with a dollar sign (not a hyphen), so the echo should work correctly.
8328 lt_compile=`echo "$ac_compile" | $SED \
8329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8331 -e 's:$: $lt_compiler_flag:'`
b3259b6a 8332 (eval echo "\"\$as_me:8332: $lt_compile\"" >&5)
e70e591c
BB
8333 (eval "$lt_compile" 2>out/conftest.err)
8334 ac_status=$?
8335 cat out/conftest.err >&5
b3259b6a 8336 echo "$as_me:8336: \$? = $ac_status" >&5
e70e591c
BB
8337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8338 then
8339 # The compiler can only warn and ignore the option if not recognized
8340 # So say no if there are warnings
8341 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8344 lt_cv_prog_compiler_c_o=yes
8345 fi
8346 fi
8347 chmod u+w . 2>&5
8348 $RM conftest*
8349 # SGI C++ compiler will create directory out/ii_files/ for
8350 # template instantiation
8351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8352 $RM out/* && rmdir out
8353 cd ..
8354 $RM -r conftest
8355 $RM conftest*
8356
8357fi
8358{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8359$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8360
8361
8362
8363
8364
8365
8366 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8367$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8368if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8369 $as_echo_n "(cached) " >&6
8370else
8371 lt_cv_prog_compiler_c_o=no
8372 $RM -r conftest 2>/dev/null
8373 mkdir conftest
8374 cd conftest
8375 mkdir out
8376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8377
8378 lt_compiler_flag="-o out/conftest2.$ac_objext"
8379 # Insert the option either (1) after the last *FLAGS variable, or
8380 # (2) before a word containing "conftest.", or (3) at the end.
8381 # Note that $ac_compile itself does not contain backslashes and begins
8382 # with a dollar sign (not a hyphen), so the echo should work correctly.
8383 lt_compile=`echo "$ac_compile" | $SED \
8384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386 -e 's:$: $lt_compiler_flag:'`
b3259b6a 8387 (eval echo "\"\$as_me:8387: $lt_compile\"" >&5)
e70e591c
BB
8388 (eval "$lt_compile" 2>out/conftest.err)
8389 ac_status=$?
8390 cat out/conftest.err >&5
b3259b6a 8391 echo "$as_me:8391: \$? = $ac_status" >&5
e70e591c
BB
8392 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8393 then
8394 # The compiler can only warn and ignore the option if not recognized
8395 # So say no if there are warnings
8396 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8397 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8398 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8399 lt_cv_prog_compiler_c_o=yes
8400 fi
8401 fi
8402 chmod u+w . 2>&5
8403 $RM conftest*
8404 # SGI C++ compiler will create directory out/ii_files/ for
8405 # template instantiation
8406 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8407 $RM out/* && rmdir out
8408 cd ..
8409 $RM -r conftest
8410 $RM conftest*
8411
8412fi
8413{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8414$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8415
8416
8417
8418
8419hard_links="nottested"
8420if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8421 # do not overwrite the value of need_locks provided by the user
8422 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8423$as_echo_n "checking if we can lock with hard links... " >&6; }
8424 hard_links=yes
8425 $RM conftest*
8426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8427 touch conftest.a
8428 ln conftest.a conftest.b 2>&5 || hard_links=no
8429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8430 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8431$as_echo "$hard_links" >&6; }
8432 if test "$hard_links" = no; then
8433 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8434$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8435 need_locks=warn
8436 fi
8437else
8438 need_locks=no
8439fi
8440
8441
8442
8443
8444
8445
8446 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8447$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8448
8449 runpath_var=
8450 allow_undefined_flag=
8451 always_export_symbols=no
8452 archive_cmds=
8453 archive_expsym_cmds=
8454 compiler_needs_object=no
8455 enable_shared_with_static_runtimes=no
8456 export_dynamic_flag_spec=
8457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8458 hardcode_automatic=no
8459 hardcode_direct=no
8460 hardcode_direct_absolute=no
8461 hardcode_libdir_flag_spec=
8462 hardcode_libdir_flag_spec_ld=
8463 hardcode_libdir_separator=
8464 hardcode_minus_L=no
8465 hardcode_shlibpath_var=unsupported
8466 inherit_rpath=no
8467 link_all_deplibs=unknown
8468 module_cmds=
8469 module_expsym_cmds=
8470 old_archive_from_new_cmds=
8471 old_archive_from_expsyms_cmds=
8472 thread_safe_flag_spec=
8473 whole_archive_flag_spec=
8474 # include_expsyms should be a list of space-separated symbols to be *always*
8475 # included in the symbol list
8476 include_expsyms=
8477 # exclude_expsyms can be an extended regexp of symbols to exclude
8478 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8479 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8480 # as well as any symbol that contains `d'.
8481 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8482 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8483 # platforms (ab)use it in PIC code, but their linkers get confused if
8484 # the symbol is explicitly referenced. Since portable code cannot
8485 # rely on this symbol name, it's probably fine to never include it in
8486 # preloaded symbol tables.
8487 # Exclude shared library initialization/finalization symbols.
8488 extract_expsyms_cmds=
8489
8490 case $host_os in
8491 cygwin* | mingw* | pw32* | cegcc*)
8492 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8493 # When not using gcc, we currently assume that we are using
8494 # Microsoft Visual C++.
8495 if test "$GCC" != yes; then
8496 with_gnu_ld=no
8497 fi
8498 ;;
8499 interix*)
8500 # we just hope/assume this is gcc and not c89 (= MSVC++)
8501 with_gnu_ld=yes
8502 ;;
8503 openbsd*)
8504 with_gnu_ld=no
8505 ;;
8506 esac
8507
8508 ld_shlibs=yes
8509 if test "$with_gnu_ld" = yes; then
8510 # If archive_cmds runs LD, not CC, wlarc should be empty
8511 wlarc='${wl}'
8512
8513 # Set some defaults for GNU ld with shared library support. These
8514 # are reset later if shared libraries are not supported. Putting them
8515 # here allows them to be overridden if necessary.
8516 runpath_var=LD_RUN_PATH
8517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8518 export_dynamic_flag_spec='${wl}--export-dynamic'
8519 # ancient GNU ld didn't support --whole-archive et. al.
8520 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8521 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8522 else
8523 whole_archive_flag_spec=
8524 fi
8525 supports_anon_versioning=no
8526 case `$LD -v 2>&1` in
8527 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8528 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8529 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8530 *\ 2.11.*) ;; # other 2.11 versions
8531 *) supports_anon_versioning=yes ;;
8532 esac
8533
8534 # See if GNU ld supports shared libraries.
8535 case $host_os in
8536 aix[3-9]*)
8537 # On AIX/PPC, the GNU linker is very broken
8538 if test "$host_cpu" != ia64; then
8539 ld_shlibs=no
8540 cat <<_LT_EOF 1>&2
8541
8542*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8543*** to be unable to reliably create shared libraries on AIX.
8544*** Therefore, libtool is disabling shared libraries support. If you
8545*** really care for shared libraries, you may want to modify your PATH
8546*** so that a non-GNU linker is found, and then restart.
8547
8548_LT_EOF
8549 fi
8550 ;;
8551
8552 amigaos*)
8553 case $host_cpu in
8554 powerpc)
8555 # see comment about AmigaOS4 .so support
8556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8557 archive_expsym_cmds=''
8558 ;;
8559 m68k)
8560 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8561 hardcode_libdir_flag_spec='-L$libdir'
8562 hardcode_minus_L=yes
8563 ;;
8564 esac
8565 ;;
8566
8567 beos*)
8568 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8569 allow_undefined_flag=unsupported
8570 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8571 # support --undefined. This deserves some investigation. FIXME
8572 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8573 else
8574 ld_shlibs=no
8575 fi
8576 ;;
8577
8578 cygwin* | mingw* | pw32* | cegcc*)
8579 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8580 # as there is no search path for DLLs.
8581 hardcode_libdir_flag_spec='-L$libdir'
8582 allow_undefined_flag=unsupported
8583 always_export_symbols=no
8584 enable_shared_with_static_runtimes=yes
8585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8586
8587 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8589 # If the export-symbols file already is a .def file (1st line
8590 # is EXPORTS), use it as is; otherwise, prepend...
8591 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8592 cp $export_symbols $output_objdir/$soname.def;
8593 else
8594 echo EXPORTS > $output_objdir/$soname.def;
8595 cat $export_symbols >> $output_objdir/$soname.def;
8596 fi~
8597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8598 else
8599 ld_shlibs=no
8600 fi
8601 ;;
8602
8603 interix[3-9]*)
8604 hardcode_direct=no
8605 hardcode_shlibpath_var=no
8606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8607 export_dynamic_flag_spec='${wl}-E'
8608 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8609 # Instead, shared libraries are loaded at an image base (0x10000000 by
8610 # default) and relocated if they conflict, which is a slow very memory
8611 # consuming and fragmenting process. To avoid this, we pick a random,
8612 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8613 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8615 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8616 ;;
8617
8618 gnu* | linux* | tpf* | k*bsd*-gnu)
8619 tmp_diet=no
8620 if test "$host_os" = linux-dietlibc; then
8621 case $cc_basename in
8622 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8623 esac
8624 fi
8625 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8626 && test "$tmp_diet" = no
8627 then
8628 tmp_addflag=
8629 tmp_sharedflag='-shared'
8630 case $cc_basename,$host_cpu in
8631 pgcc*) # Portland Group C compiler
8632 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8633 tmp_addflag=' $pic_flag'
8634 ;;
8635 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8636 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8637 tmp_addflag=' $pic_flag -Mnomain' ;;
8638 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8639 tmp_addflag=' -i_dynamic' ;;
8640 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8641 tmp_addflag=' -i_dynamic -nofor_main' ;;
8642 ifc* | ifort*) # Intel Fortran compiler
8643 tmp_addflag=' -nofor_main' ;;
8644 lf95*) # Lahey Fortran 8.1
8645 whole_archive_flag_spec=
8646 tmp_sharedflag='--shared' ;;
8647 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8648 tmp_sharedflag='-qmkshrobj'
8649 tmp_addflag= ;;
8650 esac
8651 case `$CC -V 2>&1 | sed 5q` in
8652 *Sun\ C*) # Sun C 5.9
8653 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8654 compiler_needs_object=yes
8655 tmp_sharedflag='-G' ;;
8656 *Sun\ F*) # Sun Fortran 8.3
8657 tmp_sharedflag='-G' ;;
8658 esac
8659 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660
8661 if test "x$supports_anon_versioning" = xyes; then
8662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664 echo "local: *; };" >> $output_objdir/$libname.ver~
8665 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8666 fi
8667
8668 case $cc_basename in
8669 xlf*)
8670 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8671 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8672 hardcode_libdir_flag_spec=
8673 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8674 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8675 if test "x$supports_anon_versioning" = xyes; then
8676 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8677 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8678 echo "local: *; };" >> $output_objdir/$libname.ver~
8679 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8680 fi
8681 ;;
8682 esac
8683 else
8684 ld_shlibs=no
8685 fi
8686 ;;
8687
8688 netbsd*)
8689 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8690 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8691 wlarc=
8692 else
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695 fi
8696 ;;
8697
8698 solaris*)
8699 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8700 ld_shlibs=no
8701 cat <<_LT_EOF 1>&2
8702
8703*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8704*** create shared libraries on Solaris systems. Therefore, libtool
8705*** is disabling shared libraries support. We urge you to upgrade GNU
8706*** binutils to release 2.9.1 or newer. Another option is to modify
8707*** your PATH or compiler configuration so that the native linker is
8708*** used, and then restart.
8709
8710_LT_EOF
8711 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714 else
8715 ld_shlibs=no
8716 fi
8717 ;;
8718
8719 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8720 case `$LD -v 2>&1` in
8721 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8722 ld_shlibs=no
8723 cat <<_LT_EOF 1>&2
8724
8725*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8726*** reliably create shared libraries on SCO systems. Therefore, libtool
8727*** is disabling shared libraries support. We urge you to upgrade GNU
8728*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8729*** your PATH or compiler configuration so that the native linker is
8730*** used, and then restart.
8731
8732_LT_EOF
8733 ;;
8734 *)
8735 # For security reasons, it is highly recommended that you always
8736 # use absolute paths for naming shared libraries, and exclude the
8737 # DT_RUNPATH tag from executables and libraries. But doing so
8738 # requires that you compile everything twice, which is a pain.
8739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8742 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8743 else
8744 ld_shlibs=no
8745 fi
8746 ;;
8747 esac
8748 ;;
8749
8750 sunos4*)
8751 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8752 wlarc=
8753 hardcode_direct=yes
8754 hardcode_shlibpath_var=no
8755 ;;
8756
8757 *)
8758 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8761 else
8762 ld_shlibs=no
8763 fi
8764 ;;
8765 esac
8766
8767 if test "$ld_shlibs" = no; then
8768 runpath_var=
8769 hardcode_libdir_flag_spec=
8770 export_dynamic_flag_spec=
8771 whole_archive_flag_spec=
8772 fi
8773 else
8774 # PORTME fill in a description of your system's linker (not GNU ld)
8775 case $host_os in
8776 aix3*)
8777 allow_undefined_flag=unsupported
8778 always_export_symbols=yes
8779 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8780 # Note: this linker hardcodes the directories in LIBPATH if there
8781 # are no directories specified by -L.
8782 hardcode_minus_L=yes
8783 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8784 # Neither direct hardcoding nor static linking is supported with a
8785 # broken collect2.
8786 hardcode_direct=unsupported
8787 fi
8788 ;;
8789
8790 aix[4-9]*)
8791 if test "$host_cpu" = ia64; then
8792 # On IA64, the linker does run time linking by default, so we don't
8793 # have to do anything special.
8794 aix_use_runtimelinking=no
8795 exp_sym_flag='-Bexport'
8796 no_entry_flag=""
8797 else
8798 # If we're using GNU nm, then we don't want the "-C" option.
8799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8801 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8802 else
8803 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8804 fi
8805 aix_use_runtimelinking=no
8806
8807 # Test if we are trying to use run time linking or normal
8808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8809 # need to do runtime linking.
8810 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8811 for ld_flag in $LDFLAGS; do
8812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8813 aix_use_runtimelinking=yes
8814 break
8815 fi
8816 done
8817 ;;
8818 esac
8819
8820 exp_sym_flag='-bexport'
8821 no_entry_flag='-bnoentry'
8822 fi
8823
8824 # When large executables or shared objects are built, AIX ld can
8825 # have problems creating the table of contents. If linking a library
8826 # or program results in "error TOC overflow" add -mminimal-toc to
8827 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8828 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8829
8830 archive_cmds=''
8831 hardcode_direct=yes
8832 hardcode_direct_absolute=yes
8833 hardcode_libdir_separator=':'
8834 link_all_deplibs=yes
8835 file_list_spec='${wl}-f,'
8836
8837 if test "$GCC" = yes; then
8838 case $host_os in aix4.[012]|aix4.[012].*)
8839 # We only want to do this on AIX 4.2 and lower, the check
8840 # below for broken collect2 doesn't work under 4.3+
8841 collect2name=`${CC} -print-prog-name=collect2`
8842 if test -f "$collect2name" &&
8843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8844 then
8845 # We have reworked collect2
8846 :
8847 else
8848 # We have old collect2
8849 hardcode_direct=unsupported
8850 # It fails to find uninstalled libraries when the uninstalled
8851 # path is not listed in the libpath. Setting hardcode_minus_L
8852 # to unsupported forces relinking
8853 hardcode_minus_L=yes
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_libdir_separator=
8856 fi
8857 ;;
8858 esac
8859 shared_flag='-shared'
8860 if test "$aix_use_runtimelinking" = yes; then
8861 shared_flag="$shared_flag "'${wl}-G'
8862 fi
8863 else
8864 # not using gcc
8865 if test "$host_cpu" = ia64; then
8866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8867 # chokes on -Wl,-G. The following line is correct:
8868 shared_flag='-G'
8869 else
8870 if test "$aix_use_runtimelinking" = yes; then
8871 shared_flag='${wl}-G'
8872 else
8873 shared_flag='${wl}-bM:SRE'
8874 fi
8875 fi
8876 fi
8877
8878 export_dynamic_flag_spec='${wl}-bexpall'
8879 # It seems that -bexpall does not export symbols beginning with
8880 # underscore (_), so it is better to generate a list of symbols to export.
8881 always_export_symbols=yes
8882 if test "$aix_use_runtimelinking" = yes; then
8883 # Warning - without using the other runtime loading flags (-brtl),
8884 # -berok will link without error, but may produce a broken library.
8885 allow_undefined_flag='-berok'
8886 # Determine the default libpath from the value encoded in an
8887 # empty executable.
8888 cat >conftest.$ac_ext <<_ACEOF
8889/* confdefs.h. */
8890_ACEOF
8891cat confdefs.h >>conftest.$ac_ext
8892cat >>conftest.$ac_ext <<_ACEOF
8893/* end confdefs.h. */
8894
8895int
8896main ()
8897{
8898
8899 ;
8900 return 0;
8901}
8902_ACEOF
8903rm -f conftest.$ac_objext conftest$ac_exeext
8904if { (ac_try="$ac_link"
8905case "(($ac_try" in
8906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907 *) ac_try_echo=$ac_try;;
8908esac
8909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8910$as_echo "$ac_try_echo") >&5
8911 (eval "$ac_link") 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && {
8918 test -z "$ac_c_werror_flag" ||
8919 test ! -s conftest.err
8920 } && test -s conftest$ac_exeext && {
8921 test "$cross_compiling" = yes ||
8922 $as_test_x conftest$ac_exeext
8923 }; then
8924
8925lt_aix_libpath_sed='
8926 /Import File Strings/,/^$/ {
8927 /^0/ {
8928 s/^0 *\(.*\)$/\1/
8929 p
8930 }
8931 }'
8932aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8933# Check for a 64-bit object if we didn't find anything.
8934if test -z "$aix_libpath"; then
8935 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8936fi
8937else
8938 $as_echo "$as_me: failed program was:" >&5
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
8941
8942fi
8943
8944rm -rf conftest.dSYM
8945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946 conftest$ac_exeext conftest.$ac_ext
8947if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8948
8949 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8950 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8951 else
8952 if test "$host_cpu" = ia64; then
8953 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8954 allow_undefined_flag="-z nodefs"
8955 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8956 else
8957 # Determine the default libpath from the value encoded in an
8958 # empty executable.
8959 cat >conftest.$ac_ext <<_ACEOF
8960/* confdefs.h. */
8961_ACEOF
8962cat confdefs.h >>conftest.$ac_ext
8963cat >>conftest.$ac_ext <<_ACEOF
8964/* end confdefs.h. */
8965
8966int
8967main ()
8968{
8969
8970 ;
8971 return 0;
8972}
8973_ACEOF
8974rm -f conftest.$ac_objext conftest$ac_exeext
8975if { (ac_try="$ac_link"
8976case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8979esac
8980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981$as_echo "$ac_try_echo") >&5
8982 (eval "$ac_link") 2>conftest.er1
8983 ac_status=$?
8984 grep -v '^ *+' conftest.er1 >conftest.err
8985 rm -f conftest.er1
8986 cat conftest.err >&5
8987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } && {
8989 test -z "$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8991 } && test -s conftest$ac_exeext && {
8992 test "$cross_compiling" = yes ||
8993 $as_test_x conftest$ac_exeext
8994 }; then
8995
8996lt_aix_libpath_sed='
8997 /Import File Strings/,/^$/ {
8998 /^0/ {
8999 s/^0 *\(.*\)$/\1/
9000 p
9001 }
9002 }'
9003aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9004# Check for a 64-bit object if we didn't find anything.
9005if test -z "$aix_libpath"; then
9006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9007fi
9008else
9009 $as_echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
9012
9013fi
9014
9015rm -rf conftest.dSYM
9016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9017 conftest$ac_exeext conftest.$ac_ext
9018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9019
9020 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9021 # Warning - without using the other run time loading flags,
9022 # -berok will link without error, but may produce a broken library.
9023 no_undefined_flag=' ${wl}-bernotok'
9024 allow_undefined_flag=' ${wl}-berok'
9025 # Exported symbols can be pulled into shared objects from archives
9026 whole_archive_flag_spec='$convenience'
9027 archive_cmds_need_lc=yes
9028 # This is similar to how AIX traditionally builds its shared libraries.
9029 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9030 fi
9031 fi
9032 ;;
9033
9034 amigaos*)
9035 case $host_cpu in
9036 powerpc)
9037 # see comment about AmigaOS4 .so support
9038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9039 archive_expsym_cmds=''
9040 ;;
9041 m68k)
9042 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9043 hardcode_libdir_flag_spec='-L$libdir'
9044 hardcode_minus_L=yes
9045 ;;
9046 esac
9047 ;;
9048
9049 bsdi[45]*)
9050 export_dynamic_flag_spec=-rdynamic
9051 ;;
9052
9053 cygwin* | mingw* | pw32* | cegcc*)
9054 # When not using gcc, we currently assume that we are using
9055 # Microsoft Visual C++.
9056 # hardcode_libdir_flag_spec is actually meaningless, as there is
9057 # no search path for DLLs.
9058 hardcode_libdir_flag_spec=' '
9059 allow_undefined_flag=unsupported
9060 # Tell ltmain to make .lib files, not .a files.
9061 libext=lib
9062 # Tell ltmain to make .dll files, not .so files.
9063 shrext_cmds=".dll"
9064 # FIXME: Setting linknames here is a bad hack.
9065 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9066 # The linker will automatically build a .lib file if we build a DLL.
9067 old_archive_from_new_cmds='true'
9068 # FIXME: Should let the user specify the lib program.
9069 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9070 fix_srcfile_path='`cygpath -w "$srcfile"`'
9071 enable_shared_with_static_runtimes=yes
9072 ;;
9073
9074 darwin* | rhapsody*)
9075
9076
9077 archive_cmds_need_lc=no
9078 hardcode_direct=no
9079 hardcode_automatic=yes
9080 hardcode_shlibpath_var=unsupported
9081 whole_archive_flag_spec=''
9082 link_all_deplibs=yes
9083 allow_undefined_flag="$_lt_dar_allow_undefined"
9084 case $cc_basename in
9085 ifort*) _lt_dar_can_shared=yes ;;
9086 *) _lt_dar_can_shared=$GCC ;;
9087 esac
9088 if test "$_lt_dar_can_shared" = "yes"; then
9089 output_verbose_link_cmd=echo
9090 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9091 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9092 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9093 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9094
9095 else
9096 ld_shlibs=no
9097 fi
9098
9099 ;;
9100
9101 dgux*)
9102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9103 hardcode_libdir_flag_spec='-L$libdir'
9104 hardcode_shlibpath_var=no
9105 ;;
9106
9107 freebsd1*)
9108 ld_shlibs=no
9109 ;;
9110
9111 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9112 # support. Future versions do this automatically, but an explicit c++rt0.o
9113 # does not break anything, and helps significantly (at the cost of a little
9114 # extra space).
9115 freebsd2.2*)
9116 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9117 hardcode_libdir_flag_spec='-R$libdir'
9118 hardcode_direct=yes
9119 hardcode_shlibpath_var=no
9120 ;;
9121
9122 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9123 freebsd2*)
9124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_direct=yes
9126 hardcode_minus_L=yes
9127 hardcode_shlibpath_var=no
9128 ;;
9129
9130 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9131 freebsd* | dragonfly*)
9132 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9133 hardcode_libdir_flag_spec='-R$libdir'
9134 hardcode_direct=yes
9135 hardcode_shlibpath_var=no
9136 ;;
9137
9138 hpux9*)
9139 if test "$GCC" = yes; then
9140 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9141 else
9142 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9143 fi
9144 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9145 hardcode_libdir_separator=:
9146 hardcode_direct=yes
9147
9148 # hardcode_minus_L: Not really in the search PATH,
9149 # but as the default location of the library.
9150 hardcode_minus_L=yes
9151 export_dynamic_flag_spec='${wl}-E'
9152 ;;
9153
9154 hpux10*)
9155 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9156 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9157 else
9158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9159 fi
9160 if test "$with_gnu_ld" = no; then
9161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162 hardcode_libdir_flag_spec_ld='+b $libdir'
9163 hardcode_libdir_separator=:
9164 hardcode_direct=yes
9165 hardcode_direct_absolute=yes
9166 export_dynamic_flag_spec='${wl}-E'
9167 # hardcode_minus_L: Not really in the search PATH,
9168 # but as the default location of the library.
9169 hardcode_minus_L=yes
9170 fi
9171 ;;
9172
9173 hpux11*)
9174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9175 case $host_cpu in
9176 hppa*64*)
9177 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9178 ;;
9179 ia64*)
9180 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9181 ;;
9182 *)
9183 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9184 ;;
9185 esac
9186 else
9187 case $host_cpu in
9188 hppa*64*)
9189 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9190 ;;
9191 ia64*)
9192 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9193 ;;
9194 *)
9195 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9196 ;;
9197 esac
9198 fi
9199 if test "$with_gnu_ld" = no; then
9200 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9201 hardcode_libdir_separator=:
9202
9203 case $host_cpu in
9204 hppa*64*|ia64*)
9205 hardcode_direct=no
9206 hardcode_shlibpath_var=no
9207 ;;
9208 *)
9209 hardcode_direct=yes
9210 hardcode_direct_absolute=yes
9211 export_dynamic_flag_spec='${wl}-E'
9212
9213 # hardcode_minus_L: Not really in the search PATH,
9214 # but as the default location of the library.
9215 hardcode_minus_L=yes
9216 ;;
9217 esac
9218 fi
9219 ;;
9220
9221 irix5* | irix6* | nonstopux*)
9222 if test "$GCC" = yes; then
9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9224 # Try to use the -exported_symbol ld option, if it does not
9225 # work, assume that -exports_file does not work either and
9226 # implicitly export all symbols.
9227 save_LDFLAGS="$LDFLAGS"
9228 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9229 cat >conftest.$ac_ext <<_ACEOF
9230int foo(void) {}
9231_ACEOF
9232rm -f conftest.$ac_objext conftest$ac_exeext
9233if { (ac_try="$ac_link"
9234case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237esac
9238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9239$as_echo "$ac_try_echo") >&5
9240 (eval "$ac_link") 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } && {
9247 test -z "$ac_c_werror_flag" ||
9248 test ! -s conftest.err
9249 } && test -s conftest$ac_exeext && {
9250 test "$cross_compiling" = yes ||
9251 $as_test_x conftest$ac_exeext
9252 }; then
9253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9254
9255else
9256 $as_echo "$as_me: failed program was:" >&5
9257sed 's/^/| /' conftest.$ac_ext >&5
9258
9259
9260fi
9261
9262rm -rf conftest.dSYM
9263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9264 conftest$ac_exeext conftest.$ac_ext
9265 LDFLAGS="$save_LDFLAGS"
9266 else
9267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9269 fi
9270 archive_cmds_need_lc='no'
9271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272 hardcode_libdir_separator=:
9273 inherit_rpath=yes
9274 link_all_deplibs=yes
9275 ;;
9276
9277 netbsd*)
9278 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9280 else
9281 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9282 fi
9283 hardcode_libdir_flag_spec='-R$libdir'
9284 hardcode_direct=yes
9285 hardcode_shlibpath_var=no
9286 ;;
9287
9288 newsos6)
9289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290 hardcode_direct=yes
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292 hardcode_libdir_separator=:
9293 hardcode_shlibpath_var=no
9294 ;;
9295
9296 *nto* | *qnx*)
9297 ;;
9298
9299 openbsd*)
9300 if test -f /usr/libexec/ld.so; then
9301 hardcode_direct=yes
9302 hardcode_shlibpath_var=no
9303 hardcode_direct_absolute=yes
9304 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9306 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9307 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9308 export_dynamic_flag_spec='${wl}-E'
9309 else
9310 case $host_os in
9311 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9313 hardcode_libdir_flag_spec='-R$libdir'
9314 ;;
9315 *)
9316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9317 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9318 ;;
9319 esac
9320 fi
9321 else
9322 ld_shlibs=no
9323 fi
9324 ;;
9325
9326 os2*)
9327 hardcode_libdir_flag_spec='-L$libdir'
9328 hardcode_minus_L=yes
9329 allow_undefined_flag=unsupported
9330 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9331 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9332 ;;
9333
9334 osf3*)
9335 if test "$GCC" = yes; then
9336 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9337 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9338 else
9339 allow_undefined_flag=' -expect_unresolved \*'
9340 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9341 fi
9342 archive_cmds_need_lc='no'
9343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344 hardcode_libdir_separator=:
9345 ;;
9346
9347 osf4* | osf5*) # as osf3* with the addition of -msym flag
9348 if test "$GCC" = yes; then
9349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9350 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9352 else
9353 allow_undefined_flag=' -expect_unresolved \*'
9354 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9355 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9356 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9357
9358 # Both c and cxx compiler support -rpath directly
9359 hardcode_libdir_flag_spec='-rpath $libdir'
9360 fi
9361 archive_cmds_need_lc='no'
9362 hardcode_libdir_separator=:
9363 ;;
9364
9365 solaris*)
9366 no_undefined_flag=' -z defs'
9367 if test "$GCC" = yes; then
9368 wlarc='${wl}'
9369 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9371 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9372 else
9373 case `$CC -V 2>&1` in
9374 *"Compilers 5.0"*)
9375 wlarc=''
9376 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9378 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9379 ;;
9380 *)
9381 wlarc='${wl}'
9382 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9383 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9384 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9385 ;;
9386 esac
9387 fi
9388 hardcode_libdir_flag_spec='-R$libdir'
9389 hardcode_shlibpath_var=no
9390 case $host_os in
9391 solaris2.[0-5] | solaris2.[0-5].*) ;;
9392 *)
9393 # The compiler driver will combine and reorder linker options,
9394 # but understands `-z linker_flag'. GCC discards it without `$wl',
9395 # but is careful enough not to reorder.
9396 # Supported since Solaris 2.6 (maybe 2.5.1?)
9397 if test "$GCC" = yes; then
9398 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9399 else
9400 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9401 fi
9402 ;;
9403 esac
9404 link_all_deplibs=yes
9405 ;;
9406
9407 sunos4*)
9408 if test "x$host_vendor" = xsequent; then
9409 # Use $CC to link under sequent, because it throws in some extra .o
9410 # files that make .init and .fini sections work.
9411 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9414 fi
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 hardcode_direct=yes
9417 hardcode_minus_L=yes
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 sysv4)
9422 case $host_vendor in
9423 sni)
9424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425 hardcode_direct=yes # is this really true???
9426 ;;
9427 siemens)
9428 ## LD is ld it makes a PLAMLIB
9429 ## CC just makes a GrossModule.
9430 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9431 reload_cmds='$CC -r -o $output$reload_objs'
9432 hardcode_direct=no
9433 ;;
9434 motorola)
9435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9437 ;;
9438 esac
9439 runpath_var='LD_RUN_PATH'
9440 hardcode_shlibpath_var=no
9441 ;;
9442
9443 sysv4.3*)
9444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_shlibpath_var=no
9446 export_dynamic_flag_spec='-Bexport'
9447 ;;
9448
9449 sysv4*MP*)
9450 if test -d /usr/nec; then
9451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452 hardcode_shlibpath_var=no
9453 runpath_var=LD_RUN_PATH
9454 hardcode_runpath_var=yes
9455 ld_shlibs=yes
9456 fi
9457 ;;
9458
9459 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9460 no_undefined_flag='${wl}-z,text'
9461 archive_cmds_need_lc=no
9462 hardcode_shlibpath_var=no
9463 runpath_var='LD_RUN_PATH'
9464
9465 if test "$GCC" = yes; then
9466 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 else
9469 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9471 fi
9472 ;;
9473
9474 sysv5* | sco3.2v5* | sco5v6*)
9475 # Note: We can NOT use -z defs as we might desire, because we do not
9476 # link with -lc, and that would cause any symbols used from libc to
9477 # always be unresolved, which means just about no library would
9478 # ever link correctly. If we're not using GNU ld we use -z text
9479 # though, which does catch some bad symbols but isn't as heavy-handed
9480 # as -z defs.
9481 no_undefined_flag='${wl}-z,text'
9482 allow_undefined_flag='${wl}-z,nodefs'
9483 archive_cmds_need_lc=no
9484 hardcode_shlibpath_var=no
9485 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9486 hardcode_libdir_separator=':'
9487 link_all_deplibs=yes
9488 export_dynamic_flag_spec='${wl}-Bexport'
9489 runpath_var='LD_RUN_PATH'
9490
9491 if test "$GCC" = yes; then
9492 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494 else
9495 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 fi
9498 ;;
9499
9500 uts4*)
9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_libdir_flag_spec='-L$libdir'
9503 hardcode_shlibpath_var=no
9504 ;;
9505
9506 *)
9507 ld_shlibs=no
9508 ;;
9509 esac
9510
9511 if test x$host_vendor = xsni; then
9512 case $host in
9513 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9514 export_dynamic_flag_spec='${wl}-Blargedynsym'
9515 ;;
9516 esac
9517 fi
9518 fi
9519
9520{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9521$as_echo "$ld_shlibs" >&6; }
9522test "$ld_shlibs" = no && can_build_shared=no
9523
9524with_gnu_ld=$with_gnu_ld
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540#
9541# Do we need to explicitly link libc?
9542#
9543case "x$archive_cmds_need_lc" in
9544x|xyes)
9545 # Assume -lc should be added
9546 archive_cmds_need_lc=yes
9547
9548 if test "$enable_shared" = yes && test "$GCC" = yes; then
9549 case $archive_cmds in
9550 *'~'*)
9551 # FIXME: we may have to deal with multi-command sequences.
9552 ;;
9553 '$CC '*)
9554 # Test whether the compiler implicitly links with -lc since on some
9555 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9556 # to ld, don't add -lc before -lgcc.
9557 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9558$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9559 $RM conftest*
9560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9561
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563 (eval $ac_compile) 2>&5
9564 ac_status=$?
9565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } 2>conftest.err; then
9567 soname=conftest
9568 lib=conftest
9569 libobjs=conftest.$ac_objext
9570 deplibs=
9571 wl=$lt_prog_compiler_wl
9572 pic_flag=$lt_prog_compiler_pic
9573 compiler_flags=-v
9574 linker_flags=-v
9575 verstring=
9576 output_objdir=.
9577 libname=conftest
9578 lt_save_allow_undefined_flag=$allow_undefined_flag
9579 allow_undefined_flag=
9580 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9581 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9582 ac_status=$?
9583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }
9585 then
9586 archive_cmds_need_lc=no
9587 else
9588 archive_cmds_need_lc=yes
9589 fi
9590 allow_undefined_flag=$lt_save_allow_undefined_flag
9591 else
9592 cat conftest.err 1>&5
9593 fi
9594 $RM conftest*
9595 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9596$as_echo "$archive_cmds_need_lc" >&6; }
9597 ;;
9598 esac
9599 fi
9600 ;;
9601esac
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9760$as_echo_n "checking dynamic linker characteristics... " >&6; }
9761
9762if test "$GCC" = yes; then
9763 case $host_os in
9764 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9765 *) lt_awk_arg="/^libraries:/" ;;
9766 esac
9767 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9768 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9769 # if the path contains ";" then we assume it to be the separator
9770 # otherwise default to the standard path separator (i.e. ":") - it is
9771 # assumed that no part of a normal pathname contains ";" but that should
9772 # okay in the real world where ";" in dirpaths is itself problematic.
9773 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9774 else
9775 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9776 fi
9777 # Ok, now we have the path, separated by spaces, we can step through it
9778 # and add multilib dir if necessary.
9779 lt_tmp_lt_search_path_spec=
9780 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9781 for lt_sys_path in $lt_search_path_spec; do
9782 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9783 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9784 else
9785 test -d "$lt_sys_path" && \
9786 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9787 fi
9788 done
9789 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9790BEGIN {RS=" "; FS="/|\n";} {
9791 lt_foo="";
9792 lt_count=0;
9793 for (lt_i = NF; lt_i > 0; lt_i--) {
9794 if ($lt_i != "" && $lt_i != ".") {
9795 if ($lt_i == "..") {
9796 lt_count++;
9797 } else {
9798 if (lt_count == 0) {
9799 lt_foo="/" $lt_i lt_foo;
9800 } else {
9801 lt_count--;
9802 }
9803 }
9804 }
9805 }
9806 if (lt_foo != "") { lt_freq[lt_foo]++; }
9807 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9808}'`
9809 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9810else
9811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9812fi
9813library_names_spec=
9814libname_spec='lib$name'
9815soname_spec=
9816shrext_cmds=".so"
9817postinstall_cmds=
9818postuninstall_cmds=
9819finish_cmds=
9820finish_eval=
9821shlibpath_var=
9822shlibpath_overrides_runpath=unknown
9823version_type=none
9824dynamic_linker="$host_os ld.so"
9825sys_lib_dlsearch_path_spec="/lib /usr/lib"
9826need_lib_prefix=unknown
9827hardcode_into_libs=no
9828
9829# when you set need_version to no, make sure it does not cause -set_version
9830# flags to be left without arguments
9831need_version=unknown
9832
9833case $host_os in
9834aix3*)
9835 version_type=linux
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9837 shlibpath_var=LIBPATH
9838
9839 # AIX 3 has no versioning support, so we append a major version to the name.
9840 soname_spec='${libname}${release}${shared_ext}$major'
9841 ;;
9842
9843aix[4-9]*)
9844 version_type=linux
9845 need_lib_prefix=no
9846 need_version=no
9847 hardcode_into_libs=yes
9848 if test "$host_cpu" = ia64; then
9849 # AIX 5 supports IA64
9850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9851 shlibpath_var=LD_LIBRARY_PATH
9852 else
9853 # With GCC up to 2.95.x, collect2 would create an import file
9854 # for dependence libraries. The import file would start with
9855 # the line `#! .'. This would cause the generated library to
9856 # depend on `.', always an invalid library. This was fixed in
9857 # development snapshots of GCC prior to 3.0.
9858 case $host_os in
9859 aix4 | aix4.[01] | aix4.[01].*)
9860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9861 echo ' yes '
9862 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9863 :
9864 else
9865 can_build_shared=no
9866 fi
9867 ;;
9868 esac
9869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9870 # soname into executable. Probably we can add versioning support to
9871 # collect2, so additional links can be useful in future.
9872 if test "$aix_use_runtimelinking" = yes; then
9873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9874 # instead of lib<name>.a to let people know that these are not
9875 # typical AIX shared libraries.
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 else
9878 # We preserve .a as extension for shared libraries through AIX4.2
9879 # and later when we are not doing run time linking.
9880 library_names_spec='${libname}${release}.a $libname.a'
9881 soname_spec='${libname}${release}${shared_ext}$major'
9882 fi
9883 shlibpath_var=LIBPATH
9884 fi
9885 ;;
9886
9887amigaos*)
9888 case $host_cpu in
9889 powerpc)
9890 # Since July 2007 AmigaOS4 officially supports .so libraries.
9891 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893 ;;
9894 m68k)
9895 library_names_spec='$libname.ixlibrary $libname.a'
9896 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9897 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9898 ;;
9899 esac
9900 ;;
9901
9902beos*)
9903 library_names_spec='${libname}${shared_ext}'
9904 dynamic_linker="$host_os ld.so"
9905 shlibpath_var=LIBRARY_PATH
9906 ;;
9907
9908bsdi[45]*)
9909 version_type=linux
9910 need_version=no
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9917 # the default ld.so.conf also contains /usr/contrib/lib and
9918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9919 # libtool to hard-code these into programs
9920 ;;
9921
9922cygwin* | mingw* | pw32* | cegcc*)
9923 version_type=windows
9924 shrext_cmds=".dll"
9925 need_version=no
9926 need_lib_prefix=no
9927
9928 case $GCC,$host_os in
9929 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9930 library_names_spec='$libname.dll.a'
9931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9932 postinstall_cmds='base_file=`basename \${file}`~
9933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9934 dldir=$destdir/`dirname \$dlpath`~
9935 test -d \$dldir || mkdir -p \$dldir~
9936 $install_prog $dir/$dlname \$dldir/$dlname~
9937 chmod a+x \$dldir/$dlname~
9938 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9939 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9940 fi'
9941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9942 dlpath=$dir/\$dldll~
9943 $RM \$dlpath'
9944 shlibpath_overrides_runpath=yes
9945
9946 case $host_os in
9947 cygwin*)
9948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9951 ;;
9952 mingw* | cegcc*)
9953 # MinGW DLLs use traditional 'lib' prefix
9954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9955 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9956 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9957 # It is most probably a Windows format PATH printed by
9958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9959 # path with ; separators, and with drive letters. We can handle the
9960 # drive letters (cygwin fileutils understands them), so leave them,
9961 # especially as we might pass files found there to a mingw objdump,
9962 # which wouldn't understand a cygwinified path. Ahh.
9963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9964 else
9965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9966 fi
9967 ;;
9968 pw32*)
9969 # pw32 DLLs use 'pw' prefix rather than 'lib'
9970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9971 ;;
9972 esac
9973 ;;
9974
9975 *)
9976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9977 ;;
9978 esac
9979 dynamic_linker='Win32 ld.exe'
9980 # FIXME: first we should search . and the directory the executable is in
9981 shlibpath_var=PATH
9982 ;;
9983
9984darwin* | rhapsody*)
9985 dynamic_linker="$host_os dyld"
9986 version_type=darwin
9987 need_lib_prefix=no
9988 need_version=no
9989 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9990 soname_spec='${libname}${release}${major}$shared_ext'
9991 shlibpath_overrides_runpath=yes
9992 shlibpath_var=DYLD_LIBRARY_PATH
9993 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9994
9995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9997 ;;
9998
9999dgux*)
10000 version_type=linux
10001 need_lib_prefix=no
10002 need_version=no
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 shlibpath_var=LD_LIBRARY_PATH
10006 ;;
10007
10008freebsd1*)
10009 dynamic_linker=no
10010 ;;
10011
10012freebsd* | dragonfly*)
10013 # DragonFly does not have aout. When/if they implement a new
10014 # versioning mechanism, adjust this.
10015 if test -x /usr/bin/objformat; then
10016 objformat=`/usr/bin/objformat`
10017 else
10018 case $host_os in
10019 freebsd[123]*) objformat=aout ;;
10020 *) objformat=elf ;;
10021 esac
10022 fi
10023 version_type=freebsd-$objformat
10024 case $version_type in
10025 freebsd-elf*)
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10027 need_version=no
10028 need_lib_prefix=no
10029 ;;
10030 freebsd-*)
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10032 need_version=yes
10033 ;;
10034 esac
10035 shlibpath_var=LD_LIBRARY_PATH
10036 case $host_os in
10037 freebsd2*)
10038 shlibpath_overrides_runpath=yes
10039 ;;
10040 freebsd3.[01]* | freebsdelf3.[01]*)
10041 shlibpath_overrides_runpath=yes
10042 hardcode_into_libs=yes
10043 ;;
10044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10046 shlibpath_overrides_runpath=no
10047 hardcode_into_libs=yes
10048 ;;
10049 *) # from 4.6 on, and DragonFly
10050 shlibpath_overrides_runpath=yes
10051 hardcode_into_libs=yes
10052 ;;
10053 esac
10054 ;;
10055
10056gnu*)
10057 version_type=linux
10058 need_lib_prefix=no
10059 need_version=no
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 hardcode_into_libs=yes
10064 ;;
10065
10066hpux9* | hpux10* | hpux11*)
10067 # Give a soname corresponding to the major version so that dld.sl refuses to
10068 # link against other versions.
10069 version_type=sunos
10070 need_lib_prefix=no
10071 need_version=no
10072 case $host_cpu in
10073 ia64*)
10074 shrext_cmds='.so'
10075 hardcode_into_libs=yes
10076 dynamic_linker="$host_os dld.so"
10077 shlibpath_var=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 if test "X$HPUX_IA64_MODE" = X32; then
10082 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10083 else
10084 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10085 fi
10086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10087 ;;
10088 hppa*64*)
10089 shrext_cmds='.sl'
10090 hardcode_into_libs=yes
10091 dynamic_linker="$host_os dld.sl"
10092 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10098 ;;
10099 *)
10100 shrext_cmds='.sl'
10101 dynamic_linker="$host_os dld.sl"
10102 shlibpath_var=SHLIB_PATH
10103 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 ;;
10107 esac
10108 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10109 postinstall_cmds='chmod 555 $lib'
10110 ;;
10111
10112interix[3-9]*)
10113 version_type=linux
10114 need_lib_prefix=no
10115 need_version=no
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=no
10121 hardcode_into_libs=yes
10122 ;;
10123
10124irix5* | irix6* | nonstopux*)
10125 case $host_os in
10126 nonstopux*) version_type=nonstopux ;;
10127 *)
10128 if test "$lt_cv_prog_gnu_ld" = yes; then
10129 version_type=linux
10130 else
10131 version_type=irix
10132 fi ;;
10133 esac
10134 need_lib_prefix=no
10135 need_version=no
10136 soname_spec='${libname}${release}${shared_ext}$major'
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10138 case $host_os in
10139 irix5* | nonstopux*)
10140 libsuff= shlibsuff=
10141 ;;
10142 *)
10143 case $LD in # libtool.m4 will add one of these switches to LD
10144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10145 libsuff= shlibsuff= libmagic=32-bit;;
10146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10147 libsuff=32 shlibsuff=N32 libmagic=N32;;
10148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10150 *) libsuff= shlibsuff= libmagic=never-match;;
10151 esac
10152 ;;
10153 esac
10154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10155 shlibpath_overrides_runpath=no
10156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10158 hardcode_into_libs=yes
10159 ;;
10160
10161# No shared lib support for Linux oldld, aout, or coff.
10162linux*oldld* | linux*aout* | linux*coff*)
10163 dynamic_linker=no
10164 ;;
10165
10166# This must be Linux ELF.
10167linux* | k*bsd*-gnu)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=no
10176 # Some binutils ld are patched to set DT_RUNPATH
10177 save_LDFLAGS=$LDFLAGS
10178 save_libdir=$libdir
10179 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10180 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10181 cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
10187
10188int
10189main ()
10190{
10191
10192 ;
10193 return 0;
10194}
10195_ACEOF
10196rm -f conftest.$ac_objext conftest$ac_exeext
10197if { (ac_try="$ac_link"
10198case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201esac
10202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10203$as_echo "$ac_try_echo") >&5
10204 (eval "$ac_link") 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } && {
10211 test -z "$ac_c_werror_flag" ||
10212 test ! -s conftest.err
10213 } && test -s conftest$ac_exeext && {
10214 test "$cross_compiling" = yes ||
10215 $as_test_x conftest$ac_exeext
10216 }; then
10217 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10218 shlibpath_overrides_runpath=yes
10219fi
10220
10221else
10222 $as_echo "$as_me: failed program was:" >&5
10223sed 's/^/| /' conftest.$ac_ext >&5
10224
10225
10226fi
10227
10228rm -rf conftest.dSYM
10229rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LDFLAGS=$save_LDFLAGS
10232 libdir=$save_libdir
10233
10234 # This implies no fast_install, which is unacceptable.
10235 # Some rework will be needed to allow for fast_install
10236 # before this can be enabled.
10237 hardcode_into_libs=yes
10238
10239 # Add ABI-specific directories to the system library path.
10240 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10241
10242 # Append ld.so.conf contents to the search path
10243 if test -f /etc/ld.so.conf; then
10244 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10245 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10246 fi
10247
10248 # We used to test for /lib/ld.so.1 and disable shared libraries on
10249 # powerpc, because MkLinux only supported shared libraries with the
10250 # GNU dynamic linker. Since this was broken with cross compilers,
10251 # most powerpc-linux boxes support dynamic linking these days and
10252 # people can always --disable-shared, the test was removed, and we
10253 # assume the GNU/Linux dynamic linker is in use.
10254 dynamic_linker='GNU/Linux ld.so'
10255 ;;
10256
10257netbsd*)
10258 version_type=sunos
10259 need_lib_prefix=no
10260 need_version=no
10261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10264 dynamic_linker='NetBSD (a.out) ld.so'
10265 else
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 dynamic_linker='NetBSD ld.elf_so'
10269 fi
10270 shlibpath_var=LD_LIBRARY_PATH
10271 shlibpath_overrides_runpath=yes
10272 hardcode_into_libs=yes
10273 ;;
10274
10275newsos6)
10276 version_type=linux
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10280 ;;
10281
10282*nto* | *qnx*)
10283 version_type=qnx
10284 need_lib_prefix=no
10285 need_version=no
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=no
10290 hardcode_into_libs=yes
10291 dynamic_linker='ldqnx.so'
10292 ;;
10293
10294openbsd*)
10295 version_type=sunos
10296 sys_lib_dlsearch_path_spec="/usr/lib"
10297 need_lib_prefix=no
10298 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10299 case $host_os in
10300 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10301 *) need_version=no ;;
10302 esac
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10307 case $host_os in
10308 openbsd2.[89] | openbsd2.[89].*)
10309 shlibpath_overrides_runpath=no
10310 ;;
10311 *)
10312 shlibpath_overrides_runpath=yes
10313 ;;
10314 esac
10315 else
10316 shlibpath_overrides_runpath=yes
10317 fi
10318 ;;
10319
10320os2*)
10321 libname_spec='$name'
10322 shrext_cmds=".dll"
10323 need_lib_prefix=no
10324 library_names_spec='$libname${shared_ext} $libname.a'
10325 dynamic_linker='OS/2 ld.exe'
10326 shlibpath_var=LIBPATH
10327 ;;
10328
10329osf3* | osf4* | osf5*)
10330 version_type=osf
10331 need_lib_prefix=no
10332 need_version=no
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10337 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10338 ;;
10339
10340rdos*)
10341 dynamic_linker=no
10342 ;;
10343
10344solaris*)
10345 version_type=linux
10346 need_lib_prefix=no
10347 need_version=no
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes
10352 hardcode_into_libs=yes
10353 # ldd complains unless libraries are executable
10354 postinstall_cmds='chmod +x $lib'
10355 ;;
10356
10357sunos4*)
10358 version_type=sunos
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=yes
10363 if test "$with_gnu_ld" = yes; then
10364 need_lib_prefix=no
10365 fi
10366 need_version=yes
10367 ;;
10368
10369sysv4 | sysv4.3*)
10370 version_type=linux
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 case $host_vendor in
10375 sni)
10376 shlibpath_overrides_runpath=no
10377 need_lib_prefix=no
10378 runpath_var=LD_RUN_PATH
10379 ;;
10380 siemens)
10381 need_lib_prefix=no
10382 ;;
10383 motorola)
10384 need_lib_prefix=no
10385 need_version=no
10386 shlibpath_overrides_runpath=no
10387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10388 ;;
10389 esac
10390 ;;
10391
10392sysv4*MP*)
10393 if test -d /usr/nec ;then
10394 version_type=linux
10395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10396 soname_spec='$libname${shared_ext}.$major'
10397 shlibpath_var=LD_LIBRARY_PATH
10398 fi
10399 ;;
10400
10401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10402 version_type=freebsd-elf
10403 need_lib_prefix=no
10404 need_version=no
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 shlibpath_overrides_runpath=yes
10409 hardcode_into_libs=yes
10410 if test "$with_gnu_ld" = yes; then
10411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10412 else
10413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10414 case $host_os in
10415 sco3.2v5*)
10416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10417 ;;
10418 esac
10419 fi
10420 sys_lib_dlsearch_path_spec='/usr/lib'
10421 ;;
10422
10423tpf*)
10424 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10425 version_type=linux
10426 need_lib_prefix=no
10427 need_version=no
10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10429 shlibpath_var=LD_LIBRARY_PATH
10430 shlibpath_overrides_runpath=no
10431 hardcode_into_libs=yes
10432 ;;
10433
10434uts4*)
10435 version_type=linux
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 ;;
10440
10441*)
10442 dynamic_linker=no
10443 ;;
10444esac
10445{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10446$as_echo "$dynamic_linker" >&6; }
10447test "$dynamic_linker" = no && can_build_shared=no
10448
10449variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10450if test "$GCC" = yes; then
10451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10452fi
10453
10454if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10455 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10456fi
10457if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10458 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10459fi
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10548$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10549hardcode_action=
10550if test -n "$hardcode_libdir_flag_spec" ||
10551 test -n "$runpath_var" ||
10552 test "X$hardcode_automatic" = "Xyes" ; then
10553
10554 # We can hardcode non-existent directories.
10555 if test "$hardcode_direct" != no &&
10556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10557 # have to relink, otherwise we might link with an installed library
10558 # when we should be linking with a yet-to-be-installed one
10559 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10560 test "$hardcode_minus_L" != no; then
10561 # Linking always hardcodes the temporary library directory.
10562 hardcode_action=relink
10563 else
10564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10565 hardcode_action=immediate
10566 fi
10567else
10568 # We cannot hardcode anything, or else we can only hardcode existing
10569 # directories.
10570 hardcode_action=unsupported
10571fi
10572{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10573$as_echo "$hardcode_action" >&6; }
10574
10575if test "$hardcode_action" = relink ||
10576 test "$inherit_rpath" = yes; then
10577 # Fast installation is not supported
10578 enable_fast_install=no
10579elif test "$shlibpath_overrides_runpath" = yes ||
10580 test "$enable_shared" = no; then
10581 # Fast installation is not necessary
10582 enable_fast_install=needless
10583fi
10584
10585
10586
10587
10588
10589
10590 if test "x$enable_dlopen" != xyes; then
10591 enable_dlopen=unknown
10592 enable_dlopen_self=unknown
10593 enable_dlopen_self_static=unknown
10594else
10595 lt_cv_dlopen=no
10596 lt_cv_dlopen_libs=
10597
10598 case $host_os in
10599 beos*)
10600 lt_cv_dlopen="load_add_on"
10601 lt_cv_dlopen_libs=
10602 lt_cv_dlopen_self=yes
10603 ;;
10604
10605 mingw* | pw32* | cegcc*)
10606 lt_cv_dlopen="LoadLibrary"
10607 lt_cv_dlopen_libs=
10608 ;;
10609
10610 cygwin*)
10611 lt_cv_dlopen="dlopen"
10612 lt_cv_dlopen_libs=
10613 ;;
10614
10615 darwin*)
10616 # if libdl is installed we need to link against it
10617 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10618$as_echo_n "checking for dlopen in -ldl... " >&6; }
10619if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10620 $as_echo_n "(cached) " >&6
10621else
10622 ac_check_lib_save_LIBS=$LIBS
10623LIBS="-ldl $LIBS"
10624cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h. */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h. */
10630
10631/* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
10634#ifdef __cplusplus
10635extern "C"
10636#endif
10637char dlopen ();
10638int
10639main ()
10640{
10641return dlopen ();
10642 ;
10643 return 0;
10644}
10645_ACEOF
10646rm -f conftest.$ac_objext conftest$ac_exeext
10647if { (ac_try="$ac_link"
10648case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10651esac
10652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10653$as_echo "$ac_try_echo") >&5
10654 (eval "$ac_link") 2>conftest.er1
10655 ac_status=$?
10656 grep -v '^ *+' conftest.er1 >conftest.err
10657 rm -f conftest.er1
10658 cat conftest.err >&5
10659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && {
10661 test -z "$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest$ac_exeext && {
10664 test "$cross_compiling" = yes ||
10665 $as_test_x conftest$ac_exeext
10666 }; then
10667 ac_cv_lib_dl_dlopen=yes
10668else
10669 $as_echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
10671
10672 ac_cv_lib_dl_dlopen=no
10673fi
10674
10675rm -rf conftest.dSYM
10676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677 conftest$ac_exeext conftest.$ac_ext
10678LIBS=$ac_check_lib_save_LIBS
10679fi
10680{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10681$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10682if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10684else
10685
10686 lt_cv_dlopen="dyld"
10687 lt_cv_dlopen_libs=
10688 lt_cv_dlopen_self=yes
10689
10690fi
10691
10692 ;;
10693
10694 *)
10695 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10696$as_echo_n "checking for shl_load... " >&6; }
10697if test "${ac_cv_func_shl_load+set}" = set; then
10698 $as_echo_n "(cached) " >&6
10699else
10700 cat >conftest.$ac_ext <<_ACEOF
10701/* confdefs.h. */
10702_ACEOF
10703cat confdefs.h >>conftest.$ac_ext
10704cat >>conftest.$ac_ext <<_ACEOF
10705/* end confdefs.h. */
10706/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10708#define shl_load innocuous_shl_load
10709
10710/* System header to define __stub macros and hopefully few prototypes,
10711 which can conflict with char shl_load (); below.
10712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10713 <limits.h> exists even on freestanding compilers. */
10714
10715#ifdef __STDC__
10716# include <limits.h>
10717#else
10718# include <assert.h>
10719#endif
10720
10721#undef shl_load
10722
10723/* Override any GCC internal prototype to avoid an error.
10724 Use char because int might match the return type of a GCC
10725 builtin and then its argument prototype would still apply. */
10726#ifdef __cplusplus
10727extern "C"
10728#endif
10729char shl_load ();
10730/* The GNU C library defines this for functions which it implements
10731 to always fail with ENOSYS. Some functions are actually named
10732 something starting with __ and the normal name is an alias. */
10733#if defined __stub_shl_load || defined __stub___shl_load
10734choke me
10735#endif
10736
10737int
10738main ()
10739{
10740return shl_load ();
10741 ;
10742 return 0;
10743}
10744_ACEOF
10745rm -f conftest.$ac_objext conftest$ac_exeext
10746if { (ac_try="$ac_link"
10747case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750esac
10751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10752$as_echo "$ac_try_echo") >&5
10753 (eval "$ac_link") 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } && {
10760 test -z "$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 } && test -s conftest$ac_exeext && {
10763 test "$cross_compiling" = yes ||
10764 $as_test_x conftest$ac_exeext
10765 }; then
10766 ac_cv_func_shl_load=yes
10767else
10768 $as_echo "$as_me: failed program was:" >&5
10769sed 's/^/| /' conftest.$ac_ext >&5
10770
10771 ac_cv_func_shl_load=no
10772fi
10773
10774rm -rf conftest.dSYM
10775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10776 conftest$ac_exeext conftest.$ac_ext
10777fi
10778{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10779$as_echo "$ac_cv_func_shl_load" >&6; }
10780if test "x$ac_cv_func_shl_load" = x""yes; then
10781 lt_cv_dlopen="shl_load"
10782else
10783 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10784$as_echo_n "checking for shl_load in -ldld... " >&6; }
10785if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10786 $as_echo_n "(cached) " >&6
10787else
10788 ac_check_lib_save_LIBS=$LIBS
10789LIBS="-ldld $LIBS"
10790cat >conftest.$ac_ext <<_ACEOF
10791/* confdefs.h. */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h. */
10796
10797/* Override any GCC internal prototype to avoid an error.
10798 Use char because int might match the return type of a GCC
10799 builtin and then its argument prototype would still apply. */
10800#ifdef __cplusplus
10801extern "C"
10802#endif
10803char shl_load ();
10804int
10805main ()
10806{
10807return shl_load ();
10808 ;
10809 return 0;
10810}
10811_ACEOF
10812rm -f conftest.$ac_objext conftest$ac_exeext
10813if { (ac_try="$ac_link"
10814case "(($ac_try" in
10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10816 *) ac_try_echo=$ac_try;;
10817esac
10818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10819$as_echo "$ac_try_echo") >&5
10820 (eval "$ac_link") 2>conftest.er1
10821 ac_status=$?
10822 grep -v '^ *+' conftest.er1 >conftest.err
10823 rm -f conftest.er1
10824 cat conftest.err >&5
10825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } && {
10827 test -z "$ac_c_werror_flag" ||
10828 test ! -s conftest.err
10829 } && test -s conftest$ac_exeext && {
10830 test "$cross_compiling" = yes ||
10831 $as_test_x conftest$ac_exeext
10832 }; then
10833 ac_cv_lib_dld_shl_load=yes
10834else
10835 $as_echo "$as_me: failed program was:" >&5
10836sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 ac_cv_lib_dld_shl_load=no
10839fi
10840
10841rm -rf conftest.dSYM
10842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843 conftest$ac_exeext conftest.$ac_ext
10844LIBS=$ac_check_lib_save_LIBS
10845fi
10846{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10847$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10848if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10849 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10850else
10851 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10852$as_echo_n "checking for dlopen... " >&6; }
10853if test "${ac_cv_func_dlopen+set}" = set; then
10854 $as_echo_n "(cached) " >&6
10855else
10856 cat >conftest.$ac_ext <<_ACEOF
10857/* confdefs.h. */
10858_ACEOF
10859cat confdefs.h >>conftest.$ac_ext
10860cat >>conftest.$ac_ext <<_ACEOF
10861/* end confdefs.h. */
10862/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10864#define dlopen innocuous_dlopen
10865
10866/* System header to define __stub macros and hopefully few prototypes,
10867 which can conflict with char dlopen (); below.
10868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10869 <limits.h> exists even on freestanding compilers. */
10870
10871#ifdef __STDC__
10872# include <limits.h>
10873#else
10874# include <assert.h>
10875#endif
10876
10877#undef dlopen
10878
10879/* Override any GCC internal prototype to avoid an error.
10880 Use char because int might match the return type of a GCC
10881 builtin and then its argument prototype would still apply. */
10882#ifdef __cplusplus
10883extern "C"
10884#endif
10885char dlopen ();
10886/* The GNU C library defines this for functions which it implements
10887 to always fail with ENOSYS. Some functions are actually named
10888 something starting with __ and the normal name is an alias. */
10889#if defined __stub_dlopen || defined __stub___dlopen
10890choke me
10891#endif
10892
10893int
10894main ()
10895{
10896return dlopen ();
10897 ;
10898 return 0;
10899}
10900_ACEOF
10901rm -f conftest.$ac_objext conftest$ac_exeext
10902if { (ac_try="$ac_link"
10903case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906esac
10907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908$as_echo "$ac_try_echo") >&5
10909 (eval "$ac_link") 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext && {
10919 test "$cross_compiling" = yes ||
10920 $as_test_x conftest$ac_exeext
10921 }; then
10922 ac_cv_func_dlopen=yes
10923else
10924 $as_echo "$as_me: failed program was:" >&5
10925sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_cv_func_dlopen=no
10928fi
10929
10930rm -rf conftest.dSYM
10931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10933fi
10934{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10935$as_echo "$ac_cv_func_dlopen" >&6; }
10936if test "x$ac_cv_func_dlopen" = x""yes; then
10937 lt_cv_dlopen="dlopen"
10938else
10939 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10940$as_echo_n "checking for dlopen in -ldl... " >&6; }
10941if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10942 $as_echo_n "(cached) " >&6
10943else
10944 ac_check_lib_save_LIBS=$LIBS
10945LIBS="-ldl $LIBS"
10946cat >conftest.$ac_ext <<_ACEOF
10947/* confdefs.h. */
10948_ACEOF
10949cat confdefs.h >>conftest.$ac_ext
10950cat >>conftest.$ac_ext <<_ACEOF
10951/* end confdefs.h. */
10952
10953/* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
10955 builtin and then its argument prototype would still apply. */
10956#ifdef __cplusplus
10957extern "C"
10958#endif
10959char dlopen ();
10960int
10961main ()
10962{
10963return dlopen ();
10964 ;
10965 return 0;
10966}
10967_ACEOF
10968rm -f conftest.$ac_objext conftest$ac_exeext
10969if { (ac_try="$ac_link"
10970case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10973esac
10974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975$as_echo "$ac_try_echo") >&5
10976 (eval "$ac_link") 2>conftest.er1
10977 ac_status=$?
10978 grep -v '^ *+' conftest.er1 >conftest.err
10979 rm -f conftest.er1
10980 cat conftest.err >&5
10981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); } && {
10983 test -z "$ac_c_werror_flag" ||
10984 test ! -s conftest.err
10985 } && test -s conftest$ac_exeext && {
10986 test "$cross_compiling" = yes ||
10987 $as_test_x conftest$ac_exeext
10988 }; then
10989 ac_cv_lib_dl_dlopen=yes
10990else
10991 $as_echo "$as_me: failed program was:" >&5
10992sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 ac_cv_lib_dl_dlopen=no
10995fi
10996
10997rm -rf conftest.dSYM
10998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10999 conftest$ac_exeext conftest.$ac_ext
11000LIBS=$ac_check_lib_save_LIBS
11001fi
11002{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11003$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11006else
11007 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11008$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11009if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11010 $as_echo_n "(cached) " >&6
11011else
11012 ac_check_lib_save_LIBS=$LIBS
11013LIBS="-lsvld $LIBS"
11014cat >conftest.$ac_ext <<_ACEOF
11015/* confdefs.h. */
11016_ACEOF
11017cat confdefs.h >>conftest.$ac_ext
11018cat >>conftest.$ac_ext <<_ACEOF
11019/* end confdefs.h. */
11020
11021/* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024#ifdef __cplusplus
11025extern "C"
11026#endif
11027char dlopen ();
11028int
11029main ()
11030{
11031return dlopen ();
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext conftest$ac_exeext
11037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043$as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11056 }; then
11057 ac_cv_lib_svld_dlopen=yes
11058else
11059 $as_echo "$as_me: failed program was:" >&5
11060sed 's/^/| /' conftest.$ac_ext >&5
11061
11062 ac_cv_lib_svld_dlopen=no
11063fi
11064
11065rm -rf conftest.dSYM
11066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11068LIBS=$ac_check_lib_save_LIBS
11069fi
11070{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11071$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11072if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11074else
11075 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11076$as_echo_n "checking for dld_link in -ldld... " >&6; }
11077if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11078 $as_echo_n "(cached) " >&6
11079else
11080 ac_check_lib_save_LIBS=$LIBS
11081LIBS="-ldld $LIBS"
11082cat >conftest.$ac_ext <<_ACEOF
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088
11089/* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092#ifdef __cplusplus
11093extern "C"
11094#endif
11095char dld_link ();
11096int
11097main ()
11098{
11099return dld_link ();
11100 ;
11101 return 0;
11102}
11103_ACEOF
11104rm -f conftest.$ac_objext conftest$ac_exeext
11105if { (ac_try="$ac_link"
11106case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11111$as_echo "$ac_try_echo") >&5
11112 (eval "$ac_link") 2>conftest.er1
11113 ac_status=$?
11114 grep -v '^ *+' conftest.er1 >conftest.err
11115 rm -f conftest.er1
11116 cat conftest.err >&5
11117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } && {
11119 test -z "$ac_c_werror_flag" ||
11120 test ! -s conftest.err
11121 } && test -s conftest$ac_exeext && {
11122 test "$cross_compiling" = yes ||
11123 $as_test_x conftest$ac_exeext
11124 }; then
11125 ac_cv_lib_dld_dld_link=yes
11126else
11127 $as_echo "$as_me: failed program was:" >&5
11128sed 's/^/| /' conftest.$ac_ext >&5
11129
11130 ac_cv_lib_dld_dld_link=no
11131fi
11132
11133rm -rf conftest.dSYM
11134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11135 conftest$ac_exeext conftest.$ac_ext
11136LIBS=$ac_check_lib_save_LIBS
11137fi
11138{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11139$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11140if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11142fi
11143
11144
11145fi
11146
11147
11148fi
11149
11150
11151fi
11152
11153
11154fi
11155
11156
11157fi
11158
11159 ;;
11160 esac
11161
11162 if test "x$lt_cv_dlopen" != xno; then
11163 enable_dlopen=yes
11164 else
11165 enable_dlopen=no
11166 fi
11167
11168 case $lt_cv_dlopen in
11169 dlopen)
11170 save_CPPFLAGS="$CPPFLAGS"
11171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11172
11173 save_LDFLAGS="$LDFLAGS"
11174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11175
11176 save_LIBS="$LIBS"
11177 LIBS="$lt_cv_dlopen_libs $LIBS"
11178
11179 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11180$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11181if test "${lt_cv_dlopen_self+set}" = set; then
11182 $as_echo_n "(cached) " >&6
11183else
11184 if test "$cross_compiling" = yes; then :
11185 lt_cv_dlopen_self=cross
11186else
11187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11188 lt_status=$lt_dlunknown
11189 cat > conftest.$ac_ext <<_LT_EOF
b3259b6a 11190#line 11190 "configure"
e70e591c
BB
11191#include "confdefs.h"
11192
11193#if HAVE_DLFCN_H
11194#include <dlfcn.h>
11195#endif
11196
11197#include <stdio.h>
11198
11199#ifdef RTLD_GLOBAL
11200# define LT_DLGLOBAL RTLD_GLOBAL
11201#else
11202# ifdef DL_GLOBAL
11203# define LT_DLGLOBAL DL_GLOBAL
11204# else
11205# define LT_DLGLOBAL 0
11206# endif
11207#endif
11208
11209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11210 find out it does not work in some platform. */
11211#ifndef LT_DLLAZY_OR_NOW
11212# ifdef RTLD_LAZY
11213# define LT_DLLAZY_OR_NOW RTLD_LAZY
11214# else
11215# ifdef DL_LAZY
11216# define LT_DLLAZY_OR_NOW DL_LAZY
11217# else
11218# ifdef RTLD_NOW
11219# define LT_DLLAZY_OR_NOW RTLD_NOW
11220# else
11221# ifdef DL_NOW
11222# define LT_DLLAZY_OR_NOW DL_NOW
11223# else
11224# define LT_DLLAZY_OR_NOW 0
11225# endif
11226# endif
11227# endif
11228# endif
11229#endif
11230
11231void fnord() { int i=42;}
11232int main ()
11233{
11234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11235 int status = $lt_dlunknown;
11236
11237 if (self)
11238 {
11239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11240 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11241 /* dlclose (self); */
11242 }
11243 else
11244 puts (dlerror ());
11245
11246 return status;
11247}
11248_LT_EOF
11249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11250 (eval $ac_link) 2>&5
11251 ac_status=$?
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11254 (./conftest; exit; ) >&5 2>/dev/null
11255 lt_status=$?
11256 case x$lt_status in
11257 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11258 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11259 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11260 esac
11261 else :
11262 # compilation failed
11263 lt_cv_dlopen_self=no
11264 fi
11265fi
11266rm -fr conftest*
11267
11268
11269fi
11270{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11271$as_echo "$lt_cv_dlopen_self" >&6; }
11272
11273 if test "x$lt_cv_dlopen_self" = xyes; then
11274 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11275 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11276$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11277if test "${lt_cv_dlopen_self_static+set}" = set; then
11278 $as_echo_n "(cached) " >&6
11279else
11280 if test "$cross_compiling" = yes; then :
11281 lt_cv_dlopen_self_static=cross
11282else
11283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11284 lt_status=$lt_dlunknown
11285 cat > conftest.$ac_ext <<_LT_EOF
b3259b6a 11286#line 11286 "configure"
e70e591c
BB
11287#include "confdefs.h"
11288
11289#if HAVE_DLFCN_H
11290#include <dlfcn.h>
11291#endif
11292
11293#include <stdio.h>
11294
11295#ifdef RTLD_GLOBAL
11296# define LT_DLGLOBAL RTLD_GLOBAL
11297#else
11298# ifdef DL_GLOBAL
11299# define LT_DLGLOBAL DL_GLOBAL
11300# else
11301# define LT_DLGLOBAL 0
11302# endif
11303#endif
11304
11305/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11306 find out it does not work in some platform. */
11307#ifndef LT_DLLAZY_OR_NOW
11308# ifdef RTLD_LAZY
11309# define LT_DLLAZY_OR_NOW RTLD_LAZY
11310# else
11311# ifdef DL_LAZY
11312# define LT_DLLAZY_OR_NOW DL_LAZY
11313# else
11314# ifdef RTLD_NOW
11315# define LT_DLLAZY_OR_NOW RTLD_NOW
11316# else
11317# ifdef DL_NOW
11318# define LT_DLLAZY_OR_NOW DL_NOW
11319# else
11320# define LT_DLLAZY_OR_NOW 0
11321# endif
11322# endif
11323# endif
11324# endif
11325#endif
11326
11327void fnord() { int i=42;}
11328int main ()
11329{
11330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11331 int status = $lt_dlunknown;
11332
11333 if (self)
11334 {
11335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11336 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11337 /* dlclose (self); */
11338 }
11339 else
11340 puts (dlerror ());
11341
11342 return status;
11343}
11344_LT_EOF
11345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11346 (eval $ac_link) 2>&5
11347 ac_status=$?
11348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11350 (./conftest; exit; ) >&5 2>/dev/null
11351 lt_status=$?
11352 case x$lt_status in
11353 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11354 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11355 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11356 esac
11357 else :
11358 # compilation failed
11359 lt_cv_dlopen_self_static=no
11360 fi
11361fi
11362rm -fr conftest*
11363
11364
11365fi
11366{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11367$as_echo "$lt_cv_dlopen_self_static" >&6; }
11368 fi
11369
11370 CPPFLAGS="$save_CPPFLAGS"
11371 LDFLAGS="$save_LDFLAGS"
11372 LIBS="$save_LIBS"
11373 ;;
11374 esac
11375
11376 case $lt_cv_dlopen_self in
11377 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11378 *) enable_dlopen_self=unknown ;;
11379 esac
11380
11381 case $lt_cv_dlopen_self_static in
11382 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11383 *) enable_dlopen_self_static=unknown ;;
11384 esac
11385fi
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403striplib=
11404old_striplib=
11405{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11406$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11407if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11408 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11409 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11410 { $as_echo "$as_me:$LINENO: result: yes" >&5
11411$as_echo "yes" >&6; }
11412else
11413# FIXME - insert some real tests, host_os isn't really good enough
11414 case $host_os in
11415 darwin*)
11416 if test -n "$STRIP" ; then
11417 striplib="$STRIP -x"
11418 old_striplib="$STRIP -S"
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420$as_echo "yes" >&6; }
11421 else
11422 { $as_echo "$as_me:$LINENO: result: no" >&5
11423$as_echo "no" >&6; }
11424 fi
11425 ;;
11426 *)
11427 { $as_echo "$as_me:$LINENO: result: no" >&5
11428$as_echo "no" >&6; }
11429 ;;
11430 esac
11431fi
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444 # Report which library types will actually be built
11445 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11446$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11447 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11448$as_echo "$can_build_shared" >&6; }
11449
11450 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11451$as_echo_n "checking whether to build shared libraries... " >&6; }
11452 test "$can_build_shared" = "no" && enable_shared=no
11453
11454 # On AIX, shared libraries and static libraries use the same namespace, and
11455 # are all built from PIC.
11456 case $host_os in
11457 aix3*)
11458 test "$enable_shared" = yes && enable_static=no
11459 if test -n "$RANLIB"; then
11460 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11461 postinstall_cmds='$RANLIB $lib'
11462 fi
11463 ;;
11464
11465 aix[4-9]*)
11466 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11467 test "$enable_shared" = yes && enable_static=no
11468 fi
11469 ;;
11470 esac
11471 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11472$as_echo "$enable_shared" >&6; }
11473
11474 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11475$as_echo_n "checking whether to build static libraries... " >&6; }
11476 # Make sure either enable_shared or enable_static is yes.
11477 test "$enable_shared" = yes || enable_static=yes
11478 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11479$as_echo "$enable_static" >&6; }
11480
11481
11482
11483
11484fi
11485ac_ext=c
11486ac_cpp='$CPP $CPPFLAGS'
11487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11489ac_compiler_gnu=$ac_cv_c_compiler_gnu
11490
11491CC="$lt_save_CC"
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505 ac_config_commands="$ac_config_commands libtool"
11506
11507
11508
11509
11510# Only expand once:
11511
11512
11513# By default we simply use the C compiler to build assembly code.
11514
11515test "${CCAS+set}" = set || CCAS=$CC
11516test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11517
11518
11519
11520depcc="$CCAS" am_compiler_list=
11521
11522{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11523$as_echo_n "checking dependency style of $depcc... " >&6; }
11524if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11525 $as_echo_n "(cached) " >&6
11526else
11527 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11528 # We make a subdir and do the tests there. Otherwise we can end up
11529 # making bogus files that we don't know about and never remove. For
11530 # instance it was reported that on HP-UX the gcc test will end up
11531 # making a dummy file named `D' -- because `-MD' means `put the output
11532 # in D'.
11533 mkdir conftest.dir
11534 # Copy depcomp to subdir because otherwise we won't find it if we're
11535 # using a relative directory.
11536 cp "$am_depcomp" conftest.dir
11537 cd conftest.dir
11538 # We will build objects and dependencies in a subdirectory because
11539 # it helps to detect inapplicable dependency modes. For instance
11540 # both Tru64's cc and ICC support -MD to output dependencies as a
11541 # side effect of compilation, but ICC will put the dependencies in
11542 # the current directory while Tru64 will put them in the object
11543 # directory.
11544 mkdir sub
11545
11546 am_cv_CCAS_dependencies_compiler_type=none
11547 if test "$am_compiler_list" = ""; then
11548 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11549 fi
11550 am__universal=false
11551
11552
11553 for depmode in $am_compiler_list; do
11554 # Setup a source with many dependencies, because some compilers
11555 # like to wrap large dependency lists on column 80 (with \), and
11556 # we should not choose a depcomp mode which is confused by this.
11557 #
11558 # We need to recreate these files for each test, as the compiler may
11559 # overwrite some of them when testing with obscure command lines.
11560 # This happens at least with the AIX C compiler.
11561 : > sub/conftest.c
11562 for i in 1 2 3 4 5 6; do
11563 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11564 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11565 # Solaris 8's {/usr,}/bin/sh.
11566 touch sub/conftst$i.h
11567 done
11568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11569
11570 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11571 # mode. It turns out that the SunPro C++ compiler does not properly
11572 # handle `-M -o', and we need to detect this. Also, some Intel
11573 # versions had trouble with output in subdirs
11574 am__obj=sub/conftest.${OBJEXT-o}
11575 am__minus_obj="-o $am__obj"
11576 case $depmode in
11577 gcc)
11578 # This depmode causes a compiler race in universal mode.
11579 test "$am__universal" = false || continue
11580 ;;
11581 nosideeffect)
11582 # after this tag, mechanisms are not by side-effect, so they'll
11583 # only be used when explicitly requested
11584 if test "x$enable_dependency_tracking" = xyes; then
11585 continue
11586 else
11587 break
11588 fi
11589 ;;
11590 msvisualcpp | msvcmsys)
11591 # This compiler won't grok `-c -o', but also, the minuso test has
11592 # not run yet. These depmodes are late enough in the game, and
11593 # so weak that their functioning should not be impacted.
11594 am__obj=conftest.${OBJEXT-o}
11595 am__minus_obj=
11596 ;;
11597 none) break ;;
11598 esac
11599 if depmode=$depmode \
11600 source=sub/conftest.c object=$am__obj \
11601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11603 >/dev/null 2>conftest.err &&
11604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11608 # icc doesn't choke on unknown options, it will just issue warnings
11609 # or remarks (even with -Werror). So we grep stderr for any message
11610 # that says an option was ignored or not supported.
11611 # When given -MP, icc 7.0 and 7.1 complain thusly:
11612 # icc: Command line warning: ignoring option '-M'; no argument required
11613 # The diagnosis changed in icc 8.0:
11614 # icc: Command line remark: option '-MP' not supported
11615 if (grep 'ignoring option' conftest.err ||
11616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11617 am_cv_CCAS_dependencies_compiler_type=$depmode
11618 break
11619 fi
11620 fi
11621 done
11622
11623 cd ..
11624 rm -rf conftest.dir
11625else
11626 am_cv_CCAS_dependencies_compiler_type=none
11627fi
11628
11629fi
11630{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11631$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11632CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
11633
11634 if
11635 test "x$enable_dependency_tracking" != xno \
11636 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
11637 am__fastdepCCAS_TRUE=
11638 am__fastdepCCAS_FALSE='#'
11639else
11640 am__fastdepCCAS_TRUE='#'
11641 am__fastdepCCAS_FALSE=
11642fi
11643
11644
11645
11646
11647 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11648$as_echo_n "checking zfs author... " >&6; }
11649 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11650$as_echo "$ZFS_META_AUTHOR" >&6; }
11651
11652 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11653$as_echo_n "checking zfs license... " >&6; }
11654 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11655$as_echo "$ZFS_META_LICENSE" >&6; }
11656
11657
11658
11659 RPM=rpm
11660 RPMBUILD=rpmbuild
11661
11662 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11663$as_echo_n "checking whether $RPM is available... " >&6; }
11664 if tmp=$($RPM --version 2>/dev/null); then
11665
11666 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11667 HAVE_RPM=yes
11668 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11669$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11670
11671else
11672
11673 HAVE_RPM=no
11674 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11675$as_echo "$HAVE_RPM" >&6; }
11676
11677fi
11678
11679
11680 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11681$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11682 if tmp=$($RPMBUILD --version 2>/dev/null); then
11683
11684 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11685 HAVE_RPMBUILD=yes
11686 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11687$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11688
11689else
11690
11691 HAVE_RPMBUILD=no
11692 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11693$as_echo "$HAVE_RPMBUILD" >&6; }
11694
11695fi
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707 DPKG=dpkg
11708 DPKGBUILD=dpkg-buildpackage
11709
11710 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11711$as_echo_n "checking whether $DPKG is available... " >&6; }
11712 if tmp=$($DPKG --version 2>/dev/null); then
11713
11714 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11715 HAVE_DPKG=yes
11716 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11717$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11718
11719else
11720
11721 HAVE_DPKG=no
11722 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11723$as_echo "$HAVE_DPKG" >&6; }
11724
11725fi
11726
11727
11728 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11729$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11730 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11731
11732 DPKGBUILD_VERSION=$(echo $tmp | \
11733 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11734 HAVE_DPKGBUILD=yes
11735 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11736$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11737
11738else
11739
11740 HAVE_DPKGBUILD=no
11741 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11742$as_echo "$HAVE_DPKGBUILD" >&6; }
11743
11744fi
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756 ALIEN=alien
11757
11758 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11759$as_echo_n "checking whether $ALIEN is available... " >&6; }
11760 if tmp=$($ALIEN --version 2>/dev/null); then
11761
11762 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11763 HAVE_ALIEN=yes
11764 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11765$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11766
11767else
11768
11769 HAVE_ALIEN=no
11770 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11771$as_echo "$HAVE_ALIEN" >&6; }
11772
11773fi
11774
11775
11776
11777
11778
11779
11780
11781 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11782$as_echo_n "checking linux distribution... " >&6; }
11783 if test -f /etc/redhat-release ; then
11784 VENDOR=redhat ;
11785 elif test -f /etc/fedora-release ; then
11786 VENDOR=fedora ;
e70e591c
BB
11787 elif test -f /etc/lsb-release ; then
11788 VENDOR=ubuntu ;
6283f55e
BB
11789 elif test -f /etc/debian_version ; then
11790 VENDOR=debian ;
e70e591c
BB
11791 elif test -f /etc/SuSE-release ; then
11792 VENDOR=sles ;
11793 elif test -f /etc/slackware-version ; then
11794 VENDOR=slackware ;
11795 elif test -f /etc/gentoo-release ; then
11796 VENDOR=gentoo ;
11797 else
11798 VENDOR= ;
11799 fi
11800 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11801$as_echo "$VENDOR" >&6; }
11802
11803
11804 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11805$as_echo_n "checking default package type... " >&6; }
11806 case "$VENDOR" in
11807 fedora) DEFAULT_PACKAGE=rpm ;;
11808 redhat) DEFAULT_PACKAGE=rpm ;;
11809 sles) DEFAULT_PACKAGE=rpm ;;
11810 ubuntu) DEFAULT_PACKAGE=deb ;;
11811 debian) DEFAULT_PACKAGE=deb ;;
11812 slackware) DEFAULT_PACKAGE=tgz ;;
11813 *) DEFAULT_PACKAGE=rpm ;;
11814 esac
11815
11816 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11817$as_echo "$DEFAULT_PACKAGE" >&6; }
11818
11819
11820
11821
e70e591c
BB
11822 TARGET_ASM_DIR=asm-generic
11823
11824
e70e591c
BB
11825 ZFS_CONFIG=all
11826
11827# Check whether --with-config was given.
11828if test "${with_config+set}" = set; then
11829 withval=$with_config; ZFS_CONFIG="$withval"
11830fi
11831
11832
11833 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11834$as_echo_n "checking zfs config... " >&6; }
11835 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11836$as_echo "$ZFS_CONFIG" >&6; };
11837
11838
11839 case "$ZFS_CONFIG" in
11840 kernel)
11841
11842
11843# Check whether --with-linux was given.
11844if test "${with_linux+set}" = set; then
11845 withval=$with_linux; kernelsrc="$withval"
11846fi
11847
11848
11849
11850# Check whether --with-linux-obj was given.
11851if test "${with_linux_obj+set}" = set; then
11852 withval=$with_linux_obj; kernelbuild="$withval"
11853fi
11854
11855
11856 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11857$as_echo_n "checking kernel source directory... " >&6; }
11858 if test -z "$kernelsrc"; then
1b94c25c
BB
11859 if test -e "/lib/modules/$(uname -r)/source"; then
11860 headersdir="/lib/modules/$(uname -r)/source"
11861 sourcelink=$(readlink -f "$headersdir")
11862 elif test -e "/lib/modules/$(uname -r)/build"; then
11863 headersdir="/lib/modules/$(uname -r)/build"
e70e591c
BB
11864 sourcelink=$(readlink -f "$headersdir")
11865 else
11866 sourcelink=$(ls -1d /usr/src/kernels/* \
11867 /usr/src/linux-* \
11868 2>/dev/null | grep -v obj | tail -1)
11869 fi
11870
11871 if test -n "$sourcelink" && test -e ${sourcelink}; then
11872 kernelsrc=`readlink -f ${sourcelink}`
11873 else
11874 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11875$as_echo "Not found" >&6; }
11876 { { $as_echo "$as_me:$LINENO: error:
11877 *** Please make sure the kernel devel package for your distribution
11878 *** is installed then try again. If that fails you can specify the
11879 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11880$as_echo "$as_me: error:
11881 *** Please make sure the kernel devel package for your distribution
11882 *** is installed then try again. If that fails you can specify the
11883 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11884 { (exit 1); exit 1; }; }
11885 fi
11886 else
11887 if test "$kernelsrc" = "NONE"; then
11888 kernsrcver=NONE
11889 fi
11890 fi
11891
11892 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11893$as_echo "$kernelsrc" >&6; }
11894 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11895$as_echo_n "checking kernel build directory... " >&6; }
11896 if test -z "$kernelbuild"; then
1b94c25c
BB
11897 if test -e "/lib/modules/$(uname -r)/build"; then
11898 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11899 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
e70e591c
BB
11900 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11901 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11902 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11903 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11904 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11905 else
11906 kernelbuild=${kernelsrc}
11907 fi
11908 fi
11909 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11910$as_echo "$kernelbuild" >&6; }
11911
11912 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11913$as_echo_n "checking kernel source version... " >&6; }
11914 utsrelease1=$kernelbuild/include/linux/version.h
11915 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11916 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11917 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11918 utsrelease=linux/version.h
11919 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11920 utsrelease=linux/utsrelease.h
11921 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11922 utsrelease=generated/utsrelease.h
11923 fi
11924
11925 if test "$utsrelease"; then
11926 kernsrcver=`(echo "#include <$utsrelease>";
11927 echo "kernsrcver=UTS_RELEASE") |
11928 cpp -I $kernelbuild/include |
11929 grep "^kernsrcver=" | cut -d \" -f 2`
11930
11931 if test -z "$kernsrcver"; then
11932 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11933$as_echo "Not found" >&6; }
11934 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11935$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11936 { (exit 1); exit 1; }; }
11937 fi
11938 else
11939 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11940$as_echo "Not found" >&6; }
11941 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11942$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11943 { (exit 1); exit 1; }; }
11944 fi
11945
11946 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11947$as_echo "$kernsrcver" >&6; }
11948
11949 LINUX=${kernelsrc}
11950 LINUX_OBJ=${kernelbuild}
11951 LINUX_VERSION=${kernsrcver}
11952
11953
11954
11955
11956
11957
11958 modpost=$LINUX/scripts/Makefile.modpost
11959 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11960$as_echo_n "checking kernel file name for module symbols... " >&6; }
11961 if test -f "$modpost"; then
11962 if grep -q Modules.symvers $modpost; then
11963 LINUX_SYMBOLS=Modules.symvers
11964 else
11965 LINUX_SYMBOLS=Module.symvers
11966 fi
11967 else
11968 LINUX_SYMBOLS=NONE
11969 fi
11970 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11971$as_echo "$LINUX_SYMBOLS" >&6; }
11972
11973
11974
11975
11976
11977# Check whether --with-spl was given.
11978if test "${with_spl+set}" = set; then
11979 withval=$with_spl; splsrc="$withval"
11980fi
11981
11982
11983
11984# Check whether --with-spl-obj was given.
11985if test "${with_spl_obj+set}" = set; then
11986 withval=$with_spl_obj; splbuild="$withval"
11987fi
11988
11989
11990
11991 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
11992$as_echo_n "checking spl source directory... " >&6; }
11993 if test -z "$splsrc"; then
11994 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
11995 2>/dev/null | tail -1`
11996
11997 if test -z "$sourcelink" || test ! -e $sourcelink; then
11998 sourcelink=../spl
11999 fi
12000
12001 if test -e $sourcelink; then
12002 splsrc=`readlink -f ${sourcelink}`
12003 else
12004 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12005$as_echo "Not found" >&6; }
12006 { { $as_echo "$as_me:$LINENO: error:
12007 *** Please make sure the spl devel package for your distribution
12008 *** is installed then try again. If that fails you can specify the
12009 *** location of the spl source with the '--with-spl=PATH' option." >&5
12010$as_echo "$as_me: error:
12011 *** Please make sure the spl devel package for your distribution
12012 *** is installed then try again. If that fails you can specify the
12013 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12014 { (exit 1); exit 1; }; }
12015 fi
12016 else
12017 if test "$splsrc" = "NONE"; then
12018 splbuild=NONE
12019 splsrcver=NONE
12020 fi
12021 fi
12022
12023 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12024$as_echo "$splsrc" >&6; }
12025 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12026$as_echo_n "checking spl build directory... " >&6; }
12027 if test -z "$splbuild"; then
6283f55e 12028 splbuild=${splsrc}
e70e591c
BB
12029 fi
12030 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12031$as_echo "$splbuild" >&6; }
12032
12033 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12034$as_echo_n "checking spl source version... " >&6; }
5e612145
BB
12035 if test -r $splbuild/spl_config.h &&
12036 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
e70e591c
BB
12037
12038 splsrcver=`(echo "#include <spl_config.h>";
12039 echo "splsrcver=SPL_META_VERSION") |
5e612145 12040 cpp -I $splbuild |
e70e591c
BB
12041 grep "^splsrcver=" | cut -d \" -f 2`
12042 fi
12043
12044 if test -z "$splsrcver"; then
12045 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12046$as_echo "Not found" >&6; }
12047 { { $as_echo "$as_me:$LINENO: error:
12048 *** Cannot determine the version of the spl source.
12049 *** Please prepare the spl source before running this script" >&5
12050$as_echo "$as_me: error:
12051 *** Cannot determine the version of the spl source.
12052 *** Please prepare the spl source before running this script" >&2;}
12053 { (exit 1); exit 1; }; }
12054 fi
12055
12056 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12057$as_echo "$splsrcver" >&6; }
12058
12059 SPL=${splsrc}
12060 SPL_OBJ=${splbuild}
12061 SPL_VERSION=${splsrcver}
12062
12063
12064
12065
12066
12067
12068 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12069$as_echo_n "checking spl file name for module symbols... " >&6; }
12070 if test -r $SPL_OBJ/Module.symvers; then
12071 SPL_SYMBOLS=Module.symvers
12072 elif test -r $SPL_OBJ/Modules.symvers; then
12073 SPL_SYMBOLS=Modules.symvers
6283f55e
BB
12074 elif test -r $SPL_OBJ/module/Module.symvers; then
12075 SPL_SYMBOLS=Module.symvers
12076 elif test -r $SPL_OBJ/module/Modules.symvers; then
12077 SPL_SYMBOLS=Modules.symvers
e70e591c
BB
12078 else
12079 SPL_SYMBOLS=$LINUX_SYMBOLS
12080 fi
12081
12082 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12083$as_echo "$SPL_SYMBOLS" >&6; }
12084
12085
12086
12087
12088
12089 if test "$ZFS_META_LICENSE" = CDDL; then
12090 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12091$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12092
12093
12094cat confdefs.h - <<_ACEOF >conftest.c
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100
12101
12102 #ifndef AUTOCONF_INCLUDED
12103 #include <linux/config.h>
12104 #endif
12105
12106int
12107main (void)
12108{
12109
12110 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12111 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12112 #endif
12113
12114 ;
12115 return 0;
12116}
12117
12118_ACEOF
12119
12120
12121 rm -Rf build && mkdir -p build
12122 echo "obj-m := conftest.o" >build/Makefile
12123 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134
12135 { $as_echo "$as_me:$LINENO: result: yes" >&5
12136$as_echo "yes" >&6; }
12137 { { $as_echo "$as_me:$LINENO: error:
12138 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12139 *** incompatible with the CDDL license. You must rebuild
12140 *** your kernel without this option." >&5
12141$as_echo "$as_me: error:
12142 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
12143 *** incompatible with the CDDL license. You must rebuild
12144 *** your kernel without this option." >&2;}
12145 { (exit 1); exit 1; }; }
12146
12147else
12148 $as_echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 { $as_echo "$as_me:$LINENO: result: no" >&5
12152$as_echo "no" >&6; }
12153
12154
12155
12156
12157fi
12158
12159 rm -Rf build
12160
12161
12162
12163 fi
12164
12165 if test "$ZFS_META_LICENSE" = GPL; then
12166
12167cat >>confdefs.h <<\_ACEOF
12168#define HAVE_GPL_ONLY_SYMBOLS 1
12169_ACEOF
12170
12171 fi
12172
12173
12174 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
12175$as_echo_n "checking block device operation prototypes... " >&6; }
12176
12177
12178cat confdefs.h - <<_ACEOF >conftest.c
12179/* confdefs.h. */
12180_ACEOF
12181cat confdefs.h >>conftest.$ac_ext
12182cat >>conftest.$ac_ext <<_ACEOF
12183/* end confdefs.h. */
12184
12185
12186 #include <linux/blkdev.h>
12187
12188int
12189main (void)
12190{
12191
12192 int (*blk_open) (struct block_device *, fmode_t) = NULL;
12193 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
12194 int (*blk_ioctl) (struct block_device *, fmode_t,
12195 unsigned, unsigned long) = NULL;
12196 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
12197 unsigned, unsigned long) = NULL;
12198 struct block_device_operations blk_ops = {
12199 .open = blk_open,
12200 .release = blk_release,
12201 .ioctl = blk_ioctl,
12202 .compat_ioctl = blk_compat_ioctl,
12203 };
12204
12205 blk_ops.open(NULL, 0);
12206 blk_ops.release(NULL, 0);
12207 blk_ops.ioctl(NULL, 0, 0, 0);
12208 blk_ops.compat_ioctl(NULL, 0, 0, 0);
12209
12210 ;
12211 return 0;
12212}
12213
12214_ACEOF
12215
12216
12217 rm -Rf build && mkdir -p build
12218 echo "obj-m := conftest.o" >build/Makefile
12219 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12222 ac_status=$?
12223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230
12231 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
12232$as_echo "struct block_device" >&6; }
12233
12234cat >>confdefs.h <<\_ACEOF
12235#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
12236_ACEOF
12237
12238
12239else
12240 $as_echo "$as_me: failed program was:" >&5
12241sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
12244$as_echo "struct inode" >&6; }
12245
12246
12247
12248fi
12249
12250 rm -Rf build
12251
12252
12253
12254 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
12255$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
12256
12257
12258cat confdefs.h - <<_ACEOF >conftest.c
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264
12265
12266 #include <linux/types.h>
12267
12268int
12269main (void)
12270{
12271
12272 fmode_t *ptr;
12273
12274 ;
12275 return 0;
12276}
12277
12278_ACEOF
12279
12280
12281 rm -Rf build && mkdir -p build
12282 echo "obj-m := conftest.o" >build/Makefile
12283 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294
12295 { $as_echo "$as_me:$LINENO: result: yes" >&5
12296$as_echo "yes" >&6; }
12297
12298cat >>confdefs.h <<\_ACEOF
12299#define HAVE_FMODE_T 1
12300_ACEOF
12301
12302
12303else
12304 $as_echo "$as_me: failed program was:" >&5
12305sed 's/^/| /' conftest.$ac_ext >&5
12306
12307 { $as_echo "$as_me:$LINENO: result: no" >&5
12308$as_echo "no" >&6; }
12309
12310
12311
12312fi
12313
12314 rm -Rf build
12315
12316
12317
12318
12319 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
12320$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12321
12322
12323cat confdefs.h - <<_ACEOF >conftest.c
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
12329
12330
12331 #include <linux/kobject.h>
12332
12333int
12334main (void)
12335{
12336
12337 int val;
12338 val = KOBJ_NAME_LEN;
12339
12340 ;
12341 return 0;
12342}
12343
12344_ACEOF
12345
12346
12347 rm -Rf build && mkdir -p build
12348 echo "obj-m := conftest.o" >build/Makefile
12349 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360
12361 { $as_echo "$as_me:$LINENO: result: yes" >&5
12362$as_echo "yes" >&6; }
12363
12364cat >>confdefs.h <<\_ACEOF
12365#define HAVE_KOBJ_NAME_LEN 1
12366_ACEOF
12367
12368
12369else
12370 $as_echo "$as_me: failed program was:" >&5
12371sed 's/^/| /' conftest.$ac_ext >&5
12372
12373 { $as_echo "$as_me:$LINENO: result: no" >&5
12374$as_echo "no" >&6; }
12375
12376
12377
12378fi
12379
12380 rm -Rf build
12381
12382
12383
12384
12385 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
12386$as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
12387 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12388 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
12389 rc=$?
12390 if test $rc -ne 0; then
12391 export=0
12392 for file in fs/block_dev.c; do
12393 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
12394 rc=$?
12395 if test $rc -eq 0; then
12396 export=1
12397 break;
12398 fi
12399 done
12400 if test $export -eq 0; then
12401 { $as_echo "$as_me:$LINENO: result: no" >&5
12402$as_echo "no" >&6; }
12403
12404 else
12405 { $as_echo "$as_me:$LINENO: result: yes" >&5
12406$as_echo "yes" >&6; }
12407
12408cat >>confdefs.h <<\_ACEOF
12409#define HAVE_OPEN_BDEV_EXCLUSIVE 1
12410_ACEOF
12411
12412 fi
12413 else
12414 { $as_echo "$as_me:$LINENO: result: yes" >&5
12415$as_echo "yes" >&6; }
12416
12417cat >>confdefs.h <<\_ACEOF
12418#define HAVE_OPEN_BDEV_EXCLUSIVE 1
12419_ACEOF
12420
12421 fi
12422
12423
12424
12425 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
12426$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12427
12428
12429cat confdefs.h - <<_ACEOF >conftest.c
12430/* confdefs.h. */
12431_ACEOF
12432cat confdefs.h >>conftest.$ac_ext
12433cat >>conftest.$ac_ext <<_ACEOF
12434/* end confdefs.h. */
12435
12436
12437 #include <linux/buffer_head.h>
12438
12439int
12440main (void)
12441{
12442
12443 struct block_device *bdev;
12444 invalidate_bdev(bdev);
12445
12446 ;
12447 return 0;
12448}
12449
12450_ACEOF
12451
12452
12453 rm -Rf build && mkdir -p build
12454 echo "obj-m := conftest.o" >build/Makefile
12455 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466
12467 { $as_echo "$as_me:$LINENO: result: yes" >&5
12468$as_echo "yes" >&6; }
12469
12470cat >>confdefs.h <<\_ACEOF
12471#define HAVE_1ARG_INVALIDATE_BDEV 1
12472_ACEOF
12473
12474
12475else
12476 $as_echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 { $as_echo "$as_me:$LINENO: result: no" >&5
12480$as_echo "no" >&6; }
12481
12482
12483
12484fi
12485
12486 rm -Rf build
12487
12488
12489
12490
12491 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
12492$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12493
12494
12495cat confdefs.h - <<_ACEOF >conftest.c
12496/* confdefs.h. */
12497_ACEOF
12498cat confdefs.h >>conftest.$ac_ext
12499cat >>conftest.$ac_ext <<_ACEOF
12500/* end confdefs.h. */
12501
12502
12503 #include <linux/blkdev.h>
12504
12505int
12506main (void)
12507{
12508
12509 struct block_device *bdev = NULL;
12510 bdev_logical_block_size(bdev);
12511
12512 ;
12513 return 0;
12514}
12515
12516_ACEOF
12517
12518
12519 rm -Rf build && mkdir -p build
12520 echo "obj-m := conftest.o" >build/Makefile
12521 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12524 ac_status=$?
12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12528 (eval $ac_try) 2>&5
12529 ac_status=$?
12530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532
12533 { $as_echo "$as_me:$LINENO: result: yes" >&5
12534$as_echo "yes" >&6; }
12535
12536cat >>confdefs.h <<\_ACEOF
12537#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
12538_ACEOF
12539
12540
12541else
12542 $as_echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
12545 { $as_echo "$as_me:$LINENO: result: no" >&5
12546$as_echo "no" >&6; }
12547
12548
12549
12550fi
12551
12552 rm -Rf build
12553
12554
12555
12556
12557 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
12558$as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
12559 EXTRA_KCFLAGS="-Werror"
12560
12561
12562cat confdefs.h - <<_ACEOF >conftest.c
12563/* confdefs.h. */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h. */
12568
12569
12570 #include <linux/bio.h>
12571
12572int
12573main (void)
12574{
12575
12576 struct bio bio;
12577 (void)bio_empty_barrier(&bio);
12578
12579 ;
12580 return 0;
12581}
12582
12583_ACEOF
12584
12585
12586 rm -Rf build && mkdir -p build
12587 echo "obj-m := conftest.o" >build/Makefile
12588 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590 (eval $ac_try) 2>&5
12591 ac_status=$?
12592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599
12600 { $as_echo "$as_me:$LINENO: result: yes" >&5
12601$as_echo "yes" >&6; }
12602
12603cat >>confdefs.h <<\_ACEOF
12604#define HAVE_BIO_EMPTY_BARRIER 1
12605_ACEOF
12606
12607
12608else
12609 $as_echo "$as_me: failed program was:" >&5
12610sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 { $as_echo "$as_me:$LINENO: result: no" >&5
12613$as_echo "no" >&6; }
12614
12615
12616
12617fi
12618
12619 rm -Rf build
12620
12621
12622
12623
f4af6bb7
BB
12624 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
12625$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12626
12627
12628cat confdefs.h - <<_ACEOF >conftest.c
12629/* confdefs.h. */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h. */
12634
12635
12636 #include <linux/bio.h>
12637
12638int
12639main (void)
12640{
12641
12642 int flags;
12643 flags = (1 << BIO_RW_FAILFAST);
12644
12645 ;
12646 return 0;
12647}
12648
12649_ACEOF
12650
12651
12652 rm -Rf build && mkdir -p build
12653 echo "obj-m := conftest.o" >build/Makefile
12654 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665
12666 { $as_echo "$as_me:$LINENO: result: yes" >&5
12667$as_echo "yes" >&6; }
12668
12669cat >>confdefs.h <<\_ACEOF
12670#define HAVE_BIO_RW_FAILFAST 1
12671_ACEOF
12672
12673
12674else
12675 $as_echo "$as_me: failed program was:" >&5
12676sed 's/^/| /' conftest.$ac_ext >&5
12677
12678 { $as_echo "$as_me:$LINENO: result: no" >&5
12679$as_echo "no" >&6; }
12680
12681
12682
12683fi
12684
12685 rm -Rf build
12686
12687
12688
12689
2959d94a
BB
12690 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
12691$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12692
12693
12694cat confdefs.h - <<_ACEOF >conftest.c
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h. */
12700
12701
12702 #include <linux/bio.h>
12703
12704int
12705main (void)
12706{
12707
12708 int flags;
12709 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12710 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12711 (1 << BIO_RW_FAILFAST_DRIVER));
12712
12713 ;
12714 return 0;
12715}
12716
12717_ACEOF
12718
12719
12720 rm -Rf build && mkdir -p build
12721 echo "obj-m := conftest.o" >build/Makefile
12722 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724 (eval $ac_try) 2>&5
12725 ac_status=$?
12726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733
12734 { $as_echo "$as_me:$LINENO: result: yes" >&5
12735$as_echo "yes" >&6; }
12736
12737cat >>confdefs.h <<\_ACEOF
f4af6bb7
BB
12738#define HAVE_BIO_RW_FAILFAST_DTD 1
12739_ACEOF
12740
12741
12742else
12743 $as_echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
12746 { $as_echo "$as_me:$LINENO: result: no" >&5
12747$as_echo "no" >&6; }
12748
12749
12750
12751fi
12752
12753 rm -Rf build
12754
12755
12756
12757
12758 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
12759$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12760
12761
12762cat confdefs.h - <<_ACEOF >conftest.c
12763/* confdefs.h. */
12764_ACEOF
12765cat confdefs.h >>conftest.$ac_ext
12766cat >>conftest.$ac_ext <<_ACEOF
12767/* end confdefs.h. */
12768
12769
12770 #include <linux/bio.h>
12771
12772int
12773main (void)
12774{
12775
12776 int flags;
12777 flags = REQ_FAILFAST_MASK;
12778
12779 ;
12780 return 0;
12781}
12782
12783_ACEOF
12784
12785
12786 rm -Rf build && mkdir -p build
12787 echo "obj-m := conftest.o" >build/Makefile
12788 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12791 ac_status=$?
12792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799
12800 { $as_echo "$as_me:$LINENO: result: yes" >&5
12801$as_echo "yes" >&6; }
12802
12803cat >>confdefs.h <<\_ACEOF
12804#define HAVE_BIO_REQ_FAILFAST_MASK 1
2959d94a
BB
12805_ACEOF
12806
12807
12808else
12809 $as_echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 { $as_echo "$as_me:$LINENO: result: no" >&5
12813$as_echo "no" >&6; }
12814
12815
12816
12817fi
12818
12819 rm -Rf build
12820
12821
12822
12823
e70e591c
BB
12824 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
12825$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12826 tmp_flags="$EXTRA_KCFLAGS"
12827 EXTRA_KCFLAGS="-Werror"
12828
12829
12830cat confdefs.h - <<_ACEOF >conftest.c
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
12836
12837
12838 #include <linux/bio.h>
12839
12840int
12841main (void)
12842{
12843
12844 void (*wanted_end_io)(struct bio *, int) = NULL;
12845 bio_end_io_t *local_end_io;
12846
12847 local_end_io = wanted_end_io;
12848
12849 ;
12850 return 0;
12851}
12852
12853_ACEOF
12854
12855
12856 rm -Rf build && mkdir -p build
12857 echo "obj-m := conftest.o" >build/Makefile
12858 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869
12870 { $as_echo "$as_me:$LINENO: result: yes" >&5
12871$as_echo "yes" >&6; }
12872
12873cat >>confdefs.h <<\_ACEOF
12874#define HAVE_2ARGS_BIO_END_IO_T 1
12875_ACEOF
12876
12877
12878else
12879 $as_echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882 { $as_echo "$as_me:$LINENO: result: no" >&5
12883$as_echo "no" >&6; }
12884
12885
12886
12887fi
12888
12889 rm -Rf build
12890
12891
12892 EXTRA_KCFLAGS="$tmp_flags"
12893
12894
675de5aa
BB
12895 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
12896$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
12897
12898
12899cat confdefs.h - <<_ACEOF >conftest.c
12900/* confdefs.h. */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h. */
12905
12906
12907 #include <linux/bio.h>
12908
12909int
12910main (void)
12911{
12912
12913 int flags;
12914 flags = BIO_RW_SYNC;
12915
12916 ;
12917 return 0;
12918}
12919
12920_ACEOF
12921
12922
12923 rm -Rf build && mkdir -p build
12924 echo "obj-m := conftest.o" >build/Makefile
12925 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936
12937 { $as_echo "$as_me:$LINENO: result: yes" >&5
12938$as_echo "yes" >&6; }
12939
12940cat >>confdefs.h <<\_ACEOF
12941#define HAVE_BIO_RW_SYNC 1
12942_ACEOF
12943
12944
12945else
12946 $as_echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 { $as_echo "$as_me:$LINENO: result: no" >&5
12950$as_echo "no" >&6; }
12951
12952
12953
12954fi
12955
12956 rm -Rf build
12957
12958
12959
12960
e70e591c
BB
12961 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
12962$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
12963
12964
12965cat confdefs.h - <<_ACEOF >conftest.c
12966/* confdefs.h. */
12967_ACEOF
12968cat confdefs.h >>conftest.$ac_ext
12969cat >>conftest.$ac_ext <<_ACEOF
12970/* end confdefs.h. */
12971
12972
12973 #include <linux/bio.h>
12974
12975int
12976main (void)
12977{
12978
12979 int flags;
12980 flags = BIO_RW_SYNCIO;
12981
12982 ;
12983 return 0;
12984}
12985
12986_ACEOF
12987
12988
12989 rm -Rf build && mkdir -p build
12990 echo "obj-m := conftest.o" >build/Makefile
12991 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002
13003 { $as_echo "$as_me:$LINENO: result: yes" >&5
13004$as_echo "yes" >&6; }
13005
13006cat >>confdefs.h <<\_ACEOF
13007#define HAVE_BIO_RW_SYNCIO 1
13008_ACEOF
13009
13010
13011else
13012 $as_echo "$as_me: failed program was:" >&5
13013sed 's/^/| /' conftest.$ac_ext >&5
13014
13015 { $as_echo "$as_me:$LINENO: result: no" >&5
13016$as_echo "no" >&6; }
13017
13018
13019
13020fi
13021
13022 rm -Rf build
13023
13024
13025
13026
675de5aa
BB
13027 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
13028$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
13029
13030
13031cat confdefs.h - <<_ACEOF >conftest.c
13032/* confdefs.h. */
13033_ACEOF
13034cat confdefs.h >>conftest.$ac_ext
13035cat >>conftest.$ac_ext <<_ACEOF
13036/* end confdefs.h. */
13037
13038
13039 #include <linux/bio.h>
13040
13041int
13042main (void)
13043{
13044
13045 int flags;
13046 flags = REQ_SYNC;
13047
13048 ;
13049 return 0;
13050}
13051
13052_ACEOF
13053
13054
13055 rm -Rf build && mkdir -p build
13056 echo "obj-m := conftest.o" >build/Makefile
13057 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13065 ac_status=$?
13066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; }; then
13068
13069 { $as_echo "$as_me:$LINENO: result: yes" >&5
13070$as_echo "yes" >&6; }
13071
13072cat >>confdefs.h <<\_ACEOF
13073#define HAVE_REQ_SYNC 1
13074_ACEOF
13075
13076
13077else
13078 $as_echo "$as_me: failed program was:" >&5
13079sed 's/^/| /' conftest.$ac_ext >&5
13080
13081 { $as_echo "$as_me:$LINENO: result: no" >&5
13082$as_echo "no" >&6; }
13083
13084
13085
13086fi
13087
13088 rm -Rf build
13089
13090
13091
13092
e70e591c
BB
13093 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
13094$as_echo_n "checking whether blk_end_request() is available... " >&6; }
13095
13096
13097cat confdefs.h - <<_ACEOF >conftest.c
13098/* confdefs.h. */
13099_ACEOF
13100cat confdefs.h >>conftest.$ac_ext
13101cat >>conftest.$ac_ext <<_ACEOF
13102/* end confdefs.h. */
13103
13104
13105 #include <linux/blkdev.h>
13106
13107int
13108main (void)
13109{
13110
13111 struct request *req = NULL;
13112 (void) blk_end_request(req, 0, 0);
13113
13114 ;
13115 return 0;
13116}
13117
13118_ACEOF
13119
13120
13121 rm -Rf build && mkdir -p build
13122 echo "obj-m := conftest.o" >build/Makefile
13123 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13126 ac_status=$?
13127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13130 (eval $ac_try) 2>&5
13131 ac_status=$?
13132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); }; }; then
13134
13135 { $as_echo "$as_me:$LINENO: result: yes" >&5
13136$as_echo "yes" >&6; }
13137
13138cat >>confdefs.h <<\_ACEOF
13139#define HAVE_BLK_END_REQUEST 1
13140_ACEOF
13141
13142
13143else
13144 $as_echo "$as_me: failed program was:" >&5
13145sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 { $as_echo "$as_me:$LINENO: result: no" >&5
13148$as_echo "no" >&6; }
13149
13150
13151
13152fi
13153
13154 rm -Rf build
13155
13156
13157
13158 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
13159$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13160
13161
13162cat confdefs.h - <<_ACEOF >conftest.c
13163/* confdefs.h. */
13164_ACEOF
13165cat confdefs.h >>conftest.$ac_ext
13166cat >>conftest.$ac_ext <<_ACEOF
13167/* end confdefs.h. */
13168
13169
13170 #include <linux/module.h>
13171 #include <linux/blkdev.h>
13172
13173 MODULE_LICENSE("CDDL");
13174
13175int
13176main (void)
13177{
13178
13179 struct request *req = NULL;
13180 (void) blk_end_request(req, 0, 0);
13181
13182 ;
13183 return 0;
13184}
13185
13186_ACEOF
13187
13188
13189 rm -Rf build && mkdir -p build
13190 echo "obj-m := conftest.o" >build/Makefile
13191 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198 (eval $ac_try) 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); }; }; then
13202
13203 { $as_echo "$as_me:$LINENO: result: no" >&5
13204$as_echo "no" >&6; }
13205
13206else
13207 $as_echo "$as_me: failed program was:" >&5
13208sed 's/^/| /' conftest.$ac_ext >&5
13209
13210 { $as_echo "$as_me:$LINENO: result: yes" >&5
13211$as_echo "yes" >&6; }
13212
13213cat >>confdefs.h <<\_ACEOF
13214#define HAVE_BLK_END_REQUEST_GPL_ONLY 1
13215_ACEOF
13216
13217
13218
13219
13220fi
13221
13222 rm -Rf build
13223
13224
13225
13226
13227 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
13228$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13229
13230
13231cat confdefs.h - <<_ACEOF >conftest.c
13232/* confdefs.h. */
13233_ACEOF
13234cat confdefs.h >>conftest.$ac_ext
13235cat >>conftest.$ac_ext <<_ACEOF
13236/* end confdefs.h. */
13237
13238
13239 #include <linux/blkdev.h>
13240
13241int
13242main (void)
13243{
13244
13245 struct request_queue *q = NULL;
13246 (void) blk_fetch_request(q);
13247
13248 ;
13249 return 0;
13250}
13251
13252_ACEOF
13253
13254
13255 rm -Rf build && mkdir -p build
13256 echo "obj-m := conftest.o" >build/Makefile
13257 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268
13269 { $as_echo "$as_me:$LINENO: result: yes" >&5
13270$as_echo "yes" >&6; }
13271
13272cat >>confdefs.h <<\_ACEOF
13273#define HAVE_BLK_FETCH_REQUEST 1
13274_ACEOF
13275
13276
13277else
13278 $as_echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 { $as_echo "$as_me:$LINENO: result: no" >&5
13282$as_echo "no" >&6; }
13283
13284
13285
13286fi
13287
13288 rm -Rf build
13289
13290
13291
13292
13293 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
13294$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13295
13296
13297cat confdefs.h - <<_ACEOF >conftest.c
13298/* confdefs.h. */
13299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
13302/* end confdefs.h. */
13303
13304
13305 #include <linux/blkdev.h>
13306
13307int
13308main (void)
13309{
13310
13311 struct request_queue *q = NULL;
13312 struct request *req = NULL;
13313 blk_requeue_request(q, req);
13314
13315 ;
13316 return 0;
13317}
13318
13319_ACEOF
13320
13321
13322 rm -Rf build && mkdir -p build
13323 echo "obj-m := conftest.o" >build/Makefile
13324 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13327 ac_status=$?
13328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335
13336 { $as_echo "$as_me:$LINENO: result: yes" >&5
13337$as_echo "yes" >&6; }
13338
13339cat >>confdefs.h <<\_ACEOF
13340#define HAVE_BLK_REQUEUE_REQUEST 1
13341_ACEOF
13342
13343
13344else
13345 $as_echo "$as_me: failed program was:" >&5
13346sed 's/^/| /' conftest.$ac_ext >&5
13347
13348 { $as_echo "$as_me:$LINENO: result: no" >&5
13349$as_echo "no" >&6; }
13350
13351
13352
13353fi
13354
13355 rm -Rf build
13356
13357
13358
13359
13360 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
13361$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13362
13363
13364cat confdefs.h - <<_ACEOF >conftest.c
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
13370
13371
13372 #include <linux/blkdev.h>
13373
13374int
13375main (void)
13376{
13377
13378 struct request *req = NULL;
13379 (void) blk_rq_bytes(req);
13380
13381 ;
13382 return 0;
13383}
13384
13385_ACEOF
13386
13387
13388 rm -Rf build && mkdir -p build
13389 echo "obj-m := conftest.o" >build/Makefile
13390 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392 (eval $ac_try) 2>&5
13393 ac_status=$?
13394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401
13402 { $as_echo "$as_me:$LINENO: result: yes" >&5
13403$as_echo "yes" >&6; }
13404
13405cat >>confdefs.h <<\_ACEOF
13406#define HAVE_BLK_RQ_BYTES 1
13407_ACEOF
13408
13409
13410else
13411 $as_echo "$as_me: failed program was:" >&5
13412sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 { $as_echo "$as_me:$LINENO: result: no" >&5
13415$as_echo "no" >&6; }
13416
13417
13418
13419fi
13420
13421 rm -Rf build
13422
13423
13424
13425 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
13426$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13427
13428
13429cat confdefs.h - <<_ACEOF >conftest.c
13430/* confdefs.h. */
13431_ACEOF
13432cat confdefs.h >>conftest.$ac_ext
13433cat >>conftest.$ac_ext <<_ACEOF
13434/* end confdefs.h. */
13435
13436
13437 #include <linux/module.h>
13438 #include <linux/blkdev.h>
13439
13440 MODULE_LICENSE("CDDL");
13441
13442int
13443main (void)
13444{
13445
13446 struct request *req = NULL;
13447 (void) blk_rq_bytes(req);
13448
13449 ;
13450 return 0;
13451}
13452
13453_ACEOF
13454
13455
13456 rm -Rf build && mkdir -p build
13457 echo "obj-m := conftest.o" >build/Makefile
13458 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13461 ac_status=$?
13462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13469
13470 { $as_echo "$as_me:$LINENO: result: no" >&5
13471$as_echo "no" >&6; }
13472
13473else
13474 $as_echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 { $as_echo "$as_me:$LINENO: result: yes" >&5
13478$as_echo "yes" >&6; }
13479
13480cat >>confdefs.h <<\_ACEOF
13481#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
13482_ACEOF
13483
13484
13485
13486
13487fi
13488
13489 rm -Rf build
13490
13491
13492
13493
13494 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
13495$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13496
13497
13498cat confdefs.h - <<_ACEOF >conftest.c
13499/* confdefs.h. */
13500_ACEOF
13501cat confdefs.h >>conftest.$ac_ext
13502cat >>conftest.$ac_ext <<_ACEOF
13503/* end confdefs.h. */
13504
13505
13506 #include <linux/blkdev.h>
13507
13508int
13509main (void)
13510{
13511
13512 struct request *req = NULL;
13513 (void) blk_rq_pos(req);
13514
13515 ;
13516 return 0;
13517}
13518
13519_ACEOF
13520
13521
13522 rm -Rf build && mkdir -p build
13523 echo "obj-m := conftest.o" >build/Makefile
13524 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535
13536 { $as_echo "$as_me:$LINENO: result: yes" >&5
13537$as_echo "yes" >&6; }
13538
13539cat >>confdefs.h <<\_ACEOF
13540#define HAVE_BLK_RQ_POS 1
13541_ACEOF
13542
13543
13544else
13545 $as_echo "$as_me: failed program was:" >&5
13546sed 's/^/| /' conftest.$ac_ext >&5
13547
13548 { $as_echo "$as_me:$LINENO: result: no" >&5
13549$as_echo "no" >&6; }
13550
13551
13552
13553fi
13554
13555 rm -Rf build
13556
13557
13558
13559
13560 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
13561$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13562
13563
13564cat confdefs.h - <<_ACEOF >conftest.c
13565/* confdefs.h. */
13566_ACEOF
13567cat confdefs.h >>conftest.$ac_ext
13568cat >>conftest.$ac_ext <<_ACEOF
13569/* end confdefs.h. */
13570
13571
13572 #include <linux/blkdev.h>
13573
13574int
13575main (void)
13576{
13577
13578 struct request *req = NULL;
13579 (void) blk_rq_sectors(req);
13580
13581 ;
13582 return 0;
13583}
13584
13585_ACEOF
13586
13587
13588 rm -Rf build && mkdir -p build
13589 echo "obj-m := conftest.o" >build/Makefile
13590 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601
13602 { $as_echo "$as_me:$LINENO: result: yes" >&5
13603$as_echo "yes" >&6; }
13604
13605cat >>confdefs.h <<\_ACEOF
13606#define HAVE_BLK_RQ_SECTORS 1
13607_ACEOF
13608
13609
13610else
13611 $as_echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
13614 { $as_echo "$as_me:$LINENO: result: no" >&5
13615$as_echo "no" >&6; }
13616
13617
13618
13619fi
13620
13621 rm -Rf build
13622
13623
13624
13625
13626 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
13627$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
13628
13629
13630cat confdefs.h - <<_ACEOF >conftest.c
13631/* confdefs.h. */
13632_ACEOF
13633cat confdefs.h >>conftest.$ac_ext
13634cat >>conftest.$ac_ext <<_ACEOF
13635/* end confdefs.h. */
13636
13637
13638 #include <linux/blkdev.h>
13639
13640int
13641main (void)
13642{
13643
13644 struct gendisk *disk = NULL;
13645 (void) get_disk_ro(disk);
13646
13647 ;
13648 return 0;
13649}
13650
13651_ACEOF
13652
13653
13654 rm -Rf build && mkdir -p build
13655 echo "obj-m := conftest.o" >build/Makefile
13656 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13659 ac_status=$?
13660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667
13668 { $as_echo "$as_me:$LINENO: result: yes" >&5
13669$as_echo "yes" >&6; }
13670
13671cat >>confdefs.h <<\_ACEOF
13672#define HAVE_GET_DISK_RO 1
13673_ACEOF
13674
13675
13676else
13677 $as_echo "$as_me: failed program was:" >&5
13678sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 { $as_echo "$as_me:$LINENO: result: no" >&5
13681$as_echo "no" >&6; }
13682
13683
13684
13685fi
13686
13687 rm -Rf build
13688
13689
13690
13691
13692 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
13693$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
13694
13695
13696cat confdefs.h - <<_ACEOF >conftest.c
13697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
13702
13703
13704 #include <linux/blkdev.h>
13705
13706int
13707main (void)
13708{
13709
13710 struct request *req = NULL;
13711 (void) rq_is_sync(req);
13712
13713 ;
13714 return 0;
13715}
13716
13717_ACEOF
13718
13719
13720 rm -Rf build && mkdir -p build
13721 echo "obj-m := conftest.o" >build/Makefile
13722 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733
13734 { $as_echo "$as_me:$LINENO: result: yes" >&5
13735$as_echo "yes" >&6; }
13736
13737cat >>confdefs.h <<\_ACEOF
13738#define HAVE_RQ_IS_SYNC 1
13739_ACEOF
13740
13741
13742else
13743 $as_echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746 { $as_echo "$as_me:$LINENO: result: no" >&5
13747$as_echo "no" >&6; }
13748
13749
13750
13751fi
13752
13753 rm -Rf build
13754
13755
13756
13757
13758 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
13759$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
13760
13761
13762cat confdefs.h - <<_ACEOF >conftest.c
13763/* confdefs.h. */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h. */
13768
13769
13770 #include <linux/blkdev.h>
13771
13772int
13773main (void)
13774{
13775
13776 struct bio_vec *bv;
13777 struct req_iterator iter;
13778 struct request *req = NULL;
13779 rq_for_each_segment(bv, req, iter) { }
13780
13781 ;
13782 return 0;
13783}
13784
13785_ACEOF
13786
13787
13788 rm -Rf build && mkdir -p build
13789 echo "obj-m := conftest.o" >build/Makefile
13790 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13798 ac_status=$?
13799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; }; then
13801
13802 { $as_echo "$as_me:$LINENO: result: yes" >&5
13803$as_echo "yes" >&6; }
13804
13805cat >>confdefs.h <<\_ACEOF
13806#define HAVE_RQ_FOR_EACH_SEGMENT 1
13807_ACEOF
13808
13809
13810else
13811 $as_echo "$as_me: failed program was:" >&5
13812sed 's/^/| /' conftest.$ac_ext >&5
13813
13814 { $as_echo "$as_me:$LINENO: result: no" >&5
13815$as_echo "no" >&6; }
13816
13817
13818
777d4af8
BB
13819fi
13820
13821 rm -Rf build
13822
13823
13824
13825 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
13826$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
13827
13828
13829cat confdefs.h - <<_ACEOF >conftest.c
13830/* confdefs.h. */
13831_ACEOF
13832cat confdefs.h >>conftest.$ac_ext
13833cat >>conftest.$ac_ext <<_ACEOF
13834/* end confdefs.h. */
13835
13836
13837 #include <linux/fs.h>
13838 #include <linux/xattr.h>
13839
13840 const struct xattr_handler xattr_test_handler = {
13841 .prefix = "test",
13842 .get = NULL,
13843 .set = NULL,
13844 };
13845
13846 const struct xattr_handler *xattr_handlers[] = {
13847 &xattr_test_handler,
13848 };
13849
13850int
13851main (void)
13852{
13853
13854 struct super_block sb;
13855
13856 sb.s_xattr = xattr_handlers;
13857
13858 ;
13859 return 0;
13860}
13861
13862_ACEOF
13863
13864
13865 rm -Rf build && mkdir -p build
13866 echo "obj-m := conftest.o" >build/Makefile
13867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878
13879 { $as_echo "$as_me:$LINENO: result: yes" >&5
13880$as_echo "yes" >&6; }
13881
13882cat >>confdefs.h <<\_ACEOF
13883#define HAVE_CONST_XATTR_HANDLER 1
13884_ACEOF
13885
13886
13887else
13888 $as_echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
13891 { $as_echo "$as_me:$LINENO: result: no" >&5
13892$as_echo "no" >&6; }
13893
13894
13895
e70e591c
BB
13896fi
13897
13898 rm -Rf build
13899
13900
13901
13902
f9637c6c
BB
13903 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
13904$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
13905
13906
13907cat confdefs.h - <<_ACEOF >conftest.c
13908/* confdefs.h. */
13909_ACEOF
13910cat confdefs.h >>conftest.$ac_ext
13911cat >>conftest.$ac_ext <<_ACEOF
13912/* end confdefs.h. */
13913
13914
13915 #include <linux/xattr.h>
13916
13917int
13918main (void)
13919{
13920
13921 int (*get)(struct dentry *dentry, const char *name,
13922 void *buffer, size_t size, int handler_flags) = NULL;
13923 struct xattr_handler xops;
13924
13925 xops.get = get;
13926
13927 ;
13928 return 0;
13929}
13930
13931_ACEOF
13932
13933
13934 rm -Rf build && mkdir -p build
13935 echo "obj-m := conftest.o" >build/Makefile
13936 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947
13948 { $as_echo "$as_me:$LINENO: result: yes" >&5
13949$as_echo "yes" >&6; }
13950
13951cat >>confdefs.h <<\_ACEOF
13952#define HAVE_DENTRY_XATTR_GET 1
13953_ACEOF
13954
13955
13956else
13957 $as_echo "$as_me: failed program was:" >&5
13958sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 { $as_echo "$as_me:$LINENO: result: no" >&5
13961$as_echo "no" >&6; }
13962
13963
13964
13965fi
13966
13967 rm -Rf build
13968
13969
13970
13971
13972 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
13973$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
13974
13975
13976cat confdefs.h - <<_ACEOF >conftest.c
13977/* confdefs.h. */
13978_ACEOF
13979cat confdefs.h >>conftest.$ac_ext
13980cat >>conftest.$ac_ext <<_ACEOF
13981/* end confdefs.h. */
13982
13983
13984 #include <linux/xattr.h>
13985
13986int
13987main (void)
13988{
13989
13990 int (*set)(struct dentry *dentry, const char *name,
13991 const void *buffer, size_t size, int flags,
13992 int handler_flags) = NULL;
13993 struct xattr_handler xops;
13994
13995 xops.set = set;
13996
13997 ;
13998 return 0;
13999}
14000
14001_ACEOF
14002
14003
14004 rm -Rf build && mkdir -p build
14005 echo "obj-m := conftest.o" >build/Makefile
14006 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008 (eval $ac_try) 2>&5
14009 ac_status=$?
14010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017
14018 { $as_echo "$as_me:$LINENO: result: yes" >&5
14019$as_echo "yes" >&6; }
14020
14021cat >>confdefs.h <<\_ACEOF
14022#define HAVE_DENTRY_XATTR_SET 1
14023_ACEOF
14024
14025
14026else
14027 $as_echo "$as_me: failed program was:" >&5
14028sed 's/^/| /' conftest.$ac_ext >&5
14029
14030 { $as_echo "$as_me:$LINENO: result: no" >&5
14031$as_echo "no" >&6; }
14032
14033
14034
14035fi
14036
14037 rm -Rf build
14038
14039
14040
14041
7268e1be
BB
14042 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
14043$as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
14044
14045
14046cat confdefs.h - <<_ACEOF >conftest.c
14047/* confdefs.h. */
14048_ACEOF
14049cat confdefs.h >>conftest.$ac_ext
14050cat >>conftest.$ac_ext <<_ACEOF
14051/* end confdefs.h. */
14052
14053
14054 #include <linux/fs.h>
14055
14056int
14057main (void)
14058{
14059
14060 int (*fsync) (struct file *, int datasync) = NULL;
14061 struct file_operations fops;
14062
14063 fops.fsync = fsync;
14064
14065 ;
14066 return 0;
14067}
14068
14069_ACEOF
14070
14071
14072 rm -Rf build && mkdir -p build
14073 echo "obj-m := conftest.o" >build/Makefile
14074 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
14085
14086 { $as_echo "$as_me:$LINENO: result: yes" >&5
14087$as_echo "yes" >&6; }
14088
14089cat >>confdefs.h <<\_ACEOF
14090#define HAVE_2ARGS_FSYNC 1
14091_ACEOF
14092
14093
14094else
14095 $as_echo "$as_me: failed program was:" >&5
14096sed 's/^/| /' conftest.$ac_ext >&5
14097
14098 { $as_echo "$as_me:$LINENO: result: no" >&5
14099$as_echo "no" >&6; }
14100
14101
14102
14103fi
14104
14105 rm -Rf build
14106
14107
14108
14109
e70e591c
BB
14110 if test "$LINUX_OBJ" != "$LINUX"; then
14111 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14112 fi
14113
14114
14115
6283f55e
BB
14116 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
14117 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
14118
14119
e70e591c
BB
14120 ;;
14121 user)
14122
14123 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
14124$as_echo_n "checking for target asm dir... " >&6; }
14125 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
14126
14127 case $TARGET_ARCH in
14128 i386|x86_64)
14129 TARGET_ASM_DIR=asm-${TARGET_ARCH}
14130 ;;
14131 *)
14132 TARGET_ASM_DIR=asm-generic
14133 ;;
14134 esac
14135
14136
14137 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
14138$as_echo "$TARGET_ASM_DIR" >&6; }
14139
14140
e70e591c
BB
14141 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
14142$as_echo_n "checking for ioctl()... " >&6; }
14143 cat >conftest.$ac_ext <<_ACEOF
14144/* confdefs.h. */
14145_ACEOF
14146cat confdefs.h >>conftest.$ac_ext
14147cat >>conftest.$ac_ext <<_ACEOF
14148/* end confdefs.h. */
14149#include <unistd.h>
14150
14151_ACEOF
14152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14153 $EGREP "ioctl" >/dev/null 2>&1; then
14154 is_unistd=yes
14155else
14156 is_unistd=no
14157fi
14158rm -f conftest*
14159
14160 cat >conftest.$ac_ext <<_ACEOF
14161/* confdefs.h. */
14162_ACEOF
14163cat confdefs.h >>conftest.$ac_ext
14164cat >>conftest.$ac_ext <<_ACEOF
14165/* end confdefs.h. */
14166#include <sys/ioctl.h>
14167
14168_ACEOF
14169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14170 $EGREP "ioctl" >/dev/null 2>&1; then
14171 is_sys_ioctl=yes
14172else
14173 is_sys_ioctl=no
14174fi
14175rm -f conftest*
14176
14177 cat >conftest.$ac_ext <<_ACEOF
14178/* confdefs.h. */
14179_ACEOF
14180cat confdefs.h >>conftest.$ac_ext
14181cat >>conftest.$ac_ext <<_ACEOF
14182/* end confdefs.h. */
14183#include <stropts.h>
14184
14185_ACEOF
14186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14187 $EGREP "ioctl" >/dev/null 2>&1; then
14188 is_stropts=yes
14189else
14190 is_stropts=no
14191fi
14192rm -f conftest*
14193
14194
14195 if test $is_unistd = yes; then
14196 result=unistd.h
14197
14198cat >>confdefs.h <<\_ACEOF
14199#define HAVE_IOCTL_IN_UNISTD_H 1
14200_ACEOF
14201
14202 else
14203
14204 if test $is_sys_ioctl = yes; then
14205 result=sys/ioctl.h
14206
14207cat >>confdefs.h <<\_ACEOF
14208#define HAVE_IOCTL_IN_SYS_IOCTL_H 1
14209_ACEOF
14210
14211 elif test $is_stropts = yes; then
14212
14213cat >>confdefs.h <<\_ACEOF
14214#define HAVE_IOCTL_IN_STROPTS_H 1
14215_ACEOF
14216
14217 else
14218 result=no
14219 fi
14220 fi
14221
14222 if test $result = no; then
14223 { $as_echo "$as_me:$LINENO: result: no" >&5
14224$as_echo "no" >&6; }
14225 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
14226$as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
14227 { (exit 1); exit 1; }; }
14228 else
14229 { $as_echo "$as_me:$LINENO: result: yes" >&5
14230$as_echo "yes" >&6; }
14231 fi
14232
14233
14234 ZLIB=
14235
14236 if test "${ac_cv_header_zlib_h+set}" = set; then
14237 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14238$as_echo_n "checking for zlib.h... " >&6; }
14239if test "${ac_cv_header_zlib_h+set}" = set; then
14240 $as_echo_n "(cached) " >&6
14241fi
14242{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14243$as_echo "$ac_cv_header_zlib_h" >&6; }
14244else
14245 # Is the header compilable?
14246{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
14247$as_echo_n "checking zlib.h usability... " >&6; }
14248cat >conftest.$ac_ext <<_ACEOF
14249/* confdefs.h. */
14250_ACEOF
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
14253/* end confdefs.h. */
14254$ac_includes_default
14255#include <zlib.h>
14256_ACEOF
14257rm -f conftest.$ac_objext
14258if { (ac_try="$ac_compile"
14259case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14262esac
14263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14264$as_echo "$ac_try_echo") >&5
14265 (eval "$ac_compile") 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } && {
14272 test -z "$ac_c_werror_flag" ||
14273 test ! -s conftest.err
14274 } && test -s conftest.$ac_objext; then
14275 ac_header_compiler=yes
14276else
14277 $as_echo "$as_me: failed program was:" >&5
14278sed 's/^/| /' conftest.$ac_ext >&5
14279
14280 ac_header_compiler=no
14281fi
14282
14283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14285$as_echo "$ac_header_compiler" >&6; }
14286
14287# Is the header present?
14288{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
14289$as_echo_n "checking zlib.h presence... " >&6; }
14290cat >conftest.$ac_ext <<_ACEOF
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
14295/* end confdefs.h. */
14296#include <zlib.h>
14297_ACEOF
14298if { (ac_try="$ac_cpp conftest.$ac_ext"
14299case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14302esac
14303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14304$as_echo "$ac_try_echo") >&5
14305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14306 ac_status=$?
14307 grep -v '^ *+' conftest.er1 >conftest.err
14308 rm -f conftest.er1
14309 cat conftest.err >&5
14310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } >/dev/null && {
14312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14313 test ! -s conftest.err
14314 }; then
14315 ac_header_preproc=yes
14316else
14317 $as_echo "$as_me: failed program was:" >&5
14318sed 's/^/| /' conftest.$ac_ext >&5
14319
14320 ac_header_preproc=no
14321fi
14322
14323rm -f conftest.err conftest.$ac_ext
14324{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14325$as_echo "$ac_header_preproc" >&6; }
14326
14327# So? What about this header?
14328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14329 yes:no: )
14330 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14331$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14332 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
14333$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
14334 ac_header_preproc=yes
14335 ;;
14336 no:yes:* )
14337 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
14338$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
14339 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
14340$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
14341 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
14342$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
14343 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
14344$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14345 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
14346$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
14347 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
14348$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
14349
14350 ;;
14351esac
14352{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
14353$as_echo_n "checking for zlib.h... " >&6; }
14354if test "${ac_cv_header_zlib_h+set}" = set; then
14355 $as_echo_n "(cached) " >&6
14356else
14357 ac_cv_header_zlib_h=$ac_header_preproc
14358fi
14359{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
14360$as_echo "$ac_cv_header_zlib_h" >&6; }
14361
14362fi
14363if test "x$ac_cv_header_zlib_h" = x""yes; then
14364 :
14365else
14366 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14368{ { $as_echo "$as_me:$LINENO: error:
14369 *** zlib.h missing, zlib-devel package required
14370See \`config.log' for more details." >&5
14371$as_echo "$as_me: error:
14372 *** zlib.h missing, zlib-devel package required
14373See \`config.log' for more details." >&2;}
14374 { (exit 1); exit 1; }; }; }
14375fi
14376
14377
14378
14379
14380{ $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
14381$as_echo_n "checking for compress2 in -lz... " >&6; }
14382if test "${ac_cv_lib_z_compress2+set}" = set; then
14383 $as_echo_n "(cached) " >&6
14384else
14385 ac_check_lib_save_LIBS=$LIBS
14386LIBS="-lz $LIBS"
14387cat >conftest.$ac_ext <<_ACEOF
14388/* confdefs.h. */
14389_ACEOF
14390cat confdefs.h >>conftest.$ac_ext
14391cat >>conftest.$ac_ext <<_ACEOF
14392/* end confdefs.h. */
14393
14394/* Override any GCC internal prototype to avoid an error.
14395 Use char because int might match the return type of a GCC
14396 builtin and then its argument prototype would still apply. */
14397#ifdef __cplusplus
14398extern "C"
14399#endif
14400char compress2 ();
14401int
14402main ()
14403{
14404return compress2 ();
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409rm -f conftest.$ac_objext conftest$ac_exeext
14410if { (ac_try="$ac_link"
14411case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14414esac
14415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14416$as_echo "$ac_try_echo") >&5
14417 (eval "$ac_link") 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } && {
14424 test -z "$ac_c_werror_flag" ||
14425 test ! -s conftest.err
14426 } && test -s conftest$ac_exeext && {
14427 test "$cross_compiling" = yes ||
14428 $as_test_x conftest$ac_exeext
14429 }; then
14430 ac_cv_lib_z_compress2=yes
14431else
14432 $as_echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
14435 ac_cv_lib_z_compress2=no
14436fi
14437
14438rm -rf conftest.dSYM
14439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14440 conftest$ac_exeext conftest.$ac_ext
14441LIBS=$ac_check_lib_save_LIBS
14442fi
14443{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
14444$as_echo "$ac_cv_lib_z_compress2" >&6; }
14445if test "x$ac_cv_lib_z_compress2" = x""yes; then
14446 cat >>confdefs.h <<_ACEOF
14447#define HAVE_LIBZ 1
14448_ACEOF
14449
14450 LIBS="-lz $LIBS"
14451
14452else
14453 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14455{ { $as_echo "$as_me:$LINENO: error:
14456 *** compress2() missing, zlib-devel package required
14457See \`config.log' for more details." >&5
14458$as_echo "$as_me: error:
14459 *** compress2() missing, zlib-devel package required
14460See \`config.log' for more details." >&2;}
14461 { (exit 1); exit 1; }; }; }
14462fi
14463
14464
14465
14466{ $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
14467$as_echo_n "checking for uncompress in -lz... " >&6; }
14468if test "${ac_cv_lib_z_uncompress+set}" = set; then
14469 $as_echo_n "(cached) " >&6
14470else
14471 ac_check_lib_save_LIBS=$LIBS
14472LIBS="-lz $LIBS"
14473cat >conftest.$ac_ext <<_ACEOF
14474/* confdefs.h. */
14475_ACEOF
14476cat confdefs.h >>conftest.$ac_ext
14477cat >>conftest.$ac_ext <<_ACEOF
14478/* end confdefs.h. */
14479
14480/* Override any GCC internal prototype to avoid an error.
14481 Use char because int might match the return type of a GCC
14482 builtin and then its argument prototype would still apply. */
14483#ifdef __cplusplus
14484extern "C"
14485#endif
14486char uncompress ();
14487int
14488main ()
14489{
14490return uncompress ();
14491 ;
14492 return 0;
14493}
14494_ACEOF
14495rm -f conftest.$ac_objext conftest$ac_exeext
14496if { (ac_try="$ac_link"
14497case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14500esac
14501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14502$as_echo "$ac_try_echo") >&5
14503 (eval "$ac_link") 2>conftest.er1
14504 ac_status=$?
14505 grep -v '^ *+' conftest.er1 >conftest.err
14506 rm -f conftest.er1
14507 cat conftest.err >&5
14508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } && {
14510 test -z "$ac_c_werror_flag" ||
14511 test ! -s conftest.err
14512 } && test -s conftest$ac_exeext && {
14513 test "$cross_compiling" = yes ||
14514 $as_test_x conftest$ac_exeext
14515 }; then
14516 ac_cv_lib_z_uncompress=yes
14517else
14518 $as_echo "$as_me: failed program was:" >&5
14519sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_cv_lib_z_uncompress=no
14522fi
14523
14524rm -rf conftest.dSYM
14525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14526 conftest$ac_exeext conftest.$ac_ext
14527LIBS=$ac_check_lib_save_LIBS
14528fi
14529{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
14530$as_echo "$ac_cv_lib_z_uncompress" >&6; }
14531if test "x$ac_cv_lib_z_uncompress" = x""yes; then
14532 cat >>confdefs.h <<_ACEOF
14533#define HAVE_LIBZ 1
14534_ACEOF
14535
14536 LIBS="-lz $LIBS"
14537
14538else
14539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14541{ { $as_echo "$as_me:$LINENO: error:
14542 *** uncompress() missing, zlib-devel package required
14543See \`config.log' for more details." >&5
14544$as_echo "$as_me: error:
14545 *** uncompress() missing, zlib-devel package required
14546See \`config.log' for more details." >&2;}
14547 { (exit 1); exit 1; }; }; }
14548fi
14549
14550
14551
14552{ $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
14553$as_echo_n "checking for crc32 in -lz... " >&6; }
14554if test "${ac_cv_lib_z_crc32+set}" = set; then
14555 $as_echo_n "(cached) " >&6
14556else
14557 ac_check_lib_save_LIBS=$LIBS
14558LIBS="-lz $LIBS"
14559cat >conftest.$ac_ext <<_ACEOF
14560/* confdefs.h. */
14561_ACEOF
14562cat confdefs.h >>conftest.$ac_ext
14563cat >>conftest.$ac_ext <<_ACEOF
14564/* end confdefs.h. */
14565
14566/* Override any GCC internal prototype to avoid an error.
14567 Use char because int might match the return type of a GCC
14568 builtin and then its argument prototype would still apply. */
14569#ifdef __cplusplus
14570extern "C"
14571#endif
14572char crc32 ();
14573int
14574main ()
14575{
14576return crc32 ();
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581rm -f conftest.$ac_objext conftest$ac_exeext
14582if { (ac_try="$ac_link"
14583case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586esac
14587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14588$as_echo "$ac_try_echo") >&5
14589 (eval "$ac_link") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && {
14596 test -z "$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 } && test -s conftest$ac_exeext && {
14599 test "$cross_compiling" = yes ||
14600 $as_test_x conftest$ac_exeext
14601 }; then
14602 ac_cv_lib_z_crc32=yes
14603else
14604 $as_echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ac_cv_lib_z_crc32=no
14608fi
14609
14610rm -rf conftest.dSYM
14611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14612 conftest$ac_exeext conftest.$ac_ext
14613LIBS=$ac_check_lib_save_LIBS
14614fi
14615{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
14616$as_echo "$ac_cv_lib_z_crc32" >&6; }
14617if test "x$ac_cv_lib_z_crc32" = x""yes; then
14618 cat >>confdefs.h <<_ACEOF
14619#define HAVE_LIBZ 1
14620_ACEOF
14621
14622 LIBS="-lz $LIBS"
14623
14624else
14625 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14627{ { $as_echo "$as_me:$LINENO: error:
14628 *** crc32() missing, zlib-devel package required
14629See \`config.log' for more details." >&5
14630$as_echo "$as_me: error:
14631 *** crc32() missing, zlib-devel package required
14632See \`config.log' for more details." >&2;}
14633 { (exit 1); exit 1; }; }; }
14634fi
14635
14636
14637 ZLIB="-lz"
14638
14639
14640cat >>confdefs.h <<\_ACEOF
14641#define HAVE_ZLIB 1
14642_ACEOF
14643
14644
14645
14646 LIBUUID=
14647
14648 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14649 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14650$as_echo_n "checking for uuid/uuid.h... " >&6; }
14651if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14652 $as_echo_n "(cached) " >&6
14653fi
14654{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14655$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14656else
14657 # Is the header compilable?
14658{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
14659$as_echo_n "checking uuid/uuid.h usability... " >&6; }
14660cat >conftest.$ac_ext <<_ACEOF
14661/* confdefs.h. */
14662_ACEOF
14663cat confdefs.h >>conftest.$ac_ext
14664cat >>conftest.$ac_ext <<_ACEOF
14665/* end confdefs.h. */
14666$ac_includes_default
14667#include <uuid/uuid.h>
14668_ACEOF
14669rm -f conftest.$ac_objext
14670if { (ac_try="$ac_compile"
14671case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674esac
14675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14676$as_echo "$ac_try_echo") >&5
14677 (eval "$ac_compile") 2>conftest.er1
14678 ac_status=$?
14679 grep -v '^ *+' conftest.er1 >conftest.err
14680 rm -f conftest.er1
14681 cat conftest.err >&5
14682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } && {
14684 test -z "$ac_c_werror_flag" ||
14685 test ! -s conftest.err
14686 } && test -s conftest.$ac_objext; then
14687 ac_header_compiler=yes
14688else
14689 $as_echo "$as_me: failed program was:" >&5
14690sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_header_compiler=no
14693fi
14694
14695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14696{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14697$as_echo "$ac_header_compiler" >&6; }
14698
14699# Is the header present?
14700{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
14701$as_echo_n "checking uuid/uuid.h presence... " >&6; }
14702cat >conftest.$ac_ext <<_ACEOF
14703/* confdefs.h. */
14704_ACEOF
14705cat confdefs.h >>conftest.$ac_ext
14706cat >>conftest.$ac_ext <<_ACEOF
14707/* end confdefs.h. */
14708#include <uuid/uuid.h>
14709_ACEOF
14710if { (ac_try="$ac_cpp conftest.$ac_ext"
14711case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14714esac
14715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14716$as_echo "$ac_try_echo") >&5
14717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14718 ac_status=$?
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
14722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } >/dev/null && {
14724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 }; then
14727 ac_header_preproc=yes
14728else
14729 $as_echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732 ac_header_preproc=no
14733fi
14734
14735rm -f conftest.err conftest.$ac_ext
14736{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14737$as_echo "$ac_header_preproc" >&6; }
14738
14739# So? What about this header?
14740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14741 yes:no: )
14742 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
14743$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14744 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
14745$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
14746 ac_header_preproc=yes
14747 ;;
14748 no:yes:* )
14749 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
14750$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
14751 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
14752$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
14753 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
14754$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
14755 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
14756$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
14757 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
14758$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
14759 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
14760$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
14761
14762 ;;
14763esac
14764{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
14765$as_echo_n "checking for uuid/uuid.h... " >&6; }
14766if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
14767 $as_echo_n "(cached) " >&6
14768else
14769 ac_cv_header_uuid_uuid_h=$ac_header_preproc
14770fi
14771{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
14772$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
14773
14774fi
14775if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
14776 :
14777else
14778 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14780{ { $as_echo "$as_me:$LINENO: error:
14781 *** uuid/uuid.h missing, libuuid-devel package required
14782See \`config.log' for more details." >&5
14783$as_echo "$as_me: error:
14784 *** uuid/uuid.h missing, libuuid-devel package required
14785See \`config.log' for more details." >&2;}
14786 { (exit 1); exit 1; }; }; }
14787fi
14788
14789
14790
14791
14792{ $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
14793$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
14794if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
14795 $as_echo_n "(cached) " >&6
14796else
14797 ac_check_lib_save_LIBS=$LIBS
14798LIBS="-luuid $LIBS"
14799cat >conftest.$ac_ext <<_ACEOF
14800/* confdefs.h. */
14801_ACEOF
14802cat confdefs.h >>conftest.$ac_ext
14803cat >>conftest.$ac_ext <<_ACEOF
14804/* end confdefs.h. */
14805
14806/* Override any GCC internal prototype to avoid an error.
14807 Use char because int might match the return type of a GCC
14808 builtin and then its argument prototype would still apply. */
14809#ifdef __cplusplus
14810extern "C"
14811#endif
14812char uuid_generate ();
14813int
14814main ()
14815{
14816return uuid_generate ();
14817 ;
14818 return 0;
14819}
14820_ACEOF
14821rm -f conftest.$ac_objext conftest$ac_exeext
14822if { (ac_try="$ac_link"
14823case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826esac
14827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14828$as_echo "$ac_try_echo") >&5
14829 (eval "$ac_link") 2>conftest.er1
14830 ac_status=$?
14831 grep -v '^ *+' conftest.er1 >conftest.err
14832 rm -f conftest.er1
14833 cat conftest.err >&5
14834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); } && {
14836 test -z "$ac_c_werror_flag" ||
14837 test ! -s conftest.err
14838 } && test -s conftest$ac_exeext && {
14839 test "$cross_compiling" = yes ||
14840 $as_test_x conftest$ac_exeext
14841 }; then
14842 ac_cv_lib_uuid_uuid_generate=yes
14843else
14844 $as_echo "$as_me: failed program was:" >&5
14845sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_cv_lib_uuid_uuid_generate=no
14848fi
14849
14850rm -rf conftest.dSYM
14851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14852 conftest$ac_exeext conftest.$ac_ext
14853LIBS=$ac_check_lib_save_LIBS
14854fi
14855{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
14856$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
14857if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
14858 cat >>confdefs.h <<_ACEOF
14859#define HAVE_LIBUUID 1
14860_ACEOF
14861
14862 LIBS="-luuid $LIBS"
14863
14864else
14865 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14867{ { $as_echo "$as_me:$LINENO: error:
14868 *** uuid_generate() missing, libuuid-devel package required
14869See \`config.log' for more details." >&5
14870$as_echo "$as_me: error:
14871 *** uuid_generate() missing, libuuid-devel package required
14872See \`config.log' for more details." >&2;}
14873 { (exit 1); exit 1; }; }; }
14874fi
14875
14876
14877
14878{ $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
14879$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
14880if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
14881 $as_echo_n "(cached) " >&6
14882else
14883 ac_check_lib_save_LIBS=$LIBS
14884LIBS="-luuid $LIBS"
14885cat >conftest.$ac_ext <<_ACEOF
14886/* confdefs.h. */
14887_ACEOF
14888cat confdefs.h >>conftest.$ac_ext
14889cat >>conftest.$ac_ext <<_ACEOF
14890/* end confdefs.h. */
14891
14892/* Override any GCC internal prototype to avoid an error.
14893 Use char because int might match the return type of a GCC
14894 builtin and then its argument prototype would still apply. */
14895#ifdef __cplusplus
14896extern "C"
14897#endif
14898char uuid_is_null ();
14899int
14900main ()
14901{
14902return uuid_is_null ();
14903 ;
14904 return 0;
14905}
14906_ACEOF
14907rm -f conftest.$ac_objext conftest$ac_exeext
14908if { (ac_try="$ac_link"
14909case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14912esac
14913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14914$as_echo "$ac_try_echo") >&5
14915 (eval "$ac_link") 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } && {
14922 test -z "$ac_c_werror_flag" ||
14923 test ! -s conftest.err
14924 } && test -s conftest$ac_exeext && {
14925 test "$cross_compiling" = yes ||
14926 $as_test_x conftest$ac_exeext
14927 }; then
14928 ac_cv_lib_uuid_uuid_is_null=yes
14929else
14930 $as_echo "$as_me: failed program was:" >&5
14931sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 ac_cv_lib_uuid_uuid_is_null=no
14934fi
14935
14936rm -rf conftest.dSYM
14937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14938 conftest$ac_exeext conftest.$ac_ext
14939LIBS=$ac_check_lib_save_LIBS
14940fi
14941{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
14942$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
14943if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
14944 cat >>confdefs.h <<_ACEOF
14945#define HAVE_LIBUUID 1
14946_ACEOF
14947
14948 LIBS="-luuid $LIBS"
14949
14950else
14951 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14953{ { $as_echo "$as_me:$LINENO: error:
14954 *** uuid_is_null() missing, libuuid-devel package required
14955See \`config.log' for more details." >&5
14956$as_echo "$as_me: error:
14957 *** uuid_is_null() missing, libuuid-devel package required
14958See \`config.log' for more details." >&2;}
14959 { (exit 1); exit 1; }; }; }
14960fi
14961
14962
14963 LIBUUID="-luuid"
14964
14965
14966cat >>confdefs.h <<\_ACEOF
14967#define HAVE_LIBUUID 1
14968_ACEOF
14969
14970
14971
14972
14973# Check whether --with-blkid was given.
14974if test "${with_blkid+set}" = set; then
14975 withval=$with_blkid;
14976else
14977 with_blkid=check
14978fi
14979
14980
14981 LIBBLKID=
14982 if test "x$with_blkid" != xno; then
14983
14984 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
14985$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
14986if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
14987 $as_echo_n "(cached) " >&6
14988else
14989 ac_check_lib_save_LIBS=$LIBS
14990LIBS="-lblkid $LIBS"
14991cat >conftest.$ac_ext <<_ACEOF
14992/* confdefs.h. */
14993_ACEOF
14994cat confdefs.h >>conftest.$ac_ext
14995cat >>conftest.$ac_ext <<_ACEOF
14996/* end confdefs.h. */
14997
14998/* Override any GCC internal prototype to avoid an error.
14999 Use char because int might match the return type of a GCC
15000 builtin and then its argument prototype would still apply. */
15001#ifdef __cplusplus
15002extern "C"
15003#endif
15004char blkid_get_cache ();
15005int
15006main ()
15007{
15008return blkid_get_cache ();
15009 ;
15010 return 0;
15011}
15012_ACEOF
15013rm -f conftest.$ac_objext conftest$ac_exeext
15014if { (ac_try="$ac_link"
15015case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018esac
15019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15020$as_echo "$ac_try_echo") >&5
15021 (eval "$ac_link") 2>conftest.er1
15022 ac_status=$?
15023 grep -v '^ *+' conftest.er1 >conftest.err
15024 rm -f conftest.er1
15025 cat conftest.err >&5
15026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest$ac_exeext && {
15031 test "$cross_compiling" = yes ||
15032 $as_test_x conftest$ac_exeext
15033 }; then
15034 ac_cv_lib_blkid_blkid_get_cache=yes
15035else
15036 $as_echo "$as_me: failed program was:" >&5
15037sed 's/^/| /' conftest.$ac_ext >&5
15038
15039 ac_cv_lib_blkid_blkid_get_cache=no
15040fi
15041
15042rm -rf conftest.dSYM
15043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15044 conftest$ac_exeext conftest.$ac_ext
15045LIBS=$ac_check_lib_save_LIBS
15046fi
15047{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
15048$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
15049if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
15050
15051 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
15052$as_echo_n "checking for blkid zfs support... " >&6; }
15053
15054 ZFS_DEV=`mktemp`
15055 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
15056 >/dev/null 2>/dev/null
15057 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
15058 dd of=$ZFS_DEV bs=1k count=8 \
15059 seek=132 conv=notrunc &>/dev/null \
15060 >/dev/null 2>/dev/null
15061
15062 saved_LDFLAGS="$LDFLAGS"
15063 LDFLAGS="-lblkid"
15064
15065 if test "$cross_compiling" = yes; then
15066 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15068{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15069See \`config.log' for more details." >&5
15070$as_echo "$as_me: error: cannot run test program while cross compiling
15071See \`config.log' for more details." >&2;}
15072 { (exit 1); exit 1; }; }; }
15073else
15074 cat >conftest.$ac_ext <<_ACEOF
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080
15081 #include <stdio.h>
15082 #include <blkid/blkid.h>
15083
15084int
15085main ()
15086{
15087
15088 blkid_cache cache;
15089 char *value;
15090
15091 if (blkid_get_cache(&cache, NULL) < 0)
15092 return 1;
15093
15094 value = blkid_get_tag_value(cache, "TYPE",
15095 "$ZFS_DEV");
15096 if (!value) {
15097 blkid_put_cache(cache);
15098 return 2;
15099 }
15100
15101 if (strcmp(value, "zfs")) {
15102 free(value);
15103 blkid_put_cache(cache);
15104 return 3;
15105 }
15106
15107 free(value);
15108 blkid_put_cache(cache);
15109
15110 ;
15111 return 0;
15112}
15113_ACEOF
15114rm -f conftest$ac_exeext
15115if { (ac_try="$ac_link"
15116case "(($ac_try" in
15117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15118 *) ac_try_echo=$ac_try;;
15119esac
15120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15121$as_echo "$ac_try_echo") >&5
15122 (eval "$ac_link") 2>&5
15123 ac_status=$?
15124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15126 { (case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129esac
15130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15131$as_echo "$ac_try_echo") >&5
15132 (eval "$ac_try") 2>&5
15133 ac_status=$?
15134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136
15137 rm -f $ZFS_DEV
15138 { $as_echo "$as_me:$LINENO: result: yes" >&5
15139$as_echo "yes" >&6; }
15140 LIBBLKID="-lblkid"
15141
15142
15143cat >>confdefs.h <<\_ACEOF
15144#define HAVE_LIBBLKID 1
15145_ACEOF
15146
15147
15148else
15149 $as_echo "$as_me: program exited with status $ac_status" >&5
15150$as_echo "$as_me: failed program was:" >&5
15151sed 's/^/| /' conftest.$ac_ext >&5
15152
15153( exit $ac_status )
15154
15155 rm -f $ZFS_DEV
15156 { $as_echo "$as_me:$LINENO: result: no" >&5
15157$as_echo "no" >&6; }
15158 if test "x$with_blkid" != xcheck; then
15159 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15161{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15162See \`config.log' for more details." >&5
15163$as_echo "$as_me: error: --with-blkid given but unavailable
15164See \`config.log' for more details." >&2;}
15165 { (exit 1); exit 1; }; }; }
15166fi
15167
15168
15169fi
15170rm -rf conftest.dSYM
15171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15172fi
15173
15174
15175
15176 LDFLAGS="$saved_LDFLAGS"
15177
15178else
15179
15180 if test "x$with_blkid" != xcheck; then
15181 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15183{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
15184See \`config.log' for more details." >&5
15185$as_echo "$as_me: error: --with-blkid given but unavailable
15186See \`config.log' for more details." >&2;}
15187 { (exit 1); exit 1; }; }; }
15188fi
15189
15190
15191
15192fi
15193
15194
15195fi
15196
15197
15198
b3259b6a
BB
15199
15200# Check whether --with-selinux was given.
15201if test "${with_selinux+set}" = set; then
15202 withval=$with_selinux;
15203else
15204 with_selinux=check
15205fi
15206
15207
15208 LIBSELINUX=
15209 if test "x$with_selinux" != xno; then
15210
15211 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15212 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15213$as_echo_n "checking for selinux/selinux.h... " >&6; }
15214if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15215 $as_echo_n "(cached) " >&6
15216fi
15217{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15218$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15219else
15220 # Is the header compilable?
15221{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
15222$as_echo_n "checking selinux/selinux.h usability... " >&6; }
15223cat >conftest.$ac_ext <<_ACEOF
15224/* confdefs.h. */
15225_ACEOF
15226cat confdefs.h >>conftest.$ac_ext
15227cat >>conftest.$ac_ext <<_ACEOF
15228/* end confdefs.h. */
15229$ac_includes_default
15230#include <selinux/selinux.h>
15231_ACEOF
15232rm -f conftest.$ac_objext
15233if { (ac_try="$ac_compile"
15234case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237esac
15238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239$as_echo "$ac_try_echo") >&5
15240 (eval "$ac_compile") 2>conftest.er1
15241 ac_status=$?
15242 grep -v '^ *+' conftest.er1 >conftest.err
15243 rm -f conftest.er1
15244 cat conftest.err >&5
15245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest.$ac_objext; then
15250 ac_header_compiler=yes
15251else
15252 $as_echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 ac_header_compiler=no
15256fi
15257
15258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15260$as_echo "$ac_header_compiler" >&6; }
15261
15262# Is the header present?
15263{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
15264$as_echo_n "checking selinux/selinux.h presence... " >&6; }
15265cat >conftest.$ac_ext <<_ACEOF
15266/* confdefs.h. */
15267_ACEOF
15268cat confdefs.h >>conftest.$ac_ext
15269cat >>conftest.$ac_ext <<_ACEOF
15270/* end confdefs.h. */
15271#include <selinux/selinux.h>
15272_ACEOF
15273if { (ac_try="$ac_cpp conftest.$ac_ext"
15274case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15279$as_echo "$ac_try_echo") >&5
15280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
15285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } >/dev/null && {
15287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15288 test ! -s conftest.err
15289 }; then
15290 ac_header_preproc=yes
15291else
15292 $as_echo "$as_me: failed program was:" >&5
15293sed 's/^/| /' conftest.$ac_ext >&5
15294
15295 ac_header_preproc=no
15296fi
15297
15298rm -f conftest.err conftest.$ac_ext
15299{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15300$as_echo "$ac_header_preproc" >&6; }
15301
15302# So? What about this header?
15303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15304 yes:no: )
15305 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
15306$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15307 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
15308$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
15309 ac_header_preproc=yes
15310 ;;
15311 no:yes:* )
15312 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
15313$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
15314 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
15315$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
15316 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
15317$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
15318 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
15319$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
15320 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
15321$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
15322 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
15323$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
15324
15325 ;;
15326esac
15327{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
15328$as_echo_n "checking for selinux/selinux.h... " >&6; }
15329if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
15330 $as_echo_n "(cached) " >&6
15331else
15332 ac_cv_header_selinux_selinux_h=$ac_header_preproc
15333fi
15334{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
15335$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
15336
15337fi
15338if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
15339
15340 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15341$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
15342if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
15343 $as_echo_n "(cached) " >&6
15344else
15345 ac_check_lib_save_LIBS=$LIBS
15346LIBS="-lselinux $LIBS"
15347cat >conftest.$ac_ext <<_ACEOF
15348/* confdefs.h. */
15349_ACEOF
15350cat confdefs.h >>conftest.$ac_ext
15351cat >>conftest.$ac_ext <<_ACEOF
15352/* end confdefs.h. */
15353
15354/* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15357#ifdef __cplusplus
15358extern "C"
15359#endif
15360char is_selinux_enabled ();
15361int
15362main ()
15363{
15364return is_selinux_enabled ();
15365 ;
15366 return 0;
15367}
15368_ACEOF
15369rm -f conftest.$ac_objext conftest$ac_exeext
15370if { (ac_try="$ac_link"
15371case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
15375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15376$as_echo "$ac_try_echo") >&5
15377 (eval "$ac_link") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest$ac_exeext && {
15387 test "$cross_compiling" = yes ||
15388 $as_test_x conftest$ac_exeext
15389 }; then
15390 ac_cv_lib_selinux_is_selinux_enabled=yes
15391else
15392 $as_echo "$as_me: failed program was:" >&5
15393sed 's/^/| /' conftest.$ac_ext >&5
15394
15395 ac_cv_lib_selinux_is_selinux_enabled=no
15396fi
15397
15398rm -rf conftest.dSYM
15399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15400 conftest$ac_exeext conftest.$ac_ext
15401LIBS=$ac_check_lib_save_LIBS
15402fi
15403{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15404$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15405if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
15406
15407 LIBSELINUX="-lselinux"
15408
15409
15410cat >>confdefs.h <<\_ACEOF
15411#define HAVE_LIBSELINUX 1
15412_ACEOF
15413
15414
15415else
15416
15417 if test "x$with_selinux" != xcheck; then
15418 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15420{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15421See \`config.log' for more details." >&5
15422$as_echo "$as_me: error: --with-selinux given but unavailable
15423See \`config.log' for more details." >&2;}
15424 { (exit 1); exit 1; }; }; }
15425
15426fi
15427
15428
15429fi
15430
15431
15432else
15433
15434 if test "x$with_selinux" != xcheck; then
15435 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15437{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
15438See \`config.log' for more details." >&5
15439$as_echo "$as_me: error: --with-selinux given but unavailable
15440See \`config.log' for more details." >&2;}
15441 { (exit 1); exit 1; }; }; }
15442
15443fi
15444
15445
15446fi
15447
15448
15449
15450else
15451
15452 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
15453$as_echo_n "checking for selinux support... " >&6; }
15454 { $as_echo "$as_me:$LINENO: result: no" >&5
15455$as_echo "no" >&6; }
15456
15457fi
15458
15459
15460
e70e591c
BB
15461 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
15462$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
15463
15464 saved_flags="$CFLAGS"
15465 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
15466
15467 if test "$cross_compiling" = yes; then
15468 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15470{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15471See \`config.log' for more details." >&5
15472$as_echo "$as_me: error: cannot run test program while cross compiling
15473See \`config.log' for more details." >&2;}
15474 { (exit 1); exit 1; }; }; }
15475else
15476 cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482
15483int
15484main ()
15485{
15486
15487 ;
15488 return 0;
15489}
15490_ACEOF
15491rm -f conftest$ac_exeext
15492if { (ac_try="$ac_link"
15493case "(($ac_try" in
15494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15496esac
15497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15498$as_echo "$ac_try_echo") >&5
15499 (eval "$ac_link") 2>&5
15500 ac_status=$?
15501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15503 { (case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15506esac
15507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15508$as_echo "$ac_try_echo") >&5
15509 (eval "$ac_try") 2>&5
15510 ac_status=$?
15511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513
15514 FRAME_LARGER_THAN=-Wframe-larger-than=1024
15515 { $as_echo "$as_me:$LINENO: result: yes" >&5
15516$as_echo "yes" >&6; }
15517
15518else
15519 $as_echo "$as_me: program exited with status $ac_status" >&5
15520$as_echo "$as_me: failed program was:" >&5
15521sed 's/^/| /' conftest.$ac_ext >&5
15522
15523( exit $ac_status )
15524
15525 FRAME_LARGER_THAN=
15526 { $as_echo "$as_me:$LINENO: result: no" >&5
15527$as_echo "no" >&6; }
15528
15529fi
15530rm -rf conftest.dSYM
15531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15532fi
15533
15534
15535
15536 CFLAGS="$saved_flags"
15537
15538
15539
15540
15541 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
15542$as_echo_n "checking whether pthread stack includes guard... " >&6; }
15543
15544 saved_CFLAGS="$CFLAGS"
15545 CFLAGS="-fstack-check"
15546 saved_LDFLAGS="$LDFLAGS"
15547 LDFLAGS="-lpthread"
15548
15549 if test "$cross_compiling" = yes; then
15550 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15552{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15553See \`config.log' for more details." >&5
15554$as_echo "$as_me: error: cannot run test program while cross compiling
15555See \`config.log' for more details." >&2;}
15556 { (exit 1); exit 1; }; }; }
15557else
15558 cat >conftest.$ac_ext <<_ACEOF
15559/* confdefs.h. */
15560_ACEOF
15561cat confdefs.h >>conftest.$ac_ext
15562cat >>conftest.$ac_ext <<_ACEOF
15563/* end confdefs.h. */
15564
15565 #include <pthread.h>
15566 #include <sys/resource.h>
15567 #include <unistd.h>
15568 #include <bits/local_lim.h>
15569
15570 #define PAGESIZE (sysconf(_SC_PAGESIZE))
15571 #define STACK_SIZE 8192
15572 #define BUFSIZE 4096
15573
15574 void * func(void *arg)
15575 {
15576 char buf[BUFSIZE];
15577 }
15578
15579int
15580main ()
15581{
15582
15583 pthread_t tid;
15584 pthread_attr_t attr;
15585 struct rlimit l;
15586
15587 l.rlim_cur = 0;
15588 l.rlim_max = 0;
15589 setrlimit(RLIMIT_CORE, &l);
15590 pthread_attr_init(&attr);
15591 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
15592 pthread_attr_setguardsize(&attr, PAGESIZE);
15593 pthread_create(&tid, &attr, func, NULL);
15594 pthread_join(tid, NULL);
15595
15596 ;
15597 return 0;
15598}
15599_ACEOF
15600rm -f conftest$ac_exeext
15601if { (ac_try="$ac_link"
15602case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15605esac
15606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15607$as_echo "$ac_try_echo") >&5
15608 (eval "$ac_link") 2>&5
15609 ac_status=$?
15610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15612 { (case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615esac
15616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15617$as_echo "$ac_try_echo") >&5
15618 (eval "$ac_try") 2>&5
15619 ac_status=$?
15620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; }; then
15622
15623 { $as_echo "$as_me:$LINENO: result: no" >&5
15624$as_echo "no" >&6; }
15625
15626else
15627 $as_echo "$as_me: program exited with status $ac_status" >&5
15628$as_echo "$as_me: failed program was:" >&5
15629sed 's/^/| /' conftest.$ac_ext >&5
15630
15631( exit $ac_status )
15632
15633
15634cat >>confdefs.h <<\_ACEOF
15635#define NPTL_GUARD_WITHIN_STACK 1
15636_ACEOF
15637
15638 { $as_echo "$as_me:$LINENO: result: yes" >&5
15639$as_echo "yes" >&6; }
15640
15641fi
15642rm -rf conftest.dSYM
15643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15644fi
15645
15646
15647 CFLAGS="$saved_CFLAGS"
15648 LDFLAGS="$saved_LDFLAGS"
15649
15650 ;;
15651 all)
15652
15653
15654# Check whether --with-linux was given.
15655if test "${with_linux+set}" = set; then
15656 withval=$with_linux; kernelsrc="$withval"
15657fi
15658
15659
15660
15661# Check whether --with-linux-obj was given.
15662if test "${with_linux_obj+set}" = set; then
15663 withval=$with_linux_obj; kernelbuild="$withval"
15664fi
15665
15666
15667 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15668$as_echo_n "checking kernel source directory... " >&6; }
15669 if test -z "$kernelsrc"; then
1b94c25c
BB
15670 if test -e "/lib/modules/$(uname -r)/source"; then
15671 headersdir="/lib/modules/$(uname -r)/source"
15672 sourcelink=$(readlink -f "$headersdir")
15673 elif test -e "/lib/modules/$(uname -r)/build"; then
15674 headersdir="/lib/modules/$(uname -r)/build"
e70e591c
BB
15675 sourcelink=$(readlink -f "$headersdir")
15676 else
15677 sourcelink=$(ls -1d /usr/src/kernels/* \
15678 /usr/src/linux-* \
15679 2>/dev/null | grep -v obj | tail -1)
15680 fi
15681
15682 if test -n "$sourcelink" && test -e ${sourcelink}; then
15683 kernelsrc=`readlink -f ${sourcelink}`
15684 else
15685 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15686$as_echo "Not found" >&6; }
15687 { { $as_echo "$as_me:$LINENO: error:
15688 *** Please make sure the kernel devel package for your distribution
15689 *** is installed then try again. If that fails you can specify the
15690 *** location of the kernel source with the '--with-linux=PATH' option." >&5
15691$as_echo "$as_me: error:
15692 *** Please make sure the kernel devel package for your distribution
15693 *** is installed then try again. If that fails you can specify the
15694 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15695 { (exit 1); exit 1; }; }
15696 fi
15697 else
15698 if test "$kernelsrc" = "NONE"; then
15699 kernsrcver=NONE
15700 fi
15701 fi
15702
15703 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15704$as_echo "$kernelsrc" >&6; }
15705 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15706$as_echo_n "checking kernel build directory... " >&6; }
15707 if test -z "$kernelbuild"; then
1b94c25c
BB
15708 if test -e "/lib/modules/$(uname -r)/build"; then
15709 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15710 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
e70e591c
BB
15711 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15712 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15713 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15714 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15715 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15716 else
15717 kernelbuild=${kernelsrc}
15718 fi
15719 fi
15720 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15721$as_echo "$kernelbuild" >&6; }
15722
15723 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15724$as_echo_n "checking kernel source version... " >&6; }
15725 utsrelease1=$kernelbuild/include/linux/version.h
15726 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15727 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15728 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15729 utsrelease=linux/version.h
15730 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15731 utsrelease=linux/utsrelease.h
15732 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15733 utsrelease=generated/utsrelease.h
15734 fi
15735
15736 if test "$utsrelease"; then
15737 kernsrcver=`(echo "#include <$utsrelease>";
15738 echo "kernsrcver=UTS_RELEASE") |
15739 cpp -I $kernelbuild/include |
15740 grep "^kernsrcver=" | cut -d \" -f 2`
15741
15742 if test -z "$kernsrcver"; then
15743 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15744$as_echo "Not found" >&6; }
15745 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15746$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15747 { (exit 1); exit 1; }; }
15748 fi
15749 else
15750 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15751$as_echo "Not found" >&6; }
15752 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15753$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15754 { (exit 1); exit 1; }; }
15755 fi
15756
15757 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15758$as_echo "$kernsrcver" >&6; }
15759
15760 LINUX=${kernelsrc}
15761 LINUX_OBJ=${kernelbuild}
15762 LINUX_VERSION=${kernsrcver}
15763
15764
15765
15766
15767
15768
15769 modpost=$LINUX/scripts/Makefile.modpost
15770 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15771$as_echo_n "checking kernel file name for module symbols... " >&6; }
15772 if test -f "$modpost"; then
15773 if grep -q Modules.symvers $modpost; then
15774 LINUX_SYMBOLS=Modules.symvers
15775 else
15776 LINUX_SYMBOLS=Module.symvers
15777 fi
15778 else
15779 LINUX_SYMBOLS=NONE
15780 fi
15781 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15782$as_echo "$LINUX_SYMBOLS" >&6; }
15783
15784
15785
15786
15787
15788# Check whether --with-spl was given.
15789if test "${with_spl+set}" = set; then
15790 withval=$with_spl; splsrc="$withval"
15791fi
15792
15793
15794
15795# Check whether --with-spl-obj was given.
15796if test "${with_spl_obj+set}" = set; then
15797 withval=$with_spl_obj; splbuild="$withval"
15798fi
15799
15800
15801
15802 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
15803$as_echo_n "checking spl source directory... " >&6; }
15804 if test -z "$splsrc"; then
15805 sourcelink=`ls -1d /usr/src/spl-*/${LINUX_VERSION} \
15806 2>/dev/null | tail -1`
15807
15808 if test -z "$sourcelink" || test ! -e $sourcelink; then
15809 sourcelink=../spl
15810 fi
15811
15812 if test -e $sourcelink; then
15813 splsrc=`readlink -f ${sourcelink}`
15814 else
15815 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15816$as_echo "Not found" >&6; }
15817 { { $as_echo "$as_me:$LINENO: error:
15818 *** Please make sure the spl devel package for your distribution
15819 *** is installed then try again. If that fails you can specify the
15820 *** location of the spl source with the '--with-spl=PATH' option." >&5
15821$as_echo "$as_me: error:
15822 *** Please make sure the spl devel package for your distribution
15823 *** is installed then try again. If that fails you can specify the
15824 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
15825 { (exit 1); exit 1; }; }
15826 fi
15827 else
15828 if test "$splsrc" = "NONE"; then
15829 splbuild=NONE
15830 splsrcver=NONE
15831 fi
15832 fi
15833
15834 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
15835$as_echo "$splsrc" >&6; }
15836 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
15837$as_echo_n "checking spl build directory... " >&6; }
15838 if test -z "$splbuild"; then
6283f55e 15839 splbuild=${splsrc}
e70e591c
BB
15840 fi
15841 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
15842$as_echo "$splbuild" >&6; }
15843
15844 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
15845$as_echo_n "checking spl source version... " >&6; }
5e612145
BB
15846 if test -r $splbuild/spl_config.h &&
15847 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
e70e591c
BB
15848
15849 splsrcver=`(echo "#include <spl_config.h>";
15850 echo "splsrcver=SPL_META_VERSION") |
5e612145 15851 cpp -I $splbuild |
e70e591c
BB
15852 grep "^splsrcver=" | cut -d \" -f 2`
15853 fi
15854
15855 if test -z "$splsrcver"; then
15856 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15857$as_echo "Not found" >&6; }
15858 { { $as_echo "$as_me:$LINENO: error:
15859 *** Cannot determine the version of the spl source.
15860 *** Please prepare the spl source before running this script" >&5
15861$as_echo "$as_me: error:
15862 *** Cannot determine the version of the spl source.
15863 *** Please prepare the spl source before running this script" >&2;}
15864 { (exit 1); exit 1; }; }
15865 fi
15866
15867 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
15868$as_echo "$splsrcver" >&6; }
15869
15870 SPL=${splsrc}
15871 SPL_OBJ=${splbuild}
15872 SPL_VERSION=${splsrcver}
15873
15874
15875
15876
15877
15878
15879 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
15880$as_echo_n "checking spl file name for module symbols... " >&6; }
15881 if test -r $SPL_OBJ/Module.symvers; then
15882 SPL_SYMBOLS=Module.symvers
15883 elif test -r $SPL_OBJ/Modules.symvers; then
15884 SPL_SYMBOLS=Modules.symvers
6283f55e
BB
15885 elif test -r $SPL_OBJ/module/Module.symvers; then
15886 SPL_SYMBOLS=Module.symvers
15887 elif test -r $SPL_OBJ/module/Modules.symvers; then
15888 SPL_SYMBOLS=Modules.symvers
e70e591c
BB
15889 else
15890 SPL_SYMBOLS=$LINUX_SYMBOLS
15891 fi
15892
15893 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
15894$as_echo "$SPL_SYMBOLS" >&6; }
15895
15896
15897
15898
15899
15900 if test "$ZFS_META_LICENSE" = CDDL; then
15901 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
15902$as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
15903
15904
15905cat confdefs.h - <<_ACEOF >conftest.c
15906/* confdefs.h. */
15907_ACEOF
15908cat confdefs.h >>conftest.$ac_ext
15909cat >>conftest.$ac_ext <<_ACEOF
15910/* end confdefs.h. */
15911
15912
15913 #ifndef AUTOCONF_INCLUDED
15914 #include <linux/config.h>
15915 #endif
15916
15917int
15918main (void)
15919{
15920
15921 #ifndef CONFIG_DEBUG_LOCK_ALLOC
15922 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
15923 #endif
15924
15925 ;
15926 return 0;
15927}
15928
15929_ACEOF
15930
15931
15932 rm -Rf build && mkdir -p build
15933 echo "obj-m := conftest.o" >build/Makefile
15934 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941 (eval $ac_try) 2>&5
15942 ac_status=$?
15943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945
15946 { $as_echo "$as_me:$LINENO: result: yes" >&5
15947$as_echo "yes" >&6; }
15948 { { $as_echo "$as_me:$LINENO: error:
15949 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
15950 *** incompatible with the CDDL license. You must rebuild
15951 *** your kernel without this option." >&5
15952$as_echo "$as_me: error:
15953 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is
15954 *** incompatible with the CDDL license. You must rebuild
15955 *** your kernel without this option." >&2;}
15956 { (exit 1); exit 1; }; }
15957
15958else
15959 $as_echo "$as_me: failed program was:" >&5
15960sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 { $as_echo "$as_me:$LINENO: result: no" >&5
15963$as_echo "no" >&6; }
15964
15965
15966
15967
15968fi
15969
15970 rm -Rf build
15971
15972
15973
15974 fi
15975
15976 if test "$ZFS_META_LICENSE" = GPL; then
15977
15978cat >>confdefs.h <<\_ACEOF
15979#define HAVE_GPL_ONLY_SYMBOLS 1
15980_ACEOF
15981
15982 fi
15983
15984
15985 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
15986$as_echo_n "checking block device operation prototypes... " >&6; }
15987
15988
15989cat confdefs.h - <<_ACEOF >conftest.c
15990/* confdefs.h. */
15991_ACEOF
15992cat confdefs.h >>conftest.$ac_ext
15993cat >>conftest.$ac_ext <<_ACEOF
15994/* end confdefs.h. */
15995
15996
15997 #include <linux/blkdev.h>
15998
15999int
16000main (void)
16001{
16002
16003 int (*blk_open) (struct block_device *, fmode_t) = NULL;
16004 int (*blk_release) (struct gendisk *, fmode_t) = NULL;
16005 int (*blk_ioctl) (struct block_device *, fmode_t,
16006 unsigned, unsigned long) = NULL;
16007 int (*blk_compat_ioctl) (struct block_device *, fmode_t,
16008 unsigned, unsigned long) = NULL;
16009 struct block_device_operations blk_ops = {
16010 .open = blk_open,
16011 .release = blk_release,
16012 .ioctl = blk_ioctl,
16013 .compat_ioctl = blk_compat_ioctl,
16014 };
16015
16016 blk_ops.open(NULL, 0);
16017 blk_ops.release(NULL, 0);
16018 blk_ops.ioctl(NULL, 0, 0, 0);
16019 blk_ops.compat_ioctl(NULL, 0, 0, 0);
16020
16021 ;
16022 return 0;
16023}
16024
16025_ACEOF
16026
16027
16028 rm -Rf build && mkdir -p build
16029 echo "obj-m := conftest.o" >build/Makefile
16030 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16033 ac_status=$?
16034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; }; then
16041
16042 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
16043$as_echo "struct block_device" >&6; }
16044
16045cat >>confdefs.h <<\_ACEOF
16046#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
16047_ACEOF
16048
16049
16050else
16051 $as_echo "$as_me: failed program was:" >&5
16052sed 's/^/| /' conftest.$ac_ext >&5
16053
16054 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
16055$as_echo "struct inode" >&6; }
16056
16057
16058
16059fi
16060
16061 rm -Rf build
16062
16063
16064
16065 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
16066$as_echo_n "checking whether kernel defines fmode_t... " >&6; }
16067
16068
16069cat confdefs.h - <<_ACEOF >conftest.c
16070/* confdefs.h. */
16071_ACEOF
16072cat confdefs.h >>conftest.$ac_ext
16073cat >>conftest.$ac_ext <<_ACEOF
16074/* end confdefs.h. */
16075
16076
16077 #include <linux/types.h>
16078
16079int
16080main (void)
16081{
16082
16083 fmode_t *ptr;
16084
16085 ;
16086 return 0;
16087}
16088
16089_ACEOF
16090
16091
16092 rm -Rf build && mkdir -p build
16093 echo "obj-m := conftest.o" >build/Makefile
16094 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105
16106 { $as_echo "$as_me:$LINENO: result: yes" >&5
16107$as_echo "yes" >&6; }
16108
16109cat >>confdefs.h <<\_ACEOF
16110#define HAVE_FMODE_T 1
16111_ACEOF
16112
16113
16114else
16115 $as_echo "$as_me: failed program was:" >&5
16116sed 's/^/| /' conftest.$ac_ext >&5
16117
16118 { $as_echo "$as_me:$LINENO: result: no" >&5
16119$as_echo "no" >&6; }
16120
16121
16122
16123fi
16124
16125 rm -Rf build
16126
16127
16128
16129
16130 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
16131$as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
16132
16133
16134cat confdefs.h - <<_ACEOF >conftest.c
16135/* confdefs.h. */
16136_ACEOF
16137cat confdefs.h >>conftest.$ac_ext
16138cat >>conftest.$ac_ext <<_ACEOF
16139/* end confdefs.h. */
16140
16141
16142 #include <linux/kobject.h>
16143
16144int
16145main (void)
16146{
16147
16148 int val;
16149 val = KOBJ_NAME_LEN;
16150
16151 ;
16152 return 0;
16153}
16154
16155_ACEOF
16156
16157
16158 rm -Rf build && mkdir -p build
16159 echo "obj-m := conftest.o" >build/Makefile
16160 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16163 ac_status=$?
16164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; }; then
16171
16172 { $as_echo "$as_me:$LINENO: result: yes" >&5
16173$as_echo "yes" >&6; }
16174
16175cat >>confdefs.h <<\_ACEOF
16176#define HAVE_KOBJ_NAME_LEN 1
16177_ACEOF
16178
16179
16180else
16181 $as_echo "$as_me: failed program was:" >&5
16182sed 's/^/| /' conftest.$ac_ext >&5
16183
16184 { $as_echo "$as_me:$LINENO: result: no" >&5
16185$as_echo "no" >&6; }
16186
16187
16188
16189fi
16190
16191 rm -Rf build
16192
16193
16194
16195
16196 { $as_echo "$as_me:$LINENO: checking whether symbol open_bdev_exclusive is exported" >&5
16197$as_echo_n "checking whether symbol open_bdev_exclusive is exported... " >&6; }
16198 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
16199 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
16200 rc=$?
16201 if test $rc -ne 0; then
16202 export=0
16203 for file in fs/block_dev.c; do
16204 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" "$LINUX/$file" 2>/dev/null
16205 rc=$?
16206 if test $rc -eq 0; then
16207 export=1
16208 break;
16209 fi
16210 done
16211 if test $export -eq 0; then
16212 { $as_echo "$as_me:$LINENO: result: no" >&5
16213$as_echo "no" >&6; }
16214
16215 else
16216 { $as_echo "$as_me:$LINENO: result: yes" >&5
16217$as_echo "yes" >&6; }
16218
16219cat >>confdefs.h <<\_ACEOF
16220#define HAVE_OPEN_BDEV_EXCLUSIVE 1
16221_ACEOF
16222
16223 fi
16224 else
16225 { $as_echo "$as_me:$LINENO: result: yes" >&5
16226$as_echo "yes" >&6; }
16227
16228cat >>confdefs.h <<\_ACEOF
16229#define HAVE_OPEN_BDEV_EXCLUSIVE 1
16230_ACEOF
16231
16232 fi
16233
16234
16235
16236 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
16237$as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
16238
16239
16240cat confdefs.h - <<_ACEOF >conftest.c
16241/* confdefs.h. */
16242_ACEOF
16243cat confdefs.h >>conftest.$ac_ext
16244cat >>conftest.$ac_ext <<_ACEOF
16245/* end confdefs.h. */
16246
16247
16248 #include <linux/buffer_head.h>
16249
16250int
16251main (void)
16252{
16253
16254 struct block_device *bdev;
16255 invalidate_bdev(bdev);
16256
16257 ;
16258 return 0;
16259}
16260
16261_ACEOF
16262
16263
16264 rm -Rf build && mkdir -p build
16265 echo "obj-m := conftest.o" >build/Makefile
16266 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16269 ac_status=$?
16270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277
16278 { $as_echo "$as_me:$LINENO: result: yes" >&5
16279$as_echo "yes" >&6; }
16280
16281cat >>confdefs.h <<\_ACEOF
16282#define HAVE_1ARG_INVALIDATE_BDEV 1
16283_ACEOF
16284
16285
16286else
16287 $as_echo "$as_me: failed program was:" >&5
16288sed 's/^/| /' conftest.$ac_ext >&5
16289
16290 { $as_echo "$as_me:$LINENO: result: no" >&5
16291$as_echo "no" >&6; }
16292
16293
16294
16295fi
16296
16297 rm -Rf build
16298
16299
16300
16301
16302 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
16303$as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
16304
16305
16306cat confdefs.h - <<_ACEOF >conftest.c
16307/* confdefs.h. */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h. */
16312
16313
16314 #include <linux/blkdev.h>
16315
16316int
16317main (void)
16318{
16319
16320 struct block_device *bdev = NULL;
16321 bdev_logical_block_size(bdev);
16322
16323 ;
16324 return 0;
16325}
16326
16327_ACEOF
16328
16329
16330 rm -Rf build && mkdir -p build
16331 echo "obj-m := conftest.o" >build/Makefile
16332 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; }; then
16343
16344 { $as_echo "$as_me:$LINENO: result: yes" >&5
16345$as_echo "yes" >&6; }
16346
16347cat >>confdefs.h <<\_ACEOF
16348#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
16349_ACEOF
16350
16351
16352else
16353 $as_echo "$as_me: failed program was:" >&5
16354sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 { $as_echo "$as_me:$LINENO: result: no" >&5
16357$as_echo "no" >&6; }
16358
16359
16360
16361fi
16362
16363 rm -Rf build
16364
16365
16366
16367
16368 { $as_echo "$as_me:$LINENO: checking whether bio_empty_barrier() is defined" >&5
16369$as_echo_n "checking whether bio_empty_barrier() is defined... " >&6; }
16370 EXTRA_KCFLAGS="-Werror"
16371
16372
16373cat confdefs.h - <<_ACEOF >conftest.c
16374/* confdefs.h. */
16375_ACEOF
16376cat confdefs.h >>conftest.$ac_ext
16377cat >>conftest.$ac_ext <<_ACEOF
16378/* end confdefs.h. */
16379
16380
16381 #include <linux/bio.h>
16382
16383int
16384main (void)
16385{
16386
16387 struct bio bio;
16388 (void)bio_empty_barrier(&bio);
16389
16390 ;
16391 return 0;
16392}
16393
16394_ACEOF
16395
16396
16397 rm -Rf build && mkdir -p build
16398 echo "obj-m := conftest.o" >build/Makefile
16399 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410
16411 { $as_echo "$as_me:$LINENO: result: yes" >&5
16412$as_echo "yes" >&6; }
16413
16414cat >>confdefs.h <<\_ACEOF
16415#define HAVE_BIO_EMPTY_BARRIER 1
16416_ACEOF
16417
16418
16419else
16420 $as_echo "$as_me: failed program was:" >&5
16421sed 's/^/| /' conftest.$ac_ext >&5
16422
16423 { $as_echo "$as_me:$LINENO: result: no" >&5
16424$as_echo "no" >&6; }
16425
16426
16427
16428fi
16429
16430 rm -Rf build
16431
16432
16433
16434
f4af6bb7
BB
16435 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST is defined" >&5
16436$as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
16437
16438
16439cat confdefs.h - <<_ACEOF >conftest.c
16440/* confdefs.h. */
16441_ACEOF
16442cat confdefs.h >>conftest.$ac_ext
16443cat >>conftest.$ac_ext <<_ACEOF
16444/* end confdefs.h. */
16445
16446
16447 #include <linux/bio.h>
16448
16449int
16450main (void)
16451{
16452
16453 int flags;
16454 flags = (1 << BIO_RW_FAILFAST);
16455
16456 ;
16457 return 0;
16458}
16459
16460_ACEOF
16461
16462
16463 rm -Rf build && mkdir -p build
16464 echo "obj-m := conftest.o" >build/Makefile
16465 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16468 ac_status=$?
16469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16473 ac_status=$?
16474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476
16477 { $as_echo "$as_me:$LINENO: result: yes" >&5
16478$as_echo "yes" >&6; }
16479
16480cat >>confdefs.h <<\_ACEOF
16481#define HAVE_BIO_RW_FAILFAST 1
16482_ACEOF
16483
16484
16485else
16486 $as_echo "$as_me: failed program was:" >&5
16487sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 { $as_echo "$as_me:$LINENO: result: no" >&5
16490$as_echo "no" >&6; }
16491
16492
16493
16494fi
16495
16496 rm -Rf build
16497
16498
16499
16500
2959d94a
BB
16501 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
16502$as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
16503
16504
16505cat confdefs.h - <<_ACEOF >conftest.c
16506/* confdefs.h. */
16507_ACEOF
16508cat confdefs.h >>conftest.$ac_ext
16509cat >>conftest.$ac_ext <<_ACEOF
16510/* end confdefs.h. */
16511
16512
16513 #include <linux/bio.h>
16514
16515int
16516main (void)
16517{
16518
16519 int flags;
16520 flags = ((1 << BIO_RW_FAILFAST_DEV) |
16521 (1 << BIO_RW_FAILFAST_TRANSPORT) |
16522 (1 << BIO_RW_FAILFAST_DRIVER));
16523
16524 ;
16525 return 0;
16526}
16527
16528_ACEOF
16529
16530
16531 rm -Rf build && mkdir -p build
16532 echo "obj-m := conftest.o" >build/Makefile
16533 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16536 ac_status=$?
16537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16541 ac_status=$?
16542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544
16545 { $as_echo "$as_me:$LINENO: result: yes" >&5
16546$as_echo "yes" >&6; }
16547
16548cat >>confdefs.h <<\_ACEOF
f4af6bb7
BB
16549#define HAVE_BIO_RW_FAILFAST_DTD 1
16550_ACEOF
16551
16552
16553else
16554 $as_echo "$as_me: failed program was:" >&5
16555sed 's/^/| /' conftest.$ac_ext >&5
16556
16557 { $as_echo "$as_me:$LINENO: result: no" >&5
16558$as_echo "no" >&6; }
16559
16560
16561
16562fi
16563
16564 rm -Rf build
16565
16566
16567
16568
16569 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
16570$as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
16571
16572
16573cat confdefs.h - <<_ACEOF >conftest.c
16574/* confdefs.h. */
16575_ACEOF
16576cat confdefs.h >>conftest.$ac_ext
16577cat >>conftest.$ac_ext <<_ACEOF
16578/* end confdefs.h. */
16579
16580
16581 #include <linux/bio.h>
16582
16583int
16584main (void)
16585{
16586
16587 int flags;
16588 flags = REQ_FAILFAST_MASK;
16589
16590 ;
16591 return 0;
16592}
16593
16594_ACEOF
16595
16596
16597 rm -Rf build && mkdir -p build
16598 echo "obj-m := conftest.o" >build/Makefile
16599 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610
16611 { $as_echo "$as_me:$LINENO: result: yes" >&5
16612$as_echo "yes" >&6; }
16613
16614cat >>confdefs.h <<\_ACEOF
16615#define HAVE_BIO_REQ_FAILFAST_MASK 1
2959d94a
BB
16616_ACEOF
16617
16618
16619else
16620 $as_echo "$as_me: failed program was:" >&5
16621sed 's/^/| /' conftest.$ac_ext >&5
16622
16623 { $as_echo "$as_me:$LINENO: result: no" >&5
16624$as_echo "no" >&6; }
16625
16626
16627
16628fi
16629
16630 rm -Rf build
16631
16632
16633
16634
e70e591c
BB
16635 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 2 args" >&5
16636$as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
16637 tmp_flags="$EXTRA_KCFLAGS"
16638 EXTRA_KCFLAGS="-Werror"
16639
16640
16641cat confdefs.h - <<_ACEOF >conftest.c
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647
16648
16649 #include <linux/bio.h>
16650
16651int
16652main (void)
16653{
16654
16655 void (*wanted_end_io)(struct bio *, int) = NULL;
16656 bio_end_io_t *local_end_io;
16657
16658 local_end_io = wanted_end_io;
16659
16660 ;
16661 return 0;
16662}
16663
16664_ACEOF
16665
16666
16667 rm -Rf build && mkdir -p build
16668 echo "obj-m := conftest.o" >build/Makefile
16669 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680
16681 { $as_echo "$as_me:$LINENO: result: yes" >&5
16682$as_echo "yes" >&6; }
16683
16684cat >>confdefs.h <<\_ACEOF
16685#define HAVE_2ARGS_BIO_END_IO_T 1
16686_ACEOF
16687
16688
16689else
16690 $as_echo "$as_me: failed program was:" >&5
16691sed 's/^/| /' conftest.$ac_ext >&5
16692
16693 { $as_echo "$as_me:$LINENO: result: no" >&5
16694$as_echo "no" >&6; }
16695
16696
16697
16698fi
16699
16700 rm -Rf build
16701
16702
16703 EXTRA_KCFLAGS="$tmp_flags"
16704
16705
675de5aa
BB
16706 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNC is defined" >&5
16707$as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
16708
16709
16710cat confdefs.h - <<_ACEOF >conftest.c
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716
16717
16718 #include <linux/bio.h>
16719
16720int
16721main (void)
16722{
16723
16724 int flags;
16725 flags = BIO_RW_SYNC;
16726
16727 ;
16728 return 0;
16729}
16730
16731_ACEOF
16732
16733
16734 rm -Rf build && mkdir -p build
16735 echo "obj-m := conftest.o" >build/Makefile
16736 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747
16748 { $as_echo "$as_me:$LINENO: result: yes" >&5
16749$as_echo "yes" >&6; }
16750
16751cat >>confdefs.h <<\_ACEOF
16752#define HAVE_BIO_RW_SYNC 1
16753_ACEOF
16754
16755
16756else
16757 $as_echo "$as_me: failed program was:" >&5
16758sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 { $as_echo "$as_me:$LINENO: result: no" >&5
16761$as_echo "no" >&6; }
16762
16763
16764
16765fi
16766
16767 rm -Rf build
16768
16769
16770
16771
e70e591c
BB
16772 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_SYNCIO is defined" >&5
16773$as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
16774
16775
16776cat confdefs.h - <<_ACEOF >conftest.c
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
16782
16783
16784 #include <linux/bio.h>
16785
16786int
16787main (void)
16788{
16789
16790 int flags;
16791 flags = BIO_RW_SYNCIO;
16792
16793 ;
16794 return 0;
16795}
16796
16797_ACEOF
16798
16799
16800 rm -Rf build && mkdir -p build
16801 echo "obj-m := conftest.o" >build/Makefile
16802 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16805 ac_status=$?
16806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813
16814 { $as_echo "$as_me:$LINENO: result: yes" >&5
16815$as_echo "yes" >&6; }
16816
16817cat >>confdefs.h <<\_ACEOF
16818#define HAVE_BIO_RW_SYNCIO 1
16819_ACEOF
16820
16821
16822else
16823 $as_echo "$as_me: failed program was:" >&5
16824sed 's/^/| /' conftest.$ac_ext >&5
16825
16826 { $as_echo "$as_me:$LINENO: result: no" >&5
16827$as_echo "no" >&6; }
16828
16829
16830
16831fi
16832
16833 rm -Rf build
16834
16835
16836
16837
675de5aa
BB
16838 { $as_echo "$as_me:$LINENO: checking whether REQ_SYNC is defined" >&5
16839$as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
16840
16841
16842cat confdefs.h - <<_ACEOF >conftest.c
16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848
16849
16850 #include <linux/bio.h>
16851
16852int
16853main (void)
16854{
16855
16856 int flags;
16857 flags = REQ_SYNC;
16858
16859 ;
16860 return 0;
16861}
16862
16863_ACEOF
16864
16865
16866 rm -Rf build && mkdir -p build
16867 echo "obj-m := conftest.o" >build/Makefile
16868 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
16872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879
16880 { $as_echo "$as_me:$LINENO: result: yes" >&5
16881$as_echo "yes" >&6; }
16882
16883cat >>confdefs.h <<\_ACEOF
16884#define HAVE_REQ_SYNC 1
16885_ACEOF
16886
16887
16888else
16889 $as_echo "$as_me: failed program was:" >&5
16890sed 's/^/| /' conftest.$ac_ext >&5
16891
16892 { $as_echo "$as_me:$LINENO: result: no" >&5
16893$as_echo "no" >&6; }
16894
16895
16896
16897fi
16898
16899 rm -Rf build
16900
16901
16902
16903
e70e591c
BB
16904 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is available" >&5
16905$as_echo_n "checking whether blk_end_request() is available... " >&6; }
16906
16907
16908cat confdefs.h - <<_ACEOF >conftest.c
16909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h. */
16914
16915
16916 #include <linux/blkdev.h>
16917
16918int
16919main (void)
16920{
16921
16922 struct request *req = NULL;
16923 (void) blk_end_request(req, 0, 0);
16924
16925 ;
16926 return 0;
16927}
16928
16929_ACEOF
16930
16931
16932 rm -Rf build && mkdir -p build
16933 echo "obj-m := conftest.o" >build/Makefile
16934 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16942 ac_status=$?
16943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; }; then
16945
16946 { $as_echo "$as_me:$LINENO: result: yes" >&5
16947$as_echo "yes" >&6; }
16948
16949cat >>confdefs.h <<\_ACEOF
16950#define HAVE_BLK_END_REQUEST 1
16951_ACEOF
16952
16953
16954else
16955 $as_echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 { $as_echo "$as_me:$LINENO: result: no" >&5
16959$as_echo "no" >&6; }
16960
16961
16962
16963fi
16964
16965 rm -Rf build
16966
16967
16968
16969 { $as_echo "$as_me:$LINENO: checking whether blk_end_request() is GPL-only" >&5
16970$as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
16971
16972
16973cat confdefs.h - <<_ACEOF >conftest.c
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979
16980
16981 #include <linux/module.h>
16982 #include <linux/blkdev.h>
16983
16984 MODULE_LICENSE("CDDL");
16985
16986int
16987main (void)
16988{
16989
16990 struct request *req = NULL;
16991 (void) blk_end_request(req, 0, 0);
16992
16993 ;
16994 return 0;
16995}
16996
16997_ACEOF
16998
16999
17000 rm -Rf build && mkdir -p build
17001 echo "obj-m := conftest.o" >build/Makefile
17002 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013
17014 { $as_echo "$as_me:$LINENO: result: no" >&5
17015$as_echo "no" >&6; }
17016
17017else
17018 $as_echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 { $as_echo "$as_me:$LINENO: result: yes" >&5
17022$as_echo "yes" >&6; }
17023
17024cat >>confdefs.h <<\_ACEOF
17025#define HAVE_BLK_END_REQUEST_GPL_ONLY 1
17026_ACEOF
17027
17028
17029
17030
17031fi
17032
17033 rm -Rf build
17034
17035
17036
17037
17038 { $as_echo "$as_me:$LINENO: checking whether blk_fetch_request() is available" >&5
17039$as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
17040
17041
17042cat confdefs.h - <<_ACEOF >conftest.c
17043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
17048
17049
17050 #include <linux/blkdev.h>
17051
17052int
17053main (void)
17054{
17055
17056 struct request_queue *q = NULL;
17057 (void) blk_fetch_request(q);
17058
17059 ;
17060 return 0;
17061}
17062
17063_ACEOF
17064
17065
17066 rm -Rf build && mkdir -p build
17067 echo "obj-m := conftest.o" >build/Makefile
17068 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079
17080 { $as_echo "$as_me:$LINENO: result: yes" >&5
17081$as_echo "yes" >&6; }
17082
17083cat >>confdefs.h <<\_ACEOF
17084#define HAVE_BLK_FETCH_REQUEST 1
17085_ACEOF
17086
17087
17088else
17089 $as_echo "$as_me: failed program was:" >&5
17090sed 's/^/| /' conftest.$ac_ext >&5
17091
17092 { $as_echo "$as_me:$LINENO: result: no" >&5
17093$as_echo "no" >&6; }
17094
17095
17096
17097fi
17098
17099 rm -Rf build
17100
17101
17102
17103
17104 { $as_echo "$as_me:$LINENO: checking whether blk_requeue_request() is available" >&5
17105$as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
17106
17107
17108cat confdefs.h - <<_ACEOF >conftest.c
17109/* confdefs.h. */
17110_ACEOF
17111cat confdefs.h >>conftest.$ac_ext
17112cat >>conftest.$ac_ext <<_ACEOF
17113/* end confdefs.h. */
17114
17115
17116 #include <linux/blkdev.h>
17117
17118int
17119main (void)
17120{
17121
17122 struct request_queue *q = NULL;
17123 struct request *req = NULL;
17124 blk_requeue_request(q, req);
17125
17126 ;
17127 return 0;
17128}
17129
17130_ACEOF
17131
17132
17133 rm -Rf build && mkdir -p build
17134 echo "obj-m := conftest.o" >build/Makefile
17135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17143 ac_status=$?
17144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
17146
17147 { $as_echo "$as_me:$LINENO: result: yes" >&5
17148$as_echo "yes" >&6; }
17149
17150cat >>confdefs.h <<\_ACEOF
17151#define HAVE_BLK_REQUEUE_REQUEST 1
17152_ACEOF
17153
17154
17155else
17156 $as_echo "$as_me: failed program was:" >&5
17157sed 's/^/| /' conftest.$ac_ext >&5
17158
17159 { $as_echo "$as_me:$LINENO: result: no" >&5
17160$as_echo "no" >&6; }
17161
17162
17163
17164fi
17165
17166 rm -Rf build
17167
17168
17169
17170
17171 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is available" >&5
17172$as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
17173
17174
17175cat confdefs.h - <<_ACEOF >conftest.c
17176/* confdefs.h. */
17177_ACEOF
17178cat confdefs.h >>conftest.$ac_ext
17179cat >>conftest.$ac_ext <<_ACEOF
17180/* end confdefs.h. */
17181
17182
17183 #include <linux/blkdev.h>
17184
17185int
17186main (void)
17187{
17188
17189 struct request *req = NULL;
17190 (void) blk_rq_bytes(req);
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
17216cat >>confdefs.h <<\_ACEOF
17217#define HAVE_BLK_RQ_BYTES 1
17218_ACEOF
17219
17220
17221else
17222 $as_echo "$as_me: failed program was:" >&5
17223sed 's/^/| /' conftest.$ac_ext >&5
17224
17225 { $as_echo "$as_me:$LINENO: result: no" >&5
17226$as_echo "no" >&6; }
17227
17228
17229
17230fi
17231
17232 rm -Rf build
17233
17234
17235
17236 { $as_echo "$as_me:$LINENO: checking whether blk_rq_bytes() is GPL-only" >&5
17237$as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
17238
17239
17240cat confdefs.h - <<_ACEOF >conftest.c
17241/* confdefs.h. */
17242_ACEOF
17243cat confdefs.h >>conftest.$ac_ext
17244cat >>conftest.$ac_ext <<_ACEOF
17245/* end confdefs.h. */
17246
17247
17248 #include <linux/module.h>
17249 #include <linux/blkdev.h>
17250
17251 MODULE_LICENSE("CDDL");
17252
17253int
17254main (void)
17255{
17256
17257 struct request *req = NULL;
17258 (void) blk_rq_bytes(req);
17259
17260 ;
17261 return 0;
17262}
17263
17264_ACEOF
17265
17266
17267 rm -Rf build && mkdir -p build
17268 echo "obj-m := conftest.o" >build/Makefile
17269 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17276 (eval $ac_try) 2>&5
17277 ac_status=$?
17278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); }; }; then
17280
17281 { $as_echo "$as_me:$LINENO: result: no" >&5
17282$as_echo "no" >&6; }
17283
17284else
17285 $as_echo "$as_me: failed program was:" >&5
17286sed 's/^/| /' conftest.$ac_ext >&5
17287
17288 { $as_echo "$as_me:$LINENO: result: yes" >&5
17289$as_echo "yes" >&6; }
17290
17291cat >>confdefs.h <<\_ACEOF
17292#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1
17293_ACEOF
17294
17295
17296
17297
17298fi
17299
17300 rm -Rf build
17301
17302
17303
17304
17305 { $as_echo "$as_me:$LINENO: checking whether blk_rq_pos() is available" >&5
17306$as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
17307
17308
17309cat confdefs.h - <<_ACEOF >conftest.c
17310/* confdefs.h. */
17311_ACEOF
17312cat confdefs.h >>conftest.$ac_ext
17313cat >>conftest.$ac_ext <<_ACEOF
17314/* end confdefs.h. */
17315
17316
17317 #include <linux/blkdev.h>
17318
17319int
17320main (void)
17321{
17322
17323 struct request *req = NULL;
17324 (void) blk_rq_pos(req);
17325
17326 ;
17327 return 0;
17328}
17329
17330_ACEOF
17331
17332
17333 rm -Rf build && mkdir -p build
17334 echo "obj-m := conftest.o" >build/Makefile
17335 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17342 (eval $ac_try) 2>&5
17343 ac_status=$?
17344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); }; }; then
17346
17347 { $as_echo "$as_me:$LINENO: result: yes" >&5
17348$as_echo "yes" >&6; }
17349
17350cat >>confdefs.h <<\_ACEOF
17351#define HAVE_BLK_RQ_POS 1
17352_ACEOF
17353
17354
17355else
17356 $as_echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
17359 { $as_echo "$as_me:$LINENO: result: no" >&5
17360$as_echo "no" >&6; }
17361
17362
17363
17364fi
17365
17366 rm -Rf build
17367
17368
17369
17370
17371 { $as_echo "$as_me:$LINENO: checking whether blk_rq_sectors() is available" >&5
17372$as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
17373
17374
17375cat confdefs.h - <<_ACEOF >conftest.c
17376/* confdefs.h. */
17377_ACEOF
17378cat confdefs.h >>conftest.$ac_ext
17379cat >>conftest.$ac_ext <<_ACEOF
17380/* end confdefs.h. */
17381
17382
17383 #include <linux/blkdev.h>
17384
17385int
17386main (void)
17387{
17388
17389 struct request *req = NULL;
17390 (void) blk_rq_sectors(req);
17391
17392 ;
17393 return 0;
17394}
17395
17396_ACEOF
17397
17398
17399 rm -Rf build && mkdir -p build
17400 echo "obj-m := conftest.o" >build/Makefile
17401 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412
17413 { $as_echo "$as_me:$LINENO: result: yes" >&5
17414$as_echo "yes" >&6; }
17415
17416cat >>confdefs.h <<\_ACEOF
17417#define HAVE_BLK_RQ_SECTORS 1
17418_ACEOF
17419
17420
17421else
17422 $as_echo "$as_me: failed program was:" >&5
17423sed 's/^/| /' conftest.$ac_ext >&5
17424
17425 { $as_echo "$as_me:$LINENO: result: no" >&5
17426$as_echo "no" >&6; }
17427
17428
17429
17430fi
17431
17432 rm -Rf build
17433
17434
17435
17436
17437 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
17438$as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17439
17440
17441cat confdefs.h - <<_ACEOF >conftest.c
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447
17448
17449 #include <linux/blkdev.h>
17450
17451int
17452main (void)
17453{
17454
17455 struct gendisk *disk = NULL;
17456 (void) get_disk_ro(disk);
17457
17458 ;
17459 return 0;
17460}
17461
17462_ACEOF
17463
17464
17465 rm -Rf build && mkdir -p build
17466 echo "obj-m := conftest.o" >build/Makefile
17467 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17475 ac_status=$?
17476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; }; then
17478
17479 { $as_echo "$as_me:$LINENO: result: yes" >&5
17480$as_echo "yes" >&6; }
17481
17482cat >>confdefs.h <<\_ACEOF
17483#define HAVE_GET_DISK_RO 1
17484_ACEOF
17485
17486
17487else
17488 $as_echo "$as_me: failed program was:" >&5
17489sed 's/^/| /' conftest.$ac_ext >&5
17490
17491 { $as_echo "$as_me:$LINENO: result: no" >&5
17492$as_echo "no" >&6; }
17493
17494
17495
17496fi
17497
17498 rm -Rf build
17499
17500
17501
17502
17503 { $as_echo "$as_me:$LINENO: checking whether rq_is_sync() is available" >&5
17504$as_echo_n "checking whether rq_is_sync() is available... " >&6; }
17505
17506
17507cat confdefs.h - <<_ACEOF >conftest.c
17508/* confdefs.h. */
17509_ACEOF
17510cat confdefs.h >>conftest.$ac_ext
17511cat >>conftest.$ac_ext <<_ACEOF
17512/* end confdefs.h. */
17513
17514
17515 #include <linux/blkdev.h>
17516
17517int
17518main (void)
17519{
17520
17521 struct request *req = NULL;
17522 (void) rq_is_sync(req);
17523
17524 ;
17525 return 0;
17526}
17527
17528_ACEOF
17529
17530
17531 rm -Rf build && mkdir -p build
17532 echo "obj-m := conftest.o" >build/Makefile
17533 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544
17545 { $as_echo "$as_me:$LINENO: result: yes" >&5
17546$as_echo "yes" >&6; }
17547
17548cat >>confdefs.h <<\_ACEOF
17549#define HAVE_RQ_IS_SYNC 1
17550_ACEOF
17551
17552
17553else
17554 $as_echo "$as_me: failed program was:" >&5
17555sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 { $as_echo "$as_me:$LINENO: result: no" >&5
17558$as_echo "no" >&6; }
17559
17560
17561
17562fi
17563
17564 rm -Rf build
17565
17566
17567
17568
17569 { $as_echo "$as_me:$LINENO: checking whether rq_for_each_segment() is available" >&5
17570$as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
17571
17572
17573cat confdefs.h - <<_ACEOF >conftest.c
17574/* confdefs.h. */
17575_ACEOF
17576cat confdefs.h >>conftest.$ac_ext
17577cat >>conftest.$ac_ext <<_ACEOF
17578/* end confdefs.h. */
17579
17580
17581 #include <linux/blkdev.h>
17582
17583int
17584main (void)
17585{
17586
17587 struct bio_vec *bv;
17588 struct req_iterator iter;
17589 struct request *req = NULL;
17590 rq_for_each_segment(bv, req, iter) { }
17591
17592 ;
17593 return 0;
17594}
17595
17596_ACEOF
17597
17598
17599 rm -Rf build && mkdir -p build
17600 echo "obj-m := conftest.o" >build/Makefile
17601 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612
17613 { $as_echo "$as_me:$LINENO: result: yes" >&5
17614$as_echo "yes" >&6; }
17615
17616cat >>confdefs.h <<\_ACEOF
17617#define HAVE_RQ_FOR_EACH_SEGMENT 1
17618_ACEOF
17619
17620
17621else
17622 $as_echo "$as_me: failed program was:" >&5
17623sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 { $as_echo "$as_me:$LINENO: result: no" >&5
17626$as_echo "no" >&6; }
17627
17628
17629
777d4af8
BB
17630fi
17631
17632 rm -Rf build
17633
17634
17635
17636 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_hander" >&5
17637$as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
17638
17639
17640cat confdefs.h - <<_ACEOF >conftest.c
17641/* confdefs.h. */
17642_ACEOF
17643cat confdefs.h >>conftest.$ac_ext
17644cat >>conftest.$ac_ext <<_ACEOF
17645/* end confdefs.h. */
17646
17647
17648 #include <linux/fs.h>
17649 #include <linux/xattr.h>
17650
17651 const struct xattr_handler xattr_test_handler = {
17652 .prefix = "test",
17653 .get = NULL,
17654 .set = NULL,
17655 };
17656
17657 const struct xattr_handler *xattr_handlers[] = {
17658 &xattr_test_handler,
17659 };
17660
17661int
17662main (void)
17663{
17664
17665 struct super_block sb;
17666
17667 sb.s_xattr = xattr_handlers;
17668
17669 ;
17670 return 0;
17671}
17672
17673_ACEOF
17674
17675
17676 rm -Rf build && mkdir -p build
17677 echo "obj-m := conftest.o" >build/Makefile
17678 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17689
17690 { $as_echo "$as_me:$LINENO: result: yes" >&5
17691$as_echo "yes" >&6; }
17692
17693cat >>confdefs.h <<\_ACEOF
17694#define HAVE_CONST_XATTR_HANDLER 1
17695_ACEOF
17696
17697
17698else
17699 $as_echo "$as_me: failed program was:" >&5
17700sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 { $as_echo "$as_me:$LINENO: result: no" >&5
17703$as_echo "no" >&6; }
17704
17705
17706
e70e591c
BB
17707fi
17708
17709 rm -Rf build
17710
17711
17712
17713
f9637c6c
BB
17714 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
17715$as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17716
17717
17718cat confdefs.h - <<_ACEOF >conftest.c
17719/* confdefs.h. */
17720_ACEOF
17721cat confdefs.h >>conftest.$ac_ext
17722cat >>conftest.$ac_ext <<_ACEOF
17723/* end confdefs.h. */
17724
17725
17726 #include <linux/xattr.h>
17727
17728int
17729main (void)
17730{
17731
17732 int (*get)(struct dentry *dentry, const char *name,
17733 void *buffer, size_t size, int handler_flags) = NULL;
17734 struct xattr_handler xops;
17735
17736 xops.get = get;
17737
17738 ;
17739 return 0;
17740}
17741
17742_ACEOF
17743
17744
17745 rm -Rf build && mkdir -p build
17746 echo "obj-m := conftest.o" >build/Makefile
17747 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758
17759 { $as_echo "$as_me:$LINENO: result: yes" >&5
17760$as_echo "yes" >&6; }
17761
17762cat >>confdefs.h <<\_ACEOF
17763#define HAVE_DENTRY_XATTR_GET 1
17764_ACEOF
17765
17766
17767else
17768 $as_echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 { $as_echo "$as_me:$LINENO: result: no" >&5
17772$as_echo "no" >&6; }
17773
17774
17775
17776fi
17777
17778 rm -Rf build
17779
17780
17781
17782
17783 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
17784$as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
17785
17786
17787cat confdefs.h - <<_ACEOF >conftest.c
17788/* confdefs.h. */
17789_ACEOF
17790cat confdefs.h >>conftest.$ac_ext
17791cat >>conftest.$ac_ext <<_ACEOF
17792/* end confdefs.h. */
17793
17794
17795 #include <linux/xattr.h>
17796
17797int
17798main (void)
17799{
17800
17801 int (*set)(struct dentry *dentry, const char *name,
17802 const void *buffer, size_t size, int flags,
17803 int handler_flags) = NULL;
17804 struct xattr_handler xops;
17805
17806 xops.set = set;
17807
17808 ;
17809 return 0;
17810}
17811
17812_ACEOF
17813
17814
17815 rm -Rf build && mkdir -p build
17816 echo "obj-m := conftest.o" >build/Makefile
17817 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828
17829 { $as_echo "$as_me:$LINENO: result: yes" >&5
17830$as_echo "yes" >&6; }
17831
17832cat >>confdefs.h <<\_ACEOF
17833#define HAVE_DENTRY_XATTR_SET 1
17834_ACEOF
17835
17836
17837else
17838 $as_echo "$as_me: failed program was:" >&5
17839sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 { $as_echo "$as_me:$LINENO: result: no" >&5
17842$as_echo "no" >&6; }
17843
17844
17845
17846fi
17847
17848 rm -Rf build
17849
17850
17851
17852
7268e1be
BB
17853 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants 2 args" >&5
17854$as_echo_n "checking whether fops->fsync() wants 2 args... " >&6; }
17855
17856
17857cat confdefs.h - <<_ACEOF >conftest.c
17858/* confdefs.h. */
17859_ACEOF
17860cat confdefs.h >>conftest.$ac_ext
17861cat >>conftest.$ac_ext <<_ACEOF
17862/* end confdefs.h. */
17863
17864
17865 #include <linux/fs.h>
17866
17867int
17868main (void)
17869{
17870
17871 int (*fsync) (struct file *, int datasync) = NULL;
17872 struct file_operations fops;
17873
17874 fops.fsync = fsync;
17875
17876 ;
17877 return 0;
17878}
17879
17880_ACEOF
17881
17882
17883 rm -Rf build && mkdir -p build
17884 echo "obj-m := conftest.o" >build/Makefile
17885 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887 (eval $ac_try) 2>&5
17888 ac_status=$?
17889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17893 ac_status=$?
17894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896
17897 { $as_echo "$as_me:$LINENO: result: yes" >&5
17898$as_echo "yes" >&6; }
17899
17900cat >>confdefs.h <<\_ACEOF
17901#define HAVE_2ARGS_FSYNC 1
17902_ACEOF
17903
17904
17905else
17906 $as_echo "$as_me: failed program was:" >&5
17907sed 's/^/| /' conftest.$ac_ext >&5
17908
17909 { $as_echo "$as_me:$LINENO: result: no" >&5
17910$as_echo "no" >&6; }
17911
17912
17913
17914fi
17915
17916 rm -Rf build
17917
17918
17919
17920
e70e591c
BB
17921 if test "$LINUX_OBJ" != "$LINUX"; then
17922 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17923 fi
17924
17925
17926
6283f55e
BB
17927 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17928 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
17929
17930
e70e591c
BB
17931
17932
17933
17934 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
17935$as_echo_n "checking for target asm dir... " >&6; }
17936 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
17937
17938 case $TARGET_ARCH in
17939 i386|x86_64)
17940 TARGET_ASM_DIR=asm-${TARGET_ARCH}
17941 ;;
17942 *)
17943 TARGET_ASM_DIR=asm-generic
17944 ;;
17945 esac
17946
17947
17948 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
17949$as_echo "$TARGET_ASM_DIR" >&6; }
17950
17951
e70e591c
BB
17952 { $as_echo "$as_me:$LINENO: checking for ioctl()" >&5
17953$as_echo_n "checking for ioctl()... " >&6; }
17954 cat >conftest.$ac_ext <<_ACEOF
17955/* confdefs.h. */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
17959/* end confdefs.h. */
17960#include <unistd.h>
17961
17962_ACEOF
17963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17964 $EGREP "ioctl" >/dev/null 2>&1; then
17965 is_unistd=yes
17966else
17967 is_unistd=no
17968fi
17969rm -f conftest*
17970
17971 cat >conftest.$ac_ext <<_ACEOF
17972/* confdefs.h. */
17973_ACEOF
17974cat confdefs.h >>conftest.$ac_ext
17975cat >>conftest.$ac_ext <<_ACEOF
17976/* end confdefs.h. */
17977#include <sys/ioctl.h>
17978
17979_ACEOF
17980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17981 $EGREP "ioctl" >/dev/null 2>&1; then
17982 is_sys_ioctl=yes
17983else
17984 is_sys_ioctl=no
17985fi
17986rm -f conftest*
17987
17988 cat >conftest.$ac_ext <<_ACEOF
17989/* confdefs.h. */
17990_ACEOF
17991cat confdefs.h >>conftest.$ac_ext
17992cat >>conftest.$ac_ext <<_ACEOF
17993/* end confdefs.h. */
17994#include <stropts.h>
17995
17996_ACEOF
17997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17998 $EGREP "ioctl" >/dev/null 2>&1; then
17999 is_stropts=yes
18000else
18001 is_stropts=no
18002fi
18003rm -f conftest*
18004
18005
18006 if test $is_unistd = yes; then
18007 result=unistd.h
18008
18009cat >>confdefs.h <<\_ACEOF
18010#define HAVE_IOCTL_IN_UNISTD_H 1
18011_ACEOF
18012
18013 else
18014
18015 if test $is_sys_ioctl = yes; then
18016 result=sys/ioctl.h
18017
18018cat >>confdefs.h <<\_ACEOF
18019#define HAVE_IOCTL_IN_SYS_IOCTL_H 1
18020_ACEOF
18021
18022 elif test $is_stropts = yes; then
18023
18024cat >>confdefs.h <<\_ACEOF
18025#define HAVE_IOCTL_IN_STROPTS_H 1
18026_ACEOF
18027
18028 else
18029 result=no
18030 fi
18031 fi
18032
18033 if test $result = no; then
18034 { $as_echo "$as_me:$LINENO: result: no" >&5
18035$as_echo "no" >&6; }
18036 { { $as_echo "$as_me:$LINENO: error: *** Cannot locate ioctl() definition" >&5
18037$as_echo "$as_me: error: *** Cannot locate ioctl() definition" >&2;}
18038 { (exit 1); exit 1; }; }
18039 else
18040 { $as_echo "$as_me:$LINENO: result: yes" >&5
18041$as_echo "yes" >&6; }
18042 fi
18043
18044
18045 ZLIB=
18046
18047 if test "${ac_cv_header_zlib_h+set}" = set; then
18048 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18049$as_echo_n "checking for zlib.h... " >&6; }
18050if test "${ac_cv_header_zlib_h+set}" = set; then
18051 $as_echo_n "(cached) " >&6
18052fi
18053{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18054$as_echo "$ac_cv_header_zlib_h" >&6; }
18055else
18056 # Is the header compilable?
18057{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
18058$as_echo_n "checking zlib.h usability... " >&6; }
18059cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h. */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h. */
18065$ac_includes_default
18066#include <zlib.h>
18067_ACEOF
18068rm -f conftest.$ac_objext
18069if { (ac_try="$ac_compile"
18070case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18073esac
18074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18075$as_echo "$ac_try_echo") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18077 ac_status=$?
18078 grep -v '^ *+' conftest.er1 >conftest.err
18079 rm -f conftest.er1
18080 cat conftest.err >&5
18081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest.$ac_objext; then
18086 ac_header_compiler=yes
18087else
18088 $as_echo "$as_me: failed program was:" >&5
18089sed 's/^/| /' conftest.$ac_ext >&5
18090
18091 ac_header_compiler=no
18092fi
18093
18094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18096$as_echo "$ac_header_compiler" >&6; }
18097
18098# Is the header present?
18099{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
18100$as_echo_n "checking zlib.h presence... " >&6; }
18101cat >conftest.$ac_ext <<_ACEOF
18102/* confdefs.h. */
18103_ACEOF
18104cat confdefs.h >>conftest.$ac_ext
18105cat >>conftest.$ac_ext <<_ACEOF
18106/* end confdefs.h. */
18107#include <zlib.h>
18108_ACEOF
18109if { (ac_try="$ac_cpp conftest.$ac_ext"
18110case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18113esac
18114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18115$as_echo "$ac_try_echo") >&5
18116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18117 ac_status=$?
18118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
18121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } >/dev/null && {
18123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18124 test ! -s conftest.err
18125 }; then
18126 ac_header_preproc=yes
18127else
18128 $as_echo "$as_me: failed program was:" >&5
18129sed 's/^/| /' conftest.$ac_ext >&5
18130
18131 ac_header_preproc=no
18132fi
18133
18134rm -f conftest.err conftest.$ac_ext
18135{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18136$as_echo "$ac_header_preproc" >&6; }
18137
18138# So? What about this header?
18139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18140 yes:no: )
18141 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18142$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18143 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
18144$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
18145 ac_header_preproc=yes
18146 ;;
18147 no:yes:* )
18148 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18149$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18150 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18151$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18152 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
18153$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
18154 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
18155$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18156 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18157$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18158 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
18159$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
18160
18161 ;;
18162esac
18163{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
18164$as_echo_n "checking for zlib.h... " >&6; }
18165if test "${ac_cv_header_zlib_h+set}" = set; then
18166 $as_echo_n "(cached) " >&6
18167else
18168 ac_cv_header_zlib_h=$ac_header_preproc
18169fi
18170{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18171$as_echo "$ac_cv_header_zlib_h" >&6; }
18172
18173fi
18174if test "x$ac_cv_header_zlib_h" = x""yes; then
18175 :
18176else
18177 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18178$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18179{ { $as_echo "$as_me:$LINENO: error:
18180 *** zlib.h missing, zlib-devel package required
18181See \`config.log' for more details." >&5
18182$as_echo "$as_me: error:
18183 *** zlib.h missing, zlib-devel package required
18184See \`config.log' for more details." >&2;}
18185 { (exit 1); exit 1; }; }; }
18186fi
18187
18188
18189
18190
18191{ $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
18192$as_echo_n "checking for compress2 in -lz... " >&6; }
18193if test "${ac_cv_lib_z_compress2+set}" = set; then
18194 $as_echo_n "(cached) " >&6
18195else
18196 ac_check_lib_save_LIBS=$LIBS
18197LIBS="-lz $LIBS"
18198cat >conftest.$ac_ext <<_ACEOF
18199/* confdefs.h. */
18200_ACEOF
18201cat confdefs.h >>conftest.$ac_ext
18202cat >>conftest.$ac_ext <<_ACEOF
18203/* end confdefs.h. */
18204
18205/* Override any GCC internal prototype to avoid an error.
18206 Use char because int might match the return type of a GCC
18207 builtin and then its argument prototype would still apply. */
18208#ifdef __cplusplus
18209extern "C"
18210#endif
18211char compress2 ();
18212int
18213main ()
18214{
18215return compress2 ();
18216 ;
18217 return 0;
18218}
18219_ACEOF
18220rm -f conftest.$ac_objext conftest$ac_exeext
18221if { (ac_try="$ac_link"
18222case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225esac
18226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18227$as_echo "$ac_try_echo") >&5
18228 (eval "$ac_link") 2>conftest.er1
18229 ac_status=$?
18230 grep -v '^ *+' conftest.er1 >conftest.err
18231 rm -f conftest.er1
18232 cat conftest.err >&5
18233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } && {
18235 test -z "$ac_c_werror_flag" ||
18236 test ! -s conftest.err
18237 } && test -s conftest$ac_exeext && {
18238 test "$cross_compiling" = yes ||
18239 $as_test_x conftest$ac_exeext
18240 }; then
18241 ac_cv_lib_z_compress2=yes
18242else
18243 $as_echo "$as_me: failed program was:" >&5
18244sed 's/^/| /' conftest.$ac_ext >&5
18245
18246 ac_cv_lib_z_compress2=no
18247fi
18248
18249rm -rf conftest.dSYM
18250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18251 conftest$ac_exeext conftest.$ac_ext
18252LIBS=$ac_check_lib_save_LIBS
18253fi
18254{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
18255$as_echo "$ac_cv_lib_z_compress2" >&6; }
18256if test "x$ac_cv_lib_z_compress2" = x""yes; then
18257 cat >>confdefs.h <<_ACEOF
18258#define HAVE_LIBZ 1
18259_ACEOF
18260
18261 LIBS="-lz $LIBS"
18262
18263else
18264 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18266{ { $as_echo "$as_me:$LINENO: error:
18267 *** compress2() missing, zlib-devel package required
18268See \`config.log' for more details." >&5
18269$as_echo "$as_me: error:
18270 *** compress2() missing, zlib-devel package required
18271See \`config.log' for more details." >&2;}
18272 { (exit 1); exit 1; }; }; }
18273fi
18274
18275
18276
18277{ $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
18278$as_echo_n "checking for uncompress in -lz... " >&6; }
18279if test "${ac_cv_lib_z_uncompress+set}" = set; then
18280 $as_echo_n "(cached) " >&6
18281else
18282 ac_check_lib_save_LIBS=$LIBS
18283LIBS="-lz $LIBS"
18284cat >conftest.$ac_ext <<_ACEOF
18285/* confdefs.h. */
18286_ACEOF
18287cat confdefs.h >>conftest.$ac_ext
18288cat >>conftest.$ac_ext <<_ACEOF
18289/* end confdefs.h. */
18290
18291/* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18294#ifdef __cplusplus
18295extern "C"
18296#endif
18297char uncompress ();
18298int
18299main ()
18300{
18301return uncompress ();
18302 ;
18303 return 0;
18304}
18305_ACEOF
18306rm -f conftest.$ac_objext conftest$ac_exeext
18307if { (ac_try="$ac_link"
18308case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18311esac
18312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18313$as_echo "$ac_try_echo") >&5
18314 (eval "$ac_link") 2>conftest.er1
18315 ac_status=$?
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
18319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } && {
18321 test -z "$ac_c_werror_flag" ||
18322 test ! -s conftest.err
18323 } && test -s conftest$ac_exeext && {
18324 test "$cross_compiling" = yes ||
18325 $as_test_x conftest$ac_exeext
18326 }; then
18327 ac_cv_lib_z_uncompress=yes
18328else
18329 $as_echo "$as_me: failed program was:" >&5
18330sed 's/^/| /' conftest.$ac_ext >&5
18331
18332 ac_cv_lib_z_uncompress=no
18333fi
18334
18335rm -rf conftest.dSYM
18336rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18337 conftest$ac_exeext conftest.$ac_ext
18338LIBS=$ac_check_lib_save_LIBS
18339fi
18340{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
18341$as_echo "$ac_cv_lib_z_uncompress" >&6; }
18342if test "x$ac_cv_lib_z_uncompress" = x""yes; then
18343 cat >>confdefs.h <<_ACEOF
18344#define HAVE_LIBZ 1
18345_ACEOF
18346
18347 LIBS="-lz $LIBS"
18348
18349else
18350 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18352{ { $as_echo "$as_me:$LINENO: error:
18353 *** uncompress() missing, zlib-devel package required
18354See \`config.log' for more details." >&5
18355$as_echo "$as_me: error:
18356 *** uncompress() missing, zlib-devel package required
18357See \`config.log' for more details." >&2;}
18358 { (exit 1); exit 1; }; }; }
18359fi
18360
18361
18362
18363{ $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
18364$as_echo_n "checking for crc32 in -lz... " >&6; }
18365if test "${ac_cv_lib_z_crc32+set}" = set; then
18366 $as_echo_n "(cached) " >&6
18367else
18368 ac_check_lib_save_LIBS=$LIBS
18369LIBS="-lz $LIBS"
18370cat >conftest.$ac_ext <<_ACEOF
18371/* confdefs.h. */
18372_ACEOF
18373cat confdefs.h >>conftest.$ac_ext
18374cat >>conftest.$ac_ext <<_ACEOF
18375/* end confdefs.h. */
18376
18377/* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18380#ifdef __cplusplus
18381extern "C"
18382#endif
18383char crc32 ();
18384int
18385main ()
18386{
18387return crc32 ();
18388 ;
18389 return 0;
18390}
18391_ACEOF
18392rm -f conftest.$ac_objext conftest$ac_exeext
18393if { (ac_try="$ac_link"
18394case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18397esac
18398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18399$as_echo "$ac_try_echo") >&5
18400 (eval "$ac_link") 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } && {
18407 test -z "$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18409 } && test -s conftest$ac_exeext && {
18410 test "$cross_compiling" = yes ||
18411 $as_test_x conftest$ac_exeext
18412 }; then
18413 ac_cv_lib_z_crc32=yes
18414else
18415 $as_echo "$as_me: failed program was:" >&5
18416sed 's/^/| /' conftest.$ac_ext >&5
18417
18418 ac_cv_lib_z_crc32=no
18419fi
18420
18421rm -rf conftest.dSYM
18422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18423 conftest$ac_exeext conftest.$ac_ext
18424LIBS=$ac_check_lib_save_LIBS
18425fi
18426{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
18427$as_echo "$ac_cv_lib_z_crc32" >&6; }
18428if test "x$ac_cv_lib_z_crc32" = x""yes; then
18429 cat >>confdefs.h <<_ACEOF
18430#define HAVE_LIBZ 1
18431_ACEOF
18432
18433 LIBS="-lz $LIBS"
18434
18435else
18436 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18438{ { $as_echo "$as_me:$LINENO: error:
18439 *** crc32() missing, zlib-devel package required
18440See \`config.log' for more details." >&5
18441$as_echo "$as_me: error:
18442 *** crc32() missing, zlib-devel package required
18443See \`config.log' for more details." >&2;}
18444 { (exit 1); exit 1; }; }; }
18445fi
18446
18447
18448 ZLIB="-lz"
18449
18450
18451cat >>confdefs.h <<\_ACEOF
18452#define HAVE_ZLIB 1
18453_ACEOF
18454
18455
18456
18457 LIBUUID=
18458
18459 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18460 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18461$as_echo_n "checking for uuid/uuid.h... " >&6; }
18462if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18463 $as_echo_n "(cached) " >&6
18464fi
18465{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18466$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18467else
18468 # Is the header compilable?
18469{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
18470$as_echo_n "checking uuid/uuid.h usability... " >&6; }
18471cat >conftest.$ac_ext <<_ACEOF
18472/* confdefs.h. */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h. */
18477$ac_includes_default
18478#include <uuid/uuid.h>
18479_ACEOF
18480rm -f conftest.$ac_objext
18481if { (ac_try="$ac_compile"
18482case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18485esac
18486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18487$as_echo "$ac_try_echo") >&5
18488 (eval "$ac_compile") 2>conftest.er1
18489 ac_status=$?
18490 grep -v '^ *+' conftest.er1 >conftest.err
18491 rm -f conftest.er1
18492 cat conftest.err >&5
18493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } && {
18495 test -z "$ac_c_werror_flag" ||
18496 test ! -s conftest.err
18497 } && test -s conftest.$ac_objext; then
18498 ac_header_compiler=yes
18499else
18500 $as_echo "$as_me: failed program was:" >&5
18501sed 's/^/| /' conftest.$ac_ext >&5
18502
18503 ac_header_compiler=no
18504fi
18505
18506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18507{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18508$as_echo "$ac_header_compiler" >&6; }
18509
18510# Is the header present?
18511{ $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
18512$as_echo_n "checking uuid/uuid.h presence... " >&6; }
18513cat >conftest.$ac_ext <<_ACEOF
18514/* confdefs.h. */
18515_ACEOF
18516cat confdefs.h >>conftest.$ac_ext
18517cat >>conftest.$ac_ext <<_ACEOF
18518/* end confdefs.h. */
18519#include <uuid/uuid.h>
18520_ACEOF
18521if { (ac_try="$ac_cpp conftest.$ac_ext"
18522case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18525esac
18526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18527$as_echo "$ac_try_echo") >&5
18528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18529 ac_status=$?
18530 grep -v '^ *+' conftest.er1 >conftest.err
18531 rm -f conftest.er1
18532 cat conftest.err >&5
18533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); } >/dev/null && {
18535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18536 test ! -s conftest.err
18537 }; then
18538 ac_header_preproc=yes
18539else
18540 $as_echo "$as_me: failed program was:" >&5
18541sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 ac_header_preproc=no
18544fi
18545
18546rm -f conftest.err conftest.$ac_ext
18547{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18548$as_echo "$ac_header_preproc" >&6; }
18549
18550# So? What about this header?
18551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18552 yes:no: )
18553 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
18554$as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18555 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
18556$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
18557 ac_header_preproc=yes
18558 ;;
18559 no:yes:* )
18560 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
18561$as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
18562 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
18563$as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
18564 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
18565$as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
18566 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
18567$as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
18568 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
18569$as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
18570 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
18571$as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
18572
18573 ;;
18574esac
18575{ $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
18576$as_echo_n "checking for uuid/uuid.h... " >&6; }
18577if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
18578 $as_echo_n "(cached) " >&6
18579else
18580 ac_cv_header_uuid_uuid_h=$ac_header_preproc
18581fi
18582{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
18583$as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
18584
18585fi
18586if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
18587 :
18588else
18589 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18591{ { $as_echo "$as_me:$LINENO: error:
18592 *** uuid/uuid.h missing, libuuid-devel package required
18593See \`config.log' for more details." >&5
18594$as_echo "$as_me: error:
18595 *** uuid/uuid.h missing, libuuid-devel package required
18596See \`config.log' for more details." >&2;}
18597 { (exit 1); exit 1; }; }; }
18598fi
18599
18600
18601
18602
18603{ $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
18604$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
18605if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
18606 $as_echo_n "(cached) " >&6
18607else
18608 ac_check_lib_save_LIBS=$LIBS
18609LIBS="-luuid $LIBS"
18610cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h. */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h. */
18616
18617/* Override any GCC internal prototype to avoid an error.
18618 Use char because int might match the return type of a GCC
18619 builtin and then its argument prototype would still apply. */
18620#ifdef __cplusplus
18621extern "C"
18622#endif
18623char uuid_generate ();
18624int
18625main ()
18626{
18627return uuid_generate ();
18628 ;
18629 return 0;
18630}
18631_ACEOF
18632rm -f conftest.$ac_objext conftest$ac_exeext
18633if { (ac_try="$ac_link"
18634case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637esac
18638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18639$as_echo "$ac_try_echo") >&5
18640 (eval "$ac_link") 2>conftest.er1
18641 ac_status=$?
18642 grep -v '^ *+' conftest.er1 >conftest.err
18643 rm -f conftest.er1
18644 cat conftest.err >&5
18645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); } && {
18647 test -z "$ac_c_werror_flag" ||
18648 test ! -s conftest.err
18649 } && test -s conftest$ac_exeext && {
18650 test "$cross_compiling" = yes ||
18651 $as_test_x conftest$ac_exeext
18652 }; then
18653 ac_cv_lib_uuid_uuid_generate=yes
18654else
18655 $as_echo "$as_me: failed program was:" >&5
18656sed 's/^/| /' conftest.$ac_ext >&5
18657
18658 ac_cv_lib_uuid_uuid_generate=no
18659fi
18660
18661rm -rf conftest.dSYM
18662rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18663 conftest$ac_exeext conftest.$ac_ext
18664LIBS=$ac_check_lib_save_LIBS
18665fi
18666{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
18667$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
18668if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
18669 cat >>confdefs.h <<_ACEOF
18670#define HAVE_LIBUUID 1
18671_ACEOF
18672
18673 LIBS="-luuid $LIBS"
18674
18675else
18676 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18678{ { $as_echo "$as_me:$LINENO: error:
18679 *** uuid_generate() missing, libuuid-devel package required
18680See \`config.log' for more details." >&5
18681$as_echo "$as_me: error:
18682 *** uuid_generate() missing, libuuid-devel package required
18683See \`config.log' for more details." >&2;}
18684 { (exit 1); exit 1; }; }; }
18685fi
18686
18687
18688
18689{ $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
18690$as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
18691if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
18692 $as_echo_n "(cached) " >&6
18693else
18694 ac_check_lib_save_LIBS=$LIBS
18695LIBS="-luuid $LIBS"
18696cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702
18703/* Override any GCC internal prototype to avoid an error.
18704 Use char because int might match the return type of a GCC
18705 builtin and then its argument prototype would still apply. */
18706#ifdef __cplusplus
18707extern "C"
18708#endif
18709char uuid_is_null ();
18710int
18711main ()
18712{
18713return uuid_is_null ();
18714 ;
18715 return 0;
18716}
18717_ACEOF
18718rm -f conftest.$ac_objext conftest$ac_exeext
18719if { (ac_try="$ac_link"
18720case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723esac
18724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18725$as_echo "$ac_try_echo") >&5
18726 (eval "$ac_link") 2>conftest.er1
18727 ac_status=$?
18728 grep -v '^ *+' conftest.er1 >conftest.err
18729 rm -f conftest.er1
18730 cat conftest.err >&5
18731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } && {
18733 test -z "$ac_c_werror_flag" ||
18734 test ! -s conftest.err
18735 } && test -s conftest$ac_exeext && {
18736 test "$cross_compiling" = yes ||
18737 $as_test_x conftest$ac_exeext
18738 }; then
18739 ac_cv_lib_uuid_uuid_is_null=yes
18740else
18741 $as_echo "$as_me: failed program was:" >&5
18742sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 ac_cv_lib_uuid_uuid_is_null=no
18745fi
18746
18747rm -rf conftest.dSYM
18748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18749 conftest$ac_exeext conftest.$ac_ext
18750LIBS=$ac_check_lib_save_LIBS
18751fi
18752{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
18753$as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
18754if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
18755 cat >>confdefs.h <<_ACEOF
18756#define HAVE_LIBUUID 1
18757_ACEOF
18758
18759 LIBS="-luuid $LIBS"
18760
18761else
18762 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18764{ { $as_echo "$as_me:$LINENO: error:
18765 *** uuid_is_null() missing, libuuid-devel package required
18766See \`config.log' for more details." >&5
18767$as_echo "$as_me: error:
18768 *** uuid_is_null() missing, libuuid-devel package required
18769See \`config.log' for more details." >&2;}
18770 { (exit 1); exit 1; }; }; }
18771fi
18772
18773
18774 LIBUUID="-luuid"
18775
18776
18777cat >>confdefs.h <<\_ACEOF
18778#define HAVE_LIBUUID 1
18779_ACEOF
18780
18781
18782
18783
18784# Check whether --with-blkid was given.
18785if test "${with_blkid+set}" = set; then
18786 withval=$with_blkid;
18787else
18788 with_blkid=check
18789fi
18790
18791
18792 LIBBLKID=
18793 if test "x$with_blkid" != xno; then
18794
18795 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
18796$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
18797if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
18798 $as_echo_n "(cached) " >&6
18799else
18800 ac_check_lib_save_LIBS=$LIBS
18801LIBS="-lblkid $LIBS"
18802cat >conftest.$ac_ext <<_ACEOF
18803/* confdefs.h. */
18804_ACEOF
18805cat confdefs.h >>conftest.$ac_ext
18806cat >>conftest.$ac_ext <<_ACEOF
18807/* end confdefs.h. */
18808
18809/* Override any GCC internal prototype to avoid an error.
18810 Use char because int might match the return type of a GCC
18811 builtin and then its argument prototype would still apply. */
18812#ifdef __cplusplus
18813extern "C"
18814#endif
18815char blkid_get_cache ();
18816int
18817main ()
18818{
18819return blkid_get_cache ();
18820 ;
18821 return 0;
18822}
18823_ACEOF
18824rm -f conftest.$ac_objext conftest$ac_exeext
18825if { (ac_try="$ac_link"
18826case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829esac
18830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18831$as_echo "$ac_try_echo") >&5
18832 (eval "$ac_link") 2>conftest.er1
18833 ac_status=$?
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
18837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } && {
18839 test -z "$ac_c_werror_flag" ||
18840 test ! -s conftest.err
18841 } && test -s conftest$ac_exeext && {
18842 test "$cross_compiling" = yes ||
18843 $as_test_x conftest$ac_exeext
18844 }; then
18845 ac_cv_lib_blkid_blkid_get_cache=yes
18846else
18847 $as_echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
18850 ac_cv_lib_blkid_blkid_get_cache=no
18851fi
18852
18853rm -rf conftest.dSYM
18854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18855 conftest$ac_exeext conftest.$ac_ext
18856LIBS=$ac_check_lib_save_LIBS
18857fi
18858{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
18859$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
18860if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
18861
18862 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
18863$as_echo_n "checking for blkid zfs support... " >&6; }
18864
18865 ZFS_DEV=`mktemp`
18866 dd if=/dev/zero of=$ZFS_DEV bs=1024k count=8 \
18867 >/dev/null 2>/dev/null
18868 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
18869 dd of=$ZFS_DEV bs=1k count=8 \
18870 seek=132 conv=notrunc &>/dev/null \
18871 >/dev/null 2>/dev/null
18872
18873 saved_LDFLAGS="$LDFLAGS"
18874 LDFLAGS="-lblkid"
18875
18876 if test "$cross_compiling" = yes; then
18877 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18879{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18880See \`config.log' for more details." >&5
18881$as_echo "$as_me: error: cannot run test program while cross compiling
18882See \`config.log' for more details." >&2;}
18883 { (exit 1); exit 1; }; }; }
18884else
18885 cat >conftest.$ac_ext <<_ACEOF
18886/* confdefs.h. */
18887_ACEOF
18888cat confdefs.h >>conftest.$ac_ext
18889cat >>conftest.$ac_ext <<_ACEOF
18890/* end confdefs.h. */
18891
18892 #include <stdio.h>
18893 #include <blkid/blkid.h>
18894
18895int
18896main ()
18897{
18898
18899 blkid_cache cache;
18900 char *value;
18901
18902 if (blkid_get_cache(&cache, NULL) < 0)
18903 return 1;
18904
18905 value = blkid_get_tag_value(cache, "TYPE",
18906 "$ZFS_DEV");
18907 if (!value) {
18908 blkid_put_cache(cache);
18909 return 2;
18910 }
18911
18912 if (strcmp(value, "zfs")) {
18913 free(value);
18914 blkid_put_cache(cache);
18915 return 3;
18916 }
18917
18918 free(value);
18919 blkid_put_cache(cache);
18920
18921 ;
18922 return 0;
18923}
18924_ACEOF
18925rm -f conftest$ac_exeext
18926if { (ac_try="$ac_link"
18927case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18930esac
18931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18932$as_echo "$ac_try_echo") >&5
18933 (eval "$ac_link") 2>&5
18934 ac_status=$?
18935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18937 { (case "(($ac_try" in
18938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939 *) ac_try_echo=$ac_try;;
18940esac
18941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18942$as_echo "$ac_try_echo") >&5
18943 (eval "$ac_try") 2>&5
18944 ac_status=$?
18945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947
18948 rm -f $ZFS_DEV
18949 { $as_echo "$as_me:$LINENO: result: yes" >&5
18950$as_echo "yes" >&6; }
18951 LIBBLKID="-lblkid"
18952
18953
18954cat >>confdefs.h <<\_ACEOF
18955#define HAVE_LIBBLKID 1
18956_ACEOF
18957
18958
18959else
18960 $as_echo "$as_me: program exited with status $ac_status" >&5
18961$as_echo "$as_me: failed program was:" >&5
18962sed 's/^/| /' conftest.$ac_ext >&5
18963
18964( exit $ac_status )
18965
18966 rm -f $ZFS_DEV
18967 { $as_echo "$as_me:$LINENO: result: no" >&5
18968$as_echo "no" >&6; }
18969 if test "x$with_blkid" != xcheck; then
18970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18971$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18972{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
18973See \`config.log' for more details." >&5
18974$as_echo "$as_me: error: --with-blkid given but unavailable
18975See \`config.log' for more details." >&2;}
18976 { (exit 1); exit 1; }; }; }
18977fi
18978
18979
18980fi
18981rm -rf conftest.dSYM
18982rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18983fi
18984
18985
18986
18987 LDFLAGS="$saved_LDFLAGS"
18988
18989else
18990
18991 if test "x$with_blkid" != xcheck; then
18992 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18994{ { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
18995See \`config.log' for more details." >&5
18996$as_echo "$as_me: error: --with-blkid given but unavailable
18997See \`config.log' for more details." >&2;}
18998 { (exit 1); exit 1; }; }; }
18999fi
19000
19001
19002
19003fi
19004
19005
19006fi
19007
19008
19009
b3259b6a
BB
19010
19011# Check whether --with-selinux was given.
19012if test "${with_selinux+set}" = set; then
19013 withval=$with_selinux;
19014else
19015 with_selinux=check
19016fi
19017
19018
19019 LIBSELINUX=
19020 if test "x$with_selinux" != xno; then
19021
19022 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19023 { $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19024$as_echo_n "checking for selinux/selinux.h... " >&6; }
19025if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19026 $as_echo_n "(cached) " >&6
19027fi
19028{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19029$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19030else
19031 # Is the header compilable?
19032{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
19033$as_echo_n "checking selinux/selinux.h usability... " >&6; }
19034cat >conftest.$ac_ext <<_ACEOF
19035/* confdefs.h. */
19036_ACEOF
19037cat confdefs.h >>conftest.$ac_ext
19038cat >>conftest.$ac_ext <<_ACEOF
19039/* end confdefs.h. */
19040$ac_includes_default
19041#include <selinux/selinux.h>
19042_ACEOF
19043rm -f conftest.$ac_objext
19044if { (ac_try="$ac_compile"
19045case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19048esac
19049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19050$as_echo "$ac_try_echo") >&5
19051 (eval "$ac_compile") 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest.$ac_objext; then
19061 ac_header_compiler=yes
19062else
19063 $as_echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
19066 ac_header_compiler=no
19067fi
19068
19069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19070{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19071$as_echo "$ac_header_compiler" >&6; }
19072
19073# Is the header present?
19074{ $as_echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
19075$as_echo_n "checking selinux/selinux.h presence... " >&6; }
19076cat >conftest.$ac_ext <<_ACEOF
19077/* confdefs.h. */
19078_ACEOF
19079cat confdefs.h >>conftest.$ac_ext
19080cat >>conftest.$ac_ext <<_ACEOF
19081/* end confdefs.h. */
19082#include <selinux/selinux.h>
19083_ACEOF
19084if { (ac_try="$ac_cpp conftest.$ac_ext"
19085case "(($ac_try" in
19086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19087 *) ac_try_echo=$ac_try;;
19088esac
19089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19090$as_echo "$ac_try_echo") >&5
19091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19092 ac_status=$?
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
19096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } >/dev/null && {
19098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 }; then
19101 ac_header_preproc=yes
19102else
19103 $as_echo "$as_me: failed program was:" >&5
19104sed 's/^/| /' conftest.$ac_ext >&5
19105
19106 ac_header_preproc=no
19107fi
19108
19109rm -f conftest.err conftest.$ac_ext
19110{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19111$as_echo "$ac_header_preproc" >&6; }
19112
19113# So? What about this header?
19114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19115 yes:no: )
19116 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
19117$as_echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19118 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
19119$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
19120 ac_header_preproc=yes
19121 ;;
19122 no:yes:* )
19123 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
19124$as_echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
19125 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
19126$as_echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
19127 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
19128$as_echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
19129 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
19130$as_echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
19131 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
19132$as_echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
19133 { $as_echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
19134$as_echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
19135
19136 ;;
19137esac
19138{ $as_echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
19139$as_echo_n "checking for selinux/selinux.h... " >&6; }
19140if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
19141 $as_echo_n "(cached) " >&6
19142else
19143 ac_cv_header_selinux_selinux_h=$ac_header_preproc
19144fi
19145{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
19146$as_echo "$ac_cv_header_selinux_selinux_h" >&6; }
19147
19148fi
19149if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then
19150
19151 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
19152$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
19153if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
19154 $as_echo_n "(cached) " >&6
19155else
19156 ac_check_lib_save_LIBS=$LIBS
19157LIBS="-lselinux $LIBS"
19158cat >conftest.$ac_ext <<_ACEOF
19159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
19164
19165/* Override any GCC internal prototype to avoid an error.
19166 Use char because int might match the return type of a GCC
19167 builtin and then its argument prototype would still apply. */
19168#ifdef __cplusplus
19169extern "C"
19170#endif
19171char is_selinux_enabled ();
19172int
19173main ()
19174{
19175return is_selinux_enabled ();
19176 ;
19177 return 0;
19178}
19179_ACEOF
19180rm -f conftest.$ac_objext conftest$ac_exeext
19181if { (ac_try="$ac_link"
19182case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19187$as_echo "$ac_try_echo") >&5
19188 (eval "$ac_link") 2>conftest.er1
19189 ac_status=$?
19190 grep -v '^ *+' conftest.er1 >conftest.err
19191 rm -f conftest.er1
19192 cat conftest.err >&5
19193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && {
19195 test -z "$ac_c_werror_flag" ||
19196 test ! -s conftest.err
19197 } && test -s conftest$ac_exeext && {
19198 test "$cross_compiling" = yes ||
19199 $as_test_x conftest$ac_exeext
19200 }; then
19201 ac_cv_lib_selinux_is_selinux_enabled=yes
19202else
19203 $as_echo "$as_me: failed program was:" >&5
19204sed 's/^/| /' conftest.$ac_ext >&5
19205
19206 ac_cv_lib_selinux_is_selinux_enabled=no
19207fi
19208
19209rm -rf conftest.dSYM
19210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19211 conftest$ac_exeext conftest.$ac_ext
19212LIBS=$ac_check_lib_save_LIBS
19213fi
19214{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
19215$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
19216if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
19217
19218 LIBSELINUX="-lselinux"
19219
19220
19221cat >>confdefs.h <<\_ACEOF
19222#define HAVE_LIBSELINUX 1
19223_ACEOF
19224
19225
19226else
19227
19228 if test "x$with_selinux" != xcheck; then
19229 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19231{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19232See \`config.log' for more details." >&5
19233$as_echo "$as_me: error: --with-selinux given but unavailable
19234See \`config.log' for more details." >&2;}
19235 { (exit 1); exit 1; }; }; }
19236
19237fi
19238
19239
19240fi
19241
19242
19243else
19244
19245 if test "x$with_selinux" != xcheck; then
19246 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19248{ { $as_echo "$as_me:$LINENO: error: --with-selinux given but unavailable
19249See \`config.log' for more details." >&5
19250$as_echo "$as_me: error: --with-selinux given but unavailable
19251See \`config.log' for more details." >&2;}
19252 { (exit 1); exit 1; }; }; }
19253
19254fi
19255
19256
19257fi
19258
19259
19260
19261else
19262
19263 { $as_echo "$as_me:$LINENO: checking for selinux support" >&5
19264$as_echo_n "checking for selinux support... " >&6; }
19265 { $as_echo "$as_me:$LINENO: result: no" >&5
19266$as_echo "no" >&6; }
19267
19268fi
19269
19270
19271
e70e591c
BB
19272 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
19273$as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
19274
19275 saved_flags="$CFLAGS"
19276 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
19277
19278 if test "$cross_compiling" = yes; then
19279 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19281{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19282See \`config.log' for more details." >&5
19283$as_echo "$as_me: error: cannot run test program while cross compiling
19284See \`config.log' for more details." >&2;}
19285 { (exit 1); exit 1; }; }; }
19286else
19287 cat >conftest.$ac_ext <<_ACEOF
19288/* confdefs.h. */
19289_ACEOF
19290cat confdefs.h >>conftest.$ac_ext
19291cat >>conftest.$ac_ext <<_ACEOF
19292/* end confdefs.h. */
19293
19294int
19295main ()
19296{
19297
19298 ;
19299 return 0;
19300}
19301_ACEOF
19302rm -f conftest$ac_exeext
19303if { (ac_try="$ac_link"
19304case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19307esac
19308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19309$as_echo "$ac_try_echo") >&5
19310 (eval "$ac_link") 2>&5
19311 ac_status=$?
19312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19314 { (case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19317esac
19318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19319$as_echo "$ac_try_echo") >&5
19320 (eval "$ac_try") 2>&5
19321 ac_status=$?
19322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324
19325 FRAME_LARGER_THAN=-Wframe-larger-than=1024
19326 { $as_echo "$as_me:$LINENO: result: yes" >&5
19327$as_echo "yes" >&6; }
19328
19329else
19330 $as_echo "$as_me: program exited with status $ac_status" >&5
19331$as_echo "$as_me: failed program was:" >&5
19332sed 's/^/| /' conftest.$ac_ext >&5
19333
19334( exit $ac_status )
19335
19336 FRAME_LARGER_THAN=
19337 { $as_echo "$as_me:$LINENO: result: no" >&5
19338$as_echo "no" >&6; }
19339
19340fi
19341rm -rf conftest.dSYM
19342rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19343fi
19344
19345
19346
19347 CFLAGS="$saved_flags"
19348
19349
19350
19351
19352 { $as_echo "$as_me:$LINENO: checking whether pthread stack includes guard" >&5
19353$as_echo_n "checking whether pthread stack includes guard... " >&6; }
19354
19355 saved_CFLAGS="$CFLAGS"
19356 CFLAGS="-fstack-check"
19357 saved_LDFLAGS="$LDFLAGS"
19358 LDFLAGS="-lpthread"
19359
19360 if test "$cross_compiling" = yes; then
19361 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19363{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19364See \`config.log' for more details." >&5
19365$as_echo "$as_me: error: cannot run test program while cross compiling
19366See \`config.log' for more details." >&2;}
19367 { (exit 1); exit 1; }; }; }
19368else
19369 cat >conftest.$ac_ext <<_ACEOF
19370/* confdefs.h. */
19371_ACEOF
19372cat confdefs.h >>conftest.$ac_ext
19373cat >>conftest.$ac_ext <<_ACEOF
19374/* end confdefs.h. */
19375
19376 #include <pthread.h>
19377 #include <sys/resource.h>
19378 #include <unistd.h>
19379 #include <bits/local_lim.h>
19380
19381 #define PAGESIZE (sysconf(_SC_PAGESIZE))
19382 #define STACK_SIZE 8192
19383 #define BUFSIZE 4096
19384
19385 void * func(void *arg)
19386 {
19387 char buf[BUFSIZE];
19388 }
19389
19390int
19391main ()
19392{
19393
19394 pthread_t tid;
19395 pthread_attr_t attr;
19396 struct rlimit l;
19397
19398 l.rlim_cur = 0;
19399 l.rlim_max = 0;
19400 setrlimit(RLIMIT_CORE, &l);
19401 pthread_attr_init(&attr);
19402 pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN + STACK_SIZE);
19403 pthread_attr_setguardsize(&attr, PAGESIZE);
19404 pthread_create(&tid, &attr, func, NULL);
19405 pthread_join(tid, NULL);
19406
19407 ;
19408 return 0;
19409}
19410_ACEOF
19411rm -f conftest$ac_exeext
19412if { (ac_try="$ac_link"
19413case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416esac
19417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418$as_echo "$ac_try_echo") >&5
19419 (eval "$ac_link") 2>&5
19420 ac_status=$?
19421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19423 { (case "(($ac_try" in
19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19425 *) ac_try_echo=$ac_try;;
19426esac
19427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19428$as_echo "$ac_try_echo") >&5
19429 (eval "$ac_try") 2>&5
19430 ac_status=$?
19431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
19433
19434 { $as_echo "$as_me:$LINENO: result: no" >&5
19435$as_echo "no" >&6; }
19436
19437else
19438 $as_echo "$as_me: program exited with status $ac_status" >&5
19439$as_echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
19442( exit $ac_status )
19443
19444
19445cat >>confdefs.h <<\_ACEOF
19446#define NPTL_GUARD_WITHIN_STACK 1
19447_ACEOF
19448
19449 { $as_echo "$as_me:$LINENO: result: yes" >&5
19450$as_echo "yes" >&6; }
19451
19452fi
19453rm -rf conftest.dSYM
19454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19455fi
19456
19457
19458 CFLAGS="$saved_CFLAGS"
19459 LDFLAGS="$saved_LDFLAGS"
19460
19461 ;;
19462 srpm) ;;
19463 *)
19464 { $as_echo "$as_me:$LINENO: result: Error!" >&5
19465$as_echo "Error!" >&6; }
19466 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
19467 user kernel|user|all|srpm" >&5
19468$as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
19469 user kernel|user|all|srpm" >&2;}
19470 { (exit 1); exit 1; }; } ;;
19471 esac
19472
19473 if test "$ZFS_CONFIG" = user ||
19474 test "$ZFS_CONFIG" = all; then
19475 CONFIG_USER_TRUE=
19476 CONFIG_USER_FALSE='#'
19477else
19478 CONFIG_USER_TRUE='#'
19479 CONFIG_USER_FALSE=
19480fi
19481
19482 if test "$ZFS_CONFIG" = kernel ||
19483 test "$ZFS_CONFIG" = all; then
19484 CONFIG_KERNEL_TRUE=
19485 CONFIG_KERNEL_FALSE='#'
19486else
19487 CONFIG_KERNEL_TRUE='#'
19488 CONFIG_KERNEL_FALSE=
19489fi
19490
19491
19492
e70e591c
BB
19493 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
19494$as_echo_n "checking whether debugging is enabled... " >&6; }
19495 # Check whether --enable-debug was given.
19496if test "${enable_debug+set}" = set; then
19497 enableval=$enable_debug;
19498else
19499 enable_debug=no
19500fi
19501
19502
19503 if test "x$enable_debug" = xyes; then
19504
19505 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
19506 HOSTCFLAGS="${HOSTCFLAGS} -DDEBUG -Werror"
19507 DEBUG_CFLAGS="-DDEBUG -Werror"
19508 DEBUG_STACKFLAGS="-fstack-check"
19509
19510else
19511
19512 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG "
19513 HOSTCFLAGS="${HOSTCFLAGS} -DNDEBUG "
19514 DEBUG_CFLAGS="-DNDEBUG"
19515 DEBUG_STACKFLAGS=""
19516
19517fi
19518
19519
19520
19521
19522 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
19523$as_echo "$enable_debug" >&6; }
19524
19525
8299a1f4 19526ac_config_files="$ac_config_files Makefile etc/Makefile man/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zpool_id/Makefile cmd/zpool_layout/Makefile cmd/ztest/Makefile cmd/zpios/Makefile 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
19527
19528
19529cat >confcache <<\_ACEOF
19530# This file is a shell script that caches the results of configure
19531# tests run on this system so they can be shared between configure
19532# scripts and configure runs, see configure's option --config-cache.
19533# It is not useful on other systems. If it contains results you don't
19534# want to keep, you may remove or edit it.
19535#
19536# config.status only pays attention to the cache file if you give it
19537# the --recheck option to rerun configure.
19538#
19539# `ac_cv_env_foo' variables (set or unset) will be overridden when
19540# loading this file, other *unset* `ac_cv_foo' will be assigned the
19541# following values.
19542
19543_ACEOF
19544
19545# The following way of writing the cache mishandles newlines in values,
19546# but we know of no workaround that is simple, portable, and efficient.
19547# So, we kill variables containing newlines.
19548# Ultrix sh set writes to stderr and can't be redirected directly,
19549# and sets the high bit in the cache file unless we assign to the vars.
19550(
19551 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19552 eval ac_val=\$$ac_var
19553 case $ac_val in #(
19554 *${as_nl}*)
19555 case $ac_var in #(
19556 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19557$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19558 esac
19559 case $ac_var in #(
19560 _ | IFS | as_nl) ;; #(
19561 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19562 *) $as_unset $ac_var ;;
19563 esac ;;
19564 esac
19565 done
19566
19567 (set) 2>&1 |
19568 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19569 *${as_nl}ac_space=\ *)
19570 # `set' does not quote correctly, so add quotes (double-quote
19571 # substitution turns \\\\ into \\, and sed turns \\ into \).
19572 sed -n \
19573 "s/'/'\\\\''/g;
19574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19575 ;; #(
19576 *)
19577 # `set' quotes correctly as required by POSIX, so do not add quotes.
19578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19579 ;;
19580 esac |
19581 sort
19582) |
19583 sed '
19584 /^ac_cv_env_/b end
19585 t clear
19586 :clear
19587 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19588 t end
19589 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19590 :end' >>confcache
19591if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19592 if test -w "$cache_file"; then
19593 test "x$cache_file" != "x/dev/null" &&
19594 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19595$as_echo "$as_me: updating cache $cache_file" >&6;}
19596 cat confcache >$cache_file
19597 else
19598 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19599$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19600 fi
19601fi
19602rm -f confcache
19603
19604test "x$prefix" = xNONE && prefix=$ac_default_prefix
19605# Let make expand exec_prefix.
19606test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19607
19608DEFS=-DHAVE_CONFIG_H
19609
19610ac_libobjs=
19611ac_ltlibobjs=
19612for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19613 # 1. Remove the extension, and $U if already installed.
19614 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19615 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19616 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19617 # will be set to the directory where LIBOBJS objects are built.
19618 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19619 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19620done
19621LIBOBJS=$ac_libobjs
19622
19623LTLIBOBJS=$ac_ltlibobjs
19624
19625
19626if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19627 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19628Usually this means the macro was only invoked conditionally." >&5
19629$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19630Usually this means the macro was only invoked conditionally." >&2;}
19631 { (exit 1); exit 1; }; }
19632fi
19633 if test -n "$EXEEXT"; then
19634 am__EXEEXT_TRUE=
19635 am__EXEEXT_FALSE='#'
19636else
19637 am__EXEEXT_TRUE='#'
19638 am__EXEEXT_FALSE=
19639fi
19640
19641if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19642 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19643Usually this means the macro was only invoked conditionally." >&5
19644$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
19645Usually this means the macro was only invoked conditionally." >&2;}
19646 { (exit 1); exit 1; }; }
19647fi
19648if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19649 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19650Usually this means the macro was only invoked conditionally." >&5
19651$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19652Usually this means the macro was only invoked conditionally." >&2;}
19653 { (exit 1); exit 1; }; }
19654fi
19655if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19656 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
19657Usually this means the macro was only invoked conditionally." >&5
19658$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
19659Usually this means the macro was only invoked conditionally." >&2;}
19660 { (exit 1); exit 1; }; }
19661fi
19662if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
19663 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
19664Usually this means the macro was only invoked conditionally." >&5
19665$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
19666Usually this means the macro was only invoked conditionally." >&2;}
19667 { (exit 1); exit 1; }; }
19668fi
19669if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
19670 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
19671Usually this means the macro was only invoked conditionally." >&5
19672$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
19673Usually this means the macro was only invoked conditionally." >&2;}
19674 { (exit 1); exit 1; }; }
19675fi
19676
19677: ${CONFIG_STATUS=./config.status}
19678ac_write_fail=0
19679ac_clean_files_save=$ac_clean_files
19680ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19681{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19682$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19683cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19684#! $SHELL
19685# Generated by $as_me.
19686# Run this file to recreate the current configuration.
19687# Compiler output produced by configure, useful for debugging
19688# configure, is in config.log if it exists.
19689
19690debug=false
19691ac_cs_recheck=false
19692ac_cs_silent=false
19693SHELL=\${CONFIG_SHELL-$SHELL}
19694_ACEOF
19695
19696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19697## --------------------- ##
19698## M4sh Initialization. ##
19699## --------------------- ##
19700
19701# Be more Bourne compatible
19702DUALCASE=1; export DUALCASE # for MKS sh
19703if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19704 emulate sh
19705 NULLCMD=:
19706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19707 # is contrary to our usage. Disable this feature.
19708 alias -g '${1+"$@"}'='"$@"'
19709 setopt NO_GLOB_SUBST
19710else
19711 case `(set -o) 2>/dev/null` in
19712 *posix*) set -o posix ;;
19713esac
19714
19715fi
19716
19717
19718
19719
19720# PATH needs CR
19721# Avoid depending upon Character Ranges.
19722as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19723as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19724as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19725as_cr_digits='0123456789'
19726as_cr_alnum=$as_cr_Letters$as_cr_digits
19727
19728as_nl='
19729'
19730export as_nl
19731# Printing a long string crashes Solaris 7 /usr/bin/printf.
19732as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19735if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19736 as_echo='printf %s\n'
19737 as_echo_n='printf %s'
19738else
19739 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19740 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19741 as_echo_n='/usr/ucb/echo -n'
19742 else
19743 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19744 as_echo_n_body='eval
19745 arg=$1;
19746 case $arg in
19747 *"$as_nl"*)
19748 expr "X$arg" : "X\\(.*\\)$as_nl";
19749 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19750 esac;
19751 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19752 '
19753 export as_echo_n_body
19754 as_echo_n='sh -c $as_echo_n_body as_echo'
19755 fi
19756 export as_echo_body
19757 as_echo='sh -c $as_echo_body as_echo'
19758fi
19759
19760# The user is always right.
19761if test "${PATH_SEPARATOR+set}" != set; then
19762 PATH_SEPARATOR=:
19763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19765 PATH_SEPARATOR=';'
19766 }
19767fi
19768
19769# Support unset when possible.
19770if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19771 as_unset=unset
19772else
19773 as_unset=false
19774fi
19775
19776
19777# IFS
19778# We need space, tab and new line, in precisely that order. Quoting is
19779# there to prevent editors from complaining about space-tab.
19780# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19781# splitting by setting IFS to empty value.)
19782IFS=" "" $as_nl"
19783
19784# Find who we are. Look in the path if we contain no directory separator.
19785case $0 in
19786 *[\\/]* ) as_myself=$0 ;;
19787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19788for as_dir in $PATH
19789do
19790 IFS=$as_save_IFS
19791 test -z "$as_dir" && as_dir=.
19792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19793done
19794IFS=$as_save_IFS
19795
19796 ;;
19797esac
19798# We did not find ourselves, most probably we were run as `sh COMMAND'
19799# in which case we are not to be found in the path.
19800if test "x$as_myself" = x; then
19801 as_myself=$0
19802fi
19803if test ! -f "$as_myself"; then
19804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19805 { (exit 1); exit 1; }
19806fi
19807
19808# Work around bugs in pre-3.0 UWIN ksh.
19809for as_var in ENV MAIL MAILPATH
19810do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19811done
19812PS1='$ '
19813PS2='> '
19814PS4='+ '
19815
19816# NLS nuisances.
19817LC_ALL=C
19818export LC_ALL
19819LANGUAGE=C
19820export LANGUAGE
19821
19822# Required to use basename.
19823if expr a : '\(a\)' >/dev/null 2>&1 &&
19824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19825 as_expr=expr
19826else
19827 as_expr=false
19828fi
19829
19830if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19831 as_basename=basename
19832else
19833 as_basename=false
19834fi
19835
19836
19837# Name of the executable.
19838as_me=`$as_basename -- "$0" ||
19839$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19840 X"$0" : 'X\(//\)$' \| \
19841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19842$as_echo X/"$0" |
19843 sed '/^.*\/\([^/][^/]*\)\/*$/{
19844 s//\1/
19845 q
19846 }
19847 /^X\/\(\/\/\)$/{
19848 s//\1/
19849 q
19850 }
19851 /^X\/\(\/\).*/{
19852 s//\1/
19853 q
19854 }
19855 s/.*/./; q'`
19856
19857# CDPATH.
19858$as_unset CDPATH
19859
19860
19861
19862 as_lineno_1=$LINENO
19863 as_lineno_2=$LINENO
19864 test "x$as_lineno_1" != "x$as_lineno_2" &&
19865 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19866
19867 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19868 # uniformly replaced by the line number. The first 'sed' inserts a
19869 # line-number line after each line using $LINENO; the second 'sed'
19870 # does the real work. The second script uses 'N' to pair each
19871 # line-number line with the line containing $LINENO, and appends
19872 # trailing '-' during substitution so that $LINENO is not a special
19873 # case at line end.
19874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19875 # scripts with optimization help from Paolo Bonzini. Blame Lee
19876 # E. McMahon (1931-1989) for sed's syntax. :-)
19877 sed -n '
19878 p
19879 /[$]LINENO/=
19880 ' <$as_myself |
19881 sed '
19882 s/[$]LINENO.*/&-/
19883 t lineno
19884 b
19885 :lineno
19886 N
19887 :loop
19888 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19889 t loop
19890 s/-\n.*//
19891 ' >$as_me.lineno &&
19892 chmod +x "$as_me.lineno" ||
19893 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19894 { (exit 1); exit 1; }; }
19895
19896 # Don't try to exec as it changes $[0], causing all sort of problems
19897 # (the dirname of $[0] is not the place where we might find the
19898 # original and so on. Autoconf is especially sensitive to this).
19899 . "./$as_me.lineno"
19900 # Exit status is that of the last command.
19901 exit
19902}
19903
19904
19905if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19906 as_dirname=dirname
19907else
19908 as_dirname=false
19909fi
19910
19911ECHO_C= ECHO_N= ECHO_T=
19912case `echo -n x` in
19913-n*)
19914 case `echo 'x\c'` in
19915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19916 *) ECHO_C='\c';;
19917 esac;;
19918*)
19919 ECHO_N='-n';;
19920esac
19921if expr a : '\(a\)' >/dev/null 2>&1 &&
19922 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19923 as_expr=expr
19924else
19925 as_expr=false
19926fi
19927
19928rm -f conf$$ conf$$.exe conf$$.file
19929if test -d conf$$.dir; then
19930 rm -f conf$$.dir/conf$$.file
19931else
19932 rm -f conf$$.dir
19933 mkdir conf$$.dir 2>/dev/null
19934fi
19935if (echo >conf$$.file) 2>/dev/null; then
19936 if ln -s conf$$.file conf$$ 2>/dev/null; then
19937 as_ln_s='ln -s'
19938 # ... but there are two gotchas:
19939 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19940 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19941 # In both cases, we have to default to `cp -p'.
19942 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19943 as_ln_s='cp -p'
19944 elif ln conf$$.file conf$$ 2>/dev/null; then
19945 as_ln_s=ln
19946 else
19947 as_ln_s='cp -p'
19948 fi
19949else
19950 as_ln_s='cp -p'
19951fi
19952rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19953rmdir conf$$.dir 2>/dev/null
19954
19955if mkdir -p . 2>/dev/null; then
19956 as_mkdir_p=:
19957else
19958 test -d ./-p && rmdir ./-p
19959 as_mkdir_p=false
19960fi
19961
19962if test -x / >/dev/null 2>&1; then
19963 as_test_x='test -x'
19964else
19965 if ls -dL / >/dev/null 2>&1; then
19966 as_ls_L_option=L
19967 else
19968 as_ls_L_option=
19969 fi
19970 as_test_x='
19971 eval sh -c '\''
19972 if test -d "$1"; then
19973 test -d "$1/.";
19974 else
19975 case $1 in
19976 -*)set "./$1";;
19977 esac;
19978 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19979 ???[sx]*):;;*)false;;esac;fi
19980 '\'' sh
19981 '
19982fi
19983as_executable_p=$as_test_x
19984
19985# Sed expression to map a string onto a valid CPP name.
19986as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19987
19988# Sed expression to map a string onto a valid variable name.
19989as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19990
19991
19992exec 6>&1
19993
19994# Save the log message, to keep $[0] and so on meaningful, and to
19995# report actual input values of CONFIG_FILES etc. instead of their
19996# values after options handling.
19997ac_log="
19998This file was extended by $as_me, which was
19999generated by GNU Autoconf 2.63. Invocation command line was
20000
20001 CONFIG_FILES = $CONFIG_FILES
20002 CONFIG_HEADERS = $CONFIG_HEADERS
20003 CONFIG_LINKS = $CONFIG_LINKS
20004 CONFIG_COMMANDS = $CONFIG_COMMANDS
20005 $ $0 $@
20006
20007on `(hostname || uname -n) 2>/dev/null | sed 1q`
20008"
20009
20010_ACEOF
20011
20012case $ac_config_files in *"
20013"*) set x $ac_config_files; shift; ac_config_files=$*;;
20014esac
20015
20016case $ac_config_headers in *"
20017"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20018esac
20019
20020
20021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20022# Files that config.status was made for.
20023config_files="$ac_config_files"
20024config_headers="$ac_config_headers"
20025config_commands="$ac_config_commands"
20026
20027_ACEOF
20028
20029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20030ac_cs_usage="\
20031\`$as_me' instantiates files from templates according to the
20032current configuration.
20033
20034Usage: $0 [OPTION]... [FILE]...
20035
20036 -h, --help print this help, then exit
20037 -V, --version print version number and configuration settings, then exit
20038 -q, --quiet, --silent
20039 do not print progress messages
20040 -d, --debug don't remove temporary files
20041 --recheck update $as_me by reconfiguring in the same conditions
20042 --file=FILE[:TEMPLATE]
20043 instantiate the configuration file FILE
20044 --header=FILE[:TEMPLATE]
20045 instantiate the configuration header FILE
20046
20047Configuration files:
20048$config_files
20049
20050Configuration headers:
20051$config_headers
20052
20053Configuration commands:
20054$config_commands
20055
20056Report bugs to <bug-autoconf@gnu.org>."
20057
20058_ACEOF
20059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20060ac_cs_version="\\
20061config.status
20062configured by $0, generated by GNU Autoconf 2.63,
20063 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20064
20065Copyright (C) 2008 Free Software Foundation, Inc.
20066This config.status script is free software; the Free Software Foundation
20067gives unlimited permission to copy, distribute and modify it."
20068
20069ac_pwd='$ac_pwd'
20070srcdir='$srcdir'
20071INSTALL='$INSTALL'
20072MKDIR_P='$MKDIR_P'
20073AWK='$AWK'
20074test -n "\$AWK" || AWK=awk
20075_ACEOF
20076
20077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20078# The default lists apply if the user does not specify any file.
20079ac_need_defaults=:
20080while test $# != 0
20081do
20082 case $1 in
20083 --*=*)
20084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20085 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20086 ac_shift=:
20087 ;;
20088 *)
20089 ac_option=$1
20090 ac_optarg=$2
20091 ac_shift=shift
20092 ;;
20093 esac
20094
20095 case $ac_option in
20096 # Handling of the options.
20097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20098 ac_cs_recheck=: ;;
20099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20100 $as_echo "$ac_cs_version"; exit ;;
20101 --debug | --debu | --deb | --de | --d | -d )
20102 debug=: ;;
20103 --file | --fil | --fi | --f )
20104 $ac_shift
20105 case $ac_optarg in
20106 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20107 esac
20108 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20109 ac_need_defaults=false;;
20110 --header | --heade | --head | --hea )
20111 $ac_shift
20112 case $ac_optarg in
20113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20114 esac
20115 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20116 ac_need_defaults=false;;
20117 --he | --h)
20118 # Conflict between --help and --header
20119 { $as_echo "$as_me: error: ambiguous option: $1
20120Try \`$0 --help' for more information." >&2
20121 { (exit 1); exit 1; }; };;
20122 --help | --hel | -h )
20123 $as_echo "$ac_cs_usage"; exit ;;
20124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20125 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20126 ac_cs_silent=: ;;
20127
20128 # This is an error.
20129 -*) { $as_echo "$as_me: error: unrecognized option: $1
20130Try \`$0 --help' for more information." >&2
20131 { (exit 1); exit 1; }; } ;;
20132
20133 *) ac_config_targets="$ac_config_targets $1"
20134 ac_need_defaults=false ;;
20135
20136 esac
20137 shift
20138done
20139
20140ac_configure_extra_args=
20141
20142if $ac_cs_silent; then
20143 exec 6>/dev/null
20144 ac_configure_extra_args="$ac_configure_extra_args --silent"
20145fi
20146
20147_ACEOF
20148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20149if \$ac_cs_recheck; then
20150 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20151 shift
20152 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20153 CONFIG_SHELL='$SHELL'
20154 export CONFIG_SHELL
20155 exec "\$@"
20156fi
20157
20158_ACEOF
20159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20160exec 5>>config.log
20161{
20162 echo
20163 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20164## Running $as_me. ##
20165_ASBOX
20166 $as_echo "$ac_log"
20167} >&5
20168
20169_ACEOF
20170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20171#
20172# INIT-COMMANDS
20173#
20174AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20175
20176
20177# The HP-UX ksh and POSIX shell print the target directory to stdout
20178# if CDPATH is set.
20179(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20180
20181sed_quote_subst='$sed_quote_subst'
20182double_quote_subst='$double_quote_subst'
20183delay_variable_subst='$delay_variable_subst'
20184macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20185macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20186enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20187enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20188pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20189enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20190host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20191host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20192host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20193build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20194build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20195build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20196SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20197Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20198GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20199EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20200FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20201LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20202NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20203LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20204max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20205ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20206exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20207lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20208lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20209lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20210reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20211reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20212OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20213deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20214file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20215AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20216AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20217STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20218RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20219old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20220old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20221old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20222CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20223CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20224compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20225GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20226lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20227lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20228lt_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"`'
20229lt_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"`'
20230objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20231SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20232ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20233MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20234lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20235lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20236lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20237lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20238lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20239need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20240DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20241NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20242LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20243OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20244OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20245libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20246shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20247extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20248archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20249enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20250export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20251whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20252compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20253old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20254old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20255archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20256archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20257module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20258module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20259with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20260allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20261no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20262hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20263hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20264hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20265hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20266hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20267hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20268hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20269hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20270inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20271link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20272fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20273always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20274export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20275exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20276include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20277prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20278file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20279variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20280need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20281need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20282version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20283runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20284shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20285shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20286libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20287library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20288soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20289postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20290postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20291finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20292finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20293hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20294sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20295sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20296hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20297enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20298enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20299enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20300old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20301striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20302
20303LTCC='$LTCC'
20304LTCFLAGS='$LTCFLAGS'
20305compiler='$compiler_DEFAULT'
20306
20307# Quote evaled strings.
20308for var in SED \
20309GREP \
20310EGREP \
20311FGREP \
20312LD \
20313NM \
20314LN_S \
20315lt_SP2NL \
20316lt_NL2SP \
20317reload_flag \
20318OBJDUMP \
20319deplibs_check_method \
20320file_magic_cmd \
20321AR \
20322AR_FLAGS \
20323STRIP \
20324RANLIB \
20325CC \
20326CFLAGS \
20327compiler \
20328lt_cv_sys_global_symbol_pipe \
20329lt_cv_sys_global_symbol_to_cdecl \
20330lt_cv_sys_global_symbol_to_c_name_address \
20331lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20332SHELL \
20333ECHO \
20334lt_prog_compiler_no_builtin_flag \
20335lt_prog_compiler_wl \
20336lt_prog_compiler_pic \
20337lt_prog_compiler_static \
20338lt_cv_prog_compiler_c_o \
20339need_locks \
20340DSYMUTIL \
20341NMEDIT \
20342LIPO \
20343OTOOL \
20344OTOOL64 \
20345shrext_cmds \
20346export_dynamic_flag_spec \
20347whole_archive_flag_spec \
20348compiler_needs_object \
20349with_gnu_ld \
20350allow_undefined_flag \
20351no_undefined_flag \
20352hardcode_libdir_flag_spec \
20353hardcode_libdir_flag_spec_ld \
20354hardcode_libdir_separator \
20355fix_srcfile_path \
20356exclude_expsyms \
20357include_expsyms \
20358file_list_spec \
20359variables_saved_for_relink \
20360libname_spec \
20361library_names_spec \
20362soname_spec \
20363finish_eval \
20364old_striplib \
20365striplib; do
20366 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20367 *[\\\\\\\`\\"\\\$]*)
20368 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20369 ;;
20370 *)
20371 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20372 ;;
20373 esac
20374done
20375
20376# Double-quote double-evaled strings.
20377for var in reload_cmds \
20378old_postinstall_cmds \
20379old_postuninstall_cmds \
20380old_archive_cmds \
20381extract_expsyms_cmds \
20382old_archive_from_new_cmds \
20383old_archive_from_expsyms_cmds \
20384archive_cmds \
20385archive_expsym_cmds \
20386module_cmds \
20387module_expsym_cmds \
20388export_symbols_cmds \
20389prelink_cmds \
20390postinstall_cmds \
20391postuninstall_cmds \
20392finish_cmds \
20393sys_lib_search_path_spec \
20394sys_lib_dlsearch_path_spec; do
20395 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20396 *[\\\\\\\`\\"\\\$]*)
20397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20398 ;;
20399 *)
20400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20401 ;;
20402 esac
20403done
20404
20405# Fix-up fallback echo if it was mangled by the above quoting rules.
20406case \$lt_ECHO in
20407*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
20408 ;;
20409esac
20410
20411ac_aux_dir='$ac_aux_dir'
20412xsi_shell='$xsi_shell'
20413lt_shell_append='$lt_shell_append'
20414
20415# See if we are running on zsh, and set the options which allow our
20416# commands through without removal of \ escapes INIT.
20417if test -n "\${ZSH_VERSION+set}" ; then
20418 setopt NO_GLOB_SUBST
20419fi
20420
20421
20422 PACKAGE='$PACKAGE'
20423 VERSION='$VERSION'
20424 TIMESTAMP='$TIMESTAMP'
20425 RM='$RM'
20426 ofile='$ofile'
20427
20428
20429
20430
20431_ACEOF
20432
20433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20434
20435# Handling of arguments.
20436for ac_config_target in $ac_config_targets
20437do
20438 case $ac_config_target in
20439 "zfs_config.h") CONFIG_HEADERS="$CONFIG_HEADERS zfs_config.h" ;;
20440 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20441 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20442 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
e70e591c
BB
20443 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
20444 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20445 "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
20446 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20447 "lib/libspl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/Makefile" ;;
20448 "lib/libspl/asm-generic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
20449 "lib/libspl/asm-i386/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
20450 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
20451 "lib/libspl/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/Makefile" ;;
6283f55e
BB
20452 "lib/libspl/include/ia32/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
20453 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
20454 "lib/libspl/include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
20455 "lib/libspl/include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
20456 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
20457 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
20458 "lib/libspl/include/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
e70e591c
BB
20459 "lib/libavl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libavl/Makefile" ;;
20460 "lib/libefi/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libefi/Makefile" ;;
20461 "lib/libnvpair/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libnvpair/Makefile" ;;
20462 "lib/libunicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libunicode/Makefile" ;;
20463 "lib/libuutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libuutil/Makefile" ;;
20464 "lib/libzpool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzpool/Makefile" ;;
e70e591c
BB
20465 "lib/libzfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/libzfs/Makefile" ;;
20466 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
20467 "cmd/zdb/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zdb/Makefile" ;;
20468 "cmd/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zfs/Makefile" ;;
20469 "cmd/zinject/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zinject/Makefile" ;;
20470 "cmd/zpool/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool/Makefile" ;;
20471 "cmd/zpool_id/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_id/Makefile" ;;
20472 "cmd/zpool_layout/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpool_layout/Makefile" ;;
20473 "cmd/ztest/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/ztest/Makefile" ;;
20474 "cmd/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/zpios/Makefile" ;;
20475 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
20476 "module/avl/Makefile") CONFIG_FILES="$CONFIG_FILES module/avl/Makefile" ;;
20477 "module/nvpair/Makefile") CONFIG_FILES="$CONFIG_FILES module/nvpair/Makefile" ;;
20478 "module/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES module/unicode/Makefile" ;;
20479 "module/zcommon/Makefile") CONFIG_FILES="$CONFIG_FILES module/zcommon/Makefile" ;;
20480 "module/zfs/Makefile") CONFIG_FILES="$CONFIG_FILES module/zfs/Makefile" ;;
20481 "module/zpios/Makefile") CONFIG_FILES="$CONFIG_FILES module/zpios/Makefile" ;;
6283f55e 20482 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8299a1f4 20483 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
6283f55e
BB
20484 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
20485 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
20486 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
20487 "include/sys/fm/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
e70e591c 20488 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
6283f55e
BB
20489 "scripts/zpios-profile/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
20490 "scripts/zpios-test/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
20491 "scripts/zpool-config/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
a5b4d635 20492 "scripts/zpool-layout/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/zpool-layout/Makefile" ;;
e70e591c
BB
20493 "scripts/common.sh") CONFIG_FILES="$CONFIG_FILES scripts/common.sh" ;;
20494 "zfs.spec") CONFIG_FILES="$CONFIG_FILES zfs.spec" ;;
20495 "zfs-modules.spec") CONFIG_FILES="$CONFIG_FILES zfs-modules.spec" ;;
6283f55e 20496 "zfs-script-config.sh") CONFIG_FILES="$CONFIG_FILES zfs-script-config.sh" ;;
e70e591c
BB
20497
20498 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20499$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20500 { (exit 1); exit 1; }; };;
20501 esac
20502done
20503
20504
20505# If the user did not use the arguments to specify the items to instantiate,
20506# then the envvar interface is used. Set only those that are not.
20507# We use the long form for the default assignment because of an extremely
20508# bizarre bug on SunOS 4.1.3.
20509if $ac_need_defaults; then
20510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20513fi
20514
20515# Have a temporary directory for convenience. Make it in the build tree
20516# simply because there is no reason against having it here, and in addition,
20517# creating and moving files from /tmp can sometimes cause problems.
20518# Hook for its removal unless debugging.
20519# Note that there is a small window in which the directory will not be cleaned:
20520# after its creation but before its name has been assigned to `$tmp'.
20521$debug ||
20522{
20523 tmp=
20524 trap 'exit_status=$?
20525 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20526' 0
20527 trap '{ (exit 1); exit 1; }' 1 2 13 15
20528}
20529# Create a (secure) tmp directory for tmp files.
20530
20531{
20532 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20533 test -n "$tmp" && test -d "$tmp"
20534} ||
20535{
20536 tmp=./conf$$-$RANDOM
20537 (umask 077 && mkdir "$tmp")
20538} ||
20539{
20540 $as_echo "$as_me: cannot create a temporary directory in ." >&2
20541 { (exit 1); exit 1; }
20542}
20543
20544# Set up the scripts for CONFIG_FILES section.
20545# No need to generate them if there are no CONFIG_FILES.
20546# This happens for instance with `./config.status config.h'.
20547if test -n "$CONFIG_FILES"; then
20548
20549
20550ac_cr='\r'
20551ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20552if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20553 ac_cs_awk_cr='\\r'
20554else
20555 ac_cs_awk_cr=$ac_cr
20556fi
20557
20558echo 'BEGIN {' >"$tmp/subs1.awk" &&
20559_ACEOF
20560
20561
20562{
20563 echo "cat >conf$$subs.awk <<_ACEOF" &&
20564 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20565 echo "_ACEOF"
20566} >conf$$subs.sh ||
20567 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20568$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20569 { (exit 1); exit 1; }; }
20570ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20571ac_delim='%!_!# '
20572for ac_last_try in false false false false false :; do
20573 . ./conf$$subs.sh ||
20574 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20575$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20576 { (exit 1); exit 1; }; }
20577
20578 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20579 if test $ac_delim_n = $ac_delim_num; then
20580 break
20581 elif $ac_last_try; then
20582 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20583$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20584 { (exit 1); exit 1; }; }
20585 else
20586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20587 fi
20588done
20589rm -f conf$$subs.sh
20590
20591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20592cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20593_ACEOF
20594sed -n '
20595h
20596s/^/S["/; s/!.*/"]=/
20597p
20598g
20599s/^[^!]*!//
20600:repl
20601t repl
20602s/'"$ac_delim"'$//
20603t delim
20604:nl
20605h
20606s/\(.\{148\}\).*/\1/
20607t more1
20608s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20609p
20610n
20611b repl
20612:more1
20613s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20614p
20615g
20616s/.\{148\}//
20617t nl
20618:delim
20619h
20620s/\(.\{148\}\).*/\1/
20621t more2
20622s/["\\]/\\&/g; s/^/"/; s/$/"/
20623p
20624b
20625:more2
20626s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20627p
20628g
20629s/.\{148\}//
20630t delim
20631' <conf$$subs.awk | sed '
20632/^[^""]/{
20633 N
20634 s/\n//
20635}
20636' >>$CONFIG_STATUS || ac_write_fail=1
20637rm -f conf$$subs.awk
20638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20639_ACAWK
20640cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20641 for (key in S) S_is_set[key] = 1
20642 FS = "\a"
20643
20644}
20645{
20646 line = $ 0
20647 nfields = split(line, field, "@")
20648 substed = 0
20649 len = length(field[1])
20650 for (i = 2; i < nfields; i++) {
20651 key = field[i]
20652 keylen = length(key)
20653 if (S_is_set[key]) {
20654 value = S[key]
20655 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20656 len += length(value) + length(field[++i])
20657 substed = 1
20658 } else
20659 len += 1 + keylen
20660 }
20661
20662 print line
20663}
20664
20665_ACAWK
20666_ACEOF
20667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20668if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20669 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20670else
20671 cat
20672fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20673 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
20674$as_echo "$as_me: error: could not setup config files machinery" >&2;}
20675 { (exit 1); exit 1; }; }
20676_ACEOF
20677
20678# VPATH may cause trouble with some makes, so we remove $(srcdir),
20679# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20680# trailing colons and then remove the whole line if VPATH becomes empty
20681# (actually we leave an empty line to preserve line numbers).
20682if test "x$srcdir" = x.; then
20683 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20684s/:*\$(srcdir):*/:/
20685s/:*\${srcdir}:*/:/
20686s/:*@srcdir@:*/:/
20687s/^\([^=]*=[ ]*\):*/\1/
20688s/:*$//
20689s/^[^=]*=[ ]*$//
20690}'
20691fi
20692
20693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20694fi # test -n "$CONFIG_FILES"
20695
20696# Set up the scripts for CONFIG_HEADERS section.
20697# No need to generate them if there are no CONFIG_HEADERS.
20698# This happens for instance with `./config.status Makefile'.
20699if test -n "$CONFIG_HEADERS"; then
20700cat >"$tmp/defines.awk" <<\_ACAWK ||
20701BEGIN {
20702_ACEOF
20703
20704# Transform confdefs.h into an awk script `defines.awk', embedded as
20705# here-document in config.status, that substitutes the proper values into
20706# config.h.in to produce config.h.
20707
20708# Create a delimiter string that does not exist in confdefs.h, to ease
20709# handling of long lines.
20710ac_delim='%!_!# '
20711for ac_last_try in false false :; do
20712 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20713 if test -z "$ac_t"; then
20714 break
20715 elif $ac_last_try; then
20716 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20717$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20718 { (exit 1); exit 1; }; }
20719 else
20720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20721 fi
20722done
20723
20724# For the awk script, D is an array of macro values keyed by name,
20725# likewise P contains macro parameters if any. Preserve backslash
20726# newline sequences.
20727
20728ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20729sed -n '
20730s/.\{148\}/&'"$ac_delim"'/g
20731t rset
20732:rset
20733s/^[ ]*#[ ]*define[ ][ ]*/ /
20734t def
20735d
20736:def
20737s/\\$//
20738t bsnl
20739s/["\\]/\\&/g
20740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20741D["\1"]=" \3"/p
20742s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20743d
20744:bsnl
20745s/["\\]/\\&/g
20746s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20747D["\1"]=" \3\\\\\\n"\\/p
20748t cont
20749s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20750t cont
20751d
20752:cont
20753n
20754s/.\{148\}/&'"$ac_delim"'/g
20755t clear
20756:clear
20757s/\\$//
20758t bsnlc
20759s/["\\]/\\&/g; s/^/"/; s/$/"/p
20760d
20761:bsnlc
20762s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20763b cont
20764' <confdefs.h | sed '
20765s/'"$ac_delim"'/"\\\
20766"/g' >>$CONFIG_STATUS || ac_write_fail=1
20767
20768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20769 for (key in D) D_is_set[key] = 1
20770 FS = "\a"
20771}
20772/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20773 line = \$ 0
20774 split(line, arg, " ")
20775 if (arg[1] == "#") {
20776 defundef = arg[2]
20777 mac1 = arg[3]
20778 } else {
20779 defundef = substr(arg[1], 2)
20780 mac1 = arg[2]
20781 }
20782 split(mac1, mac2, "(") #)
20783 macro = mac2[1]
20784 prefix = substr(line, 1, index(line, defundef) - 1)
20785 if (D_is_set[macro]) {
20786 # Preserve the white space surrounding the "#".
20787 print prefix "define", macro P[macro] D[macro]
20788 next
20789 } else {
20790 # Replace #undef with comments. This is necessary, for example,
20791 # in the case of _POSIX_SOURCE, which is predefined and required
20792 # on some systems where configure will not decide to define it.
20793 if (defundef == "undef") {
20794 print "/*", prefix defundef, macro, "*/"
20795 next
20796 }
20797 }
20798}
20799{ print }
20800_ACAWK
20801_ACEOF
20802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20803 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
20804$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
20805 { (exit 1); exit 1; }; }
20806fi # test -n "$CONFIG_HEADERS"
20807
20808
20809eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20810shift
20811for ac_tag
20812do
20813 case $ac_tag in
20814 :[FHLC]) ac_mode=$ac_tag; continue;;
20815 esac
20816 case $ac_mode$ac_tag in
20817 :[FHL]*:*);;
20818 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
20819$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
20820 { (exit 1); exit 1; }; };;
20821 :[FH]-) ac_tag=-:-;;
20822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20823 esac
20824 ac_save_IFS=$IFS
20825 IFS=:
20826 set x $ac_tag
20827 IFS=$ac_save_IFS
20828 shift
20829 ac_file=$1
20830 shift
20831
20832 case $ac_mode in
20833 :L) ac_source=$1;;
20834 :[FH])
20835 ac_file_inputs=
20836 for ac_f
20837 do
20838 case $ac_f in
20839 -) ac_f="$tmp/stdin";;
20840 *) # Look for the file first in the build tree, then in the source tree
20841 # (if the path is not absolute). The absolute path cannot be DOS-style,
20842 # because $ac_f cannot contain `:'.
20843 test -f "$ac_f" ||
20844 case $ac_f in
20845 [\\/$]*) false;;
20846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20847 esac ||
20848 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20849$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20850 { (exit 1); exit 1; }; };;
20851 esac
20852 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20853 ac_file_inputs="$ac_file_inputs '$ac_f'"
20854 done
20855
20856 # Let's still pretend it is `configure' which instantiates (i.e., don't
20857 # use $as_me), people would be surprised to read:
20858 # /* config.h. Generated by config.status. */
20859 configure_input='Generated from '`
20860 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20861 `' by configure.'
20862 if test x"$ac_file" != x-; then
20863 configure_input="$ac_file. $configure_input"
20864 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
20865$as_echo "$as_me: creating $ac_file" >&6;}
20866 fi
20867 # Neutralize special characters interpreted by sed in replacement strings.
20868 case $configure_input in #(
20869 *\&* | *\|* | *\\* )
20870 ac_sed_conf_input=`$as_echo "$configure_input" |
20871 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20872 *) ac_sed_conf_input=$configure_input;;
20873 esac
20874
20875 case $ac_tag in
20876 *:-:* | *:-) cat >"$tmp/stdin" \
20877 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20878$as_echo "$as_me: error: could not create $ac_file" >&2;}
20879 { (exit 1); exit 1; }; } ;;
20880 esac
20881 ;;
20882 esac
20883
20884 ac_dir=`$as_dirname -- "$ac_file" ||
20885$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20886 X"$ac_file" : 'X\(//\)[^/]' \| \
20887 X"$ac_file" : 'X\(//\)$' \| \
20888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20889$as_echo X"$ac_file" |
20890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20891 s//\1/
20892 q
20893 }
20894 /^X\(\/\/\)[^/].*/{
20895 s//\1/
20896 q
20897 }
20898 /^X\(\/\/\)$/{
20899 s//\1/
20900 q
20901 }
20902 /^X\(\/\).*/{
20903 s//\1/
20904 q
20905 }
20906 s/.*/./; q'`
20907 { as_dir="$ac_dir"
20908 case $as_dir in #(
20909 -*) as_dir=./$as_dir;;
20910 esac
20911 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20912 as_dirs=
20913 while :; do
20914 case $as_dir in #(
20915 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20916 *) as_qdir=$as_dir;;
20917 esac
20918 as_dirs="'$as_qdir' $as_dirs"
20919 as_dir=`$as_dirname -- "$as_dir" ||
20920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20921 X"$as_dir" : 'X\(//\)[^/]' \| \
20922 X"$as_dir" : 'X\(//\)$' \| \
20923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20924$as_echo X"$as_dir" |
20925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20926 s//\1/
20927 q
20928 }
20929 /^X\(\/\/\)[^/].*/{
20930 s//\1/
20931 q
20932 }
20933 /^X\(\/\/\)$/{
20934 s//\1/
20935 q
20936 }
20937 /^X\(\/\).*/{
20938 s//\1/
20939 q
20940 }
20941 s/.*/./; q'`
20942 test -d "$as_dir" && break
20943 done
20944 test -z "$as_dirs" || eval "mkdir $as_dirs"
20945 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20946$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20947 { (exit 1); exit 1; }; }; }
20948 ac_builddir=.
20949
20950case "$ac_dir" in
20951.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20952*)
20953 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20954 # A ".." for each directory in $ac_dir_suffix.
20955 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20956 case $ac_top_builddir_sub in
20957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20959 esac ;;
20960esac
20961ac_abs_top_builddir=$ac_pwd
20962ac_abs_builddir=$ac_pwd$ac_dir_suffix
20963# for backward compatibility:
20964ac_top_builddir=$ac_top_build_prefix
20965
20966case $srcdir in
20967 .) # We are building in place.
20968 ac_srcdir=.
20969 ac_top_srcdir=$ac_top_builddir_sub
20970 ac_abs_top_srcdir=$ac_pwd ;;
20971 [\\/]* | ?:[\\/]* ) # Absolute name.
20972 ac_srcdir=$srcdir$ac_dir_suffix;
20973 ac_top_srcdir=$srcdir
20974 ac_abs_top_srcdir=$srcdir ;;
20975 *) # Relative name.
20976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20977 ac_top_srcdir=$ac_top_build_prefix$srcdir
20978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20979esac
20980ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20981
20982
20983 case $ac_mode in
20984 :F)
20985 #
20986 # CONFIG_FILE
20987 #
20988
20989 case $INSTALL in
20990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20992 esac
20993 ac_MKDIR_P=$MKDIR_P
20994 case $MKDIR_P in
20995 [\\/$]* | ?:[\\/]* ) ;;
20996 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20997 esac
20998_ACEOF
20999
21000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21001# If the template does not know about datarootdir, expand it.
21002# FIXME: This hack should be removed a few years after 2.60.
21003ac_datarootdir_hack=; ac_datarootdir_seen=
21004
21005ac_sed_dataroot='
21006/datarootdir/ {
21007 p
21008 q
21009}
21010/@datadir@/p
21011/@docdir@/p
21012/@infodir@/p
21013/@localedir@/p
21014/@mandir@/p
21015'
21016case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21017*datarootdir*) ac_datarootdir_seen=yes;;
21018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21019 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21020$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21021_ACEOF
21022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21023 ac_datarootdir_hack='
21024 s&@datadir@&$datadir&g
21025 s&@docdir@&$docdir&g
21026 s&@infodir@&$infodir&g
21027 s&@localedir@&$localedir&g
21028 s&@mandir@&$mandir&g
21029 s&\\\${datarootdir}&$datarootdir&g' ;;
21030esac
21031_ACEOF
21032
21033# Neutralize VPATH when `$srcdir' = `.'.
21034# Shell code in configure.ac might set extrasub.
21035# FIXME: do we really want to maintain this feature?
21036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21037ac_sed_extra="$ac_vpsub
21038$extrasub
21039_ACEOF
21040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21041:t
21042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21043s|@configure_input@|$ac_sed_conf_input|;t t
21044s&@top_builddir@&$ac_top_builddir_sub&;t t
21045s&@top_build_prefix@&$ac_top_build_prefix&;t t
21046s&@srcdir@&$ac_srcdir&;t t
21047s&@abs_srcdir@&$ac_abs_srcdir&;t t
21048s&@top_srcdir@&$ac_top_srcdir&;t t
21049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21050s&@builddir@&$ac_builddir&;t t
21051s&@abs_builddir@&$ac_abs_builddir&;t t
21052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21053s&@INSTALL@&$ac_INSTALL&;t t
21054s&@MKDIR_P@&$ac_MKDIR_P&;t t
21055$ac_datarootdir_hack
21056"
21057eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21058 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21059$as_echo "$as_me: error: could not create $ac_file" >&2;}
21060 { (exit 1); exit 1; }; }
21061
21062test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21063 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21064 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21065 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21066which seems to be undefined. Please make sure it is defined." >&5
21067$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21068which seems to be undefined. Please make sure it is defined." >&2;}
21069
21070 rm -f "$tmp/stdin"
21071 case $ac_file in
21072 -) cat "$tmp/out" && rm -f "$tmp/out";;
21073 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21074 esac \
21075 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21076$as_echo "$as_me: error: could not create $ac_file" >&2;}
21077 { (exit 1); exit 1; }; }
21078 ;;
21079 :H)
21080 #
21081 # CONFIG_HEADER
21082 #
21083 if test x"$ac_file" != x-; then
21084 {
21085 $as_echo "/* $configure_input */" \
21086 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21087 } >"$tmp/config.h" \
21088 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21089$as_echo "$as_me: error: could not create $ac_file" >&2;}
21090 { (exit 1); exit 1; }; }
21091 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21092 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21093$as_echo "$as_me: $ac_file is unchanged" >&6;}
21094 else
21095 rm -f "$ac_file"
21096 mv "$tmp/config.h" "$ac_file" \
21097 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21098$as_echo "$as_me: error: could not create $ac_file" >&2;}
21099 { (exit 1); exit 1; }; }
21100 fi
21101 else
21102 $as_echo "/* $configure_input */" \
21103 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21104 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21105$as_echo "$as_me: error: could not create -" >&2;}
21106 { (exit 1); exit 1; }; }
21107 fi
21108# Compute "$ac_file"'s index in $config_headers.
21109_am_arg="$ac_file"
21110_am_stamp_count=1
21111for _am_header in $config_headers :; do
21112 case $_am_header in
21113 $_am_arg | $_am_arg:* )
21114 break ;;
21115 * )
21116 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21117 esac
21118done
21119echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21120$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21121 X"$_am_arg" : 'X\(//\)[^/]' \| \
21122 X"$_am_arg" : 'X\(//\)$' \| \
21123 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21124$as_echo X"$_am_arg" |
21125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21126 s//\1/
21127 q
21128 }
21129 /^X\(\/\/\)[^/].*/{
21130 s//\1/
21131 q
21132 }
21133 /^X\(\/\/\)$/{
21134 s//\1/
21135 q
21136 }
21137 /^X\(\/\).*/{
21138 s//\1/
21139 q
21140 }
21141 s/.*/./; q'`/stamp-h$_am_stamp_count
21142 ;;
21143
21144 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21145$as_echo "$as_me: executing $ac_file commands" >&6;}
21146 ;;
21147 esac
21148
21149
21150 case $ac_file$ac_mode in
21151 "zfs_config.h":H)
21152 (mv zfs_config.h zfs_config.h.tmp &&
6283f55e 21153 awk -f ${ac_srcdir}/config/config.awk zfs_config.h.tmp >zfs_config.h &&
e70e591c
BB
21154 rm zfs_config.h.tmp) || exit 1 ;;
21155 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21156 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21157 # are listed without --file. Let's play safe and only enable the eval
21158 # if we detect the quoting.
21159 case $CONFIG_FILES in
21160 *\'*) eval set x "$CONFIG_FILES" ;;
21161 *) set x $CONFIG_FILES ;;
21162 esac
21163 shift
21164 for mf
21165 do
21166 # Strip MF so we end up with the name of the file.
21167 mf=`echo "$mf" | sed -e 's/:.*$//'`
21168 # Check whether this is an Automake generated Makefile or not.
21169 # We used to match only the files named `Makefile.in', but
21170 # some people rename them; so instead we look at the file content.
21171 # Grep'ing the first line is not enough: some people post-process
21172 # each Makefile.in and add a new line on top of each file to say so.
21173 # Grep'ing the whole file is not good either: AIX grep has a line
21174 # limit of 2048, but all sed's we know have understand at least 4000.
21175 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21176 dirpart=`$as_dirname -- "$mf" ||
21177$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21178 X"$mf" : 'X\(//\)[^/]' \| \
21179 X"$mf" : 'X\(//\)$' \| \
21180 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21181$as_echo X"$mf" |
21182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21183 s//\1/
21184 q
21185 }
21186 /^X\(\/\/\)[^/].*/{
21187 s//\1/
21188 q
21189 }
21190 /^X\(\/\/\)$/{
21191 s//\1/
21192 q
21193 }
21194 /^X\(\/\).*/{
21195 s//\1/
21196 q
21197 }
21198 s/.*/./; q'`
21199 else
21200 continue
21201 fi
21202 # Extract the definition of DEPDIR, am__include, and am__quote
21203 # from the Makefile without running `make'.
21204 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21205 test -z "$DEPDIR" && continue
21206 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21207 test -z "am__include" && continue
21208 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21209 # When using ansi2knr, U may be empty or an underscore; expand it
21210 U=`sed -n 's/^U = //p' < "$mf"`
21211 # Find all dependency output files, they are included files with
21212 # $(DEPDIR) in their names. We invoke sed twice because it is the
21213 # simplest approach to changing $(DEPDIR) to its actual value in the
21214 # expansion.
21215 for file in `sed -n "
21216 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21217 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21218 # Make sure the directory exists.
21219 test -f "$dirpart/$file" && continue
21220 fdir=`$as_dirname -- "$file" ||
21221$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21222 X"$file" : 'X\(//\)[^/]' \| \
21223 X"$file" : 'X\(//\)$' \| \
21224 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21225$as_echo X"$file" |
21226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21227 s//\1/
21228 q
21229 }
21230 /^X\(\/\/\)[^/].*/{
21231 s//\1/
21232 q
21233 }
21234 /^X\(\/\/\)$/{
21235 s//\1/
21236 q
21237 }
21238 /^X\(\/\).*/{
21239 s//\1/
21240 q
21241 }
21242 s/.*/./; q'`
21243 { as_dir=$dirpart/$fdir
21244 case $as_dir in #(
21245 -*) as_dir=./$as_dir;;
21246 esac
21247 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21248 as_dirs=
21249 while :; do
21250 case $as_dir in #(
21251 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21252 *) as_qdir=$as_dir;;
21253 esac
21254 as_dirs="'$as_qdir' $as_dirs"
21255 as_dir=`$as_dirname -- "$as_dir" ||
21256$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21257 X"$as_dir" : 'X\(//\)[^/]' \| \
21258 X"$as_dir" : 'X\(//\)$' \| \
21259 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21260$as_echo X"$as_dir" |
21261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21262 s//\1/
21263 q
21264 }
21265 /^X\(\/\/\)[^/].*/{
21266 s//\1/
21267 q
21268 }
21269 /^X\(\/\/\)$/{
21270 s//\1/
21271 q
21272 }
21273 /^X\(\/\).*/{
21274 s//\1/
21275 q
21276 }
21277 s/.*/./; q'`
21278 test -d "$as_dir" && break
21279 done
21280 test -z "$as_dirs" || eval "mkdir $as_dirs"
21281 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21282$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21283 { (exit 1); exit 1; }; }; }
21284 # echo "creating $dirpart/$file"
21285 echo '# dummy' > "$dirpart/$file"
21286 done
21287 done
21288}
21289 ;;
21290 "libtool":C)
21291
21292 # See if we are running on zsh, and set the options which allow our
21293 # commands through without removal of \ escapes.
21294 if test -n "${ZSH_VERSION+set}" ; then
21295 setopt NO_GLOB_SUBST
21296 fi
21297
21298 cfgfile="${ofile}T"
21299 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21300 $RM "$cfgfile"
21301
21302 cat <<_LT_EOF >> "$cfgfile"
21303#! $SHELL
21304
21305# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21306# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21307# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21308# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21309#
21310# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21311# 2006, 2007, 2008 Free Software Foundation, Inc.
21312# Written by Gordon Matzigkeit, 1996
21313#
21314# This file is part of GNU Libtool.
21315#
21316# GNU Libtool is free software; you can redistribute it and/or
21317# modify it under the terms of the GNU General Public License as
21318# published by the Free Software Foundation; either version 2 of
21319# the License, or (at your option) any later version.
21320#
21321# As a special exception to the GNU General Public License,
21322# if you distribute this file as part of a program or library that
21323# is built using GNU Libtool, you may include this file under the
21324# same distribution terms that you use for the rest of that program.
21325#
21326# GNU Libtool is distributed in the hope that it will be useful,
21327# but WITHOUT ANY WARRANTY; without even the implied warranty of
21328# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21329# GNU General Public License for more details.
21330#
21331# You should have received a copy of the GNU General Public License
21332# along with GNU Libtool; see the file COPYING. If not, a copy
21333# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21334# obtained by writing to the Free Software Foundation, Inc.,
21335# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21336
21337
21338# The names of the tagged configurations supported by this script.
21339available_tags=""
21340
21341# ### BEGIN LIBTOOL CONFIG
21342
21343# Which release of libtool.m4 was used?
21344macro_version=$macro_version
21345macro_revision=$macro_revision
21346
21347# Whether or not to build shared libraries.
21348build_libtool_libs=$enable_shared
21349
21350# Whether or not to build static libraries.
21351build_old_libs=$enable_static
21352
21353# What type of objects to build.
21354pic_mode=$pic_mode
21355
21356# Whether or not to optimize for fast installation.
21357fast_install=$enable_fast_install
21358
21359# The host system.
21360host_alias=$host_alias
21361host=$host
21362host_os=$host_os
21363
21364# The build system.
21365build_alias=$build_alias
21366build=$build
21367build_os=$build_os
21368
21369# A sed program that does not truncate output.
21370SED=$lt_SED
21371
21372# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21373Xsed="\$SED -e 1s/^X//"
21374
21375# A grep program that handles long lines.
21376GREP=$lt_GREP
21377
21378# An ERE matcher.
21379EGREP=$lt_EGREP
21380
21381# A literal string matcher.
21382FGREP=$lt_FGREP
21383
21384# A BSD- or MS-compatible name lister.
21385NM=$lt_NM
21386
21387# Whether we need soft or hard links.
21388LN_S=$lt_LN_S
21389
21390# What is the maximum length of a command?
21391max_cmd_len=$max_cmd_len
21392
21393# Object file suffix (normally "o").
21394objext=$ac_objext
21395
21396# Executable file suffix (normally "").
21397exeext=$exeext
21398
21399# whether the shell understands "unset".
21400lt_unset=$lt_unset
21401
21402# turn spaces into newlines.
21403SP2NL=$lt_lt_SP2NL
21404
21405# turn newlines into spaces.
21406NL2SP=$lt_lt_NL2SP
21407
21408# How to create reloadable object files.
21409reload_flag=$lt_reload_flag
21410reload_cmds=$lt_reload_cmds
21411
21412# An object symbol dumper.
21413OBJDUMP=$lt_OBJDUMP
21414
21415# Method to check whether dependent libraries are shared objects.
21416deplibs_check_method=$lt_deplibs_check_method
21417
21418# Command to use when deplibs_check_method == "file_magic".
21419file_magic_cmd=$lt_file_magic_cmd
21420
21421# The archiver.
21422AR=$lt_AR
21423AR_FLAGS=$lt_AR_FLAGS
21424
21425# A symbol stripping program.
21426STRIP=$lt_STRIP
21427
21428# Commands used to install an old-style archive.
21429RANLIB=$lt_RANLIB
21430old_postinstall_cmds=$lt_old_postinstall_cmds
21431old_postuninstall_cmds=$lt_old_postuninstall_cmds
21432
21433# A C compiler.
21434LTCC=$lt_CC
21435
21436# LTCC compiler flags.
21437LTCFLAGS=$lt_CFLAGS
21438
21439# Take the output of nm and produce a listing of raw symbols and C names.
21440global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21441
21442# Transform the output of nm in a proper C declaration.
21443global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21444
21445# Transform the output of nm in a C name address pair.
21446global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21447
21448# Transform the output of nm in a C name address pair when lib prefix is needed.
21449global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21450
21451# The name of the directory that contains temporary libtool files.
21452objdir=$objdir
21453
21454# Shell to use when invoking shell scripts.
21455SHELL=$lt_SHELL
21456
21457# An echo program that does not interpret backslashes.
21458ECHO=$lt_ECHO
21459
21460# Used to examine libraries when file_magic_cmd begins with "file".
21461MAGIC_CMD=$MAGIC_CMD
21462
21463# Must we lock files when doing compilation?
21464need_locks=$lt_need_locks
21465
21466# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21467DSYMUTIL=$lt_DSYMUTIL
21468
21469# Tool to change global to local symbols on Mac OS X.
21470NMEDIT=$lt_NMEDIT
21471
21472# Tool to manipulate fat objects and archives on Mac OS X.
21473LIPO=$lt_LIPO
21474
21475# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21476OTOOL=$lt_OTOOL
21477
21478# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21479OTOOL64=$lt_OTOOL64
21480
21481# Old archive suffix (normally "a").
21482libext=$libext
21483
21484# Shared library suffix (normally ".so").
21485shrext_cmds=$lt_shrext_cmds
21486
21487# The commands to extract the exported symbol list from a shared archive.
21488extract_expsyms_cmds=$lt_extract_expsyms_cmds
21489
21490# Variables whose values should be saved in libtool wrapper scripts and
21491# restored at link time.
21492variables_saved_for_relink=$lt_variables_saved_for_relink
21493
21494# Do we need the "lib" prefix for modules?
21495need_lib_prefix=$need_lib_prefix
21496
21497# Do we need a version for libraries?
21498need_version=$need_version
21499
21500# Library versioning type.
21501version_type=$version_type
21502
21503# Shared library runtime path variable.
21504runpath_var=$runpath_var
21505
21506# Shared library path variable.
21507shlibpath_var=$shlibpath_var
21508
21509# Is shlibpath searched before the hard-coded library search path?
21510shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21511
21512# Format of library name prefix.
21513libname_spec=$lt_libname_spec
21514
21515# List of archive names. First name is the real one, the rest are links.
21516# The last name is the one that the linker finds with -lNAME
21517library_names_spec=$lt_library_names_spec
21518
21519# The coded name of the library, if different from the real name.
21520soname_spec=$lt_soname_spec
21521
21522# Command to use after installation of a shared archive.
21523postinstall_cmds=$lt_postinstall_cmds
21524
21525# Command to use after uninstallation of a shared archive.
21526postuninstall_cmds=$lt_postuninstall_cmds
21527
21528# Commands used to finish a libtool library installation in a directory.
21529finish_cmds=$lt_finish_cmds
21530
21531# As "finish_cmds", except a single script fragment to be evaled but
21532# not shown.
21533finish_eval=$lt_finish_eval
21534
21535# Whether we should hardcode library paths into libraries.
21536hardcode_into_libs=$hardcode_into_libs
21537
21538# Compile-time system search path for libraries.
21539sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21540
21541# Run-time system search path for libraries.
21542sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21543
21544# Whether dlopen is supported.
21545dlopen_support=$enable_dlopen
21546
21547# Whether dlopen of programs is supported.
21548dlopen_self=$enable_dlopen_self
21549
21550# Whether dlopen of statically linked programs is supported.
21551dlopen_self_static=$enable_dlopen_self_static
21552
21553# Commands to strip libraries.
21554old_striplib=$lt_old_striplib
21555striplib=$lt_striplib
21556
21557
21558# The linker used to build libraries.
21559LD=$lt_LD
21560
21561# Commands used to build an old-style archive.
21562old_archive_cmds=$lt_old_archive_cmds
21563
21564# A language specific compiler.
21565CC=$lt_compiler
21566
21567# Is the compiler the GNU compiler?
21568with_gcc=$GCC
21569
21570# Compiler flag to turn off builtin functions.
21571no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21572
21573# How to pass a linker flag through the compiler.
21574wl=$lt_lt_prog_compiler_wl
21575
21576# Additional compiler flags for building library objects.
21577pic_flag=$lt_lt_prog_compiler_pic
21578
21579# Compiler flag to prevent dynamic linking.
21580link_static_flag=$lt_lt_prog_compiler_static
21581
21582# Does compiler simultaneously support -c and -o options?
21583compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21584
21585# Whether or not to add -lc for building shared libraries.
21586build_libtool_need_lc=$archive_cmds_need_lc
21587
21588# Whether or not to disallow shared libs when runtime libs are static.
21589allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21590
21591# Compiler flag to allow reflexive dlopens.
21592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21593
21594# Compiler flag to generate shared objects directly from archives.
21595whole_archive_flag_spec=$lt_whole_archive_flag_spec
21596
21597# Whether the compiler copes with passing no objects directly.
21598compiler_needs_object=$lt_compiler_needs_object
21599
21600# Create an old-style archive from a shared archive.
21601old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21602
21603# Create a temporary old-style archive to link instead of a shared archive.
21604old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21605
21606# Commands used to build a shared archive.
21607archive_cmds=$lt_archive_cmds
21608archive_expsym_cmds=$lt_archive_expsym_cmds
21609
21610# Commands used to build a loadable module if different from building
21611# a shared archive.
21612module_cmds=$lt_module_cmds
21613module_expsym_cmds=$lt_module_expsym_cmds
21614
21615# Whether we are building with GNU ld or not.
21616with_gnu_ld=$lt_with_gnu_ld
21617
21618# Flag that allows shared libraries with undefined symbols to be built.
21619allow_undefined_flag=$lt_allow_undefined_flag
21620
21621# Flag that enforces no undefined symbols.
21622no_undefined_flag=$lt_no_undefined_flag
21623
21624# Flag to hardcode \$libdir into a binary during linking.
21625# This must work even if \$libdir does not exist
21626hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21627
21628# If ld is used when linking, flag to hardcode \$libdir into a binary
21629# during linking. This must work even if \$libdir does not exist.
21630hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21631
21632# Whether we need a single "-rpath" flag with a separated argument.
21633hardcode_libdir_separator=$lt_hardcode_libdir_separator
21634
21635# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21636# DIR into the resulting binary.
21637hardcode_direct=$hardcode_direct
21638
21639# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21640# DIR into the resulting binary and the resulting library dependency is
21641# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21642# library is relocated.
21643hardcode_direct_absolute=$hardcode_direct_absolute
21644
21645# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21646# into the resulting binary.
21647hardcode_minus_L=$hardcode_minus_L
21648
21649# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21650# into the resulting binary.
21651hardcode_shlibpath_var=$hardcode_shlibpath_var
21652
21653# Set to "yes" if building a shared library automatically hardcodes DIR
21654# into the library and all subsequent libraries and executables linked
21655# against it.
21656hardcode_automatic=$hardcode_automatic
21657
21658# Set to yes if linker adds runtime paths of dependent libraries
21659# to runtime path list.
21660inherit_rpath=$inherit_rpath
21661
21662# Whether libtool must link a program against all its dependency libraries.
21663link_all_deplibs=$link_all_deplibs
21664
21665# Fix the shell variable \$srcfile for the compiler.
21666fix_srcfile_path=$lt_fix_srcfile_path
21667
21668# Set to "yes" if exported symbols are required.
21669always_export_symbols=$always_export_symbols
21670
21671# The commands to list exported symbols.
21672export_symbols_cmds=$lt_export_symbols_cmds
21673
21674# Symbols that should not be listed in the preloaded symbols.
21675exclude_expsyms=$lt_exclude_expsyms
21676
21677# Symbols that must always be exported.
21678include_expsyms=$lt_include_expsyms
21679
21680# Commands necessary for linking programs (against libraries) with templates.
21681prelink_cmds=$lt_prelink_cmds
21682
21683# Specify filename containing input files.
21684file_list_spec=$lt_file_list_spec
21685
21686# How to hardcode a shared library path into an executable.
21687hardcode_action=$hardcode_action
21688
21689# ### END LIBTOOL CONFIG
21690
21691_LT_EOF
21692
21693 case $host_os in
21694 aix3*)
21695 cat <<\_LT_EOF >> "$cfgfile"
21696# AIX sometimes has problems with the GCC collect2 program. For some
21697# reason, if we set the COLLECT_NAMES environment variable, the problems
21698# vanish in a puff of smoke.
21699if test "X${COLLECT_NAMES+set}" != Xset; then
21700 COLLECT_NAMES=
21701 export COLLECT_NAMES
21702fi
21703_LT_EOF
21704 ;;
21705 esac
21706
21707
21708ltmain="$ac_aux_dir/ltmain.sh"
21709
21710
21711 # We use sed instead of cat because bash on DJGPP gets confused if
21712 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21713 # text mode, it properly converts lines to CR/LF. This bash problem
21714 # is reportedly fixed, but why not run on old versions too?
21715 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21716 || (rm -f "$cfgfile"; exit 1)
21717
21718 case $xsi_shell in
21719 yes)
21720 cat << \_LT_EOF >> "$cfgfile"
21721
21722# func_dirname file append nondir_replacement
21723# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21724# otherwise set result to NONDIR_REPLACEMENT.
21725func_dirname ()
21726{
21727 case ${1} in
21728 */*) func_dirname_result="${1%/*}${2}" ;;
21729 * ) func_dirname_result="${3}" ;;
21730 esac
21731}
21732
21733# func_basename file
21734func_basename ()
21735{
21736 func_basename_result="${1##*/}"
21737}
21738
21739# func_dirname_and_basename file append nondir_replacement
21740# perform func_basename and func_dirname in a single function
21741# call:
21742# dirname: Compute the dirname of FILE. If nonempty,
21743# add APPEND to the result, otherwise set result
21744# to NONDIR_REPLACEMENT.
21745# value returned in "$func_dirname_result"
21746# basename: Compute filename of FILE.
21747# value retuned in "$func_basename_result"
21748# Implementation must be kept synchronized with func_dirname
21749# and func_basename. For efficiency, we do not delegate to
21750# those functions but instead duplicate the functionality here.
21751func_dirname_and_basename ()
21752{
21753 case ${1} in
21754 */*) func_dirname_result="${1%/*}${2}" ;;
21755 * ) func_dirname_result="${3}" ;;
21756 esac
21757 func_basename_result="${1##*/}"
21758}
21759
21760# func_stripname prefix suffix name
21761# strip PREFIX and SUFFIX off of NAME.
21762# PREFIX and SUFFIX must not contain globbing or regex special
21763# characters, hashes, percent signs, but SUFFIX may contain a leading
21764# dot (in which case that matches only a dot).
21765func_stripname ()
21766{
21767 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21768 # positional parameters, so assign one to ordinary parameter first.
21769 func_stripname_result=${3}
21770 func_stripname_result=${func_stripname_result#"${1}"}
21771 func_stripname_result=${func_stripname_result%"${2}"}
21772}
21773
21774# func_opt_split
21775func_opt_split ()
21776{
21777 func_opt_split_opt=${1%%=*}
21778 func_opt_split_arg=${1#*=}
21779}
21780
21781# func_lo2o object
21782func_lo2o ()
21783{
21784 case ${1} in
21785 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21786 *) func_lo2o_result=${1} ;;
21787 esac
21788}
21789
21790# func_xform libobj-or-source
21791func_xform ()
21792{
21793 func_xform_result=${1%.*}.lo
21794}
21795
21796# func_arith arithmetic-term...
21797func_arith ()
21798{
21799 func_arith_result=$(( $* ))
21800}
21801
21802# func_len string
21803# STRING may not start with a hyphen.
21804func_len ()
21805{
21806 func_len_result=${#1}
21807}
21808
21809_LT_EOF
21810 ;;
21811 *) # Bourne compatible functions.
21812 cat << \_LT_EOF >> "$cfgfile"
21813
21814# func_dirname file append nondir_replacement
21815# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21816# otherwise set result to NONDIR_REPLACEMENT.
21817func_dirname ()
21818{
21819 # Extract subdirectory from the argument.
21820 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21821 if test "X$func_dirname_result" = "X${1}"; then
21822 func_dirname_result="${3}"
21823 else
21824 func_dirname_result="$func_dirname_result${2}"
21825 fi
21826}
21827
21828# func_basename file
21829func_basename ()
21830{
21831 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21832}
21833
21834
21835# func_stripname prefix suffix name
21836# strip PREFIX and SUFFIX off of NAME.
21837# PREFIX and SUFFIX must not contain globbing or regex special
21838# characters, hashes, percent signs, but SUFFIX may contain a leading
21839# dot (in which case that matches only a dot).
21840# func_strip_suffix prefix name
21841func_stripname ()
21842{
21843 case ${2} in
21844 .*) func_stripname_result=`$ECHO "X${3}" \
21845 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21846 *) func_stripname_result=`$ECHO "X${3}" \
21847 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21848 esac
21849}
21850
21851# sed scripts:
21852my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21853my_sed_long_arg='1s/^-[^=]*=//'
21854
21855# func_opt_split
21856func_opt_split ()
21857{
21858 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21859 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21860}
21861
21862# func_lo2o object
21863func_lo2o ()
21864{
21865 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21866}
21867
21868# func_xform libobj-or-source
21869func_xform ()
21870{
21871 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21872}
21873
21874# func_arith arithmetic-term...
21875func_arith ()
21876{
21877 func_arith_result=`expr "$@"`
21878}
21879
21880# func_len string
21881# STRING may not start with a hyphen.
21882func_len ()
21883{
21884 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21885}
21886
21887_LT_EOF
21888esac
21889
21890case $lt_shell_append in
21891 yes)
21892 cat << \_LT_EOF >> "$cfgfile"
21893
21894# func_append var value
21895# Append VALUE to the end of shell variable VAR.
21896func_append ()
21897{
21898 eval "$1+=\$2"
21899}
21900_LT_EOF
21901 ;;
21902 *)
21903 cat << \_LT_EOF >> "$cfgfile"
21904
21905# func_append var value
21906# Append VALUE to the end of shell variable VAR.
21907func_append ()
21908{
21909 eval "$1=\$$1\$2"
21910}
21911
21912_LT_EOF
21913 ;;
21914 esac
21915
21916
21917 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21918 || (rm -f "$cfgfile"; exit 1)
21919
21920 mv -f "$cfgfile" "$ofile" ||
21921 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21922 chmod +x "$ofile"
21923
21924 ;;
21925
21926 esac
21927done # for ac_tag
21928
21929
21930{ (exit 0); exit 0; }
21931_ACEOF
21932chmod +x $CONFIG_STATUS
21933ac_clean_files=$ac_clean_files_save
21934
21935test $ac_write_fail = 0 ||
21936 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21937$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21938 { (exit 1); exit 1; }; }
21939
21940
21941# configure is writing to config.log, and then calls config.status.
21942# config.status does its own redirection, appending to config.log.
21943# Unfortunately, on DOS this fails, as config.log is still kept open
21944# by configure, so config.status won't be able to write to it; its
21945# output is simply discarded. So we exec the FD to /dev/null,
21946# effectively closing config.log, so it can be properly (re)opened and
21947# appended to by config.status. When coming back to configure, we
21948# need to make the FD available again.
21949if test "$no_create" != yes; then
21950 ac_cs_success=:
21951 ac_config_status_args=
21952 test "$silent" = yes &&
21953 ac_config_status_args="$ac_config_status_args --quiet"
21954 exec 5>/dev/null
21955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21956 exec 5>>config.log
21957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21958 # would make configure fail if this is the last instruction.
21959 $ac_cs_success || { (exit 1); exit 1; }
21960fi
21961if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21962 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21963$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21964fi
21965