]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
Reduce dependency on spl, and move documentation (Closes: #894608)
[mirror_spl-debian.git] / configure
CommitLineData
10946b02
AX
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
34ee731f 3# Generated by GNU Autoconf 2.63 for spl 0.7.8.
10946b02 4#
ec06701b
AX
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10946b02
AX
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ec06701b
AX
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
10946b02
AX
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ec06701b 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10946b02
AX
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
ec06701b
AX
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
10946b02 25esac
ec06701b 26
10946b02
AX
27fi
28
29
ec06701b
AX
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
10946b02
AX
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
ec06701b 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10946b02
AX
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;
ec06701b 58 case $arg in
10946b02
AX
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
ec06701b
AX
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
10946b02
AX
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.
ec06701b 97case $0 in
10946b02
AX
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=.
ec06701b
AX
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
10946b02
AX
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
ec06701b 117 { (exit 1); exit 1; }
10946b02
AX
118fi
119
ec06701b
AX
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
10946b02
AX
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
ec06701b
AX
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
10946b02 169# CDPATH.
ec06701b
AX
170$as_unset CDPATH
171
10946b02
AX
172
173if test "x$CONFIG_SHELL" = x; then
ec06701b
AX
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
10946b02 176else
ec06701b 177 as_have_required=no
10946b02 178fi
ec06701b
AX
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}
10946b02
AX
196
197exitcode=0
ec06701b
AX
198if as_func_success; then
199 :
10946b02 200else
ec06701b
AX
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.
10946b02 208fi
10946b02 209
ec06701b
AX
210if as_func_ret_success; then
211 :
10946b02 212else
ec06701b
AX
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
10946b02
AX
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=.
ec06701b 245 case $as_dir in
10946b02
AX
246 /*)
247 for as_base in sh bash ksh sh5; do
ec06701b 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
10946b02
AX
249 done;;
250 esac
10946b02 251done
10946b02
AX
252IFS=$as_save_IFS
253
254
ec06701b
AX
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 ;;
ac9cc135 269esac
ec06701b 270
10946b02 271fi
10946b02 272
10946b02 273
ec06701b
AX
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
10946b02 291
ec06701b 292fi
10946b02 293
10946b02 294
ec06701b
AX
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
10946b02 319
ec06701b
AX
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
ac9cc135 324
ec06701b
AX
325if as_func_ret_success; then
326 :
10946b02 327else
ec06701b
AX
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 :
10946b02 339else
ec06701b
AX
340 exitcode=1
341 echo positional parameters were not saved.
342fi
10946b02 343
ec06701b 344test $exitcode = 0) || { (exit 1); exit 1; }
10946b02 345
ec06701b
AX
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; }
10946b02 351
ec06701b
AX
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 :
10946b02 404else
ec06701b
AX
405 exitcode=1
406 echo as_func_success failed.
10946b02
AX
407fi
408
ec06701b
AX
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
10946b02 416else
ec06701b
AX
417 exitcode=1
418 echo as_func_ret_success failed.
10946b02
AX
419fi
420
ec06701b
AX
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 :
10946b02 428else
ec06701b
AX
429 exitcode=1
430 echo positional parameters were not saved.
10946b02
AX
431fi
432
ec06701b
AX
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
10946b02 441
10946b02 442
ec06701b
AX
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" || {
10946b02 447
ec06701b
AX
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. :-)
10946b02
AX
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" ||
ec06701b
AX
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
10946b02
AX
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
ec06701b
AX
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
10946b02 492ECHO_C= ECHO_N= ECHO_T=
ec06701b 493case `echo -n x` in
10946b02 494-n*)
ec06701b 495 case `echo 'x\c'` in
10946b02 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
ec06701b 497 *) ECHO_C='\c';;
10946b02
AX
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
ec06701b
AX
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
10946b02
AX
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.
ec06701b 522 # In both cases, we have to default to `cp -p'.
10946b02 523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ec06701b 524 as_ln_s='cp -p'
10946b02
AX
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ec06701b 528 as_ln_s='cp -p'
10946b02
AX
529 fi
530else
ec06701b 531 as_ln_s='cp -p'
10946b02
AX
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
ec06701b 537 as_mkdir_p=:
10946b02
AX
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
ec06701b
AX
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
10946b02 719
10946b02 720
10946b02
AX
721
722
ec06701b 723exec 7<&0 </dev/null 6>&1
10946b02
AX
724
725# Name of the host.
ec06701b 726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
10946b02
AX
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=
ec06701b 741SHELL=${CONFIG_SHELL-/bin/sh}
10946b02
AX
742
743# Identity of this package.
744PACKAGE_NAME='spl'
745PACKAGE_TARNAME='spl'
34ee731f
AX
746PACKAGE_VERSION='0.7.8'
747PACKAGE_STRING='spl 0.7.8'
10946b02 748PACKAGE_BUGREPORT=''
10946b02
AX
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
790CONFIG_KERNEL_FALSE
791CONFIG_KERNEL_TRUE
792CONFIG_USER_FALSE
793CONFIG_USER_TRUE
794DEBUG_KMEM_TRACKING
795DEBUG_KMEM
796DEBUG_SPL
797DEBUG_CFLAGS
798KERNELCPPFLAGS
799KERNELMAKE_PARAMS
800LINUX_SYMBOLS
801LINUX_VERSION
802LINUX_OBJ
803LINUX
804SPL_CONFIG
805ALIEN_VERSION
806ALIEN
807HAVE_ALIEN
808DPKGBUILD_VERSION
809DPKGBUILD
810HAVE_DPKGBUILD
811DPKG_VERSION
812DPKG
813HAVE_DPKG
814SRPM_DEFINE_COMMON
815SRPM_DEFINE_DKMS
816SRPM_DEFINE_KMOD
817SRPM_DEFINE_UTIL
818RPM_DEFINE_COMMON
819RPM_DEFINE_DKMS
820RPM_DEFINE_KMOD
821RPM_DEFINE_UTIL
822RPM_SPEC_DIR
823RPMBUILD_VERSION
824RPMBUILD
825HAVE_RPMBUILD
826RPM_VERSION
827RPM
828HAVE_RPM
829DEFAULT_PACKAGE
830VENDOR
831CPP
832OTOOL64
833OTOOL
834LIPO
835NMEDIT
836DSYMUTIL
ec06701b 837lt_ECHO
10946b02 838RANLIB
10946b02 839AR
10946b02
AX
840OBJDUMP
841LN_S
842NM
843ac_ct_DUMPBIN
844DUMPBIN
845LD
846FGREP
847EGREP
848GREP
849SED
850LIBTOOL
851am__fastdepCC_FALSE
852am__fastdepCC_TRUE
853CCDEPMODE
10946b02
AX
854AMDEPBACKSLASH
855AMDEP_FALSE
856AMDEP_TRUE
857am__quote
858am__include
859DEPDIR
860OBJEXT
861EXEEXT
862ac_ct_CC
863CPPFLAGS
864LDFLAGS
865CFLAGS
866CC
867am__untar
868am__tar
869AMTAR
870am__leading_dot
871SET_MAKE
872mkdir_p
873MKDIR_P
874INSTALL_STRIP_PROGRAM
875STRIP
876install_sh
877MAKEINFO
878AUTOHEADER
879AUTOMAKE
880AUTOCONF
881ACLOCAL
882VERSION
883PACKAGE
884CYGPATH_W
885am__isrc
886INSTALL_DATA
887INSTALL_SCRIPT
888INSTALL_PROGRAM
889AM_BACKSLASH
890AM_DEFAULT_VERBOSITY
10946b02
AX
891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
894target_os
895target_vendor
896target_cpu
897target
898host_os
899host_vendor
900host_cpu
901host
902build_os
903build_vendor
904build_cpu
905build
906SPL_META_LT_AGE
907SPL_META_LT_REVISION
908SPL_META_LT_CURRENT
909SPL_META_AUTHOR
910SPL_META_DATA
911SPL_META_ALIAS
912SPL_META_LICENSE
913RELEASE
914SPL_META_RELEASE
915SPL_META_VERSION
916SPL_META_NAME
917AWK
918target_alias
919host_alias
920build_alias
921LIBS
922ECHO_T
923ECHO_N
924ECHO_C
925DEFS
926mandir
927localedir
928libdir
929psdir
930pdfdir
931dvidir
932htmldir
933infodir
934docdir
935oldincludedir
936includedir
937localstatedir
938sharedstatedir
939sysconfdir
940datadir
941datarootdir
942libexecdir
943sbindir
944bindir
945program_transform_name
946prefix
947exec_prefix
10946b02
AX
948PACKAGE_BUGREPORT
949PACKAGE_STRING
950PACKAGE_VERSION
951PACKAGE_TARNAME
952PACKAGE_NAME
953PATH_SEPARATOR
954SHELL'
955ac_subst_files=''
956ac_user_opts='
957enable_option_checking
958enable_maintainer_mode
959enable_silent_rules
960enable_dependency_tracking
961enable_shared
962enable_static
963with_pic
964enable_fast_install
965with_gnu_ld
10946b02
AX
966enable_libtool_lock
967with_spec
968with_config
969enable_linux_builtin
970with_linux
971with_linux_obj
972enable_debug
973enable_debug_kmem
974enable_debug_kmem_tracking
975enable_atomic_spinlocks
976'
977 ac_precious_vars='build_alias
978host_alias
979target_alias
980CC
981CFLAGS
982LDFLAGS
983LIBS
984CPPFLAGS
985CPP'
986
987
988# Initialize some variables set by options.
989ac_init_help=
990ac_init_version=false
991ac_unrecognized_opts=
992ac_unrecognized_sep=
993# The variables have the same names as the options, with
994# dashes changed to underlines.
995cache_file=/dev/null
996exec_prefix=NONE
997no_create=
998no_recursion=
999prefix=NONE
1000program_prefix=NONE
1001program_suffix=NONE
1002program_transform_name=s,x,x,
1003silent=
1004site=
1005srcdir=
1006verbose=
1007x_includes=NONE
1008x_libraries=NONE
1009
1010# Installation directory options.
1011# These are left unexpanded so users can "make install exec_prefix=/foo"
1012# and all the variables that are supposed to be based on exec_prefix
1013# by default will actually change.
1014# Use braces instead of parens because sh, perl, etc. also accept them.
1015# (The list follows the same order as the GNU Coding Standards.)
1016bindir='${exec_prefix}/bin'
1017sbindir='${exec_prefix}/sbin'
1018libexecdir='${exec_prefix}/libexec'
1019datarootdir='${prefix}/share'
1020datadir='${datarootdir}'
1021sysconfdir='${prefix}/etc'
1022sharedstatedir='${prefix}/com'
1023localstatedir='${prefix}/var'
1024includedir='${prefix}/include'
1025oldincludedir='/usr/include'
1026docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1027infodir='${datarootdir}/info'
1028htmldir='${docdir}'
1029dvidir='${docdir}'
1030pdfdir='${docdir}'
1031psdir='${docdir}'
1032libdir='${exec_prefix}/lib'
1033localedir='${datarootdir}/locale'
1034mandir='${datarootdir}/man'
1035
1036ac_prev=
1037ac_dashdash=
1038for ac_option
1039do
1040 # If the previous option needs an argument, assign it.
1041 if test -n "$ac_prev"; then
1042 eval $ac_prev=\$ac_option
1043 ac_prev=
1044 continue
1045 fi
1046
1047 case $ac_option in
ec06701b
AX
1048 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1049 *) ac_optarg=yes ;;
10946b02
AX
1050 esac
1051
1052 # Accept the important Cygnus configure options, so we can diagnose typos.
1053
1054 case $ac_dashdash$ac_option in
1055 --)
1056 ac_dashdash=yes ;;
1057
1058 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059 ac_prev=bindir ;;
1060 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061 bindir=$ac_optarg ;;
1062
1063 -build | --build | --buil | --bui | --bu)
1064 ac_prev=build_alias ;;
1065 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066 build_alias=$ac_optarg ;;
1067
1068 -cache-file | --cache-file | --cache-fil | --cache-fi \
1069 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070 ac_prev=cache_file ;;
1071 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073 cache_file=$ac_optarg ;;
1074
1075 --config-cache | -C)
1076 cache_file=config.cache ;;
1077
1078 -datadir | --datadir | --datadi | --datad)
1079 ac_prev=datadir ;;
1080 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081 datadir=$ac_optarg ;;
1082
1083 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084 | --dataroo | --dataro | --datar)
1085 ac_prev=datarootdir ;;
1086 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088 datarootdir=$ac_optarg ;;
1089
1090 -disable-* | --disable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ec06701b
AX
1094 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1095 { (exit 1); exit 1; }; }
10946b02
AX
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100"enable_$ac_useropt"
1101"*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval enable_$ac_useropt=no ;;
1106
1107 -docdir | --docdir | --docdi | --doc | --do)
1108 ac_prev=docdir ;;
1109 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1110 docdir=$ac_optarg ;;
1111
1112 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1113 ac_prev=dvidir ;;
1114 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1115 dvidir=$ac_optarg ;;
1116
1117 -enable-* | --enable-*)
1118 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ec06701b
AX
1121 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1122 { (exit 1); exit 1; }; }
10946b02
AX
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"enable_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1133
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1142
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1146
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1153
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1158
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1164
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1171
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1176
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1181
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1188
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1193
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1200
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1205
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1209
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1212 no_create=yes ;;
1213
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1217
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1226
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1231
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1238
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1245
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1262
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1267
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1272
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1276
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278 ac_prev=sbindir ;;
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280 | --sbi=* | --sb=*)
1281 sbindir=$ac_optarg ;;
1282
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1286 | --sha | --sh)
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291 | --sha=* | --sh=*)
1292 sharedstatedir=$ac_optarg ;;
1293
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
1297 site=$ac_optarg ;;
1298
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302 srcdir=$ac_optarg ;;
1303
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309 sysconfdir=$ac_optarg ;;
1310
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
1312 ac_prev=target_alias ;;
1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314 target_alias=$ac_optarg ;;
1315
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1318
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
1321
1322 -with-* | --with-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ec06701b
AX
1326 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1327 { (exit 1); exit 1; }; }
10946b02
AX
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1331 *"
1332"with_$ac_useropt"
1333"*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=\$ac_optarg ;;
1338
1339 -without-* | --without-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
ec06701b
AX
1343 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1344 { (exit 1); exit 1; }; }
10946b02
AX
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1348 *"
1349"with_$ac_useropt"
1350"*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=no ;;
1355
1356 --x)
1357 # Obsolete; use --with-x.
1358 with_x=yes ;;
1359
1360 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361 | --x-incl | --x-inc | --x-in | --x-i)
1362 ac_prev=x_includes ;;
1363 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1365 x_includes=$ac_optarg ;;
1366
1367 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369 ac_prev=x_libraries ;;
1370 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1372 x_libraries=$ac_optarg ;;
1373
ec06701b
AX
1374 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1375Try \`$0 --help' for more information." >&2
1376 { (exit 1); exit 1; }; }
10946b02
AX
1377 ;;
1378
1379 *=*)
1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
ec06701b
AX
1382 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1383 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1384 { (exit 1); exit 1; }; }
10946b02
AX
1385 eval $ac_envvar=\$ac_optarg
1386 export $ac_envvar ;;
1387
1388 *)
1389 # FIXME: should be removed in autoconf 3.0.
1390 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1391 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ec06701b 1393 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10946b02
AX
1394 ;;
1395
1396 esac
1397done
1398
1399if test -n "$ac_prev"; then
1400 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec06701b
AX
1401 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1402 { (exit 1); exit 1; }; }
10946b02
AX
1403fi
1404
1405if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1407 no) ;;
ec06701b
AX
1408 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1409 { (exit 1); exit 1; }; } ;;
10946b02
AX
1410 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411 esac
1412fi
1413
1414# Check all directory arguments for consistency.
1415for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416 datadir sysconfdir sharedstatedir localstatedir includedir \
1417 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ea56c1d 1418 libdir localedir mandir
10946b02
AX
1419do
1420 eval ac_val=\$$ac_var
1421 # Remove trailing slashes.
1422 case $ac_val in
1423 */ )
1424 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425 eval $ac_var=\$ac_val;;
1426 esac
1427 # Be sure to have absolute directory names.
1428 case $ac_val in
1429 [\\/$]* | ?:[\\/]* ) continue;;
1430 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431 esac
ec06701b
AX
1432 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1433 { (exit 1); exit 1; }; }
10946b02
AX
1434done
1435
1436# There might be people who depend on the old broken behavior: `$host'
1437# used to hold the argument of --host etc.
1438# FIXME: To remove some day.
1439build=$build_alias
1440host=$host_alias
1441target=$target_alias
1442
1443# FIXME: To remove some day.
1444if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
ec06701b
AX
1447 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1448 If a cross compiler is detected then cross compile mode will be used." >&2
10946b02
AX
1449 elif test "x$build_alias" != "x$host_alias"; then
1450 cross_compiling=yes
1451 fi
1452fi
1453
1454ac_tool_prefix=
1455test -n "$host_alias" && ac_tool_prefix=$host_alias-
1456
1457test "$silent" = yes && exec 6>/dev/null
1458
1459
1460ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461ac_ls_di=`ls -di .` &&
1462ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec06701b
AX
1463 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1464 { (exit 1); exit 1; }; }
10946b02 1465test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec06701b
AX
1466 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1467 { (exit 1); exit 1; }; }
10946b02
AX
1468
1469
1470# Find the source files, if location was not specified.
1471if test -z "$srcdir"; then
1472 ac_srcdir_defaulted=yes
1473 # Try the directory containing this script, then the parent directory.
1474 ac_confdir=`$as_dirname -- "$as_myself" ||
1475$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1476 X"$as_myself" : 'X\(//\)[^/]' \| \
1477 X"$as_myself" : 'X\(//\)$' \| \
1478 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1479$as_echo X"$as_myself" |
1480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)[^/].*/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\/\)$/{
1489 s//\1/
1490 q
1491 }
1492 /^X\(\/\).*/{
1493 s//\1/
1494 q
1495 }
1496 s/.*/./; q'`
1497 srcdir=$ac_confdir
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 srcdir=..
1500 fi
1501else
1502 ac_srcdir_defaulted=no
1503fi
1504if test ! -r "$srcdir/$ac_unique_file"; then
1505 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec06701b
AX
1506 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1507 { (exit 1); exit 1; }; }
10946b02
AX
1508fi
1509ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1510ac_abs_confdir=`(
ec06701b
AX
1511 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1512 { (exit 1); exit 1; }; }
10946b02
AX
1513 pwd)`
1514# When building in place, set srcdir=.
1515if test "$ac_abs_confdir" = "$ac_pwd"; then
1516 srcdir=.
1517fi
1518# Remove unnecessary trailing slashes from srcdir.
1519# Double slashes in file names in object file debugging info
1520# mess up M-x gdb in Emacs.
1521case $srcdir in
1522*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1523esac
1524for ac_var in $ac_precious_vars; do
1525 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_${ac_var}_value=\$${ac_var}
1527 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1529done
1530
1531#
1532# Report the --help message.
1533#
1534if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1537 cat <<_ACEOF
34ee731f 1538\`configure' configures spl 0.7.8 to adapt to many kinds of systems.
10946b02
AX
1539
1540Usage: $0 [OPTION]... [VAR=VALUE]...
1541
1542To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543VAR=VALUE. See below for descriptions of some of the useful variables.
1544
1545Defaults for the options are specified in brackets.
1546
1547Configuration:
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
ec06701b 1552 -q, --quiet, --silent do not print \`checking...' messages
10946b02
AX
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1557
1558Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1562 [PREFIX]
1563
1564By default, \`make install' will install all the files in
1565\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567for instance \`--prefix=\$HOME'.
1568
1569For better control, use the options below.
1570
1571Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --libdir=DIR object code libraries [EPREFIX/lib]
1579 --includedir=DIR C header files [PREFIX/include]
1580 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1581 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1582 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1583 --infodir=DIR info documentation [DATAROOTDIR/info]
1584 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1585 --mandir=DIR man documentation [DATAROOTDIR/man]
1586 --docdir=DIR documentation root [DATAROOTDIR/doc/spl]
1587 --htmldir=DIR html documentation [DOCDIR]
1588 --dvidir=DIR dvi documentation [DOCDIR]
1589 --pdfdir=DIR pdf documentation [DOCDIR]
1590 --psdir=DIR ps documentation [DOCDIR]
1591_ACEOF
1592
1593 cat <<\_ACEOF
1594
1595Program names:
1596 --program-prefix=PREFIX prepend PREFIX to installed program names
1597 --program-suffix=SUFFIX append SUFFIX to installed program names
1598 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1599
1600System types:
1601 --build=BUILD configure for building on BUILD [guessed]
1602 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1603 --target=TARGET configure for building compilers for TARGET [HOST]
1604_ACEOF
1605fi
1606
1607if test -n "$ac_init_help"; then
1608 case $ac_init_help in
34ee731f 1609 short | recursive ) echo "Configuration of spl 0.7.8:";;
10946b02
AX
1610 esac
1611 cat <<\_ACEOF
1612
1613Optional Features:
1614 --disable-option-checking ignore unrecognized --enable/--with options
1615 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1616 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ec06701b
AX
1617 --enable-maintainer-mode enable make rules and dependencies not useful
1618 (and sometimes confusing) to the casual installer
1619 --enable-silent-rules less verbose build output (undo: `make V=1')
1620 --disable-silent-rules verbose build output (undo: `make V=0')
1621 --disable-dependency-tracking speeds up one-time build
1622 --enable-dependency-tracking do not reject slow dependency extractors
10946b02
AX
1623 --enable-shared[=PKGS] build shared libraries [default=yes]
1624 --enable-static[=PKGS] build static libraries [default=yes]
1625 --enable-fast-install[=PKGS]
1626 optimize for fast installation [default=yes]
1627 --disable-libtool-lock avoid locking (might break parallel builds)
1628 --enable-linux-builtin Configure for builtin in-tree kernel modules
1629 [default=no]
1630 --enable-debug Enable generic debug support [default=no]
f6188ddd 1631 --enable-debug-kmem Enable basic kmem accounting [default=no]
10946b02
AX
1632 --enable-debug-kmem-tracking
1633 Enable detailed kmem tracking [default=no]
1634 --enable-atomic-spinlocks
1635 Atomic types use spinlocks [default=check]
1636
1637Optional Packages:
1638 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1639 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
ec06701b 1640 --with-pic try to use only PIC/non-PIC objects [default=use
10946b02
AX
1641 both]
1642 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
10946b02
AX
1643 --with-spec=SPEC Spec files 'generic|redhat'
1644 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1645 --with-linux=PATH Path to kernel source
1646 --with-linux-obj=PATH Path to kernel build objects
1647
1648Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
ec06701b 1654 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
10946b02
AX
1655 you have headers in a nonstandard directory <include dir>
1656 CPP C preprocessor
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
10946b02
AX
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
34ee731f 1723spl configure 0.7.8
ec06701b 1724generated by GNU Autoconf 2.63
10946b02 1725
ec06701b
AX
1726Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17272002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10946b02
AX
1728This configure script is free software; the Free Software Foundation
1729gives unlimited permission to copy, distribute and modify it.
1730_ACEOF
1731 exit
1732fi
10946b02
AX
1733cat >config.log <<_ACEOF
1734This file contains any messages produced by compilers while
1735running configure, to aid debugging if configure makes a mistake.
1736
34ee731f 1737It was created by spl $as_me 0.7.8, which was
ec06701b 1738generated by GNU Autoconf 2.63. Invocation command line was
10946b02
AX
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=.
ec06701b
AX
1774 $as_echo "PATH: $as_dir"
1775done
10946b02
AX
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
ec06701b 1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
10946b02 1813 2)
ec06701b 1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
10946b02
AX
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
ec06701b 1830 ac_configure_args="$ac_configure_args '$ac_arg'"
10946b02
AX
1831 ;;
1832 esac
1833 done
1834done
ec06701b
AX
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; }
10946b02
AX
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
ec06701b
AX
1848 cat <<\_ASBOX
1849## ---------------- ##
10946b02 1850## Cache variables. ##
ec06701b
AX
1851## ---------------- ##
1852_ASBOX
10946b02
AX
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 #(
ec06701b 1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10946b02
AX
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= ;; #(
ec06701b 1867 *) $as_unset $ac_var ;;
10946b02
AX
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
ec06701b
AX
1886 cat <<\_ASBOX
1887## ----------------- ##
10946b02 1888## Output variables. ##
ec06701b
AX
1889## ----------------- ##
1890_ASBOX
10946b02
AX
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
ec06701b
AX
1903 cat <<\_ASBOX
1904## ------------------- ##
10946b02 1905## File substitutions. ##
ec06701b
AX
1906## ------------------- ##
1907_ASBOX
10946b02
AX
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
ec06701b
AX
1921 cat <<\_ASBOX
1922## ----------- ##
10946b02 1923## confdefs.h. ##
ec06701b
AX
1924## ----------- ##
1925_ASBOX
10946b02
AX
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
ec06701b 1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
10946b02
AX
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
10946b02
AX
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
ec06701b 1952
10946b02
AX
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955_ACEOF
1956
ec06701b 1957
10946b02
AX
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960_ACEOF
1961
ec06701b 1962
10946b02
AX
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_STRING "$PACKAGE_STRING"
1965_ACEOF
1966
10946b02
AX
1967
1968cat >>confdefs.h <<_ACEOF
ec06701b 1969#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
10946b02
AX
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
ec06701b 1978 ac_site_file1=$CONFIG_SITE
10946b02
AX
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
ec06701b
AX
1989 if test -r "$ac_site_file"; then
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
10946b02
AX
1991$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1992 sed 's/^/| /' "$ac_site_file" >&5
ec06701b 1993 . "$ac_site_file"
10946b02
AX
1994 fi
1995done
1996
1997if test -r "$cache_file"; then
ec06701b
AX
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
10946b02
AX
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
ec06701b 2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
10946b02
AX
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,)
ec06701b 2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
10946b02
AX
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)
ec06701b 2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
10946b02
AX
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
ec06701b 2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
10946b02
AX
2039$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted=:
2041 else
ec06701b 2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
10946b02
AX
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
ec06701b 2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
10946b02 2047$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
ec06701b 2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
10946b02
AX
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.
ec06701b 2060 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
10946b02
AX
2061 esac
2062 fi
2063done
2064if $ac_cache_corrupted; then
ec06701b 2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ec06701b 2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
10946b02 2068$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
ec06701b
AX
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; }; }
10946b02 2072fi
ec06701b
AX
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
10946b02
AX
2097
2098ac_ext=c
2099ac_cpp='$CPP $CPPFLAGS'
2100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102ac_compiler_gnu=$ac_cv_c_compiler_gnu
2103
2104
2105ac_ext=c
2106ac_cpp='$CPP $CPPFLAGS'
2107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2109ac_compiler_gnu=$ac_cv_c_compiler_gnu
2110
2111
2112 for ac_prog in gawk mawk nawk awk
2113do
2114 # Extract the first word of "$ac_prog", so it can be a program name with args.
2115set dummy $ac_prog; ac_word=$2
ec06701b 2116{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 2117$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 2118if test "${ac_cv_prog_AWK+set}" = set; then
10946b02
AX
2119 $as_echo_n "(cached) " >&6
2120else
2121 if test -n "$AWK"; then
2122 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2123else
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127 IFS=$as_save_IFS
2128 test -z "$as_dir" && as_dir=.
ec06701b
AX
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 2131 ac_cv_prog_AWK="$ac_prog"
ec06701b 2132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
2133 break 2
2134 fi
2135done
ec06701b 2136done
10946b02
AX
2137IFS=$as_save_IFS
2138
2139fi
2140fi
2141AWK=$ac_cv_prog_AWK
2142if test -n "$AWK"; then
ec06701b 2143 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10946b02
AX
2144$as_echo "$AWK" >&6; }
2145else
ec06701b 2146 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
2147$as_echo "no" >&6; }
2148fi
2149
2150
2151 test -n "$AWK" && break
2152done
2153
ec06701b 2154 { $as_echo "$as_me:$LINENO: checking metadata" >&5
10946b02
AX
2155$as_echo_n "checking metadata... " >&6; }
2156
2157 META="$srcdir/META"
2158 _spl_ac_meta_type="none"
2159 if test -f "$META"; then
2160 _spl_ac_meta_type="META file"
2161
2162 SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2163 if test -n "$SPL_META_NAME"; then
2164
2165cat >>confdefs.h <<_ACEOF
2166#define SPL_META_NAME "$SPL_META_NAME"
2167_ACEOF
2168
2169
2170 fi
2171
2172 SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2173 if test -n "$SPL_META_VERSION"; then
2174
2175cat >>confdefs.h <<_ACEOF
2176#define SPL_META_VERSION "$SPL_META_VERSION"
2177_ACEOF
2178
2179
2180 fi
2181
2182 SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2183 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2184 _match="${SPL_META_NAME}-${SPL_META_VERSION}"
2185 _alias=$(git describe --match=${_match} 2>/dev/null)
2186 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2187 if test -n "${_release}"; then
2188 SPL_META_RELEASE=${_release}
2189 _spl_ac_meta_type="git describe"
ec06701b
AX
2190 else
2191 _match="${SPL_META_NAME}-${SPL_META_VERSION}-${SPL_META_RELEASE}"
2192 _alias=$(git describe --match=${_match} 2>/dev/null)
2193 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2194 if test -n "${_release}"; then
2195 SPL_META_RELEASE=${_release}
2196 _spl_ac_meta_type="git describe"
2197 fi
10946b02
AX
2198 fi
2199 fi
2200
2201 if test -n "$SPL_META_RELEASE"; then
2202
2203cat >>confdefs.h <<_ACEOF
2204#define SPL_META_RELEASE "$SPL_META_RELEASE"
2205_ACEOF
2206
2207
2208
2209 RELEASE="$SPL_META_RELEASE"
2210
2211 fi
2212
2213 SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2214 if test -n "$SPL_META_LICENSE"; then
2215
2216cat >>confdefs.h <<_ACEOF
2217#define SPL_META_LICENSE "$SPL_META_LICENSE"
2218_ACEOF
2219
2220
2221 fi
2222
2223 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2224 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2225 test -n "$SPL_META_RELEASE" &&
2226 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2227
2228cat >>confdefs.h <<_ACEOF
2229#define SPL_META_ALIAS "$SPL_META_ALIAS"
2230_ACEOF
2231
2232
2233 fi
2234
2235 SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2236 if test -n "$SPL_META_DATA"; then
2237
2238cat >>confdefs.h <<_ACEOF
2239#define SPL_META_DATA "$SPL_META_DATA"
2240_ACEOF
2241
2242
2243 fi
2244
2245 SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2246 if test -n "$SPL_META_AUTHOR"; then
2247
2248cat >>confdefs.h <<_ACEOF
2249#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2250_ACEOF
2251
2252
2253 fi
2254
2255
2256 SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2257 SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2258 SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2259 if test -n "$SPL_META_LT_CURRENT" \
2260 -o -n "$SPL_META_LT_REVISION" \
2261 -o -n "$SPL_META_LT_AGE"; then
2262 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2263 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2264 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2265
2266cat >>confdefs.h <<_ACEOF
2267#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2268_ACEOF
2269
2270
2271cat >>confdefs.h <<_ACEOF
2272#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2273_ACEOF
2274
2275
2276cat >>confdefs.h <<_ACEOF
2277#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2278_ACEOF
2279
2280
2281
2282
2283 fi
2284 fi
2285
ec06701b 2286 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_type" >&5
10946b02
AX
2287$as_echo "$_spl_ac_meta_type" >&6; }
2288
2289
2290ac_aux_dir=
2291for ac_dir in config "$srcdir"/config; do
2292 if test -f "$ac_dir/install-sh"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/install-sh -c"
2295 break
2296 elif test -f "$ac_dir/install.sh"; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/install.sh -c"
2299 break
2300 elif test -f "$ac_dir/shtool"; then
2301 ac_aux_dir=$ac_dir
2302 ac_install_sh="$ac_aux_dir/shtool install -c"
2303 break
2304 fi
2305done
2306if test -z "$ac_aux_dir"; then
ec06701b
AX
2307 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2308$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2309 { (exit 1); exit 1; }; }
10946b02
AX
2310fi
2311
2312# These three variables are undocumented and unsupported,
2313# and are intended to be withdrawn in a future Autoconf release.
2314# They can cause serious problems if a builder's source tree is in a directory
2315# whose full name contains unusual characters.
2316ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2319
2320
2321
2322# Make sure we can run config.sub.
2323$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec06701b
AX
2324 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2325$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2326 { (exit 1); exit 1; }; }
10946b02 2327
ec06701b 2328{ $as_echo "$as_me:$LINENO: checking build system type" >&5
10946b02 2329$as_echo_n "checking build system type... " >&6; }
ec06701b 2330if test "${ac_cv_build+set}" = set; then
10946b02
AX
2331 $as_echo_n "(cached) " >&6
2332else
2333 ac_build_alias=$build_alias
2334test "x$ac_build_alias" = x &&
2335 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2336test "x$ac_build_alias" = x &&
ec06701b
AX
2337 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2338$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2339 { (exit 1); exit 1; }; }
10946b02 2340ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec06701b
AX
2341 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2342$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2343 { (exit 1); exit 1; }; }
10946b02
AX
2344
2345fi
ec06701b 2346{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10946b02
AX
2347$as_echo "$ac_cv_build" >&6; }
2348case $ac_cv_build in
2349*-*-*) ;;
ec06701b
AX
2350*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2351$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2352 { (exit 1); exit 1; }; };;
10946b02
AX
2353esac
2354build=$ac_cv_build
2355ac_save_IFS=$IFS; IFS='-'
2356set x $ac_cv_build
2357shift
2358build_cpu=$1
2359build_vendor=$2
2360shift; shift
2361# Remember, the first character of IFS is used to create $*,
2362# except with old shells:
2363build_os=$*
2364IFS=$ac_save_IFS
2365case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2366
2367
ec06701b 2368{ $as_echo "$as_me:$LINENO: checking host system type" >&5
10946b02 2369$as_echo_n "checking host system type... " >&6; }
ec06701b 2370if test "${ac_cv_host+set}" = set; then
10946b02
AX
2371 $as_echo_n "(cached) " >&6
2372else
2373 if test "x$host_alias" = x; then
2374 ac_cv_host=$ac_cv_build
2375else
2376 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec06701b
AX
2377 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2378$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2379 { (exit 1); exit 1; }; }
10946b02
AX
2380fi
2381
2382fi
ec06701b 2383{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10946b02
AX
2384$as_echo "$ac_cv_host" >&6; }
2385case $ac_cv_host in
2386*-*-*) ;;
ec06701b
AX
2387*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2388$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2389 { (exit 1); exit 1; }; };;
10946b02
AX
2390esac
2391host=$ac_cv_host
2392ac_save_IFS=$IFS; IFS='-'
2393set x $ac_cv_host
2394shift
2395host_cpu=$1
2396host_vendor=$2
2397shift; shift
2398# Remember, the first character of IFS is used to create $*,
2399# except with old shells:
2400host_os=$*
2401IFS=$ac_save_IFS
2402case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2403
2404
ec06701b 2405{ $as_echo "$as_me:$LINENO: checking target system type" >&5
10946b02 2406$as_echo_n "checking target system type... " >&6; }
ec06701b 2407if test "${ac_cv_target+set}" = set; then
10946b02
AX
2408 $as_echo_n "(cached) " >&6
2409else
2410 if test "x$target_alias" = x; then
2411 ac_cv_target=$ac_cv_host
2412else
2413 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec06701b
AX
2414 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2415$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2416 { (exit 1); exit 1; }; }
10946b02
AX
2417fi
2418
2419fi
ec06701b 2420{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
10946b02
AX
2421$as_echo "$ac_cv_target" >&6; }
2422case $ac_cv_target in
2423*-*-*) ;;
ec06701b
AX
2424*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2425$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2426 { (exit 1); exit 1; }; };;
10946b02
AX
2427esac
2428target=$ac_cv_target
2429ac_save_IFS=$IFS; IFS='-'
2430set x $ac_cv_target
2431shift
2432target_cpu=$1
2433target_vendor=$2
2434shift; shift
2435# Remember, the first character of IFS is used to create $*,
2436# except with old shells:
2437target_os=$*
2438IFS=$ac_save_IFS
2439case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2440
2441
2442# The aliases save the names the user supplied, while $host etc.
2443# will get canonicalized.
2444test -n "$target_alias" &&
2445 test "$program_prefix$program_suffix$program_transform_name" = \
2446 NONENONEs,x,x, &&
2447 program_prefix=${target_alias}-
2448
ec06701b 2449{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10946b02
AX
2450$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2451 # Check whether --enable-maintainer-mode was given.
ec06701b 2452if test "${enable_maintainer_mode+set}" = set; then
10946b02
AX
2453 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2454else
2455 USE_MAINTAINER_MODE=no
2456fi
2457
ec06701b 2458 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10946b02
AX
2459$as_echo "$USE_MAINTAINER_MODE" >&6; }
2460 if test $USE_MAINTAINER_MODE = yes; then
2461 MAINTAINER_MODE_TRUE=
2462 MAINTAINER_MODE_FALSE='#'
2463else
2464 MAINTAINER_MODE_TRUE='#'
2465 MAINTAINER_MODE_FALSE=
2466fi
2467
2468 MAINT=$MAINTAINER_MODE_TRUE
2469
2470
2471# Check whether --enable-silent-rules was given.
ec06701b 2472if test "${enable_silent_rules+set}" = set; then
10946b02
AX
2473 enableval=$enable_silent_rules;
2474fi
2475
ec06701b
AX
2476case $enable_silent_rules in
2477yes) AM_DEFAULT_VERBOSITY=0;;
2478no) AM_DEFAULT_VERBOSITY=1;;
2479*) AM_DEFAULT_VERBOSITY=0;;
10946b02 2480esac
10946b02
AX
2481AM_BACKSLASH='\'
2482
ec06701b 2483am__api_version='1.11'
10946b02
AX
2484
2485# Find a good install program. We prefer a C program (faster),
2486# so one script is as good as another. But avoid the broken or
2487# incompatible versions:
2488# SysV /etc/install, /usr/sbin/install
2489# SunOS /usr/etc/install
2490# IRIX /sbin/install
2491# AIX /bin/install
2492# AmigaOS /C/install, which installs bootblocks on floppy discs
2493# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496# OS/2's system install, which has a completely different semantic
2497# ./install, which can be erroneously created by make from ./install.sh.
2498# Reject install programs that cannot install multiple files.
ec06701b 2499{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10946b02
AX
2500$as_echo_n "checking for a BSD-compatible install... " >&6; }
2501if test -z "$INSTALL"; then
ec06701b 2502if test "${ac_cv_path_install+set}" = set; then
10946b02
AX
2503 $as_echo_n "(cached) " >&6
2504else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
ec06701b
AX
2510 # Account for people who put trailing slashes in PATH elements.
2511case $as_dir/ in
2512 ./ | .// | /cC/* | \
10946b02 2513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ec06701b 2514 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10946b02
AX
2515 /usr/ucb/* ) ;;
2516 *)
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2519 # by default.
2520 for ac_prog in ginstall scoinst install; do
2521 for ac_exec_ext in '' $ac_executable_extensions; do
ec06701b 2522 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10946b02
AX
2523 if test $ac_prog = install &&
2524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2526 :
2527 elif test $ac_prog = install &&
2528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2530 :
2531 else
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
2535 mkdir conftest.dir
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537 test -s conftest.one && test -s conftest.two &&
2538 test -s conftest.dir/conftest.one &&
2539 test -s conftest.dir/conftest.two
2540 then
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2543 fi
2544 fi
2545 fi
2546 done
2547 done
2548 ;;
2549esac
2550
ec06701b 2551done
10946b02
AX
2552IFS=$as_save_IFS
2553
2554rm -rf conftest.one conftest.two conftest.dir
2555
2556fi
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL=$ac_cv_path_install
2559 else
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL=$ac_install_sh
2565 fi
2566fi
ec06701b 2567{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10946b02
AX
2568$as_echo "$INSTALL" >&6; }
2569
2570# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571# It thinks the first close brace ends the variable substitution.
2572test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2573
2574test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2575
2576test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577
ec06701b 2578{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10946b02 2579$as_echo_n "checking whether build environment is sane... " >&6; }
ec06701b
AX
2580# Just in case
2581sleep 1
2582echo timestamp > conftest.file
10946b02
AX
2583# Reject unsafe characters in $srcdir or the absolute working directory
2584# name. Accept space and tab only in the latter.
2585am_lf='
2586'
2587case `pwd` in
2588 *[\\\"\#\$\&\'\`$am_lf]*)
ec06701b
AX
2589 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2590$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2591 { (exit 1); exit 1; }; };;
10946b02
AX
2592esac
2593case $srcdir in
2594 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
ec06701b
AX
2595 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2596$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2597 { (exit 1); exit 1; }; };;
10946b02
AX
2598esac
2599
ec06701b 2600# Do `set' in a subshell so we don't clobber the current shell's
10946b02
AX
2601# arguments. Must try -L first in case configure is actually a
2602# symlink; some systems play weird games with the mod time of symlinks
2603# (eg FreeBSD returns the mod time of the symlink's containing
2604# directory).
2605if (
ec06701b
AX
2606 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2607 if test "$*" = "X"; then
2608 # -L didn't work.
2609 set X `ls -t "$srcdir/configure" conftest.file`
2610 fi
2611 rm -f conftest.file
2612 if test "$*" != "X $srcdir/configure conftest.file" \
2613 && test "$*" != "X conftest.file $srcdir/configure"; then
2614
2615 # If neither matched, then we have a broken ls. This can happen
2616 # if, for instance, CONFIG_SHELL is bash and it inherits a
2617 # broken ls alias from the environment. This has actually
2618 # happened. Such a system could not be considered "sane".
2619 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2620alias in your environment" >&5
2621$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2622alias in your environment" >&2;}
2623 { (exit 1); exit 1; }; }
2624 fi
2625
10946b02
AX
2626 test "$2" = conftest.file
2627 )
2628then
2629 # Ok.
2630 :
2631else
ec06701b
AX
2632 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2633Check your system clock" >&5
2634$as_echo "$as_me: error: newly created file is older than distributed files!
2635Check your system clock" >&2;}
2636 { (exit 1); exit 1; }; }
10946b02 2637fi
ec06701b 2638{ $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
2639$as_echo "yes" >&6; }
2640test "$program_prefix" != NONE &&
2641 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2642# Use a double $ so make ignores it.
2643test "$program_suffix" != NONE &&
2644 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2645# Double any \ or $.
2646# By default was `s,x,x', remove it if useless.
2647ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2648program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2649
ec06701b
AX
2650# expand $ac_aux_dir to an absolute path
2651am_aux_dir=`cd $ac_aux_dir && pwd`
10946b02
AX
2652
2653if test x"${MISSING+set}" != xset; then
2654 case $am_aux_dir in
2655 *\ * | *\ *)
2656 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2657 *)
2658 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2659 esac
2660fi
2661# Use eval to expand $SHELL
ec06701b
AX
2662if eval "$MISSING --run true"; then
2663 am_missing_run="$MISSING --run "
10946b02
AX
2664else
2665 am_missing_run=
ec06701b
AX
2666 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2667$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10946b02
AX
2668fi
2669
ec06701b 2670if test x"${install_sh}" != xset; then
10946b02
AX
2671 case $am_aux_dir in
2672 *\ * | *\ *)
2673 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2674 *)
2675 install_sh="\${SHELL} $am_aux_dir/install-sh"
2676 esac
2677fi
2678
ec06701b
AX
2679# Installed binaries are usually stripped using `strip' when the user
2680# run `make install-strip'. However `strip' might not be the right
10946b02 2681# tool to use in cross-compilation environments, therefore Automake
ec06701b 2682# will honor the `STRIP' environment variable to overrule this program.
10946b02
AX
2683if test "$cross_compiling" != no; then
2684 if test -n "$ac_tool_prefix"; then
2685 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2686set dummy ${ac_tool_prefix}strip; ac_word=$2
ec06701b 2687{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 2688$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 2689if test "${ac_cv_prog_STRIP+set}" = set; then
10946b02
AX
2690 $as_echo_n "(cached) " >&6
2691else
2692 if test -n "$STRIP"; then
2693 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2694else
2695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
ec06701b
AX
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 2702 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
ec06701b 2703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
2704 break 2
2705 fi
2706done
ec06701b 2707done
10946b02
AX
2708IFS=$as_save_IFS
2709
2710fi
2711fi
2712STRIP=$ac_cv_prog_STRIP
2713if test -n "$STRIP"; then
ec06701b 2714 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10946b02
AX
2715$as_echo "$STRIP" >&6; }
2716else
ec06701b 2717 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
2718$as_echo "no" >&6; }
2719fi
2720
2721
2722fi
2723if test -z "$ac_cv_prog_STRIP"; then
2724 ac_ct_STRIP=$STRIP
2725 # Extract the first word of "strip", so it can be a program name with args.
2726set dummy strip; ac_word=$2
ec06701b 2727{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 2728$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 2729if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10946b02
AX
2730 $as_echo_n "(cached) " >&6
2731else
2732 if test -n "$ac_ct_STRIP"; then
2733 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
ec06701b
AX
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 2742 ac_cv_prog_ac_ct_STRIP="strip"
ec06701b 2743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
2744 break 2
2745 fi
2746done
ec06701b 2747done
10946b02
AX
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2753if test -n "$ac_ct_STRIP"; then
ec06701b 2754 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10946b02
AX
2755$as_echo "$ac_ct_STRIP" >&6; }
2756else
ec06701b 2757 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
2758$as_echo "no" >&6; }
2759fi
2760
2761 if test "x$ac_ct_STRIP" = x; then
2762 STRIP=":"
2763 else
2764 case $cross_compiling:$ac_tool_warned in
2765yes:)
ec06701b 2766{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
2767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2768ac_tool_warned=yes ;;
2769esac
2770 STRIP=$ac_ct_STRIP
2771 fi
2772else
2773 STRIP="$ac_cv_prog_STRIP"
2774fi
2775
2776fi
2777INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2778
ec06701b 2779{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
10946b02
AX
2780$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2781if test -z "$MKDIR_P"; then
ec06701b 2782 if test "${ac_cv_path_mkdir+set}" = set; then
10946b02
AX
2783 $as_echo_n "(cached) " >&6
2784else
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2787do
2788 IFS=$as_save_IFS
2789 test -z "$as_dir" && as_dir=.
ec06701b 2790 for ac_prog in mkdir gmkdir; do
10946b02 2791 for ac_exec_ext in '' $ac_executable_extensions; do
ec06701b 2792 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10946b02
AX
2793 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2794 'mkdir (GNU coreutils) '* | \
2795 'mkdir (coreutils) '* | \
2796 'mkdir (fileutils) '4.1*)
2797 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2798 break 3;;
2799 esac
2800 done
2801 done
ec06701b 2802done
10946b02
AX
2803IFS=$as_save_IFS
2804
2805fi
2806
10946b02
AX
2807 if test "${ac_cv_path_mkdir+set}" = set; then
2808 MKDIR_P="$ac_cv_path_mkdir -p"
2809 else
2810 # As a last resort, use the slow shell script. Don't cache a
2811 # value for MKDIR_P within a source directory, because that will
2812 # break other packages using the cache if that directory is
2813 # removed, or if the value is a relative name.
ec06701b 2814 test -d ./--version && rmdir ./--version
10946b02
AX
2815 MKDIR_P="$ac_install_sh -d"
2816 fi
2817fi
ec06701b 2818{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
10946b02
AX
2819$as_echo "$MKDIR_P" >&6; }
2820
ec06701b
AX
2821mkdir_p="$MKDIR_P"
2822case $mkdir_p in
2823 [\\/$]* | ?:[\\/]*) ;;
2824 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2825esac
2826
2827{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10946b02
AX
2828$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2829set x ${MAKE-make}
2830ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
ec06701b 2831if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10946b02
AX
2832 $as_echo_n "(cached) " >&6
2833else
2834 cat >conftest.make <<\_ACEOF
2835SHELL = /bin/sh
2836all:
2837 @echo '@@@%%%=$(MAKE)=@@@%%%'
2838_ACEOF
ec06701b 2839# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10946b02
AX
2840case `${MAKE-make} -f conftest.make 2>/dev/null` in
2841 *@@@%%%=?*=@@@%%%*)
2842 eval ac_cv_prog_make_${ac_make}_set=yes;;
2843 *)
2844 eval ac_cv_prog_make_${ac_make}_set=no;;
2845esac
2846rm -f conftest.make
2847fi
2848if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec06701b 2849 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
2850$as_echo "yes" >&6; }
2851 SET_MAKE=
2852else
ec06701b 2853 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
2854$as_echo "no" >&6; }
2855 SET_MAKE="MAKE=${MAKE-make}"
2856fi
2857
2858rm -rf .tst 2>/dev/null
2859mkdir .tst 2>/dev/null
2860if test -d .tst; then
2861 am__leading_dot=.
2862else
2863 am__leading_dot=_
2864fi
2865rmdir .tst 2>/dev/null
2866
2867if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869 # is not polluted with repeated "-I."
2870 am__isrc=' -I$(srcdir)'
2871 # test to see if srcdir already configured
2872 if test -f $srcdir/config.status; then
ec06701b
AX
2873 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2874$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2875 { (exit 1); exit 1; }; }
10946b02
AX
2876 fi
2877fi
2878
2879# test whether we have cygpath
2880if test -z "$CYGPATH_W"; then
2881 if (cygpath --version) >/dev/null 2>/dev/null; then
2882 CYGPATH_W='cygpath -w'
2883 else
2884 CYGPATH_W=echo
2885 fi
2886fi
2887
2888
2889# Define the identity of the package.
2890 PACKAGE='spl'
34ee731f 2891 VERSION='0.7.8'
10946b02
AX
2892
2893
2894cat >>confdefs.h <<_ACEOF
2895#define PACKAGE "$PACKAGE"
2896_ACEOF
2897
2898
2899cat >>confdefs.h <<_ACEOF
2900#define VERSION "$VERSION"
2901_ACEOF
2902
2903# Some tools Automake needs.
2904
2905ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2906
2907
2908AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2909
2910
2911AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2912
2913
2914AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2915
2916
2917MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2918
ec06701b
AX
2919# We need awk for the "check" target. The system "awk" is bad on
2920# some platforms.
2921# Always define AMTAR for backward compatibility.
ac9cc135 2922
ec06701b 2923AMTAR=${AMTAR-"${am_missing_run}tar"}
10946b02 2924
ec06701b 2925am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
ac9cc135 2926
10946b02
AX
2927
2928
2929
2930
ec06701b 2931ac_config_headers="$ac_config_headers spl_config.h"
10946b02 2932
ac9cc135 2933
ec06701b
AX
2934# Find a good install program. We prefer a C program (faster),
2935# so one script is as good as another. But avoid the broken or
2936# incompatible versions:
2937# SysV /etc/install, /usr/sbin/install
2938# SunOS /usr/etc/install
2939# IRIX /sbin/install
2940# AIX /bin/install
2941# AmigaOS /C/install, which installs bootblocks on floppy discs
2942# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945# OS/2's system install, which has a completely different semantic
2946# ./install, which can be erroneously created by make from ./install.sh.
2947# Reject install programs that cannot install multiple files.
2948{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2949$as_echo_n "checking for a BSD-compatible install... " >&6; }
2950if test -z "$INSTALL"; then
2951if test "${ac_cv_path_install+set}" = set; then
2952 $as_echo_n "(cached) " >&6
2953else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 # Account for people who put trailing slashes in PATH elements.
2960case $as_dir/ in
2961 ./ | .// | /cC/* | \
2962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2963 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2964 /usr/ucb/* ) ;;
2965 *)
2966 # OSF1 and SCO ODT 3.0 have their own names for install.
2967 # Don't use installbsd from OSF since it installs stuff as root
2968 # by default.
2969 for ac_prog in ginstall scoinst install; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2972 if test $ac_prog = install &&
2973 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # AIX install. It has an incompatible calling convention.
2975 :
2976 elif test $ac_prog = install &&
2977 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2978 # program-specific install script used by HP pwplus--don't use.
2979 :
2980 else
2981 rm -rf conftest.one conftest.two conftest.dir
2982 echo one > conftest.one
2983 echo two > conftest.two
2984 mkdir conftest.dir
2985 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2986 test -s conftest.one && test -s conftest.two &&
2987 test -s conftest.dir/conftest.one &&
2988 test -s conftest.dir/conftest.two
2989 then
2990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991 break 3
2992 fi
2993 fi
2994 fi
2995 done
2996 done
2997 ;;
2998esac
ac9cc135 2999
ec06701b
AX
3000done
3001IFS=$as_save_IFS
ac9cc135 3002
ec06701b 3003rm -rf conftest.one conftest.two conftest.dir
ac9cc135 3004
ec06701b
AX
3005fi
3006 if test "${ac_cv_path_install+set}" = set; then
3007 INSTALL=$ac_cv_path_install
ac9cc135 3008 else
ec06701b
AX
3009 # As a last resort, use the slow shell script. Don't cache a
3010 # value for INSTALL within a source directory, because that will
3011 # break other packages using the cache if that directory is
3012 # removed, or if the value is a relative name.
3013 INSTALL=$ac_install_sh
ac9cc135
AX
3014 fi
3015fi
ec06701b
AX
3016{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3017$as_echo "$INSTALL" >&6; }
ac9cc135 3018
ec06701b
AX
3019# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3020# It thinks the first close brace ends the variable substitution.
3021test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10946b02 3022
ec06701b 3023test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10946b02 3024
ec06701b 3025test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10946b02
AX
3026
3027ac_ext=c
3028ac_cpp='$CPP $CPPFLAGS'
3029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec06701b 3035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3036$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 3037if test "${ac_cv_prog_CC+set}" = set; then
10946b02
AX
3038 $as_echo_n "(cached) " >&6
3039else
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3042else
3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044for as_dir in $PATH
3045do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
ec06701b
AX
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec06701b 3051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3052 break 2
3053 fi
3054done
ec06701b 3055done
10946b02
AX
3056IFS=$as_save_IFS
3057
3058fi
3059fi
3060CC=$ac_cv_prog_CC
3061if test -n "$CC"; then
ec06701b 3062 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10946b02
AX
3063$as_echo "$CC" >&6; }
3064else
ec06701b 3065 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3066$as_echo "no" >&6; }
3067fi
3068
3069
3070fi
3071if test -z "$ac_cv_prog_CC"; then
3072 ac_ct_CC=$CC
3073 # Extract the first word of "gcc", so it can be a program name with args.
3074set dummy gcc; ac_word=$2
ec06701b 3075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3076$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 3077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10946b02
AX
3078 $as_echo_n "(cached) " >&6
3079else
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
ec06701b
AX
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3090 ac_cv_prog_ac_ct_CC="gcc"
ec06701b 3091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3092 break 2
3093 fi
3094done
ec06701b 3095done
10946b02
AX
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101if test -n "$ac_ct_CC"; then
ec06701b 3102 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10946b02
AX
3103$as_echo "$ac_ct_CC" >&6; }
3104else
ec06701b 3105 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3106$as_echo "no" >&6; }
3107fi
3108
3109 if test "x$ac_ct_CC" = x; then
3110 CC=""
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113yes:)
ec06701b 3114{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
3115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116ac_tool_warned=yes ;;
3117esac
3118 CC=$ac_ct_CC
3119 fi
3120else
3121 CC="$ac_cv_prog_CC"
3122fi
3123
3124if test -z "$CC"; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3127set dummy ${ac_tool_prefix}cc; ac_word=$2
ec06701b 3128{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3129$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 3130if test "${ac_cv_prog_CC+set}" = set; then
10946b02
AX
3131 $as_echo_n "(cached) " >&6
3132else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135else
3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137for as_dir in $PATH
3138do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
ec06701b
AX
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3143 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec06701b 3144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3145 break 2
3146 fi
3147done
ec06701b 3148done
10946b02
AX
3149IFS=$as_save_IFS
3150
3151fi
3152fi
3153CC=$ac_cv_prog_CC
3154if test -n "$CC"; then
ec06701b 3155 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10946b02
AX
3156$as_echo "$CC" >&6; }
3157else
ec06701b 3158 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3159$as_echo "no" >&6; }
3160fi
3161
3162
3163 fi
3164fi
3165if test -z "$CC"; then
3166 # Extract the first word of "cc", so it can be a program name with args.
3167set dummy cc; ac_word=$2
ec06701b 3168{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3169$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 3170if test "${ac_cv_prog_CC+set}" = set; then
10946b02
AX
3171 $as_echo_n "(cached) " >&6
3172else
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3175else
3176 ac_prog_rejected=no
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
ec06701b
AX
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02
AX
3184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185 ac_prog_rejected=yes
3186 continue
3187 fi
3188 ac_cv_prog_CC="cc"
ec06701b 3189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3190 break 2
3191 fi
3192done
ec06701b 3193done
10946b02
AX
3194IFS=$as_save_IFS
3195
3196if test $ac_prog_rejected = yes; then
3197 # We found a bogon in the path, so make sure we never use it.
3198 set dummy $ac_cv_prog_CC
3199 shift
3200 if test $# != 0; then
3201 # We chose a different compiler from the bogus one.
3202 # However, it has the same basename, so the bogon will be chosen
3203 # first if we set CC to just the basename; use the full file name.
3204 shift
3205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3206 fi
3207fi
3208fi
3209fi
3210CC=$ac_cv_prog_CC
3211if test -n "$CC"; then
ec06701b 3212 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10946b02
AX
3213$as_echo "$CC" >&6; }
3214else
ec06701b 3215 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3216$as_echo "no" >&6; }
3217fi
3218
3219
3220fi
3221if test -z "$CC"; then
3222 if test -n "$ac_tool_prefix"; then
3223 for ac_prog in cl.exe
3224 do
3225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec06701b 3227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3228$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 3229if test "${ac_cv_prog_CC+set}" = set; then
10946b02
AX
3230 $as_echo_n "(cached) " >&6
3231else
3232 if test -n "$CC"; then
3233 ac_cv_prog_CC="$CC" # Let the user override the test.
3234else
3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236for as_dir in $PATH
3237do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
ec06701b
AX
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec06701b 3243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3244 break 2
3245 fi
3246done
ec06701b 3247done
10946b02
AX
3248IFS=$as_save_IFS
3249
3250fi
3251fi
3252CC=$ac_cv_prog_CC
3253if test -n "$CC"; then
ec06701b 3254 { $as_echo "$as_me:$LINENO: result: $CC" >&5
10946b02
AX
3255$as_echo "$CC" >&6; }
3256else
ec06701b 3257 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3258$as_echo "no" >&6; }
3259fi
3260
3261
3262 test -n "$CC" && break
3263 done
3264fi
3265if test -z "$CC"; then
3266 ac_ct_CC=$CC
3267 for ac_prog in cl.exe
3268do
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270set dummy $ac_prog; ac_word=$2
ec06701b 3271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 3272$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 3273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10946b02
AX
3274 $as_echo_n "(cached) " >&6
3275else
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
ec06701b
AX
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 3286 ac_cv_prog_ac_ct_CC="$ac_prog"
ec06701b 3287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
3288 break 2
3289 fi
3290done
ec06701b 3291done
10946b02
AX
3292IFS=$as_save_IFS
3293
3294fi
3295fi
3296ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297if test -n "$ac_ct_CC"; then
ec06701b 3298 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10946b02
AX
3299$as_echo "$ac_ct_CC" >&6; }
3300else
ec06701b 3301 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
3302$as_echo "no" >&6; }
3303fi
3304
3305
3306 test -n "$ac_ct_CC" && break
3307done
3308
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313yes:)
ec06701b 3314{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
3315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316ac_tool_warned=yes ;;
3317esac
3318 CC=$ac_ct_CC
3319 fi
3320fi
3321
3322fi
3323
3324
ec06701b 3325test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 3326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ec06701b
AX
3327{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3328See \`config.log' for more details." >&5
3329$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3330See \`config.log' for more details." >&2;}
3331 { (exit 1); exit 1; }; }; }
10946b02
AX
3332
3333# Provide some information about the compiler.
ec06701b 3334$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
10946b02
AX
3335set X $ac_compile
3336ac_compiler=$2
ec06701b 3337{ (ac_try="$ac_compiler --version >&5"
10946b02
AX
3338case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341esac
ec06701b
AX
3342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343$as_echo "$ac_try_echo") >&5
3344 (eval "$ac_compiler --version >&5") 2>&5
10946b02 3345 ac_status=$?
ec06701b
AX
3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348{ (ac_try="$ac_compiler -v >&5"
3349case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352esac
3353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3354$as_echo "$ac_try_echo") >&5
3355 (eval "$ac_compiler -v >&5") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }
3359{ (ac_try="$ac_compiler -V >&5"
3360case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363esac
3364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365$as_echo "$ac_try_echo") >&5
3366 (eval "$ac_compiler -V >&5") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }
10946b02 3370
ec06701b
AX
3371cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3376/* end confdefs.h. */
3377
3378int
3379main ()
3380{
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386ac_clean_files_save=$ac_clean_files
3387ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3388# Try to create an executable without -o first, disregard a.out.
3389# It will help us diagnose broken compilers, and finding out an intuition
3390# of exeext.
ec06701b
AX
3391{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3392$as_echo_n "checking for C compiler default output file name... " >&6; }
10946b02
AX
3393ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3394
3395# The possible output files:
3396ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3397
3398ac_rmfiles=
3399for ac_file in $ac_files
3400do
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3403 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3404 esac
3405done
3406rm -f $ac_rmfiles
3407
ec06701b 3408if { (ac_try="$ac_link_default"
10946b02
AX
3409case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
ec06701b
AX
3413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3414$as_echo "$ac_try_echo") >&5
10946b02
AX
3415 (eval "$ac_link_default") 2>&5
3416 ac_status=$?
ec06701b
AX
3417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; then
10946b02
AX
3419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3420# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3421# in a Makefile. We should not override ac_cv_exeext if it was cached,
3422# so that the user can short-circuit this test for compilers unknown to
3423# Autoconf.
3424for ac_file in $ac_files ''
3425do
3426 test -f "$ac_file" || continue
3427 case $ac_file in
3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3429 ;;
3430 [ab].out )
3431 # We found the default executable, but exeext='' is most
3432 # certainly right.
3433 break;;
3434 *.* )
ec06701b 3435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
10946b02
AX
3436 then :; else
3437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438 fi
3439 # We set ac_cv_exeext here because the later test for it is not
3440 # safe: cross compilers may not add the suffix if given an `-o'
3441 # argument, so we may need to know it at that point already.
3442 # Even if this section looks crufty: it has the advantage of
3443 # actually working.
3444 break;;
3445 * )
3446 break;;
3447 esac
3448done
3449test "$ac_cv_exeext" = no && ac_cv_exeext=
3450
3451else
3452 ac_file=''
3453fi
ec06701b
AX
3454
3455{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3456$as_echo "$ac_file" >&6; }
3457if test -z "$ac_file"; then
3458 $as_echo "$as_me: failed program was:" >&5
10946b02
AX
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
ec06701b 3461{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ec06701b
AX
3463{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3464See \`config.log' for more details." >&5
3465$as_echo "$as_me: error: C compiler cannot create executables
3466See \`config.log' for more details." >&2;}
3467 { (exit 77); exit 77; }; }; }
10946b02 3468fi
ec06701b 3469
10946b02
AX
3470ac_exeext=$ac_cv_exeext
3471
ec06701b
AX
3472# Check that the compiler produces executables we can run. If not, either
3473# the compiler is broken, or we cross compile.
3474{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3475$as_echo_n "checking whether the C compiler works... " >&6; }
3476# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3477# If not cross compiling, check that we can run a simple program.
3478if test "$cross_compiling" != yes; then
3479 if { ac_try='./$ac_file'
3480 { (case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483esac
3484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485$as_echo "$ac_try_echo") >&5
3486 (eval "$ac_try") 2>&5
3487 ac_status=$?
3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 cross_compiling=no
3491 else
3492 if test "$cross_compiling" = maybe; then
3493 cross_compiling=yes
3494 else
3495 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3498If you meant to cross compile, use \`--host'.
3499See \`config.log' for more details." >&5
3500$as_echo "$as_me: error: cannot run C compiled programs.
3501If you meant to cross compile, use \`--host'.
3502See \`config.log' for more details." >&2;}
3503 { (exit 1); exit 1; }; }; }
3504 fi
3505 fi
3506fi
3507{ $as_echo "$as_me:$LINENO: result: yes" >&5
3508$as_echo "yes" >&6; }
3509
10946b02
AX
3510rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3511ac_clean_files=$ac_clean_files_save
ec06701b
AX
3512# Check that the compiler produces executables we can run. If not, either
3513# the compiler is broken, or we cross compile.
3514{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3515$as_echo_n "checking whether we are cross compiling... " >&6; }
3516{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3517$as_echo "$cross_compiling" >&6; }
3518
3519{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
10946b02 3520$as_echo_n "checking for suffix of executables... " >&6; }
ec06701b 3521if { (ac_try="$ac_link"
10946b02
AX
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
ec06701b
AX
3526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3527$as_echo "$ac_try_echo") >&5
10946b02
AX
3528 (eval "$ac_link") 2>&5
3529 ac_status=$?
ec06701b
AX
3530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; then
10946b02
AX
3532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3533# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3534# work properly (i.e., refer to `conftest.exe'), while it won't with
3535# `rm'.
3536for ac_file in conftest.exe conftest conftest.*; do
3537 test -f "$ac_file" || continue
3538 case $ac_file in
3539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3540 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541 break;;
3542 * ) break;;
3543 esac
3544done
3545else
ec06701b 3546 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 3547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ec06701b
AX
3548{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3549See \`config.log' for more details." >&5
3550$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3551See \`config.log' for more details." >&2;}
3552 { (exit 1); exit 1; }; }; }
10946b02 3553fi
ec06701b
AX
3554
3555rm -f conftest$ac_cv_exeext
3556{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10946b02
AX
3557$as_echo "$ac_cv_exeext" >&6; }
3558
3559rm -f conftest.$ac_ext
3560EXEEXT=$ac_cv_exeext
3561ac_exeext=$EXEEXT
ec06701b 3562{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
10946b02 3563$as_echo_n "checking for suffix of object files... " >&6; }
ec06701b 3564if test "${ac_cv_objext+set}" = set; then
10946b02
AX
3565 $as_echo_n "(cached) " >&6
3566else
ec06701b
AX
3567 cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h. */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3572/* end confdefs.h. */
3573
3574int
3575main ()
3576{
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582rm -f conftest.o conftest.obj
ec06701b 3583if { (ac_try="$ac_compile"
10946b02
AX
3584case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587esac
ec06701b
AX
3588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3589$as_echo "$ac_try_echo") >&5
10946b02
AX
3590 (eval "$ac_compile") 2>&5
3591 ac_status=$?
ec06701b
AX
3592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; then
10946b02
AX
3594 for ac_file in conftest.o conftest.obj conftest.*; do
3595 test -f "$ac_file" || continue;
3596 case $ac_file in
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3599 break;;
3600 esac
3601done
3602else
3603 $as_echo "$as_me: failed program was:" >&5
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
ec06701b 3606{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 3607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ec06701b
AX
3608{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3609See \`config.log' for more details." >&5
3610$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3611See \`config.log' for more details." >&2;}
3612 { (exit 1); exit 1; }; }; }
10946b02 3613fi
ec06701b 3614
10946b02
AX
3615rm -f conftest.$ac_cv_objext conftest.$ac_ext
3616fi
ec06701b 3617{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10946b02
AX
3618$as_echo "$ac_cv_objext" >&6; }
3619OBJEXT=$ac_cv_objext
3620ac_objext=$OBJEXT
ec06701b 3621{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10946b02 3622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ec06701b 3623if test "${ac_cv_c_compiler_gnu+set}" = set; then
10946b02
AX
3624 $as_echo_n "(cached) " >&6
3625else
ec06701b
AX
3626 cat >conftest.$ac_ext <<_ACEOF
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3631/* end confdefs.h. */
3632
3633int
3634main ()
3635{
3636#ifndef __GNUC__
3637 choke me
3638#endif
3639
3640 ;
3641 return 0;
3642}
3643_ACEOF
ec06701b
AX
3644rm -f conftest.$ac_objext
3645if { (ac_try="$ac_compile"
3646case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649esac
3650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3651$as_echo "$ac_try_echo") >&5
3652 (eval "$ac_compile") 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } && {
3659 test -z "$ac_c_werror_flag" ||
3660 test ! -s conftest.err
3661 } && test -s conftest.$ac_objext; then
10946b02
AX
3662 ac_compiler_gnu=yes
3663else
ec06701b
AX
3664 $as_echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 ac_compiler_gnu=no
10946b02 3668fi
ec06701b 3669
10946b02
AX
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671ac_cv_c_compiler_gnu=$ac_compiler_gnu
3672
3673fi
ec06701b 3674{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10946b02
AX
3675$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676if test $ac_compiler_gnu = yes; then
3677 GCC=yes
3678else
3679 GCC=
3680fi
3681ac_test_CFLAGS=${CFLAGS+set}
3682ac_save_CFLAGS=$CFLAGS
ec06701b 3683{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10946b02 3684$as_echo_n "checking whether $CC accepts -g... " >&6; }
ec06701b 3685if test "${ac_cv_prog_cc_g+set}" = set; then
10946b02
AX
3686 $as_echo_n "(cached) " >&6
3687else
3688 ac_save_c_werror_flag=$ac_c_werror_flag
3689 ac_c_werror_flag=yes
3690 ac_cv_prog_cc_g=no
3691 CFLAGS="-g"
ec06701b
AX
3692 cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3697/* end confdefs.h. */
3698
3699int
3700main ()
3701{
3702
3703 ;
3704 return 0;
3705}
3706_ACEOF
ec06701b
AX
3707rm -f conftest.$ac_objext
3708if { (ac_try="$ac_compile"
3709case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712esac
3713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3714$as_echo "$ac_try_echo") >&5
3715 (eval "$ac_compile") 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && {
3722 test -z "$ac_c_werror_flag" ||
3723 test ! -s conftest.err
3724 } && test -s conftest.$ac_objext; then
10946b02
AX
3725 ac_cv_prog_cc_g=yes
3726else
ec06701b
AX
3727 $as_echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 CFLAGS=""
3731 cat >conftest.$ac_ext <<_ACEOF
3732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3736/* end confdefs.h. */
3737
3738int
3739main ()
3740{
3741
3742 ;
3743 return 0;
3744}
3745_ACEOF
ec06701b
AX
3746rm -f conftest.$ac_objext
3747if { (ac_try="$ac_compile"
3748case "(($ac_try" in
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751esac
3752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3753$as_echo "$ac_try_echo") >&5
3754 (eval "$ac_compile") 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && {
3761 test -z "$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 } && test -s conftest.$ac_objext; then
3764 :
10946b02 3765else
ec06701b
AX
3766 $as_echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 ac_c_werror_flag=$ac_save_c_werror_flag
10946b02 3770 CFLAGS="-g"
ec06701b
AX
3771 cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h. */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3776/* end confdefs.h. */
3777
3778int
3779main ()
3780{
3781
3782 ;
3783 return 0;
3784}
3785_ACEOF
ec06701b
AX
3786rm -f conftest.$ac_objext
3787if { (ac_try="$ac_compile"
3788case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791esac
3792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793$as_echo "$ac_try_echo") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && {
3801 test -z "$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3803 } && test -s conftest.$ac_objext; then
10946b02 3804 ac_cv_prog_cc_g=yes
ec06701b
AX
3805else
3806 $as_echo "$as_me: failed program was:" >&5
3807sed 's/^/| /' conftest.$ac_ext >&5
3808
3809
10946b02 3810fi
ec06701b 3811
10946b02
AX
3812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813fi
ec06701b 3814
10946b02
AX
3815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816fi
ec06701b 3817
10946b02
AX
3818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 ac_c_werror_flag=$ac_save_c_werror_flag
3820fi
ec06701b 3821{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10946b02
AX
3822$as_echo "$ac_cv_prog_cc_g" >&6; }
3823if test "$ac_test_CFLAGS" = set; then
3824 CFLAGS=$ac_save_CFLAGS
3825elif test $ac_cv_prog_cc_g = yes; then
3826 if test "$GCC" = yes; then
3827 CFLAGS="-g -O2"
3828 else
3829 CFLAGS="-g"
3830 fi
3831else
3832 if test "$GCC" = yes; then
3833 CFLAGS="-O2"
3834 else
3835 CFLAGS=
3836 fi
3837fi
ec06701b 3838{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
10946b02 3839$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
ec06701b 3840if test "${ac_cv_prog_cc_c89+set}" = set; then
10946b02
AX
3841 $as_echo_n "(cached) " >&6
3842else
3843 ac_cv_prog_cc_c89=no
3844ac_save_CC=$CC
ec06701b
AX
3845cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h. */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
3850/* end confdefs.h. */
3851#include <stdarg.h>
3852#include <stdio.h>
ec06701b
AX
3853#include <sys/types.h>
3854#include <sys/stat.h>
10946b02
AX
3855/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3856struct buf { int x; };
3857FILE * (*rcsopen) (struct buf *, struct stat *, int);
3858static char *e (p, i)
3859 char **p;
3860 int i;
3861{
3862 return p[i];
3863}
3864static char *f (char * (*g) (char **, int), char **p, ...)
3865{
3866 char *s;
3867 va_list v;
3868 va_start (v,p);
3869 s = g (p, va_arg (v,int));
3870 va_end (v);
3871 return s;
3872}
3873
3874/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3875 function prototypes and stuff, but not '\xHH' hex character constants.
3876 These don't provoke an error unfortunately, instead are silently treated
3877 as 'x'. The following induces an error, until -std is added to get
3878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3879 array size at least. It's necessary to write '\x00'==0 to get something
3880 that's true only with -std. */
3881int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882
3883/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3884 inside strings and character constants. */
3885#define FOO(x) 'x'
3886int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3887
3888int test (int i, double x);
3889struct s1 {int (*f) (int a);};
3890struct s2 {int (*f) (double a);};
3891int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3892int argc;
3893char **argv;
3894int
3895main ()
3896{
3897return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3904do
3905 CC="$ac_save_CC $ac_arg"
ec06701b
AX
3906 rm -f conftest.$ac_objext
3907if { (ac_try="$ac_compile"
3908case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911esac
3912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913$as_echo "$ac_try_echo") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
10946b02 3924 ac_cv_prog_cc_c89=$ac_arg
ec06701b
AX
3925else
3926 $as_echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
10946b02 3928
10946b02
AX
3929
3930fi
3931
ec06701b
AX
3932rm -f core conftest.err conftest.$ac_objext
3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
3934done
3935rm -f conftest.$ac_ext
3936CC=$ac_save_CC
ac9cc135 3937
ac9cc135 3938fi
ec06701b
AX
3939# AC_CACHE_VAL
3940case "x$ac_cv_prog_cc_c89" in
3941 x)
3942 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3943$as_echo "none needed" >&6; } ;;
3944 xno)
3945 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3946$as_echo "unsupported" >&6; } ;;
3947 *)
3948 CC="$CC $ac_cv_prog_cc_c89"
3949 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3950$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3951esac
3952
3953
ac9cc135
AX
3954ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
10946b02
AX
3959DEPDIR="${am__leading_dot}deps"
3960
3961ac_config_commands="$ac_config_commands depfiles"
3962
3963
3964am_make=${MAKE-make}
3965cat > confinc << 'END'
3966am__doit:
3967 @echo this is the am__doit target
3968.PHONY: am__doit
3969END
3970# If we don't find an include directive, just comment out the code.
ec06701b 3971{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
10946b02
AX
3972$as_echo_n "checking for style of include used by $am_make... " >&6; }
3973am__include="#"
3974am__quote=
3975_am_result=none
3976# First try GNU make style include.
3977echo "include confinc" > confmf
ec06701b 3978# Ignore all kinds of additional output from `make'.
10946b02
AX
3979case `$am_make -s -f confmf 2> /dev/null` in #(
3980*the\ am__doit\ target*)
3981 am__include=include
3982 am__quote=
3983 _am_result=GNU
3984 ;;
3985esac
3986# Now try BSD make style include.
3987if test "$am__include" = "#"; then
3988 echo '.include "confinc"' > confmf
3989 case `$am_make -s -f confmf 2> /dev/null` in #(
3990 *the\ am__doit\ target*)
3991 am__include=.include
3992 am__quote="\""
3993 _am_result=BSD
3994 ;;
3995 esac
3996fi
3997
3998
ec06701b 3999{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
10946b02
AX
4000$as_echo "$_am_result" >&6; }
4001rm -f confinc confmf
4002
4003# Check whether --enable-dependency-tracking was given.
ec06701b 4004if test "${enable_dependency_tracking+set}" = set; then
10946b02
AX
4005 enableval=$enable_dependency_tracking;
4006fi
4007
4008if test "x$enable_dependency_tracking" != xno; then
4009 am_depcomp="$ac_aux_dir/depcomp"
4010 AMDEPBACKSLASH='\'
10946b02
AX
4011fi
4012 if test "x$enable_dependency_tracking" != xno; then
4013 AMDEP_TRUE=
4014 AMDEP_FALSE='#'
4015else
4016 AMDEP_TRUE='#'
4017 AMDEP_FALSE=
4018fi
4019
4020
4021
4022depcc="$CC" am_compiler_list=
4023
ec06701b 4024{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
10946b02 4025$as_echo_n "checking dependency style of $depcc... " >&6; }
ec06701b 4026if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
10946b02
AX
4027 $as_echo_n "(cached) " >&6
4028else
4029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4030 # We make a subdir and do the tests there. Otherwise we can end up
4031 # making bogus files that we don't know about and never remove. For
4032 # instance it was reported that on HP-UX the gcc test will end up
ec06701b
AX
4033 # making a dummy file named `D' -- because `-MD' means `put the output
4034 # in D'.
10946b02
AX
4035 mkdir conftest.dir
4036 # Copy depcomp to subdir because otherwise we won't find it if we're
4037 # using a relative directory.
4038 cp "$am_depcomp" conftest.dir
4039 cd conftest.dir
4040 # We will build objects and dependencies in a subdirectory because
4041 # it helps to detect inapplicable dependency modes. For instance
4042 # both Tru64's cc and ICC support -MD to output dependencies as a
4043 # side effect of compilation, but ICC will put the dependencies in
4044 # the current directory while Tru64 will put them in the object
4045 # directory.
4046 mkdir sub
4047
4048 am_cv_CC_dependencies_compiler_type=none
4049 if test "$am_compiler_list" = ""; then
4050 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4051 fi
4052 am__universal=false
4053 case " $depcc " in #(
4054 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4055 esac
4056
4057 for depmode in $am_compiler_list; do
4058 # Setup a source with many dependencies, because some compilers
4059 # like to wrap large dependency lists on column 80 (with \), and
4060 # we should not choose a depcomp mode which is confused by this.
4061 #
4062 # We need to recreate these files for each test, as the compiler may
4063 # overwrite some of them when testing with obscure command lines.
4064 # This happens at least with the AIX C compiler.
4065 : > sub/conftest.c
4066 for i in 1 2 3 4 5 6; do
4067 echo '#include "conftst'$i'.h"' >> sub/conftest.c
ec06701b
AX
4068 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4069 # Solaris 8's {/usr,}/bin/sh.
4070 touch sub/conftst$i.h
10946b02
AX
4071 done
4072 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4073
ec06701b 4074 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10946b02 4075 # mode. It turns out that the SunPro C++ compiler does not properly
ec06701b
AX
4076 # handle `-M -o', and we need to detect this. Also, some Intel
4077 # versions had trouble with output in subdirs
10946b02
AX
4078 am__obj=sub/conftest.${OBJEXT-o}
4079 am__minus_obj="-o $am__obj"
4080 case $depmode in
4081 gcc)
4082 # This depmode causes a compiler race in universal mode.
4083 test "$am__universal" = false || continue
4084 ;;
4085 nosideeffect)
ec06701b
AX
4086 # after this tag, mechanisms are not by side-effect, so they'll
4087 # only be used when explicitly requested
10946b02
AX
4088 if test "x$enable_dependency_tracking" = xyes; then
4089 continue
4090 else
4091 break
4092 fi
4093 ;;
ec06701b
AX
4094 msvisualcpp | msvcmsys)
4095 # This compiler won't grok `-c -o', but also, the minuso test has
10946b02
AX
4096 # not run yet. These depmodes are late enough in the game, and
4097 # so weak that their functioning should not be impacted.
4098 am__obj=conftest.${OBJEXT-o}
4099 am__minus_obj=
4100 ;;
4101 none) break ;;
4102 esac
4103 if depmode=$depmode \
4104 source=sub/conftest.c object=$am__obj \
4105 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4106 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4107 >/dev/null 2>conftest.err &&
4108 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4109 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4110 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4111 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4112 # icc doesn't choke on unknown options, it will just issue warnings
4113 # or remarks (even with -Werror). So we grep stderr for any message
4114 # that says an option was ignored or not supported.
4115 # When given -MP, icc 7.0 and 7.1 complain thusly:
4116 # icc: Command line warning: ignoring option '-M'; no argument required
4117 # The diagnosis changed in icc 8.0:
4118 # icc: Command line remark: option '-MP' not supported
4119 if (grep 'ignoring option' conftest.err ||
4120 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4121 am_cv_CC_dependencies_compiler_type=$depmode
4122 break
4123 fi
4124 fi
4125 done
4126
4127 cd ..
4128 rm -rf conftest.dir
4129else
4130 am_cv_CC_dependencies_compiler_type=none
4131fi
4132
4133fi
ec06701b 4134{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
10946b02
AX
4135$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4136CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4137
4138 if
4139 test "x$enable_dependency_tracking" != xno \
4140 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4141 am__fastdepCC_TRUE=
4142 am__fastdepCC_FALSE='#'
4143else
4144 am__fastdepCC_TRUE='#'
4145 am__fastdepCC_FALSE=
4146fi
4147
4148
4149case `pwd` in
4150 *\ * | *\ *)
ec06701b 4151 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10946b02
AX
4152$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4153esac
4154
4155
4156
ec06701b
AX
4157macro_version='2.2.6b'
4158macro_revision='1.3017'
10946b02
AX
4159
4160
4161
4162
4163
4164
4165
10946b02
AX
4166
4167
4168
4169
4170
4171
ec06701b 4172ltmain="$ac_aux_dir/ltmain.sh"
10946b02 4173
ec06701b 4174{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10946b02 4175$as_echo_n "checking for a sed that does not truncate output... " >&6; }
ec06701b 4176if test "${ac_cv_path_SED+set}" = set; then
10946b02
AX
4177 $as_echo_n "(cached) " >&6
4178else
4179 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4180 for ac_i in 1 2 3 4 5 6 7; do
4181 ac_script="$ac_script$as_nl$ac_script"
4182 done
4183 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
ec06701b 4184 $as_unset ac_script || ac_script=
10946b02
AX
4185 if test -z "$SED"; then
4186 ac_path_SED_found=false
4187 # Loop through the user's path and test for each of PROGNAME-LIST
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
ec06701b 4193 for ac_prog in sed gsed; do
10946b02
AX
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
ec06701b 4196 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10946b02
AX
4197# Check for GNU ac_path_SED and select it if it is found.
4198 # Check for GNU $ac_path_SED
4199case `"$ac_path_SED" --version 2>&1` in
4200*GNU*)
4201 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4202*)
4203 ac_count=0
4204 $as_echo_n 0123456789 >"conftest.in"
4205 while :
4206 do
4207 cat "conftest.in" "conftest.in" >"conftest.tmp"
4208 mv "conftest.tmp" "conftest.in"
4209 cp "conftest.in" "conftest.nl"
4210 $as_echo '' >> "conftest.nl"
4211 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ec06701b 4213 ac_count=`expr $ac_count + 1`
10946b02
AX
4214 if test $ac_count -gt ${ac_path_SED_max-0}; then
4215 # Best one so far, save it but keep looking for a better one
4216 ac_cv_path_SED="$ac_path_SED"
4217 ac_path_SED_max=$ac_count
4218 fi
4219 # 10*(2^10) chars as input seems more than enough
4220 test $ac_count -gt 10 && break
4221 done
4222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223esac
4224
4225 $ac_path_SED_found && break 3
4226 done
4227 done
ec06701b 4228done
10946b02
AX
4229IFS=$as_save_IFS
4230 if test -z "$ac_cv_path_SED"; then
ec06701b
AX
4231 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4232$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4233 { (exit 1); exit 1; }; }
10946b02
AX
4234 fi
4235else
4236 ac_cv_path_SED=$SED
4237fi
4238
4239fi
ec06701b 4240{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
10946b02
AX
4241$as_echo "$ac_cv_path_SED" >&6; }
4242 SED="$ac_cv_path_SED"
4243 rm -f conftest.sed
4244
4245test -z "$SED" && SED=sed
4246Xsed="$SED -e 1s/^X//"
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
ec06701b 4258{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
10946b02 4259$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
ec06701b 4260if test "${ac_cv_path_GREP+set}" = set; then
10946b02
AX
4261 $as_echo_n "(cached) " >&6
4262else
4263 if test -z "$GREP"; then
4264 ac_path_GREP_found=false
4265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
ec06701b 4271 for ac_prog in grep ggrep; do
10946b02
AX
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
ec06701b 4274 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
10946b02
AX
4275# Check for GNU ac_path_GREP and select it if it is found.
4276 # Check for GNU $ac_path_GREP
4277case `"$ac_path_GREP" --version 2>&1` in
4278*GNU*)
4279 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4280*)
4281 ac_count=0
4282 $as_echo_n 0123456789 >"conftest.in"
4283 while :
4284 do
4285 cat "conftest.in" "conftest.in" >"conftest.tmp"
4286 mv "conftest.tmp" "conftest.in"
4287 cp "conftest.in" "conftest.nl"
4288 $as_echo 'GREP' >> "conftest.nl"
4289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ec06701b 4291 ac_count=`expr $ac_count + 1`
10946b02
AX
4292 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4293 # Best one so far, save it but keep looking for a better one
4294 ac_cv_path_GREP="$ac_path_GREP"
4295 ac_path_GREP_max=$ac_count
4296 fi
4297 # 10*(2^10) chars as input seems more than enough
4298 test $ac_count -gt 10 && break
4299 done
4300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4301esac
4302
4303 $ac_path_GREP_found && break 3
4304 done
4305 done
ec06701b 4306done
10946b02
AX
4307IFS=$as_save_IFS
4308 if test -z "$ac_cv_path_GREP"; then
ec06701b
AX
4309 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4310$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4311 { (exit 1); exit 1; }; }
10946b02
AX
4312 fi
4313else
4314 ac_cv_path_GREP=$GREP
4315fi
4316
4317fi
ec06701b 4318{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
10946b02
AX
4319$as_echo "$ac_cv_path_GREP" >&6; }
4320 GREP="$ac_cv_path_GREP"
4321
4322
ec06701b 4323{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
10946b02 4324$as_echo_n "checking for egrep... " >&6; }
ec06701b 4325if test "${ac_cv_path_EGREP+set}" = set; then
10946b02
AX
4326 $as_echo_n "(cached) " >&6
4327else
4328 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4329 then ac_cv_path_EGREP="$GREP -E"
4330 else
4331 if test -z "$EGREP"; then
4332 ac_path_EGREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
ec06701b 4339 for ac_prog in egrep; do
10946b02
AX
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
ec06701b 4342 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10946b02
AX
4343# Check for GNU ac_path_EGREP and select it if it is found.
4344 # Check for GNU $ac_path_EGREP
4345case `"$ac_path_EGREP" --version 2>&1` in
4346*GNU*)
4347 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4348*)
4349 ac_count=0
4350 $as_echo_n 0123456789 >"conftest.in"
4351 while :
4352 do
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'EGREP' >> "conftest.nl"
4357 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ec06701b 4359 ac_count=`expr $ac_count + 1`
10946b02
AX
4360 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_EGREP="$ac_path_EGREP"
4363 ac_path_EGREP_max=$ac_count
4364 fi
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4367 done
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369esac
4370
4371 $ac_path_EGREP_found && break 3
4372 done
4373 done
ec06701b 4374done
10946b02
AX
4375IFS=$as_save_IFS
4376 if test -z "$ac_cv_path_EGREP"; then
ec06701b
AX
4377 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4378$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4379 { (exit 1); exit 1; }; }
10946b02
AX
4380 fi
4381else
4382 ac_cv_path_EGREP=$EGREP
4383fi
4384
4385 fi
4386fi
ec06701b 4387{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10946b02
AX
4388$as_echo "$ac_cv_path_EGREP" >&6; }
4389 EGREP="$ac_cv_path_EGREP"
4390
4391
ec06701b 4392{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
10946b02 4393$as_echo_n "checking for fgrep... " >&6; }
ec06701b 4394if test "${ac_cv_path_FGREP+set}" = set; then
10946b02
AX
4395 $as_echo_n "(cached) " >&6
4396else
4397 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4398 then ac_cv_path_FGREP="$GREP -F"
4399 else
4400 if test -z "$FGREP"; then
4401 ac_path_FGREP_found=false
4402 # Loop through the user's path and test for each of PROGNAME-LIST
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
ec06701b 4408 for ac_prog in fgrep; do
10946b02
AX
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
ec06701b 4411 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10946b02
AX
4412# Check for GNU ac_path_FGREP and select it if it is found.
4413 # Check for GNU $ac_path_FGREP
4414case `"$ac_path_FGREP" --version 2>&1` in
4415*GNU*)
4416 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4417*)
4418 ac_count=0
4419 $as_echo_n 0123456789 >"conftest.in"
4420 while :
4421 do
4422 cat "conftest.in" "conftest.in" >"conftest.tmp"
4423 mv "conftest.tmp" "conftest.in"
4424 cp "conftest.in" "conftest.nl"
4425 $as_echo 'FGREP' >> "conftest.nl"
4426 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
ec06701b 4428 ac_count=`expr $ac_count + 1`
10946b02
AX
4429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4430 # Best one so far, save it but keep looking for a better one
4431 ac_cv_path_FGREP="$ac_path_FGREP"
4432 ac_path_FGREP_max=$ac_count
4433 fi
4434 # 10*(2^10) chars as input seems more than enough
4435 test $ac_count -gt 10 && break
4436 done
4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4438esac
4439
4440 $ac_path_FGREP_found && break 3
4441 done
4442 done
ec06701b 4443done
10946b02
AX
4444IFS=$as_save_IFS
4445 if test -z "$ac_cv_path_FGREP"; then
ec06701b
AX
4446 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4447$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4448 { (exit 1); exit 1; }; }
10946b02
AX
4449 fi
4450else
4451 ac_cv_path_FGREP=$FGREP
4452fi
4453
4454 fi
4455fi
ec06701b 4456{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
10946b02
AX
4457$as_echo "$ac_cv_path_FGREP" >&6; }
4458 FGREP="$ac_cv_path_FGREP"
4459
4460
4461test -z "$GREP" && GREP=grep
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481# Check whether --with-gnu-ld was given.
ec06701b
AX
4482if test "${with_gnu_ld+set}" = set; then
4483 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10946b02
AX
4484else
4485 with_gnu_ld=no
4486fi
4487
4488ac_prog=ld
ec06701b 4489if test "$GCC" = yes; then
10946b02 4490 # Check if gcc -print-prog-name=ld gives a path.
ec06701b 4491 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10946b02
AX
4492$as_echo_n "checking for ld used by $CC... " >&6; }
4493 case $host in
4494 *-*-mingw*)
ec06701b 4495 # gcc leaves a trailing carriage return which upsets mingw
10946b02
AX
4496 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4497 *)
4498 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4499 esac
4500 case $ac_prog in
4501 # Accept absolute paths.
4502 [\\/]* | ?:[\\/]*)
4503 re_direlt='/[^/][^/]*/\.\./'
4504 # Canonicalize the pathname of ld
4505 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4506 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4507 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4508 done
ec06701b 4509 test -z "$LD" && LD="$ac_prog"
10946b02
AX
4510 ;;
4511 "")
4512 # If it fails, then pretend we aren't using GCC.
4513 ac_prog=ld
4514 ;;
4515 *)
4516 # If it is relative, then search for the first ld in PATH.
4517 with_gnu_ld=unknown
4518 ;;
4519 esac
ec06701b
AX
4520elif test "$with_gnu_ld" = yes; then
4521 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10946b02
AX
4522$as_echo_n "checking for GNU ld... " >&6; }
4523else
ec06701b 4524 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10946b02
AX
4525$as_echo_n "checking for non-GNU ld... " >&6; }
4526fi
ec06701b 4527if test "${lt_cv_path_LD+set}" = set; then
10946b02
AX
4528 $as_echo_n "(cached) " >&6
4529else
4530 if test -z "$LD"; then
ec06701b 4531 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10946b02 4532 for ac_dir in $PATH; do
ec06701b 4533 IFS="$lt_save_ifs"
10946b02
AX
4534 test -z "$ac_dir" && ac_dir=.
4535 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
ec06701b 4536 lt_cv_path_LD="$ac_dir/$ac_prog"
10946b02
AX
4537 # Check to see if the program is GNU ld. I'd rather use --version,
4538 # but apparently some variants of GNU ld only accept -v.
4539 # Break only if it was the GNU/non-GNU ld that we prefer.
4540 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4541 *GNU* | *'with BFD'*)
ec06701b 4542 test "$with_gnu_ld" != no && break
10946b02
AX
4543 ;;
4544 *)
ec06701b 4545 test "$with_gnu_ld" != yes && break
10946b02
AX
4546 ;;
4547 esac
4548 fi
4549 done
ec06701b 4550 IFS="$lt_save_ifs"
10946b02 4551else
ec06701b 4552 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10946b02
AX
4553fi
4554fi
4555
ec06701b 4556LD="$lt_cv_path_LD"
10946b02 4557if test -n "$LD"; then
ec06701b 4558 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10946b02
AX
4559$as_echo "$LD" >&6; }
4560else
ec06701b 4561 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
4562$as_echo "no" >&6; }
4563fi
ec06701b
AX
4564test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4565$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4566 { (exit 1); exit 1; }; }
4567{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10946b02 4568$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ec06701b 4569if test "${lt_cv_prog_gnu_ld+set}" = set; then
10946b02
AX
4570 $as_echo_n "(cached) " >&6
4571else
4572 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4573case `$LD -v 2>&1 </dev/null` in
4574*GNU* | *'with BFD'*)
4575 lt_cv_prog_gnu_ld=yes
4576 ;;
4577*)
4578 lt_cv_prog_gnu_ld=no
4579 ;;
4580esac
4581fi
ec06701b 4582{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10946b02
AX
4583$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4584with_gnu_ld=$lt_cv_prog_gnu_ld
4585
4586
4587
4588
4589
4590
4591
4592
4593
ec06701b 4594{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
10946b02 4595$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
ec06701b 4596if test "${lt_cv_path_NM+set}" = set; then
10946b02
AX
4597 $as_echo_n "(cached) " >&6
4598else
4599 if test -n "$NM"; then
4600 # Let the user override the test.
ec06701b 4601 lt_cv_path_NM="$NM"
10946b02 4602else
ec06701b 4603 lt_nm_to_check="${ac_tool_prefix}nm"
10946b02
AX
4604 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4605 lt_nm_to_check="$lt_nm_to_check nm"
4606 fi
4607 for lt_tmp_nm in $lt_nm_to_check; do
ec06701b 4608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10946b02 4609 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
ec06701b 4610 IFS="$lt_save_ifs"
10946b02 4611 test -z "$ac_dir" && ac_dir=.
ec06701b
AX
4612 tmp_nm="$ac_dir/$lt_tmp_nm"
4613 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10946b02 4614 # Check to see if the nm accepts a BSD-compat flag.
ec06701b 4615 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10946b02
AX
4616 # nm: unknown option "B" ignored
4617 # Tru64's nm complains that /dev/null is an invalid object file
ec06701b
AX
4618 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4619 */dev/null* | *'Invalid file or object type'*)
10946b02 4620 lt_cv_path_NM="$tmp_nm -B"
ec06701b 4621 break
10946b02
AX
4622 ;;
4623 *)
4624 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4625 */dev/null*)
4626 lt_cv_path_NM="$tmp_nm -p"
ec06701b 4627 break
10946b02
AX
4628 ;;
4629 *)
4630 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4631 continue # so that we can try to find one that supports BSD flags
4632 ;;
4633 esac
4634 ;;
4635 esac
4636 fi
4637 done
ec06701b 4638 IFS="$lt_save_ifs"
10946b02
AX
4639 done
4640 : ${lt_cv_path_NM=no}
4641fi
4642fi
ec06701b 4643{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10946b02 4644$as_echo "$lt_cv_path_NM" >&6; }
ec06701b
AX
4645if test "$lt_cv_path_NM" != "no"; then
4646 NM="$lt_cv_path_NM"
10946b02
AX
4647else
4648 # Didn't find any BSD compatible name lister, look for dumpbin.
ec06701b
AX
4649 if test -n "$ac_tool_prefix"; then
4650 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
10946b02
AX
4651 do
4652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec06701b 4654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 4655$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 4656if test "${ac_cv_prog_DUMPBIN+set}" = set; then
10946b02
AX
4657 $as_echo_n "(cached) " >&6
4658else
4659 if test -n "$DUMPBIN"; then
4660 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
ec06701b
AX
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 4669 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ec06701b 4670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
4671 break 2
4672 fi
4673done
ec06701b 4674done
10946b02
AX
4675IFS=$as_save_IFS
4676
4677fi
4678fi
4679DUMPBIN=$ac_cv_prog_DUMPBIN
4680if test -n "$DUMPBIN"; then
ec06701b 4681 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
10946b02
AX
4682$as_echo "$DUMPBIN" >&6; }
4683else
ec06701b 4684 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
4685$as_echo "no" >&6; }
4686fi
4687
4688
4689 test -n "$DUMPBIN" && break
4690 done
4691fi
4692if test -z "$DUMPBIN"; then
4693 ac_ct_DUMPBIN=$DUMPBIN
ec06701b 4694 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
10946b02
AX
4695do
4696 # Extract the first word of "$ac_prog", so it can be a program name with args.
4697set dummy $ac_prog; ac_word=$2
ec06701b 4698{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 4699$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 4700if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
10946b02
AX
4701 $as_echo_n "(cached) " >&6
4702else
4703 if test -n "$ac_ct_DUMPBIN"; then
4704 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4705else
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
ec06701b
AX
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 4713 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ec06701b 4714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
4715 break 2
4716 fi
4717done
ec06701b 4718done
10946b02
AX
4719IFS=$as_save_IFS
4720
4721fi
4722fi
4723ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4724if test -n "$ac_ct_DUMPBIN"; then
ec06701b 4725 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
10946b02
AX
4726$as_echo "$ac_ct_DUMPBIN" >&6; }
4727else
ec06701b 4728 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
4729$as_echo "no" >&6; }
4730fi
4731
4732
4733 test -n "$ac_ct_DUMPBIN" && break
4734done
4735
4736 if test "x$ac_ct_DUMPBIN" = x; then
4737 DUMPBIN=":"
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740yes:)
ec06701b 4741{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
4742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743ac_tool_warned=yes ;;
4744esac
4745 DUMPBIN=$ac_ct_DUMPBIN
4746 fi
4747fi
4748
10946b02 4749
ec06701b
AX
4750 if test "$DUMPBIN" != ":"; then
4751 NM="$DUMPBIN"
10946b02
AX
4752 fi
4753fi
4754test -z "$NM" && NM=nm
4755
4756
4757
4758
4759
4760
ec06701b 4761{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
10946b02 4762$as_echo_n "checking the name lister ($NM) interface... " >&6; }
ec06701b 4763if test "${lt_cv_nm_interface+set}" = set; then
10946b02
AX
4764 $as_echo_n "(cached) " >&6
4765else
4766 lt_cv_nm_interface="BSD nm"
4767 echo "int some_variable = 0;" > conftest.$ac_ext
ec06701b 4768 (eval echo "\"\$as_me:4768: $ac_compile\"" >&5)
10946b02
AX
4769 (eval "$ac_compile" 2>conftest.err)
4770 cat conftest.err >&5
ec06701b 4771 (eval echo "\"\$as_me:4771: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
10946b02
AX
4772 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4773 cat conftest.err >&5
ec06701b 4774 (eval echo "\"\$as_me:4774: output\"" >&5)
10946b02
AX
4775 cat conftest.out >&5
4776 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4777 lt_cv_nm_interface="MS dumpbin"
4778 fi
4779 rm -f conftest*
4780fi
ec06701b 4781{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
10946b02
AX
4782$as_echo "$lt_cv_nm_interface" >&6; }
4783
ec06701b 4784{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
10946b02
AX
4785$as_echo_n "checking whether ln -s works... " >&6; }
4786LN_S=$as_ln_s
4787if test "$LN_S" = "ln -s"; then
ec06701b 4788 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
4789$as_echo "yes" >&6; }
4790else
ec06701b 4791 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10946b02
AX
4792$as_echo "no, using $LN_S" >&6; }
4793fi
4794
4795# find the maximum length of command line arguments
ec06701b 4796{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10946b02 4797$as_echo_n "checking the maximum length of command line arguments... " >&6; }
ec06701b 4798if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10946b02
AX
4799 $as_echo_n "(cached) " >&6
4800else
4801 i=0
ec06701b 4802 teststring="ABCD"
10946b02
AX
4803
4804 case $build_os in
4805 msdosdjgpp*)
4806 # On DJGPP, this test can blow up pretty badly due to problems in libc
4807 # (any single argument exceeding 2000 bytes causes a buffer overrun
4808 # during glob expansion). Even if it were fixed, the result of this
4809 # check would be larger than it should be.
4810 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4811 ;;
4812
4813 gnu*)
4814 # Under GNU Hurd, this test is not required because there is
4815 # no limit to the length of command line arguments.
4816 # Libtool will interpret -1 as no limit whatsoever
4817 lt_cv_sys_max_cmd_len=-1;
4818 ;;
4819
4820 cygwin* | mingw* | cegcc*)
4821 # On Win9x/ME, this test blows up -- it succeeds, but takes
4822 # about 5 minutes as the teststring grows exponentially.
4823 # Worse, since 9x/ME are not pre-emptively multitasking,
4824 # you end up with a "frozen" computer, even though with patience
4825 # the test eventually succeeds (with a max line length of 256k).
4826 # Instead, let's just punt: use the minimum linelength reported by
4827 # all of the supported platforms: 8192 (on NT/2K/XP).
4828 lt_cv_sys_max_cmd_len=8192;
4829 ;;
4830
10946b02
AX
4831 amigaos*)
4832 # On AmigaOS with pdksh, this test takes hours, literally.
4833 # So we just punt and use a minimum line length of 8192.
4834 lt_cv_sys_max_cmd_len=8192;
4835 ;;
4836
ec06701b 4837 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10946b02
AX
4838 # This has been around since 386BSD, at least. Likely further.
4839 if test -x /sbin/sysctl; then
4840 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4841 elif test -x /usr/sbin/sysctl; then
4842 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4843 else
4844 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4845 fi
4846 # And add a safety zone
4847 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4849 ;;
4850
4851 interix*)
4852 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4853 lt_cv_sys_max_cmd_len=196608
4854 ;;
4855
10946b02
AX
4856 osf*)
4857 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4858 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4859 # nice to cause kernel panics so lets avoid the loop below.
4860 # First set a reasonable default.
4861 lt_cv_sys_max_cmd_len=16384
4862 #
4863 if test -x /sbin/sysconfig; then
4864 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4865 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4866 esac
4867 fi
4868 ;;
4869 sco3.2v5*)
4870 lt_cv_sys_max_cmd_len=102400
4871 ;;
4872 sysv5* | sco5v6* | sysv4.2uw2*)
4873 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4874 if test -n "$kargmax"; then
4875 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4876 else
4877 lt_cv_sys_max_cmd_len=32768
4878 fi
4879 ;;
4880 *)
4881 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
ec06701b 4882 if test -n "$lt_cv_sys_max_cmd_len"; then
10946b02
AX
4883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4885 else
4886 # Make teststring a little bigger before we do anything with it.
4887 # a 1K string should be a reasonable start.
ec06701b 4888 for i in 1 2 3 4 5 6 7 8 ; do
10946b02
AX
4889 teststring=$teststring$teststring
4890 done
4891 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4892 # If test is not a shell built-in, we'll probably end up computing a
4893 # maximum length that is only half of the actual maximum length, but
4894 # we can't tell.
ec06701b
AX
4895 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4896 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4897 test $i != 17 # 1/2 MB should be enough
10946b02
AX
4898 do
4899 i=`expr $i + 1`
4900 teststring=$teststring$teststring
4901 done
4902 # Only check the string length outside the loop.
4903 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4904 teststring=
4905 # Add a significant safety factor because C++ compilers can tack on
4906 # massive amounts of additional arguments before passing them to the
4907 # linker. It appears as though 1/2 is a usable value.
4908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4909 fi
4910 ;;
4911 esac
4912
4913fi
4914
ec06701b
AX
4915if test -n $lt_cv_sys_max_cmd_len ; then
4916 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10946b02
AX
4917$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4918else
ec06701b 4919 { $as_echo "$as_me:$LINENO: result: none" >&5
10946b02
AX
4920$as_echo "none" >&6; }
4921fi
4922max_cmd_len=$lt_cv_sys_max_cmd_len
4923
4924
4925
4926
4927
4928
4929: ${CP="cp -f"}
4930: ${MV="mv -f"}
4931: ${RM="rm -f"}
4932
ec06701b
AX
4933{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4934$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4935# Try some XSI features
4936xsi_shell=no
4937( _lt_dummy="a/b/c"
4938 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4939 = c,a/b,, \
4940 && eval 'test $(( 1 + 1 )) -eq 2 \
4941 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4942 && xsi_shell=yes
4943{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4944$as_echo "$xsi_shell" >&6; }
4945
4946
4947{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4948$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4949lt_shell_append=no
4950( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4951 >/dev/null 2>&1 \
4952 && lt_shell_append=yes
4953{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4954$as_echo "$lt_shell_append" >&6; }
4955
4956
10946b02
AX
4957if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4958 lt_unset=unset
4959else
4960 lt_unset=false
4961fi
4962
4963
4964
4965
4966
4967# test EBCDIC or ASCII
4968case `echo X|tr X '\101'` in
4969 A) # ASCII based system
4970 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4971 lt_SP2NL='tr \040 \012'
4972 lt_NL2SP='tr \015\012 \040\040'
4973 ;;
4974 *) # EBCDIC based system
4975 lt_SP2NL='tr \100 \n'
4976 lt_NL2SP='tr \r\n \100\100'
4977 ;;
4978esac
4979
4980
4981
4982
4983
4984
4985
4986
4987
ec06701b 4988{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10946b02 4989$as_echo_n "checking for $LD option to reload object files... " >&6; }
ec06701b 4990if test "${lt_cv_ld_reload_flag+set}" = set; then
10946b02
AX
4991 $as_echo_n "(cached) " >&6
4992else
4993 lt_cv_ld_reload_flag='-r'
4994fi
ec06701b 4995{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10946b02
AX
4996$as_echo "$lt_cv_ld_reload_flag" >&6; }
4997reload_flag=$lt_cv_ld_reload_flag
4998case $reload_flag in
4999"" | " "*) ;;
5000*) reload_flag=" $reload_flag" ;;
5001esac
5002reload_cmds='$LD$reload_flag -o $output$reload_objs'
5003case $host_os in
10946b02 5004 darwin*)
ec06701b
AX
5005 if test "$GCC" = yes; then
5006 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10946b02
AX
5007 else
5008 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5009 fi
5010 ;;
5011esac
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5023set dummy ${ac_tool_prefix}objdump; ac_word=$2
ec06701b 5024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5025$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 5026if test "${ac_cv_prog_OBJDUMP+set}" = set; then
10946b02
AX
5027 $as_echo_n "(cached) " >&6
5028else
5029 if test -n "$OBJDUMP"; then
5030 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5031else
5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
ec06701b
AX
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5039 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
ec06701b 5040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5041 break 2
5042 fi
5043done
ec06701b 5044done
10946b02
AX
5045IFS=$as_save_IFS
5046
5047fi
5048fi
5049OBJDUMP=$ac_cv_prog_OBJDUMP
5050if test -n "$OBJDUMP"; then
ec06701b 5051 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
10946b02
AX
5052$as_echo "$OBJDUMP" >&6; }
5053else
ec06701b 5054 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5055$as_echo "no" >&6; }
5056fi
5057
5058
5059fi
5060if test -z "$ac_cv_prog_OBJDUMP"; then
5061 ac_ct_OBJDUMP=$OBJDUMP
5062 # Extract the first word of "objdump", so it can be a program name with args.
5063set dummy objdump; ac_word=$2
ec06701b 5064{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5065$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 5066if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
10946b02
AX
5067 $as_echo_n "(cached) " >&6
5068else
5069 if test -n "$ac_ct_OBJDUMP"; then
5070 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
ec06701b
AX
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5079 ac_cv_prog_ac_ct_OBJDUMP="objdump"
ec06701b 5080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5081 break 2
5082 fi
5083done
ec06701b 5084done
10946b02
AX
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5090if test -n "$ac_ct_OBJDUMP"; then
ec06701b 5091 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
10946b02
AX
5092$as_echo "$ac_ct_OBJDUMP" >&6; }
5093else
ec06701b 5094 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5095$as_echo "no" >&6; }
5096fi
5097
5098 if test "x$ac_ct_OBJDUMP" = x; then
5099 OBJDUMP="false"
5100 else
5101 case $cross_compiling:$ac_tool_warned in
5102yes:)
ec06701b 5103{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
5104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105ac_tool_warned=yes ;;
5106esac
5107 OBJDUMP=$ac_ct_OBJDUMP
5108 fi
5109else
5110 OBJDUMP="$ac_cv_prog_OBJDUMP"
5111fi
5112
5113test -z "$OBJDUMP" && OBJDUMP=objdump
5114
5115
5116
5117
5118
5119
5120
5121
5122
ec06701b 5123{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
10946b02 5124$as_echo_n "checking how to recognize dependent libraries... " >&6; }
ec06701b 5125if test "${lt_cv_deplibs_check_method+set}" = set; then
10946b02
AX
5126 $as_echo_n "(cached) " >&6
5127else
5128 lt_cv_file_magic_cmd='$MAGIC_CMD'
5129lt_cv_file_magic_test_file=
5130lt_cv_deplibs_check_method='unknown'
5131# Need to set the preceding variable on all platforms that support
5132# interlibrary dependencies.
5133# 'none' -- dependencies not supported.
ec06701b 5134# `unknown' -- same as none, but documents that we really don't know.
10946b02
AX
5135# 'pass_all' -- all dependencies passed with no checks.
5136# 'test_compile' -- check by making test program.
5137# 'file_magic [[regex]]' -- check by looking for files in library path
ec06701b
AX
5138# which responds to the $file_magic_cmd with a given extended regex.
5139# If you have `file' or equivalent on your system and you're not sure
5140# whether `pass_all' will *always* work, you probably want this one.
10946b02
AX
5141
5142case $host_os in
5143aix[4-9]*)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146
5147beos*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
5151bsdi[45]*)
5152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5153 lt_cv_file_magic_cmd='/usr/bin/file -L'
5154 lt_cv_file_magic_test_file=/shlib/libc.so
5155 ;;
5156
5157cygwin*)
5158 # func_win32_libid is a shell function defined in ltmain.sh
5159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5160 lt_cv_file_magic_cmd='func_win32_libid'
5161 ;;
5162
5163mingw* | pw32*)
5164 # Base MSYS/MinGW do not provide the 'file' command needed by
5165 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5166 # unless we find 'file', for example because we are cross-compiling.
ac9cc135 5167 if ( file / ) >/dev/null 2>&1; then
10946b02
AX
5168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5169 lt_cv_file_magic_cmd='func_win32_libid'
5170 else
ec06701b 5171 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10946b02
AX
5172 lt_cv_file_magic_cmd='$OBJDUMP -f'
5173 fi
5174 ;;
5175
ec06701b 5176cegcc)
10946b02
AX
5177 # use the weaker test based on 'objdump'. See mingw*.
5178 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5179 lt_cv_file_magic_cmd='$OBJDUMP -f'
5180 ;;
5181
5182darwin* | rhapsody*)
5183 lt_cv_deplibs_check_method=pass_all
5184 ;;
5185
5186freebsd* | dragonfly*)
5187 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5188 case $host_cpu in
5189 i*86 )
5190 # Not sure whether the presence of OpenBSD here was a mistake.
5191 # Let's accept both of them until this is cleared up.
5192 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5193 lt_cv_file_magic_cmd=/usr/bin/file
5194 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5195 ;;
5196 esac
5197 else
5198 lt_cv_deplibs_check_method=pass_all
5199 fi
5200 ;;
5201
ec06701b 5202gnu*)
10946b02
AX
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
5205
5206hpux10.20* | hpux11*)
5207 lt_cv_file_magic_cmd=/usr/bin/file
5208 case $host_cpu in
5209 ia64*)
5210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5211 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5212 ;;
5213 hppa*64*)
ec06701b 5214 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]'
10946b02
AX
5215 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5216 ;;
5217 *)
ec06701b 5218 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10946b02
AX
5219 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5220 ;;
5221 esac
5222 ;;
5223
5224interix[3-9]*)
5225 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5227 ;;
5228
5229irix5* | irix6* | nonstopux*)
5230 case $LD in
5231 *-32|*"-32 ") libmagic=32-bit;;
5232 *-n32|*"-n32 ") libmagic=N32;;
5233 *-64|*"-64 ") libmagic=64-bit;;
5234 *) libmagic=never-match;;
5235 esac
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
5238
ec06701b
AX
5239# This must be Linux ELF.
5240linux* | k*bsd*-gnu)
10946b02
AX
5241 lt_cv_deplibs_check_method=pass_all
5242 ;;
5243
2ea56c1d 5244netbsd*)
10946b02
AX
5245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5247 else
5248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5249 fi
5250 ;;
5251
5252newos6*)
5253 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5254 lt_cv_file_magic_cmd=/usr/bin/file
5255 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5256 ;;
5257
5258*nto* | *qnx*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
ec06701b
AX
5262openbsd*)
5263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946b02
AX
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5265 else
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5267 fi
5268 ;;
5269
5270osf3* | osf4* | osf5*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274rdos*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278solaris*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
5281
5282sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286sysv4 | sysv4.3*)
5287 case $host_vendor in
5288 motorola)
5289 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]'
5290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5291 ;;
5292 ncr)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
5295 sequent)
5296 lt_cv_file_magic_cmd='/bin/file'
5297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5298 ;;
5299 sni)
5300 lt_cv_file_magic_cmd='/bin/file'
5301 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5302 lt_cv_file_magic_test_file=/lib/libc.so
5303 ;;
5304 siemens)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307 pc)
5308 lt_cv_deplibs_check_method=pass_all
5309 ;;
5310 esac
5311 ;;
5312
5313tpf*)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316esac
5317
5318fi
ec06701b 5319{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10946b02 5320$as_echo "$lt_cv_deplibs_check_method" >&6; }
10946b02
AX
5321file_magic_cmd=$lt_cv_file_magic_cmd
5322deplibs_check_method=$lt_cv_deplibs_check_method
5323test -z "$deplibs_check_method" && deplibs_check_method=unknown
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
10946b02 5336if test -n "$ac_tool_prefix"; then
ec06701b
AX
5337 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5338set dummy ${ac_tool_prefix}ar; ac_word=$2
5339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5340$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 5341if test "${ac_cv_prog_AR+set}" = set; then
10946b02
AX
5342 $as_echo_n "(cached) " >&6
5343else
5344 if test -n "$AR"; then
5345 ac_cv_prog_AR="$AR" # Let the user override the test.
5346else
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
ec06701b
AX
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_AR="${ac_tool_prefix}ar"
5355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5356 break 2
5357 fi
5358done
ec06701b 5359done
10946b02
AX
5360IFS=$as_save_IFS
5361
5362fi
5363fi
5364AR=$ac_cv_prog_AR
5365if test -n "$AR"; then
ec06701b 5366 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10946b02
AX
5367$as_echo "$AR" >&6; }
5368else
ec06701b 5369 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5370$as_echo "no" >&6; }
5371fi
5372
5373
10946b02 5374fi
ec06701b 5375if test -z "$ac_cv_prog_AR"; then
10946b02 5376 ac_ct_AR=$AR
ec06701b
AX
5377 # Extract the first word of "ar", so it can be a program name with args.
5378set dummy ar; ac_word=$2
5379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5380$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 5381if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10946b02
AX
5382 $as_echo_n "(cached) " >&6
5383else
5384 if test -n "$ac_ct_AR"; then
5385 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
ec06701b
AX
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_prog_ac_ct_AR="ar"
5395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5396 break 2
5397 fi
5398done
ec06701b 5399done
10946b02
AX
5400IFS=$as_save_IFS
5401
5402fi
5403fi
5404ac_ct_AR=$ac_cv_prog_ac_ct_AR
5405if test -n "$ac_ct_AR"; then
ec06701b 5406 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10946b02
AX
5407$as_echo "$ac_ct_AR" >&6; }
5408else
ec06701b 5409 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5410$as_echo "no" >&6; }
5411fi
5412
10946b02
AX
5413 if test "x$ac_ct_AR" = x; then
5414 AR="false"
5415 else
5416 case $cross_compiling:$ac_tool_warned in
5417yes:)
ec06701b 5418{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
5419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420ac_tool_warned=yes ;;
5421esac
5422 AR=$ac_ct_AR
5423 fi
10946b02 5424else
ec06701b
AX
5425 AR="$ac_cv_prog_AR"
5426fi
10946b02 5427
ec06701b
AX
5428test -z "$AR" && AR=ar
5429test -z "$AR_FLAGS" && AR_FLAGS=cru
10946b02 5430
10946b02 5431
10946b02 5432
10946b02 5433
10946b02
AX
5434
5435
5436
5437
5438
5439
5440
5441if test -n "$ac_tool_prefix"; then
5442 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5443set dummy ${ac_tool_prefix}strip; ac_word=$2
ec06701b 5444{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5445$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 5446if test "${ac_cv_prog_STRIP+set}" = set; then
10946b02
AX
5447 $as_echo_n "(cached) " >&6
5448else
5449 if test -n "$STRIP"; then
5450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
ec06701b
AX
5457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5459 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
ec06701b 5460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5461 break 2
5462 fi
5463done
ec06701b 5464done
10946b02
AX
5465IFS=$as_save_IFS
5466
5467fi
5468fi
5469STRIP=$ac_cv_prog_STRIP
5470if test -n "$STRIP"; then
ec06701b 5471 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10946b02
AX
5472$as_echo "$STRIP" >&6; }
5473else
ec06701b 5474 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5475$as_echo "no" >&6; }
5476fi
5477
5478
5479fi
5480if test -z "$ac_cv_prog_STRIP"; then
5481 ac_ct_STRIP=$STRIP
5482 # Extract the first word of "strip", so it can be a program name with args.
5483set dummy strip; ac_word=$2
ec06701b 5484{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5485$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 5486if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10946b02
AX
5487 $as_echo_n "(cached) " >&6
5488else
5489 if test -n "$ac_ct_STRIP"; then
5490 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5491else
5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
ec06701b
AX
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5499 ac_cv_prog_ac_ct_STRIP="strip"
ec06701b 5500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5501 break 2
5502 fi
5503done
ec06701b 5504done
10946b02
AX
5505IFS=$as_save_IFS
5506
5507fi
5508fi
5509ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5510if test -n "$ac_ct_STRIP"; then
ec06701b 5511 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10946b02
AX
5512$as_echo "$ac_ct_STRIP" >&6; }
5513else
ec06701b 5514 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5515$as_echo "no" >&6; }
5516fi
5517
5518 if test "x$ac_ct_STRIP" = x; then
5519 STRIP=":"
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522yes:)
ec06701b 5523{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
5524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5525ac_tool_warned=yes ;;
5526esac
5527 STRIP=$ac_ct_STRIP
5528 fi
5529else
5530 STRIP="$ac_cv_prog_STRIP"
5531fi
5532
5533test -z "$STRIP" && STRIP=:
5534
5535
5536
5537
5538
5539
5540if test -n "$ac_tool_prefix"; then
5541 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5542set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec06701b 5543{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5544$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 5545if test "${ac_cv_prog_RANLIB+set}" = set; then
10946b02
AX
5546 $as_echo_n "(cached) " >&6
5547else
5548 if test -n "$RANLIB"; then
5549 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5550else
5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
ec06701b
AX
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5558 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec06701b 5559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5560 break 2
5561 fi
5562done
ec06701b 5563done
10946b02
AX
5564IFS=$as_save_IFS
5565
5566fi
5567fi
5568RANLIB=$ac_cv_prog_RANLIB
5569if test -n "$RANLIB"; then
ec06701b 5570 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
10946b02
AX
5571$as_echo "$RANLIB" >&6; }
5572else
ec06701b 5573 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5574$as_echo "no" >&6; }
5575fi
5576
5577
5578fi
5579if test -z "$ac_cv_prog_RANLIB"; then
5580 ac_ct_RANLIB=$RANLIB
5581 # Extract the first word of "ranlib", so it can be a program name with args.
5582set dummy ranlib; ac_word=$2
ec06701b 5583{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 5584$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 5585if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10946b02
AX
5586 $as_echo_n "(cached) " >&6
5587else
5588 if test -n "$ac_ct_RANLIB"; then
5589 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5590else
5591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592for as_dir in $PATH
5593do
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
ec06701b
AX
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 5598 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec06701b 5599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
5600 break 2
5601 fi
5602done
ec06701b 5603done
10946b02
AX
5604IFS=$as_save_IFS
5605
5606fi
5607fi
5608ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5609if test -n "$ac_ct_RANLIB"; then
ec06701b 5610 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10946b02
AX
5611$as_echo "$ac_ct_RANLIB" >&6; }
5612else
ec06701b 5613 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
5614$as_echo "no" >&6; }
5615fi
5616
5617 if test "x$ac_ct_RANLIB" = x; then
5618 RANLIB=":"
5619 else
5620 case $cross_compiling:$ac_tool_warned in
5621yes:)
ec06701b 5622{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
5623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624ac_tool_warned=yes ;;
5625esac
5626 RANLIB=$ac_ct_RANLIB
5627 fi
5628else
5629 RANLIB="$ac_cv_prog_RANLIB"
5630fi
5631
5632test -z "$RANLIB" && RANLIB=:
5633
5634
5635
5636
5637
5638
5639# Determine commands to create old-style static archives.
5640old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5641old_postinstall_cmds='chmod 644 $oldlib'
5642old_postuninstall_cmds=
5643
5644if test -n "$RANLIB"; then
5645 case $host_os in
ec06701b
AX
5646 openbsd*)
5647 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10946b02
AX
5648 ;;
5649 *)
ec06701b 5650 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10946b02
AX
5651 ;;
5652 esac
ec06701b 5653 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10946b02
AX
5654fi
5655
10946b02
AX
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689# If no C compiler was specified, use CC.
5690LTCC=${LTCC-"$CC"}
5691
5692# If no C compiler flags were specified, use CFLAGS.
5693LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5694
5695# Allow CC to be a program name with arguments.
5696compiler=$CC
5697
5698
5699# Check for command to grab the raw symbol name followed by C symbol from nm.
ec06701b 5700{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10946b02 5701$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
ec06701b 5702if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10946b02
AX
5703 $as_echo_n "(cached) " >&6
5704else
5705
5706# These are sane defaults that work on at least a few old systems.
5707# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5708
5709# Character class describing NM global symbol codes.
5710symcode='[BCDEGRST]'
5711
5712# Regexp to match symbols that can be accessed directly from C.
5713sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5714
5715# Define system-specific variables.
5716case $host_os in
5717aix*)
5718 symcode='[BCDT]'
5719 ;;
5720cygwin* | mingw* | pw32* | cegcc*)
5721 symcode='[ABCDGISTW]'
5722 ;;
5723hpux*)
ec06701b 5724 if test "$host_cpu" = ia64; then
10946b02
AX
5725 symcode='[ABCDEGRST]'
5726 fi
5727 ;;
5728irix* | nonstopux*)
5729 symcode='[BCDEGRST]'
5730 ;;
5731osf*)
5732 symcode='[BCDEGQRST]'
5733 ;;
5734solaris*)
5735 symcode='[BDRT]'
5736 ;;
5737sco3.2v5*)
5738 symcode='[DT]'
5739 ;;
5740sysv4.2uw2*)
5741 symcode='[DT]'
5742 ;;
5743sysv5* | sco5v6* | unixware* | OpenUNIX*)
5744 symcode='[ABDT]'
5745 ;;
5746sysv4)
5747 symcode='[DFNSTU]'
5748 ;;
5749esac
5750
5751# If we're using GNU nm, then use its standard symbol codes.
5752case `$NM -V 2>&1` in
5753*GNU* | *'with BFD'*)
5754 symcode='[ABCDGIRSTW]' ;;
5755esac
5756
5757# Transform an extracted symbol line into a proper C declaration.
5758# Some systems (esp. on ia64) link data and code symbols differently,
5759# so use this general approach.
ec06701b 5760lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10946b02
AX
5761
5762# Transform an extracted symbol line into symbol name and symbol address
ec06701b
AX
5763lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5764lt_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'"
10946b02
AX
5765
5766# Handle CRLF in mingw tool chain
5767opt_cr=
5768case $build_os in
5769mingw*)
5770 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5771 ;;
5772esac
5773
5774# Try without a prefix underscore, then with it.
5775for ac_symprfx in "" "_"; do
5776
5777 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5778 symxfrm="\\1 $ac_symprfx\\2 \\2"
5779
5780 # Write the raw and C identifiers.
5781 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
ec06701b
AX
5782 # Fake it for dumpbin and say T for any non-static function
5783 # and D for any global variable.
10946b02
AX
5784 # Also find C++ and __fastcall symbols from MSVC++,
5785 # which start with @ or ?.
5786 lt_cv_sys_global_symbol_pipe="$AWK '"\
5787" {last_section=section; section=\$ 3};"\
10946b02
AX
5788" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5789" \$ 0!~/External *\|/{next};"\
5790" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5791" {if(hide[section]) next};"\
ec06701b
AX
5792" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5793" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5794" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5795" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10946b02
AX
5796" ' prfx=^$ac_symprfx"
5797 else
5798 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5799 fi
10946b02
AX
5800
5801 # Check to see that the pipe works correctly.
5802 pipe_works=no
5803
5804 rm -f conftest*
5805 cat > conftest.$ac_ext <<_LT_EOF
5806#ifdef __cplusplus
5807extern "C" {
5808#endif
5809char nm_test_var;
5810void nm_test_func(void);
5811void nm_test_func(void){}
5812#ifdef __cplusplus
5813}
5814#endif
5815int main(){nm_test_var='a';nm_test_func();return(0);}
5816_LT_EOF
5817
ec06701b 5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
5819 (eval $ac_compile) 2>&5
5820 ac_status=$?
ec06701b
AX
5821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; then
10946b02
AX
5823 # Now try to grab the symbols.
5824 nlist=conftest.nm
ec06701b
AX
5825 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5826 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10946b02 5827 ac_status=$?
ec06701b
AX
5828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && test -s "$nlist"; then
10946b02
AX
5830 # Try sorting and uniquifying the output.
5831 if sort "$nlist" | uniq > "$nlist"T; then
5832 mv -f "$nlist"T "$nlist"
5833 else
5834 rm -f "$nlist"T
5835 fi
5836
5837 # Make sure that we snagged all the symbols we need.
5838 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5839 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5840 cat <<_LT_EOF > conftest.$ac_ext
10946b02
AX
5841#ifdef __cplusplus
5842extern "C" {
5843#endif
5844
5845_LT_EOF
5846 # Now generate the symbol file.
5847 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5848
5849 cat <<_LT_EOF >> conftest.$ac_ext
5850
5851/* The mapping between symbol names and symbols. */
ec06701b 5852const struct {
10946b02
AX
5853 const char *name;
5854 void *address;
5855}
5856lt__PROGRAM__LTX_preloaded_symbols[] =
5857{
5858 { "@PROGRAM@", (void *) 0 },
5859_LT_EOF
ec06701b 5860 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10946b02
AX
5861 cat <<\_LT_EOF >> conftest.$ac_ext
5862 {0, (void *) 0}
5863};
5864
5865/* This works around a problem in FreeBSD linker */
5866#ifdef FREEBSD_WORKAROUND
5867static const void *lt_preloaded_setup() {
5868 return lt__PROGRAM__LTX_preloaded_symbols;
5869}
5870#endif
5871
5872#ifdef __cplusplus
5873}
5874#endif
5875_LT_EOF
5876 # Now try linking the two files.
5877 mv conftest.$ac_objext conftstm.$ac_objext
ec06701b
AX
5878 lt_save_LIBS="$LIBS"
5879 lt_save_CFLAGS="$CFLAGS"
5880 LIBS="conftstm.$ac_objext"
10946b02 5881 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
ec06701b 5882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946b02
AX
5883 (eval $ac_link) 2>&5
5884 ac_status=$?
ec06701b
AX
5885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10946b02
AX
5887 pipe_works=yes
5888 fi
ec06701b
AX
5889 LIBS="$lt_save_LIBS"
5890 CFLAGS="$lt_save_CFLAGS"
10946b02
AX
5891 else
5892 echo "cannot find nm_test_func in $nlist" >&5
5893 fi
5894 else
5895 echo "cannot find nm_test_var in $nlist" >&5
5896 fi
5897 else
5898 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5899 fi
5900 else
5901 echo "$progname: failed program was:" >&5
5902 cat conftest.$ac_ext >&5
5903 fi
5904 rm -rf conftest* conftst*
5905
5906 # Do not use the global_symbol_pipe unless it works.
ec06701b 5907 if test "$pipe_works" = yes; then
10946b02
AX
5908 break
5909 else
5910 lt_cv_sys_global_symbol_pipe=
5911 fi
5912done
5913
5914fi
5915
5916if test -z "$lt_cv_sys_global_symbol_pipe"; then
5917 lt_cv_sys_global_symbol_to_cdecl=
5918fi
5919if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
ec06701b 5920 { $as_echo "$as_me:$LINENO: result: failed" >&5
10946b02
AX
5921$as_echo "failed" >&6; }
5922else
ec06701b 5923 { $as_echo "$as_me:$LINENO: result: ok" >&5
10946b02
AX
5924$as_echo "ok" >&6; }
5925fi
ac9cc135
AX
5926
5927
5928
5929
10946b02
AX
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
ac9cc135
AX
5941
5942
5943
5944
5945
5946
5947
ac9cc135 5948
10946b02 5949# Check whether --enable-libtool-lock was given.
ec06701b 5950if test "${enable_libtool_lock+set}" = set; then
10946b02
AX
5951 enableval=$enable_libtool_lock;
5952fi
5953
ec06701b 5954test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10946b02
AX
5955
5956# Some flags need to be propagated to the compiler or linker for good
5957# libtool support.
5958case $host in
5959ia64-*-hpux*)
ec06701b 5960 # Find out which ABI we are using.
10946b02 5961 echo 'int i;' > conftest.$ac_ext
ec06701b 5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
5963 (eval $ac_compile) 2>&5
5964 ac_status=$?
ec06701b
AX
5965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); }; then
10946b02
AX
5967 case `/usr/bin/file conftest.$ac_objext` in
5968 *ELF-32*)
ec06701b 5969 HPUX_IA64_MODE="32"
10946b02
AX
5970 ;;
5971 *ELF-64*)
ec06701b 5972 HPUX_IA64_MODE="64"
10946b02
AX
5973 ;;
5974 esac
5975 fi
5976 rm -rf conftest*
5977 ;;
5978*-*-irix6*)
ec06701b
AX
5979 # Find out which ABI we are using.
5980 echo '#line 5980 "configure"' > conftest.$ac_ext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
5982 (eval $ac_compile) 2>&5
5983 ac_status=$?
ec06701b
AX
5984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; then
5986 if test "$lt_cv_prog_gnu_ld" = yes; then
10946b02
AX
5987 case `/usr/bin/file conftest.$ac_objext` in
5988 *32-bit*)
5989 LD="${LD-ld} -melf32bsmip"
5990 ;;
5991 *N32*)
5992 LD="${LD-ld} -melf32bmipn32"
5993 ;;
5994 *64-bit*)
5995 LD="${LD-ld} -melf64bmip"
5996 ;;
5997 esac
5998 else
5999 case `/usr/bin/file conftest.$ac_objext` in
6000 *32-bit*)
6001 LD="${LD-ld} -32"
6002 ;;
6003 *N32*)
6004 LD="${LD-ld} -n32"
6005 ;;
6006 *64-bit*)
6007 LD="${LD-ld} -64"
6008 ;;
6009 esac
6010 fi
6011 fi
6012 rm -rf conftest*
6013 ;;
6014
ec06701b 6015x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10946b02 6016s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
ec06701b 6017 # Find out which ABI we are using.
10946b02 6018 echo 'int i;' > conftest.$ac_ext
ec06701b 6019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
6020 (eval $ac_compile) 2>&5
6021 ac_status=$?
ec06701b
AX
6022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; then
10946b02
AX
6024 case `/usr/bin/file conftest.o` in
6025 *32-bit*)
6026 case $host in
6027 x86_64-*kfreebsd*-gnu)
6028 LD="${LD-ld} -m elf_i386_fbsd"
6029 ;;
6030 x86_64-*linux*)
ec06701b 6031 LD="${LD-ld} -m elf_i386"
ac9cc135 6032 ;;
ec06701b 6033 ppc64-*linux*|powerpc64-*linux*)
10946b02
AX
6034 LD="${LD-ld} -m elf32ppclinux"
6035 ;;
6036 s390x-*linux*)
6037 LD="${LD-ld} -m elf_s390"
6038 ;;
6039 sparc64-*linux*)
6040 LD="${LD-ld} -m elf32_sparc"
6041 ;;
6042 esac
6043 ;;
6044 *64-bit*)
6045 case $host in
6046 x86_64-*kfreebsd*-gnu)
6047 LD="${LD-ld} -m elf_x86_64_fbsd"
6048 ;;
6049 x86_64-*linux*)
6050 LD="${LD-ld} -m elf_x86_64"
6051 ;;
ec06701b 6052 ppc*-*linux*|powerpc*-*linux*)
10946b02
AX
6053 LD="${LD-ld} -m elf64ppc"
6054 ;;
6055 s390*-*linux*|s390*-*tpf*)
6056 LD="${LD-ld} -m elf64_s390"
6057 ;;
6058 sparc*-*linux*)
6059 LD="${LD-ld} -m elf64_sparc"
6060 ;;
6061 esac
6062 ;;
6063 esac
6064 fi
6065 rm -rf conftest*
6066 ;;
6067
6068*-*-sco3.2v5*)
6069 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
ec06701b 6070 SAVE_CFLAGS="$CFLAGS"
10946b02 6071 CFLAGS="$CFLAGS -belf"
ec06701b 6072 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10946b02 6073$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
ec06701b 6074if test "${lt_cv_cc_needs_belf+set}" = set; then
10946b02
AX
6075 $as_echo_n "(cached) " >&6
6076else
6077 ac_ext=c
6078ac_cpp='$CPP $CPPFLAGS'
6079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082
ec06701b
AX
6083 cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6088/* end confdefs.h. */
6089
6090int
6091main ()
6092{
6093
6094 ;
6095 return 0;
6096}
6097_ACEOF
ec06701b
AX
6098rm -f conftest.$ac_objext conftest$ac_exeext
6099if { (ac_try="$ac_link"
6100case "(($ac_try" in
6101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6103esac
6104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6105$as_echo "$ac_try_echo") >&5
6106 (eval "$ac_link") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest$ac_exeext && {
6116 test "$cross_compiling" = yes ||
6117 $as_test_x conftest$ac_exeext
6118 }; then
10946b02
AX
6119 lt_cv_cc_needs_belf=yes
6120else
ec06701b
AX
6121 $as_echo "$as_me: failed program was:" >&5
6122sed 's/^/| /' conftest.$ac_ext >&5
6123
6124 lt_cv_cc_needs_belf=no
10946b02 6125fi
ec06701b
AX
6126
6127rm -rf conftest.dSYM
6128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6129 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
6130 ac_ext=c
6131ac_cpp='$CPP $CPPFLAGS'
6132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6134ac_compiler_gnu=$ac_cv_c_compiler_gnu
6135
6136fi
ec06701b 6137{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10946b02 6138$as_echo "$lt_cv_cc_needs_belf" >&6; }
ec06701b 6139 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10946b02 6140 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
ec06701b 6141 CFLAGS="$SAVE_CFLAGS"
10946b02
AX
6142 fi
6143 ;;
ec06701b
AX
6144sparc*-*solaris*)
6145 # Find out which ABI we are using.
10946b02 6146 echo 'int i;' > conftest.$ac_ext
ec06701b 6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
6148 (eval $ac_compile) 2>&5
6149 ac_status=$?
ec06701b
AX
6150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; then
10946b02
AX
6152 case `/usr/bin/file conftest.o` in
6153 *64-bit*)
6154 case $lt_cv_prog_gnu_ld in
ec06701b 6155 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10946b02
AX
6156 *)
6157 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6158 LD="${LD-ld} -64"
6159 fi
6160 ;;
6161 esac
6162 ;;
6163 esac
6164 fi
6165 rm -rf conftest*
6166 ;;
6167esac
6168
ec06701b 6169need_locks="$enable_libtool_lock"
10946b02
AX
6170
6171
6172 case $host_os in
6173 rhapsody* | darwin*)
6174 if test -n "$ac_tool_prefix"; then
6175 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6176set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
ec06701b 6177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6178$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6179if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10946b02
AX
6180 $as_echo_n "(cached) " >&6
6181else
6182 if test -n "$DSYMUTIL"; then
6183 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6184else
6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186for as_dir in $PATH
6187do
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
ec06701b
AX
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6192 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
ec06701b 6193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6194 break 2
6195 fi
6196done
ec06701b 6197done
10946b02
AX
6198IFS=$as_save_IFS
6199
6200fi
6201fi
6202DSYMUTIL=$ac_cv_prog_DSYMUTIL
6203if test -n "$DSYMUTIL"; then
ec06701b 6204 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10946b02
AX
6205$as_echo "$DSYMUTIL" >&6; }
6206else
ec06701b 6207 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6208$as_echo "no" >&6; }
6209fi
6210
6211
6212fi
6213if test -z "$ac_cv_prog_DSYMUTIL"; then
6214 ac_ct_DSYMUTIL=$DSYMUTIL
6215 # Extract the first word of "dsymutil", so it can be a program name with args.
6216set dummy dsymutil; ac_word=$2
ec06701b 6217{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6218$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6219if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10946b02
AX
6220 $as_echo_n "(cached) " >&6
6221else
6222 if test -n "$ac_ct_DSYMUTIL"; then
6223 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6224else
6225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226for as_dir in $PATH
6227do
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
ec06701b
AX
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6232 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
ec06701b 6233 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6234 break 2
6235 fi
6236done
ec06701b 6237done
10946b02
AX
6238IFS=$as_save_IFS
6239
6240fi
6241fi
6242ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6243if test -n "$ac_ct_DSYMUTIL"; then
ec06701b 6244 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10946b02
AX
6245$as_echo "$ac_ct_DSYMUTIL" >&6; }
6246else
ec06701b 6247 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6248$as_echo "no" >&6; }
6249fi
6250
6251 if test "x$ac_ct_DSYMUTIL" = x; then
6252 DSYMUTIL=":"
6253 else
6254 case $cross_compiling:$ac_tool_warned in
6255yes:)
ec06701b 6256{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258ac_tool_warned=yes ;;
6259esac
6260 DSYMUTIL=$ac_ct_DSYMUTIL
6261 fi
6262else
6263 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6264fi
6265
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6268set dummy ${ac_tool_prefix}nmedit; ac_word=$2
ec06701b 6269{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6270$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6271if test "${ac_cv_prog_NMEDIT+set}" = set; then
10946b02
AX
6272 $as_echo_n "(cached) " >&6
6273else
6274 if test -n "$NMEDIT"; then
6275 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
ec06701b
AX
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6284 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
ec06701b 6285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6286 break 2
6287 fi
6288done
ec06701b 6289done
10946b02
AX
6290IFS=$as_save_IFS
6291
6292fi
6293fi
6294NMEDIT=$ac_cv_prog_NMEDIT
6295if test -n "$NMEDIT"; then
ec06701b 6296 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10946b02
AX
6297$as_echo "$NMEDIT" >&6; }
6298else
ec06701b 6299 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6300$as_echo "no" >&6; }
6301fi
6302
6303
6304fi
6305if test -z "$ac_cv_prog_NMEDIT"; then
6306 ac_ct_NMEDIT=$NMEDIT
6307 # Extract the first word of "nmedit", so it can be a program name with args.
6308set dummy nmedit; ac_word=$2
ec06701b 6309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6310$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6311if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10946b02
AX
6312 $as_echo_n "(cached) " >&6
6313else
6314 if test -n "$ac_ct_NMEDIT"; then
6315 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
ec06701b
AX
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6324 ac_cv_prog_ac_ct_NMEDIT="nmedit"
ec06701b 6325 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6326 break 2
6327 fi
6328done
ec06701b 6329done
10946b02
AX
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6335if test -n "$ac_ct_NMEDIT"; then
ec06701b 6336 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10946b02
AX
6337$as_echo "$ac_ct_NMEDIT" >&6; }
6338else
ec06701b 6339 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6340$as_echo "no" >&6; }
6341fi
6342
6343 if test "x$ac_ct_NMEDIT" = x; then
6344 NMEDIT=":"
6345 else
6346 case $cross_compiling:$ac_tool_warned in
6347yes:)
ec06701b 6348{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350ac_tool_warned=yes ;;
6351esac
6352 NMEDIT=$ac_ct_NMEDIT
6353 fi
6354else
6355 NMEDIT="$ac_cv_prog_NMEDIT"
6356fi
6357
6358 if test -n "$ac_tool_prefix"; then
6359 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6360set dummy ${ac_tool_prefix}lipo; ac_word=$2
ec06701b 6361{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6362$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6363if test "${ac_cv_prog_LIPO+set}" = set; then
10946b02
AX
6364 $as_echo_n "(cached) " >&6
6365else
6366 if test -n "$LIPO"; then
6367 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6368else
6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370for as_dir in $PATH
6371do
6372 IFS=$as_save_IFS
6373 test -z "$as_dir" && as_dir=.
ec06701b
AX
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6376 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
ec06701b 6377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6378 break 2
6379 fi
6380done
ec06701b 6381done
10946b02
AX
6382IFS=$as_save_IFS
6383
6384fi
6385fi
6386LIPO=$ac_cv_prog_LIPO
6387if test -n "$LIPO"; then
ec06701b 6388 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10946b02
AX
6389$as_echo "$LIPO" >&6; }
6390else
ec06701b 6391 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6392$as_echo "no" >&6; }
6393fi
6394
6395
6396fi
6397if test -z "$ac_cv_prog_LIPO"; then
6398 ac_ct_LIPO=$LIPO
6399 # Extract the first word of "lipo", so it can be a program name with args.
6400set dummy lipo; ac_word=$2
ec06701b 6401{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6402$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6403if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10946b02
AX
6404 $as_echo_n "(cached) " >&6
6405else
6406 if test -n "$ac_ct_LIPO"; then
6407 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6408else
6409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410for as_dir in $PATH
6411do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
ec06701b
AX
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6416 ac_cv_prog_ac_ct_LIPO="lipo"
ec06701b 6417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6418 break 2
6419 fi
6420done
ec06701b 6421done
10946b02
AX
6422IFS=$as_save_IFS
6423
6424fi
6425fi
6426ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6427if test -n "$ac_ct_LIPO"; then
ec06701b 6428 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10946b02
AX
6429$as_echo "$ac_ct_LIPO" >&6; }
6430else
ec06701b 6431 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6432$as_echo "no" >&6; }
6433fi
6434
6435 if test "x$ac_ct_LIPO" = x; then
6436 LIPO=":"
6437 else
6438 case $cross_compiling:$ac_tool_warned in
6439yes:)
ec06701b 6440{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442ac_tool_warned=yes ;;
6443esac
6444 LIPO=$ac_ct_LIPO
6445 fi
6446else
6447 LIPO="$ac_cv_prog_LIPO"
6448fi
6449
6450 if test -n "$ac_tool_prefix"; then
6451 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6452set dummy ${ac_tool_prefix}otool; ac_word=$2
ec06701b 6453{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6454$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6455if test "${ac_cv_prog_OTOOL+set}" = set; then
10946b02
AX
6456 $as_echo_n "(cached) " >&6
6457else
6458 if test -n "$OTOOL"; then
6459 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6460else
6461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462for as_dir in $PATH
6463do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
ec06701b
AX
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6468 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
ec06701b 6469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6470 break 2
6471 fi
6472done
ec06701b 6473done
10946b02
AX
6474IFS=$as_save_IFS
6475
6476fi
6477fi
6478OTOOL=$ac_cv_prog_OTOOL
6479if test -n "$OTOOL"; then
ec06701b 6480 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10946b02
AX
6481$as_echo "$OTOOL" >&6; }
6482else
ec06701b 6483 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6484$as_echo "no" >&6; }
6485fi
6486
6487
6488fi
6489if test -z "$ac_cv_prog_OTOOL"; then
6490 ac_ct_OTOOL=$OTOOL
6491 # Extract the first word of "otool", so it can be a program name with args.
6492set dummy otool; ac_word=$2
ec06701b 6493{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6494$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6495if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10946b02
AX
6496 $as_echo_n "(cached) " >&6
6497else
6498 if test -n "$ac_ct_OTOOL"; then
6499 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
ec06701b
AX
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6508 ac_cv_prog_ac_ct_OTOOL="otool"
ec06701b 6509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6510 break 2
6511 fi
6512done
ec06701b 6513done
10946b02
AX
6514IFS=$as_save_IFS
6515
6516fi
6517fi
6518ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6519if test -n "$ac_ct_OTOOL"; then
ec06701b 6520 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10946b02
AX
6521$as_echo "$ac_ct_OTOOL" >&6; }
6522else
ec06701b 6523 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6524$as_echo "no" >&6; }
6525fi
6526
6527 if test "x$ac_ct_OTOOL" = x; then
6528 OTOOL=":"
6529 else
6530 case $cross_compiling:$ac_tool_warned in
6531yes:)
ec06701b 6532{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534ac_tool_warned=yes ;;
6535esac
6536 OTOOL=$ac_ct_OTOOL
6537 fi
6538else
6539 OTOOL="$ac_cv_prog_OTOOL"
6540fi
6541
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6544set dummy ${ac_tool_prefix}otool64; ac_word=$2
ec06701b 6545{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6546$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6547if test "${ac_cv_prog_OTOOL64+set}" = set; then
10946b02
AX
6548 $as_echo_n "(cached) " >&6
6549else
6550 if test -n "$OTOOL64"; then
6551 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
ec06701b
AX
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6560 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
ec06701b 6561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6562 break 2
6563 fi
6564done
ec06701b 6565done
10946b02
AX
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570OTOOL64=$ac_cv_prog_OTOOL64
6571if test -n "$OTOOL64"; then
ec06701b 6572 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10946b02
AX
6573$as_echo "$OTOOL64" >&6; }
6574else
ec06701b 6575 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6576$as_echo "no" >&6; }
6577fi
6578
6579
6580fi
6581if test -z "$ac_cv_prog_OTOOL64"; then
6582 ac_ct_OTOOL64=$OTOOL64
6583 # Extract the first word of "otool64", so it can be a program name with args.
6584set dummy otool64; ac_word=$2
ec06701b 6585{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10946b02 6586$as_echo_n "checking for $ac_word... " >&6; }
ec06701b 6587if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10946b02
AX
6588 $as_echo_n "(cached) " >&6
6589else
6590 if test -n "$ac_ct_OTOOL64"; then
6591 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
ec06701b
AX
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946b02 6600 ac_cv_prog_ac_ct_OTOOL64="otool64"
ec06701b 6601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10946b02
AX
6602 break 2
6603 fi
6604done
ec06701b 6605done
10946b02
AX
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6611if test -n "$ac_ct_OTOOL64"; then
ec06701b 6612 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
10946b02
AX
6613$as_echo "$ac_ct_OTOOL64" >&6; }
6614else
ec06701b 6615 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
6616$as_echo "no" >&6; }
6617fi
6618
6619 if test "x$ac_ct_OTOOL64" = x; then
6620 OTOOL64=":"
6621 else
6622 case $cross_compiling:$ac_tool_warned in
6623yes:)
ec06701b 6624{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10946b02
AX
6625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626ac_tool_warned=yes ;;
6627esac
6628 OTOOL64=$ac_ct_OTOOL64
6629 fi
6630else
6631 OTOOL64="$ac_cv_prog_OTOOL64"
6632fi
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
ec06701b 6660 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10946b02 6661$as_echo_n "checking for -single_module linker flag... " >&6; }
ec06701b 6662if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10946b02
AX
6663 $as_echo_n "(cached) " >&6
6664else
6665 lt_cv_apple_cc_single_mod=no
ec06701b 6666 if test -z "${LT_MULTI_MODULE}"; then
10946b02
AX
6667 # By default we will add the -single_module flag. You can override
6668 # by either setting the environment variable LT_MULTI_MODULE
6669 # non-empty at configure time, or by adding -multi_module to the
6670 # link flags.
6671 rm -rf libconftest.dylib*
6672 echo "int foo(void){return 1;}" > conftest.c
6673 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6674-dynamiclib -Wl,-single_module conftest.c" >&5
6675 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6676 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6677 _lt_result=$?
ec06701b 6678 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10946b02
AX
6679 lt_cv_apple_cc_single_mod=yes
6680 else
6681 cat conftest.err >&5
6682 fi
6683 rm -rf libconftest.dylib*
6684 rm -f conftest.*
6685 fi
6686fi
ec06701b 6687{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10946b02 6688$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
ec06701b 6689 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10946b02 6690$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
ec06701b 6691if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10946b02
AX
6692 $as_echo_n "(cached) " >&6
6693else
6694 lt_cv_ld_exported_symbols_list=no
6695 save_LDFLAGS=$LDFLAGS
6696 echo "_main" > conftest.sym
6697 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
ec06701b
AX
6698 cat >conftest.$ac_ext <<_ACEOF
6699/* confdefs.h. */
6700_ACEOF
6701cat confdefs.h >>conftest.$ac_ext
6702cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6703/* end confdefs.h. */
6704
6705int
6706main ()
6707{
6708
6709 ;
6710 return 0;
6711}
6712_ACEOF
ec06701b
AX
6713rm -f conftest.$ac_objext conftest$ac_exeext
6714if { (ac_try="$ac_link"
6715case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718esac
6719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6720$as_echo "$ac_try_echo") >&5
6721 (eval "$ac_link") 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest$ac_exeext && {
6731 test "$cross_compiling" = yes ||
6732 $as_test_x conftest$ac_exeext
6733 }; then
10946b02
AX
6734 lt_cv_ld_exported_symbols_list=yes
6735else
ec06701b
AX
6736 $as_echo "$as_me: failed program was:" >&5
6737sed 's/^/| /' conftest.$ac_ext >&5
10946b02 6738
ec06701b 6739 lt_cv_ld_exported_symbols_list=no
10946b02 6740fi
10946b02 6741
ec06701b
AX
6742rm -rf conftest.dSYM
6743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6744 conftest$ac_exeext conftest.$ac_ext
6745 LDFLAGS="$save_LDFLAGS"
10946b02
AX
6746
6747fi
ec06701b
AX
6748{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6749$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10946b02
AX
6750 case $host_os in
6751 rhapsody* | darwin1.[012])
ec06701b 6752 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10946b02 6753 darwin1.*)
ec06701b 6754 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10946b02
AX
6755 darwin*) # darwin 5.x on
6756 # if running on 10.5 or later, the deployment target defaults
6757 # to the OS version, if on x86, and 10.4, the deployment
6758 # target defaults to 10.4. Don't you love it?
6759 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6760 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
ec06701b
AX
6761 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6762 10.[012]*)
6763 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10946b02 6764 10.*)
ec06701b 6765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10946b02
AX
6766 esac
6767 ;;
6768 esac
ec06701b 6769 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10946b02
AX
6770 _lt_dar_single_mod='$single_module'
6771 fi
ec06701b
AX
6772 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6773 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10946b02 6774 else
ec06701b 6775 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10946b02 6776 fi
ec06701b 6777 if test "$DSYMUTIL" != ":"; then
10946b02
AX
6778 _lt_dsymutil='~$DSYMUTIL $lib || :'
6779 else
6780 _lt_dsymutil=
6781 fi
6782 ;;
6783 esac
6784
6785ac_ext=c
6786ac_cpp='$CPP $CPPFLAGS'
6787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec06701b 6790{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10946b02
AX
6791$as_echo_n "checking how to run the C preprocessor... " >&6; }
6792# On Suns, sometimes $CPP names a directory.
6793if test -n "$CPP" && test -d "$CPP"; then
6794 CPP=
6795fi
6796if test -z "$CPP"; then
ec06701b 6797 if test "${ac_cv_prog_CPP+set}" = set; then
10946b02
AX
6798 $as_echo_n "(cached) " >&6
6799else
6800 # Double quotes because CPP needs to be expanded
6801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6802 do
6803 ac_preproc_ok=false
6804for ac_c_preproc_warn_flag in '' yes
6805do
6806 # Use a header file that comes with gcc, so configuring glibc
6807 # with a fresh cross-compiler works.
6808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6809 # <limits.h> exists even on freestanding compilers.
6810 # On the NeXT, cc -E runs the code through the compiler's parser,
6811 # not just through cpp. "Syntax error" is here to catch this case.
ec06701b
AX
6812 cat >conftest.$ac_ext <<_ACEOF
6813/* confdefs.h. */
6814_ACEOF
6815cat confdefs.h >>conftest.$ac_ext
6816cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6817/* end confdefs.h. */
6818#ifdef __STDC__
6819# include <limits.h>
6820#else
6821# include <assert.h>
6822#endif
6823 Syntax error
6824_ACEOF
ec06701b
AX
6825if { (ac_try="$ac_cpp conftest.$ac_ext"
6826case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
6830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831$as_echo "$ac_try_echo") >&5
6832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } >/dev/null && {
6839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 }; then
6842 :
10946b02 6843else
ec06701b
AX
6844 $as_echo "$as_me: failed program was:" >&5
6845sed 's/^/| /' conftest.$ac_ext >&5
6846
10946b02
AX
6847 # Broken: fails on valid input.
6848continue
6849fi
ec06701b
AX
6850
6851rm -f conftest.err conftest.$ac_ext
10946b02
AX
6852
6853 # OK, works on sane cases. Now check whether nonexistent headers
6854 # can be detected and how.
ec06701b
AX
6855 cat >conftest.$ac_ext <<_ACEOF
6856/* confdefs.h. */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6860/* end confdefs.h. */
6861#include <ac_nonexistent.h>
6862_ACEOF
ec06701b
AX
6863if { (ac_try="$ac_cpp conftest.$ac_ext"
6864case "(($ac_try" in
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6867esac
6868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6869$as_echo "$ac_try_echo") >&5
6870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6871 ac_status=$?
6872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } >/dev/null && {
6877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 }; then
10946b02
AX
6880 # Broken: success on invalid input.
6881continue
6882else
ec06701b
AX
6883 $as_echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
10946b02
AX
6886 # Passes both tests.
6887ac_preproc_ok=:
6888break
6889fi
ec06701b
AX
6890
6891rm -f conftest.err conftest.$ac_ext
10946b02
AX
6892
6893done
6894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ec06701b
AX
6895rm -f conftest.err conftest.$ac_ext
6896if $ac_preproc_ok; then
10946b02
AX
6897 break
6898fi
6899
6900 done
6901 ac_cv_prog_CPP=$CPP
6902
6903fi
6904 CPP=$ac_cv_prog_CPP
6905else
6906 ac_cv_prog_CPP=$CPP
6907fi
ec06701b 6908{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
10946b02
AX
6909$as_echo "$CPP" >&6; }
6910ac_preproc_ok=false
6911for ac_c_preproc_warn_flag in '' yes
6912do
6913 # Use a header file that comes with gcc, so configuring glibc
6914 # with a fresh cross-compiler works.
6915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6916 # <limits.h> exists even on freestanding compilers.
6917 # On the NeXT, cc -E runs the code through the compiler's parser,
6918 # not just through cpp. "Syntax error" is here to catch this case.
ec06701b
AX
6919 cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h. */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6924/* end confdefs.h. */
6925#ifdef __STDC__
6926# include <limits.h>
6927#else
6928# include <assert.h>
6929#endif
6930 Syntax error
6931_ACEOF
ec06701b
AX
6932if { (ac_try="$ac_cpp conftest.$ac_ext"
6933case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936esac
6937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6938$as_echo "$ac_try_echo") >&5
6939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } >/dev/null && {
6946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6947 test ! -s conftest.err
6948 }; then
6949 :
10946b02 6950else
ec06701b
AX
6951 $as_echo "$as_me: failed program was:" >&5
6952sed 's/^/| /' conftest.$ac_ext >&5
6953
10946b02
AX
6954 # Broken: fails on valid input.
6955continue
6956fi
ec06701b
AX
6957
6958rm -f conftest.err conftest.$ac_ext
10946b02
AX
6959
6960 # OK, works on sane cases. Now check whether nonexistent headers
6961 # can be detected and how.
ec06701b
AX
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
6967/* end confdefs.h. */
6968#include <ac_nonexistent.h>
6969_ACEOF
ec06701b
AX
6970if { (ac_try="$ac_cpp conftest.$ac_ext"
6971case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974esac
6975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6976$as_echo "$ac_try_echo") >&5
6977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } >/dev/null && {
6984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 }; then
10946b02
AX
6987 # Broken: success on invalid input.
6988continue
6989else
ec06701b
AX
6990 $as_echo "$as_me: failed program was:" >&5
6991sed 's/^/| /' conftest.$ac_ext >&5
6992
10946b02
AX
6993 # Passes both tests.
6994ac_preproc_ok=:
6995break
6996fi
ec06701b
AX
6997
6998rm -f conftest.err conftest.$ac_ext
10946b02
AX
6999
7000done
7001# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
ec06701b
AX
7002rm -f conftest.err conftest.$ac_ext
7003if $ac_preproc_ok; then
7004 :
10946b02 7005else
ec06701b 7006 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 7007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ec06701b
AX
7008{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7009See \`config.log' for more details." >&5
7010$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7011See \`config.log' for more details." >&2;}
7012 { (exit 1); exit 1; }; }; }
10946b02
AX
7013fi
7014
7015ac_ext=c
7016ac_cpp='$CPP $CPPFLAGS'
7017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021
ec06701b 7022{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10946b02 7023$as_echo_n "checking for ANSI C header files... " >&6; }
ec06701b 7024if test "${ac_cv_header_stdc+set}" = set; then
10946b02
AX
7025 $as_echo_n "(cached) " >&6
7026else
ec06701b
AX
7027 cat >conftest.$ac_ext <<_ACEOF
7028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
7032/* end confdefs.h. */
7033#include <stdlib.h>
7034#include <stdarg.h>
7035#include <string.h>
7036#include <float.h>
7037
7038int
7039main ()
7040{
7041
7042 ;
7043 return 0;
7044}
7045_ACEOF
ec06701b
AX
7046rm -f conftest.$ac_objext
7047if { (ac_try="$ac_compile"
7048case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051esac
7052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053$as_echo "$ac_try_echo") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
10946b02
AX
7064 ac_cv_header_stdc=yes
7065else
ec06701b
AX
7066 $as_echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 ac_cv_header_stdc=no
10946b02 7070fi
ec06701b 7071
10946b02
AX
7072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073
7074if test $ac_cv_header_stdc = yes; then
7075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ec06701b
AX
7076 cat >conftest.$ac_ext <<_ACEOF
7077/* confdefs.h. */
7078_ACEOF
7079cat confdefs.h >>conftest.$ac_ext
7080cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
7081/* end confdefs.h. */
7082#include <string.h>
7083
7084_ACEOF
7085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ec06701b
AX
7086 $EGREP "memchr" >/dev/null 2>&1; then
7087 :
10946b02
AX
7088else
7089 ac_cv_header_stdc=no
7090fi
7091rm -f conftest*
7092
7093fi
7094
7095if test $ac_cv_header_stdc = yes; then
7096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
ec06701b
AX
7097 cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h. */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
7102/* end confdefs.h. */
7103#include <stdlib.h>
7104
7105_ACEOF
7106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ec06701b
AX
7107 $EGREP "free" >/dev/null 2>&1; then
7108 :
10946b02
AX
7109else
7110 ac_cv_header_stdc=no
7111fi
7112rm -f conftest*
7113
7114fi
7115
7116if test $ac_cv_header_stdc = yes; then
7117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
ec06701b 7118 if test "$cross_compiling" = yes; then
10946b02
AX
7119 :
7120else
ec06701b
AX
7121 cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h. */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
7126/* end confdefs.h. */
7127#include <ctype.h>
7128#include <stdlib.h>
7129#if ((' ' & 0x0FF) == 0x020)
7130# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7131# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7132#else
7133# define ISLOWER(c) \
7134 (('a' <= (c) && (c) <= 'i') \
7135 || ('j' <= (c) && (c) <= 'r') \
7136 || ('s' <= (c) && (c) <= 'z'))
7137# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7138#endif
7139
7140#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7141int
7142main ()
7143{
7144 int i;
7145 for (i = 0; i < 256; i++)
7146 if (XOR (islower (i), ISLOWER (i))
7147 || toupper (i) != TOUPPER (i))
7148 return 2;
7149 return 0;
7150}
7151_ACEOF
ec06701b
AX
7152rm -f conftest$ac_exeext
7153if { (ac_try="$ac_link"
7154case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157esac
7158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7159$as_echo "$ac_try_echo") >&5
7160 (eval "$ac_link") 2>&5
7161 ac_status=$?
7162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7164 { (case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167esac
7168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7169$as_echo "$ac_try_echo") >&5
7170 (eval "$ac_try") 2>&5
7171 ac_status=$?
7172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 :
10946b02 7175else
ec06701b
AX
7176 $as_echo "$as_me: program exited with status $ac_status" >&5
7177$as_echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
7179
7180( exit $ac_status )
7181ac_cv_header_stdc=no
10946b02 7182fi
ec06701b
AX
7183rm -rf conftest.dSYM
7184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10946b02
AX
7185fi
7186
ec06701b 7187
10946b02
AX
7188fi
7189fi
ec06701b 7190{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10946b02
AX
7191$as_echo "$ac_cv_header_stdc" >&6; }
7192if test $ac_cv_header_stdc = yes; then
7193
ec06701b
AX
7194cat >>confdefs.h <<\_ACEOF
7195#define STDC_HEADERS 1
7196_ACEOF
10946b02
AX
7197
7198fi
7199
7200# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ec06701b
AX
7201
7202
7203
7204
7205
7206
7207
7208
7209
10946b02
AX
7210for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7211 inttypes.h stdint.h unistd.h
ec06701b
AX
7212do
7213as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7214{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7215$as_echo_n "checking for $ac_header... " >&6; }
7216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7217 $as_echo_n "(cached) " >&6
7218else
7219 cat >conftest.$ac_ext <<_ACEOF
7220/* confdefs.h. */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h. */
7225$ac_includes_default
7226
7227#include <$ac_header>
7228_ACEOF
7229rm -f conftest.$ac_objext
7230if { (ac_try="$ac_compile"
7231case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234esac
7235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236$as_echo "$ac_try_echo") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 eval "$as_ac_Header=yes"
7248else
7249 $as_echo "$as_me: failed program was:" >&5
7250sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 eval "$as_ac_Header=no"
7253fi
7254
7255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256fi
7257ac_res=`eval 'as_val=${'$as_ac_Header'}
7258 $as_echo "$as_val"'`
7259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7260$as_echo "$ac_res" >&6; }
7261as_val=`eval 'as_val=${'$as_ac_Header'}
7262 $as_echo "$as_val"'`
7263 if test "x$as_val" = x""yes; then
10946b02
AX
7264 cat >>confdefs.h <<_ACEOF
7265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7266_ACEOF
7267
7268fi
7269
7270done
7271
7272
ec06701b 7273
10946b02 7274for ac_header in dlfcn.h
ec06701b
AX
7275do
7276as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7277{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7278$as_echo_n "checking for $ac_header... " >&6; }
7279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280 $as_echo_n "(cached) " >&6
7281else
7282 cat >conftest.$ac_ext <<_ACEOF
7283/* confdefs.h. */
7284_ACEOF
7285cat confdefs.h >>conftest.$ac_ext
7286cat >>conftest.$ac_ext <<_ACEOF
7287/* end confdefs.h. */
7288$ac_includes_default
7289
7290#include <$ac_header>
10946b02 7291_ACEOF
ec06701b
AX
7292rm -f conftest.$ac_objext
7293if { (ac_try="$ac_compile"
7294case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297esac
7298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299$as_echo "$ac_try_echo") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7301 ac_status=$?
7302 grep -v '^ *+' conftest.er1 >conftest.err
7303 rm -f conftest.er1
7304 cat conftest.err >&5
7305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 eval "$as_ac_Header=yes"
7311else
7312 $as_echo "$as_me: failed program was:" >&5
7313sed 's/^/| /' conftest.$ac_ext >&5
10946b02 7314
ec06701b 7315 eval "$as_ac_Header=no"
10946b02
AX
7316fi
7317
ec06701b
AX
7318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319fi
7320ac_res=`eval 'as_val=${'$as_ac_Header'}
7321 $as_echo "$as_val"'`
7322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7323$as_echo "$ac_res" >&6; }
7324as_val=`eval 'as_val=${'$as_ac_Header'}
7325 $as_echo "$as_val"'`
7326 if test "x$as_val" = x""yes; then
7327 cat >>confdefs.h <<_ACEOF
7328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7329_ACEOF
10946b02 7330
ec06701b 7331fi
10946b02 7332
ec06701b 7333done
10946b02
AX
7334
7335
7336
7337# Set options
7338
7339
7340
7341 enable_dlopen=no
7342
7343
7344 enable_win32_dll=no
7345
7346
7347 # Check whether --enable-shared was given.
ec06701b 7348if test "${enable_shared+set}" = set; then
10946b02
AX
7349 enableval=$enable_shared; p=${PACKAGE-default}
7350 case $enableval in
7351 yes) enable_shared=yes ;;
7352 no) enable_shared=no ;;
7353 *)
7354 enable_shared=no
7355 # Look at the argument we got. We use all the common list separators.
ec06701b 7356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10946b02 7357 for pkg in $enableval; do
ec06701b 7358 IFS="$lt_save_ifs"
10946b02
AX
7359 if test "X$pkg" = "X$p"; then
7360 enable_shared=yes
7361 fi
7362 done
ec06701b 7363 IFS="$lt_save_ifs"
10946b02
AX
7364 ;;
7365 esac
7366else
7367 enable_shared=yes
7368fi
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 # Check whether --enable-static was given.
ec06701b 7379if test "${enable_static+set}" = set; then
10946b02
AX
7380 enableval=$enable_static; p=${PACKAGE-default}
7381 case $enableval in
7382 yes) enable_static=yes ;;
7383 no) enable_static=no ;;
7384 *)
7385 enable_static=no
7386 # Look at the argument we got. We use all the common list separators.
ec06701b 7387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10946b02 7388 for pkg in $enableval; do
ec06701b 7389 IFS="$lt_save_ifs"
10946b02
AX
7390 if test "X$pkg" = "X$p"; then
7391 enable_static=yes
7392 fi
7393 done
ec06701b 7394 IFS="$lt_save_ifs"
10946b02
AX
7395 ;;
7396 esac
7397else
7398 enable_static=yes
7399fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410# Check whether --with-pic was given.
ec06701b
AX
7411if test "${with_pic+set}" = set; then
7412 withval=$with_pic; pic_mode="$withval"
10946b02
AX
7413else
7414 pic_mode=default
7415fi
7416
7417
ec06701b
AX
7418test -z "$pic_mode" && pic_mode=default
7419
10946b02
AX
7420
7421
7422
7423
7424
7425
7426 # Check whether --enable-fast-install was given.
ec06701b 7427if test "${enable_fast_install+set}" = set; then
10946b02
AX
7428 enableval=$enable_fast_install; p=${PACKAGE-default}
7429 case $enableval in
7430 yes) enable_fast_install=yes ;;
7431 no) enable_fast_install=no ;;
7432 *)
7433 enable_fast_install=no
7434 # Look at the argument we got. We use all the common list separators.
ec06701b 7435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10946b02 7436 for pkg in $enableval; do
ec06701b 7437 IFS="$lt_save_ifs"
10946b02
AX
7438 if test "X$pkg" = "X$p"; then
7439 enable_fast_install=yes
7440 fi
7441 done
ec06701b 7442 IFS="$lt_save_ifs"
ac9cc135 7443 ;;
ec06701b
AX
7444 esac
7445else
7446 enable_fast_install=yes
7447fi
7448
ac9cc135
AX
7449
7450
7451
7452
7453
7454
7455
10946b02
AX
7456
7457
7458
7459# This can be used to rebuild libtool when needed
ec06701b 7460LIBTOOL_DEPS="$ltmain"
10946b02
AX
7461
7462# Always use our own libtool.
7463LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
10946b02
AX
7483
7484
7485
7486
7487
7488
7489test -z "$LN_S" && LN_S="ln -s"
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
ec06701b 7504if test -n "${ZSH_VERSION+set}" ; then
10946b02
AX
7505 setopt NO_GLOB_SUBST
7506fi
7507
ec06701b 7508{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
10946b02 7509$as_echo_n "checking for objdir... " >&6; }
ec06701b 7510if test "${lt_cv_objdir+set}" = set; then
10946b02
AX
7511 $as_echo_n "(cached) " >&6
7512else
7513 rm -f .libs 2>/dev/null
7514mkdir .libs 2>/dev/null
7515if test -d .libs; then
7516 lt_cv_objdir=.libs
7517else
7518 # MS-DOS does not allow filenames that begin with a dot.
7519 lt_cv_objdir=_libs
7520fi
7521rmdir .libs 2>/dev/null
7522fi
ec06701b 7523{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10946b02
AX
7524$as_echo "$lt_cv_objdir" >&6; }
7525objdir=$lt_cv_objdir
7526
7527
7528
7529
7530
7531cat >>confdefs.h <<_ACEOF
7532#define LT_OBJDIR "$lt_cv_objdir/"
7533_ACEOF
7534
7535
7536
7537
ec06701b
AX
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
10946b02
AX
7551case $host_os in
7552aix3*)
7553 # AIX sometimes has problems with the GCC collect2 program. For some
7554 # reason, if we set the COLLECT_NAMES environment variable, the problems
7555 # vanish in a puff of smoke.
ec06701b 7556 if test "X${COLLECT_NAMES+set}" != Xset; then
10946b02
AX
7557 COLLECT_NAMES=
7558 export COLLECT_NAMES
7559 fi
7560 ;;
7561esac
7562
ec06701b
AX
7563# Sed substitution that helps us do robust quoting. It backslashifies
7564# metacharacters that are still active within double-quoted strings.
7565sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7566
7567# Same as above, but do not quote variable references.
7568double_quote_subst='s/\(["`\\]\)/\\\1/g'
7569
7570# Sed substitution to delay expansion of an escaped shell variable in a
7571# double_quote_subst'ed string.
7572delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7573
7574# Sed substitution to delay expansion of an escaped single quote.
7575delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7576
7577# Sed substitution to avoid accidental globbing in evaled expressions
7578no_glob_subst='s/\*/\\\*/g'
7579
10946b02
AX
7580# Global variables:
7581ofile=libtool
7582can_build_shared=yes
7583
ec06701b 7584# All known linkers require a `.a' archive for static linking (except MSVC,
10946b02
AX
7585# which needs '.lib').
7586libext=a
7587
ec06701b 7588with_gnu_ld="$lt_cv_prog_gnu_ld"
10946b02 7589
ec06701b
AX
7590old_CC="$CC"
7591old_CFLAGS="$CFLAGS"
10946b02
AX
7592
7593# Set sane defaults for various variables
7594test -z "$CC" && CC=cc
7595test -z "$LTCC" && LTCC=$CC
7596test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7597test -z "$LD" && LD=ld
7598test -z "$ac_objext" && ac_objext=o
7599
ec06701b
AX
7600for cc_temp in $compiler""; do
7601 case $cc_temp in
7602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7604 \-*) ;;
7605 *) break;;
7606 esac
7607done
7608cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10946b02
AX
7609
7610
7611# Only perform the check for file, if the check method requires it
7612test -z "$MAGIC_CMD" && MAGIC_CMD=file
7613case $deplibs_check_method in
7614file_magic*)
7615 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ec06701b 7616 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10946b02 7617$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
ec06701b 7618if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10946b02
AX
7619 $as_echo_n "(cached) " >&6
7620else
7621 case $MAGIC_CMD in
7622[\\/*] | ?:[\\/]*)
ec06701b 7623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10946b02
AX
7624 ;;
7625*)
ec06701b
AX
7626 lt_save_MAGIC_CMD="$MAGIC_CMD"
7627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10946b02
AX
7628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7629 for ac_dir in $ac_dummy; do
ec06701b 7630 IFS="$lt_save_ifs"
10946b02 7631 test -z "$ac_dir" && ac_dir=.
ec06701b
AX
7632 if test -f $ac_dir/${ac_tool_prefix}file; then
7633 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10946b02
AX
7634 if test -n "$file_magic_test_file"; then
7635 case $deplibs_check_method in
7636 "file_magic "*)
7637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
ec06701b 7638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10946b02
AX
7639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7640 $EGREP "$file_magic_regex" > /dev/null; then
7641 :
7642 else
7643 cat <<_LT_EOF 1>&2
7644
7645*** Warning: the command libtool uses to detect shared libraries,
7646*** $file_magic_cmd, produces output that libtool cannot recognize.
7647*** The result is that libtool may fail to recognize shared libraries
7648*** as such. This will affect the creation of libtool libraries that
7649*** depend on shared libraries, but programs linked with such libtool
7650*** libraries will work regardless of this problem. Nevertheless, you
7651*** may want to report the problem to your system manager and/or to
7652*** bug-libtool@gnu.org
7653
7654_LT_EOF
7655 fi ;;
7656 esac
7657 fi
7658 break
7659 fi
7660 done
ec06701b
AX
7661 IFS="$lt_save_ifs"
7662 MAGIC_CMD="$lt_save_MAGIC_CMD"
10946b02
AX
7663 ;;
7664esac
7665fi
7666
ec06701b 7667MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10946b02 7668if test -n "$MAGIC_CMD"; then
ec06701b 7669 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10946b02
AX
7670$as_echo "$MAGIC_CMD" >&6; }
7671else
ec06701b 7672 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
7673$as_echo "no" >&6; }
7674fi
7675
7676
7677
7678
7679
7680if test -z "$lt_cv_path_MAGIC_CMD"; then
7681 if test -n "$ac_tool_prefix"; then
ec06701b 7682 { $as_echo "$as_me:$LINENO: checking for file" >&5
10946b02 7683$as_echo_n "checking for file... " >&6; }
ec06701b 7684if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10946b02
AX
7685 $as_echo_n "(cached) " >&6
7686else
7687 case $MAGIC_CMD in
7688[\\/*] | ?:[\\/]*)
ec06701b 7689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10946b02
AX
7690 ;;
7691*)
ec06701b
AX
7692 lt_save_MAGIC_CMD="$MAGIC_CMD"
7693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10946b02
AX
7694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7695 for ac_dir in $ac_dummy; do
ec06701b 7696 IFS="$lt_save_ifs"
10946b02 7697 test -z "$ac_dir" && ac_dir=.
ec06701b
AX
7698 if test -f $ac_dir/file; then
7699 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10946b02
AX
7700 if test -n "$file_magic_test_file"; then
7701 case $deplibs_check_method in
7702 "file_magic "*)
7703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
ec06701b 7704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10946b02
AX
7705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7706 $EGREP "$file_magic_regex" > /dev/null; then
7707 :
7708 else
7709 cat <<_LT_EOF 1>&2
7710
7711*** Warning: the command libtool uses to detect shared libraries,
7712*** $file_magic_cmd, produces output that libtool cannot recognize.
7713*** The result is that libtool may fail to recognize shared libraries
7714*** as such. This will affect the creation of libtool libraries that
7715*** depend on shared libraries, but programs linked with such libtool
7716*** libraries will work regardless of this problem. Nevertheless, you
7717*** may want to report the problem to your system manager and/or to
7718*** bug-libtool@gnu.org
7719
7720_LT_EOF
7721 fi ;;
7722 esac
7723 fi
7724 break
7725 fi
7726 done
ec06701b
AX
7727 IFS="$lt_save_ifs"
7728 MAGIC_CMD="$lt_save_MAGIC_CMD"
10946b02
AX
7729 ;;
7730esac
7731fi
7732
ec06701b 7733MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10946b02 7734if test -n "$MAGIC_CMD"; then
ec06701b 7735 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10946b02
AX
7736$as_echo "$MAGIC_CMD" >&6; }
7737else
ec06701b 7738 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
7739$as_echo "no" >&6; }
7740fi
7741
7742
7743 else
7744 MAGIC_CMD=:
7745 fi
7746fi
7747
7748 fi
7749 ;;
7750esac
7751
7752# Use C for the default configuration in the libtool script
7753
ec06701b 7754lt_save_CC="$CC"
10946b02
AX
7755ac_ext=c
7756ac_cpp='$CPP $CPPFLAGS'
7757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759ac_compiler_gnu=$ac_cv_c_compiler_gnu
7760
7761
7762# Source file extension for C test sources.
7763ac_ext=c
7764
7765# Object file extension for compiled C test sources.
7766objext=o
7767objext=$objext
7768
7769# Code to be used in simple compile tests
7770lt_simple_compile_test_code="int some_variable = 0;"
7771
7772# Code to be used in simple link tests
7773lt_simple_link_test_code='int main(){return(0);}'
7774
7775
7776
7777
7778
7779
7780
7781# If no C compiler was specified, use CC.
7782LTCC=${LTCC-"$CC"}
7783
7784# If no C compiler flags were specified, use CFLAGS.
7785LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7786
7787# Allow CC to be a program name with arguments.
7788compiler=$CC
7789
7790# Save the default compiler, since it gets overwritten when the other
7791# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7792compiler_DEFAULT=$CC
7793
7794# save warnings/boilerplate of simple test code
7795ac_outfile=conftest.$ac_objext
7796echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7797eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7798_lt_compiler_boilerplate=`cat conftest.err`
7799$RM conftest*
7800
7801ac_outfile=conftest.$ac_objext
7802echo "$lt_simple_link_test_code" >conftest.$ac_ext
7803eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7804_lt_linker_boilerplate=`cat conftest.err`
7805$RM -r conftest*
7806
7807
7808## CAVEAT EMPTOR:
7809## There is no encapsulation within the following macros, do not change
7810## the running order or otherwise move them around unless you know exactly
7811## what you are doing...
7812if test -n "$compiler"; then
7813
7814lt_prog_compiler_no_builtin_flag=
7815
ec06701b
AX
7816if test "$GCC" = yes; then
7817 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10946b02 7818
ec06701b 7819 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10946b02 7820$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
ec06701b 7821if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10946b02
AX
7822 $as_echo_n "(cached) " >&6
7823else
7824 lt_cv_prog_compiler_rtti_exceptions=no
7825 ac_outfile=conftest.$ac_objext
7826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ec06701b 7827 lt_compiler_flag="-fno-rtti -fno-exceptions"
10946b02
AX
7828 # Insert the option either (1) after the last *FLAGS variable, or
7829 # (2) before a word containing "conftest.", or (3) at the end.
7830 # Note that $ac_compile itself does not contain backslashes and begins
7831 # with a dollar sign (not a hyphen), so the echo should work correctly.
7832 # The option is referenced via a variable to avoid confusing sed.
7833 lt_compile=`echo "$ac_compile" | $SED \
7834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7836 -e 's:$: $lt_compiler_flag:'`
ec06701b 7837 (eval echo "\"\$as_me:7837: $lt_compile\"" >&5)
10946b02
AX
7838 (eval "$lt_compile" 2>conftest.err)
7839 ac_status=$?
7840 cat conftest.err >&5
ec06701b 7841 echo "$as_me:7841: \$? = $ac_status" >&5
10946b02
AX
7842 if (exit $ac_status) && test -s "$ac_outfile"; then
7843 # The compiler can only warn and ignore the option if not recognized
7844 # So say no if there are warnings other than the usual output.
ec06701b 7845 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10946b02
AX
7846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7847 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7848 lt_cv_prog_compiler_rtti_exceptions=yes
7849 fi
7850 fi
7851 $RM conftest*
7852
7853fi
ec06701b 7854{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10946b02
AX
7855$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7856
ec06701b 7857if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10946b02
AX
7858 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7859else
7860 :
7861fi
7862
7863fi
7864
7865
7866
7867
7868
7869
7870 lt_prog_compiler_wl=
7871lt_prog_compiler_pic=
7872lt_prog_compiler_static=
7873
ec06701b
AX
7874{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7875$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10946b02 7876
ec06701b 7877 if test "$GCC" = yes; then
10946b02
AX
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_static='-static'
7880
7881 case $host_os in
7882 aix*)
7883 # All AIX code is PIC.
ec06701b 7884 if test "$host_cpu" = ia64; then
10946b02
AX
7885 # AIX 5 now supports IA64 processor
7886 lt_prog_compiler_static='-Bstatic'
7887 fi
7888 ;;
7889
7890 amigaos*)
7891 case $host_cpu in
7892 powerpc)
7893 # see comment about AmigaOS4 .so support
7894 lt_prog_compiler_pic='-fPIC'
7895 ;;
7896 m68k)
7897 # FIXME: we need at least 68020 code to build shared libraries, but
ec06701b
AX
7898 # adding the `-m68020' flag to GCC prevents building anything better,
7899 # like `-m68040'.
10946b02
AX
7900 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7901 ;;
7902 esac
7903 ;;
7904
7905 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7906 # PIC is the default for these OSes.
7907 ;;
7908
7909 mingw* | cygwin* | pw32* | os2* | cegcc*)
7910 # This hack is so that the source file can tell whether it is being
7911 # built for inclusion in a dll (and should export symbols for example).
7912 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7913 # (--disable-auto-import) libraries
7914 lt_prog_compiler_pic='-DDLL_EXPORT'
7915 ;;
7916
7917 darwin* | rhapsody*)
7918 # PIC is the default on this platform
7919 # Common symbols not allowed in MH_DYLIB files
7920 lt_prog_compiler_pic='-fno-common'
7921 ;;
7922
10946b02
AX
7923 hpux*)
7924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7926 # sets the default TLS model and affects inlining.
7927 case $host_cpu in
7928 hppa*64*)
7929 # +Z the default
7930 ;;
7931 *)
7932 lt_prog_compiler_pic='-fPIC'
7933 ;;
7934 esac
7935 ;;
7936
7937 interix[3-9]*)
7938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7939 # Instead, we relocate shared libraries at runtime.
7940 ;;
7941
7942 msdosdjgpp*)
7943 # Just because we use GCC doesn't mean we suddenly get shared libraries
7944 # on systems that don't support them.
7945 lt_prog_compiler_can_build_shared=no
7946 enable_shared=no
7947 ;;
7948
7949 *nto* | *qnx*)
7950 # QNX uses GNU C++, but need to define -shared option too, otherwise
7951 # it will coredump.
7952 lt_prog_compiler_pic='-fPIC -shared'
7953 ;;
7954
7955 sysv4*MP*)
7956 if test -d /usr/nec; then
7957 lt_prog_compiler_pic=-Kconform_pic
7958 fi
7959 ;;
7960
7961 *)
7962 lt_prog_compiler_pic='-fPIC'
7963 ;;
7964 esac
10946b02
AX
7965 else
7966 # PORTME Check for flag to pass linker flags through the system compiler.
7967 case $host_os in
7968 aix*)
7969 lt_prog_compiler_wl='-Wl,'
ec06701b 7970 if test "$host_cpu" = ia64; then
10946b02
AX
7971 # AIX 5 now supports IA64 processor
7972 lt_prog_compiler_static='-Bstatic'
7973 else
7974 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7975 fi
7976 ;;
7977
7978 mingw* | cygwin* | pw32* | os2* | cegcc*)
7979 # This hack is so that the source file can tell whether it is being
7980 # built for inclusion in a dll (and should export symbols for example).
7981 lt_prog_compiler_pic='-DDLL_EXPORT'
7982 ;;
7983
7984 hpux9* | hpux10* | hpux11*)
7985 lt_prog_compiler_wl='-Wl,'
7986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7987 # not for PA HP-UX.
7988 case $host_cpu in
7989 hppa*64*|ia64*)
7990 # +Z the default
7991 ;;
7992 *)
7993 lt_prog_compiler_pic='+Z'
7994 ;;
7995 esac
7996 # Is there a better lt_prog_compiler_static that works with the bundled CC?
ec06701b 7997 lt_prog_compiler_static='${wl}-a ${wl}archive'
10946b02
AX
7998 ;;
7999
8000 irix5* | irix6* | nonstopux*)
8001 lt_prog_compiler_wl='-Wl,'
8002 # PIC (with -KPIC) is the default.
8003 lt_prog_compiler_static='-non_shared'
8004 ;;
8005
ec06701b 8006 linux* | k*bsd*-gnu)
10946b02 8007 case $cc_basename in
ec06701b 8008 # old Intel for x86_64 which still supported -KPIC.
10946b02
AX
8009 ecc*)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-KPIC'
8012 lt_prog_compiler_static='-static'
8013 ;;
8014 # icc used to be incompatible with GCC.
8015 # ICC 10 doesn't accept -KPIC any more.
8016 icc* | ifort*)
8017 lt_prog_compiler_wl='-Wl,'
8018 lt_prog_compiler_pic='-fPIC'
8019 lt_prog_compiler_static='-static'
8020 ;;
8021 # Lahey Fortran 8.1.
8022 lf95*)
8023 lt_prog_compiler_wl='-Wl,'
8024 lt_prog_compiler_pic='--shared'
8025 lt_prog_compiler_static='--static'
8026 ;;
ec06701b 8027 pgcc* | pgf77* | pgf90* | pgf95*)
10946b02
AX
8028 # Portland Group compilers (*not* the Pentium gcc compiler,
8029 # which looks to be a dead project)
8030 lt_prog_compiler_wl='-Wl,'
8031 lt_prog_compiler_pic='-fpic'
8032 lt_prog_compiler_static='-Bstatic'
8033 ;;
8034 ccc*)
8035 lt_prog_compiler_wl='-Wl,'
8036 # All Alpha code is PIC.
8037 lt_prog_compiler_static='-non_shared'
8038 ;;
ec06701b
AX
8039 xl*)
8040 # IBM XL C 8.0/Fortran 10.1 on PPC
10946b02
AX
8041 lt_prog_compiler_wl='-Wl,'
8042 lt_prog_compiler_pic='-qpic'
8043 lt_prog_compiler_static='-qstaticlink'
8044 ;;
8045 *)
8046 case `$CC -V 2>&1 | sed 5q` in
10946b02
AX
8047 *Sun\ C*)
8048 # Sun C 5.9
8049 lt_prog_compiler_pic='-KPIC'
8050 lt_prog_compiler_static='-Bstatic'
8051 lt_prog_compiler_wl='-Wl,'
8052 ;;
ec06701b
AX
8053 *Sun\ F*)
8054 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8055 lt_prog_compiler_pic='-KPIC'
10946b02 8056 lt_prog_compiler_static='-Bstatic'
ec06701b 8057 lt_prog_compiler_wl=''
10946b02
AX
8058 ;;
8059 esac
8060 ;;
8061 esac
8062 ;;
8063
8064 newsos6)
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 ;;
8068
8069 *nto* | *qnx*)
8070 # QNX uses GNU C++, but need to define -shared option too, otherwise
8071 # it will coredump.
8072 lt_prog_compiler_pic='-fPIC -shared'
8073 ;;
8074
8075 osf3* | osf4* | osf5*)
8076 lt_prog_compiler_wl='-Wl,'
8077 # All OSF/1 code is PIC.
8078 lt_prog_compiler_static='-non_shared'
8079 ;;
8080
8081 rdos*)
8082 lt_prog_compiler_static='-non_shared'
8083 ;;
8084
8085 solaris*)
8086 lt_prog_compiler_pic='-KPIC'
8087 lt_prog_compiler_static='-Bstatic'
8088 case $cc_basename in
ec06701b 8089 f77* | f90* | f95*)
10946b02
AX
8090 lt_prog_compiler_wl='-Qoption ld ';;
8091 *)
8092 lt_prog_compiler_wl='-Wl,';;
8093 esac
8094 ;;
8095
8096 sunos4*)
8097 lt_prog_compiler_wl='-Qoption ld '
8098 lt_prog_compiler_pic='-PIC'
8099 lt_prog_compiler_static='-Bstatic'
8100 ;;
8101
8102 sysv4 | sysv4.2uw2* | sysv4.3*)
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='-KPIC'
8105 lt_prog_compiler_static='-Bstatic'
8106 ;;
8107
8108 sysv4*MP*)
ec06701b 8109 if test -d /usr/nec ;then
10946b02
AX
8110 lt_prog_compiler_pic='-Kconform_pic'
8111 lt_prog_compiler_static='-Bstatic'
8112 fi
8113 ;;
8114
8115 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_pic='-KPIC'
8118 lt_prog_compiler_static='-Bstatic'
8119 ;;
8120
8121 unicos*)
8122 lt_prog_compiler_wl='-Wl,'
8123 lt_prog_compiler_can_build_shared=no
8124 ;;
8125
8126 uts4*)
8127 lt_prog_compiler_pic='-pic'
8128 lt_prog_compiler_static='-Bstatic'
8129 ;;
8130
8131 *)
8132 lt_prog_compiler_can_build_shared=no
8133 ;;
8134 esac
8135 fi
8136
8137case $host_os in
ec06701b 8138 # For platforms which do not support PIC, -DPIC is meaningless:
10946b02
AX
8139 *djgpp*)
8140 lt_prog_compiler_pic=
8141 ;;
8142 *)
8143 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8144 ;;
8145esac
ec06701b
AX
8146{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8147$as_echo "$lt_prog_compiler_pic" >&6; }
8148
8149
8150
8151
10946b02 8152
10946b02
AX
8153
8154#
8155# Check to make sure the PIC flag actually works.
8156#
8157if test -n "$lt_prog_compiler_pic"; then
ec06701b 8158 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10946b02 8159$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
ec06701b 8160if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10946b02
AX
8161 $as_echo_n "(cached) " >&6
8162else
8163 lt_cv_prog_compiler_pic_works=no
8164 ac_outfile=conftest.$ac_objext
8165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
ec06701b 8166 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10946b02
AX
8167 # Insert the option either (1) after the last *FLAGS variable, or
8168 # (2) before a word containing "conftest.", or (3) at the end.
8169 # Note that $ac_compile itself does not contain backslashes and begins
8170 # with a dollar sign (not a hyphen), so the echo should work correctly.
8171 # The option is referenced via a variable to avoid confusing sed.
8172 lt_compile=`echo "$ac_compile" | $SED \
8173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8175 -e 's:$: $lt_compiler_flag:'`
ec06701b 8176 (eval echo "\"\$as_me:8176: $lt_compile\"" >&5)
10946b02
AX
8177 (eval "$lt_compile" 2>conftest.err)
8178 ac_status=$?
8179 cat conftest.err >&5
ec06701b 8180 echo "$as_me:8180: \$? = $ac_status" >&5
10946b02
AX
8181 if (exit $ac_status) && test -s "$ac_outfile"; then
8182 # The compiler can only warn and ignore the option if not recognized
8183 # So say no if there are warnings other than the usual output.
ec06701b 8184 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10946b02
AX
8185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8187 lt_cv_prog_compiler_pic_works=yes
8188 fi
8189 fi
8190 $RM conftest*
8191
8192fi
ec06701b 8193{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10946b02
AX
8194$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8195
ec06701b 8196if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10946b02
AX
8197 case $lt_prog_compiler_pic in
8198 "" | " "*) ;;
8199 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8200 esac
8201else
8202 lt_prog_compiler_pic=
8203 lt_prog_compiler_can_build_shared=no
8204fi
8205
8206fi
8207
8208
8209
8210
8211
8212
10946b02
AX
8213#
8214# Check to make sure the static flag actually works.
8215#
8216wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
ec06701b 8217{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10946b02 8218$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ec06701b 8219if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10946b02
AX
8220 $as_echo_n "(cached) " >&6
8221else
8222 lt_cv_prog_compiler_static_works=no
ec06701b 8223 save_LDFLAGS="$LDFLAGS"
10946b02
AX
8224 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8227 # The linker can only warn and ignore the option if not recognized
8228 # So say no if there are warnings
8229 if test -s conftest.err; then
8230 # Append any errors to the config.log.
8231 cat conftest.err 1>&5
ec06701b 8232 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10946b02
AX
8233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8234 if diff conftest.exp conftest.er2 >/dev/null; then
8235 lt_cv_prog_compiler_static_works=yes
8236 fi
8237 else
8238 lt_cv_prog_compiler_static_works=yes
8239 fi
8240 fi
8241 $RM -r conftest*
ec06701b 8242 LDFLAGS="$save_LDFLAGS"
10946b02
AX
8243
8244fi
ec06701b 8245{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10946b02
AX
8246$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8247
ec06701b 8248if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10946b02
AX
8249 :
8250else
8251 lt_prog_compiler_static=
8252fi
8253
8254
8255
8256
8257
8258
8259
ec06701b 8260 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10946b02 8261$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ec06701b 8262if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10946b02
AX
8263 $as_echo_n "(cached) " >&6
8264else
8265 lt_cv_prog_compiler_c_o=no
8266 $RM -r conftest 2>/dev/null
8267 mkdir conftest
8268 cd conftest
8269 mkdir out
8270 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271
8272 lt_compiler_flag="-o out/conftest2.$ac_objext"
8273 # Insert the option either (1) after the last *FLAGS variable, or
8274 # (2) before a word containing "conftest.", or (3) at the end.
8275 # Note that $ac_compile itself does not contain backslashes and begins
8276 # with a dollar sign (not a hyphen), so the echo should work correctly.
8277 lt_compile=`echo "$ac_compile" | $SED \
8278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8280 -e 's:$: $lt_compiler_flag:'`
ec06701b 8281 (eval echo "\"\$as_me:8281: $lt_compile\"" >&5)
10946b02
AX
8282 (eval "$lt_compile" 2>out/conftest.err)
8283 ac_status=$?
8284 cat out/conftest.err >&5
ec06701b 8285 echo "$as_me:8285: \$? = $ac_status" >&5
10946b02
AX
8286 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8287 then
8288 # The compiler can only warn and ignore the option if not recognized
8289 # So say no if there are warnings
ec06701b 8290 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10946b02
AX
8291 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8292 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8293 lt_cv_prog_compiler_c_o=yes
8294 fi
8295 fi
8296 chmod u+w . 2>&5
8297 $RM conftest*
8298 # SGI C++ compiler will create directory out/ii_files/ for
8299 # template instantiation
8300 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8301 $RM out/* && rmdir out
8302 cd ..
8303 $RM -r conftest
8304 $RM conftest*
8305
8306fi
ec06701b 8307{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10946b02
AX
8308$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8309
8310
8311
8312
8313
8314
ec06701b 8315 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10946b02 8316$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ec06701b 8317if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10946b02
AX
8318 $as_echo_n "(cached) " >&6
8319else
8320 lt_cv_prog_compiler_c_o=no
8321 $RM -r conftest 2>/dev/null
8322 mkdir conftest
8323 cd conftest
8324 mkdir out
8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326
8327 lt_compiler_flag="-o out/conftest2.$ac_objext"
8328 # Insert the option either (1) after the last *FLAGS variable, or
8329 # (2) before a word containing "conftest.", or (3) at the end.
8330 # Note that $ac_compile itself does not contain backslashes and begins
8331 # with a dollar sign (not a hyphen), so the echo should work correctly.
8332 lt_compile=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
ec06701b 8336 (eval echo "\"\$as_me:8336: $lt_compile\"" >&5)
10946b02
AX
8337 (eval "$lt_compile" 2>out/conftest.err)
8338 ac_status=$?
8339 cat out/conftest.err >&5
ec06701b 8340 echo "$as_me:8340: \$? = $ac_status" >&5
10946b02
AX
8341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8342 then
8343 # The compiler can only warn and ignore the option if not recognized
8344 # So say no if there are warnings
ec06701b 8345 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10946b02
AX
8346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8348 lt_cv_prog_compiler_c_o=yes
8349 fi
8350 fi
8351 chmod u+w . 2>&5
8352 $RM conftest*
8353 # SGI C++ compiler will create directory out/ii_files/ for
8354 # template instantiation
8355 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8356 $RM out/* && rmdir out
8357 cd ..
8358 $RM -r conftest
8359 $RM conftest*
8360
8361fi
ec06701b 8362{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10946b02
AX
8363$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8364
8365
8366
8367
ec06701b
AX
8368hard_links="nottested"
8369if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10946b02 8370 # do not overwrite the value of need_locks provided by the user
ec06701b 8371 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10946b02
AX
8372$as_echo_n "checking if we can lock with hard links... " >&6; }
8373 hard_links=yes
8374 $RM conftest*
8375 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8376 touch conftest.a
8377 ln conftest.a conftest.b 2>&5 || hard_links=no
8378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
ec06701b 8379 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10946b02 8380$as_echo "$hard_links" >&6; }
ec06701b
AX
8381 if test "$hard_links" = no; then
8382 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8383$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10946b02
AX
8384 need_locks=warn
8385 fi
8386else
8387 need_locks=no
8388fi
8389
8390
8391
8392
8393
8394
ec06701b 8395 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10946b02
AX
8396$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8397
8398 runpath_var=
8399 allow_undefined_flag=
8400 always_export_symbols=no
8401 archive_cmds=
8402 archive_expsym_cmds=
8403 compiler_needs_object=no
8404 enable_shared_with_static_runtimes=no
8405 export_dynamic_flag_spec=
8406 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8407 hardcode_automatic=no
8408 hardcode_direct=no
8409 hardcode_direct_absolute=no
8410 hardcode_libdir_flag_spec=
ec06701b 8411 hardcode_libdir_flag_spec_ld=
10946b02
AX
8412 hardcode_libdir_separator=
8413 hardcode_minus_L=no
8414 hardcode_shlibpath_var=unsupported
8415 inherit_rpath=no
8416 link_all_deplibs=unknown
8417 module_cmds=
8418 module_expsym_cmds=
8419 old_archive_from_new_cmds=
8420 old_archive_from_expsyms_cmds=
8421 thread_safe_flag_spec=
8422 whole_archive_flag_spec=
8423 # include_expsyms should be a list of space-separated symbols to be *always*
8424 # included in the symbol list
8425 include_expsyms=
8426 # exclude_expsyms can be an extended regexp of symbols to exclude
ec06701b
AX
8427 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8428 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8429 # as well as any symbol that contains `d'.
10946b02
AX
8430 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8431 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8432 # platforms (ab)use it in PIC code, but their linkers get confused if
8433 # the symbol is explicitly referenced. Since portable code cannot
8434 # rely on this symbol name, it's probably fine to never include it in
8435 # preloaded symbol tables.
8436 # Exclude shared library initialization/finalization symbols.
8437 extract_expsyms_cmds=
8438
8439 case $host_os in
8440 cygwin* | mingw* | pw32* | cegcc*)
8441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8442 # When not using gcc, we currently assume that we are using
8443 # Microsoft Visual C++.
ec06701b 8444 if test "$GCC" != yes; then
10946b02
AX
8445 with_gnu_ld=no
8446 fi
8447 ;;
8448 interix*)
8449 # we just hope/assume this is gcc and not c89 (= MSVC++)
8450 with_gnu_ld=yes
8451 ;;
ec06701b 8452 openbsd*)
10946b02
AX
8453 with_gnu_ld=no
8454 ;;
10946b02
AX
8455 esac
8456
8457 ld_shlibs=yes
ec06701b 8458 if test "$with_gnu_ld" = yes; then
10946b02 8459 # If archive_cmds runs LD, not CC, wlarc should be empty
ec06701b 8460 wlarc='${wl}'
10946b02
AX
8461
8462 # Set some defaults for GNU ld with shared library support. These
8463 # are reset later if shared libraries are not supported. Putting them
8464 # here allows them to be overridden if necessary.
8465 runpath_var=LD_RUN_PATH
ec06701b
AX
8466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8467 export_dynamic_flag_spec='${wl}--export-dynamic'
10946b02
AX
8468 # ancient GNU ld didn't support --whole-archive et. al.
8469 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
ec06701b 8470 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10946b02
AX
8471 else
8472 whole_archive_flag_spec=
8473 fi
8474 supports_anon_versioning=no
ec06701b 8475 case `$LD -v 2>&1` in
10946b02
AX
8476 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8477 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8478 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8479 *\ 2.11.*) ;; # other 2.11 versions
8480 *) supports_anon_versioning=yes ;;
8481 esac
8482
8483 # See if GNU ld supports shared libraries.
8484 case $host_os in
8485 aix[3-9]*)
8486 # On AIX/PPC, the GNU linker is very broken
ec06701b 8487 if test "$host_cpu" != ia64; then
10946b02
AX
8488 ld_shlibs=no
8489 cat <<_LT_EOF 1>&2
8490
ec06701b 8491*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10946b02
AX
8492*** to be unable to reliably create shared libraries on AIX.
8493*** Therefore, libtool is disabling shared libraries support. If you
ec06701b
AX
8494*** really care for shared libraries, you may want to modify your PATH
8495*** so that a non-GNU linker is found, and then restart.
10946b02
AX
8496
8497_LT_EOF
8498 fi
8499 ;;
8500
8501 amigaos*)
8502 case $host_cpu in
8503 powerpc)
8504 # see comment about AmigaOS4 .so support
ec06701b 8505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946b02
AX
8506 archive_expsym_cmds=''
8507 ;;
8508 m68k)
8509 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)'
8510 hardcode_libdir_flag_spec='-L$libdir'
8511 hardcode_minus_L=yes
8512 ;;
8513 esac
8514 ;;
8515
8516 beos*)
8517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8518 allow_undefined_flag=unsupported
8519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8520 # support --undefined. This deserves some investigation. FIXME
ec06701b 8521 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946b02
AX
8522 else
8523 ld_shlibs=no
8524 fi
8525 ;;
8526
8527 cygwin* | mingw* | pw32* | cegcc*)
8528 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8529 # as there is no search path for DLLs.
8530 hardcode_libdir_flag_spec='-L$libdir'
10946b02
AX
8531 allow_undefined_flag=unsupported
8532 always_export_symbols=no
8533 enable_shared_with_static_runtimes=yes
ec06701b 8534 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10946b02
AX
8535
8536 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
ec06701b
AX
8537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8538 # If the export-symbols file already is a .def file (1st line
8539 # is EXPORTS), use it as is; otherwise, prepend...
8540 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8541 cp $export_symbols $output_objdir/$soname.def;
8542 else
8543 echo EXPORTS > $output_objdir/$soname.def;
8544 cat $export_symbols >> $output_objdir/$soname.def;
8545 fi~
8546 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10946b02
AX
8547 else
8548 ld_shlibs=no
8549 fi
8550 ;;
8551
10946b02
AX
8552 interix[3-9]*)
8553 hardcode_direct=no
8554 hardcode_shlibpath_var=no
ec06701b
AX
8555 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8556 export_dynamic_flag_spec='${wl}-E'
10946b02
AX
8557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8558 # Instead, shared libraries are loaded at an image base (0x10000000 by
8559 # default) and relocated if they conflict, which is a slow very memory
8560 # consuming and fragmenting process. To avoid this, we pick a random,
8561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
ec06701b
AX
8563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8564 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'
10946b02
AX
8565 ;;
8566
ec06701b 8567 gnu* | linux* | tpf* | k*bsd*-gnu)
10946b02 8568 tmp_diet=no
ec06701b 8569 if test "$host_os" = linux-dietlibc; then
10946b02
AX
8570 case $cc_basename in
8571 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8572 esac
8573 fi
8574 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
ec06701b 8575 && test "$tmp_diet" = no
10946b02 8576 then
ec06701b 8577 tmp_addflag=
10946b02
AX
8578 tmp_sharedflag='-shared'
8579 case $cc_basename,$host_cpu in
8580 pgcc*) # Portland Group C compiler
ec06701b 8581 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'
10946b02
AX
8582 tmp_addflag=' $pic_flag'
8583 ;;
ec06701b
AX
8584 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8585 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'
10946b02
AX
8586 tmp_addflag=' $pic_flag -Mnomain' ;;
8587 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8588 tmp_addflag=' -i_dynamic' ;;
8589 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8590 tmp_addflag=' -i_dynamic -nofor_main' ;;
8591 ifc* | ifort*) # Intel Fortran compiler
8592 tmp_addflag=' -nofor_main' ;;
8593 lf95*) # Lahey Fortran 8.1
8594 whole_archive_flag_spec=
8595 tmp_sharedflag='--shared' ;;
ec06701b 8596 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10946b02
AX
8597 tmp_sharedflag='-qmkshrobj'
8598 tmp_addflag= ;;
10946b02
AX
8599 esac
8600 case `$CC -V 2>&1 | sed 5q` in
8601 *Sun\ C*) # Sun C 5.9
ec06701b 8602 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'
10946b02
AX
8603 compiler_needs_object=yes
8604 tmp_sharedflag='-G' ;;
8605 *Sun\ F*) # Sun Fortran 8.3
8606 tmp_sharedflag='-G' ;;
8607 esac
ec06701b 8608 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946b02 8609
ec06701b 8610 if test "x$supports_anon_versioning" = xyes; then
10946b02 8611 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
ec06701b
AX
8612 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8613 echo "local: *; };" >> $output_objdir/$libname.ver~
8614 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10946b02
AX
8615 fi
8616
8617 case $cc_basename in
ec06701b 8618 xlf*)
10946b02
AX
8619 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8620 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
ec06701b
AX
8621 hardcode_libdir_flag_spec=
8622 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8623 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8624 if test "x$supports_anon_versioning" = xyes; then
10946b02 8625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
ec06701b
AX
8626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8627 echo "local: *; };" >> $output_objdir/$libname.ver~
8628 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10946b02
AX
8629 fi
8630 ;;
8631 esac
8632 else
8633 ld_shlibs=no
8634 fi
8635 ;;
8636
2ea56c1d 8637 netbsd*)
10946b02
AX
8638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8639 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8640 wlarc=
8641 else
ec06701b
AX
8642 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
8644 fi
8645 ;;
8646
8647 solaris*)
8648 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8649 ld_shlibs=no
8650 cat <<_LT_EOF 1>&2
8651
8652*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8653*** create shared libraries on Solaris systems. Therefore, libtool
8654*** is disabling shared libraries support. We urge you to upgrade GNU
8655*** binutils to release 2.9.1 or newer. Another option is to modify
8656*** your PATH or compiler configuration so that the native linker is
8657*** used, and then restart.
8658
8659_LT_EOF
8660 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
ec06701b
AX
8661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
8663 else
8664 ld_shlibs=no
8665 fi
8666 ;;
8667
8668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8669 case `$LD -v 2>&1` in
8670 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8671 ld_shlibs=no
8672 cat <<_LT_EOF 1>&2
8673
ec06701b 8674*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10946b02
AX
8675*** reliably create shared libraries on SCO systems. Therefore, libtool
8676*** is disabling shared libraries support. We urge you to upgrade GNU
8677*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8678*** your PATH or compiler configuration so that the native linker is
8679*** used, and then restart.
8680
8681_LT_EOF
8682 ;;
8683 *)
8684 # For security reasons, it is highly recommended that you always
8685 # use absolute paths for naming shared libraries, and exclude the
8686 # DT_RUNPATH tag from executables and libraries. But doing so
8687 # requires that you compile everything twice, which is a pain.
8688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
ec06701b
AX
8689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
8692 else
8693 ld_shlibs=no
8694 fi
8695 ;;
8696 esac
8697 ;;
8698
8699 sunos4*)
8700 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8701 wlarc=
8702 hardcode_direct=yes
8703 hardcode_shlibpath_var=no
8704 ;;
8705
8706 *)
8707 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
ec06701b
AX
8708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10946b02
AX
8710 else
8711 ld_shlibs=no
8712 fi
8713 ;;
8714 esac
8715
ec06701b 8716 if test "$ld_shlibs" = no; then
10946b02
AX
8717 runpath_var=
8718 hardcode_libdir_flag_spec=
8719 export_dynamic_flag_spec=
8720 whole_archive_flag_spec=
8721 fi
8722 else
8723 # PORTME fill in a description of your system's linker (not GNU ld)
8724 case $host_os in
8725 aix3*)
8726 allow_undefined_flag=unsupported
8727 always_export_symbols=yes
8728 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'
8729 # Note: this linker hardcodes the directories in LIBPATH if there
8730 # are no directories specified by -L.
8731 hardcode_minus_L=yes
ec06701b 8732 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10946b02
AX
8733 # Neither direct hardcoding nor static linking is supported with a
8734 # broken collect2.
8735 hardcode_direct=unsupported
8736 fi
8737 ;;
8738
8739 aix[4-9]*)
ec06701b 8740 if test "$host_cpu" = ia64; then
10946b02
AX
8741 # On IA64, the linker does run time linking by default, so we don't
8742 # have to do anything special.
8743 aix_use_runtimelinking=no
8744 exp_sym_flag='-Bexport'
ec06701b 8745 no_entry_flag=""
10946b02
AX
8746 else
8747 # If we're using GNU nm, then we don't want the "-C" option.
ec06701b 8748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10946b02 8749 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
ec06701b 8750 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'
10946b02 8751 else
ec06701b 8752 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'
10946b02
AX
8753 fi
8754 aix_use_runtimelinking=no
8755
8756 # Test if we are trying to use run time linking or normal
8757 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
ec06701b 8758 # need to do runtime linking.
10946b02
AX
8759 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8760 for ld_flag in $LDFLAGS; do
ec06701b 8761 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10946b02
AX
8762 aix_use_runtimelinking=yes
8763 break
8764 fi
8765 done
8766 ;;
8767 esac
8768
8769 exp_sym_flag='-bexport'
8770 no_entry_flag='-bnoentry'
8771 fi
8772
8773 # When large executables or shared objects are built, AIX ld can
8774 # have problems creating the table of contents. If linking a library
8775 # or program results in "error TOC overflow" add -mminimal-toc to
8776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8778
8779 archive_cmds=''
8780 hardcode_direct=yes
8781 hardcode_direct_absolute=yes
8782 hardcode_libdir_separator=':'
8783 link_all_deplibs=yes
ec06701b 8784 file_list_spec='${wl}-f,'
10946b02 8785
ec06701b 8786 if test "$GCC" = yes; then
10946b02
AX
8787 case $host_os in aix4.[012]|aix4.[012].*)
8788 # We only want to do this on AIX 4.2 and lower, the check
8789 # below for broken collect2 doesn't work under 4.3+
ec06701b 8790 collect2name=`${CC} -print-prog-name=collect2`
10946b02
AX
8791 if test -f "$collect2name" &&
8792 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8793 then
8794 # We have reworked collect2
8795 :
8796 else
8797 # We have old collect2
8798 hardcode_direct=unsupported
8799 # It fails to find uninstalled libraries when the uninstalled
8800 # path is not listed in the libpath. Setting hardcode_minus_L
8801 # to unsupported forces relinking
8802 hardcode_minus_L=yes
8803 hardcode_libdir_flag_spec='-L$libdir'
8804 hardcode_libdir_separator=
8805 fi
8806 ;;
8807 esac
8808 shared_flag='-shared'
ec06701b
AX
8809 if test "$aix_use_runtimelinking" = yes; then
8810 shared_flag="$shared_flag "'${wl}-G'
10946b02 8811 fi
10946b02
AX
8812 else
8813 # not using gcc
ec06701b 8814 if test "$host_cpu" = ia64; then
10946b02
AX
8815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8816 # chokes on -Wl,-G. The following line is correct:
8817 shared_flag='-G'
8818 else
ec06701b
AX
8819 if test "$aix_use_runtimelinking" = yes; then
8820 shared_flag='${wl}-G'
10946b02 8821 else
ec06701b 8822 shared_flag='${wl}-bM:SRE'
10946b02
AX
8823 fi
8824 fi
8825 fi
8826
ec06701b 8827 export_dynamic_flag_spec='${wl}-bexpall'
10946b02
AX
8828 # It seems that -bexpall does not export symbols beginning with
8829 # underscore (_), so it is better to generate a list of symbols to export.
8830 always_export_symbols=yes
ec06701b 8831 if test "$aix_use_runtimelinking" = yes; then
10946b02
AX
8832 # Warning - without using the other runtime loading flags (-brtl),
8833 # -berok will link without error, but may produce a broken library.
8834 allow_undefined_flag='-berok'
8835 # Determine the default libpath from the value encoded in an
8836 # empty executable.
ec06701b
AX
8837 cat >conftest.$ac_ext <<_ACEOF
8838/* confdefs.h. */
8839_ACEOF
8840cat confdefs.h >>conftest.$ac_ext
8841cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
8842/* end confdefs.h. */
8843
8844int
8845main ()
8846{
8847
8848 ;
8849 return 0;
8850}
8851_ACEOF
ec06701b
AX
8852rm -f conftest.$ac_objext conftest$ac_exeext
8853if { (ac_try="$ac_link"
8854case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8857esac
8858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8859$as_echo "$ac_try_echo") >&5
8860 (eval "$ac_link") 2>conftest.er1
8861 ac_status=$?
8862 grep -v '^ *+' conftest.er1 >conftest.err
8863 rm -f conftest.er1
8864 cat conftest.err >&5
8865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest$ac_exeext && {
8870 test "$cross_compiling" = yes ||
8871 $as_test_x conftest$ac_exeext
8872 }; then
8873
8874lt_aix_libpath_sed='
8875 /Import File Strings/,/^$/ {
8876 /^0/ {
8877 s/^0 *\(.*\)$/\1/
8878 p
8879 }
8880 }'
8881aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882# Check for a 64-bit object if we didn't find anything.
8883if test -z "$aix_libpath"; then
8884 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10946b02 8885fi
ec06701b
AX
8886else
8887 $as_echo "$as_me: failed program was:" >&5
8888sed 's/^/| /' conftest.$ac_ext >&5
10946b02 8889
10946b02 8890
10946b02
AX
8891fi
8892
ec06701b
AX
8893rm -rf conftest.dSYM
8894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8895 conftest$ac_exeext conftest.$ac_ext
8896if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8897
8898 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8899 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"
10946b02 8900 else
ec06701b
AX
8901 if test "$host_cpu" = ia64; then
8902 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10946b02 8903 allow_undefined_flag="-z nodefs"
ec06701b 8904 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"
10946b02
AX
8905 else
8906 # Determine the default libpath from the value encoded in an
8907 # empty executable.
ec06701b
AX
8908 cat >conftest.$ac_ext <<_ACEOF
8909/* confdefs.h. */
8910_ACEOF
8911cat confdefs.h >>conftest.$ac_ext
8912cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
8913/* end confdefs.h. */
8914
8915int
8916main ()
8917{
8918
8919 ;
8920 return 0;
8921}
8922_ACEOF
ec06701b
AX
8923rm -f conftest.$ac_objext conftest$ac_exeext
8924if { (ac_try="$ac_link"
8925case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
8929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8930$as_echo "$ac_try_echo") >&5
8931 (eval "$ac_link") 2>conftest.er1
8932 ac_status=$?
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
8936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && {
8938 test -z "$ac_c_werror_flag" ||
8939 test ! -s conftest.err
8940 } && test -s conftest$ac_exeext && {
8941 test "$cross_compiling" = yes ||
8942 $as_test_x conftest$ac_exeext
8943 }; then
8944
8945lt_aix_libpath_sed='
8946 /Import File Strings/,/^$/ {
8947 /^0/ {
8948 s/^0 *\(.*\)$/\1/
8949 p
8950 }
8951 }'
8952aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8953# Check for a 64-bit object if we didn't find anything.
8954if test -z "$aix_libpath"; then
8955 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10946b02 8956fi
ec06701b
AX
8957else
8958 $as_echo "$as_me: failed program was:" >&5
8959sed 's/^/| /' conftest.$ac_ext >&5
10946b02 8960
10946b02 8961
10946b02
AX
8962fi
8963
ec06701b
AX
8964rm -rf conftest.dSYM
8965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8966 conftest$ac_exeext conftest.$ac_ext
8967if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8968
8969 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10946b02
AX
8970 # Warning - without using the other run time loading flags,
8971 # -berok will link without error, but may produce a broken library.
ec06701b
AX
8972 no_undefined_flag=' ${wl}-bernotok'
8973 allow_undefined_flag=' ${wl}-berok'
8974 # Exported symbols can be pulled into shared objects from archives
8975 whole_archive_flag_spec='$convenience'
10946b02 8976 archive_cmds_need_lc=yes
ec06701b
AX
8977 # This is similar to how AIX traditionally builds its shared libraries.
8978 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'
10946b02
AX
8979 fi
8980 fi
8981 ;;
8982
8983 amigaos*)
8984 case $host_cpu in
8985 powerpc)
8986 # see comment about AmigaOS4 .so support
ec06701b 8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946b02
AX
8988 archive_expsym_cmds=''
8989 ;;
8990 m68k)
8991 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)'
8992 hardcode_libdir_flag_spec='-L$libdir'
8993 hardcode_minus_L=yes
8994 ;;
8995 esac
8996 ;;
8997
8998 bsdi[45]*)
8999 export_dynamic_flag_spec=-rdynamic
9000 ;;
9001
9002 cygwin* | mingw* | pw32* | cegcc*)
9003 # When not using gcc, we currently assume that we are using
9004 # Microsoft Visual C++.
9005 # hardcode_libdir_flag_spec is actually meaningless, as there is
9006 # no search path for DLLs.
ec06701b
AX
9007 hardcode_libdir_flag_spec=' '
9008 allow_undefined_flag=unsupported
9009 # Tell ltmain to make .lib files, not .a files.
9010 libext=lib
9011 # Tell ltmain to make .dll files, not .so files.
9012 shrext_cmds=".dll"
9013 # FIXME: Setting linknames here is a bad hack.
9014 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9015 # The linker will automatically build a .lib file if we build a DLL.
9016 old_archive_from_new_cmds='true'
9017 # FIXME: Should let the user specify the lib program.
9018 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9019 fix_srcfile_path='`cygpath -w "$srcfile"`'
9020 enable_shared_with_static_runtimes=yes
10946b02
AX
9021 ;;
9022
9023 darwin* | rhapsody*)
9024
9025
9026 archive_cmds_need_lc=no
9027 hardcode_direct=no
9028 hardcode_automatic=yes
9029 hardcode_shlibpath_var=unsupported
ec06701b 9030 whole_archive_flag_spec=''
10946b02 9031 link_all_deplibs=yes
ec06701b 9032 allow_undefined_flag="$_lt_dar_allow_undefined"
10946b02 9033 case $cc_basename in
ec06701b 9034 ifort*) _lt_dar_can_shared=yes ;;
10946b02
AX
9035 *) _lt_dar_can_shared=$GCC ;;
9036 esac
ec06701b
AX
9037 if test "$_lt_dar_can_shared" = "yes"; then
9038 output_verbose_link_cmd=echo
9039 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9040 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9041 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}"
9042 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}"
10946b02
AX
9043
9044 else
9045 ld_shlibs=no
9046 fi
9047
9048 ;;
9049
9050 dgux*)
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_libdir_flag_spec='-L$libdir'
9053 hardcode_shlibpath_var=no
9054 ;;
9055
ec06701b
AX
9056 freebsd1*)
9057 ld_shlibs=no
9058 ;;
9059
10946b02
AX
9060 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9061 # support. Future versions do this automatically, but an explicit c++rt0.o
9062 # does not break anything, and helps significantly (at the cost of a little
9063 # extra space).
9064 freebsd2.2*)
9065 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9066 hardcode_libdir_flag_spec='-R$libdir'
9067 hardcode_direct=yes
9068 hardcode_shlibpath_var=no
9069 ;;
9070
9071 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
ec06701b 9072 freebsd2*)
10946b02
AX
9073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9074 hardcode_direct=yes
9075 hardcode_minus_L=yes
9076 hardcode_shlibpath_var=no
9077 ;;
9078
9079 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9080 freebsd* | dragonfly*)
ec06701b 9081 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9082 hardcode_libdir_flag_spec='-R$libdir'
9083 hardcode_direct=yes
9084 hardcode_shlibpath_var=no
9085 ;;
9086
9087 hpux9*)
ec06701b
AX
9088 if test "$GCC" = yes; then
9089 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'
10946b02 9090 else
ec06701b 9091 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'
10946b02 9092 fi
ec06701b 9093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10946b02
AX
9094 hardcode_libdir_separator=:
9095 hardcode_direct=yes
9096
9097 # hardcode_minus_L: Not really in the search PATH,
9098 # but as the default location of the library.
9099 hardcode_minus_L=yes
ec06701b 9100 export_dynamic_flag_spec='${wl}-E'
10946b02
AX
9101 ;;
9102
9103 hpux10*)
ec06701b
AX
9104 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9105 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9106 else
9107 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9108 fi
ec06701b
AX
9109 if test "$with_gnu_ld" = no; then
9110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111 hardcode_libdir_flag_spec_ld='+b $libdir'
10946b02
AX
9112 hardcode_libdir_separator=:
9113 hardcode_direct=yes
9114 hardcode_direct_absolute=yes
ec06701b 9115 export_dynamic_flag_spec='${wl}-E'
10946b02
AX
9116 # hardcode_minus_L: Not really in the search PATH,
9117 # but as the default location of the library.
9118 hardcode_minus_L=yes
9119 fi
9120 ;;
9121
9122 hpux11*)
ec06701b 9123 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10946b02
AX
9124 case $host_cpu in
9125 hppa*64*)
ec06701b 9126 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9127 ;;
9128 ia64*)
ec06701b 9129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9130 ;;
9131 *)
ec06701b 9132 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9133 ;;
9134 esac
9135 else
9136 case $host_cpu in
9137 hppa*64*)
ec06701b 9138 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9139 ;;
9140 ia64*)
ec06701b 9141 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9142 ;;
9143 *)
ec06701b 9144 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9145 ;;
9146 esac
9147 fi
ec06701b
AX
9148 if test "$with_gnu_ld" = no; then
9149 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10946b02
AX
9150 hardcode_libdir_separator=:
9151
9152 case $host_cpu in
9153 hppa*64*|ia64*)
9154 hardcode_direct=no
9155 hardcode_shlibpath_var=no
9156 ;;
9157 *)
9158 hardcode_direct=yes
9159 hardcode_direct_absolute=yes
ec06701b 9160 export_dynamic_flag_spec='${wl}-E'
10946b02
AX
9161
9162 # hardcode_minus_L: Not really in the search PATH,
9163 # but as the default location of the library.
9164 hardcode_minus_L=yes
9165 ;;
9166 esac
9167 fi
9168 ;;
9169
9170 irix5* | irix6* | nonstopux*)
ec06701b
AX
9171 if test "$GCC" = yes; then
9172 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'
10946b02
AX
9173 # Try to use the -exported_symbol ld option, if it does not
9174 # work, assume that -exports_file does not work either and
9175 # implicitly export all symbols.
ec06701b
AX
9176 save_LDFLAGS="$LDFLAGS"
9177 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9178 cat >conftest.$ac_ext <<_ACEOF
9179int foo(void) {}
10946b02 9180_ACEOF
ec06701b
AX
9181rm -f conftest.$ac_objext conftest$ac_exeext
9182if { (ac_try="$ac_link"
9183case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
9187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9188$as_echo "$ac_try_echo") >&5
9189 (eval "$ac_link") 2>conftest.er1
9190 ac_status=$?
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && {
9196 test -z "$ac_c_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest$ac_exeext && {
9199 test "$cross_compiling" = yes ||
9200 $as_test_x conftest$ac_exeext
9201 }; then
9202 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'
9203
10946b02 9204else
ec06701b
AX
9205 $as_echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208
10946b02 9209fi
ec06701b
AX
9210
9211rm -rf conftest.dSYM
9212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9213 conftest$ac_exeext conftest.$ac_ext
9214 LDFLAGS="$save_LDFLAGS"
10946b02 9215 else
ec06701b
AX
9216 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'
9217 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'
10946b02
AX
9218 fi
9219 archive_cmds_need_lc='no'
ec06701b 9220 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946b02 9221 hardcode_libdir_separator=:
ec06701b
AX
9222 inherit_rpath=yes
9223 link_all_deplibs=yes
ac9cc135
AX
9224 ;;
9225
2ea56c1d 9226 netbsd*)
10946b02
AX
9227 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9229 else
9230 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9231 fi
9232 hardcode_libdir_flag_spec='-R$libdir'
9233 hardcode_direct=yes
9234 hardcode_shlibpath_var=no
9235 ;;
9236
9237 newsos6)
9238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9239 hardcode_direct=yes
ec06701b 9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946b02
AX
9241 hardcode_libdir_separator=:
9242 hardcode_shlibpath_var=no
9243 ;;
9244
9245 *nto* | *qnx*)
9246 ;;
9247
ec06701b 9248 openbsd*)
10946b02
AX
9249 if test -f /usr/libexec/ld.so; then
9250 hardcode_direct=yes
9251 hardcode_shlibpath_var=no
9252 hardcode_direct_absolute=yes
ec06701b 9253 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946b02 9254 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
ec06701b
AX
9255 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9257 export_dynamic_flag_spec='${wl}-E'
10946b02 9258 else
ec06701b
AX
9259 case $host_os in
9260 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_libdir_flag_spec='-R$libdir'
9263 ;;
9264 *)
9265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9266 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9267 ;;
9268 esac
10946b02
AX
9269 fi
9270 else
9271 ld_shlibs=no
9272 fi
9273 ;;
9274
9275 os2*)
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9278 allow_undefined_flag=unsupported
ec06701b
AX
9279 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'
9280 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10946b02
AX
9281 ;;
9282
9283 osf3*)
ec06701b
AX
9284 if test "$GCC" = yes; then
9285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9286 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'
10946b02
AX
9287 else
9288 allow_undefined_flag=' -expect_unresolved \*'
ec06701b 9289 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'
10946b02
AX
9290 fi
9291 archive_cmds_need_lc='no'
ec06701b 9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946b02
AX
9293 hardcode_libdir_separator=:
9294 ;;
9295
9296 osf4* | osf5*) # as osf3* with the addition of -msym flag
ec06701b
AX
9297 if test "$GCC" = yes; then
9298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9299 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'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10946b02
AX
9301 else
9302 allow_undefined_flag=' -expect_unresolved \*'
ec06701b 9303 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'
10946b02 9304 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~
ec06701b 9305 $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'
10946b02
AX
9306
9307 # Both c and cxx compiler support -rpath directly
9308 hardcode_libdir_flag_spec='-rpath $libdir'
9309 fi
9310 archive_cmds_need_lc='no'
9311 hardcode_libdir_separator=:
9312 ;;
9313
9314 solaris*)
9315 no_undefined_flag=' -z defs'
ec06701b
AX
9316 if test "$GCC" = yes; then
9317 wlarc='${wl}'
9318 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 9319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ec06701b 9320 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10946b02
AX
9321 else
9322 case `$CC -V 2>&1` in
9323 *"Compilers 5.0"*)
9324 wlarc=''
ec06701b 9325 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946b02 9326 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ec06701b 9327 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10946b02
AX
9328 ;;
9329 *)
ec06701b
AX
9330 wlarc='${wl}'
9331 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 9332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
ec06701b 9333 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10946b02
AX
9334 ;;
9335 esac
9336 fi
9337 hardcode_libdir_flag_spec='-R$libdir'
9338 hardcode_shlibpath_var=no
9339 case $host_os in
9340 solaris2.[0-5] | solaris2.[0-5].*) ;;
9341 *)
9342 # The compiler driver will combine and reorder linker options,
ec06701b 9343 # but understands `-z linker_flag'. GCC discards it without `$wl',
10946b02
AX
9344 # but is careful enough not to reorder.
9345 # Supported since Solaris 2.6 (maybe 2.5.1?)
ec06701b
AX
9346 if test "$GCC" = yes; then
9347 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10946b02
AX
9348 else
9349 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9350 fi
9351 ;;
9352 esac
9353 link_all_deplibs=yes
9354 ;;
9355
9356 sunos4*)
ec06701b 9357 if test "x$host_vendor" = xsequent; then
10946b02
AX
9358 # Use $CC to link under sequent, because it throws in some extra .o
9359 # files that make .init and .fini sections work.
ec06701b 9360 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9361 else
9362 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9363 fi
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_direct=yes
9366 hardcode_minus_L=yes
9367 hardcode_shlibpath_var=no
9368 ;;
9369
9370 sysv4)
9371 case $host_vendor in
9372 sni)
9373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374 hardcode_direct=yes # is this really true???
9375 ;;
9376 siemens)
9377 ## LD is ld it makes a PLAMLIB
9378 ## CC just makes a GrossModule.
9379 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9380 reload_cmds='$CC -r -o $output$reload_objs'
9381 hardcode_direct=no
9382 ;;
9383 motorola)
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9386 ;;
9387 esac
9388 runpath_var='LD_RUN_PATH'
9389 hardcode_shlibpath_var=no
9390 ;;
9391
9392 sysv4.3*)
9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_shlibpath_var=no
9395 export_dynamic_flag_spec='-Bexport'
9396 ;;
9397
9398 sysv4*MP*)
9399 if test -d /usr/nec; then
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_shlibpath_var=no
9402 runpath_var=LD_RUN_PATH
9403 hardcode_runpath_var=yes
9404 ld_shlibs=yes
9405 fi
9406 ;;
9407
9408 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
ec06701b 9409 no_undefined_flag='${wl}-z,text'
10946b02
AX
9410 archive_cmds_need_lc=no
9411 hardcode_shlibpath_var=no
9412 runpath_var='LD_RUN_PATH'
9413
ec06701b
AX
9414 if test "$GCC" = yes; then
9415 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 9417 else
ec06701b
AX
9418 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9420 fi
9421 ;;
9422
9423 sysv5* | sco3.2v5* | sco5v6*)
ec06701b 9424 # Note: We can NOT use -z defs as we might desire, because we do not
10946b02
AX
9425 # link with -lc, and that would cause any symbols used from libc to
9426 # always be unresolved, which means just about no library would
9427 # ever link correctly. If we're not using GNU ld we use -z text
9428 # though, which does catch some bad symbols but isn't as heavy-handed
9429 # as -z defs.
ec06701b
AX
9430 no_undefined_flag='${wl}-z,text'
9431 allow_undefined_flag='${wl}-z,nodefs'
10946b02
AX
9432 archive_cmds_need_lc=no
9433 hardcode_shlibpath_var=no
ec06701b 9434 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10946b02
AX
9435 hardcode_libdir_separator=':'
9436 link_all_deplibs=yes
ec06701b 9437 export_dynamic_flag_spec='${wl}-Bexport'
10946b02
AX
9438 runpath_var='LD_RUN_PATH'
9439
ec06701b
AX
9440 if test "$GCC" = yes; then
9441 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02 9443 else
ec06701b
AX
9444 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946b02
AX
9446 fi
9447 ;;
9448
9449 uts4*)
9450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451 hardcode_libdir_flag_spec='-L$libdir'
9452 hardcode_shlibpath_var=no
9453 ;;
9454
9455 *)
9456 ld_shlibs=no
9457 ;;
9458 esac
9459
ec06701b 9460 if test x$host_vendor = xsni; then
10946b02
AX
9461 case $host in
9462 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
ec06701b 9463 export_dynamic_flag_spec='${wl}-Blargedynsym'
10946b02
AX
9464 ;;
9465 esac
9466 fi
9467 fi
9468
ec06701b 9469{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10946b02 9470$as_echo "$ld_shlibs" >&6; }
ec06701b 9471test "$ld_shlibs" = no && can_build_shared=no
10946b02
AX
9472
9473with_gnu_ld=$with_gnu_ld
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489#
9490# Do we need to explicitly link libc?
9491#
9492case "x$archive_cmds_need_lc" in
9493x|xyes)
9494 # Assume -lc should be added
9495 archive_cmds_need_lc=yes
9496
ec06701b 9497 if test "$enable_shared" = yes && test "$GCC" = yes; then
10946b02
AX
9498 case $archive_cmds in
9499 *'~'*)
9500 # FIXME: we may have to deal with multi-command sequences.
9501 ;;
9502 '$CC '*)
9503 # Test whether the compiler implicitly links with -lc since on some
9504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9505 # to ld, don't add -lc before -lgcc.
ec06701b 9506 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10946b02 9507$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ec06701b
AX
9508 $RM conftest*
9509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10946b02 9510
ec06701b 9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946b02
AX
9512 (eval $ac_compile) 2>&5
9513 ac_status=$?
ec06701b
AX
9514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } 2>conftest.err; then
9516 soname=conftest
9517 lib=conftest
9518 libobjs=conftest.$ac_objext
9519 deplibs=
9520 wl=$lt_prog_compiler_wl
9521 pic_flag=$lt_prog_compiler_pic
9522 compiler_flags=-v
9523 linker_flags=-v
9524 verstring=
9525 output_objdir=.
9526 libname=conftest
9527 lt_save_allow_undefined_flag=$allow_undefined_flag
9528 allow_undefined_flag=
9529 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10946b02
AX
9530 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9531 ac_status=$?
ec06701b
AX
9532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }
9534 then
9535 archive_cmds_need_lc=no
9536 else
9537 archive_cmds_need_lc=yes
9538 fi
9539 allow_undefined_flag=$lt_save_allow_undefined_flag
9540 else
9541 cat conftest.err 1>&5
9542 fi
9543 $RM conftest*
9544 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9545$as_echo "$archive_cmds_need_lc" >&6; }
10946b02
AX
9546 ;;
9547 esac
9548 fi
9549 ;;
9550esac
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
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
ec06701b
AX
9703
9704
9705
9706
9707
9708 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10946b02
AX
9709$as_echo_n "checking dynamic linker characteristics... " >&6; }
9710
ec06701b 9711if test "$GCC" = yes; then
10946b02 9712 case $host_os in
ec06701b
AX
9713 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9714 *) lt_awk_arg="/^libraries:/" ;;
10946b02 9715 esac
ec06701b
AX
9716 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9717 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10946b02
AX
9718 # if the path contains ";" then we assume it to be the separator
9719 # otherwise default to the standard path separator (i.e. ":") - it is
9720 # assumed that no part of a normal pathname contains ";" but that should
9721 # okay in the real world where ";" in dirpaths is itself problematic.
ec06701b
AX
9722 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9723 else
9724 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9725 fi
10946b02 9726 # Ok, now we have the path, separated by spaces, we can step through it
ec06701b 9727 # and add multilib dir if necessary.
10946b02 9728 lt_tmp_lt_search_path_spec=
ec06701b 9729 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10946b02 9730 for lt_sys_path in $lt_search_path_spec; do
ec06701b
AX
9731 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9733 else
10946b02
AX
9734 test -d "$lt_sys_path" && \
9735 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9736 fi
9737 done
ec06701b
AX
9738 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9739BEGIN {RS=" "; FS="/|\n";} {
9740 lt_foo="";
9741 lt_count=0;
10946b02
AX
9742 for (lt_i = NF; lt_i > 0; lt_i--) {
9743 if ($lt_i != "" && $lt_i != ".") {
9744 if ($lt_i == "..") {
9745 lt_count++;
9746 } else {
9747 if (lt_count == 0) {
ec06701b 9748 lt_foo="/" $lt_i lt_foo;
10946b02
AX
9749 } else {
9750 lt_count--;
9751 }
9752 }
9753 }
9754 }
9755 if (lt_foo != "") { lt_freq[lt_foo]++; }
9756 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9757}'`
ec06701b 9758 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10946b02
AX
9759else
9760 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9761fi
9762library_names_spec=
9763libname_spec='lib$name'
9764soname_spec=
ec06701b 9765shrext_cmds=".so"
10946b02
AX
9766postinstall_cmds=
9767postuninstall_cmds=
9768finish_cmds=
9769finish_eval=
9770shlibpath_var=
9771shlibpath_overrides_runpath=unknown
9772version_type=none
9773dynamic_linker="$host_os ld.so"
9774sys_lib_dlsearch_path_spec="/lib /usr/lib"
9775need_lib_prefix=unknown
9776hardcode_into_libs=no
9777
9778# when you set need_version to no, make sure it does not cause -set_version
9779# flags to be left without arguments
9780need_version=unknown
9781
9782case $host_os in
9783aix3*)
ec06701b
AX
9784 version_type=linux
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10946b02
AX
9786 shlibpath_var=LIBPATH
9787
9788 # AIX 3 has no versioning support, so we append a major version to the name.
ec06701b 9789 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
9790 ;;
9791
9792aix[4-9]*)
ec06701b 9793 version_type=linux
10946b02
AX
9794 need_lib_prefix=no
9795 need_version=no
9796 hardcode_into_libs=yes
ec06701b 9797 if test "$host_cpu" = ia64; then
10946b02 9798 # AIX 5 supports IA64
ec06701b 9799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10946b02
AX
9800 shlibpath_var=LD_LIBRARY_PATH
9801 else
9802 # With GCC up to 2.95.x, collect2 would create an import file
9803 # for dependence libraries. The import file would start with
ec06701b
AX
9804 # the line `#! .'. This would cause the generated library to
9805 # depend on `.', always an invalid library. This was fixed in
10946b02
AX
9806 # development snapshots of GCC prior to 3.0.
9807 case $host_os in
9808 aix4 | aix4.[01] | aix4.[01].*)
9809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9810 echo ' yes '
ec06701b 9811 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10946b02
AX
9812 :
9813 else
9814 can_build_shared=no
9815 fi
9816 ;;
9817 esac
ec06701b 9818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10946b02
AX
9819 # soname into executable. Probably we can add versioning support to
9820 # collect2, so additional links can be useful in future.
ec06701b 9821 if test "$aix_use_runtimelinking" = yes; then
10946b02
AX
9822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9823 # instead of lib<name>.a to let people know that these are not
9824 # typical AIX shared libraries.
ec06701b
AX
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 else
10946b02
AX
9827 # We preserve .a as extension for shared libraries through AIX4.2
9828 # and later when we are not doing run time linking.
ec06701b
AX
9829 library_names_spec='${libname}${release}.a $libname.a'
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 fi
10946b02
AX
9832 shlibpath_var=LIBPATH
9833 fi
9834 ;;
9835
9836amigaos*)
9837 case $host_cpu in
9838 powerpc)
9839 # Since July 2007 AmigaOS4 officially supports .so libraries.
9840 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
ec06701b 9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946b02
AX
9842 ;;
9843 m68k)
9844 library_names_spec='$libname.ixlibrary $libname.a'
9845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
ec06701b 9846 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'
10946b02
AX
9847 ;;
9848 esac
9849 ;;
9850
9851beos*)
ec06701b 9852 library_names_spec='${libname}${shared_ext}'
10946b02
AX
9853 dynamic_linker="$host_os ld.so"
9854 shlibpath_var=LIBRARY_PATH
9855 ;;
9856
9857bsdi[45]*)
ec06701b 9858 version_type=linux
10946b02 9859 need_version=no
ec06701b
AX
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
9862 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9865 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9866 # the default ld.so.conf also contains /usr/contrib/lib and
9867 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9868 # libtool to hard-code these into programs
9869 ;;
9870
9871cygwin* | mingw* | pw32* | cegcc*)
9872 version_type=windows
ec06701b 9873 shrext_cmds=".dll"
10946b02
AX
9874 need_version=no
9875 need_lib_prefix=no
9876
ec06701b
AX
9877 case $GCC,$host_os in
9878 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10946b02
AX
9879 library_names_spec='$libname.dll.a'
9880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
ec06701b
AX
9881 postinstall_cmds='base_file=`basename \${file}`~
9882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10946b02
AX
9883 dldir=$destdir/`dirname \$dlpath`~
9884 test -d \$dldir || mkdir -p \$dldir~
9885 $install_prog $dir/$dlname \$dldir/$dlname~
9886 chmod a+x \$dldir/$dlname~
9887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9889 fi'
9890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9891 dlpath=$dir/\$dldll~
9892 $RM \$dlpath'
9893 shlibpath_overrides_runpath=yes
9894
9895 case $host_os in
9896 cygwin*)
9897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
ec06701b
AX
9898 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9899 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10946b02
AX
9900 ;;
9901 mingw* | cegcc*)
9902 # MinGW DLLs use traditional 'lib' prefix
ec06701b
AX
9903 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9904 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10946b02 9905 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
ec06701b
AX
9906 # It is most probably a Windows format PATH printed by
9907 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9908 # path with ; separators, and with drive letters. We can handle the
9909 # drive letters (cygwin fileutils understands them), so leave them,
9910 # especially as we might pass files found there to a mingw objdump,
9911 # which wouldn't understand a cygwinified path. Ahh.
10946b02
AX
9912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9913 else
ec06701b 9914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10946b02 9915 fi
ec06701b
AX
9916 ;;
9917 pw32*)
9918 # pw32 DLLs use 'pw' prefix rather than 'lib'
9919 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10946b02
AX
9920 ;;
9921 esac
10946b02
AX
9922 ;;
9923
9924 *)
ec06701b 9925 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10946b02
AX
9926 ;;
9927 esac
ec06701b 9928 dynamic_linker='Win32 ld.exe'
10946b02
AX
9929 # FIXME: first we should search . and the directory the executable is in
9930 shlibpath_var=PATH
9931 ;;
9932
9933darwin* | rhapsody*)
9934 dynamic_linker="$host_os dyld"
9935 version_type=darwin
9936 need_lib_prefix=no
9937 need_version=no
ec06701b
AX
9938 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9939 soname_spec='${libname}${release}${major}$shared_ext'
10946b02
AX
9940 shlibpath_overrides_runpath=yes
9941 shlibpath_var=DYLD_LIBRARY_PATH
9942 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9943
9944 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9945 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9946 ;;
9947
9948dgux*)
ec06701b 9949 version_type=linux
10946b02
AX
9950 need_lib_prefix=no
9951 need_version=no
ec06701b
AX
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9953 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
9954 shlibpath_var=LD_LIBRARY_PATH
9955 ;;
9956
ec06701b
AX
9957freebsd1*)
9958 dynamic_linker=no
9959 ;;
9960
10946b02
AX
9961freebsd* | dragonfly*)
9962 # DragonFly does not have aout. When/if they implement a new
9963 # versioning mechanism, adjust this.
9964 if test -x /usr/bin/objformat; then
9965 objformat=`/usr/bin/objformat`
9966 else
9967 case $host_os in
ec06701b 9968 freebsd[123]*) objformat=aout ;;
10946b02
AX
9969 *) objformat=elf ;;
9970 esac
9971 fi
9972 version_type=freebsd-$objformat
9973 case $version_type in
9974 freebsd-elf*)
ec06701b 9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10946b02
AX
9976 need_version=no
9977 need_lib_prefix=no
9978 ;;
9979 freebsd-*)
ec06701b 9980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10946b02
AX
9981 need_version=yes
9982 ;;
9983 esac
9984 shlibpath_var=LD_LIBRARY_PATH
9985 case $host_os in
ec06701b 9986 freebsd2*)
10946b02
AX
9987 shlibpath_overrides_runpath=yes
9988 ;;
9989 freebsd3.[01]* | freebsdelf3.[01]*)
9990 shlibpath_overrides_runpath=yes
9991 hardcode_into_libs=yes
9992 ;;
9993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9995 shlibpath_overrides_runpath=no
9996 hardcode_into_libs=yes
9997 ;;
9998 *) # from 4.6 on, and DragonFly
9999 shlibpath_overrides_runpath=yes
10000 hardcode_into_libs=yes
10001 ;;
10002 esac
10003 ;;
10004
ec06701b
AX
10005gnu*)
10006 version_type=linux
10946b02
AX
10007 need_lib_prefix=no
10008 need_version=no
ec06701b
AX
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10946b02
AX
10012 hardcode_into_libs=yes
10013 ;;
10014
10015hpux9* | hpux10* | hpux11*)
10016 # Give a soname corresponding to the major version so that dld.sl refuses to
10017 # link against other versions.
10018 version_type=sunos
10019 need_lib_prefix=no
10020 need_version=no
10021 case $host_cpu in
10022 ia64*)
10023 shrext_cmds='.so'
10024 hardcode_into_libs=yes
10025 dynamic_linker="$host_os dld.so"
10026 shlibpath_var=LD_LIBRARY_PATH
10027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
ec06701b
AX
10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 if test "X$HPUX_IA64_MODE" = X32; then
10946b02
AX
10031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10032 else
10033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10034 fi
ec06701b 10035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10946b02
AX
10036 ;;
10037 hppa*64*)
10038 shrext_cmds='.sl'
10039 hardcode_into_libs=yes
10040 dynamic_linker="$host_os dld.sl"
10041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
ec06701b
AX
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10047 ;;
10048 *)
10049 shrext_cmds='.sl'
10050 dynamic_linker="$host_os dld.sl"
10051 shlibpath_var=SHLIB_PATH
10052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
ec06701b
AX
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10055 ;;
10056 esac
ec06701b 10057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10946b02 10058 postinstall_cmds='chmod 555 $lib'
10946b02
AX
10059 ;;
10060
10061interix[3-9]*)
ec06701b 10062 version_type=linux
10946b02
AX
10063 need_lib_prefix=no
10064 need_version=no
ec06701b
AX
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10068 shlibpath_var=LD_LIBRARY_PATH
10069 shlibpath_overrides_runpath=no
10070 hardcode_into_libs=yes
10071 ;;
10072
10073irix5* | irix6* | nonstopux*)
10074 case $host_os in
10075 nonstopux*) version_type=nonstopux ;;
10076 *)
ec06701b
AX
10077 if test "$lt_cv_prog_gnu_ld" = yes; then
10078 version_type=linux
10946b02
AX
10079 else
10080 version_type=irix
10081 fi ;;
10082 esac
10083 need_lib_prefix=no
10084 need_version=no
ec06701b
AX
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10946b02
AX
10087 case $host_os in
10088 irix5* | nonstopux*)
10089 libsuff= shlibsuff=
10090 ;;
10091 *)
10092 case $LD in # libtool.m4 will add one of these switches to LD
10093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10094 libsuff= shlibsuff= libmagic=32-bit;;
10095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10096 libsuff=32 shlibsuff=N32 libmagic=N32;;
10097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10099 *) libsuff= shlibsuff= libmagic=never-match;;
10100 esac
10101 ;;
10102 esac
10103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10104 shlibpath_overrides_runpath=no
ec06701b
AX
10105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10946b02
AX
10107 hardcode_into_libs=yes
10108 ;;
10109
10110# No shared lib support for Linux oldld, aout, or coff.
10111linux*oldld* | linux*aout* | linux*coff*)
10112 dynamic_linker=no
10113 ;;
10114
ec06701b
AX
10115# This must be Linux ELF.
10116linux* | k*bsd*-gnu)
10117 version_type=linux
10946b02
AX
10118 need_lib_prefix=no
10119 need_version=no
ec06701b
AX
10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 shlibpath_overrides_runpath=no
10946b02 10125 # Some binutils ld are patched to set DT_RUNPATH
ec06701b
AX
10126 save_LDFLAGS=$LDFLAGS
10127 save_libdir=$libdir
10128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10130 cat >conftest.$ac_ext <<_ACEOF
10131/* confdefs.h. */
10132_ACEOF
10133cat confdefs.h >>conftest.$ac_ext
10134cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10135/* end confdefs.h. */
10136
10137int
10138main ()
10139{
10140
10141 ;
10142 return 0;
10143}
10144_ACEOF
ec06701b
AX
10145rm -f conftest.$ac_objext conftest$ac_exeext
10146if { (ac_try="$ac_link"
10147case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10150esac
10151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10152$as_echo "$ac_try_echo") >&5
10153 (eval "$ac_link") 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && {
10160 test -z "$ac_c_werror_flag" ||
10161 test ! -s conftest.err
10162 } && test -s conftest$ac_exeext && {
10163 test "$cross_compiling" = yes ||
10164 $as_test_x conftest$ac_exeext
10165 }; then
10166 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10167 shlibpath_overrides_runpath=yes
10946b02 10168fi
ec06701b
AX
10169
10170else
10171 $as_echo "$as_me: failed program was:" >&5
10172sed 's/^/| /' conftest.$ac_ext >&5
10173
10946b02
AX
10174
10175fi
10176
ec06701b
AX
10177rm -rf conftest.dSYM
10178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LDFLAGS=$save_LDFLAGS
10181 libdir=$save_libdir
10946b02
AX
10182
10183 # This implies no fast_install, which is unacceptable.
10184 # Some rework will be needed to allow for fast_install
10185 # before this can be enabled.
10186 hardcode_into_libs=yes
10187
2ea56c1d
AX
10188 # Add ABI-specific directories to the system library path.
10189 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10190
ec06701b 10191 # Append ld.so.conf contents to the search path
10946b02 10192 if test -f /etc/ld.so.conf; then
ec06701b 10193 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' ' '`
2ea56c1d 10194 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10946b02
AX
10195 fi
10196
10197 # We used to test for /lib/ld.so.1 and disable shared libraries on
10198 # powerpc, because MkLinux only supported shared libraries with the
10199 # GNU dynamic linker. Since this was broken with cross compilers,
10200 # most powerpc-linux boxes support dynamic linking these days and
10201 # people can always --disable-shared, the test was removed, and we
10202 # assume the GNU/Linux dynamic linker is in use.
10203 dynamic_linker='GNU/Linux ld.so'
10204 ;;
10205
10946b02
AX
10206netbsd*)
10207 version_type=sunos
10208 need_lib_prefix=no
10209 need_version=no
10210 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
ec06701b 10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10946b02
AX
10212 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10213 dynamic_linker='NetBSD (a.out) ld.so'
10214 else
ec06701b
AX
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10217 dynamic_linker='NetBSD ld.elf_so'
10218 fi
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=yes
10221 hardcode_into_libs=yes
10222 ;;
10223
10224newsos6)
ec06701b
AX
10225 version_type=linux
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946b02
AX
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes
10229 ;;
10230
10231*nto* | *qnx*)
10232 version_type=qnx
10233 need_lib_prefix=no
10234 need_version=no
ec06701b
AX
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10237 shlibpath_var=LD_LIBRARY_PATH
10238 shlibpath_overrides_runpath=no
10239 hardcode_into_libs=yes
10240 dynamic_linker='ldqnx.so'
10241 ;;
10242
ec06701b 10243openbsd*)
10946b02 10244 version_type=sunos
ec06701b 10245 sys_lib_dlsearch_path_spec="/usr/lib"
10946b02 10246 need_lib_prefix=no
ec06701b
AX
10247 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10248 case $host_os in
10249 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10250 *) need_version=no ;;
10251 esac
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
ac9cc135
AX
10253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10254 shlibpath_var=LD_LIBRARY_PATH
ec06701b
AX
10255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10256 case $host_os in
10257 openbsd2.[89] | openbsd2.[89].*)
10258 shlibpath_overrides_runpath=no
10259 ;;
10260 *)
10261 shlibpath_overrides_runpath=yes
10262 ;;
10263 esac
10264 else
10265 shlibpath_overrides_runpath=yes
10266 fi
10946b02
AX
10267 ;;
10268
10269os2*)
10270 libname_spec='$name'
ec06701b 10271 shrext_cmds=".dll"
10946b02 10272 need_lib_prefix=no
ec06701b 10273 library_names_spec='$libname${shared_ext} $libname.a'
10946b02 10274 dynamic_linker='OS/2 ld.exe'
ec06701b 10275 shlibpath_var=LIBPATH
10946b02
AX
10276 ;;
10277
10278osf3* | osf4* | osf5*)
10279 version_type=osf
10280 need_lib_prefix=no
10281 need_version=no
ec06701b
AX
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946b02
AX
10284 shlibpath_var=LD_LIBRARY_PATH
10285 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
ec06701b 10286 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10946b02
AX
10287 ;;
10288
10289rdos*)
10290 dynamic_linker=no
10291 ;;
10292
10293solaris*)
ec06701b 10294 version_type=linux
10946b02
AX
10295 need_lib_prefix=no
10296 need_version=no
ec06701b
AX
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10302 # ldd complains unless libraries are executable
10303 postinstall_cmds='chmod +x $lib'
10304 ;;
10305
10306sunos4*)
10307 version_type=sunos
ec06701b 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10946b02
AX
10309 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
ec06701b 10312 if test "$with_gnu_ld" = yes; then
10946b02
AX
10313 need_lib_prefix=no
10314 fi
10315 need_version=yes
10316 ;;
10317
10318sysv4 | sysv4.3*)
ec06701b
AX
10319 version_type=linux
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10322 shlibpath_var=LD_LIBRARY_PATH
10323 case $host_vendor in
10324 sni)
10325 shlibpath_overrides_runpath=no
10326 need_lib_prefix=no
10327 runpath_var=LD_RUN_PATH
10328 ;;
10329 siemens)
10330 need_lib_prefix=no
10331 ;;
10332 motorola)
10333 need_lib_prefix=no
10334 need_version=no
10335 shlibpath_overrides_runpath=no
10336 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10337 ;;
10338 esac
10339 ;;
10340
10341sysv4*MP*)
ec06701b
AX
10342 if test -d /usr/nec ;then
10343 version_type=linux
10344 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10345 soname_spec='$libname${shared_ext}.$major'
10946b02
AX
10346 shlibpath_var=LD_LIBRARY_PATH
10347 fi
10348 ;;
10349
10350sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
ec06701b 10351 version_type=freebsd-elf
10946b02
AX
10352 need_lib_prefix=no
10353 need_version=no
ec06701b
AX
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=yes
10358 hardcode_into_libs=yes
ec06701b 10359 if test "$with_gnu_ld" = yes; then
10946b02
AX
10360 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10361 else
10362 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10363 case $host_os in
10364 sco3.2v5*)
10365 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10366 ;;
10367 esac
10368 fi
10369 sys_lib_dlsearch_path_spec='/usr/lib'
10370 ;;
10371
10372tpf*)
10373 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
ec06701b 10374 version_type=linux
10946b02
AX
10375 need_lib_prefix=no
10376 need_version=no
ec06701b 10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946b02
AX
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=no
10380 hardcode_into_libs=yes
10381 ;;
10382
10383uts4*)
ec06701b
AX
10384 version_type=linux
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10946b02
AX
10387 shlibpath_var=LD_LIBRARY_PATH
10388 ;;
10389
10390*)
10391 dynamic_linker=no
10392 ;;
10393esac
ec06701b 10394{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10946b02 10395$as_echo "$dynamic_linker" >&6; }
ec06701b 10396test "$dynamic_linker" = no && can_build_shared=no
10946b02
AX
10397
10398variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
ec06701b 10399if test "$GCC" = yes; then
10946b02
AX
10400 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10401fi
10402
ec06701b
AX
10403if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10404 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10946b02 10405fi
ec06701b
AX
10406if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10407 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10946b02
AX
10408fi
10409
10946b02
AX
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
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
ec06701b 10496 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10946b02
AX
10497$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10498hardcode_action=
10499if test -n "$hardcode_libdir_flag_spec" ||
10500 test -n "$runpath_var" ||
ec06701b 10501 test "X$hardcode_automatic" = "Xyes" ; then
10946b02
AX
10502
10503 # We can hardcode non-existent directories.
ec06701b 10504 if test "$hardcode_direct" != no &&
10946b02
AX
10505 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10506 # have to relink, otherwise we might link with an installed library
10507 # when we should be linking with a yet-to-be-installed one
ec06701b
AX
10508 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10509 test "$hardcode_minus_L" != no; then
10946b02
AX
10510 # Linking always hardcodes the temporary library directory.
10511 hardcode_action=relink
10512 else
10513 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10514 hardcode_action=immediate
10515 fi
10516else
10517 # We cannot hardcode anything, or else we can only hardcode existing
10518 # directories.
10519 hardcode_action=unsupported
10520fi
ec06701b 10521{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10946b02
AX
10522$as_echo "$hardcode_action" >&6; }
10523
ec06701b
AX
10524if test "$hardcode_action" = relink ||
10525 test "$inherit_rpath" = yes; then
10946b02
AX
10526 # Fast installation is not supported
10527 enable_fast_install=no
ec06701b
AX
10528elif test "$shlibpath_overrides_runpath" = yes ||
10529 test "$enable_shared" = no; then
10946b02
AX
10530 # Fast installation is not necessary
10531 enable_fast_install=needless
10532fi
10533
10534
10535
10536
10537
10538
ec06701b 10539 if test "x$enable_dlopen" != xyes; then
10946b02
AX
10540 enable_dlopen=unknown
10541 enable_dlopen_self=unknown
10542 enable_dlopen_self_static=unknown
10543else
10544 lt_cv_dlopen=no
10545 lt_cv_dlopen_libs=
10546
10547 case $host_os in
10548 beos*)
ec06701b 10549 lt_cv_dlopen="load_add_on"
10946b02
AX
10550 lt_cv_dlopen_libs=
10551 lt_cv_dlopen_self=yes
10552 ;;
10553
10554 mingw* | pw32* | cegcc*)
ec06701b
AX
10555 lt_cv_dlopen="LoadLibrary"
10556 lt_cv_dlopen_libs=
10557 ;;
10558
10559 cygwin*)
10560 lt_cv_dlopen="dlopen"
10561 lt_cv_dlopen_libs=
10562 ;;
10563
10564 darwin*)
10565 # if libdl is installed we need to link against it
10566 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10567$as_echo_n "checking for dlopen in -ldl... " >&6; }
10568if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10569 $as_echo_n "(cached) " >&6
10570else
10571 ac_check_lib_save_LIBS=$LIBS
10572LIBS="-ldl $LIBS"
10573cat >conftest.$ac_ext <<_ACEOF
10574/* confdefs.h. */
10575_ACEOF
10576cat confdefs.h >>conftest.$ac_ext
10577cat >>conftest.$ac_ext <<_ACEOF
10578/* end confdefs.h. */
10579
10580/* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10583#ifdef __cplusplus
10584extern "C"
10585#endif
10586char dlopen ();
10587int
10588main ()
10589{
10590return dlopen ();
10591 ;
10592 return 0;
10593}
10594_ACEOF
10595rm -f conftest.$ac_objext conftest$ac_exeext
10596if { (ac_try="$ac_link"
10597case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600esac
10601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10602$as_echo "$ac_try_echo") >&5
10603 (eval "$ac_link") 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest$ac_exeext && {
10613 test "$cross_compiling" = yes ||
10614 $as_test_x conftest$ac_exeext
10615 }; then
10616 ac_cv_lib_dl_dlopen=yes
10617else
10618 $as_echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 ac_cv_lib_dl_dlopen=no
10622fi
10623
10624rm -rf conftest.dSYM
10625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10626 conftest$ac_exeext conftest.$ac_ext
10627LIBS=$ac_check_lib_save_LIBS
10628fi
10629{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10630$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10631if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10633else
10634
10635 lt_cv_dlopen="dyld"
10946b02 10636 lt_cv_dlopen_libs=
ec06701b
AX
10637 lt_cv_dlopen_self=yes
10638
10639fi
10640
10946b02
AX
10641 ;;
10642
ec06701b
AX
10643 *)
10644 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10645$as_echo_n "checking for shl_load... " >&6; }
10646if test "${ac_cv_func_shl_load+set}" = set; then
10647 $as_echo_n "(cached) " >&6
10648else
10649 cat >conftest.$ac_ext <<_ACEOF
10650/* confdefs.h. */
10651_ACEOF
10652cat confdefs.h >>conftest.$ac_ext
10653cat >>conftest.$ac_ext <<_ACEOF
10654/* end confdefs.h. */
10655/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10657#define shl_load innocuous_shl_load
10658
10659/* System header to define __stub macros and hopefully few prototypes,
10660 which can conflict with char shl_load (); below.
10661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10662 <limits.h> exists even on freestanding compilers. */
10663
10664#ifdef __STDC__
10665# include <limits.h>
10666#else
10667# include <assert.h>
10668#endif
10669
10670#undef shl_load
10671
10672/* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675#ifdef __cplusplus
10676extern "C"
10677#endif
10678char shl_load ();
10679/* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682#if defined __stub_shl_load || defined __stub___shl_load
10683choke me
10684#endif
10685
10686int
10687main ()
10688{
10689return shl_load ();
10690 ;
10691 return 0;
10692}
10693_ACEOF
10694rm -f conftest.$ac_objext conftest$ac_exeext
10695if { (ac_try="$ac_link"
10696case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699esac
10700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10701$as_echo "$ac_try_echo") >&5
10702 (eval "$ac_link") 2>conftest.er1
10703 ac_status=$?
10704 grep -v '^ *+' conftest.er1 >conftest.err
10705 rm -f conftest.er1
10706 cat conftest.err >&5
10707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest$ac_exeext && {
10712 test "$cross_compiling" = yes ||
10713 $as_test_x conftest$ac_exeext
10714 }; then
10715 ac_cv_func_shl_load=yes
10716else
10717 $as_echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 ac_cv_func_shl_load=no
10721fi
10946b02 10722
ec06701b
AX
10723rm -rf conftest.dSYM
10724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10725 conftest$ac_exeext conftest.$ac_ext
10726fi
10727{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10728$as_echo "$ac_cv_func_shl_load" >&6; }
10729if test "x$ac_cv_func_shl_load" = x""yes; then
10730 lt_cv_dlopen="shl_load"
10731else
10732 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10733$as_echo_n "checking for shl_load in -ldld... " >&6; }
10734if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10946b02
AX
10735 $as_echo_n "(cached) " >&6
10736else
10737 ac_check_lib_save_LIBS=$LIBS
ec06701b
AX
10738LIBS="-ldld $LIBS"
10739cat >conftest.$ac_ext <<_ACEOF
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10744/* end confdefs.h. */
10745
10746/* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
10749#ifdef __cplusplus
10750extern "C"
10751#endif
ec06701b 10752char shl_load ();
10946b02
AX
10753int
10754main ()
10755{
ec06701b 10756return shl_load ();
10946b02
AX
10757 ;
10758 return 0;
10759}
10760_ACEOF
ec06701b
AX
10761rm -f conftest.$ac_objext conftest$ac_exeext
10762if { (ac_try="$ac_link"
10763case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766esac
10767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10768$as_echo "$ac_try_echo") >&5
10769 (eval "$ac_link") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest$ac_exeext && {
10779 test "$cross_compiling" = yes ||
10780 $as_test_x conftest$ac_exeext
10781 }; then
10782 ac_cv_lib_dld_shl_load=yes
10946b02 10783else
ec06701b
AX
10784 $as_echo "$as_me: failed program was:" >&5
10785sed 's/^/| /' conftest.$ac_ext >&5
10946b02 10786
ec06701b 10787 ac_cv_lib_dld_shl_load=no
10946b02
AX
10788fi
10789
ec06701b
AX
10790rm -rf conftest.dSYM
10791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10793LIBS=$ac_check_lib_save_LIBS
10794fi
10795{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10796$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10797if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10798 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10946b02 10799else
ec06701b
AX
10800 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10801$as_echo_n "checking for dlopen... " >&6; }
10802if test "${ac_cv_func_dlopen+set}" = set; then
10946b02
AX
10803 $as_echo_n "(cached) " >&6
10804else
ec06701b
AX
10805 cat >conftest.$ac_ext <<_ACEOF
10806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10946b02 10810/* end confdefs.h. */
ec06701b
AX
10811/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813#define dlopen innocuous_dlopen
10814
10815/* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char dlopen (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10819
10820#ifdef __STDC__
10821# include <limits.h>
10822#else
10823# include <assert.h>
10824#endif
10825
10826#undef dlopen
10946b02
AX
10827
10828/* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10831#ifdef __cplusplus
10832extern "C"
10833#endif
ec06701b
AX
10834char dlopen ();
10835/* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838#if defined __stub_dlopen || defined __stub___dlopen
10839choke me
10840#endif
10841
10946b02
AX
10842int
10843main ()
10844{
ec06701b 10845return dlopen ();
10946b02
AX
10846 ;
10847 return 0;
10848}
10849_ACEOF
ec06701b
AX
10850rm -f conftest.$ac_objext conftest$ac_exeext
10851if { (ac_try="$ac_link"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10857$as_echo "$ac_try_echo") >&5
10858 (eval "$ac_link") 2>conftest.er1
10859 ac_status=$?
10860 grep -v '^ *+' conftest.er1 >conftest.err
10861 rm -f conftest.er1
10862 cat conftest.err >&5
10863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest$ac_exeext && {
10868 test "$cross_compiling" = yes ||
10869 $as_test_x conftest$ac_exeext
10870 }; then
10871 ac_cv_func_dlopen=yes
10946b02 10872else
ec06701b
AX
10873 $as_echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ac_cv_func_dlopen=no
10946b02 10877fi
ec06701b
AX
10878
10879rm -rf conftest.dSYM
10880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881 conftest$ac_exeext conftest.$ac_ext
10946b02 10882fi
ec06701b
AX
10883{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10884$as_echo "$ac_cv_func_dlopen" >&6; }
10885if test "x$ac_cv_func_dlopen" = x""yes; then
10886 lt_cv_dlopen="dlopen"
10946b02 10887else
ec06701b 10888 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10946b02 10889$as_echo_n "checking for dlopen in -ldl... " >&6; }
ec06701b 10890if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10946b02
AX
10891 $as_echo_n "(cached) " >&6
10892else
10893 ac_check_lib_save_LIBS=$LIBS
10894LIBS="-ldl $LIBS"
ec06701b
AX
10895cat >conftest.$ac_ext <<_ACEOF
10896/* confdefs.h. */
10897_ACEOF
10898cat confdefs.h >>conftest.$ac_ext
10899cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10900/* end confdefs.h. */
10901
10902/* Override any GCC internal prototype to avoid an error.
10903 Use char because int might match the return type of a GCC
10904 builtin and then its argument prototype would still apply. */
10905#ifdef __cplusplus
10906extern "C"
10907#endif
10908char dlopen ();
10909int
10910main ()
10911{
10912return dlopen ();
10913 ;
10914 return 0;
10915}
10916_ACEOF
ec06701b
AX
10917rm -f conftest.$ac_objext conftest$ac_exeext
10918if { (ac_try="$ac_link"
10919case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922esac
10923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10924$as_echo "$ac_try_echo") >&5
10925 (eval "$ac_link") 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest$ac_exeext && {
10935 test "$cross_compiling" = yes ||
10936 $as_test_x conftest$ac_exeext
10937 }; then
10946b02
AX
10938 ac_cv_lib_dl_dlopen=yes
10939else
ec06701b
AX
10940 $as_echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 ac_cv_lib_dl_dlopen=no
10946b02 10944fi
ec06701b
AX
10945
10946rm -rf conftest.dSYM
10947rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10948 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
10949LIBS=$ac_check_lib_save_LIBS
10950fi
ec06701b 10951{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10946b02 10952$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
ec06701b
AX
10953if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946b02 10955else
ec06701b 10956 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10946b02 10957$as_echo_n "checking for dlopen in -lsvld... " >&6; }
ec06701b 10958if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10946b02
AX
10959 $as_echo_n "(cached) " >&6
10960else
10961 ac_check_lib_save_LIBS=$LIBS
10962LIBS="-lsvld $LIBS"
ec06701b
AX
10963cat >conftest.$ac_ext <<_ACEOF
10964/* confdefs.h. */
10965_ACEOF
10966cat confdefs.h >>conftest.$ac_ext
10967cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
10968/* end confdefs.h. */
10969
10970/* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973#ifdef __cplusplus
10974extern "C"
10975#endif
10976char dlopen ();
10977int
10978main ()
10979{
10980return dlopen ();
10981 ;
10982 return 0;
10983}
10984_ACEOF
ec06701b
AX
10985rm -f conftest.$ac_objext conftest$ac_exeext
10986if { (ac_try="$ac_link"
10987case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10990esac
10991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10992$as_echo "$ac_try_echo") >&5
10993 (eval "$ac_link") 2>conftest.er1
10994 ac_status=$?
10995 grep -v '^ *+' conftest.er1 >conftest.err
10996 rm -f conftest.er1
10997 cat conftest.err >&5
10998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && {
11000 test -z "$ac_c_werror_flag" ||
11001 test ! -s conftest.err
11002 } && test -s conftest$ac_exeext && {
11003 test "$cross_compiling" = yes ||
11004 $as_test_x conftest$ac_exeext
11005 }; then
10946b02
AX
11006 ac_cv_lib_svld_dlopen=yes
11007else
ec06701b
AX
11008 $as_echo "$as_me: failed program was:" >&5
11009sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 ac_cv_lib_svld_dlopen=no
10946b02 11012fi
ec06701b
AX
11013
11014rm -rf conftest.dSYM
11015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
11017LIBS=$ac_check_lib_save_LIBS
11018fi
ec06701b 11019{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10946b02 11020$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
ec06701b
AX
11021if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10946b02 11023else
ec06701b 11024 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10946b02 11025$as_echo_n "checking for dld_link in -ldld... " >&6; }
ec06701b 11026if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10946b02
AX
11027 $as_echo_n "(cached) " >&6
11028else
11029 ac_check_lib_save_LIBS=$LIBS
11030LIBS="-ldld $LIBS"
ec06701b
AX
11031cat >conftest.$ac_ext <<_ACEOF
11032/* confdefs.h. */
11033_ACEOF
11034cat confdefs.h >>conftest.$ac_ext
11035cat >>conftest.$ac_ext <<_ACEOF
10946b02
AX
11036/* end confdefs.h. */
11037
11038/* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041#ifdef __cplusplus
11042extern "C"
11043#endif
11044char dld_link ();
11045int
11046main ()
11047{
11048return dld_link ();
11049 ;
11050 return 0;
11051}
11052_ACEOF
ec06701b
AX
11053rm -f conftest.$ac_objext conftest$ac_exeext
11054if { (ac_try="$ac_link"
11055case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058esac
11059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11060$as_echo "$ac_try_echo") >&5
11061 (eval "$ac_link") 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest$ac_exeext && {
11071 test "$cross_compiling" = yes ||
11072 $as_test_x conftest$ac_exeext
11073 }; then
10946b02
AX
11074 ac_cv_lib_dld_dld_link=yes
11075else
ec06701b
AX
11076 $as_echo "$as_me: failed program was:" >&5
11077sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 ac_cv_lib_dld_dld_link=no
10946b02 11080fi
ec06701b
AX
11081
11082rm -rf conftest.dSYM
11083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11084 conftest$ac_exeext conftest.$ac_ext
10946b02
AX
11085LIBS=$ac_check_lib_save_LIBS
11086fi
ec06701b 11087{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10946b02 11088$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
ec06701b
AX
11089if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10946b02
AX
11091fi
11092
11093
11094fi
11095
11096
11097fi
11098
11099
11100fi
11101
11102
11103fi
11104
11105
11106fi
11107
11108 ;;
11109 esac
11110
ec06701b 11111 if test "x$lt_cv_dlopen" != xno; then
ac9cc135 11112 enable_dlopen=yes
ec06701b
AX
11113 else
11114 enable_dlopen=no
10946b02
AX
11115 fi
11116
11117 case $lt_cv_dlopen in
11118 dlopen)
ec06701b
AX
11119 save_CPPFLAGS="$CPPFLAGS"
11120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10946b02 11121
ec06701b 11122 save_LDFLAGS="$LDFLAGS"
10946b02
AX
11123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11124
ec06701b 11125 save_LIBS="$LIBS"
10946b02
AX
11126 LIBS="$lt_cv_dlopen_libs $LIBS"
11127
ec06701b 11128 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10946b02 11129$as_echo_n "checking whether a program can dlopen itself... " >&6; }
ec06701b 11130if test "${lt_cv_dlopen_self+set}" = set; then
10946b02
AX
11131 $as_echo_n "(cached) " >&6
11132else
ec06701b 11133 if test "$cross_compiling" = yes; then :
10946b02
AX
11134 lt_cv_dlopen_self=cross
11135else
11136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137 lt_status=$lt_dlunknown
11138 cat > conftest.$ac_ext <<_LT_EOF
ec06701b 11139#line 11139 "configure"
10946b02
AX
11140#include "confdefs.h"
11141
11142#if HAVE_DLFCN_H
11143#include <dlfcn.h>
11144#endif
11145
11146#include <stdio.h>
11147
11148#ifdef RTLD_GLOBAL
11149# define LT_DLGLOBAL RTLD_GLOBAL
11150#else
11151# ifdef DL_GLOBAL
11152# define LT_DLGLOBAL DL_GLOBAL
11153# else
11154# define LT_DLGLOBAL 0
11155# endif
11156#endif
11157
11158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159 find out it does not work in some platform. */
11160#ifndef LT_DLLAZY_OR_NOW
11161# ifdef RTLD_LAZY
11162# define LT_DLLAZY_OR_NOW RTLD_LAZY
11163# else
11164# ifdef DL_LAZY
11165# define LT_DLLAZY_OR_NOW DL_LAZY
11166# else
11167# ifdef RTLD_NOW
11168# define LT_DLLAZY_OR_NOW RTLD_NOW
11169# else
11170# ifdef DL_NOW
11171# define LT_DLLAZY_OR_NOW DL_NOW
11172# else
11173# define LT_DLLAZY_OR_NOW 0
11174# endif
11175# endif
11176# endif
11177# endif
11178#endif
11179
ec06701b 11180void fnord() { int i=42;}
10946b02
AX
11181int main ()
11182{
11183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11184 int status = $lt_dlunknown;
11185
11186 if (self)
11187 {
11188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
ec06701b 11189 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10946b02
AX
11190 /* dlclose (self); */
11191 }
11192 else
11193 puts (dlerror ());
11194
11195 return status;
11196}
11197_LT_EOF
ec06701b 11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946b02
AX
11199 (eval $ac_link) 2>&5
11200 ac_status=$?
ec06701b
AX
11201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10946b02
AX
11203 (./conftest; exit; ) >&5 2>/dev/null
11204 lt_status=$?
11205 case x$lt_status in
11206 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11207 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11208 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11209 esac
11210 else :
11211 # compilation failed
11212 lt_cv_dlopen_self=no
11213 fi
11214fi
11215rm -fr conftest*
11216
11217
11218fi
ec06701b 11219{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10946b02
AX
11220$as_echo "$lt_cv_dlopen_self" >&6; }
11221
ec06701b 11222 if test "x$lt_cv_dlopen_self" = xyes; then
10946b02 11223 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
ec06701b 11224 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10946b02 11225$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
ec06701b 11226if test "${lt_cv_dlopen_self_static+set}" = set; then
10946b02
AX
11227 $as_echo_n "(cached) " >&6
11228else
ec06701b 11229 if test "$cross_compiling" = yes; then :
10946b02
AX
11230 lt_cv_dlopen_self_static=cross
11231else
11232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11233 lt_status=$lt_dlunknown
11234 cat > conftest.$ac_ext <<_LT_EOF
ec06701b 11235#line 11235 "configure"
10946b02
AX
11236#include "confdefs.h"
11237
11238#if HAVE_DLFCN_H
11239#include <dlfcn.h>
11240#endif
11241
11242#include <stdio.h>
11243
11244#ifdef RTLD_GLOBAL
11245# define LT_DLGLOBAL RTLD_GLOBAL
11246#else
11247# ifdef DL_GLOBAL
11248# define LT_DLGLOBAL DL_GLOBAL
11249# else
11250# define LT_DLGLOBAL 0
11251# endif
11252#endif
11253
11254/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11255 find out it does not work in some platform. */
11256#ifndef LT_DLLAZY_OR_NOW
11257# ifdef RTLD_LAZY
11258# define LT_DLLAZY_OR_NOW RTLD_LAZY
11259# else
11260# ifdef DL_LAZY
11261# define LT_DLLAZY_OR_NOW DL_LAZY
11262# else
11263# ifdef RTLD_NOW
11264# define LT_DLLAZY_OR_NOW RTLD_NOW
11265# else
11266# ifdef DL_NOW
11267# define LT_DLLAZY_OR_NOW DL_NOW
11268# else
11269# define LT_DLLAZY_OR_NOW 0
11270# endif
11271# endif
11272# endif
11273# endif
11274#endif
11275
ec06701b 11276void fnord() { int i=42;}
10946b02
AX
11277int main ()
11278{
11279 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11280 int status = $lt_dlunknown;
11281
11282 if (self)
11283 {
11284 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
ec06701b 11285 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10946b02
AX
11286 /* dlclose (self); */
11287 }
11288 else
11289 puts (dlerror ());
11290
11291 return status;
11292}
11293_LT_EOF
ec06701b 11294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946b02
AX
11295 (eval $ac_link) 2>&5
11296 ac_status=$?
ec06701b
AX
11297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10946b02
AX
11299 (./conftest; exit; ) >&5 2>/dev/null
11300 lt_status=$?
11301 case x$lt_status in
11302 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11303 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11304 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11305 esac
11306 else :
11307 # compilation failed
11308 lt_cv_dlopen_self_static=no
11309 fi
11310fi
11311rm -fr conftest*
11312
11313
11314fi
ec06701b 11315{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10946b02
AX
11316$as_echo "$lt_cv_dlopen_self_static" >&6; }
11317 fi
11318
ec06701b
AX
11319 CPPFLAGS="$save_CPPFLAGS"
11320 LDFLAGS="$save_LDFLAGS"
11321 LIBS="$save_LIBS"
10946b02
AX
11322 ;;
11323 esac
11324
11325 case $lt_cv_dlopen_self in
11326 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11327 *) enable_dlopen_self=unknown ;;
11328 esac
11329
11330 case $lt_cv_dlopen_self_static in
11331 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11332 *) enable_dlopen_self_static=unknown ;;
11333 esac
11334fi
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352striplib=
11353old_striplib=
ec06701b 11354{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10946b02
AX
11355$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11356if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11357 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11358 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
ec06701b 11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
11360$as_echo "yes" >&6; }
11361else
11362# FIXME - insert some real tests, host_os isn't really good enough
11363 case $host_os in
11364 darwin*)
ec06701b 11365 if test -n "$STRIP" ; then
10946b02
AX
11366 striplib="$STRIP -x"
11367 old_striplib="$STRIP -S"
ec06701b 11368 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
11369$as_echo "yes" >&6; }
11370 else
ec06701b 11371 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
11372$as_echo "no" >&6; }
11373 fi
11374 ;;
11375 *)
ec06701b 11376 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
11377$as_echo "no" >&6; }
11378 ;;
11379 esac
11380fi
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
ec06701b
AX
11393 # Report which library types will actually be built
11394 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10946b02 11395$as_echo_n "checking if libtool supports shared libraries... " >&6; }
ec06701b 11396 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10946b02
AX
11397$as_echo "$can_build_shared" >&6; }
11398
ec06701b 11399 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10946b02 11400$as_echo_n "checking whether to build shared libraries... " >&6; }
ec06701b 11401 test "$can_build_shared" = "no" && enable_shared=no
10946b02
AX
11402
11403 # On AIX, shared libraries and static libraries use the same namespace, and
11404 # are all built from PIC.
11405 case $host_os in
11406 aix3*)
ec06701b 11407 test "$enable_shared" = yes && enable_static=no
10946b02
AX
11408 if test -n "$RANLIB"; then
11409 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11410 postinstall_cmds='$RANLIB $lib'
11411 fi
11412 ;;
11413
11414 aix[4-9]*)
ec06701b
AX
11415 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11416 test "$enable_shared" = yes && enable_static=no
10946b02
AX
11417 fi
11418 ;;
11419 esac
ec06701b 11420 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10946b02
AX
11421$as_echo "$enable_shared" >&6; }
11422
ec06701b 11423 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10946b02
AX
11424$as_echo_n "checking whether to build static libraries... " >&6; }
11425 # Make sure either enable_shared or enable_static is yes.
ec06701b
AX
11426 test "$enable_shared" = yes || enable_static=yes
11427 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10946b02
AX
11428$as_echo "$enable_static" >&6; }
11429
11430
11431
11432
11433fi
11434ac_ext=c
11435ac_cpp='$CPP $CPPFLAGS'
11436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11438ac_compiler_gnu=$ac_cv_c_compiler_gnu
11439
ec06701b 11440CC="$lt_save_CC"
10946b02
AX
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454 ac_config_commands="$ac_config_commands libtool"
11455
11456
11457
11458
11459# Only expand once:
11460
11461
11462
11463
ec06701b 11464 { $as_echo "$as_me:$LINENO: checking spl author" >&5
10946b02 11465$as_echo_n "checking spl author... " >&6; }
ec06701b 11466 { $as_echo "$as_me:$LINENO: result: $SPL_META_AUTHOR" >&5
10946b02
AX
11467$as_echo "$SPL_META_AUTHOR" >&6; }
11468
ec06701b 11469 { $as_echo "$as_me:$LINENO: checking spl license" >&5
10946b02 11470$as_echo_n "checking spl license... " >&6; }
ec06701b 11471 { $as_echo "$as_me:$LINENO: result: $SPL_META_LICENSE" >&5
10946b02
AX
11472$as_echo "$SPL_META_LICENSE" >&6; }
11473
11474
11475
ec06701b 11476 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
10946b02
AX
11477$as_echo_n "checking linux distribution... " >&6; }
11478 if test -f /etc/toss-release ; then
11479 VENDOR=toss ;
11480 elif test -f /etc/fedora-release ; then
11481 VENDOR=fedora ;
11482 elif test -f /etc/redhat-release ; then
11483 VENDOR=redhat ;
11484 elif test -f /etc/gentoo-release ; then
11485 VENDOR=gentoo ;
11486 elif test -f /etc/arch-release ; then
11487 VENDOR=arch ;
11488 elif test -f /etc/SuSE-release ; then
11489 VENDOR=sles ;
11490 elif test -f /etc/slackware-version ; then
11491 VENDOR=slackware ;
11492 elif test -f /etc/lunar.release ; then
11493 VENDOR=lunar ;
11494 elif test -f /etc/lsb-release ; then
11495 VENDOR=ubuntu ;
11496 elif test -f /etc/debian_version ; then
11497 VENDOR=debian ;
11498 else
11499 VENDOR= ;
11500 fi
ec06701b 11501 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
10946b02
AX
11502$as_echo "$VENDOR" >&6; }
11503
11504
ec06701b 11505 { $as_echo "$as_me:$LINENO: checking default package type" >&5
10946b02
AX
11506$as_echo_n "checking default package type... " >&6; }
11507 case "$VENDOR" in
11508 toss) DEFAULT_PACKAGE=rpm ;;
11509 redhat) DEFAULT_PACKAGE=rpm ;;
11510 fedora) DEFAULT_PACKAGE=rpm ;;
11511 gentoo) DEFAULT_PACKAGE=tgz ;;
11512 arch) DEFAULT_PACKAGE=tgz ;;
11513 sles) DEFAULT_PACKAGE=rpm ;;
11514 slackware) DEFAULT_PACKAGE=tgz ;;
11515 lunar) DEFAULT_PACKAGE=tgz ;;
11516 ubuntu) DEFAULT_PACKAGE=deb ;;
11517 debian) DEFAULT_PACKAGE=deb ;;
11518 *) DEFAULT_PACKAGE=rpm ;;
11519 esac
11520
ec06701b 11521 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
10946b02
AX
11522$as_echo "$DEFAULT_PACKAGE" >&6; }
11523
11524
11525
11526 RPM=rpm
11527 RPMBUILD=rpmbuild
11528
ec06701b 11529 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
10946b02 11530$as_echo_n "checking whether $RPM is available... " >&6; }
ec06701b 11531 if tmp=$($RPM --version 2>/dev/null); then
10946b02
AX
11532
11533 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11534 HAVE_RPM=yes
ec06701b 11535 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
10946b02
AX
11536$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11537
11538else
11539
11540 HAVE_RPM=no
ec06701b 11541 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
10946b02
AX
11542$as_echo "$HAVE_RPM" >&6; }
11543
11544fi
11545
ec06701b
AX
11546
11547 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
10946b02 11548$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
ec06701b 11549 if tmp=$($RPMBUILD --version 2>/dev/null); then
10946b02
AX
11550
11551 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11552 HAVE_RPMBUILD=yes
ec06701b 11553 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
10946b02
AX
11554$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11555
11556else
11557
11558 HAVE_RPMBUILD=no
ec06701b 11559 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
10946b02
AX
11560$as_echo "$HAVE_RPMBUILD" >&6; }
11561
11562fi
11563
ec06701b 11564
10946b02
AX
11565 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
11566 RPM_DEFINE_UTIL=
11567 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
34ee731f 11568 RPM_DEFINE_KMOD+=' --define "_wrong_version_format_terminate_build 0"'
10946b02
AX
11569 RPM_DEFINE_DKMS=
11570
11571 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11572 SRPM_DEFINE_UTIL=
11573 SRPM_DEFINE_KMOD=
11574 SRPM_DEFINE_DKMS=
11575
11576 RPM_SPEC_DIR="rpm/generic"
11577
11578# Check whether --with-spec was given.
ec06701b 11579if test "${with_spec+set}" = set; then
10946b02
AX
11580 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11581fi
11582
11583
ec06701b 11584 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
10946b02 11585$as_echo_n "checking whether spec files are available... " >&6; }
ec06701b 11586 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
10946b02
AX
11587$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608 DPKG=dpkg
11609 DPKGBUILD=dpkg-buildpackage
11610
ec06701b 11611 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
10946b02 11612$as_echo_n "checking whether $DPKG is available... " >&6; }
ec06701b 11613 if tmp=$($DPKG --version 2>/dev/null); then
10946b02
AX
11614
11615 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11616 HAVE_DPKG=yes
ec06701b 11617 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
10946b02
AX
11618$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11619
11620else
11621
11622 HAVE_DPKG=no
ec06701b 11623 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
10946b02
AX
11624$as_echo "$HAVE_DPKG" >&6; }
11625
11626fi
11627
ec06701b
AX
11628
11629 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
10946b02 11630$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
ec06701b 11631 if tmp=$($DPKGBUILD --version 2>/dev/null); then
10946b02
AX
11632
11633 DPKGBUILD_VERSION=$(echo $tmp | \
11634 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11635 HAVE_DPKGBUILD=yes
ec06701b 11636 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
10946b02
AX
11637$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11638
11639else
11640
11641 HAVE_DPKGBUILD=no
ec06701b 11642 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
10946b02
AX
11643$as_echo "$HAVE_DPKGBUILD" >&6; }
11644
11645fi
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
ec06701b 11656
10946b02
AX
11657 ALIEN=alien
11658
ec06701b 11659 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
10946b02 11660$as_echo_n "checking whether $ALIEN is available... " >&6; }
ec06701b 11661 if tmp=$($ALIEN --version 2>/dev/null); then
10946b02
AX
11662
11663 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11664 HAVE_ALIEN=yes
ec06701b 11665 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
10946b02
AX
11666$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11667
11668else
11669
11670 HAVE_ALIEN=no
ec06701b 11671 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
10946b02
AX
11672$as_echo "$HAVE_ALIEN" >&6; }
11673
11674fi
11675
11676
11677
11678
11679
11680
11681
ec06701b 11682
10946b02
AX
11683 SPL_CONFIG=all
11684
11685# Check whether --with-config was given.
ec06701b 11686if test "${with_config+set}" = set; then
10946b02
AX
11687 withval=$with_config; SPL_CONFIG="$withval"
11688fi
11689
11690 # Check whether --enable-linux-builtin was given.
ec06701b 11691if test "${enable_linux_builtin+set}" = set; then
10946b02
AX
11692 enableval=$enable_linux_builtin;
11693else
11694 enable_linux_builtin=no
11695fi
11696
11697
ec06701b 11698 { $as_echo "$as_me:$LINENO: checking spl config" >&5
10946b02 11699$as_echo_n "checking spl config... " >&6; }
ec06701b 11700 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
10946b02
AX
11701$as_echo "$SPL_CONFIG" >&6; };
11702
11703
11704 case "$SPL_CONFIG" in
11705 kernel)
11706
11707
11708# Check whether --with-linux was given.
ec06701b 11709if test "${with_linux+set}" = set; then
10946b02
AX
11710 withval=$with_linux; kernelsrc="$withval"
11711fi
11712
11713
11714
11715# Check whether --with-linux-obj was given.
ec06701b 11716if test "${with_linux_obj+set}" = set; then
10946b02
AX
11717 withval=$with_linux_obj; kernelbuild="$withval"
11718fi
11719
11720
ec06701b 11721 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
10946b02
AX
11722$as_echo_n "checking kernel source directory... " >&6; }
11723 if test -z "$kernelsrc"; then
11724 if test -e "/lib/modules/$(uname -r)/source"; then
11725 headersdir="/lib/modules/$(uname -r)/source"
11726 sourcelink=$(readlink -f "$headersdir")
11727 elif test -e "/lib/modules/$(uname -r)/build"; then
11728 headersdir="/lib/modules/$(uname -r)/build"
11729 sourcelink=$(readlink -f "$headersdir")
11730 else
11731 sourcelink=$(ls -1d /usr/src/kernels/* \
11732 /usr/src/linux-* \
11733 2>/dev/null | grep -v obj | tail -1)
11734 fi
11735
11736 if test -n "$sourcelink" && test -e ${sourcelink}; then
11737 kernelsrc=`readlink -f ${sourcelink}`
11738 else
11739 kernelsrc="Not found"
11740 fi
11741 else
11742 if test "$kernelsrc" = "NONE"; then
11743 kernsrcver=NONE
11744 fi
ec06701b 11745 withlinux=yes
10946b02
AX
11746 fi
11747
ec06701b 11748 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
10946b02
AX
11749$as_echo "$kernelsrc" >&6; }
11750 if test ! -d "$kernelsrc"; then
ec06701b
AX
11751 { { $as_echo "$as_me:$LINENO: error:
11752 *** Please make sure the kernel devel package for your distribution
11753 *** is installed and then try again. If that fails, you can specify the
11754 *** location of the kernel source with the '--with-linux=PATH' option." >&5
11755$as_echo "$as_me: error:
10946b02
AX
11756 *** Please make sure the kernel devel package for your distribution
11757 *** is installed and then try again. If that fails, you can specify the
ec06701b
AX
11758 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
11759 { (exit 1); exit 1; }; }
10946b02
AX
11760 fi
11761
ec06701b 11762 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
10946b02
AX
11763$as_echo_n "checking kernel build directory... " >&6; }
11764 if test -z "$kernelbuild"; then
ec06701b 11765 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
10946b02
AX
11766 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11767 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11768 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11769 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11770 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11771 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11772 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11773 else
11774 kernelbuild=${kernelsrc}
11775 fi
11776 fi
ec06701b 11777 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
10946b02
AX
11778$as_echo "$kernelbuild" >&6; }
11779
ec06701b 11780 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
10946b02
AX
11781$as_echo_n "checking kernel source version... " >&6; }
11782 utsrelease1=$kernelbuild/include/linux/version.h
11783 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11784 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11785 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11786 utsrelease=linux/version.h
11787 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11788 utsrelease=linux/utsrelease.h
11789 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11790 utsrelease=generated/utsrelease.h
11791 fi
11792
11793 if test "$utsrelease"; then
11794 kernsrcver=`(echo "#include <$utsrelease>";
11795 echo "kernsrcver=UTS_RELEASE") |
11796 cpp -I $kernelbuild/include |
11797 grep "^kernsrcver=" | cut -d \" -f 2`
11798
11799 if test -z "$kernsrcver"; then
ec06701b 11800 { $as_echo "$as_me:$LINENO: result: Not found" >&5
10946b02 11801$as_echo "Not found" >&6; }
ec06701b
AX
11802 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11803$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11804 { (exit 1); exit 1; }; }
10946b02
AX
11805 fi
11806 else
ec06701b 11807 { $as_echo "$as_me:$LINENO: result: Not found" >&5
10946b02
AX
11808$as_echo "Not found" >&6; }
11809 if test "x$enable_linux_builtin" != xyes; then
ec06701b
AX
11810 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11811$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
11812 { (exit 1); exit 1; }; }
10946b02 11813 else
ec06701b
AX
11814 { { $as_echo "$as_me:$LINENO: error:
11815 *** Cannot find UTS_RELEASE definition.
11816 *** Please run 'make prepare' inside the kernel source tree." >&5
11817$as_echo "$as_me: error:
10946b02 11818 *** Cannot find UTS_RELEASE definition.
ec06701b
AX
11819 *** Please run 'make prepare' inside the kernel source tree." >&2;}
11820 { (exit 1); exit 1; }; }
10946b02
AX
11821 fi
11822 fi
11823
ec06701b 11824 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
10946b02
AX
11825$as_echo "$kernsrcver" >&6; }
11826
11827 LINUX=${kernelsrc}
11828 LINUX_OBJ=${kernelbuild}
11829 LINUX_VERSION=${kernsrcver}
11830
11831
11832
11833
11834
11835
11836 modpost=$LINUX/scripts/Makefile.modpost
ec06701b 11837 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
10946b02
AX
11838$as_echo_n "checking kernel file name for module symbols... " >&6; }
11839 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
11840 if grep -q Modules.symvers $modpost; then
11841 LINUX_SYMBOLS=Modules.symvers
11842 else
11843 LINUX_SYMBOLS=Module.symvers
11844 fi
11845
11846 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
ec06701b 11847 { { $as_echo "$as_me:$LINENO: error:
10946b02
AX
11848 *** Please make sure the kernel devel package for your distribution
11849 *** is installed. If you are building with a custom kernel, make sure the
11850 *** kernel is configured, built, and the '--with-linux=PATH' configure
ec06701b
AX
11851 *** option refers to the location of the kernel source." >&5
11852$as_echo "$as_me: error:
11853 *** Please make sure the kernel devel package for your distribution
11854 *** is installed. If you are building with a custom kernel, make sure the
11855 *** kernel is configured, built, and the '--with-linux=PATH' configure
11856 *** option refers to the location of the kernel source." >&2;}
11857 { (exit 1); exit 1; }; }
10946b02
AX
11858 fi
11859 else
11860 LINUX_SYMBOLS=NONE
11861 fi
ec06701b 11862 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
10946b02
AX
11863$as_echo "$LINUX_SYMBOLS" >&6; }
11864
11865
11866
11867
11868 if test "${LINUX_OBJ}" != "${LINUX}"; then
11869 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11870 fi
11871
11872
11873 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11874
11875
11876
ec06701b 11877 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
10946b02
AX
11878$as_echo_n "checking whether debugging is enabled... " >&6; }
11879 # Check whether --enable-debug was given.
ec06701b 11880if test "${enable_debug+set}" = set; then
10946b02
AX
11881 enableval=$enable_debug;
11882else
11883 enable_debug=no
11884fi
11885
11886
ec06701b 11887 if test "x$enable_debug" = xyes; then
10946b02
AX
11888
11889 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11890 DEBUG_CFLAGS="-DDEBUG -Werror"
11891 DEBUG_SPL="_with_debug"
11892
11893else
11894
11895 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11896 DEBUG_CFLAGS="-DNDEBUG"
11897 DEBUG_SPL="_without_debug"
11898
11899fi
11900
11901
11902
ec06701b
AX
11903
11904 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
10946b02
AX
11905$as_echo "$enable_debug" >&6; }
11906
11907
11908 # Check whether --enable-debug-kmem was given.
ec06701b 11909if test "${enable_debug_kmem+set}" = set; then
10946b02
AX
11910 enableval=$enable_debug_kmem;
11911else
f6188ddd 11912 enable_debug_kmem=no
10946b02
AX
11913fi
11914
11915
ec06701b 11916 if test "x$enable_debug_kmem" = xyes; then
10946b02
AX
11917
11918 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11919 DEBUG_KMEM="_with_debug_kmem"
11920
ec06701b
AX
11921cat >>confdefs.h <<\_ACEOF
11922#define DEBUG_KMEM 1
11923_ACEOF
10946b02
AX
11924
11925
11926else
11927
11928 DEBUG_KMEM="_without_debug_kmem"
11929
11930fi
11931
11932
ec06701b
AX
11933
11934 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
10946b02 11935$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
ec06701b 11936 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
10946b02
AX
11937$as_echo "$enable_debug_kmem" >&6; }
11938
11939
11940 # Check whether --enable-debug-kmem-tracking was given.
ec06701b 11941if test "${enable_debug_kmem_tracking+set}" = set; then
10946b02
AX
11942 enableval=$enable_debug_kmem_tracking;
11943else
11944 enable_debug_kmem_tracking=no
11945fi
11946
11947
ec06701b 11948 if test "x$enable_debug_kmem_tracking" = xyes; then
10946b02
AX
11949
11950 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11951 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
11952
ec06701b
AX
11953cat >>confdefs.h <<\_ACEOF
11954#define DEBUG_KMEM_TRACKING 1
11955_ACEOF
10946b02
AX
11956
11957
11958else
11959
11960 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
11961
11962fi
11963
11964
ec06701b
AX
11965
11966 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
10946b02 11967$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
ec06701b 11968 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
10946b02
AX
11969$as_echo "$enable_debug_kmem_tracking" >&6; }
11970
ec06701b 11971 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
10946b02
AX
11972$as_echo_n "checking whether modules can be built... " >&6; }
11973
11974
11975cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
10946b02
AX
11981
11982
11983int
11984main (void)
11985{
11986
11987 ;
11988 return 0;
11989}
11990
11991_ACEOF
11992
11993
11994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11995 echo "obj-m := conftest.o" >build/Makefile
11996 modpost_flag=''
11997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
11998 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
ec06701b
AX
12002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12005 (eval $ac_try) 2>&5
12006 ac_status=$?
ec06701b
AX
12007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
10946b02 12009
ec06701b 12010 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12011$as_echo "yes" >&6; }
12012
12013else
12014 $as_echo "$as_me: failed program was:" >&5
12015sed 's/^/| /' conftest.$ac_ext >&5
12016
ec06701b 12017 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12018$as_echo "no" >&6; }
12019 if test "x$enable_linux_builtin" != xyes; then
ec06701b
AX
12020 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12021$as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12022 { (exit 1); exit 1; }; }
10946b02 12023 else
ec06701b 12024 { { $as_echo "$as_me:$LINENO: error:
10946b02 12025 *** Unable to build an empty module.
ec06701b
AX
12026 *** Please run 'make scripts' inside the kernel source tree." >&5
12027$as_echo "$as_me: error:
12028 *** Unable to build an empty module.
12029 *** Please run 'make scripts' inside the kernel source tree." >&2;}
12030 { (exit 1); exit 1; }; }
10946b02
AX
12031 fi
12032
12033
12034
12035fi
ec06701b 12036
10946b02
AX
12037 rm -Rf build
12038
12039
12040
ec06701b 12041 if test "x$cross_compiling" != xyes; then
879bbbc7 12042
ec06701b
AX
12043 if test "$cross_compiling" = yes; then
12044 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 12045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ec06701b
AX
12046{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12047See \`config.log' for more details." >&5
12048$as_echo "$as_me: error: cannot run test program while cross compiling
12049See \`config.log' for more details." >&2;}
12050 { (exit 1); exit 1; }; }; }
10946b02 12051else
ec06701b 12052 cat >conftest.$ac_ext <<_ACEOF
10946b02 12053
ec06701b
AX
12054 /* confdefs.h. */
12055_ACEOF
12056cat confdefs.h >>conftest.$ac_ext
12057cat >>conftest.$ac_ext <<_ACEOF
12058/* end confdefs.h. */
10946b02 12059
879bbbc7 12060 #include "$LINUX/include/linux/license.h"
10946b02
AX
12061
12062int
12063main ()
12064{
12065
879bbbc7
AX
12066 return !license_is_gpl_compatible(
12067 "$SPL_META_LICENSE");
10946b02
AX
12068
12069 ;
12070 return 0;
12071}
12072
12073_ACEOF
ec06701b
AX
12074rm -f conftest$ac_exeext
12075if { (ac_try="$ac_link"
12076case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079esac
12080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12081$as_echo "$ac_try_echo") >&5
12082 (eval "$ac_link") 2>&5
12083 ac_status=$?
12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12089esac
12090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12091$as_echo "$ac_try_echo") >&5
12092 (eval "$ac_try") 2>&5
12093 ac_status=$?
12094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096
12097
12098cat >>confdefs.h <<\_ACEOF
12099#define SPL_IS_GPL_COMPATIBLE 1
12100_ACEOF
12101
10946b02 12102
ec06701b
AX
12103else
12104 $as_echo "$as_me: program exited with status $ac_status" >&5
12105$as_echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
10946b02 12107
ec06701b 12108( exit $ac_status )
10946b02
AX
12109
12110
12111fi
ec06701b
AX
12112rm -rf conftest.dSYM
12113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10946b02
AX
12114fi
12115
12116
ec06701b 12117
879bbbc7
AX
12118fi
12119
10946b02 12120
ec06701b 12121
10946b02 12122 # Check whether --enable-atomic-spinlocks was given.
ec06701b 12123if test "${enable_atomic_spinlocks+set}" = set; then
10946b02
AX
12124 enableval=$enable_atomic_spinlocks;
12125else
12126 enable_atomic_spinlocks=check
12127fi
12128
12129
12130
12131
12132cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12133/* confdefs.h. */
12134_ACEOF
12135cat confdefs.h >>conftest.$ac_ext
12136cat >>conftest.$ac_ext <<_ACEOF
12137/* end confdefs.h. */
10946b02
AX
12138
12139
12140 #include <linux/fs.h>
12141
12142int
12143main (void)
12144{
12145
12146 atomic64_t *ptr __attribute__ ((unused));
12147
12148 ;
12149 return 0;
12150}
12151
12152_ACEOF
12153
12154
12155 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12156 echo "obj-m := conftest.o" >build/Makefile
12157 modpost_flag=''
12158 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12159 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
ec06701b
AX
12163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12166 (eval $ac_try) 2>&5
12167 ac_status=$?
ec06701b
AX
12168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169 (exit $ac_status); }; }; then
10946b02
AX
12170
12171 have_atomic64_t=yes
12172
ec06701b
AX
12173cat >>confdefs.h <<\_ACEOF
12174#define HAVE_ATOMIC64_T 1
12175_ACEOF
10946b02
AX
12176
12177
12178else
12179 $as_echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
12182 have_atomic64_t=no
12183
12184
12185
12186fi
ec06701b 12187
10946b02
AX
12188 rm -Rf build
12189
12190
12191
ec06701b 12192 if test "x$enable_atomic_spinlocks" = xcheck; then
10946b02 12193
ec06701b 12194 if test "x$have_atomic64_t" = xyes; then
10946b02
AX
12195
12196 enable_atomic_spinlocks=no
12197
12198else
12199
12200 enable_atomic_spinlocks=yes
12201
12202fi
12203
ec06701b 12204
10946b02
AX
12205fi
12206
ec06701b
AX
12207
12208 if test "x$enable_atomic_spinlocks" = xyes; then
10946b02
AX
12209
12210
ec06701b
AX
12211cat >>confdefs.h <<\_ACEOF
12212#define ATOMIC_SPINLOCK 1
12213_ACEOF
10946b02
AX
12214
12215
12216else
12217
ec06701b 12218 if test "x$have_atomic64_t" = xno; then
10946b02 12219
ec06701b 12220 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10946b02 12221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ec06701b
AX
12222{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12223See \`config.log' for more details." >&5
12224$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
12225See \`config.log' for more details." >&2;}
12226 { (exit 1); exit 1; }; }; }
10946b02
AX
12227
12228fi
12229
ec06701b 12230
10946b02
AX
12231fi
12232
ec06701b
AX
12233
12234 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
10946b02 12235$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
ec06701b 12236 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
10946b02
AX
12237$as_echo "$enable_atomic_spinlocks" >&6; }
12238
ec06701b 12239 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
10946b02 12240$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
ec06701b 12241 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
10946b02
AX
12242$as_echo "$have_atomic64_t" >&6; }
12243
12244
12245 tmp_flags="$EXTRA_KCFLAGS"
12246 EXTRA_KCFLAGS="-Werror"
ec06701b 12247 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
10946b02
AX
12248$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12249
12250
12251cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
10946b02
AX
12257
12258
12259 #include <linux/mm.h>
12260
12261 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12262
12263int
12264main (void)
12265{
12266
12267 struct shrinker cache_shrinker = {
12268 .shrink = shrinker_cb,
12269 .seeks = DEFAULT_SEEKS,
12270 };
12271 register_shrinker(&cache_shrinker);
12272
12273 ;
12274 return 0;
12275}
12276
12277_ACEOF
12278
12279
12280 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12281 echo "obj-m := conftest.o" >build/Makefile
12282 modpost_flag=''
12283 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12284 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
ec06701b
AX
12288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
ec06701b
AX
12293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
10946b02 12295
ec06701b 12296 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12297$as_echo "yes" >&6; }
12298
ec06701b
AX
12299cat >>confdefs.h <<\_ACEOF
12300#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
12301_ACEOF
10946b02
AX
12302
12303
12304else
12305 $as_echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
ec06701b 12308 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 12309$as_echo "no" >&6; }
ec06701b 12310 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
10946b02
AX
12311$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12312
12313
12314cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12315/* confdefs.h. */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */
10946b02
AX
12320
12321
12322 #include <linux/mm.h>
12323
12324 int shrinker_cb(struct shrinker *, int nr_to_scan,
12325 gfp_t gfp_mask);
12326
12327int
12328main (void)
12329{
12330
12331 struct shrinker cache_shrinker = {
12332 .shrink = shrinker_cb,
12333 .seeks = DEFAULT_SEEKS,
12334 };
12335 register_shrinker(&cache_shrinker);
12336
12337 ;
12338 return 0;
12339}
12340
12341_ACEOF
12342
12343
12344 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12345 echo "obj-m := conftest.o" >build/Makefile
12346 modpost_flag=''
12347 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12348 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12350 (eval $ac_try) 2>&5
12351 ac_status=$?
ec06701b
AX
12352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12355 (eval $ac_try) 2>&5
12356 ac_status=$?
ec06701b
AX
12357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
10946b02 12359
ec06701b 12360 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12361$as_echo "yes" >&6; }
12362
ec06701b
AX
12363cat >>confdefs.h <<\_ACEOF
12364#define HAVE_3ARGS_SHRINKER_CALLBACK 1
12365_ACEOF
10946b02
AX
12366
12367
12368else
12369 $as_echo "$as_me: failed program was:" >&5
12370sed 's/^/| /' conftest.$ac_ext >&5
12371
ec06701b 12372 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 12373$as_echo "no" >&6; }
ec06701b 12374 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
10946b02
AX
12375$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12376
12377
12378cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12379/* confdefs.h. */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h. */
10946b02
AX
12384
12385
12386 #include <linux/mm.h>
12387
12388 int shrinker_cb(struct shrinker *,
12389 struct shrink_control *sc);
12390
12391int
12392main (void)
12393{
12394
12395 struct shrinker cache_shrinker = {
12396 .shrink = shrinker_cb,
12397 .seeks = DEFAULT_SEEKS,
12398 };
12399 register_shrinker(&cache_shrinker);
12400
12401 ;
12402 return 0;
12403}
12404
12405_ACEOF
12406
12407
12408 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12409 echo "obj-m := conftest.o" >build/Makefile
12410 modpost_flag=''
12411 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12412 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12414 (eval $ac_try) 2>&5
12415 ac_status=$?
ec06701b
AX
12416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12419 (eval $ac_try) 2>&5
12420 ac_status=$?
ec06701b
AX
12421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; }; then
10946b02 12423
ec06701b 12424 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12425$as_echo "yes" >&6; }
12426
ec06701b
AX
12427cat >>confdefs.h <<\_ACEOF
12428#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
12429_ACEOF
10946b02
AX
12430
12431
12432else
12433 $as_echo "$as_me: failed program was:" >&5
12434sed 's/^/| /' conftest.$ac_ext >&5
12435
ec06701b 12436 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 12437$as_echo "no" >&6; }
ec06701b 12438 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
10946b02
AX
12439$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
12440
12441
12442cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12443/* confdefs.h. */
12444_ACEOF
12445cat confdefs.h >>conftest.$ac_ext
12446cat >>conftest.$ac_ext <<_ACEOF
12447/* end confdefs.h. */
10946b02
AX
12448
12449
12450 #include <linux/mm.h>
12451
12452 unsigned long shrinker_cb(
12453 struct shrinker *,
12454 struct shrink_control *sc);
12455
12456int
12457main (void)
12458{
12459
12460 struct shrinker cache_shrinker = {
12461 .count_objects = shrinker_cb,
12462 .scan_objects = shrinker_cb,
12463 .seeks = DEFAULT_SEEKS,
12464 };
12465 register_shrinker(&cache_shrinker);
12466
12467 ;
12468 return 0;
12469}
12470
12471_ACEOF
12472
12473
12474 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12475 echo "obj-m := conftest.o" >build/Makefile
12476 modpost_flag=''
12477 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12478 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
ec06701b
AX
12482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12485 (eval $ac_try) 2>&5
12486 ac_status=$?
ec06701b
AX
12487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
10946b02 12489
ec06701b 12490 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12491$as_echo "yes" >&6; }
12492
ec06701b
AX
12493cat >>confdefs.h <<\_ACEOF
12494#define HAVE_SPLIT_SHRINKER_CALLBACK 1
12495_ACEOF
10946b02
AX
12496
12497
12498else
12499 $as_echo "$as_me: failed program was:" >&5
12500sed 's/^/| /' conftest.$ac_ext >&5
12501
ec06701b
AX
12502 { { $as_echo "$as_me:$LINENO: error: error" >&5
12503$as_echo "$as_me: error: error" >&2;}
12504 { (exit 1); exit 1; }; }
10946b02
AX
12505
12506
12507
12508fi
ec06701b 12509
10946b02
AX
12510 rm -Rf build
12511
12512
12513
12514
12515
12516fi
ec06701b 12517
10946b02
AX
12518 rm -Rf build
12519
12520
12521
12522
12523
12524fi
ec06701b 12525
10946b02
AX
12526 rm -Rf build
12527
12528
12529
12530
12531
12532fi
ec06701b 12533
10946b02
AX
12534 rm -Rf build
12535
12536
12537 EXTRA_KCFLAGS="$tmp_flags"
12538
12539
ec06701b 12540 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
10946b02
AX
12541$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12542
12543
12544cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
10946b02
AX
12550
12551
12552 #include <linux/sysctl.h>
12553
12554int
12555main (void)
12556{
12557
12558 struct ctl_table ctl __attribute__ ((unused));
12559 ctl.ctl_name = 0;
12560
12561 ;
12562 return 0;
12563}
12564
12565_ACEOF
12566
12567
12568 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12569 echo "obj-m := conftest.o" >build/Makefile
12570 modpost_flag=''
12571 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12572 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
ec06701b
AX
12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
ec06701b
AX
12581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
10946b02 12583
ec06701b 12584 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12585$as_echo "yes" >&6; }
12586
ec06701b
AX
12587cat >>confdefs.h <<\_ACEOF
12588#define HAVE_CTL_NAME 1
12589_ACEOF
10946b02
AX
12590
12591
12592else
12593 $as_echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
ec06701b 12596 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12597$as_echo "no" >&6; }
12598
12599
12600
12601fi
ec06701b 12602
10946b02
AX
12603 rm -Rf build
12604
12605
12606
12607
ec06701b 12608 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
0f836a62
AX
12609$as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
12610
12611
12612cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12613/* confdefs.h. */
12614_ACEOF
12615cat confdefs.h >>conftest.$ac_ext
12616cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */
0f836a62
AX
12618
12619
12620 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
12621 #error CONFIG_TRIM_UNUSED_KSYMS not defined
12622 #endif
12623
12624int
12625main (void)
12626{
12627
12628 ;
12629 return 0;
12630}
12631
12632_ACEOF
12633
12634
12635 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12636 echo "obj-m := conftest.o" >build/Makefile
12637 modpost_flag=''
12638 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12639 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
ec06701b
AX
12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
ec06701b
AX
12648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
0f836a62 12650
ec06701b 12651 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
12652$as_echo "yes" >&6; }
12653
12654else
12655 $as_echo "$as_me: failed program was:" >&5
12656sed 's/^/| /' conftest.$ac_ext >&5
12657
ec06701b 12658 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62 12659$as_echo "no" >&6; }
ec06701b
AX
12660 { { $as_echo "$as_me:$LINENO: error:
12661 *** This kernel has unused symbols trimming enabled, please disable.
12662 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
12663$as_echo "$as_me: error:
0f836a62 12664 *** This kernel has unused symbols trimming enabled, please disable.
ec06701b
AX
12665 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
12666 { (exit 1); exit 1; }; }
0f836a62
AX
12667
12668
12669
12670fi
ec06701b 12671
0f836a62
AX
12672 rm -Rf build
12673
12674
12675
12676
ec06701b 12677 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
10946b02
AX
12678$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
12679
12680
12681
12682cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12683/* confdefs.h. */
12684_ACEOF
12685cat confdefs.h >>conftest.$ac_ext
12686cat >>conftest.$ac_ext <<_ACEOF
12687/* end confdefs.h. */
10946b02
AX
12688
12689
12690 #include <linux/proc_fs.h>
12691
12692int
12693main (void)
12694{
12695
12696 PDE_DATA(NULL);
12697
12698 ;
12699 return 0;
12700}
12701
12702_ACEOF
12703
12704
12705 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12706 echo "obj-m := conftest.o" >build/Makefile
12707 modpost_flag=''
12708 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12709 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
ec06701b
AX
12713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
ec06701b
AX
12718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
10946b02
AX
12720 rc=0
12721else
12722 $as_echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724 rc=1
12725
12726
12727fi
ec06701b 12728
10946b02
AX
12729 rm -Rf build
12730
12731
12732 if test $rc -ne 0; then :
12733
ec06701b 12734 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12735$as_echo "no" >&6; }
12736
12737 else
12738 if test "x$enable_linux_builtin" != xyes; then
12739
12740 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
12741 $LINUX_OBJ/Module*.symvers 2>/dev/null
12742 rc=$?
12743 if test $rc -ne 0; then
12744 export=0
12745 for file in ; do
12746 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
12747 "$LINUX_OBJ/$file" 2>/dev/null
12748 rc=$?
12749 if test $rc -eq 0; then
12750 export=1
12751 break;
12752 fi
12753 done
12754 if test $export -eq 0; then :
12755 rc=1
12756 else :
12757 rc=0
12758 fi
12759 else :
12760 rc=0
12761 fi
12762
12763 fi
12764 if test $rc -ne 0; then :
12765
ec06701b 12766 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12767$as_echo "no" >&6; }
12768
12769 else :
12770
ec06701b 12771 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12772$as_echo "yes" >&6; }
12773
ec06701b
AX
12774cat >>confdefs.h <<\_ACEOF
12775#define HAVE_PDE_DATA 1
12776_ACEOF
10946b02
AX
12777
12778
12779 fi
12780 fi
12781
12782
12783 tmp_flags="$EXTRA_KCFLAGS"
12784 EXTRA_KCFLAGS="-Werror"
ec06701b 12785 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
10946b02
AX
12786$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
12787
12788
12789cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12790/* confdefs.h. */
12791_ACEOF
12792cat confdefs.h >>conftest.$ac_ext
12793cat >>conftest.$ac_ext <<_ACEOF
12794/* end confdefs.h. */
10946b02
AX
12795
12796
12797 #include <linux/spinlock.h>
12798 #include <linux/fs_struct.h>
12799 #include <linux/path.h>
12800 void (*const set_fs_pwd_func)
12801 (struct fs_struct *, const struct path *)
12802 = set_fs_pwd;
12803
12804int
12805main (void)
12806{
12807
12808 return 0;
12809
12810 ;
12811 return 0;
12812}
12813
12814_ACEOF
12815
12816
12817 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12818 echo "obj-m := conftest.o" >build/Makefile
12819 modpost_flag=''
12820 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12821 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12823 (eval $ac_try) 2>&5
12824 ac_status=$?
ec06701b
AX
12825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
ec06701b
AX
12830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
10946b02 12832
ec06701b 12833 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12834$as_echo "yes" >&6; }
12835
ec06701b
AX
12836cat >>confdefs.h <<\_ACEOF
12837#define HAVE_SET_FS_PWD_WITH_CONST 1
12838_ACEOF
10946b02
AX
12839
12840
12841else
12842 $as_echo "$as_me: failed program was:" >&5
12843sed 's/^/| /' conftest.$ac_ext >&5
12844
12845
12846
12847cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12848/* confdefs.h. */
12849_ACEOF
12850cat confdefs.h >>conftest.$ac_ext
12851cat >>conftest.$ac_ext <<_ACEOF
12852/* end confdefs.h. */
10946b02
AX
12853
12854
12855 #include <linux/spinlock.h>
12856 #include <linux/fs_struct.h>
12857 #include <linux/path.h>
12858 void (*const set_fs_pwd_func)
12859 (struct fs_struct *, struct path *)
12860 = set_fs_pwd;
12861
12862int
12863main (void)
12864{
12865
12866 return 0;
12867
12868 ;
12869 return 0;
12870}
12871
12872_ACEOF
12873
12874
12875 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12876 echo "obj-m := conftest.o" >build/Makefile
12877 modpost_flag=''
12878 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
ec06701b
AX
12883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
ec06701b
AX
12888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
10946b02 12890
ec06701b 12891 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
12892$as_echo "no" >&6; }
12893
12894else
12895 $as_echo "$as_me: failed program was:" >&5
12896sed 's/^/| /' conftest.$ac_ext >&5
12897
ec06701b
AX
12898 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
12899$as_echo "$as_me: error: unknown" >&2;}
12900 { (exit 1); exit 1; }; }
10946b02
AX
12901
12902
12903
12904fi
ec06701b 12905
10946b02
AX
12906 rm -Rf build
12907
12908
12909
12910
12911
12912fi
ec06701b 12913
10946b02
AX
12914 rm -Rf build
12915
12916
12917 EXTRA_KCFLAGS="$tmp_flags"
12918
34ee731f
AX
12919
12920 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
12921$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
10946b02
AX
12922
12923
12924cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
10946b02
AX
12930
12931
12932 #include <linux/fs.h>
12933
12934int
12935main (void)
12936{
12937
34ee731f 12938 vfs_fsync(NULL, 0);
10946b02
AX
12939
12940 ;
12941 return 0;
12942}
12943
12944_ACEOF
12945
12946
12947 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12948 echo "obj-m := conftest.o" >build/Makefile
12949 modpost_flag=''
12950 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12951 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
ec06701b
AX
12955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
ec06701b
AX
12960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
10946b02 12962
ec06701b 12963 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
12964$as_echo "yes" >&6; }
12965
ec06701b 12966cat >>confdefs.h <<\_ACEOF
34ee731f 12967#define HAVE_2ARGS_VFS_FSYNC 1
ec06701b 12968_ACEOF
10946b02
AX
12969
12970
12971else
12972 $as_echo "$as_me: failed program was:" >&5
12973sed 's/^/| /' conftest.$ac_ext >&5
12974
ec06701b 12975 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 12976$as_echo "no" >&6; }
34ee731f
AX
12977
12978
12979
12980fi
12981
12982 rm -Rf build
12983
12984
12985
12986
12987 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
12988$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
10946b02
AX
12989
12990
12991cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h. */
10946b02
AX
12997
12998
34ee731f 12999 #include <linux/fs.h>
10946b02
AX
13000
13001int
13002main (void)
13003{
13004
34ee731f
AX
13005 struct inode_operations ops;
13006 ops.truncate_range = NULL;
10946b02
AX
13007
13008 ;
13009 return 0;
13010}
13011
13012_ACEOF
13013
13014
13015 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13016 echo "obj-m := conftest.o" >build/Makefile
13017 modpost_flag=''
13018 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13019 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
ec06701b
AX
13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13026 (eval $ac_try) 2>&5
13027 ac_status=$?
ec06701b
AX
13028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; }; then
10946b02 13030
34ee731f 13031 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13032$as_echo "yes" >&6; }
13033
ec06701b 13034cat >>confdefs.h <<\_ACEOF
34ee731f 13035#define HAVE_INODE_TRUNCATE_RANGE 1
ec06701b 13036_ACEOF
10946b02
AX
13037
13038
13039else
13040 $as_echo "$as_me: failed program was:" >&5
13041sed 's/^/| /' conftest.$ac_ext >&5
13042
34ee731f
AX
13043 { $as_echo "$as_me:$LINENO: result: no" >&5
13044$as_echo "no" >&6; }
10946b02
AX
13045
13046
13047
13048fi
ec06701b 13049
10946b02
AX
13050 rm -Rf build
13051
13052
13053
13054
34ee731f
AX
13055 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
13056$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13057 tmp_flags="$EXTRA_KCFLAGS"
13058 EXTRA_KCFLAGS="-Werror"
10946b02
AX
13059
13060
13061cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13062/* confdefs.h. */
13063_ACEOF
13064cat confdefs.h >>conftest.$ac_ext
13065cat >>conftest.$ac_ext <<_ACEOF
13066/* end confdefs.h. */
10946b02
AX
13067
13068
34ee731f
AX
13069 #include <linux/sched.h>
13070 #include <linux/fs_struct.h>
10946b02
AX
13071
13072int
13073main (void)
13074{
13075
34ee731f
AX
13076 static struct fs_struct fs;
13077 spin_lock_init(&fs.lock);
10946b02
AX
13078
13079 ;
13080 return 0;
13081}
13082
13083_ACEOF
13084
13085
13086 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13087 echo "obj-m := conftest.o" >build/Makefile
13088 modpost_flag=''
13089 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13090 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13092 (eval $ac_try) 2>&5
13093 ac_status=$?
ec06701b
AX
13094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
ec06701b
AX
13099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
10946b02 13101
ec06701b 13102 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13103$as_echo "yes" >&6; }
13104
ec06701b 13105cat >>confdefs.h <<\_ACEOF
34ee731f 13106#define HAVE_FS_STRUCT_SPINLOCK 1
ec06701b 13107_ACEOF
10946b02
AX
13108
13109
13110else
13111 $as_echo "$as_me: failed program was:" >&5
13112sed 's/^/| /' conftest.$ac_ext >&5
13113
ec06701b 13114 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13115$as_echo "no" >&6; }
34ee731f
AX
13116
13117
13118
13119fi
13120
13121 rm -Rf build
13122
13123
13124 EXTRA_KCFLAGS="$tmp_flags"
13125
13126
13127 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
13128$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
10946b02
AX
13129
13130
13131cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13132/* confdefs.h. */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h. */
10946b02
AX
13137
13138
34ee731f 13139 #include <linux/uidgid.h>
10946b02
AX
13140
13141int
13142main (void)
13143{
13144
34ee731f
AX
13145 kuid_t userid = KUIDT_INIT(0);
13146 kgid_t groupid = KGIDT_INIT(0);
10946b02
AX
13147
13148 ;
13149 return 0;
13150}
13151
13152_ACEOF
13153
13154
13155 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13156 echo "obj-m := conftest.o" >build/Makefile
13157 modpost_flag=''
13158 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13159 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
ec06701b
AX
13163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
ec06701b
AX
13168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
10946b02 13170
10946b02
AX
13171
13172
13173cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13174/* confdefs.h. */
13175_ACEOF
13176cat confdefs.h >>conftest.$ac_ext
13177cat >>conftest.$ac_ext <<_ACEOF
13178/* end confdefs.h. */
10946b02
AX
13179
13180
34ee731f 13181 #include <linux/uidgid.h>
10946b02
AX
13182
13183int
13184main (void)
13185{
13186
34ee731f
AX
13187 kuid_t userid = 0;
13188 kgid_t groupid = 0;
10946b02
AX
13189
13190 ;
13191 return 0;
13192}
13193
13194_ACEOF
13195
13196
13197 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13198 echo "obj-m := conftest.o" >build/Makefile
13199 modpost_flag=''
13200 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13201 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13203 (eval $ac_try) 2>&5
13204 ac_status=$?
ec06701b
AX
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
ec06701b
AX
13210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
10946b02 13212
34ee731f
AX
13213 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
13214$as_echo "yes; optional" >&6; }
10946b02
AX
13215
13216else
13217 $as_echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
34ee731f
AX
13220 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
13221$as_echo "yes; mandatory" >&6; }
10946b02 13222
34ee731f
AX
13223cat >>confdefs.h <<\_ACEOF
13224#define HAVE_KUIDGID_T 1
13225_ACEOF
10946b02
AX
13226
13227
13228
13229
13230fi
ec06701b 13231
10946b02
AX
13232 rm -Rf build
13233
13234
13235
34ee731f
AX
13236else
13237 $as_echo "$as_me: failed program was:" >&5
13238sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 { $as_echo "$as_me:$LINENO: result: no" >&5
13241$as_echo "no" >&6; }
13242
10946b02
AX
13243
13244
13245fi
ec06701b 13246
10946b02
AX
13247 rm -Rf build
13248
13249
13250
13251
34ee731f
AX
13252
13253 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13254$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
10946b02
AX
13255
13256
13257cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13258/* confdefs.h. */
13259_ACEOF
13260cat confdefs.h >>conftest.$ac_ext
13261cat >>conftest.$ac_ext <<_ACEOF
13262/* end confdefs.h. */
10946b02
AX
13263
13264
13265 #include <linux/fs.h>
13266
13267int
13268main (void)
13269{
13270
34ee731f
AX
13271 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13272 struct file_operations fops __attribute__ ((unused)) = {
13273 .fallocate = fallocate,
13274 };
10946b02
AX
13275
13276 ;
13277 return 0;
13278}
13279
13280_ACEOF
13281
13282
13283 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13284 echo "obj-m := conftest.o" >build/Makefile
13285 modpost_flag=''
13286 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13287 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13289 (eval $ac_try) 2>&5
13290 ac_status=$?
ec06701b
AX
13291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13294 (eval $ac_try) 2>&5
13295 ac_status=$?
ec06701b
AX
13296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
10946b02 13298
ec06701b 13299 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13300$as_echo "yes" >&6; }
13301
ec06701b 13302cat >>confdefs.h <<\_ACEOF
34ee731f 13303#define HAVE_FILE_FALLOCATE 1
ec06701b 13304_ACEOF
10946b02
AX
13305
13306
13307else
13308 $as_echo "$as_me: failed program was:" >&5
13309sed 's/^/| /' conftest.$ac_ext >&5
13310
ec06701b 13311 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13312$as_echo "no" >&6; }
13313
13314
13315
13316fi
ec06701b 13317
10946b02
AX
13318 rm -Rf build
13319
13320
13321
13322
34ee731f
AX
13323 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
13324$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
10946b02
AX
13325
13326
13327cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
13332/* end confdefs.h. */
10946b02
AX
13333
13334
13335 #include <linux/fs.h>
13336
13337int
13338main (void)
13339{
13340
34ee731f
AX
13341 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
13342 struct inode_operations fops __attribute__ ((unused)) = {
13343 .fallocate = fallocate,
13344 };
10946b02
AX
13345
13346 ;
13347 return 0;
13348}
13349
13350_ACEOF
13351
13352
13353 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13354 echo "obj-m := conftest.o" >build/Makefile
13355 modpost_flag=''
13356 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13357 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13359 (eval $ac_try) 2>&5
13360 ac_status=$?
ec06701b
AX
13361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13364 (eval $ac_try) 2>&5
13365 ac_status=$?
ec06701b
AX
13366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; }; then
10946b02 13368
ec06701b 13369 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13370$as_echo "yes" >&6; }
13371
ec06701b 13372cat >>confdefs.h <<\_ACEOF
34ee731f 13373#define HAVE_INODE_FALLOCATE 1
ec06701b 13374_ACEOF
10946b02
AX
13375
13376
13377else
13378 $as_echo "$as_me: failed program was:" >&5
13379sed 's/^/| /' conftest.$ac_ext >&5
13380
ec06701b 13381 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13382$as_echo "no" >&6; }
13383
13384
13385
13386fi
ec06701b 13387
10946b02
AX
13388 rm -Rf build
13389
13390
13391
13392
34ee731f
AX
13393 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
13394$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
10946b02
AX
13395
13396
13397cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
10946b02
AX
13403
13404
34ee731f 13405 #include <linux/fs.h>
10946b02
AX
13406
13407int
13408main (void)
13409{
13410
34ee731f
AX
13411 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13412 struct file_operations_no_const fops __attribute__ ((unused)) = {
13413 .fallocate = fallocate,
13414 };
10946b02
AX
13415
13416 ;
13417 return 0;
13418}
13419
13420_ACEOF
13421
13422
13423 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13424 echo "obj-m := conftest.o" >build/Makefile
13425 modpost_flag=''
13426 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13427 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13429 (eval $ac_try) 2>&5
13430 ac_status=$?
ec06701b
AX
13431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
ec06701b
AX
13436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
10946b02 13438
ec06701b 13439 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13440$as_echo "yes" >&6; }
13441
ec06701b 13442cat >>confdefs.h <<\_ACEOF
34ee731f 13443#define HAVE_FILE_FALLOCATE 1
ec06701b 13444_ACEOF
10946b02
AX
13445
13446
13447else
13448 $as_echo "$as_me: failed program was:" >&5
13449sed 's/^/| /' conftest.$ac_ext >&5
13450
ec06701b 13451 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13452$as_echo "no" >&6; }
13453
13454
13455
13456fi
ec06701b 13457
10946b02
AX
13458 rm -Rf build
13459
13460
10946b02
AX
13461
13462
34ee731f
AX
13463
13464 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
13465$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
10946b02
AX
13466
13467
13468cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13469/* confdefs.h. */
13470_ACEOF
13471cat confdefs.h >>conftest.$ac_ext
13472cat >>conftest.$ac_ext <<_ACEOF
13473/* end confdefs.h. */
10946b02
AX
13474
13475
34ee731f
AX
13476 #if !defined(CONFIG_ZLIB_INFLATE) && \
13477 !defined(CONFIG_ZLIB_INFLATE_MODULE)
13478 #error CONFIG_ZLIB_INFLATE not defined
13479 #endif
10946b02
AX
13480
13481int
13482main (void)
13483{
13484
10946b02
AX
13485 ;
13486 return 0;
13487}
13488
13489_ACEOF
13490
13491
13492 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13493 echo "obj-m := conftest.o" >build/Makefile
13494 modpost_flag=''
13495 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13496 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
ec06701b
AX
13500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
ec06701b
AX
13505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; }; then
10946b02 13507
34ee731f
AX
13508 { $as_echo "$as_me:$LINENO: result: yes" >&5
13509$as_echo "yes" >&6; }
13510
13511else
13512 $as_echo "$as_me: failed program was:" >&5
13513sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 { $as_echo "$as_me:$LINENO: result: no" >&5
13516$as_echo "no" >&6; }
13517 { { $as_echo "$as_me:$LINENO: error:
13518 *** This kernel does not include the required zlib inflate support.
13519 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
13520$as_echo "$as_me: error:
13521 *** This kernel does not include the required zlib inflate support.
13522 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
13523 { (exit 1); exit 1; }; }
13524
13525
13526
13527fi
13528
13529 rm -Rf build
13530
13531
13532
13533
13534 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
13535$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
10946b02
AX
13536
13537
13538cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13539/* confdefs.h. */
13540_ACEOF
13541cat confdefs.h >>conftest.$ac_ext
13542cat >>conftest.$ac_ext <<_ACEOF
13543/* end confdefs.h. */
10946b02
AX
13544
13545
34ee731f
AX
13546 #if !defined(CONFIG_ZLIB_DEFLATE) && \
13547 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
13548 #error CONFIG_ZLIB_DEFLATE not defined
13549 #endif
10946b02
AX
13550
13551int
13552main (void)
13553{
13554
10946b02
AX
13555 ;
13556 return 0;
13557}
13558
13559_ACEOF
13560
13561
13562 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13563 echo "obj-m := conftest.o" >build/Makefile
13564 modpost_flag=''
13565 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13566 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
ec06701b
AX
13570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13573 (eval $ac_try) 2>&5
13574 ac_status=$?
ec06701b
AX
13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
10946b02 13577
34ee731f
AX
13578 { $as_echo "$as_me:$LINENO: result: yes" >&5
13579$as_echo "yes" >&6; }
10946b02
AX
13580
13581else
13582 $as_echo "$as_me: failed program was:" >&5
13583sed 's/^/| /' conftest.$ac_ext >&5
13584
ec06701b 13585 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13586$as_echo "no" >&6; }
34ee731f
AX
13587 { { $as_echo "$as_me:$LINENO: error:
13588 *** This kernel does not include the required zlib deflate support.
13589 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
13590$as_echo "$as_me: error:
13591 *** This kernel does not include the required zlib deflate support.
13592 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
13593 { (exit 1); exit 1; }; }
10946b02
AX
13594
13595
13596
13597fi
ec06701b 13598
10946b02
AX
13599 rm -Rf build
13600
13601
13602
34ee731f
AX
13603 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
13604$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
10946b02
AX
13605
13606
13607cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13608/* confdefs.h. */
13609_ACEOF
13610cat confdefs.h >>conftest.$ac_ext
13611cat >>conftest.$ac_ext <<_ACEOF
13612/* end confdefs.h. */
10946b02
AX
13613
13614
34ee731f 13615 #include <linux/zlib.h>
10946b02
AX
13616
13617int
13618main (void)
13619{
13620
34ee731f 13621 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
10946b02
AX
13622
13623 ;
13624 return 0;
13625}
13626
13627_ACEOF
13628
13629
13630 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13631 echo "obj-m := conftest.o" >build/Makefile
13632 modpost_flag=''
13633 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13634 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
ec06701b
AX
13638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
ec06701b
AX
13643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }; then
10946b02 13645
ec06701b 13646 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13647$as_echo "yes" >&6; }
13648
ec06701b 13649cat >>confdefs.h <<\_ACEOF
34ee731f 13650#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
ec06701b 13651_ACEOF
10946b02
AX
13652
13653
13654else
13655 $as_echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
ec06701b 13658 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13659$as_echo "no" >&6; }
13660
13661
13662
13663fi
ec06701b 13664
10946b02
AX
13665 rm -Rf build
13666
13667
13668
13669
34ee731f
AX
13670 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
13671$as_echo_n "checking whether struct shrink_control exists... " >&6; }
10946b02
AX
13672
13673
13674cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13675/* confdefs.h. */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h. */
10946b02
AX
13680
13681
34ee731f 13682 #include <linux/mm.h>
10946b02
AX
13683
13684int
13685main (void)
13686{
13687
34ee731f
AX
13688 struct shrink_control sc __attribute__ ((unused));
13689
13690 sc.nr_to_scan = 0;
13691 sc.gfp_mask = GFP_KERNEL;
10946b02
AX
13692
13693 ;
13694 return 0;
13695}
13696
13697_ACEOF
13698
13699
13700 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13701 echo "obj-m := conftest.o" >build/Makefile
13702 modpost_flag=''
13703 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13704 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13706 (eval $ac_try) 2>&5
13707 ac_status=$?
ec06701b
AX
13708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
ec06701b
AX
13713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
10946b02 13715
ec06701b 13716 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13717$as_echo "yes" >&6; }
13718
ec06701b 13719cat >>confdefs.h <<\_ACEOF
34ee731f 13720#define HAVE_SHRINK_CONTROL_STRUCT 1
ec06701b 13721_ACEOF
10946b02
AX
13722
13723
13724else
13725 $as_echo "$as_me: failed program was:" >&5
13726sed 's/^/| /' conftest.$ac_ext >&5
13727
ec06701b 13728 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13729$as_echo "no" >&6; }
13730
13731
13732
13733fi
ec06701b 13734
10946b02
AX
13735 rm -Rf build
13736
13737
13738
13739
34ee731f
AX
13740 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
13741$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
13742 tmp_flags="$EXTRA_KCFLAGS"
13743 EXTRA_KCFLAGS="-Werror"
10946b02
AX
13744
13745
13746cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13747/* confdefs.h. */
13748_ACEOF
13749cat confdefs.h >>conftest.$ac_ext
13750cat >>conftest.$ac_ext <<_ACEOF
13751/* end confdefs.h. */
10946b02
AX
13752
13753
34ee731f 13754 #include <linux/rwsem.h>
10946b02
AX
13755
13756int
13757main (void)
13758{
13759
34ee731f
AX
13760 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
13761 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
13762 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
13763 dummy_semaphore.wait_lock = dummy_lock;
10946b02
AX
13764
13765 ;
13766 return 0;
13767}
13768
13769_ACEOF
13770
13771
13772 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13773 echo "obj-m := conftest.o" >build/Makefile
13774 modpost_flag=''
13775 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
ec06701b
AX
13780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
ec06701b
AX
13785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
10946b02 13787
ec06701b 13788 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13789$as_echo "yes" >&6; }
13790
ec06701b 13791cat >>confdefs.h <<\_ACEOF
34ee731f 13792#define RWSEM_SPINLOCK_IS_RAW 1
ec06701b 13793_ACEOF
10946b02
AX
13794
13795
13796else
13797 $as_echo "$as_me: failed program was:" >&5
13798sed 's/^/| /' conftest.$ac_ext >&5
13799
ec06701b 13800 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
13801$as_echo "no" >&6; }
13802
13803
13804
13805fi
ec06701b 13806
10946b02
AX
13807 rm -Rf build
13808
13809
34ee731f 13810 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
13811
13812
34ee731f
AX
13813 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
13814$as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
13815 tmp_flags="$EXTRA_KCFLAGS"
13816 EXTRA_KCFLAGS="-Werror"
10946b02
AX
13817
13818
13819cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
10946b02
AX
13825
13826
34ee731f 13827 #include <linux/rwsem.h>
10946b02
AX
13828
13829int
13830main (void)
13831{
13832
34ee731f
AX
13833 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
13834 dummy_semaphore.activity = 0;
13835
10946b02
AX
13836 ;
13837 return 0;
13838}
13839
13840_ACEOF
13841
13842
13843 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13844 echo "obj-m := conftest.o" >build/Makefile
13845 modpost_flag=''
13846 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13847 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
ec06701b
AX
13851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
ec06701b
AX
13856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
10946b02 13858
ec06701b 13859 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13860$as_echo "yes" >&6; }
13861
34ee731f
AX
13862cat >>confdefs.h <<\_ACEOF
13863#define HAVE_RWSEM_ACTIVITY 1
13864_ACEOF
13865
13866
10946b02
AX
13867else
13868 $as_echo "$as_me: failed program was:" >&5
13869sed 's/^/| /' conftest.$ac_ext >&5
13870
ec06701b 13871 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13872$as_echo "no" >&6; }
10946b02
AX
13873
13874
13875
13876fi
ec06701b 13877
10946b02
AX
13878 rm -Rf build
13879
13880
34ee731f 13881 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
13882
13883
34ee731f
AX
13884 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
13885$as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
13886 tmp_flags="$EXTRA_KCFLAGS"
13887 EXTRA_KCFLAGS="-Werror"
10946b02
AX
13888
13889
13890cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13891/* confdefs.h. */
13892_ACEOF
13893cat confdefs.h >>conftest.$ac_ext
13894cat >>conftest.$ac_ext <<_ACEOF
13895/* end confdefs.h. */
10946b02
AX
13896
13897
34ee731f 13898 #include <linux/rwsem.h>
10946b02
AX
13899
13900int
13901main (void)
13902{
13903
34ee731f
AX
13904 DECLARE_RWSEM(dummy_semaphore);
13905 (void) atomic_long_read(&dummy_semaphore.count);
13906
10946b02
AX
13907 ;
13908 return 0;
13909}
13910
13911_ACEOF
13912
13913
13914 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13915 echo "obj-m := conftest.o" >build/Makefile
13916 modpost_flag=''
13917 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13918 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
ec06701b
AX
13922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13925 (eval $ac_try) 2>&5
13926 ac_status=$?
ec06701b
AX
13927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 (exit $ac_status); }; }; then
10946b02 13929
ec06701b 13930 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
13931$as_echo "yes" >&6; }
13932
34ee731f
AX
13933cat >>confdefs.h <<\_ACEOF
13934#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
13935_ACEOF
13936
13937
10946b02
AX
13938else
13939 $as_echo "$as_me: failed program was:" >&5
13940sed 's/^/| /' conftest.$ac_ext >&5
13941
ec06701b 13942 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 13943$as_echo "no" >&6; }
10946b02
AX
13944
13945
13946
13947fi
ec06701b 13948
10946b02
AX
13949 rm -Rf build
13950
13951
34ee731f 13952 EXTRA_KCFLAGS="$tmp_flags"
10946b02 13953
34ee731f
AX
13954 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
13955$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
10946b02
AX
13956
13957
13958cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
13959/* confdefs.h. */
13960_ACEOF
13961cat confdefs.h >>conftest.$ac_ext
13962cat >>conftest.$ac_ext <<_ACEOF
13963/* end confdefs.h. */
10946b02
AX
13964
13965
34ee731f
AX
13966 #include <linux/sched.h>
13967 #include <linux/sched/rt.h>
10946b02
AX
13968
13969int
13970main (void)
13971{
13972
34ee731f 13973 return 0;
10946b02
AX
13974
13975 ;
13976 return 0;
13977}
13978
13979_ACEOF
13980
13981
13982 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13983 echo "obj-m := conftest.o" >build/Makefile
13984 modpost_flag=''
13985 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13986 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
ec06701b
AX
13990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
ec06701b
AX
13995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
10946b02 13997
10946b02 13998
ec06701b 13999cat >>confdefs.h <<\_ACEOF
34ee731f 14000#define HAVE_SCHED_RT_HEADER 1
ec06701b 14001_ACEOF
10946b02 14002
34ee731f
AX
14003 { $as_echo "$as_me:$LINENO: result: yes" >&5
14004$as_echo "yes" >&6; }
10946b02
AX
14005
14006else
14007 $as_echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
ec06701b 14010 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14011$as_echo "no" >&6; }
14012
14013
14014
14015fi
ec06701b 14016
10946b02
AX
14017 rm -Rf build
14018
14019
14020
34ee731f
AX
14021 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
14022$as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
10946b02
AX
14023
14024
14025cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14026/* confdefs.h. */
14027_ACEOF
14028cat confdefs.h >>conftest.$ac_ext
14029cat >>conftest.$ac_ext <<_ACEOF
14030/* end confdefs.h. */
10946b02
AX
14031
14032
34ee731f
AX
14033 #include <linux/sched.h>
14034 #include <linux/sched/signal.h>
10946b02
AX
14035
14036int
14037main (void)
14038{
14039
34ee731f 14040 return 0;
10946b02
AX
14041
14042 ;
14043 return 0;
14044}
14045
14046_ACEOF
14047
14048
14049 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14050 echo "obj-m := conftest.o" >build/Makefile
14051 modpost_flag=''
14052 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14053 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14055 (eval $ac_try) 2>&5
14056 ac_status=$?
ec06701b
AX
14057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14060 (eval $ac_try) 2>&5
14061 ac_status=$?
ec06701b
AX
14062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
10946b02 14064
10946b02 14065
ec06701b 14066cat >>confdefs.h <<\_ACEOF
34ee731f 14067#define HAVE_SCHED_SIGNAL_HEADER 1
ec06701b 14068_ACEOF
10946b02 14069
34ee731f
AX
14070 { $as_echo "$as_me:$LINENO: result: yes" >&5
14071$as_echo "yes" >&6; }
10946b02
AX
14072
14073else
14074 $as_echo "$as_me: failed program was:" >&5
14075sed 's/^/| /' conftest.$ac_ext >&5
14076
ec06701b 14077 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14078$as_echo "no" >&6; }
14079
14080
14081
14082fi
ec06701b 14083
10946b02
AX
14084 rm -Rf build
14085
14086
14087
14088
34ee731f
AX
14089 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
14090$as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
10946b02
AX
14091
14092
14093cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14094/* confdefs.h. */
14095_ACEOF
14096cat confdefs.h >>conftest.$ac_ext
14097cat >>conftest.$ac_ext <<_ACEOF
14098/* end confdefs.h. */
10946b02
AX
14099
14100
34ee731f 14101 #include <linux/fs.h>
10946b02
AX
14102
14103int
14104main (void)
14105{
14106
34ee731f
AX
14107 vfs_getattr((const struct path *)NULL,
14108 (struct kstat *)NULL,
14109 (u32)0,
14110 (unsigned int)0);
10946b02
AX
14111
14112 ;
14113 return 0;
14114}
14115
14116_ACEOF
14117
14118
14119 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14120 echo "obj-m := conftest.o" >build/Makefile
14121 modpost_flag=''
14122 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14123 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14125 (eval $ac_try) 2>&5
14126 ac_status=$?
ec06701b
AX
14127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14130 (eval $ac_try) 2>&5
14131 ac_status=$?
ec06701b
AX
14132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
10946b02 14134
ec06701b 14135 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14136$as_echo "yes" >&6; }
14137
ec06701b 14138cat >>confdefs.h <<\_ACEOF
34ee731f 14139#define HAVE_4ARGS_VFS_GETATTR 1
ec06701b 14140_ACEOF
10946b02
AX
14141
14142
14143else
14144 $as_echo "$as_me: failed program was:" >&5
14145sed 's/^/| /' conftest.$ac_ext >&5
14146
ec06701b 14147 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14148$as_echo "no" >&6; }
14149
14150
14151
0f836a62 14152fi
ec06701b 14153
0f836a62
AX
14154 rm -Rf build
14155
14156
0f836a62
AX
14157
14158
34ee731f
AX
14159 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
14160$as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
0f836a62
AX
14161
14162
14163cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14164/* confdefs.h. */
14165_ACEOF
14166cat confdefs.h >>conftest.$ac_ext
14167cat >>conftest.$ac_ext <<_ACEOF
14168/* end confdefs.h. */
0f836a62
AX
14169
14170
34ee731f 14171 #include <linux/fs.h>
0f836a62
AX
14172
14173int
14174main (void)
14175{
14176
34ee731f
AX
14177 vfs_getattr((struct vfsmount *)NULL,
14178 (struct dentry *)NULL,
14179 (struct kstat *)NULL);
0f836a62
AX
14180
14181 ;
14182 return 0;
14183}
14184
14185_ACEOF
14186
14187
14188 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14189 echo "obj-m := conftest.o" >build/Makefile
14190 modpost_flag=''
14191 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14192 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
ec06701b
AX
14196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
ec06701b
AX
14201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
0f836a62 14203
ec06701b 14204 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
14205$as_echo "yes" >&6; }
14206
ec06701b 14207cat >>confdefs.h <<\_ACEOF
34ee731f 14208#define HAVE_3ARGS_VFS_GETATTR 1
ec06701b 14209_ACEOF
0f836a62
AX
14210
14211
14212else
14213 $as_echo "$as_me: failed program was:" >&5
14214sed 's/^/| /' conftest.$ac_ext >&5
14215
ec06701b 14216 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
14217$as_echo "no" >&6; }
14218
14219
14220
14221fi
ec06701b 14222
0f836a62
AX
14223 rm -Rf build
14224
14225
0f836a62
AX
14226
14227
34ee731f
AX
14228 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
14229$as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
0f836a62
AX
14230
14231
14232cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14233/* confdefs.h. */
14234_ACEOF
14235cat confdefs.h >>conftest.$ac_ext
14236cat >>conftest.$ac_ext <<_ACEOF
14237/* end confdefs.h. */
0f836a62
AX
14238
14239
34ee731f 14240 #include <linux/fs.h>
0f836a62
AX
14241
14242int
14243main (void)
14244{
14245
34ee731f
AX
14246 vfs_getattr((struct path *) NULL,
14247 (struct kstat *)NULL);
0f836a62
AX
14248
14249 ;
14250 return 0;
14251}
14252
14253_ACEOF
14254
14255
14256 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14257 echo "obj-m := conftest.o" >build/Makefile
14258 modpost_flag=''
14259 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14260 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
ec06701b
AX
14264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14267 (eval $ac_try) 2>&5
14268 ac_status=$?
ec06701b
AX
14269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
0f836a62 14271
ec06701b 14272 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
14273$as_echo "yes" >&6; }
14274
ec06701b 14275cat >>confdefs.h <<\_ACEOF
34ee731f 14276#define HAVE_2ARGS_VFS_GETATTR 1
ec06701b 14277_ACEOF
0f836a62
AX
14278
14279
14280else
14281 $as_echo "$as_me: failed program was:" >&5
14282sed 's/^/| /' conftest.$ac_ext >&5
14283
ec06701b 14284 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
14285$as_echo "no" >&6; }
14286
14287
14288
10946b02 14289fi
ec06701b 14290
10946b02
AX
14291 rm -Rf build
14292
14293
10946b02 14294
34ee731f
AX
14295
14296 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
14297$as_echo_n "checking whether usleep_range() is available... " >&6; }
10946b02
AX
14298
14299
14300cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14301/* confdefs.h. */
14302_ACEOF
14303cat confdefs.h >>conftest.$ac_ext
14304cat >>conftest.$ac_ext <<_ACEOF
14305/* end confdefs.h. */
10946b02
AX
14306
14307
34ee731f 14308 #include <linux/delay.h>
10946b02
AX
14309
14310int
14311main (void)
14312{
14313
34ee731f 14314 usleep_range(0, 0);
10946b02
AX
14315
14316 ;
14317 return 0;
14318}
14319
14320_ACEOF
14321
14322
14323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14324 echo "obj-m := conftest.o" >build/Makefile
14325 modpost_flag=''
14326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14327 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
ec06701b
AX
14331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14334 (eval $ac_try) 2>&5
14335 ac_status=$?
ec06701b
AX
14336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; }; then
10946b02 14338
34ee731f
AX
14339 { $as_echo "$as_me:$LINENO: result: yes" >&5
14340$as_echo "yes" >&6; }
10946b02 14341
ec06701b 14342cat >>confdefs.h <<\_ACEOF
34ee731f 14343#define HAVE_USLEEP_RANGE 1
ec06701b 14344_ACEOF
10946b02 14345
10946b02
AX
14346
14347else
14348 $as_echo "$as_me: failed program was:" >&5
14349sed 's/^/| /' conftest.$ac_ext >&5
14350
ec06701b 14351 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14352$as_echo "no" >&6; }
14353
14354
14355
2ea56c1d 14356fi
ec06701b 14357
2ea56c1d
AX
14358 rm -Rf build
14359
14360
14361
34ee731f
AX
14362
14363 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
14364$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
2ea56c1d
AX
14365
14366
14367cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14368/* confdefs.h. */
14369_ACEOF
14370cat confdefs.h >>conftest.$ac_ext
14371cat >>conftest.$ac_ext <<_ACEOF
14372/* end confdefs.h. */
2ea56c1d
AX
14373
14374
34ee731f 14375 #include <linux/slab.h>
2ea56c1d
AX
14376
14377int
14378main (void)
14379{
14380
34ee731f
AX
14381 struct kmem_cache cachep __attribute__ ((unused));
14382 cachep.allocflags = GFP_KERNEL;
2ea56c1d
AX
14383
14384 ;
14385 return 0;
14386}
14387
14388_ACEOF
14389
14390
14391 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14392 echo "obj-m := conftest.o" >build/Makefile
14393 modpost_flag=''
14394 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14395 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2ea56c1d
AX
14397 (eval $ac_try) 2>&5
14398 ac_status=$?
ec06701b
AX
14399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2ea56c1d
AX
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
ec06701b
AX
14404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; }; then
2ea56c1d 14406
34ee731f
AX
14407 { $as_echo "$as_me:$LINENO: result: yes" >&5
14408$as_echo "yes" >&6; }
2ea56c1d 14409
ec06701b 14410cat >>confdefs.h <<\_ACEOF
34ee731f 14411#define HAVE_KMEM_CACHE_ALLOCFLAGS 1
ec06701b 14412_ACEOF
2ea56c1d 14413
2ea56c1d
AX
14414
14415else
14416 $as_echo "$as_me: failed program was:" >&5
14417sed 's/^/| /' conftest.$ac_ext >&5
14418
ec06701b 14419 { $as_echo "$as_me:$LINENO: result: no" >&5
2ea56c1d
AX
14420$as_echo "no" >&6; }
14421
34ee731f
AX
14422 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
14423$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
10946b02
AX
14424
14425
14426cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14427/* confdefs.h. */
14428_ACEOF
14429cat confdefs.h >>conftest.$ac_ext
14430cat >>conftest.$ac_ext <<_ACEOF
14431/* end confdefs.h. */
10946b02
AX
14432
14433
34ee731f 14434 #include <linux/slab.h>
10946b02
AX
14435
14436int
14437main (void)
14438{
14439
34ee731f
AX
14440 struct kmem_cache cachep __attribute__ ((unused));
14441 cachep.gfpflags = GFP_KERNEL;
10946b02
AX
14442
14443 ;
14444 return 0;
14445}
14446
14447_ACEOF
14448
14449
14450 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14451 echo "obj-m := conftest.o" >build/Makefile
14452 modpost_flag=''
14453 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14454 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
ec06701b
AX
14458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
ec06701b
AX
14463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
10946b02 14465
34ee731f 14466 { $as_echo "$as_me:$LINENO: result: yes" >&5
2ea56c1d 14467$as_echo "yes" >&6; }
10946b02 14468
ec06701b 14469cat >>confdefs.h <<\_ACEOF
34ee731f 14470#define HAVE_KMEM_CACHE_GFPFLAGS 1
ec06701b 14471_ACEOF
10946b02
AX
14472
14473
14474else
14475 $as_echo "$as_me: failed program was:" >&5
14476sed 's/^/| /' conftest.$ac_ext >&5
14477
34ee731f 14478 { $as_echo "$as_me:$LINENO: result: no" >&5
2ea56c1d
AX
14479$as_echo "no" >&6; }
14480
14481
14482
14483fi
ec06701b 14484
2ea56c1d
AX
14485 rm -Rf build
14486
14487
14488
14489
34ee731f
AX
14490
14491fi
14492
14493 rm -Rf build
14494
14495
14496
14497
14498 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
14499$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
10946b02
AX
14500
14501
14502cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
10946b02
AX
14508
14509
34ee731f 14510 #include <linux/wait.h>
10946b02
AX
14511
14512int
14513main (void)
14514{
14515
34ee731f
AX
14516 int (*action)(void *) = NULL;
14517 wait_on_bit(NULL, 0, action, 0);
10946b02
AX
14518
14519 ;
14520 return 0;
14521}
14522
14523_ACEOF
14524
14525
14526 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14527 echo "obj-m := conftest.o" >build/Makefile
14528 modpost_flag=''
14529 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14530 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14532 (eval $ac_try) 2>&5
14533 ac_status=$?
ec06701b
AX
14534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14537 (eval $ac_try) 2>&5
14538 ac_status=$?
ec06701b
AX
14539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; }; then
10946b02 14541
ec06701b 14542 { $as_echo "$as_me:$LINENO: result: yes" >&5
2ea56c1d
AX
14543$as_echo "yes" >&6; }
14544
ec06701b 14545cat >>confdefs.h <<\_ACEOF
34ee731f 14546#define HAVE_WAIT_ON_BIT_ACTION 1
ec06701b 14547_ACEOF
2ea56c1d 14548
10946b02
AX
14549
14550else
14551 $as_echo "$as_me: failed program was:" >&5
14552sed 's/^/| /' conftest.$ac_ext >&5
14553
ec06701b 14554 { $as_echo "$as_me:$LINENO: result: no" >&5
2ea56c1d 14555$as_echo "no" >&6; }
10946b02
AX
14556
14557
14558
14559fi
ec06701b 14560
10946b02
AX
14561 rm -Rf build
14562
14563
14564
14565
34ee731f
AX
14566 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
14567$as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
14568 tmp_flags="$EXTRA_KCFLAGS"
14569 EXTRA_KCFLAGS="-Werror"
2ea56c1d
AX
14570
14571
14572cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14573/* confdefs.h. */
14574_ACEOF
14575cat confdefs.h >>conftest.$ac_ext
14576cat >>conftest.$ac_ext <<_ACEOF
14577/* end confdefs.h. */
2ea56c1d
AX
14578
14579
14580 #include <linux/fs.h>
14581
14582int
14583main (void)
14584{
14585
34ee731f
AX
14586 struct inode *inode = NULL;
14587 inode_lock_shared(inode);
2ea56c1d
AX
14588
14589 ;
14590 return 0;
14591}
14592
14593_ACEOF
14594
14595
14596 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14597 echo "obj-m := conftest.o" >build/Makefile
14598 modpost_flag=''
14599 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14600 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2ea56c1d
AX
14602 (eval $ac_try) 2>&5
14603 ac_status=$?
ec06701b
AX
14604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2ea56c1d
AX
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
ec06701b
AX
14609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
2ea56c1d 14611
ec06701b 14612 { $as_echo "$as_me:$LINENO: result: yes" >&5
2ea56c1d
AX
14613$as_echo "yes" >&6; }
14614
ec06701b 14615cat >>confdefs.h <<\_ACEOF
34ee731f 14616#define HAVE_INODE_LOCK_SHARED 1
ec06701b 14617_ACEOF
2ea56c1d
AX
14618
14619
14620else
14621 $as_echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
ec06701b 14624 { $as_echo "$as_me:$LINENO: result: no" >&5
2ea56c1d
AX
14625$as_echo "no" >&6; }
14626
14627
10946b02
AX
14628
14629fi
ec06701b 14630
10946b02
AX
14631 rm -Rf build
14632
14633
34ee731f
AX
14634 EXTRA_KCFLAGS="$tmp_flags"
14635
14636
14637 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
14638$as_echo_n "checking whether group_info->gid exists... " >&6; }
14639 tmp_flags="$EXTRA_KCFLAGS"
14640 EXTRA_KCFLAGS="-Werror"
10946b02
AX
14641
14642
10946b02 14643cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14644/* confdefs.h. */
14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */
10946b02
AX
14649
14650
34ee731f 14651 #include <linux/cred.h>
10946b02
AX
14652
14653int
14654main (void)
14655{
14656
34ee731f
AX
14657 struct group_info *gi = groups_alloc(1);
14658 gi->gid[0] = KGIDT_INIT(0);
10946b02
AX
14659
14660 ;
14661 return 0;
14662}
14663
14664_ACEOF
14665
14666
14667 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14668 echo "obj-m := conftest.o" >build/Makefile
14669 modpost_flag=''
14670 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14671 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14673 (eval $ac_try) 2>&5
14674 ac_status=$?
ec06701b
AX
14675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
ec06701b
AX
14680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
10946b02 14682
ec06701b 14683 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14684$as_echo "yes" >&6; }
14685
ec06701b 14686cat >>confdefs.h <<\_ACEOF
34ee731f 14687#define HAVE_GROUP_INFO_GID 1
ec06701b 14688_ACEOF
10946b02
AX
14689
14690
14691else
14692 $as_echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
14694
ec06701b 14695 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14696$as_echo "no" >&6; }
14697
14698
14699
14700fi
ec06701b 14701
10946b02
AX
14702 rm -Rf build
14703
14704
34ee731f 14705 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
14706
14707
34ee731f
AX
14708 { $as_echo "$as_me:$LINENO: checking whether kmem_cache_create_usercopy() exists" >&5
14709$as_echo_n "checking whether kmem_cache_create_usercopy() exists... " >&6; }
14710 tmp_flags="$EXTRA_KCFLAGS"
14711 EXTRA_KCFLAGS="-Werror"
10946b02
AX
14712
14713
14714cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14715/* confdefs.h. */
14716_ACEOF
14717cat confdefs.h >>conftest.$ac_ext
14718cat >>conftest.$ac_ext <<_ACEOF
14719/* end confdefs.h. */
10946b02
AX
14720
14721
14722 #include <linux/slab.h>
34ee731f
AX
14723 static void ctor(void *foo)
14724 {
14725 // fake ctor
14726 }
10946b02
AX
14727
14728int
14729main (void)
14730{
14731
34ee731f
AX
14732 struct kmem_cache *skc_linux_cache;
14733 const char *name = "test";
14734 size_t size = 4096;
14735 size_t align = 8;
14736 unsigned long flags = 0;
14737 size_t useroffset = 0;
14738 size_t usersize = size - useroffset;
14739
14740 skc_linux_cache = kmem_cache_create_usercopy(
14741 name, size, align, flags, useroffset, usersize, ctor);
10946b02
AX
14742
14743 ;
14744 return 0;
14745}
14746
14747_ACEOF
14748
14749
14750 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14751 echo "obj-m := conftest.o" >build/Makefile
14752 modpost_flag=''
14753 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14754 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14756 (eval $ac_try) 2>&5
14757 ac_status=$?
ec06701b
AX
14758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14761 (eval $ac_try) 2>&5
14762 ac_status=$?
ec06701b
AX
14763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; }; then
10946b02 14765
ec06701b 14766 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14767$as_echo "yes" >&6; }
14768
ec06701b 14769cat >>confdefs.h <<\_ACEOF
34ee731f 14770#define HAVE_KMEM_CACHE_CREATE_USERCOPY 1
ec06701b 14771_ACEOF
10946b02
AX
14772
14773
14774else
14775 $as_echo "$as_me: failed program was:" >&5
14776sed 's/^/| /' conftest.$ac_ext >&5
14777
ec06701b 14778 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14779$as_echo "no" >&6; }
14780
34ee731f
AX
14781
14782
14783fi
14784
14785 rm -Rf build
14786
14787
14788 EXTRA_KCFLAGS="$tmp_flags"
14789
14790
14791 { $as_echo "$as_me:$LINENO: checking whether wait_queue_entry_t exists" >&5
14792$as_echo_n "checking whether wait_queue_entry_t exists... " >&6; }
10946b02
AX
14793
14794
14795cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14796/* confdefs.h. */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h. */
10946b02
AX
14801
14802
34ee731f 14803 #include <linux/wait.h>
10946b02
AX
14804
14805int
14806main (void)
14807{
14808
34ee731f 14809 wait_queue_entry_t *entry __attribute__ ((unused));
10946b02
AX
14810
14811 ;
14812 return 0;
14813}
14814
14815_ACEOF
14816
14817
14818 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14819 echo "obj-m := conftest.o" >build/Makefile
14820 modpost_flag=''
14821 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14822 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14824 (eval $ac_try) 2>&5
14825 ac_status=$?
ec06701b
AX
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14829 (eval $ac_try) 2>&5
14830 ac_status=$?
ec06701b
AX
14831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
10946b02 14833
34ee731f 14834 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14835$as_echo "yes" >&6; }
14836
ec06701b 14837cat >>confdefs.h <<\_ACEOF
34ee731f 14838#define HAVE_WAIT_QUEUE_ENTRY_T 1
ec06701b 14839_ACEOF
10946b02
AX
14840
14841
14842else
14843 $as_echo "$as_me: failed program was:" >&5
14844sed 's/^/| /' conftest.$ac_ext >&5
14845
34ee731f 14846 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14847$as_echo "no" >&6; }
14848
14849
14850
14851fi
ec06701b 14852
10946b02
AX
14853 rm -Rf build
14854
14855
14856
14857
34ee731f
AX
14858 { $as_echo "$as_me:$LINENO: checking whether wq_head->head and wq_entry->entry exist" >&5
14859$as_echo_n "checking whether wq_head->head and wq_entry->entry exist... " >&6; }
10946b02
AX
14860
14861
14862cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14863/* confdefs.h. */
14864_ACEOF
14865cat confdefs.h >>conftest.$ac_ext
14866cat >>conftest.$ac_ext <<_ACEOF
14867/* end confdefs.h. */
10946b02
AX
14868
14869
14870 #include <linux/wait.h>
14871
34ee731f
AX
14872 #ifdef HAVE_WAIT_QUEUE_ENTRY_T
14873 typedef wait_queue_head_t spl_wait_queue_head_t;
14874 typedef wait_queue_entry_t spl_wait_queue_entry_t;
14875 #else
14876 typedef wait_queue_head_t spl_wait_queue_head_t;
14877 typedef wait_queue_t spl_wait_queue_entry_t;
14878 #endif
14879
10946b02
AX
14880int
14881main (void)
14882{
14883
34ee731f
AX
14884 spl_wait_queue_head_t wq_head;
14885 spl_wait_queue_entry_t wq_entry;
14886 struct list_head *head __attribute__ ((unused));
14887 struct list_head *entry __attribute__ ((unused));
14888
14889 head = &wq_head.head;
14890 entry = &wq_entry.entry;
10946b02
AX
14891
14892 ;
14893 return 0;
14894}
14895
14896_ACEOF
14897
14898
14899 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14900 echo "obj-m := conftest.o" >build/Makefile
14901 modpost_flag=''
14902 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
ec06701b
AX
14907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
ec06701b
AX
14912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
10946b02 14914
ec06701b 14915 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
14916$as_echo "yes" >&6; }
14917
ec06701b 14918cat >>confdefs.h <<\_ACEOF
34ee731f 14919#define HAVE_WAIT_QUEUE_HEAD_ENTRY 1
ec06701b 14920_ACEOF
10946b02
AX
14921
14922
14923else
14924 $as_echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
ec06701b 14927 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
14928$as_echo "no" >&6; }
14929
14930
14931
14932fi
ec06701b 14933
10946b02
AX
14934 rm -Rf build
14935
14936
14937
0f836a62 14938
34ee731f
AX
14939 { $as_echo "$as_me:$LINENO: checking whether io_schedule_timeout() is available" >&5
14940$as_echo_n "checking whether io_schedule_timeout() is available... " >&6; }
14941
0f836a62
AX
14942
14943
14944cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
14945/* confdefs.h. */
14946_ACEOF
14947cat confdefs.h >>conftest.$ac_ext
14948cat >>conftest.$ac_ext <<_ACEOF
14949/* end confdefs.h. */
0f836a62
AX
14950
14951
34ee731f 14952 #include <linux/sched.h>
0f836a62
AX
14953
14954int
14955main (void)
14956{
14957
34ee731f 14958 (void) io_schedule_timeout(1);
0f836a62
AX
14959
14960 ;
14961 return 0;
14962}
14963
14964_ACEOF
14965
14966
14967 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14968 echo "obj-m := conftest.o" >build/Makefile
14969 modpost_flag=''
14970 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14971 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
ec06701b
AX
14975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
ec06701b
AX
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
34ee731f
AX
14982 rc=0
14983else
14984 $as_echo "$as_me: failed program was:" >&5
14985sed 's/^/| /' conftest.$ac_ext >&5
14986 rc=1
0f836a62 14987
0f836a62 14988
34ee731f 14989fi
0f836a62 14990
34ee731f 14991 rm -Rf build
0f836a62 14992
34ee731f
AX
14993
14994 if test $rc -ne 0; then :
14995
14996 { $as_echo "$as_me:$LINENO: result: no" >&5
14997$as_echo "no" >&6; }
14998
14999 else
15000 if test "x$enable_linux_builtin" != xyes; then
15001
15002 grep -q -E '[[:space:]]io_schedule_timeout[[:space:]]' \
15003 $LINUX_OBJ/Module*.symvers 2>/dev/null
15004 rc=$?
15005 if test $rc -ne 0; then
15006 export=0
15007 for file in ; do
15008 grep -q -E "EXPORT_SYMBOL.*(io_schedule_timeout)" \
15009 "$LINUX_OBJ/$file" 2>/dev/null
15010 rc=$?
15011 if test $rc -eq 0; then
15012 export=1
15013 break;
15014 fi
15015 done
15016 if test $export -eq 0; then :
15017 rc=1
15018 else :
15019 rc=0
15020 fi
15021 else :
15022 rc=0
15023 fi
15024
15025 fi
15026 if test $rc -ne 0; then :
0f836a62 15027
ec06701b 15028 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
15029$as_echo "no" >&6; }
15030
34ee731f 15031 else :
0f836a62 15032
34ee731f
AX
15033 { $as_echo "$as_me:$LINENO: result: yes" >&5
15034$as_echo "yes" >&6; }
0f836a62 15035
34ee731f
AX
15036cat >>confdefs.h <<\_ACEOF
15037#define HAVE_IO_SCHEDULE_TIMEOUT 1
15038_ACEOF
ec06701b 15039
0f836a62 15040
34ee731f
AX
15041 fi
15042 fi
0f836a62 15043
0f836a62
AX
15044
15045
34ee731f
AX
15046 { $as_echo "$as_me:$LINENO: checking whether kernel_write() takes loff_t pointer" >&5
15047$as_echo_n "checking whether kernel_write() takes loff_t pointer... " >&6; }
0f836a62
AX
15048 tmp_flags="$EXTRA_KCFLAGS"
15049 EXTRA_KCFLAGS="-Werror"
15050
15051
15052cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
15053/* confdefs.h. */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
15057/* end confdefs.h. */
0f836a62
AX
15058
15059
34ee731f 15060 #include <linux/fs.h>
0f836a62
AX
15061
15062int
15063main (void)
15064{
15065
34ee731f
AX
15066 struct file *file = NULL;
15067 const void *buf = NULL;
15068 size_t count = 0;
15069 loff_t *pos = NULL;
15070 ssize_t ret;
15071
15072 ret = kernel_write(file, buf, count, pos);
0f836a62
AX
15073
15074 ;
15075 return 0;
15076}
15077
15078_ACEOF
15079
15080
15081 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15082 echo "obj-m := conftest.o" >build/Makefile
15083 modpost_flag=''
15084 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15085 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
ec06701b
AX
15089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
ec06701b
AX
15094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
0f836a62 15096
ec06701b 15097 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
15098$as_echo "yes" >&6; }
15099
ec06701b 15100cat >>confdefs.h <<\_ACEOF
34ee731f 15101#define HAVE_KERNEL_WRITE_PPOS 1
ec06701b 15102_ACEOF
0f836a62
AX
15103
15104
15105else
15106 $as_echo "$as_me: failed program was:" >&5
15107sed 's/^/| /' conftest.$ac_ext >&5
15108
ec06701b 15109 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
15110$as_echo "no" >&6; }
15111
15112
15113
ac9cc135 15114fi
ec06701b 15115
ac9cc135
AX
15116 rm -Rf build
15117
15118
15119 EXTRA_KCFLAGS="$tmp_flags"
15120
15121
34ee731f
AX
15122 { $as_echo "$as_me:$LINENO: checking whether kernel_read() takes loff_t pointer" >&5
15123$as_echo_n "checking whether kernel_read() takes loff_t pointer... " >&6; }
ac9cc135
AX
15124 tmp_flags="$EXTRA_KCFLAGS"
15125 EXTRA_KCFLAGS="-Werror"
15126
15127
15128cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
15129/* confdefs.h. */
15130_ACEOF
15131cat confdefs.h >>conftest.$ac_ext
15132cat >>conftest.$ac_ext <<_ACEOF
15133/* end confdefs.h. */
ac9cc135
AX
15134
15135
34ee731f 15136 #include <linux/fs.h>
ac9cc135
AX
15137
15138int
15139main (void)
15140{
15141
34ee731f
AX
15142 struct file *file = NULL;
15143 void *buf = NULL;
15144 size_t count = 0;
15145 loff_t *pos = NULL;
15146 ssize_t ret;
ec06701b 15147
34ee731f 15148 ret = kernel_read(file, buf, count, pos);
ac9cc135
AX
15149
15150 ;
15151 return 0;
15152}
15153
15154_ACEOF
15155
15156
15157 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15158 echo "obj-m := conftest.o" >build/Makefile
15159 modpost_flag=''
15160 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15161 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ac9cc135
AX
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
ec06701b
AX
15165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ac9cc135
AX
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
ec06701b
AX
15170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; }; then
ac9cc135 15172
ec06701b 15173 { $as_echo "$as_me:$LINENO: result: yes" >&5
ac9cc135
AX
15174$as_echo "yes" >&6; }
15175
ec06701b 15176cat >>confdefs.h <<\_ACEOF
34ee731f 15177#define HAVE_KERNEL_READ_PPOS 1
ec06701b 15178_ACEOF
ac9cc135
AX
15179
15180
15181else
15182 $as_echo "$as_me: failed program was:" >&5
15183sed 's/^/| /' conftest.$ac_ext >&5
15184
ec06701b 15185 { $as_echo "$as_me:$LINENO: result: no" >&5
ac9cc135
AX
15186$as_echo "no" >&6; }
15187
15188
15189
0f836a62 15190fi
ec06701b 15191
0f836a62
AX
15192 rm -Rf build
15193
15194
15195 EXTRA_KCFLAGS="$tmp_flags"
15196
ec06701b 15197
34ee731f
AX
15198 { $as_echo "$as_me:$LINENO: checking whether timer_list.function gets a timer_list" >&5
15199$as_echo_n "checking whether timer_list.function gets a timer_list... " >&6; }
15200 tmp_flags="$EXTRA_KCFLAGS"
15201 EXTRA_KCFLAGS="-Werror"
ec06701b
AX
15202
15203
15204cat confdefs.h - <<_ACEOF >conftest.c
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
15210
15211
34ee731f
AX
15212 #include <linux/timer.h>
15213 void task_expire(struct timer_list *tl) {}
ec06701b
AX
15214
15215int
15216main (void)
15217{
15218
34ee731f
AX
15219 #ifndef from_timer
15220 #error "No from_timer() macro"
15221 #endif
15222
15223 struct timer_list timer;
15224 timer.function = task_expire;
15225 timer_setup(&timer, NULL, 0);
ec06701b
AX
15226
15227 ;
15228 return 0;
15229}
15230
15231_ACEOF
15232
15233
15234 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15235 echo "obj-m := conftest.o" >build/Makefile
15236 modpost_flag=''
15237 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15238 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15246 ac_status=$?
15247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249
15250 { $as_echo "$as_me:$LINENO: result: yes" >&5
15251$as_echo "yes" >&6; }
15252
15253cat >>confdefs.h <<\_ACEOF
34ee731f 15254#define HAVE_KERNEL_TIMER_FUNCTION_TIMER_LIST 1
ec06701b
AX
15255_ACEOF
15256
15257
15258else
15259 $as_echo "$as_me: failed program was:" >&5
15260sed 's/^/| /' conftest.$ac_ext >&5
15261
15262 { $as_echo "$as_me:$LINENO: result: no" >&5
15263$as_echo "no" >&6; }
15264
15265
15266
15267fi
15268
15269 rm -Rf build
15270
15271
34ee731f 15272 EXTRA_KCFLAGS="$tmp_flags"
ec06701b 15273
34ee731f
AX
15274 ;;
15275 user) ;;
15276 all)
ec06701b
AX
15277
15278
34ee731f
AX
15279# Check whether --with-linux was given.
15280if test "${with_linux+set}" = set; then
15281 withval=$with_linux; kernelsrc="$withval"
15282fi
ec06701b
AX
15283
15284
10946b02 15285
34ee731f
AX
15286# Check whether --with-linux-obj was given.
15287if test "${with_linux_obj+set}" = set; then
15288 withval=$with_linux_obj; kernelbuild="$withval"
15289fi
10946b02
AX
15290
15291
34ee731f
AX
15292 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15293$as_echo_n "checking kernel source directory... " >&6; }
15294 if test -z "$kernelsrc"; then
15295 if test -e "/lib/modules/$(uname -r)/source"; then
15296 headersdir="/lib/modules/$(uname -r)/source"
15297 sourcelink=$(readlink -f "$headersdir")
15298 elif test -e "/lib/modules/$(uname -r)/build"; then
15299 headersdir="/lib/modules/$(uname -r)/build"
15300 sourcelink=$(readlink -f "$headersdir")
15301 else
15302 sourcelink=$(ls -1d /usr/src/kernels/* \
15303 /usr/src/linux-* \
15304 2>/dev/null | grep -v obj | tail -1)
15305 fi
10946b02 15306
34ee731f
AX
15307 if test -n "$sourcelink" && test -e ${sourcelink}; then
15308 kernelsrc=`readlink -f ${sourcelink}`
15309 else
15310 kernelsrc="Not found"
15311 fi
15312 else
15313 if test "$kernelsrc" = "NONE"; then
15314 kernsrcver=NONE
15315 fi
15316 withlinux=yes
15317 fi
10946b02 15318
34ee731f
AX
15319 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15320$as_echo "$kernelsrc" >&6; }
15321 if test ! -d "$kernelsrc"; then
15322 { { $as_echo "$as_me:$LINENO: error:
15323 *** Please make sure the kernel devel package for your distribution
15324 *** is installed and then try again. If that fails, you can specify the
15325 *** location of the kernel source with the '--with-linux=PATH' option." >&5
15326$as_echo "$as_me: error:
15327 *** Please make sure the kernel devel package for your distribution
15328 *** is installed and then try again. If that fails, you can specify the
15329 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
15330 { (exit 1); exit 1; }; }
15331 fi
10946b02 15332
34ee731f
AX
15333 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15334$as_echo_n "checking kernel build directory... " >&6; }
15335 if test -z "$kernelbuild"; then
15336 if test x$withlinux != xyes -a -e "/lib/modules/$(uname -r)/build"; then
15337 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
15338 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15339 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15340 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15341 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15342 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15343 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
15344 else
15345 kernelbuild=${kernelsrc}
15346 fi
15347 fi
15348 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15349$as_echo "$kernelbuild" >&6; }
10946b02 15350
34ee731f
AX
15351 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15352$as_echo_n "checking kernel source version... " >&6; }
15353 utsrelease1=$kernelbuild/include/linux/version.h
15354 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15355 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15356 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15357 utsrelease=linux/version.h
15358 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15359 utsrelease=linux/utsrelease.h
15360 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15361 utsrelease=generated/utsrelease.h
15362 fi
10946b02 15363
34ee731f
AX
15364 if test "$utsrelease"; then
15365 kernsrcver=`(echo "#include <$utsrelease>";
15366 echo "kernsrcver=UTS_RELEASE") |
15367 cpp -I $kernelbuild/include |
15368 grep "^kernsrcver=" | cut -d \" -f 2`
10946b02 15369
34ee731f
AX
15370 if test -z "$kernsrcver"; then
15371 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15372$as_echo "Not found" >&6; }
15373 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15374$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15375 { (exit 1); exit 1; }; }
15376 fi
15377 else
15378 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15379$as_echo "Not found" >&6; }
15380 if test "x$enable_linux_builtin" != xyes; then
15381 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15382$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
15383 { (exit 1); exit 1; }; }
15384 else
15385 { { $as_echo "$as_me:$LINENO: error:
15386 *** Cannot find UTS_RELEASE definition.
15387 *** Please run 'make prepare' inside the kernel source tree." >&5
15388$as_echo "$as_me: error:
15389 *** Cannot find UTS_RELEASE definition.
15390 *** Please run 'make prepare' inside the kernel source tree." >&2;}
15391 { (exit 1); exit 1; }; }
15392 fi
15393 fi
10946b02 15394
34ee731f
AX
15395 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15396$as_echo "$kernsrcver" >&6; }
10946b02 15397
34ee731f
AX
15398 LINUX=${kernelsrc}
15399 LINUX_OBJ=${kernelbuild}
15400 LINUX_VERSION=${kernsrcver}
10946b02 15401
10946b02 15402
10946b02 15403
10946b02
AX
15404
15405
10946b02 15406
34ee731f
AX
15407 modpost=$LINUX/scripts/Makefile.modpost
15408 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15409$as_echo_n "checking kernel file name for module symbols... " >&6; }
15410 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
15411 if grep -q Modules.symvers $modpost; then
15412 LINUX_SYMBOLS=Modules.symvers
15413 else
15414 LINUX_SYMBOLS=Module.symvers
15415 fi
10946b02 15416
34ee731f
AX
15417 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
15418 { { $as_echo "$as_me:$LINENO: error:
15419 *** Please make sure the kernel devel package for your distribution
15420 *** is installed. If you are building with a custom kernel, make sure the
15421 *** kernel is configured, built, and the '--with-linux=PATH' configure
15422 *** option refers to the location of the kernel source." >&5
15423$as_echo "$as_me: error:
15424 *** Please make sure the kernel devel package for your distribution
15425 *** is installed. If you are building with a custom kernel, make sure the
15426 *** kernel is configured, built, and the '--with-linux=PATH' configure
15427 *** option refers to the location of the kernel source." >&2;}
15428 { (exit 1); exit 1; }; }
15429 fi
15430 else
15431 LINUX_SYMBOLS=NONE
15432 fi
15433 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15434$as_echo "$LINUX_SYMBOLS" >&6; }
10946b02
AX
15435
15436
ec06701b 15437
10946b02 15438
34ee731f
AX
15439 if test "${LINUX_OBJ}" != "${LINUX}"; then
15440 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15441 fi
10946b02
AX
15442
15443
34ee731f 15444 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
10946b02 15445
10946b02 15446
10946b02 15447
34ee731f
AX
15448 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
15449$as_echo_n "checking whether debugging is enabled... " >&6; }
15450 # Check whether --enable-debug was given.
15451if test "${enable_debug+set}" = set; then
15452 enableval=$enable_debug;
10946b02 15453else
34ee731f 15454 enable_debug=no
10946b02
AX
15455fi
15456
ec06701b 15457
34ee731f 15458 if test "x$enable_debug" = xyes; then
10946b02 15459
34ee731f
AX
15460 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15461 DEBUG_CFLAGS="-DDEBUG -Werror"
15462 DEBUG_SPL="_with_debug"
10946b02
AX
15463
15464else
15465
34ee731f
AX
15466 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15467 DEBUG_CFLAGS="-DNDEBUG"
15468 DEBUG_SPL="_without_debug"
ec06701b 15469
10946b02
AX
15470fi
15471
ec06701b 15472
10946b02 15473
10946b02 15474
34ee731f
AX
15475 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
15476$as_echo "$enable_debug" >&6; }
10946b02 15477
10946b02 15478
34ee731f
AX
15479 # Check whether --enable-debug-kmem was given.
15480if test "${enable_debug_kmem+set}" = set; then
15481 enableval=$enable_debug_kmem;
15482else
15483 enable_debug_kmem=no
15484fi
10946b02
AX
15485
15486
34ee731f 15487 if test "x$enable_debug_kmem" = xyes; then
10946b02 15488
34ee731f
AX
15489 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
15490 DEBUG_KMEM="_with_debug_kmem"
10946b02 15491
ec06701b 15492cat >>confdefs.h <<\_ACEOF
34ee731f 15493#define DEBUG_KMEM 1
ec06701b 15494_ACEOF
10946b02
AX
15495
15496
15497else
10946b02 15498
34ee731f 15499 DEBUG_KMEM="_without_debug_kmem"
10946b02 15500
34ee731f 15501fi
10946b02 15502
10946b02
AX
15503
15504
34ee731f
AX
15505 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15506$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15507 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15508$as_echo "$enable_debug_kmem" >&6; }
10946b02 15509
10946b02 15510
34ee731f
AX
15511 # Check whether --enable-debug-kmem-tracking was given.
15512if test "${enable_debug_kmem_tracking+set}" = set; then
15513 enableval=$enable_debug_kmem_tracking;
15514else
15515 enable_debug_kmem_tracking=no
15516fi
10946b02 15517
10946b02 15518
34ee731f
AX
15519 if test "x$enable_debug_kmem_tracking" = xyes; then
15520
15521 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15522 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
10946b02 15523
34ee731f
AX
15524cat >>confdefs.h <<\_ACEOF
15525#define DEBUG_KMEM_TRACKING 1
10946b02
AX
15526_ACEOF
15527
15528
34ee731f 15529else
10946b02 15530
34ee731f 15531 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
10946b02 15532
34ee731f 15533fi
10946b02
AX
15534
15535
10946b02 15536
34ee731f
AX
15537 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15538$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15539 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15540$as_echo "$enable_debug_kmem_tracking" >&6; }
15541
15542 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
15543$as_echo_n "checking whether modules can be built... " >&6; }
10946b02
AX
15544
15545
15546cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
10946b02
AX
15552
15553
10946b02
AX
15554int
15555main (void)
15556{
15557
10946b02
AX
15558 ;
15559 return 0;
15560}
15561
15562_ACEOF
15563
15564
15565 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15566 echo "obj-m := conftest.o" >build/Makefile
15567 modpost_flag=''
15568 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15569 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
ec06701b
AX
15573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15576 (eval $ac_try) 2>&5
15577 ac_status=$?
ec06701b
AX
15578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); }; }; then
10946b02 15580
34ee731f 15581 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15582$as_echo "yes" >&6; }
15583
10946b02
AX
15584else
15585 $as_echo "$as_me: failed program was:" >&5
15586sed 's/^/| /' conftest.$ac_ext >&5
15587
34ee731f 15588 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 15589$as_echo "no" >&6; }
34ee731f
AX
15590 if test "x$enable_linux_builtin" != xyes; then
15591 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
15592$as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
15593 { (exit 1); exit 1; }; }
15594 else
15595 { { $as_echo "$as_me:$LINENO: error:
15596 *** Unable to build an empty module.
15597 *** Please run 'make scripts' inside the kernel source tree." >&5
15598$as_echo "$as_me: error:
15599 *** Unable to build an empty module.
15600 *** Please run 'make scripts' inside the kernel source tree." >&2;}
15601 { (exit 1); exit 1; }; }
15602 fi
10946b02
AX
15603
15604
34ee731f
AX
15605
15606fi
15607
15608 rm -Rf build
15609
15610
15611
15612 if test "x$cross_compiling" != xyes; then
15613
15614 if test "$cross_compiling" = yes; then
15615 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15617{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15618See \`config.log' for more details." >&5
15619$as_echo "$as_me: error: cannot run test program while cross compiling
15620See \`config.log' for more details." >&2;}
15621 { (exit 1); exit 1; }; }; }
15622else
15623 cat >conftest.$ac_ext <<_ACEOF
15624
15625 /* confdefs.h. */
ec06701b
AX
15626_ACEOF
15627cat confdefs.h >>conftest.$ac_ext
15628cat >>conftest.$ac_ext <<_ACEOF
15629/* end confdefs.h. */
10946b02 15630
34ee731f 15631 #include "$LINUX/include/linux/license.h"
10946b02
AX
15632
15633int
34ee731f 15634main ()
10946b02
AX
15635{
15636
34ee731f
AX
15637 return !license_is_gpl_compatible(
15638 "$SPL_META_LICENSE");
10946b02
AX
15639
15640 ;
15641 return 0;
15642}
15643
15644_ACEOF
34ee731f
AX
15645rm -f conftest$ac_exeext
15646if { (ac_try="$ac_link"
15647case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15650esac
15651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15652$as_echo "$ac_try_echo") >&5
15653 (eval "$ac_link") 2>&5
10946b02 15654 ac_status=$?
ec06701b 15655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34ee731f
AX
15656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15657 { (case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15660esac
15661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15662$as_echo "$ac_try_echo") >&5
15663 (eval "$ac_try") 2>&5
10946b02 15664 ac_status=$?
ec06701b
AX
15665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
10946b02 15667
10946b02 15668
ec06701b 15669cat >>confdefs.h <<\_ACEOF
34ee731f 15670#define SPL_IS_GPL_COMPATIBLE 1
ec06701b 15671_ACEOF
10946b02
AX
15672
15673
15674else
34ee731f
AX
15675 $as_echo "$as_me: program exited with status $ac_status" >&5
15676$as_echo "$as_me: failed program was:" >&5
10946b02
AX
15677sed 's/^/| /' conftest.$ac_ext >&5
15678
34ee731f 15679( exit $ac_status )
10946b02
AX
15680
15681
15682fi
34ee731f
AX
15683rm -rf conftest.dSYM
15684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10946b02 15685fi
ec06701b 15686
10946b02
AX
15687
15688
0f836a62 15689fi
ec06701b 15690
0f836a62
AX
15691
15692
34ee731f
AX
15693 # Check whether --enable-atomic-spinlocks was given.
15694if test "${enable_atomic_spinlocks+set}" = set; then
15695 enableval=$enable_atomic_spinlocks;
15696else
15697 enable_atomic_spinlocks=check
0f836a62 15698fi
ec06701b 15699
0f836a62 15700
0f836a62
AX
15701
15702
15703cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
15704/* confdefs.h. */
15705_ACEOF
15706cat confdefs.h >>conftest.$ac_ext
15707cat >>conftest.$ac_ext <<_ACEOF
15708/* end confdefs.h. */
0f836a62
AX
15709
15710
34ee731f 15711 #include <linux/fs.h>
0f836a62
AX
15712
15713int
15714main (void)
15715{
15716
34ee731f 15717 atomic64_t *ptr __attribute__ ((unused));
0f836a62
AX
15718
15719 ;
15720 return 0;
15721}
15722
15723_ACEOF
15724
15725
15726 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15727 echo "obj-m := conftest.o" >build/Makefile
15728 modpost_flag=''
15729 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15730 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
ec06701b
AX
15734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
15737 (eval $ac_try) 2>&5
15738 ac_status=$?
ec06701b
AX
15739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
0f836a62 15741
34ee731f 15742 have_atomic64_t=yes
0f836a62 15743
ec06701b 15744cat >>confdefs.h <<\_ACEOF
34ee731f 15745#define HAVE_ATOMIC64_T 1
ec06701b 15746_ACEOF
0f836a62 15747
10946b02 15748
0f836a62
AX
15749else
15750 $as_echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
10946b02 15752
34ee731f 15753 have_atomic64_t=no
10946b02
AX
15754
15755
15756
15757fi
ec06701b 15758
10946b02
AX
15759 rm -Rf build
15760
15761
10946b02 15762
34ee731f
AX
15763 if test "x$enable_atomic_spinlocks" = xcheck; then
15764
15765 if test "x$have_atomic64_t" = xyes; then
15766
15767 enable_atomic_spinlocks=no
15768
15769else
15770
15771 enable_atomic_spinlocks=yes
15772
15773fi
15774
15775
15776fi
15777
15778
15779 if test "x$enable_atomic_spinlocks" = xyes; then
15780
15781
15782cat >>confdefs.h <<\_ACEOF
15783#define ATOMIC_SPINLOCK 1
15784_ACEOF
15785
15786
15787else
15788
15789 if test "x$have_atomic64_t" = xno; then
15790
15791 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15793{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15794See \`config.log' for more details." >&5
15795$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
15796See \`config.log' for more details." >&2;}
15797 { (exit 1); exit 1; }; }; }
15798
15799fi
15800
15801
15802fi
15803
15804
15805 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15806$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15807 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15808$as_echo "$enable_atomic_spinlocks" >&6; }
15809
15810 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15811$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15812 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15813$as_echo "$have_atomic64_t" >&6; }
10946b02 15814
34ee731f
AX
15815
15816 tmp_flags="$EXTRA_KCFLAGS"
15817 EXTRA_KCFLAGS="-Werror"
15818 { $as_echo "$as_me:$LINENO: checking whether old 2-argument shrinker exists" >&5
15819$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
10946b02
AX
15820
15821
15822cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
15823/* confdefs.h. */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h. */
10946b02
AX
15828
15829
34ee731f
AX
15830 #include <linux/mm.h>
15831
15832 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
10946b02
AX
15833
15834int
15835main (void)
15836{
15837
34ee731f
AX
15838 struct shrinker cache_shrinker = {
15839 .shrink = shrinker_cb,
15840 .seeks = DEFAULT_SEEKS,
15841 };
15842 register_shrinker(&cache_shrinker);
15843
10946b02
AX
15844 ;
15845 return 0;
15846}
15847
15848_ACEOF
15849
15850
15851 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15852 echo "obj-m := conftest.o" >build/Makefile
15853 modpost_flag=''
15854 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15855 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 15856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15857 (eval $ac_try) 2>&5
15858 ac_status=$?
ec06701b
AX
15859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
ec06701b
AX
15864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
10946b02 15866
ec06701b 15867 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15868$as_echo "yes" >&6; }
15869
34ee731f
AX
15870cat >>confdefs.h <<\_ACEOF
15871#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1
15872_ACEOF
15873
15874
10946b02
AX
15875else
15876 $as_echo "$as_me: failed program was:" >&5
15877sed 's/^/| /' conftest.$ac_ext >&5
15878
ec06701b 15879 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 15880$as_echo "no" >&6; }
34ee731f
AX
15881 { $as_echo "$as_me:$LINENO: checking whether old 3-argument shrinker exists" >&5
15882$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
10946b02
AX
15883
15884
15885cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
15886/* confdefs.h. */
15887_ACEOF
15888cat confdefs.h >>conftest.$ac_ext
15889cat >>conftest.$ac_ext <<_ACEOF
15890/* end confdefs.h. */
10946b02
AX
15891
15892
34ee731f
AX
15893 #include <linux/mm.h>
15894
15895 int shrinker_cb(struct shrinker *, int nr_to_scan,
15896 gfp_t gfp_mask);
10946b02
AX
15897
15898int
15899main (void)
15900{
15901
34ee731f
AX
15902 struct shrinker cache_shrinker = {
15903 .shrink = shrinker_cb,
15904 .seeks = DEFAULT_SEEKS,
15905 };
15906 register_shrinker(&cache_shrinker);
10946b02
AX
15907
15908 ;
15909 return 0;
15910}
15911
15912_ACEOF
15913
15914
15915 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15916 echo "obj-m := conftest.o" >build/Makefile
15917 modpost_flag=''
15918 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15919 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
ec06701b
AX
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15926 (eval $ac_try) 2>&5
15927 ac_status=$?
ec06701b
AX
15928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
10946b02 15930
34ee731f 15931 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15932$as_echo "yes" >&6; }
15933
ec06701b 15934cat >>confdefs.h <<\_ACEOF
34ee731f 15935#define HAVE_3ARGS_SHRINKER_CALLBACK 1
ec06701b 15936_ACEOF
10946b02
AX
15937
15938
34ee731f
AX
15939else
15940 $as_echo "$as_me: failed program was:" >&5
15941sed 's/^/| /' conftest.$ac_ext >&5
10946b02 15942
34ee731f
AX
15943 { $as_echo "$as_me:$LINENO: result: no" >&5
15944$as_echo "no" >&6; }
15945 { $as_echo "$as_me:$LINENO: checking whether new 2-argument shrinker exists" >&5
15946$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
10946b02
AX
15947
15948
15949cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
15950/* confdefs.h. */
15951_ACEOF
15952cat confdefs.h >>conftest.$ac_ext
15953cat >>conftest.$ac_ext <<_ACEOF
15954/* end confdefs.h. */
10946b02
AX
15955
15956
34ee731f
AX
15957 #include <linux/mm.h>
15958
15959 int shrinker_cb(struct shrinker *,
15960 struct shrink_control *sc);
10946b02
AX
15961
15962int
15963main (void)
15964{
15965
34ee731f
AX
15966 struct shrinker cache_shrinker = {
15967 .shrink = shrinker_cb,
15968 .seeks = DEFAULT_SEEKS,
15969 };
15970 register_shrinker(&cache_shrinker);
10946b02
AX
15971
15972 ;
15973 return 0;
15974}
15975
15976_ACEOF
15977
15978
15979 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15980 echo "obj-m := conftest.o" >build/Makefile
15981 modpost_flag=''
15982 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15983 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15985 (eval $ac_try) 2>&5
15986 ac_status=$?
ec06701b
AX
15987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
15990 (eval $ac_try) 2>&5
15991 ac_status=$?
ec06701b
AX
15992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; }; then
10946b02 15994
34ee731f 15995 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
15996$as_echo "yes" >&6; }
15997
ec06701b 15998cat >>confdefs.h <<\_ACEOF
34ee731f 15999#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1
ec06701b 16000_ACEOF
10946b02
AX
16001
16002
16003else
16004 $as_echo "$as_me: failed program was:" >&5
16005sed 's/^/| /' conftest.$ac_ext >&5
16006
34ee731f
AX
16007 { $as_echo "$as_me:$LINENO: result: no" >&5
16008$as_echo "no" >&6; }
16009 { $as_echo "$as_me:$LINENO: checking whether ->count_objects callback exists" >&5
16010$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
10946b02
AX
16011
16012
16013cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
10946b02
AX
16019
16020
34ee731f
AX
16021 #include <linux/mm.h>
16022
16023 unsigned long shrinker_cb(
16024 struct shrinker *,
16025 struct shrink_control *sc);
10946b02
AX
16026
16027int
16028main (void)
16029{
16030
34ee731f
AX
16031 struct shrinker cache_shrinker = {
16032 .count_objects = shrinker_cb,
16033 .scan_objects = shrinker_cb,
16034 .seeks = DEFAULT_SEEKS,
16035 };
16036 register_shrinker(&cache_shrinker);
10946b02
AX
16037
16038 ;
16039 return 0;
16040}
16041
16042_ACEOF
16043
16044
16045 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16046 echo "obj-m := conftest.o" >build/Makefile
16047 modpost_flag=''
16048 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16049 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16051 (eval $ac_try) 2>&5
16052 ac_status=$?
ec06701b
AX
16053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16056 (eval $ac_try) 2>&5
16057 ac_status=$?
ec06701b
AX
16058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; }; then
10946b02 16060
34ee731f
AX
16061 { $as_echo "$as_me:$LINENO: result: yes" >&5
16062$as_echo "yes" >&6; }
16063
16064cat >>confdefs.h <<\_ACEOF
16065#define HAVE_SPLIT_SHRINKER_CALLBACK 1
16066_ACEOF
16067
10946b02
AX
16068
16069else
16070 $as_echo "$as_me: failed program was:" >&5
16071sed 's/^/| /' conftest.$ac_ext >&5
16072
34ee731f
AX
16073 { { $as_echo "$as_me:$LINENO: error: error" >&5
16074$as_echo "$as_me: error: error" >&2;}
16075 { (exit 1); exit 1; }; }
16076
16077
16078
16079fi
16080
16081 rm -Rf build
16082
16083
16084
16085
16086
16087fi
16088
16089 rm -Rf build
16090
16091
10946b02
AX
16092
16093
16094
16095fi
ec06701b 16096
10946b02
AX
16097 rm -Rf build
16098
16099
16100
16101
16102
16103fi
ec06701b 16104
10946b02
AX
16105 rm -Rf build
16106
16107
16108 EXTRA_KCFLAGS="$tmp_flags"
16109
34ee731f
AX
16110
16111 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
16112$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
10946b02
AX
16113
16114
16115cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16116/* confdefs.h. */
16117_ACEOF
16118cat confdefs.h >>conftest.$ac_ext
16119cat >>conftest.$ac_ext <<_ACEOF
16120/* end confdefs.h. */
10946b02
AX
16121
16122
34ee731f 16123 #include <linux/sysctl.h>
10946b02
AX
16124
16125int
16126main (void)
16127{
16128
34ee731f
AX
16129 struct ctl_table ctl __attribute__ ((unused));
16130 ctl.ctl_name = 0;
10946b02
AX
16131
16132 ;
16133 return 0;
16134}
16135
16136_ACEOF
16137
16138
16139 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16140 echo "obj-m := conftest.o" >build/Makefile
16141 modpost_flag=''
16142 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16143 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16145 (eval $ac_try) 2>&5
16146 ac_status=$?
ec06701b
AX
16147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
ec06701b
AX
16152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
10946b02 16154
ec06701b 16155 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16156$as_echo "yes" >&6; }
16157
ec06701b 16158cat >>confdefs.h <<\_ACEOF
34ee731f 16159#define HAVE_CTL_NAME 1
ec06701b 16160_ACEOF
10946b02
AX
16161
16162
16163else
16164 $as_echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
ec06701b 16167 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 16168$as_echo "no" >&6; }
34ee731f
AX
16169
16170
16171
16172fi
16173
16174 rm -Rf build
16175
16176
16177
16178
16179 { $as_echo "$as_me:$LINENO: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
16180$as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
10946b02
AX
16181
16182
16183cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16184/* confdefs.h. */
16185_ACEOF
16186cat confdefs.h >>conftest.$ac_ext
16187cat >>conftest.$ac_ext <<_ACEOF
16188/* end confdefs.h. */
10946b02
AX
16189
16190
34ee731f
AX
16191 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
16192 #error CONFIG_TRIM_UNUSED_KSYMS not defined
16193 #endif
10946b02
AX
16194
16195int
16196main (void)
16197{
16198
10946b02
AX
16199 ;
16200 return 0;
16201}
16202
16203_ACEOF
16204
16205
16206 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16207 echo "obj-m := conftest.o" >build/Makefile
16208 modpost_flag=''
16209 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16210 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16212 (eval $ac_try) 2>&5
16213 ac_status=$?
ec06701b
AX
16214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
ec06701b
AX
16219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; }; then
10946b02 16221
34ee731f 16222 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16223$as_echo "yes" >&6; }
16224
10946b02
AX
16225else
16226 $as_echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
34ee731f
AX
16229 { $as_echo "$as_me:$LINENO: result: no" >&5
16230$as_echo "no" >&6; }
16231 { { $as_echo "$as_me:$LINENO: error:
16232 *** This kernel has unused symbols trimming enabled, please disable.
16233 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&5
16234$as_echo "$as_me: error:
16235 *** This kernel has unused symbols trimming enabled, please disable.
16236 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." >&2;}
ec06701b 16237 { (exit 1); exit 1; }; }
10946b02
AX
16238
16239
16240
16241fi
ec06701b 16242
10946b02
AX
16243 rm -Rf build
16244
16245
16246
16247
34ee731f
AX
16248 { $as_echo "$as_me:$LINENO: checking whether PDE_DATA() is available" >&5
16249$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
10946b02
AX
16250
16251
10946b02
AX
16252
16253cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
10946b02
AX
16259
16260
34ee731f 16261 #include <linux/proc_fs.h>
10946b02
AX
16262
16263int
16264main (void)
16265{
16266
34ee731f 16267 PDE_DATA(NULL);
10946b02
AX
16268
16269 ;
16270 return 0;
16271}
16272
16273_ACEOF
16274
16275
16276 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16277 echo "obj-m := conftest.o" >build/Makefile
16278 modpost_flag=''
16279 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16280 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16282 (eval $ac_try) 2>&5
16283 ac_status=$?
ec06701b
AX
16284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
ec06701b
AX
16289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
34ee731f
AX
16291 rc=0
16292else
16293 $as_echo "$as_me: failed program was:" >&5
16294sed 's/^/| /' conftest.$ac_ext >&5
16295 rc=1
16296
16297
16298fi
16299
16300 rm -Rf build
16301
16302
16303 if test $rc -ne 0; then :
16304
16305 { $as_echo "$as_me:$LINENO: result: no" >&5
16306$as_echo "no" >&6; }
16307
16308 else
16309 if test "x$enable_linux_builtin" != xyes; then
16310
16311 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
16312 $LINUX_OBJ/Module*.symvers 2>/dev/null
16313 rc=$?
16314 if test $rc -ne 0; then
16315 export=0
16316 for file in ; do
16317 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
16318 "$LINUX_OBJ/$file" 2>/dev/null
16319 rc=$?
16320 if test $rc -eq 0; then
16321 export=1
16322 break;
16323 fi
16324 done
16325 if test $export -eq 0; then :
16326 rc=1
16327 else :
16328 rc=0
16329 fi
16330 else :
16331 rc=0
16332 fi
16333
16334 fi
16335 if test $rc -ne 0; then :
16336
16337 { $as_echo "$as_me:$LINENO: result: no" >&5
16338$as_echo "no" >&6; }
16339
16340 else :
10946b02 16341
ec06701b 16342 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16343$as_echo "yes" >&6; }
16344
ec06701b 16345cat >>confdefs.h <<\_ACEOF
34ee731f 16346#define HAVE_PDE_DATA 1
ec06701b 16347_ACEOF
10946b02
AX
16348
16349
34ee731f
AX
16350 fi
16351 fi
10946b02 16352
34ee731f
AX
16353
16354 tmp_flags="$EXTRA_KCFLAGS"
16355 EXTRA_KCFLAGS="-Werror"
16356 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() requires const struct path *" >&5
16357$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
10946b02
AX
16358
16359
16360cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16361/* confdefs.h. */
16362_ACEOF
16363cat confdefs.h >>conftest.$ac_ext
16364cat >>conftest.$ac_ext <<_ACEOF
16365/* end confdefs.h. */
10946b02
AX
16366
16367
34ee731f
AX
16368 #include <linux/spinlock.h>
16369 #include <linux/fs_struct.h>
16370 #include <linux/path.h>
16371 void (*const set_fs_pwd_func)
16372 (struct fs_struct *, const struct path *)
16373 = set_fs_pwd;
10946b02
AX
16374
16375int
16376main (void)
16377{
16378
34ee731f 16379 return 0;
10946b02
AX
16380
16381 ;
16382 return 0;
16383}
16384
16385_ACEOF
16386
16387
16388 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16389 echo "obj-m := conftest.o" >build/Makefile
16390 modpost_flag=''
16391 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16392 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
ec06701b
AX
16396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16399 (eval $ac_try) 2>&5
16400 ac_status=$?
ec06701b
AX
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; }; then
10946b02 16403
34ee731f 16404 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16405$as_echo "yes" >&6; }
16406
ec06701b 16407cat >>confdefs.h <<\_ACEOF
34ee731f 16408#define HAVE_SET_FS_PWD_WITH_CONST 1
ec06701b 16409_ACEOF
10946b02
AX
16410
16411
16412else
16413 $as_echo "$as_me: failed program was:" >&5
16414sed 's/^/| /' conftest.$ac_ext >&5
16415
10946b02
AX
16416
16417
16418cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
10946b02
AX
16424
16425
34ee731f
AX
16426 #include <linux/spinlock.h>
16427 #include <linux/fs_struct.h>
16428 #include <linux/path.h>
16429 void (*const set_fs_pwd_func)
16430 (struct fs_struct *, struct path *)
16431 = set_fs_pwd;
10946b02
AX
16432
16433int
16434main (void)
16435{
16436
34ee731f 16437 return 0;
10946b02
AX
16438
16439 ;
16440 return 0;
16441}
16442
16443_ACEOF
16444
16445
16446 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16447 echo "obj-m := conftest.o" >build/Makefile
16448 modpost_flag=''
16449 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16450 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
ec06701b
AX
16454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
ec06701b
AX
16459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
10946b02 16461
34ee731f
AX
16462 { $as_echo "$as_me:$LINENO: result: no" >&5
16463$as_echo "no" >&6; }
10946b02
AX
16464
16465else
16466 $as_echo "$as_me: failed program was:" >&5
16467sed 's/^/| /' conftest.$ac_ext >&5
16468
34ee731f
AX
16469 { { $as_echo "$as_me:$LINENO: error: unknown" >&5
16470$as_echo "$as_me: error: unknown" >&2;}
ec06701b 16471 { (exit 1); exit 1; }; }
10946b02
AX
16472
16473
16474
16475fi
ec06701b 16476
10946b02
AX
16477 rm -Rf build
16478
16479
16480
16481
16482
16483fi
ec06701b 16484
10946b02
AX
16485 rm -Rf build
16486
16487
34ee731f 16488 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
16489
16490
ec06701b 16491 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
10946b02
AX
16492$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
16493
16494
16495cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
10946b02
AX
16501
16502
16503 #include <linux/fs.h>
16504
16505int
16506main (void)
16507{
16508
16509 vfs_fsync(NULL, 0);
16510
16511 ;
16512 return 0;
16513}
16514
16515_ACEOF
16516
16517
16518 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16519 echo "obj-m := conftest.o" >build/Makefile
16520 modpost_flag=''
16521 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16522 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16524 (eval $ac_try) 2>&5
16525 ac_status=$?
ec06701b
AX
16526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16529 (eval $ac_try) 2>&5
16530 ac_status=$?
ec06701b
AX
16531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
10946b02 16533
ec06701b 16534 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16535$as_echo "yes" >&6; }
16536
ec06701b
AX
16537cat >>confdefs.h <<\_ACEOF
16538#define HAVE_2ARGS_VFS_FSYNC 1
16539_ACEOF
10946b02
AX
16540
16541
16542else
16543 $as_echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
ec06701b 16546 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16547$as_echo "no" >&6; }
16548
16549
16550
16551fi
ec06701b 16552
10946b02
AX
16553 rm -Rf build
16554
16555
16556
16557
ec06701b 16558 { $as_echo "$as_me:$LINENO: checking whether truncate_range() inode operation is available" >&5
10946b02
AX
16559$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16560
16561
16562cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16563/* confdefs.h. */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h. */
10946b02
AX
16568
16569
16570 #include <linux/fs.h>
16571
16572int
16573main (void)
16574{
16575
16576 struct inode_operations ops;
16577 ops.truncate_range = NULL;
16578
16579 ;
16580 return 0;
16581}
16582
16583_ACEOF
16584
16585
16586 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16587 echo "obj-m := conftest.o" >build/Makefile
16588 modpost_flag=''
16589 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16590 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16592 (eval $ac_try) 2>&5
16593 ac_status=$?
ec06701b
AX
16594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
ec06701b
AX
16599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
10946b02 16601
ec06701b 16602 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16603$as_echo "yes" >&6; }
16604
ec06701b
AX
16605cat >>confdefs.h <<\_ACEOF
16606#define HAVE_INODE_TRUNCATE_RANGE 1
16607_ACEOF
10946b02
AX
16608
16609
16610else
16611 $as_echo "$as_me: failed program was:" >&5
16612sed 's/^/| /' conftest.$ac_ext >&5
16613
ec06701b 16614 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16615$as_echo "no" >&6; }
16616
16617
16618
16619fi
ec06701b 16620
10946b02
AX
16621 rm -Rf build
16622
16623
16624
16625
ec06701b 16626 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
10946b02
AX
16627$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16628 tmp_flags="$EXTRA_KCFLAGS"
16629 EXTRA_KCFLAGS="-Werror"
16630
16631
16632cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
10946b02
AX
16638
16639
16640 #include <linux/sched.h>
16641 #include <linux/fs_struct.h>
16642
16643int
16644main (void)
16645{
16646
16647 static struct fs_struct fs;
16648 spin_lock_init(&fs.lock);
16649
16650 ;
16651 return 0;
16652}
16653
16654_ACEOF
16655
16656
16657 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16658 echo "obj-m := conftest.o" >build/Makefile
16659 modpost_flag=''
16660 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16661 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
ec06701b
AX
16665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
ec06701b
AX
16670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; }; then
10946b02 16672
ec06701b 16673 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16674$as_echo "yes" >&6; }
16675
ec06701b
AX
16676cat >>confdefs.h <<\_ACEOF
16677#define HAVE_FS_STRUCT_SPINLOCK 1
16678_ACEOF
10946b02
AX
16679
16680
16681else
16682 $as_echo "$as_me: failed program was:" >&5
16683sed 's/^/| /' conftest.$ac_ext >&5
16684
ec06701b 16685 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16686$as_echo "no" >&6; }
16687
16688
16689
16690fi
ec06701b 16691
10946b02
AX
16692 rm -Rf build
16693
16694
16695 EXTRA_KCFLAGS="$tmp_flags"
16696
16697
ec06701b 16698 { $as_echo "$as_me:$LINENO: checking whether kuid_t/kgid_t is available" >&5
10946b02
AX
16699$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16700
16701
16702cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16703/* confdefs.h. */
16704_ACEOF
16705cat confdefs.h >>conftest.$ac_ext
16706cat >>conftest.$ac_ext <<_ACEOF
16707/* end confdefs.h. */
10946b02
AX
16708
16709
16710 #include <linux/uidgid.h>
16711
16712int
16713main (void)
16714{
16715
16716 kuid_t userid = KUIDT_INIT(0);
16717 kgid_t groupid = KGIDT_INIT(0);
16718
16719 ;
16720 return 0;
16721}
16722
16723_ACEOF
16724
16725
16726 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16727 echo "obj-m := conftest.o" >build/Makefile
16728 modpost_flag=''
16729 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16730 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
ec06701b
AX
16734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
ec06701b
AX
16739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
10946b02
AX
16741
16742
16743
16744cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16745/* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
10946b02
AX
16750
16751
16752 #include <linux/uidgid.h>
16753
16754int
16755main (void)
16756{
16757
16758 kuid_t userid = 0;
16759 kgid_t groupid = 0;
16760
16761 ;
16762 return 0;
16763}
16764
16765_ACEOF
16766
16767
16768 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16769 echo "obj-m := conftest.o" >build/Makefile
16770 modpost_flag=''
16771 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16772 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16774 (eval $ac_try) 2>&5
16775 ac_status=$?
ec06701b
AX
16776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
ec06701b
AX
16781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
10946b02 16783
ec06701b 16784 { $as_echo "$as_me:$LINENO: result: yes; optional" >&5
10946b02
AX
16785$as_echo "yes; optional" >&6; }
16786
16787else
16788 $as_echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
ec06701b 16791 { $as_echo "$as_me:$LINENO: result: yes; mandatory" >&5
10946b02
AX
16792$as_echo "yes; mandatory" >&6; }
16793
ec06701b
AX
16794cat >>confdefs.h <<\_ACEOF
16795#define HAVE_KUIDGID_T 1
16796_ACEOF
10946b02
AX
16797
16798
16799
16800
16801fi
ec06701b 16802
10946b02
AX
16803 rm -Rf build
16804
16805
16806
16807else
16808 $as_echo "$as_me: failed program was:" >&5
16809sed 's/^/| /' conftest.$ac_ext >&5
16810
ec06701b 16811 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16812$as_echo "no" >&6; }
16813
16814
16815
16816fi
ec06701b 16817
10946b02
AX
16818 rm -Rf build
16819
16820
16821
10946b02
AX
16822
16823
ec06701b 16824 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
10946b02
AX
16825$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16826
16827
16828cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16829/* confdefs.h. */
16830_ACEOF
16831cat confdefs.h >>conftest.$ac_ext
16832cat >>conftest.$ac_ext <<_ACEOF
16833/* end confdefs.h. */
10946b02
AX
16834
16835
16836 #include <linux/fs.h>
16837
16838int
16839main (void)
16840{
16841
16842 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16843 struct file_operations fops __attribute__ ((unused)) = {
16844 .fallocate = fallocate,
16845 };
16846
16847 ;
16848 return 0;
16849}
16850
16851_ACEOF
16852
16853
16854 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16855 echo "obj-m := conftest.o" >build/Makefile
16856 modpost_flag=''
16857 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16858 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16860 (eval $ac_try) 2>&5
16861 ac_status=$?
ec06701b
AX
16862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
ec06701b
AX
16867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
10946b02 16869
ec06701b 16870 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16871$as_echo "yes" >&6; }
16872
ec06701b
AX
16873cat >>confdefs.h <<\_ACEOF
16874#define HAVE_FILE_FALLOCATE 1
16875_ACEOF
10946b02
AX
16876
16877
16878else
16879 $as_echo "$as_me: failed program was:" >&5
16880sed 's/^/| /' conftest.$ac_ext >&5
16881
ec06701b 16882 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16883$as_echo "no" >&6; }
16884
16885
16886
16887fi
ec06701b 16888
10946b02
AX
16889 rm -Rf build
16890
16891
16892
16893
ec06701b 16894 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
10946b02
AX
16895$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16896
16897
16898cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
10946b02
AX
16904
16905
16906 #include <linux/fs.h>
16907
16908int
16909main (void)
16910{
16911
16912 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16913 struct inode_operations fops __attribute__ ((unused)) = {
16914 .fallocate = fallocate,
16915 };
16916
16917 ;
16918 return 0;
16919}
16920
16921_ACEOF
16922
16923
16924 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16925 echo "obj-m := conftest.o" >build/Makefile
16926 modpost_flag=''
16927 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16928 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
ec06701b
AX
16932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
16935 (eval $ac_try) 2>&5
16936 ac_status=$?
ec06701b
AX
16937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
10946b02 16939
ec06701b 16940 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
16941$as_echo "yes" >&6; }
16942
ec06701b
AX
16943cat >>confdefs.h <<\_ACEOF
16944#define HAVE_INODE_FALLOCATE 1
16945_ACEOF
10946b02
AX
16946
16947
16948else
16949 $as_echo "$as_me: failed program was:" >&5
16950sed 's/^/| /' conftest.$ac_ext >&5
16951
ec06701b 16952 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
16953$as_echo "no" >&6; }
16954
16955
16956
16957fi
ec06701b 16958
10946b02
AX
16959 rm -Rf build
16960
16961
16962
16963
ec06701b 16964 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
10946b02
AX
16965$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16966
16967
16968cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
16969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
10946b02
AX
16974
16975
16976 #include <linux/fs.h>
16977
16978int
16979main (void)
16980{
16981
16982 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16983 struct file_operations_no_const fops __attribute__ ((unused)) = {
16984 .fallocate = fallocate,
16985 };
16986
16987 ;
16988 return 0;
16989}
16990
16991_ACEOF
16992
16993
16994 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16995 echo "obj-m := conftest.o" >build/Makefile
16996 modpost_flag=''
16997 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16998 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
ec06701b
AX
17002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
ec06701b
AX
17007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
10946b02 17009
ec06701b 17010 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17011$as_echo "yes" >&6; }
17012
ec06701b
AX
17013cat >>confdefs.h <<\_ACEOF
17014#define HAVE_FILE_FALLOCATE 1
17015_ACEOF
10946b02
AX
17016
17017
17018else
17019 $as_echo "$as_me: failed program was:" >&5
17020sed 's/^/| /' conftest.$ac_ext >&5
17021
ec06701b 17022 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17023$as_echo "no" >&6; }
17024
17025
17026
17027fi
ec06701b 17028
10946b02
AX
17029 rm -Rf build
17030
17031
17032
17033
17034
ec06701b 17035 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
10946b02
AX
17036$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
17037
17038
17039cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
10946b02
AX
17045
17046
17047 #if !defined(CONFIG_ZLIB_INFLATE) && \
17048 !defined(CONFIG_ZLIB_INFLATE_MODULE)
17049 #error CONFIG_ZLIB_INFLATE not defined
17050 #endif
17051
17052int
17053main (void)
17054{
17055
17056 ;
17057 return 0;
17058}
17059
17060_ACEOF
17061
17062
17063 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17064 echo "obj-m := conftest.o" >build/Makefile
17065 modpost_flag=''
17066 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17067 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17069 (eval $ac_try) 2>&5
17070 ac_status=$?
ec06701b
AX
17071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
ec06701b
AX
17076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; }; then
10946b02 17078
ec06701b 17079 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17080$as_echo "yes" >&6; }
17081
17082else
17083 $as_echo "$as_me: failed program was:" >&5
17084sed 's/^/| /' conftest.$ac_ext >&5
17085
ec06701b 17086 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 17087$as_echo "no" >&6; }
ec06701b
AX
17088 { { $as_echo "$as_me:$LINENO: error:
17089 *** This kernel does not include the required zlib inflate support.
17090 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&5
17091$as_echo "$as_me: error:
10946b02 17092 *** This kernel does not include the required zlib inflate support.
ec06701b
AX
17093 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." >&2;}
17094 { (exit 1); exit 1; }; }
10946b02
AX
17095
17096
17097
17098fi
ec06701b 17099
10946b02
AX
17100 rm -Rf build
17101
17102
17103
17104
ec06701b 17105 { $as_echo "$as_me:$LINENO: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
10946b02
AX
17106$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
17107
17108
17109cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17110/* confdefs.h. */
17111_ACEOF
17112cat confdefs.h >>conftest.$ac_ext
17113cat >>conftest.$ac_ext <<_ACEOF
17114/* end confdefs.h. */
10946b02
AX
17115
17116
17117 #if !defined(CONFIG_ZLIB_DEFLATE) && \
17118 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
17119 #error CONFIG_ZLIB_DEFLATE not defined
17120 #endif
17121
17122int
17123main (void)
17124{
17125
17126 ;
17127 return 0;
17128}
17129
17130_ACEOF
17131
17132
17133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17134 echo "obj-m := conftest.o" >build/Makefile
17135 modpost_flag=''
17136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17137 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
ec06701b
AX
17141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
ec06701b
AX
17146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
10946b02 17148
ec06701b 17149 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17150$as_echo "yes" >&6; }
17151
17152else
17153 $as_echo "$as_me: failed program was:" >&5
17154sed 's/^/| /' conftest.$ac_ext >&5
17155
ec06701b 17156 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02 17157$as_echo "no" >&6; }
ec06701b
AX
17158 { { $as_echo "$as_me:$LINENO: error:
17159 *** This kernel does not include the required zlib deflate support.
17160 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&5
17161$as_echo "$as_me: error:
10946b02 17162 *** This kernel does not include the required zlib deflate support.
ec06701b
AX
17163 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." >&2;}
17164 { (exit 1); exit 1; }; }
10946b02
AX
17165
17166
17167
17168fi
ec06701b 17169
10946b02
AX
17170 rm -Rf build
17171
17172
17173
ec06701b 17174 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
10946b02
AX
17175$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
17176
17177
17178cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17179/* confdefs.h. */
17180_ACEOF
17181cat confdefs.h >>conftest.$ac_ext
17182cat >>conftest.$ac_ext <<_ACEOF
17183/* end confdefs.h. */
10946b02
AX
17184
17185
17186 #include <linux/zlib.h>
17187
17188int
17189main (void)
17190{
17191
17192 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
17193
17194 ;
17195 return 0;
17196}
17197
17198_ACEOF
17199
17200
17201 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17202 echo "obj-m := conftest.o" >build/Makefile
17203 modpost_flag=''
17204 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17205 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
ec06701b
AX
17209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17212 (eval $ac_try) 2>&5
17213 ac_status=$?
ec06701b
AX
17214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); }; }; then
10946b02 17216
ec06701b 17217 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17218$as_echo "yes" >&6; }
17219
ec06701b
AX
17220cat >>confdefs.h <<\_ACEOF
17221#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
17222_ACEOF
10946b02
AX
17223
17224
17225else
17226 $as_echo "$as_me: failed program was:" >&5
17227sed 's/^/| /' conftest.$ac_ext >&5
17228
ec06701b 17229 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17230$as_echo "no" >&6; }
17231
17232
17233
17234fi
ec06701b 17235
10946b02
AX
17236 rm -Rf build
17237
17238
17239
17240
ec06701b 17241 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
10946b02
AX
17242$as_echo_n "checking whether struct shrink_control exists... " >&6; }
17243
17244
17245cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17246/* confdefs.h. */
17247_ACEOF
17248cat confdefs.h >>conftest.$ac_ext
17249cat >>conftest.$ac_ext <<_ACEOF
17250/* end confdefs.h. */
10946b02
AX
17251
17252
17253 #include <linux/mm.h>
17254
17255int
17256main (void)
17257{
17258
17259 struct shrink_control sc __attribute__ ((unused));
17260
17261 sc.nr_to_scan = 0;
17262 sc.gfp_mask = GFP_KERNEL;
17263
17264 ;
17265 return 0;
17266}
17267
17268_ACEOF
17269
17270
17271 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17272 echo "obj-m := conftest.o" >build/Makefile
17273 modpost_flag=''
17274 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17275 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
ec06701b
AX
17279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
ec06701b
AX
17284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
10946b02 17286
ec06701b 17287 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17288$as_echo "yes" >&6; }
17289
ec06701b
AX
17290cat >>confdefs.h <<\_ACEOF
17291#define HAVE_SHRINK_CONTROL_STRUCT 1
17292_ACEOF
10946b02
AX
17293
17294
17295else
17296 $as_echo "$as_me: failed program was:" >&5
17297sed 's/^/| /' conftest.$ac_ext >&5
17298
ec06701b 17299 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17300$as_echo "no" >&6; }
17301
17302
17303
17304fi
ec06701b 17305
10946b02
AX
17306 rm -Rf build
17307
17308
17309
17310
ec06701b 17311 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
10946b02
AX
17312$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
17313 tmp_flags="$EXTRA_KCFLAGS"
17314 EXTRA_KCFLAGS="-Werror"
17315
17316
17317cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17318/* confdefs.h. */
17319_ACEOF
17320cat confdefs.h >>conftest.$ac_ext
17321cat >>conftest.$ac_ext <<_ACEOF
17322/* end confdefs.h. */
10946b02
AX
17323
17324
17325 #include <linux/rwsem.h>
17326
17327int
17328main (void)
17329{
17330
17331 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
ec06701b
AX
17332 raw_spinlock_t dummy_lock __attribute__ ((unused)) =
17333 __RAW_SPIN_LOCK_INITIALIZER(dummy_lock);
10946b02
AX
17334 dummy_semaphore.wait_lock = dummy_lock;
17335
17336 ;
17337 return 0;
17338}
17339
17340_ACEOF
17341
17342
17343 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17344 echo "obj-m := conftest.o" >build/Makefile
17345 modpost_flag=''
17346 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17347 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
ec06701b
AX
17351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17354 (eval $ac_try) 2>&5
17355 ac_status=$?
ec06701b
AX
17356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
10946b02 17358
ec06701b 17359 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17360$as_echo "yes" >&6; }
17361
ec06701b
AX
17362cat >>confdefs.h <<\_ACEOF
17363#define RWSEM_SPINLOCK_IS_RAW 1
17364_ACEOF
10946b02
AX
17365
17366
17367else
17368 $as_echo "$as_me: failed program was:" >&5
17369sed 's/^/| /' conftest.$ac_ext >&5
17370
ec06701b 17371 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17372$as_echo "no" >&6; }
17373
17374
17375
0f836a62 17376fi
ec06701b 17377
0f836a62
AX
17378 rm -Rf build
17379
17380
17381 EXTRA_KCFLAGS="$tmp_flags"
17382
17383
ec06701b 17384 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has member activity" >&5
0f836a62
AX
17385$as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
17386 tmp_flags="$EXTRA_KCFLAGS"
17387 EXTRA_KCFLAGS="-Werror"
17388
17389
17390cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
0f836a62
AX
17396
17397
17398 #include <linux/rwsem.h>
17399
17400int
17401main (void)
17402{
17403
17404 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
17405 dummy_semaphore.activity = 0;
17406
17407 ;
17408 return 0;
17409}
17410
17411_ACEOF
17412
17413
17414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17415 echo "obj-m := conftest.o" >build/Makefile
17416 modpost_flag=''
17417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17418 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
ec06701b
AX
17422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
ec06701b
AX
17427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
0f836a62 17429
ec06701b 17430 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
17431$as_echo "yes" >&6; }
17432
ec06701b
AX
17433cat >>confdefs.h <<\_ACEOF
17434#define HAVE_RWSEM_ACTIVITY 1
17435_ACEOF
0f836a62
AX
17436
17437
17438else
17439 $as_echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
ec06701b 17442 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
17443$as_echo "no" >&6; }
17444
17445
17446
17447fi
ec06701b 17448
0f836a62
AX
17449 rm -Rf build
17450
17451
17452 EXTRA_KCFLAGS="$tmp_flags"
17453
17454
ec06701b 17455 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore has atomic_long_t member count" >&5
0f836a62
AX
17456$as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
17457 tmp_flags="$EXTRA_KCFLAGS"
17458 EXTRA_KCFLAGS="-Werror"
17459
17460
17461cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17462/* confdefs.h. */
17463_ACEOF
17464cat confdefs.h >>conftest.$ac_ext
17465cat >>conftest.$ac_ext <<_ACEOF
17466/* end confdefs.h. */
0f836a62
AX
17467
17468
17469 #include <linux/rwsem.h>
17470
17471int
17472main (void)
17473{
17474
17475 DECLARE_RWSEM(dummy_semaphore);
17476 (void) atomic_long_read(&dummy_semaphore.count);
17477
17478 ;
17479 return 0;
17480}
17481
17482_ACEOF
17483
17484
17485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17486 echo "obj-m := conftest.o" >build/Makefile
17487 modpost_flag=''
17488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17489 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
17491 (eval $ac_try) 2>&5
17492 ac_status=$?
ec06701b
AX
17493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
17496 (eval $ac_try) 2>&5
17497 ac_status=$?
ec06701b
AX
17498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
0f836a62 17500
ec06701b 17501 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
17502$as_echo "yes" >&6; }
17503
ec06701b
AX
17504cat >>confdefs.h <<\_ACEOF
17505#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1
17506_ACEOF
0f836a62
AX
17507
17508
17509else
17510 $as_echo "$as_me: failed program was:" >&5
17511sed 's/^/| /' conftest.$ac_ext >&5
17512
ec06701b 17513 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
17514$as_echo "no" >&6; }
17515
17516
17517
10946b02 17518fi
ec06701b 17519
10946b02
AX
17520 rm -Rf build
17521
17522
17523 EXTRA_KCFLAGS="$tmp_flags"
17524
ec06701b 17525 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/rt.h exists" >&5
10946b02
AX
17526$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
17527
17528
17529cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17530/* confdefs.h. */
17531_ACEOF
17532cat confdefs.h >>conftest.$ac_ext
17533cat >>conftest.$ac_ext <<_ACEOF
17534/* end confdefs.h. */
10946b02
AX
17535
17536
17537 #include <linux/sched.h>
17538 #include <linux/sched/rt.h>
17539
17540int
17541main (void)
17542{
17543
17544 return 0;
17545
17546 ;
17547 return 0;
17548}
17549
17550_ACEOF
17551
17552
17553 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17554 echo "obj-m := conftest.o" >build/Makefile
17555 modpost_flag=''
17556 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17557 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17559 (eval $ac_try) 2>&5
17560 ac_status=$?
ec06701b
AX
17561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
ec06701b
AX
17566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
10946b02
AX
17568
17569
ec06701b
AX
17570cat >>confdefs.h <<\_ACEOF
17571#define HAVE_SCHED_RT_HEADER 1
17572_ACEOF
10946b02 17573
ec06701b 17574 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
17575$as_echo "yes" >&6; }
17576
17577else
17578 $as_echo "$as_me: failed program was:" >&5
17579sed 's/^/| /' conftest.$ac_ext >&5
17580
ec06701b 17581 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
17582$as_echo "no" >&6; }
17583
17584
17585
17586fi
ec06701b 17587
10946b02
AX
17588 rm -Rf build
17589
17590
17591
ec06701b 17592 { $as_echo "$as_me:$LINENO: checking whether header linux/sched/signal.h exists" >&5
2ea56c1d
AX
17593$as_echo_n "checking whether header linux/sched/signal.h exists... " >&6; }
17594
17595
17596cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
2ea56c1d
AX
17602
17603
17604 #include <linux/sched.h>
17605 #include <linux/sched/signal.h>
17606
17607int
17608main (void)
17609{
17610
17611 return 0;
17612
17613 ;
17614 return 0;
17615}
10946b02 17616
2ea56c1d
AX
17617_ACEOF
17618
17619
17620 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17621 echo "obj-m := conftest.o" >build/Makefile
17622 modpost_flag=''
17623 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17624 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2ea56c1d
AX
17626 (eval $ac_try) 2>&5
17627 ac_status=$?
ec06701b
AX
17628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2ea56c1d
AX
17631 (eval $ac_try) 2>&5
17632 ac_status=$?
ec06701b
AX
17633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; }; then
2ea56c1d
AX
17635
17636
ec06701b
AX
17637cat >>confdefs.h <<\_ACEOF
17638#define HAVE_SCHED_SIGNAL_HEADER 1
17639_ACEOF
2ea56c1d 17640
ec06701b 17641 { $as_echo "$as_me:$LINENO: result: yes" >&5
2ea56c1d
AX
17642$as_echo "yes" >&6; }
17643
17644else
17645 $as_echo "$as_me: failed program was:" >&5
17646sed 's/^/| /' conftest.$ac_ext >&5
17647
ec06701b 17648 { $as_echo "$as_me:$LINENO: result: no" >&5
2ea56c1d
AX
17649$as_echo "no" >&6; }
17650
17651
17652
17653fi
ec06701b 17654
2ea56c1d
AX
17655 rm -Rf build
17656
17657
17658
17659
ec06701b 17660 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 4 args" >&5
2ea56c1d 17661$as_echo_n "checking whether vfs_getattr() wants 4 args... " >&6; }
10946b02
AX
17662
17663
17664cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17665/* confdefs.h. */
17666_ACEOF
17667cat confdefs.h >>conftest.$ac_ext
17668cat >>conftest.$ac_ext <<_ACEOF
17669/* end confdefs.h. */
10946b02
AX
17670
17671
17672 #include <linux/fs.h>
17673
17674int
17675main (void)
17676{
17677
2ea56c1d
AX
17678 vfs_getattr((const struct path *)NULL,
17679 (struct kstat *)NULL,
17680 (u32)0,
17681 (unsigned int)0);
10946b02
AX
17682
17683 ;
17684 return 0;
17685}
17686
17687_ACEOF
17688
17689
17690 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17691 echo "obj-m := conftest.o" >build/Makefile
17692 modpost_flag=''
17693 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17694 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
ec06701b
AX
17698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
ec06701b
AX
17703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
10946b02 17705
ec06701b 17706 { $as_echo "$as_me:$LINENO: result: yes" >&5
2ea56c1d 17707$as_echo "yes" >&6; }
10946b02 17708
ec06701b
AX
17709cat >>confdefs.h <<\_ACEOF
17710#define HAVE_4ARGS_VFS_GETATTR 1
17711_ACEOF
10946b02
AX
17712
17713
17714else
17715 $as_echo "$as_me: failed program was:" >&5
17716sed 's/^/| /' conftest.$ac_ext >&5
17717
ec06701b 17718 { $as_echo "$as_me:$LINENO: result: no" >&5
2ea56c1d
AX
17719$as_echo "no" >&6; }
17720
17721
17722
17723fi
ec06701b 17724
2ea56c1d
AX
17725 rm -Rf build
17726
17727
17728
17729
ec06701b 17730 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 3 args" >&5
2ea56c1d 17731$as_echo_n "checking whether vfs_getattr() wants 3 args... " >&6; }
10946b02
AX
17732
17733
17734cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17735/* confdefs.h. */
17736_ACEOF
17737cat confdefs.h >>conftest.$ac_ext
17738cat >>conftest.$ac_ext <<_ACEOF
17739/* end confdefs.h. */
10946b02
AX
17740
17741
2ea56c1d 17742 #include <linux/fs.h>
10946b02
AX
17743
17744int
17745main (void)
17746{
17747
2ea56c1d
AX
17748 vfs_getattr((struct vfsmount *)NULL,
17749 (struct dentry *)NULL,
17750 (struct kstat *)NULL);
10946b02
AX
17751
17752 ;
17753 return 0;
17754}
17755
17756_ACEOF
17757
17758
17759 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17760 echo "obj-m := conftest.o" >build/Makefile
17761 modpost_flag=''
17762 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17763 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
ec06701b
AX
17767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
ec06701b
AX
17772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; }; then
10946b02 17774
ec06701b 17775 { $as_echo "$as_me:$LINENO: result: yes" >&5
2ea56c1d
AX
17776$as_echo "yes" >&6; }
17777
ec06701b
AX
17778cat >>confdefs.h <<\_ACEOF
17779#define HAVE_3ARGS_VFS_GETATTR 1
17780_ACEOF
2ea56c1d 17781
10946b02
AX
17782
17783else
17784 $as_echo "$as_me: failed program was:" >&5
17785sed 's/^/| /' conftest.$ac_ext >&5
17786
ec06701b 17787 { $as_echo "$as_me:$LINENO: result: no" >&5
2ea56c1d 17788$as_echo "no" >&6; }
10946b02
AX
17789
17790
17791
17792fi
ec06701b 17793
10946b02
AX
17794 rm -Rf build
17795
17796
17797
17798
ec06701b 17799 { $as_echo "$as_me:$LINENO: checking whether vfs_getattr() wants 2 args" >&5
2ea56c1d
AX
17800$as_echo_n "checking whether vfs_getattr() wants 2 args... " >&6; }
17801
17802
17803cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17804/* confdefs.h. */
17805_ACEOF
17806cat confdefs.h >>conftest.$ac_ext
17807cat >>conftest.$ac_ext <<_ACEOF
17808/* end confdefs.h. */
2ea56c1d
AX
17809
17810
17811 #include <linux/fs.h>
17812
17813int
17814main (void)
17815{
17816
17817 vfs_getattr((struct path *) NULL,
17818 (struct kstat *)NULL);
17819
17820 ;
17821 return 0;
17822}
17823
17824_ACEOF
17825
17826
17827 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17828 echo "obj-m := conftest.o" >build/Makefile
17829 modpost_flag=''
17830 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17831 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 17832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2ea56c1d
AX
17833 (eval $ac_try) 2>&5
17834 ac_status=$?
ec06701b
AX
17835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2ea56c1d
AX
17838 (eval $ac_try) 2>&5
17839 ac_status=$?
ec06701b
AX
17840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); }; }; then
2ea56c1d 17842
ec06701b 17843 { $as_echo "$as_me:$LINENO: result: yes" >&5
2ea56c1d
AX
17844$as_echo "yes" >&6; }
17845
ec06701b
AX
17846cat >>confdefs.h <<\_ACEOF
17847#define HAVE_2ARGS_VFS_GETATTR 1
17848_ACEOF
2ea56c1d
AX
17849
17850
17851else
17852 $as_echo "$as_me: failed program was:" >&5
17853sed 's/^/| /' conftest.$ac_ext >&5
17854
ec06701b 17855 { $as_echo "$as_me:$LINENO: result: no" >&5
2ea56c1d
AX
17856$as_echo "no" >&6; }
17857
17858
10946b02
AX
17859
17860fi
ec06701b 17861
10946b02
AX
17862 rm -Rf build
17863
17864
17865
17866
ec06701b 17867 { $as_echo "$as_me:$LINENO: checking whether usleep_range() is available" >&5
10946b02
AX
17868$as_echo_n "checking whether usleep_range() is available... " >&6; }
17869
17870
17871cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
17872/* confdefs.h. */
17873_ACEOF
17874cat confdefs.h >>conftest.$ac_ext
17875cat >>conftest.$ac_ext <<_ACEOF
17876/* end confdefs.h. */
17877
17878
17879 #include <linux/delay.h>
17880
17881int
17882main (void)
17883{
17884
17885 usleep_range(0, 0);
17886
17887 ;
17888 return 0;
17889}
17890
17891_ACEOF
17892
17893
17894 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17895 echo "obj-m := conftest.o" >build/Makefile
17896 modpost_flag=''
17897 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17898 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17901 ac_status=$?
17902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; }; then
17909
17910 { $as_echo "$as_me:$LINENO: result: yes" >&5
17911$as_echo "yes" >&6; }
17912
17913cat >>confdefs.h <<\_ACEOF
17914#define HAVE_USLEEP_RANGE 1
17915_ACEOF
17916
17917
17918else
17919 $as_echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921
17922 { $as_echo "$as_me:$LINENO: result: no" >&5
17923$as_echo "no" >&6; }
17924
17925
17926
17927fi
17928
17929 rm -Rf build
17930
17931
17932
17933
17934 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has allocflags" >&5
17935$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
17936
17937
17938cat confdefs.h - <<_ACEOF >conftest.c
17939/* confdefs.h. */
17940_ACEOF
17941cat confdefs.h >>conftest.$ac_ext
17942cat >>conftest.$ac_ext <<_ACEOF
17943/* end confdefs.h. */
17944
17945
17946 #include <linux/slab.h>
17947
17948int
17949main (void)
17950{
17951
17952 struct kmem_cache cachep __attribute__ ((unused));
17953 cachep.allocflags = GFP_KERNEL;
17954
17955 ;
17956 return 0;
17957}
17958
17959_ACEOF
17960
17961
17962 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17963 echo "obj-m := conftest.o" >build/Makefile
17964 modpost_flag=''
17965 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17966 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
17969 ac_status=$?
17970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977
17978 { $as_echo "$as_me:$LINENO: result: yes" >&5
17979$as_echo "yes" >&6; }
17980
17981cat >>confdefs.h <<\_ACEOF
17982#define HAVE_KMEM_CACHE_ALLOCFLAGS 1
17983_ACEOF
17984
17985
17986else
17987 $as_echo "$as_me: failed program was:" >&5
17988sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 { $as_echo "$as_me:$LINENO: result: no" >&5
17991$as_echo "no" >&6; }
17992
17993 { $as_echo "$as_me:$LINENO: checking whether struct kmem_cache has gfpflags" >&5
17994$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
17995
17996
17997cat confdefs.h - <<_ACEOF >conftest.c
17998/* confdefs.h. */
17999_ACEOF
18000cat confdefs.h >>conftest.$ac_ext
18001cat >>conftest.$ac_ext <<_ACEOF
18002/* end confdefs.h. */
10946b02
AX
18003
18004
ec06701b 18005 #include <linux/slab.h>
10946b02
AX
18006
18007int
18008main (void)
18009{
18010
ec06701b
AX
18011 struct kmem_cache cachep __attribute__ ((unused));
18012 cachep.gfpflags = GFP_KERNEL;
10946b02
AX
18013
18014 ;
18015 return 0;
18016}
18017
18018_ACEOF
18019
18020
18021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18022 echo "obj-m := conftest.o" >build/Makefile
18023 modpost_flag=''
18024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18025 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
ec06701b
AX
18029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
ec06701b
AX
18034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
10946b02 18036
ec06701b 18037 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
18038$as_echo "yes" >&6; }
18039
ec06701b
AX
18040cat >>confdefs.h <<\_ACEOF
18041#define HAVE_KMEM_CACHE_GFPFLAGS 1
18042_ACEOF
10946b02
AX
18043
18044
18045else
18046 $as_echo "$as_me: failed program was:" >&5
18047sed 's/^/| /' conftest.$ac_ext >&5
18048
ec06701b 18049 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
18050$as_echo "no" >&6; }
18051
18052
18053
18054fi
ec06701b 18055
10946b02
AX
18056 rm -Rf build
18057
18058
18059
18060
ec06701b
AX
18061
18062fi
18063
18064 rm -Rf build
18065
18066
18067
18068
18069 { $as_echo "$as_me:$LINENO: checking whether wait_on_bit() takes an action" >&5
18070$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
10946b02
AX
18071
18072
18073cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
18074/* confdefs.h. */
18075_ACEOF
18076cat confdefs.h >>conftest.$ac_ext
18077cat >>conftest.$ac_ext <<_ACEOF
18078/* end confdefs.h. */
10946b02
AX
18079
18080
ec06701b 18081 #include <linux/wait.h>
10946b02
AX
18082
18083int
18084main (void)
18085{
18086
ec06701b
AX
18087 int (*action)(void *) = NULL;
18088 wait_on_bit(NULL, 0, action, 0);
10946b02
AX
18089
18090 ;
18091 return 0;
18092}
18093
18094_ACEOF
18095
18096
18097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18098 echo "obj-m := conftest.o" >build/Makefile
18099 modpost_flag=''
18100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18101 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 18102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18103 (eval $ac_try) 2>&5
18104 ac_status=$?
ec06701b
AX
18105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
ec06701b
AX
18110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
10946b02 18112
ec06701b 18113 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
18114$as_echo "yes" >&6; }
18115
ec06701b
AX
18116cat >>confdefs.h <<\_ACEOF
18117#define HAVE_WAIT_ON_BIT_ACTION 1
18118_ACEOF
10946b02
AX
18119
18120
18121else
18122 $as_echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
ec06701b 18125 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
18126$as_echo "no" >&6; }
18127
ec06701b
AX
18128
18129
18130fi
18131
18132 rm -Rf build
18133
18134
18135
18136
18137 { $as_echo "$as_me:$LINENO: checking whether inode_lock_shared() exists" >&5
18138$as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
18139 tmp_flags="$EXTRA_KCFLAGS"
18140 EXTRA_KCFLAGS="-Werror"
10946b02
AX
18141
18142
18143cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
10946b02
AX
18149
18150
ec06701b 18151 #include <linux/fs.h>
10946b02
AX
18152
18153int
18154main (void)
18155{
18156
ec06701b
AX
18157 struct inode *inode = NULL;
18158 inode_lock_shared(inode);
10946b02
AX
18159
18160 ;
18161 return 0;
18162}
18163
18164_ACEOF
18165
18166
18167 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18168 echo "obj-m := conftest.o" >build/Makefile
18169 modpost_flag=''
18170 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18171 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
ec06701b
AX
18175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
ec06701b
AX
18180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
10946b02 18182
ec06701b 18183 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
18184$as_echo "yes" >&6; }
18185
ec06701b
AX
18186cat >>confdefs.h <<\_ACEOF
18187#define HAVE_INODE_LOCK_SHARED 1
18188_ACEOF
10946b02
AX
18189
18190
18191else
18192 $as_echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
ec06701b 18195 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
18196$as_echo "no" >&6; }
18197
18198
18199
18200fi
10946b02 18201
10946b02
AX
18202 rm -Rf build
18203
18204
ec06701b 18205 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
18206
18207
ec06701b
AX
18208 { $as_echo "$as_me:$LINENO: checking whether group_info->gid exists" >&5
18209$as_echo_n "checking whether group_info->gid exists... " >&6; }
18210 tmp_flags="$EXTRA_KCFLAGS"
18211 EXTRA_KCFLAGS="-Werror"
10946b02
AX
18212
18213
18214cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
18215/* confdefs.h. */
18216_ACEOF
18217cat confdefs.h >>conftest.$ac_ext
18218cat >>conftest.$ac_ext <<_ACEOF
18219/* end confdefs.h. */
10946b02
AX
18220
18221
ec06701b 18222 #include <linux/cred.h>
10946b02
AX
18223
18224int
18225main (void)
18226{
18227
ec06701b
AX
18228 struct group_info *gi = groups_alloc(1);
18229 gi->gid[0] = KGIDT_INIT(0);
10946b02
AX
18230
18231 ;
18232 return 0;
18233}
18234
18235_ACEOF
18236
18237
18238 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18239 echo "obj-m := conftest.o" >build/Makefile
18240 modpost_flag=''
18241 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18242 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
ec06701b
AX
18246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946b02
AX
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
ec06701b
AX
18251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
10946b02 18253
ec06701b 18254 { $as_echo "$as_me:$LINENO: result: yes" >&5
10946b02
AX
18255$as_echo "yes" >&6; }
18256
ec06701b
AX
18257cat >>confdefs.h <<\_ACEOF
18258#define HAVE_GROUP_INFO_GID 1
18259_ACEOF
10946b02
AX
18260
18261
18262else
18263 $as_echo "$as_me: failed program was:" >&5
18264sed 's/^/| /' conftest.$ac_ext >&5
18265
ec06701b 18266 { $as_echo "$as_me:$LINENO: result: no" >&5
10946b02
AX
18267$as_echo "no" >&6; }
18268
18269
18270
18271fi
ec06701b 18272
10946b02
AX
18273 rm -Rf build
18274
18275
ec06701b 18276 EXTRA_KCFLAGS="$tmp_flags"
10946b02
AX
18277
18278
ec06701b
AX
18279 { $as_echo "$as_me:$LINENO: checking whether kmem_cache_create_usercopy() exists" >&5
18280$as_echo_n "checking whether kmem_cache_create_usercopy() exists... " >&6; }
0f836a62
AX
18281 tmp_flags="$EXTRA_KCFLAGS"
18282 EXTRA_KCFLAGS="-Werror"
18283
18284
18285cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
18286/* confdefs.h. */
18287_ACEOF
18288cat confdefs.h >>conftest.$ac_ext
18289cat >>conftest.$ac_ext <<_ACEOF
18290/* end confdefs.h. */
0f836a62
AX
18291
18292
ec06701b
AX
18293 #include <linux/slab.h>
18294 static void ctor(void *foo)
18295 {
18296 // fake ctor
18297 }
0f836a62
AX
18298
18299int
18300main (void)
18301{
18302
ec06701b
AX
18303 struct kmem_cache *skc_linux_cache;
18304 const char *name = "test";
18305 size_t size = 4096;
18306 size_t align = 8;
18307 unsigned long flags = 0;
18308 size_t useroffset = 0;
18309 size_t usersize = size - useroffset;
18310
18311 skc_linux_cache = kmem_cache_create_usercopy(
18312 name, size, align, flags, useroffset, usersize, ctor);
0f836a62
AX
18313
18314 ;
18315 return 0;
18316}
18317
18318_ACEOF
18319
18320
18321 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18322 echo "obj-m := conftest.o" >build/Makefile
18323 modpost_flag=''
18324 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18325 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
18327 (eval $ac_try) 2>&5
18328 ac_status=$?
ec06701b
AX
18329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
ec06701b
AX
18334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
0f836a62 18336
ec06701b 18337 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
18338$as_echo "yes" >&6; }
18339
ec06701b
AX
18340cat >>confdefs.h <<\_ACEOF
18341#define HAVE_KMEM_CACHE_CREATE_USERCOPY 1
18342_ACEOF
0f836a62
AX
18343
18344
18345else
18346 $as_echo "$as_me: failed program was:" >&5
18347sed 's/^/| /' conftest.$ac_ext >&5
18348
ec06701b 18349 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
18350$as_echo "no" >&6; }
18351
18352
18353
18354fi
ec06701b 18355
0f836a62
AX
18356 rm -Rf build
18357
18358
18359 EXTRA_KCFLAGS="$tmp_flags"
18360
18361
ec06701b
AX
18362 { $as_echo "$as_me:$LINENO: checking whether wait_queue_entry_t exists" >&5
18363$as_echo_n "checking whether wait_queue_entry_t exists... " >&6; }
0f836a62
AX
18364
18365
18366cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
18367/* confdefs.h. */
18368_ACEOF
18369cat confdefs.h >>conftest.$ac_ext
18370cat >>conftest.$ac_ext <<_ACEOF
18371/* end confdefs.h. */
0f836a62
AX
18372
18373
ec06701b 18374 #include <linux/wait.h>
0f836a62
AX
18375
18376int
18377main (void)
18378{
18379
ec06701b 18380 wait_queue_entry_t *entry __attribute__ ((unused));
0f836a62
AX
18381
18382 ;
18383 return 0;
18384}
18385
18386_ACEOF
18387
18388
18389 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18390 echo "obj-m := conftest.o" >build/Makefile
18391 modpost_flag=''
18392 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18393 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
18395 (eval $ac_try) 2>&5
18396 ac_status=$?
ec06701b
AX
18397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
0f836a62
AX
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
ec06701b
AX
18402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
0f836a62 18404
ec06701b 18405 { $as_echo "$as_me:$LINENO: result: yes" >&5
0f836a62
AX
18406$as_echo "yes" >&6; }
18407
ec06701b
AX
18408cat >>confdefs.h <<\_ACEOF
18409#define HAVE_WAIT_QUEUE_ENTRY_T 1
18410_ACEOF
0f836a62
AX
18411
18412
18413else
18414 $as_echo "$as_me: failed program was:" >&5
18415sed 's/^/| /' conftest.$ac_ext >&5
18416
ec06701b 18417 { $as_echo "$as_me:$LINENO: result: no" >&5
0f836a62
AX
18418$as_echo "no" >&6; }
18419
18420
18421
ac9cc135 18422fi
ec06701b 18423
ac9cc135
AX
18424 rm -Rf build
18425
18426
ac9cc135
AX
18427
18428
ec06701b
AX
18429 { $as_echo "$as_me:$LINENO: checking whether wq_head->head and wq_entry->entry exist" >&5
18430$as_echo_n "checking whether wq_head->head and wq_entry->entry exist... " >&6; }
ac9cc135
AX
18431
18432
18433cat confdefs.h - <<_ACEOF >conftest.c
ec06701b
AX
18434/* confdefs.h. */
18435_ACEOF
18436cat confdefs.h >>conftest.$ac_ext
18437cat >>conftest.$ac_ext <<_ACEOF
18438/* end confdefs.h. */
ac9cc135
AX
18439
18440
ec06701b
AX
18441 #include <linux/wait.h>
18442
18443 #ifdef HAVE_WAIT_QUEUE_ENTRY_T
18444 typedef wait_queue_head_t spl_wait_queue_head_t;
18445 typedef wait_queue_entry_t spl_wait_queue_entry_t;
18446 #else
18447 typedef wait_queue_head_t spl_wait_queue_head_t;
18448 typedef wait_queue_t spl_wait_queue_entry_t;
18449 #endif
ac9cc135
AX
18450
18451int
18452main (void)
18453{
18454
ec06701b
AX
18455 spl_wait_queue_head_t wq_head;
18456 spl_wait_queue_entry_t wq_entry;
18457 struct list_head *head __attribute__ ((unused));
18458 struct list_head *entry __attribute__ ((unused));
18459
18460 head = &wq_head.head;
18461 entry = &wq_entry.entry;
ac9cc135
AX
18462
18463 ;
18464 return 0;
18465}
18466
18467_ACEOF
18468
18469
18470 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18471 echo "obj-m := conftest.o" >build/Makefile
18472 modpost_flag=''
18473 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18474 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
ec06701b 18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ac9cc135
AX
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
ec06701b
AX
18478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
ac9cc135
AX
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
ec06701b
AX
18483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
ac9cc135 18485
ec06701b 18486 { $as_echo "$as_me:$LINENO: result: yes" >&5
ac9cc135
AX
18487$as_echo "yes" >&6; }
18488
ec06701b
AX
18489cat >>confdefs.h <<\_ACEOF
18490#define HAVE_WAIT_QUEUE_HEAD_ENTRY 1
18491_ACEOF
ac9cc135
AX
18492
18493
18494else
18495 $as_echo "$as_me: failed program was:" >&5
18496sed 's/^/| /' conftest.$ac_ext >&5
18497
ec06701b 18498 { $as_echo "$as_me:$LINENO: result: no" >&5
ac9cc135
AX
18499$as_echo "no" >&6; }
18500
18501
18502
0f836a62 18503fi
ec06701b 18504
0f836a62
AX
18505 rm -Rf build
18506
18507
0f836a62
AX
18508
18509
34ee731f
AX
18510 { $as_echo "$as_me:$LINENO: checking whether io_schedule_timeout() is available" >&5
18511$as_echo_n "checking whether io_schedule_timeout() is available... " >&6; }
18512
18513
18514
18515cat confdefs.h - <<_ACEOF >conftest.c
18516/* confdefs.h. */
18517_ACEOF
18518cat confdefs.h >>conftest.$ac_ext
18519cat >>conftest.$ac_ext <<_ACEOF
18520/* end confdefs.h. */
18521
18522
18523 #include <linux/sched.h>
18524
18525int
18526main (void)
18527{
18528
18529 (void) io_schedule_timeout(1);
18530
18531 ;
18532 return 0;
18533}
18534
18535_ACEOF
18536
18537
18538 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18539 echo "obj-m := conftest.o" >build/Makefile
18540 modpost_flag=''
18541 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18542 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544 (eval $ac_try) 2>&5
18545 ac_status=$?
18546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 rc=0
18554else
18555 $as_echo "$as_me: failed program was:" >&5
18556sed 's/^/| /' conftest.$ac_ext >&5
18557 rc=1
18558
18559
18560fi
18561
18562 rm -Rf build
18563
18564
18565 if test $rc -ne 0; then :
18566
18567 { $as_echo "$as_me:$LINENO: result: no" >&5
18568$as_echo "no" >&6; }
18569
18570 else
18571 if test "x$enable_linux_builtin" != xyes; then
18572
18573 grep -q -E '[[:space:]]io_schedule_timeout[[:space:]]' \
18574 $LINUX_OBJ/Module*.symvers 2>/dev/null
18575 rc=$?
18576 if test $rc -ne 0; then
18577 export=0
18578 for file in ; do
18579 grep -q -E "EXPORT_SYMBOL.*(io_schedule_timeout)" \
18580 "$LINUX_OBJ/$file" 2>/dev/null
18581 rc=$?
18582 if test $rc -eq 0; then
18583 export=1
18584 break;
18585 fi
18586 done
18587 if test $export -eq 0; then :
18588 rc=1
18589 else :
18590 rc=0
18591 fi
18592 else :
18593 rc=0
18594 fi
18595
18596 fi
18597 if test $rc -ne 0; then :
18598
18599 { $as_echo "$as_me:$LINENO: result: no" >&5
18600$as_echo "no" >&6; }
18601
18602 else :
18603
18604 { $as_echo "$as_me:$LINENO: result: yes" >&5
18605$as_echo "yes" >&6; }
18606
18607cat >>confdefs.h <<\_ACEOF
18608#define HAVE_IO_SCHEDULE_TIMEOUT 1
18609_ACEOF
18610
18611
18612 fi
18613 fi
18614
18615
18616
99d6d8dc
AX
18617 { $as_echo "$as_me:$LINENO: checking whether kernel_write() takes loff_t pointer" >&5
18618$as_echo_n "checking whether kernel_write() takes loff_t pointer... " >&6; }
18619 tmp_flags="$EXTRA_KCFLAGS"
18620 EXTRA_KCFLAGS="-Werror"
18621
18622
18623cat confdefs.h - <<_ACEOF >conftest.c
18624/* confdefs.h. */
18625_ACEOF
18626cat confdefs.h >>conftest.$ac_ext
18627cat >>conftest.$ac_ext <<_ACEOF
18628/* end confdefs.h. */
18629
18630
18631 #include <linux/fs.h>
18632
18633int
18634main (void)
18635{
18636
18637 struct file *file = NULL;
18638 const void *buf = NULL;
18639 size_t count = 0;
18640 loff_t *pos = NULL;
18641 ssize_t ret;
18642
18643 ret = kernel_write(file, buf, count, pos);
18644
18645 ;
18646 return 0;
18647}
18648
18649_ACEOF
18650
18651
18652 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18653 echo "obj-m := conftest.o" >build/Makefile
18654 modpost_flag=''
18655 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18656 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667
18668 { $as_echo "$as_me:$LINENO: result: yes" >&5
18669$as_echo "yes" >&6; }
18670
18671cat >>confdefs.h <<\_ACEOF
18672#define HAVE_KERNEL_WRITE_PPOS 1
18673_ACEOF
18674
18675
18676else
18677 $as_echo "$as_me: failed program was:" >&5
18678sed 's/^/| /' conftest.$ac_ext >&5
18679
18680 { $as_echo "$as_me:$LINENO: result: no" >&5
18681$as_echo "no" >&6; }
18682
18683
18684
18685fi
18686
18687 rm -Rf build
18688
18689
18690 EXTRA_KCFLAGS="$tmp_flags"
18691
18692
18693 { $as_echo "$as_me:$LINENO: checking whether kernel_read() takes loff_t pointer" >&5
18694$as_echo_n "checking whether kernel_read() takes loff_t pointer... " >&6; }
18695 tmp_flags="$EXTRA_KCFLAGS"
18696 EXTRA_KCFLAGS="-Werror"
18697
18698
18699cat confdefs.h - <<_ACEOF >conftest.c
18700/* confdefs.h. */
18701_ACEOF
18702cat confdefs.h >>conftest.$ac_ext
18703cat >>conftest.$ac_ext <<_ACEOF
18704/* end confdefs.h. */
18705
18706
18707 #include <linux/fs.h>
18708
18709int
18710main (void)
18711{
18712
18713 struct file *file = NULL;
18714 void *buf = NULL;
18715 size_t count = 0;
18716 loff_t *pos = NULL;
18717 ssize_t ret;
18718
18719 ret = kernel_read(file, buf, count, pos);
18720
18721 ;
18722 return 0;
18723}
18724
18725_ACEOF
18726
18727
18728 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18729 echo "obj-m := conftest.o" >build/Makefile
18730 modpost_flag=''
18731 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18732 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; }; then
18743
18744 { $as_echo "$as_me:$LINENO: result: yes" >&5
18745$as_echo "yes" >&6; }
18746
18747cat >>confdefs.h <<\_ACEOF
18748#define HAVE_KERNEL_READ_PPOS 1
18749_ACEOF
18750
18751
18752else
18753 $as_echo "$as_me: failed program was:" >&5
18754sed 's/^/| /' conftest.$ac_ext >&5
18755
18756 { $as_echo "$as_me:$LINENO: result: no" >&5
18757$as_echo "no" >&6; }
18758
18759
18760
f3bc16ff
AX
18761fi
18762
18763 rm -Rf build
18764
18765
18766 EXTRA_KCFLAGS="$tmp_flags"
18767
18768
18769 { $as_echo "$as_me:$LINENO: checking whether timer_list.function gets a timer_list" >&5
18770$as_echo_n "checking whether timer_list.function gets a timer_list... " >&6; }
18771 tmp_flags="$EXTRA_KCFLAGS"
18772 EXTRA_KCFLAGS="-Werror"
18773
18774
18775cat confdefs.h - <<_ACEOF >conftest.c
18776/* confdefs.h. */
18777_ACEOF
18778cat confdefs.h >>conftest.$ac_ext
18779cat >>conftest.$ac_ext <<_ACEOF
18780/* end confdefs.h. */
18781
18782
18783 #include <linux/timer.h>
18784 void task_expire(struct timer_list *tl) {}
18785
18786int
18787main (void)
18788{
18789
18790 #ifndef from_timer
18791 #error "No from_timer() macro"
18792 #endif
18793
18794 struct timer_list timer;
18795 timer.function = task_expire;
18796 timer_setup(&timer, NULL, 0);
18797
18798 ;
18799 return 0;
18800}
18801
18802_ACEOF
18803
18804
18805 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
18806 echo "obj-m := conftest.o" >build/Makefile
18807 modpost_flag=''
18808 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
18809 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816 (eval $ac_try) 2>&5
18817 ac_status=$?
18818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); }; }; then
18820
18821 { $as_echo "$as_me:$LINENO: result: yes" >&5
18822$as_echo "yes" >&6; }
18823
18824cat >>confdefs.h <<\_ACEOF
18825#define HAVE_KERNEL_TIMER_FUNCTION_TIMER_LIST 1
18826_ACEOF
18827
18828
18829else
18830 $as_echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
18832
18833 { $as_echo "$as_me:$LINENO: result: no" >&5
18834$as_echo "no" >&6; }
18835
18836
18837
99d6d8dc
AX
18838fi
18839
18840 rm -Rf build
18841
18842
18843 EXTRA_KCFLAGS="$tmp_flags"
18844
18845
10946b02
AX
18846 ;;
18847 srpm) ;;
18848 *)
ec06701b 18849 { $as_echo "$as_me:$LINENO: result: Error!" >&5
10946b02 18850$as_echo "Error!" >&6; }
ec06701b
AX
18851 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18852 user kernel|user|all|srpm" >&5
18853$as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18854 user kernel|user|all|srpm" >&2;}
18855 { (exit 1); exit 1; }; } ;;
10946b02
AX
18856 esac
18857
18858 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
18859 CONFIG_USER_TRUE=
18860 CONFIG_USER_FALSE='#'
18861else
18862 CONFIG_USER_TRUE='#'
18863 CONFIG_USER_FALSE=
18864fi
18865
18866 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
18867 test "x$enable_linux_builtin" != xyes ; then
18868 CONFIG_KERNEL_TRUE=
18869 CONFIG_KERNEL_FALSE='#'
18870else
18871 CONFIG_KERNEL_TRUE='#'
18872 CONFIG_KERNEL_FALSE=
18873fi
18874
18875
18876
ec06701b 18877ac_config_files="$ac_config_files Makefile man/Makefile man/man1/Makefile man/man5/Makefile lib/Makefile cmd/Makefile cmd/splat/Makefile cmd/splslab/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile include/fs/Makefile include/linux/Makefile include/rpc/Makefile include/sharefs/Makefile include/sys/Makefile include/sys/fm/Makefile include/sys/fs/Makefile include/sys/sysevent/Makefile include/util/Makefile include/vm/Makefile scripts/Makefile rpm/Makefile rpm/redhat/Makefile rpm/redhat/spl.spec rpm/redhat/spl-kmod.spec rpm/redhat/spl-dkms.spec rpm/generic/Makefile rpm/generic/spl.spec rpm/generic/spl-kmod.spec rpm/generic/spl-dkms.spec spl.release"
10946b02
AX
18878
18879
18880cat >confcache <<\_ACEOF
18881# This file is a shell script that caches the results of configure
18882# tests run on this system so they can be shared between configure
18883# scripts and configure runs, see configure's option --config-cache.
18884# It is not useful on other systems. If it contains results you don't
18885# want to keep, you may remove or edit it.
18886#
18887# config.status only pays attention to the cache file if you give it
18888# the --recheck option to rerun configure.
18889#
18890# `ac_cv_env_foo' variables (set or unset) will be overridden when
18891# loading this file, other *unset* `ac_cv_foo' will be assigned the
18892# following values.
18893
18894_ACEOF
18895
18896# The following way of writing the cache mishandles newlines in values,
18897# but we know of no workaround that is simple, portable, and efficient.
18898# So, we kill variables containing newlines.
18899# Ultrix sh set writes to stderr and can't be redirected directly,
18900# and sets the high bit in the cache file unless we assign to the vars.
18901(
18902 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18903 eval ac_val=\$$ac_var
18904 case $ac_val in #(
18905 *${as_nl}*)
18906 case $ac_var in #(
ec06701b 18907 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10946b02
AX
18908$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18909 esac
18910 case $ac_var in #(
18911 _ | IFS | as_nl) ;; #(
18912 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
ec06701b 18913 *) $as_unset $ac_var ;;
10946b02
AX
18914 esac ;;
18915 esac
18916 done
18917
18918 (set) 2>&1 |
18919 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18920 *${as_nl}ac_space=\ *)
ec06701b
AX
18921 # `set' does not quote correctly, so add quotes (double-quote
18922 # substitution turns \\\\ into \\, and sed turns \\ into \).
10946b02
AX
18923 sed -n \
18924 "s/'/'\\\\''/g;
18925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18926 ;; #(
18927 *)
18928 # `set' quotes correctly as required by POSIX, so do not add quotes.
18929 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18930 ;;
18931 esac |
18932 sort
18933) |
18934 sed '
18935 /^ac_cv_env_/b end
18936 t clear
18937 :clear
18938 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18939 t end
18940 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18941 :end' >>confcache
18942if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18943 if test -w "$cache_file"; then
ec06701b
AX
18944 test "x$cache_file" != "x/dev/null" &&
18945 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10946b02 18946$as_echo "$as_me: updating cache $cache_file" >&6;}
ec06701b 18947 cat confcache >$cache_file
10946b02 18948 else
ec06701b 18949 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10946b02
AX
18950$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18951 fi
18952fi
18953rm -f confcache
18954
18955test "x$prefix" = xNONE && prefix=$ac_default_prefix
18956# Let make expand exec_prefix.
18957test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18958
18959DEFS=-DHAVE_CONFIG_H
18960
18961ac_libobjs=
18962ac_ltlibobjs=
10946b02
AX
18963for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18964 # 1. Remove the extension, and $U if already installed.
18965 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18966 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18967 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18968 # will be set to the directory where LIBOBJS objects are built.
ec06701b
AX
18969 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18970 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10946b02
AX
18971done
18972LIBOBJS=$ac_libobjs
18973
18974LTLIBOBJS=$ac_ltlibobjs
18975
18976
18977if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
ec06701b
AX
18978 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18979Usually this means the macro was only invoked conditionally." >&5
18980$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18981Usually this means the macro was only invoked conditionally." >&2;}
18982 { (exit 1); exit 1; }; }
18983fi
10946b02
AX
18984 if test -n "$EXEEXT"; then
18985 am__EXEEXT_TRUE=
18986 am__EXEEXT_FALSE='#'
18987else
18988 am__EXEEXT_TRUE='#'
18989 am__EXEEXT_FALSE=
18990fi
18991
18992if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
ec06701b
AX
18993 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18994Usually this means the macro was only invoked conditionally." >&5
18995$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18996Usually this means the macro was only invoked conditionally." >&2;}
18997 { (exit 1); exit 1; }; }
10946b02
AX
18998fi
18999if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
ec06701b
AX
19000 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19001Usually this means the macro was only invoked conditionally." >&5
19002$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19003Usually this means the macro was only invoked conditionally." >&2;}
19004 { (exit 1); exit 1; }; }
10946b02
AX
19005fi
19006if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
ec06701b
AX
19007 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
19008Usually this means the macro was only invoked conditionally." >&5
19009$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
19010Usually this means the macro was only invoked conditionally." >&2;}
19011 { (exit 1); exit 1; }; }
10946b02
AX
19012fi
19013if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
ec06701b
AX
19014 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
19015Usually this means the macro was only invoked conditionally." >&5
19016$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
19017Usually this means the macro was only invoked conditionally." >&2;}
19018 { (exit 1); exit 1; }; }
10946b02
AX
19019fi
19020
ec06701b 19021: ${CONFIG_STATUS=./config.status}
10946b02
AX
19022ac_write_fail=0
19023ac_clean_files_save=$ac_clean_files
19024ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec06701b 19025{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10946b02 19026$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
ec06701b 19027cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10946b02
AX
19028#! $SHELL
19029# Generated by $as_me.
19030# Run this file to recreate the current configuration.
19031# Compiler output produced by configure, useful for debugging
19032# configure, is in config.log if it exists.
19033
19034debug=false
19035ac_cs_recheck=false
19036ac_cs_silent=false
10946b02 19037SHELL=\${CONFIG_SHELL-$SHELL}
ec06701b
AX
19038_ACEOF
19039
19040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19041## --------------------- ##
19042## M4sh Initialization. ##
19043## --------------------- ##
10946b02
AX
19044
19045# Be more Bourne compatible
19046DUALCASE=1; export DUALCASE # for MKS sh
ec06701b 19047if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10946b02
AX
19048 emulate sh
19049 NULLCMD=:
19050 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19051 # is contrary to our usage. Disable this feature.
19052 alias -g '${1+"$@"}'='"$@"'
19053 setopt NO_GLOB_SUBST
19054else
ec06701b
AX
19055 case `(set -o) 2>/dev/null` in
19056 *posix*) set -o posix ;;
10946b02 19057esac
ec06701b 19058
10946b02
AX
19059fi
19060
19061
ec06701b
AX
19062
19063
19064# PATH needs CR
19065# Avoid depending upon Character Ranges.
19066as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19068as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19069as_cr_digits='0123456789'
19070as_cr_alnum=$as_cr_Letters$as_cr_digits
19071
10946b02
AX
19072as_nl='
19073'
19074export as_nl
19075# Printing a long string crashes Solaris 7 /usr/bin/printf.
19076as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19077as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19078as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
ec06701b 19079if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10946b02
AX
19080 as_echo='printf %s\n'
19081 as_echo_n='printf %s'
19082else
19083 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19084 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19085 as_echo_n='/usr/ucb/echo -n'
19086 else
19087 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19088 as_echo_n_body='eval
19089 arg=$1;
ec06701b 19090 case $arg in
10946b02
AX
19091 *"$as_nl"*)
19092 expr "X$arg" : "X\\(.*\\)$as_nl";
19093 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19094 esac;
19095 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19096 '
19097 export as_echo_n_body
19098 as_echo_n='sh -c $as_echo_n_body as_echo'
19099 fi
19100 export as_echo_body
19101 as_echo='sh -c $as_echo_body as_echo'
19102fi
19103
19104# The user is always right.
19105if test "${PATH_SEPARATOR+set}" != set; then
19106 PATH_SEPARATOR=:
19107 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19108 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19109 PATH_SEPARATOR=';'
19110 }
19111fi
19112
ec06701b
AX
19113# Support unset when possible.
19114if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19115 as_unset=unset
19116else
19117 as_unset=false
19118fi
19119
10946b02
AX
19120
19121# IFS
19122# We need space, tab and new line, in precisely that order. Quoting is
19123# there to prevent editors from complaining about space-tab.
19124# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19125# splitting by setting IFS to empty value.)
19126IFS=" "" $as_nl"
19127
19128# Find who we are. Look in the path if we contain no directory separator.
ec06701b 19129case $0 in
10946b02
AX
19130 *[\\/]* ) as_myself=$0 ;;
19131 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19132for as_dir in $PATH
19133do
19134 IFS=$as_save_IFS
19135 test -z "$as_dir" && as_dir=.
ec06701b
AX
19136 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19137done
10946b02
AX
19138IFS=$as_save_IFS
19139
19140 ;;
19141esac
19142# We did not find ourselves, most probably we were run as `sh COMMAND'
19143# in which case we are not to be found in the path.
19144if test "x$as_myself" = x; then
19145 as_myself=$0
19146fi
19147if test ! -f "$as_myself"; then
19148 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
ec06701b 19149 { (exit 1); exit 1; }
10946b02
AX
19150fi
19151
ec06701b
AX
19152# Work around bugs in pre-3.0 UWIN ksh.
19153for as_var in ENV MAIL MAILPATH
19154do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10946b02
AX
19155done
19156PS1='$ '
19157PS2='> '
19158PS4='+ '
19159
19160# NLS nuisances.
19161LC_ALL=C
19162export LC_ALL
19163LANGUAGE=C
19164export LANGUAGE
19165
ec06701b 19166# Required to use basename.
10946b02
AX
19167if expr a : '\(a\)' >/dev/null 2>&1 &&
19168 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19169 as_expr=expr
19170else
19171 as_expr=false
19172fi
19173
19174if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19175 as_basename=basename
19176else
19177 as_basename=false
19178fi
19179
10946b02 19180
ec06701b 19181# Name of the executable.
10946b02
AX
19182as_me=`$as_basename -- "$0" ||
19183$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19184 X"$0" : 'X\(//\)$' \| \
19185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19186$as_echo X/"$0" |
19187 sed '/^.*\/\([^/][^/]*\)\/*$/{
19188 s//\1/
19189 q
19190 }
19191 /^X\/\(\/\/\)$/{
19192 s//\1/
19193 q
19194 }
19195 /^X\/\(\/\).*/{
19196 s//\1/
19197 q
19198 }
19199 s/.*/./; q'`
19200
ec06701b
AX
19201# CDPATH.
19202$as_unset CDPATH
19203
19204
19205
19206 as_lineno_1=$LINENO
19207 as_lineno_2=$LINENO
19208 test "x$as_lineno_1" != "x$as_lineno_2" &&
19209 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19210
19211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19212 # uniformly replaced by the line number. The first 'sed' inserts a
19213 # line-number line after each line using $LINENO; the second 'sed'
19214 # does the real work. The second script uses 'N' to pair each
19215 # line-number line with the line containing $LINENO, and appends
19216 # trailing '-' during substitution so that $LINENO is not a special
19217 # case at line end.
19218 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19219 # scripts with optimization help from Paolo Bonzini. Blame Lee
19220 # E. McMahon (1931-1989) for sed's syntax. :-)
19221 sed -n '
19222 p
19223 /[$]LINENO/=
19224 ' <$as_myself |
19225 sed '
19226 s/[$]LINENO.*/&-/
19227 t lineno
19228 b
19229 :lineno
19230 N
19231 :loop
19232 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19233 t loop
19234 s/-\n.*//
19235 ' >$as_me.lineno &&
19236 chmod +x "$as_me.lineno" ||
19237 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19238 { (exit 1); exit 1; }; }
19239
19240 # Don't try to exec as it changes $[0], causing all sort of problems
19241 # (the dirname of $[0] is not the place where we might find the
19242 # original and so on. Autoconf is especially sensitive to this).
19243 . "./$as_me.lineno"
19244 # Exit status is that of the last command.
19245 exit
19246}
19247
19248
19249if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19250 as_dirname=dirname
19251else
19252 as_dirname=false
19253fi
10946b02
AX
19254
19255ECHO_C= ECHO_N= ECHO_T=
ec06701b 19256case `echo -n x` in
10946b02 19257-n*)
ec06701b 19258 case `echo 'x\c'` in
10946b02 19259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
ec06701b 19260 *) ECHO_C='\c';;
10946b02
AX
19261 esac;;
19262*)
19263 ECHO_N='-n';;
19264esac
ec06701b
AX
19265if expr a : '\(a\)' >/dev/null 2>&1 &&
19266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19267 as_expr=expr
19268else
19269 as_expr=false
19270fi
10946b02
AX
19271
19272rm -f conf$$ conf$$.exe conf$$.file
19273if test -d conf$$.dir; then
19274 rm -f conf$$.dir/conf$$.file
19275else
19276 rm -f conf$$.dir
19277 mkdir conf$$.dir 2>/dev/null
19278fi
19279if (echo >conf$$.file) 2>/dev/null; then
19280 if ln -s conf$$.file conf$$ 2>/dev/null; then
19281 as_ln_s='ln -s'
19282 # ... but there are two gotchas:
19283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
ec06701b 19285 # In both cases, we have to default to `cp -p'.
10946b02 19286 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
ec06701b 19287 as_ln_s='cp -p'
10946b02
AX
19288 elif ln conf$$.file conf$$ 2>/dev/null; then
19289 as_ln_s=ln
19290 else
ec06701b 19291 as_ln_s='cp -p'
10946b02
AX
19292 fi
19293else
ec06701b 19294 as_ln_s='cp -p'
10946b02 19295fi
ec06701b
AX
19296rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19297rmdir conf$$.dir 2>/dev/null
10946b02 19298
10946b02 19299if mkdir -p . 2>/dev/null; then
ec06701b 19300 as_mkdir_p=:
10946b02
AX
19301else
19302 test -d ./-p && rmdir ./-p
19303 as_mkdir_p=false
19304fi
19305
ec06701b
AX
19306if test -x / >/dev/null 2>&1; then
19307 as_test_x='test -x'
19308else
19309 if ls -dL / >/dev/null 2>&1; then
19310 as_ls_L_option=L
19311 else
19312 as_ls_L_option=
19313 fi
19314 as_test_x='
19315 eval sh -c '\''
19316 if test -d "$1"; then
19317 test -d "$1/.";
19318 else
19319 case $1 in
19320 -*)set "./$1";;
19321 esac;
19322 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19323 ???[sx]*):;;*)false;;esac;fi
19324 '\'' sh
19325 '
19326fi
19327as_executable_p=$as_test_x
10946b02
AX
19328
19329# Sed expression to map a string onto a valid CPP name.
19330as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19331
19332# Sed expression to map a string onto a valid variable name.
19333as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19334
19335
19336exec 6>&1
10946b02 19337
ec06701b 19338# Save the log message, to keep $[0] and so on meaningful, and to
10946b02
AX
19339# report actual input values of CONFIG_FILES etc. instead of their
19340# values after options handling.
19341ac_log="
34ee731f 19342This file was extended by spl $as_me 0.7.8, which was
ec06701b 19343generated by GNU Autoconf 2.63. Invocation command line was
10946b02
AX
19344
19345 CONFIG_FILES = $CONFIG_FILES
19346 CONFIG_HEADERS = $CONFIG_HEADERS
19347 CONFIG_LINKS = $CONFIG_LINKS
19348 CONFIG_COMMANDS = $CONFIG_COMMANDS
19349 $ $0 $@
19350
19351on `(hostname || uname -n) 2>/dev/null | sed 1q`
19352"
19353
19354_ACEOF
19355
19356case $ac_config_files in *"
19357"*) set x $ac_config_files; shift; ac_config_files=$*;;
19358esac
19359
19360case $ac_config_headers in *"
19361"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19362esac
19363
19364
19365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19366# Files that config.status was made for.
19367config_files="$ac_config_files"
19368config_headers="$ac_config_headers"
19369config_commands="$ac_config_commands"
19370
19371_ACEOF
19372
19373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19374ac_cs_usage="\
ec06701b
AX
19375\`$as_me' instantiates files from templates according to the
19376current configuration.
10946b02 19377
ec06701b 19378Usage: $0 [OPTION]... [FILE]...
10946b02
AX
19379
19380 -h, --help print this help, then exit
19381 -V, --version print version number and configuration settings, then exit
10946b02
AX
19382 -q, --quiet, --silent
19383 do not print progress messages
19384 -d, --debug don't remove temporary files
19385 --recheck update $as_me by reconfiguring in the same conditions
19386 --file=FILE[:TEMPLATE]
19387 instantiate the configuration file FILE
19388 --header=FILE[:TEMPLATE]
19389 instantiate the configuration header FILE
19390
19391Configuration files:
19392$config_files
19393
19394Configuration headers:
19395$config_headers
19396
19397Configuration commands:
19398$config_commands
19399
ec06701b 19400Report bugs to <bug-autoconf@gnu.org>."
10946b02
AX
19401
19402_ACEOF
19403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10946b02 19404ac_cs_version="\\
34ee731f 19405spl config.status 0.7.8
ec06701b
AX
19406configured by $0, generated by GNU Autoconf 2.63,
19407 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10946b02 19408
ec06701b 19409Copyright (C) 2008 Free Software Foundation, Inc.
10946b02
AX
19410This config.status script is free software; the Free Software Foundation
19411gives unlimited permission to copy, distribute and modify it."
19412
19413ac_pwd='$ac_pwd'
19414srcdir='$srcdir'
19415INSTALL='$INSTALL'
19416MKDIR_P='$MKDIR_P'
19417AWK='$AWK'
19418test -n "\$AWK" || AWK=awk
19419_ACEOF
19420
19421cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19422# The default lists apply if the user does not specify any file.
19423ac_need_defaults=:
19424while test $# != 0
19425do
19426 case $1 in
ec06701b 19427 --*=*)
10946b02
AX
19428 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19430 ac_shift=:
19431 ;;
10946b02
AX
19432 *)
19433 ac_option=$1
19434 ac_optarg=$2
19435 ac_shift=shift
19436 ;;
19437 esac
19438
19439 case $ac_option in
19440 # Handling of the options.
19441 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19442 ac_cs_recheck=: ;;
19443 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19444 $as_echo "$ac_cs_version"; exit ;;
10946b02
AX
19445 --debug | --debu | --deb | --de | --d | -d )
19446 debug=: ;;
19447 --file | --fil | --fi | --f )
19448 $ac_shift
19449 case $ac_optarg in
19450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10946b02 19451 esac
ec06701b 19452 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10946b02
AX
19453 ac_need_defaults=false;;
19454 --header | --heade | --head | --hea )
19455 $ac_shift
19456 case $ac_optarg in
19457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19458 esac
ec06701b 19459 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10946b02
AX
19460 ac_need_defaults=false;;
19461 --he | --h)
19462 # Conflict between --help and --header
ec06701b
AX
19463 { $as_echo "$as_me: error: ambiguous option: $1
19464Try \`$0 --help' for more information." >&2
19465 { (exit 1); exit 1; }; };;
10946b02
AX
19466 --help | --hel | -h )
19467 $as_echo "$ac_cs_usage"; exit ;;
19468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19470 ac_cs_silent=: ;;
19471
19472 # This is an error.
ec06701b
AX
19473 -*) { $as_echo "$as_me: error: unrecognized option: $1
19474Try \`$0 --help' for more information." >&2
19475 { (exit 1); exit 1; }; } ;;
10946b02 19476
ec06701b 19477 *) ac_config_targets="$ac_config_targets $1"
10946b02
AX
19478 ac_need_defaults=false ;;
19479
19480 esac
19481 shift
19482done
19483
19484ac_configure_extra_args=
19485
19486if $ac_cs_silent; then
19487 exec 6>/dev/null
19488 ac_configure_extra_args="$ac_configure_extra_args --silent"
19489fi
19490
19491_ACEOF
19492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19493if \$ac_cs_recheck; then
ec06701b 19494 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10946b02
AX
19495 shift
19496 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19497 CONFIG_SHELL='$SHELL'
19498 export CONFIG_SHELL
19499 exec "\$@"
19500fi
19501
19502_ACEOF
19503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19504exec 5>>config.log
19505{
19506 echo
19507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19508## Running $as_me. ##
19509_ASBOX
19510 $as_echo "$ac_log"
19511} >&5
19512
19513_ACEOF
19514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19515#
19516# INIT-COMMANDS
19517#
19518AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19519
19520
19521# The HP-UX ksh and POSIX shell print the target directory to stdout
19522# if CDPATH is set.
19523(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19524
19525sed_quote_subst='$sed_quote_subst'
19526double_quote_subst='$double_quote_subst'
19527delay_variable_subst='$delay_variable_subst'
ec06701b
AX
19528macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19529macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19530enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19531enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19532pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19533enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19534host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19535host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19536host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19537build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19538build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19539build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19540SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19541Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19542GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19543EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19544FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19545LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19546NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19547LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19548max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19549ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19550exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19551lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19552lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19553lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19554reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19555reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19556OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19557deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19558file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19559AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19560AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19561STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19562RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19563old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19564old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19565old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19566CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19567CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19568compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19569GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19570lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19571lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19572lt_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"`'
19573lt_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"`'
19574objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19575SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19576ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19577MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19578lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19579lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19580lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19581lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19582lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19583need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19584DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19585NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19586LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19587OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19588OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19589libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19590shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19591extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19592archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19593enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19594export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19595whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19596compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19597old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19598old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19599archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19600archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19601module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19602module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19603with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19604allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19605no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19606hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19607hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19608hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19609hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19610hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19611hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19612hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19613hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19614inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19615link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19616fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19617always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19618export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19619exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19620include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19621prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19622file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19623variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19624need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19625need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19626version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19627runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19628shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19629shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19630libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19631library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19632soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19633postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19634postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19635finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19636finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19637hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19638sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19639sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19640hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19641enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19642enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19643enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19644old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19645striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
10946b02
AX
19646
19647LTCC='$LTCC'
19648LTCFLAGS='$LTCFLAGS'
19649compiler='$compiler_DEFAULT'
19650
10946b02 19651# Quote evaled strings.
ec06701b 19652for var in SED \
10946b02
AX
19653GREP \
19654EGREP \
19655FGREP \
19656LD \
19657NM \
19658LN_S \
19659lt_SP2NL \
19660lt_NL2SP \
19661reload_flag \
19662OBJDUMP \
19663deplibs_check_method \
19664file_magic_cmd \
10946b02
AX
19665AR \
19666AR_FLAGS \
10946b02
AX
19667STRIP \
19668RANLIB \
19669CC \
19670CFLAGS \
19671compiler \
19672lt_cv_sys_global_symbol_pipe \
19673lt_cv_sys_global_symbol_to_cdecl \
19674lt_cv_sys_global_symbol_to_c_name_address \
19675lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
ec06701b
AX
19676SHELL \
19677ECHO \
10946b02 19678lt_prog_compiler_no_builtin_flag \
10946b02 19679lt_prog_compiler_wl \
ec06701b 19680lt_prog_compiler_pic \
10946b02
AX
19681lt_prog_compiler_static \
19682lt_cv_prog_compiler_c_o \
19683need_locks \
10946b02
AX
19684DSYMUTIL \
19685NMEDIT \
19686LIPO \
19687OTOOL \
19688OTOOL64 \
19689shrext_cmds \
19690export_dynamic_flag_spec \
19691whole_archive_flag_spec \
19692compiler_needs_object \
19693with_gnu_ld \
19694allow_undefined_flag \
19695no_undefined_flag \
19696hardcode_libdir_flag_spec \
ec06701b 19697hardcode_libdir_flag_spec_ld \
10946b02 19698hardcode_libdir_separator \
ec06701b 19699fix_srcfile_path \
10946b02
AX
19700exclude_expsyms \
19701include_expsyms \
19702file_list_spec \
19703variables_saved_for_relink \
19704libname_spec \
19705library_names_spec \
19706soname_spec \
10946b02
AX
19707finish_eval \
19708old_striplib \
19709striplib; do
ec06701b 19710 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10946b02 19711 *[\\\\\\\`\\"\\\$]*)
ec06701b 19712 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
10946b02
AX
19713 ;;
19714 *)
19715 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19716 ;;
19717 esac
19718done
19719
19720# Double-quote double-evaled strings.
19721for var in reload_cmds \
19722old_postinstall_cmds \
19723old_postuninstall_cmds \
19724old_archive_cmds \
19725extract_expsyms_cmds \
19726old_archive_from_new_cmds \
19727old_archive_from_expsyms_cmds \
19728archive_cmds \
19729archive_expsym_cmds \
19730module_cmds \
19731module_expsym_cmds \
19732export_symbols_cmds \
19733prelink_cmds \
10946b02
AX
19734postinstall_cmds \
19735postuninstall_cmds \
19736finish_cmds \
19737sys_lib_search_path_spec \
ec06701b
AX
19738sys_lib_dlsearch_path_spec; do
19739 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10946b02 19740 *[\\\\\\\`\\"\\\$]*)
ec06701b 19741 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
10946b02
AX
19742 ;;
19743 *)
19744 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19745 ;;
19746 esac
19747done
19748
ec06701b
AX
19749# Fix-up fallback echo if it was mangled by the above quoting rules.
19750case \$lt_ECHO in
19751*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19752 ;;
19753esac
19754
10946b02 19755ac_aux_dir='$ac_aux_dir'
ec06701b
AX
19756xsi_shell='$xsi_shell'
19757lt_shell_append='$lt_shell_append'
10946b02 19758
ec06701b 19759# See if we are running on zsh, and set the options which allow our
10946b02 19760# commands through without removal of \ escapes INIT.
ec06701b 19761if test -n "\${ZSH_VERSION+set}" ; then
10946b02
AX
19762 setopt NO_GLOB_SUBST
19763fi
19764
19765
19766 PACKAGE='$PACKAGE'
19767 VERSION='$VERSION'
ec06701b 19768 TIMESTAMP='$TIMESTAMP'
10946b02
AX
19769 RM='$RM'
19770 ofile='$ofile'
19771
19772
19773
19774
19775_ACEOF
19776
19777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19778
19779# Handling of arguments.
19780for ac_config_target in $ac_config_targets
19781do
19782 case $ac_config_target in
19783 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19784 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19785 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19786 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19787 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19788 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
19789 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
19790 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19791 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
ec06701b
AX
19792 "cmd/splat/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/splat/Makefile" ;;
19793 "cmd/splslab/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/splslab/Makefile" ;;
10946b02
AX
19794 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19795 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19796 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19797 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19798 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
19799 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
19800 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
19801 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
19802 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
19803 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
19804 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
19805 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
19806 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
19807 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
19808 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19809 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
19810 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
19811 "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;;
19812 "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
19813 "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
19814 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
19815 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
19816 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
19817 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
19818 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
19819
ec06701b
AX
19820 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19821$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19822 { (exit 1); exit 1; }; };;
10946b02
AX
19823 esac
19824done
19825
19826
19827# If the user did not use the arguments to specify the items to instantiate,
19828# then the envvar interface is used. Set only those that are not.
19829# We use the long form for the default assignment because of an extremely
19830# bizarre bug on SunOS 4.1.3.
19831if $ac_need_defaults; then
19832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19833 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19834 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19835fi
19836
19837# Have a temporary directory for convenience. Make it in the build tree
19838# simply because there is no reason against having it here, and in addition,
19839# creating and moving files from /tmp can sometimes cause problems.
19840# Hook for its removal unless debugging.
19841# Note that there is a small window in which the directory will not be cleaned:
19842# after its creation but before its name has been assigned to `$tmp'.
19843$debug ||
19844{
ec06701b 19845 tmp=
10946b02 19846 trap 'exit_status=$?
ec06701b 19847 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10946b02 19848' 0
ec06701b 19849 trap '{ (exit 1); exit 1; }' 1 2 13 15
10946b02
AX
19850}
19851# Create a (secure) tmp directory for tmp files.
19852
19853{
19854 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ec06701b 19855 test -n "$tmp" && test -d "$tmp"
10946b02
AX
19856} ||
19857{
19858 tmp=./conf$$-$RANDOM
19859 (umask 077 && mkdir "$tmp")
ec06701b
AX
19860} ||
19861{
19862 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19863 { (exit 1); exit 1; }
19864}
10946b02
AX
19865
19866# Set up the scripts for CONFIG_FILES section.
19867# No need to generate them if there are no CONFIG_FILES.
19868# This happens for instance with `./config.status config.h'.
19869if test -n "$CONFIG_FILES"; then
19870
19871
ec06701b 19872ac_cr='\r'
10946b02
AX
19873ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19874if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19875 ac_cs_awk_cr='\\r'
19876else
19877 ac_cs_awk_cr=$ac_cr
19878fi
19879
ec06701b 19880echo 'BEGIN {' >"$tmp/subs1.awk" &&
10946b02
AX
19881_ACEOF
19882
19883
19884{
19885 echo "cat >conf$$subs.awk <<_ACEOF" &&
19886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19887 echo "_ACEOF"
19888} >conf$$subs.sh ||
ec06701b
AX
19889 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19890$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19891 { (exit 1); exit 1; }; }
19892ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10946b02
AX
19893ac_delim='%!_!# '
19894for ac_last_try in false false false false false :; do
19895 . ./conf$$subs.sh ||
ec06701b
AX
19896 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19897$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19898 { (exit 1); exit 1; }; }
10946b02
AX
19899
19900 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19901 if test $ac_delim_n = $ac_delim_num; then
19902 break
19903 elif $ac_last_try; then
ec06701b
AX
19904 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19905$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19906 { (exit 1); exit 1; }; }
10946b02
AX
19907 else
19908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19909 fi
19910done
19911rm -f conf$$subs.sh
19912
19913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ec06701b 19914cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10946b02
AX
19915_ACEOF
19916sed -n '
19917h
19918s/^/S["/; s/!.*/"]=/
19919p
19920g
19921s/^[^!]*!//
19922:repl
19923t repl
19924s/'"$ac_delim"'$//
19925t delim
19926:nl
19927h
ec06701b 19928s/\(.\{148\}\).*/\1/
10946b02
AX
19929t more1
19930s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19931p
19932n
19933b repl
19934:more1
19935s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19936p
19937g
19938s/.\{148\}//
19939t nl
19940:delim
19941h
ec06701b 19942s/\(.\{148\}\).*/\1/
10946b02
AX
19943t more2
19944s/["\\]/\\&/g; s/^/"/; s/$/"/
19945p
19946b
19947:more2
19948s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19949p
19950g
19951s/.\{148\}//
19952t delim
19953' <conf$$subs.awk | sed '
19954/^[^""]/{
19955 N
19956 s/\n//
19957}
19958' >>$CONFIG_STATUS || ac_write_fail=1
19959rm -f conf$$subs.awk
19960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19961_ACAWK
ec06701b 19962cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10946b02
AX
19963 for (key in S) S_is_set[key] = 1
19964 FS = "\a"
19965
19966}
19967{
19968 line = $ 0
19969 nfields = split(line, field, "@")
19970 substed = 0
19971 len = length(field[1])
19972 for (i = 2; i < nfields; i++) {
19973 key = field[i]
19974 keylen = length(key)
19975 if (S_is_set[key]) {
19976 value = S[key]
19977 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19978 len += length(value) + length(field[++i])
19979 substed = 1
19980 } else
19981 len += 1 + keylen
19982 }
19983
19984 print line
19985}
19986
19987_ACAWK
19988_ACEOF
19989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19990if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19991 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19992else
19993 cat
ec06701b
AX
19994fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19995 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19996$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19997 { (exit 1); exit 1; }; }
10946b02
AX
19998_ACEOF
19999
ec06701b
AX
20000# VPATH may cause trouble with some makes, so we remove $(srcdir),
20001# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10946b02
AX
20002# trailing colons and then remove the whole line if VPATH becomes empty
20003# (actually we leave an empty line to preserve line numbers).
20004if test "x$srcdir" = x.; then
ec06701b
AX
20005 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20006s/:*\$(srcdir):*/:/
20007s/:*\${srcdir}:*/:/
20008s/:*@srcdir@:*/:/
20009s/^\([^=]*=[ ]*\):*/\1/
10946b02 20010s/:*$//
10946b02
AX
20011s/^[^=]*=[ ]*$//
20012}'
20013fi
20014
20015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20016fi # test -n "$CONFIG_FILES"
20017
20018# Set up the scripts for CONFIG_HEADERS section.
20019# No need to generate them if there are no CONFIG_HEADERS.
20020# This happens for instance with `./config.status Makefile'.
20021if test -n "$CONFIG_HEADERS"; then
ec06701b 20022cat >"$tmp/defines.awk" <<\_ACAWK ||
10946b02
AX
20023BEGIN {
20024_ACEOF
20025
20026# Transform confdefs.h into an awk script `defines.awk', embedded as
20027# here-document in config.status, that substitutes the proper values into
20028# config.h.in to produce config.h.
20029
20030# Create a delimiter string that does not exist in confdefs.h, to ease
20031# handling of long lines.
20032ac_delim='%!_!# '
20033for ac_last_try in false false :; do
ec06701b
AX
20034 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20035 if test -z "$ac_t"; then
10946b02
AX
20036 break
20037 elif $ac_last_try; then
ec06701b
AX
20038 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
20039$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
20040 { (exit 1); exit 1; }; }
10946b02
AX
20041 else
20042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20043 fi
20044done
20045
20046# For the awk script, D is an array of macro values keyed by name,
20047# likewise P contains macro parameters if any. Preserve backslash
20048# newline sequences.
20049
20050ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20051sed -n '
20052s/.\{148\}/&'"$ac_delim"'/g
20053t rset
20054:rset
20055s/^[ ]*#[ ]*define[ ][ ]*/ /
20056t def
20057d
20058:def
20059s/\\$//
20060t bsnl
20061s/["\\]/\\&/g
20062s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20063D["\1"]=" \3"/p
20064s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20065d
20066:bsnl
20067s/["\\]/\\&/g
20068s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20069D["\1"]=" \3\\\\\\n"\\/p
20070t cont
20071s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20072t cont
20073d
20074:cont
20075n
20076s/.\{148\}/&'"$ac_delim"'/g
20077t clear
20078:clear
20079s/\\$//
20080t bsnlc
20081s/["\\]/\\&/g; s/^/"/; s/$/"/p
20082d
20083:bsnlc
20084s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20085b cont
20086' <confdefs.h | sed '
20087s/'"$ac_delim"'/"\\\
20088"/g' >>$CONFIG_STATUS || ac_write_fail=1
20089
20090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20091 for (key in D) D_is_set[key] = 1
20092 FS = "\a"
20093}
20094/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20095 line = \$ 0
20096 split(line, arg, " ")
20097 if (arg[1] == "#") {
20098 defundef = arg[2]
20099 mac1 = arg[3]
20100 } else {
20101 defundef = substr(arg[1], 2)
20102 mac1 = arg[2]
20103 }
20104 split(mac1, mac2, "(") #)
20105 macro = mac2[1]
20106 prefix = substr(line, 1, index(line, defundef) - 1)
20107 if (D_is_set[macro]) {
20108 # Preserve the white space surrounding the "#".
20109 print prefix "define", macro P[macro] D[macro]
20110 next
20111 } else {
20112 # Replace #undef with comments. This is necessary, for example,
20113 # in the case of _POSIX_SOURCE, which is predefined and required
20114 # on some systems where configure will not decide to define it.
20115 if (defundef == "undef") {
20116 print "/*", prefix defundef, macro, "*/"
20117 next
20118 }
20119 }
20120}
20121{ print }
20122_ACAWK
20123_ACEOF
20124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ec06701b
AX
20125 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
20126$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
20127 { (exit 1); exit 1; }; }
10946b02
AX
20128fi # test -n "$CONFIG_HEADERS"
20129
20130
20131eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20132shift
20133for ac_tag
20134do
20135 case $ac_tag in
20136 :[FHLC]) ac_mode=$ac_tag; continue;;
20137 esac
20138 case $ac_mode$ac_tag in
20139 :[FHL]*:*);;
ec06701b
AX
20140 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
20141$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
20142 { (exit 1); exit 1; }; };;
10946b02
AX
20143 :[FH]-) ac_tag=-:-;;
20144 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20145 esac
20146 ac_save_IFS=$IFS
20147 IFS=:
20148 set x $ac_tag
20149 IFS=$ac_save_IFS
20150 shift
20151 ac_file=$1
20152 shift
20153
20154 case $ac_mode in
20155 :L) ac_source=$1;;
20156 :[FH])
20157 ac_file_inputs=
20158 for ac_f
20159 do
20160 case $ac_f in
ec06701b 20161 -) ac_f="$tmp/stdin";;
10946b02
AX
20162 *) # Look for the file first in the build tree, then in the source tree
20163 # (if the path is not absolute). The absolute path cannot be DOS-style,
20164 # because $ac_f cannot contain `:'.
20165 test -f "$ac_f" ||
20166 case $ac_f in
20167 [\\/$]*) false;;
20168 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20169 esac ||
ec06701b
AX
20170 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20171$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20172 { (exit 1); exit 1; }; };;
10946b02
AX
20173 esac
20174 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
ec06701b 20175 ac_file_inputs="$ac_file_inputs '$ac_f'"
10946b02
AX
20176 done
20177
20178 # Let's still pretend it is `configure' which instantiates (i.e., don't
20179 # use $as_me), people would be surprised to read:
20180 # /* config.h. Generated by config.status. */
20181 configure_input='Generated from '`
20182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20183 `' by configure.'
20184 if test x"$ac_file" != x-; then
20185 configure_input="$ac_file. $configure_input"
ec06701b 20186 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10946b02
AX
20187$as_echo "$as_me: creating $ac_file" >&6;}
20188 fi
20189 # Neutralize special characters interpreted by sed in replacement strings.
20190 case $configure_input in #(
20191 *\&* | *\|* | *\\* )
20192 ac_sed_conf_input=`$as_echo "$configure_input" |
20193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20194 *) ac_sed_conf_input=$configure_input;;
20195 esac
20196
20197 case $ac_tag in
ec06701b
AX
20198 *:-:* | *:-) cat >"$tmp/stdin" \
20199 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20200$as_echo "$as_me: error: could not create $ac_file" >&2;}
20201 { (exit 1); exit 1; }; } ;;
10946b02
AX
20202 esac
20203 ;;
20204 esac
20205
20206 ac_dir=`$as_dirname -- "$ac_file" ||
20207$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20208 X"$ac_file" : 'X\(//\)[^/]' \| \
20209 X"$ac_file" : 'X\(//\)$' \| \
20210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20211$as_echo X"$ac_file" |
20212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20213 s//\1/
20214 q
20215 }
20216 /^X\(\/\/\)[^/].*/{
20217 s//\1/
20218 q
20219 }
20220 /^X\(\/\/\)$/{
20221 s//\1/
20222 q
20223 }
20224 /^X\(\/\).*/{
20225 s//\1/
20226 q
20227 }
20228 s/.*/./; q'`
ec06701b
AX
20229 { as_dir="$ac_dir"
20230 case $as_dir in #(
20231 -*) as_dir=./$as_dir;;
20232 esac
20233 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20234 as_dirs=
20235 while :; do
20236 case $as_dir in #(
20237 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20238 *) as_qdir=$as_dir;;
20239 esac
20240 as_dirs="'$as_qdir' $as_dirs"
20241 as_dir=`$as_dirname -- "$as_dir" ||
20242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20243 X"$as_dir" : 'X\(//\)[^/]' \| \
20244 X"$as_dir" : 'X\(//\)$' \| \
20245 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20246$as_echo X"$as_dir" |
20247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20248 s//\1/
20249 q
20250 }
20251 /^X\(\/\/\)[^/].*/{
20252 s//\1/
20253 q
20254 }
20255 /^X\(\/\/\)$/{
20256 s//\1/
20257 q
20258 }
20259 /^X\(\/\).*/{
20260 s//\1/
20261 q
20262 }
20263 s/.*/./; q'`
20264 test -d "$as_dir" && break
20265 done
20266 test -z "$as_dirs" || eval "mkdir $as_dirs"
20267 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20268$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20269 { (exit 1); exit 1; }; }; }
10946b02
AX
20270 ac_builddir=.
20271
20272case "$ac_dir" in
20273.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20274*)
20275 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20276 # A ".." for each directory in $ac_dir_suffix.
20277 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20278 case $ac_top_builddir_sub in
20279 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20280 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20281 esac ;;
20282esac
20283ac_abs_top_builddir=$ac_pwd
20284ac_abs_builddir=$ac_pwd$ac_dir_suffix
20285# for backward compatibility:
20286ac_top_builddir=$ac_top_build_prefix
20287
20288case $srcdir in
20289 .) # We are building in place.
20290 ac_srcdir=.
20291 ac_top_srcdir=$ac_top_builddir_sub
20292 ac_abs_top_srcdir=$ac_pwd ;;
20293 [\\/]* | ?:[\\/]* ) # Absolute name.
20294 ac_srcdir=$srcdir$ac_dir_suffix;
20295 ac_top_srcdir=$srcdir
20296 ac_abs_top_srcdir=$srcdir ;;
20297 *) # Relative name.
20298 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20299 ac_top_srcdir=$ac_top_build_prefix$srcdir
20300 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20301esac
20302ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20303
20304
20305 case $ac_mode in
20306 :F)
20307 #
20308 # CONFIG_FILE
20309 #
20310
20311 case $INSTALL in
20312 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20313 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20314 esac
20315 ac_MKDIR_P=$MKDIR_P
20316 case $MKDIR_P in
20317 [\\/$]* | ?:[\\/]* ) ;;
20318 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20319 esac
20320_ACEOF
20321
20322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20323# If the template does not know about datarootdir, expand it.
20324# FIXME: This hack should be removed a few years after 2.60.
20325ac_datarootdir_hack=; ac_datarootdir_seen=
ec06701b 20326
10946b02
AX
20327ac_sed_dataroot='
20328/datarootdir/ {
20329 p
20330 q
20331}
20332/@datadir@/p
20333/@docdir@/p
20334/@infodir@/p
20335/@localedir@/p
ec06701b
AX
20336/@mandir@/p
20337'
10946b02
AX
20338case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20339*datarootdir*) ac_datarootdir_seen=yes;;
20340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec06701b 20341 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10946b02
AX
20342$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20343_ACEOF
20344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20345 ac_datarootdir_hack='
20346 s&@datadir@&$datadir&g
20347 s&@docdir@&$docdir&g
20348 s&@infodir@&$infodir&g
20349 s&@localedir@&$localedir&g
20350 s&@mandir@&$mandir&g
ec06701b 20351 s&\\\${datarootdir}&$datarootdir&g' ;;
10946b02
AX
20352esac
20353_ACEOF
20354
20355# Neutralize VPATH when `$srcdir' = `.'.
20356# Shell code in configure.ac might set extrasub.
20357# FIXME: do we really want to maintain this feature?
20358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20359ac_sed_extra="$ac_vpsub
20360$extrasub
20361_ACEOF
20362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20363:t
20364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20365s|@configure_input@|$ac_sed_conf_input|;t t
20366s&@top_builddir@&$ac_top_builddir_sub&;t t
20367s&@top_build_prefix@&$ac_top_build_prefix&;t t
20368s&@srcdir@&$ac_srcdir&;t t
20369s&@abs_srcdir@&$ac_abs_srcdir&;t t
20370s&@top_srcdir@&$ac_top_srcdir&;t t
20371s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20372s&@builddir@&$ac_builddir&;t t
20373s&@abs_builddir@&$ac_abs_builddir&;t t
20374s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20375s&@INSTALL@&$ac_INSTALL&;t t
20376s&@MKDIR_P@&$ac_MKDIR_P&;t t
20377$ac_datarootdir_hack
20378"
ec06701b
AX
20379eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20380 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20381$as_echo "$as_me: error: could not create $ac_file" >&2;}
20382 { (exit 1); exit 1; }; }
10946b02
AX
20383
20384test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ec06701b
AX
20385 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20386 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20387 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20388which seems to be undefined. Please make sure it is defined." >&5
10946b02 20389$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
ec06701b 20390which seems to be undefined. Please make sure it is defined." >&2;}
10946b02 20391
ec06701b 20392 rm -f "$tmp/stdin"
10946b02 20393 case $ac_file in
ec06701b
AX
20394 -) cat "$tmp/out" && rm -f "$tmp/out";;
20395 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10946b02 20396 esac \
ec06701b
AX
20397 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20398$as_echo "$as_me: error: could not create $ac_file" >&2;}
20399 { (exit 1); exit 1; }; }
10946b02
AX
20400 ;;
20401 :H)
20402 #
20403 # CONFIG_HEADER
20404 #
20405 if test x"$ac_file" != x-; then
20406 {
20407 $as_echo "/* $configure_input */" \
ec06701b
AX
20408 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20409 } >"$tmp/config.h" \
20410 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20411$as_echo "$as_me: error: could not create $ac_file" >&2;}
20412 { (exit 1); exit 1; }; }
20413 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20414 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10946b02
AX
20415$as_echo "$as_me: $ac_file is unchanged" >&6;}
20416 else
20417 rm -f "$ac_file"
ec06701b
AX
20418 mv "$tmp/config.h" "$ac_file" \
20419 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20420$as_echo "$as_me: error: could not create $ac_file" >&2;}
20421 { (exit 1); exit 1; }; }
10946b02
AX
20422 fi
20423 else
20424 $as_echo "/* $configure_input */" \
ec06701b
AX
20425 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20426 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20427$as_echo "$as_me: error: could not create -" >&2;}
20428 { (exit 1); exit 1; }; }
10946b02
AX
20429 fi
20430# Compute "$ac_file"'s index in $config_headers.
20431_am_arg="$ac_file"
20432_am_stamp_count=1
20433for _am_header in $config_headers :; do
20434 case $_am_header in
20435 $_am_arg | $_am_arg:* )
20436 break ;;
20437 * )
20438 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20439 esac
20440done
20441echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20442$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20443 X"$_am_arg" : 'X\(//\)[^/]' \| \
20444 X"$_am_arg" : 'X\(//\)$' \| \
20445 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20446$as_echo X"$_am_arg" |
20447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20448 s//\1/
20449 q
20450 }
20451 /^X\(\/\/\)[^/].*/{
20452 s//\1/
20453 q
20454 }
20455 /^X\(\/\/\)$/{
20456 s//\1/
20457 q
20458 }
20459 /^X\(\/\).*/{
20460 s//\1/
20461 q
20462 }
20463 s/.*/./; q'`/stamp-h$_am_stamp_count
20464 ;;
20465
ec06701b 20466 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10946b02
AX
20467$as_echo "$as_me: executing $ac_file commands" >&6;}
20468 ;;
20469 esac
20470
20471
20472 case $ac_file$ac_mode in
20473 "spl_config.h":H)
20474 (mv spl_config.h spl_config.h.tmp &&
20475 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
20476 rm spl_config.h.tmp) || exit 1 ;;
20477 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
ec06701b 20478 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10946b02
AX
20479 # are listed without --file. Let's play safe and only enable the eval
20480 # if we detect the quoting.
20481 case $CONFIG_FILES in
20482 *\'*) eval set x "$CONFIG_FILES" ;;
20483 *) set x $CONFIG_FILES ;;
20484 esac
20485 shift
20486 for mf
20487 do
20488 # Strip MF so we end up with the name of the file.
20489 mf=`echo "$mf" | sed -e 's/:.*$//'`
20490 # Check whether this is an Automake generated Makefile or not.
ec06701b 20491 # We used to match only the files named `Makefile.in', but
10946b02
AX
20492 # some people rename them; so instead we look at the file content.
20493 # Grep'ing the first line is not enough: some people post-process
20494 # each Makefile.in and add a new line on top of each file to say so.
20495 # Grep'ing the whole file is not good either: AIX grep has a line
20496 # limit of 2048, but all sed's we know have understand at least 4000.
20497 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20498 dirpart=`$as_dirname -- "$mf" ||
20499$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20500 X"$mf" : 'X\(//\)[^/]' \| \
20501 X"$mf" : 'X\(//\)$' \| \
20502 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20503$as_echo X"$mf" |
20504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20505 s//\1/
20506 q
20507 }
20508 /^X\(\/\/\)[^/].*/{
20509 s//\1/
20510 q
20511 }
20512 /^X\(\/\/\)$/{
20513 s//\1/
20514 q
20515 }
20516 /^X\(\/\).*/{
20517 s//\1/
20518 q
20519 }
20520 s/.*/./; q'`
20521 else
20522 continue
20523 fi
20524 # Extract the definition of DEPDIR, am__include, and am__quote
ec06701b 20525 # from the Makefile without running `make'.
10946b02
AX
20526 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20527 test -z "$DEPDIR" && continue
20528 am__include=`sed -n 's/^am__include = //p' < "$mf"`
ec06701b 20529 test -z "am__include" && continue
10946b02 20530 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
ec06701b
AX
20531 # When using ansi2knr, U may be empty or an underscore; expand it
20532 U=`sed -n 's/^U = //p' < "$mf"`
10946b02
AX
20533 # Find all dependency output files, they are included files with
20534 # $(DEPDIR) in their names. We invoke sed twice because it is the
20535 # simplest approach to changing $(DEPDIR) to its actual value in the
20536 # expansion.
20537 for file in `sed -n "
20538 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
ec06701b 20539 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10946b02
AX
20540 # Make sure the directory exists.
20541 test -f "$dirpart/$file" && continue
20542 fdir=`$as_dirname -- "$file" ||
20543$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544 X"$file" : 'X\(//\)[^/]' \| \
20545 X"$file" : 'X\(//\)$' \| \
20546 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20547$as_echo X"$file" |
20548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20549 s//\1/
20550 q
20551 }
20552 /^X\(\/\/\)[^/].*/{
20553 s//\1/
20554 q
20555 }
20556 /^X\(\/\/\)$/{
20557 s//\1/
20558 q
20559 }
20560 /^X\(\/\).*/{
20561 s//\1/
20562 q
20563 }
20564 s/.*/./; q'`
ec06701b
AX
20565 { as_dir=$dirpart/$fdir
20566 case $as_dir in #(
20567 -*) as_dir=./$as_dir;;
20568 esac
20569 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20570 as_dirs=
20571 while :; do
20572 case $as_dir in #(
20573 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20574 *) as_qdir=$as_dir;;
20575 esac
20576 as_dirs="'$as_qdir' $as_dirs"
20577 as_dir=`$as_dirname -- "$as_dir" ||
20578$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20579 X"$as_dir" : 'X\(//\)[^/]' \| \
20580 X"$as_dir" : 'X\(//\)$' \| \
20581 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20582$as_echo X"$as_dir" |
20583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20584 s//\1/
20585 q
20586 }
20587 /^X\(\/\/\)[^/].*/{
20588 s//\1/
20589 q
20590 }
20591 /^X\(\/\/\)$/{
20592 s//\1/
20593 q
20594 }
20595 /^X\(\/\).*/{
20596 s//\1/
20597 q
20598 }
20599 s/.*/./; q'`
20600 test -d "$as_dir" && break
20601 done
20602 test -z "$as_dirs" || eval "mkdir $as_dirs"
20603 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20604$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20605 { (exit 1); exit 1; }; }; }
10946b02
AX
20606 # echo "creating $dirpart/$file"
20607 echo '# dummy' > "$dirpart/$file"
20608 done
20609 done
20610}
20611 ;;
20612 "libtool":C)
20613
ec06701b 20614 # See if we are running on zsh, and set the options which allow our
10946b02 20615 # commands through without removal of \ escapes.
ec06701b 20616 if test -n "${ZSH_VERSION+set}" ; then
10946b02
AX
20617 setopt NO_GLOB_SUBST
20618 fi
20619
ec06701b 20620 cfgfile="${ofile}T"
10946b02
AX
20621 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20622 $RM "$cfgfile"
20623
20624 cat <<_LT_EOF >> "$cfgfile"
20625#! $SHELL
ec06701b
AX
20626
20627# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20628# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
10946b02
AX
20629# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20630# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20631#
ec06701b
AX
20632# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20633# 2006, 2007, 2008 Free Software Foundation, Inc.
20634# Written by Gordon Matzigkeit, 1996
20635#
20636# This file is part of GNU Libtool.
20637#
20638# GNU Libtool is free software; you can redistribute it and/or
20639# modify it under the terms of the GNU General Public License as
20640# published by the Free Software Foundation; either version 2 of
20641# the License, or (at your option) any later version.
10946b02 20642#
ec06701b
AX
20643# As a special exception to the GNU General Public License,
20644# if you distribute this file as part of a program or library that
20645# is built using GNU Libtool, you may include this file under the
20646# same distribution terms that you use for the rest of that program.
20647#
20648# GNU Libtool is distributed in the hope that it will be useful,
20649# but WITHOUT ANY WARRANTY; without even the implied warranty of
10946b02
AX
20650# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20651# GNU General Public License for more details.
20652#
20653# You should have received a copy of the GNU General Public License
ec06701b
AX
20654# along with GNU Libtool; see the file COPYING. If not, a copy
20655# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20656# obtained by writing to the Free Software Foundation, Inc.,
20657# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10946b02
AX
20658
20659
20660# The names of the tagged configurations supported by this script.
ec06701b 20661available_tags=""
10946b02
AX
20662
20663# ### BEGIN LIBTOOL CONFIG
20664
20665# Which release of libtool.m4 was used?
20666macro_version=$macro_version
20667macro_revision=$macro_revision
20668
20669# Whether or not to build shared libraries.
20670build_libtool_libs=$enable_shared
20671
20672# Whether or not to build static libraries.
20673build_old_libs=$enable_static
20674
20675# What type of objects to build.
20676pic_mode=$pic_mode
20677
20678# Whether or not to optimize for fast installation.
20679fast_install=$enable_fast_install
20680
10946b02
AX
20681# The host system.
20682host_alias=$host_alias
20683host=$host
20684host_os=$host_os
20685
20686# The build system.
20687build_alias=$build_alias
20688build=$build
20689build_os=$build_os
20690
20691# A sed program that does not truncate output.
20692SED=$lt_SED
20693
20694# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20695Xsed="\$SED -e 1s/^X//"
20696
20697# A grep program that handles long lines.
20698GREP=$lt_GREP
20699
20700# An ERE matcher.
20701EGREP=$lt_EGREP
20702
20703# A literal string matcher.
20704FGREP=$lt_FGREP
20705
20706# A BSD- or MS-compatible name lister.
20707NM=$lt_NM
20708
20709# Whether we need soft or hard links.
20710LN_S=$lt_LN_S
20711
20712# What is the maximum length of a command?
20713max_cmd_len=$max_cmd_len
20714
20715# Object file suffix (normally "o").
20716objext=$ac_objext
20717
20718# Executable file suffix (normally "").
20719exeext=$exeext
20720
20721# whether the shell understands "unset".
20722lt_unset=$lt_unset
20723
20724# turn spaces into newlines.
20725SP2NL=$lt_lt_SP2NL
20726
20727# turn newlines into spaces.
20728NL2SP=$lt_lt_NL2SP
20729
ec06701b
AX
20730# How to create reloadable object files.
20731reload_flag=$lt_reload_flag
20732reload_cmds=$lt_reload_cmds
10946b02
AX
20733
20734# An object symbol dumper.
20735OBJDUMP=$lt_OBJDUMP
20736
20737# Method to check whether dependent libraries are shared objects.
20738deplibs_check_method=$lt_deplibs_check_method
20739
ec06701b 20740# Command to use when deplibs_check_method == "file_magic".
10946b02
AX
20741file_magic_cmd=$lt_file_magic_cmd
20742
10946b02
AX
20743# The archiver.
20744AR=$lt_AR
10946b02
AX
20745AR_FLAGS=$lt_AR_FLAGS
20746
10946b02
AX
20747# A symbol stripping program.
20748STRIP=$lt_STRIP
20749
20750# Commands used to install an old-style archive.
20751RANLIB=$lt_RANLIB
20752old_postinstall_cmds=$lt_old_postinstall_cmds
20753old_postuninstall_cmds=$lt_old_postuninstall_cmds
20754
10946b02
AX
20755# A C compiler.
20756LTCC=$lt_CC
20757
20758# LTCC compiler flags.
20759LTCFLAGS=$lt_CFLAGS
20760
20761# Take the output of nm and produce a listing of raw symbols and C names.
20762global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20763
20764# Transform the output of nm in a proper C declaration.
20765global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20766
20767# Transform the output of nm in a C name address pair.
20768global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20769
20770# Transform the output of nm in a C name address pair when lib prefix is needed.
20771global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20772
10946b02
AX
20773# The name of the directory that contains temporary libtool files.
20774objdir=$objdir
20775
ec06701b
AX
20776# Shell to use when invoking shell scripts.
20777SHELL=$lt_SHELL
20778
20779# An echo program that does not interpret backslashes.
20780ECHO=$lt_ECHO
20781
10946b02
AX
20782# Used to examine libraries when file_magic_cmd begins with "file".
20783MAGIC_CMD=$MAGIC_CMD
20784
20785# Must we lock files when doing compilation?
20786need_locks=$lt_need_locks
20787
10946b02
AX
20788# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20789DSYMUTIL=$lt_DSYMUTIL
20790
20791# Tool to change global to local symbols on Mac OS X.
20792NMEDIT=$lt_NMEDIT
20793
20794# Tool to manipulate fat objects and archives on Mac OS X.
20795LIPO=$lt_LIPO
20796
20797# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20798OTOOL=$lt_OTOOL
20799
20800# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20801OTOOL64=$lt_OTOOL64
20802
20803# Old archive suffix (normally "a").
20804libext=$libext
20805
20806# Shared library suffix (normally ".so").
20807shrext_cmds=$lt_shrext_cmds
20808
20809# The commands to extract the exported symbol list from a shared archive.
20810extract_expsyms_cmds=$lt_extract_expsyms_cmds
20811
20812# Variables whose values should be saved in libtool wrapper scripts and
20813# restored at link time.
20814variables_saved_for_relink=$lt_variables_saved_for_relink
20815
20816# Do we need the "lib" prefix for modules?
20817need_lib_prefix=$need_lib_prefix
20818
20819# Do we need a version for libraries?
20820need_version=$need_version
20821
20822# Library versioning type.
20823version_type=$version_type
20824
20825# Shared library runtime path variable.
20826runpath_var=$runpath_var
20827
20828# Shared library path variable.
20829shlibpath_var=$shlibpath_var
20830
20831# Is shlibpath searched before the hard-coded library search path?
20832shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20833
20834# Format of library name prefix.
20835libname_spec=$lt_libname_spec
20836
20837# List of archive names. First name is the real one, the rest are links.
20838# The last name is the one that the linker finds with -lNAME
20839library_names_spec=$lt_library_names_spec
20840
20841# The coded name of the library, if different from the real name.
20842soname_spec=$lt_soname_spec
20843
10946b02
AX
20844# Command to use after installation of a shared archive.
20845postinstall_cmds=$lt_postinstall_cmds
20846
20847# Command to use after uninstallation of a shared archive.
20848postuninstall_cmds=$lt_postuninstall_cmds
20849
20850# Commands used to finish a libtool library installation in a directory.
20851finish_cmds=$lt_finish_cmds
20852
20853# As "finish_cmds", except a single script fragment to be evaled but
20854# not shown.
20855finish_eval=$lt_finish_eval
20856
20857# Whether we should hardcode library paths into libraries.
20858hardcode_into_libs=$hardcode_into_libs
20859
20860# Compile-time system search path for libraries.
20861sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20862
ec06701b
AX
20863# Run-time system search path for libraries.
20864sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10946b02
AX
20865
20866# Whether dlopen is supported.
20867dlopen_support=$enable_dlopen
20868
20869# Whether dlopen of programs is supported.
20870dlopen_self=$enable_dlopen_self
20871
20872# Whether dlopen of statically linked programs is supported.
20873dlopen_self_static=$enable_dlopen_self_static
20874
20875# Commands to strip libraries.
20876old_striplib=$lt_old_striplib
20877striplib=$lt_striplib
20878
20879
20880# The linker used to build libraries.
20881LD=$lt_LD
20882
10946b02
AX
20883# Commands used to build an old-style archive.
20884old_archive_cmds=$lt_old_archive_cmds
20885
20886# A language specific compiler.
20887CC=$lt_compiler
20888
20889# Is the compiler the GNU compiler?
20890with_gcc=$GCC
20891
20892# Compiler flag to turn off builtin functions.
20893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20894
10946b02
AX
20895# How to pass a linker flag through the compiler.
20896wl=$lt_lt_prog_compiler_wl
20897
ec06701b
AX
20898# Additional compiler flags for building library objects.
20899pic_flag=$lt_lt_prog_compiler_pic
20900
10946b02
AX
20901# Compiler flag to prevent dynamic linking.
20902link_static_flag=$lt_lt_prog_compiler_static
20903
20904# Does compiler simultaneously support -c and -o options?
20905compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20906
20907# Whether or not to add -lc for building shared libraries.
20908build_libtool_need_lc=$archive_cmds_need_lc
20909
20910# Whether or not to disallow shared libs when runtime libs are static.
20911allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20912
20913# Compiler flag to allow reflexive dlopens.
20914export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20915
20916# Compiler flag to generate shared objects directly from archives.
20917whole_archive_flag_spec=$lt_whole_archive_flag_spec
20918
20919# Whether the compiler copes with passing no objects directly.
20920compiler_needs_object=$lt_compiler_needs_object
20921
20922# Create an old-style archive from a shared archive.
20923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20924
20925# Create a temporary old-style archive to link instead of a shared archive.
20926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20927
20928# Commands used to build a shared archive.
20929archive_cmds=$lt_archive_cmds
20930archive_expsym_cmds=$lt_archive_expsym_cmds
20931
20932# Commands used to build a loadable module if different from building
20933# a shared archive.
20934module_cmds=$lt_module_cmds
20935module_expsym_cmds=$lt_module_expsym_cmds
20936
20937# Whether we are building with GNU ld or not.
20938with_gnu_ld=$lt_with_gnu_ld
20939
20940# Flag that allows shared libraries with undefined symbols to be built.
20941allow_undefined_flag=$lt_allow_undefined_flag
20942
20943# Flag that enforces no undefined symbols.
20944no_undefined_flag=$lt_no_undefined_flag
20945
20946# Flag to hardcode \$libdir into a binary during linking.
20947# This must work even if \$libdir does not exist
20948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20949
ec06701b
AX
20950# If ld is used when linking, flag to hardcode \$libdir into a binary
20951# during linking. This must work even if \$libdir does not exist.
20952hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20953
10946b02
AX
20954# Whether we need a single "-rpath" flag with a separated argument.
20955hardcode_libdir_separator=$lt_hardcode_libdir_separator
20956
ec06701b 20957# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
10946b02
AX
20958# DIR into the resulting binary.
20959hardcode_direct=$hardcode_direct
20960
ec06701b 20961# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
10946b02 20962# DIR into the resulting binary and the resulting library dependency is
ec06701b 20963# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
10946b02
AX
20964# library is relocated.
20965hardcode_direct_absolute=$hardcode_direct_absolute
20966
20967# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20968# into the resulting binary.
20969hardcode_minus_L=$hardcode_minus_L
20970
20971# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20972# into the resulting binary.
20973hardcode_shlibpath_var=$hardcode_shlibpath_var
20974
20975# Set to "yes" if building a shared library automatically hardcodes DIR
20976# into the library and all subsequent libraries and executables linked
20977# against it.
20978hardcode_automatic=$hardcode_automatic
20979
20980# Set to yes if linker adds runtime paths of dependent libraries
20981# to runtime path list.
20982inherit_rpath=$inherit_rpath
20983
20984# Whether libtool must link a program against all its dependency libraries.
20985link_all_deplibs=$link_all_deplibs
20986
ec06701b
AX
20987# Fix the shell variable \$srcfile for the compiler.
20988fix_srcfile_path=$lt_fix_srcfile_path
20989
10946b02
AX
20990# Set to "yes" if exported symbols are required.
20991always_export_symbols=$always_export_symbols
20992
20993# The commands to list exported symbols.
20994export_symbols_cmds=$lt_export_symbols_cmds
20995
20996# Symbols that should not be listed in the preloaded symbols.
20997exclude_expsyms=$lt_exclude_expsyms
20998
20999# Symbols that must always be exported.
21000include_expsyms=$lt_include_expsyms
21001
21002# Commands necessary for linking programs (against libraries) with templates.
21003prelink_cmds=$lt_prelink_cmds
21004
10946b02
AX
21005# Specify filename containing input files.
21006file_list_spec=$lt_file_list_spec
21007
21008# How to hardcode a shared library path into an executable.
21009hardcode_action=$hardcode_action
21010
21011# ### END LIBTOOL CONFIG
21012
21013_LT_EOF
21014
21015 case $host_os in
21016 aix3*)
21017 cat <<\_LT_EOF >> "$cfgfile"
21018# AIX sometimes has problems with the GCC collect2 program. For some
21019# reason, if we set the COLLECT_NAMES environment variable, the problems
21020# vanish in a puff of smoke.
ec06701b 21021if test "X${COLLECT_NAMES+set}" != Xset; then
10946b02
AX
21022 COLLECT_NAMES=
21023 export COLLECT_NAMES
21024fi
21025_LT_EOF
21026 ;;
21027 esac
21028
21029
ec06701b 21030ltmain="$ac_aux_dir/ltmain.sh"
10946b02
AX
21031
21032
21033 # We use sed instead of cat because bash on DJGPP gets confused if
21034 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21035 # text mode, it properly converts lines to CR/LF. This bash problem
21036 # is reportedly fixed, but why not run on old versions too?
ec06701b
AX
21037 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21038 || (rm -f "$cfgfile"; exit 1)
21039
21040 case $xsi_shell in
21041 yes)
21042 cat << \_LT_EOF >> "$cfgfile"
21043
21044# func_dirname file append nondir_replacement
21045# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21046# otherwise set result to NONDIR_REPLACEMENT.
21047func_dirname ()
21048{
21049 case ${1} in
21050 */*) func_dirname_result="${1%/*}${2}" ;;
21051 * ) func_dirname_result="${3}" ;;
21052 esac
21053}
21054
21055# func_basename file
21056func_basename ()
21057{
21058 func_basename_result="${1##*/}"
21059}
21060
21061# func_dirname_and_basename file append nondir_replacement
21062# perform func_basename and func_dirname in a single function
21063# call:
21064# dirname: Compute the dirname of FILE. If nonempty,
21065# add APPEND to the result, otherwise set result
21066# to NONDIR_REPLACEMENT.
21067# value returned in "$func_dirname_result"
21068# basename: Compute filename of FILE.
21069# value retuned in "$func_basename_result"
21070# Implementation must be kept synchronized with func_dirname
21071# and func_basename. For efficiency, we do not delegate to
21072# those functions but instead duplicate the functionality here.
21073func_dirname_and_basename ()
21074{
21075 case ${1} in
21076 */*) func_dirname_result="${1%/*}${2}" ;;
21077 * ) func_dirname_result="${3}" ;;
21078 esac
21079 func_basename_result="${1##*/}"
21080}
21081
21082# func_stripname prefix suffix name
21083# strip PREFIX and SUFFIX off of NAME.
21084# PREFIX and SUFFIX must not contain globbing or regex special
21085# characters, hashes, percent signs, but SUFFIX may contain a leading
21086# dot (in which case that matches only a dot).
21087func_stripname ()
21088{
21089 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21090 # positional parameters, so assign one to ordinary parameter first.
21091 func_stripname_result=${3}
21092 func_stripname_result=${func_stripname_result#"${1}"}
21093 func_stripname_result=${func_stripname_result%"${2}"}
21094}
21095
21096# func_opt_split
21097func_opt_split ()
21098{
21099 func_opt_split_opt=${1%%=*}
21100 func_opt_split_arg=${1#*=}
21101}
21102
21103# func_lo2o object
21104func_lo2o ()
21105{
21106 case ${1} in
21107 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21108 *) func_lo2o_result=${1} ;;
21109 esac
21110}
21111
21112# func_xform libobj-or-source
21113func_xform ()
21114{
21115 func_xform_result=${1%.*}.lo
21116}
21117
21118# func_arith arithmetic-term...
21119func_arith ()
21120{
21121 func_arith_result=$(( $* ))
21122}
21123
21124# func_len string
21125# STRING may not start with a hyphen.
21126func_len ()
21127{
21128 func_len_result=${#1}
21129}
21130
21131_LT_EOF
21132 ;;
21133 *) # Bourne compatible functions.
21134 cat << \_LT_EOF >> "$cfgfile"
21135
21136# func_dirname file append nondir_replacement
21137# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21138# otherwise set result to NONDIR_REPLACEMENT.
21139func_dirname ()
21140{
21141 # Extract subdirectory from the argument.
21142 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
21143 if test "X$func_dirname_result" = "X${1}"; then
21144 func_dirname_result="${3}"
21145 else
21146 func_dirname_result="$func_dirname_result${2}"
21147 fi
21148}
21149
21150# func_basename file
21151func_basename ()
21152{
21153 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
21154}
21155
21156
21157# func_stripname prefix suffix name
21158# strip PREFIX and SUFFIX off of NAME.
21159# PREFIX and SUFFIX must not contain globbing or regex special
21160# characters, hashes, percent signs, but SUFFIX may contain a leading
21161# dot (in which case that matches only a dot).
21162# func_strip_suffix prefix name
21163func_stripname ()
21164{
21165 case ${2} in
21166 .*) func_stripname_result=`$ECHO "X${3}" \
21167 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
21168 *) func_stripname_result=`$ECHO "X${3}" \
21169 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
21170 esac
21171}
21172
21173# sed scripts:
21174my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21175my_sed_long_arg='1s/^-[^=]*=//'
21176
21177# func_opt_split
21178func_opt_split ()
21179{
21180 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
21181 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
21182}
21183
21184# func_lo2o object
21185func_lo2o ()
21186{
21187 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
21188}
21189
21190# func_xform libobj-or-source
21191func_xform ()
21192{
21193 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
21194}
21195
21196# func_arith arithmetic-term...
21197func_arith ()
21198{
21199 func_arith_result=`expr "$@"`
21200}
21201
21202# func_len string
21203# STRING may not start with a hyphen.
21204func_len ()
21205{
21206 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21207}
21208
21209_LT_EOF
21210esac
21211
21212case $lt_shell_append in
21213 yes)
21214 cat << \_LT_EOF >> "$cfgfile"
21215
21216# func_append var value
21217# Append VALUE to the end of shell variable VAR.
21218func_append ()
21219{
21220 eval "$1+=\$2"
21221}
21222_LT_EOF
21223 ;;
21224 *)
21225 cat << \_LT_EOF >> "$cfgfile"
21226
21227# func_append var value
21228# Append VALUE to the end of shell variable VAR.
21229func_append ()
21230{
21231 eval "$1=\$$1\$2"
21232}
21233
21234_LT_EOF
21235 ;;
21236 esac
21237
21238
21239 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21240 || (rm -f "$cfgfile"; exit 1)
10946b02 21241
ec06701b 21242 mv -f "$cfgfile" "$ofile" ||
10946b02
AX
21243 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21244 chmod +x "$ofile"
21245
21246 ;;
21247
21248 esac
21249done # for ac_tag
21250
21251
ec06701b 21252{ (exit 0); exit 0; }
10946b02 21253_ACEOF
ec06701b 21254chmod +x $CONFIG_STATUS
10946b02
AX
21255ac_clean_files=$ac_clean_files_save
21256
21257test $ac_write_fail = 0 ||
ec06701b
AX
21258 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
21259$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
21260 { (exit 1); exit 1; }; }
10946b02
AX
21261
21262
21263# configure is writing to config.log, and then calls config.status.
21264# config.status does its own redirection, appending to config.log.
21265# Unfortunately, on DOS this fails, as config.log is still kept open
21266# by configure, so config.status won't be able to write to it; its
21267# output is simply discarded. So we exec the FD to /dev/null,
21268# effectively closing config.log, so it can be properly (re)opened and
21269# appended to by config.status. When coming back to configure, we
21270# need to make the FD available again.
21271if test "$no_create" != yes; then
21272 ac_cs_success=:
21273 ac_config_status_args=
21274 test "$silent" = yes &&
21275 ac_config_status_args="$ac_config_status_args --quiet"
21276 exec 5>/dev/null
21277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21278 exec 5>>config.log
21279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21280 # would make configure fail if this is the last instruction.
ec06701b 21281 $ac_cs_success || { (exit 1); exit 1; }
10946b02
AX
21282fi
21283if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
ec06701b 21284 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10946b02
AX
21285$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21286fi
21287