]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
Add missing spl_debug_* helpers
[mirror_spl-debian.git] / configure
CommitLineData
bf9f3bac 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8934764e 3# Generated by GNU Autoconf 2.63.
bf9f3bac 4#
8934764e
BB
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
bf9f3bac 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
8934764e
BB
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
bf9f3bac 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
8934764e 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bf9f3bac 19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
8934764e
BB
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
bf9f3bac 79fi
bf9f3bac 80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
8934764e
BB
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
bf9f3bac 120# Work around bugs in pre-3.0 UWIN ksh.
8934764e
BB
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
bf9f3bac 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8934764e
BB
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
bf9f3bac 133
134# Required to use basename.
8934764e
BB
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bf9f3bac 137 as_expr=expr
138else
139 as_expr=false
140fi
141
8934764e 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bf9f3bac 143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
8934764e 150as_me=`$as_basename -- "$0" ||
bf9f3bac 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
8934764e
BB
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'`
bf9f3bac 168
8934764e
BB
169# CDPATH.
170$as_unset CDPATH
bf9f3bac 171
bf9f3bac 172
8934764e
BB
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
bf9f3bac 178fi
179
8934764e
BB
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}
bf9f3bac 196
8934764e
BB
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
bf9f3bac 204
8934764e
BB
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
bf9f3bac 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
8934764e 245 case $as_dir in
bf9f3bac 246 /*)
8934764e
BB
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
bf9f3bac 347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
bf9f3bac 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
8934764e
BB
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
bf9f3bac 447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
8934764e
BB
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.
bf9f3bac 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8934764e
BB
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
bf9f3bac 462 sed '
8934764e
BB
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
bf9f3bac 467 N
8934764e
BB
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bf9f3bac 470 t loop
8934764e 471 s/-\n.*//
bf9f3bac 472 ' >$as_me.lineno &&
8934764e
BB
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
bf9f3bac 475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
8934764e
BB
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
bf9f3bac 481 # Exit status is that of the last command.
482 exit
483}
484
485
8934764e
BB
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
bf9f3bac 491
8934764e
BB
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bf9f3bac 504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
8934764e
BB
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
bf9f3bac 518 as_ln_s='ln -s'
8934764e
BB
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
bf9f3bac 529 fi
bf9f3bac 530else
531 as_ln_s='cp -p'
532fi
8934764e
BB
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
bf9f3bac 535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
8934764e
BB
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
bf9f3bac 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
bf9f3bac 573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
8934764e 578case X$lt_ECHO in
bf9f3bac 579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
8934764e 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
bf9f3bac 582 ;;
583esac
584
8934764e 585ECHO=${lt_ECHO-echo}
bf9f3bac 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 :
8934764e
BB
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
bf9f3bac 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
8934764e 603 cat <<_LT_EOF
bf9f3bac 604$*
8934764e 605_LT_EOF
bf9f3bac 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
8934764e
BB
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
bf9f3bac 625
8934764e
BB
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.
bf9f3bac 636
8934764e
BB
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
bf9f3bac 648 IFS="$lt_save_ifs"
bf9f3bac 649
8934764e
BB
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+"$@"}
bf9f3bac 665 else
8934764e
BB
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=:
bf9f3bac 690
8934764e
BB
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
bf9f3bac 698
8934764e
BB
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
bf9f3bac 708 fi
709 fi
710 fi
711fi
bf9f3bac 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.
8934764e
BB
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
bf9f3bac 718fi
719
720
721
722
8934764e 723exec 7<&0 </dev/null 6>&1
bf9f3bac 724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
bf9f3bac 730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
8934764e 734ac_clean_files=
bf9f3bac 735ac_config_libobj_dir=.
8934764e 736LIBOBJS=
bf9f3bac 737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
bf9f3bac 743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
8934764e 753#ifdef HAVE_SYS_TYPES_H
bf9f3bac 754# include <sys/types.h>
755#endif
8934764e 756#ifdef HAVE_SYS_STAT_H
bf9f3bac 757# include <sys/stat.h>
758#endif
8934764e 759#ifdef STDC_HEADERS
bf9f3bac 760# include <stdlib.h>
761# include <stddef.h>
762#else
8934764e 763# ifdef HAVE_STDLIB_H
bf9f3bac 764# include <stdlib.h>
765# endif
766#endif
8934764e
BB
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bf9f3bac 769# include <memory.h>
770# endif
771# include <string.h>
772#endif
8934764e 773#ifdef HAVE_STRINGS_H
bf9f3bac 774# include <strings.h>
775#endif
8934764e 776#ifdef HAVE_INTTYPES_H
bf9f3bac 777# include <inttypes.h>
bf9f3bac 778#endif
8934764e
BB
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
bf9f3bac 783# include <unistd.h>
784#endif"
785
8934764e
BB
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
790CONFIG_KERNEL_FALSE
791CONFIG_KERNEL_TRUE
792CONFIG_USER_FALSE
793CONFIG_USER_TRUE
c950d148 794DEBUG_CFLAGS
8934764e
BB
795KERNELCPPFLAGS
796KERNELMAKE_PARAMS
797LINUX_SYMBOLS
798LINUX_VERSION
799LINUX_OBJ
800LINUX
801SPL_CONFIG
c2dceb5c
PS
802MAKEPKG_VERSION
803MAKEPKG
804HAVE_MAKEPKG
805PACMAN_VERSION
806PACMAN
807HAVE_PACMAN
287b2fb1
BB
808ALIEN_VERSION
809ALIEN
810HAVE_ALIEN
811DPKGBUILD_VERSION
812DPKGBUILD
813HAVE_DPKGBUILD
814DPKG_VERSION
815DPKG
816HAVE_DPKG
817RPMBUILD_VERSION
818RPMBUILD
819HAVE_RPMBUILD
820RPM_VERSION
821RPM
822HAVE_RPM
0b14b9f3
BB
823DEFAULT_PACKAGE
824VENDOR
8934764e
BB
825LICENSE
826CPP
827OTOOL64
828OTOOL
829LIPO
830NMEDIT
831DSYMUTIL
832lt_ECHO
833RANLIB
834AR
835OBJDUMP
836LN_S
837NM
838ac_ct_DUMPBIN
839DUMPBIN
840LD
841FGREP
842EGREP
843GREP
844SED
845LIBTOOL
846am__fastdepCC_FALSE
847am__fastdepCC_TRUE
848CCDEPMODE
849AMDEPBACKSLASH
850AMDEP_FALSE
851AMDEP_TRUE
852am__quote
853am__include
854DEPDIR
855OBJEXT
856EXEEXT
857ac_ct_CC
858CPPFLAGS
859LDFLAGS
860CFLAGS
861CC
862am__untar
863am__tar
864AMTAR
865am__leading_dot
866SET_MAKE
867AWK
868mkdir_p
869MKDIR_P
870INSTALL_STRIP_PROGRAM
871STRIP
872install_sh
873MAKEINFO
874AUTOHEADER
875AUTOMAKE
876AUTOCONF
877ACLOCAL
878VERSION
879PACKAGE
880CYGPATH_W
881am__isrc
882INSTALL_DATA
883INSTALL_SCRIPT
884INSTALL_PROGRAM
885AM_BACKSLASH
886AM_DEFAULT_VERBOSITY
887MAINT
888MAINTAINER_MODE_FALSE
889MAINTAINER_MODE_TRUE
890target_os
891target_vendor
892target_cpu
893target
894host_os
895host_vendor
896host_cpu
897host
898build_os
899build_vendor
900build_cpu
901build
902SPL_META_LT_AGE
903SPL_META_LT_REVISION
904SPL_META_LT_CURRENT
905SPL_META_AUTHOR
906SPL_META_DATA
907SPL_META_ALIAS
908SPL_META_RELEASE
909SPL_META_VERSION
910SPL_META_NAME
911target_alias
912host_alias
913build_alias
914LIBS
915ECHO_T
916ECHO_N
917ECHO_C
918DEFS
919mandir
920localedir
921libdir
922psdir
923pdfdir
924dvidir
925htmldir
926infodir
927docdir
928oldincludedir
929includedir
930localstatedir
931sharedstatedir
932sysconfdir
933datadir
934datarootdir
935libexecdir
936sbindir
937bindir
938program_transform_name
939prefix
940exec_prefix
941PACKAGE_BUGREPORT
942PACKAGE_STRING
943PACKAGE_VERSION
944PACKAGE_TARNAME
945PACKAGE_NAME
946PATH_SEPARATOR
947SHELL'
bf9f3bac 948ac_subst_files=''
8934764e
BB
949ac_user_opts='
950enable_option_checking
951enable_maintainer_mode
952enable_silent_rules
953enable_dependency_tracking
954enable_shared
955enable_static
956with_pic
957enable_fast_install
958with_gnu_ld
959enable_libtool_lock
960with_config
961with_linux
962with_linux_obj
963enable_debug
4b2220f0 964enable_debug_log
8934764e
BB
965enable_debug_kmem
966enable_debug_kmem_tracking
967enable_atomic_spinlocks
968'
969 ac_precious_vars='build_alias
970host_alias
971target_alias
972CC
973CFLAGS
974LDFLAGS
975LIBS
976CPPFLAGS
977CPP'
978
bf9f3bac 979
980# Initialize some variables set by options.
981ac_init_help=
982ac_init_version=false
8934764e
BB
983ac_unrecognized_opts=
984ac_unrecognized_sep=
bf9f3bac 985# The variables have the same names as the options, with
986# dashes changed to underlines.
987cache_file=/dev/null
988exec_prefix=NONE
989no_create=
990no_recursion=
991prefix=NONE
992program_prefix=NONE
993program_suffix=NONE
994program_transform_name=s,x,x,
995silent=
996site=
997srcdir=
998verbose=
999x_includes=NONE
1000x_libraries=NONE
1001
1002# Installation directory options.
1003# These are left unexpanded so users can "make install exec_prefix=/foo"
1004# and all the variables that are supposed to be based on exec_prefix
1005# by default will actually change.
1006# Use braces instead of parens because sh, perl, etc. also accept them.
8934764e 1007# (The list follows the same order as the GNU Coding Standards.)
bf9f3bac 1008bindir='${exec_prefix}/bin'
1009sbindir='${exec_prefix}/sbin'
1010libexecdir='${exec_prefix}/libexec'
8934764e
BB
1011datarootdir='${prefix}/share'
1012datadir='${datarootdir}'
bf9f3bac 1013sysconfdir='${prefix}/etc'
1014sharedstatedir='${prefix}/com'
1015localstatedir='${prefix}/var'
bf9f3bac 1016includedir='${prefix}/include'
1017oldincludedir='/usr/include'
8934764e
BB
1018docdir='${datarootdir}/doc/${PACKAGE}'
1019infodir='${datarootdir}/info'
1020htmldir='${docdir}'
1021dvidir='${docdir}'
1022pdfdir='${docdir}'
1023psdir='${docdir}'
1024libdir='${exec_prefix}/lib'
1025localedir='${datarootdir}/locale'
1026mandir='${datarootdir}/man'
bf9f3bac 1027
1028ac_prev=
8934764e 1029ac_dashdash=
bf9f3bac 1030for ac_option
1031do
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
8934764e 1034 eval $ac_prev=\$ac_option
bf9f3bac 1035 ac_prev=
1036 continue
1037 fi
1038
8934764e
BB
1039 case $ac_option in
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 *) ac_optarg=yes ;;
1042 esac
bf9f3bac 1043
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1045
8934764e
BB
1046 case $ac_dashdash$ac_option in
1047 --)
1048 ac_dashdash=yes ;;
bf9f3bac 1049
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 ac_prev=bindir ;;
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1054
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1059
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1066
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1069
8934764e 1070 -datadir | --datadir | --datadi | --datad)
bf9f3bac 1071 ac_prev=datadir ;;
8934764e 1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bf9f3bac 1073 datadir=$ac_optarg ;;
1074
8934764e
BB
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1081
bf9f3bac 1082 -disable-* | --disable-*)
8934764e 1083 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bf9f3bac 1084 # Reject names that are not valid shell variable names.
8934764e
BB
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1087 { (exit 1); exit 1; }; }
8934764e
BB
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092"enable_$ac_useropt"
1093"*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval enable_$ac_useropt=no ;;
1098
1099 -docdir | --docdir | --docdi | --doc | --do)
1100 ac_prev=docdir ;;
1101 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102 docdir=$ac_optarg ;;
1103
1104 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1105 ac_prev=dvidir ;;
1106 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107 dvidir=$ac_optarg ;;
bf9f3bac 1108
1109 -enable-* | --enable-*)
8934764e 1110 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bf9f3bac 1111 # Reject names that are not valid shell variable names.
8934764e
BB
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1114 { (exit 1); exit 1; }; }
8934764e
BB
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119"enable_$ac_useropt"
1120"*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
bf9f3bac 1123 esac
8934764e 1124 eval enable_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1125
1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128 | --exec | --exe | --ex)
1129 ac_prev=exec_prefix ;;
1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132 | --exec=* | --exe=* | --ex=*)
1133 exec_prefix=$ac_optarg ;;
1134
1135 -gas | --gas | --ga | --g)
1136 # Obsolete; use --with-gas.
1137 with_gas=yes ;;
1138
1139 -help | --help | --hel | --he | -h)
1140 ac_init_help=long ;;
1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142 ac_init_help=recursive ;;
1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144 ac_init_help=short ;;
1145
1146 -host | --host | --hos | --ho)
1147 ac_prev=host_alias ;;
1148 -host=* | --host=* | --hos=* | --ho=*)
1149 host_alias=$ac_optarg ;;
1150
8934764e
BB
1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152 ac_prev=htmldir ;;
1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154 | --ht=*)
1155 htmldir=$ac_optarg ;;
1156
bf9f3bac 1157 -includedir | --includedir | --includedi | --included | --include \
1158 | --includ | --inclu | --incl | --inc)
1159 ac_prev=includedir ;;
1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161 | --includ=* | --inclu=* | --incl=* | --inc=*)
1162 includedir=$ac_optarg ;;
1163
1164 -infodir | --infodir | --infodi | --infod | --info | --inf)
1165 ac_prev=infodir ;;
1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167 infodir=$ac_optarg ;;
1168
1169 -libdir | --libdir | --libdi | --libd)
1170 ac_prev=libdir ;;
1171 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172 libdir=$ac_optarg ;;
1173
1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175 | --libexe | --libex | --libe)
1176 ac_prev=libexecdir ;;
1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178 | --libexe=* | --libex=* | --libe=*)
1179 libexecdir=$ac_optarg ;;
1180
8934764e
BB
1181 -localedir | --localedir | --localedi | --localed | --locale)
1182 ac_prev=localedir ;;
1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184 localedir=$ac_optarg ;;
1185
bf9f3bac 1186 -localstatedir | --localstatedir | --localstatedi | --localstated \
8934764e 1187 | --localstate | --localstat | --localsta | --localst | --locals)
bf9f3bac 1188 ac_prev=localstatedir ;;
1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8934764e 1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bf9f3bac 1191 localstatedir=$ac_optarg ;;
1192
1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194 ac_prev=mandir ;;
1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196 mandir=$ac_optarg ;;
1197
1198 -nfp | --nfp | --nf)
1199 # Obsolete; use --without-fp.
1200 with_fp=no ;;
1201
1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203 | --no-cr | --no-c | -n)
1204 no_create=yes ;;
1205
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208 no_recursion=yes ;;
1209
1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212 | --oldin | --oldi | --old | --ol | --o)
1213 ac_prev=oldincludedir ;;
1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217 oldincludedir=$ac_optarg ;;
1218
1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220 ac_prev=prefix ;;
1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222 prefix=$ac_optarg ;;
1223
1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225 | --program-pre | --program-pr | --program-p)
1226 ac_prev=program_prefix ;;
1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229 program_prefix=$ac_optarg ;;
1230
1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232 | --program-suf | --program-su | --program-s)
1233 ac_prev=program_suffix ;;
1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236 program_suffix=$ac_optarg ;;
1237
1238 -program-transform-name | --program-transform-name \
1239 | --program-transform-nam | --program-transform-na \
1240 | --program-transform-n | --program-transform- \
1241 | --program-transform | --program-transfor \
1242 | --program-transfo | --program-transf \
1243 | --program-trans | --program-tran \
1244 | --progr-tra | --program-tr | --program-t)
1245 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1254
8934764e
BB
1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256 ac_prev=pdfdir ;;
1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258 pdfdir=$ac_optarg ;;
1259
1260 -psdir | --psdir | --psdi | --psd | --ps)
1261 ac_prev=psdir ;;
1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263 psdir=$ac_optarg ;;
1264
bf9f3bac 1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 silent=yes ;;
1268
1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270 ac_prev=sbindir ;;
1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272 | --sbi=* | --sb=*)
1273 sbindir=$ac_optarg ;;
1274
1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277 | --sharedst | --shareds | --shared | --share | --shar \
1278 | --sha | --sh)
1279 ac_prev=sharedstatedir ;;
1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283 | --sha=* | --sh=*)
1284 sharedstatedir=$ac_optarg ;;
1285
1286 -site | --site | --sit)
1287 ac_prev=site ;;
1288 -site=* | --site=* | --sit=*)
1289 site=$ac_optarg ;;
1290
1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292 ac_prev=srcdir ;;
1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294 srcdir=$ac_optarg ;;
1295
1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297 | --syscon | --sysco | --sysc | --sys | --sy)
1298 ac_prev=sysconfdir ;;
1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301 sysconfdir=$ac_optarg ;;
1302
1303 -target | --target | --targe | --targ | --tar | --ta | --t)
1304 ac_prev=target_alias ;;
1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306 target_alias=$ac_optarg ;;
1307
1308 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309 verbose=yes ;;
1310
1311 -version | --version | --versio | --versi | --vers | -V)
1312 ac_init_version=: ;;
1313
1314 -with-* | --with-*)
8934764e 1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bf9f3bac 1316 # Reject names that are not valid shell variable names.
8934764e
BB
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1319 { (exit 1); exit 1; }; }
8934764e
BB
1320 ac_useropt_orig=$ac_useropt
1321 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1323 *"
1324"with_$ac_useropt"
1325"*) ;;
1326 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1327 ac_unrecognized_sep=', ';;
bf9f3bac 1328 esac
8934764e 1329 eval with_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1330
1331 -without-* | --without-*)
8934764e 1332 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bf9f3bac 1333 # Reject names that are not valid shell variable names.
8934764e
BB
1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1336 { (exit 1); exit 1; }; }
8934764e
BB
1337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1340 *"
1341"with_$ac_useropt"
1342"*) ;;
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1345 esac
1346 eval with_$ac_useropt=no ;;
bf9f3bac 1347
1348 --x)
1349 # Obsolete; use --with-x.
1350 with_x=yes ;;
1351
1352 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353 | --x-incl | --x-inc | --x-in | --x-i)
1354 ac_prev=x_includes ;;
1355 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357 x_includes=$ac_optarg ;;
1358
1359 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1360 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361 ac_prev=x_libraries ;;
1362 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364 x_libraries=$ac_optarg ;;
1365
8934764e 1366 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
bf9f3bac 1367Try \`$0 --help' for more information." >&2
1368 { (exit 1); exit 1; }; }
1369 ;;
1370
1371 *=*)
1372 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8934764e 1375 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
bf9f3bac 1376 { (exit 1); exit 1; }; }
8934764e 1377 eval $ac_envvar=\$ac_optarg
bf9f3bac 1378 export $ac_envvar ;;
1379
1380 *)
1381 # FIXME: should be removed in autoconf 3.0.
8934764e 1382 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bf9f3bac 1383 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8934764e 1384 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bf9f3bac 1385 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1386 ;;
1387
1388 esac
1389done
1390
1391if test -n "$ac_prev"; then
1392 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8934764e 1393 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
bf9f3bac 1394 { (exit 1); exit 1; }; }
1395fi
1396
8934764e
BB
1397if test -n "$ac_unrecognized_opts"; then
1398 case $enable_option_checking in
1399 no) ;;
1400 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1401 { (exit 1); exit 1; }; } ;;
1402 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bf9f3bac 1403 esac
8934764e 1404fi
bf9f3bac 1405
8934764e
BB
1406# Check all directory arguments for consistency.
1407for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1408 datadir sysconfdir sharedstatedir localstatedir includedir \
1409 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1410 libdir localedir mandir
bf9f3bac 1411do
8934764e
BB
1412 eval ac_val=\$$ac_var
1413 # Remove trailing slashes.
bf9f3bac 1414 case $ac_val in
8934764e
BB
1415 */ )
1416 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1417 eval $ac_var=\$ac_val;;
bf9f3bac 1418 esac
8934764e
BB
1419 # Be sure to have absolute directory names.
1420 case $ac_val in
1421 [\\/$]* | ?:[\\/]* ) continue;;
1422 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423 esac
1424 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1425 { (exit 1); exit 1; }; }
bf9f3bac 1426done
1427
1428# There might be people who depend on the old broken behavior: `$host'
1429# used to hold the argument of --host etc.
1430# FIXME: To remove some day.
1431build=$build_alias
1432host=$host_alias
1433target=$target_alias
1434
1435# FIXME: To remove some day.
1436if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
8934764e 1439 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bf9f3bac 1440 If a cross compiler is detected then cross compile mode will be used." >&2
1441 elif test "x$build_alias" != "x$host_alias"; then
1442 cross_compiling=yes
1443 fi
1444fi
1445
1446ac_tool_prefix=
1447test -n "$host_alias" && ac_tool_prefix=$host_alias-
1448
1449test "$silent" = yes && exec 6>/dev/null
1450
1451
8934764e
BB
1452ac_pwd=`pwd` && test -n "$ac_pwd" &&
1453ac_ls_di=`ls -di .` &&
1454ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1455 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1456 { (exit 1); exit 1; }; }
1457test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1458 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1459 { (exit 1); exit 1; }; }
1460
1461
bf9f3bac 1462# Find the source files, if location was not specified.
1463if test -z "$srcdir"; then
1464 ac_srcdir_defaulted=yes
8934764e
BB
1465 # Try the directory containing this script, then the parent directory.
1466 ac_confdir=`$as_dirname -- "$as_myself" ||
1467$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1468 X"$as_myself" : 'X\(//\)[^/]' \| \
1469 X"$as_myself" : 'X\(//\)$' \| \
1470 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1471$as_echo X"$as_myself" |
1472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1473 s//\1/
1474 q
1475 }
1476 /^X\(\/\/\)[^/].*/{
1477 s//\1/
1478 q
1479 }
1480 /^X\(\/\/\)$/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\).*/{
1485 s//\1/
1486 q
1487 }
1488 s/.*/./; q'`
bf9f3bac 1489 srcdir=$ac_confdir
8934764e 1490 if test ! -r "$srcdir/$ac_unique_file"; then
bf9f3bac 1491 srcdir=..
1492 fi
1493else
1494 ac_srcdir_defaulted=no
1495fi
8934764e
BB
1496if test ! -r "$srcdir/$ac_unique_file"; then
1497 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1498 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bf9f3bac 1499 { (exit 1); exit 1; }; }
bf9f3bac 1500fi
8934764e
BB
1501ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502ac_abs_confdir=`(
1503 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
bf9f3bac 1504 { (exit 1); exit 1; }; }
8934764e
BB
1505 pwd)`
1506# When building in place, set srcdir=.
1507if test "$ac_abs_confdir" = "$ac_pwd"; then
1508 srcdir=.
1509fi
1510# Remove unnecessary trailing slashes from srcdir.
1511# Double slashes in file names in object file debugging info
1512# mess up M-x gdb in Emacs.
1513case $srcdir in
1514*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515esac
1516for ac_var in $ac_precious_vars; do
1517 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518 eval ac_env_${ac_var}_value=\$${ac_var}
1519 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1521done
bf9f3bac 1522
1523#
1524# Report the --help message.
1525#
1526if test "$ac_init_help" = "long"; then
1527 # Omit some internal or obsolete options to make the list less imposing.
1528 # This message is too long to be a string in the A/UX 3.1 sh.
1529 cat <<_ACEOF
1530\`configure' configures this package to adapt to many kinds of systems.
1531
1532Usage: $0 [OPTION]... [VAR=VALUE]...
1533
1534To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535VAR=VALUE. See below for descriptions of some of the useful variables.
1536
1537Defaults for the options are specified in brackets.
1538
1539Configuration:
1540 -h, --help display this help and exit
1541 --help=short display options specific to this package
1542 --help=recursive display the short help of all the included packages
1543 -V, --version display version information and exit
1544 -q, --quiet, --silent do not print \`checking...' messages
1545 --cache-file=FILE cache test results in FILE [disabled]
1546 -C, --config-cache alias for \`--cache-file=config.cache'
1547 -n, --no-create do not create output files
1548 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1549
bf9f3bac 1550Installation directories:
1551 --prefix=PREFIX install architecture-independent files in PREFIX
8934764e 1552 [$ac_default_prefix]
bf9f3bac 1553 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8934764e 1554 [PREFIX]
bf9f3bac 1555
1556By default, \`make install' will install all the files in
1557\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1558an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559for instance \`--prefix=\$HOME'.
1560
1561For better control, use the options below.
1562
1563Fine tuning of the installation directories:
8934764e
BB
1564 --bindir=DIR user executables [EPREFIX/bin]
1565 --sbindir=DIR system admin executables [EPREFIX/sbin]
1566 --libexecdir=DIR program executables [EPREFIX/libexec]
1567 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1568 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1569 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1570 --libdir=DIR object code libraries [EPREFIX/lib]
1571 --includedir=DIR C header files [PREFIX/include]
1572 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1573 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1574 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1575 --infodir=DIR info documentation [DATAROOTDIR/info]
1576 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1577 --mandir=DIR man documentation [DATAROOTDIR/man]
1578 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1579 --htmldir=DIR html documentation [DOCDIR]
1580 --dvidir=DIR dvi documentation [DOCDIR]
1581 --pdfdir=DIR pdf documentation [DOCDIR]
1582 --psdir=DIR ps documentation [DOCDIR]
bf9f3bac 1583_ACEOF
1584
1585 cat <<\_ACEOF
1586
1587Program names:
1588 --program-prefix=PREFIX prepend PREFIX to installed program names
1589 --program-suffix=SUFFIX append SUFFIX to installed program names
1590 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1591
1592System types:
1593 --build=BUILD configure for building on BUILD [guessed]
1594 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1595 --target=TARGET configure for building compilers for TARGET [HOST]
1596_ACEOF
1597fi
1598
1599if test -n "$ac_init_help"; then
1600
1601 cat <<\_ACEOF
1602
1603Optional Features:
8934764e 1604 --disable-option-checking ignore unrecognized --enable/--with options
bf9f3bac 1605 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1606 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1607 --enable-maintainer-mode enable make rules and dependencies not useful
1608 (and sometimes confusing) to the casual installer
8934764e
BB
1609 --enable-silent-rules less verbose build output (undo: `make V=1')
1610 --disable-silent-rules verbose build output (undo: `make V=0')
bf9f3bac 1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
8934764e
BB
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-static[=PKGS] build static libraries [default=yes]
bf9f3bac 1615 --enable-fast-install[=PKGS]
1616 optimize for fast installation [default=yes]
1617 --disable-libtool-lock avoid locking (might break parallel builds)
055ffd98 1618 --enable-debug Enable generic debug support [default=no]
4b2220f0 1619 --enable-debug-log Enable basic debug logging [default=yes]
055ffd98
BB
1620 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1621 --enable-debug-kmem-tracking
1622 Enable detailed kmem tracking [default=no]
5e9b5d83 1623 --enable-atomic-spinlocks
d04c8a56 1624 Atomic types use spinlocks [default=check]
bf9f3bac 1625
1626Optional Packages:
1627 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1628 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bf9f3bac 1629 --with-pic try to use only PIC/non-PIC objects [default=use
1630 both]
8934764e 1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
c1541dfe 1632 --with-config=CONFIG Config file 'kernel|user|all|srpm'
bf9f3bac 1633 --with-linux=PATH Path to kernel source
1634 --with-linux-obj=PATH Path to kernel build objects
1635
1636Some influential environment variables:
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
8934764e
BB
1641 LIBS libraries to pass to the linker, e.g. -l<library>
1642 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1643 you have headers in a nonstandard directory <include dir>
bf9f3bac 1644 CPP C preprocessor
bf9f3bac 1645
1646Use these variables to override the choices made by `configure' or to help
1647it to find libraries and programs with nonstandard names/locations.
1648
1649_ACEOF
8934764e 1650ac_status=$?
bf9f3bac 1651fi
1652
1653if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
bf9f3bac 1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8934764e
BB
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 continue
bf9f3bac 1659 ac_builddir=.
1660
8934764e
BB
1661case "$ac_dir" in
1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663*)
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 esac ;;
1671esac
1672ac_abs_top_builddir=$ac_pwd
1673ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674# for backward compatibility:
1675ac_top_builddir=$ac_top_build_prefix
bf9f3bac 1676
1677case $srcdir in
8934764e 1678 .) # We are building in place.
bf9f3bac 1679 ac_srcdir=.
8934764e
BB
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
bf9f3bac 1683 ac_srcdir=$srcdir$ac_dir_suffix;
8934764e
BB
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1686 *) # Relative name.
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bf9f3bac 1690esac
8934764e
BB
1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1699 echo &&
1700 $SHELL "$ac_srcdir/configure" --help=recursive
bf9f3bac 1701 else
8934764e
BB
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 fi || ac_status=$?
1704 cd "$ac_pwd" || { ac_status=$?; break; }
bf9f3bac 1705 done
1706fi
1707
8934764e 1708test -n "$ac_init_help" && exit $ac_status
bf9f3bac 1709if $ac_init_version; then
1710 cat <<\_ACEOF
8934764e
BB
1711configure
1712generated by GNU Autoconf 2.63
bf9f3bac 1713
8934764e
BB
1714Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17152002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
bf9f3bac 1716This configure script is free software; the Free Software Foundation
1717gives unlimited permission to copy, distribute and modify it.
1718_ACEOF
8934764e 1719 exit
bf9f3bac 1720fi
8934764e 1721cat >config.log <<_ACEOF
bf9f3bac 1722This file contains any messages produced by compilers while
1723running configure, to aid debugging if configure makes a mistake.
1724
1725It was created by $as_me, which was
8934764e 1726generated by GNU Autoconf 2.63. Invocation command line was
bf9f3bac 1727
1728 $ $0 $@
1729
1730_ACEOF
8934764e 1731exec 5>>config.log
bf9f3bac 1732{
1733cat <<_ASUNAME
1734## --------- ##
1735## Platform. ##
1736## --------- ##
1737
1738hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742uname -v = `(uname -v) 2>/dev/null || echo unknown`
1743
1744/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1746
1747/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1748/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1749/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
8934764e 1750/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
bf9f3bac 1751/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1752/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1753/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1754
1755_ASUNAME
1756
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
8934764e 1762 $as_echo "PATH: $as_dir"
bf9f3bac 1763done
8934764e 1764IFS=$as_save_IFS
bf9f3bac 1765
1766} >&5
1767
1768cat >&5 <<_ACEOF
1769
1770
1771## ----------- ##
1772## Core tests. ##
1773## ----------- ##
1774
1775_ACEOF
1776
1777
1778# Keep a trace of the command line.
1779# Strip out --no-create and --no-recursion so they do not pile up.
1780# Strip out --silent because we don't want to record it for future runs.
1781# Also quote any args containing shell meta-characters.
1782# Make two passes to allow for proper duplicate-argument suppression.
1783ac_configure_args=
1784ac_configure_args0=
1785ac_configure_args1=
bf9f3bac 1786ac_must_keep_next=false
1787for ac_pass in 1 2
1788do
1789 for ac_arg
1790 do
1791 case $ac_arg in
1792 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794 | -silent | --silent | --silen | --sile | --sil)
1795 continue ;;
8934764e
BB
1796 *\'*)
1797 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 1798 esac
1799 case $ac_pass in
1800 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1801 2)
1802 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803 if test $ac_must_keep_next = true; then
1804 ac_must_keep_next=false # Got value, back to normal.
1805 else
1806 case $ac_arg in
1807 *=* | --config-cache | -C | -disable-* | --disable-* \
1808 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810 | -with-* | --with-* | -without-* | --without-* | --x)
1811 case "$ac_configure_args0 " in
1812 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1813 esac
1814 ;;
1815 -* ) ac_must_keep_next=true ;;
1816 esac
1817 fi
8934764e 1818 ac_configure_args="$ac_configure_args '$ac_arg'"
bf9f3bac 1819 ;;
1820 esac
1821 done
1822done
1823$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1825
1826# When interrupted or exit'd, cleanup temporary files, and complete
1827# config.log. We remove comments because anyway the quotes in there
1828# would cause problems or look ugly.
8934764e
BB
1829# WARNING: Use '\'' to represent an apostrophe within the trap.
1830# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bf9f3bac 1831trap 'exit_status=$?
1832 # Save into config.log some information that might help in debugging.
1833 {
1834 echo
1835
1836 cat <<\_ASBOX
1837## ---------------- ##
1838## Cache variables. ##
1839## ---------------- ##
1840_ASBOX
1841 echo
1842 # The following way of writing the cache mishandles newlines in values,
8934764e
BB
1843(
1844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845 eval ac_val=\$$ac_var
1846 case $ac_val in #(
1847 *${as_nl}*)
1848 case $ac_var in #(
1849 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1850$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1851 esac
1852 case $ac_var in #(
1853 _ | IFS | as_nl) ;; #(
1854 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1855 *) $as_unset $ac_var ;;
1856 esac ;;
1857 esac
1858 done
bf9f3bac 1859 (set) 2>&1 |
8934764e
BB
1860 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1861 *${as_nl}ac_space=\ *)
bf9f3bac 1862 sed -n \
8934764e
BB
1863 "s/'\''/'\''\\\\'\'''\''/g;
1864 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1865 ;; #(
bf9f3bac 1866 *)
8934764e 1867 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bf9f3bac 1868 ;;
8934764e
BB
1869 esac |
1870 sort
1871)
bf9f3bac 1872 echo
1873
1874 cat <<\_ASBOX
1875## ----------------- ##
1876## Output variables. ##
1877## ----------------- ##
1878_ASBOX
1879 echo
1880 for ac_var in $ac_subst_vars
1881 do
8934764e
BB
1882 eval ac_val=\$$ac_var
1883 case $ac_val in
1884 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885 esac
1886 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1887 done | sort
1888 echo
1889
1890 if test -n "$ac_subst_files"; then
1891 cat <<\_ASBOX
8934764e
BB
1892## ------------------- ##
1893## File substitutions. ##
1894## ------------------- ##
bf9f3bac 1895_ASBOX
1896 echo
1897 for ac_var in $ac_subst_files
1898 do
8934764e
BB
1899 eval ac_val=\$$ac_var
1900 case $ac_val in
1901 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 esac
1903 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1904 done | sort
1905 echo
1906 fi
1907
1908 if test -s confdefs.h; then
1909 cat <<\_ASBOX
1910## ----------- ##
1911## confdefs.h. ##
1912## ----------- ##
1913_ASBOX
1914 echo
8934764e 1915 cat confdefs.h
bf9f3bac 1916 echo
1917 fi
1918 test "$ac_signal" != 0 &&
8934764e
BB
1919 $as_echo "$as_me: caught signal $ac_signal"
1920 $as_echo "$as_me: exit $exit_status"
bf9f3bac 1921 } >&5
8934764e
BB
1922 rm -f core *.core core.conftest.* &&
1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bf9f3bac 1924 exit $exit_status
8934764e 1925' 0
bf9f3bac 1926for ac_signal in 1 2 13 15; do
1927 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1928done
1929ac_signal=0
1930
1931# confdefs.h avoids OS command line length limits that DEFS can exceed.
8934764e 1932rm -f -r conftest* confdefs.h
bf9f3bac 1933
1934# Predefined preprocessor variables.
1935
1936cat >>confdefs.h <<_ACEOF
1937#define PACKAGE_NAME "$PACKAGE_NAME"
1938_ACEOF
1939
1940
1941cat >>confdefs.h <<_ACEOF
1942#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1943_ACEOF
1944
1945
1946cat >>confdefs.h <<_ACEOF
1947#define PACKAGE_VERSION "$PACKAGE_VERSION"
1948_ACEOF
1949
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_STRING "$PACKAGE_STRING"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958_ACEOF
1959
1960
1961# Let the site file select an alternate cache file if it wants to.
8934764e
BB
1962# Prefer an explicitly selected file to automatically selected ones.
1963ac_site_file1=NONE
1964ac_site_file2=NONE
1965if test -n "$CONFIG_SITE"; then
1966 ac_site_file1=$CONFIG_SITE
1967elif test "x$prefix" != xNONE; then
1968 ac_site_file1=$prefix/share/config.site
1969 ac_site_file2=$prefix/etc/config.site
1970else
1971 ac_site_file1=$ac_default_prefix/share/config.site
1972 ac_site_file2=$ac_default_prefix/etc/config.site
1973fi
1974for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1975do
1976 test "x$ac_site_file" = xNONE && continue
bf9f3bac 1977 if test -r "$ac_site_file"; then
8934764e
BB
1978 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1979$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bf9f3bac 1980 sed 's/^/| /' "$ac_site_file" >&5
1981 . "$ac_site_file"
1982 fi
1983done
1984
1985if test -r "$cache_file"; then
1986 # Some versions of bash will fail to source /dev/null (special
1987 # files actually), so we avoid doing that.
1988 if test -f "$cache_file"; then
8934764e
BB
1989 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1990$as_echo "$as_me: loading cache $cache_file" >&6;}
bf9f3bac 1991 case $cache_file in
8934764e
BB
1992 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1993 *) . "./$cache_file";;
bf9f3bac 1994 esac
1995 fi
1996else
8934764e
BB
1997 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1998$as_echo "$as_me: creating cache $cache_file" >&6;}
bf9f3bac 1999 >$cache_file
2000fi
2001
2002# Check that the precious variables saved in the cache have kept the same
2003# value.
2004ac_cache_corrupted=false
8934764e 2005for ac_var in $ac_precious_vars; do
bf9f3bac 2006 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2007 eval ac_new_set=\$ac_env_${ac_var}_set
8934764e
BB
2008 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2009 eval ac_new_val=\$ac_env_${ac_var}_value
bf9f3bac 2010 case $ac_old_set,$ac_new_set in
2011 set,)
8934764e
BB
2012 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2013$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bf9f3bac 2014 ac_cache_corrupted=: ;;
2015 ,set)
8934764e
BB
2016 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2017$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bf9f3bac 2018 ac_cache_corrupted=: ;;
2019 ,);;
2020 *)
2021 if test "x$ac_old_val" != "x$ac_new_val"; then
8934764e
BB
2022 # differences in whitespace do not lead to failure.
2023 ac_old_val_w=`echo x $ac_old_val`
2024 ac_new_val_w=`echo x $ac_new_val`
2025 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2026 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2027$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2028 ac_cache_corrupted=:
2029 else
2030 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2031$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2032 eval $ac_var=\$ac_old_val
2033 fi
2034 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2035$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2036 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2037$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bf9f3bac 2038 fi;;
2039 esac
2040 # Pass precious variables to config.status.
2041 if test "$ac_new_set" = set; then
2042 case $ac_new_val in
8934764e 2043 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 2044 *) ac_arg=$ac_var=$ac_new_val ;;
2045 esac
2046 case " $ac_configure_args " in
2047 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2048 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2049 esac
2050 fi
2051done
2052if $ac_cache_corrupted; then
8934764e
BB
2053 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2055 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2056$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2057 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2058$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
bf9f3bac 2059 { (exit 1); exit 1; }; }
2060fi
2061
bf9f3bac 2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
8934764e
BB
2078ac_ext=c
2079ac_cpp='$CPP $CPPFLAGS'
2080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 2083
2084
0c617c9a
BB
2085ac_ext=c
2086ac_cpp='$CPP $CPPFLAGS'
2087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090
2091
8934764e
BB
2092 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2093$as_echo_n "checking metadata... " >&6; }
dd529a30 2094
2095 META="$srcdir/META"
2096 _spl_ac_meta_got_file=no
2097 if test -f "$META"; then
2098 _spl_ac_meta_got_file=yes
2099
abc3ca14 2100 SPL_META_NAME=`perl -n\
dd529a30 2101 -e "BEGIN { \\$key=shift @ARGV; }"\
2102 -e "next unless s/^\s*\\$key[:=]//i;"\
2103 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2104 -e "s/^\s+//;"\
2105 -e "s/\s+$//;"\
2106 -e "s/^(['\"])(.*)\1/\\$2/;"\
2107 -e "\\$val=\\$_;"\
2108 -e "END { print \\$val if defined \\$val; }"\
2109 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 2110 if test -n "$SPL_META_NAME"; then
dd529a30 2111
2112cat >>confdefs.h <<_ACEOF
abc3ca14 2113#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 2114_ACEOF
2115
2116
2117 fi
2118
abc3ca14 2119 SPL_META_VERSION=`perl -n\
dd529a30 2120 -e "BEGIN { \\$key=shift @ARGV; }"\
2121 -e "next unless s/^\s*\\$key[:=]//i;"\
2122 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2123 -e "s/^\s+//;"\
2124 -e "s/\s+$//;"\
2125 -e "s/^(['\"])(.*)\1/\\$2/;"\
2126 -e "\\$val=\\$_;"\
2127 -e "END { print \\$val if defined \\$val; }"\
2128 'VERSION' $META`;
abc3ca14 2129 if test -n "$SPL_META_VERSION"; then
dd529a30 2130
2131cat >>confdefs.h <<_ACEOF
abc3ca14 2132#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 2133_ACEOF
2134
2135
2136 fi
2137
abc3ca14 2138 SPL_META_RELEASE=`perl -n\
dd529a30 2139 -e "BEGIN { \\$key=shift @ARGV; }"\
2140 -e "next unless s/^\s*\\$key[:=]//i;"\
2141 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2142 -e "s/^\s+//;"\
2143 -e "s/\s+$//;"\
2144 -e "s/^(['\"])(.*)\1/\\$2/;"\
2145 -e "\\$val=\\$_;"\
2146 -e "END { print \\$val if defined \\$val; }"\
2147 'RELEASE' $META`;
abc3ca14 2148 if test -n "$SPL_META_RELEASE"; then
dd529a30 2149
2150cat >>confdefs.h <<_ACEOF
abc3ca14 2151#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 2152_ACEOF
2153
2154
2155 fi
2156
abc3ca14 2157 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 2158 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 2159 test -n "$SPL_META_RELEASE" &&
72e7de60 2160 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 2161
2162cat >>confdefs.h <<_ACEOF
72e7de60 2163#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 2164_ACEOF
2165
2166
2167 fi
2168
abc3ca14 2169 SPL_META_DATA=`perl -n\
dd529a30 2170 -e "BEGIN { \\$key=shift @ARGV; }"\
2171 -e "next unless s/^\s*\\$key[:=]//i;"\
2172 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2173 -e "s/^\s+//;"\
2174 -e "s/\s+$//;"\
2175 -e "s/^(['\"])(.*)\1/\\$2/;"\
2176 -e "\\$val=\\$_;"\
2177 -e "END { print \\$val if defined \\$val; }"\
2178 'DATE' $META`;
abc3ca14 2179 if test -n "$SPL_META_DATA"; then
dd529a30 2180
2181cat >>confdefs.h <<_ACEOF
abc3ca14 2182#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 2183_ACEOF
2184
2185
2186 fi
2187
abc3ca14 2188 SPL_META_AUTHOR=`perl -n\
dd529a30 2189 -e "BEGIN { \\$key=shift @ARGV; }"\
2190 -e "next unless s/^\s*\\$key[:=]//i;"\
2191 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2192 -e "s/^\s+//;"\
2193 -e "s/\s+$//;"\
2194 -e "s/^(['\"])(.*)\1/\\$2/;"\
2195 -e "\\$val=\\$_;"\
2196 -e "END { print \\$val if defined \\$val; }"\
2197 'AUTHOR' $META`;
abc3ca14 2198 if test -n "$SPL_META_AUTHOR"; then
dd529a30 2199
2200cat >>confdefs.h <<_ACEOF
abc3ca14 2201#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 2202_ACEOF
2203
2204
2205 fi
2206
2207
abc3ca14 2208 SPL_META_LT_CURRENT=`perl -n\
dd529a30 2209 -e "BEGIN { \\$key=shift @ARGV; }"\
2210 -e "next unless s/^\s*\\$key[:=]//i;"\
2211 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2212 -e "s/^\s+//;"\
2213 -e "s/\s+$//;"\
2214 -e "s/^(['\"])(.*)\1/\\$2/;"\
2215 -e "\\$val=\\$_;"\
2216 -e "END { print \\$val if defined \\$val; }"\
2217 'LT_CURRENT' $META`;
abc3ca14 2218 SPL_META_LT_REVISION=`perl -n\
dd529a30 2219 -e "BEGIN { \\$key=shift @ARGV; }"\
2220 -e "next unless s/^\s*\\$key[:=]//i;"\
2221 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2222 -e "s/^\s+//;"\
2223 -e "s/\s+$//;"\
2224 -e "s/^(['\"])(.*)\1/\\$2/;"\
2225 -e "\\$val=\\$_;"\
2226 -e "END { print \\$val if defined \\$val; }"\
2227 'LT_REVISION' $META`;
abc3ca14 2228 SPL_META_LT_AGE=`perl -n\
dd529a30 2229 -e "BEGIN { \\$key=shift @ARGV; }"\
2230 -e "next unless s/^\s*\\$key[:=]//i;"\
2231 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2232 -e "s/^\s+//;"\
2233 -e "s/\s+$//;"\
2234 -e "s/^(['\"])(.*)\1/\\$2/;"\
2235 -e "\\$val=\\$_;"\
2236 -e "END { print \\$val if defined \\$val; }"\
2237 'LT_AGE' $META`;
abc3ca14
BB
2238 if test -n "$SPL_META_LT_CURRENT" \
2239 -o -n "$SPL_META_LT_REVISION" \
2240 -o -n "$SPL_META_LT_AGE"; then
2241 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2242 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2243 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 2244
2245cat >>confdefs.h <<_ACEOF
abc3ca14 2246#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 2247_ACEOF
2248
2249
2250cat >>confdefs.h <<_ACEOF
abc3ca14 2251#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 2252_ACEOF
2253
2254
2255cat >>confdefs.h <<_ACEOF
abc3ca14 2256#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 2257_ACEOF
2258
2259
2260
2261
2262 fi
2263 fi
2264
8934764e
BB
2265 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2266$as_echo "$_spl_ac_meta_got_file" >&6; }
dd529a30 2267
2268
bf9f3bac 2269ac_aux_dir=
8934764e
BB
2270for ac_dir in config "$srcdir"/config; do
2271 if test -f "$ac_dir/install-sh"; then
bf9f3bac 2272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/install-sh -c"
2274 break
8934764e 2275 elif test -f "$ac_dir/install.sh"; then
bf9f3bac 2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install.sh -c"
2278 break
8934764e 2279 elif test -f "$ac_dir/shtool"; then
bf9f3bac 2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/shtool install -c"
2282 break
2283 fi
2284done
2285if test -z "$ac_aux_dir"; then
8934764e
BB
2286 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2287$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
bf9f3bac 2288 { (exit 1); exit 1; }; }
2289fi
8934764e
BB
2290
2291# These three variables are undocumented and unsupported,
2292# and are intended to be withdrawn in a future Autoconf release.
2293# They can cause serious problems if a builder's source tree is in a directory
2294# whose full name contains unusual characters.
2295ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2296ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2297ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2298
bf9f3bac 2299
2300# Make sure we can run config.sub.
8934764e
BB
2301$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2302 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2303$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
bf9f3bac 2304 { (exit 1); exit 1; }; }
2305
8934764e
BB
2306{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2307$as_echo_n "checking build system type... " >&6; }
bf9f3bac 2308if test "${ac_cv_build+set}" = set; then
8934764e
BB
2309 $as_echo_n "(cached) " >&6
2310else
2311 ac_build_alias=$build_alias
2312test "x$ac_build_alias" = x &&
2313 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2314test "x$ac_build_alias" = x &&
2315 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2316$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
bf9f3bac 2317 { (exit 1); exit 1; }; }
8934764e
BB
2318ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2320$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
bf9f3bac 2321 { (exit 1); exit 1; }; }
2322
2323fi
8934764e
BB
2324{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2325$as_echo "$ac_cv_build" >&6; }
2326case $ac_cv_build in
2327*-*-*) ;;
2328*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2329$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2330 { (exit 1); exit 1; }; };;
2331esac
bf9f3bac 2332build=$ac_cv_build
8934764e
BB
2333ac_save_IFS=$IFS; IFS='-'
2334set x $ac_cv_build
2335shift
2336build_cpu=$1
2337build_vendor=$2
2338shift; shift
2339# Remember, the first character of IFS is used to create $*,
2340# except with old shells:
2341build_os=$*
2342IFS=$ac_save_IFS
2343case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2344
2345
2346{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2347$as_echo_n "checking host system type... " >&6; }
bf9f3bac 2348if test "${ac_cv_host+set}" = set; then
8934764e
BB
2349 $as_echo_n "(cached) " >&6
2350else
2351 if test "x$host_alias" = x; then
2352 ac_cv_host=$ac_cv_build
2353else
2354 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2355 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2356$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
bf9f3bac 2357 { (exit 1); exit 1; }; }
8934764e 2358fi
bf9f3bac 2359
2360fi
8934764e
BB
2361{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2362$as_echo "$ac_cv_host" >&6; }
2363case $ac_cv_host in
2364*-*-*) ;;
2365*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2366$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2367 { (exit 1); exit 1; }; };;
2368esac
bf9f3bac 2369host=$ac_cv_host
8934764e
BB
2370ac_save_IFS=$IFS; IFS='-'
2371set x $ac_cv_host
2372shift
2373host_cpu=$1
2374host_vendor=$2
2375shift; shift
2376# Remember, the first character of IFS is used to create $*,
2377# except with old shells:
2378host_os=$*
2379IFS=$ac_save_IFS
2380case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2381
2382
2383{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2384$as_echo_n "checking target system type... " >&6; }
bf9f3bac 2385if test "${ac_cv_target+set}" = set; then
8934764e
BB
2386 $as_echo_n "(cached) " >&6
2387else
2388 if test "x$target_alias" = x; then
2389 ac_cv_target=$ac_cv_host
2390else
2391 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2392 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2393$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
bf9f3bac 2394 { (exit 1); exit 1; }; }
8934764e 2395fi
bf9f3bac 2396
2397fi
8934764e
BB
2398{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2399$as_echo "$ac_cv_target" >&6; }
2400case $ac_cv_target in
2401*-*-*) ;;
2402*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2403$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2404 { (exit 1); exit 1; }; };;
2405esac
bf9f3bac 2406target=$ac_cv_target
8934764e
BB
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_target
2409shift
2410target_cpu=$1
2411target_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415target_os=$*
2416IFS=$ac_save_IFS
2417case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
bf9f3bac 2418
2419
2420# The aliases save the names the user supplied, while $host etc.
2421# will get canonicalized.
2422test -n "$target_alias" &&
2423 test "$program_prefix$program_suffix$program_transform_name" = \
2424 NONENONEs,x,x, &&
2425 program_prefix=${target_alias}-
8934764e
BB
2426
2427{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2428$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2429 # Check whether --enable-maintainer-mode was given.
16b719f0 2430if test "${enable_maintainer_mode+set}" = set; then
8934764e 2431 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16b719f0
BB
2432else
2433 USE_MAINTAINER_MODE=no
8934764e 2434fi
16b719f0 2435
8934764e
BB
2436 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2437$as_echo "$USE_MAINTAINER_MODE" >&6; }
2438 if test $USE_MAINTAINER_MODE = yes; then
16b719f0
BB
2439 MAINTAINER_MODE_TRUE=
2440 MAINTAINER_MODE_FALSE='#'
2441else
2442 MAINTAINER_MODE_TRUE='#'
2443 MAINTAINER_MODE_FALSE=
2444fi
2445
2446 MAINT=$MAINTAINER_MODE_TRUE
2447
2448
8934764e
BB
2449# Check whether --enable-silent-rules was given.
2450if test "${enable_silent_rules+set}" = set; then
2451 enableval=$enable_silent_rules;
2452fi
2453
2454case $enable_silent_rules in
2455yes) AM_DEFAULT_VERBOSITY=0;;
2456no) AM_DEFAULT_VERBOSITY=1;;
2457*) AM_DEFAULT_VERBOSITY=1;;
2458esac
2459AM_BACKSLASH='\'
2460
2461am__api_version='1.11'
2462
bf9f3bac 2463# Find a good install program. We prefer a C program (faster),
2464# so one script is as good as another. But avoid the broken or
2465# incompatible versions:
2466# SysV /etc/install, /usr/sbin/install
2467# SunOS /usr/etc/install
2468# IRIX /sbin/install
2469# AIX /bin/install
2470# AmigaOS /C/install, which installs bootblocks on floppy discs
2471# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2472# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2473# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2474# OS/2's system install, which has a completely different semantic
2475# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2476# Reject install programs that cannot install multiple files.
2477{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2478$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2479if test -z "$INSTALL"; then
2480if test "${ac_cv_path_install+set}" = set; then
8934764e 2481 $as_echo_n "(cached) " >&6
bf9f3bac 2482else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 # Account for people who put trailing slashes in PATH elements.
2489case $as_dir/ in
2490 ./ | .// | /cC/* | \
2491 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2492 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2493 /usr/ucb/* ) ;;
2494 *)
2495 # OSF1 and SCO ODT 3.0 have their own names for install.
2496 # Don't use installbsd from OSF since it installs stuff as root
2497 # by default.
2498 for ac_prog in ginstall scoinst install; do
2499 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2500 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2501 if test $ac_prog = install &&
2502 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2503 # AIX install. It has an incompatible calling convention.
2504 :
2505 elif test $ac_prog = install &&
2506 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # program-specific install script used by HP pwplus--don't use.
2508 :
2509 else
8934764e
BB
2510 rm -rf conftest.one conftest.two conftest.dir
2511 echo one > conftest.one
2512 echo two > conftest.two
2513 mkdir conftest.dir
2514 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2515 test -s conftest.one && test -s conftest.two &&
2516 test -s conftest.dir/conftest.one &&
2517 test -s conftest.dir/conftest.two
2518 then
2519 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2520 break 3
2521 fi
bf9f3bac 2522 fi
2523 fi
2524 done
2525 done
2526 ;;
2527esac
8934764e 2528
bf9f3bac 2529done
8934764e 2530IFS=$as_save_IFS
bf9f3bac 2531
8934764e 2532rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 2533
2534fi
2535 if test "${ac_cv_path_install+set}" = set; then
2536 INSTALL=$ac_cv_path_install
2537 else
8934764e
BB
2538 # As a last resort, use the slow shell script. Don't cache a
2539 # value for INSTALL within a source directory, because that will
bf9f3bac 2540 # break other packages using the cache if that directory is
8934764e 2541 # removed, or if the value is a relative name.
bf9f3bac 2542 INSTALL=$ac_install_sh
2543 fi
2544fi
8934764e
BB
2545{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2546$as_echo "$INSTALL" >&6; }
bf9f3bac 2547
2548# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2549# It thinks the first close brace ends the variable substitution.
2550test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2551
2552test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2553
2554test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2555
8934764e
BB
2556{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2557$as_echo_n "checking whether build environment is sane... " >&6; }
bf9f3bac 2558# Just in case
2559sleep 1
2560echo timestamp > conftest.file
8934764e
BB
2561# Reject unsafe characters in $srcdir or the absolute working directory
2562# name. Accept space and tab only in the latter.
2563am_lf='
2564'
2565case `pwd` in
2566 *[\\\"\#\$\&\'\`$am_lf]*)
2567 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2568$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2569 { (exit 1); exit 1; }; };;
2570esac
2571case $srcdir in
2572 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2573 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2574$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2575 { (exit 1); exit 1; }; };;
2576esac
2577
bf9f3bac 2578# Do `set' in a subshell so we don't clobber the current shell's
2579# arguments. Must try -L first in case configure is actually a
2580# symlink; some systems play weird games with the mod time of symlinks
2581# (eg FreeBSD returns the mod time of the symlink's containing
2582# directory).
2583if (
8934764e 2584 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
bf9f3bac 2585 if test "$*" = "X"; then
2586 # -L didn't work.
8934764e 2587 set X `ls -t "$srcdir/configure" conftest.file`
bf9f3bac 2588 fi
2589 rm -f conftest.file
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2592
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
8934764e 2597 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2598alias in your environment" >&5
8934764e 2599$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2600alias in your environment" >&2;}
2601 { (exit 1); exit 1; }; }
2602 fi
2603
2604 test "$2" = conftest.file
2605 )
2606then
2607 # Ok.
2608 :
2609else
8934764e 2610 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
bf9f3bac 2611Check your system clock" >&5
8934764e 2612$as_echo "$as_me: error: newly created file is older than distributed files!
bf9f3bac 2613Check your system clock" >&2;}
2614 { (exit 1); exit 1; }; }
2615fi
8934764e
BB
2616{ $as_echo "$as_me:$LINENO: result: yes" >&5
2617$as_echo "yes" >&6; }
bf9f3bac 2618test "$program_prefix" != NONE &&
8934764e 2619 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bf9f3bac 2620# Use a double $ so make ignores it.
2621test "$program_suffix" != NONE &&
8934764e
BB
2622 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2623# Double any \ or $.
bf9f3bac 2624# By default was `s,x,x', remove it if useless.
8934764e
BB
2625ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2626program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bf9f3bac 2627
2628# expand $ac_aux_dir to an absolute path
2629am_aux_dir=`cd $ac_aux_dir && pwd`
2630
8934764e
BB
2631if test x"${MISSING+set}" != xset; then
2632 case $am_aux_dir in
2633 *\ * | *\ *)
2634 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2635 *)
2636 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2637 esac
2638fi
bf9f3bac 2639# Use eval to expand $SHELL
2640if eval "$MISSING --run true"; then
2641 am_missing_run="$MISSING --run "
2642else
2643 am_missing_run=
8934764e
BB
2644 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2645$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2646fi
2647
2648if test x"${install_sh}" != xset; then
2649 case $am_aux_dir in
2650 *\ * | *\ *)
2651 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2652 *)
2653 install_sh="\${SHELL} $am_aux_dir/install-sh"
2654 esac
2655fi
2656
2657# Installed binaries are usually stripped using `strip' when the user
2658# run `make install-strip'. However `strip' might not be the right
2659# tool to use in cross-compilation environments, therefore Automake
2660# will honor the `STRIP' environment variable to overrule this program.
2661if test "$cross_compiling" != no; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2664set dummy ${ac_tool_prefix}strip; ac_word=$2
2665{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
2667if test "${ac_cv_prog_STRIP+set}" = set; then
2668 $as_echo_n "(cached) " >&6
2669else
2670 if test -n "$STRIP"; then
2671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2681 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685done
2686IFS=$as_save_IFS
2687
2688fi
2689fi
2690STRIP=$ac_cv_prog_STRIP
2691if test -n "$STRIP"; then
2692 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2693$as_echo "$STRIP" >&6; }
2694else
2695 { $as_echo "$as_me:$LINENO: result: no" >&5
2696$as_echo "no" >&6; }
2697fi
2698
2699
2700fi
2701if test -z "$ac_cv_prog_STRIP"; then
2702 ac_ct_STRIP=$STRIP
2703 # Extract the first word of "strip", so it can be a program name with args.
2704set dummy strip; ac_word=$2
2705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
2707if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2708 $as_echo_n "(cached) " >&6
2709else
2710 if test -n "$ac_ct_STRIP"; then
2711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_STRIP="strip"
2721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724done
2725done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2731if test -n "$ac_ct_STRIP"; then
2732 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2733$as_echo "$ac_ct_STRIP" >&6; }
2734else
2735 { $as_echo "$as_me:$LINENO: result: no" >&5
2736$as_echo "no" >&6; }
2737fi
2738
2739 if test "x$ac_ct_STRIP" = x; then
2740 STRIP=":"
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743yes:)
2744{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746ac_tool_warned=yes ;;
2747esac
2748 STRIP=$ac_ct_STRIP
2749 fi
2750else
2751 STRIP="$ac_cv_prog_STRIP"
2752fi
2753
2754fi
2755INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2756
2757{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2758$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2759if test -z "$MKDIR_P"; then
2760 if test "${ac_cv_path_mkdir+set}" = set; then
2761 $as_echo_n "(cached) " >&6
2762else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_prog in mkdir gmkdir; do
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2771 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2772 'mkdir (GNU coreutils) '* | \
2773 'mkdir (coreutils) '* | \
2774 'mkdir (fileutils) '4.1*)
2775 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2776 break 3;;
2777 esac
2778 done
2779 done
2780done
2781IFS=$as_save_IFS
2782
2783fi
2784
2785 if test "${ac_cv_path_mkdir+set}" = set; then
2786 MKDIR_P="$ac_cv_path_mkdir -p"
bf9f3bac 2787 else
8934764e
BB
2788 # As a last resort, use the slow shell script. Don't cache a
2789 # value for MKDIR_P within a source directory, because that will
2790 # break other packages using the cache if that directory is
2791 # removed, or if the value is a relative name.
2792 test -d ./--version && rmdir ./--version
2793 MKDIR_P="$ac_install_sh -d"
bf9f3bac 2794 fi
2795fi
8934764e
BB
2796{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2797$as_echo "$MKDIR_P" >&6; }
2798
2799mkdir_p="$MKDIR_P"
2800case $mkdir_p in
2801 [\\/$]* | ?:[\\/]*) ;;
2802 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2803esac
bf9f3bac 2804
2805for ac_prog in gawk mawk nawk awk
2806do
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808set dummy $ac_prog; ac_word=$2
8934764e
BB
2809{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 2811if test "${ac_cv_prog_AWK+set}" = set; then
8934764e 2812 $as_echo_n "(cached) " >&6
bf9f3bac 2813else
2814 if test -n "$AWK"; then
2815 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2816else
2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 2824 ac_cv_prog_AWK="$ac_prog"
8934764e 2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 2826 break 2
2827 fi
2828done
2829done
8934764e 2830IFS=$as_save_IFS
bf9f3bac 2831
2832fi
2833fi
2834AWK=$ac_cv_prog_AWK
2835if test -n "$AWK"; then
8934764e
BB
2836 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2837$as_echo "$AWK" >&6; }
bf9f3bac 2838else
8934764e
BB
2839 { $as_echo "$as_me:$LINENO: result: no" >&5
2840$as_echo "no" >&6; }
bf9f3bac 2841fi
2842
8934764e 2843
bf9f3bac 2844 test -n "$AWK" && break
2845done
2846
8934764e
BB
2847{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2848$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2849set x ${MAKE-make}
2850ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2851if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2852 $as_echo_n "(cached) " >&6
bf9f3bac 2853else
2854 cat >conftest.make <<\_ACEOF
8934764e 2855SHELL = /bin/sh
bf9f3bac 2856all:
8934764e 2857 @echo '@@@%%%=$(MAKE)=@@@%%%'
bf9f3bac 2858_ACEOF
2859# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8934764e
BB
2860case `${MAKE-make} -f conftest.make 2>/dev/null` in
2861 *@@@%%%=?*=@@@%%%*)
2862 eval ac_cv_prog_make_${ac_make}_set=yes;;
2863 *)
2864 eval ac_cv_prog_make_${ac_make}_set=no;;
2865esac
bf9f3bac 2866rm -f conftest.make
2867fi
8934764e
BB
2868if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2869 { $as_echo "$as_me:$LINENO: result: yes" >&5
2870$as_echo "yes" >&6; }
bf9f3bac 2871 SET_MAKE=
2872else
8934764e
BB
2873 { $as_echo "$as_me:$LINENO: result: no" >&5
2874$as_echo "no" >&6; }
bf9f3bac 2875 SET_MAKE="MAKE=${MAKE-make}"
2876fi
2877
2878rm -rf .tst 2>/dev/null
2879mkdir .tst 2>/dev/null
2880if test -d .tst; then
2881 am__leading_dot=.
2882else
2883 am__leading_dot=_
2884fi
2885rmdir .tst 2>/dev/null
2886
8934764e
BB
2887if test "`cd $srcdir && pwd`" != "`pwd`"; then
2888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2889 # is not polluted with repeated "-I."
2890 am__isrc=' -I$(srcdir)'
2891 # test to see if srcdir already configured
2892 if test -f $srcdir/config.status; then
2893 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2894$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
bf9f3bac 2895 { (exit 1); exit 1; }; }
8934764e 2896 fi
bf9f3bac 2897fi
2898
2899# test whether we have cygpath
2900if test -z "$CYGPATH_W"; then
2901 if (cygpath --version) >/dev/null 2>/dev/null; then
2902 CYGPATH_W='cygpath -w'
2903 else
2904 CYGPATH_W=echo
2905 fi
2906fi
2907
2908
2909# Define the identity of the package.
abc3ca14
BB
2910 PACKAGE=$SPL_META_NAME
2911 VERSION=$SPL_META_VERSION
bf9f3bac 2912
2913
2914cat >>confdefs.h <<_ACEOF
2915#define PACKAGE "$PACKAGE"
2916_ACEOF
2917
2918
2919cat >>confdefs.h <<_ACEOF
2920#define VERSION "$VERSION"
2921_ACEOF
2922
2923# Some tools Automake needs.
2924
2925ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926
2927
2928AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929
2930
2931AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932
2933
2934AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935
2936
2937MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2938
bf9f3bac 2939# We need awk for the "check" target. The system "awk" is bad on
2940# some platforms.
2941# Always define AMTAR for backward compatibility.
2942
2943AMTAR=${AMTAR-"${am_missing_run}tar"}
2944
2945am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2946
2947
2948
2949
2950
8934764e 2951ac_config_headers="$ac_config_headers spl_config.h"
bf9f3bac 2952
0cbaeb11 2953
bf9f3bac 2954# Find a good install program. We prefer a C program (faster),
2955# so one script is as good as another. But avoid the broken or
2956# incompatible versions:
2957# SysV /etc/install, /usr/sbin/install
2958# SunOS /usr/etc/install
2959# IRIX /sbin/install
2960# AIX /bin/install
2961# AmigaOS /C/install, which installs bootblocks on floppy discs
2962# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2963# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2964# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2965# OS/2's system install, which has a completely different semantic
2966# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2967# Reject install programs that cannot install multiple files.
2968{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2970if test -z "$INSTALL"; then
2971if test "${ac_cv_path_install+set}" = set; then
8934764e 2972 $as_echo_n "(cached) " >&6
bf9f3bac 2973else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
2979 # Account for people who put trailing slashes in PATH elements.
2980case $as_dir/ in
2981 ./ | .// | /cC/* | \
2982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 /usr/ucb/* ) ;;
2985 *)
2986 # OSF1 and SCO ODT 3.0 have their own names for install.
2987 # Don't use installbsd from OSF since it installs stuff as root
2988 # by default.
2989 for ac_prog in ginstall scoinst install; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2991 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2992 if test $ac_prog = install &&
2993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994 # AIX install. It has an incompatible calling convention.
2995 :
2996 elif test $ac_prog = install &&
2997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # program-specific install script used by HP pwplus--don't use.
2999 :
3000 else
8934764e
BB
3001 rm -rf conftest.one conftest.two conftest.dir
3002 echo one > conftest.one
3003 echo two > conftest.two
3004 mkdir conftest.dir
3005 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3006 test -s conftest.one && test -s conftest.two &&
3007 test -s conftest.dir/conftest.one &&
3008 test -s conftest.dir/conftest.two
3009 then
3010 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3011 break 3
3012 fi
bf9f3bac 3013 fi
3014 fi
3015 done
3016 done
3017 ;;
3018esac
8934764e 3019
bf9f3bac 3020done
8934764e 3021IFS=$as_save_IFS
bf9f3bac 3022
8934764e 3023rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 3024
3025fi
3026 if test "${ac_cv_path_install+set}" = set; then
3027 INSTALL=$ac_cv_path_install
3028 else
8934764e
BB
3029 # As a last resort, use the slow shell script. Don't cache a
3030 # value for INSTALL within a source directory, because that will
bf9f3bac 3031 # break other packages using the cache if that directory is
8934764e 3032 # removed, or if the value is a relative name.
bf9f3bac 3033 INSTALL=$ac_install_sh
3034 fi
3035fi
8934764e
BB
3036{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3037$as_echo "$INSTALL" >&6; }
bf9f3bac 3038
3039# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3040# It thinks the first close brace ends the variable substitution.
3041test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3042
3043test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3044
3045test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3046
3047ac_ext=c
3048ac_cpp='$CPP $CPPFLAGS'
3049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3054set dummy ${ac_tool_prefix}gcc; ac_word=$2
8934764e
BB
3055{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3057if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3058 $as_echo_n "(cached) " >&6
bf9f3bac 3059else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8934764e 3071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3072 break 2
3073 fi
3074done
3075done
8934764e 3076IFS=$as_save_IFS
bf9f3bac 3077
3078fi
3079fi
3080CC=$ac_cv_prog_CC
3081if test -n "$CC"; then
8934764e
BB
3082 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3083$as_echo "$CC" >&6; }
bf9f3bac 3084else
8934764e
BB
3085 { $as_echo "$as_me:$LINENO: result: no" >&5
3086$as_echo "no" >&6; }
bf9f3bac 3087fi
3088
8934764e 3089
bf9f3bac 3090fi
3091if test -z "$ac_cv_prog_CC"; then
3092 ac_ct_CC=$CC
3093 # Extract the first word of "gcc", so it can be a program name with args.
3094set dummy gcc; ac_word=$2
8934764e
BB
3095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3097if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3098 $as_echo_n "(cached) " >&6
bf9f3bac 3099else
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3110 ac_cv_prog_ac_ct_CC="gcc"
8934764e 3111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3112 break 2
3113 fi
3114done
3115done
8934764e 3116IFS=$as_save_IFS
bf9f3bac 3117
3118fi
3119fi
3120ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121if test -n "$ac_ct_CC"; then
8934764e
BB
3122 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3123$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3124else
8934764e
BB
3125 { $as_echo "$as_me:$LINENO: result: no" >&5
3126$as_echo "no" >&6; }
bf9f3bac 3127fi
3128
8934764e
BB
3129 if test "x$ac_ct_CC" = x; then
3130 CC=""
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133yes:)
3134{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136ac_tool_warned=yes ;;
3137esac
3138 CC=$ac_ct_CC
3139 fi
bf9f3bac 3140else
3141 CC="$ac_cv_prog_CC"
3142fi
3143
3144if test -z "$CC"; then
8934764e
BB
3145 if test -n "$ac_tool_prefix"; then
3146 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bf9f3bac 3147set dummy ${ac_tool_prefix}cc; ac_word=$2
8934764e
BB
3148{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3150if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3151 $as_echo_n "(cached) " >&6
bf9f3bac 3152else
3153 if test -n "$CC"; then
3154 ac_cv_prog_CC="$CC" # Let the user override the test.
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
3161 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3163 ac_cv_prog_CC="${ac_tool_prefix}cc"
8934764e 3164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3165 break 2
3166 fi
3167done
3168done
8934764e 3169IFS=$as_save_IFS
bf9f3bac 3170
3171fi
3172fi
3173CC=$ac_cv_prog_CC
3174if test -n "$CC"; then
8934764e
BB
3175 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3176$as_echo "$CC" >&6; }
bf9f3bac 3177else
8934764e
BB
3178 { $as_echo "$as_me:$LINENO: result: no" >&5
3179$as_echo "no" >&6; }
bf9f3bac 3180fi
3181
bf9f3bac 3182
8934764e 3183 fi
bf9f3bac 3184fi
3185if test -z "$CC"; then
3186 # Extract the first word of "cc", so it can be a program name with args.
3187set dummy cc; ac_word=$2
8934764e
BB
3188{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3190if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3191 $as_echo_n "(cached) " >&6
bf9f3bac 3192else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195else
3196 ac_prog_rejected=no
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3204 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3205 ac_prog_rejected=yes
3206 continue
3207 fi
3208 ac_cv_prog_CC="cc"
8934764e 3209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3210 break 2
3211 fi
3212done
3213done
8934764e 3214IFS=$as_save_IFS
bf9f3bac 3215
3216if test $ac_prog_rejected = yes; then
3217 # We found a bogon in the path, so make sure we never use it.
3218 set dummy $ac_cv_prog_CC
3219 shift
3220 if test $# != 0; then
3221 # We chose a different compiler from the bogus one.
3222 # However, it has the same basename, so the bogon will be chosen
3223 # first if we set CC to just the basename; use the full file name.
3224 shift
3225 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3226 fi
3227fi
3228fi
3229fi
3230CC=$ac_cv_prog_CC
3231if test -n "$CC"; then
8934764e
BB
3232 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3233$as_echo "$CC" >&6; }
bf9f3bac 3234else
8934764e
BB
3235 { $as_echo "$as_me:$LINENO: result: no" >&5
3236$as_echo "no" >&6; }
bf9f3bac 3237fi
3238
8934764e 3239
bf9f3bac 3240fi
3241if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
8934764e 3243 for ac_prog in cl.exe
bf9f3bac 3244 do
3245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3246set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8934764e
BB
3247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3249if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3250 $as_echo_n "(cached) " >&6
bf9f3bac 3251else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3262 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8934764e 3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3264 break 2
3265 fi
3266done
3267done
8934764e 3268IFS=$as_save_IFS
bf9f3bac 3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
8934764e
BB
3274 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3275$as_echo "$CC" >&6; }
bf9f3bac 3276else
8934764e
BB
3277 { $as_echo "$as_me:$LINENO: result: no" >&5
3278$as_echo "no" >&6; }
bf9f3bac 3279fi
3280
8934764e 3281
bf9f3bac 3282 test -n "$CC" && break
3283 done
3284fi
3285if test -z "$CC"; then
3286 ac_ct_CC=$CC
8934764e 3287 for ac_prog in cl.exe
bf9f3bac 3288do
3289 # Extract the first word of "$ac_prog", so it can be a program name with args.
3290set dummy $ac_prog; ac_word=$2
8934764e
BB
3291{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3292$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3293if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3294 $as_echo_n "(cached) " >&6
bf9f3bac 3295else
3296 if test -n "$ac_ct_CC"; then
3297 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3298else
3299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300for as_dir in $PATH
3301do
3302 IFS=$as_save_IFS
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3306 ac_cv_prog_ac_ct_CC="$ac_prog"
8934764e 3307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3308 break 2
3309 fi
3310done
3311done
8934764e 3312IFS=$as_save_IFS
bf9f3bac 3313
3314fi
3315fi
3316ac_ct_CC=$ac_cv_prog_ac_ct_CC
3317if test -n "$ac_ct_CC"; then
8934764e
BB
3318 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3319$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3320else
8934764e
BB
3321 { $as_echo "$as_me:$LINENO: result: no" >&5
3322$as_echo "no" >&6; }
bf9f3bac 3323fi
3324
8934764e 3325
bf9f3bac 3326 test -n "$ac_ct_CC" && break
3327done
3328
8934764e
BB
3329 if test "x$ac_ct_CC" = x; then
3330 CC=""
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333yes:)
3334{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3336ac_tool_warned=yes ;;
3337esac
3338 CC=$ac_ct_CC
3339 fi
bf9f3bac 3340fi
3341
3342fi
3343
3344
8934764e
BB
3345test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bf9f3bac 3348See \`config.log' for more details." >&5
8934764e 3349$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
bf9f3bac 3350See \`config.log' for more details." >&2;}
8934764e 3351 { (exit 1); exit 1; }; }; }
bf9f3bac 3352
3353# Provide some information about the compiler.
8934764e
BB
3354$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3355set X $ac_compile
3356ac_compiler=$2
3357{ (ac_try="$ac_compiler --version >&5"
3358case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363$as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler --version >&5") 2>&5
bf9f3bac 3365 ac_status=$?
8934764e 3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3367 (exit $ac_status); }
8934764e
BB
3368{ (ac_try="$ac_compiler -v >&5"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374$as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compiler -v >&5") 2>&5
bf9f3bac 3376 ac_status=$?
8934764e 3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3378 (exit $ac_status); }
8934764e
BB
3379{ (ac_try="$ac_compiler -V >&5"
3380case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3385$as_echo "$ac_try_echo") >&5
3386 (eval "$ac_compiler -V >&5") 2>&5
bf9f3bac 3387 ac_status=$?
8934764e 3388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3389 (exit $ac_status); }
3390
3391cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397
3398int
3399main ()
3400{
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
3406ac_clean_files_save=$ac_clean_files
8934764e 3407ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
bf9f3bac 3408# Try to create an executable without -o first, disregard a.out.
3409# It will help us diagnose broken compilers, and finding out an intuition
3410# of exeext.
8934764e
BB
3411{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3412$as_echo_n "checking for C compiler default output file name... " >&6; }
3413ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3414
3415# The possible output files:
3416ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3417
3418ac_rmfiles=
3419for ac_file in $ac_files
3420do
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3424 esac
3425done
3426rm -f $ac_rmfiles
3427
3428if { (ac_try="$ac_link_default"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3434$as_echo "$ac_try_echo") >&5
3435 (eval "$ac_link_default") 2>&5
bf9f3bac 3436 ac_status=$?
8934764e 3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3438 (exit $ac_status); }; then
8934764e
BB
3439 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3440# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3441# in a Makefile. We should not override ac_cv_exeext if it was cached,
3442# so that the user can short-circuit this test for compilers unknown to
3443# Autoconf.
3444for ac_file in $ac_files ''
bf9f3bac 3445do
3446 test -f "$ac_file" || continue
3447 case $ac_file in
8934764e 3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bf9f3bac 3449 ;;
3450 [ab].out )
3451 # We found the default executable, but exeext='' is most
3452 # certainly right.
3453 break;;
3454 *.* )
8934764e
BB
3455 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3456 then :; else
3457 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458 fi
3459 # We set ac_cv_exeext here because the later test for it is not
3460 # safe: cross compilers may not add the suffix if given an `-o'
3461 # argument, so we may need to know it at that point already.
3462 # Even if this section looks crufty: it has the advantage of
3463 # actually working.
bf9f3bac 3464 break;;
3465 * )
3466 break;;
3467 esac
3468done
8934764e
BB
3469test "$ac_cv_exeext" = no && ac_cv_exeext=
3470
bf9f3bac 3471else
8934764e
BB
3472 ac_file=''
3473fi
3474
3475{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3476$as_echo "$ac_file" >&6; }
3477if test -z "$ac_file"; then
3478 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3479sed 's/^/| /' conftest.$ac_ext >&5
3480
8934764e
BB
3481{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
bf9f3bac 3484See \`config.log' for more details." >&5
8934764e 3485$as_echo "$as_me: error: C compiler cannot create executables
bf9f3bac 3486See \`config.log' for more details." >&2;}
8934764e 3487 { (exit 77); exit 77; }; }; }
bf9f3bac 3488fi
3489
3490ac_exeext=$ac_cv_exeext
bf9f3bac 3491
8934764e 3492# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3493# the compiler is broken, or we cross compile.
8934764e
BB
3494{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3495$as_echo_n "checking whether the C compiler works... " >&6; }
bf9f3bac 3496# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3497# If not cross compiling, check that we can run a simple program.
3498if test "$cross_compiling" != yes; then
3499 if { ac_try='./$ac_file'
8934764e
BB
3500 { (case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503esac
3504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505$as_echo "$ac_try_echo") >&5
3506 (eval "$ac_try") 2>&5
bf9f3bac 3507 ac_status=$?
8934764e 3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3509 (exit $ac_status); }; }; then
3510 cross_compiling=no
3511 else
3512 if test "$cross_compiling" = maybe; then
3513 cross_compiling=yes
3514 else
8934764e
BB
3515 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
bf9f3bac 3518If you meant to cross compile, use \`--host'.
3519See \`config.log' for more details." >&5
8934764e 3520$as_echo "$as_me: error: cannot run C compiled programs.
bf9f3bac 3521If you meant to cross compile, use \`--host'.
3522See \`config.log' for more details." >&2;}
8934764e 3523 { (exit 1); exit 1; }; }; }
bf9f3bac 3524 fi
3525 fi
3526fi
8934764e
BB
3527{ $as_echo "$as_me:$LINENO: result: yes" >&5
3528$as_echo "yes" >&6; }
bf9f3bac 3529
8934764e 3530rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
bf9f3bac 3531ac_clean_files=$ac_clean_files_save
8934764e 3532# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3533# the compiler is broken, or we cross compile.
8934764e
BB
3534{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3535$as_echo_n "checking whether we are cross compiling... " >&6; }
3536{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3537$as_echo "$cross_compiling" >&6; }
3538
3539{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3540$as_echo_n "checking for suffix of executables... " >&6; }
3541if { (ac_try="$ac_link"
3542case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545esac
3546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547$as_echo "$ac_try_echo") >&5
3548 (eval "$ac_link") 2>&5
bf9f3bac 3549 ac_status=$?
8934764e 3550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3551 (exit $ac_status); }; then
3552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3554# work properly (i.e., refer to `conftest.exe'), while it won't with
3555# `rm'.
3556for ac_file in conftest.exe conftest conftest.*; do
3557 test -f "$ac_file" || continue
3558 case $ac_file in
8934764e 3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bf9f3bac 3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bf9f3bac 3561 break;;
3562 * ) break;;
3563 esac
3564done
3565else
8934764e
BB
3566 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3569See \`config.log' for more details." >&5
8934764e 3570$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3571See \`config.log' for more details." >&2;}
8934764e 3572 { (exit 1); exit 1; }; }; }
bf9f3bac 3573fi
3574
3575rm -f conftest$ac_cv_exeext
8934764e
BB
3576{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3577$as_echo "$ac_cv_exeext" >&6; }
bf9f3bac 3578
3579rm -f conftest.$ac_ext
3580EXEEXT=$ac_cv_exeext
3581ac_exeext=$EXEEXT
8934764e
BB
3582{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3583$as_echo_n "checking for suffix of object files... " >&6; }
bf9f3bac 3584if test "${ac_cv_objext+set}" = set; then
8934764e 3585 $as_echo_n "(cached) " >&6
bf9f3bac 3586else
3587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593
3594int
3595main ()
3596{
3597
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602rm -f conftest.o conftest.obj
8934764e
BB
3603if { (ac_try="$ac_compile"
3604case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607esac
3608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3609$as_echo "$ac_try_echo") >&5
3610 (eval "$ac_compile") 2>&5
bf9f3bac 3611 ac_status=$?
8934764e 3612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3613 (exit $ac_status); }; then
8934764e
BB
3614 for ac_file in conftest.o conftest.obj conftest.*; do
3615 test -f "$ac_file" || continue;
bf9f3bac 3616 case $ac_file in
8934764e 3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bf9f3bac 3618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3619 break;;
3620 esac
3621done
3622else
8934764e 3623 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3624sed 's/^/| /' conftest.$ac_ext >&5
3625
8934764e
BB
3626{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3628{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3629See \`config.log' for more details." >&5
8934764e 3630$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3631See \`config.log' for more details." >&2;}
8934764e 3632 { (exit 1); exit 1; }; }; }
bf9f3bac 3633fi
3634
3635rm -f conftest.$ac_cv_objext conftest.$ac_ext
3636fi
8934764e
BB
3637{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3638$as_echo "$ac_cv_objext" >&6; }
bf9f3bac 3639OBJEXT=$ac_cv_objext
3640ac_objext=$OBJEXT
8934764e
BB
3641{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3642$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
bf9f3bac 3643if test "${ac_cv_c_compiler_gnu+set}" = set; then
8934764e 3644 $as_echo_n "(cached) " >&6
bf9f3bac 3645else
3646 cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h. */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h. */
3652
3653int
3654main ()
3655{
3656#ifndef __GNUC__
3657 choke me
3658#endif
3659
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664rm -f conftest.$ac_objext
8934764e
BB
3665if { (ac_try="$ac_compile"
3666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3671$as_echo "$ac_try_echo") >&5
3672 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
8934764e
BB
3677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } && {
3679 test -z "$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 } && test -s conftest.$ac_objext; then
bf9f3bac 3682 ac_compiler_gnu=yes
3683else
8934764e 3684 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3685sed 's/^/| /' conftest.$ac_ext >&5
3686
8934764e 3687 ac_compiler_gnu=no
bf9f3bac 3688fi
8934764e
BB
3689
3690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3691ac_cv_c_compiler_gnu=$ac_compiler_gnu
3692
3693fi
8934764e
BB
3694{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3695$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3696if test $ac_compiler_gnu = yes; then
3697 GCC=yes
3698else
3699 GCC=
3700fi
bf9f3bac 3701ac_test_CFLAGS=${CFLAGS+set}
3702ac_save_CFLAGS=$CFLAGS
8934764e
BB
3703{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3704$as_echo_n "checking whether $CC accepts -g... " >&6; }
bf9f3bac 3705if test "${ac_cv_prog_cc_g+set}" = set; then
8934764e 3706 $as_echo_n "(cached) " >&6
bf9f3bac 3707else
8934764e
BB
3708 ac_save_c_werror_flag=$ac_c_werror_flag
3709 ac_c_werror_flag=yes
3710 ac_cv_prog_cc_g=no
3711 CFLAGS="-g"
3712 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 3713/* confdefs.h. */
3714_ACEOF
3715cat confdefs.h >>conftest.$ac_ext
3716cat >>conftest.$ac_ext <<_ACEOF
3717/* end confdefs.h. */
3718
3719int
3720main ()
3721{
3722
3723 ;
3724 return 0;
3725}
3726_ACEOF
3727rm -f conftest.$ac_objext
8934764e
BB
3728if { (ac_try="$ac_compile"
3729case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732esac
3733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3734$as_echo "$ac_try_echo") >&5
3735 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3736 ac_status=$?
3737 grep -v '^ *+' conftest.er1 >conftest.err
3738 rm -f conftest.er1
3739 cat conftest.err >&5
8934764e
BB
3740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } && {
3742 test -z "$ac_c_werror_flag" ||
3743 test ! -s conftest.err
3744 } && test -s conftest.$ac_objext; then
3745 ac_cv_prog_cc_g=yes
3746else
3747 $as_echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750 CFLAGS=""
3751 cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h. */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h. */
3757
3758int
3759main ()
3760{
3761
3762 ;
3763 return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext
3767if { (ac_try="$ac_compile"
3768case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771esac
3772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773$as_echo "$ac_try_echo") >&5
3774 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3775 ac_status=$?
8934764e
BB
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest.$ac_objext; then
3784 :
3785else
3786 $as_echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3790 CFLAGS="-g"
3791 cat >conftest.$ac_ext <<_ACEOF
3792/* confdefs.h. */
3793_ACEOF
3794cat confdefs.h >>conftest.$ac_ext
3795cat >>conftest.$ac_ext <<_ACEOF
3796/* end confdefs.h. */
3797
3798int
3799main ()
3800{
3801
3802 ;
3803 return 0;
3804}
3805_ACEOF
3806rm -f conftest.$ac_objext
3807if { (ac_try="$ac_compile"
3808case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811esac
3812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3813$as_echo "$ac_try_echo") >&5
3814 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3815 ac_status=$?
8934764e
BB
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && {
3821 test -z "$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 } && test -s conftest.$ac_objext; then
bf9f3bac 3824 ac_cv_prog_cc_g=yes
3825else
8934764e 3826 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3827sed 's/^/| /' conftest.$ac_ext >&5
3828
8934764e
BB
3829
3830fi
3831
3832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833fi
3834
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3836fi
8934764e
BB
3837
3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_c_werror_flag=$ac_save_c_werror_flag
bf9f3bac 3840fi
8934764e
BB
3841{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3842$as_echo "$ac_cv_prog_cc_g" >&6; }
bf9f3bac 3843if test "$ac_test_CFLAGS" = set; then
3844 CFLAGS=$ac_save_CFLAGS
3845elif test $ac_cv_prog_cc_g = yes; then
3846 if test "$GCC" = yes; then
3847 CFLAGS="-g -O2"
3848 else
3849 CFLAGS="-g"
3850 fi
3851else
3852 if test "$GCC" = yes; then
3853 CFLAGS="-O2"
3854 else
3855 CFLAGS=
3856 fi
3857fi
8934764e
BB
3858{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3859$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3860if test "${ac_cv_prog_cc_c89+set}" = set; then
3861 $as_echo_n "(cached) " >&6
bf9f3bac 3862else
8934764e 3863 ac_cv_prog_cc_c89=no
bf9f3bac 3864ac_save_CC=$CC
3865cat >conftest.$ac_ext <<_ACEOF
3866/* confdefs.h. */
3867_ACEOF
3868cat confdefs.h >>conftest.$ac_ext
3869cat >>conftest.$ac_ext <<_ACEOF
3870/* end confdefs.h. */
3871#include <stdarg.h>
3872#include <stdio.h>
3873#include <sys/types.h>
3874#include <sys/stat.h>
3875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3876struct buf { int x; };
3877FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878static char *e (p, i)
3879 char **p;
3880 int i;
3881{
3882 return p[i];
3883}
3884static char *f (char * (*g) (char **, int), char **p, ...)
3885{
3886 char *s;
3887 va_list v;
3888 va_start (v,p);
3889 s = g (p, va_arg (v,int));
3890 va_end (v);
3891 return s;
3892}
3893
3894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3895 function prototypes and stuff, but not '\xHH' hex character constants.
3896 These don't provoke an error unfortunately, instead are silently treated
8934764e 3897 as 'x'. The following induces an error, until -std is added to get
bf9f3bac 3898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3899 array size at least. It's necessary to write '\x00'==0 to get something
8934764e 3900 that's true only with -std. */
bf9f3bac 3901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902
8934764e
BB
3903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904 inside strings and character constants. */
3905#define FOO(x) 'x'
3906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3907
bf9f3bac 3908int test (int i, double x);
3909struct s1 {int (*f) (int a);};
3910struct s2 {int (*f) (double a);};
3911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912int argc;
3913char **argv;
3914int
3915main ()
3916{
3917return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3918 ;
3919 return 0;
3920}
3921_ACEOF
8934764e
BB
3922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bf9f3bac 3924do
3925 CC="$ac_save_CC $ac_arg"
3926 rm -f conftest.$ac_objext
8934764e
BB
3927if { (ac_try="$ac_compile"
3928case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931esac
3932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3933$as_echo "$ac_try_echo") >&5
3934 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3935 ac_status=$?
3936 grep -v '^ *+' conftest.er1 >conftest.err
3937 rm -f conftest.er1
3938 cat conftest.err >&5
8934764e
BB
3939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } && {
3941 test -z "$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3943 } && test -s conftest.$ac_objext; then
3944 ac_cv_prog_cc_c89=$ac_arg
3945else
3946 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3947sed 's/^/| /' conftest.$ac_ext >&5
3948
8934764e 3949
bf9f3bac 3950fi
8934764e
BB
3951
3952rm -f core conftest.err conftest.$ac_objext
3953 test "x$ac_cv_prog_cc_c89" != "xno" && break
bf9f3bac 3954done
8934764e 3955rm -f conftest.$ac_ext
bf9f3bac 3956CC=$ac_save_CC
3957
3958fi
8934764e
BB
3959# AC_CACHE_VAL
3960case "x$ac_cv_prog_cc_c89" in
3961 x)
3962 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3963$as_echo "none needed" >&6; } ;;
3964 xno)
3965 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3966$as_echo "unsupported" >&6; } ;;
bf9f3bac 3967 *)
8934764e
BB
3968 CC="$CC $ac_cv_prog_cc_c89"
3969 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3970$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bf9f3bac 3971esac
3972
bf9f3bac 3973
bf9f3bac 3974ac_ext=c
3975ac_cpp='$CPP $CPPFLAGS'
3976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979DEPDIR="${am__leading_dot}deps"
3980
8934764e 3981ac_config_commands="$ac_config_commands depfiles"
bf9f3bac 3982
3983
3984am_make=${MAKE-make}
3985cat > confinc << 'END'
3986am__doit:
8934764e 3987 @echo this is the am__doit target
bf9f3bac 3988.PHONY: am__doit
3989END
3990# If we don't find an include directive, just comment out the code.
8934764e
BB
3991{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3992$as_echo_n "checking for style of include used by $am_make... " >&6; }
bf9f3bac 3993am__include="#"
3994am__quote=
3995_am_result=none
3996# First try GNU make style include.
3997echo "include confinc" > confmf
8934764e
BB
3998# Ignore all kinds of additional output from `make'.
3999case `$am_make -s -f confmf 2> /dev/null` in #(
4000*the\ am__doit\ target*)
4001 am__include=include
4002 am__quote=
4003 _am_result=GNU
4004 ;;
4005esac
bf9f3bac 4006# Now try BSD make style include.
4007if test "$am__include" = "#"; then
4008 echo '.include "confinc"' > confmf
8934764e
BB
4009 case `$am_make -s -f confmf 2> /dev/null` in #(
4010 *the\ am__doit\ target*)
4011 am__include=.include
4012 am__quote="\""
4013 _am_result=BSD
4014 ;;
4015 esac
bf9f3bac 4016fi
4017
4018
8934764e
BB
4019{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4020$as_echo "$_am_result" >&6; }
bf9f3bac 4021rm -f confinc confmf
4022
8934764e 4023# Check whether --enable-dependency-tracking was given.
bf9f3bac 4024if test "${enable_dependency_tracking+set}" = set; then
8934764e
BB
4025 enableval=$enable_dependency_tracking;
4026fi
bf9f3bac 4027
bf9f3bac 4028if test "x$enable_dependency_tracking" != xno; then
4029 am_depcomp="$ac_aux_dir/depcomp"
4030 AMDEPBACKSLASH='\'
4031fi
8934764e 4032 if test "x$enable_dependency_tracking" != xno; then
bf9f3bac 4033 AMDEP_TRUE=
4034 AMDEP_FALSE='#'
4035else
4036 AMDEP_TRUE='#'
4037 AMDEP_FALSE=
4038fi
4039
4040
4041
bf9f3bac 4042depcc="$CC" am_compiler_list=
4043
8934764e
BB
4044{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4045$as_echo_n "checking dependency style of $depcc... " >&6; }
bf9f3bac 4046if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8934764e 4047 $as_echo_n "(cached) " >&6
bf9f3bac 4048else
4049 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4050 # We make a subdir and do the tests there. Otherwise we can end up
4051 # making bogus files that we don't know about and never remove. For
4052 # instance it was reported that on HP-UX the gcc test will end up
4053 # making a dummy file named `D' -- because `-MD' means `put the output
4054 # in D'.
4055 mkdir conftest.dir
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4059 cd conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4065 # directory.
4066 mkdir sub
4067
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071 fi
8934764e
BB
4072 am__universal=false
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075 esac
4076
bf9f3bac 4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4081 #
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093
8934764e
BB
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
bf9f3bac 4100 case $depmode in
8934764e
BB
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4104 ;;
bf9f3bac 4105 nosideeffect)
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
4112 fi
4113 ;;
8934764e
BB
4114 msvisualcpp | msvcmsys)
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4120 ;;
bf9f3bac 4121 none) break ;;
4122 esac
bf9f3bac 4123 if depmode=$depmode \
8934764e 4124 source=sub/conftest.c object=$am__obj \
bf9f3bac 4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8934764e 4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9f3bac 4127 >/dev/null 2>conftest.err &&
8934764e 4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8934764e 4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4142 break
4143 fi
4144 fi
4145 done
4146
4147 cd ..
4148 rm -rf conftest.dir
4149else
4150 am_cv_CC_dependencies_compiler_type=none
4151fi
4152
4153fi
8934764e
BB
4154{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4155$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
bf9f3bac 4156CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4157
8934764e 4158 if
bf9f3bac 4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161 am__fastdepCC_TRUE=
4162 am__fastdepCC_FALSE='#'
4163else
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
4166fi
4167
4168
8934764e
BB
4169case `pwd` in
4170 *\ * | *\ *)
4171 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4172$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4173esac
bf9f3bac 4174
bf9f3bac 4175
bf9f3bac 4176
8beea9ac
BB
4177macro_version='2.2.6b'
4178macro_revision='1.3017'
8934764e
BB
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192ltmain="$ac_aux_dir/ltmain.sh"
4193
4194{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4195$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4196if test "${ac_cv_path_SED+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4198else
4199 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4200 for ac_i in 1 2 3 4 5 6 7; do
4201 ac_script="$ac_script$as_nl$ac_script"
4202 done
4203 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4204 $as_unset ac_script || ac_script=
4205 if test -z "$SED"; then
4206 ac_path_SED_found=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
bf9f3bac 4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
8934764e 4213 for ac_prog in sed gsed; do
bf9f3bac 4214 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
4215 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4216 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4217# Check for GNU ac_path_SED and select it if it is found.
4218 # Check for GNU $ac_path_SED
4219case `"$ac_path_SED" --version 2>&1` in
4220*GNU*)
4221 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4222*)
4223 ac_count=0
4224 $as_echo_n 0123456789 >"conftest.in"
4225 while :
4226 do
4227 cat "conftest.in" "conftest.in" >"conftest.tmp"
4228 mv "conftest.tmp" "conftest.in"
4229 cp "conftest.in" "conftest.nl"
4230 $as_echo '' >> "conftest.nl"
4231 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4233 ac_count=`expr $ac_count + 1`
4234 if test $ac_count -gt ${ac_path_SED_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_SED="$ac_path_SED"
4237 ac_path_SED_max=$ac_count
4238 fi
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4241 done
4242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4243esac
4244
4245 $ac_path_SED_found && break 3
bf9f3bac 4246 done
4247 done
4248done
4249IFS=$as_save_IFS
8934764e
BB
4250 if test -z "$ac_cv_path_SED"; then
4251 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4252$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4253 { (exit 1); exit 1; }; }
bf9f3bac 4254 fi
8934764e
BB
4255else
4256 ac_cv_path_SED=$SED
4257fi
bf9f3bac 4258
4259fi
8934764e
BB
4260{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4261$as_echo "$ac_cv_path_SED" >&6; }
4262 SED="$ac_cv_path_SED"
4263 rm -f conftest.sed
4264
4265test -z "$SED" && SED=sed
4266Xsed="$SED -e 1s/^X//"
4267
4268
bf9f3bac 4269
bf9f3bac 4270
bf9f3bac 4271
8934764e
BB
4272
4273
4274
4275
4276
4277
4278{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4279$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4280if test "${ac_cv_path_GREP+set}" = set; then
4281 $as_echo_n "(cached) " >&6
bf9f3bac 4282else
8934764e
BB
4283 if test -z "$GREP"; then
4284 ac_path_GREP_found=false
4285 # Loop through the user's path and test for each of PROGNAME-LIST
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4288do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_prog in grep ggrep; do
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4294 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4295# Check for GNU ac_path_GREP and select it if it is found.
4296 # Check for GNU $ac_path_GREP
4297case `"$ac_path_GREP" --version 2>&1` in
4298*GNU*)
4299 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4300*)
4301 ac_count=0
4302 $as_echo_n 0123456789 >"conftest.in"
4303 while :
4304 do
4305 cat "conftest.in" "conftest.in" >"conftest.tmp"
4306 mv "conftest.tmp" "conftest.in"
4307 cp "conftest.in" "conftest.nl"
4308 $as_echo 'GREP' >> "conftest.nl"
4309 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4311 ac_count=`expr $ac_count + 1`
4312 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4313 # Best one so far, save it but keep looking for a better one
4314 ac_cv_path_GREP="$ac_path_GREP"
4315 ac_path_GREP_max=$ac_count
bf9f3bac 4316 fi
8934764e
BB
4317 # 10*(2^10) chars as input seems more than enough
4318 test $ac_count -gt 10 && break
4319 done
4320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4321esac
4322
4323 $ac_path_GREP_found && break 3
4324 done
4325 done
4326done
4327IFS=$as_save_IFS
4328 if test -z "$ac_cv_path_GREP"; then
4329 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4330$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4331 { (exit 1); exit 1; }; }
4332 fi
4333else
4334 ac_cv_path_GREP=$GREP
bf9f3bac 4335fi
bf9f3bac 4336
8934764e
BB
4337fi
4338{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4339$as_echo "$ac_cv_path_GREP" >&6; }
4340 GREP="$ac_cv_path_GREP"
bf9f3bac 4341
4342
8934764e
BB
4343{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4344$as_echo_n "checking for egrep... " >&6; }
4345if test "${ac_cv_path_EGREP+set}" = set; then
4346 $as_echo_n "(cached) " >&6
bf9f3bac 4347else
8934764e
BB
4348 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4349 then ac_cv_path_EGREP="$GREP -E"
4350 else
4351 if test -z "$EGREP"; then
4352 ac_path_EGREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356do
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in egrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4363# Check for GNU ac_path_EGREP and select it if it is found.
4364 # Check for GNU $ac_path_EGREP
4365case `"$ac_path_EGREP" --version 2>&1` in
4366*GNU*)
4367 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4368*)
4369 ac_count=0
4370 $as_echo_n 0123456789 >"conftest.in"
4371 while :
4372 do
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'EGREP' >> "conftest.nl"
4377 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 ac_count=`expr $ac_count + 1`
4380 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_EGREP="$ac_path_EGREP"
4383 ac_path_EGREP_max=$ac_count
4384 fi
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389esac
4390
4391 $ac_path_EGREP_found && break 3
4392 done
4393 done
4394done
4395IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_EGREP"; then
4397 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4398$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4399 { (exit 1); exit 1; }; }
4400 fi
bf9f3bac 4401else
8934764e
BB
4402 ac_cv_path_EGREP=$EGREP
4403fi
4404
4405 fi
4406fi
4407{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4408$as_echo "$ac_cv_path_EGREP" >&6; }
4409 EGREP="$ac_cv_path_EGREP"
4410
4411
4412{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4413$as_echo_n "checking for fgrep... " >&6; }
4414if test "${ac_cv_path_FGREP+set}" = set; then
4415 $as_echo_n "(cached) " >&6
4416else
4417 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4418 then ac_cv_path_FGREP="$GREP -F"
4419 else
4420 if test -z "$FGREP"; then
4421 ac_path_FGREP_found=false
4422 # Loop through the user's path and test for each of PROGNAME-LIST
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_prog in fgrep; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4431 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4432# Check for GNU ac_path_FGREP and select it if it is found.
4433 # Check for GNU $ac_path_FGREP
4434case `"$ac_path_FGREP" --version 2>&1` in
4435*GNU*)
4436 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4437*)
4438 ac_count=0
4439 $as_echo_n 0123456789 >"conftest.in"
4440 while :
4441 do
4442 cat "conftest.in" "conftest.in" >"conftest.tmp"
4443 mv "conftest.tmp" "conftest.in"
4444 cp "conftest.in" "conftest.nl"
4445 $as_echo 'FGREP' >> "conftest.nl"
4446 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4448 ac_count=`expr $ac_count + 1`
4449 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4450 # Best one so far, save it but keep looking for a better one
4451 ac_cv_path_FGREP="$ac_path_FGREP"
4452 ac_path_FGREP_max=$ac_count
4453 fi
4454 # 10*(2^10) chars as input seems more than enough
4455 test $ac_count -gt 10 && break
4456 done
4457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4458esac
4459
4460 $ac_path_FGREP_found && break 3
4461 done
4462 done
4463done
4464IFS=$as_save_IFS
4465 if test -z "$ac_cv_path_FGREP"; then
4466 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4467$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4468 { (exit 1); exit 1; }; }
4469 fi
4470else
4471 ac_cv_path_FGREP=$FGREP
4472fi
4473
4474 fi
4475fi
4476{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4477$as_echo "$ac_cv_path_FGREP" >&6; }
4478 FGREP="$ac_cv_path_FGREP"
4479
4480
4481test -z "$GREP" && GREP=grep
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501# Check whether --with-gnu-ld was given.
4502if test "${with_gnu_ld+set}" = set; then
4503 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4504else
4505 with_gnu_ld=no
4506fi
4507
4508ac_prog=ld
4509if test "$GCC" = yes; then
4510 # Check if gcc -print-prog-name=ld gives a path.
4511 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4512$as_echo_n "checking for ld used by $CC... " >&6; }
4513 case $host in
4514 *-*-mingw*)
4515 # gcc leaves a trailing carriage return which upsets mingw
4516 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4517 *)
4518 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4519 esac
4520 case $ac_prog in
4521 # Accept absolute paths.
4522 [\\/]* | ?:[\\/]*)
4523 re_direlt='/[^/][^/]*/\.\./'
4524 # Canonicalize the pathname of ld
4525 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4526 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4527 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4528 done
4529 test -z "$LD" && LD="$ac_prog"
4530 ;;
4531 "")
4532 # If it fails, then pretend we aren't using GCC.
4533 ac_prog=ld
4534 ;;
4535 *)
4536 # If it is relative, then search for the first ld in PATH.
4537 with_gnu_ld=unknown
4538 ;;
4539 esac
4540elif test "$with_gnu_ld" = yes; then
4541 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4542$as_echo_n "checking for GNU ld... " >&6; }
4543else
4544 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4545$as_echo_n "checking for non-GNU ld... " >&6; }
bf9f3bac 4546fi
4547if test "${lt_cv_path_LD+set}" = set; then
8934764e 4548 $as_echo_n "(cached) " >&6
bf9f3bac 4549else
4550 if test -z "$LD"; then
4551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4552 for ac_dir in $PATH; do
4553 IFS="$lt_save_ifs"
4554 test -z "$ac_dir" && ac_dir=.
4555 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4556 lt_cv_path_LD="$ac_dir/$ac_prog"
4557 # Check to see if the program is GNU ld. I'd rather use --version,
4558 # but apparently some variants of GNU ld only accept -v.
4559 # Break only if it was the GNU/non-GNU ld that we prefer.
4560 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4561 *GNU* | *'with BFD'*)
4562 test "$with_gnu_ld" != no && break
4563 ;;
4564 *)
4565 test "$with_gnu_ld" != yes && break
4566 ;;
4567 esac
4568 fi
4569 done
4570 IFS="$lt_save_ifs"
4571else
4572 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4573fi
4574fi
4575
4576LD="$lt_cv_path_LD"
4577if test -n "$LD"; then
8934764e
BB
4578 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4579$as_echo "$LD" >&6; }
bf9f3bac 4580else
8934764e
BB
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582$as_echo "no" >&6; }
bf9f3bac 4583fi
8934764e
BB
4584test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4585$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
bf9f3bac 4586 { (exit 1); exit 1; }; }
8934764e
BB
4587{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4588$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
bf9f3bac 4589if test "${lt_cv_prog_gnu_ld+set}" = set; then
8934764e 4590 $as_echo_n "(cached) " >&6
bf9f3bac 4591else
4592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4593case `$LD -v 2>&1 </dev/null` in
4594*GNU* | *'with BFD'*)
4595 lt_cv_prog_gnu_ld=yes
4596 ;;
4597*)
4598 lt_cv_prog_gnu_ld=no
4599 ;;
4600esac
4601fi
8934764e
BB
4602{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4603$as_echo "$lt_cv_prog_gnu_ld" >&6; }
bf9f3bac 4604with_gnu_ld=$lt_cv_prog_gnu_ld
4605
4606
bf9f3bac 4607
8934764e
BB
4608
4609
4610
4611
4612
4613
4614{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4615$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
bf9f3bac 4616if test "${lt_cv_path_NM+set}" = set; then
8934764e 4617 $as_echo_n "(cached) " >&6
bf9f3bac 4618else
4619 if test -n "$NM"; then
4620 # Let the user override the test.
4621 lt_cv_path_NM="$NM"
4622else
4623 lt_nm_to_check="${ac_tool_prefix}nm"
4624 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4625 lt_nm_to_check="$lt_nm_to_check nm"
4626 fi
4627 for lt_tmp_nm in $lt_nm_to_check; do
4628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4629 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4630 IFS="$lt_save_ifs"
4631 test -z "$ac_dir" && ac_dir=.
4632 tmp_nm="$ac_dir/$lt_tmp_nm"
4633 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4634 # Check to see if the nm accepts a BSD-compat flag.
4635 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4636 # nm: unknown option "B" ignored
4637 # Tru64's nm complains that /dev/null is an invalid object file
4638 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4639 */dev/null* | *'Invalid file or object type'*)
4640 lt_cv_path_NM="$tmp_nm -B"
4641 break
4642 ;;
4643 *)
4644 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4645 */dev/null*)
4646 lt_cv_path_NM="$tmp_nm -p"
4647 break
4648 ;;
4649 *)
4650 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4651 continue # so that we can try to find one that supports BSD flags
4652 ;;
4653 esac
4654 ;;
4655 esac
4656 fi
4657 done
4658 IFS="$lt_save_ifs"
4659 done
8934764e 4660 : ${lt_cv_path_NM=no}
bf9f3bac 4661fi
4662fi
8934764e
BB
4663{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4664$as_echo "$lt_cv_path_NM" >&6; }
4665if test "$lt_cv_path_NM" != "no"; then
4666 NM="$lt_cv_path_NM"
4667else
4668 # Didn't find any BSD compatible name lister, look for dumpbin.
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4671 do
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4675$as_echo_n "checking for $ac_word... " >&6; }
4676if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4678else
4679 if test -n "$DUMPBIN"; then
4680 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
4694done
4695IFS=$as_save_IFS
bf9f3bac 4696
8934764e
BB
4697fi
4698fi
4699DUMPBIN=$ac_cv_prog_DUMPBIN
4700if test -n "$DUMPBIN"; then
4701 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4702$as_echo "$DUMPBIN" >&6; }
bf9f3bac 4703else
8934764e
BB
4704 { $as_echo "$as_me:$LINENO: result: no" >&5
4705$as_echo "no" >&6; }
bf9f3bac 4706fi
4707
bf9f3bac 4708
8934764e
BB
4709 test -n "$DUMPBIN" && break
4710 done
4711fi
4712if test -z "$DUMPBIN"; then
4713 ac_ct_DUMPBIN=$DUMPBIN
4714 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4715do
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717set dummy $ac_prog; ac_word=$2
4718{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
4720if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4721 $as_echo_n "(cached) " >&6
4722else
4723 if test -n "$ac_ct_DUMPBIN"; then
4724 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737done
4738done
4739IFS=$as_save_IFS
bf9f3bac 4740
8934764e
BB
4741fi
4742fi
4743ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4744if test -n "$ac_ct_DUMPBIN"; then
4745 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4746$as_echo "$ac_ct_DUMPBIN" >&6; }
4747else
4748 { $as_echo "$as_me:$LINENO: result: no" >&5
4749$as_echo "no" >&6; }
4750fi
bf9f3bac 4751
bf9f3bac 4752
8934764e
BB
4753 test -n "$ac_ct_DUMPBIN" && break
4754done
bf9f3bac 4755
8934764e
BB
4756 if test "x$ac_ct_DUMPBIN" = x; then
4757 DUMPBIN=":"
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760yes:)
4761{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763ac_tool_warned=yes ;;
4764esac
4765 DUMPBIN=$ac_ct_DUMPBIN
4766 fi
4767fi
bf9f3bac 4768
bf9f3bac 4769
8934764e
BB
4770 if test "$DUMPBIN" != ":"; then
4771 NM="$DUMPBIN"
bf9f3bac 4772 fi
8934764e
BB
4773fi
4774test -z "$NM" && NM=nm
bf9f3bac 4775
bf9f3bac 4776
bf9f3bac 4777
bf9f3bac 4778
bf9f3bac 4779
bf9f3bac 4780
8934764e
BB
4781{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4782$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4783if test "${lt_cv_nm_interface+set}" = set; then
4784 $as_echo_n "(cached) " >&6
4785else
4786 lt_cv_nm_interface="BSD nm"
4787 echo "int some_variable = 0;" > conftest.$ac_ext
4b2220f0 4788 (eval echo "\"\$as_me:4788: $ac_compile\"" >&5)
8934764e
BB
4789 (eval "$ac_compile" 2>conftest.err)
4790 cat conftest.err >&5
4b2220f0 4791 (eval echo "\"\$as_me:4791: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8934764e
BB
4792 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4793 cat conftest.err >&5
4b2220f0 4794 (eval echo "\"\$as_me:4794: output\"" >&5)
8934764e
BB
4795 cat conftest.out >&5
4796 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4797 lt_cv_nm_interface="MS dumpbin"
bf9f3bac 4798 fi
8934764e
BB
4799 rm -f conftest*
4800fi
4801{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4802$as_echo "$lt_cv_nm_interface" >&6; }
bf9f3bac 4803
8934764e
BB
4804{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4805$as_echo_n "checking whether ln -s works... " >&6; }
4806LN_S=$as_ln_s
4807if test "$LN_S" = "ln -s"; then
4808 { $as_echo "$as_me:$LINENO: result: yes" >&5
4809$as_echo "yes" >&6; }
4810else
4811 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4812$as_echo "no, using $LN_S" >&6; }
4813fi
bf9f3bac 4814
8934764e
BB
4815# find the maximum length of command line arguments
4816{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4817$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4818if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4820else
4821 i=0
4822 teststring="ABCD"
bf9f3bac 4823
8934764e
BB
4824 case $build_os in
4825 msdosdjgpp*)
4826 # On DJGPP, this test can blow up pretty badly due to problems in libc
4827 # (any single argument exceeding 2000 bytes causes a buffer overrun
4828 # during glob expansion). Even if it were fixed, the result of this
4829 # check would be larger than it should be.
4830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4831 ;;
bf9f3bac 4832
8934764e
BB
4833 gnu*)
4834 # Under GNU Hurd, this test is not required because there is
4835 # no limit to the length of command line arguments.
4836 # Libtool will interpret -1 as no limit whatsoever
4837 lt_cv_sys_max_cmd_len=-1;
4838 ;;
bf9f3bac 4839
8934764e
BB
4840 cygwin* | mingw* | cegcc*)
4841 # On Win9x/ME, this test blows up -- it succeeds, but takes
4842 # about 5 minutes as the teststring grows exponentially.
4843 # Worse, since 9x/ME are not pre-emptively multitasking,
4844 # you end up with a "frozen" computer, even though with patience
4845 # the test eventually succeeds (with a max line length of 256k).
4846 # Instead, let's just punt: use the minimum linelength reported by
4847 # all of the supported platforms: 8192 (on NT/2K/XP).
4848 lt_cv_sys_max_cmd_len=8192;
4849 ;;
bf9f3bac 4850
8934764e
BB
4851 amigaos*)
4852 # On AmigaOS with pdksh, this test takes hours, literally.
4853 # So we just punt and use a minimum line length of 8192.
4854 lt_cv_sys_max_cmd_len=8192;
bf9f3bac 4855 ;;
8934764e
BB
4856
4857 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4858 # This has been around since 386BSD, at least. Likely further.
4859 if test -x /sbin/sysctl; then
4860 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4861 elif test -x /usr/sbin/sysctl; then
4862 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4863 else
4864 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4865 fi
4866 # And add a safety zone
4867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
bf9f3bac 4869 ;;
8934764e
BB
4870
4871 interix*)
4872 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4873 lt_cv_sys_max_cmd_len=196608
bf9f3bac 4874 ;;
8934764e
BB
4875
4876 osf*)
4877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4879 # nice to cause kernel panics so lets avoid the loop below.
4880 # First set a reasonable default.
4881 lt_cv_sys_max_cmd_len=16384
4882 #
4883 if test -x /sbin/sysconfig; then
4884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4885 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4886 esac
4887 fi
bf9f3bac 4888 ;;
8934764e
BB
4889 sco3.2v5*)
4890 lt_cv_sys_max_cmd_len=102400
bf9f3bac 4891 ;;
8934764e
BB
4892 sysv5* | sco5v6* | sysv4.2uw2*)
4893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4894 if test -n "$kargmax"; then
4895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4896 else
4897 lt_cv_sys_max_cmd_len=32768
4898 fi
4899 ;;
4900 *)
4901 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4902 if test -n "$lt_cv_sys_max_cmd_len"; then
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4905 else
4906 # Make teststring a little bigger before we do anything with it.
4907 # a 1K string should be a reasonable start.
4908 for i in 1 2 3 4 5 6 7 8 ; do
4909 teststring=$teststring$teststring
4910 done
4911 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4912 # If test is not a shell built-in, we'll probably end up computing a
4913 # maximum length that is only half of the actual maximum length, but
4914 # we can't tell.
4915 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4916 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4917 test $i != 17 # 1/2 MB should be enough
4918 do
4919 i=`expr $i + 1`
4920 teststring=$teststring$teststring
4921 done
4922 # Only check the string length outside the loop.
4923 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4924 teststring=
4925 # Add a significant safety factor because C++ compilers can tack on
4926 # massive amounts of additional arguments before passing them to the
4927 # linker. It appears as though 1/2 is a usable value.
4928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4929 fi
bf9f3bac 4930 ;;
4931 esac
bf9f3bac 4932
8934764e 4933fi
bf9f3bac 4934
8934764e
BB
4935if test -n $lt_cv_sys_max_cmd_len ; then
4936 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4937$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4938else
4939 { $as_echo "$as_me:$LINENO: result: none" >&5
4940$as_echo "none" >&6; }
bf9f3bac 4941fi
8934764e 4942max_cmd_len=$lt_cv_sys_max_cmd_len
bf9f3bac 4943
4944
4945
4946
bf9f3bac 4947
bf9f3bac 4948
8934764e
BB
4949: ${CP="cp -f"}
4950: ${MV="mv -f"}
4951: ${RM="rm -f"}
bf9f3bac 4952
8934764e
BB
4953{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4954$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4955# Try some XSI features
4956xsi_shell=no
4957( _lt_dummy="a/b/c"
4958 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4959 = c,a/b,, \
4960 && eval 'test $(( 1 + 1 )) -eq 2 \
4961 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4962 && xsi_shell=yes
4963{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4964$as_echo "$xsi_shell" >&6; }
bf9f3bac 4965
bf9f3bac 4966
8934764e
BB
4967{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4968$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4969lt_shell_append=no
4970( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4971 >/dev/null 2>&1 \
4972 && lt_shell_append=yes
4973{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4974$as_echo "$lt_shell_append" >&6; }
bf9f3bac 4975
8934764e
BB
4976
4977if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4978 lt_unset=unset
4979else
4980 lt_unset=false
4981fi
4982
4983
4984
4985
4986
4987# test EBCDIC or ASCII
4988case `echo X|tr X '\101'` in
4989 A) # ASCII based system
4990 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4991 lt_SP2NL='tr \040 \012'
4992 lt_NL2SP='tr \015\012 \040\040'
bf9f3bac 4993 ;;
8934764e
BB
4994 *) # EBCDIC based system
4995 lt_SP2NL='tr \100 \n'
4996 lt_NL2SP='tr \r\n \100\100'
bf9f3bac 4997 ;;
8934764e
BB
4998esac
4999
bf9f3bac 5000
bf9f3bac 5001
bf9f3bac 5002
bf9f3bac 5003
bf9f3bac 5004
bf9f3bac 5005
bf9f3bac 5006
8934764e
BB
5007
5008{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5009$as_echo_n "checking for $LD option to reload object files... " >&6; }
5010if test "${lt_cv_ld_reload_flag+set}" = set; then
5011 $as_echo_n "(cached) " >&6
5012else
5013 lt_cv_ld_reload_flag='-r'
bf9f3bac 5014fi
8934764e
BB
5015{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5016$as_echo "$lt_cv_ld_reload_flag" >&6; }
5017reload_flag=$lt_cv_ld_reload_flag
5018case $reload_flag in
5019"" | " "*) ;;
5020*) reload_flag=" $reload_flag" ;;
5021esac
5022reload_cmds='$LD$reload_flag -o $output$reload_objs'
5023case $host_os in
5024 darwin*)
5025 if test "$GCC" = yes; then
5026 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5027 else
5028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5029 fi
5030 ;;
5031esac
bf9f3bac 5032
5033
bf9f3bac 5034
bf9f3bac 5035
5036
8934764e
BB
5037
5038
5039
5040
5041if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5043set dummy ${ac_tool_prefix}objdump; ac_word=$2
5044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5047 $as_echo_n "(cached) " >&6
bf9f3bac 5048else
8934764e
BB
5049 if test -n "$OBJDUMP"; then
5050 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
bf9f3bac 5054do
8934764e
BB
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
bf9f3bac 5062 fi
8934764e
BB
5063done
5064done
5065IFS=$as_save_IFS
bf9f3bac 5066
bf9f3bac 5067fi
bf9f3bac 5068fi
8934764e
BB
5069OBJDUMP=$ac_cv_prog_OBJDUMP
5070if test -n "$OBJDUMP"; then
5071 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5072$as_echo "$OBJDUMP" >&6; }
bf9f3bac 5073else
8934764e
BB
5074 { $as_echo "$as_me:$LINENO: result: no" >&5
5075$as_echo "no" >&6; }
bf9f3bac 5076fi
5077
bf9f3bac 5078
5079fi
8934764e
BB
5080if test -z "$ac_cv_prog_OBJDUMP"; then
5081 ac_ct_OBJDUMP=$OBJDUMP
5082 # Extract the first word of "objdump", so it can be a program name with args.
5083set dummy objdump; ac_word=$2
5084{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5085$as_echo_n "checking for $ac_word... " >&6; }
5086if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5087 $as_echo_n "(cached) " >&6
bf9f3bac 5088else
8934764e
BB
5089 if test -n "$ac_ct_OBJDUMP"; then
5090 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5091else
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
bf9f3bac 5094do
8934764e
BB
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101 break 2
bf9f3bac 5102 fi
8934764e
BB
5103done
5104done
5105IFS=$as_save_IFS
5106
bf9f3bac 5107fi
8934764e
BB
5108fi
5109ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5110if test -n "$ac_ct_OBJDUMP"; then
5111 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5112$as_echo "$ac_ct_OBJDUMP" >&6; }
bf9f3bac 5113else
8934764e
BB
5114 { $as_echo "$as_me:$LINENO: result: no" >&5
5115$as_echo "no" >&6; }
bf9f3bac 5116fi
bf9f3bac 5117
8934764e
BB
5118 if test "x$ac_ct_OBJDUMP" = x; then
5119 OBJDUMP="false"
bf9f3bac 5120 else
8934764e
BB
5121 case $cross_compiling:$ac_tool_warned in
5122yes:)
5123{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125ac_tool_warned=yes ;;
5126esac
5127 OBJDUMP=$ac_ct_OBJDUMP
bf9f3bac 5128 fi
5129else
8934764e 5130 OBJDUMP="$ac_cv_prog_OBJDUMP"
bf9f3bac 5131fi
bf9f3bac 5132
8934764e 5133test -z "$OBJDUMP" && OBJDUMP=objdump
bf9f3bac 5134
bf9f3bac 5135
bf9f3bac 5136
5137
bf9f3bac 5138
bf9f3bac 5139
bf9f3bac 5140
bf9f3bac 5141
bf9f3bac 5142
8934764e
BB
5143{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5144$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5145if test "${lt_cv_deplibs_check_method+set}" = set; then
5146 $as_echo_n "(cached) " >&6
bf9f3bac 5147else
8934764e
BB
5148 lt_cv_file_magic_cmd='$MAGIC_CMD'
5149lt_cv_file_magic_test_file=
5150lt_cv_deplibs_check_method='unknown'
5151# Need to set the preceding variable on all platforms that support
5152# interlibrary dependencies.
5153# 'none' -- dependencies not supported.
5154# `unknown' -- same as none, but documents that we really don't know.
5155# 'pass_all' -- all dependencies passed with no checks.
5156# 'test_compile' -- check by making test program.
5157# 'file_magic [[regex]]' -- check by looking for files in library path
5158# which responds to the $file_magic_cmd with a given extended regex.
5159# If you have `file' or equivalent on your system and you're not sure
5160# whether `pass_all' will *always* work, you probably want this one.
bf9f3bac 5161
8934764e
BB
5162case $host_os in
5163aix[4-9]*)
5164 lt_cv_deplibs_check_method=pass_all
5165 ;;
bf9f3bac 5166
8934764e
BB
5167beos*)
5168 lt_cv_deplibs_check_method=pass_all
5169 ;;
bf9f3bac 5170
8934764e
BB
5171bsdi[45]*)
5172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5173 lt_cv_file_magic_cmd='/usr/bin/file -L'
5174 lt_cv_file_magic_test_file=/shlib/libc.so
5175 ;;
bf9f3bac 5176
8934764e
BB
5177cygwin*)
5178 # func_win32_libid is a shell function defined in ltmain.sh
5179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5180 lt_cv_file_magic_cmd='func_win32_libid'
5181 ;;
bf9f3bac 5182
8934764e
BB
5183mingw* | pw32*)
5184 # Base MSYS/MinGW do not provide the 'file' command needed by
5185 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5186 # unless we find 'file', for example because we are cross-compiling.
5187 if ( file / ) >/dev/null 2>&1; then
5188 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5189 lt_cv_file_magic_cmd='func_win32_libid'
5190 else
5191 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5192 lt_cv_file_magic_cmd='$OBJDUMP -f'
5193 fi
5194 ;;
bf9f3bac 5195
8934764e
BB
5196cegcc)
5197 # use the weaker test based on 'objdump'. See mingw*.
5198 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5199 lt_cv_file_magic_cmd='$OBJDUMP -f'
5200 ;;
bf9f3bac 5201
8934764e
BB
5202darwin* | rhapsody*)
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
bf9f3bac 5205
8934764e
BB
5206freebsd* | dragonfly*)
5207 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5208 case $host_cpu in
5209 i*86 )
5210 # Not sure whether the presence of OpenBSD here was a mistake.
5211 # Let's accept both of them until this is cleared up.
5212 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5213 lt_cv_file_magic_cmd=/usr/bin/file
5214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5215 ;;
5216 esac
5217 else
5218 lt_cv_deplibs_check_method=pass_all
5219 fi
5220 ;;
bf9f3bac 5221
8934764e
BB
5222gnu*)
5223 lt_cv_deplibs_check_method=pass_all
5224 ;;
bf9f3bac 5225
8934764e
BB
5226hpux10.20* | hpux11*)
5227 lt_cv_file_magic_cmd=/usr/bin/file
5228 case $host_cpu in
5229 ia64*)
5230 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5231 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5232 ;;
5233 hppa*64*)
5234 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]'
5235 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5236 ;;
5237 *)
5238 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5239 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5240 ;;
5241 esac
5242 ;;
bf9f3bac 5243
8934764e
BB
5244interix[3-9]*)
5245 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5247 ;;
bf9f3bac 5248
8934764e
BB
5249irix5* | irix6* | nonstopux*)
5250 case $LD in
5251 *-32|*"-32 ") libmagic=32-bit;;
5252 *-n32|*"-n32 ") libmagic=N32;;
5253 *-64|*"-64 ") libmagic=64-bit;;
5254 *) libmagic=never-match;;
5255 esac
5256 lt_cv_deplibs_check_method=pass_all
5257 ;;
bf9f3bac 5258
8934764e
BB
5259# This must be Linux ELF.
5260linux* | k*bsd*-gnu)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
bf9f3bac 5263
8934764e
BB
5264netbsd*)
5265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5267 else
5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5269 fi
5270 ;;
bf9f3bac 5271
8934764e
BB
5272newos6*)
5273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5274 lt_cv_file_magic_cmd=/usr/bin/file
5275 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5276 ;;
bf9f3bac 5277
8934764e
BB
5278*nto* | *qnx*)
5279 lt_cv_deplibs_check_method=pass_all
5280 ;;
bf9f3bac 5281
8934764e
BB
5282openbsd*)
5283 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5285 else
5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5287 fi
5288 ;;
bf9f3bac 5289
8934764e
BB
5290osf3* | osf4* | osf5*)
5291 lt_cv_deplibs_check_method=pass_all
5292 ;;
bf9f3bac 5293
8934764e
BB
5294rdos*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
bf9f3bac 5297
8934764e
BB
5298solaris*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
bf9f3bac 5301
8934764e
BB
5302sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
bf9f3bac 5305
8934764e
BB
5306sysv4 | sysv4.3*)
5307 case $host_vendor in
5308 motorola)
5309 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]'
5310 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
bf9f3bac 5311 ;;
8934764e
BB
5312 ncr)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315 sequent)
5316 lt_cv_file_magic_cmd='/bin/file'
5317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5318 ;;
5319 sni)
5320 lt_cv_file_magic_cmd='/bin/file'
5321 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5322 lt_cv_file_magic_test_file=/lib/libc.so
5323 ;;
5324 siemens)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327 pc)
5328 lt_cv_deplibs_check_method=pass_all
bf9f3bac 5329 ;;
8934764e
BB
5330 esac
5331 ;;
5332
5333tpf*)
5334 lt_cv_deplibs_check_method=pass_all
5335 ;;
bf9f3bac 5336esac
bf9f3bac 5337
5338fi
8934764e
BB
5339{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5340$as_echo "$lt_cv_deplibs_check_method" >&6; }
5341file_magic_cmd=$lt_cv_file_magic_cmd
5342deplibs_check_method=$lt_cv_deplibs_check_method
5343test -z "$deplibs_check_method" && deplibs_check_method=unknown
5344
5345
5346
5347
5348
5349
5350
5351
5352
bf9f3bac 5353
bf9f3bac 5354
bf9f3bac 5355
bf9f3bac 5356if test -n "$ac_tool_prefix"; then
8934764e
BB
5357 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5358set dummy ${ac_tool_prefix}ar; ac_word=$2
5359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5360$as_echo_n "checking for $ac_word... " >&6; }
5361if test "${ac_cv_prog_AR+set}" = set; then
5362 $as_echo_n "(cached) " >&6
bf9f3bac 5363else
8934764e
BB
5364 if test -n "$AR"; then
5365 ac_cv_prog_AR="$AR" # Let the user override the test.
bf9f3bac 5366else
5367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368for as_dir in $PATH
5369do
5370 IFS=$as_save_IFS
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_AR="${ac_tool_prefix}ar"
5375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5376 break 2
5377 fi
5378done
5379done
8934764e 5380IFS=$as_save_IFS
bf9f3bac 5381
5382fi
5383fi
8934764e
BB
5384AR=$ac_cv_prog_AR
5385if test -n "$AR"; then
5386 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5387$as_echo "$AR" >&6; }
bf9f3bac 5388else
8934764e
BB
5389 { $as_echo "$as_me:$LINENO: result: no" >&5
5390$as_echo "no" >&6; }
bf9f3bac 5391fi
5392
8934764e 5393
bf9f3bac 5394fi
8934764e
BB
5395if test -z "$ac_cv_prog_AR"; then
5396 ac_ct_AR=$AR
5397 # Extract the first word of "ar", so it can be a program name with args.
5398set dummy ar; ac_word=$2
5399{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400$as_echo_n "checking for $ac_word... " >&6; }
5401if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5402 $as_echo_n "(cached) " >&6
bf9f3bac 5403else
8934764e
BB
5404 if test -n "$ac_ct_AR"; then
5405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
bf9f3bac 5406else
5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408for as_dir in $PATH
5409do
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_ac_ct_AR="ar"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5416 break 2
5417 fi
5418done
5419done
8934764e 5420IFS=$as_save_IFS
bf9f3bac 5421
5422fi
5423fi
8934764e
BB
5424ac_ct_AR=$ac_cv_prog_ac_ct_AR
5425if test -n "$ac_ct_AR"; then
5426 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5427$as_echo "$ac_ct_AR" >&6; }
bf9f3bac 5428else
8934764e
BB
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430$as_echo "no" >&6; }
bf9f3bac 5431fi
5432
8934764e
BB
5433 if test "x$ac_ct_AR" = x; then
5434 AR="false"
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437yes:)
5438{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440ac_tool_warned=yes ;;
5441esac
5442 AR=$ac_ct_AR
5443 fi
5444else
5445 AR="$ac_cv_prog_AR"
bf9f3bac 5446fi
5447
8934764e
BB
5448test -z "$AR" && AR=ar
5449test -z "$AR_FLAGS" && AR_FLAGS=cru
bf9f3bac 5450
bf9f3bac 5451
bf9f3bac 5452
bf9f3bac 5453
8934764e
BB
5454
5455
5456
5457
5458
5459
5460
5461if test -n "$ac_tool_prefix"; then
5462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5463set dummy ${ac_tool_prefix}strip; ac_word=$2
5464{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if test "${ac_cv_prog_STRIP+set}" = set; then
5467 $as_echo_n "(cached) " >&6
bf9f3bac 5468else
8934764e
BB
5469 if test -n "$STRIP"; then
5470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483done
5484done
5485IFS=$as_save_IFS
bf9f3bac 5486
bf9f3bac 5487fi
bf9f3bac 5488fi
8934764e
BB
5489STRIP=$ac_cv_prog_STRIP
5490if test -n "$STRIP"; then
5491 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5492$as_echo "$STRIP" >&6; }
bf9f3bac 5493else
8934764e
BB
5494 { $as_echo "$as_me:$LINENO: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
bf9f3bac 5497
bf9f3bac 5498
8934764e
BB
5499fi
5500if test -z "$ac_cv_prog_STRIP"; then
5501 ac_ct_STRIP=$STRIP
5502 # Extract the first word of "strip", so it can be a program name with args.
5503set dummy strip; ac_word=$2
5504{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
5506if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5507 $as_echo_n "(cached) " >&6
bf9f3bac 5508else
8934764e
BB
5509 if test -n "$ac_ct_STRIP"; then
5510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_ac_ct_STRIP="strip"
5520 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523done
5524done
5525IFS=$as_save_IFS
bf9f3bac 5526
bf9f3bac 5527fi
bf9f3bac 5528fi
8934764e
BB
5529ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5530if test -n "$ac_ct_STRIP"; then
5531 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5532$as_echo "$ac_ct_STRIP" >&6; }
bf9f3bac 5533else
8934764e
BB
5534 { $as_echo "$as_me:$LINENO: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538 if test "x$ac_ct_STRIP" = x; then
5539 STRIP=":"
bf9f3bac 5540 else
8934764e
BB
5541 case $cross_compiling:$ac_tool_warned in
5542yes:)
5543{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545ac_tool_warned=yes ;;
5546esac
5547 STRIP=$ac_ct_STRIP
bf9f3bac 5548 fi
8934764e
BB
5549else
5550 STRIP="$ac_cv_prog_STRIP"
bf9f3bac 5551fi
bf9f3bac 5552
8934764e 5553test -z "$STRIP" && STRIP=:
bf9f3bac 5554
bf9f3bac 5555
bf9f3bac 5556
bf9f3bac 5557
bf9f3bac 5558
bf9f3bac 5559
8934764e
BB
5560if test -n "$ac_tool_prefix"; then
5561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5562set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5564$as_echo_n "checking for $ac_word... " >&6; }
5565if test "${ac_cv_prog_RANLIB+set}" = set; then
5566 $as_echo_n "(cached) " >&6
bf9f3bac 5567else
8934764e
BB
5568 if test -n "$RANLIB"; then
5569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5570else
5571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572for as_dir in $PATH
5573do
5574 IFS=$as_save_IFS
5575 test -z "$as_dir" && as_dir=.
5576 for ac_exec_ext in '' $ac_executable_extensions; do
5577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5580 break 2
5581 fi
5582done
5583done
5584IFS=$as_save_IFS
bf9f3bac 5585
5586fi
8934764e
BB
5587fi
5588RANLIB=$ac_cv_prog_RANLIB
5589if test -n "$RANLIB"; then
5590 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5591$as_echo "$RANLIB" >&6; }
bf9f3bac 5592else
8934764e
BB
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594$as_echo "no" >&6; }
bf9f3bac 5595fi
5596
5597
8934764e
BB
5598fi
5599if test -z "$ac_cv_prog_RANLIB"; then
5600 ac_ct_RANLIB=$RANLIB
5601 # Extract the first word of "ranlib", so it can be a program name with args.
5602set dummy ranlib; ac_word=$2
5603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5606 $as_echo_n "(cached) " >&6
bf9f3bac 5607else
8934764e
BB
5608 if test -n "$ac_ct_RANLIB"; then
5609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
bf9f3bac 5613do
8934764e
BB
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_ac_ct_RANLIB="ranlib"
5619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
bf9f3bac 5621 fi
8934764e
BB
5622done
5623done
5624IFS=$as_save_IFS
5625
bf9f3bac 5626fi
8934764e
BB
5627fi
5628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5629if test -n "$ac_ct_RANLIB"; then
5630 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5631$as_echo "$ac_ct_RANLIB" >&6; }
bf9f3bac 5632else
8934764e
BB
5633 { $as_echo "$as_me:$LINENO: result: no" >&5
5634$as_echo "no" >&6; }
bf9f3bac 5635fi
bf9f3bac 5636
8934764e
BB
5637 if test "x$ac_ct_RANLIB" = x; then
5638 RANLIB=":"
bf9f3bac 5639 else
8934764e
BB
5640 case $cross_compiling:$ac_tool_warned in
5641yes:)
5642{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644ac_tool_warned=yes ;;
5645esac
5646 RANLIB=$ac_ct_RANLIB
bf9f3bac 5647 fi
5648else
8934764e 5649 RANLIB="$ac_cv_prog_RANLIB"
bf9f3bac 5650fi
bf9f3bac 5651
8934764e 5652test -z "$RANLIB" && RANLIB=:
bf9f3bac 5653
bf9f3bac 5654
bf9f3bac 5655
bf9f3bac 5656
bf9f3bac 5657
bf9f3bac 5658
8934764e
BB
5659# Determine commands to create old-style static archives.
5660old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5661old_postinstall_cmds='chmod 644 $oldlib'
5662old_postuninstall_cmds=
bf9f3bac 5663
8934764e
BB
5664if test -n "$RANLIB"; then
5665 case $host_os in
5666 openbsd*)
5667 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5668 ;;
5669 *)
5670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5671 ;;
5672 esac
5673 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
bf9f3bac 5674fi
5675
bf9f3bac 5676
bf9f3bac 5677
5678
bf9f3bac 5679
bf9f3bac 5680
bf9f3bac 5681
bf9f3bac 5682
bf9f3bac 5683
bf9f3bac 5684
5685
bf9f3bac 5686
bf9f3bac 5687
bf9f3bac 5688
bf9f3bac 5689
bf9f3bac 5690
bf9f3bac 5691
bf9f3bac 5692
bf9f3bac 5693
bf9f3bac 5694
5695
5696
bf9f3bac 5697
bf9f3bac 5698
bf9f3bac 5699
bf9f3bac 5700
bf9f3bac 5701
bf9f3bac 5702
bf9f3bac 5703
bf9f3bac 5704
bf9f3bac 5705
bf9f3bac 5706
bf9f3bac 5707
5708
8934764e
BB
5709# If no C compiler was specified, use CC.
5710LTCC=${LTCC-"$CC"}
5711
5712# If no C compiler flags were specified, use CFLAGS.
5713LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5714
5715# Allow CC to be a program name with arguments.
5716compiler=$CC
bf9f3bac 5717
5718
5719# Check for command to grab the raw symbol name followed by C symbol from nm.
8934764e
BB
5720{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5721$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
bf9f3bac 5722if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8934764e 5723 $as_echo_n "(cached) " >&6
bf9f3bac 5724else
5725
5726# These are sane defaults that work on at least a few old systems.
5727# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5728
5729# Character class describing NM global symbol codes.
5730symcode='[BCDEGRST]'
5731
5732# Regexp to match symbols that can be accessed directly from C.
5733sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5734
bf9f3bac 5735# Define system-specific variables.
5736case $host_os in
5737aix*)
5738 symcode='[BCDT]'
5739 ;;
8934764e 5740cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 5741 symcode='[ABCDGISTW]'
5742 ;;
8934764e 5743hpux*)
bf9f3bac 5744 if test "$host_cpu" = ia64; then
5745 symcode='[ABCDEGRST]'
5746 fi
bf9f3bac 5747 ;;
5748irix* | nonstopux*)
5749 symcode='[BCDEGRST]'
5750 ;;
5751osf*)
5752 symcode='[BCDEGQRST]'
5753 ;;
5754solaris*)
5755 symcode='[BDRT]'
5756 ;;
5757sco3.2v5*)
5758 symcode='[DT]'
5759 ;;
5760sysv4.2uw2*)
5761 symcode='[DT]'
5762 ;;
5763sysv5* | sco5v6* | unixware* | OpenUNIX*)
5764 symcode='[ABDT]'
5765 ;;
5766sysv4)
5767 symcode='[DFNSTU]'
5768 ;;
5769esac
5770
8934764e
BB
5771# If we're using GNU nm, then use its standard symbol codes.
5772case `$NM -V 2>&1` in
5773*GNU* | *'with BFD'*)
5774 symcode='[ABCDGIRSTW]' ;;
5775esac
5776
5777# Transform an extracted symbol line into a proper C declaration.
5778# Some systems (esp. on ia64) link data and code symbols differently,
5779# so use this general approach.
5780lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5781
5782# Transform an extracted symbol line into symbol name and symbol address
5783lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5784lt_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'"
5785
bf9f3bac 5786# Handle CRLF in mingw tool chain
5787opt_cr=
5788case $build_os in
5789mingw*)
8934764e 5790 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
bf9f3bac 5791 ;;
5792esac
5793
8934764e 5794# Try without a prefix underscore, then with it.
bf9f3bac 5795for ac_symprfx in "" "_"; do
5796
5797 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5798 symxfrm="\\1 $ac_symprfx\\2 \\2"
5799
5800 # Write the raw and C identifiers.
8934764e
BB
5801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5802 # Fake it for dumpbin and say T for any non-static function
5803 # and D for any global variable.
5804 # Also find C++ and __fastcall symbols from MSVC++,
5805 # which start with @ or ?.
5806 lt_cv_sys_global_symbol_pipe="$AWK '"\
5807" {last_section=section; section=\$ 3};"\
5808" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5809" \$ 0!~/External *\|/{next};"\
5810" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5811" {if(hide[section]) next};"\
5812" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5813" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5814" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5815" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5816" ' prfx=^$ac_symprfx"
5817 else
5818 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5819 fi
bf9f3bac 5820
5821 # Check to see that the pipe works correctly.
5822 pipe_works=no
5823
5824 rm -f conftest*
8934764e 5825 cat > conftest.$ac_ext <<_LT_EOF
bf9f3bac 5826#ifdef __cplusplus
5827extern "C" {
5828#endif
5829char nm_test_var;
8934764e
BB
5830void nm_test_func(void);
5831void nm_test_func(void){}
bf9f3bac 5832#ifdef __cplusplus
5833}
5834#endif
5835int main(){nm_test_var='a';nm_test_func();return(0);}
8934764e 5836_LT_EOF
bf9f3bac 5837
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>&5
5840 ac_status=$?
8934764e 5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5842 (exit $ac_status); }; then
5843 # Now try to grab the symbols.
5844 nlist=conftest.nm
5845 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5846 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5847 ac_status=$?
8934764e 5848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5849 (exit $ac_status); } && test -s "$nlist"; then
5850 # Try sorting and uniquifying the output.
5851 if sort "$nlist" | uniq > "$nlist"T; then
5852 mv -f "$nlist"T "$nlist"
5853 else
5854 rm -f "$nlist"T
5855 fi
5856
5857 # Make sure that we snagged all the symbols we need.
8934764e
BB
5858 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5859 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5860 cat <<_LT_EOF > conftest.$ac_ext
bf9f3bac 5861#ifdef __cplusplus
5862extern "C" {
5863#endif
5864
8934764e 5865_LT_EOF
bf9f3bac 5866 # Now generate the symbol file.
8934764e 5867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
bf9f3bac 5868
8934764e 5869 cat <<_LT_EOF >> conftest.$ac_ext
bf9f3bac 5870
8934764e 5871/* The mapping between symbol names and symbols. */
bf9f3bac 5872const struct {
5873 const char *name;
8934764e 5874 void *address;
bf9f3bac 5875}
8934764e 5876lt__PROGRAM__LTX_preloaded_symbols[] =
bf9f3bac 5877{
8934764e
BB
5878 { "@PROGRAM@", (void *) 0 },
5879_LT_EOF
5880 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5881 cat <<\_LT_EOF >> conftest.$ac_ext
5882 {0, (void *) 0}
bf9f3bac 5883};
5884
8934764e
BB
5885/* This works around a problem in FreeBSD linker */
5886#ifdef FREEBSD_WORKAROUND
5887static const void *lt_preloaded_setup() {
5888 return lt__PROGRAM__LTX_preloaded_symbols;
5889}
5890#endif
5891
bf9f3bac 5892#ifdef __cplusplus
5893}
5894#endif
8934764e 5895_LT_EOF
bf9f3bac 5896 # Now try linking the two files.
5897 mv conftest.$ac_objext conftstm.$ac_objext
5898 lt_save_LIBS="$LIBS"
5899 lt_save_CFLAGS="$CFLAGS"
5900 LIBS="conftstm.$ac_objext"
5901 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5903 (eval $ac_link) 2>&5
5904 ac_status=$?
8934764e 5905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5906 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5907 pipe_works=yes
5908 fi
5909 LIBS="$lt_save_LIBS"
5910 CFLAGS="$lt_save_CFLAGS"
5911 else
5912 echo "cannot find nm_test_func in $nlist" >&5
5913 fi
5914 else
5915 echo "cannot find nm_test_var in $nlist" >&5
5916 fi
5917 else
5918 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5919 fi
5920 else
5921 echo "$progname: failed program was:" >&5
5922 cat conftest.$ac_ext >&5
5923 fi
8934764e 5924 rm -rf conftest* conftst*
bf9f3bac 5925
5926 # Do not use the global_symbol_pipe unless it works.
5927 if test "$pipe_works" = yes; then
5928 break
5929 else
5930 lt_cv_sys_global_symbol_pipe=
5931 fi
5932done
5933
5934fi
5935
5936if test -z "$lt_cv_sys_global_symbol_pipe"; then
5937 lt_cv_sys_global_symbol_to_cdecl=
5938fi
5939if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8934764e
BB
5940 { $as_echo "$as_me:$LINENO: result: failed" >&5
5941$as_echo "failed" >&6; }
bf9f3bac 5942else
8934764e
BB
5943 { $as_echo "$as_me:$LINENO: result: ok" >&5
5944$as_echo "ok" >&6; }
bf9f3bac 5945fi
5946
bf9f3bac 5947
5948
5949
5950
5951
8934764e
BB
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969# Check whether --enable-libtool-lock was given.
5970if test "${enable_libtool_lock+set}" = set; then
5971 enableval=$enable_libtool_lock;
5972fi
5973
5974test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5975
5976# Some flags need to be propagated to the compiler or linker for good
5977# libtool support.
5978case $host in
5979ia64-*-hpux*)
5980 # Find out which ABI we are using.
5981 echo 'int i;' > conftest.$ac_ext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>&5
5984 ac_status=$?
5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; then
5987 case `/usr/bin/file conftest.$ac_objext` in
5988 *ELF-32*)
5989 HPUX_IA64_MODE="32"
5990 ;;
5991 *ELF-64*)
5992 HPUX_IA64_MODE="64"
5993 ;;
5994 esac
bf9f3bac 5995 fi
8934764e
BB
5996 rm -rf conftest*
5997 ;;
5998*-*-irix6*)
5999 # Find out which ABI we are using.
4b2220f0 6000 echo '#line 6000 "configure"' > conftest.$ac_ext
8934764e
BB
6001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002 (eval $ac_compile) 2>&5
6003 ac_status=$?
6004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; then
6006 if test "$lt_cv_prog_gnu_ld" = yes; then
6007 case `/usr/bin/file conftest.$ac_objext` in
6008 *32-bit*)
6009 LD="${LD-ld} -melf32bsmip"
6010 ;;
6011 *N32*)
6012 LD="${LD-ld} -melf32bmipn32"
6013 ;;
6014 *64-bit*)
6015 LD="${LD-ld} -melf64bmip"
6016 ;;
6017 esac
6018 else
6019 case `/usr/bin/file conftest.$ac_objext` in
6020 *32-bit*)
6021 LD="${LD-ld} -32"
6022 ;;
6023 *N32*)
6024 LD="${LD-ld} -n32"
6025 ;;
6026 *64-bit*)
6027 LD="${LD-ld} -64"
6028 ;;
6029 esac
6030 fi
6031 fi
6032 rm -rf conftest*
bf9f3bac 6033 ;;
bf9f3bac 6034
8934764e
BB
6035x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6036s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6037 # Find out which ABI we are using.
6038 echo 'int i;' > conftest.$ac_ext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6041 ac_status=$?
6042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; then
6044 case `/usr/bin/file conftest.o` in
6045 *32-bit*)
6046 case $host in
6047 x86_64-*kfreebsd*-gnu)
6048 LD="${LD-ld} -m elf_i386_fbsd"
6049 ;;
6050 x86_64-*linux*)
6051 LD="${LD-ld} -m elf_i386"
6052 ;;
6053 ppc64-*linux*|powerpc64-*linux*)
6054 LD="${LD-ld} -m elf32ppclinux"
6055 ;;
6056 s390x-*linux*)
6057 LD="${LD-ld} -m elf_s390"
6058 ;;
6059 sparc64-*linux*)
6060 LD="${LD-ld} -m elf32_sparc"
6061 ;;
6062 esac
6063 ;;
6064 *64-bit*)
6065 case $host in
6066 x86_64-*kfreebsd*-gnu)
6067 LD="${LD-ld} -m elf_x86_64_fbsd"
6068 ;;
6069 x86_64-*linux*)
6070 LD="${LD-ld} -m elf_x86_64"
6071 ;;
6072 ppc*-*linux*|powerpc*-*linux*)
6073 LD="${LD-ld} -m elf64ppc"
6074 ;;
6075 s390*-*linux*|s390*-*tpf*)
6076 LD="${LD-ld} -m elf64_s390"
6077 ;;
6078 sparc*-*linux*)
6079 LD="${LD-ld} -m elf64_sparc"
6080 ;;
6081 esac
6082 ;;
6083 esac
6084 fi
6085 rm -rf conftest*
6086 ;;
bf9f3bac 6087
8934764e
BB
6088*-*-sco3.2v5*)
6089 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6090 SAVE_CFLAGS="$CFLAGS"
6091 CFLAGS="$CFLAGS -belf"
6092 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6093$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6094if test "${lt_cv_cc_needs_belf+set}" = set; then
6095 $as_echo_n "(cached) " >&6
6096else
6097 ac_ext=c
6098ac_cpp='$CPP $CPPFLAGS'
6099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6101ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6102
8934764e
BB
6103 cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
bf9f3bac 6109
8934764e
BB
6110int
6111main ()
6112{
6113
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
6119if { (ac_try="$ac_link"
6120case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125$as_echo "$ac_try_echo") >&5
6126 (eval "$ac_link") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest$ac_exeext && {
6136 test "$cross_compiling" = yes ||
6137 $as_test_x conftest$ac_exeext
6138 }; then
6139 lt_cv_cc_needs_belf=yes
6140else
6141 $as_echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6143
8934764e
BB
6144 lt_cv_cc_needs_belf=no
6145fi
bf9f3bac 6146
8934764e
BB
6147rm -rf conftest.dSYM
6148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6149 conftest$ac_exeext conftest.$ac_ext
6150 ac_ext=c
6151ac_cpp='$CPP $CPPFLAGS'
6152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6155
8934764e
BB
6156fi
6157{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6158$as_echo "$lt_cv_cc_needs_belf" >&6; }
6159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6161 CFLAGS="$SAVE_CFLAGS"
6162 fi
6163 ;;
6164sparc*-*solaris*)
6165 # Find out which ABI we are using.
6166 echo 'int i;' > conftest.$ac_ext
6167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168 (eval $ac_compile) 2>&5
6169 ac_status=$?
6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }; then
6172 case `/usr/bin/file conftest.o` in
6173 *64-bit*)
6174 case $lt_cv_prog_gnu_ld in
6175 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6176 *)
6177 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6178 LD="${LD-ld} -64"
6179 fi
6180 ;;
6181 esac
6182 ;;
6183 esac
6184 fi
6185 rm -rf conftest*
6186 ;;
6187esac
bf9f3bac 6188
8934764e
BB
6189need_locks="$enable_libtool_lock"
6190
6191
6192 case $host_os in
6193 rhapsody* | darwin*)
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6196set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6197{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
6199if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6200 $as_echo_n "(cached) " >&6
6201else
6202 if test -n "$DSYMUTIL"; then
6203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
bf9f3bac 6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6214 break 2
6215 fi
6216done
6217done
8934764e 6218IFS=$as_save_IFS
bf9f3bac 6219
6220fi
6221fi
8934764e
BB
6222DSYMUTIL=$ac_cv_prog_DSYMUTIL
6223if test -n "$DSYMUTIL"; then
6224 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6225$as_echo "$DSYMUTIL" >&6; }
bf9f3bac 6226else
8934764e
BB
6227 { $as_echo "$as_me:$LINENO: result: no" >&5
6228$as_echo "no" >&6; }
bf9f3bac 6229fi
6230
8934764e 6231
bf9f3bac 6232fi
8934764e
BB
6233if test -z "$ac_cv_prog_DSYMUTIL"; then
6234 ac_ct_DSYMUTIL=$DSYMUTIL
6235 # Extract the first word of "dsymutil", so it can be a program name with args.
6236set dummy dsymutil; ac_word=$2
6237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6240 $as_echo_n "(cached) " >&6
bf9f3bac 6241else
8934764e
BB
6242 if test -n "$ac_ct_DSYMUTIL"; then
6243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
bf9f3bac 6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6254 break 2
6255 fi
6256done
6257done
8934764e 6258IFS=$as_save_IFS
bf9f3bac 6259
bf9f3bac 6260fi
6261fi
8934764e
BB
6262ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6263if test -n "$ac_ct_DSYMUTIL"; then
6264 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6265$as_echo "$ac_ct_DSYMUTIL" >&6; }
bf9f3bac 6266else
8934764e
BB
6267 { $as_echo "$as_me:$LINENO: result: no" >&5
6268$as_echo "no" >&6; }
bf9f3bac 6269fi
6270
8934764e
BB
6271 if test "x$ac_ct_DSYMUTIL" = x; then
6272 DSYMUTIL=":"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275yes:)
6276{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278ac_tool_warned=yes ;;
6279esac
6280 DSYMUTIL=$ac_ct_DSYMUTIL
6281 fi
bf9f3bac 6282else
8934764e 6283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
bf9f3bac 6284fi
6285
8934764e
BB
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6288set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6290$as_echo_n "checking for $ac_word... " >&6; }
6291if test "${ac_cv_prog_NMEDIT+set}" = set; then
6292 $as_echo_n "(cached) " >&6
bf9f3bac 6293else
8934764e
BB
6294 if test -n "$NMEDIT"; then
6295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
bf9f3bac 6296else
6297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298for as_dir in $PATH
6299do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6306 break 2
6307 fi
6308done
6309done
8934764e 6310IFS=$as_save_IFS
bf9f3bac 6311
6312fi
6313fi
8934764e
BB
6314NMEDIT=$ac_cv_prog_NMEDIT
6315if test -n "$NMEDIT"; then
6316 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6317$as_echo "$NMEDIT" >&6; }
bf9f3bac 6318else
8934764e
BB
6319 { $as_echo "$as_me:$LINENO: result: no" >&5
6320$as_echo "no" >&6; }
bf9f3bac 6321fi
6322
8934764e 6323
bf9f3bac 6324fi
8934764e
BB
6325if test -z "$ac_cv_prog_NMEDIT"; then
6326 ac_ct_NMEDIT=$NMEDIT
6327 # Extract the first word of "nmedit", so it can be a program name with args.
6328set dummy nmedit; ac_word=$2
6329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6330$as_echo_n "checking for $ac_word... " >&6; }
6331if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6332 $as_echo_n "(cached) " >&6
bf9f3bac 6333else
8934764e
BB
6334 if test -n "$ac_ct_NMEDIT"; then
6335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
bf9f3bac 6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6346 break 2
6347 fi
6348done
6349done
8934764e 6350IFS=$as_save_IFS
bf9f3bac 6351
bf9f3bac 6352fi
6353fi
8934764e
BB
6354ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6355if test -n "$ac_ct_NMEDIT"; then
6356 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6357$as_echo "$ac_ct_NMEDIT" >&6; }
bf9f3bac 6358else
8934764e
BB
6359 { $as_echo "$as_me:$LINENO: result: no" >&5
6360$as_echo "no" >&6; }
bf9f3bac 6361fi
6362
8934764e
BB
6363 if test "x$ac_ct_NMEDIT" = x; then
6364 NMEDIT=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367yes:)
6368{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370ac_tool_warned=yes ;;
6371esac
6372 NMEDIT=$ac_ct_NMEDIT
6373 fi
bf9f3bac 6374else
8934764e 6375 NMEDIT="$ac_cv_prog_NMEDIT"
bf9f3bac 6376fi
6377
8934764e
BB
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6380set dummy ${ac_tool_prefix}lipo; ac_word=$2
6381{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6382$as_echo_n "checking for $ac_word... " >&6; }
6383if test "${ac_cv_prog_LIPO+set}" = set; then
6384 $as_echo_n "(cached) " >&6
bf9f3bac 6385else
8934764e
BB
6386 if test -n "$LIPO"; then
6387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
bf9f3bac 6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6398 break 2
6399 fi
6400done
6401done
8934764e 6402IFS=$as_save_IFS
bf9f3bac 6403
6404fi
6405fi
8934764e
BB
6406LIPO=$ac_cv_prog_LIPO
6407if test -n "$LIPO"; then
6408 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6409$as_echo "$LIPO" >&6; }
bf9f3bac 6410else
8934764e
BB
6411 { $as_echo "$as_me:$LINENO: result: no" >&5
6412$as_echo "no" >&6; }
bf9f3bac 6413fi
6414
8934764e 6415
bf9f3bac 6416fi
8934764e
BB
6417if test -z "$ac_cv_prog_LIPO"; then
6418 ac_ct_LIPO=$LIPO
6419 # Extract the first word of "lipo", so it can be a program name with args.
6420set dummy lipo; ac_word=$2
6421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6424 $as_echo_n "(cached) " >&6
bf9f3bac 6425else
8934764e
BB
6426 if test -n "$ac_ct_LIPO"; then
6427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
bf9f3bac 6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_LIPO="lipo"
6437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6438 break 2
6439 fi
6440done
6441done
8934764e 6442IFS=$as_save_IFS
bf9f3bac 6443
bf9f3bac 6444fi
6445fi
8934764e
BB
6446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6447if test -n "$ac_ct_LIPO"; then
6448 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6449$as_echo "$ac_ct_LIPO" >&6; }
bf9f3bac 6450else
8934764e
BB
6451 { $as_echo "$as_me:$LINENO: result: no" >&5
6452$as_echo "no" >&6; }
bf9f3bac 6453fi
6454
8934764e
BB
6455 if test "x$ac_ct_LIPO" = x; then
6456 LIPO=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459yes:)
6460{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462ac_tool_warned=yes ;;
6463esac
6464 LIPO=$ac_ct_LIPO
6465 fi
bf9f3bac 6466else
8934764e 6467 LIPO="$ac_cv_prog_LIPO"
bf9f3bac 6468fi
6469
8934764e
BB
6470 if test -n "$ac_tool_prefix"; then
6471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6472set dummy ${ac_tool_prefix}otool; ac_word=$2
6473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if test "${ac_cv_prog_OTOOL+set}" = set; then
6476 $as_echo_n "(cached) " >&6
6477else
6478 if test -n "$OTOOL"; then
6479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
bf9f3bac 6492done
8934764e
BB
6493done
6494IFS=$as_save_IFS
bf9f3bac 6495
8934764e
BB
6496fi
6497fi
6498OTOOL=$ac_cv_prog_OTOOL
6499if test -n "$OTOOL"; then
6500 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6501$as_echo "$OTOOL" >&6; }
bf9f3bac 6502else
8934764e
BB
6503 { $as_echo "$as_me:$LINENO: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
bf9f3bac 6506
bf9f3bac 6507
bf9f3bac 6508fi
8934764e
BB
6509if test -z "$ac_cv_prog_OTOOL"; then
6510 ac_ct_OTOOL=$OTOOL
6511 # Extract the first word of "otool", so it can be a program name with args.
6512set dummy otool; ac_word=$2
6513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6514$as_echo_n "checking for $ac_word... " >&6; }
6515if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6516 $as_echo_n "(cached) " >&6
bf9f3bac 6517else
8934764e
BB
6518 if test -n "$ac_ct_OTOOL"; then
6519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
bf9f3bac 6520else
8934764e
BB
6521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522for as_dir in $PATH
6523do
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_ac_ct_OTOOL="otool"
6529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6531 fi
6532done
6533done
6534IFS=$as_save_IFS
bf9f3bac 6535
bf9f3bac 6536fi
8934764e
BB
6537fi
6538ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6539if test -n "$ac_ct_OTOOL"; then
6540 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6541$as_echo "$ac_ct_OTOOL" >&6; }
bf9f3bac 6542else
8934764e
BB
6543 { $as_echo "$as_me:$LINENO: result: no" >&5
6544$as_echo "no" >&6; }
bf9f3bac 6545fi
6546
8934764e
BB
6547 if test "x$ac_ct_OTOOL" = x; then
6548 OTOOL=":"
bf9f3bac 6549 else
8934764e
BB
6550 case $cross_compiling:$ac_tool_warned in
6551yes:)
6552{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6554ac_tool_warned=yes ;;
6555esac
6556 OTOOL=$ac_ct_OTOOL
bf9f3bac 6557 fi
8934764e
BB
6558else
6559 OTOOL="$ac_cv_prog_OTOOL"
bf9f3bac 6560fi
6561
8934764e
BB
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6564set dummy ${ac_tool_prefix}otool64; ac_word=$2
6565{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566$as_echo_n "checking for $ac_word... " >&6; }
6567if test "${ac_cv_prog_OTOOL64+set}" = set; then
6568 $as_echo_n "(cached) " >&6
6569else
6570 if test -n "$OTOOL64"; then
6571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6572else
6573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574for as_dir in $PATH
6575do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
bf9f3bac 6583 fi
8934764e
BB
6584done
6585done
6586IFS=$as_save_IFS
bf9f3bac 6587
8934764e
BB
6588fi
6589fi
6590OTOOL64=$ac_cv_prog_OTOOL64
6591if test -n "$OTOOL64"; then
6592 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6593$as_echo "$OTOOL64" >&6; }
6594else
6595 { $as_echo "$as_me:$LINENO: result: no" >&5
6596$as_echo "no" >&6; }
6597fi
bf9f3bac 6598
bf9f3bac 6599
8934764e
BB
6600fi
6601if test -z "$ac_cv_prog_OTOOL64"; then
6602 ac_ct_OTOOL64=$OTOOL64
6603 # Extract the first word of "otool64", so it can be a program name with args.
6604set dummy otool64; ac_word=$2
6605{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606$as_echo_n "checking for $ac_word... " >&6; }
6607if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6608 $as_echo_n "(cached) " >&6
6609else
6610 if test -n "$ac_ct_OTOOL64"; then
6611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_OTOOL64="otool64"
6621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624done
6625done
6626IFS=$as_save_IFS
bf9f3bac 6627
8934764e
BB
6628fi
6629fi
6630ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6631if test -n "$ac_ct_OTOOL64"; then
6632 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6633$as_echo "$ac_ct_OTOOL64" >&6; }
6634else
6635 { $as_echo "$as_me:$LINENO: result: no" >&5
6636$as_echo "no" >&6; }
6637fi
bf9f3bac 6638
8934764e
BB
6639 if test "x$ac_ct_OTOOL64" = x; then
6640 OTOOL64=":"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643yes:)
6644{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646ac_tool_warned=yes ;;
6647esac
6648 OTOOL64=$ac_ct_OTOOL64
6649 fi
bf9f3bac 6650else
8934764e
BB
6651 OTOOL64="$ac_cv_prog_OTOOL64"
6652fi
bf9f3bac 6653
bf9f3bac 6654
6655
bf9f3bac 6656
bf9f3bac 6657
bf9f3bac 6658
bf9f3bac 6659
6660
bf9f3bac 6661
bf9f3bac 6662
bf9f3bac 6663
6664
bf9f3bac 6665
bf9f3bac 6666
6667
6668
bf9f3bac 6669
bf9f3bac 6670
6671
bf9f3bac 6672
bf9f3bac 6673
8934764e
BB
6674
6675
6676
6677
6678
6679
6680 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6681$as_echo_n "checking for -single_module linker flag... " >&6; }
6682if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6683 $as_echo_n "(cached) " >&6
bf9f3bac 6684else
8934764e
BB
6685 lt_cv_apple_cc_single_mod=no
6686 if test -z "${LT_MULTI_MODULE}"; then
6687 # By default we will add the -single_module flag. You can override
6688 # by either setting the environment variable LT_MULTI_MODULE
6689 # non-empty at configure time, or by adding -multi_module to the
6690 # link flags.
6691 rm -rf libconftest.dylib*
6692 echo "int foo(void){return 1;}" > conftest.c
6693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694-dynamiclib -Wl,-single_module conftest.c" >&5
6695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6697 _lt_result=$?
6698 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6699 lt_cv_apple_cc_single_mod=yes
6700 else
6701 cat conftest.err >&5
6702 fi
6703 rm -rf libconftest.dylib*
6704 rm -f conftest.*
6705 fi
bf9f3bac 6706fi
8934764e
BB
6707{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6708$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6709 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6710$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6711if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6712 $as_echo_n "(cached) " >&6
6713else
6714 lt_cv_ld_exported_symbols_list=no
6715 save_LDFLAGS=$LDFLAGS
6716 echo "_main" > conftest.sym
6717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6718 cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h. */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h. */
bf9f3bac 6724
8934764e
BB
6725int
6726main ()
6727{
bf9f3bac 6728
8934764e
BB
6729 ;
6730 return 0;
6731}
6732_ACEOF
6733rm -f conftest.$ac_objext conftest$ac_exeext
6734if { (ac_try="$ac_link"
6735case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738esac
6739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6740$as_echo "$ac_try_echo") >&5
6741 (eval "$ac_link") 2>conftest.er1
6742 ac_status=$?
6743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
6746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && {
6748 test -z "$ac_c_werror_flag" ||
6749 test ! -s conftest.err
6750 } && test -s conftest$ac_exeext && {
6751 test "$cross_compiling" = yes ||
6752 $as_test_x conftest$ac_exeext
6753 }; then
6754 lt_cv_ld_exported_symbols_list=yes
6755else
6756 $as_echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6758
8934764e
BB
6759 lt_cv_ld_exported_symbols_list=no
6760fi
bf9f3bac 6761
8934764e
BB
6762rm -rf conftest.dSYM
6763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6764 conftest$ac_exeext conftest.$ac_ext
6765 LDFLAGS="$save_LDFLAGS"
bf9f3bac 6766
8934764e
BB
6767fi
6768{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6769$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
bf9f3bac 6770 case $host_os in
8934764e
BB
6771 rhapsody* | darwin1.[012])
6772 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6773 darwin1.*)
6774 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6775 darwin*) # darwin 5.x on
6776 # if running on 10.5 or later, the deployment target defaults
6777 # to the OS version, if on x86, and 10.4, the deployment
6778 # target defaults to 10.4. Don't you love it?
6779 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6780 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6781 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6782 10.[012]*)
6783 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6784 10.*)
6785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6786 esac
6787 ;;
6788 esac
6789 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6790 _lt_dar_single_mod='$single_module'
6791 fi
6792 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6793 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6794 else
6795 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6796 fi
6797 if test "$DSYMUTIL" != ":"; then
6798 _lt_dsymutil='~$DSYMUTIL $lib || :'
6799 else
6800 _lt_dsymutil=
6801 fi
6802 ;;
6803 esac
bf9f3bac 6804
8934764e
BB
6805ac_ext=c
6806ac_cpp='$CPP $CPPFLAGS'
6807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6811$as_echo_n "checking how to run the C preprocessor... " >&6; }
6812# On Suns, sometimes $CPP names a directory.
6813if test -n "$CPP" && test -d "$CPP"; then
6814 CPP=
6815fi
6816if test -z "$CPP"; then
6817 if test "${ac_cv_prog_CPP+set}" = set; then
6818 $as_echo_n "(cached) " >&6
6819else
6820 # Double quotes because CPP needs to be expanded
6821 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6822 do
6823 ac_preproc_ok=false
6824for ac_c_preproc_warn_flag in '' yes
6825do
6826 # Use a header file that comes with gcc, so configuring glibc
6827 # with a fresh cross-compiler works.
6828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6829 # <limits.h> exists even on freestanding compilers.
6830 # On the NeXT, cc -E runs the code through the compiler's parser,
6831 # not just through cpp. "Syntax error" is here to catch this case.
6832 cat >conftest.$ac_ext <<_ACEOF
6833/* confdefs.h. */
6834_ACEOF
6835cat confdefs.h >>conftest.$ac_ext
6836cat >>conftest.$ac_ext <<_ACEOF
6837/* end confdefs.h. */
6838#ifdef __STDC__
6839# include <limits.h>
6840#else
6841# include <assert.h>
6842#endif
6843 Syntax error
6844_ACEOF
6845if { (ac_try="$ac_cpp conftest.$ac_ext"
6846case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849esac
6850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6851$as_echo "$ac_try_echo") >&5
6852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6853 ac_status=$?
6854 grep -v '^ *+' conftest.er1 >conftest.err
6855 rm -f conftest.er1
6856 cat conftest.err >&5
6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } >/dev/null && {
6859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 }; then
6862 :
6863else
6864 $as_echo "$as_me: failed program was:" >&5
6865sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6866
8934764e
BB
6867 # Broken: fails on valid input.
6868continue
6869fi
bf9f3bac 6870
8934764e 6871rm -f conftest.err conftest.$ac_ext
bf9f3bac 6872
8934764e
BB
6873 # OK, works on sane cases. Now check whether nonexistent headers
6874 # can be detected and how.
6875 cat >conftest.$ac_ext <<_ACEOF
6876/* confdefs.h. */
6877_ACEOF
6878cat confdefs.h >>conftest.$ac_ext
6879cat >>conftest.$ac_ext <<_ACEOF
6880/* end confdefs.h. */
6881#include <ac_nonexistent.h>
6882_ACEOF
6883if { (ac_try="$ac_cpp conftest.$ac_ext"
6884case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6887esac
6888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6889$as_echo "$ac_try_echo") >&5
6890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } >/dev/null && {
6897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 }; then
6900 # Broken: success on invalid input.
6901continue
6902else
6903 $as_echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6905
8934764e
BB
6906 # Passes both tests.
6907ac_preproc_ok=:
6908break
6909fi
bf9f3bac 6910
8934764e 6911rm -f conftest.err conftest.$ac_ext
bf9f3bac 6912
8934764e
BB
6913done
6914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6915rm -f conftest.err conftest.$ac_ext
6916if $ac_preproc_ok; then
6917 break
6918fi
bf9f3bac 6919
8934764e
BB
6920 done
6921 ac_cv_prog_CPP=$CPP
bf9f3bac 6922
8934764e
BB
6923fi
6924 CPP=$ac_cv_prog_CPP
6925else
6926 ac_cv_prog_CPP=$CPP
6927fi
6928{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6929$as_echo "$CPP" >&6; }
6930ac_preproc_ok=false
6931for ac_c_preproc_warn_flag in '' yes
6932do
6933 # Use a header file that comes with gcc, so configuring glibc
6934 # with a fresh cross-compiler works.
6935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6936 # <limits.h> exists even on freestanding compilers.
6937 # On the NeXT, cc -E runs the code through the compiler's parser,
6938 # not just through cpp. "Syntax error" is here to catch this case.
6939 cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h. */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h. */
6945#ifdef __STDC__
6946# include <limits.h>
6947#else
6948# include <assert.h>
6949#endif
6950 Syntax error
6951_ACEOF
6952if { (ac_try="$ac_cpp conftest.$ac_ext"
6953case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956esac
6957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6958$as_echo "$ac_try_echo") >&5
6959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6960 ac_status=$?
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
6964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); } >/dev/null && {
6966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 }; then
6969 :
6970else
6971 $as_echo "$as_me: failed program was:" >&5
6972sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6973
8934764e
BB
6974 # Broken: fails on valid input.
6975continue
6976fi
bf9f3bac 6977
8934764e 6978rm -f conftest.err conftest.$ac_ext
bf9f3bac 6979
8934764e
BB
6980 # OK, works on sane cases. Now check whether nonexistent headers
6981 # can be detected and how.
6982 cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h. */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h. */
6988#include <ac_nonexistent.h>
6989_ACEOF
6990if { (ac_try="$ac_cpp conftest.$ac_ext"
6991case "(($ac_try" in
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6994esac
6995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996$as_echo "$ac_try_echo") >&5
6997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6998 ac_status=$?
6999 grep -v '^ *+' conftest.er1 >conftest.err
7000 rm -f conftest.er1
7001 cat conftest.err >&5
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } >/dev/null && {
7004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 }; then
7007 # Broken: success on invalid input.
7008continue
7009else
7010 $as_echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7012
8934764e
BB
7013 # Passes both tests.
7014ac_preproc_ok=:
7015break
7016fi
bf9f3bac 7017
8934764e 7018rm -f conftest.err conftest.$ac_ext
bf9f3bac 7019
8934764e
BB
7020done
7021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022rm -f conftest.err conftest.$ac_ext
7023if $ac_preproc_ok; then
7024 :
7025else
7026 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7028{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7029See \`config.log' for more details." >&5
7030$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7031See \`config.log' for more details." >&2;}
7032 { (exit 1); exit 1; }; }; }
7033fi
bf9f3bac 7034
8934764e
BB
7035ac_ext=c
7036ac_cpp='$CPP $CPPFLAGS'
7037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 7040
bf9f3bac 7041
8934764e
BB
7042{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7043$as_echo_n "checking for ANSI C header files... " >&6; }
7044if test "${ac_cv_header_stdc+set}" = set; then
7045 $as_echo_n "(cached) " >&6
7046else
7047 cat >conftest.$ac_ext <<_ACEOF
7048/* confdefs.h. */
7049_ACEOF
7050cat confdefs.h >>conftest.$ac_ext
7051cat >>conftest.$ac_ext <<_ACEOF
7052/* end confdefs.h. */
7053#include <stdlib.h>
7054#include <stdarg.h>
7055#include <string.h>
7056#include <float.h>
bf9f3bac 7057
8934764e
BB
7058int
7059main ()
7060{
bf9f3bac 7061
8934764e
BB
7062 ;
7063 return 0;
7064}
7065_ACEOF
7066rm -f conftest.$ac_objext
7067if { (ac_try="$ac_compile"
7068case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
7072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073$as_echo "$ac_try_echo") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_header_stdc=yes
bf9f3bac 7085else
8934764e
BB
7086 $as_echo "$as_me: failed program was:" >&5
7087sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7088
8934764e 7089 ac_cv_header_stdc=no
bf9f3bac 7090fi
bf9f3bac 7091
8934764e 7092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7093
8934764e
BB
7094if test $ac_cv_header_stdc = yes; then
7095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7096 cat >conftest.$ac_ext <<_ACEOF
7097/* confdefs.h. */
7098_ACEOF
7099cat confdefs.h >>conftest.$ac_ext
7100cat >>conftest.$ac_ext <<_ACEOF
7101/* end confdefs.h. */
7102#include <string.h>
bf9f3bac 7103
8934764e
BB
7104_ACEOF
7105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106 $EGREP "memchr" >/dev/null 2>&1; then
7107 :
bf9f3bac 7108else
8934764e
BB
7109 ac_cv_header_stdc=no
7110fi
7111rm -f conftest*
bf9f3bac 7112
7113fi
bf9f3bac 7114
8934764e
BB
7115if test $ac_cv_header_stdc = yes; then
7116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7117 cat >conftest.$ac_ext <<_ACEOF
7118/* confdefs.h. */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h. */
7123#include <stdlib.h>
7124
7125_ACEOF
7126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "free" >/dev/null 2>&1; then
7128 :
bf9f3bac 7129else
8934764e 7130 ac_cv_header_stdc=no
bf9f3bac 7131fi
8934764e 7132rm -f conftest*
bf9f3bac 7133
8934764e 7134fi
bf9f3bac 7135
8934764e
BB
7136if test $ac_cv_header_stdc = yes; then
7137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7138 if test "$cross_compiling" = yes; then
7139 :
bf9f3bac 7140else
8934764e
BB
7141 cat >conftest.$ac_ext <<_ACEOF
7142/* confdefs.h. */
7143_ACEOF
7144cat confdefs.h >>conftest.$ac_ext
7145cat >>conftest.$ac_ext <<_ACEOF
7146/* end confdefs.h. */
7147#include <ctype.h>
7148#include <stdlib.h>
7149#if ((' ' & 0x0FF) == 0x020)
7150# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7151# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7152#else
7153# define ISLOWER(c) \
7154 (('a' <= (c) && (c) <= 'i') \
7155 || ('j' <= (c) && (c) <= 'r') \
7156 || ('s' <= (c) && (c) <= 'z'))
7157# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7158#endif
bf9f3bac 7159
8934764e
BB
7160#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7161int
7162main ()
7163{
7164 int i;
7165 for (i = 0; i < 256; i++)
7166 if (XOR (islower (i), ISLOWER (i))
7167 || toupper (i) != TOUPPER (i))
7168 return 2;
7169 return 0;
7170}
7171_ACEOF
7172rm -f conftest$ac_exeext
7173if { (ac_try="$ac_link"
7174case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177esac
7178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7179$as_echo "$ac_try_echo") >&5
7180 (eval "$ac_link") 2>&5
7181 ac_status=$?
7182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7184 { (case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
7188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189$as_echo "$ac_try_echo") >&5
7190 (eval "$ac_try") 2>&5
7191 ac_status=$?
7192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 :
7195else
7196 $as_echo "$as_me: program exited with status $ac_status" >&5
7197$as_echo "$as_me: failed program was:" >&5
7198sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7199
8934764e
BB
7200( exit $ac_status )
7201ac_cv_header_stdc=no
7202fi
7203rm -rf conftest.dSYM
7204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7205fi
bf9f3bac 7206
7207
bf9f3bac 7208fi
8934764e
BB
7209fi
7210{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7211$as_echo "$ac_cv_header_stdc" >&6; }
7212if test $ac_cv_header_stdc = yes; then
bf9f3bac 7213
8934764e
BB
7214cat >>confdefs.h <<\_ACEOF
7215#define STDC_HEADERS 1
7216_ACEOF
bf9f3bac 7217
8934764e 7218fi
bf9f3bac 7219
8934764e 7220# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bf9f3bac 7221
bf9f3bac 7222
bf9f3bac 7223
bf9f3bac 7224
bf9f3bac 7225
bf9f3bac 7226
bf9f3bac 7227
bf9f3bac 7228
bf9f3bac 7229
8934764e
BB
7230for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7231 inttypes.h stdint.h unistd.h
7232do
7233as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7234{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7235$as_echo_n "checking for $ac_header... " >&6; }
7236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7237 $as_echo_n "(cached) " >&6
7238else
7239 cat >conftest.$ac_ext <<_ACEOF
7240/* confdefs.h. */
7241_ACEOF
7242cat confdefs.h >>conftest.$ac_ext
7243cat >>conftest.$ac_ext <<_ACEOF
7244/* end confdefs.h. */
7245$ac_includes_default
bf9f3bac 7246
8934764e
BB
7247#include <$ac_header>
7248_ACEOF
7249rm -f conftest.$ac_objext
7250if { (ac_try="$ac_compile"
7251case "(($ac_try" in
7252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7253 *) ac_try_echo=$ac_try;;
7254esac
7255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7256$as_echo "$ac_try_echo") >&5
7257 (eval "$ac_compile") 2>conftest.er1
7258 ac_status=$?
7259 grep -v '^ *+' conftest.er1 >conftest.err
7260 rm -f conftest.er1
7261 cat conftest.err >&5
7262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } && {
7264 test -z "$ac_c_werror_flag" ||
7265 test ! -s conftest.err
7266 } && test -s conftest.$ac_objext; then
7267 eval "$as_ac_Header=yes"
7268else
7269 $as_echo "$as_me: failed program was:" >&5
7270sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7271
8934764e
BB
7272 eval "$as_ac_Header=no"
7273fi
bf9f3bac 7274
8934764e
BB
7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276fi
7277ac_res=`eval 'as_val=${'$as_ac_Header'}
7278 $as_echo "$as_val"'`
7279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7280$as_echo "$ac_res" >&6; }
7281as_val=`eval 'as_val=${'$as_ac_Header'}
7282 $as_echo "$as_val"'`
7283 if test "x$as_val" = x""yes; then
7284 cat >>confdefs.h <<_ACEOF
7285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7286_ACEOF
bf9f3bac 7287
8934764e 7288fi
bf9f3bac 7289
8934764e 7290done
bf9f3bac 7291
bf9f3bac 7292
bf9f3bac 7293
8934764e
BB
7294for ac_header in dlfcn.h
7295do
7296as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7298$as_echo_n "checking for $ac_header... " >&6; }
7299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7300 $as_echo_n "(cached) " >&6
7301else
7302 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 7303/* confdefs.h. */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h. */
8934764e 7308$ac_includes_default
bf9f3bac 7309
8934764e 7310#include <$ac_header>
bf9f3bac 7311_ACEOF
8934764e
BB
7312rm -f conftest.$ac_objext
7313if { (ac_try="$ac_compile"
7314case "(($ac_try" in
7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7317esac
7318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7319$as_echo "$ac_try_echo") >&5
7320 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
8934764e
BB
7325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && {
7327 test -z "$ac_c_werror_flag" ||
7328 test ! -s conftest.err
7329 } && test -s conftest.$ac_objext; then
7330 eval "$as_ac_Header=yes"
bf9f3bac 7331else
8934764e 7332 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 7333sed 's/^/| /' conftest.$ac_ext >&5
7334
8934764e 7335 eval "$as_ac_Header=no"
bf9f3bac 7336fi
bf9f3bac 7337
8934764e
BB
7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339fi
7340ac_res=`eval 'as_val=${'$as_ac_Header'}
7341 $as_echo "$as_val"'`
7342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7343$as_echo "$ac_res" >&6; }
7344as_val=`eval 'as_val=${'$as_ac_Header'}
7345 $as_echo "$as_val"'`
7346 if test "x$as_val" = x""yes; then
7347 cat >>confdefs.h <<_ACEOF
7348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bf9f3bac 7349_ACEOF
bf9f3bac 7350
7351fi
bf9f3bac 7352
8934764e 7353done
bf9f3bac 7354
bf9f3bac 7355
bf9f3bac 7356
8934764e 7357# Set options
bf9f3bac 7358
bf9f3bac 7359
bf9f3bac 7360
8934764e 7361 enable_dlopen=no
bf9f3bac 7362
bf9f3bac 7363
8934764e 7364 enable_win32_dll=no
bf9f3bac 7365
bf9f3bac 7366
8934764e
BB
7367 # Check whether --enable-shared was given.
7368if test "${enable_shared+set}" = set; then
7369 enableval=$enable_shared; p=${PACKAGE-default}
7370 case $enableval in
7371 yes) enable_shared=yes ;;
7372 no) enable_shared=no ;;
7373 *)
7374 enable_shared=no
7375 # Look at the argument we got. We use all the common list separators.
7376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377 for pkg in $enableval; do
7378 IFS="$lt_save_ifs"
7379 if test "X$pkg" = "X$p"; then
7380 enable_shared=yes
7381 fi
7382 done
7383 IFS="$lt_save_ifs"
bf9f3bac 7384 ;;
8934764e
BB
7385 esac
7386else
7387 enable_shared=yes
7388fi
bf9f3bac 7389
bf9f3bac 7390
bf9f3bac 7391
bf9f3bac 7392
bf9f3bac 7393
bf9f3bac 7394
bf9f3bac 7395
8934764e
BB
7396
7397
7398 # Check whether --enable-static was given.
7399if test "${enable_static+set}" = set; then
7400 enableval=$enable_static; p=${PACKAGE-default}
7401 case $enableval in
7402 yes) enable_static=yes ;;
7403 no) enable_static=no ;;
7404 *)
7405 enable_static=no
7406 # Look at the argument we got. We use all the common list separators.
7407 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7408 for pkg in $enableval; do
7409 IFS="$lt_save_ifs"
7410 if test "X$pkg" = "X$p"; then
7411 enable_static=yes
7412 fi
7413 done
7414 IFS="$lt_save_ifs"
7415 ;;
7416 esac
bf9f3bac 7417else
8934764e 7418 enable_static=yes
bf9f3bac 7419fi
bf9f3bac 7420
8934764e
BB
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430# Check whether --with-pic was given.
7431if test "${with_pic+set}" = set; then
7432 withval=$with_pic; pic_mode="$withval"
7433else
7434 pic_mode=default
bf9f3bac 7435fi
7436
7437
8934764e
BB
7438test -z "$pic_mode" && pic_mode=default
7439
7440
7441
7442
7443
7444
7445
7446 # Check whether --enable-fast-install was given.
7447if test "${enable_fast_install+set}" = set; then
7448 enableval=$enable_fast_install; p=${PACKAGE-default}
7449 case $enableval in
7450 yes) enable_fast_install=yes ;;
7451 no) enable_fast_install=no ;;
bf9f3bac 7452 *)
8934764e
BB
7453 enable_fast_install=no
7454 # Look at the argument we got. We use all the common list separators.
7455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7456 for pkg in $enableval; do
7457 IFS="$lt_save_ifs"
7458 if test "X$pkg" = "X$p"; then
7459 enable_fast_install=yes
7460 fi
7461 done
7462 IFS="$lt_save_ifs"
bf9f3bac 7463 ;;
7464 esac
8934764e
BB
7465else
7466 enable_fast_install=yes
7467fi
bf9f3bac 7468
bf9f3bac 7469
bf9f3bac 7470
bf9f3bac 7471
bf9f3bac 7472
bf9f3bac 7473
bf9f3bac 7474
bf9f3bac 7475
bf9f3bac 7476
bf9f3bac 7477
bf9f3bac 7478
8934764e
BB
7479# This can be used to rebuild libtool when needed
7480LIBTOOL_DEPS="$ltmain"
bf9f3bac 7481
8934764e
BB
7482# Always use our own libtool.
7483LIBTOOL='$(SHELL) $(top_builddir)/libtool'
bf9f3bac 7484
bf9f3bac 7485
bf9f3bac 7486
bf9f3bac 7487
bf9f3bac 7488
bf9f3bac 7489
bf9f3bac 7490
bf9f3bac 7491
bf9f3bac 7492
bf9f3bac 7493
bf9f3bac 7494
bf9f3bac 7495
bf9f3bac 7496
bf9f3bac 7497
bf9f3bac 7498
bf9f3bac 7499
bf9f3bac 7500
bf9f3bac 7501
bf9f3bac 7502
bf9f3bac 7503
bf9f3bac 7504
bf9f3bac 7505
bf9f3bac 7506
bf9f3bac 7507
bf9f3bac 7508
8934764e 7509test -z "$LN_S" && LN_S="ln -s"
bf9f3bac 7510
bf9f3bac 7511
bf9f3bac 7512
bf9f3bac 7513
bf9f3bac 7514
bf9f3bac 7515
bf9f3bac 7516
bf9f3bac 7517
bf9f3bac 7518
bf9f3bac 7519
bf9f3bac 7520
bf9f3bac 7521
bf9f3bac 7522
bf9f3bac 7523
8934764e
BB
7524if test -n "${ZSH_VERSION+set}" ; then
7525 setopt NO_GLOB_SUBST
7526fi
bf9f3bac 7527
8934764e
BB
7528{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7529$as_echo_n "checking for objdir... " >&6; }
7530if test "${lt_cv_objdir+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7532else
7533 rm -f .libs 2>/dev/null
7534mkdir .libs 2>/dev/null
7535if test -d .libs; then
7536 lt_cv_objdir=.libs
7537else
7538 # MS-DOS does not allow filenames that begin with a dot.
7539 lt_cv_objdir=_libs
7540fi
7541rmdir .libs 2>/dev/null
7542fi
7543{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7544$as_echo "$lt_cv_objdir" >&6; }
7545objdir=$lt_cv_objdir
bf9f3bac 7546
bf9f3bac 7547
bf9f3bac 7548
bf9f3bac 7549
bf9f3bac 7550
8934764e
BB
7551cat >>confdefs.h <<_ACEOF
7552#define LT_OBJDIR "$lt_cv_objdir/"
7553_ACEOF
bf9f3bac 7554
bf9f3bac 7555
bf9f3bac 7556
bf9f3bac 7557
bf9f3bac 7558
bf9f3bac 7559
bf9f3bac 7560
bf9f3bac 7561
bf9f3bac 7562
bf9f3bac 7563
bf9f3bac 7564
bf9f3bac 7565
bf9f3bac 7566
bf9f3bac 7567
bf9f3bac 7568
bf9f3bac 7569
bf9f3bac 7570
8934764e
BB
7571case $host_os in
7572aix3*)
7573 # AIX sometimes has problems with the GCC collect2 program. For some
7574 # reason, if we set the COLLECT_NAMES environment variable, the problems
7575 # vanish in a puff of smoke.
7576 if test "X${COLLECT_NAMES+set}" != Xset; then
7577 COLLECT_NAMES=
7578 export COLLECT_NAMES
7579 fi
7580 ;;
7581esac
bf9f3bac 7582
8934764e
BB
7583# Sed substitution that helps us do robust quoting. It backslashifies
7584# metacharacters that are still active within double-quoted strings.
7585sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
bf9f3bac 7586
8934764e
BB
7587# Same as above, but do not quote variable references.
7588double_quote_subst='s/\(["`\\]\)/\\\1/g'
bf9f3bac 7589
8934764e
BB
7590# Sed substitution to delay expansion of an escaped shell variable in a
7591# double_quote_subst'ed string.
7592delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
bf9f3bac 7593
8934764e
BB
7594# Sed substitution to delay expansion of an escaped single quote.
7595delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
bf9f3bac 7596
8934764e
BB
7597# Sed substitution to avoid accidental globbing in evaled expressions
7598no_glob_subst='s/\*/\\\*/g'
bf9f3bac 7599
8934764e
BB
7600# Global variables:
7601ofile=libtool
7602can_build_shared=yes
bf9f3bac 7603
8934764e
BB
7604# All known linkers require a `.a' archive for static linking (except MSVC,
7605# which needs '.lib').
7606libext=a
bf9f3bac 7607
8934764e 7608with_gnu_ld="$lt_cv_prog_gnu_ld"
bf9f3bac 7609
8934764e
BB
7610old_CC="$CC"
7611old_CFLAGS="$CFLAGS"
bf9f3bac 7612
8934764e
BB
7613# Set sane defaults for various variables
7614test -z "$CC" && CC=cc
7615test -z "$LTCC" && LTCC=$CC
7616test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7617test -z "$LD" && LD=ld
7618test -z "$ac_objext" && ac_objext=o
bf9f3bac 7619
8934764e
BB
7620for cc_temp in $compiler""; do
7621 case $cc_temp in
7622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7624 \-*) ;;
7625 *) break;;
7626 esac
7627done
7628cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
bf9f3bac 7629
bf9f3bac 7630
8934764e
BB
7631# Only perform the check for file, if the check method requires it
7632test -z "$MAGIC_CMD" && MAGIC_CMD=file
7633case $deplibs_check_method in
7634file_magic*)
7635 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7636 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7637$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7638if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7640else
7641 case $MAGIC_CMD in
7642[\\/*] | ?:[\\/]*)
7643 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7644 ;;
7645*)
7646 lt_save_MAGIC_CMD="$MAGIC_CMD"
7647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7648 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7649 for ac_dir in $ac_dummy; do
7650 IFS="$lt_save_ifs"
7651 test -z "$ac_dir" && ac_dir=.
7652 if test -f $ac_dir/${ac_tool_prefix}file; then
7653 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7654 if test -n "$file_magic_test_file"; then
7655 case $deplibs_check_method in
7656 "file_magic "*)
7657 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7658 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7659 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7660 $EGREP "$file_magic_regex" > /dev/null; then
7661 :
7662 else
7663 cat <<_LT_EOF 1>&2
bf9f3bac 7664
8934764e
BB
7665*** Warning: the command libtool uses to detect shared libraries,
7666*** $file_magic_cmd, produces output that libtool cannot recognize.
7667*** The result is that libtool may fail to recognize shared libraries
7668*** as such. This will affect the creation of libtool libraries that
7669*** depend on shared libraries, but programs linked with such libtool
7670*** libraries will work regardless of this problem. Nevertheless, you
7671*** may want to report the problem to your system manager and/or to
7672*** bug-libtool@gnu.org
bf9f3bac 7673
8934764e
BB
7674_LT_EOF
7675 fi ;;
7676 esac
7677 fi
7678 break
7679 fi
7680 done
7681 IFS="$lt_save_ifs"
7682 MAGIC_CMD="$lt_save_MAGIC_CMD"
7683 ;;
7684esac
7685fi
bf9f3bac 7686
8934764e
BB
7687MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7688if test -n "$MAGIC_CMD"; then
7689 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7690$as_echo "$MAGIC_CMD" >&6; }
7691else
7692 { $as_echo "$as_me:$LINENO: result: no" >&5
7693$as_echo "no" >&6; }
7694fi
bf9f3bac 7695
bf9f3bac 7696
bf9f3bac 7697
bf9f3bac 7698
bf9f3bac 7699
8934764e
BB
7700if test -z "$lt_cv_path_MAGIC_CMD"; then
7701 if test -n "$ac_tool_prefix"; then
7702 { $as_echo "$as_me:$LINENO: checking for file" >&5
7703$as_echo_n "checking for file... " >&6; }
7704if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7705 $as_echo_n "(cached) " >&6
7706else
7707 case $MAGIC_CMD in
7708[\\/*] | ?:[\\/]*)
7709 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7710 ;;
7711*)
7712 lt_save_MAGIC_CMD="$MAGIC_CMD"
7713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7714 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7715 for ac_dir in $ac_dummy; do
7716 IFS="$lt_save_ifs"
7717 test -z "$ac_dir" && ac_dir=.
7718 if test -f $ac_dir/file; then
7719 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7720 if test -n "$file_magic_test_file"; then
7721 case $deplibs_check_method in
7722 "file_magic "*)
7723 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7724 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7725 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7726 $EGREP "$file_magic_regex" > /dev/null; then
7727 :
7728 else
7729 cat <<_LT_EOF 1>&2
7730
7731*** Warning: the command libtool uses to detect shared libraries,
7732*** $file_magic_cmd, produces output that libtool cannot recognize.
7733*** The result is that libtool may fail to recognize shared libraries
7734*** as such. This will affect the creation of libtool libraries that
7735*** depend on shared libraries, but programs linked with such libtool
7736*** libraries will work regardless of this problem. Nevertheless, you
7737*** may want to report the problem to your system manager and/or to
7738*** bug-libtool@gnu.org
bf9f3bac 7739
8934764e
BB
7740_LT_EOF
7741 fi ;;
7742 esac
7743 fi
7744 break
7745 fi
7746 done
7747 IFS="$lt_save_ifs"
7748 MAGIC_CMD="$lt_save_MAGIC_CMD"
7749 ;;
7750esac
7751fi
bf9f3bac 7752
8934764e
BB
7753MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7754if test -n "$MAGIC_CMD"; then
7755 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7756$as_echo "$MAGIC_CMD" >&6; }
7757else
7758 { $as_echo "$as_me:$LINENO: result: no" >&5
7759$as_echo "no" >&6; }
7760fi
bf9f3bac 7761
7762
8934764e
BB
7763 else
7764 MAGIC_CMD=:
bf9f3bac 7765 fi
7766fi
7767
8934764e
BB
7768 fi
7769 ;;
7770esac
7771
7772# Use C for the default configuration in the libtool script
bf9f3bac 7773
8934764e 7774lt_save_CC="$CC"
bf9f3bac 7775ac_ext=c
7776ac_cpp='$CPP $CPPFLAGS'
7777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7779ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780
bf9f3bac 7781
8934764e
BB
7782# Source file extension for C test sources.
7783ac_ext=c
bf9f3bac 7784
8934764e
BB
7785# Object file extension for compiled C test sources.
7786objext=o
7787objext=$objext
bf9f3bac 7788
8934764e
BB
7789# Code to be used in simple compile tests
7790lt_simple_compile_test_code="int some_variable = 0;"
7791
7792# Code to be used in simple link tests
7793lt_simple_link_test_code='int main(){return(0);}'
bf9f3bac 7794
7795
bf9f3bac 7796
bf9f3bac 7797
bf9f3bac 7798
bf9f3bac 7799
bf9f3bac 7800
7801# If no C compiler was specified, use CC.
7802LTCC=${LTCC-"$CC"}
7803
7804# If no C compiler flags were specified, use CFLAGS.
7805LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7806
7807# Allow CC to be a program name with arguments.
7808compiler=$CC
7809
8934764e
BB
7810# Save the default compiler, since it gets overwritten when the other
7811# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7812compiler_DEFAULT=$CC
bf9f3bac 7813
7814# save warnings/boilerplate of simple test code
7815ac_outfile=conftest.$ac_objext
8934764e 7816echo "$lt_simple_compile_test_code" >conftest.$ac_ext
bf9f3bac 7817eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7818_lt_compiler_boilerplate=`cat conftest.err`
8934764e 7819$RM conftest*
bf9f3bac 7820
7821ac_outfile=conftest.$ac_objext
8934764e 7822echo "$lt_simple_link_test_code" >conftest.$ac_ext
bf9f3bac 7823eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7824_lt_linker_boilerplate=`cat conftest.err`
8934764e 7825$RM -r conftest*
bf9f3bac 7826
bf9f3bac 7827
8934764e 7828if test -n "$compiler"; then
bf9f3bac 7829
8934764e 7830lt_prog_compiler_no_builtin_flag=
bf9f3bac 7831
7832if test "$GCC" = yes; then
8934764e 7833 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
bf9f3bac 7834
8934764e
BB
7835 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7836$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
bf9f3bac 7837if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8934764e 7838 $as_echo_n "(cached) " >&6
bf9f3bac 7839else
7840 lt_cv_prog_compiler_rtti_exceptions=no
8934764e
BB
7841 ac_outfile=conftest.$ac_objext
7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 7843 lt_compiler_flag="-fno-rtti -fno-exceptions"
7844 # Insert the option either (1) after the last *FLAGS variable, or
7845 # (2) before a word containing "conftest.", or (3) at the end.
7846 # Note that $ac_compile itself does not contain backslashes and begins
7847 # with a dollar sign (not a hyphen), so the echo should work correctly.
7848 # The option is referenced via a variable to avoid confusing sed.
7849 lt_compile=`echo "$ac_compile" | $SED \
7850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7852 -e 's:$: $lt_compiler_flag:'`
4b2220f0 7853 (eval echo "\"\$as_me:7853: $lt_compile\"" >&5)
bf9f3bac 7854 (eval "$lt_compile" 2>conftest.err)
7855 ac_status=$?
7856 cat conftest.err >&5
4b2220f0 7857 echo "$as_me:7857: \$? = $ac_status" >&5
bf9f3bac 7858 if (exit $ac_status) && test -s "$ac_outfile"; then
7859 # The compiler can only warn and ignore the option if not recognized
7860 # So say no if there are warnings other than the usual output.
8934764e 7861 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7864 lt_cv_prog_compiler_rtti_exceptions=yes
7865 fi
7866 fi
8934764e 7867 $RM conftest*
bf9f3bac 7868
7869fi
8934764e
BB
7870{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7871$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
bf9f3bac 7872
7873if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8934764e 7874 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
bf9f3bac 7875else
7876 :
7877fi
7878
7879fi
7880
bf9f3bac 7881
8934764e
BB
7882
7883
7884
7885
7886 lt_prog_compiler_wl=
7887lt_prog_compiler_pic=
7888lt_prog_compiler_static=
7889
7890{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7891$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
bf9f3bac 7892
7893 if test "$GCC" = yes; then
8934764e
BB
7894 lt_prog_compiler_wl='-Wl,'
7895 lt_prog_compiler_static='-static'
bf9f3bac 7896
7897 case $host_os in
7898 aix*)
7899 # All AIX code is PIC.
7900 if test "$host_cpu" = ia64; then
7901 # AIX 5 now supports IA64 processor
8934764e 7902 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7903 fi
7904 ;;
7905
7906 amigaos*)
8934764e
BB
7907 case $host_cpu in
7908 powerpc)
7909 # see comment about AmigaOS4 .so support
7910 lt_prog_compiler_pic='-fPIC'
7911 ;;
7912 m68k)
7913 # FIXME: we need at least 68020 code to build shared libraries, but
7914 # adding the `-m68020' flag to GCC prevents building anything better,
7915 # like `-m68040'.
7916 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7917 ;;
7918 esac
bf9f3bac 7919 ;;
7920
8934764e 7921 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
bf9f3bac 7922 # PIC is the default for these OSes.
7923 ;;
7924
8934764e 7925 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7926 # This hack is so that the source file can tell whether it is being
7927 # built for inclusion in a dll (and should export symbols for example).
8934764e
BB
7928 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7929 # (--disable-auto-import) libraries
7930 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7931 ;;
7932
7933 darwin* | rhapsody*)
7934 # PIC is the default on this platform
7935 # Common symbols not allowed in MH_DYLIB files
8934764e
BB
7936 lt_prog_compiler_pic='-fno-common'
7937 ;;
7938
7939 hpux*)
7940 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7941 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7942 # sets the default TLS model and affects inlining.
7943 case $host_cpu in
7944 hppa*64*)
7945 # +Z the default
7946 ;;
7947 *)
7948 lt_prog_compiler_pic='-fPIC'
7949 ;;
7950 esac
bf9f3bac 7951 ;;
7952
8934764e 7953 interix[3-9]*)
bf9f3bac 7954 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7955 # Instead, we relocate shared libraries at runtime.
7956 ;;
7957
7958 msdosdjgpp*)
7959 # Just because we use GCC doesn't mean we suddenly get shared libraries
7960 # on systems that don't support them.
8934764e 7961 lt_prog_compiler_can_build_shared=no
bf9f3bac 7962 enable_shared=no
7963 ;;
7964
8934764e
BB
7965 *nto* | *qnx*)
7966 # QNX uses GNU C++, but need to define -shared option too, otherwise
7967 # it will coredump.
7968 lt_prog_compiler_pic='-fPIC -shared'
7969 ;;
7970
bf9f3bac 7971 sysv4*MP*)
7972 if test -d /usr/nec; then
8934764e 7973 lt_prog_compiler_pic=-Kconform_pic
bf9f3bac 7974 fi
7975 ;;
7976
bf9f3bac 7977 *)
8934764e 7978 lt_prog_compiler_pic='-fPIC'
bf9f3bac 7979 ;;
7980 esac
7981 else
7982 # PORTME Check for flag to pass linker flags through the system compiler.
7983 case $host_os in
7984 aix*)
8934764e 7985 lt_prog_compiler_wl='-Wl,'
bf9f3bac 7986 if test "$host_cpu" = ia64; then
7987 # AIX 5 now supports IA64 processor
8934764e 7988 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7989 else
8934764e 7990 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
bf9f3bac 7991 fi
7992 ;;
bf9f3bac 7993
8934764e 7994 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7995 # This hack is so that the source file can tell whether it is being
7996 # built for inclusion in a dll (and should export symbols for example).
8934764e 7997 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7998 ;;
7999
8000 hpux9* | hpux10* | hpux11*)
8934764e 8001 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8002 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8003 # not for PA HP-UX.
8004 case $host_cpu in
8005 hppa*64*|ia64*)
8006 # +Z the default
8007 ;;
8008 *)
8934764e 8009 lt_prog_compiler_pic='+Z'
bf9f3bac 8010 ;;
8011 esac
8012 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8934764e 8013 lt_prog_compiler_static='${wl}-a ${wl}archive'
bf9f3bac 8014 ;;
8015
8016 irix5* | irix6* | nonstopux*)
8934764e 8017 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8018 # PIC (with -KPIC) is the default.
8934764e 8019 lt_prog_compiler_static='-non_shared'
bf9f3bac 8020 ;;
8021
8934764e 8022 linux* | k*bsd*-gnu)
bf9f3bac 8023 case $cc_basename in
8934764e
BB
8024 # old Intel for x86_64 which still supported -KPIC.
8025 ecc*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-static'
8029 ;;
8030 # icc used to be incompatible with GCC.
8031 # ICC 10 doesn't accept -KPIC any more.
8032 icc* | ifort*)
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-fPIC'
8035 lt_prog_compiler_static='-static'
bf9f3bac 8036 ;;
8934764e
BB
8037 # Lahey Fortran 8.1.
8038 lf95*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='--shared'
8041 lt_prog_compiler_static='--static'
8042 ;;
bf9f3bac 8043 pgcc* | pgf77* | pgf90* | pgf95*)
8044 # Portland Group compilers (*not* the Pentium gcc compiler,
8045 # which looks to be a dead project)
8934764e
BB
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='-fpic'
8048 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8049 ;;
8050 ccc*)
8934764e 8051 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8052 # All Alpha code is PIC.
8934764e 8053 lt_prog_compiler_static='-non_shared'
bf9f3bac 8054 ;;
8934764e
BB
8055 xl*)
8056 # IBM XL C 8.0/Fortran 10.1 on PPC
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-qpic'
8059 lt_prog_compiler_static='-qstaticlink'
8060 ;;
8061 *)
8062 case `$CC -V 2>&1 | sed 5q` in
8063 *Sun\ C*)
8064 # Sun C 5.9
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 lt_prog_compiler_wl='-Wl,'
8068 ;;
8069 *Sun\ F*)
8070 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_wl=''
8074 ;;
8075 esac
8076 ;;
bf9f3bac 8077 esac
8078 ;;
8079
8934764e
BB
8080 newsos6)
8081 lt_prog_compiler_pic='-KPIC'
8082 lt_prog_compiler_static='-Bstatic'
8083 ;;
8084
8085 *nto* | *qnx*)
8086 # QNX uses GNU C++, but need to define -shared option too, otherwise
8087 # it will coredump.
8088 lt_prog_compiler_pic='-fPIC -shared'
8089 ;;
8090
bf9f3bac 8091 osf3* | osf4* | osf5*)
8934764e 8092 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8093 # All OSF/1 code is PIC.
8934764e
BB
8094 lt_prog_compiler_static='-non_shared'
8095 ;;
8096
8097 rdos*)
8098 lt_prog_compiler_static='-non_shared'
bf9f3bac 8099 ;;
8100
8101 solaris*)
8934764e
BB
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8104 case $cc_basename in
8105 f77* | f90* | f95*)
8934764e 8106 lt_prog_compiler_wl='-Qoption ld ';;
bf9f3bac 8107 *)
8934764e 8108 lt_prog_compiler_wl='-Wl,';;
bf9f3bac 8109 esac
8110 ;;
8111
8112 sunos4*)
8934764e
BB
8113 lt_prog_compiler_wl='-Qoption ld '
8114 lt_prog_compiler_pic='-PIC'
8115 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8116 ;;
8117
8118 sysv4 | sysv4.2uw2* | sysv4.3*)
8934764e
BB
8119 lt_prog_compiler_wl='-Wl,'
8120 lt_prog_compiler_pic='-KPIC'
8121 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8122 ;;
8123
8124 sysv4*MP*)
8125 if test -d /usr/nec ;then
8934764e
BB
8126 lt_prog_compiler_pic='-Kconform_pic'
8127 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8128 fi
8129 ;;
8130
8131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934764e
BB
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8135 ;;
8136
8137 unicos*)
8934764e
BB
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_can_build_shared=no
bf9f3bac 8140 ;;
8141
8142 uts4*)
8934764e
BB
8143 lt_prog_compiler_pic='-pic'
8144 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8145 ;;
8146
8147 *)
8934764e 8148 lt_prog_compiler_can_build_shared=no
bf9f3bac 8149 ;;
8150 esac
8151 fi
8152
8934764e
BB
8153case $host_os in
8154 # For platforms which do not support PIC, -DPIC is meaningless:
8155 *djgpp*)
8156 lt_prog_compiler_pic=
8157 ;;
8158 *)
8159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8160 ;;
8161esac
8162{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8163$as_echo "$lt_prog_compiler_pic" >&6; }
8164
8165
8166
8167
8168
bf9f3bac 8169
8170#
8171# Check to make sure the PIC flag actually works.
8172#
8934764e
BB
8173if test -n "$lt_prog_compiler_pic"; then
8174 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8175$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8176if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8177 $as_echo_n "(cached) " >&6
8178else
8179 lt_cv_prog_compiler_pic_works=no
8180 ac_outfile=conftest.$ac_objext
8181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8182 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
bf9f3bac 8183 # Insert the option either (1) after the last *FLAGS variable, or
8184 # (2) before a word containing "conftest.", or (3) at the end.
8185 # Note that $ac_compile itself does not contain backslashes and begins
8186 # with a dollar sign (not a hyphen), so the echo should work correctly.
8187 # The option is referenced via a variable to avoid confusing sed.
8188 lt_compile=`echo "$ac_compile" | $SED \
8189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8191 -e 's:$: $lt_compiler_flag:'`
4b2220f0 8192 (eval echo "\"\$as_me:8192: $lt_compile\"" >&5)
bf9f3bac 8193 (eval "$lt_compile" 2>conftest.err)
8194 ac_status=$?
8195 cat conftest.err >&5
4b2220f0 8196 echo "$as_me:8196: \$? = $ac_status" >&5
bf9f3bac 8197 if (exit $ac_status) && test -s "$ac_outfile"; then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings other than the usual output.
8934764e 8200 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 8201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8203 lt_cv_prog_compiler_pic_works=yes
bf9f3bac 8204 fi
8205 fi
8934764e 8206 $RM conftest*
bf9f3bac 8207
8208fi
8934764e
BB
8209{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8210$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
bf9f3bac 8211
8934764e
BB
8212if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8213 case $lt_prog_compiler_pic in
bf9f3bac 8214 "" | " "*) ;;
8934764e 8215 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
bf9f3bac 8216 esac
8217else
8934764e
BB
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_can_build_shared=no
bf9f3bac 8220fi
8221
8222fi
8934764e
BB
8223
8224
8225
8226
8227
bf9f3bac 8228
8229#
8230# Check to make sure the static flag actually works.
8231#
8934764e
BB
8232wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8233{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8234$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8235if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8236 $as_echo_n "(cached) " >&6
bf9f3bac 8237else
8934764e 8238 lt_cv_prog_compiler_static_works=no
bf9f3bac 8239 save_LDFLAGS="$LDFLAGS"
8240 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8934764e 8241 echo "$lt_simple_link_test_code" > conftest.$ac_ext
bf9f3bac 8242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8243 # The linker can only warn and ignore the option if not recognized
8244 # So say no if there are warnings
8245 if test -s conftest.err; then
8246 # Append any errors to the config.log.
8247 cat conftest.err 1>&5
8934764e 8248 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
bf9f3bac 8249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250 if diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8251 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8252 fi
8253 else
8934764e 8254 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8255 fi
8256 fi
8934764e 8257 $RM -r conftest*
bf9f3bac 8258 LDFLAGS="$save_LDFLAGS"
8259
8260fi
8934764e
BB
8261{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8262$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
bf9f3bac 8263
8934764e 8264if test x"$lt_cv_prog_compiler_static_works" = xyes; then
bf9f3bac 8265 :
8266else
8934764e
BB
8267 lt_prog_compiler_static=
8268fi
8269
8270
8271
8272
8273
8274
8275
8276 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8278if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8279 $as_echo_n "(cached) " >&6
8280else
8281 lt_cv_prog_compiler_c_o=no
8282 $RM -r conftest 2>/dev/null
8283 mkdir conftest
8284 cd conftest
8285 mkdir out
8286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287
8288 lt_compiler_flag="-o out/conftest2.$ac_objext"
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 lt_compile=`echo "$ac_compile" | $SED \
8294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296 -e 's:$: $lt_compiler_flag:'`
4b2220f0 8297 (eval echo "\"\$as_me:8297: $lt_compile\"" >&5)
8934764e
BB
8298 (eval "$lt_compile" 2>out/conftest.err)
8299 ac_status=$?
8300 cat out/conftest.err >&5
4b2220f0 8301 echo "$as_me:8301: \$? = $ac_status" >&5
8934764e
BB
8302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8303 then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings
8306 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_c_o=yes
8310 fi
8311 fi
8312 chmod u+w . 2>&5
8313 $RM conftest*
8314 # SGI C++ compiler will create directory out/ii_files/ for
8315 # template instantiation
8316 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8317 $RM out/* && rmdir out
8318 cd ..
8319 $RM -r conftest
8320 $RM conftest*
8321
bf9f3bac 8322fi
8934764e
BB
8323{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8324$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8325
8326
bf9f3bac 8327
8328
8934764e
BB
8329
8330
8331 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8332$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8333if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8334 $as_echo_n "(cached) " >&6
bf9f3bac 8335else
8934764e
BB
8336 lt_cv_prog_compiler_c_o=no
8337 $RM -r conftest 2>/dev/null
bf9f3bac 8338 mkdir conftest
8339 cd conftest
8340 mkdir out
8934764e 8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 8342
8343 lt_compiler_flag="-o out/conftest2.$ac_objext"
8344 # Insert the option either (1) after the last *FLAGS variable, or
8345 # (2) before a word containing "conftest.", or (3) at the end.
8346 # Note that $ac_compile itself does not contain backslashes and begins
8347 # with a dollar sign (not a hyphen), so the echo should work correctly.
8348 lt_compile=`echo "$ac_compile" | $SED \
8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8351 -e 's:$: $lt_compiler_flag:'`
4b2220f0 8352 (eval echo "\"\$as_me:8352: $lt_compile\"" >&5)
bf9f3bac 8353 (eval "$lt_compile" 2>out/conftest.err)
8354 ac_status=$?
8355 cat out/conftest.err >&5
4b2220f0 8356 echo "$as_me:8356: \$? = $ac_status" >&5
bf9f3bac 8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8358 then
8359 # The compiler can only warn and ignore the option if not recognized
8360 # So say no if there are warnings
8934764e 8361 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
bf9f3bac 8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8934764e 8364 lt_cv_prog_compiler_c_o=yes
bf9f3bac 8365 fi
8366 fi
8367 chmod u+w . 2>&5
8934764e 8368 $RM conftest*
bf9f3bac 8369 # SGI C++ compiler will create directory out/ii_files/ for
8370 # template instantiation
8934764e
BB
8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8372 $RM out/* && rmdir out
bf9f3bac 8373 cd ..
8934764e
BB
8374 $RM -r conftest
8375 $RM conftest*
bf9f3bac 8376
8377fi
8934764e
BB
8378{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8379$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8380
8381
bf9f3bac 8382
8383
8384hard_links="nottested"
8934764e 8385if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
bf9f3bac 8386 # do not overwrite the value of need_locks provided by the user
8934764e
BB
8387 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8388$as_echo_n "checking if we can lock with hard links... " >&6; }
bf9f3bac 8389 hard_links=yes
8934764e 8390 $RM conftest*
bf9f3bac 8391 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392 touch conftest.a
8393 ln conftest.a conftest.b 2>&5 || hard_links=no
8394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934764e
BB
8395 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8396$as_echo "$hard_links" >&6; }
bf9f3bac 8397 if test "$hard_links" = no; then
8934764e
BB
8398 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8399$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
bf9f3bac 8400 need_locks=warn
8401 fi
8402else
8403 need_locks=no
8404fi
8405
8934764e
BB
8406
8407
8408
8409
8410
8411 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8412$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
bf9f3bac 8413
8414 runpath_var=
8934764e
BB
8415 allow_undefined_flag=
8416 always_export_symbols=no
8417 archive_cmds=
8418 archive_expsym_cmds=
8419 compiler_needs_object=no
8420 enable_shared_with_static_runtimes=no
8421 export_dynamic_flag_spec=
8422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8423 hardcode_automatic=no
8424 hardcode_direct=no
8425 hardcode_direct_absolute=no
8426 hardcode_libdir_flag_spec=
8427 hardcode_libdir_flag_spec_ld=
8428 hardcode_libdir_separator=
8429 hardcode_minus_L=no
8430 hardcode_shlibpath_var=unsupported
8431 inherit_rpath=no
8432 link_all_deplibs=unknown
8433 module_cmds=
8434 module_expsym_cmds=
8435 old_archive_from_new_cmds=
8436 old_archive_from_expsyms_cmds=
8437 thread_safe_flag_spec=
8438 whole_archive_flag_spec=
bf9f3bac 8439 # include_expsyms should be a list of space-separated symbols to be *always*
8440 # included in the symbol list
8934764e 8441 include_expsyms=
bf9f3bac 8442 # exclude_expsyms can be an extended regexp of symbols to exclude
8443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8445 # as well as any symbol that contains `d'.
8934764e 8446 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
bf9f3bac 8447 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8448 # platforms (ab)use it in PIC code, but their linkers get confused if
8449 # the symbol is explicitly referenced. Since portable code cannot
8450 # rely on this symbol name, it's probably fine to never include it in
8451 # preloaded symbol tables.
8934764e 8452 # Exclude shared library initialization/finalization symbols.
bf9f3bac 8453 extract_expsyms_cmds=
bf9f3bac 8454
8455 case $host_os in
8934764e 8456 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 8457 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8458 # When not using gcc, we currently assume that we are using
8459 # Microsoft Visual C++.
8460 if test "$GCC" != yes; then
8461 with_gnu_ld=no
8462 fi
8463 ;;
8464 interix*)
8465 # we just hope/assume this is gcc and not c89 (= MSVC++)
8466 with_gnu_ld=yes
8467 ;;
8468 openbsd*)
8469 with_gnu_ld=no
8470 ;;
8471 esac
8472
8934764e 8473 ld_shlibs=yes
bf9f3bac 8474 if test "$with_gnu_ld" = yes; then
8475 # If archive_cmds runs LD, not CC, wlarc should be empty
8476 wlarc='${wl}'
8477
8478 # Set some defaults for GNU ld with shared library support. These
8479 # are reset later if shared libraries are not supported. Putting them
8480 # here allows them to be overridden if necessary.
8481 runpath_var=LD_RUN_PATH
8934764e
BB
8482 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8483 export_dynamic_flag_spec='${wl}--export-dynamic'
bf9f3bac 8484 # ancient GNU ld didn't support --whole-archive et. al.
8934764e
BB
8485 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8486 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8487 else
8488 whole_archive_flag_spec=
bf9f3bac 8489 fi
8490 supports_anon_versioning=no
8934764e 8491 case `$LD -v 2>&1` in
bf9f3bac 8492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8495 *\ 2.11.*) ;; # other 2.11 versions
8496 *) supports_anon_versioning=yes ;;
8497 esac
8498
8499 # See if GNU ld supports shared libraries.
8500 case $host_os in
8934764e 8501 aix[3-9]*)
bf9f3bac 8502 # On AIX/PPC, the GNU linker is very broken
8503 if test "$host_cpu" != ia64; then
8934764e
BB
8504 ld_shlibs=no
8505 cat <<_LT_EOF 1>&2
bf9f3bac 8506
8507*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8508*** to be unable to reliably create shared libraries on AIX.
8509*** Therefore, libtool is disabling shared libraries support. If you
8510*** really care for shared libraries, you may want to modify your PATH
8511*** so that a non-GNU linker is found, and then restart.
8512
8934764e 8513_LT_EOF
bf9f3bac 8514 fi
8515 ;;
8516
8517 amigaos*)
8934764e
BB
8518 case $host_cpu in
8519 powerpc)
8520 # see comment about AmigaOS4 .so support
8521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8522 archive_expsym_cmds=''
8523 ;;
8524 m68k)
8525 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)'
8526 hardcode_libdir_flag_spec='-L$libdir'
8527 hardcode_minus_L=yes
8528 ;;
8529 esac
bf9f3bac 8530 ;;
8531
8532 beos*)
8934764e
BB
8533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8534 allow_undefined_flag=unsupported
bf9f3bac 8535 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8536 # support --undefined. This deserves some investigation. FIXME
8934764e 8537 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8538 else
8934764e 8539 ld_shlibs=no
bf9f3bac 8540 fi
8541 ;;
8542
8934764e
BB
8543 cygwin* | mingw* | pw32* | cegcc*)
8544 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
bf9f3bac 8545 # as there is no search path for DLLs.
8934764e
BB
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 allow_undefined_flag=unsupported
8548 always_export_symbols=no
8549 enable_shared_with_static_runtimes=yes
8550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8551
8552 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
bf9f3bac 8554 # If the export-symbols file already is a .def file (1st line
8555 # is EXPORTS), use it as is; otherwise, prepend...
8934764e 8556 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
bf9f3bac 8557 cp $export_symbols $output_objdir/$soname.def;
8558 else
8559 echo EXPORTS > $output_objdir/$soname.def;
8560 cat $export_symbols >> $output_objdir/$soname.def;
8561 fi~
8562 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8563 else
8934764e 8564 ld_shlibs=no
bf9f3bac 8565 fi
8566 ;;
8567
8934764e
BB
8568 interix[3-9]*)
8569 hardcode_direct=no
8570 hardcode_shlibpath_var=no
8571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8572 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 8573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8574 # Instead, shared libraries are loaded at an image base (0x10000000 by
8575 # default) and relocated if they conflict, which is a slow very memory
8576 # consuming and fragmenting process. To avoid this, we pick a random,
8577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8934764e
BB
8579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8580 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'
bf9f3bac 8581 ;;
8582
8934764e
BB
8583 gnu* | linux* | tpf* | k*bsd*-gnu)
8584 tmp_diet=no
8585 if test "$host_os" = linux-dietlibc; then
8586 case $cc_basename in
8587 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8588 esac
8589 fi
8590 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8591 && test "$tmp_diet" = no
8592 then
bf9f3bac 8593 tmp_addflag=
8934764e 8594 tmp_sharedflag='-shared'
bf9f3bac 8595 case $cc_basename,$host_cpu in
8934764e
BB
8596 pgcc*) # Portland Group C compiler
8597 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'
bf9f3bac 8598 tmp_addflag=' $pic_flag'
8599 ;;
8600 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8934764e 8601 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'
bf9f3bac 8602 tmp_addflag=' $pic_flag -Mnomain' ;;
8934764e 8603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
bf9f3bac 8604 tmp_addflag=' -i_dynamic' ;;
8605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8606 tmp_addflag=' -i_dynamic -nofor_main' ;;
8607 ifc* | ifort*) # Intel Fortran compiler
8608 tmp_addflag=' -nofor_main' ;;
8934764e
BB
8609 lf95*) # Lahey Fortran 8.1
8610 whole_archive_flag_spec=
8611 tmp_sharedflag='--shared' ;;
8612 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8613 tmp_sharedflag='-qmkshrobj'
8614 tmp_addflag= ;;
8615 esac
8616 case `$CC -V 2>&1 | sed 5q` in
8617 *Sun\ C*) # Sun C 5.9
8618 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'
8619 compiler_needs_object=yes
8620 tmp_sharedflag='-G' ;;
8621 *Sun\ F*) # Sun Fortran 8.3
8622 tmp_sharedflag='-G' ;;
bf9f3bac 8623 esac
8934764e 8624 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8625
8934764e
BB
8626 if test "x$supports_anon_versioning" = xyes; then
8627 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8629 echo "local: *; };" >> $output_objdir/$libname.ver~
8630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8631 fi
8632
8633 case $cc_basename in
8634 xlf*)
8635 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8636 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8637 hardcode_libdir_flag_spec=
8638 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8639 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8640 if test "x$supports_anon_versioning" = xyes; then
8641 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8643 echo "local: *; };" >> $output_objdir/$libname.ver~
8644 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8645 fi
8646 ;;
8647 esac
bf9f3bac 8648 else
8934764e 8649 ld_shlibs=no
bf9f3bac 8650 fi
8651 ;;
8652
8653 netbsd*)
8934764e
BB
8654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
bf9f3bac 8656 wlarc=
8657 else
8934764e
BB
8658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8660 fi
8661 ;;
8662
8663 solaris*)
8934764e
BB
8664 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8665 ld_shlibs=no
8666 cat <<_LT_EOF 1>&2
bf9f3bac 8667
8668*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8669*** create shared libraries on Solaris systems. Therefore, libtool
8670*** is disabling shared libraries support. We urge you to upgrade GNU
8671*** binutils to release 2.9.1 or newer. Another option is to modify
8672*** your PATH or compiler configuration so that the native linker is
8673*** used, and then restart.
8674
8934764e
BB
8675_LT_EOF
8676 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8679 else
8934764e 8680 ld_shlibs=no
bf9f3bac 8681 fi
8682 ;;
8683
8684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8685 case `$LD -v 2>&1` in
8686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8934764e 8687 ld_shlibs=no
bf9f3bac 8688 cat <<_LT_EOF 1>&2
8689
8690*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8691*** reliably create shared libraries on SCO systems. Therefore, libtool
8692*** is disabling shared libraries support. We urge you to upgrade GNU
8693*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8694*** your PATH or compiler configuration so that the native linker is
8695*** used, and then restart.
8696
8697_LT_EOF
8698 ;;
8699 *)
8934764e
BB
8700 # For security reasons, it is highly recommended that you always
8701 # use absolute paths for naming shared libraries, and exclude the
8702 # DT_RUNPATH tag from executables and libraries. But doing so
8703 # requires that you compile everything twice, which is a pain.
8704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8708 else
8934764e 8709 ld_shlibs=no
bf9f3bac 8710 fi
8711 ;;
8712 esac
8713 ;;
8714
8715 sunos4*)
8934764e 8716 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 8717 wlarc=
8934764e
BB
8718 hardcode_direct=yes
8719 hardcode_shlibpath_var=no
bf9f3bac 8720 ;;
8721
8722 *)
8934764e
BB
8723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8726 else
8934764e 8727 ld_shlibs=no
bf9f3bac 8728 fi
8729 ;;
8730 esac
8731
8934764e 8732 if test "$ld_shlibs" = no; then
bf9f3bac 8733 runpath_var=
8934764e
BB
8734 hardcode_libdir_flag_spec=
8735 export_dynamic_flag_spec=
8736 whole_archive_flag_spec=
bf9f3bac 8737 fi
8738 else
8739 # PORTME fill in a description of your system's linker (not GNU ld)
8740 case $host_os in
8741 aix3*)
8934764e
BB
8742 allow_undefined_flag=unsupported
8743 always_export_symbols=yes
8744 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'
bf9f3bac 8745 # Note: this linker hardcodes the directories in LIBPATH if there
8746 # are no directories specified by -L.
8934764e 8747 hardcode_minus_L=yes
bf9f3bac 8748 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8749 # Neither direct hardcoding nor static linking is supported with a
8750 # broken collect2.
8934764e 8751 hardcode_direct=unsupported
bf9f3bac 8752 fi
8753 ;;
8754
8934764e 8755 aix[4-9]*)
bf9f3bac 8756 if test "$host_cpu" = ia64; then
8757 # On IA64, the linker does run time linking by default, so we don't
8758 # have to do anything special.
8759 aix_use_runtimelinking=no
8760 exp_sym_flag='-Bexport'
8761 no_entry_flag=""
8762 else
8763 # If we're using GNU nm, then we don't want the "-C" option.
8764 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8934764e
BB
8765 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8766 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'
bf9f3bac 8767 else
8934764e 8768 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'
bf9f3bac 8769 fi
8770 aix_use_runtimelinking=no
8771
8772 # Test if we are trying to use run time linking or normal
8773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8774 # need to do runtime linking.
8934764e 8775 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
bf9f3bac 8776 for ld_flag in $LDFLAGS; do
8934764e
BB
8777 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8778 aix_use_runtimelinking=yes
8779 break
8780 fi
bf9f3bac 8781 done
8782 ;;
8783 esac
8784
8785 exp_sym_flag='-bexport'
8786 no_entry_flag='-bnoentry'
8787 fi
8788
8789 # When large executables or shared objects are built, AIX ld can
8790 # have problems creating the table of contents. If linking a library
8791 # or program results in "error TOC overflow" add -mminimal-toc to
8792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8794
8934764e
BB
8795 archive_cmds=''
8796 hardcode_direct=yes
8797 hardcode_direct_absolute=yes
8798 hardcode_libdir_separator=':'
8799 link_all_deplibs=yes
8800 file_list_spec='${wl}-f,'
bf9f3bac 8801
8802 if test "$GCC" = yes; then
8803 case $host_os in aix4.[012]|aix4.[012].*)
8804 # We only want to do this on AIX 4.2 and lower, the check
8805 # below for broken collect2 doesn't work under 4.3+
8806 collect2name=`${CC} -print-prog-name=collect2`
8934764e
BB
8807 if test -f "$collect2name" &&
8808 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
bf9f3bac 8809 then
8934764e
BB
8810 # We have reworked collect2
8811 :
bf9f3bac 8812 else
8934764e
BB
8813 # We have old collect2
8814 hardcode_direct=unsupported
8815 # It fails to find uninstalled libraries when the uninstalled
8816 # path is not listed in the libpath. Setting hardcode_minus_L
8817 # to unsupported forces relinking
8818 hardcode_minus_L=yes
8819 hardcode_libdir_flag_spec='-L$libdir'
8820 hardcode_libdir_separator=
bf9f3bac 8821 fi
8822 ;;
8823 esac
8824 shared_flag='-shared'
8825 if test "$aix_use_runtimelinking" = yes; then
8826 shared_flag="$shared_flag "'${wl}-G'
8827 fi
8828 else
8829 # not using gcc
8830 if test "$host_cpu" = ia64; then
8934764e
BB
8831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8832 # chokes on -Wl,-G. The following line is correct:
bf9f3bac 8833 shared_flag='-G'
8834 else
8835 if test "$aix_use_runtimelinking" = yes; then
8836 shared_flag='${wl}-G'
8837 else
8838 shared_flag='${wl}-bM:SRE'
8839 fi
8840 fi
8841 fi
8842
8934764e 8843 export_dynamic_flag_spec='${wl}-bexpall'
bf9f3bac 8844 # It seems that -bexpall does not export symbols beginning with
8845 # underscore (_), so it is better to generate a list of symbols to export.
8934764e 8846 always_export_symbols=yes
bf9f3bac 8847 if test "$aix_use_runtimelinking" = yes; then
8848 # Warning - without using the other runtime loading flags (-brtl),
8849 # -berok will link without error, but may produce a broken library.
8934764e
BB
8850 allow_undefined_flag='-berok'
8851 # Determine the default libpath from the value encoded in an
8852 # empty executable.
8853 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 8854/* confdefs.h. */
8855_ACEOF
8856cat confdefs.h >>conftest.$ac_ext
8857cat >>conftest.$ac_ext <<_ACEOF
8858/* end confdefs.h. */
8859
8860int
8861main ()
8862{
8863
8864 ;
8865 return 0;
8866}
8867_ACEOF
8868rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8869if { (ac_try="$ac_link"
8870case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873esac
8874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8875$as_echo "$ac_try_echo") >&5
8876 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8877 ac_status=$?
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
8934764e
BB
8881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest$ac_exeext && {
8886 test "$cross_compiling" = yes ||
8887 $as_test_x conftest$ac_exeext
8888 }; then
8889
8890lt_aix_libpath_sed='
8891 /Import File Strings/,/^$/ {
8892 /^0/ {
8893 s/^0 *\(.*\)$/\1/
8894 p
8895 }
8896 }'
8897aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8898# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8899if test -z "$aix_libpath"; then
8900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8901fi
bf9f3bac 8902else
8934764e 8903 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8904sed 's/^/| /' conftest.$ac_ext >&5
8905
8934764e 8906
bf9f3bac 8907fi
8934764e
BB
8908
8909rm -rf conftest.dSYM
8910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8911 conftest$ac_exeext conftest.$ac_ext
8912if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8913
8934764e
BB
8914 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8915 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"
8916 else
bf9f3bac 8917 if test "$host_cpu" = ia64; then
8934764e
BB
8918 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8919 allow_undefined_flag="-z nodefs"
8920 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"
bf9f3bac 8921 else
8934764e
BB
8922 # Determine the default libpath from the value encoded in an
8923 # empty executable.
bf9f3bac 8924 cat >conftest.$ac_ext <<_ACEOF
8925/* confdefs.h. */
8926_ACEOF
8927cat confdefs.h >>conftest.$ac_ext
8928cat >>conftest.$ac_ext <<_ACEOF
8929/* end confdefs.h. */
8930
8931int
8932main ()
8933{
8934
8935 ;
8936 return 0;
8937}
8938_ACEOF
8939rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8940if { (ac_try="$ac_link"
8941case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944esac
8945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8946$as_echo "$ac_try_echo") >&5
8947 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8934764e
BB
8952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } && {
8954 test -z "$ac_c_werror_flag" ||
8955 test ! -s conftest.err
8956 } && test -s conftest$ac_exeext && {
8957 test "$cross_compiling" = yes ||
8958 $as_test_x conftest$ac_exeext
8959 }; then
8960
8961lt_aix_libpath_sed='
8962 /Import File Strings/,/^$/ {
8963 /^0/ {
8964 s/^0 *\(.*\)$/\1/
8965 p
8966 }
8967 }'
8968aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8969# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8970if test -z "$aix_libpath"; then
8971 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8972fi
bf9f3bac 8973else
8934764e 8974 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8975sed 's/^/| /' conftest.$ac_ext >&5
8976
8934764e 8977
bf9f3bac 8978fi
8934764e
BB
8979
8980rm -rf conftest.dSYM
8981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8982 conftest$ac_exeext conftest.$ac_ext
8983if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8984
8934764e 8985 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
bf9f3bac 8986 # Warning - without using the other run time loading flags,
8987 # -berok will link without error, but may produce a broken library.
8934764e
BB
8988 no_undefined_flag=' ${wl}-bernotok'
8989 allow_undefined_flag=' ${wl}-berok'
bf9f3bac 8990 # Exported symbols can be pulled into shared objects from archives
8934764e
BB
8991 whole_archive_flag_spec='$convenience'
8992 archive_cmds_need_lc=yes
bf9f3bac 8993 # This is similar to how AIX traditionally builds its shared libraries.
8934764e 8994 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'
bf9f3bac 8995 fi
8996 fi
8997 ;;
8998
8999 amigaos*)
8934764e
BB
9000 case $host_cpu in
9001 powerpc)
9002 # see comment about AmigaOS4 .so support
9003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9004 archive_expsym_cmds=''
9005 ;;
9006 m68k)
9007 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)'
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_minus_L=yes
9010 ;;
9011 esac
bf9f3bac 9012 ;;
9013
9014 bsdi[45]*)
8934764e 9015 export_dynamic_flag_spec=-rdynamic
bf9f3bac 9016 ;;
9017
8934764e 9018 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9019 # When not using gcc, we currently assume that we are using
9020 # Microsoft Visual C++.
9021 # hardcode_libdir_flag_spec is actually meaningless, as there is
9022 # no search path for DLLs.
8934764e
BB
9023 hardcode_libdir_flag_spec=' '
9024 allow_undefined_flag=unsupported
bf9f3bac 9025 # Tell ltmain to make .lib files, not .a files.
9026 libext=lib
9027 # Tell ltmain to make .dll files, not .so files.
9028 shrext_cmds=".dll"
9029 # FIXME: Setting linknames here is a bad hack.
8934764e 9030 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
bf9f3bac 9031 # The linker will automatically build a .lib file if we build a DLL.
8934764e 9032 old_archive_from_new_cmds='true'
bf9f3bac 9033 # FIXME: Should let the user specify the lib program.
8934764e
BB
9034 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9035 fix_srcfile_path='`cygpath -w "$srcfile"`'
9036 enable_shared_with_static_runtimes=yes
bf9f3bac 9037 ;;
9038
9039 darwin* | rhapsody*)
8934764e
BB
9040
9041
9042 archive_cmds_need_lc=no
9043 hardcode_direct=no
9044 hardcode_automatic=yes
9045 hardcode_shlibpath_var=unsupported
9046 whole_archive_flag_spec=''
9047 link_all_deplibs=yes
9048 allow_undefined_flag="$_lt_dar_allow_undefined"
9049 case $cc_basename in
9050 ifort*) _lt_dar_can_shared=yes ;;
9051 *) _lt_dar_can_shared=$GCC ;;
9052 esac
9053 if test "$_lt_dar_can_shared" = "yes"; then
9054 output_verbose_link_cmd=echo
9055 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9056 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9057 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}"
9058 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}"
9059
9060 else
9061 ld_shlibs=no
9062 fi
9063
bf9f3bac 9064 ;;
9065
9066 dgux*)
8934764e
BB
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_libdir_flag_spec='-L$libdir'
9069 hardcode_shlibpath_var=no
bf9f3bac 9070 ;;
9071
9072 freebsd1*)
8934764e 9073 ld_shlibs=no
bf9f3bac 9074 ;;
9075
9076 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9077 # support. Future versions do this automatically, but an explicit c++rt0.o
9078 # does not break anything, and helps significantly (at the cost of a little
9079 # extra space).
9080 freebsd2.2*)
8934764e
BB
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9082 hardcode_libdir_flag_spec='-R$libdir'
9083 hardcode_direct=yes
9084 hardcode_shlibpath_var=no
bf9f3bac 9085 ;;
9086
9087 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9088 freebsd2*)
8934764e
BB
9089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9090 hardcode_direct=yes
9091 hardcode_minus_L=yes
9092 hardcode_shlibpath_var=no
bf9f3bac 9093 ;;
9094
9095 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8934764e
BB
9096 freebsd* | dragonfly*)
9097 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9098 hardcode_libdir_flag_spec='-R$libdir'
9099 hardcode_direct=yes
9100 hardcode_shlibpath_var=no
bf9f3bac 9101 ;;
9102
9103 hpux9*)
9104 if test "$GCC" = yes; then
8934764e 9105 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'
bf9f3bac 9106 else
8934764e 9107 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'
bf9f3bac 9108 fi
8934764e
BB
9109 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110 hardcode_libdir_separator=:
9111 hardcode_direct=yes
bf9f3bac 9112
9113 # hardcode_minus_L: Not really in the search PATH,
9114 # but as the default location of the library.
8934764e
BB
9115 hardcode_minus_L=yes
9116 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9117 ;;
9118
9119 hpux10*)
9120 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8934764e 9121 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9122 else
8934764e 9123 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9124 fi
9125 if test "$with_gnu_ld" = no; then
8934764e
BB
9126 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9127 hardcode_libdir_flag_spec_ld='+b $libdir'
9128 hardcode_libdir_separator=:
9129 hardcode_direct=yes
9130 hardcode_direct_absolute=yes
9131 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9132 # hardcode_minus_L: Not really in the search PATH,
9133 # but as the default location of the library.
8934764e 9134 hardcode_minus_L=yes
bf9f3bac 9135 fi
9136 ;;
9137
9138 hpux11*)
9139 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9140 case $host_cpu in
9141 hppa*64*)
8934764e 9142 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9143 ;;
9144 ia64*)
8934764e 9145 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9146 ;;
9147 *)
8934764e 9148 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9149 ;;
9150 esac
9151 else
9152 case $host_cpu in
9153 hppa*64*)
8934764e 9154 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9155 ;;
9156 ia64*)
8934764e 9157 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9158 ;;
9159 *)
8934764e 9160 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9161 ;;
9162 esac
9163 fi
9164 if test "$with_gnu_ld" = no; then
8934764e
BB
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
bf9f3bac 9167
9168 case $host_cpu in
9169 hppa*64*|ia64*)
8934764e
BB
9170 hardcode_direct=no
9171 hardcode_shlibpath_var=no
bf9f3bac 9172 ;;
9173 *)
8934764e
BB
9174 hardcode_direct=yes
9175 hardcode_direct_absolute=yes
9176 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9177
9178 # hardcode_minus_L: Not really in the search PATH,
9179 # but as the default location of the library.
8934764e 9180 hardcode_minus_L=yes
bf9f3bac 9181 ;;
9182 esac
9183 fi
9184 ;;
9185
9186 irix5* | irix6* | nonstopux*)
9187 if test "$GCC" = yes; then
8934764e
BB
9188 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'
9189 # Try to use the -exported_symbol ld option, if it does not
9190 # work, assume that -exports_file does not work either and
9191 # implicitly export all symbols.
9192 save_LDFLAGS="$LDFLAGS"
9193 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9194 cat >conftest.$ac_ext <<_ACEOF
9195int foo(void) {}
9196_ACEOF
9197rm -f conftest.$ac_objext conftest$ac_exeext
9198if { (ac_try="$ac_link"
9199case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9202esac
9203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9204$as_echo "$ac_try_echo") >&5
9205 (eval "$ac_link") 2>conftest.er1
9206 ac_status=$?
9207 grep -v '^ *+' conftest.er1 >conftest.err
9208 rm -f conftest.er1
9209 cat conftest.err >&5
9210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } && {
9212 test -z "$ac_c_werror_flag" ||
9213 test ! -s conftest.err
9214 } && test -s conftest$ac_exeext && {
9215 test "$cross_compiling" = yes ||
9216 $as_test_x conftest$ac_exeext
9217 }; then
9218 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'
9219
9220else
9221 $as_echo "$as_me: failed program was:" >&5
9222sed 's/^/| /' conftest.$ac_ext >&5
9223
9224
9225fi
9226
9227rm -rf conftest.dSYM
9228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9229 conftest$ac_exeext conftest.$ac_ext
9230 LDFLAGS="$save_LDFLAGS"
bf9f3bac 9231 else
8934764e
BB
9232 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'
9233 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'
bf9f3bac 9234 fi
8934764e
BB
9235 archive_cmds_need_lc='no'
9236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237 hardcode_libdir_separator=:
9238 inherit_rpath=yes
9239 link_all_deplibs=yes
bf9f3bac 9240 ;;
9241
9242 netbsd*)
8934764e
BB
9243 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
bf9f3bac 9245 else
8934764e 9246 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
bf9f3bac 9247 fi
8934764e
BB
9248 hardcode_libdir_flag_spec='-R$libdir'
9249 hardcode_direct=yes
9250 hardcode_shlibpath_var=no
bf9f3bac 9251 ;;
9252
9253 newsos6)
8934764e
BB
9254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9255 hardcode_direct=yes
9256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9257 hardcode_libdir_separator=:
9258 hardcode_shlibpath_var=no
9259 ;;
9260
9261 *nto* | *qnx*)
bf9f3bac 9262 ;;
9263
9264 openbsd*)
8934764e
BB
9265 if test -f /usr/libexec/ld.so; then
9266 hardcode_direct=yes
9267 hardcode_shlibpath_var=no
9268 hardcode_direct_absolute=yes
9269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9271 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9273 export_dynamic_flag_spec='${wl}-E'
9274 else
9275 case $host_os in
9276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9278 hardcode_libdir_flag_spec='-R$libdir'
9279 ;;
9280 *)
9281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9283 ;;
9284 esac
9285 fi
bf9f3bac 9286 else
8934764e 9287 ld_shlibs=no
bf9f3bac 9288 fi
9289 ;;
9290
9291 os2*)
8934764e
BB
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 hardcode_minus_L=yes
9294 allow_undefined_flag=unsupported
9295 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'
9296 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
bf9f3bac 9297 ;;
9298
9299 osf3*)
9300 if test "$GCC" = yes; then
8934764e
BB
9301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9302 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'
bf9f3bac 9303 else
8934764e
BB
9304 allow_undefined_flag=' -expect_unresolved \*'
9305 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'
bf9f3bac 9306 fi
8934764e
BB
9307 archive_cmds_need_lc='no'
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 hardcode_libdir_separator=:
bf9f3bac 9310 ;;
9311
9312 osf4* | osf5*) # as osf3* with the addition of -msym flag
9313 if test "$GCC" = yes; then
8934764e
BB
9314 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9315 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'
9316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
bf9f3bac 9317 else
8934764e
BB
9318 allow_undefined_flag=' -expect_unresolved \*'
9319 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'
9320 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~
9321 $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'
bf9f3bac 9322
9323 # Both c and cxx compiler support -rpath directly
8934764e 9324 hardcode_libdir_flag_spec='-rpath $libdir'
bf9f3bac 9325 fi
8934764e
BB
9326 archive_cmds_need_lc='no'
9327 hardcode_libdir_separator=:
bf9f3bac 9328 ;;
9329
9330 solaris*)
8934764e 9331 no_undefined_flag=' -z defs'
bf9f3bac 9332 if test "$GCC" = yes; then
9333 wlarc='${wl}'
8934764e
BB
9334 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9336 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
bf9f3bac 9337 else
8934764e
BB
9338 case `$CC -V 2>&1` in
9339 *"Compilers 5.0"*)
9340 wlarc=''
9341 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9343 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9344 ;;
9345 *)
9346 wlarc='${wl}'
9347 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9349 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9350 ;;
9351 esac
bf9f3bac 9352 fi
8934764e
BB
9353 hardcode_libdir_flag_spec='-R$libdir'
9354 hardcode_shlibpath_var=no
bf9f3bac 9355 case $host_os in
9356 solaris2.[0-5] | solaris2.[0-5].*) ;;
9357 *)
8934764e
BB
9358 # The compiler driver will combine and reorder linker options,
9359 # but understands `-z linker_flag'. GCC discards it without `$wl',
9360 # but is careful enough not to reorder.
9361 # Supported since Solaris 2.6 (maybe 2.5.1?)
9362 if test "$GCC" = yes; then
9363 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9364 else
9365 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9366 fi
9367 ;;
bf9f3bac 9368 esac
8934764e 9369 link_all_deplibs=yes
bf9f3bac 9370 ;;
9371
9372 sunos4*)
9373 if test "x$host_vendor" = xsequent; then
9374 # Use $CC to link under sequent, because it throws in some extra .o
9375 # files that make .init and .fini sections work.
8934764e 9376 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9377 else
8934764e 9378 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9379 fi
8934764e
BB
9380 hardcode_libdir_flag_spec='-L$libdir'
9381 hardcode_direct=yes
9382 hardcode_minus_L=yes
9383 hardcode_shlibpath_var=no
bf9f3bac 9384 ;;
9385
9386 sysv4)
9387 case $host_vendor in
9388 sni)
8934764e
BB
9389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390 hardcode_direct=yes # is this really true???
bf9f3bac 9391 ;;
9392 siemens)
9393 ## LD is ld it makes a PLAMLIB
9394 ## CC just makes a GrossModule.
8934764e
BB
9395 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9396 reload_cmds='$CC -r -o $output$reload_objs'
9397 hardcode_direct=no
bf9f3bac 9398 ;;
9399 motorola)
8934764e
BB
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
bf9f3bac 9402 ;;
9403 esac
9404 runpath_var='LD_RUN_PATH'
8934764e 9405 hardcode_shlibpath_var=no
bf9f3bac 9406 ;;
9407
9408 sysv4.3*)
8934764e
BB
9409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_shlibpath_var=no
9411 export_dynamic_flag_spec='-Bexport'
bf9f3bac 9412 ;;
9413
9414 sysv4*MP*)
9415 if test -d /usr/nec; then
8934764e
BB
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_shlibpath_var=no
bf9f3bac 9418 runpath_var=LD_RUN_PATH
9419 hardcode_runpath_var=yes
8934764e 9420 ld_shlibs=yes
bf9f3bac 9421 fi
9422 ;;
9423
8934764e
BB
9424 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9425 no_undefined_flag='${wl}-z,text'
9426 archive_cmds_need_lc=no
9427 hardcode_shlibpath_var=no
bf9f3bac 9428 runpath_var='LD_RUN_PATH'
9429
9430 if test "$GCC" = yes; then
8934764e
BB
9431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9433 else
8934764e
BB
9434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9436 fi
9437 ;;
9438
9439 sysv5* | sco3.2v5* | sco5v6*)
9440 # Note: We can NOT use -z defs as we might desire, because we do not
9441 # link with -lc, and that would cause any symbols used from libc to
9442 # always be unresolved, which means just about no library would
9443 # ever link correctly. If we're not using GNU ld we use -z text
9444 # though, which does catch some bad symbols but isn't as heavy-handed
9445 # as -z defs.
8934764e
BB
9446 no_undefined_flag='${wl}-z,text'
9447 allow_undefined_flag='${wl}-z,nodefs'
9448 archive_cmds_need_lc=no
9449 hardcode_shlibpath_var=no
9450 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9451 hardcode_libdir_separator=':'
9452 link_all_deplibs=yes
9453 export_dynamic_flag_spec='${wl}-Bexport'
bf9f3bac 9454 runpath_var='LD_RUN_PATH'
9455
9456 if test "$GCC" = yes; then
8934764e
BB
9457 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9459 else
8934764e
BB
9460 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9461 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9462 fi
9463 ;;
9464
9465 uts4*)
8934764e
BB
9466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_shlibpath_var=no
bf9f3bac 9469 ;;
9470
9471 *)
8934764e 9472 ld_shlibs=no
bf9f3bac 9473 ;;
9474 esac
8934764e
BB
9475
9476 if test x$host_vendor = xsni; then
9477 case $host in
9478 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9479 export_dynamic_flag_spec='${wl}-Blargedynsym'
9480 ;;
9481 esac
9482 fi
bf9f3bac 9483 fi
9484
8934764e
BB
9485{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9486$as_echo "$ld_shlibs" >&6; }
9487test "$ld_shlibs" = no && can_build_shared=no
9488
9489with_gnu_ld=$with_gnu_ld
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
bf9f3bac 9504
9505#
9506# Do we need to explicitly link libc?
9507#
8934764e 9508case "x$archive_cmds_need_lc" in
bf9f3bac 9509x|xyes)
9510 # Assume -lc should be added
8934764e 9511 archive_cmds_need_lc=yes
bf9f3bac 9512
9513 if test "$enable_shared" = yes && test "$GCC" = yes; then
8934764e 9514 case $archive_cmds in
bf9f3bac 9515 *'~'*)
9516 # FIXME: we may have to deal with multi-command sequences.
9517 ;;
9518 '$CC '*)
9519 # Test whether the compiler implicitly links with -lc since on some
9520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9521 # to ld, don't add -lc before -lgcc.
8934764e
BB
9522 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9523$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9524 $RM conftest*
9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 9526
9527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9528 (eval $ac_compile) 2>&5
9529 ac_status=$?
8934764e 9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9531 (exit $ac_status); } 2>conftest.err; then
9532 soname=conftest
9533 lib=conftest
9534 libobjs=conftest.$ac_objext
9535 deplibs=
8934764e
BB
9536 wl=$lt_prog_compiler_wl
9537 pic_flag=$lt_prog_compiler_pic
bf9f3bac 9538 compiler_flags=-v
9539 linker_flags=-v
9540 verstring=
9541 output_objdir=.
9542 libname=conftest
8934764e
BB
9543 lt_save_allow_undefined_flag=$allow_undefined_flag
9544 allow_undefined_flag=
9545 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
bf9f3bac 9547 ac_status=$?
8934764e 9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9549 (exit $ac_status); }
9550 then
8934764e 9551 archive_cmds_need_lc=no
bf9f3bac 9552 else
8934764e 9553 archive_cmds_need_lc=yes
bf9f3bac 9554 fi
8934764e 9555 allow_undefined_flag=$lt_save_allow_undefined_flag
bf9f3bac 9556 else
9557 cat conftest.err 1>&5
9558 fi
8934764e
BB
9559 $RM conftest*
9560 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9561$as_echo "$archive_cmds_need_lc" >&6; }
bf9f3bac 9562 ;;
9563 esac
9564 fi
9565 ;;
9566esac
9567
8934764e
BB
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
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9725$as_echo_n "checking dynamic linker characteristics... " >&6; }
9726
9727if test "$GCC" = yes; then
9728 case $host_os in
9729 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9730 *) lt_awk_arg="/^libraries:/" ;;
9731 esac
9732 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9733 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9734 # if the path contains ";" then we assume it to be the separator
9735 # otherwise default to the standard path separator (i.e. ":") - it is
9736 # assumed that no part of a normal pathname contains ";" but that should
9737 # okay in the real world where ";" in dirpaths is itself problematic.
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9739 else
9740 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9741 fi
9742 # Ok, now we have the path, separated by spaces, we can step through it
9743 # and add multilib dir if necessary.
9744 lt_tmp_lt_search_path_spec=
9745 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9746 for lt_sys_path in $lt_search_path_spec; do
9747 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9749 else
9750 test -d "$lt_sys_path" && \
9751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9752 fi
9753 done
9754 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9755BEGIN {RS=" "; FS="/|\n";} {
9756 lt_foo="";
9757 lt_count=0;
9758 for (lt_i = NF; lt_i > 0; lt_i--) {
9759 if ($lt_i != "" && $lt_i != ".") {
9760 if ($lt_i == "..") {
9761 lt_count++;
9762 } else {
9763 if (lt_count == 0) {
9764 lt_foo="/" $lt_i lt_foo;
9765 } else {
9766 lt_count--;
9767 }
9768 }
9769 }
9770 }
9771 if (lt_foo != "") { lt_freq[lt_foo]++; }
9772 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9773}'`
9774 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9775else
9776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9777fi
bf9f3bac 9778library_names_spec=
9779libname_spec='lib$name'
9780soname_spec=
9781shrext_cmds=".so"
9782postinstall_cmds=
9783postuninstall_cmds=
9784finish_cmds=
9785finish_eval=
9786shlibpath_var=
9787shlibpath_overrides_runpath=unknown
9788version_type=none
9789dynamic_linker="$host_os ld.so"
9790sys_lib_dlsearch_path_spec="/lib /usr/lib"
bf9f3bac 9791need_lib_prefix=unknown
9792hardcode_into_libs=no
9793
9794# when you set need_version to no, make sure it does not cause -set_version
9795# flags to be left without arguments
9796need_version=unknown
9797
9798case $host_os in
9799aix3*)
9800 version_type=linux
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9802 shlibpath_var=LIBPATH
9803
9804 # AIX 3 has no versioning support, so we append a major version to the name.
9805 soname_spec='${libname}${release}${shared_ext}$major'
9806 ;;
9807
8934764e 9808aix[4-9]*)
bf9f3bac 9809 version_type=linux
9810 need_lib_prefix=no
9811 need_version=no
9812 hardcode_into_libs=yes
9813 if test "$host_cpu" = ia64; then
9814 # AIX 5 supports IA64
9815 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 else
9818 # With GCC up to 2.95.x, collect2 would create an import file
9819 # for dependence libraries. The import file would start with
9820 # the line `#! .'. This would cause the generated library to
9821 # depend on `.', always an invalid library. This was fixed in
9822 # development snapshots of GCC prior to 3.0.
9823 case $host_os in
9824 aix4 | aix4.[01] | aix4.[01].*)
9825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9826 echo ' yes '
8934764e 9827 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
bf9f3bac 9828 :
9829 else
9830 can_build_shared=no
9831 fi
9832 ;;
9833 esac
9834 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9835 # soname into executable. Probably we can add versioning support to
9836 # collect2, so additional links can be useful in future.
9837 if test "$aix_use_runtimelinking" = yes; then
9838 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9839 # instead of lib<name>.a to let people know that these are not
9840 # typical AIX shared libraries.
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 else
9843 # We preserve .a as extension for shared libraries through AIX4.2
9844 # and later when we are not doing run time linking.
9845 library_names_spec='${libname}${release}.a $libname.a'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 fi
9848 shlibpath_var=LIBPATH
9849 fi
9850 ;;
9851
9852amigaos*)
8934764e
BB
9853 case $host_cpu in
9854 powerpc)
9855 # Since July 2007 AmigaOS4 officially supports .so libraries.
9856 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 ;;
9859 m68k)
9860 library_names_spec='$libname.ixlibrary $libname.a'
9861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9862 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'
9863 ;;
9864 esac
bf9f3bac 9865 ;;
9866
9867beos*)
9868 library_names_spec='${libname}${shared_ext}'
9869 dynamic_linker="$host_os ld.so"
9870 shlibpath_var=LIBRARY_PATH
9871 ;;
9872
9873bsdi[45]*)
9874 version_type=linux
9875 need_version=no
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9879 shlibpath_var=LD_LIBRARY_PATH
9880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9882 # the default ld.so.conf also contains /usr/contrib/lib and
9883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9884 # libtool to hard-code these into programs
9885 ;;
9886
8934764e 9887cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9888 version_type=windows
9889 shrext_cmds=".dll"
9890 need_version=no
9891 need_lib_prefix=no
9892
9893 case $GCC,$host_os in
8934764e 9894 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
bf9f3bac 9895 library_names_spec='$libname.dll.a'
9896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9897 postinstall_cmds='base_file=`basename \${file}`~
8934764e 9898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
bf9f3bac 9899 dldir=$destdir/`dirname \$dlpath`~
9900 test -d \$dldir || mkdir -p \$dldir~
9901 $install_prog $dir/$dlname \$dldir/$dlname~
8934764e
BB
9902 chmod a+x \$dldir/$dlname~
9903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9905 fi'
bf9f3bac 9906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9907 dlpath=$dir/\$dldll~
8934764e 9908 $RM \$dlpath'
bf9f3bac 9909 shlibpath_overrides_runpath=yes
9910
9911 case $host_os in
9912 cygwin*)
9913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9916 ;;
8934764e 9917 mingw* | cegcc*)
bf9f3bac 9918 # MinGW DLLs use traditional 'lib' prefix
9919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934764e
BB
9920 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9921 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
bf9f3bac 9922 # It is most probably a Windows format PATH printed by
9923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9924 # path with ; separators, and with drive letters. We can handle the
9925 # drive letters (cygwin fileutils understands them), so leave them,
9926 # especially as we might pass files found there to a mingw objdump,
9927 # which wouldn't understand a cygwinified path. Ahh.
8934764e 9928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
bf9f3bac 9929 else
8934764e 9930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
bf9f3bac 9931 fi
9932 ;;
9933 pw32*)
9934 # pw32 DLLs use 'pw' prefix rather than 'lib'
9935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9936 ;;
9937 esac
9938 ;;
9939
9940 *)
9941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9942 ;;
9943 esac
9944 dynamic_linker='Win32 ld.exe'
9945 # FIXME: first we should search . and the directory the executable is in
9946 shlibpath_var=PATH
9947 ;;
9948
9949darwin* | rhapsody*)
9950 dynamic_linker="$host_os dyld"
9951 version_type=darwin
9952 need_lib_prefix=no
9953 need_version=no
8934764e 9954 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
bf9f3bac 9955 soname_spec='${libname}${release}${major}$shared_ext'
9956 shlibpath_overrides_runpath=yes
9957 shlibpath_var=DYLD_LIBRARY_PATH
9958 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8934764e
BB
9959
9960 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
bf9f3bac 9961 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9962 ;;
9963
9964dgux*)
9965 version_type=linux
9966 need_lib_prefix=no
9967 need_version=no
9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 shlibpath_var=LD_LIBRARY_PATH
9971 ;;
9972
9973freebsd1*)
9974 dynamic_linker=no
9975 ;;
9976
bf9f3bac 9977freebsd* | dragonfly*)
9978 # DragonFly does not have aout. When/if they implement a new
9979 # versioning mechanism, adjust this.
9980 if test -x /usr/bin/objformat; then
9981 objformat=`/usr/bin/objformat`
9982 else
9983 case $host_os in
9984 freebsd[123]*) objformat=aout ;;
9985 *) objformat=elf ;;
9986 esac
9987 fi
9988 version_type=freebsd-$objformat
9989 case $version_type in
9990 freebsd-elf*)
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9992 need_version=no
9993 need_lib_prefix=no
9994 ;;
9995 freebsd-*)
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9997 need_version=yes
9998 ;;
9999 esac
10000 shlibpath_var=LD_LIBRARY_PATH
10001 case $host_os in
10002 freebsd2*)
10003 shlibpath_overrides_runpath=yes
10004 ;;
10005 freebsd3.[01]* | freebsdelf3.[01]*)
10006 shlibpath_overrides_runpath=yes
10007 hardcode_into_libs=yes
10008 ;;
10009 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10010 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10011 shlibpath_overrides_runpath=no
10012 hardcode_into_libs=yes
10013 ;;
8934764e 10014 *) # from 4.6 on, and DragonFly
bf9f3bac 10015 shlibpath_overrides_runpath=yes
10016 hardcode_into_libs=yes
10017 ;;
10018 esac
10019 ;;
10020
10021gnu*)
10022 version_type=linux
10023 need_lib_prefix=no
10024 need_version=no
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 shlibpath_var=LD_LIBRARY_PATH
10028 hardcode_into_libs=yes
10029 ;;
10030
10031hpux9* | hpux10* | hpux11*)
10032 # Give a soname corresponding to the major version so that dld.sl refuses to
10033 # link against other versions.
10034 version_type=sunos
10035 need_lib_prefix=no
10036 need_version=no
10037 case $host_cpu in
10038 ia64*)
10039 shrext_cmds='.so'
10040 hardcode_into_libs=yes
10041 dynamic_linker="$host_os dld.so"
10042 shlibpath_var=LD_LIBRARY_PATH
10043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 if test "X$HPUX_IA64_MODE" = X32; then
10047 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10048 else
10049 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10050 fi
10051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10052 ;;
8934764e
BB
10053 hppa*64*)
10054 shrext_cmds='.sl'
10055 hardcode_into_libs=yes
10056 dynamic_linker="$host_os dld.sl"
10057 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10058 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10063 ;;
10064 *)
bf9f3bac 10065 shrext_cmds='.sl'
10066 dynamic_linker="$host_os dld.sl"
10067 shlibpath_var=SHLIB_PATH
10068 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 ;;
10072 esac
10073 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10074 postinstall_cmds='chmod 555 $lib'
10075 ;;
10076
8934764e 10077interix[3-9]*)
bf9f3bac 10078 version_type=linux
10079 need_lib_prefix=no
10080 need_version=no
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 shlibpath_overrides_runpath=no
10086 hardcode_into_libs=yes
10087 ;;
10088
10089irix5* | irix6* | nonstopux*)
10090 case $host_os in
10091 nonstopux*) version_type=nonstopux ;;
10092 *)
10093 if test "$lt_cv_prog_gnu_ld" = yes; then
10094 version_type=linux
10095 else
10096 version_type=irix
10097 fi ;;
10098 esac
10099 need_lib_prefix=no
10100 need_version=no
10101 soname_spec='${libname}${release}${shared_ext}$major'
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10103 case $host_os in
10104 irix5* | nonstopux*)
10105 libsuff= shlibsuff=
10106 ;;
10107 *)
10108 case $LD in # libtool.m4 will add one of these switches to LD
10109 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10110 libsuff= shlibsuff= libmagic=32-bit;;
10111 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10112 libsuff=32 shlibsuff=N32 libmagic=N32;;
10113 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10114 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10115 *) libsuff= shlibsuff= libmagic=never-match;;
10116 esac
10117 ;;
10118 esac
10119 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10120 shlibpath_overrides_runpath=no
10121 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10122 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10123 hardcode_into_libs=yes
10124 ;;
10125
10126# No shared lib support for Linux oldld, aout, or coff.
10127linux*oldld* | linux*aout* | linux*coff*)
10128 dynamic_linker=no
10129 ;;
10130
10131# This must be Linux ELF.
8934764e 10132linux* | k*bsd*-gnu)
bf9f3bac 10133 version_type=linux
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 shlibpath_overrides_runpath=no
8934764e
BB
10141 # Some binutils ld are patched to set DT_RUNPATH
10142 save_LDFLAGS=$LDFLAGS
10143 save_libdir=$libdir
10144 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10145 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10146 cat >conftest.$ac_ext <<_ACEOF
10147/* confdefs.h. */
10148_ACEOF
10149cat confdefs.h >>conftest.$ac_ext
10150cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h. */
10152
10153int
10154main ()
10155{
10156
10157 ;
10158 return 0;
10159}
10160_ACEOF
10161rm -f conftest.$ac_objext conftest$ac_exeext
10162if { (ac_try="$ac_link"
10163case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166esac
10167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10168$as_echo "$ac_try_echo") >&5
10169 (eval "$ac_link") 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext && {
10179 test "$cross_compiling" = yes ||
10180 $as_test_x conftest$ac_exeext
10181 }; then
10182 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10183 shlibpath_overrides_runpath=yes
10184fi
10185
10186else
10187 $as_echo "$as_me: failed program was:" >&5
10188sed 's/^/| /' conftest.$ac_ext >&5
10189
10190
10191fi
10192
10193rm -rf conftest.dSYM
10194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195 conftest$ac_exeext conftest.$ac_ext
10196 LDFLAGS=$save_LDFLAGS
10197 libdir=$save_libdir
10198
bf9f3bac 10199 # This implies no fast_install, which is unacceptable.
10200 # Some rework will be needed to allow for fast_install
10201 # before this can be enabled.
10202 hardcode_into_libs=yes
10203
8934764e
BB
10204 # Add ABI-specific directories to the system library path.
10205 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
bf9f3bac 10206
10207 # Append ld.so.conf contents to the search path
10208 if test -f /etc/ld.so.conf; then
8934764e
BB
10209 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' ' '`
10210 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
bf9f3bac 10211 fi
10212
10213 # We used to test for /lib/ld.so.1 and disable shared libraries on
10214 # powerpc, because MkLinux only supported shared libraries with the
10215 # GNU dynamic linker. Since this was broken with cross compilers,
10216 # most powerpc-linux boxes support dynamic linking these days and
10217 # people can always --disable-shared, the test was removed, and we
10218 # assume the GNU/Linux dynamic linker is in use.
10219 dynamic_linker='GNU/Linux ld.so'
10220 ;;
10221
bf9f3bac 10222netbsd*)
10223 version_type=sunos
10224 need_lib_prefix=no
10225 need_version=no
8934764e 10226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
bf9f3bac 10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10229 dynamic_linker='NetBSD (a.out) ld.so'
10230 else
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 dynamic_linker='NetBSD ld.elf_so'
10234 fi
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 hardcode_into_libs=yes
10238 ;;
10239
10240newsos6)
10241 version_type=linux
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=yes
10245 ;;
10246
8934764e
BB
10247*nto* | *qnx*)
10248 version_type=qnx
bf9f3bac 10249 need_lib_prefix=no
10250 need_version=no
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 shlibpath_var=LD_LIBRARY_PATH
8934764e
BB
10254 shlibpath_overrides_runpath=no
10255 hardcode_into_libs=yes
10256 dynamic_linker='ldqnx.so'
bf9f3bac 10257 ;;
10258
10259openbsd*)
10260 version_type=sunos
10261 sys_lib_dlsearch_path_spec="/usr/lib"
10262 need_lib_prefix=no
10263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10264 case $host_os in
8934764e
BB
10265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10266 *) need_version=no ;;
bf9f3bac 10267 esac
10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10270 shlibpath_var=LD_LIBRARY_PATH
8934764e 10271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
bf9f3bac 10272 case $host_os in
10273 openbsd2.[89] | openbsd2.[89].*)
10274 shlibpath_overrides_runpath=no
10275 ;;
10276 *)
10277 shlibpath_overrides_runpath=yes
10278 ;;
10279 esac
10280 else
10281 shlibpath_overrides_runpath=yes
10282 fi
10283 ;;
10284
10285os2*)
10286 libname_spec='$name'
10287 shrext_cmds=".dll"
10288 need_lib_prefix=no
10289 library_names_spec='$libname${shared_ext} $libname.a'
10290 dynamic_linker='OS/2 ld.exe'
10291 shlibpath_var=LIBPATH
10292 ;;
10293
10294osf3* | osf4* | osf5*)
10295 version_type=osf
10296 need_lib_prefix=no
10297 need_version=no
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10303 ;;
10304
8934764e
BB
10305rdos*)
10306 dynamic_linker=no
10307 ;;
10308
bf9f3bac 10309solaris*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=yes
10317 hardcode_into_libs=yes
10318 # ldd complains unless libraries are executable
10319 postinstall_cmds='chmod +x $lib'
10320 ;;
10321
10322sunos4*)
10323 version_type=sunos
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 shlibpath_overrides_runpath=yes
10328 if test "$with_gnu_ld" = yes; then
10329 need_lib_prefix=no
10330 fi
10331 need_version=yes
10332 ;;
10333
10334sysv4 | sysv4.3*)
10335 version_type=linux
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 case $host_vendor in
10340 sni)
10341 shlibpath_overrides_runpath=no
10342 need_lib_prefix=no
bf9f3bac 10343 runpath_var=LD_RUN_PATH
10344 ;;
10345 siemens)
10346 need_lib_prefix=no
10347 ;;
10348 motorola)
10349 need_lib_prefix=no
10350 need_version=no
10351 shlibpath_overrides_runpath=no
10352 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10353 ;;
10354 esac
10355 ;;
10356
10357sysv4*MP*)
10358 if test -d /usr/nec ;then
10359 version_type=linux
10360 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10361 soname_spec='$libname${shared_ext}.$major'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 fi
10364 ;;
10365
10366sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10367 version_type=freebsd-elf
10368 need_lib_prefix=no
10369 need_version=no
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 shlibpath_var=LD_LIBRARY_PATH
8934764e 10373 shlibpath_overrides_runpath=yes
bf9f3bac 10374 hardcode_into_libs=yes
10375 if test "$with_gnu_ld" = yes; then
10376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
bf9f3bac 10377 else
10378 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
bf9f3bac 10379 case $host_os in
10380 sco3.2v5*)
10381 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10382 ;;
10383 esac
10384 fi
10385 sys_lib_dlsearch_path_spec='/usr/lib'
10386 ;;
10387
8934764e
BB
10388tpf*)
10389 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10390 version_type=linux
10391 need_lib_prefix=no
10392 need_version=no
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 shlibpath_overrides_runpath=no
10396 hardcode_into_libs=yes
10397 ;;
10398
bf9f3bac 10399uts4*)
10400 version_type=linux
10401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10402 soname_spec='${libname}${release}${shared_ext}$major'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 ;;
10405
10406*)
10407 dynamic_linker=no
10408 ;;
10409esac
8934764e
BB
10410{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10411$as_echo "$dynamic_linker" >&6; }
bf9f3bac 10412test "$dynamic_linker" = no && can_build_shared=no
10413
10414variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10415if test "$GCC" = yes; then
10416 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10417fi
10418
8934764e
BB
10419if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10420 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
bf9f3bac 10421fi
8934764e
BB
10422if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10423 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
bf9f3bac 10424fi
10425
10426
bf9f3bac 10427
bf9f3bac 10428
bf9f3bac 10429
bf9f3bac 10430
bf9f3bac 10431
bf9f3bac 10432
bf9f3bac 10433
bf9f3bac 10434
bf9f3bac 10435
bf9f3bac 10436
bf9f3bac 10437
bf9f3bac 10438
bf9f3bac 10439
bf9f3bac 10440
bf9f3bac 10441
bf9f3bac 10442
bf9f3bac 10443
bf9f3bac 10444
bf9f3bac 10445
bf9f3bac 10446
bf9f3bac 10447
bf9f3bac 10448
bf9f3bac 10449
bf9f3bac 10450
bf9f3bac 10451
bf9f3bac 10452
bf9f3bac 10453
bf9f3bac 10454
bf9f3bac 10455
bf9f3bac 10456
bf9f3bac 10457
bf9f3bac 10458
bf9f3bac 10459
bf9f3bac 10460
bf9f3bac 10461
bf9f3bac 10462
bf9f3bac 10463
bf9f3bac 10464
bf9f3bac 10465
bf9f3bac 10466
bf9f3bac 10467
bf9f3bac 10468
bf9f3bac 10469
bf9f3bac 10470
bf9f3bac 10471
bf9f3bac 10472
bf9f3bac 10473
bf9f3bac 10474
bf9f3bac 10475
bf9f3bac 10476
bf9f3bac 10477
bf9f3bac 10478
bf9f3bac 10479
bf9f3bac 10480
bf9f3bac 10481
bf9f3bac 10482
bf9f3bac 10483
bf9f3bac 10484
bf9f3bac 10485
bf9f3bac 10486
bf9f3bac 10487
bf9f3bac 10488
bf9f3bac 10489
bf9f3bac 10490
bf9f3bac 10491
bf9f3bac 10492
bf9f3bac 10493
bf9f3bac 10494
bf9f3bac 10495
bf9f3bac 10496
bf9f3bac 10497
bf9f3bac 10498
bf9f3bac 10499
bf9f3bac 10500
bf9f3bac 10501
bf9f3bac 10502
bf9f3bac 10503
bf9f3bac 10504
bf9f3bac 10505
bf9f3bac 10506
bf9f3bac 10507
bf9f3bac 10508
bf9f3bac 10509
bf9f3bac 10510
bf9f3bac 10511
8934764e
BB
10512 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10513$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10514hardcode_action=
10515if test -n "$hardcode_libdir_flag_spec" ||
10516 test -n "$runpath_var" ||
10517 test "X$hardcode_automatic" = "Xyes" ; then
bf9f3bac 10518
8934764e
BB
10519 # We can hardcode non-existent directories.
10520 if test "$hardcode_direct" != no &&
10521 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10522 # have to relink, otherwise we might link with an installed library
10523 # when we should be linking with a yet-to-be-installed one
10524 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10525 test "$hardcode_minus_L" != no; then
10526 # Linking always hardcodes the temporary library directory.
10527 hardcode_action=relink
10528 else
10529 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10530 hardcode_action=immediate
bf9f3bac 10531 fi
8934764e
BB
10532else
10533 # We cannot hardcode anything, or else we can only hardcode existing
10534 # directories.
10535 hardcode_action=unsupported
bf9f3bac 10536fi
8934764e
BB
10537{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10538$as_echo "$hardcode_action" >&6; }
bf9f3bac 10539
8934764e
BB
10540if test "$hardcode_action" = relink ||
10541 test "$inherit_rpath" = yes; then
10542 # Fast installation is not supported
10543 enable_fast_install=no
10544elif test "$shlibpath_overrides_runpath" = yes ||
10545 test "$enable_shared" = no; then
10546 # Fast installation is not necessary
10547 enable_fast_install=needless
10548fi
bf9f3bac 10549
bf9f3bac 10550
bf9f3bac 10551
bf9f3bac 10552
bf9f3bac 10553
10554
8934764e
BB
10555 if test "x$enable_dlopen" != xyes; then
10556 enable_dlopen=unknown
10557 enable_dlopen_self=unknown
10558 enable_dlopen_self_static=unknown
10559else
10560 lt_cv_dlopen=no
10561 lt_cv_dlopen_libs=
bf9f3bac 10562
8934764e
BB
10563 case $host_os in
10564 beos*)
10565 lt_cv_dlopen="load_add_on"
10566 lt_cv_dlopen_libs=
10567 lt_cv_dlopen_self=yes
10568 ;;
bf9f3bac 10569
8934764e
BB
10570 mingw* | pw32* | cegcc*)
10571 lt_cv_dlopen="LoadLibrary"
10572 lt_cv_dlopen_libs=
10573 ;;
bf9f3bac 10574
8934764e
BB
10575 cygwin*)
10576 lt_cv_dlopen="dlopen"
10577 lt_cv_dlopen_libs=
10578 ;;
bf9f3bac 10579
8934764e
BB
10580 darwin*)
10581 # if libdl is installed we need to link against it
10582 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10583$as_echo_n "checking for dlopen in -ldl... " >&6; }
10584if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10585 $as_echo_n "(cached) " >&6
10586else
10587 ac_check_lib_save_LIBS=$LIBS
10588LIBS="-ldl $LIBS"
10589cat >conftest.$ac_ext <<_ACEOF
10590/* confdefs.h. */
10591_ACEOF
10592cat confdefs.h >>conftest.$ac_ext
10593cat >>conftest.$ac_ext <<_ACEOF
10594/* end confdefs.h. */
bf9f3bac 10595
8934764e
BB
10596/* Override any GCC internal prototype to avoid an error.
10597 Use char because int might match the return type of a GCC
10598 builtin and then its argument prototype would still apply. */
10599#ifdef __cplusplus
10600extern "C"
10601#endif
10602char dlopen ();
10603int
10604main ()
10605{
10606return dlopen ();
10607 ;
10608 return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext conftest$ac_exeext
10612if { (ac_try="$ac_link"
10613case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616esac
10617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618$as_echo "$ac_try_echo") >&5
10619 (eval "$ac_link") 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest$ac_exeext && {
10629 test "$cross_compiling" = yes ||
10630 $as_test_x conftest$ac_exeext
10631 }; then
10632 ac_cv_lib_dl_dlopen=yes
10633else
10634 $as_echo "$as_me: failed program was:" >&5
10635sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10636
8934764e
BB
10637 ac_cv_lib_dl_dlopen=no
10638fi
bf9f3bac 10639
8934764e
BB
10640rm -rf conftest.dSYM
10641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642 conftest$ac_exeext conftest.$ac_ext
10643LIBS=$ac_check_lib_save_LIBS
10644fi
10645{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10646$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10647if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10649else
bf9f3bac 10650
8934764e
BB
10651 lt_cv_dlopen="dyld"
10652 lt_cv_dlopen_libs=
10653 lt_cv_dlopen_self=yes
bf9f3bac 10654
8934764e 10655fi
bf9f3bac 10656
8934764e 10657 ;;
bf9f3bac 10658
8934764e
BB
10659 *)
10660 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10661$as_echo_n "checking for shl_load... " >&6; }
10662if test "${ac_cv_func_shl_load+set}" = set; then
10663 $as_echo_n "(cached) " >&6
10664else
10665 cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
10671/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10673#define shl_load innocuous_shl_load
bf9f3bac 10674
8934764e
BB
10675/* System header to define __stub macros and hopefully few prototypes,
10676 which can conflict with char shl_load (); below.
10677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10678 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10679
8934764e
BB
10680#ifdef __STDC__
10681# include <limits.h>
10682#else
10683# include <assert.h>
10684#endif
bf9f3bac 10685
8934764e 10686#undef shl_load
bf9f3bac 10687
8934764e
BB
10688/* Override any GCC internal prototype to avoid an error.
10689 Use char because int might match the return type of a GCC
10690 builtin and then its argument prototype would still apply. */
10691#ifdef __cplusplus
10692extern "C"
10693#endif
10694char shl_load ();
10695/* The GNU C library defines this for functions which it implements
10696 to always fail with ENOSYS. Some functions are actually named
10697 something starting with __ and the normal name is an alias. */
10698#if defined __stub_shl_load || defined __stub___shl_load
10699choke me
10700#endif
bf9f3bac 10701
8934764e
BB
10702int
10703main ()
10704{
10705return shl_load ();
10706 ;
10707 return 0;
10708}
10709_ACEOF
10710rm -f conftest.$ac_objext conftest$ac_exeext
10711if { (ac_try="$ac_link"
10712case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715esac
10716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717$as_echo "$ac_try_echo") >&5
10718 (eval "$ac_link") 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } && {
10725 test -z "$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10727 } && test -s conftest$ac_exeext && {
10728 test "$cross_compiling" = yes ||
10729 $as_test_x conftest$ac_exeext
10730 }; then
10731 ac_cv_func_shl_load=yes
10732else
10733 $as_echo "$as_me: failed program was:" >&5
10734sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10735
8934764e
BB
10736 ac_cv_func_shl_load=no
10737fi
bf9f3bac 10738
8934764e
BB
10739rm -rf conftest.dSYM
10740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10741 conftest$ac_exeext conftest.$ac_ext
10742fi
10743{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10744$as_echo "$ac_cv_func_shl_load" >&6; }
10745if test "x$ac_cv_func_shl_load" = x""yes; then
10746 lt_cv_dlopen="shl_load"
10747else
10748 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10749$as_echo_n "checking for shl_load in -ldld... " >&6; }
10750if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10751 $as_echo_n "(cached) " >&6
10752else
10753 ac_check_lib_save_LIBS=$LIBS
10754LIBS="-ldld $LIBS"
10755cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
10760/* end confdefs.h. */
bf9f3bac 10761
8934764e
BB
10762/* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
10765#ifdef __cplusplus
10766extern "C"
10767#endif
10768char shl_load ();
10769int
10770main ()
10771{
10772return shl_load ();
10773 ;
10774 return 0;
10775}
10776_ACEOF
10777rm -f conftest.$ac_objext conftest$ac_exeext
10778if { (ac_try="$ac_link"
10779case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10782esac
10783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784$as_echo "$ac_try_echo") >&5
10785 (eval "$ac_link") 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext && {
10795 test "$cross_compiling" = yes ||
10796 $as_test_x conftest$ac_exeext
10797 }; then
10798 ac_cv_lib_dld_shl_load=yes
10799else
10800 $as_echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10802
8934764e
BB
10803 ac_cv_lib_dld_shl_load=no
10804fi
bf9f3bac 10805
8934764e
BB
10806rm -rf conftest.dSYM
10807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10808 conftest$ac_exeext conftest.$ac_ext
10809LIBS=$ac_check_lib_save_LIBS
10810fi
10811{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10812$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10813if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10815else
10816 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10817$as_echo_n "checking for dlopen... " >&6; }
10818if test "${ac_cv_func_dlopen+set}" = set; then
10819 $as_echo_n "(cached) " >&6
10820else
10821 cat >conftest.$ac_ext <<_ACEOF
10822/* confdefs.h. */
10823_ACEOF
10824cat confdefs.h >>conftest.$ac_ext
10825cat >>conftest.$ac_ext <<_ACEOF
10826/* end confdefs.h. */
10827/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10829#define dlopen innocuous_dlopen
bf9f3bac 10830
8934764e
BB
10831/* System header to define __stub macros and hopefully few prototypes,
10832 which can conflict with char dlopen (); below.
10833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10834 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10835
8934764e
BB
10836#ifdef __STDC__
10837# include <limits.h>
10838#else
10839# include <assert.h>
10840#endif
bf9f3bac 10841
8934764e 10842#undef dlopen
bf9f3bac 10843
8934764e
BB
10844/* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
10847#ifdef __cplusplus
10848extern "C"
10849#endif
10850char dlopen ();
10851/* The GNU C library defines this for functions which it implements
10852 to always fail with ENOSYS. Some functions are actually named
10853 something starting with __ and the normal name is an alias. */
10854#if defined __stub_dlopen || defined __stub___dlopen
10855choke me
10856#endif
bf9f3bac 10857
8934764e
BB
10858int
10859main ()
10860{
10861return dlopen ();
10862 ;
10863 return 0;
10864}
10865_ACEOF
10866rm -f conftest.$ac_objext conftest$ac_exeext
10867if { (ac_try="$ac_link"
10868case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10873$as_echo "$ac_try_echo") >&5
10874 (eval "$ac_link") 2>conftest.er1
10875 ac_status=$?
10876 grep -v '^ *+' conftest.er1 >conftest.err
10877 rm -f conftest.er1
10878 cat conftest.err >&5
10879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); } && {
10881 test -z "$ac_c_werror_flag" ||
10882 test ! -s conftest.err
10883 } && test -s conftest$ac_exeext && {
10884 test "$cross_compiling" = yes ||
10885 $as_test_x conftest$ac_exeext
10886 }; then
10887 ac_cv_func_dlopen=yes
10888else
10889 $as_echo "$as_me: failed program was:" >&5
10890sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10891
8934764e
BB
10892 ac_cv_func_dlopen=no
10893fi
bf9f3bac 10894
8934764e
BB
10895rm -rf conftest.dSYM
10896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10897 conftest$ac_exeext conftest.$ac_ext
10898fi
10899{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10900$as_echo "$ac_cv_func_dlopen" >&6; }
10901if test "x$ac_cv_func_dlopen" = x""yes; then
10902 lt_cv_dlopen="dlopen"
10903else
10904 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10905$as_echo_n "checking for dlopen in -ldl... " >&6; }
10906if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10907 $as_echo_n "(cached) " >&6
10908else
10909 ac_check_lib_save_LIBS=$LIBS
10910LIBS="-ldl $LIBS"
10911cat >conftest.$ac_ext <<_ACEOF
10912/* confdefs.h. */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h. */
bf9f3bac 10917
8934764e
BB
10918/* Override any GCC internal prototype to avoid an error.
10919 Use char because int might match the return type of a GCC
10920 builtin and then its argument prototype would still apply. */
10921#ifdef __cplusplus
10922extern "C"
10923#endif
10924char dlopen ();
10925int
10926main ()
10927{
10928return dlopen ();
10929 ;
10930 return 0;
10931}
10932_ACEOF
10933rm -f conftest.$ac_objext conftest$ac_exeext
10934if { (ac_try="$ac_link"
10935case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10940$as_echo "$ac_try_echo") >&5
10941 (eval "$ac_link") 2>conftest.er1
10942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext && {
10951 test "$cross_compiling" = yes ||
10952 $as_test_x conftest$ac_exeext
10953 }; then
10954 ac_cv_lib_dl_dlopen=yes
10955else
10956 $as_echo "$as_me: failed program was:" >&5
10957sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10958
8934764e
BB
10959 ac_cv_lib_dl_dlopen=no
10960fi
bf9f3bac 10961
8934764e
BB
10962rm -rf conftest.dSYM
10963rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10964 conftest$ac_exeext conftest.$ac_ext
10965LIBS=$ac_check_lib_save_LIBS
10966fi
10967{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10968$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10969if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10971else
10972 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10973$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10974if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10975 $as_echo_n "(cached) " >&6
10976else
10977 ac_check_lib_save_LIBS=$LIBS
10978LIBS="-lsvld $LIBS"
10979cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h. */
bf9f3bac 10985
8934764e
BB
10986/* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10989#ifdef __cplusplus
10990extern "C"
10991#endif
10992char dlopen ();
10993int
10994main ()
10995{
10996return dlopen ();
10997 ;
10998 return 0;
10999}
11000_ACEOF
11001rm -f conftest.$ac_objext conftest$ac_exeext
11002if { (ac_try="$ac_link"
11003case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11008$as_echo "$ac_try_echo") >&5
11009 (eval "$ac_link") 2>conftest.er1
11010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest$ac_exeext && {
11019 test "$cross_compiling" = yes ||
11020 $as_test_x conftest$ac_exeext
11021 }; then
11022 ac_cv_lib_svld_dlopen=yes
11023else
11024 $as_echo "$as_me: failed program was:" >&5
11025sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11026
8934764e
BB
11027 ac_cv_lib_svld_dlopen=no
11028fi
bf9f3bac 11029
8934764e
BB
11030rm -rf conftest.dSYM
11031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032 conftest$ac_exeext conftest.$ac_ext
11033LIBS=$ac_check_lib_save_LIBS
11034fi
11035{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11036$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11037if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11039else
11040 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11041$as_echo_n "checking for dld_link in -ldld... " >&6; }
11042if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11043 $as_echo_n "(cached) " >&6
11044else
11045 ac_check_lib_save_LIBS=$LIBS
11046LIBS="-ldld $LIBS"
11047cat >conftest.$ac_ext <<_ACEOF
11048/* confdefs.h. */
11049_ACEOF
11050cat confdefs.h >>conftest.$ac_ext
11051cat >>conftest.$ac_ext <<_ACEOF
11052/* end confdefs.h. */
bf9f3bac 11053
8934764e
BB
11054/* Override any GCC internal prototype to avoid an error.
11055 Use char because int might match the return type of a GCC
11056 builtin and then its argument prototype would still apply. */
11057#ifdef __cplusplus
11058extern "C"
11059#endif
11060char dld_link ();
11061int
11062main ()
11063{
11064return dld_link ();
11065 ;
11066 return 0;
11067}
11068_ACEOF
11069rm -f conftest.$ac_objext conftest$ac_exeext
11070if { (ac_try="$ac_link"
11071case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074esac
11075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11076$as_echo "$ac_try_echo") >&5
11077 (eval "$ac_link") 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest$ac_exeext && {
11087 test "$cross_compiling" = yes ||
11088 $as_test_x conftest$ac_exeext
11089 }; then
11090 ac_cv_lib_dld_dld_link=yes
11091else
11092 $as_echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11094
8934764e
BB
11095 ac_cv_lib_dld_dld_link=no
11096fi
bf9f3bac 11097
8934764e
BB
11098rm -rf conftest.dSYM
11099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101LIBS=$ac_check_lib_save_LIBS
11102fi
11103{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11104$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11105if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11106 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11107fi
bf9f3bac 11108
bf9f3bac 11109
8934764e 11110fi
bf9f3bac 11111
bf9f3bac 11112
8934764e 11113fi
bf9f3bac 11114
bf9f3bac 11115
8934764e 11116fi
bf9f3bac 11117
bf9f3bac 11118
8934764e 11119fi
bf9f3bac 11120
bf9f3bac 11121
8934764e 11122fi
bf9f3bac 11123
8934764e
BB
11124 ;;
11125 esac
bf9f3bac 11126
8934764e
BB
11127 if test "x$lt_cv_dlopen" != xno; then
11128 enable_dlopen=yes
11129 else
11130 enable_dlopen=no
11131 fi
bf9f3bac 11132
8934764e
BB
11133 case $lt_cv_dlopen in
11134 dlopen)
11135 save_CPPFLAGS="$CPPFLAGS"
11136 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
bf9f3bac 11137
8934764e
BB
11138 save_LDFLAGS="$LDFLAGS"
11139 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
bf9f3bac 11140
8934764e
BB
11141 save_LIBS="$LIBS"
11142 LIBS="$lt_cv_dlopen_libs $LIBS"
bf9f3bac 11143
8934764e
BB
11144 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11145$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11146if test "${lt_cv_dlopen_self+set}" = set; then
11147 $as_echo_n "(cached) " >&6
11148else
11149 if test "$cross_compiling" = yes; then :
11150 lt_cv_dlopen_self=cross
11151else
11152 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11153 lt_status=$lt_dlunknown
11154 cat > conftest.$ac_ext <<_LT_EOF
4b2220f0 11155#line 11155 "configure"
8934764e 11156#include "confdefs.h"
bf9f3bac 11157
8934764e
BB
11158#if HAVE_DLFCN_H
11159#include <dlfcn.h>
11160#endif
bf9f3bac 11161
8934764e 11162#include <stdio.h>
bf9f3bac 11163
8934764e
BB
11164#ifdef RTLD_GLOBAL
11165# define LT_DLGLOBAL RTLD_GLOBAL
11166#else
11167# ifdef DL_GLOBAL
11168# define LT_DLGLOBAL DL_GLOBAL
11169# else
11170# define LT_DLGLOBAL 0
11171# endif
11172#endif
bf9f3bac 11173
8934764e
BB
11174/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11175 find out it does not work in some platform. */
11176#ifndef LT_DLLAZY_OR_NOW
11177# ifdef RTLD_LAZY
11178# define LT_DLLAZY_OR_NOW RTLD_LAZY
11179# else
11180# ifdef DL_LAZY
11181# define LT_DLLAZY_OR_NOW DL_LAZY
11182# else
11183# ifdef RTLD_NOW
11184# define LT_DLLAZY_OR_NOW RTLD_NOW
11185# else
11186# ifdef DL_NOW
11187# define LT_DLLAZY_OR_NOW DL_NOW
11188# else
11189# define LT_DLLAZY_OR_NOW 0
11190# endif
11191# endif
11192# endif
11193# endif
11194#endif
bf9f3bac 11195
8934764e
BB
11196void fnord() { int i=42;}
11197int main ()
11198{
11199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11200 int status = $lt_dlunknown;
bf9f3bac 11201
8934764e
BB
11202 if (self)
11203 {
11204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11205 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11206 /* dlclose (self); */
11207 }
11208 else
11209 puts (dlerror ());
bf9f3bac 11210
8934764e
BB
11211 return status;
11212}
11213_LT_EOF
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>&5
11216 ac_status=$?
11217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11219 (./conftest; exit; ) >&5 2>/dev/null
11220 lt_status=$?
11221 case x$lt_status in
11222 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11223 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11224 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11225 esac
11226 else :
11227 # compilation failed
11228 lt_cv_dlopen_self=no
11229 fi
11230fi
11231rm -fr conftest*
bf9f3bac 11232
bf9f3bac 11233
8934764e
BB
11234fi
11235{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11236$as_echo "$lt_cv_dlopen_self" >&6; }
bf9f3bac 11237
8934764e
BB
11238 if test "x$lt_cv_dlopen_self" = xyes; then
11239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11240 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11241$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11242if test "${lt_cv_dlopen_self_static+set}" = set; then
11243 $as_echo_n "(cached) " >&6
11244else
11245 if test "$cross_compiling" = yes; then :
11246 lt_cv_dlopen_self_static=cross
11247else
11248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11249 lt_status=$lt_dlunknown
11250 cat > conftest.$ac_ext <<_LT_EOF
4b2220f0 11251#line 11251 "configure"
8934764e 11252#include "confdefs.h"
bf9f3bac 11253
8934764e
BB
11254#if HAVE_DLFCN_H
11255#include <dlfcn.h>
11256#endif
bf9f3bac 11257
8934764e 11258#include <stdio.h>
bf9f3bac 11259
8934764e
BB
11260#ifdef RTLD_GLOBAL
11261# define LT_DLGLOBAL RTLD_GLOBAL
11262#else
11263# ifdef DL_GLOBAL
11264# define LT_DLGLOBAL DL_GLOBAL
11265# else
11266# define LT_DLGLOBAL 0
11267# endif
11268#endif
bf9f3bac 11269
8934764e
BB
11270/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11271 find out it does not work in some platform. */
11272#ifndef LT_DLLAZY_OR_NOW
11273# ifdef RTLD_LAZY
11274# define LT_DLLAZY_OR_NOW RTLD_LAZY
11275# else
11276# ifdef DL_LAZY
11277# define LT_DLLAZY_OR_NOW DL_LAZY
11278# else
11279# ifdef RTLD_NOW
11280# define LT_DLLAZY_OR_NOW RTLD_NOW
11281# else
11282# ifdef DL_NOW
11283# define LT_DLLAZY_OR_NOW DL_NOW
11284# else
11285# define LT_DLLAZY_OR_NOW 0
11286# endif
11287# endif
11288# endif
11289# endif
11290#endif
bf9f3bac 11291
8934764e
BB
11292void fnord() { int i=42;}
11293int main ()
11294{
11295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11296 int status = $lt_dlunknown;
bf9f3bac 11297
8934764e
BB
11298 if (self)
11299 {
11300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11302 /* dlclose (self); */
11303 }
11304 else
11305 puts (dlerror ());
bf9f3bac 11306
8934764e
BB
11307 return status;
11308}
11309_LT_EOF
11310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11311 (eval $ac_link) 2>&5
11312 ac_status=$?
11313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11315 (./conftest; exit; ) >&5 2>/dev/null
11316 lt_status=$?
11317 case x$lt_status in
11318 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11319 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11320 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11321 esac
11322 else :
11323 # compilation failed
11324 lt_cv_dlopen_self_static=no
11325 fi
11326fi
11327rm -fr conftest*
bf9f3bac 11328
bf9f3bac 11329
8934764e
BB
11330fi
11331{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11332$as_echo "$lt_cv_dlopen_self_static" >&6; }
11333 fi
bf9f3bac 11334
8934764e
BB
11335 CPPFLAGS="$save_CPPFLAGS"
11336 LDFLAGS="$save_LDFLAGS"
11337 LIBS="$save_LIBS"
11338 ;;
11339 esac
bf9f3bac 11340
8934764e
BB
11341 case $lt_cv_dlopen_self in
11342 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11343 *) enable_dlopen_self=unknown ;;
11344 esac
bf9f3bac 11345
8934764e
BB
11346 case $lt_cv_dlopen_self_static in
11347 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11348 *) enable_dlopen_self_static=unknown ;;
11349 esac
11350fi
bf9f3bac 11351
bf9f3bac 11352
bf9f3bac 11353
bf9f3bac 11354
bf9f3bac 11355
bf9f3bac 11356
bf9f3bac 11357
bf9f3bac 11358
bf9f3bac 11359
bf9f3bac 11360
bf9f3bac 11361
bf9f3bac 11362
bf9f3bac 11363
bf9f3bac 11364
bf9f3bac 11365
bf9f3bac 11366
bf9f3bac 11367
8934764e
BB
11368striplib=
11369old_striplib=
11370{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11371$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11372if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11373 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11374 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11375 { $as_echo "$as_me:$LINENO: result: yes" >&5
11376$as_echo "yes" >&6; }
11377else
11378# FIXME - insert some real tests, host_os isn't really good enough
11379 case $host_os in
11380 darwin*)
11381 if test -n "$STRIP" ; then
11382 striplib="$STRIP -x"
11383 old_striplib="$STRIP -S"
11384 { $as_echo "$as_me:$LINENO: result: yes" >&5
11385$as_echo "yes" >&6; }
11386 else
11387 { $as_echo "$as_me:$LINENO: result: no" >&5
11388$as_echo "no" >&6; }
11389 fi
11390 ;;
11391 *)
11392 { $as_echo "$as_me:$LINENO: result: no" >&5
11393$as_echo "no" >&6; }
11394 ;;
11395 esac
11396fi
bf9f3bac 11397
bf9f3bac 11398
bf9f3bac 11399
bf9f3bac 11400
bf9f3bac 11401
bf9f3bac 11402
bf9f3bac 11403
bf9f3bac 11404
bf9f3bac 11405
bf9f3bac 11406
bf9f3bac 11407
bf9f3bac 11408
8934764e
BB
11409 # Report which library types will actually be built
11410 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11411$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11412 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11413$as_echo "$can_build_shared" >&6; }
bf9f3bac 11414
8934764e
BB
11415 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11416$as_echo_n "checking whether to build shared libraries... " >&6; }
11417 test "$can_build_shared" = "no" && enable_shared=no
bf9f3bac 11418
8934764e
BB
11419 # On AIX, shared libraries and static libraries use the same namespace, and
11420 # are all built from PIC.
11421 case $host_os in
11422 aix3*)
11423 test "$enable_shared" = yes && enable_static=no
11424 if test -n "$RANLIB"; then
11425 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11426 postinstall_cmds='$RANLIB $lib'
11427 fi
11428 ;;
bf9f3bac 11429
8934764e
BB
11430 aix[4-9]*)
11431 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11432 test "$enable_shared" = yes && enable_static=no
11433 fi
11434 ;;
11435 esac
11436 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11437$as_echo "$enable_shared" >&6; }
bf9f3bac 11438
8934764e
BB
11439 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11440$as_echo_n "checking whether to build static libraries... " >&6; }
11441 # Make sure either enable_shared or enable_static is yes.
11442 test "$enable_shared" = yes || enable_static=yes
11443 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11444$as_echo "$enable_static" >&6; }
bf9f3bac 11445
bf9f3bac 11446
bf9f3bac 11447
11448
bf9f3bac 11449fi
bf9f3bac 11450ac_ext=c
11451ac_cpp='$CPP $CPPFLAGS'
11452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11454ac_compiler_gnu=$ac_cv_c_compiler_gnu
11455
11456CC="$lt_save_CC"
11457
bf9f3bac 11458
bf9f3bac 11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
8934764e 11470 ac_config_commands="$ac_config_commands libtool"
bf9f3bac 11471
11472
11473
11474
8934764e 11475# Only expand once:
bf9f3bac 11476
11477
11478
11479
8934764e
BB
11480 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11481$as_echo_n "checking spl license... " >&6; }
86933a6e 11482 LICENSE=GPL
8934764e
BB
11483 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11484$as_echo "$LICENSE" >&6; }
86933a6e
BB
11485 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11486
11487
11488
287b2fb1 11489
0b14b9f3
BB
11490 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11491$as_echo_n "checking linux distribution... " >&6; }
11492 if test -f /etc/redhat-release ; then
11493 VENDOR=redhat ;
11494 elif test -f /etc/fedora-release ; then
11495 VENDOR=fedora ;
11496 elif test -f /etc/arch-release ; then
11497 VENDOR=arch ;
11498 elif test -f /etc/lsb-release ; then
11499 VENDOR=ubuntu ;
11500 elif test -f /etc/debian_version ; then
11501 VENDOR=debian ;
11502 elif test -f /etc/SuSE-release ; then
11503 VENDOR=sles ;
11504 elif test -f /etc/slackware-version ; then
11505 VENDOR=slackware ;
11506 elif test -f /etc/gentoo-release ; then
11507 VENDOR=gentoo ;
11508 else
11509 VENDOR= ;
11510 fi
11511 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11512$as_echo "$VENDOR" >&6; }
11513
11514
11515 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11516$as_echo_n "checking default package type... " >&6; }
11517 case "$VENDOR" in
11518 fedora) DEFAULT_PACKAGE=rpm ;;
11519 redhat) DEFAULT_PACKAGE=rpm ;;
11520 sles) DEFAULT_PACKAGE=rpm ;;
11521 ubuntu) DEFAULT_PACKAGE=deb ;;
11522 debian) DEFAULT_PACKAGE=deb ;;
11523 slackware) DEFAULT_PACKAGE=tgz ;;
11524 arch) DEFAULT_PACKAGE=arch;;
11525 *) DEFAULT_PACKAGE=rpm ;;
11526 esac
11527
11528 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11529$as_echo "$DEFAULT_PACKAGE" >&6; }
11530
11531
11532
287b2fb1
BB
11533 RPM=rpm
11534 RPMBUILD=rpmbuild
11535
11536 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11537$as_echo_n "checking whether $RPM is available... " >&6; }
11538 if tmp=$($RPM --version 2>/dev/null); then
11539
11540 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11541 HAVE_RPM=yes
11542 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11543$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11544
11545else
11546
11547 HAVE_RPM=no
11548 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11549$as_echo "$HAVE_RPM" >&6; }
11550
11551fi
11552
11553
11554 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11555$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11556 if tmp=$($RPMBUILD --version 2>/dev/null); then
11557
11558 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11559 HAVE_RPMBUILD=yes
11560 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11561$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11562
11563else
11564
11565 HAVE_RPMBUILD=no
11566 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11567$as_echo "$HAVE_RPMBUILD" >&6; }
11568
11569fi
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581 DPKG=dpkg
11582 DPKGBUILD=dpkg-buildpackage
11583
11584 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11585$as_echo_n "checking whether $DPKG is available... " >&6; }
11586 if tmp=$($DPKG --version 2>/dev/null); then
11587
11588 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11589 HAVE_DPKG=yes
11590 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11591$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11592
11593else
11594
11595 HAVE_DPKG=no
11596 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11597$as_echo "$HAVE_DPKG" >&6; }
11598
11599fi
11600
11601
11602 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11603$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11604 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11605
11606 DPKGBUILD_VERSION=$(echo $tmp | \
11607 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11608 HAVE_DPKGBUILD=yes
11609 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11610$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11611
11612else
11613
11614 HAVE_DPKGBUILD=no
11615 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11616$as_echo "$HAVE_DPKGBUILD" >&6; }
11617
11618fi
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630 ALIEN=alien
11631
11632 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11633$as_echo_n "checking whether $ALIEN is available... " >&6; }
11634 if tmp=$($ALIEN --version 2>/dev/null); then
11635
11636 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11637 HAVE_ALIEN=yes
11638 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11639$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11640
11641else
11642
11643 HAVE_ALIEN=no
11644 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11645$as_echo "$HAVE_ALIEN" >&6; }
11646
11647fi
11648
11649
11650
11651
11652
11653
11654
0b14b9f3
BB
11655 if test "$VENDOR" = "arch"; then
11656
c2dceb5c
PS
11657 PACMAN=pacman
11658 MAKEPKG=makepkg
11659
11660 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11661$as_echo_n "checking whether $PACMAN is available... " >&6; }
11662 tmp=$($PACMAN --version 2>/dev/null)
11663 if test -n "$tmp"; then
11664
11665 PACMAN_VERSION=$(echo $tmp |
11666 $AWK '/Pacman/ { print $3 }' |
11667 $SED 's/^v//')
11668 HAVE_PACMAN=yes
11669 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11670$as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11671
11672else
11673
11674 HAVE_PACMAN=no
11675 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11676$as_echo "$HAVE_PACMAN" >&6; }
11677
11678fi
11679
11680
11681 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11682$as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11683 tmp=$($MAKEPKG --version 2>/dev/null)
11684 if test -n "$tmp"; then
11685
11686 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11687 HAVE_MAKEPKG=yes
11688 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11689$as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11690
11691else
11692
11693 HAVE_MAKEPKG=no
11694 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11695$as_echo "$HAVE_MAKEPKG" >&6; }
11696
11697fi
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
0b14b9f3 11708fi
287b2fb1
BB
11709
11710
11711
86933a6e
BB
11712 SPL_CONFIG=all
11713
8934764e 11714# Check whether --with-config was given.
86933a6e 11715if test "${with_config+set}" = set; then
8934764e
BB
11716 withval=$with_config; SPL_CONFIG="$withval"
11717fi
86933a6e 11718
8934764e
BB
11719
11720 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11721$as_echo_n "checking spl config... " >&6; }
11722 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11723$as_echo "$SPL_CONFIG" >&6; };
86933a6e
BB
11724
11725
11726 case "$SPL_CONFIG" in
11727 kernel)
11728
11729
8934764e 11730# Check whether --with-linux was given.
86933a6e 11731if test "${with_linux+set}" = set; then
8934764e
BB
11732 withval=$with_linux; kernelsrc="$withval"
11733fi
86933a6e
BB
11734
11735
8934764e
BB
11736
11737# Check whether --with-linux-obj was given.
86933a6e 11738if test "${with_linux_obj+set}" = set; then
8934764e
BB
11739 withval=$with_linux_obj; kernelbuild="$withval"
11740fi
86933a6e 11741
8934764e
BB
11742
11743 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11744$as_echo_n "checking kernel source directory... " >&6; }
86933a6e 11745 if test -z "$kernelsrc"; then
22ccfaa8
BB
11746 if test -e "/lib/modules/$(uname -r)/source"; then
11747 headersdir="/lib/modules/$(uname -r)/source"
11748 sourcelink=$(readlink -f "$headersdir")
11749 elif test -e "/lib/modules/$(uname -r)/build"; then
11750 headersdir="/lib/modules/$(uname -r)/build"
534c4e38
BM
11751 sourcelink=$(readlink -f "$headersdir")
11752 else
11753 sourcelink=$(ls -1d /usr/src/kernels/* \
11754 /usr/src/linux-* \
11755 2>/dev/null | grep -v obj | tail -1)
11756 fi
86933a6e 11757
8fd4e3af 11758 if test -n "$sourcelink" && test -e ${sourcelink}; then
86933a6e
BB
11759 kernelsrc=`readlink -f ${sourcelink}`
11760 else
8934764e
BB
11761 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11762$as_echo "Not found" >&6; }
11763 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
11764 *** Please make sure the kernel devel package for your distribution
11765 *** is installed then try again. If that fails you can specify the
11766 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 11767$as_echo "$as_me: error:
8fd4e3af
BB
11768 *** Please make sure the kernel devel package for your distribution
11769 *** is installed then try again. If that fails you can specify the
11770 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
86933a6e
BB
11771 { (exit 1); exit 1; }; }
11772 fi
11773 else
11774 if test "$kernelsrc" = "NONE"; then
11775 kernsrcver=NONE
11776 fi
11777 fi
11778
8934764e
BB
11779 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11780$as_echo "$kernelsrc" >&6; }
11781 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11782$as_echo_n "checking kernel build directory... " >&6; }
86933a6e 11783 if test -z "$kernelbuild"; then
22ccfaa8
BB
11784 if test -e "/lib/modules/$(uname -r)/build"; then
11785 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11786 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
e2d28a37
BB
11787 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11788 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11789 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11790 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11791 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
86933a6e
BB
11792 else
11793 kernelbuild=${kernelsrc}
11794 fi
11795 fi
8934764e
BB
11796 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11797$as_echo "$kernelbuild" >&6; }
86933a6e 11798
8934764e
BB
11799 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11800$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
11801 utsrelease1=$kernelbuild/include/linux/version.h
11802 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11803 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11804 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11805 utsrelease=linux/version.h
11806 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11807 utsrelease=linux/utsrelease.h
11808 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11809 utsrelease=generated/utsrelease.h
11810 fi
86933a6e 11811
fd921c2e
BB
11812 if test "$utsrelease"; then
11813 kernsrcver=`(echo "#include <$utsrelease>";
86933a6e
BB
11814 echo "kernsrcver=UTS_RELEASE") |
11815 cpp -I $kernelbuild/include |
11816 grep "^kernsrcver=" | cut -d \" -f 2`
86933a6e 11817
fd921c2e
BB
11818 if test -z "$kernsrcver"; then
11819 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11820$as_echo "Not found" >&6; }
11821 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11822$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11823 { (exit 1); exit 1; }; }
11824 fi
11825 else
8934764e
BB
11826 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11827$as_echo "Not found" >&6; }
fd921c2e
BB
11828 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11829$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
86933a6e
BB
11830 { (exit 1); exit 1; }; }
11831 fi
11832
8934764e
BB
11833 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11834$as_echo "$kernsrcver" >&6; }
86933a6e
BB
11835
11836 LINUX=${kernelsrc}
11837 LINUX_OBJ=${kernelbuild}
11838 LINUX_VERSION=${kernsrcver}
11839
11840
11841
11842
11843
11844
bb339d06 11845 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
11846 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11847$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
11848 if test -f "$modpost"; then
11849 if grep -q Modules.symvers $modpost; then
11850 LINUX_SYMBOLS=Modules.symvers
11851 else
11852 LINUX_SYMBOLS=Module.symvers
11853 fi
912fd84d
BB
11854
11855 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11856 { { $as_echo "$as_me:$LINENO: error:
11857 *** Please make sure the kernel devel package for your distribution
11858 *** is installed. If your building with a custom kernel make sure the
11859 *** kernel is configured, built, and the '--with-linux=PATH' configure
11860 *** option refers to the location of the kernel source." >&5
11861$as_echo "$as_me: error:
11862 *** Please make sure the kernel devel package for your distribution
11863 *** is installed. If your building with a custom kernel make sure the
11864 *** kernel is configured, built, and the '--with-linux=PATH' configure
11865 *** option refers to the location of the kernel source." >&2;}
11866 { (exit 1); exit 1; }; }
11867 fi
86933a6e 11868 else
bb339d06 11869 LINUX_SYMBOLS=NONE
86933a6e 11870 fi
8934764e
BB
11871 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11872$as_echo "$LINUX_SYMBOLS" >&6; }
86933a6e
BB
11873
11874
11875
11876
7731d46b
BB
11877 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11878$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11879
11880
11881cat confdefs.h - <<_ACEOF >conftest.c
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887
11888
c064bdee 11889 #include <linux/module.h>
7731d46b
BB
11890
11891int
11892main (void)
11893{
11894
11895 #ifndef CONFIG_PREEMPT
11896 #error CONFIG_PREEMPT not #defined
11897 #endif
11898
11899 ;
11900 return 0;
11901}
11902
11903_ACEOF
11904
11905
11906 rm -Rf build && mkdir -p build
11907 echo "obj-m := conftest.o" >build/Makefile
11908 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919
11920 { $as_echo "$as_me:$LINENO: result: yes" >&5
11921$as_echo "yes" >&6; }
11922 { { $as_echo "$as_me:$LINENO: error:
11923 *** Kernel built with CONFIG_PREEMPT which is not supported.
11924 ** You must rebuild your kernel without this option." >&5
11925$as_echo "$as_me: error:
11926 *** Kernel built with CONFIG_PREEMPT which is not supported.
11927 ** You must rebuild your kernel without this option." >&2;}
11928 { (exit 1); exit 1; }; }
11929
11930else
11931 $as_echo "$as_me: failed program was:" >&5
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 { $as_echo "$as_me:$LINENO: result: no" >&5
11935$as_echo "no" >&6; }
11936
11937
11938
11939
11940fi
11941
11942 rm -Rf build
11943
11944
11945
11946
11947
86933a6e
BB
11948 if test "${LINUX_OBJ}" != "${LINUX}"; then
11949 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11950 fi
11951
11952
a7958f7e 11953 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
86933a6e
BB
11954
11955
11956
c950d148
BB
11957 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11958$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 11959 # Check whether --enable-debug was given.
86933a6e 11960if test "${enable_debug+set}" = set; then
8934764e 11961 enableval=$enable_debug;
055ffd98
BB
11962else
11963 enable_debug=no
8934764e
BB
11964fi
11965
055ffd98
BB
11966
11967 if test "x$enable_debug" = xyes; then
c950d148 11968
c950d148
BB
11969 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11970 DEBUG_CFLAGS="-DDEBUG -Werror"
11971
055ffd98 11972else
c950d148 11973
c950d148
BB
11974 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11975 DEBUG_CFLAGS="-DNDEBUG"
11976
055ffd98
BB
11977fi
11978
11979
c950d148 11980
8934764e
BB
11981 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11982$as_echo "$enable_debug" >&6; }
86933a6e
BB
11983
11984
4b2220f0
BB
11985 # Check whether --enable-debug-log was given.
11986if test "${enable_debug_log+set}" = set; then
11987 enableval=$enable_debug_log;
11988else
11989 enable_debug_log=yes
11990fi
11991
11992
11993 if test "x$enable_debug_log" = xyes; then
11994
11995cat >>confdefs.h <<\_ACEOF
11996#define DEBUG_LOG 1
11997_ACEOF
11998
11999 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
12000fi
12001
12002
12003 { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5
12004$as_echo_n "checking whether basic debug logging is enabled... " >&6; }
12005 { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5
12006$as_echo "$enable_debug_log" >&6; }
12007
12008
8934764e 12009 # Check whether --enable-debug-kmem was given.
86933a6e 12010if test "${enable_debug_kmem+set}" = set; then
8934764e 12011 enableval=$enable_debug_kmem;
055ffd98
BB
12012else
12013 enable_debug_kmem=yes
8934764e
BB
12014fi
12015
055ffd98
BB
12016
12017 if test "x$enable_debug_kmem" = xyes; then
86933a6e
BB
12018
12019cat >>confdefs.h <<\_ACEOF
12020#define DEBUG_KMEM 1
12021_ACEOF
12022
12023 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 12024fi
86933a6e 12025
86933a6e 12026
8934764e
BB
12027 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
12028$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12029 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
12030$as_echo "$enable_debug_kmem" >&6; }
86933a6e
BB
12031
12032
8934764e 12033 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 12034if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 12035 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
12036else
12037 enable_debug_kmem_tracking=no
8934764e
BB
12038fi
12039
055ffd98
BB
12040
12041 if test "x$enable_debug_kmem_tracking" = xyes; then
86933a6e
BB
12042
12043cat >>confdefs.h <<\_ACEOF
055ffd98 12044#define DEBUG_KMEM_TRACKING 1
86933a6e
BB
12045_ACEOF
12046
055ffd98
BB
12047 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12048fi
12049
12050
8934764e
BB
12051 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
12052$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12053 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
12054$as_echo "$enable_debug_kmem_tracking" >&6; }
86933a6e 12055
5e9b5d83 12056
8934764e 12057 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 12058if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 12059 enableval=$enable_atomic_spinlocks;
5e9b5d83 12060else
d04c8a56 12061 enable_atomic_spinlocks=check
8934764e
BB
12062fi
12063
5e9b5d83 12064
86933a6e
BB
12065
12066
dbe561d8 12067cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073
12074
d04c8a56 12075 #include <asm/atomic.h>
86933a6e
BB
12076
12077int
12078main (void)
12079{
12080
03318641 12081 atomic64_t *ptr __attribute__ ((unused));
86933a6e
BB
12082
12083 ;
12084 return 0;
12085}
12086
12087_ACEOF
12088
12089
12090 rm -Rf build && mkdir -p build
12091 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12092 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
8934764e 12096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12100 ac_status=$?
8934764e 12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12102 (exit $ac_status); }; }; then
12103
d04c8a56 12104 have_atomic64_t=yes
86933a6e
BB
12105
12106cat >>confdefs.h <<\_ACEOF
d04c8a56 12107#define HAVE_ATOMIC64_T 1
86933a6e
BB
12108_ACEOF
12109
12110
12111else
8934764e 12112 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12113sed 's/^/| /' conftest.$ac_ext >&5
12114
d04c8a56 12115 have_atomic64_t=no
86933a6e
BB
12116
12117
12118
12119fi
12120
12121 rm -Rf build
12122
12123
12124
d04c8a56
BB
12125 if test "x$enable_atomic_spinlocks" = xcheck; then
12126
12127 if test "x$have_atomic64_t" = xyes; then
12128
12129 enable_atomic_spinlocks=no
12130
12131else
12132
12133 enable_atomic_spinlocks=yes
12134
12135fi
12136
12137
12138fi
12139
12140
12141 if test "x$enable_atomic_spinlocks" = xyes; then
12142
12143
12144cat >>confdefs.h <<\_ACEOF
12145#define ATOMIC_SPINLOCK 1
12146_ACEOF
12147
12148
12149else
12150
12151 if test "x$have_atomic64_t" = xno; then
12152
8934764e
BB
12153 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12155{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 12156See \`config.log' for more details." >&5
8934764e 12157$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 12158See \`config.log' for more details." >&2;}
8934764e 12159 { (exit 1); exit 1; }; }; }
d04c8a56
BB
12160
12161fi
12162
12163
12164fi
12165
12166
8934764e
BB
12167 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12168$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12169 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12170$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 12171
8934764e
BB
12172 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12173$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12174 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12175$as_echo "$have_atomic64_t" >&6; }
d04c8a56 12176
8934764e
BB
12177 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12178$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
86933a6e
BB
12179
12180
dbe561d8 12181cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12182/* confdefs.h. */
12183_ACEOF
12184cat confdefs.h >>conftest.$ac_ext
12185cat >>conftest.$ac_ext <<_ACEOF
12186/* end confdefs.h. */
12187
12188
12189 #include <asm/atomic.h>
5ec44a37 12190 #include <asm/system.h>
86933a6e
BB
12191
12192int
12193main (void)
12194{
12195
d04c8a56 12196 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
86933a6e
BB
12197
12198 ;
12199 return 0;
12200}
12201
12202_ACEOF
12203
12204
12205 rm -Rf build && mkdir -p build
12206 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12207 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12210 ac_status=$?
8934764e 12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12212 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12214 (eval $ac_try) 2>&5
12215 ac_status=$?
8934764e 12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12217 (exit $ac_status); }; }; then
12218
8934764e
BB
12219 { $as_echo "$as_me:$LINENO: result: yes" >&5
12220$as_echo "yes" >&6; }
86933a6e
BB
12221
12222cat >>confdefs.h <<\_ACEOF
d04c8a56 12223#define HAVE_ATOMIC64_CMPXCHG 1
86933a6e
BB
12224_ACEOF
12225
12226
12227else
8934764e 12228 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
8934764e
BB
12231 { $as_echo "$as_me:$LINENO: result: no" >&5
12232$as_echo "no" >&6; }
86933a6e
BB
12233
12234
12235
302b88e6
BB
12236fi
12237
12238 rm -Rf build
12239
12240
12241
8934764e
BB
12242 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12243$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
12244
12245
dbe561d8 12246cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
12252
12253
12254 #include <asm/atomic.h>
12255
12256int
12257main (void)
12258{
12259
d04c8a56 12260 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
12261
12262 ;
12263 return 0;
12264}
12265
12266_ACEOF
12267
12268
12269 rm -Rf build && mkdir -p build
12270 echo "obj-m := conftest.o" >build/Makefile
12271 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
8934764e 12275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12276 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
8934764e 12280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12281 (exit $ac_status); }; }; then
12282
8934764e
BB
12283 { $as_echo "$as_me:$LINENO: result: yes" >&5
12284$as_echo "yes" >&6; }
302b88e6
BB
12285
12286cat >>confdefs.h <<\_ACEOF
d04c8a56 12287#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
12288_ACEOF
12289
12290
12291else
8934764e 12292 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
8934764e
BB
12295 { $as_echo "$as_me:$LINENO: result: no" >&5
12296$as_echo "no" >&6; }
302b88e6
BB
12297
12298
12299
12300fi
12301
12302 rm -Rf build
12303
12304
12305
8934764e
BB
12306 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12307$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
12308
12309
dbe561d8 12310cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
12316
12317
d04c8a56 12318 #include <linux/types.h>
302b88e6
BB
12319
12320int
12321main (void)
12322{
12323
03318641 12324 uintptr_t *ptr __attribute__ ((unused));
302b88e6
BB
12325
12326 ;
12327 return 0;
12328}
12329
12330_ACEOF
12331
12332
12333 rm -Rf build && mkdir -p build
12334 echo "obj-m := conftest.o" >build/Makefile
12335 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12338 ac_status=$?
8934764e 12339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
8934764e 12344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12345 (exit $ac_status); }; }; then
12346
8934764e
BB
12347 { $as_echo "$as_me:$LINENO: result: yes" >&5
12348$as_echo "yes" >&6; }
302b88e6
BB
12349
12350cat >>confdefs.h <<\_ACEOF
d04c8a56 12351#define HAVE_UINTPTR_T 1
302b88e6
BB
12352_ACEOF
12353
12354
12355else
8934764e 12356 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
8934764e
BB
12359 { $as_echo "$as_me:$LINENO: result: no" >&5
12360$as_echo "no" >&6; }
302b88e6
BB
12361
12362
12363
86933a6e
BB
12364fi
12365
12366 rm -Rf build
12367
12368
12369
8934764e
BB
12370 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12371$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
86933a6e
BB
12372
12373
dbe561d8 12374cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
12380
12381
12382 #include <linux/workqueue.h>
12383
12384int
12385main (void)
12386{
12387
03318641 12388 struct work_struct work __attribute__ ((unused));
86933a6e
BB
12389 INIT_WORK(&work, NULL, NULL);
12390
12391 ;
12392 return 0;
12393}
12394
12395_ACEOF
12396
12397
12398 rm -Rf build && mkdir -p build
12399 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12400 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
8934764e 12404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12405 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
8934764e 12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12410 (exit $ac_status); }; }; then
12411
8934764e
BB
12412 { $as_echo "$as_me:$LINENO: result: yes" >&5
12413$as_echo "yes" >&6; }
86933a6e
BB
12414
12415cat >>confdefs.h <<\_ACEOF
12416#define HAVE_3ARGS_INIT_WORK 1
12417_ACEOF
12418
12419
12420else
8934764e 12421 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
8934764e
BB
12424 { $as_echo "$as_me:$LINENO: result: no" >&5
12425$as_echo "no" >&6; }
86933a6e
BB
12426
12427
12428
12429fi
12430
12431 rm -Rf build
12432
12433
12434
8934764e
BB
12435 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12436$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
86933a6e
BB
12437
12438
dbe561d8 12439cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12440/* confdefs.h. */
12441_ACEOF
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445
12446
12447 #include <linux/sysctl.h>
12448
12449int
12450main (void)
12451{
12452
03318641 12453 (void) register_sysctl_table(NULL, 0);
86933a6e
BB
12454
12455 ;
12456 return 0;
12457}
12458
12459_ACEOF
12460
12461
12462 rm -Rf build && mkdir -p build
12463 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12464 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12467 ac_status=$?
8934764e 12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12469 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12472 ac_status=$?
8934764e 12473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12474 (exit $ac_status); }; }; then
12475
8934764e
BB
12476 { $as_echo "$as_me:$LINENO: result: yes" >&5
12477$as_echo "yes" >&6; }
86933a6e
BB
12478
12479cat >>confdefs.h <<\_ACEOF
12480#define HAVE_2ARGS_REGISTER_SYSCTL 1
12481_ACEOF
12482
12483
12484else
8934764e 12485 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12486sed 's/^/| /' conftest.$ac_ext >&5
12487
8934764e
BB
12488 { $as_echo "$as_me:$LINENO: result: no" >&5
12489$as_echo "no" >&6; }
86933a6e
BB
12490
12491
12492
12493fi
12494
12495 rm -Rf build
12496
12497
12498
12499
8934764e
BB
12500 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12501$as_echo_n "checking whether set_shrinker() available... " >&6; }
86933a6e
BB
12502
12503
dbe561d8 12504cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
12510
12511
12512 #include <linux/mm.h>
12513
12514int
12515main (void)
12516{
12517
12518 return set_shrinker(DEFAULT_SEEKS, NULL);
12519
12520 ;
12521 return 0;
12522}
12523
12524_ACEOF
12525
12526
12527 rm -Rf build && mkdir -p build
12528 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12529 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12532 ac_status=$?
8934764e 12533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12534 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
8934764e 12538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12539 (exit $ac_status); }; }; then
12540
8934764e
BB
12541 { $as_echo "$as_me:$LINENO: result: yes" >&5
12542$as_echo "yes" >&6; }
86933a6e
BB
12543
12544cat >>confdefs.h <<\_ACEOF
12545#define HAVE_SET_SHRINKER 1
12546_ACEOF
12547
12548
12549else
8934764e 12550 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
8934764e
BB
12553 { $as_echo "$as_me:$LINENO: result: no" >&5
12554$as_echo "no" >&6; }
86933a6e
BB
12555
12556
12557
12558fi
12559
12560 rm -Rf build
12561
12562
12563
23aa63cb
BB
12564 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12565$as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12566 tmp_flags="$EXTRA_KCFLAGS"
12567 EXTRA_KCFLAGS="-Werror"
12568
12569
12570cat confdefs.h - <<_ACEOF >conftest.c
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
12576
12577
12578 #include <linux/mm.h>
12579
12580 int shrinker_cb(struct shrinker *, int, unsigned int);
12581
12582int
12583main (void)
12584{
12585
12586 struct shrinker cache_shrinker = {
12587 .shrink = shrinker_cb,
12588 .seeks = DEFAULT_SEEKS,
12589 };
12590 register_shrinker(&cache_shrinker);
12591
12592 ;
12593 return 0;
12594}
12595
12596_ACEOF
12597
12598
12599 rm -Rf build && mkdir -p build
12600 echo "obj-m := conftest.o" >build/Makefile
12601 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612
12613 { $as_echo "$as_me:$LINENO: result: yes" >&5
12614$as_echo "yes" >&6; }
12615
12616cat >>confdefs.h <<\_ACEOF
12617#define HAVE_3ARGS_SHRINKER_CALLBACK 1
12618_ACEOF
12619
12620
12621else
12622 $as_echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 { $as_echo "$as_me:$LINENO: result: no" >&5
12626$as_echo "no" >&6; }
12627
12628
12629
12630fi
12631
12632 rm -Rf build
12633
12634
12635 EXTRA_KCFLAGS="$tmp_flags"
12636
8934764e
BB
12637 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12638$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
86933a6e
BB
12639
12640
dbe561d8 12641cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12642/* confdefs.h. */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h. */
12647
12648
12649 #include <linux/namei.h>
12650
12651int
12652main (void)
12653{
12654
03318641 12655 struct nameidata nd __attribute__ ((unused));
86933a6e
BB
12656
12657 nd.path.mnt = NULL;
12658 nd.path.dentry = NULL;
12659
12660 ;
12661 return 0;
12662}
12663
12664_ACEOF
12665
12666
12667 rm -Rf build && mkdir -p build
12668 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12669 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
8934764e 12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12674 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
8934764e 12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12679 (exit $ac_status); }; }; then
12680
8934764e
BB
12681 { $as_echo "$as_me:$LINENO: result: yes" >&5
12682$as_echo "yes" >&6; }
86933a6e
BB
12683
12684cat >>confdefs.h <<\_ACEOF
12685#define HAVE_PATH_IN_NAMEIDATA 1
12686_ACEOF
12687
12688
12689else
8934764e 12690 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12691sed 's/^/| /' conftest.$ac_ext >&5
12692
8934764e
BB
12693 { $as_echo "$as_me:$LINENO: result: no" >&5
12694$as_echo "no" >&6; }
86933a6e
BB
12695
12696
12697
12698fi
12699
12700 rm -Rf build
12701
12702
12703
12704
8934764e
BB
12705 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12706$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
86933a6e
BB
12707 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12708 $LINUX_OBJ/Module*.symvers 2>/dev/null
12709 rc=$?
12710 if test $rc -ne 0; then
12711 export=0
12712 for file in kernel/sched.c; do
12713 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12714 "$LINUX_OBJ/$file" 2>/dev/null
12715 rc=$?
12716 if test $rc -eq 0; then
12717 export=1
12718 break;
12719 fi
12720 done
12721 if test $export -eq 0; then
8934764e
BB
12722 { $as_echo "$as_me:$LINENO: result: no" >&5
12723$as_echo "no" >&6; }
86933a6e
BB
12724
12725 else
8934764e
BB
12726 { $as_echo "$as_me:$LINENO: result: yes" >&5
12727$as_echo "yes" >&6; }
86933a6e
BB
12728
12729cat >>confdefs.h <<\_ACEOF
12730#define HAVE_TASK_CURR 1
12731_ACEOF
12732
12733 fi
12734 else
8934764e
BB
12735 { $as_echo "$as_me:$LINENO: result: yes" >&5
12736$as_echo "yes" >&6; }
86933a6e
BB
12737
12738cat >>confdefs.h <<\_ACEOF
12739#define HAVE_TASK_CURR 1
12740_ACEOF
12741
12742 fi
12743
12744
8934764e
BB
12745 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12746$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
86933a6e
BB
12747
12748
dbe561d8 12749cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12750/* confdefs.h. */
12751_ACEOF
12752cat confdefs.h >>conftest.$ac_ext
12753cat >>conftest.$ac_ext <<_ACEOF
12754/* end confdefs.h. */
12755
12756
12757 #include <linux/sysctl.h>
12758
12759int
12760main (void)
12761{
12762
12763 #ifndef CTL_UNNUMBERED
12764 #error CTL_UNNUMBERED undefined
12765 #endif
12766
12767 ;
12768 return 0;
12769}
12770
12771_ACEOF
12772
12773
12774 rm -Rf build && mkdir -p build
12775 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
8934764e 12780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
8934764e 12785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12786 (exit $ac_status); }; }; then
12787
8934764e
BB
12788 { $as_echo "$as_me:$LINENO: result: yes" >&5
12789$as_echo "yes" >&6; }
86933a6e
BB
12790
12791cat >>confdefs.h <<\_ACEOF
12792#define HAVE_CTL_UNNUMBERED 1
12793_ACEOF
12794
12795
12796else
8934764e 12797 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12798sed 's/^/| /' conftest.$ac_ext >&5
12799
8934764e
BB
12800 { $as_echo "$as_me:$LINENO: result: no" >&5
12801$as_echo "no" >&6; }
86933a6e
BB
12802
12803
12804
79a3bf13
BB
12805fi
12806
12807 rm -Rf build
12808
12809
12810
12811
12812 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12813$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12814
12815
dbe561d8 12816cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822
12823
12824 #include <linux/sysctl.h>
12825
12826int
12827main (void)
12828{
12829
03318641 12830 struct ctl_table ctl __attribute__ ((unused));
79a3bf13
BB
12831 ctl.ctl_name = 0;
12832
12833 ;
12834 return 0;
12835}
12836
12837_ACEOF
12838
12839
12840 rm -Rf build && mkdir -p build
12841 echo "obj-m := conftest.o" >build/Makefile
12842 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853
12854 { $as_echo "$as_me:$LINENO: result: yes" >&5
12855$as_echo "yes" >&6; }
12856
12857cat >>confdefs.h <<\_ACEOF
12858#define HAVE_CTL_NAME 1
12859_ACEOF
12860
12861
12862else
12863 $as_echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 { $as_echo "$as_me:$LINENO: result: no" >&5
12867$as_echo "no" >&6; }
12868
12869
12870
86933a6e
BB
12871fi
12872
12873 rm -Rf build
12874
12875
12876
8934764e
BB
12877 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12878$as_echo_n "checking whether fls64() is available... " >&6; }
86933a6e
BB
12879
12880
dbe561d8 12881cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12882/* confdefs.h. */
12883_ACEOF
12884cat confdefs.h >>conftest.$ac_ext
12885cat >>conftest.$ac_ext <<_ACEOF
12886/* end confdefs.h. */
12887
12888
12889 #include <linux/bitops.h>
12890
12891int
12892main (void)
12893{
12894
12895 return fls64(0);
12896
12897 ;
12898 return 0;
12899}
12900
12901_ACEOF
12902
12903
12904 rm -Rf build && mkdir -p build
12905 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12906 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908 (eval $ac_try) 2>&5
12909 ac_status=$?
8934764e 12910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12911 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
8934764e 12915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12916 (exit $ac_status); }; }; then
12917
8934764e
BB
12918 { $as_echo "$as_me:$LINENO: result: yes" >&5
12919$as_echo "yes" >&6; }
86933a6e
BB
12920
12921cat >>confdefs.h <<\_ACEOF
12922#define HAVE_FLS64 1
12923_ACEOF
12924
12925
12926else
8934764e 12927 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
8934764e
BB
12930 { $as_echo "$as_me:$LINENO: result: no" >&5
12931$as_echo "no" >&6; }
86933a6e
BB
12932
12933
12934
12935fi
12936
12937 rm -Rf build
12938
12939
12940
12941
8934764e
BB
12942 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12943$as_echo_n "checking whether symbol device_create is exported... " >&6; }
86933a6e
BB
12944 grep -q -E '[[:space:]]device_create[[:space:]]' \
12945 $LINUX_OBJ/Module*.symvers 2>/dev/null
12946 rc=$?
12947 if test $rc -ne 0; then
12948 export=0
12949 for file in drivers/base/core.c; do
12950 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12951 "$LINUX_OBJ/$file" 2>/dev/null
12952 rc=$?
12953 if test $rc -eq 0; then
12954 export=1
12955 break;
12956 fi
12957 done
12958 if test $export -eq 0; then
8934764e
BB
12959 { $as_echo "$as_me:$LINENO: result: no" >&5
12960$as_echo "no" >&6; }
86933a6e
BB
12961
12962 else
8934764e
BB
12963 { $as_echo "$as_me:$LINENO: result: yes" >&5
12964$as_echo "yes" >&6; }
86933a6e
BB
12965
12966cat >>confdefs.h <<\_ACEOF
12967#define HAVE_DEVICE_CREATE 1
12968_ACEOF
12969
12970 fi
12971 else
8934764e
BB
12972 { $as_echo "$as_me:$LINENO: result: yes" >&5
12973$as_echo "yes" >&6; }
86933a6e
BB
12974
12975cat >>confdefs.h <<\_ACEOF
12976#define HAVE_DEVICE_CREATE 1
12977_ACEOF
12978
12979 fi
12980
12981
12982
8934764e
BB
12983 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12984$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
86933a6e
BB
12985 tmp_flags="$EXTRA_KCFLAGS"
12986 EXTRA_KCFLAGS="-Werror"
12987
12988
dbe561d8 12989cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995
12996
12997 #include <linux/device.h>
12998
12999int
13000main (void)
13001{
13002
13003 device_create(NULL, NULL, 0, NULL, "%d", 1);
13004
13005 ;
13006 return 0;
13007}
13008
13009_ACEOF
13010
13011
13012 rm -Rf build && mkdir -p build
13013 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13014 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
8934764e 13018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13019 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
8934764e 13023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13024 (exit $ac_status); }; }; then
13025
8934764e
BB
13026 { $as_echo "$as_me:$LINENO: result: yes" >&5
13027$as_echo "yes" >&6; }
86933a6e
BB
13028
13029cat >>confdefs.h <<\_ACEOF
13030#define HAVE_5ARGS_DEVICE_CREATE 1
13031_ACEOF
13032
13033
13034else
8934764e 13035 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
8934764e
BB
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039$as_echo "no" >&6; }
86933a6e
BB
13040
13041
13042
13043fi
13044
13045 rm -Rf build
13046
13047
13048 EXTRA_KCFLAGS="$tmp_flags"
13049
13050
8934764e
BB
13051 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
13052$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
86933a6e
BB
13053 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
13054 $LINUX_OBJ/Module*.symvers 2>/dev/null
13055 rc=$?
13056 if test $rc -ne 0; then
13057 export=0
13058 for file in drivers/base/class.c; do
13059 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
13060 "$LINUX_OBJ/$file" 2>/dev/null
13061 rc=$?
13062 if test $rc -eq 0; then
13063 export=1
13064 break;
13065 fi
13066 done
13067 if test $export -eq 0; then
8934764e
BB
13068 { $as_echo "$as_me:$LINENO: result: no" >&5
13069$as_echo "no" >&6; }
86933a6e
BB
13070
13071 else
8934764e
BB
13072 { $as_echo "$as_me:$LINENO: result: yes" >&5
13073$as_echo "yes" >&6; }
86933a6e
BB
13074
13075cat >>confdefs.h <<\_ACEOF
13076#define HAVE_CLASS_DEVICE_CREATE 1
13077_ACEOF
13078
13079 fi
13080 else
8934764e
BB
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082$as_echo "yes" >&6; }
86933a6e
BB
13083
13084cat >>confdefs.h <<\_ACEOF
13085#define HAVE_CLASS_DEVICE_CREATE 1
13086_ACEOF
13087
13088 fi
13089
13090
13091
8934764e
BB
13092 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13093$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
86933a6e
BB
13094 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13095 $LINUX_OBJ/Module*.symvers 2>/dev/null
13096 rc=$?
13097 if test $rc -ne 0; then
13098 export=0
13099 for file in kernel/time.c; do
13100 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13101 "$LINUX_OBJ/$file" 2>/dev/null
13102 rc=$?
13103 if test $rc -eq 0; then
13104 export=1
13105 break;
13106 fi
13107 done
13108 if test $export -eq 0; then
8934764e
BB
13109 { $as_echo "$as_me:$LINENO: result: no" >&5
13110$as_echo "no" >&6; }
86933a6e
BB
13111
13112 else
8934764e
BB
13113 { $as_echo "$as_me:$LINENO: result: yes" >&5
13114$as_echo "yes" >&6; }
86933a6e
BB
13115
13116cat >>confdefs.h <<\_ACEOF
13117#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13118_ACEOF
13119
13120 fi
13121 else
8934764e
BB
13122 { $as_echo "$as_me:$LINENO: result: yes" >&5
13123$as_echo "yes" >&6; }
86933a6e
BB
13124
13125cat >>confdefs.h <<\_ACEOF
13126#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13127_ACEOF
13128
13129 fi
13130
13131
13132
8934764e
BB
13133 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13134$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
86933a6e
BB
13135
13136
dbe561d8 13137cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13138/* confdefs.h. */
13139_ACEOF
13140cat confdefs.h >>conftest.$ac_ext
13141cat >>conftest.$ac_ext <<_ACEOF
13142/* end confdefs.h. */
13143
13144
13145 #include <linux/time.h>
13146 void set_normalized_timespec(struct timespec *ts,
13147 time_t sec, long nsec) { }
13148
13149int
13150main (void)
13151{
13152
13153 ;
13154 return 0;
13155}
13156
13157_ACEOF
13158
13159
13160 rm -Rf build && mkdir -p build
13161 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13162 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
8934764e 13166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13167 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
8934764e 13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13172 (exit $ac_status); }; }; then
13173
8934764e
BB
13174 { $as_echo "$as_me:$LINENO: result: no" >&5
13175$as_echo "no" >&6; }
86933a6e
BB
13176
13177else
8934764e 13178 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13179sed 's/^/| /' conftest.$ac_ext >&5
13180
8934764e
BB
13181 { $as_echo "$as_me:$LINENO: result: yes" >&5
13182$as_echo "yes" >&6; }
86933a6e
BB
13183
13184cat >>confdefs.h <<\_ACEOF
13185#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13186_ACEOF
13187
13188
13189
13190
13191fi
13192
13193 rm -Rf build
13194
13195
13196
13197
8934764e
BB
13198 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13199$as_echo_n "checking whether timespec_sub() is available... " >&6; }
86933a6e
BB
13200
13201
dbe561d8 13202cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208
13209
13210 #include <linux/time.h>
13211
13212int
13213main (void)
13214{
13215
03318641
BB
13216 struct timespec a = { 0 };
13217 struct timespec b = { 0 };
13218 struct timespec c __attribute__ ((unused));
86933a6e
BB
13219 c = timespec_sub(a, b);
13220
13221 ;
13222 return 0;
13223}
13224
13225_ACEOF
13226
13227
13228 rm -Rf build && mkdir -p build
13229 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13230 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13233 ac_status=$?
8934764e 13234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13235 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237 (eval $ac_try) 2>&5
13238 ac_status=$?
8934764e 13239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13240 (exit $ac_status); }; }; then
13241
8934764e
BB
13242 { $as_echo "$as_me:$LINENO: result: yes" >&5
13243$as_echo "yes" >&6; }
86933a6e
BB
13244
13245cat >>confdefs.h <<\_ACEOF
13246#define HAVE_TIMESPEC_SUB 1
13247_ACEOF
13248
13249
13250else
8934764e 13251 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13252sed 's/^/| /' conftest.$ac_ext >&5
13253
8934764e
BB
13254 { $as_echo "$as_me:$LINENO: result: no" >&5
13255$as_echo "no" >&6; }
86933a6e
BB
13256
13257
13258
13259fi
13260
13261 rm -Rf build
13262
13263
13264
13265
8934764e
BB
13266 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13267$as_echo_n "checking whether init_utsname() is available... " >&6; }
86933a6e
BB
13268
13269
dbe561d8 13270cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
13275/* end confdefs.h. */
13276
13277
13278 #include <linux/utsname.h>
13279
13280int
13281main (void)
13282{
13283
03318641
BB
13284 struct new_utsname *a __attribute__ ((unused));
13285 a = init_utsname();
86933a6e
BB
13286
13287 ;
13288 return 0;
13289}
13290
13291_ACEOF
13292
13293
13294 rm -Rf build && mkdir -p build
13295 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13296 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13299 ac_status=$?
8934764e 13300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13301 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13304 ac_status=$?
8934764e 13305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13306 (exit $ac_status); }; }; then
13307
8934764e
BB
13308 { $as_echo "$as_me:$LINENO: result: yes" >&5
13309$as_echo "yes" >&6; }
86933a6e
BB
13310
13311cat >>confdefs.h <<\_ACEOF
13312#define HAVE_INIT_UTSNAME 1
13313_ACEOF
13314
13315
13316else
8934764e 13317 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13318sed 's/^/| /' conftest.$ac_ext >&5
13319
8934764e
BB
13320 { $as_echo "$as_me:$LINENO: result: no" >&5
13321$as_echo "no" >&6; }
86933a6e
BB
13322
13323
13324
13325fi
13326
13327 rm -Rf build
13328
13329
13330
13331
8934764e
BB
13332 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13333$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
86933a6e
BB
13334
13335
dbe561d8 13336cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13337/* confdefs.h. */
13338_ACEOF
13339cat confdefs.h >>conftest.$ac_ext
13340cat >>conftest.$ac_ext <<_ACEOF
13341/* end confdefs.h. */
13342
13343
13344 #include <linux/fdtable.h>
13345
13346int
13347main (void)
13348{
13349
13350 return 0;
13351
13352 ;
13353 return 0;
13354}
13355
13356_ACEOF
13357
13358
13359 rm -Rf build && mkdir -p build
13360 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13361 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
8934764e 13365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13366 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
8934764e 13370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13371 (exit $ac_status); }; }; then
13372
13373
13374cat >>confdefs.h <<\_ACEOF
13375#define HAVE_FDTABLE_HEADER 1
13376_ACEOF
13377
8934764e
BB
13378 { $as_echo "$as_me:$LINENO: result: yes" >&5
13379$as_echo "yes" >&6; }
86933a6e
BB
13380
13381
13382else
8934764e 13383 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13384sed 's/^/| /' conftest.$ac_ext >&5
13385
8934764e
BB
13386 { $as_echo "$as_me:$LINENO: result: no" >&5
13387$as_echo "no" >&6; }
86933a6e
BB
13388
13389
13390
13391
13392fi
13393
13394 rm -Rf build
13395
13396
13397
13398
13399
8934764e
BB
13400 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13401$as_echo_n "checking whether files_fdtable() is available... " >&6; }
86933a6e
BB
13402
13403
dbe561d8 13404cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
13409/* end confdefs.h. */
13410
13411
13412 #include <linux/sched.h>
13413 #include <linux/file.h>
13414 #ifdef HAVE_FDTABLE_HEADER
13415 #include <linux/fdtable.h>
13416 #endif
13417
13418int
13419main (void)
13420{
13421
13422 struct files_struct *files = current->files;
03318641
BB
13423 struct fdtable *fdt __attribute__ ((unused));
13424 fdt = files_fdtable(files);
86933a6e
BB
13425
13426 ;
13427 return 0;
13428}
13429
13430_ACEOF
13431
13432
13433 rm -Rf build && mkdir -p build
13434 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13435 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
8934764e 13439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13440 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13443 ac_status=$?
8934764e 13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13445 (exit $ac_status); }; }; then
13446
8934764e
BB
13447 { $as_echo "$as_me:$LINENO: result: yes" >&5
13448$as_echo "yes" >&6; }
86933a6e
BB
13449
13450cat >>confdefs.h <<\_ACEOF
13451#define HAVE_FILES_FDTABLE 1
13452_ACEOF
13453
13454
13455else
8934764e 13456 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
8934764e
BB
13459 { $as_echo "$as_me:$LINENO: result: no" >&5
13460$as_echo "no" >&6; }
86933a6e
BB
13461
13462
13463
13464fi
13465
13466 rm -Rf build
13467
13468
13469
13470
8934764e
BB
13471 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13472$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
86933a6e
BB
13473
13474
dbe561d8 13475cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
13480/* end confdefs.h. */
13481
13482
13483 #include <linux/uaccess.h>
13484
13485int
13486main (void)
13487{
13488
13489 return 0;
13490
13491 ;
13492 return 0;
13493}
13494
13495_ACEOF
13496
13497
13498 rm -Rf build && mkdir -p build
13499 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13500 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
8934764e 13504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13505 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
8934764e 13509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13510 (exit $ac_status); }; }; then
13511
13512
13513cat >>confdefs.h <<\_ACEOF
13514#define HAVE_UACCESS_HEADER 1
13515_ACEOF
13516
8934764e
BB
13517 { $as_echo "$as_me:$LINENO: result: yes" >&5
13518$as_echo "yes" >&6; }
86933a6e
BB
13519
13520
13521else
8934764e 13522 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13523sed 's/^/| /' conftest.$ac_ext >&5
13524
8934764e
BB
13525 { $as_echo "$as_me:$LINENO: result: no" >&5
13526$as_echo "no" >&6; }
86933a6e
BB
13527
13528
13529
13530
13531fi
13532
13533 rm -Rf build
13534
13535
13536
13537
13538
8934764e
BB
13539 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13540$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
86933a6e
BB
13541
13542
dbe561d8 13543cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13544/* confdefs.h. */
13545_ACEOF
13546cat confdefs.h >>conftest.$ac_ext
13547cat >>conftest.$ac_ext <<_ACEOF
13548/* end confdefs.h. */
13549
13550
13551 #include <linux/slab.h>
13552
13553int
13554main (void)
13555{
13556
03318641
BB
13557 void *a __attribute__ ((unused));
13558 a = kmalloc_node(1, GFP_KERNEL, 0);
86933a6e
BB
13559
13560 ;
13561 return 0;
13562}
13563
13564_ACEOF
13565
13566
13567 rm -Rf build && mkdir -p build
13568 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13569 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13572 ac_status=$?
8934764e 13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13574 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13577 ac_status=$?
8934764e 13578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13579 (exit $ac_status); }; }; then
13580
8934764e
BB
13581 { $as_echo "$as_me:$LINENO: result: yes" >&5
13582$as_echo "yes" >&6; }
86933a6e
BB
13583
13584cat >>confdefs.h <<\_ACEOF
13585#define HAVE_KMALLOC_NODE 1
13586_ACEOF
13587
13588
13589else
8934764e 13590 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13591sed 's/^/| /' conftest.$ac_ext >&5
13592
8934764e
BB
13593 { $as_echo "$as_me:$LINENO: result: no" >&5
13594$as_echo "no" >&6; }
86933a6e
BB
13595
13596
13597
13598fi
13599
13600 rm -Rf build
13601
13602
13603
13604
8934764e
BB
13605 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13606$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
86933a6e
BB
13607 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13608 $LINUX_OBJ/Module*.symvers 2>/dev/null
13609 rc=$?
13610 if test $rc -ne 0; then
13611 export=0
13612 for file in ; do
13613 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13614 "$LINUX_OBJ/$file" 2>/dev/null
13615 rc=$?
13616 if test $rc -eq 0; then
13617 export=1
13618 break;
13619 fi
13620 done
13621 if test $export -eq 0; then
8934764e
BB
13622 { $as_echo "$as_me:$LINENO: result: no" >&5
13623$as_echo "no" >&6; }
86933a6e
BB
13624
13625 else
8934764e
BB
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627$as_echo "yes" >&6; }
86933a6e
BB
13628
13629cat >>confdefs.h <<\_ACEOF
13630#define HAVE_MONOTONIC_CLOCK 1
13631_ACEOF
13632
13633 fi
13634 else
8934764e
BB
13635 { $as_echo "$as_me:$LINENO: result: yes" >&5
13636$as_echo "yes" >&6; }
86933a6e
BB
13637
13638cat >>confdefs.h <<\_ACEOF
13639#define HAVE_MONOTONIC_CLOCK 1
13640_ACEOF
13641
13642 fi
13643
13644
13645
8934764e
BB
13646 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13647$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
86933a6e
BB
13648
13649
dbe561d8 13650cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
13655/* end confdefs.h. */
13656
13657
13658 #include <linux/fs.h>
13659 #include <linux/mutex.h>
13660
13661int
13662main (void)
13663{
13664
13665 struct inode i;
13666 mutex_init(&i.i_mutex);
13667
13668 ;
13669 return 0;
13670}
13671
13672_ACEOF
13673
13674
13675 rm -Rf build && mkdir -p build
13676 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13677 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
8934764e 13681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
8934764e 13686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13687 (exit $ac_status); }; }; then
13688
8934764e
BB
13689 { $as_echo "$as_me:$LINENO: result: yes" >&5
13690$as_echo "yes" >&6; }
86933a6e
BB
13691
13692cat >>confdefs.h <<\_ACEOF
13693#define HAVE_INODE_I_MUTEX 1
13694_ACEOF
13695
13696
13697else
8934764e 13698 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13699sed 's/^/| /' conftest.$ac_ext >&5
13700
8934764e
BB
13701 { $as_echo "$as_me:$LINENO: result: no" >&5
13702$as_echo "no" >&6; }
86933a6e
BB
13703
13704
13705
13706fi
13707
13708 rm -Rf build
13709
13710
13711
13712
8934764e
BB
13713 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13714$as_echo_n "checking whether struct mutex has owner... " >&6; }
4d54fdee
BB
13715
13716
dbe561d8 13717cat confdefs.h - <<_ACEOF >conftest.c
4d54fdee
BB
13718/* confdefs.h. */
13719_ACEOF
13720cat confdefs.h >>conftest.$ac_ext
13721cat >>conftest.$ac_ext <<_ACEOF
13722/* end confdefs.h. */
13723
13724
13725 #include <linux/mutex.h>
13726
13727int
13728main (void)
13729{
13730
03318641 13731 struct mutex mtx __attribute__ ((unused));
4d54fdee
BB
13732 mtx.owner = NULL;
13733
13734 ;
13735 return 0;
13736}
13737
13738_ACEOF
13739
13740
13741 rm -Rf build && mkdir -p build
13742 echo "obj-m := conftest.o" >build/Makefile
13743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
8934764e 13747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13748 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
8934764e 13752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13753 (exit $ac_status); }; }; then
13754
8934764e
BB
13755 { $as_echo "$as_me:$LINENO: result: yes" >&5
13756$as_echo "yes" >&6; }
4d54fdee
BB
13757
13758cat >>confdefs.h <<\_ACEOF
13759#define HAVE_MUTEX_OWNER 1
13760_ACEOF
13761
13762
13763else
8934764e 13764 $as_echo "$as_me: failed program was:" >&5
4d54fdee
BB
13765sed 's/^/| /' conftest.$ac_ext >&5
13766
8934764e
BB
13767 { $as_echo "$as_me:$LINENO: result: no" >&5
13768$as_echo "no" >&6; }
4d54fdee
BB
13769
13770
13771
13772fi
13773
13774 rm -Rf build
13775
13776
13777
13778
86fd39f3
BB
13779 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13780$as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13781 tmp_flags="$EXTRA_KCFLAGS"
13782 EXTRA_KCFLAGS="-Werror"
13783
13784
13785cat confdefs.h - <<_ACEOF >conftest.c
13786/* confdefs.h. */
13787_ACEOF
13788cat confdefs.h >>conftest.$ac_ext
13789cat >>conftest.$ac_ext <<_ACEOF
13790/* end confdefs.h. */
13791
13792
13793 #include <linux/mutex.h>
13794
13795int
13796main (void)
13797{
13798
13799 struct mutex mtx __attribute__ ((unused));
13800 mtx.owner = current;
13801
13802 ;
13803 return 0;
13804}
13805
13806_ACEOF
13807
13808
13809 rm -Rf build && mkdir -p build
13810 echo "obj-m := conftest.o" >build/Makefile
13811 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13819 ac_status=$?
13820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822
13823 { $as_echo "$as_me:$LINENO: result: yes" >&5
13824$as_echo "yes" >&6; }
13825
13826cat >>confdefs.h <<\_ACEOF
13827#define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13828_ACEOF
13829
13830
13831else
13832 $as_echo "$as_me: failed program was:" >&5
13833sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 { $as_echo "$as_me:$LINENO: result: no" >&5
13836$as_echo "no" >&6; }
13837
13838
13839
13840fi
13841
13842 rm -Rf build
13843
13844
13845 EXTRA_KCFLAGS="$tmp_flags"
13846
13847
8934764e
BB
13848 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13849$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
86933a6e
BB
13850
13851
dbe561d8 13852cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13853/* confdefs.h. */
13854_ACEOF
13855cat confdefs.h >>conftest.$ac_ext
13856cat >>conftest.$ac_ext <<_ACEOF
13857/* end confdefs.h. */
13858
13859
13860 #include <linux/mutex.h>
13861
13862int
13863main (void)
13864{
13865
13866 struct mutex mutex;
13867 mutex_init(&mutex);
13868 mutex_lock_nested(&mutex, 0);
13869
13870 ;
13871 return 0;
13872}
13873
13874_ACEOF
13875
13876
13877 rm -Rf build && mkdir -p build
13878 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13879 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
8934764e 13883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13884 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13887 ac_status=$?
8934764e 13888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13889 (exit $ac_status); }; }; then
13890
8934764e
BB
13891 { $as_echo "$as_me:$LINENO: result: yes" >&5
13892$as_echo "yes" >&6; }
86933a6e
BB
13893
13894cat >>confdefs.h <<\_ACEOF
13895#define HAVE_MUTEX_LOCK_NESTED 1
13896_ACEOF
13897
13898
13899else
8934764e 13900 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13901sed 's/^/| /' conftest.$ac_ext >&5
13902
8934764e
BB
13903 { $as_echo "$as_me:$LINENO: result: no" >&5
13904$as_echo "no" >&6; }
86933a6e
BB
13905
13906
13907
13908fi
13909
13910 rm -Rf build
13911
13912
13913
13914
8934764e
BB
13915 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13916$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
86933a6e
BB
13917
13918
dbe561d8 13919cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13920/* confdefs.h. */
13921_ACEOF
13922cat confdefs.h >>conftest.$ac_ext
13923cat >>conftest.$ac_ext <<_ACEOF
13924/* end confdefs.h. */
13925
13926
13927 #include <linux/smp.h>
13928
13929int
13930main (void)
13931{
13932
13933 on_each_cpu(NULL, NULL, 0);
13934
13935 ;
13936 return 0;
13937}
13938
13939_ACEOF
13940
13941
13942 rm -Rf build && mkdir -p build
13943 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13944 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
8934764e 13948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13951 (eval $ac_try) 2>&5
13952 ac_status=$?
8934764e 13953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13954 (exit $ac_status); }; }; then
13955
8934764e
BB
13956 { $as_echo "$as_me:$LINENO: result: yes" >&5
13957$as_echo "yes" >&6; }
86933a6e
BB
13958
13959cat >>confdefs.h <<\_ACEOF
13960#define HAVE_3ARGS_ON_EACH_CPU 1
13961_ACEOF
13962
13963
13964else
8934764e 13965 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13966sed 's/^/| /' conftest.$ac_ext >&5
13967
8934764e
BB
13968 { $as_echo "$as_me:$LINENO: result: no" >&5
13969$as_echo "no" >&6; }
86933a6e
BB
13970
13971
13972
13973fi
13974
13975 rm -Rf build
13976
13977
13978
13979
8934764e
BB
13980 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13981$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
86933a6e
BB
13982 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13983 $LINUX_OBJ/Module*.symvers 2>/dev/null
13984 rc=$?
13985 if test $rc -ne 0; then
13986 export=0
13987 for file in ; do
13988 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13989 "$LINUX_OBJ/$file" 2>/dev/null
13990 rc=$?
13991 if test $rc -eq 0; then
13992 export=1
13993 break;
13994 fi
13995 done
13996 if test $export -eq 0; then
8934764e
BB
13997 { $as_echo "$as_me:$LINENO: result: no" >&5
13998$as_echo "no" >&6; }
86933a6e
BB
13999
14000 else
8934764e
BB
14001 { $as_echo "$as_me:$LINENO: result: yes" >&5
14002$as_echo "yes" >&6; }
86933a6e
BB
14003
14004cat >>confdefs.h <<\_ACEOF
14005#define HAVE_KALLSYMS_LOOKUP_NAME 1
14006_ACEOF
14007
14008 fi
14009 else
8934764e
BB
14010 { $as_echo "$as_me:$LINENO: result: yes" >&5
14011$as_echo "yes" >&6; }
86933a6e
BB
14012
14013cat >>confdefs.h <<\_ACEOF
14014#define HAVE_KALLSYMS_LOOKUP_NAME 1
14015_ACEOF
14016
14017 fi
14018
14019
14020
8934764e
BB
14021 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
14022$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
86933a6e
BB
14023 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
14024 $LINUX_OBJ/Module*.symvers 2>/dev/null
14025 rc=$?
14026 if test $rc -ne 0; then
14027 export=0
14028 for file in ; do
14029 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
14030 "$LINUX_OBJ/$file" 2>/dev/null
14031 rc=$?
14032 if test $rc -eq 0; then
14033 export=1
14034 break;
14035 fi
14036 done
14037 if test $export -eq 0; then
8934764e
BB
14038 { $as_echo "$as_me:$LINENO: result: no" >&5
14039$as_echo "no" >&6; }
86933a6e
BB
14040
14041 else
8934764e
BB
14042 { $as_echo "$as_me:$LINENO: result: yes" >&5
14043$as_echo "yes" >&6; }
86933a6e
BB
14044
14045cat >>confdefs.h <<\_ACEOF
14046#define HAVE_GET_VMALLOC_INFO 1
14047_ACEOF
14048
14049 fi
14050 else
8934764e
BB
14051 { $as_echo "$as_me:$LINENO: result: yes" >&5
14052$as_echo "yes" >&6; }
86933a6e
BB
14053
14054cat >>confdefs.h <<\_ACEOF
14055#define HAVE_GET_VMALLOC_INFO 1
14056_ACEOF
14057
14058 fi
14059
14060
14061
8934764e
BB
14062 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
14063$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
86933a6e
BB
14064 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
14065 rc=$?
14066 if test $rc -eq 0; then
8934764e
BB
14067 { $as_echo "$as_me:$LINENO: result: yes" >&5
14068$as_echo "yes" >&6; }
86933a6e
BB
14069
14070cat >>confdefs.h <<\_ACEOF
14071#define HAVE_PGDAT_HELPERS 1
14072_ACEOF
14073
14074 else
8934764e
BB
14075 { $as_echo "$as_me:$LINENO: result: no" >&5
14076$as_echo "no" >&6; }
86933a6e
BB
14077 fi
14078
14079
8934764e
BB
14080 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
14081$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
86933a6e
BB
14082 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
14083 $LINUX_OBJ/Module*.symvers 2>/dev/null
14084 rc=$?
14085 if test $rc -ne 0; then
14086 export=0
14087 for file in ; do
14088 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
14089 "$LINUX_OBJ/$file" 2>/dev/null
14090 rc=$?
14091 if test $rc -eq 0; then
14092 export=1
14093 break;
14094 fi
14095 done
14096 if test $export -eq 0; then
8934764e
BB
14097 { $as_echo "$as_me:$LINENO: result: no" >&5
14098$as_echo "no" >&6; }
86933a6e
BB
14099
14100 else
8934764e
BB
14101 { $as_echo "$as_me:$LINENO: result: yes" >&5
14102$as_echo "yes" >&6; }
86933a6e
BB
14103
14104cat >>confdefs.h <<\_ACEOF
14105#define HAVE_FIRST_ONLINE_PGDAT 1
14106_ACEOF
14107
14108 fi
14109 else
8934764e
BB
14110 { $as_echo "$as_me:$LINENO: result: yes" >&5
14111$as_echo "yes" >&6; }
86933a6e
BB
14112
14113cat >>confdefs.h <<\_ACEOF
14114#define HAVE_FIRST_ONLINE_PGDAT 1
14115_ACEOF
14116
14117 fi
14118
14119
14120
8934764e
BB
14121 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14122$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
86933a6e
BB
14123 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14124 $LINUX_OBJ/Module*.symvers 2>/dev/null
14125 rc=$?
14126 if test $rc -ne 0; then
14127 export=0
14128 for file in ; do
14129 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14130 "$LINUX_OBJ/$file" 2>/dev/null
14131 rc=$?
14132 if test $rc -eq 0; then
14133 export=1
14134 break;
14135 fi
14136 done
14137 if test $export -eq 0; then
8934764e
BB
14138 { $as_echo "$as_me:$LINENO: result: no" >&5
14139$as_echo "no" >&6; }
86933a6e
BB
14140
14141 else
8934764e
BB
14142 { $as_echo "$as_me:$LINENO: result: yes" >&5
14143$as_echo "yes" >&6; }
86933a6e
BB
14144
14145cat >>confdefs.h <<\_ACEOF
14146#define HAVE_NEXT_ONLINE_PGDAT 1
14147_ACEOF
14148
14149 fi
14150 else
8934764e
BB
14151 { $as_echo "$as_me:$LINENO: result: yes" >&5
14152$as_echo "yes" >&6; }
86933a6e
BB
14153
14154cat >>confdefs.h <<\_ACEOF
14155#define HAVE_NEXT_ONLINE_PGDAT 1
14156_ACEOF
14157
14158 fi
14159
14160
14161
8934764e
BB
14162 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14163$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
86933a6e
BB
14164 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14165 $LINUX_OBJ/Module*.symvers 2>/dev/null
14166 rc=$?
14167 if test $rc -ne 0; then
14168 export=0
14169 for file in ; do
14170 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14171 "$LINUX_OBJ/$file" 2>/dev/null
14172 rc=$?
14173 if test $rc -eq 0; then
14174 export=1
14175 break;
14176 fi
14177 done
14178 if test $export -eq 0; then
8934764e
BB
14179 { $as_echo "$as_me:$LINENO: result: no" >&5
14180$as_echo "no" >&6; }
86933a6e
BB
14181
14182 else
8934764e
BB
14183 { $as_echo "$as_me:$LINENO: result: yes" >&5
14184$as_echo "yes" >&6; }
86933a6e
BB
14185
14186cat >>confdefs.h <<\_ACEOF
14187#define HAVE_NEXT_ZONE 1
14188_ACEOF
14189
14190 fi
14191 else
8934764e
BB
14192 { $as_echo "$as_me:$LINENO: result: yes" >&5
14193$as_echo "yes" >&6; }
86933a6e
BB
14194
14195cat >>confdefs.h <<\_ACEOF
14196#define HAVE_NEXT_ZONE 1
14197_ACEOF
14198
14199 fi
14200
14201
14202
8934764e
BB
14203 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14204$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
86933a6e
BB
14205 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14206 $LINUX_OBJ/Module*.symvers 2>/dev/null
14207 rc=$?
14208 if test $rc -ne 0; then
14209 export=0
14210 for file in ; do
14211 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14212 "$LINUX_OBJ/$file" 2>/dev/null
14213 rc=$?
14214 if test $rc -eq 0; then
14215 export=1
14216 break;
14217 fi
14218 done
14219 if test $export -eq 0; then
8934764e
BB
14220 { $as_echo "$as_me:$LINENO: result: no" >&5
14221$as_echo "no" >&6; }
86933a6e
BB
14222
14223 else
8934764e
BB
14224 { $as_echo "$as_me:$LINENO: result: yes" >&5
14225$as_echo "yes" >&6; }
86933a6e
BB
14226
14227cat >>confdefs.h <<\_ACEOF
14228#define HAVE_PGDAT_LIST 1
14229_ACEOF
14230
14231 fi
14232 else
8934764e
BB
14233 { $as_echo "$as_me:$LINENO: result: yes" >&5
14234$as_echo "yes" >&6; }
86933a6e
BB
14235
14236cat >>confdefs.h <<\_ACEOF
14237#define HAVE_PGDAT_LIST 1
14238_ACEOF
14239
14240 fi
14241
14242
14243
8934764e
BB
14244 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14245$as_echo_n "checking whether global_page_state() is available... " >&6; }
86933a6e 14246
86933a6e 14247
dbe561d8 14248cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 14249/* confdefs.h. */
86933a6e 14250_ACEOF
6ae7fef5
BB
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
14253/* end confdefs.h. */
14254
14255
14256 #include <linux/mm.h>
14257
14258int
14259main (void)
14260{
14261
03318641 14262 unsigned long state __attribute__ ((unused));
6ae7fef5
BB
14263 state = global_page_state(0);
14264
14265 ;
14266 return 0;
14267}
14268
14269_ACEOF
14270
14271
14272 rm -Rf build && mkdir -p build
14273 echo "obj-m := conftest.o" >build/Makefile
14274 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
8934764e 14278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14279 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
8934764e 14283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 14284 (exit $ac_status); }; }; then
86933a6e 14285
8934764e
BB
14286 { $as_echo "$as_me:$LINENO: result: yes" >&5
14287$as_echo "yes" >&6; }
86933a6e
BB
14288
14289cat >>confdefs.h <<\_ACEOF
6ae7fef5 14290#define HAVE_GLOBAL_PAGE_STATE 1
86933a6e
BB
14291_ACEOF
14292
6ae7fef5
BB
14293
14294else
8934764e 14295 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
8934764e
BB
14298 { $as_echo "$as_me:$LINENO: result: no" >&5
14299$as_echo "no" >&6; }
6ae7fef5
BB
14300
14301
14302
14303fi
14304
14305 rm -Rf build
86933a6e
BB
14306
14307
14308
6ae7fef5 14309
8934764e
BB
14310 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14311$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
86933a6e
BB
14312
14313
dbe561d8 14314cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14315/* confdefs.h. */
14316_ACEOF
14317cat confdefs.h >>conftest.$ac_ext
14318cat >>conftest.$ac_ext <<_ACEOF
14319/* end confdefs.h. */
14320
14321
6ae7fef5 14322 #include <linux/mm.h>
86933a6e
BB
14323
14324int
14325main (void)
14326{
14327
03318641 14328 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14329 zsi = NR_FREE_PAGES;
86933a6e
BB
14330
14331 ;
14332 return 0;
14333}
14334
14335_ACEOF
14336
14337
14338 rm -Rf build && mkdir -p build
14339 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14340 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
8934764e 14344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14345 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
8934764e 14349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14350 (exit $ac_status); }; }; then
14351
8934764e
BB
14352 { $as_echo "$as_me:$LINENO: result: yes" >&5
14353$as_echo "yes" >&6; }
86933a6e
BB
14354
14355cat >>confdefs.h <<\_ACEOF
6ae7fef5 14356#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
86933a6e
BB
14357_ACEOF
14358
14359
14360else
8934764e 14361 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14362sed 's/^/| /' conftest.$ac_ext >&5
14363
8934764e
BB
14364 { $as_echo "$as_me:$LINENO: result: no" >&5
14365$as_echo "no" >&6; }
86933a6e
BB
14366
14367
14368
14369fi
14370
14371 rm -Rf build
14372
14373
14374
14375
8934764e
BB
14376 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14377$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
86933a6e
BB
14378
14379
dbe561d8 14380cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14381/* confdefs.h. */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h. */
14386
14387
6ae7fef5 14388 #include <linux/mm.h>
86933a6e
BB
14389
14390int
14391main (void)
14392{
14393
03318641 14394 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14395 zsi = NR_INACTIVE;
86933a6e
BB
14396
14397 ;
14398 return 0;
14399}
14400
14401_ACEOF
14402
14403
14404 rm -Rf build && mkdir -p build
14405 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14406 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
8934764e 14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14411 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14414 ac_status=$?
8934764e 14415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14416 (exit $ac_status); }; }; then
14417
8934764e
BB
14418 { $as_echo "$as_me:$LINENO: result: yes" >&5
14419$as_echo "yes" >&6; }
86933a6e
BB
14420
14421cat >>confdefs.h <<\_ACEOF
6ae7fef5 14422#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
86933a6e
BB
14423_ACEOF
14424
14425
14426else
8934764e 14427 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14428sed 's/^/| /' conftest.$ac_ext >&5
14429
8934764e
BB
14430 { $as_echo "$as_me:$LINENO: result: no" >&5
14431$as_echo "no" >&6; }
86933a6e
BB
14432
14433
14434
14435fi
14436
14437 rm -Rf build
14438
14439
14440
8934764e
BB
14441 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14442$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
86933a6e
BB
14443
14444
dbe561d8 14445cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14446/* confdefs.h. */
14447_ACEOF
14448cat confdefs.h >>conftest.$ac_ext
14449cat >>conftest.$ac_ext <<_ACEOF
14450/* end confdefs.h. */
14451
14452
6ae7fef5 14453 #include <linux/mm.h>
86933a6e
BB
14454
14455int
14456main (void)
14457{
14458
03318641 14459 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14460 zsi = NR_INACTIVE_ANON;
86933a6e
BB
14461
14462 ;
14463 return 0;
14464}
14465
14466_ACEOF
14467
14468
14469 rm -Rf build && mkdir -p build
14470 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14471 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14474 ac_status=$?
8934764e 14475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14476 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
8934764e 14480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14481 (exit $ac_status); }; }; then
14482
8934764e
BB
14483 { $as_echo "$as_me:$LINENO: result: yes" >&5
14484$as_echo "yes" >&6; }
86933a6e
BB
14485
14486cat >>confdefs.h <<\_ACEOF
6ae7fef5 14487#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
86933a6e
BB
14488_ACEOF
14489
14490
14491else
8934764e 14492 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14493sed 's/^/| /' conftest.$ac_ext >&5
14494
8934764e
BB
14495 { $as_echo "$as_me:$LINENO: result: no" >&5
14496$as_echo "no" >&6; }
86933a6e
BB
14497
14498
14499
14500fi
14501
14502 rm -Rf build
14503
14504
14505
8934764e
BB
14506 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14507$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
86933a6e
BB
14508
14509
dbe561d8 14510cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516
14517
6ae7fef5 14518 #include <linux/mm.h>
86933a6e
BB
14519
14520int
14521main (void)
14522{
14523
03318641 14524 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14525 zsi = NR_INACTIVE_FILE;
86933a6e
BB
14526
14527 ;
14528 return 0;
14529}
14530
14531_ACEOF
14532
14533
14534 rm -Rf build && mkdir -p build
14535 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14536 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14539 ac_status=$?
8934764e 14540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14541 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543 (eval $ac_try) 2>&5
14544 ac_status=$?
8934764e 14545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14546 (exit $ac_status); }; }; then
14547
8934764e
BB
14548 { $as_echo "$as_me:$LINENO: result: yes" >&5
14549$as_echo "yes" >&6; }
86933a6e
BB
14550
14551cat >>confdefs.h <<\_ACEOF
6ae7fef5 14552#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
86933a6e
BB
14553_ACEOF
14554
14555
14556else
8934764e 14557 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14558sed 's/^/| /' conftest.$ac_ext >&5
14559
8934764e
BB
14560 { $as_echo "$as_me:$LINENO: result: no" >&5
14561$as_echo "no" >&6; }
86933a6e
BB
14562
14563
14564
14565fi
14566
14567 rm -Rf build
14568
14569
14570
ec7d53e9 14571
8934764e
BB
14572 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14573$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
ec7d53e9
BB
14574
14575
dbe561d8 14576cat confdefs.h - <<_ACEOF >conftest.c
ec7d53e9
BB
14577/* confdefs.h. */
14578_ACEOF
14579cat confdefs.h >>conftest.$ac_ext
14580cat >>conftest.$ac_ext <<_ACEOF
14581/* end confdefs.h. */
14582
14583
6ae7fef5 14584 #include <linux/mm.h>
ec7d53e9
BB
14585
14586int
14587main (void)
14588{
14589
03318641 14590 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14591 zsi = NR_ACTIVE;
ec7d53e9
BB
14592
14593 ;
14594 return 0;
14595}
14596
14597_ACEOF
14598
14599
14600 rm -Rf build && mkdir -p build
14601 echo "obj-m := conftest.o" >build/Makefile
14602 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
8934764e 14606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14607 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
8934764e 14611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14612 (exit $ac_status); }; }; then
14613
8934764e
BB
14614 { $as_echo "$as_me:$LINENO: result: yes" >&5
14615$as_echo "yes" >&6; }
ec7d53e9
BB
14616
14617cat >>confdefs.h <<\_ACEOF
6ae7fef5 14618#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
ec7d53e9
BB
14619_ACEOF
14620
14621
14622else
8934764e 14623 $as_echo "$as_me: failed program was:" >&5
ec7d53e9
BB
14624sed 's/^/| /' conftest.$ac_ext >&5
14625
8934764e
BB
14626 { $as_echo "$as_me:$LINENO: result: no" >&5
14627$as_echo "no" >&6; }
ec7d53e9
BB
14628
14629
14630
14631fi
14632
14633 rm -Rf build
14634
14635
14636
8934764e
BB
14637 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14638$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
ec7d53e9 14639
ec7d53e9 14640
dbe561d8 14641cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647
14648
14649 #include <linux/mm.h>
14650
14651int
14652main (void)
14653{
14654
03318641 14655 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5
BB
14656 zsi = NR_ACTIVE_ANON;
14657
14658 ;
14659 return 0;
14660}
ec7d53e9 14661
ec7d53e9
BB
14662_ACEOF
14663
6ae7fef5
BB
14664
14665 rm -Rf build && mkdir -p build
14666 echo "obj-m := conftest.o" >build/Makefile
14667 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
8934764e 14671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14672 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 (eval $ac_try) 2>&5
14675 ac_status=$?
8934764e 14676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14677 (exit $ac_status); }; }; then
14678
8934764e
BB
14679 { $as_echo "$as_me:$LINENO: result: yes" >&5
14680$as_echo "yes" >&6; }
ec7d53e9
BB
14681
14682cat >>confdefs.h <<\_ACEOF
6ae7fef5 14683#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
ec7d53e9
BB
14684_ACEOF
14685
ec7d53e9 14686
6ae7fef5 14687else
8934764e 14688 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 14689sed 's/^/| /' conftest.$ac_ext >&5
ec7d53e9 14690
8934764e
BB
14691 { $as_echo "$as_me:$LINENO: result: no" >&5
14692$as_echo "no" >&6; }
bf9f3bac 14693
bf9f3bac 14694
bf9f3bac 14695
6ae7fef5 14696fi
bf9f3bac 14697
6ae7fef5 14698 rm -Rf build
bf9f3bac 14699
bf9f3bac 14700
bf9f3bac 14701
8934764e
BB
14702 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14703$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 14704
bf9f3bac 14705
dbe561d8 14706cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14707/* confdefs.h. */
14708_ACEOF
14709cat confdefs.h >>conftest.$ac_ext
14710cat >>conftest.$ac_ext <<_ACEOF
14711/* end confdefs.h. */
bf9f3bac 14712
bf9f3bac 14713
6ae7fef5 14714 #include <linux/mm.h>
bf9f3bac 14715
6ae7fef5
BB
14716int
14717main (void)
14718{
14719
03318641 14720 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5
BB
14721 zsi = NR_ACTIVE_FILE;
14722
14723 ;
14724 return 0;
14725}
14726
14727_ACEOF
14728
14729
14730 rm -Rf build && mkdir -p build
14731 echo "obj-m := conftest.o" >build/Makefile
14732 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
8934764e 14736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14737 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
8934764e 14741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14742 (exit $ac_status); }; }; then
14743
8934764e
BB
14744 { $as_echo "$as_me:$LINENO: result: yes" >&5
14745$as_echo "yes" >&6; }
6ae7fef5
BB
14746
14747cat >>confdefs.h <<\_ACEOF
14748#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14749_ACEOF
14750
14751
14752else
8934764e 14753 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14754sed 's/^/| /' conftest.$ac_ext >&5
14755
8934764e
BB
14756 { $as_echo "$as_me:$LINENO: result: no" >&5
14757$as_echo "no" >&6; }
6ae7fef5
BB
14758
14759
14760
14761fi
14762
14763 rm -Rf build
14764
14765
14766
14767
8934764e
BB
14768 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14769$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
6ae7fef5
BB
14770
14771
dbe561d8 14772cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
14778
14779
14780
14781int
14782main (void)
14783{
14784
14785 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14786 #error "global_page_state needs NR_FREE_PAGES"
14787 #endif
14788
14789 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14790 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14791 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14792 #error "global_page_state needs NR_ACTIVE*"
14793 #endif
14794
14795 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14796 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14797 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14798 #error "global_page_state needs NR_INACTIVE*"
14799 #endif
14800
14801 ;
14802 return 0;
14803}
14804
14805_ACEOF
14806
14807
14808 rm -Rf build && mkdir -p build
14809 echo "obj-m := conftest.o" >build/Makefile
14810 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
8934764e 14814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14815 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
8934764e 14819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14820 (exit $ac_status); }; }; then
14821
8934764e
BB
14822 { $as_echo "$as_me:$LINENO: result: no" >&5
14823$as_echo "no" >&6; }
6ae7fef5
BB
14824
14825else
8934764e 14826 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14827sed 's/^/| /' conftest.$ac_ext >&5
14828
8934764e
BB
14829 { $as_echo "$as_me:$LINENO: result: yes" >&5
14830$as_echo "yes" >&6; }
6ae7fef5
BB
14831
14832cat >>confdefs.h <<\_ACEOF
14833#define NEED_GET_ZONE_COUNTS 1
14834_ACEOF
14835
14836
8934764e
BB
14837 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14838$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
6ae7fef5
BB
14839 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14840 $LINUX_OBJ/Module*.symvers 2>/dev/null
14841 rc=$?
14842 if test $rc -ne 0; then
14843 export=0
14844 for file in ; do
14845 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14846 "$LINUX_OBJ/$file" 2>/dev/null
14847 rc=$?
14848 if test $rc -eq 0; then
14849 export=1
14850 break;
14851 fi
14852 done
14853 if test $export -eq 0; then
8934764e
BB
14854 { $as_echo "$as_me:$LINENO: result: no" >&5
14855$as_echo "no" >&6; }
6ae7fef5
BB
14856
14857 else
8934764e
BB
14858 { $as_echo "$as_me:$LINENO: result: yes" >&5
14859$as_echo "yes" >&6; }
6ae7fef5
BB
14860
14861cat >>confdefs.h <<\_ACEOF
14862#define HAVE_GET_ZONE_COUNTS 1
14863_ACEOF
14864
14865 fi
14866 else
8934764e
BB
14867 { $as_echo "$as_me:$LINENO: result: yes" >&5
14868$as_echo "yes" >&6; }
6ae7fef5
BB
14869
14870cat >>confdefs.h <<\_ACEOF
14871#define HAVE_GET_ZONE_COUNTS 1
14872_ACEOF
14873
14874 fi
14875
14876
14877
14878
51a727e9
BB
14879fi
14880
14881 rm -Rf build
14882
14883
14884
14885
7119bf70
BB
14886 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14887$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14888 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14889 $LINUX_OBJ/Module*.symvers 2>/dev/null
14890 rc=$?
14891 if test $rc -ne 0; then
14892 export=0
14893 for file in ; do
14894 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14895 "$LINUX_OBJ/$file" 2>/dev/null
14896 rc=$?
14897 if test $rc -eq 0; then
14898 export=1
14899 break;
14900 fi
14901 done
14902 if test $export -eq 0; then
14903 { $as_echo "$as_me:$LINENO: result: no" >&5
14904$as_echo "no" >&6; }
14905
14906 else
14907 { $as_echo "$as_me:$LINENO: result: yes" >&5
14908$as_echo "yes" >&6; }
14909
14910cat >>confdefs.h <<\_ACEOF
14911#define HAVE_USER_PATH_DIR 1
14912_ACEOF
14913
14914 fi
14915 else
14916 { $as_echo "$as_me:$LINENO: result: yes" >&5
14917$as_echo "yes" >&6; }
14918
14919cat >>confdefs.h <<\_ACEOF
14920#define HAVE_USER_PATH_DIR 1
14921_ACEOF
14922
14923 fi
14924
14925
14926
8934764e
BB
14927 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14928$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
51a727e9
BB
14929 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14930 $LINUX_OBJ/Module*.symvers 2>/dev/null
14931 rc=$?
14932 if test $rc -ne 0; then
14933 export=0
14934 for file in ; do
14935 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14936 "$LINUX_OBJ/$file" 2>/dev/null
14937 rc=$?
14938 if test $rc -eq 0; then
14939 export=1
14940 break;
14941 fi
14942 done
14943 if test $export -eq 0; then
8934764e
BB
14944 { $as_echo "$as_me:$LINENO: result: no" >&5
14945$as_echo "no" >&6; }
51a727e9
BB
14946
14947 else
8934764e
BB
14948 { $as_echo "$as_me:$LINENO: result: yes" >&5
14949$as_echo "yes" >&6; }
51a727e9
BB
14950
14951cat >>confdefs.h <<\_ACEOF
14952#define HAVE_SET_FS_PWD 1
14953_ACEOF
14954
14955 fi
14956 else
8934764e
BB
14957 { $as_echo "$as_me:$LINENO: result: yes" >&5
14958$as_echo "yes" >&6; }
51a727e9
BB
14959
14960cat >>confdefs.h <<\_ACEOF
14961#define HAVE_SET_FS_PWD 1
14962_ACEOF
14963
14964 fi
14965
14966
8934764e
BB
14967 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14968$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
51a727e9
BB
14969
14970
dbe561d8 14971cat confdefs.h - <<_ACEOF >conftest.c
51a727e9
BB
14972/* confdefs.h. */
14973_ACEOF
14974cat confdefs.h >>conftest.$ac_ext
14975cat >>conftest.$ac_ext <<_ACEOF
14976/* end confdefs.h. */
14977
14978
14979 #include <linux/sched.h>
baf2979e 14980 #include <linux/fs_struct.h>
51a727e9
BB
14981
14982int
14983main (void)
14984{
14985
14986 set_fs_pwd(NULL, NULL);
14987
14988 ;
14989 return 0;
14990}
14991
14992_ACEOF
14993
14994
14995 rm -Rf build && mkdir -p build
14996 echo "obj-m := conftest.o" >build/Makefile
14997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
8934764e 15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
15002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
8934764e 15006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
15007 (exit $ac_status); }; }; then
15008
8934764e
BB
15009 { $as_echo "$as_me:$LINENO: result: yes" >&5
15010$as_echo "yes" >&6; }
51a727e9
BB
15011
15012cat >>confdefs.h <<\_ACEOF
15013#define HAVE_2ARGS_SET_FS_PWD 1
15014_ACEOF
15015
15016
15017else
8934764e 15018 $as_echo "$as_me: failed program was:" >&5
51a727e9
BB
15019sed 's/^/| /' conftest.$ac_ext >&5
15020
8934764e
BB
15021 { $as_echo "$as_me:$LINENO: result: no" >&5
15022$as_echo "no" >&6; }
51a727e9
BB
15023
15024
15025
6ae7fef5
BB
15026fi
15027
15028 rm -Rf build
15029
15030
15031
8934764e
BB
15032 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
15033$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
15034
15035
dbe561d8 15036cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15037/* confdefs.h. */
15038_ACEOF
15039cat confdefs.h >>conftest.$ac_ext
15040cat >>conftest.$ac_ext <<_ACEOF
15041/* end confdefs.h. */
15042
15043
15044 #include <linux/fs.h>
15045
15046int
15047main (void)
15048{
15049
15050 vfs_unlink(NULL, NULL);
15051
15052 ;
15053 return 0;
15054}
15055
15056_ACEOF
15057
15058
15059 rm -Rf build && mkdir -p build
15060 echo "obj-m := conftest.o" >build/Makefile
15061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15064 ac_status=$?
8934764e 15065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15066 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
8934764e 15070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15071 (exit $ac_status); }; }; then
15072
8934764e
BB
15073 { $as_echo "$as_me:$LINENO: result: yes" >&5
15074$as_echo "yes" >&6; }
6ae7fef5
BB
15075
15076cat >>confdefs.h <<\_ACEOF
15077#define HAVE_2ARGS_VFS_UNLINK 1
15078_ACEOF
15079
15080
15081else
8934764e 15082 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15083sed 's/^/| /' conftest.$ac_ext >&5
15084
8934764e
BB
15085 { $as_echo "$as_me:$LINENO: result: no" >&5
15086$as_echo "no" >&6; }
6ae7fef5
BB
15087
15088
15089
15090fi
15091
15092 rm -Rf build
15093
15094
15095
8934764e
BB
15096 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15097$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
15098
15099
dbe561d8 15100cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15101/* confdefs.h. */
15102_ACEOF
15103cat confdefs.h >>conftest.$ac_ext
15104cat >>conftest.$ac_ext <<_ACEOF
15105/* end confdefs.h. */
15106
15107
15108 #include <linux/fs.h>
15109
15110int
15111main (void)
15112{
15113
15114 vfs_rename(NULL, NULL, NULL, NULL);
15115
15116 ;
15117 return 0;
15118}
15119
15120_ACEOF
15121
15122
15123 rm -Rf build && mkdir -p build
15124 echo "obj-m := conftest.o" >build/Makefile
15125 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
8934764e 15129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15130 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
8934764e 15134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15135 (exit $ac_status); }; }; then
15136
8934764e
BB
15137 { $as_echo "$as_me:$LINENO: result: yes" >&5
15138$as_echo "yes" >&6; }
6ae7fef5
BB
15139
15140cat >>confdefs.h <<\_ACEOF
15141#define HAVE_4ARGS_VFS_RENAME 1
15142_ACEOF
15143
15144
15145else
8934764e 15146 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15147sed 's/^/| /' conftest.$ac_ext >&5
15148
8934764e
BB
15149 { $as_echo "$as_me:$LINENO: result: no" >&5
15150$as_echo "no" >&6; }
6ae7fef5
BB
15151
15152
15153
15154fi
15155
15156 rm -Rf build
15157
15158
15159
15160
0d0b5237
BB
15161 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15162$as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15163 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15164 $LINUX_OBJ/Module*.symvers 2>/dev/null
15165 rc=$?
15166 if test $rc -ne 0; then
15167 export=0
15168 for file in fs/sync.c; do
15169 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15170 "$LINUX_OBJ/$file" 2>/dev/null
15171 rc=$?
15172 if test $rc -eq 0; then
15173 export=1
15174 break;
15175 fi
15176 done
15177 if test $export -eq 0; then
15178 { $as_echo "$as_me:$LINENO: result: no" >&5
15179$as_echo "no" >&6; }
15180
15181 else
15182 { $as_echo "$as_me:$LINENO: result: yes" >&5
15183$as_echo "yes" >&6; }
15184
15185cat >>confdefs.h <<\_ACEOF
15186#define HAVE_VFS_FSYNC 1
15187_ACEOF
15188
15189 fi
15190 else
15191 { $as_echo "$as_me:$LINENO: result: yes" >&5
15192$as_echo "yes" >&6; }
15193
15194cat >>confdefs.h <<\_ACEOF
15195#define HAVE_VFS_FSYNC 1
15196_ACEOF
15197
15198 fi
15199
15200
15201
15202 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15203$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15204
15205
15206cat confdefs.h - <<_ACEOF >conftest.c
15207/* confdefs.h. */
15208_ACEOF
15209cat confdefs.h >>conftest.$ac_ext
15210cat >>conftest.$ac_ext <<_ACEOF
15211/* end confdefs.h. */
15212
15213
15214 #include <linux/fs.h>
15215
15216int
15217main (void)
15218{
15219
15220 vfs_fsync(NULL, 0);
15221
15222 ;
15223 return 0;
15224}
15225
15226_ACEOF
15227
15228
15229 rm -Rf build && mkdir -p build
15230 echo "obj-m := conftest.o" >build/Makefile
15231 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242
15243 { $as_echo "$as_me:$LINENO: result: yes" >&5
15244$as_echo "yes" >&6; }
15245
15246cat >>confdefs.h <<\_ACEOF
15247#define HAVE_2ARGS_VFS_FSYNC 1
15248_ACEOF
15249
15250
15251else
15252 $as_echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
15255 { $as_echo "$as_me:$LINENO: result: no" >&5
15256$as_echo "no" >&6; }
15257
15258
15259
15260fi
15261
15262 rm -Rf build
15263
15264
15265
15266
9b2048c2
BB
15267 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15268$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
97fd6a07
BB
15269 tmp_flags="$EXTRA_KCFLAGS"
15270 EXTRA_KCFLAGS="-Werror"
9b2048c2
BB
15271
15272
15273cat confdefs.h - <<_ACEOF >conftest.c
15274/* confdefs.h. */
15275_ACEOF
15276cat confdefs.h >>conftest.$ac_ext
15277cat >>conftest.$ac_ext <<_ACEOF
15278/* end confdefs.h. */
15279
15280
15281 #include <linux/sched.h>
15282 #include <linux/fs_struct.h>
15283
15284int
15285main (void)
15286{
15287
15288 struct fs_struct fs;
15289 spin_lock_init(&fs.lock);
15290
15291 ;
15292 return 0;
15293}
15294
15295_ACEOF
15296
15297
15298 rm -Rf build && mkdir -p build
15299 echo "obj-m := conftest.o" >build/Makefile
15300 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15308 ac_status=$?
15309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }; then
15311
15312 { $as_echo "$as_me:$LINENO: result: yes" >&5
15313$as_echo "yes" >&6; }
15314
15315cat >>confdefs.h <<\_ACEOF
15316#define HAVE_FS_STRUCT_SPINLOCK 1
15317_ACEOF
15318
15319
15320else
15321 $as_echo "$as_me: failed program was:" >&5
15322sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 { $as_echo "$as_me:$LINENO: result: no" >&5
15325$as_echo "no" >&6; }
15326
15327
15328
15329fi
15330
15331 rm -Rf build
15332
15333
97fd6a07 15334 EXTRA_KCFLAGS="$tmp_flags"
9b2048c2
BB
15335
15336
8934764e
BB
15337 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15338$as_echo_n "checking whether struct cred exists... " >&6; }
6ae7fef5
BB
15339
15340
dbe561d8 15341cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15342/* confdefs.h. */
15343_ACEOF
15344cat confdefs.h >>conftest.$ac_ext
15345cat >>conftest.$ac_ext <<_ACEOF
15346/* end confdefs.h. */
15347
15348
15349 #include <linux/cred.h>
15350
15351int
15352main (void)
15353{
15354
03318641 15355 struct cred *cr __attribute__ ((unused));
6ae7fef5
BB
15356 cr = NULL;
15357
15358 ;
15359 return 0;
15360}
15361
15362_ACEOF
15363
15364
15365 rm -Rf build && mkdir -p build
15366 echo "obj-m := conftest.o" >build/Makefile
15367 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
8934764e 15371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15372 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
8934764e 15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15377 (exit $ac_status); }; }; then
15378
8934764e
BB
15379 { $as_echo "$as_me:$LINENO: result: yes" >&5
15380$as_echo "yes" >&6; }
6ae7fef5
BB
15381
15382cat >>confdefs.h <<\_ACEOF
15383#define HAVE_CRED_STRUCT 1
15384_ACEOF
15385
15386
15387else
8934764e 15388 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15389sed 's/^/| /' conftest.$ac_ext >&5
15390
8934764e
BB
15391 { $as_echo "$as_me:$LINENO: result: no" >&5
15392$as_echo "no" >&6; }
6ae7fef5
BB
15393
15394
15395
15396fi
15397
15398 rm -Rf build
15399
15400
15401
15402
8934764e
BB
15403 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15404$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
6ae7fef5
BB
15405 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15406 $LINUX_OBJ/Module*.symvers 2>/dev/null
15407 rc=$?
15408 if test $rc -ne 0; then
15409 export=0
15410 for file in ; do
15411 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15412 "$LINUX_OBJ/$file" 2>/dev/null
15413 rc=$?
15414 if test $rc -eq 0; then
15415 export=1
15416 break;
15417 fi
15418 done
15419 if test $export -eq 0; then
8934764e
BB
15420 { $as_echo "$as_me:$LINENO: result: no" >&5
15421$as_echo "no" >&6; }
6ae7fef5
BB
15422
15423 else
8934764e
BB
15424 { $as_echo "$as_me:$LINENO: result: yes" >&5
15425$as_echo "yes" >&6; }
6ae7fef5
BB
15426
15427cat >>confdefs.h <<\_ACEOF
15428#define HAVE_GROUPS_SEARCH 1
15429_ACEOF
15430
15431 fi
15432 else
8934764e
BB
15433 { $as_echo "$as_me:$LINENO: result: yes" >&5
15434$as_echo "yes" >&6; }
6ae7fef5
BB
15435
15436cat >>confdefs.h <<\_ACEOF
15437#define HAVE_GROUPS_SEARCH 1
15438_ACEOF
15439
15440 fi
15441
15442
e811949a 15443
8934764e
BB
15444 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15445$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
e811949a
BB
15446 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15447 $LINUX_OBJ/Module*.symvers 2>/dev/null
15448 rc=$?
15449 if test $rc -ne 0; then
15450 export=0
15451 for file in ; do
15452 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15453 "$LINUX_OBJ/$file" 2>/dev/null
15454 rc=$?
15455 if test $rc -eq 0; then
15456 export=1
15457 break;
15458 fi
15459 done
15460 if test $export -eq 0; then
8934764e
BB
15461 { $as_echo "$as_me:$LINENO: result: no" >&5
15462$as_echo "no" >&6; }
e811949a
BB
15463
15464 else
8934764e
BB
15465 { $as_echo "$as_me:$LINENO: result: yes" >&5
15466$as_echo "yes" >&6; }
e811949a
BB
15467
15468cat >>confdefs.h <<\_ACEOF
15469#define HAVE_PUT_TASK_STRUCT 1
15470_ACEOF
15471
15472 fi
15473 else
8934764e
BB
15474 { $as_echo "$as_me:$LINENO: result: yes" >&5
15475$as_echo "yes" >&6; }
e811949a
BB
15476
15477cat >>confdefs.h <<\_ACEOF
15478#define HAVE_PUT_TASK_STRUCT 1
15479_ACEOF
15480
15481 fi
15482
15483
3977f837 15484
8934764e
BB
15485 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15486$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
3977f837
BB
15487
15488
dbe561d8 15489cat confdefs.h - <<_ACEOF >conftest.c
3977f837
BB
15490/* confdefs.h. */
15491_ACEOF
15492cat confdefs.h >>conftest.$ac_ext
15493cat >>conftest.$ac_ext <<_ACEOF
15494/* end confdefs.h. */
15495
15496
15497 #include <linux/sysctl.h>
15498
15499int
15500main (void)
15501{
15502
15503 proc_dostring(NULL, 0, NULL, NULL, NULL);
15504
15505 ;
15506 return 0;
15507}
15508
15509_ACEOF
15510
15511
15512 rm -Rf build && mkdir -p build
15513 echo "obj-m := conftest.o" >build/Makefile
15514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15516 (eval $ac_try) 2>&5
15517 ac_status=$?
8934764e 15518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
15519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521 (eval $ac_try) 2>&5
15522 ac_status=$?
8934764e 15523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
15524 (exit $ac_status); }; }; then
15525
8934764e
BB
15526 { $as_echo "$as_me:$LINENO: result: yes" >&5
15527$as_echo "yes" >&6; }
3977f837
BB
15528
15529cat >>confdefs.h <<\_ACEOF
15530#define HAVE_5ARGS_PROC_HANDLER 1
15531_ACEOF
15532
15533
15534else
8934764e 15535 $as_echo "$as_me: failed program was:" >&5
3977f837
BB
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
8934764e
BB
15538 { $as_echo "$as_me:$LINENO: result: no" >&5
15539$as_echo "no" >&6; }
3977f837
BB
15540
15541
15542
15543fi
15544
15545 rm -Rf build
15546
15547
15548
b868e22f
BB
15549
15550 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15551$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15552 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15553 $LINUX_OBJ/Module*.symvers 2>/dev/null
15554 rc=$?
15555 if test $rc -ne 0; then
15556 export=0
15557 for file in ; do
15558 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15559 "$LINUX_OBJ/$file" 2>/dev/null
15560 rc=$?
15561 if test $rc -eq 0; then
15562 export=1
15563 break;
15564 fi
15565 done
15566 if test $export -eq 0; then
15567 { $as_echo "$as_me:$LINENO: result: no" >&5
15568$as_echo "no" >&6; }
15569
15570 else
15571 { $as_echo "$as_me:$LINENO: result: yes" >&5
15572$as_echo "yes" >&6; }
15573
15574cat >>confdefs.h <<\_ACEOF
15575#define HAVE_KVASPRINTF 1
15576_ACEOF
15577
15578 fi
15579 else
15580 { $as_echo "$as_me:$LINENO: result: yes" >&5
15581$as_echo "yes" >&6; }
15582
15583cat >>confdefs.h <<\_ACEOF
15584#define HAVE_KVASPRINTF 1
15585_ACEOF
15586
15587 fi
15588
15589
f0ff89fc 15590
46aa7b39
NB
15591 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15592$as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15593 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15594 $LINUX_OBJ/Module*.symvers 2>/dev/null
15595 rc=$?
15596 if test $rc -ne 0; then
15597 export=0
15598 for file in lib/rwsem-spinlock.c; do
15599 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15600 "$LINUX_OBJ/$file" 2>/dev/null
15601 rc=$?
15602 if test $rc -eq 0; then
15603 export=1
15604 break;
15605 fi
15606 done
15607 if test $export -eq 0; then
15608 { $as_echo "$as_me:$LINENO: result: no" >&5
15609$as_echo "no" >&6; }
15610
15611 else
15612 { $as_echo "$as_me:$LINENO: result: yes" >&5
15613$as_echo "yes" >&6; }
15614
15615cat >>confdefs.h <<\_ACEOF
15616#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15617_ACEOF
15618
15619 fi
15620 else
15621 { $as_echo "$as_me:$LINENO: result: yes" >&5
15622$as_echo "yes" >&6; }
15623
15624cat >>confdefs.h <<\_ACEOF
15625#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15626_ACEOF
15627
15628 fi
15629
15630
914b0631
BB
15631
15632 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15633$as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15634 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15635 $LINUX_OBJ/Module*.symvers 2>/dev/null
15636 rc=$?
15637 if test $rc -ne 0; then
15638 export=0
15639 for file in ; do
15640 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15641 "$LINUX_OBJ/$file" 2>/dev/null
15642 rc=$?
15643 if test $rc -eq 0; then
15644 export=1
15645 break;
15646 fi
15647 done
15648 if test $export -eq 0; then
15649 { $as_echo "$as_me:$LINENO: result: no" >&5
15650$as_echo "no" >&6; }
15651
15652 else
15653 { $as_echo "$as_me:$LINENO: result: yes" >&5
15654$as_echo "yes" >&6; }
15655
15656cat >>confdefs.h <<\_ACEOF
15657#define HAVE_INVALIDATE_INODES 1
15658_ACEOF
15659
15660 fi
15661 else
15662 { $as_echo "$as_me:$LINENO: result: yes" >&5
15663$as_echo "yes" >&6; }
15664
15665cat >>confdefs.h <<\_ACEOF
15666#define HAVE_INVALIDATE_INODES 1
15667_ACEOF
15668
15669 fi
15670
5f6c14b1
BB
15671 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
15672$as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
15673 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
15674 $LINUX_OBJ/Module*.symvers 2>/dev/null
15675 rc=$?
15676 if test $rc -ne 0; then
15677 export=0
15678 for file in ; do
15679 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
15680 "$LINUX_OBJ/$file" 2>/dev/null
15681 rc=$?
15682 if test $rc -eq 0; then
15683 export=1
15684 break;
15685 fi
15686 done
15687 if test $export -eq 0; then
15688 { $as_echo "$as_me:$LINENO: result: no" >&5
15689$as_echo "no" >&6; }
15690
15691 else
15692 { $as_echo "$as_me:$LINENO: result: yes" >&5
15693$as_echo "yes" >&6; }
15694
15695cat >>confdefs.h <<\_ACEOF
15696#define HAVE_INVALIDATE_INODES_CHECK 1
15697_ACEOF
15698
15699 fi
15700 else
15701 { $as_echo "$as_me:$LINENO: result: yes" >&5
15702$as_echo "yes" >&6; }
15703
15704cat >>confdefs.h <<\_ACEOF
15705#define HAVE_INVALIDATE_INODES_CHECK 1
15706_ACEOF
15707
15708 fi
15709
914b0631 15710
9b0f9079
BB
15711 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15712$as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15713
15714
15715cat confdefs.h - <<_ACEOF >conftest.c
15716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
15721
15722
15723 #include <linux/fs.h>
15724
15725int
15726main (void)
15727{
15728
15729 return __invalidate_device(NULL, 0);
15730
15731 ;
15732 return 0;
15733}
15734
15735_ACEOF
15736
15737
15738 rm -Rf build && mkdir -p build
15739 echo "obj-m := conftest.o" >build/Makefile
15740 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15742 (eval $ac_try) 2>&5
15743 ac_status=$?
15744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751
15752 { $as_echo "$as_me:$LINENO: result: yes" >&5
15753$as_echo "yes" >&6; }
15754
15755cat >>confdefs.h <<\_ACEOF
15756#define HAVE_2ARGS_INVALIDATE_INODES 1
15757_ACEOF
15758
15759
15760else
15761 $as_echo "$as_me: failed program was:" >&5
15762sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 { $as_echo "$as_me:$LINENO: result: no" >&5
15765$as_echo "no" >&6; }
15766
15767
15768
15769fi
15770
15771 rm -Rf build
15772
15773
15774
e76f4bf1
BB
15775
15776 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15777$as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15778 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15779 $LINUX_OBJ/Module*.symvers 2>/dev/null
15780 rc=$?
15781 if test $rc -ne 0; then
15782 export=0
15783 for file in fs/dcache.c; do
15784 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15785 "$LINUX_OBJ/$file" 2>/dev/null
15786 rc=$?
15787 if test $rc -eq 0; then
15788 export=1
15789 break;
15790 fi
15791 done
15792 if test $export -eq 0; then
15793 { $as_echo "$as_me:$LINENO: result: no" >&5
15794$as_echo "no" >&6; }
15795
15796 else
15797 { $as_echo "$as_me:$LINENO: result: yes" >&5
15798$as_echo "yes" >&6; }
15799
15800cat >>confdefs.h <<\_ACEOF
15801#define HAVE_SHRINK_DCACHE_MEMORY 1
15802_ACEOF
15803
15804 fi
15805 else
15806 { $as_echo "$as_me:$LINENO: result: yes" >&5
15807$as_echo "yes" >&6; }
15808
15809cat >>confdefs.h <<\_ACEOF
15810#define HAVE_SHRINK_DCACHE_MEMORY 1
15811_ACEOF
15812
15813 fi
15814
15815
15816
15817 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15818$as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15819 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15820 $LINUX_OBJ/Module*.symvers 2>/dev/null
15821 rc=$?
15822 if test $rc -ne 0; then
15823 export=0
15824 for file in fs/inode.c; do
15825 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15826 "$LINUX_OBJ/$file" 2>/dev/null
15827 rc=$?
15828 if test $rc -eq 0; then
15829 export=1
15830 break;
15831 fi
15832 done
15833 if test $export -eq 0; then
15834 { $as_echo "$as_me:$LINENO: result: no" >&5
15835$as_echo "no" >&6; }
15836
15837 else
15838 { $as_echo "$as_me:$LINENO: result: yes" >&5
15839$as_echo "yes" >&6; }
15840
15841cat >>confdefs.h <<\_ACEOF
15842#define HAVE_SHRINK_ICACHE_MEMORY 1
15843_ACEOF
15844
15845 fi
15846 else
15847 { $as_echo "$as_me:$LINENO: result: yes" >&5
15848$as_echo "yes" >&6; }
15849
15850cat >>confdefs.h <<\_ACEOF
15851#define HAVE_SHRINK_ICACHE_MEMORY 1
15852_ACEOF
15853
15854 fi
15855
15856
b1cbc461 15857
12ff95ff
BB
15858
15859 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15860$as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15861 header=0
15862 for file in include/linux/namei.h; do
15863 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15864 rc=$?
15865 if test $rc -eq 0; then
15866 header=1
15867 break;
15868 fi
15869 done
15870 if test $header -eq 0; then
15871 { $as_echo "$as_me:$LINENO: result: no" >&5
15872$as_echo "no" >&6; }
15873
15874 else
15875 { $as_echo "$as_me:$LINENO: result: yes" >&5
15876$as_echo "yes" >&6; }
15877
15878cat >>confdefs.h <<\_ACEOF
15879#define HAVE_KERN_PATH_PARENT_HEADER 1
15880_ACEOF
15881
15882 fi
15883
15884
15885
b1cbc461
BB
15886 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15887$as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15888 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15889 $LINUX_OBJ/Module*.symvers 2>/dev/null
15890 rc=$?
15891 if test $rc -ne 0; then
15892 export=0
15893 for file in fs/namei.c; do
15894 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15895 "$LINUX_OBJ/$file" 2>/dev/null
15896 rc=$?
15897 if test $rc -eq 0; then
15898 export=1
15899 break;
15900 fi
15901 done
15902 if test $export -eq 0; then
15903 { $as_echo "$as_me:$LINENO: result: no" >&5
15904$as_echo "no" >&6; }
15905
15906 else
15907 { $as_echo "$as_me:$LINENO: result: yes" >&5
15908$as_echo "yes" >&6; }
15909
15910cat >>confdefs.h <<\_ACEOF
12ff95ff 15911#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
15912_ACEOF
15913
15914 fi
15915 else
15916 { $as_echo "$as_me:$LINENO: result: yes" >&5
15917$as_echo "yes" >&6; }
15918
15919cat >>confdefs.h <<\_ACEOF
12ff95ff 15920#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
15921_ACEOF
15922
15923 fi
15924
15925
3dfc591a
BB
15926 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15927$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15928
15929
15930cat confdefs.h - <<_ACEOF >conftest.c
15931/* confdefs.h. */
15932_ACEOF
15933cat confdefs.h >>conftest.$ac_ext
15934cat >>conftest.$ac_ext <<_ACEOF
15935/* end confdefs.h. */
15936
15937
15938 #include <linux/zlib.h>
15939
15940int
15941main (void)
15942{
15943
15944 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15945
15946 ;
15947 return 0;
15948}
15949
15950_ACEOF
15951
15952
15953 rm -Rf build && mkdir -p build
15954 echo "obj-m := conftest.o" >build/Makefile
15955 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15957 (eval $ac_try) 2>&5
15958 ac_status=$?
15959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15963 ac_status=$?
15964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966
15967 { $as_echo "$as_me:$LINENO: result: yes" >&5
15968$as_echo "yes" >&6; }
15969
15970cat >>confdefs.h <<\_ACEOF
15971#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
15972_ACEOF
15973
15974
15975else
15976 $as_echo "$as_me: failed program was:" >&5
15977sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 { $as_echo "$as_me:$LINENO: result: no" >&5
15980$as_echo "no" >&6; }
15981
15982
15983
a55bcaad
BB
15984fi
15985
15986 rm -Rf build
15987
15988
15989
15990
15991 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
15992$as_echo_n "checking whether struct shrink_control exists... " >&6; }
15993
15994
15995cat confdefs.h - <<_ACEOF >conftest.c
15996/* confdefs.h. */
15997_ACEOF
15998cat confdefs.h >>conftest.$ac_ext
15999cat >>conftest.$ac_ext <<_ACEOF
16000/* end confdefs.h. */
16001
16002
16003 #include <linux/mm.h>
16004
16005int
16006main (void)
16007{
16008
16009 struct shrink_control sc __attribute__ ((unused));
16010
16011 sc.nr_to_scan = 0;
16012 sc.gfp_mask = GFP_KERNEL;
16013
16014 ;
16015 return 0;
16016}
16017
16018_ACEOF
16019
16020
16021 rm -Rf build && mkdir -p build
16022 echo "obj-m := conftest.o" >build/Makefile
16023 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16026 ac_status=$?
16027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16034
16035 { $as_echo "$as_me:$LINENO: result: yes" >&5
16036$as_echo "yes" >&6; }
16037
16038cat >>confdefs.h <<\_ACEOF
16039#define HAVE_SHRINK_CONTROL_STRUCT 1
16040_ACEOF
16041
16042
16043else
16044 $as_echo "$as_me: failed program was:" >&5
16045sed 's/^/| /' conftest.$ac_ext >&5
16046
16047 { $as_echo "$as_me:$LINENO: result: no" >&5
16048$as_echo "no" >&6; }
16049
16050
16051
3dfc591a
BB
16052fi
16053
16054 rm -Rf build
16055
16056
16057
588d9004
DH
16058
16059 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
16060$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16061 tmp_flags="$EXTRA_KCFLAGS"
16062 EXTRA_KCFLAGS="-Werror"
16063
16064
16065cat confdefs.h - <<_ACEOF >conftest.c
16066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
16071
16072
16073 #include <linux/rwsem.h>
16074
16075int
16076main (void)
16077{
16078
16079 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16080 raw_spinlock_t dummy_lock __attribute__ ((unused));
16081 dummy_semaphore.wait_lock = dummy_lock;
16082
16083 ;
16084 return 0;
16085}
16086
16087_ACEOF
16088
16089
16090 rm -Rf build && mkdir -p build
16091 echo "obj-m := conftest.o" >build/Makefile
16092 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; }; then
16103
16104 { $as_echo "$as_me:$LINENO: result: yes" >&5
16105$as_echo "yes" >&6; }
16106
16107cat >>confdefs.h <<\_ACEOF
16108#define RWSEM_SPINLOCK_IS_RAW 1
16109_ACEOF
16110
16111
16112else
16113 $as_echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 { $as_echo "$as_me:$LINENO: result: no" >&5
16117$as_echo "no" >&6; }
16118
16119
16120
16121fi
16122
16123 rm -Rf build
16124
16125
16126 EXTRA_KCFLAGS="$tmp_flags"
16127
6ae7fef5 16128 ;;
ad35b6a6 16129 user) ;;
6ae7fef5
BB
16130 all)
16131
16132
8934764e 16133# Check whether --with-linux was given.
6ae7fef5 16134if test "${with_linux+set}" = set; then
8934764e
BB
16135 withval=$with_linux; kernelsrc="$withval"
16136fi
6ae7fef5
BB
16137
16138
8934764e
BB
16139
16140# Check whether --with-linux-obj was given.
6ae7fef5 16141if test "${with_linux_obj+set}" = set; then
8934764e
BB
16142 withval=$with_linux_obj; kernelbuild="$withval"
16143fi
6ae7fef5 16144
8934764e
BB
16145
16146 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16147$as_echo_n "checking kernel source directory... " >&6; }
6ae7fef5 16148 if test -z "$kernelsrc"; then
22ccfaa8
BB
16149 if test -e "/lib/modules/$(uname -r)/source"; then
16150 headersdir="/lib/modules/$(uname -r)/source"
16151 sourcelink=$(readlink -f "$headersdir")
16152 elif test -e "/lib/modules/$(uname -r)/build"; then
16153 headersdir="/lib/modules/$(uname -r)/build"
534c4e38
BM
16154 sourcelink=$(readlink -f "$headersdir")
16155 else
16156 sourcelink=$(ls -1d /usr/src/kernels/* \
16157 /usr/src/linux-* \
16158 2>/dev/null | grep -v obj | tail -1)
16159 fi
6ae7fef5 16160
8fd4e3af 16161 if test -n "$sourcelink" && test -e ${sourcelink}; then
6ae7fef5
BB
16162 kernelsrc=`readlink -f ${sourcelink}`
16163 else
8934764e
BB
16164 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16165$as_echo "Not found" >&6; }
16166 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
16167 *** Please make sure the kernel devel package for your distribution
16168 *** is installed then try again. If that fails you can specify the
16169 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 16170$as_echo "$as_me: error:
8fd4e3af
BB
16171 *** Please make sure the kernel devel package for your distribution
16172 *** is installed then try again. If that fails you can specify the
16173 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
6ae7fef5
BB
16174 { (exit 1); exit 1; }; }
16175 fi
16176 else
16177 if test "$kernelsrc" = "NONE"; then
16178 kernsrcver=NONE
16179 fi
16180 fi
16181
8934764e
BB
16182 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16183$as_echo "$kernelsrc" >&6; }
16184 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16185$as_echo_n "checking kernel build directory... " >&6; }
6ae7fef5 16186 if test -z "$kernelbuild"; then
22ccfaa8
BB
16187 if test -e "/lib/modules/$(uname -r)/build"; then
16188 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16189 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
e2d28a37
BB
16190 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16191 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16192 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16193 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16194 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
6ae7fef5
BB
16195 else
16196 kernelbuild=${kernelsrc}
16197 fi
16198 fi
8934764e
BB
16199 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16200$as_echo "$kernelbuild" >&6; }
6ae7fef5 16201
8934764e
BB
16202 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16203$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
16204 utsrelease1=$kernelbuild/include/linux/version.h
16205 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16206 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16207 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16208 utsrelease=linux/version.h
16209 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16210 utsrelease=linux/utsrelease.h
16211 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16212 utsrelease=generated/utsrelease.h
16213 fi
6ae7fef5 16214
fd921c2e
BB
16215 if test "$utsrelease"; then
16216 kernsrcver=`(echo "#include <$utsrelease>";
6ae7fef5
BB
16217 echo "kernsrcver=UTS_RELEASE") |
16218 cpp -I $kernelbuild/include |
16219 grep "^kernsrcver=" | cut -d \" -f 2`
6ae7fef5 16220
fd921c2e
BB
16221 if test -z "$kernsrcver"; then
16222 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16223$as_echo "Not found" >&6; }
16224 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16225$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16226 { (exit 1); exit 1; }; }
16227 fi
16228 else
8934764e
BB
16229 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16230$as_echo "Not found" >&6; }
fd921c2e
BB
16231 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16232$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
bf9f3bac 16233 { (exit 1); exit 1; }; }
16234 fi
16235
8934764e
BB
16236 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16237$as_echo "$kernsrcver" >&6; }
bf9f3bac 16238
bf9f3bac 16239 LINUX=${kernelsrc}
16240 LINUX_OBJ=${kernelbuild}
c5f70460
BB
16241 LINUX_VERSION=${kernsrcver}
16242
bf9f3bac 16243
16244
16245
16246
16247
bb339d06 16248 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
16249 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16250$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
16251 if test -f "$modpost"; then
16252 if grep -q Modules.symvers $modpost; then
16253 LINUX_SYMBOLS=Modules.symvers
16254 else
16255 LINUX_SYMBOLS=Module.symvers
16256 fi
912fd84d
BB
16257
16258 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16259 { { $as_echo "$as_me:$LINENO: error:
16260 *** Please make sure the kernel devel package for your distribution
16261 *** is installed. If your building with a custom kernel make sure the
16262 *** kernel is configured, built, and the '--with-linux=PATH' configure
16263 *** option refers to the location of the kernel source." >&5
16264$as_echo "$as_me: error:
16265 *** Please make sure the kernel devel package for your distribution
16266 *** is installed. If your building with a custom kernel make sure the
16267 *** kernel is configured, built, and the '--with-linux=PATH' configure
16268 *** option refers to the location of the kernel source." >&2;}
16269 { (exit 1); exit 1; }; }
16270 fi
2e0e7e69 16271 else
bb339d06 16272 LINUX_SYMBOLS=NONE
2e0e7e69 16273 fi
8934764e
BB
16274 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16275$as_echo "$LINUX_SYMBOLS" >&6; }
2e0e7e69
BB
16276
16277
16278
86933a6e 16279
7731d46b
BB
16280 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16281$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16282
16283
16284cat confdefs.h - <<_ACEOF >conftest.c
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290
16291
c064bdee 16292 #include <linux/module.h>
7731d46b
BB
16293
16294int
16295main (void)
16296{
16297
16298 #ifndef CONFIG_PREEMPT
16299 #error CONFIG_PREEMPT not #defined
16300 #endif
16301
16302 ;
16303 return 0;
16304}
16305
16306_ACEOF
16307
16308
16309 rm -Rf build && mkdir -p build
16310 echo "obj-m := conftest.o" >build/Makefile
16311 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322
16323 { $as_echo "$as_me:$LINENO: result: yes" >&5
16324$as_echo "yes" >&6; }
16325 { { $as_echo "$as_me:$LINENO: error:
16326 *** Kernel built with CONFIG_PREEMPT which is not supported.
16327 ** You must rebuild your kernel without this option." >&5
16328$as_echo "$as_me: error:
16329 *** Kernel built with CONFIG_PREEMPT which is not supported.
16330 ** You must rebuild your kernel without this option." >&2;}
16331 { (exit 1); exit 1; }; }
16332
16333else
16334 $as_echo "$as_me: failed program was:" >&5
16335sed 's/^/| /' conftest.$ac_ext >&5
16336
16337 { $as_echo "$as_me:$LINENO: result: no" >&5
16338$as_echo "no" >&6; }
16339
16340
16341
16342
16343fi
16344
16345 rm -Rf build
16346
16347
16348
16349
16350
86933a6e
BB
16351 if test "${LINUX_OBJ}" != "${LINUX}"; then
16352 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16353 fi
16354
16355
a7958f7e 16356 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
86933a6e 16357
bf9f3bac 16358
16359
c950d148
BB
16360 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16361$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 16362 # Check whether --enable-debug was given.
bf9f3bac 16363if test "${enable_debug+set}" = set; then
8934764e 16364 enableval=$enable_debug;
055ffd98
BB
16365else
16366 enable_debug=no
8934764e
BB
16367fi
16368
055ffd98
BB
16369
16370 if test "x$enable_debug" = xyes; then
c950d148 16371
c950d148
BB
16372 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16373 DEBUG_CFLAGS="-DDEBUG -Werror"
16374
055ffd98 16375else
c950d148 16376
c950d148
BB
16377 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16378 DEBUG_CFLAGS="-DNDEBUG"
16379
055ffd98
BB
16380fi
16381
16382
c950d148 16383
8934764e
BB
16384 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16385$as_echo "$enable_debug" >&6; }
bf9f3bac 16386
16387
4b2220f0
BB
16388 # Check whether --enable-debug-log was given.
16389if test "${enable_debug_log+set}" = set; then
16390 enableval=$enable_debug_log;
16391else
16392 enable_debug_log=yes
16393fi
16394
16395
16396 if test "x$enable_debug_log" = xyes; then
16397
16398cat >>confdefs.h <<\_ACEOF
16399#define DEBUG_LOG 1
16400_ACEOF
16401
16402 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
16403fi
16404
16405
16406 { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5
16407$as_echo_n "checking whether basic debug logging is enabled... " >&6; }
16408 { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5
16409$as_echo "$enable_debug_log" >&6; }
16410
16411
8934764e 16412 # Check whether --enable-debug-kmem was given.
bf9f3bac 16413if test "${enable_debug_kmem+set}" = set; then
8934764e 16414 enableval=$enable_debug_kmem;
055ffd98
BB
16415else
16416 enable_debug_kmem=yes
8934764e
BB
16417fi
16418
055ffd98
BB
16419
16420 if test "x$enable_debug_kmem" = xyes; then
bf9f3bac 16421
16422cat >>confdefs.h <<\_ACEOF
16423#define DEBUG_KMEM 1
16424_ACEOF
16425
16426 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 16427fi
bf9f3bac 16428
bf9f3bac 16429
8934764e
BB
16430 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16431$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16432 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16433$as_echo "$enable_debug_kmem" >&6; }
bf9f3bac 16434
16435
8934764e 16436 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 16437if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 16438 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
16439else
16440 enable_debug_kmem_tracking=no
8934764e
BB
16441fi
16442
055ffd98
BB
16443
16444 if test "x$enable_debug_kmem_tracking" = xyes; then
bf9f3bac 16445
16446cat >>confdefs.h <<\_ACEOF
055ffd98 16447#define DEBUG_KMEM_TRACKING 1
bf9f3bac 16448_ACEOF
16449
055ffd98
BB
16450 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16451fi
16452
16453
8934764e
BB
16454 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16455$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16456 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16457$as_echo "$enable_debug_kmem_tracking" >&6; }
bf9f3bac 16458
5e9b5d83 16459
8934764e 16460 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 16461if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 16462 enableval=$enable_atomic_spinlocks;
5e9b5d83 16463else
d04c8a56 16464 enable_atomic_spinlocks=check
8934764e
BB
16465fi
16466
5e9b5d83 16467
bf9f3bac 16468
16469
dbe561d8 16470cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
16476
16477
d04c8a56 16478 #include <asm/atomic.h>
bf9f3bac 16479
16480int
16481main (void)
16482{
16483
03318641 16484 atomic64_t *ptr __attribute__ ((unused));
bf9f3bac 16485
16486 ;
16487 return 0;
16488}
16489
16490_ACEOF
16491
c5f70460
BB
16492
16493 rm -Rf build && mkdir -p build
16494 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16495 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
8934764e 16499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16500 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
8934764e 16504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16505 (exit $ac_status); }; }; then
16506
d04c8a56 16507 have_atomic64_t=yes
bf9f3bac 16508
16509cat >>confdefs.h <<\_ACEOF
d04c8a56 16510#define HAVE_ATOMIC64_T 1
bf9f3bac 16511_ACEOF
16512
16513
16514else
8934764e 16515 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16516sed 's/^/| /' conftest.$ac_ext >&5
16517
d04c8a56 16518 have_atomic64_t=no
bf9f3bac 16519
c5f70460
BB
16520
16521
bf9f3bac 16522fi
c5f70460
BB
16523
16524 rm -Rf build
16525
bf9f3bac 16526
16527
d04c8a56
BB
16528 if test "x$enable_atomic_spinlocks" = xcheck; then
16529
16530 if test "x$have_atomic64_t" = xyes; then
16531
16532 enable_atomic_spinlocks=no
16533
16534else
16535
16536 enable_atomic_spinlocks=yes
16537
16538fi
16539
16540
16541fi
16542
16543
16544 if test "x$enable_atomic_spinlocks" = xyes; then
16545
16546
16547cat >>confdefs.h <<\_ACEOF
16548#define ATOMIC_SPINLOCK 1
16549_ACEOF
16550
16551
16552else
16553
16554 if test "x$have_atomic64_t" = xno; then
16555
8934764e
BB
16556 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16558{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 16559See \`config.log' for more details." >&5
8934764e 16560$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 16561See \`config.log' for more details." >&2;}
8934764e 16562 { (exit 1); exit 1; }; }; }
d04c8a56
BB
16563
16564fi
16565
16566
16567fi
16568
16569
8934764e
BB
16570 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16571$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16572 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16573$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 16574
8934764e
BB
16575 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16576$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16577 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16578$as_echo "$have_atomic64_t" >&6; }
d04c8a56 16579
8934764e
BB
16580 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16581$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
bf9f3bac 16582
16583
dbe561d8 16584cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16585/* confdefs.h. */
16586_ACEOF
16587cat confdefs.h >>conftest.$ac_ext
16588cat >>conftest.$ac_ext <<_ACEOF
16589/* end confdefs.h. */
16590
16591
16592 #include <asm/atomic.h>
5ec44a37 16593 #include <asm/system.h>
bf9f3bac 16594
16595int
16596main (void)
16597{
16598
d04c8a56 16599 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
bf9f3bac 16600
16601 ;
16602 return 0;
16603}
16604
16605_ACEOF
16606
c5f70460
BB
16607
16608 rm -Rf build && mkdir -p build
16609 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16610 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
8934764e 16614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16615 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
8934764e 16619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16620 (exit $ac_status); }; }; then
16621
8934764e
BB
16622 { $as_echo "$as_me:$LINENO: result: yes" >&5
16623$as_echo "yes" >&6; }
bf9f3bac 16624
16625cat >>confdefs.h <<\_ACEOF
d04c8a56 16626#define HAVE_ATOMIC64_CMPXCHG 1
bf9f3bac 16627_ACEOF
16628
16629
302b88e6 16630else
8934764e 16631 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
16632sed 's/^/| /' conftest.$ac_ext >&5
16633
8934764e
BB
16634 { $as_echo "$as_me:$LINENO: result: no" >&5
16635$as_echo "no" >&6; }
302b88e6
BB
16636
16637
16638
16639fi
16640
16641 rm -Rf build
16642
16643
16644
8934764e
BB
16645 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16646$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
16647
16648
dbe561d8 16649cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
16650/* confdefs.h. */
16651_ACEOF
16652cat confdefs.h >>conftest.$ac_ext
16653cat >>conftest.$ac_ext <<_ACEOF
16654/* end confdefs.h. */
16655
16656
16657 #include <asm/atomic.h>
16658
16659int
16660main (void)
16661{
16662
d04c8a56 16663 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
16664
16665 ;
16666 return 0;
16667}
16668
16669_ACEOF
16670
16671
16672 rm -Rf build && mkdir -p build
16673 echo "obj-m := conftest.o" >build/Makefile
16674 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676 (eval $ac_try) 2>&5
16677 ac_status=$?
8934764e 16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16679 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
8934764e 16683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16684 (exit $ac_status); }; }; then
16685
8934764e
BB
16686 { $as_echo "$as_me:$LINENO: result: yes" >&5
16687$as_echo "yes" >&6; }
302b88e6
BB
16688
16689cat >>confdefs.h <<\_ACEOF
d04c8a56 16690#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
16691_ACEOF
16692
16693
16694else
8934764e 16695 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
16696sed 's/^/| /' conftest.$ac_ext >&5
16697
8934764e
BB
16698 { $as_echo "$as_me:$LINENO: result: no" >&5
16699$as_echo "no" >&6; }
302b88e6
BB
16700
16701
16702
16703fi
16704
16705 rm -Rf build
16706
16707
16708
8934764e
BB
16709 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16710$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
16711
16712
dbe561d8 16713cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
16714/* confdefs.h. */
16715_ACEOF
16716cat confdefs.h >>conftest.$ac_ext
16717cat >>conftest.$ac_ext <<_ACEOF
16718/* end confdefs.h. */
16719
16720
d04c8a56 16721 #include <linux/types.h>
302b88e6
BB
16722
16723int
16724main (void)
16725{
16726
03318641 16727 uintptr_t *ptr __attribute__ ((unused));
302b88e6
BB
16728
16729 ;
16730 return 0;
16731}
16732
16733_ACEOF
16734
16735
16736 rm -Rf build && mkdir -p build
16737 echo "obj-m := conftest.o" >build/Makefile
16738 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
8934764e 16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16743 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
8934764e 16747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16748 (exit $ac_status); }; }; then
16749
8934764e
BB
16750 { $as_echo "$as_me:$LINENO: result: yes" >&5
16751$as_echo "yes" >&6; }
302b88e6
BB
16752
16753cat >>confdefs.h <<\_ACEOF
d04c8a56 16754#define HAVE_UINTPTR_T 1
302b88e6
BB
16755_ACEOF
16756
16757
bf9f3bac 16758else
8934764e 16759 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16760sed 's/^/| /' conftest.$ac_ext >&5
16761
8934764e
BB
16762 { $as_echo "$as_me:$LINENO: result: no" >&5
16763$as_echo "no" >&6; }
bf9f3bac 16764
c5f70460
BB
16765
16766
bf9f3bac 16767fi
c5f70460
BB
16768
16769 rm -Rf build
16770
bf9f3bac 16771
16772
8934764e
BB
16773 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16774$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
bf9f3bac 16775
16776
dbe561d8 16777cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16778/* confdefs.h. */
16779_ACEOF
16780cat confdefs.h >>conftest.$ac_ext
16781cat >>conftest.$ac_ext <<_ACEOF
16782/* end confdefs.h. */
16783
16784
16785 #include <linux/workqueue.h>
16786
16787int
16788main (void)
16789{
16790
03318641 16791 struct work_struct work __attribute__ ((unused));
bf9f3bac 16792 INIT_WORK(&work, NULL, NULL);
16793
16794 ;
16795 return 0;
16796}
16797
16798_ACEOF
16799
c5f70460
BB
16800
16801 rm -Rf build && mkdir -p build
16802 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16803 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
8934764e 16807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
8934764e 16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16813 (exit $ac_status); }; }; then
16814
8934764e
BB
16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
16816$as_echo "yes" >&6; }
bf9f3bac 16817
16818cat >>confdefs.h <<\_ACEOF
16819#define HAVE_3ARGS_INIT_WORK 1
16820_ACEOF
16821
16822
16823else
8934764e 16824 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16825sed 's/^/| /' conftest.$ac_ext >&5
16826
8934764e
BB
16827 { $as_echo "$as_me:$LINENO: result: no" >&5
16828$as_echo "no" >&6; }
bf9f3bac 16829
c5f70460
BB
16830
16831
bf9f3bac 16832fi
c5f70460
BB
16833
16834 rm -Rf build
16835
bf9f3bac 16836
16837
8934764e
BB
16838 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16839$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
bf9f3bac 16840
16841
dbe561d8 16842cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848
16849
16850 #include <linux/sysctl.h>
16851
16852int
16853main (void)
16854{
16855
03318641 16856 (void) register_sysctl_table(NULL, 0);
bf9f3bac 16857
16858 ;
16859 return 0;
16860}
16861
16862_ACEOF
16863
c5f70460
BB
16864
16865 rm -Rf build && mkdir -p build
16866 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
8934764e 16871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16872 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
8934764e 16876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16877 (exit $ac_status); }; }; then
16878
8934764e
BB
16879 { $as_echo "$as_me:$LINENO: result: yes" >&5
16880$as_echo "yes" >&6; }
bf9f3bac 16881
16882cat >>confdefs.h <<\_ACEOF
16883#define HAVE_2ARGS_REGISTER_SYSCTL 1
16884_ACEOF
16885
16886
16887else
8934764e 16888 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16889sed 's/^/| /' conftest.$ac_ext >&5
16890
8934764e
BB
16891 { $as_echo "$as_me:$LINENO: result: no" >&5
16892$as_echo "no" >&6; }
bf9f3bac 16893
c5f70460
BB
16894
16895
bf9f3bac 16896fi
c5f70460
BB
16897
16898 rm -Rf build
16899
bf9f3bac 16900
16901
16902
8934764e
BB
16903 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16904$as_echo_n "checking whether set_shrinker() available... " >&6; }
bf9f3bac 16905
16906
dbe561d8 16907cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16908/* confdefs.h. */
16909_ACEOF
16910cat confdefs.h >>conftest.$ac_ext
16911cat >>conftest.$ac_ext <<_ACEOF
16912/* end confdefs.h. */
16913
16914
16915 #include <linux/mm.h>
16916
16917int
16918main (void)
16919{
16920
16921 return set_shrinker(DEFAULT_SEEKS, NULL);
16922
16923 ;
16924 return 0;
16925}
16926
16927_ACEOF
16928
c5f70460
BB
16929
16930 rm -Rf build && mkdir -p build
16931 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16932 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
8934764e 16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16937 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
8934764e 16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16942 (exit $ac_status); }; }; then
16943
8934764e
BB
16944 { $as_echo "$as_me:$LINENO: result: yes" >&5
16945$as_echo "yes" >&6; }
bf9f3bac 16946
16947cat >>confdefs.h <<\_ACEOF
16948#define HAVE_SET_SHRINKER 1
16949_ACEOF
16950
16951
16952else
8934764e 16953 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16954sed 's/^/| /' conftest.$ac_ext >&5
16955
8934764e
BB
16956 { $as_echo "$as_me:$LINENO: result: no" >&5
16957$as_echo "no" >&6; }
bf9f3bac 16958
c5f70460
BB
16959
16960
bf9f3bac 16961fi
c5f70460
BB
16962
16963 rm -Rf build
16964
bf9f3bac 16965
16966
23aa63cb
BB
16967 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16968$as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16969 tmp_flags="$EXTRA_KCFLAGS"
16970 EXTRA_KCFLAGS="-Werror"
16971
16972
16973cat confdefs.h - <<_ACEOF >conftest.c
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979
16980
16981 #include <linux/mm.h>
16982
16983 int shrinker_cb(struct shrinker *, int, unsigned int);
16984
16985int
16986main (void)
16987{
16988
16989 struct shrinker cache_shrinker = {
16990 .shrink = shrinker_cb,
16991 .seeks = DEFAULT_SEEKS,
16992 };
16993 register_shrinker(&cache_shrinker);
16994
16995 ;
16996 return 0;
16997}
16998
16999_ACEOF
17000
17001
17002 rm -Rf build && mkdir -p build
17003 echo "obj-m := conftest.o" >build/Makefile
17004 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015
17016 { $as_echo "$as_me:$LINENO: result: yes" >&5
17017$as_echo "yes" >&6; }
17018
17019cat >>confdefs.h <<\_ACEOF
17020#define HAVE_3ARGS_SHRINKER_CALLBACK 1
17021_ACEOF
17022
17023
17024else
17025 $as_echo "$as_me: failed program was:" >&5
17026sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 { $as_echo "$as_me:$LINENO: result: no" >&5
17029$as_echo "no" >&6; }
17030
17031
17032
17033fi
17034
17035 rm -Rf build
17036
17037
17038 EXTRA_KCFLAGS="$tmp_flags"
17039
8934764e
BB
17040 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
17041$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
bf9f3bac 17042
17043
dbe561d8 17044cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17045/* confdefs.h. */
17046_ACEOF
17047cat confdefs.h >>conftest.$ac_ext
17048cat >>conftest.$ac_ext <<_ACEOF
17049/* end confdefs.h. */
17050
17051
17052 #include <linux/namei.h>
17053
17054int
17055main (void)
17056{
17057
03318641 17058 struct nameidata nd __attribute__ ((unused));
bf9f3bac 17059
17060 nd.path.mnt = NULL;
17061 nd.path.dentry = NULL;
17062
17063 ;
17064 return 0;
17065}
17066
17067_ACEOF
17068
c5f70460
BB
17069
17070 rm -Rf build && mkdir -p build
17071 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17072 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
8934764e 17076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17077 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
8934764e 17081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17082 (exit $ac_status); }; }; then
17083
8934764e
BB
17084 { $as_echo "$as_me:$LINENO: result: yes" >&5
17085$as_echo "yes" >&6; }
bf9f3bac 17086
17087cat >>confdefs.h <<\_ACEOF
17088#define HAVE_PATH_IN_NAMEIDATA 1
17089_ACEOF
17090
17091
17092else
8934764e 17093 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17094sed 's/^/| /' conftest.$ac_ext >&5
17095
8934764e
BB
17096 { $as_echo "$as_me:$LINENO: result: no" >&5
17097$as_echo "no" >&6; }
bf9f3bac 17098
c5f70460
BB
17099
17100
bf9f3bac 17101fi
c5f70460
BB
17102
17103 rm -Rf build
17104
bf9f3bac 17105
17106
17107
8934764e
BB
17108 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
17109$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
2e0e7e69
BB
17110 grep -q -E '[[:space:]]task_curr[[:space:]]' \
17111 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17112 rc=$?
17113 if test $rc -ne 0; then
17114 export=0
17115 for file in kernel/sched.c; do
2e0e7e69
BB
17116 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
17117 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17118 rc=$?
17119 if test $rc -eq 0; then
17120 export=1
17121 break;
17122 fi
17123 done
17124 if test $export -eq 0; then
8934764e
BB
17125 { $as_echo "$as_me:$LINENO: result: no" >&5
17126$as_echo "no" >&6; }
bf9f3bac 17127
17128 else
8934764e
BB
17129 { $as_echo "$as_me:$LINENO: result: yes" >&5
17130$as_echo "yes" >&6; }
bf9f3bac 17131
17132cat >>confdefs.h <<\_ACEOF
17133#define HAVE_TASK_CURR 1
17134_ACEOF
17135
17136 fi
17137 else
8934764e
BB
17138 { $as_echo "$as_me:$LINENO: result: yes" >&5
17139$as_echo "yes" >&6; }
bf9f3bac 17140
17141cat >>confdefs.h <<\_ACEOF
17142#define HAVE_TASK_CURR 1
17143_ACEOF
17144
17145 fi
17146
17147
8934764e
BB
17148 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
17149$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
bf9f3bac 17150
17151
dbe561d8 17152cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17153/* confdefs.h. */
17154_ACEOF
17155cat confdefs.h >>conftest.$ac_ext
17156cat >>conftest.$ac_ext <<_ACEOF
17157/* end confdefs.h. */
17158
17159
17160 #include <linux/sysctl.h>
17161
17162int
17163main (void)
17164{
17165
17166 #ifndef CTL_UNNUMBERED
17167 #error CTL_UNNUMBERED undefined
17168 #endif
17169
17170 ;
17171 return 0;
17172}
17173
17174_ACEOF
17175
c5f70460
BB
17176
17177 rm -Rf build && mkdir -p build
17178 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17179 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
8934764e 17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17184 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
8934764e 17188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17189 (exit $ac_status); }; }; then
17190
8934764e
BB
17191 { $as_echo "$as_me:$LINENO: result: yes" >&5
17192$as_echo "yes" >&6; }
bf9f3bac 17193
17194cat >>confdefs.h <<\_ACEOF
17195#define HAVE_CTL_UNNUMBERED 1
17196_ACEOF
17197
17198
79a3bf13
BB
17199else
17200 $as_echo "$as_me: failed program was:" >&5
17201sed 's/^/| /' conftest.$ac_ext >&5
17202
17203 { $as_echo "$as_me:$LINENO: result: no" >&5
17204$as_echo "no" >&6; }
17205
17206
17207
17208fi
17209
17210 rm -Rf build
17211
17212
17213
17214
17215 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
17216$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17217
17218
dbe561d8 17219cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225
17226
17227 #include <linux/sysctl.h>
17228
17229int
17230main (void)
17231{
17232
03318641 17233 struct ctl_table ctl __attribute__ ((unused));
79a3bf13
BB
17234 ctl.ctl_name = 0;
17235
17236 ;
17237 return 0;
17238}
17239
17240_ACEOF
17241
17242
17243 rm -Rf build && mkdir -p build
17244 echo "obj-m := conftest.o" >build/Makefile
17245 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256
17257 { $as_echo "$as_me:$LINENO: result: yes" >&5
17258$as_echo "yes" >&6; }
17259
17260cat >>confdefs.h <<\_ACEOF
17261#define HAVE_CTL_NAME 1
17262_ACEOF
17263
17264
bf9f3bac 17265else
8934764e 17266 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17267sed 's/^/| /' conftest.$ac_ext >&5
17268
8934764e
BB
17269 { $as_echo "$as_me:$LINENO: result: no" >&5
17270$as_echo "no" >&6; }
bf9f3bac 17271
c5f70460
BB
17272
17273
bf9f3bac 17274fi
c5f70460
BB
17275
17276 rm -Rf build
17277
bf9f3bac 17278
17279
8934764e
BB
17280 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17281$as_echo_n "checking whether fls64() is available... " >&6; }
bf9f3bac 17282
17283
dbe561d8 17284cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17285/* confdefs.h. */
17286_ACEOF
17287cat confdefs.h >>conftest.$ac_ext
17288cat >>conftest.$ac_ext <<_ACEOF
17289/* end confdefs.h. */
17290
17291
17292 #include <linux/bitops.h>
17293
17294int
17295main (void)
17296{
17297
17298 return fls64(0);
17299
17300 ;
17301 return 0;
17302}
17303
17304_ACEOF
17305
c5f70460
BB
17306
17307 rm -Rf build && mkdir -p build
17308 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17309 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311 (eval $ac_try) 2>&5
17312 ac_status=$?
8934764e 17313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
8934764e 17318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17319 (exit $ac_status); }; }; then
17320
8934764e
BB
17321 { $as_echo "$as_me:$LINENO: result: yes" >&5
17322$as_echo "yes" >&6; }
bf9f3bac 17323
17324cat >>confdefs.h <<\_ACEOF
17325#define HAVE_FLS64 1
17326_ACEOF
17327
17328
17329else
8934764e 17330 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17331sed 's/^/| /' conftest.$ac_ext >&5
17332
8934764e
BB
17333 { $as_echo "$as_me:$LINENO: result: no" >&5
17334$as_echo "no" >&6; }
bf9f3bac 17335
c5f70460
BB
17336
17337
bf9f3bac 17338fi
c5f70460
BB
17339
17340 rm -Rf build
17341
bf9f3bac 17342
17343
17344
8934764e
BB
17345 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17346$as_echo_n "checking whether symbol device_create is exported... " >&6; }
2e0e7e69
BB
17347 grep -q -E '[[:space:]]device_create[[:space:]]' \
17348 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17349 rc=$?
17350 if test $rc -ne 0; then
17351 export=0
17352 for file in drivers/base/core.c; do
2e0e7e69
BB
17353 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17354 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17355 rc=$?
17356 if test $rc -eq 0; then
17357 export=1
17358 break;
17359 fi
17360 done
17361 if test $export -eq 0; then
8934764e
BB
17362 { $as_echo "$as_me:$LINENO: result: no" >&5
17363$as_echo "no" >&6; }
bf9f3bac 17364
17365 else
8934764e
BB
17366 { $as_echo "$as_me:$LINENO: result: yes" >&5
17367$as_echo "yes" >&6; }
bf9f3bac 17368
17369cat >>confdefs.h <<\_ACEOF
17370#define HAVE_DEVICE_CREATE 1
17371_ACEOF
17372
17373 fi
17374 else
8934764e
BB
17375 { $as_echo "$as_me:$LINENO: result: yes" >&5
17376$as_echo "yes" >&6; }
bf9f3bac 17377
17378cat >>confdefs.h <<\_ACEOF
17379#define HAVE_DEVICE_CREATE 1
17380_ACEOF
17381
17382 fi
17383
17384
17385
8934764e
BB
17386 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17387$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
8123ac4f
BB
17388 tmp_flags="$EXTRA_KCFLAGS"
17389 EXTRA_KCFLAGS="-Werror"
17390
17391
dbe561d8 17392cat confdefs.h - <<_ACEOF >conftest.c
8123ac4f
BB
17393/* confdefs.h. */
17394_ACEOF
17395cat confdefs.h >>conftest.$ac_ext
17396cat >>conftest.$ac_ext <<_ACEOF
17397/* end confdefs.h. */
17398
17399
17400 #include <linux/device.h>
17401
17402int
17403main (void)
17404{
17405
17406 device_create(NULL, NULL, 0, NULL, "%d", 1);
17407
17408 ;
17409 return 0;
17410}
17411
17412_ACEOF
17413
17414
17415 rm -Rf build && mkdir -p build
17416 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17417 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
8123ac4f
BB
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
8934764e 17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
17422 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
8934764e 17426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
17427 (exit $ac_status); }; }; then
17428
8934764e
BB
17429 { $as_echo "$as_me:$LINENO: result: yes" >&5
17430$as_echo "yes" >&6; }
8123ac4f
BB
17431
17432cat >>confdefs.h <<\_ACEOF
17433#define HAVE_5ARGS_DEVICE_CREATE 1
17434_ACEOF
17435
17436
17437else
8934764e 17438 $as_echo "$as_me: failed program was:" >&5
8123ac4f
BB
17439sed 's/^/| /' conftest.$ac_ext >&5
17440
8934764e
BB
17441 { $as_echo "$as_me:$LINENO: result: no" >&5
17442$as_echo "no" >&6; }
8123ac4f
BB
17443
17444
17445
17446fi
17447
17448 rm -Rf build
17449
17450
17451 EXTRA_KCFLAGS="$tmp_flags"
17452
17453
8934764e
BB
17454 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17455$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
2e0e7e69
BB
17456 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17457 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17458 rc=$?
17459 if test $rc -ne 0; then
17460 export=0
17461 for file in drivers/base/class.c; do
2e0e7e69
BB
17462 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17463 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17464 rc=$?
17465 if test $rc -eq 0; then
17466 export=1
17467 break;
17468 fi
17469 done
17470 if test $export -eq 0; then
8934764e
BB
17471 { $as_echo "$as_me:$LINENO: result: no" >&5
17472$as_echo "no" >&6; }
bf9f3bac 17473
17474 else
8934764e
BB
17475 { $as_echo "$as_me:$LINENO: result: yes" >&5
17476$as_echo "yes" >&6; }
bf9f3bac 17477
17478cat >>confdefs.h <<\_ACEOF
17479#define HAVE_CLASS_DEVICE_CREATE 1
17480_ACEOF
17481
17482 fi
17483 else
8934764e
BB
17484 { $as_echo "$as_me:$LINENO: result: yes" >&5
17485$as_echo "yes" >&6; }
bf9f3bac 17486
17487cat >>confdefs.h <<\_ACEOF
17488#define HAVE_CLASS_DEVICE_CREATE 1
17489_ACEOF
17490
17491 fi
17492
17493
17494
8934764e
BB
17495 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17496$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
2e0e7e69
BB
17497 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17498 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17499 rc=$?
17500 if test $rc -ne 0; then
17501 export=0
17502 for file in kernel/time.c; do
2e0e7e69
BB
17503 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17504 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17505 rc=$?
17506 if test $rc -eq 0; then
17507 export=1
17508 break;
17509 fi
17510 done
17511 if test $export -eq 0; then
8934764e
BB
17512 { $as_echo "$as_me:$LINENO: result: no" >&5
17513$as_echo "no" >&6; }
bf9f3bac 17514
6ae7fef5 17515 else
8934764e
BB
17516 { $as_echo "$as_me:$LINENO: result: yes" >&5
17517$as_echo "yes" >&6; }
6ae7fef5
BB
17518
17519cat >>confdefs.h <<\_ACEOF
17520#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17521_ACEOF
17522
17523 fi
17524 else
8934764e
BB
17525 { $as_echo "$as_me:$LINENO: result: yes" >&5
17526$as_echo "yes" >&6; }
6ae7fef5
BB
17527
17528cat >>confdefs.h <<\_ACEOF
17529#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17530_ACEOF
17531
17532 fi
17533
17534
17535
8934764e
BB
17536 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17537$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
6ae7fef5
BB
17538
17539
dbe561d8 17540cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546
17547
17548 #include <linux/time.h>
17549 void set_normalized_timespec(struct timespec *ts,
17550 time_t sec, long nsec) { }
17551
17552int
17553main (void)
17554{
17555
17556 ;
17557 return 0;
17558}
17559
17560_ACEOF
17561
17562
17563 rm -Rf build && mkdir -p build
17564 echo "obj-m := conftest.o" >build/Makefile
17565 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
8934764e 17569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
8934764e 17574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17575 (exit $ac_status); }; }; then
17576
8934764e
BB
17577 { $as_echo "$as_me:$LINENO: result: no" >&5
17578$as_echo "no" >&6; }
6ae7fef5
BB
17579
17580else
8934764e 17581 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17582sed 's/^/| /' conftest.$ac_ext >&5
17583
8934764e
BB
17584 { $as_echo "$as_me:$LINENO: result: yes" >&5
17585$as_echo "yes" >&6; }
6ae7fef5
BB
17586
17587cat >>confdefs.h <<\_ACEOF
17588#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17589_ACEOF
17590
17591
17592
17593
17594fi
17595
17596 rm -Rf build
17597
17598
17599
17600
8934764e
BB
17601 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17602$as_echo_n "checking whether timespec_sub() is available... " >&6; }
6ae7fef5
BB
17603
17604
dbe561d8 17605cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
17611
17612
17613 #include <linux/time.h>
17614
17615int
17616main (void)
17617{
17618
03318641
BB
17619 struct timespec a = { 0 };
17620 struct timespec b = { 0 };
17621 struct timespec c __attribute__ ((unused));
6ae7fef5
BB
17622 c = timespec_sub(a, b);
17623
17624 ;
17625 return 0;
17626}
17627
17628_ACEOF
17629
17630
17631 rm -Rf build && mkdir -p build
17632 echo "obj-m := conftest.o" >build/Makefile
17633 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
8934764e 17637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17638 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
8934764e 17642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17643 (exit $ac_status); }; }; then
17644
8934764e
BB
17645 { $as_echo "$as_me:$LINENO: result: yes" >&5
17646$as_echo "yes" >&6; }
6ae7fef5
BB
17647
17648cat >>confdefs.h <<\_ACEOF
17649#define HAVE_TIMESPEC_SUB 1
17650_ACEOF
17651
17652
17653else
8934764e 17654 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17655sed 's/^/| /' conftest.$ac_ext >&5
17656
8934764e
BB
17657 { $as_echo "$as_me:$LINENO: result: no" >&5
17658$as_echo "no" >&6; }
6ae7fef5
BB
17659
17660
17661
17662fi
17663
17664 rm -Rf build
17665
17666
17667
17668
8934764e
BB
17669 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17670$as_echo_n "checking whether init_utsname() is available... " >&6; }
6ae7fef5
BB
17671
17672
dbe561d8 17673cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17674/* confdefs.h. */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h. */
17679
17680
17681 #include <linux/utsname.h>
17682
17683int
17684main (void)
17685{
17686
03318641
BB
17687 struct new_utsname *a __attribute__ ((unused));
17688 a = init_utsname();
6ae7fef5
BB
17689
17690 ;
17691 return 0;
17692}
17693
17694_ACEOF
17695
17696
17697 rm -Rf build && mkdir -p build
17698 echo "obj-m := conftest.o" >build/Makefile
17699 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
8934764e 17703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
8934764e 17708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17709 (exit $ac_status); }; }; then
17710
8934764e
BB
17711 { $as_echo "$as_me:$LINENO: result: yes" >&5
17712$as_echo "yes" >&6; }
6ae7fef5
BB
17713
17714cat >>confdefs.h <<\_ACEOF
17715#define HAVE_INIT_UTSNAME 1
17716_ACEOF
17717
17718
17719else
8934764e 17720 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
8934764e
BB
17723 { $as_echo "$as_me:$LINENO: result: no" >&5
17724$as_echo "no" >&6; }
6ae7fef5
BB
17725
17726
17727
17728fi
17729
17730 rm -Rf build
17731
17732
17733
17734
8934764e
BB
17735 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17736$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
6ae7fef5
BB
17737
17738
dbe561d8 17739cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
17745
17746
17747 #include <linux/fdtable.h>
17748
17749int
17750main (void)
17751{
17752
17753 return 0;
17754
17755 ;
17756 return 0;
17757}
17758
17759_ACEOF
17760
17761
17762 rm -Rf build && mkdir -p build
17763 echo "obj-m := conftest.o" >build/Makefile
17764 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
8934764e 17768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17769 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
8934764e 17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17774 (exit $ac_status); }; }; then
17775
bf9f3bac 17776
17777cat >>confdefs.h <<\_ACEOF
6ae7fef5 17778#define HAVE_FDTABLE_HEADER 1
bf9f3bac 17779_ACEOF
17780
8934764e
BB
17781 { $as_echo "$as_me:$LINENO: result: yes" >&5
17782$as_echo "yes" >&6; }
bf9f3bac 17783
bf9f3bac 17784
6ae7fef5 17785else
8934764e 17786 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17787sed 's/^/| /' conftest.$ac_ext >&5
17788
8934764e
BB
17789 { $as_echo "$as_me:$LINENO: result: no" >&5
17790$as_echo "no" >&6; }
bf9f3bac 17791
17792
17793
6ae7fef5
BB
17794
17795fi
17796
17797 rm -Rf build
17798
17799
17800
17801
17802
8934764e
BB
17803 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17804$as_echo_n "checking whether files_fdtable() is available... " >&6; }
bf9f3bac 17805
17806
dbe561d8 17807cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17808/* confdefs.h. */
17809_ACEOF
17810cat confdefs.h >>conftest.$ac_ext
17811cat >>conftest.$ac_ext <<_ACEOF
17812/* end confdefs.h. */
17813
17814
6ae7fef5
BB
17815 #include <linux/sched.h>
17816 #include <linux/file.h>
17817 #ifdef HAVE_FDTABLE_HEADER
17818 #include <linux/fdtable.h>
17819 #endif
bf9f3bac 17820
17821int
17822main (void)
17823{
17824
6ae7fef5 17825 struct files_struct *files = current->files;
03318641
BB
17826 struct fdtable *fdt __attribute__ ((unused));
17827 fdt = files_fdtable(files);
6ae7fef5 17828
bf9f3bac 17829 ;
17830 return 0;
17831}
17832
17833_ACEOF
17834
c5f70460
BB
17835
17836 rm -Rf build && mkdir -p build
17837 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17838 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17841 ac_status=$?
8934764e 17842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17843 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
8934764e 17847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17848 (exit $ac_status); }; }; then
17849
8934764e
BB
17850 { $as_echo "$as_me:$LINENO: result: yes" >&5
17851$as_echo "yes" >&6; }
bf9f3bac 17852
17853cat >>confdefs.h <<\_ACEOF
6ae7fef5 17854#define HAVE_FILES_FDTABLE 1
bf9f3bac 17855_ACEOF
17856
17857
6ae7fef5 17858else
8934764e 17859 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17860sed 's/^/| /' conftest.$ac_ext >&5
17861
8934764e
BB
17862 { $as_echo "$as_me:$LINENO: result: no" >&5
17863$as_echo "no" >&6; }
6ae7fef5 17864
c5f70460
BB
17865
17866
bf9f3bac 17867fi
c5f70460
BB
17868
17869 rm -Rf build
17870
bf9f3bac 17871
17872
17873
8934764e
BB
17874 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17875$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
bf9f3bac 17876
17877
dbe561d8 17878cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17879/* confdefs.h. */
17880_ACEOF
17881cat confdefs.h >>conftest.$ac_ext
17882cat >>conftest.$ac_ext <<_ACEOF
17883/* end confdefs.h. */
17884
17885
6ae7fef5 17886 #include <linux/uaccess.h>
bf9f3bac 17887
17888int
17889main (void)
17890{
17891
6ae7fef5 17892 return 0;
bf9f3bac 17893
17894 ;
17895 return 0;
17896}
17897
17898_ACEOF
17899
c5f70460
BB
17900
17901 rm -Rf build && mkdir -p build
17902 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
8934764e 17907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
8934764e 17912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17913 (exit $ac_status); }; }; then
17914
bf9f3bac 17915
17916cat >>confdefs.h <<\_ACEOF
6ae7fef5 17917#define HAVE_UACCESS_HEADER 1
bf9f3bac 17918_ACEOF
17919
8934764e
BB
17920 { $as_echo "$as_me:$LINENO: result: yes" >&5
17921$as_echo "yes" >&6; }
6ae7fef5 17922
bf9f3bac 17923
17924else
8934764e 17925 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17926sed 's/^/| /' conftest.$ac_ext >&5
17927
8934764e
BB
17928 { $as_echo "$as_me:$LINENO: result: no" >&5
17929$as_echo "no" >&6; }
bf9f3bac 17930
c5f70460
BB
17931
17932
6ae7fef5 17933
bf9f3bac 17934fi
c5f70460
BB
17935
17936 rm -Rf build
17937
bf9f3bac 17938
17939
17940
6ae7fef5 17941
8934764e
BB
17942 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
17943$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
bf9f3bac 17944
17945
dbe561d8 17946cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17947/* confdefs.h. */
17948_ACEOF
17949cat confdefs.h >>conftest.$ac_ext
17950cat >>conftest.$ac_ext <<_ACEOF
17951/* end confdefs.h. */
17952
17953
6ae7fef5 17954 #include <linux/slab.h>
bf9f3bac 17955
17956int
17957main (void)
17958{
17959
03318641
BB
17960 void *a __attribute__ ((unused));
17961 a = kmalloc_node(1, GFP_KERNEL, 0);
bf9f3bac 17962
17963 ;
17964 return 0;
17965}
17966
17967_ACEOF
17968
c5f70460
BB
17969
17970 rm -Rf build && mkdir -p build
17971 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17972 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
8934764e 17976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17980 ac_status=$?
8934764e 17981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17982 (exit $ac_status); }; }; then
17983
8934764e
BB
17984 { $as_echo "$as_me:$LINENO: result: yes" >&5
17985$as_echo "yes" >&6; }
bf9f3bac 17986
17987cat >>confdefs.h <<\_ACEOF
6ae7fef5 17988#define HAVE_KMALLOC_NODE 1
bf9f3bac 17989_ACEOF
17990
17991
17992else
8934764e
BB
17993 $as_echo "$as_me: failed program was:" >&5
17994sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 { $as_echo "$as_me:$LINENO: result: no" >&5
17997$as_echo "no" >&6; }
17998
17999
18000
18001fi
18002
18003 rm -Rf build
18004
18005
18006
18007
18008 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
18009$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
18010 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
18011 $LINUX_OBJ/Module*.symvers 2>/dev/null
18012 rc=$?
18013 if test $rc -ne 0; then
18014 export=0
18015 for file in ; do
18016 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
18017 "$LINUX_OBJ/$file" 2>/dev/null
18018 rc=$?
18019 if test $rc -eq 0; then
18020 export=1
18021 break;
18022 fi
18023 done
18024 if test $export -eq 0; then
18025 { $as_echo "$as_me:$LINENO: result: no" >&5
18026$as_echo "no" >&6; }
18027
18028 else
18029 { $as_echo "$as_me:$LINENO: result: yes" >&5
18030$as_echo "yes" >&6; }
18031
18032cat >>confdefs.h <<\_ACEOF
18033#define HAVE_MONOTONIC_CLOCK 1
18034_ACEOF
18035
18036 fi
18037 else
18038 { $as_echo "$as_me:$LINENO: result: yes" >&5
18039$as_echo "yes" >&6; }
18040
18041cat >>confdefs.h <<\_ACEOF
18042#define HAVE_MONOTONIC_CLOCK 1
18043_ACEOF
18044
18045 fi
18046
18047
18048
18049 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
18050$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
18051
18052
dbe561d8 18053cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18054/* confdefs.h. */
18055_ACEOF
18056cat confdefs.h >>conftest.$ac_ext
18057cat >>conftest.$ac_ext <<_ACEOF
18058/* end confdefs.h. */
18059
18060
18061 #include <linux/fs.h>
18062 #include <linux/mutex.h>
18063
18064int
18065main (void)
18066{
18067
18068 struct inode i;
18069 mutex_init(&i.i_mutex);
18070
18071 ;
18072 return 0;
18073}
18074
18075_ACEOF
18076
18077
18078 rm -Rf build && mkdir -p build
18079 echo "obj-m := conftest.o" >build/Makefile
18080 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082 (eval $ac_try) 2>&5
18083 ac_status=$?
18084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091
18092 { $as_echo "$as_me:$LINENO: result: yes" >&5
18093$as_echo "yes" >&6; }
18094
18095cat >>confdefs.h <<\_ACEOF
18096#define HAVE_INODE_I_MUTEX 1
18097_ACEOF
18098
18099
18100else
18101 $as_echo "$as_me: failed program was:" >&5
18102sed 's/^/| /' conftest.$ac_ext >&5
18103
18104 { $as_echo "$as_me:$LINENO: result: no" >&5
18105$as_echo "no" >&6; }
18106
18107
18108
18109fi
18110
18111 rm -Rf build
18112
18113
18114
18115
18116 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
18117$as_echo_n "checking whether struct mutex has owner... " >&6; }
18118
18119
dbe561d8 18120cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18121/* confdefs.h. */
18122_ACEOF
18123cat confdefs.h >>conftest.$ac_ext
18124cat >>conftest.$ac_ext <<_ACEOF
18125/* end confdefs.h. */
18126
18127
18128 #include <linux/mutex.h>
18129
18130int
18131main (void)
18132{
18133
03318641 18134 struct mutex mtx __attribute__ ((unused));
8934764e
BB
18135 mtx.owner = NULL;
18136
18137 ;
18138 return 0;
18139}
18140
18141_ACEOF
18142
18143
18144 rm -Rf build && mkdir -p build
18145 echo "obj-m := conftest.o" >build/Makefile
18146 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18148 (eval $ac_try) 2>&5
18149 ac_status=$?
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; }; then
18157
18158 { $as_echo "$as_me:$LINENO: result: yes" >&5
18159$as_echo "yes" >&6; }
18160
18161cat >>confdefs.h <<\_ACEOF
18162#define HAVE_MUTEX_OWNER 1
18163_ACEOF
18164
18165
18166else
18167 $as_echo "$as_me: failed program was:" >&5
18168sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 { $as_echo "$as_me:$LINENO: result: no" >&5
18171$as_echo "no" >&6; }
18172
18173
18174
18175fi
18176
18177 rm -Rf build
18178
18179
18180
18181
86fd39f3
BB
18182 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
18183$as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18184 tmp_flags="$EXTRA_KCFLAGS"
18185 EXTRA_KCFLAGS="-Werror"
18186
18187
18188cat confdefs.h - <<_ACEOF >conftest.c
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194
18195
18196 #include <linux/mutex.h>
18197
18198int
18199main (void)
18200{
18201
18202 struct mutex mtx __attribute__ ((unused));
18203 mtx.owner = current;
18204
18205 ;
18206 return 0;
18207}
18208
18209_ACEOF
18210
18211
18212 rm -Rf build && mkdir -p build
18213 echo "obj-m := conftest.o" >build/Makefile
18214 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
18225
18226 { $as_echo "$as_me:$LINENO: result: yes" >&5
18227$as_echo "yes" >&6; }
18228
18229cat >>confdefs.h <<\_ACEOF
18230#define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18231_ACEOF
18232
18233
18234else
18235 $as_echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 { $as_echo "$as_me:$LINENO: result: no" >&5
18239$as_echo "no" >&6; }
18240
18241
18242
18243fi
18244
18245 rm -Rf build
18246
18247
18248 EXTRA_KCFLAGS="$tmp_flags"
18249
18250
8934764e
BB
18251 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18252$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18253
18254
dbe561d8 18255cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18256/* confdefs.h. */
18257_ACEOF
18258cat confdefs.h >>conftest.$ac_ext
18259cat >>conftest.$ac_ext <<_ACEOF
18260/* end confdefs.h. */
18261
18262
18263 #include <linux/mutex.h>
18264
18265int
18266main (void)
18267{
18268
18269 struct mutex mutex;
18270 mutex_init(&mutex);
18271 mutex_lock_nested(&mutex, 0);
18272
18273 ;
18274 return 0;
18275}
18276
18277_ACEOF
18278
18279
18280 rm -Rf build && mkdir -p build
18281 echo "obj-m := conftest.o" >build/Makefile
18282 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284 (eval $ac_try) 2>&5
18285 ac_status=$?
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293
18294 { $as_echo "$as_me:$LINENO: result: yes" >&5
18295$as_echo "yes" >&6; }
18296
18297cat >>confdefs.h <<\_ACEOF
18298#define HAVE_MUTEX_LOCK_NESTED 1
18299_ACEOF
18300
18301
18302else
18303 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18304sed 's/^/| /' conftest.$ac_ext >&5
18305
8934764e
BB
18306 { $as_echo "$as_me:$LINENO: result: no" >&5
18307$as_echo "no" >&6; }
18308
18309
18310
18311fi
18312
18313 rm -Rf build
18314
18315
18316
18317
8934764e
BB
18318 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18319$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
bf9f3bac 18320
18321
dbe561d8 18322cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18323/* confdefs.h. */
18324_ACEOF
18325cat confdefs.h >>conftest.$ac_ext
18326cat >>conftest.$ac_ext <<_ACEOF
18327/* end confdefs.h. */
18328
18329
8934764e 18330 #include <linux/smp.h>
bf9f3bac 18331
18332int
18333main (void)
18334{
18335
8934764e 18336 on_each_cpu(NULL, NULL, 0);
bf9f3bac 18337
18338 ;
18339 return 0;
18340}
18341
18342_ACEOF
18343
c5f70460
BB
18344
18345 rm -Rf build && mkdir -p build
18346 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18347 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
8934764e 18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
8934764e 18356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18357 (exit $ac_status); }; }; then
18358
8934764e
BB
18359 { $as_echo "$as_me:$LINENO: result: yes" >&5
18360$as_echo "yes" >&6; }
bf9f3bac 18361
18362cat >>confdefs.h <<\_ACEOF
8934764e 18363#define HAVE_3ARGS_ON_EACH_CPU 1
bf9f3bac 18364_ACEOF
18365
bf9f3bac 18366
18367else
8934764e 18368 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18369sed 's/^/| /' conftest.$ac_ext >&5
18370
8934764e
BB
18371 { $as_echo "$as_me:$LINENO: result: no" >&5
18372$as_echo "no" >&6; }
bf9f3bac 18373
18374
c5f70460 18375
bf9f3bac 18376fi
c5f70460
BB
18377
18378 rm -Rf build
18379
bf9f3bac 18380
18381
18382
8934764e
BB
18383 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18384$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18385 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18386 $LINUX_OBJ/Module*.symvers 2>/dev/null
18387 rc=$?
18388 if test $rc -ne 0; then
18389 export=0
18390 for file in ; do
18391 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18392 "$LINUX_OBJ/$file" 2>/dev/null
18393 rc=$?
18394 if test $rc -eq 0; then
18395 export=1
18396 break;
18397 fi
18398 done
18399 if test $export -eq 0; then
18400 { $as_echo "$as_me:$LINENO: result: no" >&5
18401$as_echo "no" >&6; }
4d54fdee 18402
8934764e
BB
18403 else
18404 { $as_echo "$as_me:$LINENO: result: yes" >&5
18405$as_echo "yes" >&6; }
4d54fdee 18406
8934764e
BB
18407cat >>confdefs.h <<\_ACEOF
18408#define HAVE_KALLSYMS_LOOKUP_NAME 1
4d54fdee 18409_ACEOF
4d54fdee 18410
8934764e
BB
18411 fi
18412 else
18413 { $as_echo "$as_me:$LINENO: result: yes" >&5
18414$as_echo "yes" >&6; }
4d54fdee 18415
8934764e
BB
18416cat >>confdefs.h <<\_ACEOF
18417#define HAVE_KALLSYMS_LOOKUP_NAME 1
18418_ACEOF
4d54fdee 18419
8934764e 18420 fi
4d54fdee 18421
4d54fdee 18422
4d54fdee 18423
8934764e
BB
18424 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18425$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18426 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18427 $LINUX_OBJ/Module*.symvers 2>/dev/null
18428 rc=$?
18429 if test $rc -ne 0; then
18430 export=0
18431 for file in ; do
18432 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18433 "$LINUX_OBJ/$file" 2>/dev/null
18434 rc=$?
18435 if test $rc -eq 0; then
18436 export=1
18437 break;
18438 fi
18439 done
18440 if test $export -eq 0; then
18441 { $as_echo "$as_me:$LINENO: result: no" >&5
18442$as_echo "no" >&6; }
4d54fdee 18443
8934764e
BB
18444 else
18445 { $as_echo "$as_me:$LINENO: result: yes" >&5
18446$as_echo "yes" >&6; }
4d54fdee 18447
8934764e
BB
18448cat >>confdefs.h <<\_ACEOF
18449#define HAVE_GET_VMALLOC_INFO 1
18450_ACEOF
4d54fdee 18451
8934764e
BB
18452 fi
18453 else
18454 { $as_echo "$as_me:$LINENO: result: yes" >&5
18455$as_echo "yes" >&6; }
4d54fdee
BB
18456
18457cat >>confdefs.h <<\_ACEOF
8934764e 18458#define HAVE_GET_VMALLOC_INFO 1
4d54fdee
BB
18459_ACEOF
18460
8934764e 18461 fi
4d54fdee 18462
4d54fdee
BB
18463
18464
8934764e
BB
18465 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18466$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18467 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18468 rc=$?
18469 if test $rc -eq 0; then
18470 { $as_echo "$as_me:$LINENO: result: yes" >&5
18471$as_echo "yes" >&6; }
4d54fdee 18472
8934764e
BB
18473cat >>confdefs.h <<\_ACEOF
18474#define HAVE_PGDAT_HELPERS 1
18475_ACEOF
4d54fdee 18476
8934764e
BB
18477 else
18478 { $as_echo "$as_me:$LINENO: result: no" >&5
18479$as_echo "no" >&6; }
18480 fi
4d54fdee
BB
18481
18482
8934764e
BB
18483 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18484$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18485 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18486 $LINUX_OBJ/Module*.symvers 2>/dev/null
18487 rc=$?
18488 if test $rc -ne 0; then
18489 export=0
18490 for file in ; do
18491 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18492 "$LINUX_OBJ/$file" 2>/dev/null
18493 rc=$?
18494 if test $rc -eq 0; then
18495 export=1
18496 break;
18497 fi
18498 done
18499 if test $export -eq 0; then
18500 { $as_echo "$as_me:$LINENO: result: no" >&5
18501$as_echo "no" >&6; }
4d54fdee 18502
8934764e
BB
18503 else
18504 { $as_echo "$as_me:$LINENO: result: yes" >&5
18505$as_echo "yes" >&6; }
4d54fdee 18506
8934764e
BB
18507cat >>confdefs.h <<\_ACEOF
18508#define HAVE_FIRST_ONLINE_PGDAT 1
18509_ACEOF
bf9f3bac 18510
8934764e
BB
18511 fi
18512 else
18513 { $as_echo "$as_me:$LINENO: result: yes" >&5
18514$as_echo "yes" >&6; }
bf9f3bac 18515
8934764e
BB
18516cat >>confdefs.h <<\_ACEOF
18517#define HAVE_FIRST_ONLINE_PGDAT 1
bf9f3bac 18518_ACEOF
bf9f3bac 18519
8934764e 18520 fi
bf9f3bac 18521
bf9f3bac 18522
bf9f3bac 18523
8934764e
BB
18524 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18525$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18526 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18527 $LINUX_OBJ/Module*.symvers 2>/dev/null
18528 rc=$?
18529 if test $rc -ne 0; then
18530 export=0
18531 for file in ; do
18532 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18533 "$LINUX_OBJ/$file" 2>/dev/null
18534 rc=$?
18535 if test $rc -eq 0; then
18536 export=1
18537 break;
18538 fi
18539 done
18540 if test $export -eq 0; then
18541 { $as_echo "$as_me:$LINENO: result: no" >&5
18542$as_echo "no" >&6; }
bf9f3bac 18543
8934764e
BB
18544 else
18545 { $as_echo "$as_me:$LINENO: result: yes" >&5
18546$as_echo "yes" >&6; }
bf9f3bac 18547
8934764e
BB
18548cat >>confdefs.h <<\_ACEOF
18549#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 18550_ACEOF
18551
8934764e
BB
18552 fi
18553 else
18554 { $as_echo "$as_me:$LINENO: result: yes" >&5
18555$as_echo "yes" >&6; }
bf9f3bac 18556
18557cat >>confdefs.h <<\_ACEOF
8934764e 18558#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 18559_ACEOF
18560
8934764e 18561 fi
bf9f3bac 18562
18563
18564
8934764e
BB
18565 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18566$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18567 grep -q -E '[[:space:]]next_zone[[:space:]]' \
6ae7fef5
BB
18568 $LINUX_OBJ/Module*.symvers 2>/dev/null
18569 rc=$?
18570 if test $rc -ne 0; then
18571 export=0
18572 for file in ; do
8934764e 18573 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
6ae7fef5
BB
18574 "$LINUX_OBJ/$file" 2>/dev/null
18575 rc=$?
18576 if test $rc -eq 0; then
18577 export=1
18578 break;
18579 fi
18580 done
18581 if test $export -eq 0; then
8934764e
BB
18582 { $as_echo "$as_me:$LINENO: result: no" >&5
18583$as_echo "no" >&6; }
6ae7fef5
BB
18584
18585 else
8934764e
BB
18586 { $as_echo "$as_me:$LINENO: result: yes" >&5
18587$as_echo "yes" >&6; }
6ae7fef5
BB
18588
18589cat >>confdefs.h <<\_ACEOF
8934764e 18590#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
18591_ACEOF
18592
18593 fi
18594 else
8934764e
BB
18595 { $as_echo "$as_me:$LINENO: result: yes" >&5
18596$as_echo "yes" >&6; }
6ae7fef5
BB
18597
18598cat >>confdefs.h <<\_ACEOF
8934764e 18599#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
18600_ACEOF
18601
18602 fi
18603
18604
18605
8934764e
BB
18606 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18607$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18608 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
6ae7fef5
BB
18609 $LINUX_OBJ/Module*.symvers 2>/dev/null
18610 rc=$?
18611 if test $rc -ne 0; then
18612 export=0
18613 for file in ; do
8934764e 18614 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
6ae7fef5
BB
18615 "$LINUX_OBJ/$file" 2>/dev/null
18616 rc=$?
18617 if test $rc -eq 0; then
18618 export=1
18619 break;
18620 fi
18621 done
18622 if test $export -eq 0; then
8934764e
BB
18623 { $as_echo "$as_me:$LINENO: result: no" >&5
18624$as_echo "no" >&6; }
18625
18626 else
18627 { $as_echo "$as_me:$LINENO: result: yes" >&5
18628$as_echo "yes" >&6; }
18629
18630cat >>confdefs.h <<\_ACEOF
18631#define HAVE_PGDAT_LIST 1
18632_ACEOF
18633
18634 fi
18635 else
18636 { $as_echo "$as_me:$LINENO: result: yes" >&5
18637$as_echo "yes" >&6; }
18638
18639cat >>confdefs.h <<\_ACEOF
18640#define HAVE_PGDAT_LIST 1
18641_ACEOF
18642
18643 fi
18644
18645
18646
18647 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18648$as_echo_n "checking whether global_page_state() is available... " >&6; }
18649
18650
dbe561d8 18651cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18652/* confdefs.h. */
18653_ACEOF
18654cat confdefs.h >>conftest.$ac_ext
18655cat >>conftest.$ac_ext <<_ACEOF
18656/* end confdefs.h. */
18657
18658
18659 #include <linux/mm.h>
18660
18661int
18662main (void)
18663{
18664
03318641 18665 unsigned long state __attribute__ ((unused));
8934764e
BB
18666 state = global_page_state(0);
18667
18668 ;
18669 return 0;
18670}
18671
18672_ACEOF
18673
18674
18675 rm -Rf build && mkdir -p build
18676 echo "obj-m := conftest.o" >build/Makefile
18677 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18679 (eval $ac_try) 2>&5
18680 ac_status=$?
18681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18684 (eval $ac_try) 2>&5
18685 ac_status=$?
18686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; }; then
6ae7fef5 18688
8934764e
BB
18689 { $as_echo "$as_me:$LINENO: result: yes" >&5
18690$as_echo "yes" >&6; }
6ae7fef5
BB
18691
18692cat >>confdefs.h <<\_ACEOF
8934764e 18693#define HAVE_GLOBAL_PAGE_STATE 1
6ae7fef5
BB
18694_ACEOF
18695
6ae7fef5 18696
8934764e
BB
18697else
18698 $as_echo "$as_me: failed program was:" >&5
18699sed 's/^/| /' conftest.$ac_ext >&5
18700
18701 { $as_echo "$as_me:$LINENO: result: no" >&5
18702$as_echo "no" >&6; }
18703
18704
18705
18706fi
18707
18708 rm -Rf build
6ae7fef5 18709
6ae7fef5
BB
18710
18711
18712
8934764e
BB
18713 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18714$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
bf9f3bac 18715
18716
dbe561d8 18717cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18718/* confdefs.h. */
18719_ACEOF
18720cat confdefs.h >>conftest.$ac_ext
18721cat >>conftest.$ac_ext <<_ACEOF
18722/* end confdefs.h. */
18723
18724
8934764e 18725 #include <linux/mm.h>
bf9f3bac 18726
18727int
18728main (void)
18729{
18730
03318641 18731 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18732 zsi = NR_FREE_PAGES;
bf9f3bac 18733
18734 ;
18735 return 0;
18736}
18737
18738_ACEOF
18739
c5f70460
BB
18740
18741 rm -Rf build && mkdir -p build
18742 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18743 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 18744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745 (eval $ac_try) 2>&5
18746 ac_status=$?
8934764e 18747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18748 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
8934764e 18752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18753 (exit $ac_status); }; }; then
18754
8934764e
BB
18755 { $as_echo "$as_me:$LINENO: result: yes" >&5
18756$as_echo "yes" >&6; }
bf9f3bac 18757
18758cat >>confdefs.h <<\_ACEOF
8934764e 18759#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
bf9f3bac 18760_ACEOF
18761
bf9f3bac 18762
18763else
8934764e 18764 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18765sed 's/^/| /' conftest.$ac_ext >&5
18766
8934764e
BB
18767 { $as_echo "$as_me:$LINENO: result: no" >&5
18768$as_echo "no" >&6; }
bf9f3bac 18769
18770
c5f70460 18771
bf9f3bac 18772fi
c5f70460
BB
18773
18774 rm -Rf build
18775
bf9f3bac 18776
18777
18778
8934764e
BB
18779 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18780$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
bf9f3bac 18781
bf9f3bac 18782
dbe561d8 18783cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18784/* confdefs.h. */
6ae7fef5 18785_ACEOF
8934764e
BB
18786cat confdefs.h >>conftest.$ac_ext
18787cat >>conftest.$ac_ext <<_ACEOF
18788/* end confdefs.h. */
bf9f3bac 18789
6ae7fef5 18790
8934764e 18791 #include <linux/mm.h>
bf9f3bac 18792
8934764e
BB
18793int
18794main (void)
18795{
bf9f3bac 18796
03318641 18797 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18798 zsi = NR_INACTIVE;
bf9f3bac 18799
8934764e
BB
18800 ;
18801 return 0;
18802}
bf9f3bac 18803
8934764e 18804_ACEOF
bf9f3bac 18805
bf9f3bac 18806
8934764e
BB
18807 rm -Rf build && mkdir -p build
18808 echo "obj-m := conftest.o" >build/Makefile
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'
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
bf9f3bac 18820
8934764e
BB
18821 { $as_echo "$as_me:$LINENO: result: yes" >&5
18822$as_echo "yes" >&6; }
6ae7fef5
BB
18823
18824cat >>confdefs.h <<\_ACEOF
8934764e 18825#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
6ae7fef5
BB
18826_ACEOF
18827
6ae7fef5 18828
8934764e
BB
18829else
18830 $as_echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
c5f70460 18832
8934764e
BB
18833 { $as_echo "$as_me:$LINENO: result: no" >&5
18834$as_echo "no" >&6; }
bf9f3bac 18835
bf9f3bac 18836
8934764e
BB
18837
18838fi
18839
18840 rm -Rf build
18841
18842
18843
18844 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18845$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18846
18847
dbe561d8 18848cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18849/* confdefs.h. */
bf9f3bac 18850_ACEOF
8934764e
BB
18851cat confdefs.h >>conftest.$ac_ext
18852cat >>conftest.$ac_ext <<_ACEOF
18853/* end confdefs.h. */
bf9f3bac 18854
18855
8934764e 18856 #include <linux/mm.h>
bf9f3bac 18857
8934764e
BB
18858int
18859main (void)
18860{
bf9f3bac 18861
03318641 18862 enum zone_stat_item zsi __attribute__ ((unused));
8934764e
BB
18863 zsi = NR_INACTIVE_ANON;
18864
18865 ;
18866 return 0;
18867}
c5f70460 18868
6ae7fef5 18869_ACEOF
c5f70460 18870
8934764e
BB
18871
18872 rm -Rf build && mkdir -p build
18873 echo "obj-m := conftest.o" >build/Makefile
18874 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18877 ac_status=$?
18878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
18885
18886 { $as_echo "$as_me:$LINENO: result: yes" >&5
18887$as_echo "yes" >&6; }
c5f70460 18888
6ae7fef5 18889cat >>confdefs.h <<\_ACEOF
8934764e 18890#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
6ae7fef5 18891_ACEOF
c5f70460 18892
bf9f3bac 18893
8934764e
BB
18894else
18895 $as_echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 18897
8934764e
BB
18898 { $as_echo "$as_me:$LINENO: result: no" >&5
18899$as_echo "no" >&6; }
bf9f3bac 18900
bf9f3bac 18901
bf9f3bac 18902
8934764e 18903fi
bf9f3bac 18904
8934764e 18905 rm -Rf build
bf9f3bac 18906
8934764e
BB
18907
18908
18909 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18910$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18911
18912
dbe561d8 18913cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18914/* confdefs.h. */
bf9f3bac 18915_ACEOF
8934764e
BB
18916cat confdefs.h >>conftest.$ac_ext
18917cat >>conftest.$ac_ext <<_ACEOF
18918/* end confdefs.h. */
bf9f3bac 18919
bf9f3bac 18920
8934764e 18921 #include <linux/mm.h>
bf9f3bac 18922
8934764e
BB
18923int
18924main (void)
18925{
bf9f3bac 18926
03318641 18927 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18928 zsi = NR_INACTIVE_FILE;
6ae7fef5 18929
8934764e
BB
18930 ;
18931 return 0;
18932}
6ae7fef5 18933
6ae7fef5
BB
18934_ACEOF
18935
8934764e
BB
18936
18937 rm -Rf build && mkdir -p build
18938 echo "obj-m := conftest.o" >build/Makefile
18939 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950
18951 { $as_echo "$as_me:$LINENO: result: yes" >&5
18952$as_echo "yes" >&6; }
6ae7fef5
BB
18953
18954cat >>confdefs.h <<\_ACEOF
8934764e 18955#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
6ae7fef5
BB
18956_ACEOF
18957
6ae7fef5 18958
8934764e
BB
18959else
18960 $as_echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
6ae7fef5 18962
8934764e
BB
18963 { $as_echo "$as_me:$LINENO: result: no" >&5
18964$as_echo "no" >&6; }
6ae7fef5 18965
6ae7fef5 18966
6ae7fef5 18967
8934764e 18968fi
6ae7fef5 18969
8934764e 18970 rm -Rf build
6ae7fef5 18971
6ae7fef5
BB
18972
18973
18974
8934764e
BB
18975 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
18976$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
bf9f3bac 18977
18978
dbe561d8 18979cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18980/* confdefs.h. */
18981_ACEOF
18982cat confdefs.h >>conftest.$ac_ext
18983cat >>conftest.$ac_ext <<_ACEOF
18984/* end confdefs.h. */
18985
18986
6ae7fef5 18987 #include <linux/mm.h>
bf9f3bac 18988
18989int
18990main (void)
18991{
18992
03318641 18993 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18994 zsi = NR_ACTIVE;
bf9f3bac 18995
18996 ;
18997 return 0;
18998}
18999
19000_ACEOF
19001
c5f70460
BB
19002
19003 rm -Rf build && mkdir -p build
19004 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19005 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
8934764e 19009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 19010 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19013 ac_status=$?
8934764e 19014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 19015 (exit $ac_status); }; }; then
19016
8934764e
BB
19017 { $as_echo "$as_me:$LINENO: result: yes" >&5
19018$as_echo "yes" >&6; }
bf9f3bac 19019
19020cat >>confdefs.h <<\_ACEOF
8934764e 19021#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
bf9f3bac 19022_ACEOF
19023
19024
19025else
8934764e 19026 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 19027sed 's/^/| /' conftest.$ac_ext >&5
19028
8934764e
BB
19029 { $as_echo "$as_me:$LINENO: result: no" >&5
19030$as_echo "no" >&6; }
bf9f3bac 19031
c5f70460
BB
19032
19033
bf9f3bac 19034fi
c5f70460
BB
19035
19036 rm -Rf build
19037
bf9f3bac 19038
19039
8934764e
BB
19040 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
19041$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
6c9433c1
BB
19042
19043
dbe561d8 19044cat confdefs.h - <<_ACEOF >conftest.c
6c9433c1
BB
19045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h. */
19050
19051
6ae7fef5 19052 #include <linux/mm.h>
6c9433c1
BB
19053
19054int
19055main (void)
19056{
19057
03318641 19058 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 19059 zsi = NR_ACTIVE_ANON;
6c9433c1
BB
19060
19061 ;
19062 return 0;
19063}
19064
19065_ACEOF
19066
19067
19068 rm -Rf build && mkdir -p build
19069 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19070 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
6c9433c1
BB
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
8934764e 19074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
19075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
8934764e 19079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
19080 (exit $ac_status); }; }; then
19081
8934764e
BB
19082 { $as_echo "$as_me:$LINENO: result: yes" >&5
19083$as_echo "yes" >&6; }
6c9433c1
BB
19084
19085cat >>confdefs.h <<\_ACEOF
8934764e 19086#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
6c9433c1
BB
19087_ACEOF
19088
19089
19090else
8934764e 19091 $as_echo "$as_me: failed program was:" >&5
6c9433c1
BB
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
8934764e
BB
19094 { $as_echo "$as_me:$LINENO: result: no" >&5
19095$as_echo "no" >&6; }
6c9433c1
BB
19096
19097
19098
19099fi
19100
19101 rm -Rf build
19102
19103
19104
8934764e
BB
19105 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
19106$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 19107
bf9f3bac 19108
dbe561d8 19109cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19110/* confdefs.h. */
bf9f3bac 19111_ACEOF
6ae7fef5
BB
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
bf9f3bac 19115
bf9f3bac 19116
6ae7fef5 19117 #include <linux/mm.h>
bf9f3bac 19118
6ae7fef5
BB
19119int
19120main (void)
19121{
96dded38 19122
03318641 19123 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 19124 zsi = NR_ACTIVE_FILE;
bf9f3bac 19125
6ae7fef5
BB
19126 ;
19127 return 0;
19128}
31a033ec 19129
6ae7fef5 19130_ACEOF
31a033ec 19131
c5f70460 19132
6ae7fef5
BB
19133 rm -Rf build && mkdir -p build
19134 echo "obj-m := conftest.o" >build/Makefile
19135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
8934764e 19139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
8934764e 19144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 19145 (exit $ac_status); }; }; then
c5f70460 19146
8934764e
BB
19147 { $as_echo "$as_me:$LINENO: result: yes" >&5
19148$as_echo "yes" >&6; }
c5f70460 19149
96dded38 19150cat >>confdefs.h <<\_ACEOF
8934764e 19151#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
96dded38 19152_ACEOF
c5f70460 19153
31a033ec 19154
6ae7fef5 19155else
8934764e 19156 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
8934764e
BB
19159 { $as_echo "$as_me:$LINENO: result: no" >&5
19160$as_echo "no" >&6; }
6ae7fef5
BB
19161
19162
19163
19164fi
19165
19166 rm -Rf build
31a033ec
BB
19167
19168
6ae7fef5 19169
8934764e
BB
19170
19171 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
19172$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
31a033ec
BB
19173
19174
dbe561d8 19175cat confdefs.h - <<_ACEOF >conftest.c
31a033ec
BB
19176/* confdefs.h. */
19177_ACEOF
19178cat confdefs.h >>conftest.$ac_ext
19179cat >>conftest.$ac_ext <<_ACEOF
19180/* end confdefs.h. */
19181
19182
31a033ec
BB
19183
19184int
19185main (void)
19186{
19187
8934764e
BB
19188 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19189 #error "global_page_state needs NR_FREE_PAGES"
19190 #endif
19191
19192 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19193 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19194 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19195 #error "global_page_state needs NR_ACTIVE*"
19196 #endif
19197
19198 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19199 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19200 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19201 #error "global_page_state needs NR_INACTIVE*"
19202 #endif
31a033ec
BB
19203
19204 ;
19205 return 0;
19206}
19207
19208_ACEOF
19209
c5f70460
BB
19210
19211 rm -Rf build && mkdir -p build
19212 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19213 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
31a033ec
BB
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
8934764e 19217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
19218 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
8934764e 19222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
19223 (exit $ac_status); }; }; then
19224
8934764e
BB
19225 { $as_echo "$as_me:$LINENO: result: no" >&5
19226$as_echo "no" >&6; }
19227
19228else
19229 $as_echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 { $as_echo "$as_me:$LINENO: result: yes" >&5
19233$as_echo "yes" >&6; }
31a033ec
BB
19234
19235cat >>confdefs.h <<\_ACEOF
8934764e 19236#define NEED_GET_ZONE_COUNTS 1
31a033ec
BB
19237_ACEOF
19238
19239
8934764e
BB
19240 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19241$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19242 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19243 $LINUX_OBJ/Module*.symvers 2>/dev/null
19244 rc=$?
19245 if test $rc -ne 0; then
19246 export=0
19247 for file in ; do
19248 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19249 "$LINUX_OBJ/$file" 2>/dev/null
19250 rc=$?
19251 if test $rc -eq 0; then
19252 export=1
19253 break;
19254 fi
19255 done
19256 if test $export -eq 0; then
19257 { $as_echo "$as_me:$LINENO: result: no" >&5
19258$as_echo "no" >&6; }
19259
19260 else
19261 { $as_echo "$as_me:$LINENO: result: yes" >&5
19262$as_echo "yes" >&6; }
19263
19264cat >>confdefs.h <<\_ACEOF
19265#define HAVE_GET_ZONE_COUNTS 1
19266_ACEOF
19267
19268 fi
19269 else
19270 { $as_echo "$as_me:$LINENO: result: yes" >&5
19271$as_echo "yes" >&6; }
19272
19273cat >>confdefs.h <<\_ACEOF
19274#define HAVE_GET_ZONE_COUNTS 1
19275_ACEOF
19276
19277 fi
bf9f3bac 19278
bf9f3bac 19279
c5f70460
BB
19280
19281
bf9f3bac 19282fi
c5f70460
BB
19283
19284 rm -Rf build
19285
bf9f3bac 19286
19287
8934764e 19288
7119bf70
BB
19289 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19290$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19291 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19292 $LINUX_OBJ/Module*.symvers 2>/dev/null
19293 rc=$?
19294 if test $rc -ne 0; then
19295 export=0
19296 for file in ; do
19297 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19298 "$LINUX_OBJ/$file" 2>/dev/null
19299 rc=$?
19300 if test $rc -eq 0; then
19301 export=1
19302 break;
19303 fi
19304 done
19305 if test $export -eq 0; then
19306 { $as_echo "$as_me:$LINENO: result: no" >&5
19307$as_echo "no" >&6; }
19308
19309 else
19310 { $as_echo "$as_me:$LINENO: result: yes" >&5
19311$as_echo "yes" >&6; }
19312
19313cat >>confdefs.h <<\_ACEOF
19314#define HAVE_USER_PATH_DIR 1
19315_ACEOF
19316
19317 fi
19318 else
19319 { $as_echo "$as_me:$LINENO: result: yes" >&5
19320$as_echo "yes" >&6; }
19321
19322cat >>confdefs.h <<\_ACEOF
19323#define HAVE_USER_PATH_DIR 1
19324_ACEOF
19325
19326 fi
19327
19328
19329
8934764e
BB
19330 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19331$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19332 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19333 $LINUX_OBJ/Module*.symvers 2>/dev/null
19334 rc=$?
19335 if test $rc -ne 0; then
19336 export=0
19337 for file in ; do
19338 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19339 "$LINUX_OBJ/$file" 2>/dev/null
19340 rc=$?
19341 if test $rc -eq 0; then
19342 export=1
19343 break;
19344 fi
19345 done
19346 if test $export -eq 0; then
19347 { $as_echo "$as_me:$LINENO: result: no" >&5
19348$as_echo "no" >&6; }
19349
19350 else
19351 { $as_echo "$as_me:$LINENO: result: yes" >&5
19352$as_echo "yes" >&6; }
19353
19354cat >>confdefs.h <<\_ACEOF
19355#define HAVE_SET_FS_PWD 1
19356_ACEOF
19357
19358 fi
19359 else
19360 { $as_echo "$as_me:$LINENO: result: yes" >&5
19361$as_echo "yes" >&6; }
19362
19363cat >>confdefs.h <<\_ACEOF
19364#define HAVE_SET_FS_PWD 1
19365_ACEOF
19366
19367 fi
19368
19369
19370 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19371$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
bf9f3bac 19372
d1ff2312 19373
dbe561d8 19374cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19375/* confdefs.h. */
d1ff2312 19376_ACEOF
6ae7fef5
BB
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
d1ff2312 19380
d1ff2312 19381
8934764e
BB
19382 #include <linux/sched.h>
19383 #include <linux/fs_struct.h>
d1ff2312 19384
6ae7fef5
BB
19385int
19386main (void)
19387{
d1ff2312 19388
8934764e 19389 set_fs_pwd(NULL, NULL);
d1ff2312 19390
6ae7fef5
BB
19391 ;
19392 return 0;
19393}
d1ff2312 19394
6ae7fef5 19395_ACEOF
d1ff2312 19396
d1ff2312 19397
6ae7fef5
BB
19398 rm -Rf build && mkdir -p build
19399 echo "obj-m := conftest.o" >build/Makefile
19400 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
8934764e 19404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19405 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
8934764e 19409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 19410 (exit $ac_status); }; }; then
d1ff2312 19411
8934764e
BB
19412 { $as_echo "$as_me:$LINENO: result: yes" >&5
19413$as_echo "yes" >&6; }
d1ff2312
BB
19414
19415cat >>confdefs.h <<\_ACEOF
8934764e 19416#define HAVE_2ARGS_SET_FS_PWD 1
d1ff2312
BB
19417_ACEOF
19418
5232d256 19419
6ae7fef5 19420else
8934764e 19421 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19422sed 's/^/| /' conftest.$ac_ext >&5
5232d256 19423
8934764e
BB
19424 { $as_echo "$as_me:$LINENO: result: no" >&5
19425$as_echo "no" >&6; }
5232d256
BB
19426
19427
36b313da 19428
6ae7fef5
BB
19429fi
19430
19431 rm -Rf build
19432
36b313da 19433
36b313da 19434
8934764e
BB
19435 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19436$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
19437
19438
dbe561d8 19439cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19440/* confdefs.h. */
36b313da 19441_ACEOF
6ae7fef5
BB
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
36b313da 19445
36b313da 19446
8934764e 19447 #include <linux/fs.h>
36b313da 19448
6ae7fef5
BB
19449int
19450main (void)
19451{
36b313da 19452
8934764e 19453 vfs_unlink(NULL, NULL);
36b313da 19454
6ae7fef5
BB
19455 ;
19456 return 0;
19457}
36b313da 19458
36b313da
BB
19459_ACEOF
19460
6ae7fef5
BB
19461
19462 rm -Rf build && mkdir -p build
19463 echo "obj-m := conftest.o" >build/Makefile
19464 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
8934764e 19468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19469 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19471 (eval $ac_try) 2>&5
19472 ac_status=$?
8934764e 19473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19474 (exit $ac_status); }; }; then
19475
8934764e
BB
19476 { $as_echo "$as_me:$LINENO: result: yes" >&5
19477$as_echo "yes" >&6; }
36b313da
BB
19478
19479cat >>confdefs.h <<\_ACEOF
8934764e 19480#define HAVE_2ARGS_VFS_UNLINK 1
36b313da
BB
19481_ACEOF
19482
36b313da 19483
6ae7fef5 19484else
8934764e 19485 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19486sed 's/^/| /' conftest.$ac_ext >&5
36b313da 19487
8934764e
BB
19488 { $as_echo "$as_me:$LINENO: result: no" >&5
19489$as_echo "no" >&6; }
36b313da 19490
36b313da 19491
36b313da 19492
6ae7fef5 19493fi
36b313da 19494
6ae7fef5
BB
19495 rm -Rf build
19496
19497
19498
8934764e
BB
19499 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19500$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
19501
19502
dbe561d8 19503cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19504/* confdefs.h. */
36b313da 19505_ACEOF
6ae7fef5
BB
19506cat confdefs.h >>conftest.$ac_ext
19507cat >>conftest.$ac_ext <<_ACEOF
19508/* end confdefs.h. */
36b313da 19509
36b313da 19510
8934764e 19511 #include <linux/fs.h>
36b313da 19512
6ae7fef5
BB
19513int
19514main (void)
19515{
36b313da 19516
8934764e 19517 vfs_rename(NULL, NULL, NULL, NULL);
5232d256 19518
6ae7fef5
BB
19519 ;
19520 return 0;
19521}
5232d256 19522
5232d256
BB
19523_ACEOF
19524
6ae7fef5
BB
19525
19526 rm -Rf build && mkdir -p build
19527 echo "obj-m := conftest.o" >build/Makefile
19528 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
8934764e 19532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19533 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
8934764e 19537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19538 (exit $ac_status); }; }; then
19539
8934764e
BB
19540 { $as_echo "$as_me:$LINENO: result: yes" >&5
19541$as_echo "yes" >&6; }
5232d256
BB
19542
19543cat >>confdefs.h <<\_ACEOF
8934764e 19544#define HAVE_4ARGS_VFS_RENAME 1
5232d256
BB
19545_ACEOF
19546
5232d256 19547
9b2048c2
BB
19548else
19549 $as_echo "$as_me: failed program was:" >&5
19550sed 's/^/| /' conftest.$ac_ext >&5
19551
19552 { $as_echo "$as_me:$LINENO: result: no" >&5
19553$as_echo "no" >&6; }
19554
19555
19556
19557fi
19558
19559 rm -Rf build
19560
19561
19562
19563
0d0b5237
BB
19564 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19565$as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19566 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19567 $LINUX_OBJ/Module*.symvers 2>/dev/null
19568 rc=$?
19569 if test $rc -ne 0; then
19570 export=0
19571 for file in fs/sync.c; do
19572 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19573 "$LINUX_OBJ/$file" 2>/dev/null
19574 rc=$?
19575 if test $rc -eq 0; then
19576 export=1
19577 break;
19578 fi
19579 done
19580 if test $export -eq 0; then
19581 { $as_echo "$as_me:$LINENO: result: no" >&5
19582$as_echo "no" >&6; }
19583
19584 else
19585 { $as_echo "$as_me:$LINENO: result: yes" >&5
19586$as_echo "yes" >&6; }
19587
19588cat >>confdefs.h <<\_ACEOF
19589#define HAVE_VFS_FSYNC 1
19590_ACEOF
19591
19592 fi
19593 else
19594 { $as_echo "$as_me:$LINENO: result: yes" >&5
19595$as_echo "yes" >&6; }
19596
19597cat >>confdefs.h <<\_ACEOF
19598#define HAVE_VFS_FSYNC 1
19599_ACEOF
19600
19601 fi
19602
19603
19604
19605 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19606$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19607
19608
19609cat confdefs.h - <<_ACEOF >conftest.c
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615
19616
19617 #include <linux/fs.h>
19618
19619int
19620main (void)
19621{
19622
19623 vfs_fsync(NULL, 0);
19624
19625 ;
19626 return 0;
19627}
19628
19629_ACEOF
19630
19631
19632 rm -Rf build && mkdir -p build
19633 echo "obj-m := conftest.o" >build/Makefile
19634 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645
19646 { $as_echo "$as_me:$LINENO: result: yes" >&5
19647$as_echo "yes" >&6; }
19648
19649cat >>confdefs.h <<\_ACEOF
19650#define HAVE_2ARGS_VFS_FSYNC 1
19651_ACEOF
19652
19653
19654else
19655 $as_echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 { $as_echo "$as_me:$LINENO: result: no" >&5
19659$as_echo "no" >&6; }
19660
19661
19662
19663fi
19664
19665 rm -Rf build
19666
19667
19668
19669
9b2048c2
BB
19670 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19671$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
97fd6a07
BB
19672 tmp_flags="$EXTRA_KCFLAGS"
19673 EXTRA_KCFLAGS="-Werror"
9b2048c2
BB
19674
19675
19676cat confdefs.h - <<_ACEOF >conftest.c
19677/* confdefs.h. */
19678_ACEOF
19679cat confdefs.h >>conftest.$ac_ext
19680cat >>conftest.$ac_ext <<_ACEOF
19681/* end confdefs.h. */
19682
19683
19684 #include <linux/sched.h>
19685 #include <linux/fs_struct.h>
19686
19687int
19688main (void)
19689{
19690
19691 struct fs_struct fs;
19692 spin_lock_init(&fs.lock);
19693
19694 ;
19695 return 0;
19696}
19697
19698_ACEOF
19699
19700
19701 rm -Rf build && mkdir -p build
19702 echo "obj-m := conftest.o" >build/Makefile
19703 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19711 ac_status=$?
19712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; }; then
19714
19715 { $as_echo "$as_me:$LINENO: result: yes" >&5
19716$as_echo "yes" >&6; }
19717
19718cat >>confdefs.h <<\_ACEOF
19719#define HAVE_FS_STRUCT_SPINLOCK 1
19720_ACEOF
19721
19722
6ae7fef5 19723else
8934764e 19724 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19725sed 's/^/| /' conftest.$ac_ext >&5
5232d256 19726
8934764e
BB
19727 { $as_echo "$as_me:$LINENO: result: no" >&5
19728$as_echo "no" >&6; }
4ab13d3b 19729
4ab13d3b 19730
4ab13d3b 19731
6ae7fef5 19732fi
4ab13d3b 19733
6ae7fef5 19734 rm -Rf build
96dded38
BB
19735
19736
97fd6a07 19737 EXTRA_KCFLAGS="$tmp_flags"
96dded38 19738
8934764e
BB
19739
19740 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19741$as_echo_n "checking whether struct cred exists... " >&6; }
96dded38
BB
19742
19743
dbe561d8 19744cat confdefs.h - <<_ACEOF >conftest.c
96dded38
BB
19745/* confdefs.h. */
19746_ACEOF
19747cat confdefs.h >>conftest.$ac_ext
19748cat >>conftest.$ac_ext <<_ACEOF
19749/* end confdefs.h. */
19750
19751
8934764e 19752 #include <linux/cred.h>
96dded38
BB
19753
19754int
19755main (void)
19756{
19757
03318641 19758 struct cred *cr __attribute__ ((unused));
8934764e 19759 cr = NULL;
96dded38
BB
19760
19761 ;
19762 return 0;
19763}
19764
19765_ACEOF
19766
19767
19768 rm -Rf build && mkdir -p build
19769 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19770 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
96dded38
BB
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
8934764e 19774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
19775 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19777 (eval $ac_try) 2>&5
19778 ac_status=$?
8934764e 19779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
19780 (exit $ac_status); }; }; then
19781
8934764e
BB
19782 { $as_echo "$as_me:$LINENO: result: yes" >&5
19783$as_echo "yes" >&6; }
96dded38
BB
19784
19785cat >>confdefs.h <<\_ACEOF
8934764e 19786#define HAVE_CRED_STRUCT 1
96dded38
BB
19787_ACEOF
19788
19789
19790else
8934764e 19791 $as_echo "$as_me: failed program was:" >&5
96dded38
BB
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
8934764e
BB
19794 { $as_echo "$as_me:$LINENO: result: no" >&5
19795$as_echo "no" >&6; }
96dded38
BB
19796
19797
19798
19799fi
19800
19801 rm -Rf build
19802
4ab13d3b
BB
19803
19804
19805
8934764e
BB
19806 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19807$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19808 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19809 $LINUX_OBJ/Module*.symvers 2>/dev/null
19810 rc=$?
19811 if test $rc -ne 0; then
19812 export=0
19813 for file in ; do
19814 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19815 "$LINUX_OBJ/$file" 2>/dev/null
19816 rc=$?
19817 if test $rc -eq 0; then
19818 export=1
19819 break;
19820 fi
19821 done
19822 if test $export -eq 0; then
19823 { $as_echo "$as_me:$LINENO: result: no" >&5
19824$as_echo "no" >&6; }
19825
19826 else
19827 { $as_echo "$as_me:$LINENO: result: yes" >&5
19828$as_echo "yes" >&6; }
19829
19830cat >>confdefs.h <<\_ACEOF
19831#define HAVE_GROUPS_SEARCH 1
19832_ACEOF
19833
19834 fi
19835 else
19836 { $as_echo "$as_me:$LINENO: result: yes" >&5
19837$as_echo "yes" >&6; }
19838
19839cat >>confdefs.h <<\_ACEOF
19840#define HAVE_GROUPS_SEARCH 1
19841_ACEOF
19842
19843 fi
19844
19845
19846
19847 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19848$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19849 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19850 $LINUX_OBJ/Module*.symvers 2>/dev/null
19851 rc=$?
19852 if test $rc -ne 0; then
19853 export=0
19854 for file in ; do
19855 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19856 "$LINUX_OBJ/$file" 2>/dev/null
19857 rc=$?
19858 if test $rc -eq 0; then
19859 export=1
19860 break;
19861 fi
19862 done
19863 if test $export -eq 0; then
19864 { $as_echo "$as_me:$LINENO: result: no" >&5
19865$as_echo "no" >&6; }
19866
19867 else
19868 { $as_echo "$as_me:$LINENO: result: yes" >&5
19869$as_echo "yes" >&6; }
19870
19871cat >>confdefs.h <<\_ACEOF
19872#define HAVE_PUT_TASK_STRUCT 1
19873_ACEOF
19874
19875 fi
19876 else
19877 { $as_echo "$as_me:$LINENO: result: yes" >&5
19878$as_echo "yes" >&6; }
19879
19880cat >>confdefs.h <<\_ACEOF
19881#define HAVE_PUT_TASK_STRUCT 1
19882_ACEOF
19883
19884 fi
19885
19886
19887
19888 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19889$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
e11d6c5f
BB
19890
19891
dbe561d8 19892cat confdefs.h - <<_ACEOF >conftest.c
e11d6c5f
BB
19893/* confdefs.h. */
19894_ACEOF
19895cat confdefs.h >>conftest.$ac_ext
19896cat >>conftest.$ac_ext <<_ACEOF
19897/* end confdefs.h. */
19898
19899
8934764e 19900 #include <linux/sysctl.h>
e11d6c5f 19901
8934764e
BB
19902int
19903main (void)
19904{
19905
19906 proc_dostring(NULL, 0, NULL, NULL, NULL);
e11d6c5f
BB
19907
19908 ;
19909 return 0;
19910}
19911
19912_ACEOF
19913
19914
19915 rm -Rf build && mkdir -p build
19916 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19917 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
e11d6c5f
BB
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
8934764e 19921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
19922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
8934764e 19926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
19927 (exit $ac_status); }; }; then
19928
8934764e
BB
19929 { $as_echo "$as_me:$LINENO: result: yes" >&5
19930$as_echo "yes" >&6; }
19931
19932cat >>confdefs.h <<\_ACEOF
19933#define HAVE_5ARGS_PROC_HANDLER 1
19934_ACEOF
19935
6ae7fef5
BB
19936
19937else
8934764e 19938 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
8934764e
BB
19941 { $as_echo "$as_me:$LINENO: result: no" >&5
19942$as_echo "no" >&6; }
e11d6c5f 19943
e11d6c5f
BB
19944
19945
8934764e 19946fi
e11d6c5f 19947
8934764e
BB
19948 rm -Rf build
19949
19950
19951
19952
b868e22f
BB
19953 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
19954$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
19955 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
19956 $LINUX_OBJ/Module*.symvers 2>/dev/null
19957 rc=$?
19958 if test $rc -ne 0; then
19959 export=0
19960 for file in ; do
19961 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
19962 "$LINUX_OBJ/$file" 2>/dev/null
19963 rc=$?
19964 if test $rc -eq 0; then
19965 export=1
19966 break;
19967 fi
19968 done
19969 if test $export -eq 0; then
19970 { $as_echo "$as_me:$LINENO: result: no" >&5
19971$as_echo "no" >&6; }
19972
19973 else
19974 { $as_echo "$as_me:$LINENO: result: yes" >&5
19975$as_echo "yes" >&6; }
19976
19977cat >>confdefs.h <<\_ACEOF
19978#define HAVE_KVASPRINTF 1
19979_ACEOF
19980
19981 fi
19982 else
19983 { $as_echo "$as_me:$LINENO: result: yes" >&5
19984$as_echo "yes" >&6; }
19985
19986cat >>confdefs.h <<\_ACEOF
19987#define HAVE_KVASPRINTF 1
19988_ACEOF
19989
19990 fi
19991
19992
19993
46aa7b39
NB
19994 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
19995$as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
19996 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
19997 $LINUX_OBJ/Module*.symvers 2>/dev/null
19998 rc=$?
19999 if test $rc -ne 0; then
20000 export=0
20001 for file in lib/rwsem-spinlock.c; do
20002 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
20003 "$LINUX_OBJ/$file" 2>/dev/null
20004 rc=$?
20005 if test $rc -eq 0; then
20006 export=1
20007 break;
20008 fi
20009 done
20010 if test $export -eq 0; then
20011 { $as_echo "$as_me:$LINENO: result: no" >&5
20012$as_echo "no" >&6; }
20013
20014 else
20015 { $as_echo "$as_me:$LINENO: result: yes" >&5
20016$as_echo "yes" >&6; }
20017
20018cat >>confdefs.h <<\_ACEOF
20019#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
20020_ACEOF
20021
20022 fi
20023 else
20024 { $as_echo "$as_me:$LINENO: result: yes" >&5
20025$as_echo "yes" >&6; }
20026
20027cat >>confdefs.h <<\_ACEOF
20028#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
20029_ACEOF
20030
20031 fi
20032
20033
20034
914b0631
BB
20035 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
20036$as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
20037 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
20038 $LINUX_OBJ/Module*.symvers 2>/dev/null
20039 rc=$?
20040 if test $rc -ne 0; then
20041 export=0
20042 for file in ; do
20043 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
20044 "$LINUX_OBJ/$file" 2>/dev/null
20045 rc=$?
20046 if test $rc -eq 0; then
20047 export=1
20048 break;
20049 fi
20050 done
20051 if test $export -eq 0; then
20052 { $as_echo "$as_me:$LINENO: result: no" >&5
20053$as_echo "no" >&6; }
20054
20055 else
20056 { $as_echo "$as_me:$LINENO: result: yes" >&5
20057$as_echo "yes" >&6; }
20058
20059cat >>confdefs.h <<\_ACEOF
20060#define HAVE_INVALIDATE_INODES 1
20061_ACEOF
20062
20063 fi
20064 else
20065 { $as_echo "$as_me:$LINENO: result: yes" >&5
20066$as_echo "yes" >&6; }
20067
20068cat >>confdefs.h <<\_ACEOF
20069#define HAVE_INVALIDATE_INODES 1
20070_ACEOF
20071
20072 fi
20073
5f6c14b1
BB
20074 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
20075$as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
20076 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
20077 $LINUX_OBJ/Module*.symvers 2>/dev/null
20078 rc=$?
20079 if test $rc -ne 0; then
20080 export=0
20081 for file in ; do
20082 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
20083 "$LINUX_OBJ/$file" 2>/dev/null
20084 rc=$?
20085 if test $rc -eq 0; then
20086 export=1
20087 break;
20088 fi
20089 done
20090 if test $export -eq 0; then
20091 { $as_echo "$as_me:$LINENO: result: no" >&5
20092$as_echo "no" >&6; }
20093
20094 else
20095 { $as_echo "$as_me:$LINENO: result: yes" >&5
20096$as_echo "yes" >&6; }
20097
20098cat >>confdefs.h <<\_ACEOF
20099#define HAVE_INVALIDATE_INODES_CHECK 1
20100_ACEOF
20101
20102 fi
20103 else
20104 { $as_echo "$as_me:$LINENO: result: yes" >&5
20105$as_echo "yes" >&6; }
20106
20107cat >>confdefs.h <<\_ACEOF
20108#define HAVE_INVALIDATE_INODES_CHECK 1
20109_ACEOF
20110
20111 fi
20112
914b0631 20113
9b0f9079
BB
20114 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
20115$as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
20116
20117
20118cat confdefs.h - <<_ACEOF >conftest.c
20119/* confdefs.h. */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h. */
20124
20125
20126 #include <linux/fs.h>
20127
20128int
20129main (void)
20130{
20131
20132 return __invalidate_device(NULL, 0);
20133
20134 ;
20135 return 0;
20136}
20137
20138_ACEOF
20139
20140
20141 rm -Rf build && mkdir -p build
20142 echo "obj-m := conftest.o" >build/Makefile
20143 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145 (eval $ac_try) 2>&5
20146 ac_status=$?
20147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20151 ac_status=$?
20152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); }; }; then
20154
20155 { $as_echo "$as_me:$LINENO: result: yes" >&5
20156$as_echo "yes" >&6; }
20157
20158cat >>confdefs.h <<\_ACEOF
20159#define HAVE_2ARGS_INVALIDATE_INODES 1
20160_ACEOF
20161
20162
20163else
20164 $as_echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 { $as_echo "$as_me:$LINENO: result: no" >&5
20168$as_echo "no" >&6; }
20169
20170
20171
20172fi
20173
20174 rm -Rf build
20175
20176
20177
914b0631 20178
e76f4bf1
BB
20179 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
20180$as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
20181 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
20182 $LINUX_OBJ/Module*.symvers 2>/dev/null
20183 rc=$?
20184 if test $rc -ne 0; then
20185 export=0
20186 for file in fs/dcache.c; do
20187 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
20188 "$LINUX_OBJ/$file" 2>/dev/null
20189 rc=$?
20190 if test $rc -eq 0; then
20191 export=1
20192 break;
20193 fi
20194 done
20195 if test $export -eq 0; then
20196 { $as_echo "$as_me:$LINENO: result: no" >&5
20197$as_echo "no" >&6; }
20198
20199 else
20200 { $as_echo "$as_me:$LINENO: result: yes" >&5
20201$as_echo "yes" >&6; }
20202
20203cat >>confdefs.h <<\_ACEOF
20204#define HAVE_SHRINK_DCACHE_MEMORY 1
20205_ACEOF
20206
20207 fi
20208 else
20209 { $as_echo "$as_me:$LINENO: result: yes" >&5
20210$as_echo "yes" >&6; }
20211
20212cat >>confdefs.h <<\_ACEOF
20213#define HAVE_SHRINK_DCACHE_MEMORY 1
20214_ACEOF
20215
20216 fi
20217
20218
20219
20220 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
20221$as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
20222 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
20223 $LINUX_OBJ/Module*.symvers 2>/dev/null
20224 rc=$?
20225 if test $rc -ne 0; then
20226 export=0
20227 for file in fs/inode.c; do
20228 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
20229 "$LINUX_OBJ/$file" 2>/dev/null
20230 rc=$?
20231 if test $rc -eq 0; then
20232 export=1
20233 break;
20234 fi
20235 done
20236 if test $export -eq 0; then
20237 { $as_echo "$as_me:$LINENO: result: no" >&5
20238$as_echo "no" >&6; }
20239
20240 else
20241 { $as_echo "$as_me:$LINENO: result: yes" >&5
20242$as_echo "yes" >&6; }
20243
20244cat >>confdefs.h <<\_ACEOF
20245#define HAVE_SHRINK_ICACHE_MEMORY 1
20246_ACEOF
20247
20248 fi
20249 else
20250 { $as_echo "$as_me:$LINENO: result: yes" >&5
20251$as_echo "yes" >&6; }
20252
20253cat >>confdefs.h <<\_ACEOF
20254#define HAVE_SHRINK_ICACHE_MEMORY 1
20255_ACEOF
20256
20257 fi
20258
20259
20260
12ff95ff
BB
20261
20262 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20263$as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20264 header=0
20265 for file in include/linux/namei.h; do
20266 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20267 rc=$?
20268 if test $rc -eq 0; then
20269 header=1
20270 break;
20271 fi
20272 done
20273 if test $header -eq 0; then
20274 { $as_echo "$as_me:$LINENO: result: no" >&5
20275$as_echo "no" >&6; }
20276
20277 else
20278 { $as_echo "$as_me:$LINENO: result: yes" >&5
20279$as_echo "yes" >&6; }
20280
20281cat >>confdefs.h <<\_ACEOF
20282#define HAVE_KERN_PATH_PARENT_HEADER 1
20283_ACEOF
20284
20285 fi
20286
20287
20288
b1cbc461
BB
20289 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20290$as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20291 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20292 $LINUX_OBJ/Module*.symvers 2>/dev/null
20293 rc=$?
20294 if test $rc -ne 0; then
20295 export=0
20296 for file in fs/namei.c; do
20297 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20298 "$LINUX_OBJ/$file" 2>/dev/null
20299 rc=$?
20300 if test $rc -eq 0; then
20301 export=1
20302 break;
20303 fi
20304 done
20305 if test $export -eq 0; then
20306 { $as_echo "$as_me:$LINENO: result: no" >&5
20307$as_echo "no" >&6; }
20308
20309 else
20310 { $as_echo "$as_me:$LINENO: result: yes" >&5
20311$as_echo "yes" >&6; }
20312
20313cat >>confdefs.h <<\_ACEOF
12ff95ff 20314#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
20315_ACEOF
20316
20317 fi
20318 else
20319 { $as_echo "$as_me:$LINENO: result: yes" >&5
20320$as_echo "yes" >&6; }
20321
20322cat >>confdefs.h <<\_ACEOF
12ff95ff 20323#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
20324_ACEOF
20325
20326 fi
20327
20328
3dfc591a
BB
20329 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20330$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20331
20332
20333cat confdefs.h - <<_ACEOF >conftest.c
20334/* confdefs.h. */
20335_ACEOF
20336cat confdefs.h >>conftest.$ac_ext
20337cat >>conftest.$ac_ext <<_ACEOF
20338/* end confdefs.h. */
20339
20340
20341 #include <linux/zlib.h>
20342
20343int
20344main (void)
20345{
20346
20347 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20348
20349 ;
20350 return 0;
20351}
20352
20353_ACEOF
20354
20355
20356 rm -Rf build && mkdir -p build
20357 echo "obj-m := conftest.o" >build/Makefile
20358 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20361 ac_status=$?
20362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365 (eval $ac_try) 2>&5
20366 ac_status=$?
20367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); }; }; then
20369
20370 { $as_echo "$as_me:$LINENO: result: yes" >&5
20371$as_echo "yes" >&6; }
20372
20373cat >>confdefs.h <<\_ACEOF
20374#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20375_ACEOF
20376
20377
20378else
20379 $as_echo "$as_me: failed program was:" >&5
20380sed 's/^/| /' conftest.$ac_ext >&5
20381
20382 { $as_echo "$as_me:$LINENO: result: no" >&5
20383$as_echo "no" >&6; }
a55bcaad
BB
20384
20385
20386
20387fi
20388
20389 rm -Rf build
20390
20391
20392
20393
20394 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20395$as_echo_n "checking whether struct shrink_control exists... " >&6; }
20396
20397
20398cat confdefs.h - <<_ACEOF >conftest.c
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404
20405
20406 #include <linux/mm.h>
20407
20408int
20409main (void)
20410{
20411
20412 struct shrink_control sc __attribute__ ((unused));
20413
20414 sc.nr_to_scan = 0;
20415 sc.gfp_mask = GFP_KERNEL;
20416
20417 ;
20418 return 0;
20419}
20420
20421_ACEOF
20422
20423
20424 rm -Rf build && mkdir -p build
20425 echo "obj-m := conftest.o" >build/Makefile
20426 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437
20438 { $as_echo "$as_me:$LINENO: result: yes" >&5
20439$as_echo "yes" >&6; }
20440
20441cat >>confdefs.h <<\_ACEOF
20442#define HAVE_SHRINK_CONTROL_STRUCT 1
20443_ACEOF
20444
20445
20446else
20447 $as_echo "$as_me: failed program was:" >&5
20448sed 's/^/| /' conftest.$ac_ext >&5
20449
20450 { $as_echo "$as_me:$LINENO: result: no" >&5
20451$as_echo "no" >&6; }
3dfc591a
BB
20452
20453
20454
20455fi
20456
20457 rm -Rf build
20458
20459
20460
b1cbc461 20461
588d9004
DH
20462 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
20463$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
20464 tmp_flags="$EXTRA_KCFLAGS"
20465 EXTRA_KCFLAGS="-Werror"
20466
20467
20468cat confdefs.h - <<_ACEOF >conftest.c
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
20474
20475
20476 #include <linux/rwsem.h>
20477
20478int
20479main (void)
20480{
20481
20482 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
20483 raw_spinlock_t dummy_lock __attribute__ ((unused));
20484 dummy_semaphore.wait_lock = dummy_lock;
20485
20486 ;
20487 return 0;
20488}
20489
20490_ACEOF
20491
20492
20493 rm -Rf build && mkdir -p build
20494 echo "obj-m := conftest.o" >build/Makefile
20495 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506
20507 { $as_echo "$as_me:$LINENO: result: yes" >&5
20508$as_echo "yes" >&6; }
20509
20510cat >>confdefs.h <<\_ACEOF
20511#define RWSEM_SPINLOCK_IS_RAW 1
20512_ACEOF
20513
20514
20515else
20516 $as_echo "$as_me: failed program was:" >&5
20517sed 's/^/| /' conftest.$ac_ext >&5
20518
20519 { $as_echo "$as_me:$LINENO: result: no" >&5
20520$as_echo "no" >&6; }
20521
20522
20523
20524fi
20525
20526 rm -Rf build
20527
20528
20529 EXTRA_KCFLAGS="$tmp_flags"
20530
20531
ad35b6a6 20532 ;;
8934764e
BB
20533 srpm) ;;
20534 *)
20535 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20536$as_echo "Error!" >&6; }
20537 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20538 user kernel|user|all|srpm" >&5
20539$as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20540 user kernel|user|all|srpm" >&2;}
20541 { (exit 1); exit 1; }; } ;;
20542 esac
20543
20544 if test "$SPL_CONFIG" = user ||
20545 test "$SPL_CONFIG" = all; then
20546 CONFIG_USER_TRUE=
20547 CONFIG_USER_FALSE='#'
20548else
20549 CONFIG_USER_TRUE='#'
20550 CONFIG_USER_FALSE=
20551fi
20552
20553 if test "$SPL_CONFIG" = kernel ||
20554 test "$SPL_CONFIG" = all; then
20555 CONFIG_KERNEL_TRUE=
20556 CONFIG_KERNEL_FALSE='#'
20557else
20558 CONFIG_KERNEL_TRUE='#'
20559 CONFIG_KERNEL_FALSE=
20560fi
20561
20562
20563
c2dceb5c 20564ac_config_files="$ac_config_files Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile scripts/Makefile spl.spec spl-modules.spec PKGBUILD-spl PKGBUILD-spl-modules"
8934764e
BB
20565
20566
20567cat >confcache <<\_ACEOF
20568# This file is a shell script that caches the results of configure
20569# tests run on this system so they can be shared between configure
20570# scripts and configure runs, see configure's option --config-cache.
20571# It is not useful on other systems. If it contains results you don't
20572# want to keep, you may remove or edit it.
20573#
20574# config.status only pays attention to the cache file if you give it
20575# the --recheck option to rerun configure.
20576#
20577# `ac_cv_env_foo' variables (set or unset) will be overridden when
20578# loading this file, other *unset* `ac_cv_foo' will be assigned the
20579# following values.
6ae7fef5 20580
6ae7fef5
BB
20581_ACEOF
20582
8934764e
BB
20583# The following way of writing the cache mishandles newlines in values,
20584# but we know of no workaround that is simple, portable, and efficient.
20585# So, we kill variables containing newlines.
20586# Ultrix sh set writes to stderr and can't be redirected directly,
20587# and sets the high bit in the cache file unless we assign to the vars.
20588(
20589 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20590 eval ac_val=\$$ac_var
20591 case $ac_val in #(
20592 *${as_nl}*)
20593 case $ac_var in #(
20594 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20595$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20596 esac
20597 case $ac_var in #(
20598 _ | IFS | as_nl) ;; #(
20599 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20600 *) $as_unset $ac_var ;;
20601 esac ;;
20602 esac
20603 done
6ae7fef5 20604
8934764e
BB
20605 (set) 2>&1 |
20606 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20607 *${as_nl}ac_space=\ *)
20608 # `set' does not quote correctly, so add quotes (double-quote
20609 # substitution turns \\\\ into \\, and sed turns \\ into \).
20610 sed -n \
20611 "s/'/'\\\\''/g;
20612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20613 ;; #(
20614 *)
20615 # `set' quotes correctly as required by POSIX, so do not add quotes.
20616 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20617 ;;
20618 esac |
20619 sort
20620) |
20621 sed '
20622 /^ac_cv_env_/b end
20623 t clear
20624 :clear
20625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20626 t end
20627 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20628 :end' >>confcache
20629if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20630 if test -w "$cache_file"; then
20631 test "x$cache_file" != "x/dev/null" &&
20632 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20633$as_echo "$as_me: updating cache $cache_file" >&6;}
20634 cat confcache >$cache_file
20635 else
20636 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20637$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20638 fi
20639fi
20640rm -f confcache
20641
20642test "x$prefix" = xNONE && prefix=$ac_default_prefix
20643# Let make expand exec_prefix.
20644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20645
20646DEFS=-DHAVE_CONFIG_H
20647
20648ac_libobjs=
20649ac_ltlibobjs=
20650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20651 # 1. Remove the extension, and $U if already installed.
20652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20655 # will be set to the directory where LIBOBJS objects are built.
20656 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20657 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20658done
20659LIBOBJS=$ac_libobjs
20660
20661LTLIBOBJS=$ac_ltlibobjs
20662
20663
20664if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20665 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20666Usually this means the macro was only invoked conditionally." >&5
20667$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20668Usually this means the macro was only invoked conditionally." >&2;}
20669 { (exit 1); exit 1; }; }
20670fi
20671 if test -n "$EXEEXT"; then
20672 am__EXEEXT_TRUE=
20673 am__EXEEXT_FALSE='#'
20674else
20675 am__EXEEXT_TRUE='#'
20676 am__EXEEXT_FALSE=
20677fi
20678
20679if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20680 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20681Usually this means the macro was only invoked conditionally." >&5
20682$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20683Usually this means the macro was only invoked conditionally." >&2;}
20684 { (exit 1); exit 1; }; }
20685fi
20686if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20687 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20688Usually this means the macro was only invoked conditionally." >&5
20689$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20690Usually this means the macro was only invoked conditionally." >&2;}
20691 { (exit 1); exit 1; }; }
20692fi
20693if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20694 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20695Usually this means the macro was only invoked conditionally." >&5
20696$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20697Usually this means the macro was only invoked conditionally." >&2;}
20698 { (exit 1); exit 1; }; }
20699fi
20700if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20701 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20702Usually this means the macro was only invoked conditionally." >&5
20703$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20704Usually this means the macro was only invoked conditionally." >&2;}
20705 { (exit 1); exit 1; }; }
20706fi
20707
20708: ${CONFIG_STATUS=./config.status}
20709ac_write_fail=0
20710ac_clean_files_save=$ac_clean_files
20711ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20712{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20713$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20714cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20715#! $SHELL
20716# Generated by $as_me.
20717# Run this file to recreate the current configuration.
20718# Compiler output produced by configure, useful for debugging
20719# configure, is in config.log if it exists.
20720
20721debug=false
20722ac_cs_recheck=false
20723ac_cs_silent=false
20724SHELL=\${CONFIG_SHELL-$SHELL}
6ae7fef5
BB
20725_ACEOF
20726
8934764e
BB
20727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20728## --------------------- ##
20729## M4sh Initialization. ##
20730## --------------------- ##
20731
20732# Be more Bourne compatible
20733DUALCASE=1; export DUALCASE # for MKS sh
20734if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20735 emulate sh
20736 NULLCMD=:
20737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20738 # is contrary to our usage. Disable this feature.
20739 alias -g '${1+"$@"}'='"$@"'
20740 setopt NO_GLOB_SUBST
20741else
20742 case `(set -o) 2>/dev/null` in
20743 *posix*) set -o posix ;;
20744esac
20745
20746fi
20747
6ae7fef5
BB
20748
20749
e11d6c5f 20750
8934764e
BB
20751# PATH needs CR
20752# Avoid depending upon Character Ranges.
20753as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20754as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20755as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20756as_cr_digits='0123456789'
20757as_cr_alnum=$as_cr_Letters$as_cr_digits
e11d6c5f 20758
8934764e
BB
20759as_nl='
20760'
20761export as_nl
20762# Printing a long string crashes Solaris 7 /usr/bin/printf.
20763as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20764as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20765as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20766if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20767 as_echo='printf %s\n'
20768 as_echo_n='printf %s'
20769else
20770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20772 as_echo_n='/usr/ucb/echo -n'
20773 else
20774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20775 as_echo_n_body='eval
20776 arg=$1;
20777 case $arg in
20778 *"$as_nl"*)
20779 expr "X$arg" : "X\\(.*\\)$as_nl";
20780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20781 esac;
20782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20783 '
20784 export as_echo_n_body
20785 as_echo_n='sh -c $as_echo_n_body as_echo'
20786 fi
20787 export as_echo_body
20788 as_echo='sh -c $as_echo_body as_echo'
51a727e9
BB
20789fi
20790
8934764e
BB
20791# The user is always right.
20792if test "${PATH_SEPARATOR+set}" != set; then
20793 PATH_SEPARATOR=:
20794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20796 PATH_SEPARATOR=';'
20797 }
20798fi
51a727e9 20799
8934764e
BB
20800# Support unset when possible.
20801if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20802 as_unset=unset
20803else
20804 as_unset=false
20805fi
51a727e9
BB
20806
20807
8934764e
BB
20808# IFS
20809# We need space, tab and new line, in precisely that order. Quoting is
20810# there to prevent editors from complaining about space-tab.
20811# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20812# splitting by setting IFS to empty value.)
20813IFS=" "" $as_nl"
20814
20815# Find who we are. Look in the path if we contain no directory separator.
20816case $0 in
20817 *[\\/]* ) as_myself=$0 ;;
20818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20819for as_dir in $PATH
20820do
20821 IFS=$as_save_IFS
20822 test -z "$as_dir" && as_dir=.
20823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20824done
20825IFS=$as_save_IFS
51a727e9 20826
8934764e
BB
20827 ;;
20828esac
20829# We did not find ourselves, most probably we were run as `sh COMMAND'
20830# in which case we are not to be found in the path.
20831if test "x$as_myself" = x; then
20832 as_myself=$0
20833fi
20834if test ! -f "$as_myself"; then
20835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20836 { (exit 1); exit 1; }
20837fi
51a727e9 20838
8934764e
BB
20839# Work around bugs in pre-3.0 UWIN ksh.
20840for as_var in ENV MAIL MAILPATH
20841do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20842done
20843PS1='$ '
20844PS2='> '
20845PS4='+ '
51a727e9 20846
8934764e
BB
20847# NLS nuisances.
20848LC_ALL=C
20849export LC_ALL
20850LANGUAGE=C
20851export LANGUAGE
51a727e9 20852
8934764e
BB
20853# Required to use basename.
20854if expr a : '\(a\)' >/dev/null 2>&1 &&
20855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20856 as_expr=expr
20857else
20858 as_expr=false
20859fi
51a727e9 20860
8934764e
BB
20861if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20862 as_basename=basename
20863else
20864 as_basename=false
20865fi
51a727e9 20866
51a727e9 20867
8934764e
BB
20868# Name of the executable.
20869as_me=`$as_basename -- "$0" ||
20870$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20871 X"$0" : 'X\(//\)$' \| \
20872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20873$as_echo X/"$0" |
20874 sed '/^.*\/\([^/][^/]*\)\/*$/{
20875 s//\1/
20876 q
20877 }
20878 /^X\/\(\/\/\)$/{
20879 s//\1/
20880 q
20881 }
20882 /^X\/\(\/\).*/{
20883 s//\1/
20884 q
20885 }
20886 s/.*/./; q'`
51a727e9 20887
8934764e
BB
20888# CDPATH.
20889$as_unset CDPATH
51a727e9
BB
20890
20891
51a727e9 20892
8934764e
BB
20893 as_lineno_1=$LINENO
20894 as_lineno_2=$LINENO
20895 test "x$as_lineno_1" != "x$as_lineno_2" &&
20896 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51a727e9 20897
8934764e
BB
20898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20899 # uniformly replaced by the line number. The first 'sed' inserts a
20900 # line-number line after each line using $LINENO; the second 'sed'
20901 # does the real work. The second script uses 'N' to pair each
20902 # line-number line with the line containing $LINENO, and appends
20903 # trailing '-' during substitution so that $LINENO is not a special
20904 # case at line end.
20905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20906 # scripts with optimization help from Paolo Bonzini. Blame Lee
20907 # E. McMahon (1931-1989) for sed's syntax. :-)
20908 sed -n '
20909 p
20910 /[$]LINENO/=
20911 ' <$as_myself |
20912 sed '
20913 s/[$]LINENO.*/&-/
20914 t lineno
20915 b
20916 :lineno
20917 N
20918 :loop
20919 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20920 t loop
20921 s/-\n.*//
20922 ' >$as_me.lineno &&
20923 chmod +x "$as_me.lineno" ||
20924 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20925 { (exit 1); exit 1; }; }
51a727e9 20926
8934764e
BB
20927 # Don't try to exec as it changes $[0], causing all sort of problems
20928 # (the dirname of $[0] is not the place where we might find the
20929 # original and so on. Autoconf is especially sensitive to this).
20930 . "./$as_me.lineno"
20931 # Exit status is that of the last command.
20932 exit
20933}
51a727e9 20934
51a727e9 20935
8934764e
BB
20936if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20937 as_dirname=dirname
20938else
20939 as_dirname=false
20940fi
51a727e9 20941
8934764e
BB
20942ECHO_C= ECHO_N= ECHO_T=
20943case `echo -n x` in
20944-n*)
20945 case `echo 'x\c'` in
20946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20947 *) ECHO_C='\c';;
20948 esac;;
20949*)
20950 ECHO_N='-n';;
20951esac
20952if expr a : '\(a\)' >/dev/null 2>&1 &&
20953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20954 as_expr=expr
20955else
20956 as_expr=false
20957fi
51a727e9 20958
8934764e
BB
20959rm -f conf$$ conf$$.exe conf$$.file
20960if test -d conf$$.dir; then
20961 rm -f conf$$.dir/conf$$.file
20962else
20963 rm -f conf$$.dir
20964 mkdir conf$$.dir 2>/dev/null
20965fi
20966if (echo >conf$$.file) 2>/dev/null; then
20967 if ln -s conf$$.file conf$$ 2>/dev/null; then
20968 as_ln_s='ln -s'
20969 # ... but there are two gotchas:
20970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20972 # In both cases, we have to default to `cp -p'.
20973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20974 as_ln_s='cp -p'
20975 elif ln conf$$.file conf$$ 2>/dev/null; then
20976 as_ln_s=ln
20977 else
20978 as_ln_s='cp -p'
20979 fi
20980else
20981 as_ln_s='cp -p'
20982fi
20983rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20984rmdir conf$$.dir 2>/dev/null
51a727e9 20985
8934764e
BB
20986if mkdir -p . 2>/dev/null; then
20987 as_mkdir_p=:
20988else
20989 test -d ./-p && rmdir ./-p
20990 as_mkdir_p=false
20991fi
51a727e9 20992
8934764e
BB
20993if test -x / >/dev/null 2>&1; then
20994 as_test_x='test -x'
20995else
20996 if ls -dL / >/dev/null 2>&1; then
20997 as_ls_L_option=L
20998 else
20999 as_ls_L_option=
21000 fi
21001 as_test_x='
21002 eval sh -c '\''
21003 if test -d "$1"; then
21004 test -d "$1/.";
21005 else
21006 case $1 in
21007 -*)set "./$1";;
21008 esac;
21009 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21010 ???[sx]*):;;*)false;;esac;fi
21011 '\'' sh
21012 '
21013fi
21014as_executable_p=$as_test_x
51a727e9 21015
8934764e
BB
21016# Sed expression to map a string onto a valid CPP name.
21017as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 21018
8934764e
BB
21019# Sed expression to map a string onto a valid variable name.
21020as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 21021
51a727e9 21022
8934764e 21023exec 6>&1
51a727e9 21024
8934764e
BB
21025# Save the log message, to keep $[0] and so on meaningful, and to
21026# report actual input values of CONFIG_FILES etc. instead of their
21027# values after options handling.
21028ac_log="
21029This file was extended by $as_me, which was
21030generated by GNU Autoconf 2.63. Invocation command line was
51a727e9 21031
8934764e
BB
21032 CONFIG_FILES = $CONFIG_FILES
21033 CONFIG_HEADERS = $CONFIG_HEADERS
21034 CONFIG_LINKS = $CONFIG_LINKS
21035 CONFIG_COMMANDS = $CONFIG_COMMANDS
21036 $ $0 $@
51a727e9 21037
8934764e
BB
21038on `(hostname || uname -n) 2>/dev/null | sed 1q`
21039"
a093c6a4 21040
8934764e 21041_ACEOF
a093c6a4 21042
8934764e
BB
21043case $ac_config_files in *"
21044"*) set x $ac_config_files; shift; ac_config_files=$*;;
21045esac
a093c6a4 21046
8934764e
BB
21047case $ac_config_headers in *"
21048"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21049esac
a093c6a4 21050
a093c6a4 21051
8934764e
BB
21052cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21053# Files that config.status was made for.
21054config_files="$ac_config_files"
21055config_headers="$ac_config_headers"
21056config_commands="$ac_config_commands"
a093c6a4 21057
a093c6a4 21058_ACEOF
a093c6a4 21059
8934764e
BB
21060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21061ac_cs_usage="\
21062\`$as_me' instantiates files from templates according to the
21063current configuration.
a093c6a4 21064
8934764e 21065Usage: $0 [OPTION]... [FILE]...
a093c6a4 21066
8934764e
BB
21067 -h, --help print this help, then exit
21068 -V, --version print version number and configuration settings, then exit
21069 -q, --quiet, --silent
21070 do not print progress messages
21071 -d, --debug don't remove temporary files
21072 --recheck update $as_me by reconfiguring in the same conditions
21073 --file=FILE[:TEMPLATE]
21074 instantiate the configuration file FILE
21075 --header=FILE[:TEMPLATE]
21076 instantiate the configuration header FILE
a093c6a4 21077
8934764e
BB
21078Configuration files:
21079$config_files
a093c6a4 21080
8934764e
BB
21081Configuration headers:
21082$config_headers
a093c6a4 21083
8934764e
BB
21084Configuration commands:
21085$config_commands
a093c6a4 21086
8934764e 21087Report bugs to <bug-autoconf@gnu.org>."
a093c6a4 21088
8934764e
BB
21089_ACEOF
21090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21091ac_cs_version="\\
21092config.status
21093configured by $0, generated by GNU Autoconf 2.63,
21094 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
a093c6a4 21095
8934764e
BB
21096Copyright (C) 2008 Free Software Foundation, Inc.
21097This config.status script is free software; the Free Software Foundation
21098gives unlimited permission to copy, distribute and modify it."
a093c6a4 21099
8934764e
BB
21100ac_pwd='$ac_pwd'
21101srcdir='$srcdir'
21102INSTALL='$INSTALL'
21103MKDIR_P='$MKDIR_P'
21104AWK='$AWK'
21105test -n "\$AWK" || AWK=awk
a093c6a4
BB
21106_ACEOF
21107
8934764e
BB
21108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21109# The default lists apply if the user does not specify any file.
21110ac_need_defaults=:
21111while test $# != 0
21112do
21113 case $1 in
21114 --*=*)
21115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21117 ac_shift=:
21118 ;;
21119 *)
21120 ac_option=$1
21121 ac_optarg=$2
21122 ac_shift=shift
21123 ;;
21124 esac
a093c6a4 21125
8934764e
BB
21126 case $ac_option in
21127 # Handling of the options.
21128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21129 ac_cs_recheck=: ;;
21130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21131 $as_echo "$ac_cs_version"; exit ;;
21132 --debug | --debu | --deb | --de | --d | -d )
21133 debug=: ;;
21134 --file | --fil | --fi | --f )
21135 $ac_shift
21136 case $ac_optarg in
21137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21138 esac
21139 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21140 ac_need_defaults=false;;
21141 --header | --heade | --head | --hea )
21142 $ac_shift
21143 case $ac_optarg in
21144 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21145 esac
21146 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21147 ac_need_defaults=false;;
21148 --he | --h)
21149 # Conflict between --help and --header
21150 { $as_echo "$as_me: error: ambiguous option: $1
21151Try \`$0 --help' for more information." >&2
21152 { (exit 1); exit 1; }; };;
21153 --help | --hel | -h )
21154 $as_echo "$ac_cs_usage"; exit ;;
21155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21156 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21157 ac_cs_silent=: ;;
21158
21159 # This is an error.
21160 -*) { $as_echo "$as_me: error: unrecognized option: $1
21161Try \`$0 --help' for more information." >&2
21162 { (exit 1); exit 1; }; } ;;
a093c6a4 21163
8934764e
BB
21164 *) ac_config_targets="$ac_config_targets $1"
21165 ac_need_defaults=false ;;
a093c6a4 21166
8934764e
BB
21167 esac
21168 shift
21169done
a093c6a4 21170
8934764e 21171ac_configure_extra_args=
a093c6a4 21172
8934764e
BB
21173if $ac_cs_silent; then
21174 exec 6>/dev/null
21175 ac_configure_extra_args="$ac_configure_extra_args --silent"
a093c6a4
BB
21176fi
21177
8934764e
BB
21178_ACEOF
21179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21180if \$ac_cs_recheck; then
21181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21182 shift
21183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21184 CONFIG_SHELL='$SHELL'
21185 export CONFIG_SHELL
21186 exec "\$@"
21187fi
a093c6a4 21188
8934764e
BB
21189_ACEOF
21190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21191exec 5>>config.log
21192{
21193 echo
21194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21195## Running $as_me. ##
21196_ASBOX
21197 $as_echo "$ac_log"
21198} >&5
a093c6a4 21199
8934764e
BB
21200_ACEOF
21201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21202#
21203# INIT-COMMANDS
21204#
21205AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a093c6a4 21206
a093c6a4 21207
8934764e
BB
21208# The HP-UX ksh and POSIX shell print the target directory to stdout
21209# if CDPATH is set.
21210(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a093c6a4 21211
8934764e
BB
21212sed_quote_subst='$sed_quote_subst'
21213double_quote_subst='$double_quote_subst'
21214delay_variable_subst='$delay_variable_subst'
21215macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21216macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21217enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21218enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21219pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21220enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21221host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21222host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21223host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21224build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21225build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21226build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21227SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21228Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21229GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21230EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21231FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21232LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21233NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21234LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21235max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21236ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21237exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21238lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21239lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21240lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21241reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21242reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21243OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21244deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21245file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21246AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21247AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21248STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21249RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21250old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21251old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21252old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21253CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21254CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21255compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21256GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21257lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21258lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21259lt_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"`'
21260lt_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"`'
21261objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21262SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21263ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21264MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21265lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21266lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21267lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21268lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21269lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21270need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21271DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21272NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21273LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21274OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21275OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21276libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21277shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21278extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21279archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21280enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21281export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21282whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21283compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21284old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21285old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21286archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21287archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21288module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21289module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21290with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21291allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21292no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21293hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21294hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21295hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21296hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21297hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21298hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21299hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21300hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21301inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21302link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21303fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21304always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21305export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21306exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21307include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21308prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21309file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21310variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21311need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21312need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21313version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21314runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21315shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21316shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21317libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21318library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21319soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21320postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21321postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21322finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21323finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21324hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21325sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21326sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21327hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21328enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21329enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21330enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21331old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21332striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21333
21334LTCC='$LTCC'
21335LTCFLAGS='$LTCFLAGS'
21336compiler='$compiler_DEFAULT'
21337
21338# Quote evaled strings.
21339for var in SED \
21340GREP \
21341EGREP \
21342FGREP \
21343LD \
21344NM \
21345LN_S \
21346lt_SP2NL \
21347lt_NL2SP \
21348reload_flag \
21349OBJDUMP \
21350deplibs_check_method \
21351file_magic_cmd \
21352AR \
21353AR_FLAGS \
21354STRIP \
21355RANLIB \
21356CC \
21357CFLAGS \
21358compiler \
21359lt_cv_sys_global_symbol_pipe \
21360lt_cv_sys_global_symbol_to_cdecl \
21361lt_cv_sys_global_symbol_to_c_name_address \
21362lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21363SHELL \
21364ECHO \
21365lt_prog_compiler_no_builtin_flag \
21366lt_prog_compiler_wl \
21367lt_prog_compiler_pic \
21368lt_prog_compiler_static \
21369lt_cv_prog_compiler_c_o \
21370need_locks \
21371DSYMUTIL \
21372NMEDIT \
21373LIPO \
21374OTOOL \
21375OTOOL64 \
21376shrext_cmds \
21377export_dynamic_flag_spec \
21378whole_archive_flag_spec \
21379compiler_needs_object \
21380with_gnu_ld \
21381allow_undefined_flag \
21382no_undefined_flag \
21383hardcode_libdir_flag_spec \
21384hardcode_libdir_flag_spec_ld \
21385hardcode_libdir_separator \
21386fix_srcfile_path \
21387exclude_expsyms \
21388include_expsyms \
21389file_list_spec \
21390variables_saved_for_relink \
21391libname_spec \
21392library_names_spec \
21393soname_spec \
21394finish_eval \
21395old_striplib \
21396striplib; do
21397 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21398 *[\\\\\\\`\\"\\\$]*)
21399 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21400 ;;
21401 *)
21402 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21403 ;;
21404 esac
21405done
a093c6a4 21406
8934764e
BB
21407# Double-quote double-evaled strings.
21408for var in reload_cmds \
21409old_postinstall_cmds \
21410old_postuninstall_cmds \
21411old_archive_cmds \
21412extract_expsyms_cmds \
21413old_archive_from_new_cmds \
21414old_archive_from_expsyms_cmds \
21415archive_cmds \
21416archive_expsym_cmds \
21417module_cmds \
21418module_expsym_cmds \
21419export_symbols_cmds \
21420prelink_cmds \
21421postinstall_cmds \
21422postuninstall_cmds \
21423finish_cmds \
21424sys_lib_search_path_spec \
21425sys_lib_dlsearch_path_spec; do
21426 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21427 *[\\\\\\\`\\"\\\$]*)
21428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21429 ;;
21430 *)
21431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21432 ;;
21433 esac
21434done
a093c6a4 21435
8934764e
BB
21436# Fix-up fallback echo if it was mangled by the above quoting rules.
21437case \$lt_ECHO in
21438*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21439 ;;
21440esac
a093c6a4 21441
8934764e
BB
21442ac_aux_dir='$ac_aux_dir'
21443xsi_shell='$xsi_shell'
21444lt_shell_append='$lt_shell_append'
a093c6a4 21445
8934764e
BB
21446# See if we are running on zsh, and set the options which allow our
21447# commands through without removal of \ escapes INIT.
21448if test -n "\${ZSH_VERSION+set}" ; then
21449 setopt NO_GLOB_SUBST
21450fi
a093c6a4 21451
a093c6a4 21452
8934764e
BB
21453 PACKAGE='$PACKAGE'
21454 VERSION='$VERSION'
21455 TIMESTAMP='$TIMESTAMP'
21456 RM='$RM'
21457 ofile='$ofile'
a093c6a4
BB
21458
21459
a093c6a4 21460
a093c6a4 21461
a093c6a4
BB
21462_ACEOF
21463
8934764e 21464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a093c6a4 21465
8934764e
BB
21466# Handling of arguments.
21467for ac_config_target in $ac_config_targets
21468do
21469 case $ac_config_target in
21470 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21471 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21472 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21473 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21474 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21475 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21476 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21477 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21478 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21479 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21480 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21481 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21482 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
c2dceb5c
PS
21483 "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;;
21484 "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;;
8934764e
BB
21485
21486 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21487$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21488 { (exit 1); exit 1; }; };;
21489 esac
21490done
a093c6a4
BB
21491
21492
8934764e
BB
21493# If the user did not use the arguments to specify the items to instantiate,
21494# then the envvar interface is used. Set only those that are not.
21495# We use the long form for the default assignment because of an extremely
21496# bizarre bug on SunOS 4.1.3.
21497if $ac_need_defaults; then
21498 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21499 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21500 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
e11d6c5f
BB
21501fi
21502
8934764e
BB
21503# Have a temporary directory for convenience. Make it in the build tree
21504# simply because there is no reason against having it here, and in addition,
21505# creating and moving files from /tmp can sometimes cause problems.
21506# Hook for its removal unless debugging.
21507# Note that there is a small window in which the directory will not be cleaned:
21508# after its creation but before its name has been assigned to `$tmp'.
21509$debug ||
21510{
21511 tmp=
21512 trap 'exit_status=$?
21513 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21514' 0
21515 trap '{ (exit 1); exit 1; }' 1 2 13 15
21516}
21517# Create a (secure) tmp directory for tmp files.
e11d6c5f 21518
8934764e
BB
21519{
21520 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21521 test -n "$tmp" && test -d "$tmp"
21522} ||
21523{
21524 tmp=./conf$$-$RANDOM
21525 (umask 077 && mkdir "$tmp")
21526} ||
21527{
21528 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21529 { (exit 1); exit 1; }
21530}
e11d6c5f 21531
8934764e
BB
21532# Set up the scripts for CONFIG_FILES section.
21533# No need to generate them if there are no CONFIG_FILES.
21534# This happens for instance with `./config.status config.h'.
21535if test -n "$CONFIG_FILES"; then
e11d6c5f 21536
ec7d53e9 21537
8934764e
BB
21538ac_cr='\r'
21539ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21540if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21541 ac_cs_awk_cr='\\r'
21542else
21543 ac_cs_awk_cr=$ac_cr
21544fi
ec7d53e9 21545
8934764e 21546echo 'BEGIN {' >"$tmp/subs1.awk" &&
ec7d53e9 21547_ACEOF
ec7d53e9 21548
ec7d53e9 21549
ec7d53e9 21550{
8934764e
BB
21551 echo "cat >conf$$subs.awk <<_ACEOF" &&
21552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21553 echo "_ACEOF"
21554} >conf$$subs.sh ||
21555 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21556$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21557 { (exit 1); exit 1; }; }
21558ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21559ac_delim='%!_!# '
21560for ac_last_try in false false false false false :; do
21561 . ./conf$$subs.sh ||
21562 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21563$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21564 { (exit 1); exit 1; }; }
ec7d53e9 21565
8934764e
BB
21566 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21567 if test $ac_delim_n = $ac_delim_num; then
21568 break
21569 elif $ac_last_try; then
21570 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21571$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21572 { (exit 1); exit 1; }; }
21573 else
21574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21575 fi
21576done
21577rm -f conf$$subs.sh
21578
21579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21580cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21581_ACEOF
21582sed -n '
21583h
21584s/^/S["/; s/!.*/"]=/
21585p
21586g
21587s/^[^!]*!//
21588:repl
21589t repl
21590s/'"$ac_delim"'$//
21591t delim
21592:nl
21593h
21594s/\(.\{148\}\).*/\1/
21595t more1
21596s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21597p
21598n
21599b repl
21600:more1
21601s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21602p
21603g
21604s/.\{148\}//
21605t nl
21606:delim
21607h
21608s/\(.\{148\}\).*/\1/
21609t more2
21610s/["\\]/\\&/g; s/^/"/; s/$/"/
21611p
21612b
21613:more2
21614s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21615p
21616g
21617s/.\{148\}//
21618t delim
21619' <conf$$subs.awk | sed '
21620/^[^""]/{
21621 N
21622 s/\n//
21623}
21624' >>$CONFIG_STATUS || ac_write_fail=1
21625rm -f conf$$subs.awk
21626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21627_ACAWK
21628cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21629 for (key in S) S_is_set[key] = 1
21630 FS = "\a"
ec7d53e9 21631
8934764e
BB
21632}
21633{
21634 line = $ 0
21635 nfields = split(line, field, "@")
21636 substed = 0
21637 len = length(field[1])
21638 for (i = 2; i < nfields; i++) {
21639 key = field[i]
21640 keylen = length(key)
21641 if (S_is_set[key]) {
21642 value = S[key]
21643 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21644 len += length(value) + length(field[++i])
21645 substed = 1
21646 } else
21647 len += 1 + keylen
21648 }
21649
21650 print line
ec7d53e9
BB
21651}
21652
8934764e
BB
21653_ACAWK
21654_ACEOF
21655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21656if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21657 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21658else
21659 cat
21660fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21661 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21662$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21663 { (exit 1); exit 1; }; }
ec7d53e9
BB
21664_ACEOF
21665
8934764e
BB
21666# VPATH may cause trouble with some makes, so we remove $(srcdir),
21667# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21668# trailing colons and then remove the whole line if VPATH becomes empty
21669# (actually we leave an empty line to preserve line numbers).
21670if test "x$srcdir" = x.; then
21671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21672s/:*\$(srcdir):*/:/
21673s/:*\${srcdir}:*/:/
21674s/:*@srcdir@:*/:/
21675s/^\([^=]*=[ ]*\):*/\1/
21676s/:*$//
21677s/^[^=]*=[ ]*$//
21678}'
21679fi
ec7d53e9 21680
8934764e
BB
21681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21682fi # test -n "$CONFIG_FILES"
ec7d53e9 21683
8934764e
BB
21684# Set up the scripts for CONFIG_HEADERS section.
21685# No need to generate them if there are no CONFIG_HEADERS.
21686# This happens for instance with `./config.status Makefile'.
21687if test -n "$CONFIG_HEADERS"; then
21688cat >"$tmp/defines.awk" <<\_ACAWK ||
21689BEGIN {
ec7d53e9
BB
21690_ACEOF
21691
8934764e
BB
21692# Transform confdefs.h into an awk script `defines.awk', embedded as
21693# here-document in config.status, that substitutes the proper values into
21694# config.h.in to produce config.h.
ec7d53e9 21695
8934764e
BB
21696# Create a delimiter string that does not exist in confdefs.h, to ease
21697# handling of long lines.
21698ac_delim='%!_!# '
21699for ac_last_try in false false :; do
21700 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21701 if test -z "$ac_t"; then
21702 break
21703 elif $ac_last_try; then
21704 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21705$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21706 { (exit 1); exit 1; }; }
21707 else
21708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21709 fi
21710done
ec7d53e9 21711
8934764e
BB
21712# For the awk script, D is an array of macro values keyed by name,
21713# likewise P contains macro parameters if any. Preserve backslash
21714# newline sequences.
21715
21716ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21717sed -n '
21718s/.\{148\}/&'"$ac_delim"'/g
21719t rset
21720:rset
21721s/^[ ]*#[ ]*define[ ][ ]*/ /
21722t def
21723d
21724:def
21725s/\\$//
21726t bsnl
21727s/["\\]/\\&/g
21728s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21729D["\1"]=" \3"/p
21730s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21731d
21732:bsnl
21733s/["\\]/\\&/g
21734s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21735D["\1"]=" \3\\\\\\n"\\/p
21736t cont
21737s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21738t cont
21739d
21740:cont
21741n
21742s/.\{148\}/&'"$ac_delim"'/g
21743t clear
21744:clear
21745s/\\$//
21746t bsnlc
21747s/["\\]/\\&/g; s/^/"/; s/$/"/p
21748d
21749:bsnlc
21750s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21751b cont
21752' <confdefs.h | sed '
21753s/'"$ac_delim"'/"\\\
21754"/g' >>$CONFIG_STATUS || ac_write_fail=1
21755
21756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21757 for (key in D) D_is_set[key] = 1
21758 FS = "\a"
21759}
21760/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21761 line = \$ 0
21762 split(line, arg, " ")
21763 if (arg[1] == "#") {
21764 defundef = arg[2]
21765 mac1 = arg[3]
21766 } else {
21767 defundef = substr(arg[1], 2)
21768 mac1 = arg[2]
21769 }
21770 split(mac1, mac2, "(") #)
21771 macro = mac2[1]
21772 prefix = substr(line, 1, index(line, defundef) - 1)
21773 if (D_is_set[macro]) {
21774 # Preserve the white space surrounding the "#".
21775 print prefix "define", macro P[macro] D[macro]
21776 next
21777 } else {
21778 # Replace #undef with comments. This is necessary, for example,
21779 # in the case of _POSIX_SOURCE, which is predefined and required
21780 # on some systems where configure will not decide to define it.
21781 if (defundef == "undef") {
21782 print "/*", prefix defundef, macro, "*/"
21783 next
21784 }
21785 }
21786}
21787{ print }
21788_ACAWK
21789_ACEOF
21790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21791 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21792$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21793 { (exit 1); exit 1; }; }
21794fi # test -n "$CONFIG_HEADERS"
ec7d53e9
BB
21795
21796
8934764e
BB
21797eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21798shift
21799for ac_tag
21800do
21801 case $ac_tag in
21802 :[FHLC]) ac_mode=$ac_tag; continue;;
21803 esac
21804 case $ac_mode$ac_tag in
21805 :[FHL]*:*);;
21806 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21807$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21808 { (exit 1); exit 1; }; };;
21809 :[FH]-) ac_tag=-:-;;
21810 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21811 esac
21812 ac_save_IFS=$IFS
21813 IFS=:
21814 set x $ac_tag
21815 IFS=$ac_save_IFS
21816 shift
21817 ac_file=$1
21818 shift
ec7d53e9 21819
8934764e
BB
21820 case $ac_mode in
21821 :L) ac_source=$1;;
21822 :[FH])
21823 ac_file_inputs=
21824 for ac_f
21825 do
21826 case $ac_f in
21827 -) ac_f="$tmp/stdin";;
21828 *) # Look for the file first in the build tree, then in the source tree
21829 # (if the path is not absolute). The absolute path cannot be DOS-style,
21830 # because $ac_f cannot contain `:'.
21831 test -f "$ac_f" ||
21832 case $ac_f in
21833 [\\/$]*) false;;
21834 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21835 esac ||
21836 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21837$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21838 { (exit 1); exit 1; }; };;
21839 esac
21840 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21841 ac_file_inputs="$ac_file_inputs '$ac_f'"
21842 done
ec7d53e9 21843
8934764e
BB
21844 # Let's still pretend it is `configure' which instantiates (i.e., don't
21845 # use $as_me), people would be surprised to read:
21846 # /* config.h. Generated by config.status. */
21847 configure_input='Generated from '`
21848 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21849 `' by configure.'
21850 if test x"$ac_file" != x-; then
21851 configure_input="$ac_file. $configure_input"
21852 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21853$as_echo "$as_me: creating $ac_file" >&6;}
21854 fi
21855 # Neutralize special characters interpreted by sed in replacement strings.
21856 case $configure_input in #(
21857 *\&* | *\|* | *\\* )
21858 ac_sed_conf_input=`$as_echo "$configure_input" |
21859 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21860 *) ac_sed_conf_input=$configure_input;;
21861 esac
ec7d53e9 21862
8934764e
BB
21863 case $ac_tag in
21864 *:-:* | *:-) cat >"$tmp/stdin" \
21865 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21866$as_echo "$as_me: error: could not create $ac_file" >&2;}
21867 { (exit 1); exit 1; }; } ;;
21868 esac
21869 ;;
21870 esac
ec7d53e9 21871
8934764e
BB
21872 ac_dir=`$as_dirname -- "$ac_file" ||
21873$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21874 X"$ac_file" : 'X\(//\)[^/]' \| \
21875 X"$ac_file" : 'X\(//\)$' \| \
21876 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21877$as_echo X"$ac_file" |
21878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21879 s//\1/
21880 q
21881 }
21882 /^X\(\/\/\)[^/].*/{
21883 s//\1/
21884 q
21885 }
21886 /^X\(\/\/\)$/{
21887 s//\1/
21888 q
21889 }
21890 /^X\(\/\).*/{
21891 s//\1/
21892 q
21893 }
21894 s/.*/./; q'`
21895 { as_dir="$ac_dir"
21896 case $as_dir in #(
21897 -*) as_dir=./$as_dir;;
21898 esac
21899 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21900 as_dirs=
21901 while :; do
21902 case $as_dir in #(
21903 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21904 *) as_qdir=$as_dir;;
21905 esac
21906 as_dirs="'$as_qdir' $as_dirs"
21907 as_dir=`$as_dirname -- "$as_dir" ||
21908$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21909 X"$as_dir" : 'X\(//\)[^/]' \| \
21910 X"$as_dir" : 'X\(//\)$' \| \
21911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21912$as_echo X"$as_dir" |
21913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21914 s//\1/
21915 q
21916 }
21917 /^X\(\/\/\)[^/].*/{
21918 s//\1/
21919 q
21920 }
21921 /^X\(\/\/\)$/{
21922 s//\1/
21923 q
21924 }
21925 /^X\(\/\).*/{
21926 s//\1/
21927 q
21928 }
21929 s/.*/./; q'`
21930 test -d "$as_dir" && break
21931 done
21932 test -z "$as_dirs" || eval "mkdir $as_dirs"
21933 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21934$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21935 { (exit 1); exit 1; }; }; }
21936 ac_builddir=.
ec7d53e9 21937
8934764e
BB
21938case "$ac_dir" in
21939.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21940*)
21941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21942 # A ".." for each directory in $ac_dir_suffix.
21943 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21944 case $ac_top_builddir_sub in
21945 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21946 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21947 esac ;;
21948esac
21949ac_abs_top_builddir=$ac_pwd
21950ac_abs_builddir=$ac_pwd$ac_dir_suffix
21951# for backward compatibility:
21952ac_top_builddir=$ac_top_build_prefix
ec7d53e9 21953
8934764e
BB
21954case $srcdir in
21955 .) # We are building in place.
21956 ac_srcdir=.
21957 ac_top_srcdir=$ac_top_builddir_sub
21958 ac_abs_top_srcdir=$ac_pwd ;;
21959 [\\/]* | ?:[\\/]* ) # Absolute name.
21960 ac_srcdir=$srcdir$ac_dir_suffix;
21961 ac_top_srcdir=$srcdir
21962 ac_abs_top_srcdir=$srcdir ;;
21963 *) # Relative name.
21964 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21965 ac_top_srcdir=$ac_top_build_prefix$srcdir
21966 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21967esac
21968ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ec7d53e9 21969
ec7d53e9 21970
8934764e
BB
21971 case $ac_mode in
21972 :F)
21973 #
21974 # CONFIG_FILE
21975 #
21976
21977 case $INSTALL in
21978 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21979 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21980 esac
21981 ac_MKDIR_P=$MKDIR_P
21982 case $MKDIR_P in
21983 [\\/$]* | ?:[\\/]* ) ;;
21984 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21985 esac
ec7d53e9
BB
21986_ACEOF
21987
8934764e
BB
21988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21989# If the template does not know about datarootdir, expand it.
21990# FIXME: This hack should be removed a few years after 2.60.
21991ac_datarootdir_hack=; ac_datarootdir_seen=
ec7d53e9 21992
8934764e
BB
21993ac_sed_dataroot='
21994/datarootdir/ {
21995 p
21996 q
21997}
21998/@datadir@/p
21999/@docdir@/p
22000/@infodir@/p
22001/@localedir@/p
22002/@mandir@/p
22003'
22004case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22005*datarootdir*) ac_datarootdir_seen=yes;;
22006*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22007 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22008$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22009_ACEOF
22010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22011 ac_datarootdir_hack='
22012 s&@datadir@&$datadir&g
22013 s&@docdir@&$docdir&g
22014 s&@infodir@&$infodir&g
22015 s&@localedir@&$localedir&g
22016 s&@mandir@&$mandir&g
22017 s&\\\${datarootdir}&$datarootdir&g' ;;
22018esac
ec7d53e9
BB
22019_ACEOF
22020
8934764e
BB
22021# Neutralize VPATH when `$srcdir' = `.'.
22022# Shell code in configure.ac might set extrasub.
22023# FIXME: do we really want to maintain this feature?
22024cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22025ac_sed_extra="$ac_vpsub
22026$extrasub
22027_ACEOF
22028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22029:t
22030/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22031s|@configure_input@|$ac_sed_conf_input|;t t
22032s&@top_builddir@&$ac_top_builddir_sub&;t t
22033s&@top_build_prefix@&$ac_top_build_prefix&;t t
22034s&@srcdir@&$ac_srcdir&;t t
22035s&@abs_srcdir@&$ac_abs_srcdir&;t t
22036s&@top_srcdir@&$ac_top_srcdir&;t t
22037s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22038s&@builddir@&$ac_builddir&;t t
22039s&@abs_builddir@&$ac_abs_builddir&;t t
22040s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22041s&@INSTALL@&$ac_INSTALL&;t t
22042s&@MKDIR_P@&$ac_MKDIR_P&;t t
22043$ac_datarootdir_hack
22044"
22045eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22046 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22047$as_echo "$as_me: error: could not create $ac_file" >&2;}
22048 { (exit 1); exit 1; }; }
ec7d53e9 22049
8934764e
BB
22050test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22051 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22053 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22054which seems to be undefined. Please make sure it is defined." >&5
22055$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22056which seems to be undefined. Please make sure it is defined." >&2;}
ec7d53e9 22057
8934764e
BB
22058 rm -f "$tmp/stdin"
22059 case $ac_file in
22060 -) cat "$tmp/out" && rm -f "$tmp/out";;
22061 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22062 esac \
22063 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22064$as_echo "$as_me: error: could not create $ac_file" >&2;}
22065 { (exit 1); exit 1; }; }
22066 ;;
22067 :H)
22068 #
22069 # CONFIG_HEADER
22070 #
22071 if test x"$ac_file" != x-; then
22072 {
22073 $as_echo "/* $configure_input */" \
22074 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22075 } >"$tmp/config.h" \
22076 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22077$as_echo "$as_me: error: could not create $ac_file" >&2;}
22078 { (exit 1); exit 1; }; }
22079 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22080 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22081$as_echo "$as_me: $ac_file is unchanged" >&6;}
22082 else
22083 rm -f "$ac_file"
22084 mv "$tmp/config.h" "$ac_file" \
22085 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22086$as_echo "$as_me: error: could not create $ac_file" >&2;}
22087 { (exit 1); exit 1; }; }
22088 fi
22089 else
22090 $as_echo "/* $configure_input */" \
22091 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22092 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22093$as_echo "$as_me: error: could not create -" >&2;}
22094 { (exit 1); exit 1; }; }
22095 fi
22096# Compute "$ac_file"'s index in $config_headers.
22097_am_arg="$ac_file"
22098_am_stamp_count=1
22099for _am_header in $config_headers :; do
22100 case $_am_header in
22101 $_am_arg | $_am_arg:* )
22102 break ;;
22103 * )
22104 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22105 esac
22106done
22107echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22108$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22109 X"$_am_arg" : 'X\(//\)[^/]' \| \
22110 X"$_am_arg" : 'X\(//\)$' \| \
22111 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22112$as_echo X"$_am_arg" |
22113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22114 s//\1/
22115 q
22116 }
22117 /^X\(\/\/\)[^/].*/{
22118 s//\1/
22119 q
22120 }
22121 /^X\(\/\/\)$/{
22122 s//\1/
22123 q
22124 }
22125 /^X\(\/\).*/{
22126 s//\1/
22127 q
22128 }
22129 s/.*/./; q'`/stamp-h$_am_stamp_count
22130 ;;
ec7d53e9 22131
8934764e
BB
22132 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22133$as_echo "$as_me: executing $ac_file commands" >&6;}
22134 ;;
22135 esac
e811949a 22136
e811949a 22137
8934764e
BB
22138 case $ac_file$ac_mode in
22139 "spl_config.h":H)
22140 (mv spl_config.h spl_config.h.tmp &&
a7958f7e 22141 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
8934764e
BB
22142 rm spl_config.h.tmp) || exit 1 ;;
22143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22144 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22145 # are listed without --file. Let's play safe and only enable the eval
22146 # if we detect the quoting.
22147 case $CONFIG_FILES in
22148 *\'*) eval set x "$CONFIG_FILES" ;;
22149 *) set x $CONFIG_FILES ;;
22150 esac
22151 shift
22152 for mf
22153 do
22154 # Strip MF so we end up with the name of the file.
22155 mf=`echo "$mf" | sed -e 's/:.*$//'`
22156 # Check whether this is an Automake generated Makefile or not.
22157 # We used to match only the files named `Makefile.in', but
22158 # some people rename them; so instead we look at the file content.
22159 # Grep'ing the first line is not enough: some people post-process
22160 # each Makefile.in and add a new line on top of each file to say so.
22161 # Grep'ing the whole file is not good either: AIX grep has a line
22162 # limit of 2048, but all sed's we know have understand at least 4000.
22163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22164 dirpart=`$as_dirname -- "$mf" ||
22165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22166 X"$mf" : 'X\(//\)[^/]' \| \
22167 X"$mf" : 'X\(//\)$' \| \
22168 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22169$as_echo X"$mf" |
22170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22171 s//\1/
22172 q
22173 }
22174 /^X\(\/\/\)[^/].*/{
22175 s//\1/
22176 q
22177 }
22178 /^X\(\/\/\)$/{
22179 s//\1/
22180 q
22181 }
22182 /^X\(\/\).*/{
22183 s//\1/
22184 q
22185 }
22186 s/.*/./; q'`
22187 else
22188 continue
22189 fi
22190 # Extract the definition of DEPDIR, am__include, and am__quote
22191 # from the Makefile without running `make'.
22192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22193 test -z "$DEPDIR" && continue
22194 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22195 test -z "am__include" && continue
22196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22197 # When using ansi2knr, U may be empty or an underscore; expand it
22198 U=`sed -n 's/^U = //p' < "$mf"`
22199 # Find all dependency output files, they are included files with
22200 # $(DEPDIR) in their names. We invoke sed twice because it is the
22201 # simplest approach to changing $(DEPDIR) to its actual value in the
22202 # expansion.
22203 for file in `sed -n "
22204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22206 # Make sure the directory exists.
22207 test -f "$dirpart/$file" && continue
22208 fdir=`$as_dirname -- "$file" ||
22209$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22210 X"$file" : 'X\(//\)[^/]' \| \
22211 X"$file" : 'X\(//\)$' \| \
22212 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22213$as_echo X"$file" |
22214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22215 s//\1/
22216 q
22217 }
22218 /^X\(\/\/\)[^/].*/{
22219 s//\1/
22220 q
22221 }
22222 /^X\(\/\/\)$/{
22223 s//\1/
22224 q
22225 }
22226 /^X\(\/\).*/{
22227 s//\1/
22228 q
22229 }
22230 s/.*/./; q'`
22231 { as_dir=$dirpart/$fdir
22232 case $as_dir in #(
22233 -*) as_dir=./$as_dir;;
22234 esac
22235 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22236 as_dirs=
22237 while :; do
22238 case $as_dir in #(
22239 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22240 *) as_qdir=$as_dir;;
22241 esac
22242 as_dirs="'$as_qdir' $as_dirs"
22243 as_dir=`$as_dirname -- "$as_dir" ||
22244$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22245 X"$as_dir" : 'X\(//\)[^/]' \| \
22246 X"$as_dir" : 'X\(//\)$' \| \
22247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22248$as_echo X"$as_dir" |
22249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22250 s//\1/
22251 q
22252 }
22253 /^X\(\/\/\)[^/].*/{
22254 s//\1/
22255 q
22256 }
22257 /^X\(\/\/\)$/{
22258 s//\1/
22259 q
22260 }
22261 /^X\(\/\).*/{
22262 s//\1/
22263 q
22264 }
22265 s/.*/./; q'`
22266 test -d "$as_dir" && break
22267 done
22268 test -z "$as_dirs" || eval "mkdir $as_dirs"
22269 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22270$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22271 { (exit 1); exit 1; }; }; }
22272 # echo "creating $dirpart/$file"
22273 echo '# dummy' > "$dirpart/$file"
22274 done
22275 done
22276}
22277 ;;
22278 "libtool":C)
22279
22280 # See if we are running on zsh, and set the options which allow our
22281 # commands through without removal of \ escapes.
22282 if test -n "${ZSH_VERSION+set}" ; then
22283 setopt NO_GLOB_SUBST
22284 fi
22285
22286 cfgfile="${ofile}T"
22287 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22288 $RM "$cfgfile"
22289
22290 cat <<_LT_EOF >> "$cfgfile"
22291#! $SHELL
22292
22293# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22294# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22295# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22296# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22297#
22298# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22299# 2006, 2007, 2008 Free Software Foundation, Inc.
22300# Written by Gordon Matzigkeit, 1996
22301#
22302# This file is part of GNU Libtool.
22303#
22304# GNU Libtool is free software; you can redistribute it and/or
22305# modify it under the terms of the GNU General Public License as
22306# published by the Free Software Foundation; either version 2 of
22307# the License, or (at your option) any later version.
22308#
22309# As a special exception to the GNU General Public License,
22310# if you distribute this file as part of a program or library that
22311# is built using GNU Libtool, you may include this file under the
22312# same distribution terms that you use for the rest of that program.
22313#
22314# GNU Libtool is distributed in the hope that it will be useful,
22315# but WITHOUT ANY WARRANTY; without even the implied warranty of
22316# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22317# GNU General Public License for more details.
22318#
22319# You should have received a copy of the GNU General Public License
22320# along with GNU Libtool; see the file COPYING. If not, a copy
22321# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22322# obtained by writing to the Free Software Foundation, Inc.,
22323# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22324
22325
22326# The names of the tagged configurations supported by this script.
22327available_tags=""
22328
22329# ### BEGIN LIBTOOL CONFIG
22330
22331# Which release of libtool.m4 was used?
22332macro_version=$macro_version
22333macro_revision=$macro_revision
e811949a 22334
8934764e
BB
22335# Whether or not to build shared libraries.
22336build_libtool_libs=$enable_shared
e811949a 22337
8934764e
BB
22338# Whether or not to build static libraries.
22339build_old_libs=$enable_static
e811949a 22340
8934764e
BB
22341# What type of objects to build.
22342pic_mode=$pic_mode
e811949a 22343
8934764e
BB
22344# Whether or not to optimize for fast installation.
22345fast_install=$enable_fast_install
e811949a 22346
8934764e
BB
22347# The host system.
22348host_alias=$host_alias
22349host=$host
22350host_os=$host_os
e811949a 22351
8934764e
BB
22352# The build system.
22353build_alias=$build_alias
22354build=$build
22355build_os=$build_os
3977f837 22356
8934764e
BB
22357# A sed program that does not truncate output.
22358SED=$lt_SED
3977f837 22359
8934764e
BB
22360# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22361Xsed="\$SED -e 1s/^X//"
3977f837 22362
8934764e
BB
22363# A grep program that handles long lines.
22364GREP=$lt_GREP
3977f837 22365
8934764e
BB
22366# An ERE matcher.
22367EGREP=$lt_EGREP
3977f837 22368
8934764e
BB
22369# A literal string matcher.
22370FGREP=$lt_FGREP
3977f837 22371
8934764e
BB
22372# A BSD- or MS-compatible name lister.
22373NM=$lt_NM
3977f837 22374
8934764e
BB
22375# Whether we need soft or hard links.
22376LN_S=$lt_LN_S
3977f837 22377
8934764e
BB
22378# What is the maximum length of a command?
22379max_cmd_len=$max_cmd_len
3977f837 22380
8934764e
BB
22381# Object file suffix (normally "o").
22382objext=$ac_objext
3977f837 22383
8934764e
BB
22384# Executable file suffix (normally "").
22385exeext=$exeext
3977f837 22386
8934764e
BB
22387# whether the shell understands "unset".
22388lt_unset=$lt_unset
3977f837 22389
8934764e
BB
22390# turn spaces into newlines.
22391SP2NL=$lt_lt_SP2NL
3977f837 22392
8934764e
BB
22393# turn newlines into spaces.
22394NL2SP=$lt_lt_NL2SP
3977f837 22395
8934764e
BB
22396# How to create reloadable object files.
22397reload_flag=$lt_reload_flag
22398reload_cmds=$lt_reload_cmds
3977f837 22399
8934764e
BB
22400# An object symbol dumper.
22401OBJDUMP=$lt_OBJDUMP
3977f837 22402
8934764e
BB
22403# Method to check whether dependent libraries are shared objects.
22404deplibs_check_method=$lt_deplibs_check_method
3977f837 22405
8934764e
BB
22406# Command to use when deplibs_check_method == "file_magic".
22407file_magic_cmd=$lt_file_magic_cmd
3977f837 22408
8934764e
BB
22409# The archiver.
22410AR=$lt_AR
22411AR_FLAGS=$lt_AR_FLAGS
3977f837 22412
8934764e
BB
22413# A symbol stripping program.
22414STRIP=$lt_STRIP
3977f837 22415
8934764e
BB
22416# Commands used to install an old-style archive.
22417RANLIB=$lt_RANLIB
22418old_postinstall_cmds=$lt_old_postinstall_cmds
22419old_postuninstall_cmds=$lt_old_postuninstall_cmds
3977f837 22420
8934764e
BB
22421# A C compiler.
22422LTCC=$lt_CC
3977f837 22423
8934764e
BB
22424# LTCC compiler flags.
22425LTCFLAGS=$lt_CFLAGS
3977f837 22426
8934764e
BB
22427# Take the output of nm and produce a listing of raw symbols and C names.
22428global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
86933a6e 22429
8934764e
BB
22430# Transform the output of nm in a proper C declaration.
22431global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
86933a6e 22432
8934764e
BB
22433# Transform the output of nm in a C name address pair.
22434global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
86933a6e 22435
8934764e
BB
22436# Transform the output of nm in a C name address pair when lib prefix is needed.
22437global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
86933a6e 22438
8934764e
BB
22439# The name of the directory that contains temporary libtool files.
22440objdir=$objdir
86933a6e 22441
8934764e
BB
22442# Shell to use when invoking shell scripts.
22443SHELL=$lt_SHELL
86933a6e 22444
8934764e
BB
22445# An echo program that does not interpret backslashes.
22446ECHO=$lt_ECHO
86933a6e 22447
8934764e
BB
22448# Used to examine libraries when file_magic_cmd begins with "file".
22449MAGIC_CMD=$MAGIC_CMD
86933a6e 22450
8934764e
BB
22451# Must we lock files when doing compilation?
22452need_locks=$lt_need_locks
86933a6e 22453
8934764e
BB
22454# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22455DSYMUTIL=$lt_DSYMUTIL
bf9f3bac 22456
8934764e
BB
22457# Tool to change global to local symbols on Mac OS X.
22458NMEDIT=$lt_NMEDIT
bf9f3bac 22459
8934764e
BB
22460# Tool to manipulate fat objects and archives on Mac OS X.
22461LIPO=$lt_LIPO
bf9f3bac 22462
8934764e
BB
22463# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22464OTOOL=$lt_OTOOL
bf9f3bac 22465
8934764e
BB
22466# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22467OTOOL64=$lt_OTOOL64
bf9f3bac 22468
8934764e
BB
22469# Old archive suffix (normally "a").
22470libext=$libext
bf9f3bac 22471
8934764e
BB
22472# Shared library suffix (normally ".so").
22473shrext_cmds=$lt_shrext_cmds
bf9f3bac 22474
8934764e
BB
22475# The commands to extract the exported symbol list from a shared archive.
22476extract_expsyms_cmds=$lt_extract_expsyms_cmds
bf9f3bac 22477
8934764e
BB
22478# Variables whose values should be saved in libtool wrapper scripts and
22479# restored at link time.
22480variables_saved_for_relink=$lt_variables_saved_for_relink
bf9f3bac 22481
8934764e
BB
22482# Do we need the "lib" prefix for modules?
22483need_lib_prefix=$need_lib_prefix
bf9f3bac 22484
8934764e
BB
22485# Do we need a version for libraries?
22486need_version=$need_version
bf9f3bac 22487
8934764e
BB
22488# Library versioning type.
22489version_type=$version_type
bf9f3bac 22490
8934764e
BB
22491# Shared library runtime path variable.
22492runpath_var=$runpath_var
bf9f3bac 22493
8934764e
BB
22494# Shared library path variable.
22495shlibpath_var=$shlibpath_var
bf9f3bac 22496
8934764e
BB
22497# Is shlibpath searched before the hard-coded library search path?
22498shlibpath_overrides_runpath=$shlibpath_overrides_runpath
bf9f3bac 22499
8934764e
BB
22500# Format of library name prefix.
22501libname_spec=$lt_libname_spec
bf9f3bac 22502
8934764e
BB
22503# List of archive names. First name is the real one, the rest are links.
22504# The last name is the one that the linker finds with -lNAME
22505library_names_spec=$lt_library_names_spec
bf9f3bac 22506
8934764e
BB
22507# The coded name of the library, if different from the real name.
22508soname_spec=$lt_soname_spec
bf9f3bac 22509
8934764e
BB
22510# Command to use after installation of a shared archive.
22511postinstall_cmds=$lt_postinstall_cmds
bf9f3bac 22512
8934764e
BB
22513# Command to use after uninstallation of a shared archive.
22514postuninstall_cmds=$lt_postuninstall_cmds
bf9f3bac 22515
8934764e
BB
22516# Commands used to finish a libtool library installation in a directory.
22517finish_cmds=$lt_finish_cmds
bf9f3bac 22518
8934764e
BB
22519# As "finish_cmds", except a single script fragment to be evaled but
22520# not shown.
22521finish_eval=$lt_finish_eval
bf9f3bac 22522
8934764e
BB
22523# Whether we should hardcode library paths into libraries.
22524hardcode_into_libs=$hardcode_into_libs
bf9f3bac 22525
8934764e
BB
22526# Compile-time system search path for libraries.
22527sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
bf9f3bac 22528
8934764e
BB
22529# Run-time system search path for libraries.
22530sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
bf9f3bac 22531
8934764e
BB
22532# Whether dlopen is supported.
22533dlopen_support=$enable_dlopen
bf9f3bac 22534
8934764e
BB
22535# Whether dlopen of programs is supported.
22536dlopen_self=$enable_dlopen_self
bf9f3bac 22537
8934764e
BB
22538# Whether dlopen of statically linked programs is supported.
22539dlopen_self_static=$enable_dlopen_self_static
bf9f3bac 22540
8934764e
BB
22541# Commands to strip libraries.
22542old_striplib=$lt_old_striplib
22543striplib=$lt_striplib
bf9f3bac 22544
bf9f3bac 22545
8934764e
BB
22546# The linker used to build libraries.
22547LD=$lt_LD
bf9f3bac 22548
8934764e
BB
22549# Commands used to build an old-style archive.
22550old_archive_cmds=$lt_old_archive_cmds
bf9f3bac 22551
8934764e
BB
22552# A language specific compiler.
22553CC=$lt_compiler
bf9f3bac 22554
8934764e
BB
22555# Is the compiler the GNU compiler?
22556with_gcc=$GCC
bf9f3bac 22557
8934764e
BB
22558# Compiler flag to turn off builtin functions.
22559no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
bf9f3bac 22560
8934764e
BB
22561# How to pass a linker flag through the compiler.
22562wl=$lt_lt_prog_compiler_wl
bf9f3bac 22563
8934764e
BB
22564# Additional compiler flags for building library objects.
22565pic_flag=$lt_lt_prog_compiler_pic
bf9f3bac 22566
8934764e
BB
22567# Compiler flag to prevent dynamic linking.
22568link_static_flag=$lt_lt_prog_compiler_static
bf9f3bac 22569
8934764e
BB
22570# Does compiler simultaneously support -c and -o options?
22571compiler_c_o=$lt_lt_cv_prog_compiler_c_o
bf9f3bac 22572
8934764e
BB
22573# Whether or not to add -lc for building shared libraries.
22574build_libtool_need_lc=$archive_cmds_need_lc
bf9f3bac 22575
8934764e
BB
22576# Whether or not to disallow shared libs when runtime libs are static.
22577allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
bf9f3bac 22578
8934764e
BB
22579# Compiler flag to allow reflexive dlopens.
22580export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
bf9f3bac 22581
8934764e
BB
22582# Compiler flag to generate shared objects directly from archives.
22583whole_archive_flag_spec=$lt_whole_archive_flag_spec
bf9f3bac 22584
8934764e
BB
22585# Whether the compiler copes with passing no objects directly.
22586compiler_needs_object=$lt_compiler_needs_object
bf9f3bac 22587
8934764e
BB
22588# Create an old-style archive from a shared archive.
22589old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
bf9f3bac 22590
8934764e
BB
22591# Create a temporary old-style archive to link instead of a shared archive.
22592old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
bf9f3bac 22593
8934764e
BB
22594# Commands used to build a shared archive.
22595archive_cmds=$lt_archive_cmds
22596archive_expsym_cmds=$lt_archive_expsym_cmds
bf9f3bac 22597
8934764e
BB
22598# Commands used to build a loadable module if different from building
22599# a shared archive.
22600module_cmds=$lt_module_cmds
22601module_expsym_cmds=$lt_module_expsym_cmds
bf9f3bac 22602
8934764e
BB
22603# Whether we are building with GNU ld or not.
22604with_gnu_ld=$lt_with_gnu_ld
bf9f3bac 22605
8934764e
BB
22606# Flag that allows shared libraries with undefined symbols to be built.
22607allow_undefined_flag=$lt_allow_undefined_flag
bf9f3bac 22608
8934764e
BB
22609# Flag that enforces no undefined symbols.
22610no_undefined_flag=$lt_no_undefined_flag
bf9f3bac 22611
8934764e
BB
22612# Flag to hardcode \$libdir into a binary during linking.
22613# This must work even if \$libdir does not exist
22614hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
bf9f3bac 22615
8934764e
BB
22616# If ld is used when linking, flag to hardcode \$libdir into a binary
22617# during linking. This must work even if \$libdir does not exist.
22618hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
bf9f3bac 22619
8934764e
BB
22620# Whether we need a single "-rpath" flag with a separated argument.
22621hardcode_libdir_separator=$lt_hardcode_libdir_separator
bf9f3bac 22622
8934764e
BB
22623# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22624# DIR into the resulting binary.
22625hardcode_direct=$hardcode_direct
bf9f3bac 22626
8934764e
BB
22627# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22628# DIR into the resulting binary and the resulting library dependency is
22629# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22630# library is relocated.
22631hardcode_direct_absolute=$hardcode_direct_absolute
bf9f3bac 22632
8934764e
BB
22633# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22634# into the resulting binary.
22635hardcode_minus_L=$hardcode_minus_L
bf9f3bac 22636
8934764e
BB
22637# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22638# into the resulting binary.
22639hardcode_shlibpath_var=$hardcode_shlibpath_var
bf9f3bac 22640
8934764e
BB
22641# Set to "yes" if building a shared library automatically hardcodes DIR
22642# into the library and all subsequent libraries and executables linked
22643# against it.
22644hardcode_automatic=$hardcode_automatic
bf9f3bac 22645
8934764e
BB
22646# Set to yes if linker adds runtime paths of dependent libraries
22647# to runtime path list.
22648inherit_rpath=$inherit_rpath
bf9f3bac 22649
8934764e
BB
22650# Whether libtool must link a program against all its dependency libraries.
22651link_all_deplibs=$link_all_deplibs
bf9f3bac 22652
8934764e
BB
22653# Fix the shell variable \$srcfile for the compiler.
22654fix_srcfile_path=$lt_fix_srcfile_path
bf9f3bac 22655
8934764e
BB
22656# Set to "yes" if exported symbols are required.
22657always_export_symbols=$always_export_symbols
bf9f3bac 22658
8934764e
BB
22659# The commands to list exported symbols.
22660export_symbols_cmds=$lt_export_symbols_cmds
bf9f3bac 22661
8934764e
BB
22662# Symbols that should not be listed in the preloaded symbols.
22663exclude_expsyms=$lt_exclude_expsyms
bf9f3bac 22664
8934764e
BB
22665# Symbols that must always be exported.
22666include_expsyms=$lt_include_expsyms
bf9f3bac 22667
8934764e
BB
22668# Commands necessary for linking programs (against libraries) with templates.
22669prelink_cmds=$lt_prelink_cmds
bf9f3bac 22670
8934764e
BB
22671# Specify filename containing input files.
22672file_list_spec=$lt_file_list_spec
bf9f3bac 22673
8934764e
BB
22674# How to hardcode a shared library path into an executable.
22675hardcode_action=$hardcode_action
bf9f3bac 22676
8934764e
BB
22677# ### END LIBTOOL CONFIG
22678
22679_LT_EOF
22680
22681 case $host_os in
22682 aix3*)
22683 cat <<\_LT_EOF >> "$cfgfile"
22684# AIX sometimes has problems with the GCC collect2 program. For some
22685# reason, if we set the COLLECT_NAMES environment variable, the problems
22686# vanish in a puff of smoke.
22687if test "X${COLLECT_NAMES+set}" != Xset; then
22688 COLLECT_NAMES=
22689 export COLLECT_NAMES
bf9f3bac 22690fi
8934764e
BB
22691_LT_EOF
22692 ;;
22693 esac
bf9f3bac 22694
bf9f3bac 22695
8934764e 22696ltmain="$ac_aux_dir/ltmain.sh"
bf9f3bac 22697
bf9f3bac 22698
8934764e
BB
22699 # We use sed instead of cat because bash on DJGPP gets confused if
22700 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22701 # text mode, it properly converts lines to CR/LF. This bash problem
22702 # is reportedly fixed, but why not run on old versions too?
22703 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22704 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 22705
8934764e
BB
22706 case $xsi_shell in
22707 yes)
22708 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22709
8934764e
BB
22710# func_dirname file append nondir_replacement
22711# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22712# otherwise set result to NONDIR_REPLACEMENT.
22713func_dirname ()
22714{
22715 case ${1} in
22716 */*) func_dirname_result="${1%/*}${2}" ;;
22717 * ) func_dirname_result="${3}" ;;
bf9f3bac 22718 esac
8934764e 22719}
bf9f3bac 22720
8934764e
BB
22721# func_basename file
22722func_basename ()
22723{
22724 func_basename_result="${1##*/}"
22725}
bf9f3bac 22726
8934764e
BB
22727# func_dirname_and_basename file append nondir_replacement
22728# perform func_basename and func_dirname in a single function
22729# call:
22730# dirname: Compute the dirname of FILE. If nonempty,
22731# add APPEND to the result, otherwise set result
22732# to NONDIR_REPLACEMENT.
22733# value returned in "$func_dirname_result"
22734# basename: Compute filename of FILE.
22735# value retuned in "$func_basename_result"
22736# Implementation must be kept synchronized with func_dirname
22737# and func_basename. For efficiency, we do not delegate to
22738# those functions but instead duplicate the functionality here.
22739func_dirname_and_basename ()
bf9f3bac 22740{
8934764e
BB
22741 case ${1} in
22742 */*) func_dirname_result="${1%/*}${2}" ;;
22743 * ) func_dirname_result="${3}" ;;
22744 esac
22745 func_basename_result="${1##*/}"
bf9f3bac 22746}
22747
8934764e
BB
22748# func_stripname prefix suffix name
22749# strip PREFIX and SUFFIX off of NAME.
22750# PREFIX and SUFFIX must not contain globbing or regex special
22751# characters, hashes, percent signs, but SUFFIX may contain a leading
22752# dot (in which case that matches only a dot).
22753func_stripname ()
22754{
22755 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22756 # positional parameters, so assign one to ordinary parameter first.
22757 func_stripname_result=${3}
22758 func_stripname_result=${func_stripname_result#"${1}"}
22759 func_stripname_result=${func_stripname_result%"${2}"}
22760}
bf9f3bac 22761
8934764e
BB
22762# func_opt_split
22763func_opt_split ()
bf9f3bac 22764{
8934764e
BB
22765 func_opt_split_opt=${1%%=*}
22766 func_opt_split_arg=${1#*=}
22767}
22768
22769# func_lo2o object
22770func_lo2o ()
bf9f3bac 22771{
8934764e
BB
22772 case ${1} in
22773 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22774 *) func_lo2o_result=${1} ;;
22775 esac
22776}
22777
22778# func_xform libobj-or-source
22779func_xform ()
bf9f3bac 22780{
8934764e 22781 func_xform_result=${1%.*}.lo
bf9f3bac 22782}
22783
8934764e
BB
22784# func_arith arithmetic-term...
22785func_arith ()
22786{
22787 func_arith_result=$(( $* ))
22788}
bf9f3bac 22789
8934764e
BB
22790# func_len string
22791# STRING may not start with a hyphen.
22792func_len ()
22793{
22794 func_len_result=${#1}
22795}
bf9f3bac 22796
8934764e
BB
22797_LT_EOF
22798 ;;
22799 *) # Bourne compatible functions.
22800 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22801
8934764e
BB
22802# func_dirname file append nondir_replacement
22803# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22804# otherwise set result to NONDIR_REPLACEMENT.
22805func_dirname ()
22806{
22807 # Extract subdirectory from the argument.
22808 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22809 if test "X$func_dirname_result" = "X${1}"; then
22810 func_dirname_result="${3}"
22811 else
22812 func_dirname_result="$func_dirname_result${2}"
bf9f3bac 22813 fi
8934764e 22814}
bf9f3bac 22815
8934764e
BB
22816# func_basename file
22817func_basename ()
22818{
22819 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22820}
bf9f3bac 22821
bf9f3bac 22822
8934764e
BB
22823# func_stripname prefix suffix name
22824# strip PREFIX and SUFFIX off of NAME.
22825# PREFIX and SUFFIX must not contain globbing or regex special
22826# characters, hashes, percent signs, but SUFFIX may contain a leading
22827# dot (in which case that matches only a dot).
22828# func_strip_suffix prefix name
22829func_stripname ()
22830{
22831 case ${2} in
22832 .*) func_stripname_result=`$ECHO "X${3}" \
22833 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22834 *) func_stripname_result=`$ECHO "X${3}" \
22835 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22836 esac
22837}
bf9f3bac 22838
8934764e
BB
22839# sed scripts:
22840my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22841my_sed_long_arg='1s/^-[^=]*=//'
bf9f3bac 22842
8934764e
BB
22843# func_opt_split
22844func_opt_split ()
22845{
22846 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22847 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22848}
bf9f3bac 22849
8934764e
BB
22850# func_lo2o object
22851func_lo2o ()
22852{
22853 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22854}
bf9f3bac 22855
8934764e
BB
22856# func_xform libobj-or-source
22857func_xform ()
22858{
22859 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22860}
bf9f3bac 22861
8934764e
BB
22862# func_arith arithmetic-term...
22863func_arith ()
22864{
22865 func_arith_result=`expr "$@"`
22866}
bf9f3bac 22867
8934764e
BB
22868# func_len string
22869# STRING may not start with a hyphen.
22870func_len ()
22871{
22872 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22873}
bf9f3bac 22874
8934764e
BB
22875_LT_EOF
22876esac
bf9f3bac 22877
8934764e
BB
22878case $lt_shell_append in
22879 yes)
22880 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22881
8934764e
BB
22882# func_append var value
22883# Append VALUE to the end of shell variable VAR.
22884func_append ()
22885{
22886 eval "$1+=\$2"
22887}
22888_LT_EOF
22889 ;;
22890 *)
22891 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22892
8934764e
BB
22893# func_append var value
22894# Append VALUE to the end of shell variable VAR.
22895func_append ()
22896{
22897 eval "$1=\$$1\$2"
22898}
bf9f3bac 22899
8934764e
BB
22900_LT_EOF
22901 ;;
16b719f0 22902 esac
bf9f3bac 22903
bf9f3bac 22904
8934764e
BB
22905 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22906 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 22907
8934764e
BB
22908 mv -f "$cfgfile" "$ofile" ||
22909 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22910 chmod +x "$ofile"
bf9f3bac 22911
bf9f3bac 22912 ;;
8934764e 22913
bf9f3bac 22914 esac
8934764e 22915done # for ac_tag
bf9f3bac 22916
bf9f3bac 22917
22918{ (exit 0); exit 0; }
22919_ACEOF
22920chmod +x $CONFIG_STATUS
22921ac_clean_files=$ac_clean_files_save
22922
8934764e
BB
22923test $ac_write_fail = 0 ||
22924 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22925$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22926 { (exit 1); exit 1; }; }
22927
bf9f3bac 22928
22929# configure is writing to config.log, and then calls config.status.
22930# config.status does its own redirection, appending to config.log.
22931# Unfortunately, on DOS this fails, as config.log is still kept open
22932# by configure, so config.status won't be able to write to it; its
22933# output is simply discarded. So we exec the FD to /dev/null,
22934# effectively closing config.log, so it can be properly (re)opened and
22935# appended to by config.status. When coming back to configure, we
22936# need to make the FD available again.
22937if test "$no_create" != yes; then
22938 ac_cs_success=:
22939 ac_config_status_args=
22940 test "$silent" = yes &&
22941 ac_config_status_args="$ac_config_status_args --quiet"
22942 exec 5>/dev/null
22943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22944 exec 5>>config.log
22945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22946 # would make configure fail if this is the last instruction.
22947 $ac_cs_success || { (exit 1); exit 1; }
22948fi
8934764e
BB
22949if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22950 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22951$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22952fi
bf9f3bac 22953