]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
Add make rule for building Arch Linux packages
[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
287b2fb1 802DEFAULT_PACKAGE
73fc084e 803VENDOR
c2dceb5c
PS
804MAKEPKG_VERSION
805MAKEPKG
806HAVE_MAKEPKG
807PACMAN_VERSION
808PACMAN
809HAVE_PACMAN
287b2fb1
BB
810ALIEN_VERSION
811ALIEN
812HAVE_ALIEN
813DPKGBUILD_VERSION
814DPKGBUILD
815HAVE_DPKGBUILD
816DPKG_VERSION
817DPKG
818HAVE_DPKG
819RPMBUILD_VERSION
820RPMBUILD
821HAVE_RPMBUILD
822RPM_VERSION
823RPM
824HAVE_RPM
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
964enable_debug_kmem
965enable_debug_kmem_tracking
966enable_atomic_spinlocks
967'
968 ac_precious_vars='build_alias
969host_alias
970target_alias
971CC
972CFLAGS
973LDFLAGS
974LIBS
975CPPFLAGS
976CPP'
977
bf9f3bac 978
979# Initialize some variables set by options.
980ac_init_help=
981ac_init_version=false
8934764e
BB
982ac_unrecognized_opts=
983ac_unrecognized_sep=
bf9f3bac 984# The variables have the same names as the options, with
985# dashes changed to underlines.
986cache_file=/dev/null
987exec_prefix=NONE
988no_create=
989no_recursion=
990prefix=NONE
991program_prefix=NONE
992program_suffix=NONE
993program_transform_name=s,x,x,
994silent=
995site=
996srcdir=
997verbose=
998x_includes=NONE
999x_libraries=NONE
1000
1001# Installation directory options.
1002# These are left unexpanded so users can "make install exec_prefix=/foo"
1003# and all the variables that are supposed to be based on exec_prefix
1004# by default will actually change.
1005# Use braces instead of parens because sh, perl, etc. also accept them.
8934764e 1006# (The list follows the same order as the GNU Coding Standards.)
bf9f3bac 1007bindir='${exec_prefix}/bin'
1008sbindir='${exec_prefix}/sbin'
1009libexecdir='${exec_prefix}/libexec'
8934764e
BB
1010datarootdir='${prefix}/share'
1011datadir='${datarootdir}'
bf9f3bac 1012sysconfdir='${prefix}/etc'
1013sharedstatedir='${prefix}/com'
1014localstatedir='${prefix}/var'
bf9f3bac 1015includedir='${prefix}/include'
1016oldincludedir='/usr/include'
8934764e
BB
1017docdir='${datarootdir}/doc/${PACKAGE}'
1018infodir='${datarootdir}/info'
1019htmldir='${docdir}'
1020dvidir='${docdir}'
1021pdfdir='${docdir}'
1022psdir='${docdir}'
1023libdir='${exec_prefix}/lib'
1024localedir='${datarootdir}/locale'
1025mandir='${datarootdir}/man'
bf9f3bac 1026
1027ac_prev=
8934764e 1028ac_dashdash=
bf9f3bac 1029for ac_option
1030do
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
8934764e 1033 eval $ac_prev=\$ac_option
bf9f3bac 1034 ac_prev=
1035 continue
1036 fi
1037
8934764e
BB
1038 case $ac_option in
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 *) ac_optarg=yes ;;
1041 esac
bf9f3bac 1042
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1044
8934764e
BB
1045 case $ac_dashdash$ac_option in
1046 --)
1047 ac_dashdash=yes ;;
bf9f3bac 1048
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 ac_prev=bindir ;;
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1053
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1058
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1065
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1068
8934764e 1069 -datadir | --datadir | --datadi | --datad)
bf9f3bac 1070 ac_prev=datadir ;;
8934764e 1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bf9f3bac 1072 datadir=$ac_optarg ;;
1073
8934764e
BB
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1080
bf9f3bac 1081 -disable-* | --disable-*)
8934764e 1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bf9f3bac 1083 # Reject names that are not valid shell variable names.
8934764e
BB
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1086 { (exit 1); exit 1; }; }
8934764e
BB
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091"enable_$ac_useropt"
1092"*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=no ;;
1097
1098 -docdir | --docdir | --docdi | --doc | --do)
1099 ac_prev=docdir ;;
1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101 docdir=$ac_optarg ;;
1102
1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104 ac_prev=dvidir ;;
1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106 dvidir=$ac_optarg ;;
bf9f3bac 1107
1108 -enable-* | --enable-*)
8934764e 1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bf9f3bac 1110 # Reject names that are not valid shell variable names.
8934764e
BB
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1113 { (exit 1); exit 1; }; }
8934764e
BB
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118"enable_$ac_useropt"
1119"*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
bf9f3bac 1122 esac
8934764e 1123 eval enable_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1124
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1133
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1136 with_gas=yes ;;
1137
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1144
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1149
8934764e
BB
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151 ac_prev=htmldir ;;
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153 | --ht=*)
1154 htmldir=$ac_optarg ;;
1155
bf9f3bac 1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1162
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1164 ac_prev=infodir ;;
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1167
1168 -libdir | --libdir | --libdi | --libd)
1169 ac_prev=libdir ;;
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1172
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1179
8934764e
BB
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1184
bf9f3bac 1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
8934764e 1186 | --localstate | --localstat | --localsta | --localst | --locals)
bf9f3bac 1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8934764e 1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bf9f3bac 1190 localstatedir=$ac_optarg ;;
1191
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193 ac_prev=mandir ;;
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1196
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1199 with_fp=no ;;
1200
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1203 no_create=yes ;;
1204
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207 no_recursion=yes ;;
1208
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1217
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219 ac_prev=prefix ;;
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1222
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1229
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1236
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1253
8934764e
BB
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255 ac_prev=pdfdir ;;
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1258
1259 -psdir | --psdir | --psdi | --psd | --ps)
1260 ac_prev=psdir ;;
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262 psdir=$ac_optarg ;;
1263
bf9f3bac 1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1266 silent=yes ;;
1267
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 ac_prev=sbindir ;;
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 | --sbi=* | --sb=*)
1272 sbindir=$ac_optarg ;;
1273
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1277 | --sha | --sh)
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 | --sha=* | --sh=*)
1283 sharedstatedir=$ac_optarg ;;
1284
1285 -site | --site | --sit)
1286 ac_prev=site ;;
1287 -site=* | --site=* | --sit=*)
1288 site=$ac_optarg ;;
1289
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 ac_prev=srcdir ;;
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1294
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1301
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1306
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308 verbose=yes ;;
1309
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1312
1313 -with-* | --with-*)
8934764e 1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bf9f3bac 1315 # Reject names that are not valid shell variable names.
8934764e
BB
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1318 { (exit 1); exit 1; }; }
8934764e
BB
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323"with_$ac_useropt"
1324"*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
bf9f3bac 1327 esac
8934764e 1328 eval with_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1329
1330 -without-* | --without-*)
8934764e 1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bf9f3bac 1332 # Reject names that are not valid shell variable names.
8934764e
BB
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1335 { (exit 1); exit 1; }; }
8934764e
BB
1336 ac_useropt_orig=$ac_useropt
1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1339 *"
1340"with_$ac_useropt"
1341"*) ;;
1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1344 esac
1345 eval with_$ac_useropt=no ;;
bf9f3bac 1346
1347 --x)
1348 # Obsolete; use --with-x.
1349 with_x=yes ;;
1350
1351 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352 | --x-incl | --x-inc | --x-in | --x-i)
1353 ac_prev=x_includes ;;
1354 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356 x_includes=$ac_optarg ;;
1357
1358 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360 ac_prev=x_libraries ;;
1361 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363 x_libraries=$ac_optarg ;;
1364
8934764e 1365 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
bf9f3bac 1366Try \`$0 --help' for more information." >&2
1367 { (exit 1); exit 1; }; }
1368 ;;
1369
1370 *=*)
1371 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8934764e 1374 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
bf9f3bac 1375 { (exit 1); exit 1; }; }
8934764e 1376 eval $ac_envvar=\$ac_optarg
bf9f3bac 1377 export $ac_envvar ;;
1378
1379 *)
1380 # FIXME: should be removed in autoconf 3.0.
8934764e 1381 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bf9f3bac 1382 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8934764e 1383 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bf9f3bac 1384 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1385 ;;
1386
1387 esac
1388done
1389
1390if test -n "$ac_prev"; then
1391 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8934764e 1392 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
bf9f3bac 1393 { (exit 1); exit 1; }; }
1394fi
1395
8934764e
BB
1396if test -n "$ac_unrecognized_opts"; then
1397 case $enable_option_checking in
1398 no) ;;
1399 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1400 { (exit 1); exit 1; }; } ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bf9f3bac 1402 esac
8934764e 1403fi
bf9f3bac 1404
8934764e
BB
1405# Check all directory arguments for consistency.
1406for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
bf9f3bac 1410do
8934764e
BB
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
bf9f3bac 1413 case $ac_val in
8934764e
BB
1414 */ )
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
bf9f3bac 1417 esac
8934764e
BB
1418 # Be sure to have absolute directory names.
1419 case $ac_val in
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422 esac
1423 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1424 { (exit 1); exit 1; }; }
bf9f3bac 1425done
1426
1427# There might be people who depend on the old broken behavior: `$host'
1428# used to hold the argument of --host etc.
1429# FIXME: To remove some day.
1430build=$build_alias
1431host=$host_alias
1432target=$target_alias
1433
1434# FIXME: To remove some day.
1435if test "x$host_alias" != x; then
1436 if test "x$build_alias" = x; then
1437 cross_compiling=maybe
8934764e 1438 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bf9f3bac 1439 If a cross compiler is detected then cross compile mode will be used." >&2
1440 elif test "x$build_alias" != "x$host_alias"; then
1441 cross_compiling=yes
1442 fi
1443fi
1444
1445ac_tool_prefix=
1446test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447
1448test "$silent" = yes && exec 6>/dev/null
1449
1450
8934764e
BB
1451ac_pwd=`pwd` && test -n "$ac_pwd" &&
1452ac_ls_di=`ls -di .` &&
1453ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1454 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1455 { (exit 1); exit 1; }; }
1456test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1458 { (exit 1); exit 1; }; }
1459
1460
bf9f3bac 1461# Find the source files, if location was not specified.
1462if test -z "$srcdir"; then
1463 ac_srcdir_defaulted=yes
8934764e
BB
1464 # Try the directory containing this script, then the parent directory.
1465 ac_confdir=`$as_dirname -- "$as_myself" ||
1466$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467 X"$as_myself" : 'X\(//\)[^/]' \| \
1468 X"$as_myself" : 'X\(//\)$' \| \
1469 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470$as_echo X"$as_myself" |
1471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 s//\1/
1473 q
1474 }
1475 /^X\(\/\/\)[^/].*/{
1476 s//\1/
1477 q
1478 }
1479 /^X\(\/\/\)$/{
1480 s//\1/
1481 q
1482 }
1483 /^X\(\/\).*/{
1484 s//\1/
1485 q
1486 }
1487 s/.*/./; q'`
bf9f3bac 1488 srcdir=$ac_confdir
8934764e 1489 if test ! -r "$srcdir/$ac_unique_file"; then
bf9f3bac 1490 srcdir=..
1491 fi
1492else
1493 ac_srcdir_defaulted=no
1494fi
8934764e
BB
1495if test ! -r "$srcdir/$ac_unique_file"; then
1496 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bf9f3bac 1498 { (exit 1); exit 1; }; }
bf9f3bac 1499fi
8934764e
BB
1500ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1501ac_abs_confdir=`(
1502 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
bf9f3bac 1503 { (exit 1); exit 1; }; }
8934764e
BB
1504 pwd)`
1505# When building in place, set srcdir=.
1506if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1508fi
1509# Remove unnecessary trailing slashes from srcdir.
1510# Double slashes in file names in object file debugging info
1511# mess up M-x gdb in Emacs.
1512case $srcdir in
1513*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514esac
1515for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520done
bf9f3bac 1521
1522#
1523# Report the --help message.
1524#
1525if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
1529\`configure' configures this package to adapt to many kinds of systems.
1530
1531Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534VAR=VALUE. See below for descriptions of some of the useful variables.
1535
1536Defaults for the options are specified in brackets.
1537
1538Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1548
bf9f3bac 1549Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
8934764e 1551 [$ac_default_prefix]
bf9f3bac 1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8934764e 1553 [PREFIX]
bf9f3bac 1554
1555By default, \`make install' will install all the files in
1556\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558for instance \`--prefix=\$HOME'.
1559
1560For better control, use the options below.
1561
1562Fine tuning of the installation directories:
8934764e
BB
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
bf9f3bac 1582_ACEOF
1583
1584 cat <<\_ACEOF
1585
1586Program names:
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1590
1591System types:
1592 --build=BUILD configure for building on BUILD [guessed]
1593 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1594 --target=TARGET configure for building compilers for TARGET [HOST]
1595_ACEOF
1596fi
1597
1598if test -n "$ac_init_help"; then
1599
1600 cat <<\_ACEOF
1601
1602Optional Features:
8934764e 1603 --disable-option-checking ignore unrecognized --enable/--with options
bf9f3bac 1604 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1605 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1606 --enable-maintainer-mode enable make rules and dependencies not useful
1607 (and sometimes confusing) to the casual installer
8934764e
BB
1608 --enable-silent-rules less verbose build output (undo: `make V=1')
1609 --disable-silent-rules verbose build output (undo: `make V=0')
bf9f3bac 1610 --disable-dependency-tracking speeds up one-time build
1611 --enable-dependency-tracking do not reject slow dependency extractors
8934764e
BB
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
bf9f3bac 1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
055ffd98
BB
1617 --enable-debug Enable generic debug support [default=no]
1618 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1619 --enable-debug-kmem-tracking
1620 Enable detailed kmem tracking [default=no]
5e9b5d83 1621 --enable-atomic-spinlocks
d04c8a56 1622 Atomic types use spinlocks [default=check]
bf9f3bac 1623
1624Optional Packages:
1625 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1626 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bf9f3bac 1627 --with-pic try to use only PIC/non-PIC objects [default=use
1628 both]
8934764e 1629 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
c1541dfe 1630 --with-config=CONFIG Config file 'kernel|user|all|srpm'
bf9f3bac 1631 --with-linux=PATH Path to kernel source
1632 --with-linux-obj=PATH Path to kernel build objects
1633
1634Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
8934764e
BB
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
bf9f3bac 1642 CPP C preprocessor
bf9f3bac 1643
1644Use these variables to override the choices made by `configure' or to help
1645it to find libraries and programs with nonstandard names/locations.
1646
1647_ACEOF
8934764e 1648ac_status=$?
bf9f3bac 1649fi
1650
1651if test "$ac_init_help" = "recursive"; then
1652 # If there are subdirs, report their specific --help.
bf9f3bac 1653 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8934764e
BB
1654 test -d "$ac_dir" ||
1655 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1656 continue
bf9f3bac 1657 ac_builddir=.
1658
8934764e
BB
1659case "$ac_dir" in
1660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661*)
1662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1663 # A ".." for each directory in $ac_dir_suffix.
1664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1665 case $ac_top_builddir_sub in
1666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 esac ;;
1669esac
1670ac_abs_top_builddir=$ac_pwd
1671ac_abs_builddir=$ac_pwd$ac_dir_suffix
1672# for backward compatibility:
1673ac_top_builddir=$ac_top_build_prefix
bf9f3bac 1674
1675case $srcdir in
8934764e 1676 .) # We are building in place.
bf9f3bac 1677 ac_srcdir=.
8934764e
BB
1678 ac_top_srcdir=$ac_top_builddir_sub
1679 ac_abs_top_srcdir=$ac_pwd ;;
1680 [\\/]* | ?:[\\/]* ) # Absolute name.
bf9f3bac 1681 ac_srcdir=$srcdir$ac_dir_suffix;
8934764e
BB
1682 ac_top_srcdir=$srcdir
1683 ac_abs_top_srcdir=$srcdir ;;
1684 *) # Relative name.
1685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1686 ac_top_srcdir=$ac_top_build_prefix$srcdir
1687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bf9f3bac 1688esac
8934764e
BB
1689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690
1691 cd "$ac_dir" || { ac_status=$?; continue; }
1692 # Check for guested configure.
1693 if test -f "$ac_srcdir/configure.gnu"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1696 elif test -f "$ac_srcdir/configure"; then
1697 echo &&
1698 $SHELL "$ac_srcdir/configure" --help=recursive
bf9f3bac 1699 else
8934764e
BB
1700 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 fi || ac_status=$?
1702 cd "$ac_pwd" || { ac_status=$?; break; }
bf9f3bac 1703 done
1704fi
1705
8934764e 1706test -n "$ac_init_help" && exit $ac_status
bf9f3bac 1707if $ac_init_version; then
1708 cat <<\_ACEOF
8934764e
BB
1709configure
1710generated by GNU Autoconf 2.63
bf9f3bac 1711
8934764e
BB
1712Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17132002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
bf9f3bac 1714This configure script is free software; the Free Software Foundation
1715gives unlimited permission to copy, distribute and modify it.
1716_ACEOF
8934764e 1717 exit
bf9f3bac 1718fi
8934764e 1719cat >config.log <<_ACEOF
bf9f3bac 1720This file contains any messages produced by compilers while
1721running configure, to aid debugging if configure makes a mistake.
1722
1723It was created by $as_me, which was
8934764e 1724generated by GNU Autoconf 2.63. Invocation command line was
bf9f3bac 1725
1726 $ $0 $@
1727
1728_ACEOF
8934764e 1729exec 5>>config.log
bf9f3bac 1730{
1731cat <<_ASUNAME
1732## --------- ##
1733## Platform. ##
1734## --------- ##
1735
1736hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1737uname -m = `(uname -m) 2>/dev/null || echo unknown`
1738uname -r = `(uname -r) 2>/dev/null || echo unknown`
1739uname -s = `(uname -s) 2>/dev/null || echo unknown`
1740uname -v = `(uname -v) 2>/dev/null || echo unknown`
1741
1742/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1743/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1744
1745/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1746/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1747/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
8934764e 1748/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
bf9f3bac 1749/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1750/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1751/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1752
1753_ASUNAME
1754
1755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756for as_dir in $PATH
1757do
1758 IFS=$as_save_IFS
1759 test -z "$as_dir" && as_dir=.
8934764e 1760 $as_echo "PATH: $as_dir"
bf9f3bac 1761done
8934764e 1762IFS=$as_save_IFS
bf9f3bac 1763
1764} >&5
1765
1766cat >&5 <<_ACEOF
1767
1768
1769## ----------- ##
1770## Core tests. ##
1771## ----------- ##
1772
1773_ACEOF
1774
1775
1776# Keep a trace of the command line.
1777# Strip out --no-create and --no-recursion so they do not pile up.
1778# Strip out --silent because we don't want to record it for future runs.
1779# Also quote any args containing shell meta-characters.
1780# Make two passes to allow for proper duplicate-argument suppression.
1781ac_configure_args=
1782ac_configure_args0=
1783ac_configure_args1=
bf9f3bac 1784ac_must_keep_next=false
1785for ac_pass in 1 2
1786do
1787 for ac_arg
1788 do
1789 case $ac_arg in
1790 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1791 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1792 | -silent | --silent | --silen | --sile | --sil)
1793 continue ;;
8934764e
BB
1794 *\'*)
1795 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 1796 esac
1797 case $ac_pass in
1798 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1799 2)
1800 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1801 if test $ac_must_keep_next = true; then
1802 ac_must_keep_next=false # Got value, back to normal.
1803 else
1804 case $ac_arg in
1805 *=* | --config-cache | -C | -disable-* | --disable-* \
1806 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1807 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1808 | -with-* | --with-* | -without-* | --without-* | --x)
1809 case "$ac_configure_args0 " in
1810 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1811 esac
1812 ;;
1813 -* ) ac_must_keep_next=true ;;
1814 esac
1815 fi
8934764e 1816 ac_configure_args="$ac_configure_args '$ac_arg'"
bf9f3bac 1817 ;;
1818 esac
1819 done
1820done
1821$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1822$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1823
1824# When interrupted or exit'd, cleanup temporary files, and complete
1825# config.log. We remove comments because anyway the quotes in there
1826# would cause problems or look ugly.
8934764e
BB
1827# WARNING: Use '\'' to represent an apostrophe within the trap.
1828# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bf9f3bac 1829trap 'exit_status=$?
1830 # Save into config.log some information that might help in debugging.
1831 {
1832 echo
1833
1834 cat <<\_ASBOX
1835## ---------------- ##
1836## Cache variables. ##
1837## ---------------- ##
1838_ASBOX
1839 echo
1840 # The following way of writing the cache mishandles newlines in values,
8934764e
BB
1841(
1842 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1843 eval ac_val=\$$ac_var
1844 case $ac_val in #(
1845 *${as_nl}*)
1846 case $ac_var in #(
1847 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1848$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1849 esac
1850 case $ac_var in #(
1851 _ | IFS | as_nl) ;; #(
1852 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1853 *) $as_unset $ac_var ;;
1854 esac ;;
1855 esac
1856 done
bf9f3bac 1857 (set) 2>&1 |
8934764e
BB
1858 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1859 *${as_nl}ac_space=\ *)
bf9f3bac 1860 sed -n \
8934764e
BB
1861 "s/'\''/'\''\\\\'\'''\''/g;
1862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1863 ;; #(
bf9f3bac 1864 *)
8934764e 1865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bf9f3bac 1866 ;;
8934764e
BB
1867 esac |
1868 sort
1869)
bf9f3bac 1870 echo
1871
1872 cat <<\_ASBOX
1873## ----------------- ##
1874## Output variables. ##
1875## ----------------- ##
1876_ASBOX
1877 echo
1878 for ac_var in $ac_subst_vars
1879 do
8934764e
BB
1880 eval ac_val=\$$ac_var
1881 case $ac_val in
1882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1883 esac
1884 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1885 done | sort
1886 echo
1887
1888 if test -n "$ac_subst_files"; then
1889 cat <<\_ASBOX
8934764e
BB
1890## ------------------- ##
1891## File substitutions. ##
1892## ------------------- ##
bf9f3bac 1893_ASBOX
1894 echo
1895 for ac_var in $ac_subst_files
1896 do
8934764e
BB
1897 eval ac_val=\$$ac_var
1898 case $ac_val in
1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900 esac
1901 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1902 done | sort
1903 echo
1904 fi
1905
1906 if test -s confdefs.h; then
1907 cat <<\_ASBOX
1908## ----------- ##
1909## confdefs.h. ##
1910## ----------- ##
1911_ASBOX
1912 echo
8934764e 1913 cat confdefs.h
bf9f3bac 1914 echo
1915 fi
1916 test "$ac_signal" != 0 &&
8934764e
BB
1917 $as_echo "$as_me: caught signal $ac_signal"
1918 $as_echo "$as_me: exit $exit_status"
bf9f3bac 1919 } >&5
8934764e
BB
1920 rm -f core *.core core.conftest.* &&
1921 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bf9f3bac 1922 exit $exit_status
8934764e 1923' 0
bf9f3bac 1924for ac_signal in 1 2 13 15; do
1925 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1926done
1927ac_signal=0
1928
1929# confdefs.h avoids OS command line length limits that DEFS can exceed.
8934764e 1930rm -f -r conftest* confdefs.h
bf9f3bac 1931
1932# Predefined preprocessor variables.
1933
1934cat >>confdefs.h <<_ACEOF
1935#define PACKAGE_NAME "$PACKAGE_NAME"
1936_ACEOF
1937
1938
1939cat >>confdefs.h <<_ACEOF
1940#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1941_ACEOF
1942
1943
1944cat >>confdefs.h <<_ACEOF
1945#define PACKAGE_VERSION "$PACKAGE_VERSION"
1946_ACEOF
1947
1948
1949cat >>confdefs.h <<_ACEOF
1950#define PACKAGE_STRING "$PACKAGE_STRING"
1951_ACEOF
1952
1953
1954cat >>confdefs.h <<_ACEOF
1955#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1956_ACEOF
1957
1958
1959# Let the site file select an alternate cache file if it wants to.
8934764e
BB
1960# Prefer an explicitly selected file to automatically selected ones.
1961ac_site_file1=NONE
1962ac_site_file2=NONE
1963if test -n "$CONFIG_SITE"; then
1964 ac_site_file1=$CONFIG_SITE
1965elif test "x$prefix" != xNONE; then
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1968else
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1971fi
1972for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1973do
1974 test "x$ac_site_file" = xNONE && continue
bf9f3bac 1975 if test -r "$ac_site_file"; then
8934764e
BB
1976 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bf9f3bac 1978 sed 's/^/| /' "$ac_site_file" >&5
1979 . "$ac_site_file"
1980 fi
1981done
1982
1983if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special
1985 # files actually), so we avoid doing that.
1986 if test -f "$cache_file"; then
8934764e
BB
1987 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1988$as_echo "$as_me: loading cache $cache_file" >&6;}
bf9f3bac 1989 case $cache_file in
8934764e
BB
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
bf9f3bac 1992 esac
1993 fi
1994else
8934764e
BB
1995 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1996$as_echo "$as_me: creating cache $cache_file" >&6;}
bf9f3bac 1997 >$cache_file
1998fi
1999
2000# Check that the precious variables saved in the cache have kept the same
2001# value.
2002ac_cache_corrupted=false
8934764e 2003for ac_var in $ac_precious_vars; do
bf9f3bac 2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
8934764e
BB
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
bf9f3bac 2008 case $ac_old_set,$ac_new_set in
2009 set,)
8934764e
BB
2010 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bf9f3bac 2012 ac_cache_corrupted=: ;;
2013 ,set)
8934764e
BB
2014 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2015$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bf9f3bac 2016 ac_cache_corrupted=: ;;
2017 ,);;
2018 *)
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
8934764e
BB
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2025$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2027 else
2028 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2031 fi
2032 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2033$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2035$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bf9f3bac 2036 fi;;
2037 esac
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2040 case $ac_new_val in
8934764e 2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 2042 *) ac_arg=$ac_var=$ac_new_val ;;
2043 esac
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2047 esac
2048 fi
2049done
2050if $ac_cache_corrupted; then
8934764e
BB
2051 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2054$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2056$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
bf9f3bac 2057 { (exit 1); exit 1; }; }
2058fi
2059
bf9f3bac 2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
8934764e
BB
2076ac_ext=c
2077ac_cpp='$CPP $CPPFLAGS'
2078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 2081
2082
0c617c9a
BB
2083ac_ext=c
2084ac_cpp='$CPP $CPPFLAGS'
2085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088
2089
8934764e
BB
2090 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2091$as_echo_n "checking metadata... " >&6; }
dd529a30 2092
2093 META="$srcdir/META"
2094 _spl_ac_meta_got_file=no
2095 if test -f "$META"; then
2096 _spl_ac_meta_got_file=yes
2097
abc3ca14 2098 SPL_META_NAME=`perl -n\
dd529a30 2099 -e "BEGIN { \\$key=shift @ARGV; }"\
2100 -e "next unless s/^\s*\\$key[:=]//i;"\
2101 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2102 -e "s/^\s+//;"\
2103 -e "s/\s+$//;"\
2104 -e "s/^(['\"])(.*)\1/\\$2/;"\
2105 -e "\\$val=\\$_;"\
2106 -e "END { print \\$val if defined \\$val; }"\
2107 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 2108 if test -n "$SPL_META_NAME"; then
dd529a30 2109
2110cat >>confdefs.h <<_ACEOF
abc3ca14 2111#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 2112_ACEOF
2113
2114
2115 fi
2116
abc3ca14 2117 SPL_META_VERSION=`perl -n\
dd529a30 2118 -e "BEGIN { \\$key=shift @ARGV; }"\
2119 -e "next unless s/^\s*\\$key[:=]//i;"\
2120 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2121 -e "s/^\s+//;"\
2122 -e "s/\s+$//;"\
2123 -e "s/^(['\"])(.*)\1/\\$2/;"\
2124 -e "\\$val=\\$_;"\
2125 -e "END { print \\$val if defined \\$val; }"\
2126 'VERSION' $META`;
abc3ca14 2127 if test -n "$SPL_META_VERSION"; then
dd529a30 2128
2129cat >>confdefs.h <<_ACEOF
abc3ca14 2130#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 2131_ACEOF
2132
2133
2134 fi
2135
abc3ca14 2136 SPL_META_RELEASE=`perl -n\
dd529a30 2137 -e "BEGIN { \\$key=shift @ARGV; }"\
2138 -e "next unless s/^\s*\\$key[:=]//i;"\
2139 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2140 -e "s/^\s+//;"\
2141 -e "s/\s+$//;"\
2142 -e "s/^(['\"])(.*)\1/\\$2/;"\
2143 -e "\\$val=\\$_;"\
2144 -e "END { print \\$val if defined \\$val; }"\
2145 'RELEASE' $META`;
abc3ca14 2146 if test -n "$SPL_META_RELEASE"; then
dd529a30 2147
2148cat >>confdefs.h <<_ACEOF
abc3ca14 2149#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 2150_ACEOF
2151
2152
2153 fi
2154
abc3ca14 2155 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 2156 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 2157 test -n "$SPL_META_RELEASE" &&
72e7de60 2158 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 2159
2160cat >>confdefs.h <<_ACEOF
72e7de60 2161#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 2162_ACEOF
2163
2164
2165 fi
2166
abc3ca14 2167 SPL_META_DATA=`perl -n\
dd529a30 2168 -e "BEGIN { \\$key=shift @ARGV; }"\
2169 -e "next unless s/^\s*\\$key[:=]//i;"\
2170 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2171 -e "s/^\s+//;"\
2172 -e "s/\s+$//;"\
2173 -e "s/^(['\"])(.*)\1/\\$2/;"\
2174 -e "\\$val=\\$_;"\
2175 -e "END { print \\$val if defined \\$val; }"\
2176 'DATE' $META`;
abc3ca14 2177 if test -n "$SPL_META_DATA"; then
dd529a30 2178
2179cat >>confdefs.h <<_ACEOF
abc3ca14 2180#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 2181_ACEOF
2182
2183
2184 fi
2185
abc3ca14 2186 SPL_META_AUTHOR=`perl -n\
dd529a30 2187 -e "BEGIN { \\$key=shift @ARGV; }"\
2188 -e "next unless s/^\s*\\$key[:=]//i;"\
2189 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2190 -e "s/^\s+//;"\
2191 -e "s/\s+$//;"\
2192 -e "s/^(['\"])(.*)\1/\\$2/;"\
2193 -e "\\$val=\\$_;"\
2194 -e "END { print \\$val if defined \\$val; }"\
2195 'AUTHOR' $META`;
abc3ca14 2196 if test -n "$SPL_META_AUTHOR"; then
dd529a30 2197
2198cat >>confdefs.h <<_ACEOF
abc3ca14 2199#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 2200_ACEOF
2201
2202
2203 fi
2204
2205
abc3ca14 2206 SPL_META_LT_CURRENT=`perl -n\
dd529a30 2207 -e "BEGIN { \\$key=shift @ARGV; }"\
2208 -e "next unless s/^\s*\\$key[:=]//i;"\
2209 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2210 -e "s/^\s+//;"\
2211 -e "s/\s+$//;"\
2212 -e "s/^(['\"])(.*)\1/\\$2/;"\
2213 -e "\\$val=\\$_;"\
2214 -e "END { print \\$val if defined \\$val; }"\
2215 'LT_CURRENT' $META`;
abc3ca14 2216 SPL_META_LT_REVISION=`perl -n\
dd529a30 2217 -e "BEGIN { \\$key=shift @ARGV; }"\
2218 -e "next unless s/^\s*\\$key[:=]//i;"\
2219 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2220 -e "s/^\s+//;"\
2221 -e "s/\s+$//;"\
2222 -e "s/^(['\"])(.*)\1/\\$2/;"\
2223 -e "\\$val=\\$_;"\
2224 -e "END { print \\$val if defined \\$val; }"\
2225 'LT_REVISION' $META`;
abc3ca14 2226 SPL_META_LT_AGE=`perl -n\
dd529a30 2227 -e "BEGIN { \\$key=shift @ARGV; }"\
2228 -e "next unless s/^\s*\\$key[:=]//i;"\
2229 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2230 -e "s/^\s+//;"\
2231 -e "s/\s+$//;"\
2232 -e "s/^(['\"])(.*)\1/\\$2/;"\
2233 -e "\\$val=\\$_;"\
2234 -e "END { print \\$val if defined \\$val; }"\
2235 'LT_AGE' $META`;
abc3ca14
BB
2236 if test -n "$SPL_META_LT_CURRENT" \
2237 -o -n "$SPL_META_LT_REVISION" \
2238 -o -n "$SPL_META_LT_AGE"; then
2239 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2240 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2241 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 2242
2243cat >>confdefs.h <<_ACEOF
abc3ca14 2244#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 2245_ACEOF
2246
2247
2248cat >>confdefs.h <<_ACEOF
abc3ca14 2249#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 2250_ACEOF
2251
2252
2253cat >>confdefs.h <<_ACEOF
abc3ca14 2254#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 2255_ACEOF
2256
2257
2258
2259
2260 fi
2261 fi
2262
8934764e
BB
2263 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2264$as_echo "$_spl_ac_meta_got_file" >&6; }
dd529a30 2265
2266
bf9f3bac 2267ac_aux_dir=
8934764e
BB
2268for ac_dir in config "$srcdir"/config; do
2269 if test -f "$ac_dir/install-sh"; then
bf9f3bac 2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/install-sh -c"
2272 break
8934764e 2273 elif test -f "$ac_dir/install.sh"; then
bf9f3bac 2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/install.sh -c"
2276 break
8934764e 2277 elif test -f "$ac_dir/shtool"; then
bf9f3bac 2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/shtool install -c"
2280 break
2281 fi
2282done
2283if test -z "$ac_aux_dir"; then
8934764e
BB
2284 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2285$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
bf9f3bac 2286 { (exit 1); exit 1; }; }
2287fi
8934764e
BB
2288
2289# These three variables are undocumented and unsupported,
2290# and are intended to be withdrawn in a future Autoconf release.
2291# They can cause serious problems if a builder's source tree is in a directory
2292# whose full name contains unusual characters.
2293ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2294ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2295ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2296
bf9f3bac 2297
2298# Make sure we can run config.sub.
8934764e
BB
2299$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2300 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2301$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
bf9f3bac 2302 { (exit 1); exit 1; }; }
2303
8934764e
BB
2304{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2305$as_echo_n "checking build system type... " >&6; }
bf9f3bac 2306if test "${ac_cv_build+set}" = set; then
8934764e
BB
2307 $as_echo_n "(cached) " >&6
2308else
2309 ac_build_alias=$build_alias
2310test "x$ac_build_alias" = x &&
2311 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2312test "x$ac_build_alias" = x &&
2313 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2314$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
bf9f3bac 2315 { (exit 1); exit 1; }; }
8934764e
BB
2316ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2317 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2318$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
bf9f3bac 2319 { (exit 1); exit 1; }; }
2320
2321fi
8934764e
BB
2322{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2323$as_echo "$ac_cv_build" >&6; }
2324case $ac_cv_build in
2325*-*-*) ;;
2326*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2327$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2328 { (exit 1); exit 1; }; };;
2329esac
bf9f3bac 2330build=$ac_cv_build
8934764e
BB
2331ac_save_IFS=$IFS; IFS='-'
2332set x $ac_cv_build
2333shift
2334build_cpu=$1
2335build_vendor=$2
2336shift; shift
2337# Remember, the first character of IFS is used to create $*,
2338# except with old shells:
2339build_os=$*
2340IFS=$ac_save_IFS
2341case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2342
2343
2344{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2345$as_echo_n "checking host system type... " >&6; }
bf9f3bac 2346if test "${ac_cv_host+set}" = set; then
8934764e
BB
2347 $as_echo_n "(cached) " >&6
2348else
2349 if test "x$host_alias" = x; then
2350 ac_cv_host=$ac_cv_build
2351else
2352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2354$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
bf9f3bac 2355 { (exit 1); exit 1; }; }
8934764e 2356fi
bf9f3bac 2357
2358fi
8934764e
BB
2359{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2360$as_echo "$ac_cv_host" >&6; }
2361case $ac_cv_host in
2362*-*-*) ;;
2363*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2364$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2365 { (exit 1); exit 1; }; };;
2366esac
bf9f3bac 2367host=$ac_cv_host
8934764e
BB
2368ac_save_IFS=$IFS; IFS='-'
2369set x $ac_cv_host
2370shift
2371host_cpu=$1
2372host_vendor=$2
2373shift; shift
2374# Remember, the first character of IFS is used to create $*,
2375# except with old shells:
2376host_os=$*
2377IFS=$ac_save_IFS
2378case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2379
2380
2381{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2382$as_echo_n "checking target system type... " >&6; }
bf9f3bac 2383if test "${ac_cv_target+set}" = set; then
8934764e
BB
2384 $as_echo_n "(cached) " >&6
2385else
2386 if test "x$target_alias" = x; then
2387 ac_cv_target=$ac_cv_host
2388else
2389 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2390 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2391$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
bf9f3bac 2392 { (exit 1); exit 1; }; }
8934764e 2393fi
bf9f3bac 2394
2395fi
8934764e
BB
2396{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2397$as_echo "$ac_cv_target" >&6; }
2398case $ac_cv_target in
2399*-*-*) ;;
2400*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2401$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2402 { (exit 1); exit 1; }; };;
2403esac
bf9f3bac 2404target=$ac_cv_target
8934764e
BB
2405ac_save_IFS=$IFS; IFS='-'
2406set x $ac_cv_target
2407shift
2408target_cpu=$1
2409target_vendor=$2
2410shift; shift
2411# Remember, the first character of IFS is used to create $*,
2412# except with old shells:
2413target_os=$*
2414IFS=$ac_save_IFS
2415case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
bf9f3bac 2416
2417
2418# The aliases save the names the user supplied, while $host etc.
2419# will get canonicalized.
2420test -n "$target_alias" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
2423 program_prefix=${target_alias}-
8934764e
BB
2424
2425{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2426$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2427 # Check whether --enable-maintainer-mode was given.
16b719f0 2428if test "${enable_maintainer_mode+set}" = set; then
8934764e 2429 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16b719f0
BB
2430else
2431 USE_MAINTAINER_MODE=no
8934764e 2432fi
16b719f0 2433
8934764e
BB
2434 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2435$as_echo "$USE_MAINTAINER_MODE" >&6; }
2436 if test $USE_MAINTAINER_MODE = yes; then
16b719f0
BB
2437 MAINTAINER_MODE_TRUE=
2438 MAINTAINER_MODE_FALSE='#'
2439else
2440 MAINTAINER_MODE_TRUE='#'
2441 MAINTAINER_MODE_FALSE=
2442fi
2443
2444 MAINT=$MAINTAINER_MODE_TRUE
2445
2446
8934764e
BB
2447# Check whether --enable-silent-rules was given.
2448if test "${enable_silent_rules+set}" = set; then
2449 enableval=$enable_silent_rules;
2450fi
2451
2452case $enable_silent_rules in
2453yes) AM_DEFAULT_VERBOSITY=0;;
2454no) AM_DEFAULT_VERBOSITY=1;;
2455*) AM_DEFAULT_VERBOSITY=1;;
2456esac
2457AM_BACKSLASH='\'
2458
2459am__api_version='1.11'
2460
bf9f3bac 2461# Find a good install program. We prefer a C program (faster),
2462# so one script is as good as another. But avoid the broken or
2463# incompatible versions:
2464# SysV /etc/install, /usr/sbin/install
2465# SunOS /usr/etc/install
2466# IRIX /sbin/install
2467# AIX /bin/install
2468# AmigaOS /C/install, which installs bootblocks on floppy discs
2469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2470# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2472# OS/2's system install, which has a completely different semantic
2473# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2474# Reject install programs that cannot install multiple files.
2475{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2476$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2477if test -z "$INSTALL"; then
2478if test "${ac_cv_path_install+set}" = set; then
8934764e 2479 $as_echo_n "(cached) " >&6
bf9f3bac 2480else
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 # Account for people who put trailing slashes in PATH elements.
2487case $as_dir/ in
2488 ./ | .// | /cC/* | \
2489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2490 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2491 /usr/ucb/* ) ;;
2492 *)
2493 # OSF1 and SCO ODT 3.0 have their own names for install.
2494 # Don't use installbsd from OSF since it installs stuff as root
2495 # by default.
2496 for ac_prog in ginstall scoinst install; do
2497 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2498 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2499 if test $ac_prog = install &&
2500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2501 # AIX install. It has an incompatible calling convention.
2502 :
2503 elif test $ac_prog = install &&
2504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2505 # program-specific install script used by HP pwplus--don't use.
2506 :
2507 else
8934764e
BB
2508 rm -rf conftest.one conftest.two conftest.dir
2509 echo one > conftest.one
2510 echo two > conftest.two
2511 mkdir conftest.dir
2512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2513 test -s conftest.one && test -s conftest.two &&
2514 test -s conftest.dir/conftest.one &&
2515 test -s conftest.dir/conftest.two
2516 then
2517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2518 break 3
2519 fi
bf9f3bac 2520 fi
2521 fi
2522 done
2523 done
2524 ;;
2525esac
8934764e 2526
bf9f3bac 2527done
8934764e 2528IFS=$as_save_IFS
bf9f3bac 2529
8934764e 2530rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 2531
2532fi
2533 if test "${ac_cv_path_install+set}" = set; then
2534 INSTALL=$ac_cv_path_install
2535 else
8934764e
BB
2536 # As a last resort, use the slow shell script. Don't cache a
2537 # value for INSTALL within a source directory, because that will
bf9f3bac 2538 # break other packages using the cache if that directory is
8934764e 2539 # removed, or if the value is a relative name.
bf9f3bac 2540 INSTALL=$ac_install_sh
2541 fi
2542fi
8934764e
BB
2543{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2544$as_echo "$INSTALL" >&6; }
bf9f3bac 2545
2546# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2547# It thinks the first close brace ends the variable substitution.
2548test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2549
2550test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2551
2552test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2553
8934764e
BB
2554{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2555$as_echo_n "checking whether build environment is sane... " >&6; }
bf9f3bac 2556# Just in case
2557sleep 1
2558echo timestamp > conftest.file
8934764e
BB
2559# Reject unsafe characters in $srcdir or the absolute working directory
2560# name. Accept space and tab only in the latter.
2561am_lf='
2562'
2563case `pwd` in
2564 *[\\\"\#\$\&\'\`$am_lf]*)
2565 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2566$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2567 { (exit 1); exit 1; }; };;
2568esac
2569case $srcdir in
2570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2571 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2572$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2573 { (exit 1); exit 1; }; };;
2574esac
2575
bf9f3bac 2576# Do `set' in a subshell so we don't clobber the current shell's
2577# arguments. Must try -L first in case configure is actually a
2578# symlink; some systems play weird games with the mod time of symlinks
2579# (eg FreeBSD returns the mod time of the symlink's containing
2580# directory).
2581if (
8934764e 2582 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
bf9f3bac 2583 if test "$*" = "X"; then
2584 # -L didn't work.
8934764e 2585 set X `ls -t "$srcdir/configure" conftest.file`
bf9f3bac 2586 fi
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
8934764e 2595 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2596alias in your environment" >&5
8934764e 2597$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2598alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
2600 fi
2601
2602 test "$2" = conftest.file
2603 )
2604then
2605 # Ok.
2606 :
2607else
8934764e 2608 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
bf9f3bac 2609Check your system clock" >&5
8934764e 2610$as_echo "$as_me: error: newly created file is older than distributed files!
bf9f3bac 2611Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
2613fi
8934764e
BB
2614{ $as_echo "$as_me:$LINENO: result: yes" >&5
2615$as_echo "yes" >&6; }
bf9f3bac 2616test "$program_prefix" != NONE &&
8934764e 2617 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bf9f3bac 2618# Use a double $ so make ignores it.
2619test "$program_suffix" != NONE &&
8934764e
BB
2620 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2621# Double any \ or $.
bf9f3bac 2622# By default was `s,x,x', remove it if useless.
8934764e
BB
2623ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2624program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bf9f3bac 2625
2626# expand $ac_aux_dir to an absolute path
2627am_aux_dir=`cd $ac_aux_dir && pwd`
2628
8934764e
BB
2629if test x"${MISSING+set}" != xset; then
2630 case $am_aux_dir in
2631 *\ * | *\ *)
2632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2633 *)
2634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2635 esac
2636fi
bf9f3bac 2637# Use eval to expand $SHELL
2638if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640else
2641 am_missing_run=
8934764e
BB
2642 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2643$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644fi
2645
2646if test x"${install_sh}" != xset; then
2647 case $am_aux_dir in
2648 *\ * | *\ *)
2649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2650 *)
2651 install_sh="\${SHELL} $am_aux_dir/install-sh"
2652 esac
2653fi
2654
2655# Installed binaries are usually stripped using `strip' when the user
2656# run `make install-strip'. However `strip' might not be the right
2657# tool to use in cross-compilation environments, therefore Automake
2658# will honor the `STRIP' environment variable to overrule this program.
2659if test "$cross_compiling" != no; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2662set dummy ${ac_tool_prefix}strip; ac_word=$2
2663{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2664$as_echo_n "checking for $ac_word... " >&6; }
2665if test "${ac_cv_prog_STRIP+set}" = set; then
2666 $as_echo_n "(cached) " >&6
2667else
2668 if test -n "$STRIP"; then
2669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682done
2683done
2684IFS=$as_save_IFS
2685
2686fi
2687fi
2688STRIP=$ac_cv_prog_STRIP
2689if test -n "$STRIP"; then
2690 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2691$as_echo "$STRIP" >&6; }
2692else
2693 { $as_echo "$as_me:$LINENO: result: no" >&5
2694$as_echo "no" >&6; }
2695fi
2696
2697
2698fi
2699if test -z "$ac_cv_prog_STRIP"; then
2700 ac_ct_STRIP=$STRIP
2701 # Extract the first word of "strip", so it can be a program name with args.
2702set dummy strip; ac_word=$2
2703{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2704$as_echo_n "checking for $ac_word... " >&6; }
2705if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2706 $as_echo_n "(cached) " >&6
2707else
2708 if test -n "$ac_ct_STRIP"; then
2709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2710else
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_STRIP="strip"
2719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722done
2723done
2724IFS=$as_save_IFS
2725
2726fi
2727fi
2728ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2729if test -n "$ac_ct_STRIP"; then
2730 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2731$as_echo "$ac_ct_STRIP" >&6; }
2732else
2733 { $as_echo "$as_me:$LINENO: result: no" >&5
2734$as_echo "no" >&6; }
2735fi
2736
2737 if test "x$ac_ct_STRIP" = x; then
2738 STRIP=":"
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741yes:)
2742{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744ac_tool_warned=yes ;;
2745esac
2746 STRIP=$ac_ct_STRIP
2747 fi
2748else
2749 STRIP="$ac_cv_prog_STRIP"
2750fi
2751
2752fi
2753INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2754
2755{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2756$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2757if test -z "$MKDIR_P"; then
2758 if test "${ac_cv_path_mkdir+set}" = set; then
2759 $as_echo_n "(cached) " >&6
2760else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2763do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_prog in mkdir gmkdir; do
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2770 'mkdir (GNU coreutils) '* | \
2771 'mkdir (coreutils) '* | \
2772 'mkdir (fileutils) '4.1*)
2773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2774 break 3;;
2775 esac
2776 done
2777 done
2778done
2779IFS=$as_save_IFS
2780
2781fi
2782
2783 if test "${ac_cv_path_mkdir+set}" = set; then
2784 MKDIR_P="$ac_cv_path_mkdir -p"
bf9f3bac 2785 else
8934764e
BB
2786 # As a last resort, use the slow shell script. Don't cache a
2787 # value for MKDIR_P within a source directory, because that will
2788 # break other packages using the cache if that directory is
2789 # removed, or if the value is a relative name.
2790 test -d ./--version && rmdir ./--version
2791 MKDIR_P="$ac_install_sh -d"
bf9f3bac 2792 fi
2793fi
8934764e
BB
2794{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2795$as_echo "$MKDIR_P" >&6; }
2796
2797mkdir_p="$MKDIR_P"
2798case $mkdir_p in
2799 [\\/$]* | ?:[\\/]*) ;;
2800 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2801esac
bf9f3bac 2802
2803for ac_prog in gawk mawk nawk awk
2804do
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806set dummy $ac_prog; ac_word=$2
8934764e
BB
2807{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 2809if test "${ac_cv_prog_AWK+set}" = set; then
8934764e 2810 $as_echo_n "(cached) " >&6
bf9f3bac 2811else
2812 if test -n "$AWK"; then
2813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2814else
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 2822 ac_cv_prog_AWK="$ac_prog"
8934764e 2823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 2824 break 2
2825 fi
2826done
2827done
8934764e 2828IFS=$as_save_IFS
bf9f3bac 2829
2830fi
2831fi
2832AWK=$ac_cv_prog_AWK
2833if test -n "$AWK"; then
8934764e
BB
2834 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2835$as_echo "$AWK" >&6; }
bf9f3bac 2836else
8934764e
BB
2837 { $as_echo "$as_me:$LINENO: result: no" >&5
2838$as_echo "no" >&6; }
bf9f3bac 2839fi
2840
8934764e 2841
bf9f3bac 2842 test -n "$AWK" && break
2843done
2844
8934764e
BB
2845{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2846$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2847set x ${MAKE-make}
2848ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2849if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2850 $as_echo_n "(cached) " >&6
bf9f3bac 2851else
2852 cat >conftest.make <<\_ACEOF
8934764e 2853SHELL = /bin/sh
bf9f3bac 2854all:
8934764e 2855 @echo '@@@%%%=$(MAKE)=@@@%%%'
bf9f3bac 2856_ACEOF
2857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8934764e
BB
2858case `${MAKE-make} -f conftest.make 2>/dev/null` in
2859 *@@@%%%=?*=@@@%%%*)
2860 eval ac_cv_prog_make_${ac_make}_set=yes;;
2861 *)
2862 eval ac_cv_prog_make_${ac_make}_set=no;;
2863esac
bf9f3bac 2864rm -f conftest.make
2865fi
8934764e
BB
2866if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2867 { $as_echo "$as_me:$LINENO: result: yes" >&5
2868$as_echo "yes" >&6; }
bf9f3bac 2869 SET_MAKE=
2870else
8934764e
BB
2871 { $as_echo "$as_me:$LINENO: result: no" >&5
2872$as_echo "no" >&6; }
bf9f3bac 2873 SET_MAKE="MAKE=${MAKE-make}"
2874fi
2875
2876rm -rf .tst 2>/dev/null
2877mkdir .tst 2>/dev/null
2878if test -d .tst; then
2879 am__leading_dot=.
2880else
2881 am__leading_dot=_
2882fi
2883rmdir .tst 2>/dev/null
2884
8934764e
BB
2885if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887 # is not polluted with repeated "-I."
2888 am__isrc=' -I$(srcdir)'
2889 # test to see if srcdir already configured
2890 if test -f $srcdir/config.status; then
2891 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2892$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
bf9f3bac 2893 { (exit 1); exit 1; }; }
8934764e 2894 fi
bf9f3bac 2895fi
2896
2897# test whether we have cygpath
2898if test -z "$CYGPATH_W"; then
2899 if (cygpath --version) >/dev/null 2>/dev/null; then
2900 CYGPATH_W='cygpath -w'
2901 else
2902 CYGPATH_W=echo
2903 fi
2904fi
2905
2906
2907# Define the identity of the package.
abc3ca14
BB
2908 PACKAGE=$SPL_META_NAME
2909 VERSION=$SPL_META_VERSION
bf9f3bac 2910
2911
2912cat >>confdefs.h <<_ACEOF
2913#define PACKAGE "$PACKAGE"
2914_ACEOF
2915
2916
2917cat >>confdefs.h <<_ACEOF
2918#define VERSION "$VERSION"
2919_ACEOF
2920
2921# Some tools Automake needs.
2922
2923ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2924
2925
2926AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2927
2928
2929AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2930
2931
2932AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2933
2934
2935MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2936
bf9f3bac 2937# We need awk for the "check" target. The system "awk" is bad on
2938# some platforms.
2939# Always define AMTAR for backward compatibility.
2940
2941AMTAR=${AMTAR-"${am_missing_run}tar"}
2942
2943am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2944
2945
2946
2947
2948
8934764e 2949ac_config_headers="$ac_config_headers spl_config.h"
bf9f3bac 2950
0cbaeb11 2951
bf9f3bac 2952# Find a good install program. We prefer a C program (faster),
2953# so one script is as good as another. But avoid the broken or
2954# incompatible versions:
2955# SysV /etc/install, /usr/sbin/install
2956# SunOS /usr/etc/install
2957# IRIX /sbin/install
2958# AIX /bin/install
2959# AmigaOS /C/install, which installs bootblocks on floppy discs
2960# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2961# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2962# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2963# OS/2's system install, which has a completely different semantic
2964# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2965# Reject install programs that cannot install multiple files.
2966{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2968if test -z "$INSTALL"; then
2969if test "${ac_cv_path_install+set}" = set; then
8934764e 2970 $as_echo_n "(cached) " >&6
bf9f3bac 2971else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2978case $as_dir/ in
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2982 /usr/ucb/* ) ;;
2983 *)
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2986 # by default.
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2993 :
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2997 :
2998 else
8934764e
BB
2999 rm -rf conftest.one conftest.two conftest.dir
3000 echo one > conftest.one
3001 echo two > conftest.two
3002 mkdir conftest.dir
3003 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3004 test -s conftest.one && test -s conftest.two &&
3005 test -s conftest.dir/conftest.one &&
3006 test -s conftest.dir/conftest.two
3007 then
3008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3009 break 3
3010 fi
bf9f3bac 3011 fi
3012 fi
3013 done
3014 done
3015 ;;
3016esac
8934764e 3017
bf9f3bac 3018done
8934764e 3019IFS=$as_save_IFS
bf9f3bac 3020
8934764e 3021rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 3022
3023fi
3024 if test "${ac_cv_path_install+set}" = set; then
3025 INSTALL=$ac_cv_path_install
3026 else
8934764e
BB
3027 # As a last resort, use the slow shell script. Don't cache a
3028 # value for INSTALL within a source directory, because that will
bf9f3bac 3029 # break other packages using the cache if that directory is
8934764e 3030 # removed, or if the value is a relative name.
bf9f3bac 3031 INSTALL=$ac_install_sh
3032 fi
3033fi
8934764e
BB
3034{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3035$as_echo "$INSTALL" >&6; }
bf9f3bac 3036
3037# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3038# It thinks the first close brace ends the variable substitution.
3039test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3040
3041test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3042
3043test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3044
3045ac_ext=c
3046ac_cpp='$CPP $CPPFLAGS'
3047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3052set dummy ${ac_tool_prefix}gcc; ac_word=$2
8934764e
BB
3053{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3055if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3056 $as_echo_n "(cached) " >&6
bf9f3bac 3057else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060else
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3068 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8934764e 3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3070 break 2
3071 fi
3072done
3073done
8934764e 3074IFS=$as_save_IFS
bf9f3bac 3075
3076fi
3077fi
3078CC=$ac_cv_prog_CC
3079if test -n "$CC"; then
8934764e
BB
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081$as_echo "$CC" >&6; }
bf9f3bac 3082else
8934764e
BB
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084$as_echo "no" >&6; }
bf9f3bac 3085fi
3086
8934764e 3087
bf9f3bac 3088fi
3089if test -z "$ac_cv_prog_CC"; then
3090 ac_ct_CC=$CC
3091 # Extract the first word of "gcc", so it can be a program name with args.
3092set dummy gcc; ac_word=$2
8934764e
BB
3093{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3096 $as_echo_n "(cached) " >&6
bf9f3bac 3097else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3108 ac_cv_prog_ac_ct_CC="gcc"
8934764e 3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3110 break 2
3111 fi
3112done
3113done
8934764e 3114IFS=$as_save_IFS
bf9f3bac 3115
3116fi
3117fi
3118ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119if test -n "$ac_ct_CC"; then
8934764e
BB
3120 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3121$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3122else
8934764e
BB
3123 { $as_echo "$as_me:$LINENO: result: no" >&5
3124$as_echo "no" >&6; }
bf9f3bac 3125fi
3126
8934764e
BB
3127 if test "x$ac_ct_CC" = x; then
3128 CC=""
3129 else
3130 case $cross_compiling:$ac_tool_warned in
3131yes:)
3132{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134ac_tool_warned=yes ;;
3135esac
3136 CC=$ac_ct_CC
3137 fi
bf9f3bac 3138else
3139 CC="$ac_cv_prog_CC"
3140fi
3141
3142if test -z "$CC"; then
8934764e
BB
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bf9f3bac 3145set dummy ${ac_tool_prefix}cc; ac_word=$2
8934764e
BB
3146{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3148if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3149 $as_echo_n "(cached) " >&6
bf9f3bac 3150else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3161 ac_cv_prog_CC="${ac_tool_prefix}cc"
8934764e 3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3163 break 2
3164 fi
3165done
3166done
8934764e 3167IFS=$as_save_IFS
bf9f3bac 3168
3169fi
3170fi
3171CC=$ac_cv_prog_CC
3172if test -n "$CC"; then
8934764e
BB
3173 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3174$as_echo "$CC" >&6; }
bf9f3bac 3175else
8934764e
BB
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177$as_echo "no" >&6; }
bf9f3bac 3178fi
3179
bf9f3bac 3180
8934764e 3181 fi
bf9f3bac 3182fi
3183if test -z "$CC"; then
3184 # Extract the first word of "cc", so it can be a program name with args.
3185set dummy cc; ac_word=$2
8934764e
BB
3186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3187$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3188if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3189 $as_echo_n "(cached) " >&6
bf9f3bac 3190else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193else
3194 ac_prog_rejected=no
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3202 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3203 ac_prog_rejected=yes
3204 continue
3205 fi
3206 ac_cv_prog_CC="cc"
8934764e 3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3208 break 2
3209 fi
3210done
3211done
8934764e 3212IFS=$as_save_IFS
bf9f3bac 3213
3214if test $ac_prog_rejected = yes; then
3215 # We found a bogon in the path, so make sure we never use it.
3216 set dummy $ac_cv_prog_CC
3217 shift
3218 if test $# != 0; then
3219 # We chose a different compiler from the bogus one.
3220 # However, it has the same basename, so the bogon will be chosen
3221 # first if we set CC to just the basename; use the full file name.
3222 shift
3223 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3224 fi
3225fi
3226fi
3227fi
3228CC=$ac_cv_prog_CC
3229if test -n "$CC"; then
8934764e
BB
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3231$as_echo "$CC" >&6; }
bf9f3bac 3232else
8934764e
BB
3233 { $as_echo "$as_me:$LINENO: result: no" >&5
3234$as_echo "no" >&6; }
bf9f3bac 3235fi
3236
8934764e 3237
bf9f3bac 3238fi
3239if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
8934764e 3241 for ac_prog in cl.exe
bf9f3bac 3242 do
3243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3244set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8934764e
BB
3245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3247if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3248 $as_echo_n "(cached) " >&6
bf9f3bac 3249else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252else
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8934764e 3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3262 break 2
3263 fi
3264done
3265done
8934764e 3266IFS=$as_save_IFS
bf9f3bac 3267
3268fi
3269fi
3270CC=$ac_cv_prog_CC
3271if test -n "$CC"; then
8934764e
BB
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273$as_echo "$CC" >&6; }
bf9f3bac 3274else
8934764e
BB
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276$as_echo "no" >&6; }
bf9f3bac 3277fi
3278
8934764e 3279
bf9f3bac 3280 test -n "$CC" && break
3281 done
3282fi
3283if test -z "$CC"; then
3284 ac_ct_CC=$CC
8934764e 3285 for ac_prog in cl.exe
bf9f3bac 3286do
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288set dummy $ac_prog; ac_word=$2
8934764e
BB
3289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3291if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3292 $as_echo_n "(cached) " >&6
bf9f3bac 3293else
3294 if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3296else
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3304 ac_cv_prog_ac_ct_CC="$ac_prog"
8934764e 3305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3306 break 2
3307 fi
3308done
3309done
8934764e 3310IFS=$as_save_IFS
bf9f3bac 3311
3312fi
3313fi
3314ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315if test -n "$ac_ct_CC"; then
8934764e
BB
3316 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3318else
8934764e
BB
3319 { $as_echo "$as_me:$LINENO: result: no" >&5
3320$as_echo "no" >&6; }
bf9f3bac 3321fi
3322
8934764e 3323
bf9f3bac 3324 test -n "$ac_ct_CC" && break
3325done
3326
8934764e
BB
3327 if test "x$ac_ct_CC" = x; then
3328 CC=""
3329 else
3330 case $cross_compiling:$ac_tool_warned in
3331yes:)
3332{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334ac_tool_warned=yes ;;
3335esac
3336 CC=$ac_ct_CC
3337 fi
bf9f3bac 3338fi
3339
3340fi
3341
3342
8934764e
BB
3343test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bf9f3bac 3346See \`config.log' for more details." >&5
8934764e 3347$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
bf9f3bac 3348See \`config.log' for more details." >&2;}
8934764e 3349 { (exit 1); exit 1; }; }; }
bf9f3bac 3350
3351# Provide some information about the compiler.
8934764e
BB
3352$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3353set X $ac_compile
3354ac_compiler=$2
3355{ (ac_try="$ac_compiler --version >&5"
3356case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361$as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler --version >&5") 2>&5
bf9f3bac 3363 ac_status=$?
8934764e 3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3365 (exit $ac_status); }
8934764e
BB
3366{ (ac_try="$ac_compiler -v >&5"
3367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372$as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compiler -v >&5") 2>&5
bf9f3bac 3374 ac_status=$?
8934764e 3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3376 (exit $ac_status); }
8934764e
BB
3377{ (ac_try="$ac_compiler -V >&5"
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383$as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compiler -V >&5") 2>&5
bf9f3bac 3385 ac_status=$?
8934764e 3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3387 (exit $ac_status); }
3388
3389cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
3395
3396int
3397main ()
3398{
3399
3400 ;
3401 return 0;
3402}
3403_ACEOF
3404ac_clean_files_save=$ac_clean_files
8934764e 3405ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
bf9f3bac 3406# Try to create an executable without -o first, disregard a.out.
3407# It will help us diagnose broken compilers, and finding out an intuition
3408# of exeext.
8934764e
BB
3409{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3410$as_echo_n "checking for C compiler default output file name... " >&6; }
3411ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3412
3413# The possible output files:
3414ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3415
3416ac_rmfiles=
3417for ac_file in $ac_files
3418do
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422 esac
3423done
3424rm -f $ac_rmfiles
3425
3426if { (ac_try="$ac_link_default"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432$as_echo "$ac_try_echo") >&5
3433 (eval "$ac_link_default") 2>&5
bf9f3bac 3434 ac_status=$?
8934764e 3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3436 (exit $ac_status); }; then
8934764e
BB
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439# in a Makefile. We should not override ac_cv_exeext if it was cached,
3440# so that the user can short-circuit this test for compilers unknown to
3441# Autoconf.
3442for ac_file in $ac_files ''
bf9f3bac 3443do
3444 test -f "$ac_file" || continue
3445 case $ac_file in
8934764e 3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bf9f3bac 3447 ;;
3448 [ab].out )
3449 # We found the default executable, but exeext='' is most
3450 # certainly right.
3451 break;;
3452 *.* )
8934764e
BB
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454 then :; else
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 fi
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3461 # actually working.
bf9f3bac 3462 break;;
3463 * )
3464 break;;
3465 esac
3466done
8934764e
BB
3467test "$ac_cv_exeext" = no && ac_cv_exeext=
3468
bf9f3bac 3469else
8934764e
BB
3470 ac_file=''
3471fi
3472
3473{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3474$as_echo "$ac_file" >&6; }
3475if test -z "$ac_file"; then
3476 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3477sed 's/^/| /' conftest.$ac_ext >&5
3478
8934764e
BB
3479{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
bf9f3bac 3482See \`config.log' for more details." >&5
8934764e 3483$as_echo "$as_me: error: C compiler cannot create executables
bf9f3bac 3484See \`config.log' for more details." >&2;}
8934764e 3485 { (exit 77); exit 77; }; }; }
bf9f3bac 3486fi
3487
3488ac_exeext=$ac_cv_exeext
bf9f3bac 3489
8934764e 3490# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3491# the compiler is broken, or we cross compile.
8934764e
BB
3492{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3493$as_echo_n "checking whether the C compiler works... " >&6; }
bf9f3bac 3494# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3495# If not cross compiling, check that we can run a simple program.
3496if test "$cross_compiling" != yes; then
3497 if { ac_try='./$ac_file'
8934764e
BB
3498 { (case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501esac
3502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503$as_echo "$ac_try_echo") >&5
3504 (eval "$ac_try") 2>&5
bf9f3bac 3505 ac_status=$?
8934764e 3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3507 (exit $ac_status); }; }; then
3508 cross_compiling=no
3509 else
3510 if test "$cross_compiling" = maybe; then
3511 cross_compiling=yes
3512 else
8934764e
BB
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
bf9f3bac 3516If you meant to cross compile, use \`--host'.
3517See \`config.log' for more details." >&5
8934764e 3518$as_echo "$as_me: error: cannot run C compiled programs.
bf9f3bac 3519If you meant to cross compile, use \`--host'.
3520See \`config.log' for more details." >&2;}
8934764e 3521 { (exit 1); exit 1; }; }; }
bf9f3bac 3522 fi
3523 fi
3524fi
8934764e
BB
3525{ $as_echo "$as_me:$LINENO: result: yes" >&5
3526$as_echo "yes" >&6; }
bf9f3bac 3527
8934764e 3528rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
bf9f3bac 3529ac_clean_files=$ac_clean_files_save
8934764e 3530# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3531# the compiler is broken, or we cross compile.
8934764e
BB
3532{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3533$as_echo_n "checking whether we are cross compiling... " >&6; }
3534{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3535$as_echo "$cross_compiling" >&6; }
3536
3537{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3538$as_echo_n "checking for suffix of executables... " >&6; }
3539if { (ac_try="$ac_link"
3540case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543esac
3544eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3545$as_echo "$ac_try_echo") >&5
3546 (eval "$ac_link") 2>&5
bf9f3bac 3547 ac_status=$?
8934764e 3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3549 (exit $ac_status); }; then
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552# work properly (i.e., refer to `conftest.exe'), while it won't with
3553# `rm'.
3554for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
8934764e 3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bf9f3bac 3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bf9f3bac 3559 break;;
3560 * ) break;;
3561 esac
3562done
3563else
8934764e
BB
3564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3567See \`config.log' for more details." >&5
8934764e 3568$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3569See \`config.log' for more details." >&2;}
8934764e 3570 { (exit 1); exit 1; }; }; }
bf9f3bac 3571fi
3572
3573rm -f conftest$ac_cv_exeext
8934764e
BB
3574{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3575$as_echo "$ac_cv_exeext" >&6; }
bf9f3bac 3576
3577rm -f conftest.$ac_ext
3578EXEEXT=$ac_cv_exeext
3579ac_exeext=$EXEEXT
8934764e
BB
3580{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3581$as_echo_n "checking for suffix of object files... " >&6; }
bf9f3bac 3582if test "${ac_cv_objext+set}" = set; then
8934764e 3583 $as_echo_n "(cached) " >&6
bf9f3bac 3584else
3585 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h. */
3591
3592int
3593main ()
3594{
3595
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600rm -f conftest.o conftest.obj
8934764e
BB
3601if { (ac_try="$ac_compile"
3602case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607$as_echo "$ac_try_echo") >&5
3608 (eval "$ac_compile") 2>&5
bf9f3bac 3609 ac_status=$?
8934764e 3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3611 (exit $ac_status); }; then
8934764e
BB
3612 for ac_file in conftest.o conftest.obj conftest.*; do
3613 test -f "$ac_file" || continue;
bf9f3bac 3614 case $ac_file in
8934764e 3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bf9f3bac 3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3617 break;;
3618 esac
3619done
3620else
8934764e 3621 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3622sed 's/^/| /' conftest.$ac_ext >&5
3623
8934764e
BB
3624{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3627See \`config.log' for more details." >&5
8934764e 3628$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3629See \`config.log' for more details." >&2;}
8934764e 3630 { (exit 1); exit 1; }; }; }
bf9f3bac 3631fi
3632
3633rm -f conftest.$ac_cv_objext conftest.$ac_ext
3634fi
8934764e
BB
3635{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3636$as_echo "$ac_cv_objext" >&6; }
bf9f3bac 3637OBJEXT=$ac_cv_objext
3638ac_objext=$OBJEXT
8934764e
BB
3639{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3640$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
bf9f3bac 3641if test "${ac_cv_c_compiler_gnu+set}" = set; then
8934764e 3642 $as_echo_n "(cached) " >&6
bf9f3bac 3643else
3644 cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
3650
3651int
3652main ()
3653{
3654#ifndef __GNUC__
3655 choke me
3656#endif
3657
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext
8934764e
BB
3663if { (ac_try="$ac_compile"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
3668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669$as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
8934764e
BB
3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
bf9f3bac 3680 ac_compiler_gnu=yes
3681else
8934764e 3682 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3683sed 's/^/| /' conftest.$ac_ext >&5
3684
8934764e 3685 ac_compiler_gnu=no
bf9f3bac 3686fi
8934764e
BB
3687
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3689ac_cv_c_compiler_gnu=$ac_compiler_gnu
3690
3691fi
8934764e
BB
3692{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3693$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694if test $ac_compiler_gnu = yes; then
3695 GCC=yes
3696else
3697 GCC=
3698fi
bf9f3bac 3699ac_test_CFLAGS=${CFLAGS+set}
3700ac_save_CFLAGS=$CFLAGS
8934764e
BB
3701{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3702$as_echo_n "checking whether $CC accepts -g... " >&6; }
bf9f3bac 3703if test "${ac_cv_prog_cc_g+set}" = set; then
8934764e 3704 $as_echo_n "(cached) " >&6
bf9f3bac 3705else
8934764e
BB
3706 ac_save_c_werror_flag=$ac_c_werror_flag
3707 ac_c_werror_flag=yes
3708 ac_cv_prog_cc_g=no
3709 CFLAGS="-g"
3710 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 3711/* confdefs.h. */
3712_ACEOF
3713cat confdefs.h >>conftest.$ac_ext
3714cat >>conftest.$ac_ext <<_ACEOF
3715/* end confdefs.h. */
3716
3717int
3718main ()
3719{
3720
3721 ;
3722 return 0;
3723}
3724_ACEOF
3725rm -f conftest.$ac_objext
8934764e
BB
3726if { (ac_try="$ac_compile"
3727case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732$as_echo "$ac_try_echo") >&5
3733 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
8934764e
BB
3738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3743 ac_cv_prog_cc_g=yes
3744else
3745 $as_echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748 CFLAGS=""
3749 cat >conftest.$ac_ext <<_ACEOF
3750/* confdefs.h. */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h. */
3755
3756int
3757main ()
3758{
3759
3760 ;
3761 return 0;
3762}
3763_ACEOF
3764rm -f conftest.$ac_objext
3765if { (ac_try="$ac_compile"
3766case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769esac
3770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771$as_echo "$ac_try_echo") >&5
3772 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3773 ac_status=$?
8934764e
BB
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3782 :
3783else
3784 $as_echo "$as_me: failed program was:" >&5
3785sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788 CFLAGS="-g"
3789 cat >conftest.$ac_ext <<_ACEOF
3790/* confdefs.h. */
3791_ACEOF
3792cat confdefs.h >>conftest.$ac_ext
3793cat >>conftest.$ac_ext <<_ACEOF
3794/* end confdefs.h. */
3795
3796int
3797main ()
3798{
3799
3800 ;
3801 return 0;
3802}
3803_ACEOF
3804rm -f conftest.$ac_objext
3805if { (ac_try="$ac_compile"
3806case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809esac
3810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811$as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3813 ac_status=$?
8934764e
BB
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
bf9f3bac 3822 ac_cv_prog_cc_g=yes
3823else
8934764e 3824 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3825sed 's/^/| /' conftest.$ac_ext >&5
3826
8934764e
BB
3827
3828fi
3829
3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831fi
3832
3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3834fi
8934764e
BB
3835
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
bf9f3bac 3838fi
8934764e
BB
3839{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3840$as_echo "$ac_cv_prog_cc_g" >&6; }
bf9f3bac 3841if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3848 fi
3849else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3854 fi
3855fi
8934764e
BB
3856{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858if test "${ac_cv_prog_cc_c89+set}" = set; then
3859 $as_echo_n "(cached) " >&6
bf9f3bac 3860else
8934764e 3861 ac_cv_prog_cc_c89=no
bf9f3bac 3862ac_save_CC=$CC
3863cat >conftest.$ac_ext <<_ACEOF
3864/* confdefs.h. */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
3868/* end confdefs.h. */
3869#include <stdarg.h>
3870#include <stdio.h>
3871#include <sys/types.h>
3872#include <sys/stat.h>
3873/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3874struct buf { int x; };
3875FILE * (*rcsopen) (struct buf *, struct stat *, int);
3876static char *e (p, i)
3877 char **p;
3878 int i;
3879{
3880 return p[i];
3881}
3882static char *f (char * (*g) (char **, int), char **p, ...)
3883{
3884 char *s;
3885 va_list v;
3886 va_start (v,p);
3887 s = g (p, va_arg (v,int));
3888 va_end (v);
3889 return s;
3890}
3891
3892/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3893 function prototypes and stuff, but not '\xHH' hex character constants.
3894 These don't provoke an error unfortunately, instead are silently treated
8934764e 3895 as 'x'. The following induces an error, until -std is added to get
bf9f3bac 3896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3897 array size at least. It's necessary to write '\x00'==0 to get something
8934764e 3898 that's true only with -std. */
bf9f3bac 3899int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3900
8934764e
BB
3901/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3902 inside strings and character constants. */
3903#define FOO(x) 'x'
3904int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3905
bf9f3bac 3906int test (int i, double x);
3907struct s1 {int (*f) (int a);};
3908struct s2 {int (*f) (double a);};
3909int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3910int argc;
3911char **argv;
3912int
3913main ()
3914{
3915return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3916 ;
3917 return 0;
3918}
3919_ACEOF
8934764e
BB
3920for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bf9f3bac 3922do
3923 CC="$ac_save_CC $ac_arg"
3924 rm -f conftest.$ac_objext
8934764e
BB
3925if { (ac_try="$ac_compile"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931$as_echo "$ac_try_echo") >&5
3932 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
8934764e
BB
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3942 ac_cv_prog_cc_c89=$ac_arg
3943else
3944 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3945sed 's/^/| /' conftest.$ac_ext >&5
3946
8934764e 3947
bf9f3bac 3948fi
8934764e
BB
3949
3950rm -f core conftest.err conftest.$ac_objext
3951 test "x$ac_cv_prog_cc_c89" != "xno" && break
bf9f3bac 3952done
8934764e 3953rm -f conftest.$ac_ext
bf9f3bac 3954CC=$ac_save_CC
3955
3956fi
8934764e
BB
3957# AC_CACHE_VAL
3958case "x$ac_cv_prog_cc_c89" in
3959 x)
3960 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3961$as_echo "none needed" >&6; } ;;
3962 xno)
3963 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3964$as_echo "unsupported" >&6; } ;;
bf9f3bac 3965 *)
8934764e
BB
3966 CC="$CC $ac_cv_prog_cc_c89"
3967 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3968$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bf9f3bac 3969esac
3970
bf9f3bac 3971
bf9f3bac 3972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977DEPDIR="${am__leading_dot}deps"
3978
8934764e 3979ac_config_commands="$ac_config_commands depfiles"
bf9f3bac 3980
3981
3982am_make=${MAKE-make}
3983cat > confinc << 'END'
3984am__doit:
8934764e 3985 @echo this is the am__doit target
bf9f3bac 3986.PHONY: am__doit
3987END
3988# If we don't find an include directive, just comment out the code.
8934764e
BB
3989{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3990$as_echo_n "checking for style of include used by $am_make... " >&6; }
bf9f3bac 3991am__include="#"
3992am__quote=
3993_am_result=none
3994# First try GNU make style include.
3995echo "include confinc" > confmf
8934764e
BB
3996# Ignore all kinds of additional output from `make'.
3997case `$am_make -s -f confmf 2> /dev/null` in #(
3998*the\ am__doit\ target*)
3999 am__include=include
4000 am__quote=
4001 _am_result=GNU
4002 ;;
4003esac
bf9f3bac 4004# Now try BSD make style include.
4005if test "$am__include" = "#"; then
4006 echo '.include "confinc"' > confmf
8934764e
BB
4007 case `$am_make -s -f confmf 2> /dev/null` in #(
4008 *the\ am__doit\ target*)
4009 am__include=.include
4010 am__quote="\""
4011 _am_result=BSD
4012 ;;
4013 esac
bf9f3bac 4014fi
4015
4016
8934764e
BB
4017{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4018$as_echo "$_am_result" >&6; }
bf9f3bac 4019rm -f confinc confmf
4020
8934764e 4021# Check whether --enable-dependency-tracking was given.
bf9f3bac 4022if test "${enable_dependency_tracking+set}" = set; then
8934764e
BB
4023 enableval=$enable_dependency_tracking;
4024fi
bf9f3bac 4025
bf9f3bac 4026if test "x$enable_dependency_tracking" != xno; then
4027 am_depcomp="$ac_aux_dir/depcomp"
4028 AMDEPBACKSLASH='\'
4029fi
8934764e 4030 if test "x$enable_dependency_tracking" != xno; then
bf9f3bac 4031 AMDEP_TRUE=
4032 AMDEP_FALSE='#'
4033else
4034 AMDEP_TRUE='#'
4035 AMDEP_FALSE=
4036fi
4037
4038
4039
bf9f3bac 4040depcc="$CC" am_compiler_list=
4041
8934764e
BB
4042{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4043$as_echo_n "checking dependency style of $depcc... " >&6; }
bf9f3bac 4044if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8934764e 4045 $as_echo_n "(cached) " >&6
bf9f3bac 4046else
4047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048 # We make a subdir and do the tests there. Otherwise we can end up
4049 # making bogus files that we don't know about and never remove. For
4050 # instance it was reported that on HP-UX the gcc test will end up
4051 # making a dummy file named `D' -- because `-MD' means `put the output
4052 # in D'.
4053 mkdir conftest.dir
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4057 cd conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4063 # directory.
4064 mkdir sub
4065
4066 am_cv_CC_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069 fi
8934764e
BB
4070 am__universal=false
4071 case " $depcc " in #(
4072 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4073 esac
4074
bf9f3bac 4075 for depmode in $am_compiler_list; do
4076 # Setup a source with many dependencies, because some compilers
4077 # like to wrap large dependency lists on column 80 (with \), and
4078 # we should not choose a depcomp mode which is confused by this.
4079 #
4080 # We need to recreate these files for each test, as the compiler may
4081 # overwrite some of them when testing with obscure command lines.
4082 # This happens at least with the AIX C compiler.
4083 : > sub/conftest.c
4084 for i in 1 2 3 4 5 6; do
4085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4087 # Solaris 8's {/usr,}/bin/sh.
4088 touch sub/conftst$i.h
4089 done
4090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4091
8934764e
BB
4092 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4093 # mode. It turns out that the SunPro C++ compiler does not properly
4094 # handle `-M -o', and we need to detect this. Also, some Intel
4095 # versions had trouble with output in subdirs
4096 am__obj=sub/conftest.${OBJEXT-o}
4097 am__minus_obj="-o $am__obj"
bf9f3bac 4098 case $depmode in
8934764e
BB
4099 gcc)
4100 # This depmode causes a compiler race in universal mode.
4101 test "$am__universal" = false || continue
4102 ;;
bf9f3bac 4103 nosideeffect)
4104 # after this tag, mechanisms are not by side-effect, so they'll
4105 # only be used when explicitly requested
4106 if test "x$enable_dependency_tracking" = xyes; then
4107 continue
4108 else
4109 break
4110 fi
4111 ;;
8934764e
BB
4112 msvisualcpp | msvcmsys)
4113 # This compiler won't grok `-c -o', but also, the minuso test has
4114 # not run yet. These depmodes are late enough in the game, and
4115 # so weak that their functioning should not be impacted.
4116 am__obj=conftest.${OBJEXT-o}
4117 am__minus_obj=
4118 ;;
bf9f3bac 4119 none) break ;;
4120 esac
bf9f3bac 4121 if depmode=$depmode \
8934764e 4122 source=sub/conftest.c object=$am__obj \
bf9f3bac 4123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8934764e 4124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9f3bac 4125 >/dev/null 2>conftest.err &&
8934764e 4126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8934764e 4128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4130 # icc doesn't choke on unknown options, it will just issue warnings
4131 # or remarks (even with -Werror). So we grep stderr for any message
4132 # that says an option was ignored or not supported.
4133 # When given -MP, icc 7.0 and 7.1 complain thusly:
4134 # icc: Command line warning: ignoring option '-M'; no argument required
4135 # The diagnosis changed in icc 8.0:
4136 # icc: Command line remark: option '-MP' not supported
4137 if (grep 'ignoring option' conftest.err ||
4138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4139 am_cv_CC_dependencies_compiler_type=$depmode
4140 break
4141 fi
4142 fi
4143 done
4144
4145 cd ..
4146 rm -rf conftest.dir
4147else
4148 am_cv_CC_dependencies_compiler_type=none
4149fi
4150
4151fi
8934764e
BB
4152{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4153$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
bf9f3bac 4154CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4155
8934764e 4156 if
bf9f3bac 4157 test "x$enable_dependency_tracking" != xno \
4158 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4159 am__fastdepCC_TRUE=
4160 am__fastdepCC_FALSE='#'
4161else
4162 am__fastdepCC_TRUE='#'
4163 am__fastdepCC_FALSE=
4164fi
4165
4166
8934764e
BB
4167case `pwd` in
4168 *\ * | *\ *)
4169 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4170$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4171esac
bf9f3bac 4172
bf9f3bac 4173
bf9f3bac 4174
8beea9ac
BB
4175macro_version='2.2.6b'
4176macro_revision='1.3017'
8934764e
BB
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190ltmain="$ac_aux_dir/ltmain.sh"
4191
4192{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4193$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4194if test "${ac_cv_path_SED+set}" = set; then
4195 $as_echo_n "(cached) " >&6
4196else
4197 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4198 for ac_i in 1 2 3 4 5 6 7; do
4199 ac_script="$ac_script$as_nl$ac_script"
4200 done
4201 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4202 $as_unset ac_script || ac_script=
4203 if test -z "$SED"; then
4204 ac_path_SED_found=false
4205 # Loop through the user's path and test for each of PROGNAME-LIST
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
bf9f3bac 4207for as_dir in $PATH
4208do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
8934764e 4211 for ac_prog in sed gsed; do
bf9f3bac 4212 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
4213 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4214 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4215# Check for GNU ac_path_SED and select it if it is found.
4216 # Check for GNU $ac_path_SED
4217case `"$ac_path_SED" --version 2>&1` in
4218*GNU*)
4219 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4220*)
4221 ac_count=0
4222 $as_echo_n 0123456789 >"conftest.in"
4223 while :
4224 do
4225 cat "conftest.in" "conftest.in" >"conftest.tmp"
4226 mv "conftest.tmp" "conftest.in"
4227 cp "conftest.in" "conftest.nl"
4228 $as_echo '' >> "conftest.nl"
4229 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4231 ac_count=`expr $ac_count + 1`
4232 if test $ac_count -gt ${ac_path_SED_max-0}; then
4233 # Best one so far, save it but keep looking for a better one
4234 ac_cv_path_SED="$ac_path_SED"
4235 ac_path_SED_max=$ac_count
4236 fi
4237 # 10*(2^10) chars as input seems more than enough
4238 test $ac_count -gt 10 && break
4239 done
4240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4241esac
4242
4243 $ac_path_SED_found && break 3
bf9f3bac 4244 done
4245 done
4246done
4247IFS=$as_save_IFS
8934764e
BB
4248 if test -z "$ac_cv_path_SED"; then
4249 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4250$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4251 { (exit 1); exit 1; }; }
bf9f3bac 4252 fi
8934764e
BB
4253else
4254 ac_cv_path_SED=$SED
4255fi
bf9f3bac 4256
4257fi
8934764e
BB
4258{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4259$as_echo "$ac_cv_path_SED" >&6; }
4260 SED="$ac_cv_path_SED"
4261 rm -f conftest.sed
4262
4263test -z "$SED" && SED=sed
4264Xsed="$SED -e 1s/^X//"
4265
4266
bf9f3bac 4267
bf9f3bac 4268
bf9f3bac 4269
8934764e
BB
4270
4271
4272
4273
4274
4275
4276{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4277$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4278if test "${ac_cv_path_GREP+set}" = set; then
4279 $as_echo_n "(cached) " >&6
bf9f3bac 4280else
8934764e
BB
4281 if test -z "$GREP"; then
4282 ac_path_GREP_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4286do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in grep ggrep; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4292 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4293# Check for GNU ac_path_GREP and select it if it is found.
4294 # Check for GNU $ac_path_GREP
4295case `"$ac_path_GREP" --version 2>&1` in
4296*GNU*)
4297 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4298*)
4299 ac_count=0
4300 $as_echo_n 0123456789 >"conftest.in"
4301 while :
4302 do
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo 'GREP' >> "conftest.nl"
4307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 ac_count=`expr $ac_count + 1`
4310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_GREP="$ac_path_GREP"
4313 ac_path_GREP_max=$ac_count
bf9f3bac 4314 fi
8934764e
BB
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319esac
4320
4321 $ac_path_GREP_found && break 3
4322 done
4323 done
4324done
4325IFS=$as_save_IFS
4326 if test -z "$ac_cv_path_GREP"; then
4327 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4328$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4329 { (exit 1); exit 1; }; }
4330 fi
4331else
4332 ac_cv_path_GREP=$GREP
bf9f3bac 4333fi
bf9f3bac 4334
8934764e
BB
4335fi
4336{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4337$as_echo "$ac_cv_path_GREP" >&6; }
4338 GREP="$ac_cv_path_GREP"
bf9f3bac 4339
4340
8934764e
BB
4341{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4342$as_echo_n "checking for egrep... " >&6; }
4343if test "${ac_cv_path_EGREP+set}" = set; then
4344 $as_echo_n "(cached) " >&6
bf9f3bac 4345else
8934764e
BB
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4348 else
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_prog in egrep; do
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4360 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4361# Check for GNU ac_path_EGREP and select it if it is found.
4362 # Check for GNU $ac_path_EGREP
4363case `"$ac_path_EGREP" --version 2>&1` in
4364*GNU*)
4365 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4366*)
4367 ac_count=0
4368 $as_echo_n 0123456789 >"conftest.in"
4369 while :
4370 do
4371 cat "conftest.in" "conftest.in" >"conftest.tmp"
4372 mv "conftest.tmp" "conftest.in"
4373 cp "conftest.in" "conftest.nl"
4374 $as_echo 'EGREP' >> "conftest.nl"
4375 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4377 ac_count=`expr $ac_count + 1`
4378 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4379 # Best one so far, save it but keep looking for a better one
4380 ac_cv_path_EGREP="$ac_path_EGREP"
4381 ac_path_EGREP_max=$ac_count
4382 fi
4383 # 10*(2^10) chars as input seems more than enough
4384 test $ac_count -gt 10 && break
4385 done
4386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4387esac
4388
4389 $ac_path_EGREP_found && break 3
4390 done
4391 done
4392done
4393IFS=$as_save_IFS
4394 if test -z "$ac_cv_path_EGREP"; then
4395 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4396$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4397 { (exit 1); exit 1; }; }
4398 fi
bf9f3bac 4399else
8934764e
BB
4400 ac_cv_path_EGREP=$EGREP
4401fi
4402
4403 fi
4404fi
4405{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4406$as_echo "$ac_cv_path_EGREP" >&6; }
4407 EGREP="$ac_cv_path_EGREP"
4408
4409
4410{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4411$as_echo_n "checking for fgrep... " >&6; }
4412if test "${ac_cv_path_FGREP+set}" = set; then
4413 $as_echo_n "(cached) " >&6
4414else
4415 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4416 then ac_cv_path_FGREP="$GREP -F"
4417 else
4418 if test -z "$FGREP"; then
4419 ac_path_FGREP_found=false
4420 # Loop through the user's path and test for each of PROGNAME-LIST
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_prog in fgrep; do
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4429 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4430# Check for GNU ac_path_FGREP and select it if it is found.
4431 # Check for GNU $ac_path_FGREP
4432case `"$ac_path_FGREP" --version 2>&1` in
4433*GNU*)
4434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4435*)
4436 ac_count=0
4437 $as_echo_n 0123456789 >"conftest.in"
4438 while :
4439 do
4440 cat "conftest.in" "conftest.in" >"conftest.tmp"
4441 mv "conftest.tmp" "conftest.in"
4442 cp "conftest.in" "conftest.nl"
4443 $as_echo 'FGREP' >> "conftest.nl"
4444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4446 ac_count=`expr $ac_count + 1`
4447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4448 # Best one so far, save it but keep looking for a better one
4449 ac_cv_path_FGREP="$ac_path_FGREP"
4450 ac_path_FGREP_max=$ac_count
4451 fi
4452 # 10*(2^10) chars as input seems more than enough
4453 test $ac_count -gt 10 && break
4454 done
4455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4456esac
4457
4458 $ac_path_FGREP_found && break 3
4459 done
4460 done
4461done
4462IFS=$as_save_IFS
4463 if test -z "$ac_cv_path_FGREP"; then
4464 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4465$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4466 { (exit 1); exit 1; }; }
4467 fi
4468else
4469 ac_cv_path_FGREP=$FGREP
4470fi
4471
4472 fi
4473fi
4474{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4475$as_echo "$ac_cv_path_FGREP" >&6; }
4476 FGREP="$ac_cv_path_FGREP"
4477
4478
4479test -z "$GREP" && GREP=grep
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499# Check whether --with-gnu-ld was given.
4500if test "${with_gnu_ld+set}" = set; then
4501 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4502else
4503 with_gnu_ld=no
4504fi
4505
4506ac_prog=ld
4507if test "$GCC" = yes; then
4508 # Check if gcc -print-prog-name=ld gives a path.
4509 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4510$as_echo_n "checking for ld used by $CC... " >&6; }
4511 case $host in
4512 *-*-mingw*)
4513 # gcc leaves a trailing carriage return which upsets mingw
4514 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4515 *)
4516 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4517 esac
4518 case $ac_prog in
4519 # Accept absolute paths.
4520 [\\/]* | ?:[\\/]*)
4521 re_direlt='/[^/][^/]*/\.\./'
4522 # Canonicalize the pathname of ld
4523 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4524 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4525 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4526 done
4527 test -z "$LD" && LD="$ac_prog"
4528 ;;
4529 "")
4530 # If it fails, then pretend we aren't using GCC.
4531 ac_prog=ld
4532 ;;
4533 *)
4534 # If it is relative, then search for the first ld in PATH.
4535 with_gnu_ld=unknown
4536 ;;
4537 esac
4538elif test "$with_gnu_ld" = yes; then
4539 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4540$as_echo_n "checking for GNU ld... " >&6; }
4541else
4542 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4543$as_echo_n "checking for non-GNU ld... " >&6; }
bf9f3bac 4544fi
4545if test "${lt_cv_path_LD+set}" = set; then
8934764e 4546 $as_echo_n "(cached) " >&6
bf9f3bac 4547else
4548 if test -z "$LD"; then
4549 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4550 for ac_dir in $PATH; do
4551 IFS="$lt_save_ifs"
4552 test -z "$ac_dir" && ac_dir=.
4553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4554 lt_cv_path_LD="$ac_dir/$ac_prog"
4555 # Check to see if the program is GNU ld. I'd rather use --version,
4556 # but apparently some variants of GNU ld only accept -v.
4557 # Break only if it was the GNU/non-GNU ld that we prefer.
4558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560 test "$with_gnu_ld" != no && break
4561 ;;
4562 *)
4563 test "$with_gnu_ld" != yes && break
4564 ;;
4565 esac
4566 fi
4567 done
4568 IFS="$lt_save_ifs"
4569else
4570 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4571fi
4572fi
4573
4574LD="$lt_cv_path_LD"
4575if test -n "$LD"; then
8934764e
BB
4576 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4577$as_echo "$LD" >&6; }
bf9f3bac 4578else
8934764e
BB
4579 { $as_echo "$as_me:$LINENO: result: no" >&5
4580$as_echo "no" >&6; }
bf9f3bac 4581fi
8934764e
BB
4582test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4583$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
bf9f3bac 4584 { (exit 1); exit 1; }; }
8934764e
BB
4585{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4586$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
bf9f3bac 4587if test "${lt_cv_prog_gnu_ld+set}" = set; then
8934764e 4588 $as_echo_n "(cached) " >&6
bf9f3bac 4589else
4590 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4591case `$LD -v 2>&1 </dev/null` in
4592*GNU* | *'with BFD'*)
4593 lt_cv_prog_gnu_ld=yes
4594 ;;
4595*)
4596 lt_cv_prog_gnu_ld=no
4597 ;;
4598esac
4599fi
8934764e
BB
4600{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4601$as_echo "$lt_cv_prog_gnu_ld" >&6; }
bf9f3bac 4602with_gnu_ld=$lt_cv_prog_gnu_ld
4603
4604
bf9f3bac 4605
8934764e
BB
4606
4607
4608
4609
4610
4611
4612{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4613$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
bf9f3bac 4614if test "${lt_cv_path_NM+set}" = set; then
8934764e 4615 $as_echo_n "(cached) " >&6
bf9f3bac 4616else
4617 if test -n "$NM"; then
4618 # Let the user override the test.
4619 lt_cv_path_NM="$NM"
4620else
4621 lt_nm_to_check="${ac_tool_prefix}nm"
4622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4623 lt_nm_to_check="$lt_nm_to_check nm"
4624 fi
4625 for lt_tmp_nm in $lt_nm_to_check; do
4626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4628 IFS="$lt_save_ifs"
4629 test -z "$ac_dir" && ac_dir=.
4630 tmp_nm="$ac_dir/$lt_tmp_nm"
4631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4632 # Check to see if the nm accepts a BSD-compat flag.
4633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4634 # nm: unknown option "B" ignored
4635 # Tru64's nm complains that /dev/null is an invalid object file
4636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4637 */dev/null* | *'Invalid file or object type'*)
4638 lt_cv_path_NM="$tmp_nm -B"
4639 break
4640 ;;
4641 *)
4642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4643 */dev/null*)
4644 lt_cv_path_NM="$tmp_nm -p"
4645 break
4646 ;;
4647 *)
4648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4649 continue # so that we can try to find one that supports BSD flags
4650 ;;
4651 esac
4652 ;;
4653 esac
4654 fi
4655 done
4656 IFS="$lt_save_ifs"
4657 done
8934764e 4658 : ${lt_cv_path_NM=no}
bf9f3bac 4659fi
4660fi
8934764e
BB
4661{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4662$as_echo "$lt_cv_path_NM" >&6; }
4663if test "$lt_cv_path_NM" != "no"; then
4664 NM="$lt_cv_path_NM"
4665else
4666 # Didn't find any BSD compatible name lister, look for dumpbin.
4667 if test -n "$ac_tool_prefix"; then
4668 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4669 do
4670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4671set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4672{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4673$as_echo_n "checking for $ac_word... " >&6; }
4674if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4676else
4677 if test -n "$DUMPBIN"; then
4678 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4679else
4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4688 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691done
4692done
4693IFS=$as_save_IFS
bf9f3bac 4694
8934764e
BB
4695fi
4696fi
4697DUMPBIN=$ac_cv_prog_DUMPBIN
4698if test -n "$DUMPBIN"; then
4699 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4700$as_echo "$DUMPBIN" >&6; }
bf9f3bac 4701else
8934764e
BB
4702 { $as_echo "$as_me:$LINENO: result: no" >&5
4703$as_echo "no" >&6; }
bf9f3bac 4704fi
4705
bf9f3bac 4706
8934764e
BB
4707 test -n "$DUMPBIN" && break
4708 done
4709fi
4710if test -z "$DUMPBIN"; then
4711 ac_ct_DUMPBIN=$DUMPBIN
4712 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4713do
4714 # Extract the first word of "$ac_prog", so it can be a program name with args.
4715set dummy $ac_prog; ac_word=$2
4716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4717$as_echo_n "checking for $ac_word... " >&6; }
4718if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4719 $as_echo_n "(cached) " >&6
4720else
4721 if test -n "$ac_ct_DUMPBIN"; then
4722 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4723else
4724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725for as_dir in $PATH
4726do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4734 fi
4735done
4736done
4737IFS=$as_save_IFS
bf9f3bac 4738
8934764e
BB
4739fi
4740fi
4741ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4742if test -n "$ac_ct_DUMPBIN"; then
4743 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4744$as_echo "$ac_ct_DUMPBIN" >&6; }
4745else
4746 { $as_echo "$as_me:$LINENO: result: no" >&5
4747$as_echo "no" >&6; }
4748fi
bf9f3bac 4749
bf9f3bac 4750
8934764e
BB
4751 test -n "$ac_ct_DUMPBIN" && break
4752done
bf9f3bac 4753
8934764e
BB
4754 if test "x$ac_ct_DUMPBIN" = x; then
4755 DUMPBIN=":"
4756 else
4757 case $cross_compiling:$ac_tool_warned in
4758yes:)
4759{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4761ac_tool_warned=yes ;;
4762esac
4763 DUMPBIN=$ac_ct_DUMPBIN
4764 fi
4765fi
bf9f3bac 4766
bf9f3bac 4767
8934764e
BB
4768 if test "$DUMPBIN" != ":"; then
4769 NM="$DUMPBIN"
bf9f3bac 4770 fi
8934764e
BB
4771fi
4772test -z "$NM" && NM=nm
bf9f3bac 4773
bf9f3bac 4774
bf9f3bac 4775
bf9f3bac 4776
bf9f3bac 4777
bf9f3bac 4778
8934764e
BB
4779{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4780$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4781if test "${lt_cv_nm_interface+set}" = set; then
4782 $as_echo_n "(cached) " >&6
4783else
4784 lt_cv_nm_interface="BSD nm"
4785 echo "int some_variable = 0;" > conftest.$ac_ext
c2dceb5c 4786 (eval echo "\"\$as_me:4786: $ac_compile\"" >&5)
8934764e
BB
4787 (eval "$ac_compile" 2>conftest.err)
4788 cat conftest.err >&5
c2dceb5c 4789 (eval echo "\"\$as_me:4789: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8934764e
BB
4790 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4791 cat conftest.err >&5
c2dceb5c 4792 (eval echo "\"\$as_me:4792: output\"" >&5)
8934764e
BB
4793 cat conftest.out >&5
4794 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4795 lt_cv_nm_interface="MS dumpbin"
bf9f3bac 4796 fi
8934764e
BB
4797 rm -f conftest*
4798fi
4799{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4800$as_echo "$lt_cv_nm_interface" >&6; }
bf9f3bac 4801
8934764e
BB
4802{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4803$as_echo_n "checking whether ln -s works... " >&6; }
4804LN_S=$as_ln_s
4805if test "$LN_S" = "ln -s"; then
4806 { $as_echo "$as_me:$LINENO: result: yes" >&5
4807$as_echo "yes" >&6; }
4808else
4809 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4810$as_echo "no, using $LN_S" >&6; }
4811fi
bf9f3bac 4812
8934764e
BB
4813# find the maximum length of command line arguments
4814{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4815$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4816if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4817 $as_echo_n "(cached) " >&6
4818else
4819 i=0
4820 teststring="ABCD"
bf9f3bac 4821
8934764e
BB
4822 case $build_os in
4823 msdosdjgpp*)
4824 # On DJGPP, this test can blow up pretty badly due to problems in libc
4825 # (any single argument exceeding 2000 bytes causes a buffer overrun
4826 # during glob expansion). Even if it were fixed, the result of this
4827 # check would be larger than it should be.
4828 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4829 ;;
bf9f3bac 4830
8934764e
BB
4831 gnu*)
4832 # Under GNU Hurd, this test is not required because there is
4833 # no limit to the length of command line arguments.
4834 # Libtool will interpret -1 as no limit whatsoever
4835 lt_cv_sys_max_cmd_len=-1;
4836 ;;
bf9f3bac 4837
8934764e
BB
4838 cygwin* | mingw* | cegcc*)
4839 # On Win9x/ME, this test blows up -- it succeeds, but takes
4840 # about 5 minutes as the teststring grows exponentially.
4841 # Worse, since 9x/ME are not pre-emptively multitasking,
4842 # you end up with a "frozen" computer, even though with patience
4843 # the test eventually succeeds (with a max line length of 256k).
4844 # Instead, let's just punt: use the minimum linelength reported by
4845 # all of the supported platforms: 8192 (on NT/2K/XP).
4846 lt_cv_sys_max_cmd_len=8192;
4847 ;;
bf9f3bac 4848
8934764e
BB
4849 amigaos*)
4850 # On AmigaOS with pdksh, this test takes hours, literally.
4851 # So we just punt and use a minimum line length of 8192.
4852 lt_cv_sys_max_cmd_len=8192;
bf9f3bac 4853 ;;
8934764e
BB
4854
4855 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4856 # This has been around since 386BSD, at least. Likely further.
4857 if test -x /sbin/sysctl; then
4858 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4859 elif test -x /usr/sbin/sysctl; then
4860 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4861 else
4862 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4863 fi
4864 # And add a safety zone
4865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
bf9f3bac 4867 ;;
8934764e
BB
4868
4869 interix*)
4870 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4871 lt_cv_sys_max_cmd_len=196608
bf9f3bac 4872 ;;
8934764e
BB
4873
4874 osf*)
4875 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4876 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4877 # nice to cause kernel panics so lets avoid the loop below.
4878 # First set a reasonable default.
4879 lt_cv_sys_max_cmd_len=16384
4880 #
4881 if test -x /sbin/sysconfig; then
4882 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4883 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4884 esac
4885 fi
bf9f3bac 4886 ;;
8934764e
BB
4887 sco3.2v5*)
4888 lt_cv_sys_max_cmd_len=102400
bf9f3bac 4889 ;;
8934764e
BB
4890 sysv5* | sco5v6* | sysv4.2uw2*)
4891 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4892 if test -n "$kargmax"; then
4893 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4894 else
4895 lt_cv_sys_max_cmd_len=32768
4896 fi
4897 ;;
4898 *)
4899 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4900 if test -n "$lt_cv_sys_max_cmd_len"; then
4901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4903 else
4904 # Make teststring a little bigger before we do anything with it.
4905 # a 1K string should be a reasonable start.
4906 for i in 1 2 3 4 5 6 7 8 ; do
4907 teststring=$teststring$teststring
4908 done
4909 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4910 # If test is not a shell built-in, we'll probably end up computing a
4911 # maximum length that is only half of the actual maximum length, but
4912 # we can't tell.
4913 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4914 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4915 test $i != 17 # 1/2 MB should be enough
4916 do
4917 i=`expr $i + 1`
4918 teststring=$teststring$teststring
4919 done
4920 # Only check the string length outside the loop.
4921 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4922 teststring=
4923 # Add a significant safety factor because C++ compilers can tack on
4924 # massive amounts of additional arguments before passing them to the
4925 # linker. It appears as though 1/2 is a usable value.
4926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4927 fi
bf9f3bac 4928 ;;
4929 esac
bf9f3bac 4930
8934764e 4931fi
bf9f3bac 4932
8934764e
BB
4933if test -n $lt_cv_sys_max_cmd_len ; then
4934 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4935$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4936else
4937 { $as_echo "$as_me:$LINENO: result: none" >&5
4938$as_echo "none" >&6; }
bf9f3bac 4939fi
8934764e 4940max_cmd_len=$lt_cv_sys_max_cmd_len
bf9f3bac 4941
4942
4943
4944
bf9f3bac 4945
bf9f3bac 4946
8934764e
BB
4947: ${CP="cp -f"}
4948: ${MV="mv -f"}
4949: ${RM="rm -f"}
bf9f3bac 4950
8934764e
BB
4951{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4952$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4953# Try some XSI features
4954xsi_shell=no
4955( _lt_dummy="a/b/c"
4956 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4957 = c,a/b,, \
4958 && eval 'test $(( 1 + 1 )) -eq 2 \
4959 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4960 && xsi_shell=yes
4961{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4962$as_echo "$xsi_shell" >&6; }
bf9f3bac 4963
bf9f3bac 4964
8934764e
BB
4965{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4966$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4967lt_shell_append=no
4968( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4969 >/dev/null 2>&1 \
4970 && lt_shell_append=yes
4971{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4972$as_echo "$lt_shell_append" >&6; }
bf9f3bac 4973
8934764e
BB
4974
4975if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4976 lt_unset=unset
4977else
4978 lt_unset=false
4979fi
4980
4981
4982
4983
4984
4985# test EBCDIC or ASCII
4986case `echo X|tr X '\101'` in
4987 A) # ASCII based system
4988 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4989 lt_SP2NL='tr \040 \012'
4990 lt_NL2SP='tr \015\012 \040\040'
bf9f3bac 4991 ;;
8934764e
BB
4992 *) # EBCDIC based system
4993 lt_SP2NL='tr \100 \n'
4994 lt_NL2SP='tr \r\n \100\100'
bf9f3bac 4995 ;;
8934764e
BB
4996esac
4997
bf9f3bac 4998
bf9f3bac 4999
bf9f3bac 5000
bf9f3bac 5001
bf9f3bac 5002
bf9f3bac 5003
bf9f3bac 5004
8934764e
BB
5005
5006{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5007$as_echo_n "checking for $LD option to reload object files... " >&6; }
5008if test "${lt_cv_ld_reload_flag+set}" = set; then
5009 $as_echo_n "(cached) " >&6
5010else
5011 lt_cv_ld_reload_flag='-r'
bf9f3bac 5012fi
8934764e
BB
5013{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5014$as_echo "$lt_cv_ld_reload_flag" >&6; }
5015reload_flag=$lt_cv_ld_reload_flag
5016case $reload_flag in
5017"" | " "*) ;;
5018*) reload_flag=" $reload_flag" ;;
5019esac
5020reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021case $host_os in
5022 darwin*)
5023 if test "$GCC" = yes; then
5024 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5025 else
5026 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5027 fi
5028 ;;
5029esac
bf9f3bac 5030
5031
bf9f3bac 5032
bf9f3bac 5033
5034
8934764e
BB
5035
5036
5037
5038
5039if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5041set dummy ${ac_tool_prefix}objdump; ac_word=$2
5042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5043$as_echo_n "checking for $ac_word... " >&6; }
5044if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5045 $as_echo_n "(cached) " >&6
bf9f3bac 5046else
8934764e
BB
5047 if test -n "$OBJDUMP"; then
5048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5049else
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
bf9f3bac 5052do
8934764e
BB
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
bf9f3bac 5060 fi
8934764e
BB
5061done
5062done
5063IFS=$as_save_IFS
bf9f3bac 5064
bf9f3bac 5065fi
bf9f3bac 5066fi
8934764e
BB
5067OBJDUMP=$ac_cv_prog_OBJDUMP
5068if test -n "$OBJDUMP"; then
5069 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5070$as_echo "$OBJDUMP" >&6; }
bf9f3bac 5071else
8934764e
BB
5072 { $as_echo "$as_me:$LINENO: result: no" >&5
5073$as_echo "no" >&6; }
bf9f3bac 5074fi
5075
bf9f3bac 5076
5077fi
8934764e
BB
5078if test -z "$ac_cv_prog_OBJDUMP"; then
5079 ac_ct_OBJDUMP=$OBJDUMP
5080 # Extract the first word of "objdump", so it can be a program name with args.
5081set dummy objdump; ac_word=$2
5082{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5085 $as_echo_n "(cached) " >&6
bf9f3bac 5086else
8934764e
BB
5087 if test -n "$ac_ct_OBJDUMP"; then
5088 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
bf9f3bac 5092do
8934764e
BB
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
bf9f3bac 5100 fi
8934764e
BB
5101done
5102done
5103IFS=$as_save_IFS
5104
bf9f3bac 5105fi
8934764e
BB
5106fi
5107ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5108if test -n "$ac_ct_OBJDUMP"; then
5109 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5110$as_echo "$ac_ct_OBJDUMP" >&6; }
bf9f3bac 5111else
8934764e
BB
5112 { $as_echo "$as_me:$LINENO: result: no" >&5
5113$as_echo "no" >&6; }
bf9f3bac 5114fi
bf9f3bac 5115
8934764e
BB
5116 if test "x$ac_ct_OBJDUMP" = x; then
5117 OBJDUMP="false"
bf9f3bac 5118 else
8934764e
BB
5119 case $cross_compiling:$ac_tool_warned in
5120yes:)
5121{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123ac_tool_warned=yes ;;
5124esac
5125 OBJDUMP=$ac_ct_OBJDUMP
bf9f3bac 5126 fi
5127else
8934764e 5128 OBJDUMP="$ac_cv_prog_OBJDUMP"
bf9f3bac 5129fi
bf9f3bac 5130
8934764e 5131test -z "$OBJDUMP" && OBJDUMP=objdump
bf9f3bac 5132
bf9f3bac 5133
bf9f3bac 5134
5135
bf9f3bac 5136
bf9f3bac 5137
bf9f3bac 5138
bf9f3bac 5139
bf9f3bac 5140
8934764e
BB
5141{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5142$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5143if test "${lt_cv_deplibs_check_method+set}" = set; then
5144 $as_echo_n "(cached) " >&6
bf9f3bac 5145else
8934764e
BB
5146 lt_cv_file_magic_cmd='$MAGIC_CMD'
5147lt_cv_file_magic_test_file=
5148lt_cv_deplibs_check_method='unknown'
5149# Need to set the preceding variable on all platforms that support
5150# interlibrary dependencies.
5151# 'none' -- dependencies not supported.
5152# `unknown' -- same as none, but documents that we really don't know.
5153# 'pass_all' -- all dependencies passed with no checks.
5154# 'test_compile' -- check by making test program.
5155# 'file_magic [[regex]]' -- check by looking for files in library path
5156# which responds to the $file_magic_cmd with a given extended regex.
5157# If you have `file' or equivalent on your system and you're not sure
5158# whether `pass_all' will *always* work, you probably want this one.
bf9f3bac 5159
8934764e
BB
5160case $host_os in
5161aix[4-9]*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
bf9f3bac 5164
8934764e
BB
5165beos*)
5166 lt_cv_deplibs_check_method=pass_all
5167 ;;
bf9f3bac 5168
8934764e
BB
5169bsdi[45]*)
5170 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5171 lt_cv_file_magic_cmd='/usr/bin/file -L'
5172 lt_cv_file_magic_test_file=/shlib/libc.so
5173 ;;
bf9f3bac 5174
8934764e
BB
5175cygwin*)
5176 # func_win32_libid is a shell function defined in ltmain.sh
5177 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5178 lt_cv_file_magic_cmd='func_win32_libid'
5179 ;;
bf9f3bac 5180
8934764e
BB
5181mingw* | pw32*)
5182 # Base MSYS/MinGW do not provide the 'file' command needed by
5183 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5184 # unless we find 'file', for example because we are cross-compiling.
5185 if ( file / ) >/dev/null 2>&1; then
5186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5187 lt_cv_file_magic_cmd='func_win32_libid'
5188 else
5189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5190 lt_cv_file_magic_cmd='$OBJDUMP -f'
5191 fi
5192 ;;
bf9f3bac 5193
8934764e
BB
5194cegcc)
5195 # use the weaker test based on 'objdump'. See mingw*.
5196 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5197 lt_cv_file_magic_cmd='$OBJDUMP -f'
5198 ;;
bf9f3bac 5199
8934764e
BB
5200darwin* | rhapsody*)
5201 lt_cv_deplibs_check_method=pass_all
5202 ;;
bf9f3bac 5203
8934764e
BB
5204freebsd* | dragonfly*)
5205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5206 case $host_cpu in
5207 i*86 )
5208 # Not sure whether the presence of OpenBSD here was a mistake.
5209 # Let's accept both of them until this is cleared up.
5210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5211 lt_cv_file_magic_cmd=/usr/bin/file
5212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5213 ;;
5214 esac
5215 else
5216 lt_cv_deplibs_check_method=pass_all
5217 fi
5218 ;;
bf9f3bac 5219
8934764e
BB
5220gnu*)
5221 lt_cv_deplibs_check_method=pass_all
5222 ;;
bf9f3bac 5223
8934764e
BB
5224hpux10.20* | hpux11*)
5225 lt_cv_file_magic_cmd=/usr/bin/file
5226 case $host_cpu in
5227 ia64*)
5228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5230 ;;
5231 hppa*64*)
5232 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]'
5233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5234 ;;
5235 *)
5236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5238 ;;
5239 esac
5240 ;;
bf9f3bac 5241
8934764e
BB
5242interix[3-9]*)
5243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5245 ;;
bf9f3bac 5246
8934764e
BB
5247irix5* | irix6* | nonstopux*)
5248 case $LD in
5249 *-32|*"-32 ") libmagic=32-bit;;
5250 *-n32|*"-n32 ") libmagic=N32;;
5251 *-64|*"-64 ") libmagic=64-bit;;
5252 *) libmagic=never-match;;
5253 esac
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
bf9f3bac 5256
8934764e
BB
5257# This must be Linux ELF.
5258linux* | k*bsd*-gnu)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
bf9f3bac 5261
8934764e
BB
5262netbsd*)
5263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5265 else
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5267 fi
5268 ;;
bf9f3bac 5269
8934764e
BB
5270newos6*)
5271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5272 lt_cv_file_magic_cmd=/usr/bin/file
5273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5274 ;;
bf9f3bac 5275
8934764e
BB
5276*nto* | *qnx*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
bf9f3bac 5279
8934764e
BB
5280openbsd*)
5281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5283 else
5284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5285 fi
5286 ;;
bf9f3bac 5287
8934764e
BB
5288osf3* | osf4* | osf5*)
5289 lt_cv_deplibs_check_method=pass_all
5290 ;;
bf9f3bac 5291
8934764e
BB
5292rdos*)
5293 lt_cv_deplibs_check_method=pass_all
5294 ;;
bf9f3bac 5295
8934764e
BB
5296solaris*)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
bf9f3bac 5299
8934764e
BB
5300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
bf9f3bac 5303
8934764e
BB
5304sysv4 | sysv4.3*)
5305 case $host_vendor in
5306 motorola)
5307 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]'
5308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
bf9f3bac 5309 ;;
8934764e
BB
5310 ncr)
5311 lt_cv_deplibs_check_method=pass_all
5312 ;;
5313 sequent)
5314 lt_cv_file_magic_cmd='/bin/file'
5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5316 ;;
5317 sni)
5318 lt_cv_file_magic_cmd='/bin/file'
5319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5320 lt_cv_file_magic_test_file=/lib/libc.so
5321 ;;
5322 siemens)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325 pc)
5326 lt_cv_deplibs_check_method=pass_all
bf9f3bac 5327 ;;
8934764e
BB
5328 esac
5329 ;;
5330
5331tpf*)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
bf9f3bac 5334esac
bf9f3bac 5335
5336fi
8934764e
BB
5337{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5338$as_echo "$lt_cv_deplibs_check_method" >&6; }
5339file_magic_cmd=$lt_cv_file_magic_cmd
5340deplibs_check_method=$lt_cv_deplibs_check_method
5341test -z "$deplibs_check_method" && deplibs_check_method=unknown
5342
5343
5344
5345
5346
5347
5348
5349
5350
bf9f3bac 5351
bf9f3bac 5352
bf9f3bac 5353
bf9f3bac 5354if test -n "$ac_tool_prefix"; then
8934764e
BB
5355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5356set dummy ${ac_tool_prefix}ar; ac_word=$2
5357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if test "${ac_cv_prog_AR+set}" = set; then
5360 $as_echo_n "(cached) " >&6
bf9f3bac 5361else
8934764e
BB
5362 if test -n "$AR"; then
5363 ac_cv_prog_AR="$AR" # Let the user override the test.
bf9f3bac 5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_AR="${ac_tool_prefix}ar"
5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5374 break 2
5375 fi
5376done
5377done
8934764e 5378IFS=$as_save_IFS
bf9f3bac 5379
5380fi
5381fi
8934764e
BB
5382AR=$ac_cv_prog_AR
5383if test -n "$AR"; then
5384 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5385$as_echo "$AR" >&6; }
bf9f3bac 5386else
8934764e
BB
5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5388$as_echo "no" >&6; }
bf9f3bac 5389fi
5390
8934764e 5391
bf9f3bac 5392fi
8934764e
BB
5393if test -z "$ac_cv_prog_AR"; then
5394 ac_ct_AR=$AR
5395 # Extract the first word of "ar", so it can be a program name with args.
5396set dummy ar; ac_word=$2
5397{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5400 $as_echo_n "(cached) " >&6
bf9f3bac 5401else
8934764e
BB
5402 if test -n "$ac_ct_AR"; then
5403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
bf9f3bac 5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_AR="ar"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5414 break 2
5415 fi
5416done
5417done
8934764e 5418IFS=$as_save_IFS
bf9f3bac 5419
5420fi
5421fi
8934764e
BB
5422ac_ct_AR=$ac_cv_prog_ac_ct_AR
5423if test -n "$ac_ct_AR"; then
5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5425$as_echo "$ac_ct_AR" >&6; }
bf9f3bac 5426else
8934764e
BB
5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5428$as_echo "no" >&6; }
bf9f3bac 5429fi
5430
8934764e
BB
5431 if test "x$ac_ct_AR" = x; then
5432 AR="false"
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435yes:)
5436{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438ac_tool_warned=yes ;;
5439esac
5440 AR=$ac_ct_AR
5441 fi
5442else
5443 AR="$ac_cv_prog_AR"
bf9f3bac 5444fi
5445
8934764e
BB
5446test -z "$AR" && AR=ar
5447test -z "$AR_FLAGS" && AR_FLAGS=cru
bf9f3bac 5448
bf9f3bac 5449
bf9f3bac 5450
bf9f3bac 5451
8934764e
BB
5452
5453
5454
5455
5456
5457
5458
5459if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5461set dummy ${ac_tool_prefix}strip; ac_word=$2
5462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5463$as_echo_n "checking for $ac_word... " >&6; }
5464if test "${ac_cv_prog_STRIP+set}" = set; then
5465 $as_echo_n "(cached) " >&6
bf9f3bac 5466else
8934764e
BB
5467 if test -n "$STRIP"; then
5468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5469else
5470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482done
5483IFS=$as_save_IFS
bf9f3bac 5484
bf9f3bac 5485fi
bf9f3bac 5486fi
8934764e
BB
5487STRIP=$ac_cv_prog_STRIP
5488if test -n "$STRIP"; then
5489 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5490$as_echo "$STRIP" >&6; }
bf9f3bac 5491else
8934764e
BB
5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5493$as_echo "no" >&6; }
5494fi
bf9f3bac 5495
bf9f3bac 5496
8934764e
BB
5497fi
5498if test -z "$ac_cv_prog_STRIP"; then
5499 ac_ct_STRIP=$STRIP
5500 # Extract the first word of "strip", so it can be a program name with args.
5501set dummy strip; ac_word=$2
5502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5503$as_echo_n "checking for $ac_word... " >&6; }
5504if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5505 $as_echo_n "(cached) " >&6
bf9f3bac 5506else
8934764e
BB
5507 if test -n "$ac_ct_STRIP"; then
5508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_ac_ct_STRIP="strip"
5518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5520 fi
5521done
5522done
5523IFS=$as_save_IFS
bf9f3bac 5524
bf9f3bac 5525fi
bf9f3bac 5526fi
8934764e
BB
5527ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5528if test -n "$ac_ct_STRIP"; then
5529 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5530$as_echo "$ac_ct_STRIP" >&6; }
bf9f3bac 5531else
8934764e
BB
5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5533$as_echo "no" >&6; }
5534fi
5535
5536 if test "x$ac_ct_STRIP" = x; then
5537 STRIP=":"
bf9f3bac 5538 else
8934764e
BB
5539 case $cross_compiling:$ac_tool_warned in
5540yes:)
5541{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543ac_tool_warned=yes ;;
5544esac
5545 STRIP=$ac_ct_STRIP
bf9f3bac 5546 fi
8934764e
BB
5547else
5548 STRIP="$ac_cv_prog_STRIP"
bf9f3bac 5549fi
bf9f3bac 5550
8934764e 5551test -z "$STRIP" && STRIP=:
bf9f3bac 5552
bf9f3bac 5553
bf9f3bac 5554
bf9f3bac 5555
bf9f3bac 5556
bf9f3bac 5557
8934764e
BB
5558if test -n "$ac_tool_prefix"; then
5559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5560set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5561{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5562$as_echo_n "checking for $ac_word... " >&6; }
5563if test "${ac_cv_prog_RANLIB+set}" = set; then
5564 $as_echo_n "(cached) " >&6
bf9f3bac 5565else
8934764e
BB
5566 if test -n "$RANLIB"; then
5567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5568else
5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570for as_dir in $PATH
5571do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580done
5581done
5582IFS=$as_save_IFS
bf9f3bac 5583
5584fi
8934764e
BB
5585fi
5586RANLIB=$ac_cv_prog_RANLIB
5587if test -n "$RANLIB"; then
5588 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5589$as_echo "$RANLIB" >&6; }
bf9f3bac 5590else
8934764e
BB
5591 { $as_echo "$as_me:$LINENO: result: no" >&5
5592$as_echo "no" >&6; }
bf9f3bac 5593fi
5594
5595
8934764e
BB
5596fi
5597if test -z "$ac_cv_prog_RANLIB"; then
5598 ac_ct_RANLIB=$RANLIB
5599 # Extract the first word of "ranlib", so it can be a program name with args.
5600set dummy ranlib; ac_word=$2
5601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5602$as_echo_n "checking for $ac_word... " >&6; }
5603if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5604 $as_echo_n "(cached) " >&6
bf9f3bac 5605else
8934764e
BB
5606 if test -n "$ac_ct_RANLIB"; then
5607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
bf9f3bac 5611do
8934764e
BB
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_ac_ct_RANLIB="ranlib"
5617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
bf9f3bac 5619 fi
8934764e
BB
5620done
5621done
5622IFS=$as_save_IFS
5623
bf9f3bac 5624fi
8934764e
BB
5625fi
5626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5627if test -n "$ac_ct_RANLIB"; then
5628 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5629$as_echo "$ac_ct_RANLIB" >&6; }
bf9f3bac 5630else
8934764e
BB
5631 { $as_echo "$as_me:$LINENO: result: no" >&5
5632$as_echo "no" >&6; }
bf9f3bac 5633fi
bf9f3bac 5634
8934764e
BB
5635 if test "x$ac_ct_RANLIB" = x; then
5636 RANLIB=":"
bf9f3bac 5637 else
8934764e
BB
5638 case $cross_compiling:$ac_tool_warned in
5639yes:)
5640{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5642ac_tool_warned=yes ;;
5643esac
5644 RANLIB=$ac_ct_RANLIB
bf9f3bac 5645 fi
5646else
8934764e 5647 RANLIB="$ac_cv_prog_RANLIB"
bf9f3bac 5648fi
bf9f3bac 5649
8934764e 5650test -z "$RANLIB" && RANLIB=:
bf9f3bac 5651
bf9f3bac 5652
bf9f3bac 5653
bf9f3bac 5654
bf9f3bac 5655
bf9f3bac 5656
8934764e
BB
5657# Determine commands to create old-style static archives.
5658old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5659old_postinstall_cmds='chmod 644 $oldlib'
5660old_postuninstall_cmds=
bf9f3bac 5661
8934764e
BB
5662if test -n "$RANLIB"; then
5663 case $host_os in
5664 openbsd*)
5665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5666 ;;
5667 *)
5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5669 ;;
5670 esac
5671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
bf9f3bac 5672fi
5673
bf9f3bac 5674
bf9f3bac 5675
5676
bf9f3bac 5677
bf9f3bac 5678
bf9f3bac 5679
bf9f3bac 5680
bf9f3bac 5681
bf9f3bac 5682
5683
bf9f3bac 5684
bf9f3bac 5685
bf9f3bac 5686
bf9f3bac 5687
bf9f3bac 5688
bf9f3bac 5689
bf9f3bac 5690
bf9f3bac 5691
bf9f3bac 5692
5693
5694
bf9f3bac 5695
bf9f3bac 5696
bf9f3bac 5697
bf9f3bac 5698
bf9f3bac 5699
bf9f3bac 5700
bf9f3bac 5701
bf9f3bac 5702
bf9f3bac 5703
bf9f3bac 5704
bf9f3bac 5705
5706
8934764e
BB
5707# If no C compiler was specified, use CC.
5708LTCC=${LTCC-"$CC"}
5709
5710# If no C compiler flags were specified, use CFLAGS.
5711LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5712
5713# Allow CC to be a program name with arguments.
5714compiler=$CC
bf9f3bac 5715
5716
5717# Check for command to grab the raw symbol name followed by C symbol from nm.
8934764e
BB
5718{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5719$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
bf9f3bac 5720if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8934764e 5721 $as_echo_n "(cached) " >&6
bf9f3bac 5722else
5723
5724# These are sane defaults that work on at least a few old systems.
5725# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5726
5727# Character class describing NM global symbol codes.
5728symcode='[BCDEGRST]'
5729
5730# Regexp to match symbols that can be accessed directly from C.
5731sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5732
bf9f3bac 5733# Define system-specific variables.
5734case $host_os in
5735aix*)
5736 symcode='[BCDT]'
5737 ;;
8934764e 5738cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 5739 symcode='[ABCDGISTW]'
5740 ;;
8934764e 5741hpux*)
bf9f3bac 5742 if test "$host_cpu" = ia64; then
5743 symcode='[ABCDEGRST]'
5744 fi
bf9f3bac 5745 ;;
5746irix* | nonstopux*)
5747 symcode='[BCDEGRST]'
5748 ;;
5749osf*)
5750 symcode='[BCDEGQRST]'
5751 ;;
5752solaris*)
5753 symcode='[BDRT]'
5754 ;;
5755sco3.2v5*)
5756 symcode='[DT]'
5757 ;;
5758sysv4.2uw2*)
5759 symcode='[DT]'
5760 ;;
5761sysv5* | sco5v6* | unixware* | OpenUNIX*)
5762 symcode='[ABDT]'
5763 ;;
5764sysv4)
5765 symcode='[DFNSTU]'
5766 ;;
5767esac
5768
8934764e
BB
5769# If we're using GNU nm, then use its standard symbol codes.
5770case `$NM -V 2>&1` in
5771*GNU* | *'with BFD'*)
5772 symcode='[ABCDGIRSTW]' ;;
5773esac
5774
5775# Transform an extracted symbol line into a proper C declaration.
5776# Some systems (esp. on ia64) link data and code symbols differently,
5777# so use this general approach.
5778lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5779
5780# Transform an extracted symbol line into symbol name and symbol address
5781lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5782lt_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'"
5783
bf9f3bac 5784# Handle CRLF in mingw tool chain
5785opt_cr=
5786case $build_os in
5787mingw*)
8934764e 5788 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
bf9f3bac 5789 ;;
5790esac
5791
8934764e 5792# Try without a prefix underscore, then with it.
bf9f3bac 5793for ac_symprfx in "" "_"; do
5794
5795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5796 symxfrm="\\1 $ac_symprfx\\2 \\2"
5797
5798 # Write the raw and C identifiers.
8934764e
BB
5799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5800 # Fake it for dumpbin and say T for any non-static function
5801 # and D for any global variable.
5802 # Also find C++ and __fastcall symbols from MSVC++,
5803 # which start with @ or ?.
5804 lt_cv_sys_global_symbol_pipe="$AWK '"\
5805" {last_section=section; section=\$ 3};"\
5806" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5807" \$ 0!~/External *\|/{next};"\
5808" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5809" {if(hide[section]) next};"\
5810" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5811" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5812" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5813" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5814" ' prfx=^$ac_symprfx"
5815 else
5816 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5817 fi
bf9f3bac 5818
5819 # Check to see that the pipe works correctly.
5820 pipe_works=no
5821
5822 rm -f conftest*
8934764e 5823 cat > conftest.$ac_ext <<_LT_EOF
bf9f3bac 5824#ifdef __cplusplus
5825extern "C" {
5826#endif
5827char nm_test_var;
8934764e
BB
5828void nm_test_func(void);
5829void nm_test_func(void){}
bf9f3bac 5830#ifdef __cplusplus
5831}
5832#endif
5833int main(){nm_test_var='a';nm_test_func();return(0);}
8934764e 5834_LT_EOF
bf9f3bac 5835
5836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>&5
5838 ac_status=$?
8934764e 5839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5840 (exit $ac_status); }; then
5841 # Now try to grab the symbols.
5842 nlist=conftest.nm
5843 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5844 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5845 ac_status=$?
8934764e 5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5847 (exit $ac_status); } && test -s "$nlist"; then
5848 # Try sorting and uniquifying the output.
5849 if sort "$nlist" | uniq > "$nlist"T; then
5850 mv -f "$nlist"T "$nlist"
5851 else
5852 rm -f "$nlist"T
5853 fi
5854
5855 # Make sure that we snagged all the symbols we need.
8934764e
BB
5856 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5857 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5858 cat <<_LT_EOF > conftest.$ac_ext
bf9f3bac 5859#ifdef __cplusplus
5860extern "C" {
5861#endif
5862
8934764e 5863_LT_EOF
bf9f3bac 5864 # Now generate the symbol file.
8934764e 5865 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
bf9f3bac 5866
8934764e 5867 cat <<_LT_EOF >> conftest.$ac_ext
bf9f3bac 5868
8934764e 5869/* The mapping between symbol names and symbols. */
bf9f3bac 5870const struct {
5871 const char *name;
8934764e 5872 void *address;
bf9f3bac 5873}
8934764e 5874lt__PROGRAM__LTX_preloaded_symbols[] =
bf9f3bac 5875{
8934764e
BB
5876 { "@PROGRAM@", (void *) 0 },
5877_LT_EOF
5878 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5879 cat <<\_LT_EOF >> conftest.$ac_ext
5880 {0, (void *) 0}
bf9f3bac 5881};
5882
8934764e
BB
5883/* This works around a problem in FreeBSD linker */
5884#ifdef FREEBSD_WORKAROUND
5885static const void *lt_preloaded_setup() {
5886 return lt__PROGRAM__LTX_preloaded_symbols;
5887}
5888#endif
5889
bf9f3bac 5890#ifdef __cplusplus
5891}
5892#endif
8934764e 5893_LT_EOF
bf9f3bac 5894 # Now try linking the two files.
5895 mv conftest.$ac_objext conftstm.$ac_objext
5896 lt_save_LIBS="$LIBS"
5897 lt_save_CFLAGS="$CFLAGS"
5898 LIBS="conftstm.$ac_objext"
5899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5902 ac_status=$?
8934764e 5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5904 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5905 pipe_works=yes
5906 fi
5907 LIBS="$lt_save_LIBS"
5908 CFLAGS="$lt_save_CFLAGS"
5909 else
5910 echo "cannot find nm_test_func in $nlist" >&5
5911 fi
5912 else
5913 echo "cannot find nm_test_var in $nlist" >&5
5914 fi
5915 else
5916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5917 fi
5918 else
5919 echo "$progname: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5921 fi
8934764e 5922 rm -rf conftest* conftst*
bf9f3bac 5923
5924 # Do not use the global_symbol_pipe unless it works.
5925 if test "$pipe_works" = yes; then
5926 break
5927 else
5928 lt_cv_sys_global_symbol_pipe=
5929 fi
5930done
5931
5932fi
5933
5934if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935 lt_cv_sys_global_symbol_to_cdecl=
5936fi
5937if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8934764e
BB
5938 { $as_echo "$as_me:$LINENO: result: failed" >&5
5939$as_echo "failed" >&6; }
bf9f3bac 5940else
8934764e
BB
5941 { $as_echo "$as_me:$LINENO: result: ok" >&5
5942$as_echo "ok" >&6; }
bf9f3bac 5943fi
5944
bf9f3bac 5945
5946
5947
5948
5949
8934764e
BB
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967# Check whether --enable-libtool-lock was given.
5968if test "${enable_libtool_lock+set}" = set; then
5969 enableval=$enable_libtool_lock;
5970fi
5971
5972test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5973
5974# Some flags need to be propagated to the compiler or linker for good
5975# libtool support.
5976case $host in
5977ia64-*-hpux*)
5978 # Find out which ABI we are using.
5979 echo 'int i;' > conftest.$ac_ext
5980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5981 (eval $ac_compile) 2>&5
5982 ac_status=$?
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); }; then
5985 case `/usr/bin/file conftest.$ac_objext` in
5986 *ELF-32*)
5987 HPUX_IA64_MODE="32"
5988 ;;
5989 *ELF-64*)
5990 HPUX_IA64_MODE="64"
5991 ;;
5992 esac
bf9f3bac 5993 fi
8934764e
BB
5994 rm -rf conftest*
5995 ;;
5996*-*-irix6*)
5997 # Find out which ABI we are using.
c2dceb5c 5998 echo '#line 5998 "configure"' > conftest.$ac_ext
8934764e
BB
5999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6000 (eval $ac_compile) 2>&5
6001 ac_status=$?
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; then
6004 if test "$lt_cv_prog_gnu_ld" = yes; then
6005 case `/usr/bin/file conftest.$ac_objext` in
6006 *32-bit*)
6007 LD="${LD-ld} -melf32bsmip"
6008 ;;
6009 *N32*)
6010 LD="${LD-ld} -melf32bmipn32"
6011 ;;
6012 *64-bit*)
6013 LD="${LD-ld} -melf64bmip"
6014 ;;
6015 esac
6016 else
6017 case `/usr/bin/file conftest.$ac_objext` in
6018 *32-bit*)
6019 LD="${LD-ld} -32"
6020 ;;
6021 *N32*)
6022 LD="${LD-ld} -n32"
6023 ;;
6024 *64-bit*)
6025 LD="${LD-ld} -64"
6026 ;;
6027 esac
6028 fi
6029 fi
6030 rm -rf conftest*
bf9f3bac 6031 ;;
bf9f3bac 6032
8934764e
BB
6033x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6034s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6035 # Find out which ABI we are using.
6036 echo 'int i;' > conftest.$ac_ext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6038 (eval $ac_compile) 2>&5
6039 ac_status=$?
6040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; then
6042 case `/usr/bin/file conftest.o` in
6043 *32-bit*)
6044 case $host in
6045 x86_64-*kfreebsd*-gnu)
6046 LD="${LD-ld} -m elf_i386_fbsd"
6047 ;;
6048 x86_64-*linux*)
6049 LD="${LD-ld} -m elf_i386"
6050 ;;
6051 ppc64-*linux*|powerpc64-*linux*)
6052 LD="${LD-ld} -m elf32ppclinux"
6053 ;;
6054 s390x-*linux*)
6055 LD="${LD-ld} -m elf_s390"
6056 ;;
6057 sparc64-*linux*)
6058 LD="${LD-ld} -m elf32_sparc"
6059 ;;
6060 esac
6061 ;;
6062 *64-bit*)
6063 case $host in
6064 x86_64-*kfreebsd*-gnu)
6065 LD="${LD-ld} -m elf_x86_64_fbsd"
6066 ;;
6067 x86_64-*linux*)
6068 LD="${LD-ld} -m elf_x86_64"
6069 ;;
6070 ppc*-*linux*|powerpc*-*linux*)
6071 LD="${LD-ld} -m elf64ppc"
6072 ;;
6073 s390*-*linux*|s390*-*tpf*)
6074 LD="${LD-ld} -m elf64_s390"
6075 ;;
6076 sparc*-*linux*)
6077 LD="${LD-ld} -m elf64_sparc"
6078 ;;
6079 esac
6080 ;;
6081 esac
6082 fi
6083 rm -rf conftest*
6084 ;;
bf9f3bac 6085
8934764e
BB
6086*-*-sco3.2v5*)
6087 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6088 SAVE_CFLAGS="$CFLAGS"
6089 CFLAGS="$CFLAGS -belf"
6090 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6091$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6092if test "${lt_cv_cc_needs_belf+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6094else
6095 ac_ext=c
6096ac_cpp='$CPP $CPPFLAGS'
6097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6100
8934764e
BB
6101 cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
bf9f3bac 6107
8934764e
BB
6108int
6109main ()
6110{
6111
6112 ;
6113 return 0;
6114}
6115_ACEOF
6116rm -f conftest.$ac_objext conftest$ac_exeext
6117if { (ac_try="$ac_link"
6118case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121esac
6122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6123$as_echo "$ac_try_echo") >&5
6124 (eval "$ac_link") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest$ac_exeext && {
6134 test "$cross_compiling" = yes ||
6135 $as_test_x conftest$ac_exeext
6136 }; then
6137 lt_cv_cc_needs_belf=yes
6138else
6139 $as_echo "$as_me: failed program was:" >&5
6140sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6141
8934764e
BB
6142 lt_cv_cc_needs_belf=no
6143fi
bf9f3bac 6144
8934764e
BB
6145rm -rf conftest.dSYM
6146rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6147 conftest$ac_exeext conftest.$ac_ext
6148 ac_ext=c
6149ac_cpp='$CPP $CPPFLAGS'
6150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6153
8934764e
BB
6154fi
6155{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6156$as_echo "$lt_cv_cc_needs_belf" >&6; }
6157 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6158 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6159 CFLAGS="$SAVE_CFLAGS"
6160 fi
6161 ;;
6162sparc*-*solaris*)
6163 # Find out which ABI we are using.
6164 echo 'int i;' > conftest.$ac_ext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; then
6170 case `/usr/bin/file conftest.o` in
6171 *64-bit*)
6172 case $lt_cv_prog_gnu_ld in
6173 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6174 *)
6175 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6176 LD="${LD-ld} -64"
6177 fi
6178 ;;
6179 esac
6180 ;;
6181 esac
6182 fi
6183 rm -rf conftest*
6184 ;;
6185esac
bf9f3bac 6186
8934764e
BB
6187need_locks="$enable_libtool_lock"
6188
6189
6190 case $host_os in
6191 rhapsody* | darwin*)
6192 if test -n "$ac_tool_prefix"; then
6193 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6194set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6196$as_echo_n "checking for $ac_word... " >&6; }
6197if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6198 $as_echo_n "(cached) " >&6
6199else
6200 if test -n "$DSYMUTIL"; then
6201 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
bf9f3bac 6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6212 break 2
6213 fi
6214done
6215done
8934764e 6216IFS=$as_save_IFS
bf9f3bac 6217
6218fi
6219fi
8934764e
BB
6220DSYMUTIL=$ac_cv_prog_DSYMUTIL
6221if test -n "$DSYMUTIL"; then
6222 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6223$as_echo "$DSYMUTIL" >&6; }
bf9f3bac 6224else
8934764e
BB
6225 { $as_echo "$as_me:$LINENO: result: no" >&5
6226$as_echo "no" >&6; }
bf9f3bac 6227fi
6228
8934764e 6229
bf9f3bac 6230fi
8934764e
BB
6231if test -z "$ac_cv_prog_DSYMUTIL"; then
6232 ac_ct_DSYMUTIL=$DSYMUTIL
6233 # Extract the first word of "dsymutil", so it can be a program name with args.
6234set dummy dsymutil; ac_word=$2
6235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6236$as_echo_n "checking for $ac_word... " >&6; }
6237if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6238 $as_echo_n "(cached) " >&6
bf9f3bac 6239else
8934764e
BB
6240 if test -n "$ac_ct_DSYMUTIL"; then
6241 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
bf9f3bac 6242else
6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246 IFS=$as_save_IFS
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6252 break 2
6253 fi
6254done
6255done
8934764e 6256IFS=$as_save_IFS
bf9f3bac 6257
bf9f3bac 6258fi
6259fi
8934764e
BB
6260ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6261if test -n "$ac_ct_DSYMUTIL"; then
6262 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6263$as_echo "$ac_ct_DSYMUTIL" >&6; }
bf9f3bac 6264else
8934764e
BB
6265 { $as_echo "$as_me:$LINENO: result: no" >&5
6266$as_echo "no" >&6; }
bf9f3bac 6267fi
6268
8934764e
BB
6269 if test "x$ac_ct_DSYMUTIL" = x; then
6270 DSYMUTIL=":"
6271 else
6272 case $cross_compiling:$ac_tool_warned in
6273yes:)
6274{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276ac_tool_warned=yes ;;
6277esac
6278 DSYMUTIL=$ac_ct_DSYMUTIL
6279 fi
bf9f3bac 6280else
8934764e 6281 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
bf9f3bac 6282fi
6283
8934764e
BB
6284 if test -n "$ac_tool_prefix"; then
6285 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6286set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6287{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
6289if test "${ac_cv_prog_NMEDIT+set}" = set; then
6290 $as_echo_n "(cached) " >&6
bf9f3bac 6291else
8934764e
BB
6292 if test -n "$NMEDIT"; then
6293 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
bf9f3bac 6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6304 break 2
6305 fi
6306done
6307done
8934764e 6308IFS=$as_save_IFS
bf9f3bac 6309
6310fi
6311fi
8934764e
BB
6312NMEDIT=$ac_cv_prog_NMEDIT
6313if test -n "$NMEDIT"; then
6314 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6315$as_echo "$NMEDIT" >&6; }
bf9f3bac 6316else
8934764e
BB
6317 { $as_echo "$as_me:$LINENO: result: no" >&5
6318$as_echo "no" >&6; }
bf9f3bac 6319fi
6320
8934764e 6321
bf9f3bac 6322fi
8934764e
BB
6323if test -z "$ac_cv_prog_NMEDIT"; then
6324 ac_ct_NMEDIT=$NMEDIT
6325 # Extract the first word of "nmedit", so it can be a program name with args.
6326set dummy nmedit; ac_word=$2
6327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6330 $as_echo_n "(cached) " >&6
bf9f3bac 6331else
8934764e
BB
6332 if test -n "$ac_ct_NMEDIT"; then
6333 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
bf9f3bac 6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6344 break 2
6345 fi
6346done
6347done
8934764e 6348IFS=$as_save_IFS
bf9f3bac 6349
bf9f3bac 6350fi
6351fi
8934764e
BB
6352ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6353if test -n "$ac_ct_NMEDIT"; then
6354 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6355$as_echo "$ac_ct_NMEDIT" >&6; }
bf9f3bac 6356else
8934764e
BB
6357 { $as_echo "$as_me:$LINENO: result: no" >&5
6358$as_echo "no" >&6; }
bf9f3bac 6359fi
6360
8934764e
BB
6361 if test "x$ac_ct_NMEDIT" = x; then
6362 NMEDIT=":"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365yes:)
6366{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370 NMEDIT=$ac_ct_NMEDIT
6371 fi
bf9f3bac 6372else
8934764e 6373 NMEDIT="$ac_cv_prog_NMEDIT"
bf9f3bac 6374fi
6375
8934764e
BB
6376 if test -n "$ac_tool_prefix"; then
6377 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6378set dummy ${ac_tool_prefix}lipo; ac_word=$2
6379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if test "${ac_cv_prog_LIPO+set}" = set; then
6382 $as_echo_n "(cached) " >&6
bf9f3bac 6383else
8934764e
BB
6384 if test -n "$LIPO"; then
6385 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
bf9f3bac 6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6396 break 2
6397 fi
6398done
6399done
8934764e 6400IFS=$as_save_IFS
bf9f3bac 6401
6402fi
6403fi
8934764e
BB
6404LIPO=$ac_cv_prog_LIPO
6405if test -n "$LIPO"; then
6406 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6407$as_echo "$LIPO" >&6; }
bf9f3bac 6408else
8934764e
BB
6409 { $as_echo "$as_me:$LINENO: result: no" >&5
6410$as_echo "no" >&6; }
bf9f3bac 6411fi
6412
8934764e 6413
bf9f3bac 6414fi
8934764e
BB
6415if test -z "$ac_cv_prog_LIPO"; then
6416 ac_ct_LIPO=$LIPO
6417 # Extract the first word of "lipo", so it can be a program name with args.
6418set dummy lipo; ac_word=$2
6419{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
6421if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6422 $as_echo_n "(cached) " >&6
bf9f3bac 6423else
8934764e
BB
6424 if test -n "$ac_ct_LIPO"; then
6425 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
bf9f3bac 6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_ac_ct_LIPO="lipo"
6435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6436 break 2
6437 fi
6438done
6439done
8934764e 6440IFS=$as_save_IFS
bf9f3bac 6441
bf9f3bac 6442fi
6443fi
8934764e
BB
6444ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6445if test -n "$ac_ct_LIPO"; then
6446 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6447$as_echo "$ac_ct_LIPO" >&6; }
bf9f3bac 6448else
8934764e
BB
6449 { $as_echo "$as_me:$LINENO: result: no" >&5
6450$as_echo "no" >&6; }
bf9f3bac 6451fi
6452
8934764e
BB
6453 if test "x$ac_ct_LIPO" = x; then
6454 LIPO=":"
6455 else
6456 case $cross_compiling:$ac_tool_warned in
6457yes:)
6458{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460ac_tool_warned=yes ;;
6461esac
6462 LIPO=$ac_ct_LIPO
6463 fi
bf9f3bac 6464else
8934764e 6465 LIPO="$ac_cv_prog_LIPO"
bf9f3bac 6466fi
6467
8934764e
BB
6468 if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6470set dummy ${ac_tool_prefix}otool; ac_word=$2
6471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6472$as_echo_n "checking for $ac_word... " >&6; }
6473if test "${ac_cv_prog_OTOOL+set}" = set; then
6474 $as_echo_n "(cached) " >&6
6475else
6476 if test -n "$OTOOL"; then
6477 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6478else
6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
bf9f3bac 6490done
8934764e
BB
6491done
6492IFS=$as_save_IFS
bf9f3bac 6493
8934764e
BB
6494fi
6495fi
6496OTOOL=$ac_cv_prog_OTOOL
6497if test -n "$OTOOL"; then
6498 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6499$as_echo "$OTOOL" >&6; }
bf9f3bac 6500else
8934764e
BB
6501 { $as_echo "$as_me:$LINENO: result: no" >&5
6502$as_echo "no" >&6; }
6503fi
bf9f3bac 6504
bf9f3bac 6505
bf9f3bac 6506fi
8934764e
BB
6507if test -z "$ac_cv_prog_OTOOL"; then
6508 ac_ct_OTOOL=$OTOOL
6509 # Extract the first word of "otool", so it can be a program name with args.
6510set dummy otool; ac_word=$2
6511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
6513if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6514 $as_echo_n "(cached) " >&6
bf9f3bac 6515else
8934764e
BB
6516 if test -n "$ac_ct_OTOOL"; then
6517 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
bf9f3bac 6518else
8934764e
BB
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_ac_ct_OTOOL="otool"
6527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531done
6532IFS=$as_save_IFS
bf9f3bac 6533
bf9f3bac 6534fi
8934764e
BB
6535fi
6536ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6537if test -n "$ac_ct_OTOOL"; then
6538 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6539$as_echo "$ac_ct_OTOOL" >&6; }
bf9f3bac 6540else
8934764e
BB
6541 { $as_echo "$as_me:$LINENO: result: no" >&5
6542$as_echo "no" >&6; }
bf9f3bac 6543fi
6544
8934764e
BB
6545 if test "x$ac_ct_OTOOL" = x; then
6546 OTOOL=":"
bf9f3bac 6547 else
8934764e
BB
6548 case $cross_compiling:$ac_tool_warned in
6549yes:)
6550{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6552ac_tool_warned=yes ;;
6553esac
6554 OTOOL=$ac_ct_OTOOL
bf9f3bac 6555 fi
8934764e
BB
6556else
6557 OTOOL="$ac_cv_prog_OTOOL"
bf9f3bac 6558fi
6559
8934764e
BB
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6562set dummy ${ac_tool_prefix}otool64; ac_word=$2
6563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6564$as_echo_n "checking for $ac_word... " >&6; }
6565if test "${ac_cv_prog_OTOOL64+set}" = set; then
6566 $as_echo_n "(cached) " >&6
6567else
6568 if test -n "$OTOOL64"; then
6569 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6570else
6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572for as_dir in $PATH
6573do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
bf9f3bac 6581 fi
8934764e
BB
6582done
6583done
6584IFS=$as_save_IFS
bf9f3bac 6585
8934764e
BB
6586fi
6587fi
6588OTOOL64=$ac_cv_prog_OTOOL64
6589if test -n "$OTOOL64"; then
6590 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6591$as_echo "$OTOOL64" >&6; }
6592else
6593 { $as_echo "$as_me:$LINENO: result: no" >&5
6594$as_echo "no" >&6; }
6595fi
bf9f3bac 6596
bf9f3bac 6597
8934764e
BB
6598fi
6599if test -z "$ac_cv_prog_OTOOL64"; then
6600 ac_ct_OTOOL64=$OTOOL64
6601 # Extract the first word of "otool64", so it can be a program name with args.
6602set dummy otool64; ac_word=$2
6603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6604$as_echo_n "checking for $ac_word... " >&6; }
6605if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6606 $as_echo_n "(cached) " >&6
6607else
6608 if test -n "$ac_ct_OTOOL64"; then
6609 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6610else
6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612for as_dir in $PATH
6613do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_OTOOL64="otool64"
6619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622done
6623done
6624IFS=$as_save_IFS
bf9f3bac 6625
8934764e
BB
6626fi
6627fi
6628ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6629if test -n "$ac_ct_OTOOL64"; then
6630 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6631$as_echo "$ac_ct_OTOOL64" >&6; }
6632else
6633 { $as_echo "$as_me:$LINENO: result: no" >&5
6634$as_echo "no" >&6; }
6635fi
bf9f3bac 6636
8934764e
BB
6637 if test "x$ac_ct_OTOOL64" = x; then
6638 OTOOL64=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641yes:)
6642{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646 OTOOL64=$ac_ct_OTOOL64
6647 fi
bf9f3bac 6648else
8934764e
BB
6649 OTOOL64="$ac_cv_prog_OTOOL64"
6650fi
bf9f3bac 6651
bf9f3bac 6652
6653
bf9f3bac 6654
bf9f3bac 6655
bf9f3bac 6656
bf9f3bac 6657
6658
bf9f3bac 6659
bf9f3bac 6660
bf9f3bac 6661
6662
bf9f3bac 6663
bf9f3bac 6664
6665
6666
bf9f3bac 6667
bf9f3bac 6668
6669
bf9f3bac 6670
bf9f3bac 6671
8934764e
BB
6672
6673
6674
6675
6676
6677
6678 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6679$as_echo_n "checking for -single_module linker flag... " >&6; }
6680if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6681 $as_echo_n "(cached) " >&6
bf9f3bac 6682else
8934764e
BB
6683 lt_cv_apple_cc_single_mod=no
6684 if test -z "${LT_MULTI_MODULE}"; then
6685 # By default we will add the -single_module flag. You can override
6686 # by either setting the environment variable LT_MULTI_MODULE
6687 # non-empty at configure time, or by adding -multi_module to the
6688 # link flags.
6689 rm -rf libconftest.dylib*
6690 echo "int foo(void){return 1;}" > conftest.c
6691 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6692-dynamiclib -Wl,-single_module conftest.c" >&5
6693 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6694 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6695 _lt_result=$?
6696 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6697 lt_cv_apple_cc_single_mod=yes
6698 else
6699 cat conftest.err >&5
6700 fi
6701 rm -rf libconftest.dylib*
6702 rm -f conftest.*
6703 fi
bf9f3bac 6704fi
8934764e
BB
6705{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6706$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6707 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6708$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6709if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6710 $as_echo_n "(cached) " >&6
6711else
6712 lt_cv_ld_exported_symbols_list=no
6713 save_LDFLAGS=$LDFLAGS
6714 echo "_main" > conftest.sym
6715 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6716 cat >conftest.$ac_ext <<_ACEOF
6717/* confdefs.h. */
6718_ACEOF
6719cat confdefs.h >>conftest.$ac_ext
6720cat >>conftest.$ac_ext <<_ACEOF
6721/* end confdefs.h. */
bf9f3bac 6722
8934764e
BB
6723int
6724main ()
6725{
bf9f3bac 6726
8934764e
BB
6727 ;
6728 return 0;
6729}
6730_ACEOF
6731rm -f conftest.$ac_objext conftest$ac_exeext
6732if { (ac_try="$ac_link"
6733case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736esac
6737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738$as_echo "$ac_try_echo") >&5
6739 (eval "$ac_link") 2>conftest.er1
6740 ac_status=$?
6741 grep -v '^ *+' conftest.er1 >conftest.err
6742 rm -f conftest.er1
6743 cat conftest.err >&5
6744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest$ac_exeext && {
6749 test "$cross_compiling" = yes ||
6750 $as_test_x conftest$ac_exeext
6751 }; then
6752 lt_cv_ld_exported_symbols_list=yes
6753else
6754 $as_echo "$as_me: failed program was:" >&5
6755sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6756
8934764e
BB
6757 lt_cv_ld_exported_symbols_list=no
6758fi
bf9f3bac 6759
8934764e
BB
6760rm -rf conftest.dSYM
6761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6762 conftest$ac_exeext conftest.$ac_ext
6763 LDFLAGS="$save_LDFLAGS"
bf9f3bac 6764
8934764e
BB
6765fi
6766{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6767$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
bf9f3bac 6768 case $host_os in
8934764e
BB
6769 rhapsody* | darwin1.[012])
6770 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6771 darwin1.*)
6772 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6773 darwin*) # darwin 5.x on
6774 # if running on 10.5 or later, the deployment target defaults
6775 # to the OS version, if on x86, and 10.4, the deployment
6776 # target defaults to 10.4. Don't you love it?
6777 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6778 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6779 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6780 10.[012]*)
6781 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6782 10.*)
6783 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6784 esac
6785 ;;
6786 esac
6787 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6788 _lt_dar_single_mod='$single_module'
6789 fi
6790 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6791 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6792 else
6793 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6794 fi
6795 if test "$DSYMUTIL" != ":"; then
6796 _lt_dsymutil='~$DSYMUTIL $lib || :'
6797 else
6798 _lt_dsymutil=
6799 fi
6800 ;;
6801 esac
bf9f3bac 6802
8934764e
BB
6803ac_ext=c
6804ac_cpp='$CPP $CPPFLAGS'
6805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807ac_compiler_gnu=$ac_cv_c_compiler_gnu
6808{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6809$as_echo_n "checking how to run the C preprocessor... " >&6; }
6810# On Suns, sometimes $CPP names a directory.
6811if test -n "$CPP" && test -d "$CPP"; then
6812 CPP=
6813fi
6814if test -z "$CPP"; then
6815 if test "${ac_cv_prog_CPP+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6817else
6818 # Double quotes because CPP needs to be expanded
6819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6820 do
6821 ac_preproc_ok=false
6822for ac_c_preproc_warn_flag in '' yes
6823do
6824 # Use a header file that comes with gcc, so configuring glibc
6825 # with a fresh cross-compiler works.
6826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6827 # <limits.h> exists even on freestanding compilers.
6828 # On the NeXT, cc -E runs the code through the compiler's parser,
6829 # not just through cpp. "Syntax error" is here to catch this case.
6830 cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h. */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h. */
6836#ifdef __STDC__
6837# include <limits.h>
6838#else
6839# include <assert.h>
6840#endif
6841 Syntax error
6842_ACEOF
6843if { (ac_try="$ac_cpp conftest.$ac_ext"
6844case "(($ac_try" in
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6847esac
6848eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849$as_echo "$ac_try_echo") >&5
6850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } >/dev/null && {
6857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 }; then
6860 :
6861else
6862 $as_echo "$as_me: failed program was:" >&5
6863sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6864
8934764e
BB
6865 # Broken: fails on valid input.
6866continue
6867fi
bf9f3bac 6868
8934764e 6869rm -f conftest.err conftest.$ac_ext
bf9f3bac 6870
8934764e
BB
6871 # OK, works on sane cases. Now check whether nonexistent headers
6872 # can be detected and how.
6873 cat >conftest.$ac_ext <<_ACEOF
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h. */
6879#include <ac_nonexistent.h>
6880_ACEOF
6881if { (ac_try="$ac_cpp conftest.$ac_ext"
6882case "(($ac_try" in
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6885esac
6886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887$as_echo "$ac_try_echo") >&5
6888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } >/dev/null && {
6895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 }; then
6898 # Broken: success on invalid input.
6899continue
6900else
6901 $as_echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6903
8934764e
BB
6904 # Passes both tests.
6905ac_preproc_ok=:
6906break
6907fi
bf9f3bac 6908
8934764e 6909rm -f conftest.err conftest.$ac_ext
bf9f3bac 6910
8934764e
BB
6911done
6912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6913rm -f conftest.err conftest.$ac_ext
6914if $ac_preproc_ok; then
6915 break
6916fi
bf9f3bac 6917
8934764e
BB
6918 done
6919 ac_cv_prog_CPP=$CPP
bf9f3bac 6920
8934764e
BB
6921fi
6922 CPP=$ac_cv_prog_CPP
6923else
6924 ac_cv_prog_CPP=$CPP
6925fi
6926{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6927$as_echo "$CPP" >&6; }
6928ac_preproc_ok=false
6929for ac_c_preproc_warn_flag in '' yes
6930do
6931 # Use a header file that comes with gcc, so configuring glibc
6932 # with a fresh cross-compiler works.
6933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6934 # <limits.h> exists even on freestanding compilers.
6935 # On the NeXT, cc -E runs the code through the compiler's parser,
6936 # not just through cpp. "Syntax error" is here to catch this case.
6937 cat >conftest.$ac_ext <<_ACEOF
6938/* confdefs.h. */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h. */
6943#ifdef __STDC__
6944# include <limits.h>
6945#else
6946# include <assert.h>
6947#endif
6948 Syntax error
6949_ACEOF
6950if { (ac_try="$ac_cpp conftest.$ac_ext"
6951case "(($ac_try" in
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6954esac
6955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6956$as_echo "$ac_try_echo") >&5
6957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } >/dev/null && {
6964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 }; then
6967 :
6968else
6969 $as_echo "$as_me: failed program was:" >&5
6970sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6971
8934764e
BB
6972 # Broken: fails on valid input.
6973continue
6974fi
bf9f3bac 6975
8934764e 6976rm -f conftest.err conftest.$ac_ext
bf9f3bac 6977
8934764e
BB
6978 # OK, works on sane cases. Now check whether nonexistent headers
6979 # can be detected and how.
6980 cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h. */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h. */
6986#include <ac_nonexistent.h>
6987_ACEOF
6988if { (ac_try="$ac_cpp conftest.$ac_ext"
6989case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992esac
6993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994$as_echo "$ac_try_echo") >&5
6995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996 ac_status=$?
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); } >/dev/null && {
7002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 }; then
7005 # Broken: success on invalid input.
7006continue
7007else
7008 $as_echo "$as_me: failed program was:" >&5
7009sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7010
8934764e
BB
7011 # Passes both tests.
7012ac_preproc_ok=:
7013break
7014fi
bf9f3bac 7015
8934764e 7016rm -f conftest.err conftest.$ac_ext
bf9f3bac 7017
8934764e
BB
7018done
7019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7020rm -f conftest.err conftest.$ac_ext
7021if $ac_preproc_ok; then
7022 :
7023else
7024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7026{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7027See \`config.log' for more details." >&5
7028$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7029See \`config.log' for more details." >&2;}
7030 { (exit 1); exit 1; }; }; }
7031fi
bf9f3bac 7032
8934764e
BB
7033ac_ext=c
7034ac_cpp='$CPP $CPPFLAGS'
7035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 7038
bf9f3bac 7039
8934764e
BB
7040{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7041$as_echo_n "checking for ANSI C header files... " >&6; }
7042if test "${ac_cv_header_stdc+set}" = set; then
7043 $as_echo_n "(cached) " >&6
7044else
7045 cat >conftest.$ac_ext <<_ACEOF
7046/* confdefs.h. */
7047_ACEOF
7048cat confdefs.h >>conftest.$ac_ext
7049cat >>conftest.$ac_ext <<_ACEOF
7050/* end confdefs.h. */
7051#include <stdlib.h>
7052#include <stdarg.h>
7053#include <string.h>
7054#include <float.h>
bf9f3bac 7055
8934764e
BB
7056int
7057main ()
7058{
bf9f3bac 7059
8934764e
BB
7060 ;
7061 return 0;
7062}
7063_ACEOF
7064rm -f conftest.$ac_objext
7065if { (ac_try="$ac_compile"
7066case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069esac
7070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7071$as_echo "$ac_try_echo") >&5
7072 (eval "$ac_compile") 2>conftest.er1
7073 ac_status=$?
7074 grep -v '^ *+' conftest.er1 >conftest.err
7075 rm -f conftest.er1
7076 cat conftest.err >&5
7077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } && {
7079 test -z "$ac_c_werror_flag" ||
7080 test ! -s conftest.err
7081 } && test -s conftest.$ac_objext; then
7082 ac_cv_header_stdc=yes
bf9f3bac 7083else
8934764e
BB
7084 $as_echo "$as_me: failed program was:" >&5
7085sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7086
8934764e 7087 ac_cv_header_stdc=no
bf9f3bac 7088fi
bf9f3bac 7089
8934764e 7090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7091
8934764e
BB
7092if test $ac_cv_header_stdc = yes; then
7093 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7094 cat >conftest.$ac_ext <<_ACEOF
7095/* confdefs.h. */
7096_ACEOF
7097cat confdefs.h >>conftest.$ac_ext
7098cat >>conftest.$ac_ext <<_ACEOF
7099/* end confdefs.h. */
7100#include <string.h>
bf9f3bac 7101
8934764e
BB
7102_ACEOF
7103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104 $EGREP "memchr" >/dev/null 2>&1; then
7105 :
bf9f3bac 7106else
8934764e
BB
7107 ac_cv_header_stdc=no
7108fi
7109rm -f conftest*
bf9f3bac 7110
7111fi
bf9f3bac 7112
8934764e
BB
7113if test $ac_cv_header_stdc = yes; then
7114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7115 cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h. */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h. */
7121#include <stdlib.h>
7122
7123_ACEOF
7124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7125 $EGREP "free" >/dev/null 2>&1; then
7126 :
bf9f3bac 7127else
8934764e 7128 ac_cv_header_stdc=no
bf9f3bac 7129fi
8934764e 7130rm -f conftest*
bf9f3bac 7131
8934764e 7132fi
bf9f3bac 7133
8934764e
BB
7134if test $ac_cv_header_stdc = yes; then
7135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7136 if test "$cross_compiling" = yes; then
7137 :
bf9f3bac 7138else
8934764e
BB
7139 cat >conftest.$ac_ext <<_ACEOF
7140/* confdefs.h. */
7141_ACEOF
7142cat confdefs.h >>conftest.$ac_ext
7143cat >>conftest.$ac_ext <<_ACEOF
7144/* end confdefs.h. */
7145#include <ctype.h>
7146#include <stdlib.h>
7147#if ((' ' & 0x0FF) == 0x020)
7148# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7149# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7150#else
7151# define ISLOWER(c) \
7152 (('a' <= (c) && (c) <= 'i') \
7153 || ('j' <= (c) && (c) <= 'r') \
7154 || ('s' <= (c) && (c) <= 'z'))
7155# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7156#endif
bf9f3bac 7157
8934764e
BB
7158#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7159int
7160main ()
7161{
7162 int i;
7163 for (i = 0; i < 256; i++)
7164 if (XOR (islower (i), ISLOWER (i))
7165 || toupper (i) != TOUPPER (i))
7166 return 2;
7167 return 0;
7168}
7169_ACEOF
7170rm -f conftest$ac_exeext
7171if { (ac_try="$ac_link"
7172case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175esac
7176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7177$as_echo "$ac_try_echo") >&5
7178 (eval "$ac_link") 2>&5
7179 ac_status=$?
7180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7182 { (case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185esac
7186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7187$as_echo "$ac_try_echo") >&5
7188 (eval "$ac_try") 2>&5
7189 ac_status=$?
7190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 :
7193else
7194 $as_echo "$as_me: program exited with status $ac_status" >&5
7195$as_echo "$as_me: failed program was:" >&5
7196sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7197
8934764e
BB
7198( exit $ac_status )
7199ac_cv_header_stdc=no
7200fi
7201rm -rf conftest.dSYM
7202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7203fi
bf9f3bac 7204
7205
bf9f3bac 7206fi
8934764e
BB
7207fi
7208{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7209$as_echo "$ac_cv_header_stdc" >&6; }
7210if test $ac_cv_header_stdc = yes; then
bf9f3bac 7211
8934764e
BB
7212cat >>confdefs.h <<\_ACEOF
7213#define STDC_HEADERS 1
7214_ACEOF
bf9f3bac 7215
8934764e 7216fi
bf9f3bac 7217
8934764e 7218# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bf9f3bac 7219
bf9f3bac 7220
bf9f3bac 7221
bf9f3bac 7222
bf9f3bac 7223
bf9f3bac 7224
bf9f3bac 7225
bf9f3bac 7226
bf9f3bac 7227
8934764e
BB
7228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7229 inttypes.h stdint.h unistd.h
7230do
7231as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7232{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7233$as_echo_n "checking for $ac_header... " >&6; }
7234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7235 $as_echo_n "(cached) " >&6
7236else
7237 cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h. */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h. */
7243$ac_includes_default
bf9f3bac 7244
8934764e
BB
7245#include <$ac_header>
7246_ACEOF
7247rm -f conftest.$ac_objext
7248if { (ac_try="$ac_compile"
7249case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252esac
7253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254$as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 eval "$as_ac_Header=yes"
7266else
7267 $as_echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7269
8934764e
BB
7270 eval "$as_ac_Header=no"
7271fi
bf9f3bac 7272
8934764e
BB
7273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274fi
7275ac_res=`eval 'as_val=${'$as_ac_Header'}
7276 $as_echo "$as_val"'`
7277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7278$as_echo "$ac_res" >&6; }
7279as_val=`eval 'as_val=${'$as_ac_Header'}
7280 $as_echo "$as_val"'`
7281 if test "x$as_val" = x""yes; then
7282 cat >>confdefs.h <<_ACEOF
7283#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7284_ACEOF
bf9f3bac 7285
8934764e 7286fi
bf9f3bac 7287
8934764e 7288done
bf9f3bac 7289
bf9f3bac 7290
bf9f3bac 7291
8934764e
BB
7292for ac_header in dlfcn.h
7293do
7294as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7296$as_echo_n "checking for $ac_header... " >&6; }
7297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7298 $as_echo_n "(cached) " >&6
7299else
7300 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 7301/* confdefs.h. */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h. */
8934764e 7306$ac_includes_default
bf9f3bac 7307
8934764e 7308#include <$ac_header>
bf9f3bac 7309_ACEOF
8934764e
BB
7310rm -f conftest.$ac_objext
7311if { (ac_try="$ac_compile"
7312case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315esac
7316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7317$as_echo "$ac_try_echo") >&5
7318 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
8934764e
BB
7323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 eval "$as_ac_Header=yes"
bf9f3bac 7329else
8934764e 7330 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 7331sed 's/^/| /' conftest.$ac_ext >&5
7332
8934764e 7333 eval "$as_ac_Header=no"
bf9f3bac 7334fi
bf9f3bac 7335
8934764e
BB
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337fi
7338ac_res=`eval 'as_val=${'$as_ac_Header'}
7339 $as_echo "$as_val"'`
7340 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7341$as_echo "$ac_res" >&6; }
7342as_val=`eval 'as_val=${'$as_ac_Header'}
7343 $as_echo "$as_val"'`
7344 if test "x$as_val" = x""yes; then
7345 cat >>confdefs.h <<_ACEOF
7346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bf9f3bac 7347_ACEOF
bf9f3bac 7348
7349fi
bf9f3bac 7350
8934764e 7351done
bf9f3bac 7352
bf9f3bac 7353
bf9f3bac 7354
8934764e 7355# Set options
bf9f3bac 7356
bf9f3bac 7357
bf9f3bac 7358
8934764e 7359 enable_dlopen=no
bf9f3bac 7360
bf9f3bac 7361
8934764e 7362 enable_win32_dll=no
bf9f3bac 7363
bf9f3bac 7364
8934764e
BB
7365 # Check whether --enable-shared was given.
7366if test "${enable_shared+set}" = set; then
7367 enableval=$enable_shared; p=${PACKAGE-default}
7368 case $enableval in
7369 yes) enable_shared=yes ;;
7370 no) enable_shared=no ;;
7371 *)
7372 enable_shared=no
7373 # Look at the argument we got. We use all the common list separators.
7374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7375 for pkg in $enableval; do
7376 IFS="$lt_save_ifs"
7377 if test "X$pkg" = "X$p"; then
7378 enable_shared=yes
7379 fi
7380 done
7381 IFS="$lt_save_ifs"
bf9f3bac 7382 ;;
8934764e
BB
7383 esac
7384else
7385 enable_shared=yes
7386fi
bf9f3bac 7387
bf9f3bac 7388
bf9f3bac 7389
bf9f3bac 7390
bf9f3bac 7391
bf9f3bac 7392
bf9f3bac 7393
8934764e
BB
7394
7395
7396 # Check whether --enable-static was given.
7397if test "${enable_static+set}" = set; then
7398 enableval=$enable_static; p=${PACKAGE-default}
7399 case $enableval in
7400 yes) enable_static=yes ;;
7401 no) enable_static=no ;;
7402 *)
7403 enable_static=no
7404 # Look at the argument we got. We use all the common list separators.
7405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7406 for pkg in $enableval; do
7407 IFS="$lt_save_ifs"
7408 if test "X$pkg" = "X$p"; then
7409 enable_static=yes
7410 fi
7411 done
7412 IFS="$lt_save_ifs"
7413 ;;
7414 esac
bf9f3bac 7415else
8934764e 7416 enable_static=yes
bf9f3bac 7417fi
bf9f3bac 7418
8934764e
BB
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428# Check whether --with-pic was given.
7429if test "${with_pic+set}" = set; then
7430 withval=$with_pic; pic_mode="$withval"
7431else
7432 pic_mode=default
bf9f3bac 7433fi
7434
7435
8934764e
BB
7436test -z "$pic_mode" && pic_mode=default
7437
7438
7439
7440
7441
7442
7443
7444 # Check whether --enable-fast-install was given.
7445if test "${enable_fast_install+set}" = set; then
7446 enableval=$enable_fast_install; p=${PACKAGE-default}
7447 case $enableval in
7448 yes) enable_fast_install=yes ;;
7449 no) enable_fast_install=no ;;
bf9f3bac 7450 *)
8934764e
BB
7451 enable_fast_install=no
7452 # Look at the argument we got. We use all the common list separators.
7453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7454 for pkg in $enableval; do
7455 IFS="$lt_save_ifs"
7456 if test "X$pkg" = "X$p"; then
7457 enable_fast_install=yes
7458 fi
7459 done
7460 IFS="$lt_save_ifs"
bf9f3bac 7461 ;;
7462 esac
8934764e
BB
7463else
7464 enable_fast_install=yes
7465fi
bf9f3bac 7466
bf9f3bac 7467
bf9f3bac 7468
bf9f3bac 7469
bf9f3bac 7470
bf9f3bac 7471
bf9f3bac 7472
bf9f3bac 7473
bf9f3bac 7474
bf9f3bac 7475
bf9f3bac 7476
8934764e
BB
7477# This can be used to rebuild libtool when needed
7478LIBTOOL_DEPS="$ltmain"
bf9f3bac 7479
8934764e
BB
7480# Always use our own libtool.
7481LIBTOOL='$(SHELL) $(top_builddir)/libtool'
bf9f3bac 7482
bf9f3bac 7483
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
8934764e 7507test -z "$LN_S" && LN_S="ln -s"
bf9f3bac 7508
bf9f3bac 7509
bf9f3bac 7510
bf9f3bac 7511
bf9f3bac 7512
bf9f3bac 7513
bf9f3bac 7514
bf9f3bac 7515
bf9f3bac 7516
bf9f3bac 7517
bf9f3bac 7518
bf9f3bac 7519
bf9f3bac 7520
bf9f3bac 7521
8934764e
BB
7522if test -n "${ZSH_VERSION+set}" ; then
7523 setopt NO_GLOB_SUBST
7524fi
bf9f3bac 7525
8934764e
BB
7526{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7527$as_echo_n "checking for objdir... " >&6; }
7528if test "${lt_cv_objdir+set}" = set; then
7529 $as_echo_n "(cached) " >&6
7530else
7531 rm -f .libs 2>/dev/null
7532mkdir .libs 2>/dev/null
7533if test -d .libs; then
7534 lt_cv_objdir=.libs
7535else
7536 # MS-DOS does not allow filenames that begin with a dot.
7537 lt_cv_objdir=_libs
7538fi
7539rmdir .libs 2>/dev/null
7540fi
7541{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7542$as_echo "$lt_cv_objdir" >&6; }
7543objdir=$lt_cv_objdir
bf9f3bac 7544
bf9f3bac 7545
bf9f3bac 7546
bf9f3bac 7547
bf9f3bac 7548
8934764e
BB
7549cat >>confdefs.h <<_ACEOF
7550#define LT_OBJDIR "$lt_cv_objdir/"
7551_ACEOF
bf9f3bac 7552
bf9f3bac 7553
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
8934764e
BB
7569case $host_os in
7570aix3*)
7571 # AIX sometimes has problems with the GCC collect2 program. For some
7572 # reason, if we set the COLLECT_NAMES environment variable, the problems
7573 # vanish in a puff of smoke.
7574 if test "X${COLLECT_NAMES+set}" != Xset; then
7575 COLLECT_NAMES=
7576 export COLLECT_NAMES
7577 fi
7578 ;;
7579esac
bf9f3bac 7580
8934764e
BB
7581# Sed substitution that helps us do robust quoting. It backslashifies
7582# metacharacters that are still active within double-quoted strings.
7583sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
bf9f3bac 7584
8934764e
BB
7585# Same as above, but do not quote variable references.
7586double_quote_subst='s/\(["`\\]\)/\\\1/g'
bf9f3bac 7587
8934764e
BB
7588# Sed substitution to delay expansion of an escaped shell variable in a
7589# double_quote_subst'ed string.
7590delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
bf9f3bac 7591
8934764e
BB
7592# Sed substitution to delay expansion of an escaped single quote.
7593delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
bf9f3bac 7594
8934764e
BB
7595# Sed substitution to avoid accidental globbing in evaled expressions
7596no_glob_subst='s/\*/\\\*/g'
bf9f3bac 7597
8934764e
BB
7598# Global variables:
7599ofile=libtool
7600can_build_shared=yes
bf9f3bac 7601
8934764e
BB
7602# All known linkers require a `.a' archive for static linking (except MSVC,
7603# which needs '.lib').
7604libext=a
bf9f3bac 7605
8934764e 7606with_gnu_ld="$lt_cv_prog_gnu_ld"
bf9f3bac 7607
8934764e
BB
7608old_CC="$CC"
7609old_CFLAGS="$CFLAGS"
bf9f3bac 7610
8934764e
BB
7611# Set sane defaults for various variables
7612test -z "$CC" && CC=cc
7613test -z "$LTCC" && LTCC=$CC
7614test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7615test -z "$LD" && LD=ld
7616test -z "$ac_objext" && ac_objext=o
bf9f3bac 7617
8934764e
BB
7618for cc_temp in $compiler""; do
7619 case $cc_temp in
7620 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7621 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7622 \-*) ;;
7623 *) break;;
7624 esac
7625done
7626cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
bf9f3bac 7627
bf9f3bac 7628
8934764e
BB
7629# Only perform the check for file, if the check method requires it
7630test -z "$MAGIC_CMD" && MAGIC_CMD=file
7631case $deplibs_check_method in
7632file_magic*)
7633 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7634 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7635$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7636if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7637 $as_echo_n "(cached) " >&6
7638else
7639 case $MAGIC_CMD in
7640[\\/*] | ?:[\\/]*)
7641 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7642 ;;
7643*)
7644 lt_save_MAGIC_CMD="$MAGIC_CMD"
7645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7646 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7647 for ac_dir in $ac_dummy; do
7648 IFS="$lt_save_ifs"
7649 test -z "$ac_dir" && ac_dir=.
7650 if test -f $ac_dir/${ac_tool_prefix}file; then
7651 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7652 if test -n "$file_magic_test_file"; then
7653 case $deplibs_check_method in
7654 "file_magic "*)
7655 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7658 $EGREP "$file_magic_regex" > /dev/null; then
7659 :
7660 else
7661 cat <<_LT_EOF 1>&2
bf9f3bac 7662
8934764e
BB
7663*** Warning: the command libtool uses to detect shared libraries,
7664*** $file_magic_cmd, produces output that libtool cannot recognize.
7665*** The result is that libtool may fail to recognize shared libraries
7666*** as such. This will affect the creation of libtool libraries that
7667*** depend on shared libraries, but programs linked with such libtool
7668*** libraries will work regardless of this problem. Nevertheless, you
7669*** may want to report the problem to your system manager and/or to
7670*** bug-libtool@gnu.org
bf9f3bac 7671
8934764e
BB
7672_LT_EOF
7673 fi ;;
7674 esac
7675 fi
7676 break
7677 fi
7678 done
7679 IFS="$lt_save_ifs"
7680 MAGIC_CMD="$lt_save_MAGIC_CMD"
7681 ;;
7682esac
7683fi
bf9f3bac 7684
8934764e
BB
7685MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7686if test -n "$MAGIC_CMD"; then
7687 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7688$as_echo "$MAGIC_CMD" >&6; }
7689else
7690 { $as_echo "$as_me:$LINENO: result: no" >&5
7691$as_echo "no" >&6; }
7692fi
bf9f3bac 7693
bf9f3bac 7694
bf9f3bac 7695
bf9f3bac 7696
bf9f3bac 7697
8934764e
BB
7698if test -z "$lt_cv_path_MAGIC_CMD"; then
7699 if test -n "$ac_tool_prefix"; then
7700 { $as_echo "$as_me:$LINENO: checking for file" >&5
7701$as_echo_n "checking for file... " >&6; }
7702if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7704else
7705 case $MAGIC_CMD in
7706[\\/*] | ?:[\\/]*)
7707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7708 ;;
7709*)
7710 lt_save_MAGIC_CMD="$MAGIC_CMD"
7711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7712 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7713 for ac_dir in $ac_dummy; do
7714 IFS="$lt_save_ifs"
7715 test -z "$ac_dir" && ac_dir=.
7716 if test -f $ac_dir/file; then
7717 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7718 if test -n "$file_magic_test_file"; then
7719 case $deplibs_check_method in
7720 "file_magic "*)
7721 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7723 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7724 $EGREP "$file_magic_regex" > /dev/null; then
7725 :
7726 else
7727 cat <<_LT_EOF 1>&2
7728
7729*** Warning: the command libtool uses to detect shared libraries,
7730*** $file_magic_cmd, produces output that libtool cannot recognize.
7731*** The result is that libtool may fail to recognize shared libraries
7732*** as such. This will affect the creation of libtool libraries that
7733*** depend on shared libraries, but programs linked with such libtool
7734*** libraries will work regardless of this problem. Nevertheless, you
7735*** may want to report the problem to your system manager and/or to
7736*** bug-libtool@gnu.org
bf9f3bac 7737
8934764e
BB
7738_LT_EOF
7739 fi ;;
7740 esac
7741 fi
7742 break
7743 fi
7744 done
7745 IFS="$lt_save_ifs"
7746 MAGIC_CMD="$lt_save_MAGIC_CMD"
7747 ;;
7748esac
7749fi
bf9f3bac 7750
8934764e
BB
7751MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7752if test -n "$MAGIC_CMD"; then
7753 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7754$as_echo "$MAGIC_CMD" >&6; }
7755else
7756 { $as_echo "$as_me:$LINENO: result: no" >&5
7757$as_echo "no" >&6; }
7758fi
bf9f3bac 7759
7760
8934764e
BB
7761 else
7762 MAGIC_CMD=:
bf9f3bac 7763 fi
7764fi
7765
8934764e
BB
7766 fi
7767 ;;
7768esac
7769
7770# Use C for the default configuration in the libtool script
bf9f3bac 7771
8934764e 7772lt_save_CC="$CC"
bf9f3bac 7773ac_ext=c
7774ac_cpp='$CPP $CPPFLAGS'
7775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7777ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778
bf9f3bac 7779
8934764e
BB
7780# Source file extension for C test sources.
7781ac_ext=c
bf9f3bac 7782
8934764e
BB
7783# Object file extension for compiled C test sources.
7784objext=o
7785objext=$objext
bf9f3bac 7786
8934764e
BB
7787# Code to be used in simple compile tests
7788lt_simple_compile_test_code="int some_variable = 0;"
7789
7790# Code to be used in simple link tests
7791lt_simple_link_test_code='int main(){return(0);}'
bf9f3bac 7792
7793
bf9f3bac 7794
bf9f3bac 7795
bf9f3bac 7796
bf9f3bac 7797
bf9f3bac 7798
7799# If no C compiler was specified, use CC.
7800LTCC=${LTCC-"$CC"}
7801
7802# If no C compiler flags were specified, use CFLAGS.
7803LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7804
7805# Allow CC to be a program name with arguments.
7806compiler=$CC
7807
8934764e
BB
7808# Save the default compiler, since it gets overwritten when the other
7809# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7810compiler_DEFAULT=$CC
bf9f3bac 7811
7812# save warnings/boilerplate of simple test code
7813ac_outfile=conftest.$ac_objext
8934764e 7814echo "$lt_simple_compile_test_code" >conftest.$ac_ext
bf9f3bac 7815eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7816_lt_compiler_boilerplate=`cat conftest.err`
8934764e 7817$RM conftest*
bf9f3bac 7818
7819ac_outfile=conftest.$ac_objext
8934764e 7820echo "$lt_simple_link_test_code" >conftest.$ac_ext
bf9f3bac 7821eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7822_lt_linker_boilerplate=`cat conftest.err`
8934764e 7823$RM -r conftest*
bf9f3bac 7824
bf9f3bac 7825
8934764e 7826if test -n "$compiler"; then
bf9f3bac 7827
8934764e 7828lt_prog_compiler_no_builtin_flag=
bf9f3bac 7829
7830if test "$GCC" = yes; then
8934764e 7831 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
bf9f3bac 7832
8934764e
BB
7833 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7834$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
bf9f3bac 7835if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8934764e 7836 $as_echo_n "(cached) " >&6
bf9f3bac 7837else
7838 lt_cv_prog_compiler_rtti_exceptions=no
8934764e
BB
7839 ac_outfile=conftest.$ac_objext
7840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 7841 lt_compiler_flag="-fno-rtti -fno-exceptions"
7842 # Insert the option either (1) after the last *FLAGS variable, or
7843 # (2) before a word containing "conftest.", or (3) at the end.
7844 # Note that $ac_compile itself does not contain backslashes and begins
7845 # with a dollar sign (not a hyphen), so the echo should work correctly.
7846 # The option is referenced via a variable to avoid confusing sed.
7847 lt_compile=`echo "$ac_compile" | $SED \
7848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7850 -e 's:$: $lt_compiler_flag:'`
c2dceb5c 7851 (eval echo "\"\$as_me:7851: $lt_compile\"" >&5)
bf9f3bac 7852 (eval "$lt_compile" 2>conftest.err)
7853 ac_status=$?
7854 cat conftest.err >&5
c2dceb5c 7855 echo "$as_me:7855: \$? = $ac_status" >&5
bf9f3bac 7856 if (exit $ac_status) && test -s "$ac_outfile"; then
7857 # The compiler can only warn and ignore the option if not recognized
7858 # So say no if there are warnings other than the usual output.
8934764e 7859 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 7860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7861 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7862 lt_cv_prog_compiler_rtti_exceptions=yes
7863 fi
7864 fi
8934764e 7865 $RM conftest*
bf9f3bac 7866
7867fi
8934764e
BB
7868{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7869$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
bf9f3bac 7870
7871if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8934764e 7872 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
bf9f3bac 7873else
7874 :
7875fi
7876
7877fi
7878
bf9f3bac 7879
8934764e
BB
7880
7881
7882
7883
7884 lt_prog_compiler_wl=
7885lt_prog_compiler_pic=
7886lt_prog_compiler_static=
7887
7888{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7889$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
bf9f3bac 7890
7891 if test "$GCC" = yes; then
8934764e
BB
7892 lt_prog_compiler_wl='-Wl,'
7893 lt_prog_compiler_static='-static'
bf9f3bac 7894
7895 case $host_os in
7896 aix*)
7897 # All AIX code is PIC.
7898 if test "$host_cpu" = ia64; then
7899 # AIX 5 now supports IA64 processor
8934764e 7900 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7901 fi
7902 ;;
7903
7904 amigaos*)
8934764e
BB
7905 case $host_cpu in
7906 powerpc)
7907 # see comment about AmigaOS4 .so support
7908 lt_prog_compiler_pic='-fPIC'
7909 ;;
7910 m68k)
7911 # FIXME: we need at least 68020 code to build shared libraries, but
7912 # adding the `-m68020' flag to GCC prevents building anything better,
7913 # like `-m68040'.
7914 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7915 ;;
7916 esac
bf9f3bac 7917 ;;
7918
8934764e 7919 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
bf9f3bac 7920 # PIC is the default for these OSes.
7921 ;;
7922
8934764e 7923 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7924 # This hack is so that the source file can tell whether it is being
7925 # built for inclusion in a dll (and should export symbols for example).
8934764e
BB
7926 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7927 # (--disable-auto-import) libraries
7928 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7929 ;;
7930
7931 darwin* | rhapsody*)
7932 # PIC is the default on this platform
7933 # Common symbols not allowed in MH_DYLIB files
8934764e
BB
7934 lt_prog_compiler_pic='-fno-common'
7935 ;;
7936
7937 hpux*)
7938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7940 # sets the default TLS model and affects inlining.
7941 case $host_cpu in
7942 hppa*64*)
7943 # +Z the default
7944 ;;
7945 *)
7946 lt_prog_compiler_pic='-fPIC'
7947 ;;
7948 esac
bf9f3bac 7949 ;;
7950
8934764e 7951 interix[3-9]*)
bf9f3bac 7952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7953 # Instead, we relocate shared libraries at runtime.
7954 ;;
7955
7956 msdosdjgpp*)
7957 # Just because we use GCC doesn't mean we suddenly get shared libraries
7958 # on systems that don't support them.
8934764e 7959 lt_prog_compiler_can_build_shared=no
bf9f3bac 7960 enable_shared=no
7961 ;;
7962
8934764e
BB
7963 *nto* | *qnx*)
7964 # QNX uses GNU C++, but need to define -shared option too, otherwise
7965 # it will coredump.
7966 lt_prog_compiler_pic='-fPIC -shared'
7967 ;;
7968
bf9f3bac 7969 sysv4*MP*)
7970 if test -d /usr/nec; then
8934764e 7971 lt_prog_compiler_pic=-Kconform_pic
bf9f3bac 7972 fi
7973 ;;
7974
bf9f3bac 7975 *)
8934764e 7976 lt_prog_compiler_pic='-fPIC'
bf9f3bac 7977 ;;
7978 esac
7979 else
7980 # PORTME Check for flag to pass linker flags through the system compiler.
7981 case $host_os in
7982 aix*)
8934764e 7983 lt_prog_compiler_wl='-Wl,'
bf9f3bac 7984 if test "$host_cpu" = ia64; then
7985 # AIX 5 now supports IA64 processor
8934764e 7986 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7987 else
8934764e 7988 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
bf9f3bac 7989 fi
7990 ;;
bf9f3bac 7991
8934764e 7992 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7993 # This hack is so that the source file can tell whether it is being
7994 # built for inclusion in a dll (and should export symbols for example).
8934764e 7995 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7996 ;;
7997
7998 hpux9* | hpux10* | hpux11*)
8934764e 7999 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8001 # not for PA HP-UX.
8002 case $host_cpu in
8003 hppa*64*|ia64*)
8004 # +Z the default
8005 ;;
8006 *)
8934764e 8007 lt_prog_compiler_pic='+Z'
bf9f3bac 8008 ;;
8009 esac
8010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8934764e 8011 lt_prog_compiler_static='${wl}-a ${wl}archive'
bf9f3bac 8012 ;;
8013
8014 irix5* | irix6* | nonstopux*)
8934764e 8015 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8016 # PIC (with -KPIC) is the default.
8934764e 8017 lt_prog_compiler_static='-non_shared'
bf9f3bac 8018 ;;
8019
8934764e 8020 linux* | k*bsd*-gnu)
bf9f3bac 8021 case $cc_basename in
8934764e
BB
8022 # old Intel for x86_64 which still supported -KPIC.
8023 ecc*)
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-static'
8027 ;;
8028 # icc used to be incompatible with GCC.
8029 # ICC 10 doesn't accept -KPIC any more.
8030 icc* | ifort*)
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-fPIC'
8033 lt_prog_compiler_static='-static'
bf9f3bac 8034 ;;
8934764e
BB
8035 # Lahey Fortran 8.1.
8036 lf95*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='--shared'
8039 lt_prog_compiler_static='--static'
8040 ;;
bf9f3bac 8041 pgcc* | pgf77* | pgf90* | pgf95*)
8042 # Portland Group compilers (*not* the Pentium gcc compiler,
8043 # which looks to be a dead project)
8934764e
BB
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-fpic'
8046 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8047 ;;
8048 ccc*)
8934764e 8049 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8050 # All Alpha code is PIC.
8934764e 8051 lt_prog_compiler_static='-non_shared'
bf9f3bac 8052 ;;
8934764e
BB
8053 xl*)
8054 # IBM XL C 8.0/Fortran 10.1 on PPC
8055 lt_prog_compiler_wl='-Wl,'
8056 lt_prog_compiler_pic='-qpic'
8057 lt_prog_compiler_static='-qstaticlink'
8058 ;;
8059 *)
8060 case `$CC -V 2>&1 | sed 5q` in
8061 *Sun\ C*)
8062 # Sun C 5.9
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 lt_prog_compiler_wl='-Wl,'
8066 ;;
8067 *Sun\ F*)
8068 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8069 lt_prog_compiler_pic='-KPIC'
8070 lt_prog_compiler_static='-Bstatic'
8071 lt_prog_compiler_wl=''
8072 ;;
8073 esac
8074 ;;
bf9f3bac 8075 esac
8076 ;;
8077
8934764e
BB
8078 newsos6)
8079 lt_prog_compiler_pic='-KPIC'
8080 lt_prog_compiler_static='-Bstatic'
8081 ;;
8082
8083 *nto* | *qnx*)
8084 # QNX uses GNU C++, but need to define -shared option too, otherwise
8085 # it will coredump.
8086 lt_prog_compiler_pic='-fPIC -shared'
8087 ;;
8088
bf9f3bac 8089 osf3* | osf4* | osf5*)
8934764e 8090 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8091 # All OSF/1 code is PIC.
8934764e
BB
8092 lt_prog_compiler_static='-non_shared'
8093 ;;
8094
8095 rdos*)
8096 lt_prog_compiler_static='-non_shared'
bf9f3bac 8097 ;;
8098
8099 solaris*)
8934764e
BB
8100 lt_prog_compiler_pic='-KPIC'
8101 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8102 case $cc_basename in
8103 f77* | f90* | f95*)
8934764e 8104 lt_prog_compiler_wl='-Qoption ld ';;
bf9f3bac 8105 *)
8934764e 8106 lt_prog_compiler_wl='-Wl,';;
bf9f3bac 8107 esac
8108 ;;
8109
8110 sunos4*)
8934764e
BB
8111 lt_prog_compiler_wl='-Qoption ld '
8112 lt_prog_compiler_pic='-PIC'
8113 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8114 ;;
8115
8116 sysv4 | sysv4.2uw2* | sysv4.3*)
8934764e
BB
8117 lt_prog_compiler_wl='-Wl,'
8118 lt_prog_compiler_pic='-KPIC'
8119 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8120 ;;
8121
8122 sysv4*MP*)
8123 if test -d /usr/nec ;then
8934764e
BB
8124 lt_prog_compiler_pic='-Kconform_pic'
8125 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8126 fi
8127 ;;
8128
8129 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934764e
BB
8130 lt_prog_compiler_wl='-Wl,'
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8133 ;;
8134
8135 unicos*)
8934764e
BB
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_can_build_shared=no
bf9f3bac 8138 ;;
8139
8140 uts4*)
8934764e
BB
8141 lt_prog_compiler_pic='-pic'
8142 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8143 ;;
8144
8145 *)
8934764e 8146 lt_prog_compiler_can_build_shared=no
bf9f3bac 8147 ;;
8148 esac
8149 fi
8150
8934764e
BB
8151case $host_os in
8152 # For platforms which do not support PIC, -DPIC is meaningless:
8153 *djgpp*)
8154 lt_prog_compiler_pic=
8155 ;;
8156 *)
8157 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8158 ;;
8159esac
8160{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8161$as_echo "$lt_prog_compiler_pic" >&6; }
8162
8163
8164
8165
8166
bf9f3bac 8167
8168#
8169# Check to make sure the PIC flag actually works.
8170#
8934764e
BB
8171if test -n "$lt_prog_compiler_pic"; then
8172 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8173$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8174if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8175 $as_echo_n "(cached) " >&6
8176else
8177 lt_cv_prog_compiler_pic_works=no
8178 ac_outfile=conftest.$ac_objext
8179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
bf9f3bac 8181 # Insert the option either (1) after the last *FLAGS variable, or
8182 # (2) before a word containing "conftest.", or (3) at the end.
8183 # Note that $ac_compile itself does not contain backslashes and begins
8184 # with a dollar sign (not a hyphen), so the echo should work correctly.
8185 # The option is referenced via a variable to avoid confusing sed.
8186 lt_compile=`echo "$ac_compile" | $SED \
8187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189 -e 's:$: $lt_compiler_flag:'`
c2dceb5c 8190 (eval echo "\"\$as_me:8190: $lt_compile\"" >&5)
bf9f3bac 8191 (eval "$lt_compile" 2>conftest.err)
8192 ac_status=$?
8193 cat conftest.err >&5
c2dceb5c 8194 echo "$as_me:8194: \$? = $ac_status" >&5
bf9f3bac 8195 if (exit $ac_status) && test -s "$ac_outfile"; then
8196 # The compiler can only warn and ignore the option if not recognized
8197 # So say no if there are warnings other than the usual output.
8934764e 8198 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 8199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8201 lt_cv_prog_compiler_pic_works=yes
bf9f3bac 8202 fi
8203 fi
8934764e 8204 $RM conftest*
bf9f3bac 8205
8206fi
8934764e
BB
8207{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8208$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
bf9f3bac 8209
8934764e
BB
8210if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8211 case $lt_prog_compiler_pic in
bf9f3bac 8212 "" | " "*) ;;
8934764e 8213 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
bf9f3bac 8214 esac
8215else
8934764e
BB
8216 lt_prog_compiler_pic=
8217 lt_prog_compiler_can_build_shared=no
bf9f3bac 8218fi
8219
8220fi
8934764e
BB
8221
8222
8223
8224
8225
bf9f3bac 8226
8227#
8228# Check to make sure the static flag actually works.
8229#
8934764e
BB
8230wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8231{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8232$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8233if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8234 $as_echo_n "(cached) " >&6
bf9f3bac 8235else
8934764e 8236 lt_cv_prog_compiler_static_works=no
bf9f3bac 8237 save_LDFLAGS="$LDFLAGS"
8238 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8934764e 8239 echo "$lt_simple_link_test_code" > conftest.$ac_ext
bf9f3bac 8240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8241 # The linker can only warn and ignore the option if not recognized
8242 # So say no if there are warnings
8243 if test -s conftest.err; then
8244 # Append any errors to the config.log.
8245 cat conftest.err 1>&5
8934764e 8246 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
bf9f3bac 8247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8248 if diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8249 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8250 fi
8251 else
8934764e 8252 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8253 fi
8254 fi
8934764e 8255 $RM -r conftest*
bf9f3bac 8256 LDFLAGS="$save_LDFLAGS"
8257
8258fi
8934764e
BB
8259{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8260$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
bf9f3bac 8261
8934764e 8262if test x"$lt_cv_prog_compiler_static_works" = xyes; then
bf9f3bac 8263 :
8264else
8934764e
BB
8265 lt_prog_compiler_static=
8266fi
8267
8268
8269
8270
8271
8272
8273
8274 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8275$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8276if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8277 $as_echo_n "(cached) " >&6
8278else
8279 lt_cv_prog_compiler_c_o=no
8280 $RM -r conftest 2>/dev/null
8281 mkdir conftest
8282 cd conftest
8283 mkdir out
8284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8285
8286 lt_compiler_flag="-o out/conftest2.$ac_objext"
8287 # Insert the option either (1) after the last *FLAGS variable, or
8288 # (2) before a word containing "conftest.", or (3) at the end.
8289 # Note that $ac_compile itself does not contain backslashes and begins
8290 # with a dollar sign (not a hyphen), so the echo should work correctly.
8291 lt_compile=`echo "$ac_compile" | $SED \
8292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8294 -e 's:$: $lt_compiler_flag:'`
c2dceb5c 8295 (eval echo "\"\$as_me:8295: $lt_compile\"" >&5)
8934764e
BB
8296 (eval "$lt_compile" 2>out/conftest.err)
8297 ac_status=$?
8298 cat out/conftest.err >&5
c2dceb5c 8299 echo "$as_me:8299: \$? = $ac_status" >&5
8934764e
BB
8300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8301 then
8302 # The compiler can only warn and ignore the option if not recognized
8303 # So say no if there are warnings
8304 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8307 lt_cv_prog_compiler_c_o=yes
8308 fi
8309 fi
8310 chmod u+w . 2>&5
8311 $RM conftest*
8312 # SGI C++ compiler will create directory out/ii_files/ for
8313 # template instantiation
8314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8315 $RM out/* && rmdir out
8316 cd ..
8317 $RM -r conftest
8318 $RM conftest*
8319
bf9f3bac 8320fi
8934764e
BB
8321{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8322$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8323
8324
bf9f3bac 8325
8326
8934764e
BB
8327
8328
8329 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8330$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8331if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8332 $as_echo_n "(cached) " >&6
bf9f3bac 8333else
8934764e
BB
8334 lt_cv_prog_compiler_c_o=no
8335 $RM -r conftest 2>/dev/null
bf9f3bac 8336 mkdir conftest
8337 cd conftest
8338 mkdir out
8934764e 8339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 8340
8341 lt_compiler_flag="-o out/conftest2.$ac_objext"
8342 # Insert the option either (1) after the last *FLAGS variable, or
8343 # (2) before a word containing "conftest.", or (3) at the end.
8344 # Note that $ac_compile itself does not contain backslashes and begins
8345 # with a dollar sign (not a hyphen), so the echo should work correctly.
8346 lt_compile=`echo "$ac_compile" | $SED \
8347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8349 -e 's:$: $lt_compiler_flag:'`
c2dceb5c 8350 (eval echo "\"\$as_me:8350: $lt_compile\"" >&5)
bf9f3bac 8351 (eval "$lt_compile" 2>out/conftest.err)
8352 ac_status=$?
8353 cat out/conftest.err >&5
c2dceb5c 8354 echo "$as_me:8354: \$? = $ac_status" >&5
bf9f3bac 8355 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8356 then
8357 # The compiler can only warn and ignore the option if not recognized
8358 # So say no if there are warnings
8934764e 8359 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
bf9f3bac 8360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8934764e 8362 lt_cv_prog_compiler_c_o=yes
bf9f3bac 8363 fi
8364 fi
8365 chmod u+w . 2>&5
8934764e 8366 $RM conftest*
bf9f3bac 8367 # SGI C++ compiler will create directory out/ii_files/ for
8368 # template instantiation
8934764e
BB
8369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8370 $RM out/* && rmdir out
bf9f3bac 8371 cd ..
8934764e
BB
8372 $RM -r conftest
8373 $RM conftest*
bf9f3bac 8374
8375fi
8934764e
BB
8376{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8377$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8378
8379
bf9f3bac 8380
8381
8382hard_links="nottested"
8934764e 8383if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
bf9f3bac 8384 # do not overwrite the value of need_locks provided by the user
8934764e
BB
8385 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8386$as_echo_n "checking if we can lock with hard links... " >&6; }
bf9f3bac 8387 hard_links=yes
8934764e 8388 $RM conftest*
bf9f3bac 8389 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8390 touch conftest.a
8391 ln conftest.a conftest.b 2>&5 || hard_links=no
8392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934764e
BB
8393 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8394$as_echo "$hard_links" >&6; }
bf9f3bac 8395 if test "$hard_links" = no; then
8934764e
BB
8396 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8397$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
bf9f3bac 8398 need_locks=warn
8399 fi
8400else
8401 need_locks=no
8402fi
8403
8934764e
BB
8404
8405
8406
8407
8408
8409 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8410$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
bf9f3bac 8411
8412 runpath_var=
8934764e
BB
8413 allow_undefined_flag=
8414 always_export_symbols=no
8415 archive_cmds=
8416 archive_expsym_cmds=
8417 compiler_needs_object=no
8418 enable_shared_with_static_runtimes=no
8419 export_dynamic_flag_spec=
8420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8421 hardcode_automatic=no
8422 hardcode_direct=no
8423 hardcode_direct_absolute=no
8424 hardcode_libdir_flag_spec=
8425 hardcode_libdir_flag_spec_ld=
8426 hardcode_libdir_separator=
8427 hardcode_minus_L=no
8428 hardcode_shlibpath_var=unsupported
8429 inherit_rpath=no
8430 link_all_deplibs=unknown
8431 module_cmds=
8432 module_expsym_cmds=
8433 old_archive_from_new_cmds=
8434 old_archive_from_expsyms_cmds=
8435 thread_safe_flag_spec=
8436 whole_archive_flag_spec=
bf9f3bac 8437 # include_expsyms should be a list of space-separated symbols to be *always*
8438 # included in the symbol list
8934764e 8439 include_expsyms=
bf9f3bac 8440 # exclude_expsyms can be an extended regexp of symbols to exclude
8441 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8443 # as well as any symbol that contains `d'.
8934764e 8444 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
bf9f3bac 8445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8446 # platforms (ab)use it in PIC code, but their linkers get confused if
8447 # the symbol is explicitly referenced. Since portable code cannot
8448 # rely on this symbol name, it's probably fine to never include it in
8449 # preloaded symbol tables.
8934764e 8450 # Exclude shared library initialization/finalization symbols.
bf9f3bac 8451 extract_expsyms_cmds=
bf9f3bac 8452
8453 case $host_os in
8934764e 8454 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 8455 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8456 # When not using gcc, we currently assume that we are using
8457 # Microsoft Visual C++.
8458 if test "$GCC" != yes; then
8459 with_gnu_ld=no
8460 fi
8461 ;;
8462 interix*)
8463 # we just hope/assume this is gcc and not c89 (= MSVC++)
8464 with_gnu_ld=yes
8465 ;;
8466 openbsd*)
8467 with_gnu_ld=no
8468 ;;
8469 esac
8470
8934764e 8471 ld_shlibs=yes
bf9f3bac 8472 if test "$with_gnu_ld" = yes; then
8473 # If archive_cmds runs LD, not CC, wlarc should be empty
8474 wlarc='${wl}'
8475
8476 # Set some defaults for GNU ld with shared library support. These
8477 # are reset later if shared libraries are not supported. Putting them
8478 # here allows them to be overridden if necessary.
8479 runpath_var=LD_RUN_PATH
8934764e
BB
8480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8481 export_dynamic_flag_spec='${wl}--export-dynamic'
bf9f3bac 8482 # ancient GNU ld didn't support --whole-archive et. al.
8934764e
BB
8483 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8484 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8485 else
8486 whole_archive_flag_spec=
bf9f3bac 8487 fi
8488 supports_anon_versioning=no
8934764e 8489 case `$LD -v 2>&1` in
bf9f3bac 8490 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8491 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8492 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8493 *\ 2.11.*) ;; # other 2.11 versions
8494 *) supports_anon_versioning=yes ;;
8495 esac
8496
8497 # See if GNU ld supports shared libraries.
8498 case $host_os in
8934764e 8499 aix[3-9]*)
bf9f3bac 8500 # On AIX/PPC, the GNU linker is very broken
8501 if test "$host_cpu" != ia64; then
8934764e
BB
8502 ld_shlibs=no
8503 cat <<_LT_EOF 1>&2
bf9f3bac 8504
8505*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8506*** to be unable to reliably create shared libraries on AIX.
8507*** Therefore, libtool is disabling shared libraries support. If you
8508*** really care for shared libraries, you may want to modify your PATH
8509*** so that a non-GNU linker is found, and then restart.
8510
8934764e 8511_LT_EOF
bf9f3bac 8512 fi
8513 ;;
8514
8515 amigaos*)
8934764e
BB
8516 case $host_cpu in
8517 powerpc)
8518 # see comment about AmigaOS4 .so support
8519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520 archive_expsym_cmds=''
8521 ;;
8522 m68k)
8523 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)'
8524 hardcode_libdir_flag_spec='-L$libdir'
8525 hardcode_minus_L=yes
8526 ;;
8527 esac
bf9f3bac 8528 ;;
8529
8530 beos*)
8934764e
BB
8531 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8532 allow_undefined_flag=unsupported
bf9f3bac 8533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8534 # support --undefined. This deserves some investigation. FIXME
8934764e 8535 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8536 else
8934764e 8537 ld_shlibs=no
bf9f3bac 8538 fi
8539 ;;
8540
8934764e
BB
8541 cygwin* | mingw* | pw32* | cegcc*)
8542 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
bf9f3bac 8543 # as there is no search path for DLLs.
8934764e
BB
8544 hardcode_libdir_flag_spec='-L$libdir'
8545 allow_undefined_flag=unsupported
8546 always_export_symbols=no
8547 enable_shared_with_static_runtimes=yes
8548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8549
8550 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
bf9f3bac 8552 # If the export-symbols file already is a .def file (1st line
8553 # is EXPORTS), use it as is; otherwise, prepend...
8934764e 8554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
bf9f3bac 8555 cp $export_symbols $output_objdir/$soname.def;
8556 else
8557 echo EXPORTS > $output_objdir/$soname.def;
8558 cat $export_symbols >> $output_objdir/$soname.def;
8559 fi~
8560 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8561 else
8934764e 8562 ld_shlibs=no
bf9f3bac 8563 fi
8564 ;;
8565
8934764e
BB
8566 interix[3-9]*)
8567 hardcode_direct=no
8568 hardcode_shlibpath_var=no
8569 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8570 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 8571 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8572 # Instead, shared libraries are loaded at an image base (0x10000000 by
8573 # default) and relocated if they conflict, which is a slow very memory
8574 # consuming and fragmenting process. To avoid this, we pick a random,
8575 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8576 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8934764e
BB
8577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8578 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 8579 ;;
8580
8934764e
BB
8581 gnu* | linux* | tpf* | k*bsd*-gnu)
8582 tmp_diet=no
8583 if test "$host_os" = linux-dietlibc; then
8584 case $cc_basename in
8585 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8586 esac
8587 fi
8588 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8589 && test "$tmp_diet" = no
8590 then
bf9f3bac 8591 tmp_addflag=
8934764e 8592 tmp_sharedflag='-shared'
bf9f3bac 8593 case $cc_basename,$host_cpu in
8934764e
BB
8594 pgcc*) # Portland Group C compiler
8595 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 8596 tmp_addflag=' $pic_flag'
8597 ;;
8598 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8934764e 8599 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 8600 tmp_addflag=' $pic_flag -Mnomain' ;;
8934764e 8601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
bf9f3bac 8602 tmp_addflag=' -i_dynamic' ;;
8603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8604 tmp_addflag=' -i_dynamic -nofor_main' ;;
8605 ifc* | ifort*) # Intel Fortran compiler
8606 tmp_addflag=' -nofor_main' ;;
8934764e
BB
8607 lf95*) # Lahey Fortran 8.1
8608 whole_archive_flag_spec=
8609 tmp_sharedflag='--shared' ;;
8610 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8611 tmp_sharedflag='-qmkshrobj'
8612 tmp_addflag= ;;
8613 esac
8614 case `$CC -V 2>&1 | sed 5q` in
8615 *Sun\ C*) # Sun C 5.9
8616 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'
8617 compiler_needs_object=yes
8618 tmp_sharedflag='-G' ;;
8619 *Sun\ F*) # Sun Fortran 8.3
8620 tmp_sharedflag='-G' ;;
bf9f3bac 8621 esac
8934764e 8622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8623
8934764e
BB
8624 if test "x$supports_anon_versioning" = xyes; then
8625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8627 echo "local: *; };" >> $output_objdir/$libname.ver~
8628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8629 fi
8630
8631 case $cc_basename in
8632 xlf*)
8633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8635 hardcode_libdir_flag_spec=
8636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8637 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8638 if test "x$supports_anon_versioning" = xyes; then
8639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8641 echo "local: *; };" >> $output_objdir/$libname.ver~
8642 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8643 fi
8644 ;;
8645 esac
bf9f3bac 8646 else
8934764e 8647 ld_shlibs=no
bf9f3bac 8648 fi
8649 ;;
8650
8651 netbsd*)
8934764e
BB
8652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
bf9f3bac 8654 wlarc=
8655 else
8934764e
BB
8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8658 fi
8659 ;;
8660
8661 solaris*)
8934764e
BB
8662 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8663 ld_shlibs=no
8664 cat <<_LT_EOF 1>&2
bf9f3bac 8665
8666*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8667*** create shared libraries on Solaris systems. Therefore, libtool
8668*** is disabling shared libraries support. We urge you to upgrade GNU
8669*** binutils to release 2.9.1 or newer. Another option is to modify
8670*** your PATH or compiler configuration so that the native linker is
8671*** used, and then restart.
8672
8934764e
BB
8673_LT_EOF
8674 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8677 else
8934764e 8678 ld_shlibs=no
bf9f3bac 8679 fi
8680 ;;
8681
8682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8683 case `$LD -v 2>&1` in
8684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8934764e 8685 ld_shlibs=no
bf9f3bac 8686 cat <<_LT_EOF 1>&2
8687
8688*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8689*** reliably create shared libraries on SCO systems. Therefore, libtool
8690*** is disabling shared libraries support. We urge you to upgrade GNU
8691*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8692*** your PATH or compiler configuration so that the native linker is
8693*** used, and then restart.
8694
8695_LT_EOF
8696 ;;
8697 *)
8934764e
BB
8698 # For security reasons, it is highly recommended that you always
8699 # use absolute paths for naming shared libraries, and exclude the
8700 # DT_RUNPATH tag from executables and libraries. But doing so
8701 # requires that you compile everything twice, which is a pain.
8702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8706 else
8934764e 8707 ld_shlibs=no
bf9f3bac 8708 fi
8709 ;;
8710 esac
8711 ;;
8712
8713 sunos4*)
8934764e 8714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 8715 wlarc=
8934764e
BB
8716 hardcode_direct=yes
8717 hardcode_shlibpath_var=no
bf9f3bac 8718 ;;
8719
8720 *)
8934764e
BB
8721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8724 else
8934764e 8725 ld_shlibs=no
bf9f3bac 8726 fi
8727 ;;
8728 esac
8729
8934764e 8730 if test "$ld_shlibs" = no; then
bf9f3bac 8731 runpath_var=
8934764e
BB
8732 hardcode_libdir_flag_spec=
8733 export_dynamic_flag_spec=
8734 whole_archive_flag_spec=
bf9f3bac 8735 fi
8736 else
8737 # PORTME fill in a description of your system's linker (not GNU ld)
8738 case $host_os in
8739 aix3*)
8934764e
BB
8740 allow_undefined_flag=unsupported
8741 always_export_symbols=yes
8742 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 8743 # Note: this linker hardcodes the directories in LIBPATH if there
8744 # are no directories specified by -L.
8934764e 8745 hardcode_minus_L=yes
bf9f3bac 8746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8747 # Neither direct hardcoding nor static linking is supported with a
8748 # broken collect2.
8934764e 8749 hardcode_direct=unsupported
bf9f3bac 8750 fi
8751 ;;
8752
8934764e 8753 aix[4-9]*)
bf9f3bac 8754 if test "$host_cpu" = ia64; then
8755 # On IA64, the linker does run time linking by default, so we don't
8756 # have to do anything special.
8757 aix_use_runtimelinking=no
8758 exp_sym_flag='-Bexport'
8759 no_entry_flag=""
8760 else
8761 # If we're using GNU nm, then we don't want the "-C" option.
8762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8934764e
BB
8763 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8764 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 8765 else
8934764e 8766 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 8767 fi
8768 aix_use_runtimelinking=no
8769
8770 # Test if we are trying to use run time linking or normal
8771 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8772 # need to do runtime linking.
8934764e 8773 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
bf9f3bac 8774 for ld_flag in $LDFLAGS; do
8934764e
BB
8775 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8776 aix_use_runtimelinking=yes
8777 break
8778 fi
bf9f3bac 8779 done
8780 ;;
8781 esac
8782
8783 exp_sym_flag='-bexport'
8784 no_entry_flag='-bnoentry'
8785 fi
8786
8787 # When large executables or shared objects are built, AIX ld can
8788 # have problems creating the table of contents. If linking a library
8789 # or program results in "error TOC overflow" add -mminimal-toc to
8790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8792
8934764e
BB
8793 archive_cmds=''
8794 hardcode_direct=yes
8795 hardcode_direct_absolute=yes
8796 hardcode_libdir_separator=':'
8797 link_all_deplibs=yes
8798 file_list_spec='${wl}-f,'
bf9f3bac 8799
8800 if test "$GCC" = yes; then
8801 case $host_os in aix4.[012]|aix4.[012].*)
8802 # We only want to do this on AIX 4.2 and lower, the check
8803 # below for broken collect2 doesn't work under 4.3+
8804 collect2name=`${CC} -print-prog-name=collect2`
8934764e
BB
8805 if test -f "$collect2name" &&
8806 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
bf9f3bac 8807 then
8934764e
BB
8808 # We have reworked collect2
8809 :
bf9f3bac 8810 else
8934764e
BB
8811 # We have old collect2
8812 hardcode_direct=unsupported
8813 # It fails to find uninstalled libraries when the uninstalled
8814 # path is not listed in the libpath. Setting hardcode_minus_L
8815 # to unsupported forces relinking
8816 hardcode_minus_L=yes
8817 hardcode_libdir_flag_spec='-L$libdir'
8818 hardcode_libdir_separator=
bf9f3bac 8819 fi
8820 ;;
8821 esac
8822 shared_flag='-shared'
8823 if test "$aix_use_runtimelinking" = yes; then
8824 shared_flag="$shared_flag "'${wl}-G'
8825 fi
8826 else
8827 # not using gcc
8828 if test "$host_cpu" = ia64; then
8934764e
BB
8829 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8830 # chokes on -Wl,-G. The following line is correct:
bf9f3bac 8831 shared_flag='-G'
8832 else
8833 if test "$aix_use_runtimelinking" = yes; then
8834 shared_flag='${wl}-G'
8835 else
8836 shared_flag='${wl}-bM:SRE'
8837 fi
8838 fi
8839 fi
8840
8934764e 8841 export_dynamic_flag_spec='${wl}-bexpall'
bf9f3bac 8842 # It seems that -bexpall does not export symbols beginning with
8843 # underscore (_), so it is better to generate a list of symbols to export.
8934764e 8844 always_export_symbols=yes
bf9f3bac 8845 if test "$aix_use_runtimelinking" = yes; then
8846 # Warning - without using the other runtime loading flags (-brtl),
8847 # -berok will link without error, but may produce a broken library.
8934764e
BB
8848 allow_undefined_flag='-berok'
8849 # Determine the default libpath from the value encoded in an
8850 # empty executable.
8851 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 8852/* confdefs.h. */
8853_ACEOF
8854cat confdefs.h >>conftest.$ac_ext
8855cat >>conftest.$ac_ext <<_ACEOF
8856/* end confdefs.h. */
8857
8858int
8859main ()
8860{
8861
8862 ;
8863 return 0;
8864}
8865_ACEOF
8866rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8867if { (ac_try="$ac_link"
8868case "(($ac_try" in
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8871esac
8872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8873$as_echo "$ac_try_echo") >&5
8874 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8934764e
BB
8879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest$ac_exeext && {
8884 test "$cross_compiling" = yes ||
8885 $as_test_x conftest$ac_exeext
8886 }; then
8887
8888lt_aix_libpath_sed='
8889 /Import File Strings/,/^$/ {
8890 /^0/ {
8891 s/^0 *\(.*\)$/\1/
8892 p
8893 }
8894 }'
8895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8896# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8897if test -z "$aix_libpath"; then
8898 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8899fi
bf9f3bac 8900else
8934764e 8901 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8902sed 's/^/| /' conftest.$ac_ext >&5
8903
8934764e 8904
bf9f3bac 8905fi
8934764e
BB
8906
8907rm -rf conftest.dSYM
8908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8909 conftest$ac_exeext conftest.$ac_ext
8910if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8911
8934764e
BB
8912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913 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"
8914 else
bf9f3bac 8915 if test "$host_cpu" = ia64; then
8934764e
BB
8916 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8917 allow_undefined_flag="-z nodefs"
8918 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 8919 else
8934764e
BB
8920 # Determine the default libpath from the value encoded in an
8921 # empty executable.
bf9f3bac 8922 cat >conftest.$ac_ext <<_ACEOF
8923/* confdefs.h. */
8924_ACEOF
8925cat confdefs.h >>conftest.$ac_ext
8926cat >>conftest.$ac_ext <<_ACEOF
8927/* end confdefs.h. */
8928
8929int
8930main ()
8931{
8932
8933 ;
8934 return 0;
8935}
8936_ACEOF
8937rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8938if { (ac_try="$ac_link"
8939case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942esac
8943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8944$as_echo "$ac_try_echo") >&5
8945 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8946 ac_status=$?
8947 grep -v '^ *+' conftest.er1 >conftest.err
8948 rm -f conftest.er1
8949 cat conftest.err >&5
8934764e
BB
8950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && {
8952 test -z "$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8954 } && test -s conftest$ac_exeext && {
8955 test "$cross_compiling" = yes ||
8956 $as_test_x conftest$ac_exeext
8957 }; then
8958
8959lt_aix_libpath_sed='
8960 /Import File Strings/,/^$/ {
8961 /^0/ {
8962 s/^0 *\(.*\)$/\1/
8963 p
8964 }
8965 }'
8966aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8967# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8968if test -z "$aix_libpath"; then
8969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970fi
bf9f3bac 8971else
8934764e 8972 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8973sed 's/^/| /' conftest.$ac_ext >&5
8974
8934764e 8975
bf9f3bac 8976fi
8934764e
BB
8977
8978rm -rf conftest.dSYM
8979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8980 conftest$ac_exeext conftest.$ac_ext
8981if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8982
8934764e 8983 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
bf9f3bac 8984 # Warning - without using the other run time loading flags,
8985 # -berok will link without error, but may produce a broken library.
8934764e
BB
8986 no_undefined_flag=' ${wl}-bernotok'
8987 allow_undefined_flag=' ${wl}-berok'
bf9f3bac 8988 # Exported symbols can be pulled into shared objects from archives
8934764e
BB
8989 whole_archive_flag_spec='$convenience'
8990 archive_cmds_need_lc=yes
bf9f3bac 8991 # This is similar to how AIX traditionally builds its shared libraries.
8934764e 8992 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 8993 fi
8994 fi
8995 ;;
8996
8997 amigaos*)
8934764e
BB
8998 case $host_cpu in
8999 powerpc)
9000 # see comment about AmigaOS4 .so support
9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9002 archive_expsym_cmds=''
9003 ;;
9004 m68k)
9005 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)'
9006 hardcode_libdir_flag_spec='-L$libdir'
9007 hardcode_minus_L=yes
9008 ;;
9009 esac
bf9f3bac 9010 ;;
9011
9012 bsdi[45]*)
8934764e 9013 export_dynamic_flag_spec=-rdynamic
bf9f3bac 9014 ;;
9015
8934764e 9016 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9017 # When not using gcc, we currently assume that we are using
9018 # Microsoft Visual C++.
9019 # hardcode_libdir_flag_spec is actually meaningless, as there is
9020 # no search path for DLLs.
8934764e
BB
9021 hardcode_libdir_flag_spec=' '
9022 allow_undefined_flag=unsupported
bf9f3bac 9023 # Tell ltmain to make .lib files, not .a files.
9024 libext=lib
9025 # Tell ltmain to make .dll files, not .so files.
9026 shrext_cmds=".dll"
9027 # FIXME: Setting linknames here is a bad hack.
8934764e 9028 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
bf9f3bac 9029 # The linker will automatically build a .lib file if we build a DLL.
8934764e 9030 old_archive_from_new_cmds='true'
bf9f3bac 9031 # FIXME: Should let the user specify the lib program.
8934764e
BB
9032 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9033 fix_srcfile_path='`cygpath -w "$srcfile"`'
9034 enable_shared_with_static_runtimes=yes
bf9f3bac 9035 ;;
9036
9037 darwin* | rhapsody*)
8934764e
BB
9038
9039
9040 archive_cmds_need_lc=no
9041 hardcode_direct=no
9042 hardcode_automatic=yes
9043 hardcode_shlibpath_var=unsupported
9044 whole_archive_flag_spec=''
9045 link_all_deplibs=yes
9046 allow_undefined_flag="$_lt_dar_allow_undefined"
9047 case $cc_basename in
9048 ifort*) _lt_dar_can_shared=yes ;;
9049 *) _lt_dar_can_shared=$GCC ;;
9050 esac
9051 if test "$_lt_dar_can_shared" = "yes"; then
9052 output_verbose_link_cmd=echo
9053 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9054 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9055 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}"
9056 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}"
9057
9058 else
9059 ld_shlibs=no
9060 fi
9061
bf9f3bac 9062 ;;
9063
9064 dgux*)
8934764e
BB
9065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_shlibpath_var=no
bf9f3bac 9068 ;;
9069
9070 freebsd1*)
8934764e 9071 ld_shlibs=no
bf9f3bac 9072 ;;
9073
9074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9075 # support. Future versions do this automatically, but an explicit c++rt0.o
9076 # does not break anything, and helps significantly (at the cost of a little
9077 # extra space).
9078 freebsd2.2*)
8934764e
BB
9079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9080 hardcode_libdir_flag_spec='-R$libdir'
9081 hardcode_direct=yes
9082 hardcode_shlibpath_var=no
bf9f3bac 9083 ;;
9084
9085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9086 freebsd2*)
8934764e
BB
9087 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9088 hardcode_direct=yes
9089 hardcode_minus_L=yes
9090 hardcode_shlibpath_var=no
bf9f3bac 9091 ;;
9092
9093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8934764e
BB
9094 freebsd* | dragonfly*)
9095 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9096 hardcode_libdir_flag_spec='-R$libdir'
9097 hardcode_direct=yes
9098 hardcode_shlibpath_var=no
bf9f3bac 9099 ;;
9100
9101 hpux9*)
9102 if test "$GCC" = yes; then
8934764e 9103 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 9104 else
8934764e 9105 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 9106 fi
8934764e
BB
9107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108 hardcode_libdir_separator=:
9109 hardcode_direct=yes
bf9f3bac 9110
9111 # hardcode_minus_L: Not really in the search PATH,
9112 # but as the default location of the library.
8934764e
BB
9113 hardcode_minus_L=yes
9114 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9115 ;;
9116
9117 hpux10*)
9118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8934764e 9119 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9120 else
8934764e 9121 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9122 fi
9123 if test "$with_gnu_ld" = no; then
8934764e
BB
9124 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9125 hardcode_libdir_flag_spec_ld='+b $libdir'
9126 hardcode_libdir_separator=:
9127 hardcode_direct=yes
9128 hardcode_direct_absolute=yes
9129 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9130 # hardcode_minus_L: Not really in the search PATH,
9131 # but as the default location of the library.
8934764e 9132 hardcode_minus_L=yes
bf9f3bac 9133 fi
9134 ;;
9135
9136 hpux11*)
9137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9138 case $host_cpu in
9139 hppa*64*)
8934764e 9140 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9141 ;;
9142 ia64*)
8934764e 9143 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9144 ;;
9145 *)
8934764e 9146 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9147 ;;
9148 esac
9149 else
9150 case $host_cpu in
9151 hppa*64*)
8934764e 9152 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9153 ;;
9154 ia64*)
8934764e 9155 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9156 ;;
9157 *)
8934764e 9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9159 ;;
9160 esac
9161 fi
9162 if test "$with_gnu_ld" = no; then
8934764e
BB
9163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164 hardcode_libdir_separator=:
bf9f3bac 9165
9166 case $host_cpu in
9167 hppa*64*|ia64*)
8934764e
BB
9168 hardcode_direct=no
9169 hardcode_shlibpath_var=no
bf9f3bac 9170 ;;
9171 *)
8934764e
BB
9172 hardcode_direct=yes
9173 hardcode_direct_absolute=yes
9174 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9175
9176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
8934764e 9178 hardcode_minus_L=yes
bf9f3bac 9179 ;;
9180 esac
9181 fi
9182 ;;
9183
9184 irix5* | irix6* | nonstopux*)
9185 if test "$GCC" = yes; then
8934764e
BB
9186 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'
9187 # Try to use the -exported_symbol ld option, if it does not
9188 # work, assume that -exports_file does not work either and
9189 # implicitly export all symbols.
9190 save_LDFLAGS="$LDFLAGS"
9191 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9192 cat >conftest.$ac_ext <<_ACEOF
9193int foo(void) {}
9194_ACEOF
9195rm -f conftest.$ac_objext conftest$ac_exeext
9196if { (ac_try="$ac_link"
9197case "(($ac_try" in
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9200esac
9201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9202$as_echo "$ac_try_echo") >&5
9203 (eval "$ac_link") 2>conftest.er1
9204 ac_status=$?
9205 grep -v '^ *+' conftest.er1 >conftest.err
9206 rm -f conftest.er1
9207 cat conftest.err >&5
9208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); } && {
9210 test -z "$ac_c_werror_flag" ||
9211 test ! -s conftest.err
9212 } && test -s conftest$ac_exeext && {
9213 test "$cross_compiling" = yes ||
9214 $as_test_x conftest$ac_exeext
9215 }; then
9216 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'
9217
9218else
9219 $as_echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
9222
9223fi
9224
9225rm -rf conftest.dSYM
9226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9227 conftest$ac_exeext conftest.$ac_ext
9228 LDFLAGS="$save_LDFLAGS"
bf9f3bac 9229 else
8934764e
BB
9230 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'
9231 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 9232 fi
8934764e
BB
9233 archive_cmds_need_lc='no'
9234 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235 hardcode_libdir_separator=:
9236 inherit_rpath=yes
9237 link_all_deplibs=yes
bf9f3bac 9238 ;;
9239
9240 netbsd*)
8934764e
BB
9241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
bf9f3bac 9243 else
8934764e 9244 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
bf9f3bac 9245 fi
8934764e
BB
9246 hardcode_libdir_flag_spec='-R$libdir'
9247 hardcode_direct=yes
9248 hardcode_shlibpath_var=no
bf9f3bac 9249 ;;
9250
9251 newsos6)
8934764e
BB
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_direct=yes
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 hardcode_libdir_separator=:
9256 hardcode_shlibpath_var=no
9257 ;;
9258
9259 *nto* | *qnx*)
bf9f3bac 9260 ;;
9261
9262 openbsd*)
8934764e
BB
9263 if test -f /usr/libexec/ld.so; then
9264 hardcode_direct=yes
9265 hardcode_shlibpath_var=no
9266 hardcode_direct_absolute=yes
9267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9270 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9271 export_dynamic_flag_spec='${wl}-E'
9272 else
9273 case $host_os in
9274 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9276 hardcode_libdir_flag_spec='-R$libdir'
9277 ;;
9278 *)
9279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9280 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9281 ;;
9282 esac
9283 fi
bf9f3bac 9284 else
8934764e 9285 ld_shlibs=no
bf9f3bac 9286 fi
9287 ;;
9288
9289 os2*)
8934764e
BB
9290 hardcode_libdir_flag_spec='-L$libdir'
9291 hardcode_minus_L=yes
9292 allow_undefined_flag=unsupported
9293 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'
9294 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
bf9f3bac 9295 ;;
9296
9297 osf3*)
9298 if test "$GCC" = yes; then
8934764e
BB
9299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9300 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 9301 else
8934764e
BB
9302 allow_undefined_flag=' -expect_unresolved \*'
9303 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 9304 fi
8934764e
BB
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9307 hardcode_libdir_separator=:
bf9f3bac 9308 ;;
9309
9310 osf4* | osf5*) # as osf3* with the addition of -msym flag
9311 if test "$GCC" = yes; then
8934764e
BB
9312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9313 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'
9314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
bf9f3bac 9315 else
8934764e
BB
9316 allow_undefined_flag=' -expect_unresolved \*'
9317 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'
9318 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~
9319 $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 9320
9321 # Both c and cxx compiler support -rpath directly
8934764e 9322 hardcode_libdir_flag_spec='-rpath $libdir'
bf9f3bac 9323 fi
8934764e
BB
9324 archive_cmds_need_lc='no'
9325 hardcode_libdir_separator=:
bf9f3bac 9326 ;;
9327
9328 solaris*)
8934764e 9329 no_undefined_flag=' -z defs'
bf9f3bac 9330 if test "$GCC" = yes; then
9331 wlarc='${wl}'
8934764e
BB
9332 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9334 $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 9335 else
8934764e
BB
9336 case `$CC -V 2>&1` in
9337 *"Compilers 5.0"*)
9338 wlarc=''
9339 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9341 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9342 ;;
9343 *)
9344 wlarc='${wl}'
9345 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9347 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9348 ;;
9349 esac
bf9f3bac 9350 fi
8934764e
BB
9351 hardcode_libdir_flag_spec='-R$libdir'
9352 hardcode_shlibpath_var=no
bf9f3bac 9353 case $host_os in
9354 solaris2.[0-5] | solaris2.[0-5].*) ;;
9355 *)
8934764e
BB
9356 # The compiler driver will combine and reorder linker options,
9357 # but understands `-z linker_flag'. GCC discards it without `$wl',
9358 # but is careful enough not to reorder.
9359 # Supported since Solaris 2.6 (maybe 2.5.1?)
9360 if test "$GCC" = yes; then
9361 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9362 else
9363 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9364 fi
9365 ;;
bf9f3bac 9366 esac
8934764e 9367 link_all_deplibs=yes
bf9f3bac 9368 ;;
9369
9370 sunos4*)
9371 if test "x$host_vendor" = xsequent; then
9372 # Use $CC to link under sequent, because it throws in some extra .o
9373 # files that make .init and .fini sections work.
8934764e 9374 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9375 else
8934764e 9376 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9377 fi
8934764e
BB
9378 hardcode_libdir_flag_spec='-L$libdir'
9379 hardcode_direct=yes
9380 hardcode_minus_L=yes
9381 hardcode_shlibpath_var=no
bf9f3bac 9382 ;;
9383
9384 sysv4)
9385 case $host_vendor in
9386 sni)
8934764e
BB
9387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=yes # is this really true???
bf9f3bac 9389 ;;
9390 siemens)
9391 ## LD is ld it makes a PLAMLIB
9392 ## CC just makes a GrossModule.
8934764e
BB
9393 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9394 reload_cmds='$CC -r -o $output$reload_objs'
9395 hardcode_direct=no
bf9f3bac 9396 ;;
9397 motorola)
8934764e
BB
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
bf9f3bac 9400 ;;
9401 esac
9402 runpath_var='LD_RUN_PATH'
8934764e 9403 hardcode_shlibpath_var=no
bf9f3bac 9404 ;;
9405
9406 sysv4.3*)
8934764e
BB
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_shlibpath_var=no
9409 export_dynamic_flag_spec='-Bexport'
bf9f3bac 9410 ;;
9411
9412 sysv4*MP*)
9413 if test -d /usr/nec; then
8934764e
BB
9414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415 hardcode_shlibpath_var=no
bf9f3bac 9416 runpath_var=LD_RUN_PATH
9417 hardcode_runpath_var=yes
8934764e 9418 ld_shlibs=yes
bf9f3bac 9419 fi
9420 ;;
9421
8934764e
BB
9422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9423 no_undefined_flag='${wl}-z,text'
9424 archive_cmds_need_lc=no
9425 hardcode_shlibpath_var=no
bf9f3bac 9426 runpath_var='LD_RUN_PATH'
9427
9428 if test "$GCC" = yes; then
8934764e
BB
9429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9431 else
8934764e
BB
9432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9434 fi
9435 ;;
9436
9437 sysv5* | sco3.2v5* | sco5v6*)
9438 # Note: We can NOT use -z defs as we might desire, because we do not
9439 # link with -lc, and that would cause any symbols used from libc to
9440 # always be unresolved, which means just about no library would
9441 # ever link correctly. If we're not using GNU ld we use -z text
9442 # though, which does catch some bad symbols but isn't as heavy-handed
9443 # as -z defs.
8934764e
BB
9444 no_undefined_flag='${wl}-z,text'
9445 allow_undefined_flag='${wl}-z,nodefs'
9446 archive_cmds_need_lc=no
9447 hardcode_shlibpath_var=no
9448 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9449 hardcode_libdir_separator=':'
9450 link_all_deplibs=yes
9451 export_dynamic_flag_spec='${wl}-Bexport'
bf9f3bac 9452 runpath_var='LD_RUN_PATH'
9453
9454 if test "$GCC" = yes; then
8934764e
BB
9455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9457 else
8934764e
BB
9458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9460 fi
9461 ;;
9462
9463 uts4*)
8934764e
BB
9464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-L$libdir'
9466 hardcode_shlibpath_var=no
bf9f3bac 9467 ;;
9468
9469 *)
8934764e 9470 ld_shlibs=no
bf9f3bac 9471 ;;
9472 esac
8934764e
BB
9473
9474 if test x$host_vendor = xsni; then
9475 case $host in
9476 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9477 export_dynamic_flag_spec='${wl}-Blargedynsym'
9478 ;;
9479 esac
9480 fi
bf9f3bac 9481 fi
9482
8934764e
BB
9483{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9484$as_echo "$ld_shlibs" >&6; }
9485test "$ld_shlibs" = no && can_build_shared=no
9486
9487with_gnu_ld=$with_gnu_ld
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
bf9f3bac 9502
9503#
9504# Do we need to explicitly link libc?
9505#
8934764e 9506case "x$archive_cmds_need_lc" in
bf9f3bac 9507x|xyes)
9508 # Assume -lc should be added
8934764e 9509 archive_cmds_need_lc=yes
bf9f3bac 9510
9511 if test "$enable_shared" = yes && test "$GCC" = yes; then
8934764e 9512 case $archive_cmds in
bf9f3bac 9513 *'~'*)
9514 # FIXME: we may have to deal with multi-command sequences.
9515 ;;
9516 '$CC '*)
9517 # Test whether the compiler implicitly links with -lc since on some
9518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9519 # to ld, don't add -lc before -lgcc.
8934764e
BB
9520 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9521$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9522 $RM conftest*
9523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 9524
9525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9526 (eval $ac_compile) 2>&5
9527 ac_status=$?
8934764e 9528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9529 (exit $ac_status); } 2>conftest.err; then
9530 soname=conftest
9531 lib=conftest
9532 libobjs=conftest.$ac_objext
9533 deplibs=
8934764e
BB
9534 wl=$lt_prog_compiler_wl
9535 pic_flag=$lt_prog_compiler_pic
bf9f3bac 9536 compiler_flags=-v
9537 linker_flags=-v
9538 verstring=
9539 output_objdir=.
9540 libname=conftest
8934764e
BB
9541 lt_save_allow_undefined_flag=$allow_undefined_flag
9542 allow_undefined_flag=
9543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9544 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
bf9f3bac 9545 ac_status=$?
8934764e 9546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9547 (exit $ac_status); }
9548 then
8934764e 9549 archive_cmds_need_lc=no
bf9f3bac 9550 else
8934764e 9551 archive_cmds_need_lc=yes
bf9f3bac 9552 fi
8934764e 9553 allow_undefined_flag=$lt_save_allow_undefined_flag
bf9f3bac 9554 else
9555 cat conftest.err 1>&5
9556 fi
8934764e
BB
9557 $RM conftest*
9558 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9559$as_echo "$archive_cmds_need_lc" >&6; }
bf9f3bac 9560 ;;
9561 esac
9562 fi
9563 ;;
9564esac
9565
8934764e
BB
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9723$as_echo_n "checking dynamic linker characteristics... " >&6; }
9724
9725if test "$GCC" = yes; then
9726 case $host_os in
9727 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9728 *) lt_awk_arg="/^libraries:/" ;;
9729 esac
9730 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9731 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9732 # if the path contains ";" then we assume it to be the separator
9733 # otherwise default to the standard path separator (i.e. ":") - it is
9734 # assumed that no part of a normal pathname contains ";" but that should
9735 # okay in the real world where ";" in dirpaths is itself problematic.
9736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9737 else
9738 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9739 fi
9740 # Ok, now we have the path, separated by spaces, we can step through it
9741 # and add multilib dir if necessary.
9742 lt_tmp_lt_search_path_spec=
9743 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9744 for lt_sys_path in $lt_search_path_spec; do
9745 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9746 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9747 else
9748 test -d "$lt_sys_path" && \
9749 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9750 fi
9751 done
9752 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9753BEGIN {RS=" "; FS="/|\n";} {
9754 lt_foo="";
9755 lt_count=0;
9756 for (lt_i = NF; lt_i > 0; lt_i--) {
9757 if ($lt_i != "" && $lt_i != ".") {
9758 if ($lt_i == "..") {
9759 lt_count++;
9760 } else {
9761 if (lt_count == 0) {
9762 lt_foo="/" $lt_i lt_foo;
9763 } else {
9764 lt_count--;
9765 }
9766 }
9767 }
9768 }
9769 if (lt_foo != "") { lt_freq[lt_foo]++; }
9770 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9771}'`
9772 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9773else
9774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9775fi
bf9f3bac 9776library_names_spec=
9777libname_spec='lib$name'
9778soname_spec=
9779shrext_cmds=".so"
9780postinstall_cmds=
9781postuninstall_cmds=
9782finish_cmds=
9783finish_eval=
9784shlibpath_var=
9785shlibpath_overrides_runpath=unknown
9786version_type=none
9787dynamic_linker="$host_os ld.so"
9788sys_lib_dlsearch_path_spec="/lib /usr/lib"
bf9f3bac 9789need_lib_prefix=unknown
9790hardcode_into_libs=no
9791
9792# when you set need_version to no, make sure it does not cause -set_version
9793# flags to be left without arguments
9794need_version=unknown
9795
9796case $host_os in
9797aix3*)
9798 version_type=linux
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9800 shlibpath_var=LIBPATH
9801
9802 # AIX 3 has no versioning support, so we append a major version to the name.
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 ;;
9805
8934764e 9806aix[4-9]*)
bf9f3bac 9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 hardcode_into_libs=yes
9811 if test "$host_cpu" = ia64; then
9812 # AIX 5 supports IA64
9813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 else
9816 # With GCC up to 2.95.x, collect2 would create an import file
9817 # for dependence libraries. The import file would start with
9818 # the line `#! .'. This would cause the generated library to
9819 # depend on `.', always an invalid library. This was fixed in
9820 # development snapshots of GCC prior to 3.0.
9821 case $host_os in
9822 aix4 | aix4.[01] | aix4.[01].*)
9823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9824 echo ' yes '
8934764e 9825 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
bf9f3bac 9826 :
9827 else
9828 can_build_shared=no
9829 fi
9830 ;;
9831 esac
9832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9833 # soname into executable. Probably we can add versioning support to
9834 # collect2, so additional links can be useful in future.
9835 if test "$aix_use_runtimelinking" = yes; then
9836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9837 # instead of lib<name>.a to let people know that these are not
9838 # typical AIX shared libraries.
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 else
9841 # We preserve .a as extension for shared libraries through AIX4.2
9842 # and later when we are not doing run time linking.
9843 library_names_spec='${libname}${release}.a $libname.a'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 fi
9846 shlibpath_var=LIBPATH
9847 fi
9848 ;;
9849
9850amigaos*)
8934764e
BB
9851 case $host_cpu in
9852 powerpc)
9853 # Since July 2007 AmigaOS4 officially supports .so libraries.
9854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 ;;
9857 m68k)
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 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'
9861 ;;
9862 esac
bf9f3bac 9863 ;;
9864
9865beos*)
9866 library_names_spec='${libname}${shared_ext}'
9867 dynamic_linker="$host_os ld.so"
9868 shlibpath_var=LIBRARY_PATH
9869 ;;
9870
9871bsdi[45]*)
9872 version_type=linux
9873 need_version=no
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9880 # the default ld.so.conf also contains /usr/contrib/lib and
9881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9882 # libtool to hard-code these into programs
9883 ;;
9884
8934764e 9885cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9886 version_type=windows
9887 shrext_cmds=".dll"
9888 need_version=no
9889 need_lib_prefix=no
9890
9891 case $GCC,$host_os in
8934764e 9892 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
bf9f3bac 9893 library_names_spec='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds='base_file=`basename \${file}`~
8934764e 9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
bf9f3bac 9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
8934764e
BB
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9903 fi'
bf9f3bac 9904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
8934764e 9906 $RM \$dlpath'
bf9f3bac 9907 shlibpath_overrides_runpath=yes
9908
9909 case $host_os in
9910 cygwin*)
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9914 ;;
8934764e 9915 mingw* | cegcc*)
bf9f3bac 9916 # MinGW DLLs use traditional 'lib' prefix
9917 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934764e
BB
9918 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9919 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
bf9f3bac 9920 # It is most probably a Windows format PATH printed by
9921 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9922 # path with ; separators, and with drive letters. We can handle the
9923 # drive letters (cygwin fileutils understands them), so leave them,
9924 # especially as we might pass files found there to a mingw objdump,
9925 # which wouldn't understand a cygwinified path. Ahh.
8934764e 9926 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
bf9f3bac 9927 else
8934764e 9928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
bf9f3bac 9929 fi
9930 ;;
9931 pw32*)
9932 # pw32 DLLs use 'pw' prefix rather than 'lib'
9933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 ;;
9935 esac
9936 ;;
9937
9938 *)
9939 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9940 ;;
9941 esac
9942 dynamic_linker='Win32 ld.exe'
9943 # FIXME: first we should search . and the directory the executable is in
9944 shlibpath_var=PATH
9945 ;;
9946
9947darwin* | rhapsody*)
9948 dynamic_linker="$host_os dyld"
9949 version_type=darwin
9950 need_lib_prefix=no
9951 need_version=no
8934764e 9952 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
bf9f3bac 9953 soname_spec='${libname}${release}${major}$shared_ext'
9954 shlibpath_overrides_runpath=yes
9955 shlibpath_var=DYLD_LIBRARY_PATH
9956 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8934764e
BB
9957
9958 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
bf9f3bac 9959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9960 ;;
9961
9962dgux*)
9963 version_type=linux
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 ;;
9970
9971freebsd1*)
9972 dynamic_linker=no
9973 ;;
9974
bf9f3bac 9975freebsd* | dragonfly*)
9976 # DragonFly does not have aout. When/if they implement a new
9977 # versioning mechanism, adjust this.
9978 if test -x /usr/bin/objformat; then
9979 objformat=`/usr/bin/objformat`
9980 else
9981 case $host_os in
9982 freebsd[123]*) objformat=aout ;;
9983 *) objformat=elf ;;
9984 esac
9985 fi
9986 version_type=freebsd-$objformat
9987 case $version_type in
9988 freebsd-elf*)
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9990 need_version=no
9991 need_lib_prefix=no
9992 ;;
9993 freebsd-*)
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9995 need_version=yes
9996 ;;
9997 esac
9998 shlibpath_var=LD_LIBRARY_PATH
9999 case $host_os in
10000 freebsd2*)
10001 shlibpath_overrides_runpath=yes
10002 ;;
10003 freebsd3.[01]* | freebsdelf3.[01]*)
10004 shlibpath_overrides_runpath=yes
10005 hardcode_into_libs=yes
10006 ;;
10007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10009 shlibpath_overrides_runpath=no
10010 hardcode_into_libs=yes
10011 ;;
8934764e 10012 *) # from 4.6 on, and DragonFly
bf9f3bac 10013 shlibpath_overrides_runpath=yes
10014 hardcode_into_libs=yes
10015 ;;
10016 esac
10017 ;;
10018
10019gnu*)
10020 version_type=linux
10021 need_lib_prefix=no
10022 need_version=no
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 shlibpath_var=LD_LIBRARY_PATH
10026 hardcode_into_libs=yes
10027 ;;
10028
10029hpux9* | hpux10* | hpux11*)
10030 # Give a soname corresponding to the major version so that dld.sl refuses to
10031 # link against other versions.
10032 version_type=sunos
10033 need_lib_prefix=no
10034 need_version=no
10035 case $host_cpu in
10036 ia64*)
10037 shrext_cmds='.so'
10038 hardcode_into_libs=yes
10039 dynamic_linker="$host_os dld.so"
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043 soname_spec='${libname}${release}${shared_ext}$major'
10044 if test "X$HPUX_IA64_MODE" = X32; then
10045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10046 else
10047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10048 fi
10049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10050 ;;
8934764e
BB
10051 hppa*64*)
10052 shrext_cmds='.sl'
10053 hardcode_into_libs=yes
10054 dynamic_linker="$host_os dld.sl"
10055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10061 ;;
10062 *)
bf9f3bac 10063 shrext_cmds='.sl'
10064 dynamic_linker="$host_os dld.sl"
10065 shlibpath_var=SHLIB_PATH
10066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 ;;
10070 esac
10071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10072 postinstall_cmds='chmod 555 $lib'
10073 ;;
10074
8934764e 10075interix[3-9]*)
bf9f3bac 10076 version_type=linux
10077 need_lib_prefix=no
10078 need_version=no
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10082 shlibpath_var=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath=no
10084 hardcode_into_libs=yes
10085 ;;
10086
10087irix5* | irix6* | nonstopux*)
10088 case $host_os in
10089 nonstopux*) version_type=nonstopux ;;
10090 *)
10091 if test "$lt_cv_prog_gnu_ld" = yes; then
10092 version_type=linux
10093 else
10094 version_type=irix
10095 fi ;;
10096 esac
10097 need_lib_prefix=no
10098 need_version=no
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10101 case $host_os in
10102 irix5* | nonstopux*)
10103 libsuff= shlibsuff=
10104 ;;
10105 *)
10106 case $LD in # libtool.m4 will add one of these switches to LD
10107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10108 libsuff= shlibsuff= libmagic=32-bit;;
10109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10110 libsuff=32 shlibsuff=N32 libmagic=N32;;
10111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10113 *) libsuff= shlibsuff= libmagic=never-match;;
10114 esac
10115 ;;
10116 esac
10117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10118 shlibpath_overrides_runpath=no
10119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10121 hardcode_into_libs=yes
10122 ;;
10123
10124# No shared lib support for Linux oldld, aout, or coff.
10125linux*oldld* | linux*aout* | linux*coff*)
10126 dynamic_linker=no
10127 ;;
10128
10129# This must be Linux ELF.
8934764e 10130linux* | k*bsd*-gnu)
bf9f3bac 10131 version_type=linux
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec='${libname}${release}${shared_ext}$major'
10136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10137 shlibpath_var=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath=no
8934764e
BB
10139 # Some binutils ld are patched to set DT_RUNPATH
10140 save_LDFLAGS=$LDFLAGS
10141 save_libdir=$libdir
10142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10144 cat >conftest.$ac_ext <<_ACEOF
10145/* confdefs.h. */
10146_ACEOF
10147cat confdefs.h >>conftest.$ac_ext
10148cat >>conftest.$ac_ext <<_ACEOF
10149/* end confdefs.h. */
10150
10151int
10152main ()
10153{
10154
10155 ;
10156 return 0;
10157}
10158_ACEOF
10159rm -f conftest.$ac_objext conftest$ac_exeext
10160if { (ac_try="$ac_link"
10161case "(($ac_try" in
10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10163 *) ac_try_echo=$ac_try;;
10164esac
10165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10166$as_echo "$ac_try_echo") >&5
10167 (eval "$ac_link") 2>conftest.er1
10168 ac_status=$?
10169 grep -v '^ *+' conftest.er1 >conftest.err
10170 rm -f conftest.er1
10171 cat conftest.err >&5
10172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext && {
10177 test "$cross_compiling" = yes ||
10178 $as_test_x conftest$ac_exeext
10179 }; then
10180 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10181 shlibpath_overrides_runpath=yes
10182fi
10183
10184else
10185 $as_echo "$as_me: failed program was:" >&5
10186sed 's/^/| /' conftest.$ac_ext >&5
10187
10188
10189fi
10190
10191rm -rf conftest.dSYM
10192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10194 LDFLAGS=$save_LDFLAGS
10195 libdir=$save_libdir
10196
bf9f3bac 10197 # This implies no fast_install, which is unacceptable.
10198 # Some rework will be needed to allow for fast_install
10199 # before this can be enabled.
10200 hardcode_into_libs=yes
10201
8934764e
BB
10202 # Add ABI-specific directories to the system library path.
10203 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
bf9f3bac 10204
10205 # Append ld.so.conf contents to the search path
10206 if test -f /etc/ld.so.conf; then
8934764e
BB
10207 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' ' '`
10208 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
bf9f3bac 10209 fi
10210
10211 # We used to test for /lib/ld.so.1 and disable shared libraries on
10212 # powerpc, because MkLinux only supported shared libraries with the
10213 # GNU dynamic linker. Since this was broken with cross compilers,
10214 # most powerpc-linux boxes support dynamic linking these days and
10215 # people can always --disable-shared, the test was removed, and we
10216 # assume the GNU/Linux dynamic linker is in use.
10217 dynamic_linker='GNU/Linux ld.so'
10218 ;;
10219
bf9f3bac 10220netbsd*)
10221 version_type=sunos
10222 need_lib_prefix=no
10223 need_version=no
8934764e 10224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
bf9f3bac 10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10227 dynamic_linker='NetBSD (a.out) ld.so'
10228 else
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 dynamic_linker='NetBSD ld.elf_so'
10232 fi
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=yes
10235 hardcode_into_libs=yes
10236 ;;
10237
10238newsos6)
10239 version_type=linux
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=yes
10243 ;;
10244
8934764e
BB
10245*nto* | *qnx*)
10246 version_type=qnx
bf9f3bac 10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LD_LIBRARY_PATH
8934764e
BB
10252 shlibpath_overrides_runpath=no
10253 hardcode_into_libs=yes
10254 dynamic_linker='ldqnx.so'
bf9f3bac 10255 ;;
10256
10257openbsd*)
10258 version_type=sunos
10259 sys_lib_dlsearch_path_spec="/usr/lib"
10260 need_lib_prefix=no
10261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10262 case $host_os in
8934764e
BB
10263 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10264 *) need_version=no ;;
bf9f3bac 10265 esac
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10268 shlibpath_var=LD_LIBRARY_PATH
8934764e 10269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
bf9f3bac 10270 case $host_os in
10271 openbsd2.[89] | openbsd2.[89].*)
10272 shlibpath_overrides_runpath=no
10273 ;;
10274 *)
10275 shlibpath_overrides_runpath=yes
10276 ;;
10277 esac
10278 else
10279 shlibpath_overrides_runpath=yes
10280 fi
10281 ;;
10282
10283os2*)
10284 libname_spec='$name'
10285 shrext_cmds=".dll"
10286 need_lib_prefix=no
10287 library_names_spec='$libname${shared_ext} $libname.a'
10288 dynamic_linker='OS/2 ld.exe'
10289 shlibpath_var=LIBPATH
10290 ;;
10291
10292osf3* | osf4* | osf5*)
10293 version_type=osf
10294 need_lib_prefix=no
10295 need_version=no
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10301 ;;
10302
8934764e
BB
10303rdos*)
10304 dynamic_linker=no
10305 ;;
10306
bf9f3bac 10307solaris*)
10308 version_type=linux
10309 need_lib_prefix=no
10310 need_version=no
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 # ldd complains unless libraries are executable
10317 postinstall_cmds='chmod +x $lib'
10318 ;;
10319
10320sunos4*)
10321 version_type=sunos
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10326 if test "$with_gnu_ld" = yes; then
10327 need_lib_prefix=no
10328 fi
10329 need_version=yes
10330 ;;
10331
10332sysv4 | sysv4.3*)
10333 version_type=linux
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 case $host_vendor in
10338 sni)
10339 shlibpath_overrides_runpath=no
10340 need_lib_prefix=no
bf9f3bac 10341 runpath_var=LD_RUN_PATH
10342 ;;
10343 siemens)
10344 need_lib_prefix=no
10345 ;;
10346 motorola)
10347 need_lib_prefix=no
10348 need_version=no
10349 shlibpath_overrides_runpath=no
10350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10351 ;;
10352 esac
10353 ;;
10354
10355sysv4*MP*)
10356 if test -d /usr/nec ;then
10357 version_type=linux
10358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10359 soname_spec='$libname${shared_ext}.$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10361 fi
10362 ;;
10363
10364sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10365 version_type=freebsd-elf
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 shlibpath_var=LD_LIBRARY_PATH
8934764e 10371 shlibpath_overrides_runpath=yes
bf9f3bac 10372 hardcode_into_libs=yes
10373 if test "$with_gnu_ld" = yes; then
10374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
bf9f3bac 10375 else
10376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
bf9f3bac 10377 case $host_os in
10378 sco3.2v5*)
10379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10380 ;;
10381 esac
10382 fi
10383 sys_lib_dlsearch_path_spec='/usr/lib'
10384 ;;
10385
8934764e
BB
10386tpf*)
10387 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10388 version_type=linux
10389 need_lib_prefix=no
10390 need_version=no
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10395 ;;
10396
bf9f3bac 10397uts4*)
10398 version_type=linux
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 ;;
10403
10404*)
10405 dynamic_linker=no
10406 ;;
10407esac
8934764e
BB
10408{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10409$as_echo "$dynamic_linker" >&6; }
bf9f3bac 10410test "$dynamic_linker" = no && can_build_shared=no
10411
10412variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10413if test "$GCC" = yes; then
10414 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10415fi
10416
8934764e
BB
10417if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10418 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
bf9f3bac 10419fi
8934764e
BB
10420if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10421 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
bf9f3bac 10422fi
10423
10424
bf9f3bac 10425
bf9f3bac 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
8934764e
BB
10510 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10511$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10512hardcode_action=
10513if test -n "$hardcode_libdir_flag_spec" ||
10514 test -n "$runpath_var" ||
10515 test "X$hardcode_automatic" = "Xyes" ; then
bf9f3bac 10516
8934764e
BB
10517 # We can hardcode non-existent directories.
10518 if test "$hardcode_direct" != no &&
10519 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10520 # have to relink, otherwise we might link with an installed library
10521 # when we should be linking with a yet-to-be-installed one
10522 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10523 test "$hardcode_minus_L" != no; then
10524 # Linking always hardcodes the temporary library directory.
10525 hardcode_action=relink
10526 else
10527 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10528 hardcode_action=immediate
bf9f3bac 10529 fi
8934764e
BB
10530else
10531 # We cannot hardcode anything, or else we can only hardcode existing
10532 # directories.
10533 hardcode_action=unsupported
bf9f3bac 10534fi
8934764e
BB
10535{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10536$as_echo "$hardcode_action" >&6; }
bf9f3bac 10537
8934764e
BB
10538if test "$hardcode_action" = relink ||
10539 test "$inherit_rpath" = yes; then
10540 # Fast installation is not supported
10541 enable_fast_install=no
10542elif test "$shlibpath_overrides_runpath" = yes ||
10543 test "$enable_shared" = no; then
10544 # Fast installation is not necessary
10545 enable_fast_install=needless
10546fi
bf9f3bac 10547
bf9f3bac 10548
bf9f3bac 10549
bf9f3bac 10550
bf9f3bac 10551
10552
8934764e
BB
10553 if test "x$enable_dlopen" != xyes; then
10554 enable_dlopen=unknown
10555 enable_dlopen_self=unknown
10556 enable_dlopen_self_static=unknown
10557else
10558 lt_cv_dlopen=no
10559 lt_cv_dlopen_libs=
bf9f3bac 10560
8934764e
BB
10561 case $host_os in
10562 beos*)
10563 lt_cv_dlopen="load_add_on"
10564 lt_cv_dlopen_libs=
10565 lt_cv_dlopen_self=yes
10566 ;;
bf9f3bac 10567
8934764e
BB
10568 mingw* | pw32* | cegcc*)
10569 lt_cv_dlopen="LoadLibrary"
10570 lt_cv_dlopen_libs=
10571 ;;
bf9f3bac 10572
8934764e
BB
10573 cygwin*)
10574 lt_cv_dlopen="dlopen"
10575 lt_cv_dlopen_libs=
10576 ;;
bf9f3bac 10577
8934764e
BB
10578 darwin*)
10579 # if libdl is installed we need to link against it
10580 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10581$as_echo_n "checking for dlopen in -ldl... " >&6; }
10582if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10583 $as_echo_n "(cached) " >&6
10584else
10585 ac_check_lib_save_LIBS=$LIBS
10586LIBS="-ldl $LIBS"
10587cat >conftest.$ac_ext <<_ACEOF
10588/* confdefs.h. */
10589_ACEOF
10590cat confdefs.h >>conftest.$ac_ext
10591cat >>conftest.$ac_ext <<_ACEOF
10592/* end confdefs.h. */
bf9f3bac 10593
8934764e
BB
10594/* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597#ifdef __cplusplus
10598extern "C"
10599#endif
10600char dlopen ();
10601int
10602main ()
10603{
10604return dlopen ();
10605 ;
10606 return 0;
10607}
10608_ACEOF
10609rm -f conftest.$ac_objext conftest$ac_exeext
10610if { (ac_try="$ac_link"
10611case "(($ac_try" in
10612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613 *) ac_try_echo=$ac_try;;
10614esac
10615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10616$as_echo "$ac_try_echo") >&5
10617 (eval "$ac_link") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext && {
10627 test "$cross_compiling" = yes ||
10628 $as_test_x conftest$ac_exeext
10629 }; then
10630 ac_cv_lib_dl_dlopen=yes
10631else
10632 $as_echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10634
8934764e
BB
10635 ac_cv_lib_dl_dlopen=no
10636fi
bf9f3bac 10637
8934764e
BB
10638rm -rf conftest.dSYM
10639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640 conftest$ac_exeext conftest.$ac_ext
10641LIBS=$ac_check_lib_save_LIBS
10642fi
10643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10644$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10645if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10647else
bf9f3bac 10648
8934764e
BB
10649 lt_cv_dlopen="dyld"
10650 lt_cv_dlopen_libs=
10651 lt_cv_dlopen_self=yes
bf9f3bac 10652
8934764e 10653fi
bf9f3bac 10654
8934764e 10655 ;;
bf9f3bac 10656
8934764e
BB
10657 *)
10658 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10659$as_echo_n "checking for shl_load... " >&6; }
10660if test "${ac_cv_func_shl_load+set}" = set; then
10661 $as_echo_n "(cached) " >&6
10662else
10663 cat >conftest.$ac_ext <<_ACEOF
10664/* confdefs.h. */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h. */
10669/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10671#define shl_load innocuous_shl_load
bf9f3bac 10672
8934764e
BB
10673/* System header to define __stub macros and hopefully few prototypes,
10674 which can conflict with char shl_load (); below.
10675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10676 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10677
8934764e
BB
10678#ifdef __STDC__
10679# include <limits.h>
10680#else
10681# include <assert.h>
10682#endif
bf9f3bac 10683
8934764e 10684#undef shl_load
bf9f3bac 10685
8934764e
BB
10686/* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10689#ifdef __cplusplus
10690extern "C"
10691#endif
10692char shl_load ();
10693/* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696#if defined __stub_shl_load || defined __stub___shl_load
10697choke me
10698#endif
bf9f3bac 10699
8934764e
BB
10700int
10701main ()
10702{
10703return shl_load ();
10704 ;
10705 return 0;
10706}
10707_ACEOF
10708rm -f conftest.$ac_objext conftest$ac_exeext
10709if { (ac_try="$ac_link"
10710case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
10714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715$as_echo "$ac_try_echo") >&5
10716 (eval "$ac_link") 2>conftest.er1
10717 ac_status=$?
10718 grep -v '^ *+' conftest.er1 >conftest.err
10719 rm -f conftest.er1
10720 cat conftest.err >&5
10721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest$ac_exeext && {
10726 test "$cross_compiling" = yes ||
10727 $as_test_x conftest$ac_exeext
10728 }; then
10729 ac_cv_func_shl_load=yes
10730else
10731 $as_echo "$as_me: failed program was:" >&5
10732sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10733
8934764e
BB
10734 ac_cv_func_shl_load=no
10735fi
bf9f3bac 10736
8934764e
BB
10737rm -rf conftest.dSYM
10738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10740fi
10741{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10742$as_echo "$ac_cv_func_shl_load" >&6; }
10743if test "x$ac_cv_func_shl_load" = x""yes; then
10744 lt_cv_dlopen="shl_load"
10745else
10746 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10747$as_echo_n "checking for shl_load in -ldld... " >&6; }
10748if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10749 $as_echo_n "(cached) " >&6
10750else
10751 ac_check_lib_save_LIBS=$LIBS
10752LIBS="-ldld $LIBS"
10753cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
bf9f3bac 10759
8934764e
BB
10760/* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10763#ifdef __cplusplus
10764extern "C"
10765#endif
10766char shl_load ();
10767int
10768main ()
10769{
10770return shl_load ();
10771 ;
10772 return 0;
10773}
10774_ACEOF
10775rm -f conftest.$ac_objext conftest$ac_exeext
10776if { (ac_try="$ac_link"
10777case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
10781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10782$as_echo "$ac_try_echo") >&5
10783 (eval "$ac_link") 2>conftest.er1
10784 ac_status=$?
10785 grep -v '^ *+' conftest.er1 >conftest.err
10786 rm -f conftest.er1
10787 cat conftest.err >&5
10788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest$ac_exeext && {
10793 test "$cross_compiling" = yes ||
10794 $as_test_x conftest$ac_exeext
10795 }; then
10796 ac_cv_lib_dld_shl_load=yes
10797else
10798 $as_echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10800
8934764e
BB
10801 ac_cv_lib_dld_shl_load=no
10802fi
bf9f3bac 10803
8934764e
BB
10804rm -rf conftest.dSYM
10805rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10806 conftest$ac_exeext conftest.$ac_ext
10807LIBS=$ac_check_lib_save_LIBS
10808fi
10809{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10810$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10811if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10812 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10813else
10814 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10815$as_echo_n "checking for dlopen... " >&6; }
10816if test "${ac_cv_func_dlopen+set}" = set; then
10817 $as_echo_n "(cached) " >&6
10818else
10819 cat >conftest.$ac_ext <<_ACEOF
10820/* confdefs.h. */
10821_ACEOF
10822cat confdefs.h >>conftest.$ac_ext
10823cat >>conftest.$ac_ext <<_ACEOF
10824/* end confdefs.h. */
10825/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10827#define dlopen innocuous_dlopen
bf9f3bac 10828
8934764e
BB
10829/* System header to define __stub macros and hopefully few prototypes,
10830 which can conflict with char dlopen (); below.
10831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10832 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10833
8934764e
BB
10834#ifdef __STDC__
10835# include <limits.h>
10836#else
10837# include <assert.h>
10838#endif
bf9f3bac 10839
8934764e 10840#undef dlopen
bf9f3bac 10841
8934764e
BB
10842/* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10845#ifdef __cplusplus
10846extern "C"
10847#endif
10848char dlopen ();
10849/* The GNU C library defines this for functions which it implements
10850 to always fail with ENOSYS. Some functions are actually named
10851 something starting with __ and the normal name is an alias. */
10852#if defined __stub_dlopen || defined __stub___dlopen
10853choke me
10854#endif
bf9f3bac 10855
8934764e
BB
10856int
10857main ()
10858{
10859return dlopen ();
10860 ;
10861 return 0;
10862}
10863_ACEOF
10864rm -f conftest.$ac_objext conftest$ac_exeext
10865if { (ac_try="$ac_link"
10866case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
10870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10871$as_echo "$ac_try_echo") >&5
10872 (eval "$ac_link") 2>conftest.er1
10873 ac_status=$?
10874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
10877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } && {
10879 test -z "$ac_c_werror_flag" ||
10880 test ! -s conftest.err
10881 } && test -s conftest$ac_exeext && {
10882 test "$cross_compiling" = yes ||
10883 $as_test_x conftest$ac_exeext
10884 }; then
10885 ac_cv_func_dlopen=yes
10886else
10887 $as_echo "$as_me: failed program was:" >&5
10888sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10889
8934764e
BB
10890 ac_cv_func_dlopen=no
10891fi
bf9f3bac 10892
8934764e
BB
10893rm -rf conftest.dSYM
10894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10895 conftest$ac_exeext conftest.$ac_ext
10896fi
10897{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10898$as_echo "$ac_cv_func_dlopen" >&6; }
10899if test "x$ac_cv_func_dlopen" = x""yes; then
10900 lt_cv_dlopen="dlopen"
10901else
10902 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10903$as_echo_n "checking for dlopen in -ldl... " >&6; }
10904if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10905 $as_echo_n "(cached) " >&6
10906else
10907 ac_check_lib_save_LIBS=$LIBS
10908LIBS="-ldl $LIBS"
10909cat >conftest.$ac_ext <<_ACEOF
10910/* confdefs.h. */
10911_ACEOF
10912cat confdefs.h >>conftest.$ac_ext
10913cat >>conftest.$ac_ext <<_ACEOF
10914/* end confdefs.h. */
bf9f3bac 10915
8934764e
BB
10916/* Override any GCC internal prototype to avoid an error.
10917 Use char because int might match the return type of a GCC
10918 builtin and then its argument prototype would still apply. */
10919#ifdef __cplusplus
10920extern "C"
10921#endif
10922char dlopen ();
10923int
10924main ()
10925{
10926return dlopen ();
10927 ;
10928 return 0;
10929}
10930_ACEOF
10931rm -f conftest.$ac_objext conftest$ac_exeext
10932if { (ac_try="$ac_link"
10933case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938$as_echo "$ac_try_echo") >&5
10939 (eval "$ac_link") 2>conftest.er1
10940 ac_status=$?
10941 grep -v '^ *+' conftest.er1 >conftest.err
10942 rm -f conftest.er1
10943 cat conftest.err >&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && {
10946 test -z "$ac_c_werror_flag" ||
10947 test ! -s conftest.err
10948 } && test -s conftest$ac_exeext && {
10949 test "$cross_compiling" = yes ||
10950 $as_test_x conftest$ac_exeext
10951 }; then
10952 ac_cv_lib_dl_dlopen=yes
10953else
10954 $as_echo "$as_me: failed program was:" >&5
10955sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10956
8934764e
BB
10957 ac_cv_lib_dl_dlopen=no
10958fi
bf9f3bac 10959
8934764e
BB
10960rm -rf conftest.dSYM
10961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10962 conftest$ac_exeext conftest.$ac_ext
10963LIBS=$ac_check_lib_save_LIBS
10964fi
10965{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10966$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10967if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10969else
10970 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10971$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10972if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10973 $as_echo_n "(cached) " >&6
10974else
10975 ac_check_lib_save_LIBS=$LIBS
10976LIBS="-lsvld $LIBS"
10977cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h. */
bf9f3bac 10983
8934764e
BB
10984/* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10987#ifdef __cplusplus
10988extern "C"
10989#endif
10990char dlopen ();
10991int
10992main ()
10993{
10994return dlopen ();
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999rm -f conftest.$ac_objext conftest$ac_exeext
11000if { (ac_try="$ac_link"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11006$as_echo "$ac_try_echo") >&5
11007 (eval "$ac_link") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_c_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest$ac_exeext && {
11017 test "$cross_compiling" = yes ||
11018 $as_test_x conftest$ac_exeext
11019 }; then
11020 ac_cv_lib_svld_dlopen=yes
11021else
11022 $as_echo "$as_me: failed program was:" >&5
11023sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11024
8934764e
BB
11025 ac_cv_lib_svld_dlopen=no
11026fi
bf9f3bac 11027
8934764e
BB
11028rm -rf conftest.dSYM
11029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030 conftest$ac_exeext conftest.$ac_ext
11031LIBS=$ac_check_lib_save_LIBS
11032fi
11033{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11034$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11035if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11036 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11037else
11038 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11039$as_echo_n "checking for dld_link in -ldld... " >&6; }
11040if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11042else
11043 ac_check_lib_save_LIBS=$LIBS
11044LIBS="-ldld $LIBS"
11045cat >conftest.$ac_ext <<_ACEOF
11046/* confdefs.h. */
11047_ACEOF
11048cat confdefs.h >>conftest.$ac_ext
11049cat >>conftest.$ac_ext <<_ACEOF
11050/* end confdefs.h. */
bf9f3bac 11051
8934764e
BB
11052/* Override any GCC internal prototype to avoid an error.
11053 Use char because int might match the return type of a GCC
11054 builtin and then its argument prototype would still apply. */
11055#ifdef __cplusplus
11056extern "C"
11057#endif
11058char dld_link ();
11059int
11060main ()
11061{
11062return dld_link ();
11063 ;
11064 return 0;
11065}
11066_ACEOF
11067rm -f conftest.$ac_objext conftest$ac_exeext
11068if { (ac_try="$ac_link"
11069case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072esac
11073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11074$as_echo "$ac_try_echo") >&5
11075 (eval "$ac_link") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest$ac_exeext && {
11085 test "$cross_compiling" = yes ||
11086 $as_test_x conftest$ac_exeext
11087 }; then
11088 ac_cv_lib_dld_dld_link=yes
11089else
11090 $as_echo "$as_me: failed program was:" >&5
11091sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11092
8934764e
BB
11093 ac_cv_lib_dld_dld_link=no
11094fi
bf9f3bac 11095
8934764e
BB
11096rm -rf conftest.dSYM
11097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11098 conftest$ac_exeext conftest.$ac_ext
11099LIBS=$ac_check_lib_save_LIBS
11100fi
11101{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11102$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11103if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11105fi
bf9f3bac 11106
bf9f3bac 11107
8934764e 11108fi
bf9f3bac 11109
bf9f3bac 11110
8934764e 11111fi
bf9f3bac 11112
bf9f3bac 11113
8934764e 11114fi
bf9f3bac 11115
bf9f3bac 11116
8934764e 11117fi
bf9f3bac 11118
bf9f3bac 11119
8934764e 11120fi
bf9f3bac 11121
8934764e
BB
11122 ;;
11123 esac
bf9f3bac 11124
8934764e
BB
11125 if test "x$lt_cv_dlopen" != xno; then
11126 enable_dlopen=yes
11127 else
11128 enable_dlopen=no
11129 fi
bf9f3bac 11130
8934764e
BB
11131 case $lt_cv_dlopen in
11132 dlopen)
11133 save_CPPFLAGS="$CPPFLAGS"
11134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
bf9f3bac 11135
8934764e
BB
11136 save_LDFLAGS="$LDFLAGS"
11137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
bf9f3bac 11138
8934764e
BB
11139 save_LIBS="$LIBS"
11140 LIBS="$lt_cv_dlopen_libs $LIBS"
bf9f3bac 11141
8934764e
BB
11142 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11143$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11144if test "${lt_cv_dlopen_self+set}" = set; then
11145 $as_echo_n "(cached) " >&6
11146else
11147 if test "$cross_compiling" = yes; then :
11148 lt_cv_dlopen_self=cross
11149else
11150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11151 lt_status=$lt_dlunknown
11152 cat > conftest.$ac_ext <<_LT_EOF
c2dceb5c 11153#line 11153 "configure"
8934764e 11154#include "confdefs.h"
bf9f3bac 11155
8934764e
BB
11156#if HAVE_DLFCN_H
11157#include <dlfcn.h>
11158#endif
bf9f3bac 11159
8934764e 11160#include <stdio.h>
bf9f3bac 11161
8934764e
BB
11162#ifdef RTLD_GLOBAL
11163# define LT_DLGLOBAL RTLD_GLOBAL
11164#else
11165# ifdef DL_GLOBAL
11166# define LT_DLGLOBAL DL_GLOBAL
11167# else
11168# define LT_DLGLOBAL 0
11169# endif
11170#endif
bf9f3bac 11171
8934764e
BB
11172/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11173 find out it does not work in some platform. */
11174#ifndef LT_DLLAZY_OR_NOW
11175# ifdef RTLD_LAZY
11176# define LT_DLLAZY_OR_NOW RTLD_LAZY
11177# else
11178# ifdef DL_LAZY
11179# define LT_DLLAZY_OR_NOW DL_LAZY
11180# else
11181# ifdef RTLD_NOW
11182# define LT_DLLAZY_OR_NOW RTLD_NOW
11183# else
11184# ifdef DL_NOW
11185# define LT_DLLAZY_OR_NOW DL_NOW
11186# else
11187# define LT_DLLAZY_OR_NOW 0
11188# endif
11189# endif
11190# endif
11191# endif
11192#endif
bf9f3bac 11193
8934764e
BB
11194void fnord() { int i=42;}
11195int main ()
11196{
11197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11198 int status = $lt_dlunknown;
bf9f3bac 11199
8934764e
BB
11200 if (self)
11201 {
11202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11204 /* dlclose (self); */
11205 }
11206 else
11207 puts (dlerror ());
bf9f3bac 11208
8934764e
BB
11209 return status;
11210}
11211_LT_EOF
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>&5
11214 ac_status=$?
11215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11217 (./conftest; exit; ) >&5 2>/dev/null
11218 lt_status=$?
11219 case x$lt_status in
11220 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11221 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11222 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11223 esac
11224 else :
11225 # compilation failed
11226 lt_cv_dlopen_self=no
11227 fi
11228fi
11229rm -fr conftest*
bf9f3bac 11230
bf9f3bac 11231
8934764e
BB
11232fi
11233{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11234$as_echo "$lt_cv_dlopen_self" >&6; }
bf9f3bac 11235
8934764e
BB
11236 if test "x$lt_cv_dlopen_self" = xyes; then
11237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11238 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11239$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11240if test "${lt_cv_dlopen_self_static+set}" = set; then
11241 $as_echo_n "(cached) " >&6
11242else
11243 if test "$cross_compiling" = yes; then :
11244 lt_cv_dlopen_self_static=cross
11245else
11246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11247 lt_status=$lt_dlunknown
11248 cat > conftest.$ac_ext <<_LT_EOF
c2dceb5c 11249#line 11249 "configure"
8934764e 11250#include "confdefs.h"
bf9f3bac 11251
8934764e
BB
11252#if HAVE_DLFCN_H
11253#include <dlfcn.h>
11254#endif
bf9f3bac 11255
8934764e 11256#include <stdio.h>
bf9f3bac 11257
8934764e
BB
11258#ifdef RTLD_GLOBAL
11259# define LT_DLGLOBAL RTLD_GLOBAL
11260#else
11261# ifdef DL_GLOBAL
11262# define LT_DLGLOBAL DL_GLOBAL
11263# else
11264# define LT_DLGLOBAL 0
11265# endif
11266#endif
bf9f3bac 11267
8934764e
BB
11268/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11269 find out it does not work in some platform. */
11270#ifndef LT_DLLAZY_OR_NOW
11271# ifdef RTLD_LAZY
11272# define LT_DLLAZY_OR_NOW RTLD_LAZY
11273# else
11274# ifdef DL_LAZY
11275# define LT_DLLAZY_OR_NOW DL_LAZY
11276# else
11277# ifdef RTLD_NOW
11278# define LT_DLLAZY_OR_NOW RTLD_NOW
11279# else
11280# ifdef DL_NOW
11281# define LT_DLLAZY_OR_NOW DL_NOW
11282# else
11283# define LT_DLLAZY_OR_NOW 0
11284# endif
11285# endif
11286# endif
11287# endif
11288#endif
bf9f3bac 11289
8934764e
BB
11290void fnord() { int i=42;}
11291int main ()
11292{
11293 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11294 int status = $lt_dlunknown;
bf9f3bac 11295
8934764e
BB
11296 if (self)
11297 {
11298 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11299 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11300 /* dlclose (self); */
11301 }
11302 else
11303 puts (dlerror ());
bf9f3bac 11304
8934764e
BB
11305 return status;
11306}
11307_LT_EOF
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>&5
11310 ac_status=$?
11311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11313 (./conftest; exit; ) >&5 2>/dev/null
11314 lt_status=$?
11315 case x$lt_status in
11316 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11317 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11318 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11319 esac
11320 else :
11321 # compilation failed
11322 lt_cv_dlopen_self_static=no
11323 fi
11324fi
11325rm -fr conftest*
bf9f3bac 11326
bf9f3bac 11327
8934764e
BB
11328fi
11329{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11330$as_echo "$lt_cv_dlopen_self_static" >&6; }
11331 fi
bf9f3bac 11332
8934764e
BB
11333 CPPFLAGS="$save_CPPFLAGS"
11334 LDFLAGS="$save_LDFLAGS"
11335 LIBS="$save_LIBS"
11336 ;;
11337 esac
bf9f3bac 11338
8934764e
BB
11339 case $lt_cv_dlopen_self in
11340 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11341 *) enable_dlopen_self=unknown ;;
11342 esac
bf9f3bac 11343
8934764e
BB
11344 case $lt_cv_dlopen_self_static in
11345 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11346 *) enable_dlopen_self_static=unknown ;;
11347 esac
11348fi
bf9f3bac 11349
bf9f3bac 11350
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
8934764e
BB
11366striplib=
11367old_striplib=
11368{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11369$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11370if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11371 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11372 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11373 { $as_echo "$as_me:$LINENO: result: yes" >&5
11374$as_echo "yes" >&6; }
11375else
11376# FIXME - insert some real tests, host_os isn't really good enough
11377 case $host_os in
11378 darwin*)
11379 if test -n "$STRIP" ; then
11380 striplib="$STRIP -x"
11381 old_striplib="$STRIP -S"
11382 { $as_echo "$as_me:$LINENO: result: yes" >&5
11383$as_echo "yes" >&6; }
11384 else
11385 { $as_echo "$as_me:$LINENO: result: no" >&5
11386$as_echo "no" >&6; }
11387 fi
11388 ;;
11389 *)
11390 { $as_echo "$as_me:$LINENO: result: no" >&5
11391$as_echo "no" >&6; }
11392 ;;
11393 esac
11394fi
bf9f3bac 11395
bf9f3bac 11396
bf9f3bac 11397
bf9f3bac 11398
bf9f3bac 11399
bf9f3bac 11400
bf9f3bac 11401
bf9f3bac 11402
bf9f3bac 11403
bf9f3bac 11404
bf9f3bac 11405
bf9f3bac 11406
8934764e
BB
11407 # Report which library types will actually be built
11408 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11409$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11410 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11411$as_echo "$can_build_shared" >&6; }
bf9f3bac 11412
8934764e
BB
11413 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11414$as_echo_n "checking whether to build shared libraries... " >&6; }
11415 test "$can_build_shared" = "no" && enable_shared=no
bf9f3bac 11416
8934764e
BB
11417 # On AIX, shared libraries and static libraries use the same namespace, and
11418 # are all built from PIC.
11419 case $host_os in
11420 aix3*)
11421 test "$enable_shared" = yes && enable_static=no
11422 if test -n "$RANLIB"; then
11423 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11424 postinstall_cmds='$RANLIB $lib'
11425 fi
11426 ;;
bf9f3bac 11427
8934764e
BB
11428 aix[4-9]*)
11429 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11430 test "$enable_shared" = yes && enable_static=no
11431 fi
11432 ;;
11433 esac
11434 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11435$as_echo "$enable_shared" >&6; }
bf9f3bac 11436
8934764e
BB
11437 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11438$as_echo_n "checking whether to build static libraries... " >&6; }
11439 # Make sure either enable_shared or enable_static is yes.
11440 test "$enable_shared" = yes || enable_static=yes
11441 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11442$as_echo "$enable_static" >&6; }
bf9f3bac 11443
bf9f3bac 11444
bf9f3bac 11445
11446
bf9f3bac 11447fi
bf9f3bac 11448ac_ext=c
11449ac_cpp='$CPP $CPPFLAGS'
11450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452ac_compiler_gnu=$ac_cv_c_compiler_gnu
11453
11454CC="$lt_save_CC"
11455
bf9f3bac 11456
bf9f3bac 11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
8934764e 11468 ac_config_commands="$ac_config_commands libtool"
bf9f3bac 11469
11470
11471
11472
8934764e 11473# Only expand once:
bf9f3bac 11474
11475
11476
11477
8934764e
BB
11478 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11479$as_echo_n "checking spl license... " >&6; }
86933a6e 11480 LICENSE=GPL
8934764e
BB
11481 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11482$as_echo "$LICENSE" >&6; }
86933a6e
BB
11483 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11484
11485
11486
287b2fb1
BB
11487
11488 RPM=rpm
11489 RPMBUILD=rpmbuild
11490
11491 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11492$as_echo_n "checking whether $RPM is available... " >&6; }
11493 if tmp=$($RPM --version 2>/dev/null); then
11494
11495 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11496 HAVE_RPM=yes
11497 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11498$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11499
11500else
11501
11502 HAVE_RPM=no
11503 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11504$as_echo "$HAVE_RPM" >&6; }
11505
11506fi
11507
11508
11509 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11510$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11511 if tmp=$($RPMBUILD --version 2>/dev/null); then
11512
11513 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11514 HAVE_RPMBUILD=yes
11515 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11516$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11517
11518else
11519
11520 HAVE_RPMBUILD=no
11521 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11522$as_echo "$HAVE_RPMBUILD" >&6; }
11523
11524fi
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536 DPKG=dpkg
11537 DPKGBUILD=dpkg-buildpackage
11538
11539 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11540$as_echo_n "checking whether $DPKG is available... " >&6; }
11541 if tmp=$($DPKG --version 2>/dev/null); then
11542
11543 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11544 HAVE_DPKG=yes
11545 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11546$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11547
11548else
11549
11550 HAVE_DPKG=no
11551 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11552$as_echo "$HAVE_DPKG" >&6; }
11553
11554fi
11555
11556
11557 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11558$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11559 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11560
11561 DPKGBUILD_VERSION=$(echo $tmp | \
11562 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11563 HAVE_DPKGBUILD=yes
11564 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11565$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11566
11567else
11568
11569 HAVE_DPKGBUILD=no
11570 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11571$as_echo "$HAVE_DPKGBUILD" >&6; }
11572
11573fi
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585 ALIEN=alien
11586
11587 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11588$as_echo_n "checking whether $ALIEN is available... " >&6; }
11589 if tmp=$($ALIEN --version 2>/dev/null); then
11590
11591 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11592 HAVE_ALIEN=yes
11593 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11594$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11595
11596else
11597
11598 HAVE_ALIEN=no
11599 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11600$as_echo "$HAVE_ALIEN" >&6; }
11601
11602fi
11603
11604
11605
11606
11607
11608
11609
c2dceb5c
PS
11610 PACMAN=pacman
11611 MAKEPKG=makepkg
11612
11613 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11614$as_echo_n "checking whether $PACMAN is available... " >&6; }
11615 tmp=$($PACMAN --version 2>/dev/null)
11616 if test -n "$tmp"; then
11617
11618 PACMAN_VERSION=$(echo $tmp |
11619 $AWK '/Pacman/ { print $3 }' |
11620 $SED 's/^v//')
11621 HAVE_PACMAN=yes
11622 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11623$as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11624
11625else
11626
11627 HAVE_PACMAN=no
11628 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11629$as_echo "$HAVE_PACMAN" >&6; }
11630
11631fi
11632
11633
11634 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11635$as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11636 tmp=$($MAKEPKG --version 2>/dev/null)
11637 if test -n "$tmp"; then
11638
11639 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11640 HAVE_MAKEPKG=yes
11641 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11642$as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11643
11644else
11645
11646 HAVE_MAKEPKG=no
11647 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11648$as_echo "$HAVE_MAKEPKG" >&6; }
11649
11650fi
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
73fc084e
BB
11662 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11663$as_echo_n "checking linux distribution... " >&6; }
11664 if test -f /etc/redhat-release ; then
11665 VENDOR=redhat ;
11666 elif test -f /etc/fedora-release ; then
11667 VENDOR=fedora ;
11668 elif test -f /etc/lsb-release ; then
11669 VENDOR=ubuntu ;
11670 elif test -f /etc/debian_version ; then
11671 VENDOR=debian ;
11672 elif test -f /etc/SuSE-release ; then
11673 VENDOR=sles ;
11674 elif test -f /etc/slackware-version ; then
11675 VENDOR=slackware ;
11676 elif test -f /etc/gentoo-release ; then
11677 VENDOR=gentoo ;
c2dceb5c
PS
11678 elif test -f /etc/arch-release ; then
11679 VENDOR=arch ;
73fc084e
BB
11680 else
11681 VENDOR= ;
11682 fi
11683 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11684$as_echo "$VENDOR" >&6; }
11685
287b2fb1
BB
11686
11687 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11688$as_echo_n "checking default package type... " >&6; }
11689 case "$VENDOR" in
11690 fedora) DEFAULT_PACKAGE=rpm ;;
11691 redhat) DEFAULT_PACKAGE=rpm ;;
11692 sles) DEFAULT_PACKAGE=rpm ;;
11693 ubuntu) DEFAULT_PACKAGE=deb ;;
11694 debian) DEFAULT_PACKAGE=deb ;;
11695 slackware) DEFAULT_PACKAGE=tgz ;;
c2dceb5c 11696 arch) DEFAULT_PACKAGE=arch;;
287b2fb1
BB
11697 *) DEFAULT_PACKAGE=rpm ;;
11698 esac
11699
11700 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11701$as_echo "$DEFAULT_PACKAGE" >&6; }
11702
11703
11704
11705
86933a6e
BB
11706 SPL_CONFIG=all
11707
8934764e 11708# Check whether --with-config was given.
86933a6e 11709if test "${with_config+set}" = set; then
8934764e
BB
11710 withval=$with_config; SPL_CONFIG="$withval"
11711fi
86933a6e 11712
8934764e
BB
11713
11714 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11715$as_echo_n "checking spl config... " >&6; }
11716 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11717$as_echo "$SPL_CONFIG" >&6; };
86933a6e
BB
11718
11719
11720 case "$SPL_CONFIG" in
11721 kernel)
11722
11723
8934764e 11724# Check whether --with-linux was given.
86933a6e 11725if test "${with_linux+set}" = set; then
8934764e
BB
11726 withval=$with_linux; kernelsrc="$withval"
11727fi
86933a6e
BB
11728
11729
8934764e
BB
11730
11731# Check whether --with-linux-obj was given.
86933a6e 11732if test "${with_linux_obj+set}" = set; then
8934764e
BB
11733 withval=$with_linux_obj; kernelbuild="$withval"
11734fi
86933a6e 11735
8934764e
BB
11736
11737 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11738$as_echo_n "checking kernel source directory... " >&6; }
86933a6e 11739 if test -z "$kernelsrc"; then
22ccfaa8
BB
11740 if test -e "/lib/modules/$(uname -r)/source"; then
11741 headersdir="/lib/modules/$(uname -r)/source"
11742 sourcelink=$(readlink -f "$headersdir")
11743 elif test -e "/lib/modules/$(uname -r)/build"; then
11744 headersdir="/lib/modules/$(uname -r)/build"
534c4e38
BM
11745 sourcelink=$(readlink -f "$headersdir")
11746 else
11747 sourcelink=$(ls -1d /usr/src/kernels/* \
11748 /usr/src/linux-* \
11749 2>/dev/null | grep -v obj | tail -1)
11750 fi
86933a6e 11751
8fd4e3af 11752 if test -n "$sourcelink" && test -e ${sourcelink}; then
86933a6e
BB
11753 kernelsrc=`readlink -f ${sourcelink}`
11754 else
8934764e
BB
11755 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11756$as_echo "Not found" >&6; }
11757 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
11758 *** Please make sure the kernel devel package for your distribution
11759 *** is installed then try again. If that fails you can specify the
11760 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 11761$as_echo "$as_me: error:
8fd4e3af
BB
11762 *** Please make sure the kernel devel package for your distribution
11763 *** is installed then try again. If that fails you can specify the
11764 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
86933a6e
BB
11765 { (exit 1); exit 1; }; }
11766 fi
11767 else
11768 if test "$kernelsrc" = "NONE"; then
11769 kernsrcver=NONE
11770 fi
11771 fi
11772
8934764e
BB
11773 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11774$as_echo "$kernelsrc" >&6; }
11775 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11776$as_echo_n "checking kernel build directory... " >&6; }
86933a6e 11777 if test -z "$kernelbuild"; then
22ccfaa8
BB
11778 if test -e "/lib/modules/$(uname -r)/build"; then
11779 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11780 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
e2d28a37
BB
11781 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11782 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11783 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11784 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11785 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
86933a6e
BB
11786 else
11787 kernelbuild=${kernelsrc}
11788 fi
11789 fi
8934764e
BB
11790 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11791$as_echo "$kernelbuild" >&6; }
86933a6e 11792
8934764e
BB
11793 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11794$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
11795 utsrelease1=$kernelbuild/include/linux/version.h
11796 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11797 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11798 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11799 utsrelease=linux/version.h
11800 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11801 utsrelease=linux/utsrelease.h
11802 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11803 utsrelease=generated/utsrelease.h
11804 fi
86933a6e 11805
fd921c2e
BB
11806 if test "$utsrelease"; then
11807 kernsrcver=`(echo "#include <$utsrelease>";
86933a6e
BB
11808 echo "kernsrcver=UTS_RELEASE") |
11809 cpp -I $kernelbuild/include |
11810 grep "^kernsrcver=" | cut -d \" -f 2`
86933a6e 11811
fd921c2e
BB
11812 if test -z "$kernsrcver"; then
11813 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11814$as_echo "Not found" >&6; }
11815 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11816$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11817 { (exit 1); exit 1; }; }
11818 fi
11819 else
8934764e
BB
11820 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11821$as_echo "Not found" >&6; }
fd921c2e
BB
11822 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11823$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
86933a6e
BB
11824 { (exit 1); exit 1; }; }
11825 fi
11826
8934764e
BB
11827 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11828$as_echo "$kernsrcver" >&6; }
86933a6e
BB
11829
11830 LINUX=${kernelsrc}
11831 LINUX_OBJ=${kernelbuild}
11832 LINUX_VERSION=${kernsrcver}
11833
11834
11835
11836
11837
11838
bb339d06 11839 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
11840 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11841$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
11842 if test -f "$modpost"; then
11843 if grep -q Modules.symvers $modpost; then
11844 LINUX_SYMBOLS=Modules.symvers
11845 else
11846 LINUX_SYMBOLS=Module.symvers
11847 fi
912fd84d
BB
11848
11849 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11850 { { $as_echo "$as_me:$LINENO: error:
11851 *** Please make sure the kernel devel package for your distribution
11852 *** is installed. If your building with a custom kernel make sure the
11853 *** kernel is configured, built, and the '--with-linux=PATH' configure
11854 *** option refers to the location of the kernel source." >&5
11855$as_echo "$as_me: error:
11856 *** Please make sure the kernel devel package for your distribution
11857 *** is installed. If your building with a custom kernel make sure the
11858 *** kernel is configured, built, and the '--with-linux=PATH' configure
11859 *** option refers to the location of the kernel source." >&2;}
11860 { (exit 1); exit 1; }; }
11861 fi
86933a6e 11862 else
bb339d06 11863 LINUX_SYMBOLS=NONE
86933a6e 11864 fi
8934764e
BB
11865 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11866$as_echo "$LINUX_SYMBOLS" >&6; }
86933a6e
BB
11867
11868
11869
11870
7731d46b
BB
11871 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11872$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11873
11874
11875cat confdefs.h - <<_ACEOF >conftest.c
11876/* confdefs.h. */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h. */
11881
11882
c064bdee 11883 #include <linux/module.h>
7731d46b
BB
11884
11885int
11886main (void)
11887{
11888
11889 #ifndef CONFIG_PREEMPT
11890 #error CONFIG_PREEMPT not #defined
11891 #endif
11892
11893 ;
11894 return 0;
11895}
11896
11897_ACEOF
11898
11899
11900 rm -Rf build && mkdir -p build
11901 echo "obj-m := conftest.o" >build/Makefile
11902 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11905 ac_status=$?
11906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913
11914 { $as_echo "$as_me:$LINENO: result: yes" >&5
11915$as_echo "yes" >&6; }
11916 { { $as_echo "$as_me:$LINENO: error:
11917 *** Kernel built with CONFIG_PREEMPT which is not supported.
11918 ** You must rebuild your kernel without this option." >&5
11919$as_echo "$as_me: error:
11920 *** Kernel built with CONFIG_PREEMPT which is not supported.
11921 ** You must rebuild your kernel without this option." >&2;}
11922 { (exit 1); exit 1; }; }
11923
11924else
11925 $as_echo "$as_me: failed program was:" >&5
11926sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 { $as_echo "$as_me:$LINENO: result: no" >&5
11929$as_echo "no" >&6; }
11930
11931
11932
11933
11934fi
11935
11936 rm -Rf build
11937
11938
11939
11940
11941
86933a6e
BB
11942 if test "${LINUX_OBJ}" != "${LINUX}"; then
11943 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11944 fi
11945
11946
a7958f7e 11947 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
86933a6e
BB
11948
11949
11950
c950d148
BB
11951 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11952$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 11953 # Check whether --enable-debug was given.
86933a6e 11954if test "${enable_debug+set}" = set; then
8934764e 11955 enableval=$enable_debug;
055ffd98
BB
11956else
11957 enable_debug=no
8934764e
BB
11958fi
11959
055ffd98
BB
11960
11961 if test "x$enable_debug" = xyes; then
c950d148 11962
c950d148
BB
11963 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11964 DEBUG_CFLAGS="-DDEBUG -Werror"
11965
055ffd98 11966else
c950d148 11967
c950d148
BB
11968 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11969 DEBUG_CFLAGS="-DNDEBUG"
11970
055ffd98
BB
11971fi
11972
11973
c950d148 11974
8934764e
BB
11975 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11976$as_echo "$enable_debug" >&6; }
86933a6e
BB
11977
11978
8934764e 11979 # Check whether --enable-debug-kmem was given.
86933a6e 11980if test "${enable_debug_kmem+set}" = set; then
8934764e 11981 enableval=$enable_debug_kmem;
055ffd98
BB
11982else
11983 enable_debug_kmem=yes
8934764e
BB
11984fi
11985
055ffd98
BB
11986
11987 if test "x$enable_debug_kmem" = xyes; then
86933a6e
BB
11988
11989cat >>confdefs.h <<\_ACEOF
11990#define DEBUG_KMEM 1
11991_ACEOF
11992
11993 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 11994fi
86933a6e 11995
86933a6e 11996
8934764e
BB
11997 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11998$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11999 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
12000$as_echo "$enable_debug_kmem" >&6; }
86933a6e
BB
12001
12002
8934764e 12003 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 12004if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 12005 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
12006else
12007 enable_debug_kmem_tracking=no
8934764e
BB
12008fi
12009
055ffd98
BB
12010
12011 if test "x$enable_debug_kmem_tracking" = xyes; then
86933a6e
BB
12012
12013cat >>confdefs.h <<\_ACEOF
055ffd98 12014#define DEBUG_KMEM_TRACKING 1
86933a6e
BB
12015_ACEOF
12016
055ffd98
BB
12017 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12018fi
12019
12020
8934764e
BB
12021 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
12022$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12023 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
12024$as_echo "$enable_debug_kmem_tracking" >&6; }
86933a6e 12025
5e9b5d83 12026
8934764e 12027 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 12028if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 12029 enableval=$enable_atomic_spinlocks;
5e9b5d83 12030else
d04c8a56 12031 enable_atomic_spinlocks=check
8934764e
BB
12032fi
12033
5e9b5d83 12034
86933a6e
BB
12035
12036
dbe561d8 12037cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043
12044
d04c8a56 12045 #include <asm/atomic.h>
86933a6e
BB
12046
12047int
12048main (void)
12049{
12050
03318641 12051 atomic64_t *ptr __attribute__ ((unused));
86933a6e
BB
12052
12053 ;
12054 return 0;
12055}
12056
12057_ACEOF
12058
12059
12060 rm -Rf build && mkdir -p build
12061 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12062 if { 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
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
8934764e 12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12067 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
8934764e 12071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12072 (exit $ac_status); }; }; then
12073
d04c8a56 12074 have_atomic64_t=yes
86933a6e
BB
12075
12076cat >>confdefs.h <<\_ACEOF
d04c8a56 12077#define HAVE_ATOMIC64_T 1
86933a6e
BB
12078_ACEOF
12079
12080
12081else
8934764e 12082 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12083sed 's/^/| /' conftest.$ac_ext >&5
12084
d04c8a56 12085 have_atomic64_t=no
86933a6e
BB
12086
12087
12088
12089fi
12090
12091 rm -Rf build
12092
12093
12094
d04c8a56
BB
12095 if test "x$enable_atomic_spinlocks" = xcheck; then
12096
12097 if test "x$have_atomic64_t" = xyes; then
12098
12099 enable_atomic_spinlocks=no
12100
12101else
12102
12103 enable_atomic_spinlocks=yes
12104
12105fi
12106
12107
12108fi
12109
12110
12111 if test "x$enable_atomic_spinlocks" = xyes; then
12112
12113
12114cat >>confdefs.h <<\_ACEOF
12115#define ATOMIC_SPINLOCK 1
12116_ACEOF
12117
12118
12119else
12120
12121 if test "x$have_atomic64_t" = xno; then
12122
8934764e
BB
12123 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12125{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 12126See \`config.log' for more details." >&5
8934764e 12127$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 12128See \`config.log' for more details." >&2;}
8934764e 12129 { (exit 1); exit 1; }; }; }
d04c8a56
BB
12130
12131fi
12132
12133
12134fi
12135
12136
8934764e
BB
12137 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12138$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12139 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12140$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 12141
8934764e
BB
12142 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12143$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12144 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12145$as_echo "$have_atomic64_t" >&6; }
d04c8a56 12146
8934764e
BB
12147 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12148$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
86933a6e
BB
12149
12150
dbe561d8 12151cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
12157
12158
12159 #include <asm/atomic.h>
5ec44a37 12160 #include <asm/system.h>
86933a6e
BB
12161
12162int
12163main (void)
12164{
12165
d04c8a56 12166 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
86933a6e
BB
12167
12168 ;
12169 return 0;
12170}
12171
12172_ACEOF
12173
12174
12175 rm -Rf build && mkdir -p build
12176 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12177 if { 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
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
8934764e 12181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12182 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12185 ac_status=$?
8934764e 12186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12187 (exit $ac_status); }; }; then
12188
8934764e
BB
12189 { $as_echo "$as_me:$LINENO: result: yes" >&5
12190$as_echo "yes" >&6; }
86933a6e
BB
12191
12192cat >>confdefs.h <<\_ACEOF
d04c8a56 12193#define HAVE_ATOMIC64_CMPXCHG 1
86933a6e
BB
12194_ACEOF
12195
12196
12197else
8934764e 12198 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
8934764e
BB
12201 { $as_echo "$as_me:$LINENO: result: no" >&5
12202$as_echo "no" >&6; }
86933a6e
BB
12203
12204
12205
302b88e6
BB
12206fi
12207
12208 rm -Rf build
12209
12210
12211
8934764e
BB
12212 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12213$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
12214
12215
dbe561d8 12216cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
12217/* confdefs.h. */
12218_ACEOF
12219cat confdefs.h >>conftest.$ac_ext
12220cat >>conftest.$ac_ext <<_ACEOF
12221/* end confdefs.h. */
12222
12223
12224 #include <asm/atomic.h>
12225
12226int
12227main (void)
12228{
12229
d04c8a56 12230 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
12231
12232 ;
12233 return 0;
12234}
12235
12236_ACEOF
12237
12238
12239 rm -Rf build && mkdir -p build
12240 echo "obj-m := conftest.o" >build/Makefile
12241 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
8934764e 12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12246 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12248 (eval $ac_try) 2>&5
12249 ac_status=$?
8934764e 12250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12251 (exit $ac_status); }; }; then
12252
8934764e
BB
12253 { $as_echo "$as_me:$LINENO: result: yes" >&5
12254$as_echo "yes" >&6; }
302b88e6
BB
12255
12256cat >>confdefs.h <<\_ACEOF
d04c8a56 12257#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
12258_ACEOF
12259
12260
12261else
8934764e 12262 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
12263sed 's/^/| /' conftest.$ac_ext >&5
12264
8934764e
BB
12265 { $as_echo "$as_me:$LINENO: result: no" >&5
12266$as_echo "no" >&6; }
302b88e6
BB
12267
12268
12269
12270fi
12271
12272 rm -Rf build
12273
12274
12275
8934764e
BB
12276 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12277$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
12278
12279
dbe561d8 12280cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286
12287
d04c8a56 12288 #include <linux/types.h>
302b88e6
BB
12289
12290int
12291main (void)
12292{
12293
03318641 12294 uintptr_t *ptr __attribute__ ((unused));
302b88e6
BB
12295
12296 ;
12297 return 0;
12298}
12299
12300_ACEOF
12301
12302
12303 rm -Rf build && mkdir -p build
12304 echo "obj-m := conftest.o" >build/Makefile
12305 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
8934764e 12309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12310 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12313 ac_status=$?
8934764e 12314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12315 (exit $ac_status); }; }; then
12316
8934764e
BB
12317 { $as_echo "$as_me:$LINENO: result: yes" >&5
12318$as_echo "yes" >&6; }
302b88e6
BB
12319
12320cat >>confdefs.h <<\_ACEOF
d04c8a56 12321#define HAVE_UINTPTR_T 1
302b88e6
BB
12322_ACEOF
12323
12324
12325else
8934764e 12326 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
12327sed 's/^/| /' conftest.$ac_ext >&5
12328
8934764e
BB
12329 { $as_echo "$as_me:$LINENO: result: no" >&5
12330$as_echo "no" >&6; }
302b88e6
BB
12331
12332
12333
86933a6e
BB
12334fi
12335
12336 rm -Rf build
12337
12338
12339
8934764e
BB
12340 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12341$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
86933a6e
BB
12342
12343
dbe561d8 12344cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12345/* confdefs.h. */
12346_ACEOF
12347cat confdefs.h >>conftest.$ac_ext
12348cat >>conftest.$ac_ext <<_ACEOF
12349/* end confdefs.h. */
12350
12351
12352 #include <linux/workqueue.h>
12353
12354int
12355main (void)
12356{
12357
03318641 12358 struct work_struct work __attribute__ ((unused));
86933a6e
BB
12359 INIT_WORK(&work, NULL, NULL);
12360
12361 ;
12362 return 0;
12363}
12364
12365_ACEOF
12366
12367
12368 rm -Rf build && mkdir -p build
12369 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12370 if { 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
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12373 ac_status=$?
8934764e 12374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12375 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
8934764e 12379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12380 (exit $ac_status); }; }; then
12381
8934764e
BB
12382 { $as_echo "$as_me:$LINENO: result: yes" >&5
12383$as_echo "yes" >&6; }
86933a6e
BB
12384
12385cat >>confdefs.h <<\_ACEOF
12386#define HAVE_3ARGS_INIT_WORK 1
12387_ACEOF
12388
12389
12390else
8934764e 12391 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
8934764e
BB
12394 { $as_echo "$as_me:$LINENO: result: no" >&5
12395$as_echo "no" >&6; }
86933a6e
BB
12396
12397
12398
12399fi
12400
12401 rm -Rf build
12402
12403
12404
8934764e
BB
12405 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12406$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
86933a6e
BB
12407
12408
dbe561d8 12409cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12410/* confdefs.h. */
12411_ACEOF
12412cat confdefs.h >>conftest.$ac_ext
12413cat >>conftest.$ac_ext <<_ACEOF
12414/* end confdefs.h. */
12415
12416
12417 #include <linux/sysctl.h>
12418
12419int
12420main (void)
12421{
12422
03318641 12423 (void) register_sysctl_table(NULL, 0);
86933a6e
BB
12424
12425 ;
12426 return 0;
12427}
12428
12429_ACEOF
12430
12431
12432 rm -Rf build && mkdir -p build
12433 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12434 if { 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
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
8934764e 12438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12439 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12442 ac_status=$?
8934764e 12443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12444 (exit $ac_status); }; }; then
12445
8934764e
BB
12446 { $as_echo "$as_me:$LINENO: result: yes" >&5
12447$as_echo "yes" >&6; }
86933a6e
BB
12448
12449cat >>confdefs.h <<\_ACEOF
12450#define HAVE_2ARGS_REGISTER_SYSCTL 1
12451_ACEOF
12452
12453
12454else
8934764e 12455 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12456sed 's/^/| /' conftest.$ac_ext >&5
12457
8934764e
BB
12458 { $as_echo "$as_me:$LINENO: result: no" >&5
12459$as_echo "no" >&6; }
86933a6e
BB
12460
12461
12462
12463fi
12464
12465 rm -Rf build
12466
12467
12468
12469
8934764e
BB
12470 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12471$as_echo_n "checking whether set_shrinker() available... " >&6; }
86933a6e
BB
12472
12473
dbe561d8 12474cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12475/* confdefs.h. */
12476_ACEOF
12477cat confdefs.h >>conftest.$ac_ext
12478cat >>conftest.$ac_ext <<_ACEOF
12479/* end confdefs.h. */
12480
12481
12482 #include <linux/mm.h>
12483
12484int
12485main (void)
12486{
12487
12488 return set_shrinker(DEFAULT_SEEKS, NULL);
12489
12490 ;
12491 return 0;
12492}
12493
12494_ACEOF
12495
12496
12497 rm -Rf build && mkdir -p build
12498 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12499 if { 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
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
8934764e 12503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12504 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
8934764e 12508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12509 (exit $ac_status); }; }; then
12510
8934764e
BB
12511 { $as_echo "$as_me:$LINENO: result: yes" >&5
12512$as_echo "yes" >&6; }
86933a6e
BB
12513
12514cat >>confdefs.h <<\_ACEOF
12515#define HAVE_SET_SHRINKER 1
12516_ACEOF
12517
12518
12519else
8934764e 12520 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12521sed 's/^/| /' conftest.$ac_ext >&5
12522
8934764e
BB
12523 { $as_echo "$as_me:$LINENO: result: no" >&5
12524$as_echo "no" >&6; }
86933a6e
BB
12525
12526
12527
12528fi
12529
12530 rm -Rf build
12531
12532
12533
23aa63cb
BB
12534 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12535$as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12536 tmp_flags="$EXTRA_KCFLAGS"
12537 EXTRA_KCFLAGS="-Werror"
12538
12539
12540cat confdefs.h - <<_ACEOF >conftest.c
12541/* confdefs.h. */
12542_ACEOF
12543cat confdefs.h >>conftest.$ac_ext
12544cat >>conftest.$ac_ext <<_ACEOF
12545/* end confdefs.h. */
12546
12547
12548 #include <linux/mm.h>
12549
12550 int shrinker_cb(struct shrinker *, int, unsigned int);
12551
12552int
12553main (void)
12554{
12555
12556 struct shrinker cache_shrinker = {
12557 .shrink = shrinker_cb,
12558 .seeks = DEFAULT_SEEKS,
12559 };
12560 register_shrinker(&cache_shrinker);
12561
12562 ;
12563 return 0;
12564}
12565
12566_ACEOF
12567
12568
12569 rm -Rf build && mkdir -p build
12570 echo "obj-m := conftest.o" >build/Makefile
12571 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582
12583 { $as_echo "$as_me:$LINENO: result: yes" >&5
12584$as_echo "yes" >&6; }
12585
12586cat >>confdefs.h <<\_ACEOF
12587#define HAVE_3ARGS_SHRINKER_CALLBACK 1
12588_ACEOF
12589
12590
12591else
12592 $as_echo "$as_me: failed program was:" >&5
12593sed 's/^/| /' conftest.$ac_ext >&5
12594
12595 { $as_echo "$as_me:$LINENO: result: no" >&5
12596$as_echo "no" >&6; }
12597
12598
12599
12600fi
12601
12602 rm -Rf build
12603
12604
12605 EXTRA_KCFLAGS="$tmp_flags"
12606
8934764e
BB
12607 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12608$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
86933a6e
BB
12609
12610
dbe561d8 12611cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
12617
12618
12619 #include <linux/namei.h>
12620
12621int
12622main (void)
12623{
12624
03318641 12625 struct nameidata nd __attribute__ ((unused));
86933a6e
BB
12626
12627 nd.path.mnt = NULL;
12628 nd.path.dentry = NULL;
12629
12630 ;
12631 return 0;
12632}
12633
12634_ACEOF
12635
12636
12637 rm -Rf build && mkdir -p build
12638 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12639 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
8934764e 12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
8934764e 12648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12649 (exit $ac_status); }; }; then
12650
8934764e
BB
12651 { $as_echo "$as_me:$LINENO: result: yes" >&5
12652$as_echo "yes" >&6; }
86933a6e
BB
12653
12654cat >>confdefs.h <<\_ACEOF
12655#define HAVE_PATH_IN_NAMEIDATA 1
12656_ACEOF
12657
12658
12659else
8934764e 12660 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
8934764e
BB
12663 { $as_echo "$as_me:$LINENO: result: no" >&5
12664$as_echo "no" >&6; }
86933a6e
BB
12665
12666
12667
12668fi
12669
12670 rm -Rf build
12671
12672
12673
12674
8934764e
BB
12675 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12676$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
86933a6e
BB
12677 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12678 $LINUX_OBJ/Module*.symvers 2>/dev/null
12679 rc=$?
12680 if test $rc -ne 0; then
12681 export=0
12682 for file in kernel/sched.c; do
12683 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12684 "$LINUX_OBJ/$file" 2>/dev/null
12685 rc=$?
12686 if test $rc -eq 0; then
12687 export=1
12688 break;
12689 fi
12690 done
12691 if test $export -eq 0; then
8934764e
BB
12692 { $as_echo "$as_me:$LINENO: result: no" >&5
12693$as_echo "no" >&6; }
86933a6e
BB
12694
12695 else
8934764e
BB
12696 { $as_echo "$as_me:$LINENO: result: yes" >&5
12697$as_echo "yes" >&6; }
86933a6e
BB
12698
12699cat >>confdefs.h <<\_ACEOF
12700#define HAVE_TASK_CURR 1
12701_ACEOF
12702
12703 fi
12704 else
8934764e
BB
12705 { $as_echo "$as_me:$LINENO: result: yes" >&5
12706$as_echo "yes" >&6; }
86933a6e
BB
12707
12708cat >>confdefs.h <<\_ACEOF
12709#define HAVE_TASK_CURR 1
12710_ACEOF
12711
12712 fi
12713
12714
8934764e
BB
12715 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12716$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
86933a6e
BB
12717
12718
dbe561d8 12719cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12720/* confdefs.h. */
12721_ACEOF
12722cat confdefs.h >>conftest.$ac_ext
12723cat >>conftest.$ac_ext <<_ACEOF
12724/* end confdefs.h. */
12725
12726
12727 #include <linux/sysctl.h>
12728
12729int
12730main (void)
12731{
12732
12733 #ifndef CTL_UNNUMBERED
12734 #error CTL_UNNUMBERED undefined
12735 #endif
12736
12737 ;
12738 return 0;
12739}
12740
12741_ACEOF
12742
12743
12744 rm -Rf build && mkdir -p build
12745 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12746 if { 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
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
8934764e 12750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12751 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
8934764e 12755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12756 (exit $ac_status); }; }; then
12757
8934764e
BB
12758 { $as_echo "$as_me:$LINENO: result: yes" >&5
12759$as_echo "yes" >&6; }
86933a6e
BB
12760
12761cat >>confdefs.h <<\_ACEOF
12762#define HAVE_CTL_UNNUMBERED 1
12763_ACEOF
12764
12765
12766else
8934764e 12767 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12768sed 's/^/| /' conftest.$ac_ext >&5
12769
8934764e
BB
12770 { $as_echo "$as_me:$LINENO: result: no" >&5
12771$as_echo "no" >&6; }
86933a6e
BB
12772
12773
12774
79a3bf13
BB
12775fi
12776
12777 rm -Rf build
12778
12779
12780
12781
12782 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12783$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12784
12785
dbe561d8 12786cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
12787/* confdefs.h. */
12788_ACEOF
12789cat confdefs.h >>conftest.$ac_ext
12790cat >>conftest.$ac_ext <<_ACEOF
12791/* end confdefs.h. */
12792
12793
12794 #include <linux/sysctl.h>
12795
12796int
12797main (void)
12798{
12799
03318641 12800 struct ctl_table ctl __attribute__ ((unused));
79a3bf13
BB
12801 ctl.ctl_name = 0;
12802
12803 ;
12804 return 0;
12805}
12806
12807_ACEOF
12808
12809
12810 rm -Rf build && mkdir -p build
12811 echo "obj-m := conftest.o" >build/Makefile
12812 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823
12824 { $as_echo "$as_me:$LINENO: result: yes" >&5
12825$as_echo "yes" >&6; }
12826
12827cat >>confdefs.h <<\_ACEOF
12828#define HAVE_CTL_NAME 1
12829_ACEOF
12830
12831
12832else
12833 $as_echo "$as_me: failed program was:" >&5
12834sed 's/^/| /' conftest.$ac_ext >&5
12835
12836 { $as_echo "$as_me:$LINENO: result: no" >&5
12837$as_echo "no" >&6; }
12838
12839
12840
86933a6e
BB
12841fi
12842
12843 rm -Rf build
12844
12845
12846
8934764e
BB
12847 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12848$as_echo_n "checking whether fls64() is available... " >&6; }
86933a6e
BB
12849
12850
dbe561d8 12851cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12852/* confdefs.h. */
12853_ACEOF
12854cat confdefs.h >>conftest.$ac_ext
12855cat >>conftest.$ac_ext <<_ACEOF
12856/* end confdefs.h. */
12857
12858
12859 #include <linux/bitops.h>
12860
12861int
12862main (void)
12863{
12864
12865 return fls64(0);
12866
12867 ;
12868 return 0;
12869}
12870
12871_ACEOF
12872
12873
12874 rm -Rf build && mkdir -p build
12875 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12876 if { 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
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
8934764e 12880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12881 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12884 ac_status=$?
8934764e 12885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12886 (exit $ac_status); }; }; then
12887
8934764e
BB
12888 { $as_echo "$as_me:$LINENO: result: yes" >&5
12889$as_echo "yes" >&6; }
86933a6e
BB
12890
12891cat >>confdefs.h <<\_ACEOF
12892#define HAVE_FLS64 1
12893_ACEOF
12894
12895
12896else
8934764e 12897 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12898sed 's/^/| /' conftest.$ac_ext >&5
12899
8934764e
BB
12900 { $as_echo "$as_me:$LINENO: result: no" >&5
12901$as_echo "no" >&6; }
86933a6e
BB
12902
12903
12904
12905fi
12906
12907 rm -Rf build
12908
12909
12910
12911
8934764e
BB
12912 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12913$as_echo_n "checking whether symbol device_create is exported... " >&6; }
86933a6e
BB
12914 grep -q -E '[[:space:]]device_create[[:space:]]' \
12915 $LINUX_OBJ/Module*.symvers 2>/dev/null
12916 rc=$?
12917 if test $rc -ne 0; then
12918 export=0
12919 for file in drivers/base/core.c; do
12920 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12921 "$LINUX_OBJ/$file" 2>/dev/null
12922 rc=$?
12923 if test $rc -eq 0; then
12924 export=1
12925 break;
12926 fi
12927 done
12928 if test $export -eq 0; then
8934764e
BB
12929 { $as_echo "$as_me:$LINENO: result: no" >&5
12930$as_echo "no" >&6; }
86933a6e
BB
12931
12932 else
8934764e
BB
12933 { $as_echo "$as_me:$LINENO: result: yes" >&5
12934$as_echo "yes" >&6; }
86933a6e
BB
12935
12936cat >>confdefs.h <<\_ACEOF
12937#define HAVE_DEVICE_CREATE 1
12938_ACEOF
12939
12940 fi
12941 else
8934764e
BB
12942 { $as_echo "$as_me:$LINENO: result: yes" >&5
12943$as_echo "yes" >&6; }
86933a6e
BB
12944
12945cat >>confdefs.h <<\_ACEOF
12946#define HAVE_DEVICE_CREATE 1
12947_ACEOF
12948
12949 fi
12950
12951
12952
8934764e
BB
12953 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12954$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
86933a6e
BB
12955 tmp_flags="$EXTRA_KCFLAGS"
12956 EXTRA_KCFLAGS="-Werror"
12957
12958
dbe561d8 12959cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12960/* confdefs.h. */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
12964/* end confdefs.h. */
12965
12966
12967 #include <linux/device.h>
12968
12969int
12970main (void)
12971{
12972
12973 device_create(NULL, NULL, 0, NULL, "%d", 1);
12974
12975 ;
12976 return 0;
12977}
12978
12979_ACEOF
12980
12981
12982 rm -Rf build && mkdir -p build
12983 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12984 if { 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
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
8934764e 12988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12989 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
8934764e 12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12994 (exit $ac_status); }; }; then
12995
8934764e
BB
12996 { $as_echo "$as_me:$LINENO: result: yes" >&5
12997$as_echo "yes" >&6; }
86933a6e
BB
12998
12999cat >>confdefs.h <<\_ACEOF
13000#define HAVE_5ARGS_DEVICE_CREATE 1
13001_ACEOF
13002
13003
13004else
8934764e 13005 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13006sed 's/^/| /' conftest.$ac_ext >&5
13007
8934764e
BB
13008 { $as_echo "$as_me:$LINENO: result: no" >&5
13009$as_echo "no" >&6; }
86933a6e
BB
13010
13011
13012
13013fi
13014
13015 rm -Rf build
13016
13017
13018 EXTRA_KCFLAGS="$tmp_flags"
13019
13020
8934764e
BB
13021 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
13022$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
86933a6e
BB
13023 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
13024 $LINUX_OBJ/Module*.symvers 2>/dev/null
13025 rc=$?
13026 if test $rc -ne 0; then
13027 export=0
13028 for file in drivers/base/class.c; do
13029 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
13030 "$LINUX_OBJ/$file" 2>/dev/null
13031 rc=$?
13032 if test $rc -eq 0; then
13033 export=1
13034 break;
13035 fi
13036 done
13037 if test $export -eq 0; then
8934764e
BB
13038 { $as_echo "$as_me:$LINENO: result: no" >&5
13039$as_echo "no" >&6; }
86933a6e
BB
13040
13041 else
8934764e
BB
13042 { $as_echo "$as_me:$LINENO: result: yes" >&5
13043$as_echo "yes" >&6; }
86933a6e
BB
13044
13045cat >>confdefs.h <<\_ACEOF
13046#define HAVE_CLASS_DEVICE_CREATE 1
13047_ACEOF
13048
13049 fi
13050 else
8934764e
BB
13051 { $as_echo "$as_me:$LINENO: result: yes" >&5
13052$as_echo "yes" >&6; }
86933a6e
BB
13053
13054cat >>confdefs.h <<\_ACEOF
13055#define HAVE_CLASS_DEVICE_CREATE 1
13056_ACEOF
13057
13058 fi
13059
13060
13061
8934764e
BB
13062 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13063$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
86933a6e
BB
13064 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13065 $LINUX_OBJ/Module*.symvers 2>/dev/null
13066 rc=$?
13067 if test $rc -ne 0; then
13068 export=0
13069 for file in kernel/time.c; do
13070 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13071 "$LINUX_OBJ/$file" 2>/dev/null
13072 rc=$?
13073 if test $rc -eq 0; then
13074 export=1
13075 break;
13076 fi
13077 done
13078 if test $export -eq 0; then
8934764e
BB
13079 { $as_echo "$as_me:$LINENO: result: no" >&5
13080$as_echo "no" >&6; }
86933a6e
BB
13081
13082 else
8934764e
BB
13083 { $as_echo "$as_me:$LINENO: result: yes" >&5
13084$as_echo "yes" >&6; }
86933a6e
BB
13085
13086cat >>confdefs.h <<\_ACEOF
13087#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13088_ACEOF
13089
13090 fi
13091 else
8934764e
BB
13092 { $as_echo "$as_me:$LINENO: result: yes" >&5
13093$as_echo "yes" >&6; }
86933a6e
BB
13094
13095cat >>confdefs.h <<\_ACEOF
13096#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13097_ACEOF
13098
13099 fi
13100
13101
13102
8934764e
BB
13103 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13104$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
86933a6e
BB
13105
13106
dbe561d8 13107cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113
13114
13115 #include <linux/time.h>
13116 void set_normalized_timespec(struct timespec *ts,
13117 time_t sec, long nsec) { }
13118
13119int
13120main (void)
13121{
13122
13123 ;
13124 return 0;
13125}
13126
13127_ACEOF
13128
13129
13130 rm -Rf build && mkdir -p build
13131 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13132 if { 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
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
8934764e 13136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13137 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
8934764e 13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13142 (exit $ac_status); }; }; then
13143
8934764e
BB
13144 { $as_echo "$as_me:$LINENO: result: no" >&5
13145$as_echo "no" >&6; }
86933a6e
BB
13146
13147else
8934764e 13148 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13149sed 's/^/| /' conftest.$ac_ext >&5
13150
8934764e
BB
13151 { $as_echo "$as_me:$LINENO: result: yes" >&5
13152$as_echo "yes" >&6; }
86933a6e
BB
13153
13154cat >>confdefs.h <<\_ACEOF
13155#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13156_ACEOF
13157
13158
13159
13160
13161fi
13162
13163 rm -Rf build
13164
13165
13166
13167
8934764e
BB
13168 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13169$as_echo_n "checking whether timespec_sub() is available... " >&6; }
86933a6e
BB
13170
13171
dbe561d8 13172cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13173/* confdefs.h. */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h. */
13178
13179
13180 #include <linux/time.h>
13181
13182int
13183main (void)
13184{
13185
03318641
BB
13186 struct timespec a = { 0 };
13187 struct timespec b = { 0 };
13188 struct timespec c __attribute__ ((unused));
86933a6e
BB
13189 c = timespec_sub(a, b);
13190
13191 ;
13192 return 0;
13193}
13194
13195_ACEOF
13196
13197
13198 rm -Rf build && mkdir -p build
13199 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13200 if { 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
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
8934764e 13204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
8934764e 13209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13210 (exit $ac_status); }; }; then
13211
8934764e
BB
13212 { $as_echo "$as_me:$LINENO: result: yes" >&5
13213$as_echo "yes" >&6; }
86933a6e
BB
13214
13215cat >>confdefs.h <<\_ACEOF
13216#define HAVE_TIMESPEC_SUB 1
13217_ACEOF
13218
13219
13220else
8934764e 13221 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
8934764e
BB
13224 { $as_echo "$as_me:$LINENO: result: no" >&5
13225$as_echo "no" >&6; }
86933a6e
BB
13226
13227
13228
13229fi
13230
13231 rm -Rf build
13232
13233
13234
13235
8934764e
BB
13236 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13237$as_echo_n "checking whether init_utsname() is available... " >&6; }
86933a6e
BB
13238
13239
dbe561d8 13240cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246
13247
13248 #include <linux/utsname.h>
13249
13250int
13251main (void)
13252{
13253
03318641
BB
13254 struct new_utsname *a __attribute__ ((unused));
13255 a = init_utsname();
86933a6e
BB
13256
13257 ;
13258 return 0;
13259}
13260
13261_ACEOF
13262
13263
13264 rm -Rf build && mkdir -p build
13265 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13266 if { 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
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13269 ac_status=$?
8934764e 13270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13271 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13274 ac_status=$?
8934764e 13275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13276 (exit $ac_status); }; }; then
13277
8934764e
BB
13278 { $as_echo "$as_me:$LINENO: result: yes" >&5
13279$as_echo "yes" >&6; }
86933a6e
BB
13280
13281cat >>confdefs.h <<\_ACEOF
13282#define HAVE_INIT_UTSNAME 1
13283_ACEOF
13284
13285
13286else
8934764e 13287 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13288sed 's/^/| /' conftest.$ac_ext >&5
13289
8934764e
BB
13290 { $as_echo "$as_me:$LINENO: result: no" >&5
13291$as_echo "no" >&6; }
86933a6e
BB
13292
13293
13294
13295fi
13296
13297 rm -Rf build
13298
13299
13300
13301
8934764e
BB
13302 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13303$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
86933a6e
BB
13304
13305
dbe561d8 13306cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13307/* confdefs.h. */
13308_ACEOF
13309cat confdefs.h >>conftest.$ac_ext
13310cat >>conftest.$ac_ext <<_ACEOF
13311/* end confdefs.h. */
13312
13313
13314 #include <linux/fdtable.h>
13315
13316int
13317main (void)
13318{
13319
13320 return 0;
13321
13322 ;
13323 return 0;
13324}
13325
13326_ACEOF
13327
13328
13329 rm -Rf build && mkdir -p build
13330 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13331 if { 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
13332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13334 ac_status=$?
8934764e 13335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13336 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
8934764e 13340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13341 (exit $ac_status); }; }; then
13342
13343
13344cat >>confdefs.h <<\_ACEOF
13345#define HAVE_FDTABLE_HEADER 1
13346_ACEOF
13347
8934764e
BB
13348 { $as_echo "$as_me:$LINENO: result: yes" >&5
13349$as_echo "yes" >&6; }
86933a6e
BB
13350
13351
13352else
8934764e 13353 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
8934764e
BB
13356 { $as_echo "$as_me:$LINENO: result: no" >&5
13357$as_echo "no" >&6; }
86933a6e
BB
13358
13359
13360
13361
13362fi
13363
13364 rm -Rf build
13365
13366
13367
13368
13369
8934764e
BB
13370 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13371$as_echo_n "checking whether files_fdtable() is available... " >&6; }
86933a6e
BB
13372
13373
dbe561d8 13374cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13375/* confdefs.h. */
13376_ACEOF
13377cat confdefs.h >>conftest.$ac_ext
13378cat >>conftest.$ac_ext <<_ACEOF
13379/* end confdefs.h. */
13380
13381
13382 #include <linux/sched.h>
13383 #include <linux/file.h>
13384 #ifdef HAVE_FDTABLE_HEADER
13385 #include <linux/fdtable.h>
13386 #endif
13387
13388int
13389main (void)
13390{
13391
13392 struct files_struct *files = current->files;
03318641
BB
13393 struct fdtable *fdt __attribute__ ((unused));
13394 fdt = files_fdtable(files);
86933a6e
BB
13395
13396 ;
13397 return 0;
13398}
13399
13400_ACEOF
13401
13402
13403 rm -Rf build && mkdir -p build
13404 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13405 if { 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
13406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
8934764e 13409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13410 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
8934764e 13414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13415 (exit $ac_status); }; }; then
13416
8934764e
BB
13417 { $as_echo "$as_me:$LINENO: result: yes" >&5
13418$as_echo "yes" >&6; }
86933a6e
BB
13419
13420cat >>confdefs.h <<\_ACEOF
13421#define HAVE_FILES_FDTABLE 1
13422_ACEOF
13423
13424
13425else
8934764e 13426 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13427sed 's/^/| /' conftest.$ac_ext >&5
13428
8934764e
BB
13429 { $as_echo "$as_me:$LINENO: result: no" >&5
13430$as_echo "no" >&6; }
86933a6e
BB
13431
13432
13433
13434fi
13435
13436 rm -Rf build
13437
13438
13439
13440
8934764e
BB
13441 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13442$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
86933a6e
BB
13443
13444
dbe561d8 13445cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13446/* confdefs.h. */
13447_ACEOF
13448cat confdefs.h >>conftest.$ac_ext
13449cat >>conftest.$ac_ext <<_ACEOF
13450/* end confdefs.h. */
13451
13452
13453 #include <linux/uaccess.h>
13454
13455int
13456main (void)
13457{
13458
13459 return 0;
13460
13461 ;
13462 return 0;
13463}
13464
13465_ACEOF
13466
13467
13468 rm -Rf build && mkdir -p build
13469 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13470 if { 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
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
8934764e 13474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
8934764e 13479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13480 (exit $ac_status); }; }; then
13481
13482
13483cat >>confdefs.h <<\_ACEOF
13484#define HAVE_UACCESS_HEADER 1
13485_ACEOF
13486
8934764e
BB
13487 { $as_echo "$as_me:$LINENO: result: yes" >&5
13488$as_echo "yes" >&6; }
86933a6e
BB
13489
13490
13491else
8934764e 13492 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13493sed 's/^/| /' conftest.$ac_ext >&5
13494
8934764e
BB
13495 { $as_echo "$as_me:$LINENO: result: no" >&5
13496$as_echo "no" >&6; }
86933a6e
BB
13497
13498
13499
13500
13501fi
13502
13503 rm -Rf build
13504
13505
13506
13507
13508
8934764e
BB
13509 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13510$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
86933a6e
BB
13511
13512
dbe561d8 13513cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13514/* confdefs.h. */
13515_ACEOF
13516cat confdefs.h >>conftest.$ac_ext
13517cat >>conftest.$ac_ext <<_ACEOF
13518/* end confdefs.h. */
13519
13520
13521 #include <linux/slab.h>
13522
13523int
13524main (void)
13525{
13526
03318641
BB
13527 void *a __attribute__ ((unused));
13528 a = kmalloc_node(1, GFP_KERNEL, 0);
86933a6e
BB
13529
13530 ;
13531 return 0;
13532}
13533
13534_ACEOF
13535
13536
13537 rm -Rf build && mkdir -p build
13538 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13539 if { 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
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13542 ac_status=$?
8934764e 13543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13544 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
8934764e 13548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13549 (exit $ac_status); }; }; then
13550
8934764e
BB
13551 { $as_echo "$as_me:$LINENO: result: yes" >&5
13552$as_echo "yes" >&6; }
86933a6e
BB
13553
13554cat >>confdefs.h <<\_ACEOF
13555#define HAVE_KMALLOC_NODE 1
13556_ACEOF
13557
13558
13559else
8934764e 13560 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
8934764e
BB
13563 { $as_echo "$as_me:$LINENO: result: no" >&5
13564$as_echo "no" >&6; }
86933a6e
BB
13565
13566
13567
13568fi
13569
13570 rm -Rf build
13571
13572
13573
13574
8934764e
BB
13575 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13576$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
86933a6e
BB
13577 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13578 $LINUX_OBJ/Module*.symvers 2>/dev/null
13579 rc=$?
13580 if test $rc -ne 0; then
13581 export=0
13582 for file in ; do
13583 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13584 "$LINUX_OBJ/$file" 2>/dev/null
13585 rc=$?
13586 if test $rc -eq 0; then
13587 export=1
13588 break;
13589 fi
13590 done
13591 if test $export -eq 0; then
8934764e
BB
13592 { $as_echo "$as_me:$LINENO: result: no" >&5
13593$as_echo "no" >&6; }
86933a6e
BB
13594
13595 else
8934764e
BB
13596 { $as_echo "$as_me:$LINENO: result: yes" >&5
13597$as_echo "yes" >&6; }
86933a6e
BB
13598
13599cat >>confdefs.h <<\_ACEOF
13600#define HAVE_MONOTONIC_CLOCK 1
13601_ACEOF
13602
13603 fi
13604 else
8934764e
BB
13605 { $as_echo "$as_me:$LINENO: result: yes" >&5
13606$as_echo "yes" >&6; }
86933a6e
BB
13607
13608cat >>confdefs.h <<\_ACEOF
13609#define HAVE_MONOTONIC_CLOCK 1
13610_ACEOF
13611
13612 fi
13613
13614
13615
8934764e
BB
13616 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13617$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
86933a6e
BB
13618
13619
dbe561d8 13620cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
13626
13627
13628 #include <linux/fs.h>
13629 #include <linux/mutex.h>
13630
13631int
13632main (void)
13633{
13634
13635 struct inode i;
13636 mutex_init(&i.i_mutex);
13637
13638 ;
13639 return 0;
13640}
13641
13642_ACEOF
13643
13644
13645 rm -Rf build && mkdir -p build
13646 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13647 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
8934764e 13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13652 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
8934764e 13656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13657 (exit $ac_status); }; }; then
13658
8934764e
BB
13659 { $as_echo "$as_me:$LINENO: result: yes" >&5
13660$as_echo "yes" >&6; }
86933a6e
BB
13661
13662cat >>confdefs.h <<\_ACEOF
13663#define HAVE_INODE_I_MUTEX 1
13664_ACEOF
13665
13666
13667else
8934764e 13668 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13669sed 's/^/| /' conftest.$ac_ext >&5
13670
8934764e
BB
13671 { $as_echo "$as_me:$LINENO: result: no" >&5
13672$as_echo "no" >&6; }
86933a6e
BB
13673
13674
13675
13676fi
13677
13678 rm -Rf build
13679
13680
13681
13682
8934764e
BB
13683 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13684$as_echo_n "checking whether struct mutex has owner... " >&6; }
4d54fdee
BB
13685
13686
dbe561d8 13687cat confdefs.h - <<_ACEOF >conftest.c
4d54fdee
BB
13688/* confdefs.h. */
13689_ACEOF
13690cat confdefs.h >>conftest.$ac_ext
13691cat >>conftest.$ac_ext <<_ACEOF
13692/* end confdefs.h. */
13693
13694
13695 #include <linux/mutex.h>
13696
13697int
13698main (void)
13699{
13700
03318641 13701 struct mutex mtx __attribute__ ((unused));
4d54fdee
BB
13702 mtx.owner = NULL;
13703
13704 ;
13705 return 0;
13706}
13707
13708_ACEOF
13709
13710
13711 rm -Rf build && mkdir -p build
13712 echo "obj-m := conftest.o" >build/Makefile
13713 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
8934764e 13717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13718 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720 (eval $ac_try) 2>&5
13721 ac_status=$?
8934764e 13722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13723 (exit $ac_status); }; }; then
13724
8934764e
BB
13725 { $as_echo "$as_me:$LINENO: result: yes" >&5
13726$as_echo "yes" >&6; }
4d54fdee
BB
13727
13728cat >>confdefs.h <<\_ACEOF
13729#define HAVE_MUTEX_OWNER 1
13730_ACEOF
13731
13732
13733else
8934764e 13734 $as_echo "$as_me: failed program was:" >&5
4d54fdee
BB
13735sed 's/^/| /' conftest.$ac_ext >&5
13736
8934764e
BB
13737 { $as_echo "$as_me:$LINENO: result: no" >&5
13738$as_echo "no" >&6; }
4d54fdee
BB
13739
13740
13741
13742fi
13743
13744 rm -Rf build
13745
13746
13747
13748
86fd39f3
BB
13749 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13750$as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13751 tmp_flags="$EXTRA_KCFLAGS"
13752 EXTRA_KCFLAGS="-Werror"
13753
13754
13755cat confdefs.h - <<_ACEOF >conftest.c
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761
13762
13763 #include <linux/mutex.h>
13764
13765int
13766main (void)
13767{
13768
13769 struct mutex mtx __attribute__ ((unused));
13770 mtx.owner = current;
13771
13772 ;
13773 return 0;
13774}
13775
13776_ACEOF
13777
13778
13779 rm -Rf build && mkdir -p build
13780 echo "obj-m := conftest.o" >build/Makefile
13781 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792
13793 { $as_echo "$as_me:$LINENO: result: yes" >&5
13794$as_echo "yes" >&6; }
13795
13796cat >>confdefs.h <<\_ACEOF
13797#define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13798_ACEOF
13799
13800
13801else
13802 $as_echo "$as_me: failed program was:" >&5
13803sed 's/^/| /' conftest.$ac_ext >&5
13804
13805 { $as_echo "$as_me:$LINENO: result: no" >&5
13806$as_echo "no" >&6; }
13807
13808
13809
13810fi
13811
13812 rm -Rf build
13813
13814
13815 EXTRA_KCFLAGS="$tmp_flags"
13816
13817
8934764e
BB
13818 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13819$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
86933a6e
BB
13820
13821
dbe561d8 13822cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
13827/* end confdefs.h. */
13828
13829
13830 #include <linux/mutex.h>
13831
13832int
13833main (void)
13834{
13835
13836 struct mutex mutex;
13837 mutex_init(&mutex);
13838 mutex_lock_nested(&mutex, 0);
13839
13840 ;
13841 return 0;
13842}
13843
13844_ACEOF
13845
13846
13847 rm -Rf build && mkdir -p build
13848 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13849 if { 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
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
8934764e 13853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13854 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13857 ac_status=$?
8934764e 13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13859 (exit $ac_status); }; }; then
13860
8934764e
BB
13861 { $as_echo "$as_me:$LINENO: result: yes" >&5
13862$as_echo "yes" >&6; }
86933a6e
BB
13863
13864cat >>confdefs.h <<\_ACEOF
13865#define HAVE_MUTEX_LOCK_NESTED 1
13866_ACEOF
13867
13868
13869else
8934764e 13870 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13871sed 's/^/| /' conftest.$ac_ext >&5
13872
8934764e
BB
13873 { $as_echo "$as_me:$LINENO: result: no" >&5
13874$as_echo "no" >&6; }
86933a6e
BB
13875
13876
13877
13878fi
13879
13880 rm -Rf build
13881
13882
13883
13884
8934764e
BB
13885 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13886$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
86933a6e
BB
13887
13888
dbe561d8 13889cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13890/* confdefs.h. */
13891_ACEOF
13892cat confdefs.h >>conftest.$ac_ext
13893cat >>conftest.$ac_ext <<_ACEOF
13894/* end confdefs.h. */
13895
13896
13897 #include <linux/smp.h>
13898
13899int
13900main (void)
13901{
13902
13903 on_each_cpu(NULL, NULL, 0);
13904
13905 ;
13906 return 0;
13907}
13908
13909_ACEOF
13910
13911
13912 rm -Rf build && mkdir -p build
13913 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13914 if { 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
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
8934764e 13918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921 (eval $ac_try) 2>&5
13922 ac_status=$?
8934764e 13923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13924 (exit $ac_status); }; }; then
13925
8934764e
BB
13926 { $as_echo "$as_me:$LINENO: result: yes" >&5
13927$as_echo "yes" >&6; }
86933a6e
BB
13928
13929cat >>confdefs.h <<\_ACEOF
13930#define HAVE_3ARGS_ON_EACH_CPU 1
13931_ACEOF
13932
13933
13934else
8934764e 13935 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13936sed 's/^/| /' conftest.$ac_ext >&5
13937
8934764e
BB
13938 { $as_echo "$as_me:$LINENO: result: no" >&5
13939$as_echo "no" >&6; }
86933a6e
BB
13940
13941
13942
13943fi
13944
13945 rm -Rf build
13946
13947
13948
13949
8934764e
BB
13950 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13951$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
86933a6e
BB
13952 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13953 $LINUX_OBJ/Module*.symvers 2>/dev/null
13954 rc=$?
13955 if test $rc -ne 0; then
13956 export=0
13957 for file in ; do
13958 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13959 "$LINUX_OBJ/$file" 2>/dev/null
13960 rc=$?
13961 if test $rc -eq 0; then
13962 export=1
13963 break;
13964 fi
13965 done
13966 if test $export -eq 0; then
8934764e
BB
13967 { $as_echo "$as_me:$LINENO: result: no" >&5
13968$as_echo "no" >&6; }
86933a6e
BB
13969
13970 else
8934764e
BB
13971 { $as_echo "$as_me:$LINENO: result: yes" >&5
13972$as_echo "yes" >&6; }
86933a6e
BB
13973
13974cat >>confdefs.h <<\_ACEOF
13975#define HAVE_KALLSYMS_LOOKUP_NAME 1
13976_ACEOF
13977
13978 fi
13979 else
8934764e
BB
13980 { $as_echo "$as_me:$LINENO: result: yes" >&5
13981$as_echo "yes" >&6; }
86933a6e
BB
13982
13983cat >>confdefs.h <<\_ACEOF
13984#define HAVE_KALLSYMS_LOOKUP_NAME 1
13985_ACEOF
13986
13987 fi
13988
13989
13990
8934764e
BB
13991 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13992$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
86933a6e
BB
13993 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13994 $LINUX_OBJ/Module*.symvers 2>/dev/null
13995 rc=$?
13996 if test $rc -ne 0; then
13997 export=0
13998 for file in ; do
13999 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
14000 "$LINUX_OBJ/$file" 2>/dev/null
14001 rc=$?
14002 if test $rc -eq 0; then
14003 export=1
14004 break;
14005 fi
14006 done
14007 if test $export -eq 0; then
8934764e
BB
14008 { $as_echo "$as_me:$LINENO: result: no" >&5
14009$as_echo "no" >&6; }
86933a6e
BB
14010
14011 else
8934764e
BB
14012 { $as_echo "$as_me:$LINENO: result: yes" >&5
14013$as_echo "yes" >&6; }
86933a6e
BB
14014
14015cat >>confdefs.h <<\_ACEOF
14016#define HAVE_GET_VMALLOC_INFO 1
14017_ACEOF
14018
14019 fi
14020 else
8934764e
BB
14021 { $as_echo "$as_me:$LINENO: result: yes" >&5
14022$as_echo "yes" >&6; }
86933a6e
BB
14023
14024cat >>confdefs.h <<\_ACEOF
14025#define HAVE_GET_VMALLOC_INFO 1
14026_ACEOF
14027
14028 fi
14029
14030
14031
8934764e
BB
14032 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
14033$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
86933a6e
BB
14034 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
14035 rc=$?
14036 if test $rc -eq 0; then
8934764e
BB
14037 { $as_echo "$as_me:$LINENO: result: yes" >&5
14038$as_echo "yes" >&6; }
86933a6e
BB
14039
14040cat >>confdefs.h <<\_ACEOF
14041#define HAVE_PGDAT_HELPERS 1
14042_ACEOF
14043
14044 else
8934764e
BB
14045 { $as_echo "$as_me:$LINENO: result: no" >&5
14046$as_echo "no" >&6; }
86933a6e
BB
14047 fi
14048
14049
8934764e
BB
14050 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
14051$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
86933a6e
BB
14052 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
14053 $LINUX_OBJ/Module*.symvers 2>/dev/null
14054 rc=$?
14055 if test $rc -ne 0; then
14056 export=0
14057 for file in ; do
14058 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
14059 "$LINUX_OBJ/$file" 2>/dev/null
14060 rc=$?
14061 if test $rc -eq 0; then
14062 export=1
14063 break;
14064 fi
14065 done
14066 if test $export -eq 0; then
8934764e
BB
14067 { $as_echo "$as_me:$LINENO: result: no" >&5
14068$as_echo "no" >&6; }
86933a6e
BB
14069
14070 else
8934764e
BB
14071 { $as_echo "$as_me:$LINENO: result: yes" >&5
14072$as_echo "yes" >&6; }
86933a6e
BB
14073
14074cat >>confdefs.h <<\_ACEOF
14075#define HAVE_FIRST_ONLINE_PGDAT 1
14076_ACEOF
14077
14078 fi
14079 else
8934764e
BB
14080 { $as_echo "$as_me:$LINENO: result: yes" >&5
14081$as_echo "yes" >&6; }
86933a6e
BB
14082
14083cat >>confdefs.h <<\_ACEOF
14084#define HAVE_FIRST_ONLINE_PGDAT 1
14085_ACEOF
14086
14087 fi
14088
14089
14090
8934764e
BB
14091 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14092$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
86933a6e
BB
14093 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14094 $LINUX_OBJ/Module*.symvers 2>/dev/null
14095 rc=$?
14096 if test $rc -ne 0; then
14097 export=0
14098 for file in ; do
14099 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14100 "$LINUX_OBJ/$file" 2>/dev/null
14101 rc=$?
14102 if test $rc -eq 0; then
14103 export=1
14104 break;
14105 fi
14106 done
14107 if test $export -eq 0; then
8934764e
BB
14108 { $as_echo "$as_me:$LINENO: result: no" >&5
14109$as_echo "no" >&6; }
86933a6e
BB
14110
14111 else
8934764e
BB
14112 { $as_echo "$as_me:$LINENO: result: yes" >&5
14113$as_echo "yes" >&6; }
86933a6e
BB
14114
14115cat >>confdefs.h <<\_ACEOF
14116#define HAVE_NEXT_ONLINE_PGDAT 1
14117_ACEOF
14118
14119 fi
14120 else
8934764e
BB
14121 { $as_echo "$as_me:$LINENO: result: yes" >&5
14122$as_echo "yes" >&6; }
86933a6e
BB
14123
14124cat >>confdefs.h <<\_ACEOF
14125#define HAVE_NEXT_ONLINE_PGDAT 1
14126_ACEOF
14127
14128 fi
14129
14130
14131
8934764e
BB
14132 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14133$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
86933a6e
BB
14134 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14135 $LINUX_OBJ/Module*.symvers 2>/dev/null
14136 rc=$?
14137 if test $rc -ne 0; then
14138 export=0
14139 for file in ; do
14140 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14141 "$LINUX_OBJ/$file" 2>/dev/null
14142 rc=$?
14143 if test $rc -eq 0; then
14144 export=1
14145 break;
14146 fi
14147 done
14148 if test $export -eq 0; then
8934764e
BB
14149 { $as_echo "$as_me:$LINENO: result: no" >&5
14150$as_echo "no" >&6; }
86933a6e
BB
14151
14152 else
8934764e
BB
14153 { $as_echo "$as_me:$LINENO: result: yes" >&5
14154$as_echo "yes" >&6; }
86933a6e
BB
14155
14156cat >>confdefs.h <<\_ACEOF
14157#define HAVE_NEXT_ZONE 1
14158_ACEOF
14159
14160 fi
14161 else
8934764e
BB
14162 { $as_echo "$as_me:$LINENO: result: yes" >&5
14163$as_echo "yes" >&6; }
86933a6e
BB
14164
14165cat >>confdefs.h <<\_ACEOF
14166#define HAVE_NEXT_ZONE 1
14167_ACEOF
14168
14169 fi
14170
14171
14172
8934764e
BB
14173 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14174$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
86933a6e
BB
14175 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14176 $LINUX_OBJ/Module*.symvers 2>/dev/null
14177 rc=$?
14178 if test $rc -ne 0; then
14179 export=0
14180 for file in ; do
14181 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14182 "$LINUX_OBJ/$file" 2>/dev/null
14183 rc=$?
14184 if test $rc -eq 0; then
14185 export=1
14186 break;
14187 fi
14188 done
14189 if test $export -eq 0; then
8934764e
BB
14190 { $as_echo "$as_me:$LINENO: result: no" >&5
14191$as_echo "no" >&6; }
86933a6e
BB
14192
14193 else
8934764e
BB
14194 { $as_echo "$as_me:$LINENO: result: yes" >&5
14195$as_echo "yes" >&6; }
86933a6e
BB
14196
14197cat >>confdefs.h <<\_ACEOF
14198#define HAVE_PGDAT_LIST 1
14199_ACEOF
14200
14201 fi
14202 else
8934764e
BB
14203 { $as_echo "$as_me:$LINENO: result: yes" >&5
14204$as_echo "yes" >&6; }
86933a6e
BB
14205
14206cat >>confdefs.h <<\_ACEOF
14207#define HAVE_PGDAT_LIST 1
14208_ACEOF
14209
14210 fi
14211
14212
14213
8934764e
BB
14214 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14215$as_echo_n "checking whether global_page_state() is available... " >&6; }
86933a6e 14216
86933a6e 14217
dbe561d8 14218cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 14219/* confdefs.h. */
86933a6e 14220_ACEOF
6ae7fef5
BB
14221cat confdefs.h >>conftest.$ac_ext
14222cat >>conftest.$ac_ext <<_ACEOF
14223/* end confdefs.h. */
14224
14225
14226 #include <linux/mm.h>
14227
14228int
14229main (void)
14230{
14231
03318641 14232 unsigned long state __attribute__ ((unused));
6ae7fef5
BB
14233 state = global_page_state(0);
14234
14235 ;
14236 return 0;
14237}
14238
14239_ACEOF
14240
14241
14242 rm -Rf build && mkdir -p build
14243 echo "obj-m := conftest.o" >build/Makefile
14244 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
8934764e 14248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
8934764e 14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 14254 (exit $ac_status); }; }; then
86933a6e 14255
8934764e
BB
14256 { $as_echo "$as_me:$LINENO: result: yes" >&5
14257$as_echo "yes" >&6; }
86933a6e
BB
14258
14259cat >>confdefs.h <<\_ACEOF
6ae7fef5 14260#define HAVE_GLOBAL_PAGE_STATE 1
86933a6e
BB
14261_ACEOF
14262
6ae7fef5
BB
14263
14264else
8934764e 14265 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14266sed 's/^/| /' conftest.$ac_ext >&5
14267
8934764e
BB
14268 { $as_echo "$as_me:$LINENO: result: no" >&5
14269$as_echo "no" >&6; }
6ae7fef5
BB
14270
14271
14272
14273fi
14274
14275 rm -Rf build
86933a6e
BB
14276
14277
14278
6ae7fef5 14279
8934764e
BB
14280 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14281$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
86933a6e
BB
14282
14283
dbe561d8 14284cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14285/* confdefs.h. */
14286_ACEOF
14287cat confdefs.h >>conftest.$ac_ext
14288cat >>conftest.$ac_ext <<_ACEOF
14289/* end confdefs.h. */
14290
14291
6ae7fef5 14292 #include <linux/mm.h>
86933a6e
BB
14293
14294int
14295main (void)
14296{
14297
03318641 14298 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14299 zsi = NR_FREE_PAGES;
86933a6e
BB
14300
14301 ;
14302 return 0;
14303}
14304
14305_ACEOF
14306
14307
14308 rm -Rf build && mkdir -p build
14309 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14310 if { 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
14311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14313 ac_status=$?
8934764e 14314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14315 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
8934764e 14319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14320 (exit $ac_status); }; }; then
14321
8934764e
BB
14322 { $as_echo "$as_me:$LINENO: result: yes" >&5
14323$as_echo "yes" >&6; }
86933a6e
BB
14324
14325cat >>confdefs.h <<\_ACEOF
6ae7fef5 14326#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
86933a6e
BB
14327_ACEOF
14328
14329
14330else
8934764e 14331 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
8934764e
BB
14334 { $as_echo "$as_me:$LINENO: result: no" >&5
14335$as_echo "no" >&6; }
86933a6e
BB
14336
14337
14338
14339fi
14340
14341 rm -Rf build
14342
14343
14344
14345
8934764e
BB
14346 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14347$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
86933a6e
BB
14348
14349
dbe561d8 14350cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
14356
14357
6ae7fef5 14358 #include <linux/mm.h>
86933a6e
BB
14359
14360int
14361main (void)
14362{
14363
03318641 14364 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14365 zsi = NR_INACTIVE;
86933a6e
BB
14366
14367 ;
14368 return 0;
14369}
14370
14371_ACEOF
14372
14373
14374 rm -Rf build && mkdir -p build
14375 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14376 if { 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
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14379 ac_status=$?
8934764e 14380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14381 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
8934764e 14385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14386 (exit $ac_status); }; }; then
14387
8934764e
BB
14388 { $as_echo "$as_me:$LINENO: result: yes" >&5
14389$as_echo "yes" >&6; }
86933a6e
BB
14390
14391cat >>confdefs.h <<\_ACEOF
6ae7fef5 14392#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
86933a6e
BB
14393_ACEOF
14394
14395
14396else
8934764e 14397 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14398sed 's/^/| /' conftest.$ac_ext >&5
14399
8934764e
BB
14400 { $as_echo "$as_me:$LINENO: result: no" >&5
14401$as_echo "no" >&6; }
86933a6e
BB
14402
14403
14404
14405fi
14406
14407 rm -Rf build
14408
14409
14410
8934764e
BB
14411 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14412$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
86933a6e
BB
14413
14414
dbe561d8 14415cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14416/* confdefs.h. */
14417_ACEOF
14418cat confdefs.h >>conftest.$ac_ext
14419cat >>conftest.$ac_ext <<_ACEOF
14420/* end confdefs.h. */
14421
14422
6ae7fef5 14423 #include <linux/mm.h>
86933a6e
BB
14424
14425int
14426main (void)
14427{
14428
03318641 14429 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14430 zsi = NR_INACTIVE_ANON;
86933a6e
BB
14431
14432 ;
14433 return 0;
14434}
14435
14436_ACEOF
14437
14438
14439 rm -Rf build && mkdir -p build
14440 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14441 if { 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
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
8934764e 14445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14446 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448 (eval $ac_try) 2>&5
14449 ac_status=$?
8934764e 14450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14451 (exit $ac_status); }; }; then
14452
8934764e
BB
14453 { $as_echo "$as_me:$LINENO: result: yes" >&5
14454$as_echo "yes" >&6; }
86933a6e
BB
14455
14456cat >>confdefs.h <<\_ACEOF
6ae7fef5 14457#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
86933a6e
BB
14458_ACEOF
14459
14460
14461else
8934764e 14462 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
8934764e
BB
14465 { $as_echo "$as_me:$LINENO: result: no" >&5
14466$as_echo "no" >&6; }
86933a6e
BB
14467
14468
14469
14470fi
14471
14472 rm -Rf build
14473
14474
14475
8934764e
BB
14476 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14477$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
86933a6e
BB
14478
14479
dbe561d8 14480cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14481/* confdefs.h. */
14482_ACEOF
14483cat confdefs.h >>conftest.$ac_ext
14484cat >>conftest.$ac_ext <<_ACEOF
14485/* end confdefs.h. */
14486
14487
6ae7fef5 14488 #include <linux/mm.h>
86933a6e
BB
14489
14490int
14491main (void)
14492{
14493
03318641 14494 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14495 zsi = NR_INACTIVE_FILE;
86933a6e
BB
14496
14497 ;
14498 return 0;
14499}
14500
14501_ACEOF
14502
14503
14504 rm -Rf build && mkdir -p build
14505 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14506 if { 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
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14509 ac_status=$?
8934764e 14510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14511 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14513 (eval $ac_try) 2>&5
14514 ac_status=$?
8934764e 14515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14516 (exit $ac_status); }; }; then
14517
8934764e
BB
14518 { $as_echo "$as_me:$LINENO: result: yes" >&5
14519$as_echo "yes" >&6; }
86933a6e
BB
14520
14521cat >>confdefs.h <<\_ACEOF
6ae7fef5 14522#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
86933a6e
BB
14523_ACEOF
14524
14525
14526else
8934764e 14527 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14528sed 's/^/| /' conftest.$ac_ext >&5
14529
8934764e
BB
14530 { $as_echo "$as_me:$LINENO: result: no" >&5
14531$as_echo "no" >&6; }
86933a6e
BB
14532
14533
14534
14535fi
14536
14537 rm -Rf build
14538
14539
14540
ec7d53e9 14541
8934764e
BB
14542 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14543$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
ec7d53e9
BB
14544
14545
dbe561d8 14546cat confdefs.h - <<_ACEOF >conftest.c
ec7d53e9
BB
14547/* confdefs.h. */
14548_ACEOF
14549cat confdefs.h >>conftest.$ac_ext
14550cat >>conftest.$ac_ext <<_ACEOF
14551/* end confdefs.h. */
14552
14553
6ae7fef5 14554 #include <linux/mm.h>
ec7d53e9
BB
14555
14556int
14557main (void)
14558{
14559
03318641 14560 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14561 zsi = NR_ACTIVE;
ec7d53e9
BB
14562
14563 ;
14564 return 0;
14565}
14566
14567_ACEOF
14568
14569
14570 rm -Rf build && mkdir -p build
14571 echo "obj-m := conftest.o" >build/Makefile
14572 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
8934764e 14576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14577 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14579 (eval $ac_try) 2>&5
14580 ac_status=$?
8934764e 14581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14582 (exit $ac_status); }; }; then
14583
8934764e
BB
14584 { $as_echo "$as_me:$LINENO: result: yes" >&5
14585$as_echo "yes" >&6; }
ec7d53e9
BB
14586
14587cat >>confdefs.h <<\_ACEOF
6ae7fef5 14588#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
ec7d53e9
BB
14589_ACEOF
14590
14591
14592else
8934764e 14593 $as_echo "$as_me: failed program was:" >&5
ec7d53e9
BB
14594sed 's/^/| /' conftest.$ac_ext >&5
14595
8934764e
BB
14596 { $as_echo "$as_me:$LINENO: result: no" >&5
14597$as_echo "no" >&6; }
ec7d53e9
BB
14598
14599
14600
14601fi
14602
14603 rm -Rf build
14604
14605
14606
8934764e
BB
14607 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14608$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
ec7d53e9 14609
ec7d53e9 14610
dbe561d8 14611cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14612/* confdefs.h. */
14613_ACEOF
14614cat confdefs.h >>conftest.$ac_ext
14615cat >>conftest.$ac_ext <<_ACEOF
14616/* end confdefs.h. */
14617
14618
14619 #include <linux/mm.h>
14620
14621int
14622main (void)
14623{
14624
03318641 14625 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5
BB
14626 zsi = NR_ACTIVE_ANON;
14627
14628 ;
14629 return 0;
14630}
ec7d53e9 14631
ec7d53e9
BB
14632_ACEOF
14633
6ae7fef5
BB
14634
14635 rm -Rf build && mkdir -p build
14636 echo "obj-m := conftest.o" >build/Makefile
14637 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
8934764e 14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
8934764e 14646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14647 (exit $ac_status); }; }; then
14648
8934764e
BB
14649 { $as_echo "$as_me:$LINENO: result: yes" >&5
14650$as_echo "yes" >&6; }
ec7d53e9
BB
14651
14652cat >>confdefs.h <<\_ACEOF
6ae7fef5 14653#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
ec7d53e9
BB
14654_ACEOF
14655
ec7d53e9 14656
6ae7fef5 14657else
8934764e 14658 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 14659sed 's/^/| /' conftest.$ac_ext >&5
ec7d53e9 14660
8934764e
BB
14661 { $as_echo "$as_me:$LINENO: result: no" >&5
14662$as_echo "no" >&6; }
bf9f3bac 14663
bf9f3bac 14664
bf9f3bac 14665
6ae7fef5 14666fi
bf9f3bac 14667
6ae7fef5 14668 rm -Rf build
bf9f3bac 14669
bf9f3bac 14670
bf9f3bac 14671
8934764e
BB
14672 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14673$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 14674
bf9f3bac 14675
dbe561d8 14676cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14677/* confdefs.h. */
14678_ACEOF
14679cat confdefs.h >>conftest.$ac_ext
14680cat >>conftest.$ac_ext <<_ACEOF
14681/* end confdefs.h. */
bf9f3bac 14682
bf9f3bac 14683
6ae7fef5 14684 #include <linux/mm.h>
bf9f3bac 14685
6ae7fef5
BB
14686int
14687main (void)
14688{
14689
03318641 14690 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5
BB
14691 zsi = NR_ACTIVE_FILE;
14692
14693 ;
14694 return 0;
14695}
14696
14697_ACEOF
14698
14699
14700 rm -Rf build && mkdir -p build
14701 echo "obj-m := conftest.o" >build/Makefile
14702 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
8934764e 14706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14707 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14710 ac_status=$?
8934764e 14711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14712 (exit $ac_status); }; }; then
14713
8934764e
BB
14714 { $as_echo "$as_me:$LINENO: result: yes" >&5
14715$as_echo "yes" >&6; }
6ae7fef5
BB
14716
14717cat >>confdefs.h <<\_ACEOF
14718#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14719_ACEOF
14720
14721
14722else
8934764e 14723 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14724sed 's/^/| /' conftest.$ac_ext >&5
14725
8934764e
BB
14726 { $as_echo "$as_me:$LINENO: result: no" >&5
14727$as_echo "no" >&6; }
6ae7fef5
BB
14728
14729
14730
14731fi
14732
14733 rm -Rf build
14734
14735
14736
14737
8934764e
BB
14738 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14739$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
6ae7fef5
BB
14740
14741
dbe561d8 14742cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
14748
14749
14750
14751int
14752main (void)
14753{
14754
14755 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14756 #error "global_page_state needs NR_FREE_PAGES"
14757 #endif
14758
14759 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14760 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14761 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14762 #error "global_page_state needs NR_ACTIVE*"
14763 #endif
14764
14765 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14766 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14767 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14768 #error "global_page_state needs NR_INACTIVE*"
14769 #endif
14770
14771 ;
14772 return 0;
14773}
14774
14775_ACEOF
14776
14777
14778 rm -Rf build && mkdir -p build
14779 echo "obj-m := conftest.o" >build/Makefile
14780 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
8934764e 14784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14785 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
8934764e 14789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14790 (exit $ac_status); }; }; then
14791
8934764e
BB
14792 { $as_echo "$as_me:$LINENO: result: no" >&5
14793$as_echo "no" >&6; }
6ae7fef5
BB
14794
14795else
8934764e 14796 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
8934764e
BB
14799 { $as_echo "$as_me:$LINENO: result: yes" >&5
14800$as_echo "yes" >&6; }
6ae7fef5
BB
14801
14802cat >>confdefs.h <<\_ACEOF
14803#define NEED_GET_ZONE_COUNTS 1
14804_ACEOF
14805
14806
8934764e
BB
14807 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14808$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
6ae7fef5
BB
14809 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14810 $LINUX_OBJ/Module*.symvers 2>/dev/null
14811 rc=$?
14812 if test $rc -ne 0; then
14813 export=0
14814 for file in ; do
14815 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14816 "$LINUX_OBJ/$file" 2>/dev/null
14817 rc=$?
14818 if test $rc -eq 0; then
14819 export=1
14820 break;
14821 fi
14822 done
14823 if test $export -eq 0; then
8934764e
BB
14824 { $as_echo "$as_me:$LINENO: result: no" >&5
14825$as_echo "no" >&6; }
6ae7fef5
BB
14826
14827 else
8934764e
BB
14828 { $as_echo "$as_me:$LINENO: result: yes" >&5
14829$as_echo "yes" >&6; }
6ae7fef5
BB
14830
14831cat >>confdefs.h <<\_ACEOF
14832#define HAVE_GET_ZONE_COUNTS 1
14833_ACEOF
14834
14835 fi
14836 else
8934764e
BB
14837 { $as_echo "$as_me:$LINENO: result: yes" >&5
14838$as_echo "yes" >&6; }
6ae7fef5
BB
14839
14840cat >>confdefs.h <<\_ACEOF
14841#define HAVE_GET_ZONE_COUNTS 1
14842_ACEOF
14843
14844 fi
14845
14846
14847
14848
51a727e9
BB
14849fi
14850
14851 rm -Rf build
14852
14853
14854
14855
7119bf70
BB
14856 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14857$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14858 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14859 $LINUX_OBJ/Module*.symvers 2>/dev/null
14860 rc=$?
14861 if test $rc -ne 0; then
14862 export=0
14863 for file in ; do
14864 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14865 "$LINUX_OBJ/$file" 2>/dev/null
14866 rc=$?
14867 if test $rc -eq 0; then
14868 export=1
14869 break;
14870 fi
14871 done
14872 if test $export -eq 0; then
14873 { $as_echo "$as_me:$LINENO: result: no" >&5
14874$as_echo "no" >&6; }
14875
14876 else
14877 { $as_echo "$as_me:$LINENO: result: yes" >&5
14878$as_echo "yes" >&6; }
14879
14880cat >>confdefs.h <<\_ACEOF
14881#define HAVE_USER_PATH_DIR 1
14882_ACEOF
14883
14884 fi
14885 else
14886 { $as_echo "$as_me:$LINENO: result: yes" >&5
14887$as_echo "yes" >&6; }
14888
14889cat >>confdefs.h <<\_ACEOF
14890#define HAVE_USER_PATH_DIR 1
14891_ACEOF
14892
14893 fi
14894
14895
14896
8934764e
BB
14897 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14898$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
51a727e9
BB
14899 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14900 $LINUX_OBJ/Module*.symvers 2>/dev/null
14901 rc=$?
14902 if test $rc -ne 0; then
14903 export=0
14904 for file in ; do
14905 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14906 "$LINUX_OBJ/$file" 2>/dev/null
14907 rc=$?
14908 if test $rc -eq 0; then
14909 export=1
14910 break;
14911 fi
14912 done
14913 if test $export -eq 0; then
8934764e
BB
14914 { $as_echo "$as_me:$LINENO: result: no" >&5
14915$as_echo "no" >&6; }
51a727e9
BB
14916
14917 else
8934764e
BB
14918 { $as_echo "$as_me:$LINENO: result: yes" >&5
14919$as_echo "yes" >&6; }
51a727e9
BB
14920
14921cat >>confdefs.h <<\_ACEOF
14922#define HAVE_SET_FS_PWD 1
14923_ACEOF
14924
14925 fi
14926 else
8934764e
BB
14927 { $as_echo "$as_me:$LINENO: result: yes" >&5
14928$as_echo "yes" >&6; }
51a727e9
BB
14929
14930cat >>confdefs.h <<\_ACEOF
14931#define HAVE_SET_FS_PWD 1
14932_ACEOF
14933
14934 fi
14935
14936
8934764e
BB
14937 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14938$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
51a727e9
BB
14939
14940
dbe561d8 14941cat confdefs.h - <<_ACEOF >conftest.c
51a727e9
BB
14942/* confdefs.h. */
14943_ACEOF
14944cat confdefs.h >>conftest.$ac_ext
14945cat >>conftest.$ac_ext <<_ACEOF
14946/* end confdefs.h. */
14947
14948
14949 #include <linux/sched.h>
baf2979e 14950 #include <linux/fs_struct.h>
51a727e9
BB
14951
14952int
14953main (void)
14954{
14955
14956 set_fs_pwd(NULL, NULL);
14957
14958 ;
14959 return 0;
14960}
14961
14962_ACEOF
14963
14964
14965 rm -Rf build && mkdir -p build
14966 echo "obj-m := conftest.o" >build/Makefile
14967 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14970 ac_status=$?
8934764e 14971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
14972 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
8934764e 14976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
14977 (exit $ac_status); }; }; then
14978
8934764e
BB
14979 { $as_echo "$as_me:$LINENO: result: yes" >&5
14980$as_echo "yes" >&6; }
51a727e9
BB
14981
14982cat >>confdefs.h <<\_ACEOF
14983#define HAVE_2ARGS_SET_FS_PWD 1
14984_ACEOF
14985
14986
14987else
8934764e 14988 $as_echo "$as_me: failed program was:" >&5
51a727e9
BB
14989sed 's/^/| /' conftest.$ac_ext >&5
14990
8934764e
BB
14991 { $as_echo "$as_me:$LINENO: result: no" >&5
14992$as_echo "no" >&6; }
51a727e9
BB
14993
14994
14995
6ae7fef5
BB
14996fi
14997
14998 rm -Rf build
14999
15000
15001
8934764e
BB
15002 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
15003$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
15004
15005
dbe561d8 15006cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15007/* confdefs.h. */
15008_ACEOF
15009cat confdefs.h >>conftest.$ac_ext
15010cat >>conftest.$ac_ext <<_ACEOF
15011/* end confdefs.h. */
15012
15013
15014 #include <linux/fs.h>
15015
15016int
15017main (void)
15018{
15019
15020 vfs_unlink(NULL, NULL);
15021
15022 ;
15023 return 0;
15024}
15025
15026_ACEOF
15027
15028
15029 rm -Rf build && mkdir -p build
15030 echo "obj-m := conftest.o" >build/Makefile
15031 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
8934764e 15035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15036 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
8934764e 15040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15041 (exit $ac_status); }; }; then
15042
8934764e
BB
15043 { $as_echo "$as_me:$LINENO: result: yes" >&5
15044$as_echo "yes" >&6; }
6ae7fef5
BB
15045
15046cat >>confdefs.h <<\_ACEOF
15047#define HAVE_2ARGS_VFS_UNLINK 1
15048_ACEOF
15049
15050
15051else
8934764e 15052 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
8934764e
BB
15055 { $as_echo "$as_me:$LINENO: result: no" >&5
15056$as_echo "no" >&6; }
6ae7fef5
BB
15057
15058
15059
15060fi
15061
15062 rm -Rf build
15063
15064
15065
8934764e
BB
15066 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15067$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
15068
15069
dbe561d8 15070cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
15075/* end confdefs.h. */
15076
15077
15078 #include <linux/fs.h>
15079
15080int
15081main (void)
15082{
15083
15084 vfs_rename(NULL, NULL, NULL, NULL);
15085
15086 ;
15087 return 0;
15088}
15089
15090_ACEOF
15091
15092
15093 rm -Rf build && mkdir -p build
15094 echo "obj-m := conftest.o" >build/Makefile
15095 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
8934764e 15099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15100 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15103 ac_status=$?
8934764e 15104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15105 (exit $ac_status); }; }; then
15106
8934764e
BB
15107 { $as_echo "$as_me:$LINENO: result: yes" >&5
15108$as_echo "yes" >&6; }
6ae7fef5
BB
15109
15110cat >>confdefs.h <<\_ACEOF
15111#define HAVE_4ARGS_VFS_RENAME 1
15112_ACEOF
15113
15114
15115else
8934764e 15116 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
8934764e
BB
15119 { $as_echo "$as_me:$LINENO: result: no" >&5
15120$as_echo "no" >&6; }
6ae7fef5
BB
15121
15122
15123
15124fi
15125
15126 rm -Rf build
15127
15128
15129
15130
0d0b5237
BB
15131 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15132$as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15133 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15134 $LINUX_OBJ/Module*.symvers 2>/dev/null
15135 rc=$?
15136 if test $rc -ne 0; then
15137 export=0
15138 for file in fs/sync.c; do
15139 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15140 "$LINUX_OBJ/$file" 2>/dev/null
15141 rc=$?
15142 if test $rc -eq 0; then
15143 export=1
15144 break;
15145 fi
15146 done
15147 if test $export -eq 0; then
15148 { $as_echo "$as_me:$LINENO: result: no" >&5
15149$as_echo "no" >&6; }
15150
15151 else
15152 { $as_echo "$as_me:$LINENO: result: yes" >&5
15153$as_echo "yes" >&6; }
15154
15155cat >>confdefs.h <<\_ACEOF
15156#define HAVE_VFS_FSYNC 1
15157_ACEOF
15158
15159 fi
15160 else
15161 { $as_echo "$as_me:$LINENO: result: yes" >&5
15162$as_echo "yes" >&6; }
15163
15164cat >>confdefs.h <<\_ACEOF
15165#define HAVE_VFS_FSYNC 1
15166_ACEOF
15167
15168 fi
15169
15170
15171
15172 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15173$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15174
15175
15176cat confdefs.h - <<_ACEOF >conftest.c
15177/* confdefs.h. */
15178_ACEOF
15179cat confdefs.h >>conftest.$ac_ext
15180cat >>conftest.$ac_ext <<_ACEOF
15181/* end confdefs.h. */
15182
15183
15184 #include <linux/fs.h>
15185
15186int
15187main (void)
15188{
15189
15190 vfs_fsync(NULL, 0);
15191
15192 ;
15193 return 0;
15194}
15195
15196_ACEOF
15197
15198
15199 rm -Rf build && mkdir -p build
15200 echo "obj-m := conftest.o" >build/Makefile
15201 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15204 ac_status=$?
15205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15209 ac_status=$?
15210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212
15213 { $as_echo "$as_me:$LINENO: result: yes" >&5
15214$as_echo "yes" >&6; }
15215
15216cat >>confdefs.h <<\_ACEOF
15217#define HAVE_2ARGS_VFS_FSYNC 1
15218_ACEOF
15219
15220
15221else
15222 $as_echo "$as_me: failed program was:" >&5
15223sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 { $as_echo "$as_me:$LINENO: result: no" >&5
15226$as_echo "no" >&6; }
15227
15228
15229
15230fi
15231
15232 rm -Rf build
15233
15234
15235
15236
9b2048c2
BB
15237 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15238$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
97fd6a07
BB
15239 tmp_flags="$EXTRA_KCFLAGS"
15240 EXTRA_KCFLAGS="-Werror"
9b2048c2
BB
15241
15242
15243cat confdefs.h - <<_ACEOF >conftest.c
15244/* confdefs.h. */
15245_ACEOF
15246cat confdefs.h >>conftest.$ac_ext
15247cat >>conftest.$ac_ext <<_ACEOF
15248/* end confdefs.h. */
15249
15250
15251 #include <linux/sched.h>
15252 #include <linux/fs_struct.h>
15253
15254int
15255main (void)
15256{
15257
15258 struct fs_struct fs;
15259 spin_lock_init(&fs.lock);
15260
15261 ;
15262 return 0;
15263}
15264
15265_ACEOF
15266
15267
15268 rm -Rf build && mkdir -p build
15269 echo "obj-m := conftest.o" >build/Makefile
15270 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281
15282 { $as_echo "$as_me:$LINENO: result: yes" >&5
15283$as_echo "yes" >&6; }
15284
15285cat >>confdefs.h <<\_ACEOF
15286#define HAVE_FS_STRUCT_SPINLOCK 1
15287_ACEOF
15288
15289
15290else
15291 $as_echo "$as_me: failed program was:" >&5
15292sed 's/^/| /' conftest.$ac_ext >&5
15293
15294 { $as_echo "$as_me:$LINENO: result: no" >&5
15295$as_echo "no" >&6; }
15296
15297
15298
15299fi
15300
15301 rm -Rf build
15302
15303
97fd6a07 15304 EXTRA_KCFLAGS="$tmp_flags"
9b2048c2
BB
15305
15306
8934764e
BB
15307 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15308$as_echo_n "checking whether struct cred exists... " >&6; }
6ae7fef5
BB
15309
15310
dbe561d8 15311cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15312/* confdefs.h. */
15313_ACEOF
15314cat confdefs.h >>conftest.$ac_ext
15315cat >>conftest.$ac_ext <<_ACEOF
15316/* end confdefs.h. */
15317
15318
15319 #include <linux/cred.h>
15320
15321int
15322main (void)
15323{
15324
03318641 15325 struct cred *cr __attribute__ ((unused));
6ae7fef5
BB
15326 cr = NULL;
15327
15328 ;
15329 return 0;
15330}
15331
15332_ACEOF
15333
15334
15335 rm -Rf build && mkdir -p build
15336 echo "obj-m := conftest.o" >build/Makefile
15337 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339 (eval $ac_try) 2>&5
15340 ac_status=$?
8934764e 15341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15342 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15345 ac_status=$?
8934764e 15346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15347 (exit $ac_status); }; }; then
15348
8934764e
BB
15349 { $as_echo "$as_me:$LINENO: result: yes" >&5
15350$as_echo "yes" >&6; }
6ae7fef5
BB
15351
15352cat >>confdefs.h <<\_ACEOF
15353#define HAVE_CRED_STRUCT 1
15354_ACEOF
15355
15356
15357else
8934764e 15358 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15359sed 's/^/| /' conftest.$ac_ext >&5
15360
8934764e
BB
15361 { $as_echo "$as_me:$LINENO: result: no" >&5
15362$as_echo "no" >&6; }
6ae7fef5
BB
15363
15364
15365
15366fi
15367
15368 rm -Rf build
15369
15370
15371
15372
8934764e
BB
15373 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15374$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
6ae7fef5
BB
15375 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15376 $LINUX_OBJ/Module*.symvers 2>/dev/null
15377 rc=$?
15378 if test $rc -ne 0; then
15379 export=0
15380 for file in ; do
15381 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15382 "$LINUX_OBJ/$file" 2>/dev/null
15383 rc=$?
15384 if test $rc -eq 0; then
15385 export=1
15386 break;
15387 fi
15388 done
15389 if test $export -eq 0; then
8934764e
BB
15390 { $as_echo "$as_me:$LINENO: result: no" >&5
15391$as_echo "no" >&6; }
6ae7fef5
BB
15392
15393 else
8934764e
BB
15394 { $as_echo "$as_me:$LINENO: result: yes" >&5
15395$as_echo "yes" >&6; }
6ae7fef5
BB
15396
15397cat >>confdefs.h <<\_ACEOF
15398#define HAVE_GROUPS_SEARCH 1
15399_ACEOF
15400
15401 fi
15402 else
8934764e
BB
15403 { $as_echo "$as_me:$LINENO: result: yes" >&5
15404$as_echo "yes" >&6; }
6ae7fef5
BB
15405
15406cat >>confdefs.h <<\_ACEOF
15407#define HAVE_GROUPS_SEARCH 1
15408_ACEOF
15409
15410 fi
15411
15412
e811949a 15413
8934764e
BB
15414 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15415$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
e811949a
BB
15416 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15417 $LINUX_OBJ/Module*.symvers 2>/dev/null
15418 rc=$?
15419 if test $rc -ne 0; then
15420 export=0
15421 for file in ; do
15422 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15423 "$LINUX_OBJ/$file" 2>/dev/null
15424 rc=$?
15425 if test $rc -eq 0; then
15426 export=1
15427 break;
15428 fi
15429 done
15430 if test $export -eq 0; then
8934764e
BB
15431 { $as_echo "$as_me:$LINENO: result: no" >&5
15432$as_echo "no" >&6; }
e811949a
BB
15433
15434 else
8934764e
BB
15435 { $as_echo "$as_me:$LINENO: result: yes" >&5
15436$as_echo "yes" >&6; }
e811949a
BB
15437
15438cat >>confdefs.h <<\_ACEOF
15439#define HAVE_PUT_TASK_STRUCT 1
15440_ACEOF
15441
15442 fi
15443 else
8934764e
BB
15444 { $as_echo "$as_me:$LINENO: result: yes" >&5
15445$as_echo "yes" >&6; }
e811949a
BB
15446
15447cat >>confdefs.h <<\_ACEOF
15448#define HAVE_PUT_TASK_STRUCT 1
15449_ACEOF
15450
15451 fi
15452
15453
3977f837 15454
8934764e
BB
15455 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15456$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
3977f837
BB
15457
15458
dbe561d8 15459cat confdefs.h - <<_ACEOF >conftest.c
3977f837
BB
15460/* confdefs.h. */
15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
15464/* end confdefs.h. */
15465
15466
15467 #include <linux/sysctl.h>
15468
15469int
15470main (void)
15471{
15472
15473 proc_dostring(NULL, 0, NULL, NULL, NULL);
15474
15475 ;
15476 return 0;
15477}
15478
15479_ACEOF
15480
15481
15482 rm -Rf build && mkdir -p build
15483 echo "obj-m := conftest.o" >build/Makefile
15484 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15487 ac_status=$?
8934764e 15488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
15489 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
8934764e 15493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
15494 (exit $ac_status); }; }; then
15495
8934764e
BB
15496 { $as_echo "$as_me:$LINENO: result: yes" >&5
15497$as_echo "yes" >&6; }
3977f837
BB
15498
15499cat >>confdefs.h <<\_ACEOF
15500#define HAVE_5ARGS_PROC_HANDLER 1
15501_ACEOF
15502
15503
15504else
8934764e 15505 $as_echo "$as_me: failed program was:" >&5
3977f837
BB
15506sed 's/^/| /' conftest.$ac_ext >&5
15507
8934764e
BB
15508 { $as_echo "$as_me:$LINENO: result: no" >&5
15509$as_echo "no" >&6; }
3977f837
BB
15510
15511
15512
15513fi
15514
15515 rm -Rf build
15516
15517
15518
b868e22f
BB
15519
15520 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15521$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15522 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15523 $LINUX_OBJ/Module*.symvers 2>/dev/null
15524 rc=$?
15525 if test $rc -ne 0; then
15526 export=0
15527 for file in ; do
15528 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15529 "$LINUX_OBJ/$file" 2>/dev/null
15530 rc=$?
15531 if test $rc -eq 0; then
15532 export=1
15533 break;
15534 fi
15535 done
15536 if test $export -eq 0; then
15537 { $as_echo "$as_me:$LINENO: result: no" >&5
15538$as_echo "no" >&6; }
15539
15540 else
15541 { $as_echo "$as_me:$LINENO: result: yes" >&5
15542$as_echo "yes" >&6; }
15543
15544cat >>confdefs.h <<\_ACEOF
15545#define HAVE_KVASPRINTF 1
15546_ACEOF
15547
15548 fi
15549 else
15550 { $as_echo "$as_me:$LINENO: result: yes" >&5
15551$as_echo "yes" >&6; }
15552
15553cat >>confdefs.h <<\_ACEOF
15554#define HAVE_KVASPRINTF 1
15555_ACEOF
15556
15557 fi
15558
15559
f0ff89fc 15560
46aa7b39
NB
15561 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15562$as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15563 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15564 $LINUX_OBJ/Module*.symvers 2>/dev/null
15565 rc=$?
15566 if test $rc -ne 0; then
15567 export=0
15568 for file in lib/rwsem-spinlock.c; do
15569 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15570 "$LINUX_OBJ/$file" 2>/dev/null
15571 rc=$?
15572 if test $rc -eq 0; then
15573 export=1
15574 break;
15575 fi
15576 done
15577 if test $export -eq 0; then
15578 { $as_echo "$as_me:$LINENO: result: no" >&5
15579$as_echo "no" >&6; }
15580
15581 else
15582 { $as_echo "$as_me:$LINENO: result: yes" >&5
15583$as_echo "yes" >&6; }
15584
15585cat >>confdefs.h <<\_ACEOF
15586#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15587_ACEOF
15588
15589 fi
15590 else
15591 { $as_echo "$as_me:$LINENO: result: yes" >&5
15592$as_echo "yes" >&6; }
15593
15594cat >>confdefs.h <<\_ACEOF
15595#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15596_ACEOF
15597
15598 fi
15599
15600
914b0631
BB
15601
15602 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15603$as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15604 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15605 $LINUX_OBJ/Module*.symvers 2>/dev/null
15606 rc=$?
15607 if test $rc -ne 0; then
15608 export=0
15609 for file in ; do
15610 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15611 "$LINUX_OBJ/$file" 2>/dev/null
15612 rc=$?
15613 if test $rc -eq 0; then
15614 export=1
15615 break;
15616 fi
15617 done
15618 if test $export -eq 0; then
15619 { $as_echo "$as_me:$LINENO: result: no" >&5
15620$as_echo "no" >&6; }
15621
15622 else
15623 { $as_echo "$as_me:$LINENO: result: yes" >&5
15624$as_echo "yes" >&6; }
15625
15626cat >>confdefs.h <<\_ACEOF
15627#define HAVE_INVALIDATE_INODES 1
15628_ACEOF
15629
15630 fi
15631 else
15632 { $as_echo "$as_me:$LINENO: result: yes" >&5
15633$as_echo "yes" >&6; }
15634
15635cat >>confdefs.h <<\_ACEOF
15636#define HAVE_INVALIDATE_INODES 1
15637_ACEOF
15638
15639 fi
15640
15641
9b0f9079
BB
15642 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15643$as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15644
15645
15646cat confdefs.h - <<_ACEOF >conftest.c
15647/* confdefs.h. */
15648_ACEOF
15649cat confdefs.h >>conftest.$ac_ext
15650cat >>conftest.$ac_ext <<_ACEOF
15651/* end confdefs.h. */
15652
15653
15654 #include <linux/fs.h>
15655
15656int
15657main (void)
15658{
15659
15660 return __invalidate_device(NULL, 0);
15661
15662 ;
15663 return 0;
15664}
15665
15666_ACEOF
15667
15668
15669 rm -Rf build && mkdir -p build
15670 echo "obj-m := conftest.o" >build/Makefile
15671 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15674 ac_status=$?
15675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678 (eval $ac_try) 2>&5
15679 ac_status=$?
15680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681 (exit $ac_status); }; }; then
15682
15683 { $as_echo "$as_me:$LINENO: result: yes" >&5
15684$as_echo "yes" >&6; }
15685
15686cat >>confdefs.h <<\_ACEOF
15687#define HAVE_2ARGS_INVALIDATE_INODES 1
15688_ACEOF
15689
15690
15691else
15692 $as_echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
15695 { $as_echo "$as_me:$LINENO: result: no" >&5
15696$as_echo "no" >&6; }
15697
15698
15699
15700fi
15701
15702 rm -Rf build
15703
15704
15705
e76f4bf1
BB
15706
15707 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15708$as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15709 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15710 $LINUX_OBJ/Module*.symvers 2>/dev/null
15711 rc=$?
15712 if test $rc -ne 0; then
15713 export=0
15714 for file in fs/dcache.c; do
15715 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15716 "$LINUX_OBJ/$file" 2>/dev/null
15717 rc=$?
15718 if test $rc -eq 0; then
15719 export=1
15720 break;
15721 fi
15722 done
15723 if test $export -eq 0; then
15724 { $as_echo "$as_me:$LINENO: result: no" >&5
15725$as_echo "no" >&6; }
15726
15727 else
15728 { $as_echo "$as_me:$LINENO: result: yes" >&5
15729$as_echo "yes" >&6; }
15730
15731cat >>confdefs.h <<\_ACEOF
15732#define HAVE_SHRINK_DCACHE_MEMORY 1
15733_ACEOF
15734
15735 fi
15736 else
15737 { $as_echo "$as_me:$LINENO: result: yes" >&5
15738$as_echo "yes" >&6; }
15739
15740cat >>confdefs.h <<\_ACEOF
15741#define HAVE_SHRINK_DCACHE_MEMORY 1
15742_ACEOF
15743
15744 fi
15745
15746
15747
15748 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15749$as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15750 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15751 $LINUX_OBJ/Module*.symvers 2>/dev/null
15752 rc=$?
15753 if test $rc -ne 0; then
15754 export=0
15755 for file in fs/inode.c; do
15756 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15757 "$LINUX_OBJ/$file" 2>/dev/null
15758 rc=$?
15759 if test $rc -eq 0; then
15760 export=1
15761 break;
15762 fi
15763 done
15764 if test $export -eq 0; then
15765 { $as_echo "$as_me:$LINENO: result: no" >&5
15766$as_echo "no" >&6; }
15767
15768 else
15769 { $as_echo "$as_me:$LINENO: result: yes" >&5
15770$as_echo "yes" >&6; }
15771
15772cat >>confdefs.h <<\_ACEOF
15773#define HAVE_SHRINK_ICACHE_MEMORY 1
15774_ACEOF
15775
15776 fi
15777 else
15778 { $as_echo "$as_me:$LINENO: result: yes" >&5
15779$as_echo "yes" >&6; }
15780
15781cat >>confdefs.h <<\_ACEOF
15782#define HAVE_SHRINK_ICACHE_MEMORY 1
15783_ACEOF
15784
15785 fi
15786
15787
b1cbc461 15788
12ff95ff
BB
15789
15790 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15791$as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15792 header=0
15793 for file in include/linux/namei.h; do
15794 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15795 rc=$?
15796 if test $rc -eq 0; then
15797 header=1
15798 break;
15799 fi
15800 done
15801 if test $header -eq 0; then
15802 { $as_echo "$as_me:$LINENO: result: no" >&5
15803$as_echo "no" >&6; }
15804
15805 else
15806 { $as_echo "$as_me:$LINENO: result: yes" >&5
15807$as_echo "yes" >&6; }
15808
15809cat >>confdefs.h <<\_ACEOF
15810#define HAVE_KERN_PATH_PARENT_HEADER 1
15811_ACEOF
15812
15813 fi
15814
15815
15816
b1cbc461
BB
15817 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15818$as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15819 grep -q -E '[[:space:]]kern_path_parent[[: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/namei.c; do
15825 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
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
12ff95ff 15842#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
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
12ff95ff 15851#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
15852_ACEOF
15853
15854 fi
15855
15856
3dfc591a
BB
15857 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15858$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15859
15860
15861cat confdefs.h - <<_ACEOF >conftest.c
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867
15868
15869 #include <linux/zlib.h>
15870
15871int
15872main (void)
15873{
15874
15875 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15876
15877 ;
15878 return 0;
15879}
15880
15881_ACEOF
15882
15883
15884 rm -Rf build && mkdir -p build
15885 echo "obj-m := conftest.o" >build/Makefile
15886 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15889 ac_status=$?
15890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897
15898 { $as_echo "$as_me:$LINENO: result: yes" >&5
15899$as_echo "yes" >&6; }
15900
15901cat >>confdefs.h <<\_ACEOF
15902#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
15903_ACEOF
15904
15905
15906else
15907 $as_echo "$as_me: failed program was:" >&5
15908sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 { $as_echo "$as_me:$LINENO: result: no" >&5
15911$as_echo "no" >&6; }
15912
15913
15914
a55bcaad
BB
15915fi
15916
15917 rm -Rf build
15918
15919
15920
15921
15922 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
15923$as_echo_n "checking whether struct shrink_control exists... " >&6; }
15924
15925
15926cat confdefs.h - <<_ACEOF >conftest.c
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932
15933
15934 #include <linux/mm.h>
15935
15936int
15937main (void)
15938{
15939
15940 struct shrink_control sc __attribute__ ((unused));
15941
15942 sc.nr_to_scan = 0;
15943 sc.gfp_mask = GFP_KERNEL;
15944
15945 ;
15946 return 0;
15947}
15948
15949_ACEOF
15950
15951
15952 rm -Rf build && mkdir -p build
15953 echo "obj-m := conftest.o" >build/Makefile
15954 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; }; then
15965
15966 { $as_echo "$as_me:$LINENO: result: yes" >&5
15967$as_echo "yes" >&6; }
15968
15969cat >>confdefs.h <<\_ACEOF
15970#define HAVE_SHRINK_CONTROL_STRUCT 1
15971_ACEOF
15972
15973
15974else
15975 $as_echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 { $as_echo "$as_me:$LINENO: result: no" >&5
15979$as_echo "no" >&6; }
15980
15981
15982
3dfc591a
BB
15983fi
15984
15985 rm -Rf build
15986
15987
15988
6ae7fef5 15989 ;;
ad35b6a6 15990 user) ;;
6ae7fef5
BB
15991 all)
15992
15993
8934764e 15994# Check whether --with-linux was given.
6ae7fef5 15995if test "${with_linux+set}" = set; then
8934764e
BB
15996 withval=$with_linux; kernelsrc="$withval"
15997fi
6ae7fef5
BB
15998
15999
8934764e
BB
16000
16001# Check whether --with-linux-obj was given.
6ae7fef5 16002if test "${with_linux_obj+set}" = set; then
8934764e
BB
16003 withval=$with_linux_obj; kernelbuild="$withval"
16004fi
6ae7fef5 16005
8934764e
BB
16006
16007 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16008$as_echo_n "checking kernel source directory... " >&6; }
6ae7fef5 16009 if test -z "$kernelsrc"; then
22ccfaa8
BB
16010 if test -e "/lib/modules/$(uname -r)/source"; then
16011 headersdir="/lib/modules/$(uname -r)/source"
16012 sourcelink=$(readlink -f "$headersdir")
16013 elif test -e "/lib/modules/$(uname -r)/build"; then
16014 headersdir="/lib/modules/$(uname -r)/build"
534c4e38
BM
16015 sourcelink=$(readlink -f "$headersdir")
16016 else
16017 sourcelink=$(ls -1d /usr/src/kernels/* \
16018 /usr/src/linux-* \
16019 2>/dev/null | grep -v obj | tail -1)
16020 fi
6ae7fef5 16021
8fd4e3af 16022 if test -n "$sourcelink" && test -e ${sourcelink}; then
6ae7fef5
BB
16023 kernelsrc=`readlink -f ${sourcelink}`
16024 else
8934764e
BB
16025 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16026$as_echo "Not found" >&6; }
16027 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
16028 *** Please make sure the kernel devel package for your distribution
16029 *** is installed then try again. If that fails you can specify the
16030 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 16031$as_echo "$as_me: error:
8fd4e3af
BB
16032 *** Please make sure the kernel devel package for your distribution
16033 *** is installed then try again. If that fails you can specify the
16034 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
6ae7fef5
BB
16035 { (exit 1); exit 1; }; }
16036 fi
16037 else
16038 if test "$kernelsrc" = "NONE"; then
16039 kernsrcver=NONE
16040 fi
16041 fi
16042
8934764e
BB
16043 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16044$as_echo "$kernelsrc" >&6; }
16045 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16046$as_echo_n "checking kernel build directory... " >&6; }
6ae7fef5 16047 if test -z "$kernelbuild"; then
22ccfaa8
BB
16048 if test -e "/lib/modules/$(uname -r)/build"; then
16049 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16050 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
e2d28a37
BB
16051 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16052 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16053 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16054 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16055 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
6ae7fef5
BB
16056 else
16057 kernelbuild=${kernelsrc}
16058 fi
16059 fi
8934764e
BB
16060 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16061$as_echo "$kernelbuild" >&6; }
6ae7fef5 16062
8934764e
BB
16063 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16064$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
16065 utsrelease1=$kernelbuild/include/linux/version.h
16066 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16067 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16068 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16069 utsrelease=linux/version.h
16070 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16071 utsrelease=linux/utsrelease.h
16072 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16073 utsrelease=generated/utsrelease.h
16074 fi
6ae7fef5 16075
fd921c2e
BB
16076 if test "$utsrelease"; then
16077 kernsrcver=`(echo "#include <$utsrelease>";
6ae7fef5
BB
16078 echo "kernsrcver=UTS_RELEASE") |
16079 cpp -I $kernelbuild/include |
16080 grep "^kernsrcver=" | cut -d \" -f 2`
6ae7fef5 16081
fd921c2e
BB
16082 if test -z "$kernsrcver"; then
16083 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16084$as_echo "Not found" >&6; }
16085 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16086$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16087 { (exit 1); exit 1; }; }
16088 fi
16089 else
8934764e
BB
16090 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16091$as_echo "Not found" >&6; }
fd921c2e
BB
16092 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16093$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
bf9f3bac 16094 { (exit 1); exit 1; }; }
16095 fi
16096
8934764e
BB
16097 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16098$as_echo "$kernsrcver" >&6; }
bf9f3bac 16099
bf9f3bac 16100 LINUX=${kernelsrc}
16101 LINUX_OBJ=${kernelbuild}
c5f70460
BB
16102 LINUX_VERSION=${kernsrcver}
16103
bf9f3bac 16104
16105
16106
16107
16108
bb339d06 16109 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
16110 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16111$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
16112 if test -f "$modpost"; then
16113 if grep -q Modules.symvers $modpost; then
16114 LINUX_SYMBOLS=Modules.symvers
16115 else
16116 LINUX_SYMBOLS=Module.symvers
16117 fi
912fd84d
BB
16118
16119 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16120 { { $as_echo "$as_me:$LINENO: error:
16121 *** Please make sure the kernel devel package for your distribution
16122 *** is installed. If your building with a custom kernel make sure the
16123 *** kernel is configured, built, and the '--with-linux=PATH' configure
16124 *** option refers to the location of the kernel source." >&5
16125$as_echo "$as_me: error:
16126 *** Please make sure the kernel devel package for your distribution
16127 *** is installed. If your building with a custom kernel make sure the
16128 *** kernel is configured, built, and the '--with-linux=PATH' configure
16129 *** option refers to the location of the kernel source." >&2;}
16130 { (exit 1); exit 1; }; }
16131 fi
2e0e7e69 16132 else
bb339d06 16133 LINUX_SYMBOLS=NONE
2e0e7e69 16134 fi
8934764e
BB
16135 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16136$as_echo "$LINUX_SYMBOLS" >&6; }
2e0e7e69
BB
16137
16138
16139
86933a6e 16140
7731d46b
BB
16141 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16142$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16143
16144
16145cat confdefs.h - <<_ACEOF >conftest.c
16146/* confdefs.h. */
16147_ACEOF
16148cat confdefs.h >>conftest.$ac_ext
16149cat >>conftest.$ac_ext <<_ACEOF
16150/* end confdefs.h. */
16151
16152
c064bdee 16153 #include <linux/module.h>
7731d46b
BB
16154
16155int
16156main (void)
16157{
16158
16159 #ifndef CONFIG_PREEMPT
16160 #error CONFIG_PREEMPT not #defined
16161 #endif
16162
16163 ;
16164 return 0;
16165}
16166
16167_ACEOF
16168
16169
16170 rm -Rf build && mkdir -p build
16171 echo "obj-m := conftest.o" >build/Makefile
16172 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16175 ac_status=$?
16176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183
16184 { $as_echo "$as_me:$LINENO: result: yes" >&5
16185$as_echo "yes" >&6; }
16186 { { $as_echo "$as_me:$LINENO: error:
16187 *** Kernel built with CONFIG_PREEMPT which is not supported.
16188 ** You must rebuild your kernel without this option." >&5
16189$as_echo "$as_me: error:
16190 *** Kernel built with CONFIG_PREEMPT which is not supported.
16191 ** You must rebuild your kernel without this option." >&2;}
16192 { (exit 1); exit 1; }; }
16193
16194else
16195 $as_echo "$as_me: failed program was:" >&5
16196sed 's/^/| /' conftest.$ac_ext >&5
16197
16198 { $as_echo "$as_me:$LINENO: result: no" >&5
16199$as_echo "no" >&6; }
16200
16201
16202
16203
16204fi
16205
16206 rm -Rf build
16207
16208
16209
16210
16211
86933a6e
BB
16212 if test "${LINUX_OBJ}" != "${LINUX}"; then
16213 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16214 fi
16215
16216
a7958f7e 16217 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
86933a6e 16218
bf9f3bac 16219
16220
c950d148
BB
16221 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16222$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 16223 # Check whether --enable-debug was given.
bf9f3bac 16224if test "${enable_debug+set}" = set; then
8934764e 16225 enableval=$enable_debug;
055ffd98
BB
16226else
16227 enable_debug=no
8934764e
BB
16228fi
16229
055ffd98
BB
16230
16231 if test "x$enable_debug" = xyes; then
c950d148 16232
c950d148
BB
16233 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16234 DEBUG_CFLAGS="-DDEBUG -Werror"
16235
055ffd98 16236else
c950d148 16237
c950d148
BB
16238 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16239 DEBUG_CFLAGS="-DNDEBUG"
16240
055ffd98
BB
16241fi
16242
16243
c950d148 16244
8934764e
BB
16245 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16246$as_echo "$enable_debug" >&6; }
bf9f3bac 16247
16248
8934764e 16249 # Check whether --enable-debug-kmem was given.
bf9f3bac 16250if test "${enable_debug_kmem+set}" = set; then
8934764e 16251 enableval=$enable_debug_kmem;
055ffd98
BB
16252else
16253 enable_debug_kmem=yes
8934764e
BB
16254fi
16255
055ffd98
BB
16256
16257 if test "x$enable_debug_kmem" = xyes; then
bf9f3bac 16258
16259cat >>confdefs.h <<\_ACEOF
16260#define DEBUG_KMEM 1
16261_ACEOF
16262
16263 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 16264fi
bf9f3bac 16265
bf9f3bac 16266
8934764e
BB
16267 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16268$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16269 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16270$as_echo "$enable_debug_kmem" >&6; }
bf9f3bac 16271
16272
8934764e 16273 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 16274if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 16275 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
16276else
16277 enable_debug_kmem_tracking=no
8934764e
BB
16278fi
16279
055ffd98
BB
16280
16281 if test "x$enable_debug_kmem_tracking" = xyes; then
bf9f3bac 16282
16283cat >>confdefs.h <<\_ACEOF
055ffd98 16284#define DEBUG_KMEM_TRACKING 1
bf9f3bac 16285_ACEOF
16286
055ffd98
BB
16287 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16288fi
16289
16290
8934764e
BB
16291 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16292$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16293 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16294$as_echo "$enable_debug_kmem_tracking" >&6; }
bf9f3bac 16295
5e9b5d83 16296
8934764e 16297 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 16298if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 16299 enableval=$enable_atomic_spinlocks;
5e9b5d83 16300else
d04c8a56 16301 enable_atomic_spinlocks=check
8934764e
BB
16302fi
16303
5e9b5d83 16304
bf9f3bac 16305
16306
dbe561d8 16307cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16308/* confdefs.h. */
16309_ACEOF
16310cat confdefs.h >>conftest.$ac_ext
16311cat >>conftest.$ac_ext <<_ACEOF
16312/* end confdefs.h. */
16313
16314
d04c8a56 16315 #include <asm/atomic.h>
bf9f3bac 16316
16317int
16318main (void)
16319{
16320
03318641 16321 atomic64_t *ptr __attribute__ ((unused));
bf9f3bac 16322
16323 ;
16324 return 0;
16325}
16326
16327_ACEOF
16328
c5f70460
BB
16329
16330 rm -Rf build && mkdir -p build
16331 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16332 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
8934764e 16336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16337 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
8934764e 16341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16342 (exit $ac_status); }; }; then
16343
d04c8a56 16344 have_atomic64_t=yes
bf9f3bac 16345
16346cat >>confdefs.h <<\_ACEOF
d04c8a56 16347#define HAVE_ATOMIC64_T 1
bf9f3bac 16348_ACEOF
16349
16350
16351else
8934764e 16352 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16353sed 's/^/| /' conftest.$ac_ext >&5
16354
d04c8a56 16355 have_atomic64_t=no
bf9f3bac 16356
c5f70460
BB
16357
16358
bf9f3bac 16359fi
c5f70460
BB
16360
16361 rm -Rf build
16362
bf9f3bac 16363
16364
d04c8a56
BB
16365 if test "x$enable_atomic_spinlocks" = xcheck; then
16366
16367 if test "x$have_atomic64_t" = xyes; then
16368
16369 enable_atomic_spinlocks=no
16370
16371else
16372
16373 enable_atomic_spinlocks=yes
16374
16375fi
16376
16377
16378fi
16379
16380
16381 if test "x$enable_atomic_spinlocks" = xyes; then
16382
16383
16384cat >>confdefs.h <<\_ACEOF
16385#define ATOMIC_SPINLOCK 1
16386_ACEOF
16387
16388
16389else
16390
16391 if test "x$have_atomic64_t" = xno; then
16392
8934764e
BB
16393 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16395{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 16396See \`config.log' for more details." >&5
8934764e 16397$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 16398See \`config.log' for more details." >&2;}
8934764e 16399 { (exit 1); exit 1; }; }; }
d04c8a56
BB
16400
16401fi
16402
16403
16404fi
16405
16406
8934764e
BB
16407 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16408$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16409 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16410$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 16411
8934764e
BB
16412 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16413$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16414 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16415$as_echo "$have_atomic64_t" >&6; }
d04c8a56 16416
8934764e
BB
16417 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16418$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
bf9f3bac 16419
16420
dbe561d8 16421cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16422/* confdefs.h. */
16423_ACEOF
16424cat confdefs.h >>conftest.$ac_ext
16425cat >>conftest.$ac_ext <<_ACEOF
16426/* end confdefs.h. */
16427
16428
16429 #include <asm/atomic.h>
5ec44a37 16430 #include <asm/system.h>
bf9f3bac 16431
16432int
16433main (void)
16434{
16435
d04c8a56 16436 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
bf9f3bac 16437
16438 ;
16439 return 0;
16440}
16441
16442_ACEOF
16443
c5f70460
BB
16444
16445 rm -Rf build && mkdir -p build
16446 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16447 if { 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 16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
8934764e 16451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16452 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
8934764e 16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16457 (exit $ac_status); }; }; then
16458
8934764e
BB
16459 { $as_echo "$as_me:$LINENO: result: yes" >&5
16460$as_echo "yes" >&6; }
bf9f3bac 16461
16462cat >>confdefs.h <<\_ACEOF
d04c8a56 16463#define HAVE_ATOMIC64_CMPXCHG 1
bf9f3bac 16464_ACEOF
16465
16466
302b88e6 16467else
8934764e 16468 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
16469sed 's/^/| /' conftest.$ac_ext >&5
16470
8934764e
BB
16471 { $as_echo "$as_me:$LINENO: result: no" >&5
16472$as_echo "no" >&6; }
302b88e6
BB
16473
16474
16475
16476fi
16477
16478 rm -Rf build
16479
16480
16481
8934764e
BB
16482 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16483$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
16484
16485
dbe561d8 16486cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
16487/* confdefs.h. */
16488_ACEOF
16489cat confdefs.h >>conftest.$ac_ext
16490cat >>conftest.$ac_ext <<_ACEOF
16491/* end confdefs.h. */
16492
16493
16494 #include <asm/atomic.h>
16495
16496int
16497main (void)
16498{
16499
d04c8a56 16500 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
16501
16502 ;
16503 return 0;
16504}
16505
16506_ACEOF
16507
16508
16509 rm -Rf build && mkdir -p build
16510 echo "obj-m := conftest.o" >build/Makefile
16511 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513 (eval $ac_try) 2>&5
16514 ac_status=$?
8934764e 16515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16516 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518 (eval $ac_try) 2>&5
16519 ac_status=$?
8934764e 16520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16521 (exit $ac_status); }; }; then
16522
8934764e
BB
16523 { $as_echo "$as_me:$LINENO: result: yes" >&5
16524$as_echo "yes" >&6; }
302b88e6
BB
16525
16526cat >>confdefs.h <<\_ACEOF
d04c8a56 16527#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
16528_ACEOF
16529
16530
16531else
8934764e 16532 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
16533sed 's/^/| /' conftest.$ac_ext >&5
16534
8934764e
BB
16535 { $as_echo "$as_me:$LINENO: result: no" >&5
16536$as_echo "no" >&6; }
302b88e6
BB
16537
16538
16539
16540fi
16541
16542 rm -Rf build
16543
16544
16545
8934764e
BB
16546 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16547$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
16548
16549
dbe561d8 16550cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
16551/* confdefs.h. */
16552_ACEOF
16553cat confdefs.h >>conftest.$ac_ext
16554cat >>conftest.$ac_ext <<_ACEOF
16555/* end confdefs.h. */
16556
16557
d04c8a56 16558 #include <linux/types.h>
302b88e6
BB
16559
16560int
16561main (void)
16562{
16563
03318641 16564 uintptr_t *ptr __attribute__ ((unused));
302b88e6
BB
16565
16566 ;
16567 return 0;
16568}
16569
16570_ACEOF
16571
16572
16573 rm -Rf build && mkdir -p build
16574 echo "obj-m := conftest.o" >build/Makefile
16575 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
8934764e 16579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16580 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
8934764e 16584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16585 (exit $ac_status); }; }; then
16586
8934764e
BB
16587 { $as_echo "$as_me:$LINENO: result: yes" >&5
16588$as_echo "yes" >&6; }
302b88e6
BB
16589
16590cat >>confdefs.h <<\_ACEOF
d04c8a56 16591#define HAVE_UINTPTR_T 1
302b88e6
BB
16592_ACEOF
16593
16594
bf9f3bac 16595else
8934764e 16596 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16597sed 's/^/| /' conftest.$ac_ext >&5
16598
8934764e
BB
16599 { $as_echo "$as_me:$LINENO: result: no" >&5
16600$as_echo "no" >&6; }
bf9f3bac 16601
c5f70460
BB
16602
16603
bf9f3bac 16604fi
c5f70460
BB
16605
16606 rm -Rf build
16607
bf9f3bac 16608
16609
8934764e
BB
16610 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16611$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
bf9f3bac 16612
16613
dbe561d8 16614cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16615/* confdefs.h. */
16616_ACEOF
16617cat confdefs.h >>conftest.$ac_ext
16618cat >>conftest.$ac_ext <<_ACEOF
16619/* end confdefs.h. */
16620
16621
16622 #include <linux/workqueue.h>
16623
16624int
16625main (void)
16626{
16627
03318641 16628 struct work_struct work __attribute__ ((unused));
bf9f3bac 16629 INIT_WORK(&work, NULL, NULL);
16630
16631 ;
16632 return 0;
16633}
16634
16635_ACEOF
16636
c5f70460
BB
16637
16638 rm -Rf build && mkdir -p build
16639 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16640 if { 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 16641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
8934764e 16644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16645 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647 (eval $ac_try) 2>&5
16648 ac_status=$?
8934764e 16649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16650 (exit $ac_status); }; }; then
16651
8934764e
BB
16652 { $as_echo "$as_me:$LINENO: result: yes" >&5
16653$as_echo "yes" >&6; }
bf9f3bac 16654
16655cat >>confdefs.h <<\_ACEOF
16656#define HAVE_3ARGS_INIT_WORK 1
16657_ACEOF
16658
16659
16660else
8934764e 16661 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16662sed 's/^/| /' conftest.$ac_ext >&5
16663
8934764e
BB
16664 { $as_echo "$as_me:$LINENO: result: no" >&5
16665$as_echo "no" >&6; }
bf9f3bac 16666
c5f70460
BB
16667
16668
bf9f3bac 16669fi
c5f70460
BB
16670
16671 rm -Rf build
16672
bf9f3bac 16673
16674
8934764e
BB
16675 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16676$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
bf9f3bac 16677
16678
dbe561d8 16679cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16680/* confdefs.h. */
16681_ACEOF
16682cat confdefs.h >>conftest.$ac_ext
16683cat >>conftest.$ac_ext <<_ACEOF
16684/* end confdefs.h. */
16685
16686
16687 #include <linux/sysctl.h>
16688
16689int
16690main (void)
16691{
16692
03318641 16693 (void) register_sysctl_table(NULL, 0);
bf9f3bac 16694
16695 ;
16696 return 0;
16697}
16698
16699_ACEOF
16700
c5f70460
BB
16701
16702 rm -Rf build && mkdir -p build
16703 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16704 if { 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 16705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16706 (eval $ac_try) 2>&5
16707 ac_status=$?
8934764e 16708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16709 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711 (eval $ac_try) 2>&5
16712 ac_status=$?
8934764e 16713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16714 (exit $ac_status); }; }; then
16715
8934764e
BB
16716 { $as_echo "$as_me:$LINENO: result: yes" >&5
16717$as_echo "yes" >&6; }
bf9f3bac 16718
16719cat >>confdefs.h <<\_ACEOF
16720#define HAVE_2ARGS_REGISTER_SYSCTL 1
16721_ACEOF
16722
16723
16724else
8934764e 16725 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16726sed 's/^/| /' conftest.$ac_ext >&5
16727
8934764e
BB
16728 { $as_echo "$as_me:$LINENO: result: no" >&5
16729$as_echo "no" >&6; }
bf9f3bac 16730
c5f70460
BB
16731
16732
bf9f3bac 16733fi
c5f70460
BB
16734
16735 rm -Rf build
16736
bf9f3bac 16737
16738
16739
8934764e
BB
16740 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16741$as_echo_n "checking whether set_shrinker() available... " >&6; }
bf9f3bac 16742
16743
dbe561d8 16744cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16745/* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
16750
16751
16752 #include <linux/mm.h>
16753
16754int
16755main (void)
16756{
16757
16758 return set_shrinker(DEFAULT_SEEKS, NULL);
16759
16760 ;
16761 return 0;
16762}
16763
16764_ACEOF
16765
c5f70460
BB
16766
16767 rm -Rf build && mkdir -p build
16768 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16769 if { 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 16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
8934764e 16773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16774 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
8934764e 16778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16779 (exit $ac_status); }; }; then
16780
8934764e
BB
16781 { $as_echo "$as_me:$LINENO: result: yes" >&5
16782$as_echo "yes" >&6; }
bf9f3bac 16783
16784cat >>confdefs.h <<\_ACEOF
16785#define HAVE_SET_SHRINKER 1
16786_ACEOF
16787
16788
16789else
8934764e 16790 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16791sed 's/^/| /' conftest.$ac_ext >&5
16792
8934764e
BB
16793 { $as_echo "$as_me:$LINENO: result: no" >&5
16794$as_echo "no" >&6; }
bf9f3bac 16795
c5f70460
BB
16796
16797
bf9f3bac 16798fi
c5f70460
BB
16799
16800 rm -Rf build
16801
bf9f3bac 16802
16803
23aa63cb
BB
16804 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
16805$as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
16806 tmp_flags="$EXTRA_KCFLAGS"
16807 EXTRA_KCFLAGS="-Werror"
16808
16809
16810cat confdefs.h - <<_ACEOF >conftest.c
16811/* confdefs.h. */
16812_ACEOF
16813cat confdefs.h >>conftest.$ac_ext
16814cat >>conftest.$ac_ext <<_ACEOF
16815/* end confdefs.h. */
16816
16817
16818 #include <linux/mm.h>
16819
16820 int shrinker_cb(struct shrinker *, int, unsigned int);
16821
16822int
16823main (void)
16824{
16825
16826 struct shrinker cache_shrinker = {
16827 .shrink = shrinker_cb,
16828 .seeks = DEFAULT_SEEKS,
16829 };
16830 register_shrinker(&cache_shrinker);
16831
16832 ;
16833 return 0;
16834}
16835
16836_ACEOF
16837
16838
16839 rm -Rf build && mkdir -p build
16840 echo "obj-m := conftest.o" >build/Makefile
16841 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852
16853 { $as_echo "$as_me:$LINENO: result: yes" >&5
16854$as_echo "yes" >&6; }
16855
16856cat >>confdefs.h <<\_ACEOF
16857#define HAVE_3ARGS_SHRINKER_CALLBACK 1
16858_ACEOF
16859
16860
16861else
16862 $as_echo "$as_me: failed program was:" >&5
16863sed 's/^/| /' conftest.$ac_ext >&5
16864
16865 { $as_echo "$as_me:$LINENO: result: no" >&5
16866$as_echo "no" >&6; }
16867
16868
16869
16870fi
16871
16872 rm -Rf build
16873
16874
16875 EXTRA_KCFLAGS="$tmp_flags"
16876
8934764e
BB
16877 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
16878$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
bf9f3bac 16879
16880
dbe561d8 16881cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16882/* confdefs.h. */
16883_ACEOF
16884cat confdefs.h >>conftest.$ac_ext
16885cat >>conftest.$ac_ext <<_ACEOF
16886/* end confdefs.h. */
16887
16888
16889 #include <linux/namei.h>
16890
16891int
16892main (void)
16893{
16894
03318641 16895 struct nameidata nd __attribute__ ((unused));
bf9f3bac 16896
16897 nd.path.mnt = NULL;
16898 nd.path.dentry = NULL;
16899
16900 ;
16901 return 0;
16902}
16903
16904_ACEOF
16905
c5f70460
BB
16906
16907 rm -Rf build && mkdir -p build
16908 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16909 if { 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 16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
8934764e 16913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16914 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
8934764e 16918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16919 (exit $ac_status); }; }; then
16920
8934764e
BB
16921 { $as_echo "$as_me:$LINENO: result: yes" >&5
16922$as_echo "yes" >&6; }
bf9f3bac 16923
16924cat >>confdefs.h <<\_ACEOF
16925#define HAVE_PATH_IN_NAMEIDATA 1
16926_ACEOF
16927
16928
16929else
8934764e 16930 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16931sed 's/^/| /' conftest.$ac_ext >&5
16932
8934764e
BB
16933 { $as_echo "$as_me:$LINENO: result: no" >&5
16934$as_echo "no" >&6; }
bf9f3bac 16935
c5f70460
BB
16936
16937
bf9f3bac 16938fi
c5f70460
BB
16939
16940 rm -Rf build
16941
bf9f3bac 16942
16943
16944
8934764e
BB
16945 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
16946$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
2e0e7e69
BB
16947 grep -q -E '[[:space:]]task_curr[[:space:]]' \
16948 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 16949 rc=$?
16950 if test $rc -ne 0; then
16951 export=0
16952 for file in kernel/sched.c; do
2e0e7e69
BB
16953 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
16954 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 16955 rc=$?
16956 if test $rc -eq 0; then
16957 export=1
16958 break;
16959 fi
16960 done
16961 if test $export -eq 0; then
8934764e
BB
16962 { $as_echo "$as_me:$LINENO: result: no" >&5
16963$as_echo "no" >&6; }
bf9f3bac 16964
16965 else
8934764e
BB
16966 { $as_echo "$as_me:$LINENO: result: yes" >&5
16967$as_echo "yes" >&6; }
bf9f3bac 16968
16969cat >>confdefs.h <<\_ACEOF
16970#define HAVE_TASK_CURR 1
16971_ACEOF
16972
16973 fi
16974 else
8934764e
BB
16975 { $as_echo "$as_me:$LINENO: result: yes" >&5
16976$as_echo "yes" >&6; }
bf9f3bac 16977
16978cat >>confdefs.h <<\_ACEOF
16979#define HAVE_TASK_CURR 1
16980_ACEOF
16981
16982 fi
16983
16984
8934764e
BB
16985 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
16986$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
bf9f3bac 16987
16988
dbe561d8 16989cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995
16996
16997 #include <linux/sysctl.h>
16998
16999int
17000main (void)
17001{
17002
17003 #ifndef CTL_UNNUMBERED
17004 #error CTL_UNNUMBERED undefined
17005 #endif
17006
17007 ;
17008 return 0;
17009}
17010
17011_ACEOF
17012
c5f70460
BB
17013
17014 rm -Rf build && mkdir -p build
17015 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17016 if { 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 17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
8934764e 17020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17021 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
8934764e 17025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17026 (exit $ac_status); }; }; then
17027
8934764e
BB
17028 { $as_echo "$as_me:$LINENO: result: yes" >&5
17029$as_echo "yes" >&6; }
bf9f3bac 17030
17031cat >>confdefs.h <<\_ACEOF
17032#define HAVE_CTL_UNNUMBERED 1
17033_ACEOF
17034
17035
79a3bf13
BB
17036else
17037 $as_echo "$as_me: failed program was:" >&5
17038sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 { $as_echo "$as_me:$LINENO: result: no" >&5
17041$as_echo "no" >&6; }
17042
17043
17044
17045fi
17046
17047 rm -Rf build
17048
17049
17050
17051
17052 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
17053$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17054
17055
dbe561d8 17056cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
17057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
17062
17063
17064 #include <linux/sysctl.h>
17065
17066int
17067main (void)
17068{
17069
03318641 17070 struct ctl_table ctl __attribute__ ((unused));
79a3bf13
BB
17071 ctl.ctl_name = 0;
17072
17073 ;
17074 return 0;
17075}
17076
17077_ACEOF
17078
17079
17080 rm -Rf build && mkdir -p build
17081 echo "obj-m := conftest.o" >build/Makefile
17082 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17085 ac_status=$?
17086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17090 ac_status=$?
17091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093
17094 { $as_echo "$as_me:$LINENO: result: yes" >&5
17095$as_echo "yes" >&6; }
17096
17097cat >>confdefs.h <<\_ACEOF
17098#define HAVE_CTL_NAME 1
17099_ACEOF
17100
17101
bf9f3bac 17102else
8934764e 17103 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17104sed 's/^/| /' conftest.$ac_ext >&5
17105
8934764e
BB
17106 { $as_echo "$as_me:$LINENO: result: no" >&5
17107$as_echo "no" >&6; }
bf9f3bac 17108
c5f70460
BB
17109
17110
bf9f3bac 17111fi
c5f70460
BB
17112
17113 rm -Rf build
17114
bf9f3bac 17115
17116
8934764e
BB
17117 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17118$as_echo_n "checking whether fls64() is available... " >&6; }
bf9f3bac 17119
17120
dbe561d8 17121cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17122/* confdefs.h. */
17123_ACEOF
17124cat confdefs.h >>conftest.$ac_ext
17125cat >>conftest.$ac_ext <<_ACEOF
17126/* end confdefs.h. */
17127
17128
17129 #include <linux/bitops.h>
17130
17131int
17132main (void)
17133{
17134
17135 return fls64(0);
17136
17137 ;
17138 return 0;
17139}
17140
17141_ACEOF
17142
c5f70460
BB
17143
17144 rm -Rf build && mkdir -p build
17145 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17146 if { 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 17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
8934764e 17150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17151 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17154 ac_status=$?
8934764e 17155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17156 (exit $ac_status); }; }; then
17157
8934764e
BB
17158 { $as_echo "$as_me:$LINENO: result: yes" >&5
17159$as_echo "yes" >&6; }
bf9f3bac 17160
17161cat >>confdefs.h <<\_ACEOF
17162#define HAVE_FLS64 1
17163_ACEOF
17164
17165
17166else
8934764e 17167 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17168sed 's/^/| /' conftest.$ac_ext >&5
17169
8934764e
BB
17170 { $as_echo "$as_me:$LINENO: result: no" >&5
17171$as_echo "no" >&6; }
bf9f3bac 17172
c5f70460
BB
17173
17174
bf9f3bac 17175fi
c5f70460
BB
17176
17177 rm -Rf build
17178
bf9f3bac 17179
17180
17181
8934764e
BB
17182 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17183$as_echo_n "checking whether symbol device_create is exported... " >&6; }
2e0e7e69
BB
17184 grep -q -E '[[:space:]]device_create[[:space:]]' \
17185 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17186 rc=$?
17187 if test $rc -ne 0; then
17188 export=0
17189 for file in drivers/base/core.c; do
2e0e7e69
BB
17190 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17191 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17192 rc=$?
17193 if test $rc -eq 0; then
17194 export=1
17195 break;
17196 fi
17197 done
17198 if test $export -eq 0; then
8934764e
BB
17199 { $as_echo "$as_me:$LINENO: result: no" >&5
17200$as_echo "no" >&6; }
bf9f3bac 17201
17202 else
8934764e
BB
17203 { $as_echo "$as_me:$LINENO: result: yes" >&5
17204$as_echo "yes" >&6; }
bf9f3bac 17205
17206cat >>confdefs.h <<\_ACEOF
17207#define HAVE_DEVICE_CREATE 1
17208_ACEOF
17209
17210 fi
17211 else
8934764e
BB
17212 { $as_echo "$as_me:$LINENO: result: yes" >&5
17213$as_echo "yes" >&6; }
bf9f3bac 17214
17215cat >>confdefs.h <<\_ACEOF
17216#define HAVE_DEVICE_CREATE 1
17217_ACEOF
17218
17219 fi
17220
17221
17222
8934764e
BB
17223 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17224$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
8123ac4f
BB
17225 tmp_flags="$EXTRA_KCFLAGS"
17226 EXTRA_KCFLAGS="-Werror"
17227
17228
dbe561d8 17229cat confdefs.h - <<_ACEOF >conftest.c
8123ac4f
BB
17230/* confdefs.h. */
17231_ACEOF
17232cat confdefs.h >>conftest.$ac_ext
17233cat >>conftest.$ac_ext <<_ACEOF
17234/* end confdefs.h. */
17235
17236
17237 #include <linux/device.h>
17238
17239int
17240main (void)
17241{
17242
17243 device_create(NULL, NULL, 0, NULL, "%d", 1);
17244
17245 ;
17246 return 0;
17247}
17248
17249_ACEOF
17250
17251
17252 rm -Rf build && mkdir -p build
17253 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17254 if { 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
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
8934764e 17258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
17259 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
8934764e 17263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
17264 (exit $ac_status); }; }; then
17265
8934764e
BB
17266 { $as_echo "$as_me:$LINENO: result: yes" >&5
17267$as_echo "yes" >&6; }
8123ac4f
BB
17268
17269cat >>confdefs.h <<\_ACEOF
17270#define HAVE_5ARGS_DEVICE_CREATE 1
17271_ACEOF
17272
17273
17274else
8934764e 17275 $as_echo "$as_me: failed program was:" >&5
8123ac4f
BB
17276sed 's/^/| /' conftest.$ac_ext >&5
17277
8934764e
BB
17278 { $as_echo "$as_me:$LINENO: result: no" >&5
17279$as_echo "no" >&6; }
8123ac4f
BB
17280
17281
17282
17283fi
17284
17285 rm -Rf build
17286
17287
17288 EXTRA_KCFLAGS="$tmp_flags"
17289
17290
8934764e
BB
17291 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17292$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
2e0e7e69
BB
17293 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17294 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17295 rc=$?
17296 if test $rc -ne 0; then
17297 export=0
17298 for file in drivers/base/class.c; do
2e0e7e69
BB
17299 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17300 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17301 rc=$?
17302 if test $rc -eq 0; then
17303 export=1
17304 break;
17305 fi
17306 done
17307 if test $export -eq 0; then
8934764e
BB
17308 { $as_echo "$as_me:$LINENO: result: no" >&5
17309$as_echo "no" >&6; }
bf9f3bac 17310
17311 else
8934764e
BB
17312 { $as_echo "$as_me:$LINENO: result: yes" >&5
17313$as_echo "yes" >&6; }
bf9f3bac 17314
17315cat >>confdefs.h <<\_ACEOF
17316#define HAVE_CLASS_DEVICE_CREATE 1
17317_ACEOF
17318
17319 fi
17320 else
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_CLASS_DEVICE_CREATE 1
17326_ACEOF
17327
17328 fi
17329
17330
17331
8934764e
BB
17332 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17333$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
2e0e7e69
BB
17334 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17335 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17336 rc=$?
17337 if test $rc -ne 0; then
17338 export=0
17339 for file in kernel/time.c; do
2e0e7e69
BB
17340 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17341 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17342 rc=$?
17343 if test $rc -eq 0; then
17344 export=1
17345 break;
17346 fi
17347 done
17348 if test $export -eq 0; then
8934764e
BB
17349 { $as_echo "$as_me:$LINENO: result: no" >&5
17350$as_echo "no" >&6; }
bf9f3bac 17351
6ae7fef5 17352 else
8934764e
BB
17353 { $as_echo "$as_me:$LINENO: result: yes" >&5
17354$as_echo "yes" >&6; }
6ae7fef5
BB
17355
17356cat >>confdefs.h <<\_ACEOF
17357#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17358_ACEOF
17359
17360 fi
17361 else
8934764e
BB
17362 { $as_echo "$as_me:$LINENO: result: yes" >&5
17363$as_echo "yes" >&6; }
6ae7fef5
BB
17364
17365cat >>confdefs.h <<\_ACEOF
17366#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17367_ACEOF
17368
17369 fi
17370
17371
17372
8934764e
BB
17373 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17374$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
6ae7fef5
BB
17375
17376
dbe561d8 17377cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383
17384
17385 #include <linux/time.h>
17386 void set_normalized_timespec(struct timespec *ts,
17387 time_t sec, long nsec) { }
17388
17389int
17390main (void)
17391{
17392
17393 ;
17394 return 0;
17395}
17396
17397_ACEOF
17398
17399
17400 rm -Rf build && mkdir -p build
17401 echo "obj-m := conftest.o" >build/Makefile
17402 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404 (eval $ac_try) 2>&5
17405 ac_status=$?
8934764e 17406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17407 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17410 ac_status=$?
8934764e 17411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17412 (exit $ac_status); }; }; then
17413
8934764e
BB
17414 { $as_echo "$as_me:$LINENO: result: no" >&5
17415$as_echo "no" >&6; }
6ae7fef5
BB
17416
17417else
8934764e 17418 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17419sed 's/^/| /' conftest.$ac_ext >&5
17420
8934764e
BB
17421 { $as_echo "$as_me:$LINENO: result: yes" >&5
17422$as_echo "yes" >&6; }
6ae7fef5
BB
17423
17424cat >>confdefs.h <<\_ACEOF
17425#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17426_ACEOF
17427
17428
17429
17430
17431fi
17432
17433 rm -Rf build
17434
17435
17436
17437
8934764e
BB
17438 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17439$as_echo_n "checking whether timespec_sub() is available... " >&6; }
6ae7fef5
BB
17440
17441
dbe561d8 17442cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448
17449
17450 #include <linux/time.h>
17451
17452int
17453main (void)
17454{
17455
03318641
BB
17456 struct timespec a = { 0 };
17457 struct timespec b = { 0 };
17458 struct timespec c __attribute__ ((unused));
6ae7fef5
BB
17459 c = timespec_sub(a, b);
17460
17461 ;
17462 return 0;
17463}
17464
17465_ACEOF
17466
17467
17468 rm -Rf build && mkdir -p build
17469 echo "obj-m := conftest.o" >build/Makefile
17470 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
8934764e 17474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17475 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
8934764e 17479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17480 (exit $ac_status); }; }; then
17481
8934764e
BB
17482 { $as_echo "$as_me:$LINENO: result: yes" >&5
17483$as_echo "yes" >&6; }
6ae7fef5
BB
17484
17485cat >>confdefs.h <<\_ACEOF
17486#define HAVE_TIMESPEC_SUB 1
17487_ACEOF
17488
17489
17490else
8934764e 17491 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17492sed 's/^/| /' conftest.$ac_ext >&5
17493
8934764e
BB
17494 { $as_echo "$as_me:$LINENO: result: no" >&5
17495$as_echo "no" >&6; }
6ae7fef5
BB
17496
17497
17498
17499fi
17500
17501 rm -Rf build
17502
17503
17504
17505
8934764e
BB
17506 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17507$as_echo_n "checking whether init_utsname() is available... " >&6; }
6ae7fef5
BB
17508
17509
dbe561d8 17510cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
17516
17517
17518 #include <linux/utsname.h>
17519
17520int
17521main (void)
17522{
17523
03318641
BB
17524 struct new_utsname *a __attribute__ ((unused));
17525 a = init_utsname();
6ae7fef5
BB
17526
17527 ;
17528 return 0;
17529}
17530
17531_ACEOF
17532
17533
17534 rm -Rf build && mkdir -p build
17535 echo "obj-m := conftest.o" >build/Makefile
17536 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17539 ac_status=$?
8934764e 17540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17541 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
8934764e 17545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17546 (exit $ac_status); }; }; then
17547
8934764e
BB
17548 { $as_echo "$as_me:$LINENO: result: yes" >&5
17549$as_echo "yes" >&6; }
6ae7fef5
BB
17550
17551cat >>confdefs.h <<\_ACEOF
17552#define HAVE_INIT_UTSNAME 1
17553_ACEOF
17554
17555
17556else
8934764e 17557 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17558sed 's/^/| /' conftest.$ac_ext >&5
17559
8934764e
BB
17560 { $as_echo "$as_me:$LINENO: result: no" >&5
17561$as_echo "no" >&6; }
6ae7fef5
BB
17562
17563
17564
17565fi
17566
17567 rm -Rf build
17568
17569
17570
17571
8934764e
BB
17572 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17573$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
6ae7fef5
BB
17574
17575
dbe561d8 17576cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17577/* confdefs.h. */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h. */
17582
17583
17584 #include <linux/fdtable.h>
17585
17586int
17587main (void)
17588{
17589
17590 return 0;
17591
17592 ;
17593 return 0;
17594}
17595
17596_ACEOF
17597
17598
17599 rm -Rf build && mkdir -p build
17600 echo "obj-m := conftest.o" >build/Makefile
17601 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
8934764e 17605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17606 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
8934764e 17610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17611 (exit $ac_status); }; }; then
17612
bf9f3bac 17613
17614cat >>confdefs.h <<\_ACEOF
6ae7fef5 17615#define HAVE_FDTABLE_HEADER 1
bf9f3bac 17616_ACEOF
17617
8934764e
BB
17618 { $as_echo "$as_me:$LINENO: result: yes" >&5
17619$as_echo "yes" >&6; }
bf9f3bac 17620
bf9f3bac 17621
6ae7fef5 17622else
8934764e 17623 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17624sed 's/^/| /' conftest.$ac_ext >&5
17625
8934764e
BB
17626 { $as_echo "$as_me:$LINENO: result: no" >&5
17627$as_echo "no" >&6; }
bf9f3bac 17628
17629
17630
6ae7fef5
BB
17631
17632fi
17633
17634 rm -Rf build
17635
17636
17637
17638
17639
8934764e
BB
17640 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17641$as_echo_n "checking whether files_fdtable() is available... " >&6; }
bf9f3bac 17642
17643
dbe561d8 17644cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17645/* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
17650
17651
6ae7fef5
BB
17652 #include <linux/sched.h>
17653 #include <linux/file.h>
17654 #ifdef HAVE_FDTABLE_HEADER
17655 #include <linux/fdtable.h>
17656 #endif
bf9f3bac 17657
17658int
17659main (void)
17660{
17661
6ae7fef5 17662 struct files_struct *files = current->files;
03318641
BB
17663 struct fdtable *fdt __attribute__ ((unused));
17664 fdt = files_fdtable(files);
6ae7fef5 17665
bf9f3bac 17666 ;
17667 return 0;
17668}
17669
17670_ACEOF
17671
c5f70460
BB
17672
17673 rm -Rf build && mkdir -p build
17674 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17675 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677 (eval $ac_try) 2>&5
17678 ac_status=$?
8934764e 17679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17680 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17683 ac_status=$?
8934764e 17684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17685 (exit $ac_status); }; }; then
17686
8934764e
BB
17687 { $as_echo "$as_me:$LINENO: result: yes" >&5
17688$as_echo "yes" >&6; }
bf9f3bac 17689
17690cat >>confdefs.h <<\_ACEOF
6ae7fef5 17691#define HAVE_FILES_FDTABLE 1
bf9f3bac 17692_ACEOF
17693
17694
6ae7fef5 17695else
8934764e 17696 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17697sed 's/^/| /' conftest.$ac_ext >&5
17698
8934764e
BB
17699 { $as_echo "$as_me:$LINENO: result: no" >&5
17700$as_echo "no" >&6; }
6ae7fef5 17701
c5f70460
BB
17702
17703
bf9f3bac 17704fi
c5f70460
BB
17705
17706 rm -Rf build
17707
bf9f3bac 17708
17709
17710
8934764e
BB
17711 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17712$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
bf9f3bac 17713
17714
dbe561d8 17715cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17716/* confdefs.h. */
17717_ACEOF
17718cat confdefs.h >>conftest.$ac_ext
17719cat >>conftest.$ac_ext <<_ACEOF
17720/* end confdefs.h. */
17721
17722
6ae7fef5 17723 #include <linux/uaccess.h>
bf9f3bac 17724
17725int
17726main (void)
17727{
17728
6ae7fef5 17729 return 0;
bf9f3bac 17730
17731 ;
17732 return 0;
17733}
17734
17735_ACEOF
17736
c5f70460
BB
17737
17738 rm -Rf build && mkdir -p build
17739 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17740 if { 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 17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
8934764e 17744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17745 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
8934764e 17749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17750 (exit $ac_status); }; }; then
17751
bf9f3bac 17752
17753cat >>confdefs.h <<\_ACEOF
6ae7fef5 17754#define HAVE_UACCESS_HEADER 1
bf9f3bac 17755_ACEOF
17756
8934764e
BB
17757 { $as_echo "$as_me:$LINENO: result: yes" >&5
17758$as_echo "yes" >&6; }
6ae7fef5 17759
bf9f3bac 17760
17761else
8934764e 17762 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17763sed 's/^/| /' conftest.$ac_ext >&5
17764
8934764e
BB
17765 { $as_echo "$as_me:$LINENO: result: no" >&5
17766$as_echo "no" >&6; }
bf9f3bac 17767
c5f70460
BB
17768
17769
6ae7fef5 17770
bf9f3bac 17771fi
c5f70460
BB
17772
17773 rm -Rf build
17774
bf9f3bac 17775
17776
17777
6ae7fef5 17778
8934764e
BB
17779 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
17780$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
bf9f3bac 17781
17782
dbe561d8 17783cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789
17790
6ae7fef5 17791 #include <linux/slab.h>
bf9f3bac 17792
17793int
17794main (void)
17795{
17796
03318641
BB
17797 void *a __attribute__ ((unused));
17798 a = kmalloc_node(1, GFP_KERNEL, 0);
bf9f3bac 17799
17800 ;
17801 return 0;
17802}
17803
17804_ACEOF
17805
c5f70460
BB
17806
17807 rm -Rf build && mkdir -p build
17808 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17809 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
8934764e 17813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17814 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
8934764e 17818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17819 (exit $ac_status); }; }; then
17820
8934764e
BB
17821 { $as_echo "$as_me:$LINENO: result: yes" >&5
17822$as_echo "yes" >&6; }
bf9f3bac 17823
17824cat >>confdefs.h <<\_ACEOF
6ae7fef5 17825#define HAVE_KMALLOC_NODE 1
bf9f3bac 17826_ACEOF
17827
17828
17829else
8934764e
BB
17830 $as_echo "$as_me: failed program was:" >&5
17831sed 's/^/| /' conftest.$ac_ext >&5
17832
17833 { $as_echo "$as_me:$LINENO: result: no" >&5
17834$as_echo "no" >&6; }
17835
17836
17837
17838fi
17839
17840 rm -Rf build
17841
17842
17843
17844
17845 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
17846$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
17847 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
17848 $LINUX_OBJ/Module*.symvers 2>/dev/null
17849 rc=$?
17850 if test $rc -ne 0; then
17851 export=0
17852 for file in ; do
17853 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
17854 "$LINUX_OBJ/$file" 2>/dev/null
17855 rc=$?
17856 if test $rc -eq 0; then
17857 export=1
17858 break;
17859 fi
17860 done
17861 if test $export -eq 0; then
17862 { $as_echo "$as_me:$LINENO: result: no" >&5
17863$as_echo "no" >&6; }
17864
17865 else
17866 { $as_echo "$as_me:$LINENO: result: yes" >&5
17867$as_echo "yes" >&6; }
17868
17869cat >>confdefs.h <<\_ACEOF
17870#define HAVE_MONOTONIC_CLOCK 1
17871_ACEOF
17872
17873 fi
17874 else
17875 { $as_echo "$as_me:$LINENO: result: yes" >&5
17876$as_echo "yes" >&6; }
17877
17878cat >>confdefs.h <<\_ACEOF
17879#define HAVE_MONOTONIC_CLOCK 1
17880_ACEOF
17881
17882 fi
17883
17884
17885
17886 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
17887$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
17888
17889
dbe561d8 17890cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
17891/* confdefs.h. */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h. */
17896
17897
17898 #include <linux/fs.h>
17899 #include <linux/mutex.h>
17900
17901int
17902main (void)
17903{
17904
17905 struct inode i;
17906 mutex_init(&i.i_mutex);
17907
17908 ;
17909 return 0;
17910}
17911
17912_ACEOF
17913
17914
17915 rm -Rf build && mkdir -p build
17916 echo "obj-m := conftest.o" >build/Makefile
17917 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
17921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924 (eval $ac_try) 2>&5
17925 ac_status=$?
17926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; }; then
17928
17929 { $as_echo "$as_me:$LINENO: result: yes" >&5
17930$as_echo "yes" >&6; }
17931
17932cat >>confdefs.h <<\_ACEOF
17933#define HAVE_INODE_I_MUTEX 1
17934_ACEOF
17935
17936
17937else
17938 $as_echo "$as_me: failed program was:" >&5
17939sed 's/^/| /' conftest.$ac_ext >&5
17940
17941 { $as_echo "$as_me:$LINENO: result: no" >&5
17942$as_echo "no" >&6; }
17943
17944
17945
17946fi
17947
17948 rm -Rf build
17949
17950
17951
17952
17953 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
17954$as_echo_n "checking whether struct mutex has owner... " >&6; }
17955
17956
dbe561d8 17957cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
17958/* confdefs.h. */
17959_ACEOF
17960cat confdefs.h >>conftest.$ac_ext
17961cat >>conftest.$ac_ext <<_ACEOF
17962/* end confdefs.h. */
17963
17964
17965 #include <linux/mutex.h>
17966
17967int
17968main (void)
17969{
17970
03318641 17971 struct mutex mtx __attribute__ ((unused));
8934764e
BB
17972 mtx.owner = NULL;
17973
17974 ;
17975 return 0;
17976}
17977
17978_ACEOF
17979
17980
17981 rm -Rf build && mkdir -p build
17982 echo "obj-m := conftest.o" >build/Makefile
17983 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985 (eval $ac_try) 2>&5
17986 ac_status=$?
17987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17991 ac_status=$?
17992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994
17995 { $as_echo "$as_me:$LINENO: result: yes" >&5
17996$as_echo "yes" >&6; }
17997
17998cat >>confdefs.h <<\_ACEOF
17999#define HAVE_MUTEX_OWNER 1
18000_ACEOF
18001
18002
18003else
18004 $as_echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
18007 { $as_echo "$as_me:$LINENO: result: no" >&5
18008$as_echo "no" >&6; }
18009
18010
18011
18012fi
18013
18014 rm -Rf build
18015
18016
18017
18018
86fd39f3
BB
18019 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
18020$as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18021 tmp_flags="$EXTRA_KCFLAGS"
18022 EXTRA_KCFLAGS="-Werror"
18023
18024
18025cat confdefs.h - <<_ACEOF >conftest.c
18026/* confdefs.h. */
18027_ACEOF
18028cat confdefs.h >>conftest.$ac_ext
18029cat >>conftest.$ac_ext <<_ACEOF
18030/* end confdefs.h. */
18031
18032
18033 #include <linux/mutex.h>
18034
18035int
18036main (void)
18037{
18038
18039 struct mutex mtx __attribute__ ((unused));
18040 mtx.owner = current;
18041
18042 ;
18043 return 0;
18044}
18045
18046_ACEOF
18047
18048
18049 rm -Rf build && mkdir -p build
18050 echo "obj-m := conftest.o" >build/Makefile
18051 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053 (eval $ac_try) 2>&5
18054 ac_status=$?
18055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058 (eval $ac_try) 2>&5
18059 ac_status=$?
18060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; }; then
18062
18063 { $as_echo "$as_me:$LINENO: result: yes" >&5
18064$as_echo "yes" >&6; }
18065
18066cat >>confdefs.h <<\_ACEOF
18067#define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18068_ACEOF
18069
18070
18071else
18072 $as_echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 { $as_echo "$as_me:$LINENO: result: no" >&5
18076$as_echo "no" >&6; }
18077
18078
18079
18080fi
18081
18082 rm -Rf build
18083
18084
18085 EXTRA_KCFLAGS="$tmp_flags"
18086
18087
8934764e
BB
18088 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18089$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18090
18091
dbe561d8 18092cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18093/* confdefs.h. */
18094_ACEOF
18095cat confdefs.h >>conftest.$ac_ext
18096cat >>conftest.$ac_ext <<_ACEOF
18097/* end confdefs.h. */
18098
18099
18100 #include <linux/mutex.h>
18101
18102int
18103main (void)
18104{
18105
18106 struct mutex mutex;
18107 mutex_init(&mutex);
18108 mutex_lock_nested(&mutex, 0);
18109
18110 ;
18111 return 0;
18112}
18113
18114_ACEOF
18115
18116
18117 rm -Rf build && mkdir -p build
18118 echo "obj-m := conftest.o" >build/Makefile
18119 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126 (eval $ac_try) 2>&5
18127 ac_status=$?
18128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
18130
18131 { $as_echo "$as_me:$LINENO: result: yes" >&5
18132$as_echo "yes" >&6; }
18133
18134cat >>confdefs.h <<\_ACEOF
18135#define HAVE_MUTEX_LOCK_NESTED 1
18136_ACEOF
18137
18138
18139else
18140 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18141sed 's/^/| /' conftest.$ac_ext >&5
18142
8934764e
BB
18143 { $as_echo "$as_me:$LINENO: result: no" >&5
18144$as_echo "no" >&6; }
18145
18146
18147
18148fi
18149
18150 rm -Rf build
18151
18152
18153
18154
8934764e
BB
18155 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18156$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
bf9f3bac 18157
18158
dbe561d8 18159cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18160/* confdefs.h. */
18161_ACEOF
18162cat confdefs.h >>conftest.$ac_ext
18163cat >>conftest.$ac_ext <<_ACEOF
18164/* end confdefs.h. */
18165
18166
8934764e 18167 #include <linux/smp.h>
bf9f3bac 18168
18169int
18170main (void)
18171{
18172
8934764e 18173 on_each_cpu(NULL, NULL, 0);
bf9f3bac 18174
18175 ;
18176 return 0;
18177}
18178
18179_ACEOF
18180
c5f70460
BB
18181
18182 rm -Rf build && mkdir -p build
18183 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18184 if { 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 18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
8934764e 18188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18189 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191 (eval $ac_try) 2>&5
18192 ac_status=$?
8934764e 18193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18194 (exit $ac_status); }; }; then
18195
8934764e
BB
18196 { $as_echo "$as_me:$LINENO: result: yes" >&5
18197$as_echo "yes" >&6; }
bf9f3bac 18198
18199cat >>confdefs.h <<\_ACEOF
8934764e 18200#define HAVE_3ARGS_ON_EACH_CPU 1
bf9f3bac 18201_ACEOF
18202
bf9f3bac 18203
18204else
8934764e 18205 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18206sed 's/^/| /' conftest.$ac_ext >&5
18207
8934764e
BB
18208 { $as_echo "$as_me:$LINENO: result: no" >&5
18209$as_echo "no" >&6; }
bf9f3bac 18210
18211
c5f70460 18212
bf9f3bac 18213fi
c5f70460
BB
18214
18215 rm -Rf build
18216
bf9f3bac 18217
18218
18219
8934764e
BB
18220 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18221$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18222 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18223 $LINUX_OBJ/Module*.symvers 2>/dev/null
18224 rc=$?
18225 if test $rc -ne 0; then
18226 export=0
18227 for file in ; do
18228 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18229 "$LINUX_OBJ/$file" 2>/dev/null
18230 rc=$?
18231 if test $rc -eq 0; then
18232 export=1
18233 break;
18234 fi
18235 done
18236 if test $export -eq 0; then
18237 { $as_echo "$as_me:$LINENO: result: no" >&5
18238$as_echo "no" >&6; }
4d54fdee 18239
8934764e
BB
18240 else
18241 { $as_echo "$as_me:$LINENO: result: yes" >&5
18242$as_echo "yes" >&6; }
4d54fdee 18243
8934764e
BB
18244cat >>confdefs.h <<\_ACEOF
18245#define HAVE_KALLSYMS_LOOKUP_NAME 1
4d54fdee 18246_ACEOF
4d54fdee 18247
8934764e
BB
18248 fi
18249 else
18250 { $as_echo "$as_me:$LINENO: result: yes" >&5
18251$as_echo "yes" >&6; }
4d54fdee 18252
8934764e
BB
18253cat >>confdefs.h <<\_ACEOF
18254#define HAVE_KALLSYMS_LOOKUP_NAME 1
18255_ACEOF
4d54fdee 18256
8934764e 18257 fi
4d54fdee 18258
4d54fdee 18259
4d54fdee 18260
8934764e
BB
18261 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18262$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18263 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18264 $LINUX_OBJ/Module*.symvers 2>/dev/null
18265 rc=$?
18266 if test $rc -ne 0; then
18267 export=0
18268 for file in ; do
18269 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18270 "$LINUX_OBJ/$file" 2>/dev/null
18271 rc=$?
18272 if test $rc -eq 0; then
18273 export=1
18274 break;
18275 fi
18276 done
18277 if test $export -eq 0; then
18278 { $as_echo "$as_me:$LINENO: result: no" >&5
18279$as_echo "no" >&6; }
4d54fdee 18280
8934764e
BB
18281 else
18282 { $as_echo "$as_me:$LINENO: result: yes" >&5
18283$as_echo "yes" >&6; }
4d54fdee 18284
8934764e
BB
18285cat >>confdefs.h <<\_ACEOF
18286#define HAVE_GET_VMALLOC_INFO 1
18287_ACEOF
4d54fdee 18288
8934764e
BB
18289 fi
18290 else
18291 { $as_echo "$as_me:$LINENO: result: yes" >&5
18292$as_echo "yes" >&6; }
4d54fdee
BB
18293
18294cat >>confdefs.h <<\_ACEOF
8934764e 18295#define HAVE_GET_VMALLOC_INFO 1
4d54fdee
BB
18296_ACEOF
18297
8934764e 18298 fi
4d54fdee 18299
4d54fdee
BB
18300
18301
8934764e
BB
18302 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18303$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18304 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18305 rc=$?
18306 if test $rc -eq 0; then
18307 { $as_echo "$as_me:$LINENO: result: yes" >&5
18308$as_echo "yes" >&6; }
4d54fdee 18309
8934764e
BB
18310cat >>confdefs.h <<\_ACEOF
18311#define HAVE_PGDAT_HELPERS 1
18312_ACEOF
4d54fdee 18313
8934764e
BB
18314 else
18315 { $as_echo "$as_me:$LINENO: result: no" >&5
18316$as_echo "no" >&6; }
18317 fi
4d54fdee
BB
18318
18319
8934764e
BB
18320 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18321$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18322 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18323 $LINUX_OBJ/Module*.symvers 2>/dev/null
18324 rc=$?
18325 if test $rc -ne 0; then
18326 export=0
18327 for file in ; do
18328 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18329 "$LINUX_OBJ/$file" 2>/dev/null
18330 rc=$?
18331 if test $rc -eq 0; then
18332 export=1
18333 break;
18334 fi
18335 done
18336 if test $export -eq 0; then
18337 { $as_echo "$as_me:$LINENO: result: no" >&5
18338$as_echo "no" >&6; }
4d54fdee 18339
8934764e
BB
18340 else
18341 { $as_echo "$as_me:$LINENO: result: yes" >&5
18342$as_echo "yes" >&6; }
4d54fdee 18343
8934764e
BB
18344cat >>confdefs.h <<\_ACEOF
18345#define HAVE_FIRST_ONLINE_PGDAT 1
18346_ACEOF
bf9f3bac 18347
8934764e
BB
18348 fi
18349 else
18350 { $as_echo "$as_me:$LINENO: result: yes" >&5
18351$as_echo "yes" >&6; }
bf9f3bac 18352
8934764e
BB
18353cat >>confdefs.h <<\_ACEOF
18354#define HAVE_FIRST_ONLINE_PGDAT 1
bf9f3bac 18355_ACEOF
bf9f3bac 18356
8934764e 18357 fi
bf9f3bac 18358
bf9f3bac 18359
bf9f3bac 18360
8934764e
BB
18361 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18362$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18363 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18364 $LINUX_OBJ/Module*.symvers 2>/dev/null
18365 rc=$?
18366 if test $rc -ne 0; then
18367 export=0
18368 for file in ; do
18369 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18370 "$LINUX_OBJ/$file" 2>/dev/null
18371 rc=$?
18372 if test $rc -eq 0; then
18373 export=1
18374 break;
18375 fi
18376 done
18377 if test $export -eq 0; then
18378 { $as_echo "$as_me:$LINENO: result: no" >&5
18379$as_echo "no" >&6; }
bf9f3bac 18380
8934764e
BB
18381 else
18382 { $as_echo "$as_me:$LINENO: result: yes" >&5
18383$as_echo "yes" >&6; }
bf9f3bac 18384
8934764e
BB
18385cat >>confdefs.h <<\_ACEOF
18386#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 18387_ACEOF
18388
8934764e
BB
18389 fi
18390 else
18391 { $as_echo "$as_me:$LINENO: result: yes" >&5
18392$as_echo "yes" >&6; }
bf9f3bac 18393
18394cat >>confdefs.h <<\_ACEOF
8934764e 18395#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 18396_ACEOF
18397
8934764e 18398 fi
bf9f3bac 18399
18400
18401
8934764e
BB
18402 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18403$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18404 grep -q -E '[[:space:]]next_zone[[:space:]]' \
6ae7fef5
BB
18405 $LINUX_OBJ/Module*.symvers 2>/dev/null
18406 rc=$?
18407 if test $rc -ne 0; then
18408 export=0
18409 for file in ; do
8934764e 18410 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
6ae7fef5
BB
18411 "$LINUX_OBJ/$file" 2>/dev/null
18412 rc=$?
18413 if test $rc -eq 0; then
18414 export=1
18415 break;
18416 fi
18417 done
18418 if test $export -eq 0; then
8934764e
BB
18419 { $as_echo "$as_me:$LINENO: result: no" >&5
18420$as_echo "no" >&6; }
6ae7fef5
BB
18421
18422 else
8934764e
BB
18423 { $as_echo "$as_me:$LINENO: result: yes" >&5
18424$as_echo "yes" >&6; }
6ae7fef5
BB
18425
18426cat >>confdefs.h <<\_ACEOF
8934764e 18427#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
18428_ACEOF
18429
18430 fi
18431 else
8934764e
BB
18432 { $as_echo "$as_me:$LINENO: result: yes" >&5
18433$as_echo "yes" >&6; }
6ae7fef5
BB
18434
18435cat >>confdefs.h <<\_ACEOF
8934764e 18436#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
18437_ACEOF
18438
18439 fi
18440
18441
18442
8934764e
BB
18443 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18444$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18445 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
6ae7fef5
BB
18446 $LINUX_OBJ/Module*.symvers 2>/dev/null
18447 rc=$?
18448 if test $rc -ne 0; then
18449 export=0
18450 for file in ; do
8934764e 18451 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
6ae7fef5
BB
18452 "$LINUX_OBJ/$file" 2>/dev/null
18453 rc=$?
18454 if test $rc -eq 0; then
18455 export=1
18456 break;
18457 fi
18458 done
18459 if test $export -eq 0; then
8934764e
BB
18460 { $as_echo "$as_me:$LINENO: result: no" >&5
18461$as_echo "no" >&6; }
18462
18463 else
18464 { $as_echo "$as_me:$LINENO: result: yes" >&5
18465$as_echo "yes" >&6; }
18466
18467cat >>confdefs.h <<\_ACEOF
18468#define HAVE_PGDAT_LIST 1
18469_ACEOF
18470
18471 fi
18472 else
18473 { $as_echo "$as_me:$LINENO: result: yes" >&5
18474$as_echo "yes" >&6; }
18475
18476cat >>confdefs.h <<\_ACEOF
18477#define HAVE_PGDAT_LIST 1
18478_ACEOF
18479
18480 fi
18481
18482
18483
18484 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18485$as_echo_n "checking whether global_page_state() is available... " >&6; }
18486
18487
dbe561d8 18488cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18489/* confdefs.h. */
18490_ACEOF
18491cat confdefs.h >>conftest.$ac_ext
18492cat >>conftest.$ac_ext <<_ACEOF
18493/* end confdefs.h. */
18494
18495
18496 #include <linux/mm.h>
18497
18498int
18499main (void)
18500{
18501
03318641 18502 unsigned long state __attribute__ ((unused));
8934764e
BB
18503 state = global_page_state(0);
18504
18505 ;
18506 return 0;
18507}
18508
18509_ACEOF
18510
18511
18512 rm -Rf build && mkdir -p build
18513 echo "obj-m := conftest.o" >build/Makefile
18514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18517 ac_status=$?
18518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18522 ac_status=$?
18523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
6ae7fef5 18525
8934764e
BB
18526 { $as_echo "$as_me:$LINENO: result: yes" >&5
18527$as_echo "yes" >&6; }
6ae7fef5
BB
18528
18529cat >>confdefs.h <<\_ACEOF
8934764e 18530#define HAVE_GLOBAL_PAGE_STATE 1
6ae7fef5
BB
18531_ACEOF
18532
6ae7fef5 18533
8934764e
BB
18534else
18535 $as_echo "$as_me: failed program was:" >&5
18536sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 { $as_echo "$as_me:$LINENO: result: no" >&5
18539$as_echo "no" >&6; }
18540
18541
18542
18543fi
18544
18545 rm -Rf build
6ae7fef5 18546
6ae7fef5
BB
18547
18548
18549
8934764e
BB
18550 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18551$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
bf9f3bac 18552
18553
dbe561d8 18554cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18555/* confdefs.h. */
18556_ACEOF
18557cat confdefs.h >>conftest.$ac_ext
18558cat >>conftest.$ac_ext <<_ACEOF
18559/* end confdefs.h. */
18560
18561
8934764e 18562 #include <linux/mm.h>
bf9f3bac 18563
18564int
18565main (void)
18566{
18567
03318641 18568 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18569 zsi = NR_FREE_PAGES;
bf9f3bac 18570
18571 ;
18572 return 0;
18573}
18574
18575_ACEOF
18576
c5f70460
BB
18577
18578 rm -Rf build && mkdir -p build
18579 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18580 if { 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 18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
8934764e 18584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18585 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18587 (eval $ac_try) 2>&5
18588 ac_status=$?
8934764e 18589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18590 (exit $ac_status); }; }; then
18591
8934764e
BB
18592 { $as_echo "$as_me:$LINENO: result: yes" >&5
18593$as_echo "yes" >&6; }
bf9f3bac 18594
18595cat >>confdefs.h <<\_ACEOF
8934764e 18596#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
bf9f3bac 18597_ACEOF
18598
bf9f3bac 18599
18600else
8934764e 18601 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18602sed 's/^/| /' conftest.$ac_ext >&5
18603
8934764e
BB
18604 { $as_echo "$as_me:$LINENO: result: no" >&5
18605$as_echo "no" >&6; }
bf9f3bac 18606
18607
c5f70460 18608
bf9f3bac 18609fi
c5f70460
BB
18610
18611 rm -Rf build
18612
bf9f3bac 18613
18614
18615
8934764e
BB
18616 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18617$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
bf9f3bac 18618
bf9f3bac 18619
dbe561d8 18620cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18621/* confdefs.h. */
6ae7fef5 18622_ACEOF
8934764e
BB
18623cat confdefs.h >>conftest.$ac_ext
18624cat >>conftest.$ac_ext <<_ACEOF
18625/* end confdefs.h. */
bf9f3bac 18626
6ae7fef5 18627
8934764e 18628 #include <linux/mm.h>
bf9f3bac 18629
8934764e
BB
18630int
18631main (void)
18632{
bf9f3bac 18633
03318641 18634 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18635 zsi = NR_INACTIVE;
bf9f3bac 18636
8934764e
BB
18637 ;
18638 return 0;
18639}
bf9f3bac 18640
8934764e 18641_ACEOF
bf9f3bac 18642
bf9f3bac 18643
8934764e
BB
18644 rm -Rf build && mkdir -p build
18645 echo "obj-m := conftest.o" >build/Makefile
18646 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18649 ac_status=$?
18650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
bf9f3bac 18657
8934764e
BB
18658 { $as_echo "$as_me:$LINENO: result: yes" >&5
18659$as_echo "yes" >&6; }
6ae7fef5
BB
18660
18661cat >>confdefs.h <<\_ACEOF
8934764e 18662#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
6ae7fef5
BB
18663_ACEOF
18664
6ae7fef5 18665
8934764e
BB
18666else
18667 $as_echo "$as_me: failed program was:" >&5
18668sed 's/^/| /' conftest.$ac_ext >&5
c5f70460 18669
8934764e
BB
18670 { $as_echo "$as_me:$LINENO: result: no" >&5
18671$as_echo "no" >&6; }
bf9f3bac 18672
bf9f3bac 18673
8934764e
BB
18674
18675fi
18676
18677 rm -Rf build
18678
18679
18680
18681 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18682$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18683
18684
dbe561d8 18685cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18686/* confdefs.h. */
bf9f3bac 18687_ACEOF
8934764e
BB
18688cat confdefs.h >>conftest.$ac_ext
18689cat >>conftest.$ac_ext <<_ACEOF
18690/* end confdefs.h. */
bf9f3bac 18691
18692
8934764e 18693 #include <linux/mm.h>
bf9f3bac 18694
8934764e
BB
18695int
18696main (void)
18697{
bf9f3bac 18698
03318641 18699 enum zone_stat_item zsi __attribute__ ((unused));
8934764e
BB
18700 zsi = NR_INACTIVE_ANON;
18701
18702 ;
18703 return 0;
18704}
c5f70460 18705
6ae7fef5 18706_ACEOF
c5f70460 18707
8934764e
BB
18708
18709 rm -Rf build && mkdir -p build
18710 echo "obj-m := conftest.o" >build/Makefile
18711 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18714 ac_status=$?
18715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718 (eval $ac_try) 2>&5
18719 ac_status=$?
18720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); }; }; then
18722
18723 { $as_echo "$as_me:$LINENO: result: yes" >&5
18724$as_echo "yes" >&6; }
c5f70460 18725
6ae7fef5 18726cat >>confdefs.h <<\_ACEOF
8934764e 18727#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
6ae7fef5 18728_ACEOF
c5f70460 18729
bf9f3bac 18730
8934764e
BB
18731else
18732 $as_echo "$as_me: failed program was:" >&5
18733sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 18734
8934764e
BB
18735 { $as_echo "$as_me:$LINENO: result: no" >&5
18736$as_echo "no" >&6; }
bf9f3bac 18737
bf9f3bac 18738
bf9f3bac 18739
8934764e 18740fi
bf9f3bac 18741
8934764e 18742 rm -Rf build
bf9f3bac 18743
8934764e
BB
18744
18745
18746 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18747$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18748
18749
dbe561d8 18750cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18751/* confdefs.h. */
bf9f3bac 18752_ACEOF
8934764e
BB
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
bf9f3bac 18756
bf9f3bac 18757
8934764e 18758 #include <linux/mm.h>
bf9f3bac 18759
8934764e
BB
18760int
18761main (void)
18762{
bf9f3bac 18763
03318641 18764 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18765 zsi = NR_INACTIVE_FILE;
6ae7fef5 18766
8934764e
BB
18767 ;
18768 return 0;
18769}
6ae7fef5 18770
6ae7fef5
BB
18771_ACEOF
18772
8934764e
BB
18773
18774 rm -Rf build && mkdir -p build
18775 echo "obj-m := conftest.o" >build/Makefile
18776 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18779 ac_status=$?
18780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; }; then
18787
18788 { $as_echo "$as_me:$LINENO: result: yes" >&5
18789$as_echo "yes" >&6; }
6ae7fef5
BB
18790
18791cat >>confdefs.h <<\_ACEOF
8934764e 18792#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
6ae7fef5
BB
18793_ACEOF
18794
6ae7fef5 18795
8934764e
BB
18796else
18797 $as_echo "$as_me: failed program was:" >&5
18798sed 's/^/| /' conftest.$ac_ext >&5
6ae7fef5 18799
8934764e
BB
18800 { $as_echo "$as_me:$LINENO: result: no" >&5
18801$as_echo "no" >&6; }
6ae7fef5 18802
6ae7fef5 18803
6ae7fef5 18804
8934764e 18805fi
6ae7fef5 18806
8934764e 18807 rm -Rf build
6ae7fef5 18808
6ae7fef5
BB
18809
18810
18811
8934764e
BB
18812 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
18813$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
bf9f3bac 18814
18815
dbe561d8 18816cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18817/* confdefs.h. */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h. */
18822
18823
6ae7fef5 18824 #include <linux/mm.h>
bf9f3bac 18825
18826int
18827main (void)
18828{
18829
03318641 18830 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18831 zsi = NR_ACTIVE;
bf9f3bac 18832
18833 ;
18834 return 0;
18835}
18836
18837_ACEOF
18838
c5f70460
BB
18839
18840 rm -Rf build && mkdir -p build
18841 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18842 if { 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 18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
8934764e 18846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18847 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849 (eval $ac_try) 2>&5
18850 ac_status=$?
8934764e 18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18852 (exit $ac_status); }; }; then
18853
8934764e
BB
18854 { $as_echo "$as_me:$LINENO: result: yes" >&5
18855$as_echo "yes" >&6; }
bf9f3bac 18856
18857cat >>confdefs.h <<\_ACEOF
8934764e 18858#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
bf9f3bac 18859_ACEOF
18860
18861
18862else
8934764e 18863 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18864sed 's/^/| /' conftest.$ac_ext >&5
18865
8934764e
BB
18866 { $as_echo "$as_me:$LINENO: result: no" >&5
18867$as_echo "no" >&6; }
bf9f3bac 18868
c5f70460
BB
18869
18870
bf9f3bac 18871fi
c5f70460
BB
18872
18873 rm -Rf build
18874
bf9f3bac 18875
18876
8934764e
BB
18877 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
18878$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
6c9433c1
BB
18879
18880
dbe561d8 18881cat confdefs.h - <<_ACEOF >conftest.c
6c9433c1
BB
18882/* confdefs.h. */
18883_ACEOF
18884cat confdefs.h >>conftest.$ac_ext
18885cat >>conftest.$ac_ext <<_ACEOF
18886/* end confdefs.h. */
18887
18888
6ae7fef5 18889 #include <linux/mm.h>
6c9433c1
BB
18890
18891int
18892main (void)
18893{
18894
03318641 18895 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18896 zsi = NR_ACTIVE_ANON;
6c9433c1
BB
18897
18898 ;
18899 return 0;
18900}
18901
18902_ACEOF
18903
18904
18905 rm -Rf build && mkdir -p build
18906 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18907 if { 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
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
8934764e 18911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
18912 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
8934764e 18916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
18917 (exit $ac_status); }; }; then
18918
8934764e
BB
18919 { $as_echo "$as_me:$LINENO: result: yes" >&5
18920$as_echo "yes" >&6; }
6c9433c1
BB
18921
18922cat >>confdefs.h <<\_ACEOF
8934764e 18923#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
6c9433c1
BB
18924_ACEOF
18925
18926
18927else
8934764e 18928 $as_echo "$as_me: failed program was:" >&5
6c9433c1
BB
18929sed 's/^/| /' conftest.$ac_ext >&5
18930
8934764e
BB
18931 { $as_echo "$as_me:$LINENO: result: no" >&5
18932$as_echo "no" >&6; }
6c9433c1
BB
18933
18934
18935
18936fi
18937
18938 rm -Rf build
18939
18940
18941
8934764e
BB
18942 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
18943$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 18944
bf9f3bac 18945
dbe561d8 18946cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 18947/* confdefs.h. */
bf9f3bac 18948_ACEOF
6ae7fef5
BB
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
bf9f3bac 18952
bf9f3bac 18953
6ae7fef5 18954 #include <linux/mm.h>
bf9f3bac 18955
6ae7fef5
BB
18956int
18957main (void)
18958{
96dded38 18959
03318641 18960 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18961 zsi = NR_ACTIVE_FILE;
bf9f3bac 18962
6ae7fef5
BB
18963 ;
18964 return 0;
18965}
31a033ec 18966
6ae7fef5 18967_ACEOF
31a033ec 18968
c5f70460 18969
6ae7fef5
BB
18970 rm -Rf build && mkdir -p build
18971 echo "obj-m := conftest.o" >build/Makefile
18972 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974 (eval $ac_try) 2>&5
18975 ac_status=$?
8934764e 18976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18977 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979 (eval $ac_try) 2>&5
18980 ac_status=$?
8934764e 18981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 18982 (exit $ac_status); }; }; then
c5f70460 18983
8934764e
BB
18984 { $as_echo "$as_me:$LINENO: result: yes" >&5
18985$as_echo "yes" >&6; }
c5f70460 18986
96dded38 18987cat >>confdefs.h <<\_ACEOF
8934764e 18988#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
96dded38 18989_ACEOF
c5f70460 18990
31a033ec 18991
6ae7fef5 18992else
8934764e 18993 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
18994sed 's/^/| /' conftest.$ac_ext >&5
18995
8934764e
BB
18996 { $as_echo "$as_me:$LINENO: result: no" >&5
18997$as_echo "no" >&6; }
6ae7fef5
BB
18998
18999
19000
19001fi
19002
19003 rm -Rf build
31a033ec
BB
19004
19005
6ae7fef5 19006
8934764e
BB
19007
19008 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
19009$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
31a033ec
BB
19010
19011
dbe561d8 19012cat confdefs.h - <<_ACEOF >conftest.c
31a033ec
BB
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
19018
19019
31a033ec
BB
19020
19021int
19022main (void)
19023{
19024
8934764e
BB
19025 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19026 #error "global_page_state needs NR_FREE_PAGES"
19027 #endif
19028
19029 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19030 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19031 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19032 #error "global_page_state needs NR_ACTIVE*"
19033 #endif
19034
19035 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19036 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19037 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19038 #error "global_page_state needs NR_INACTIVE*"
19039 #endif
31a033ec
BB
19040
19041 ;
19042 return 0;
19043}
19044
19045_ACEOF
19046
c5f70460
BB
19047
19048 rm -Rf build && mkdir -p build
19049 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19050 if { 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
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19053 ac_status=$?
8934764e 19054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
19055 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057 (eval $ac_try) 2>&5
19058 ac_status=$?
8934764e 19059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
19060 (exit $ac_status); }; }; then
19061
8934764e
BB
19062 { $as_echo "$as_me:$LINENO: result: no" >&5
19063$as_echo "no" >&6; }
19064
19065else
19066 $as_echo "$as_me: failed program was:" >&5
19067sed 's/^/| /' conftest.$ac_ext >&5
19068
19069 { $as_echo "$as_me:$LINENO: result: yes" >&5
19070$as_echo "yes" >&6; }
31a033ec
BB
19071
19072cat >>confdefs.h <<\_ACEOF
8934764e 19073#define NEED_GET_ZONE_COUNTS 1
31a033ec
BB
19074_ACEOF
19075
19076
8934764e
BB
19077 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19078$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19079 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19080 $LINUX_OBJ/Module*.symvers 2>/dev/null
19081 rc=$?
19082 if test $rc -ne 0; then
19083 export=0
19084 for file in ; do
19085 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19086 "$LINUX_OBJ/$file" 2>/dev/null
19087 rc=$?
19088 if test $rc -eq 0; then
19089 export=1
19090 break;
19091 fi
19092 done
19093 if test $export -eq 0; then
19094 { $as_echo "$as_me:$LINENO: result: no" >&5
19095$as_echo "no" >&6; }
19096
19097 else
19098 { $as_echo "$as_me:$LINENO: result: yes" >&5
19099$as_echo "yes" >&6; }
19100
19101cat >>confdefs.h <<\_ACEOF
19102#define HAVE_GET_ZONE_COUNTS 1
19103_ACEOF
19104
19105 fi
19106 else
19107 { $as_echo "$as_me:$LINENO: result: yes" >&5
19108$as_echo "yes" >&6; }
19109
19110cat >>confdefs.h <<\_ACEOF
19111#define HAVE_GET_ZONE_COUNTS 1
19112_ACEOF
19113
19114 fi
bf9f3bac 19115
bf9f3bac 19116
c5f70460
BB
19117
19118
bf9f3bac 19119fi
c5f70460
BB
19120
19121 rm -Rf build
19122
bf9f3bac 19123
19124
8934764e 19125
7119bf70
BB
19126 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19127$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19128 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19129 $LINUX_OBJ/Module*.symvers 2>/dev/null
19130 rc=$?
19131 if test $rc -ne 0; then
19132 export=0
19133 for file in ; do
19134 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19135 "$LINUX_OBJ/$file" 2>/dev/null
19136 rc=$?
19137 if test $rc -eq 0; then
19138 export=1
19139 break;
19140 fi
19141 done
19142 if test $export -eq 0; then
19143 { $as_echo "$as_me:$LINENO: result: no" >&5
19144$as_echo "no" >&6; }
19145
19146 else
19147 { $as_echo "$as_me:$LINENO: result: yes" >&5
19148$as_echo "yes" >&6; }
19149
19150cat >>confdefs.h <<\_ACEOF
19151#define HAVE_USER_PATH_DIR 1
19152_ACEOF
19153
19154 fi
19155 else
19156 { $as_echo "$as_me:$LINENO: result: yes" >&5
19157$as_echo "yes" >&6; }
19158
19159cat >>confdefs.h <<\_ACEOF
19160#define HAVE_USER_PATH_DIR 1
19161_ACEOF
19162
19163 fi
19164
19165
19166
8934764e
BB
19167 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19168$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19169 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19170 $LINUX_OBJ/Module*.symvers 2>/dev/null
19171 rc=$?
19172 if test $rc -ne 0; then
19173 export=0
19174 for file in ; do
19175 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19176 "$LINUX_OBJ/$file" 2>/dev/null
19177 rc=$?
19178 if test $rc -eq 0; then
19179 export=1
19180 break;
19181 fi
19182 done
19183 if test $export -eq 0; then
19184 { $as_echo "$as_me:$LINENO: result: no" >&5
19185$as_echo "no" >&6; }
19186
19187 else
19188 { $as_echo "$as_me:$LINENO: result: yes" >&5
19189$as_echo "yes" >&6; }
19190
19191cat >>confdefs.h <<\_ACEOF
19192#define HAVE_SET_FS_PWD 1
19193_ACEOF
19194
19195 fi
19196 else
19197 { $as_echo "$as_me:$LINENO: result: yes" >&5
19198$as_echo "yes" >&6; }
19199
19200cat >>confdefs.h <<\_ACEOF
19201#define HAVE_SET_FS_PWD 1
19202_ACEOF
19203
19204 fi
19205
19206
19207 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19208$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
bf9f3bac 19209
d1ff2312 19210
dbe561d8 19211cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19212/* confdefs.h. */
d1ff2312 19213_ACEOF
6ae7fef5
BB
19214cat confdefs.h >>conftest.$ac_ext
19215cat >>conftest.$ac_ext <<_ACEOF
19216/* end confdefs.h. */
d1ff2312 19217
d1ff2312 19218
8934764e
BB
19219 #include <linux/sched.h>
19220 #include <linux/fs_struct.h>
d1ff2312 19221
6ae7fef5
BB
19222int
19223main (void)
19224{
d1ff2312 19225
8934764e 19226 set_fs_pwd(NULL, NULL);
d1ff2312 19227
6ae7fef5
BB
19228 ;
19229 return 0;
19230}
d1ff2312 19231
6ae7fef5 19232_ACEOF
d1ff2312 19233
d1ff2312 19234
6ae7fef5
BB
19235 rm -Rf build && mkdir -p build
19236 echo "obj-m := conftest.o" >build/Makefile
19237 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
8934764e 19241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19242 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
8934764e 19246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 19247 (exit $ac_status); }; }; then
d1ff2312 19248
8934764e
BB
19249 { $as_echo "$as_me:$LINENO: result: yes" >&5
19250$as_echo "yes" >&6; }
d1ff2312
BB
19251
19252cat >>confdefs.h <<\_ACEOF
8934764e 19253#define HAVE_2ARGS_SET_FS_PWD 1
d1ff2312
BB
19254_ACEOF
19255
5232d256 19256
6ae7fef5 19257else
8934764e 19258 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19259sed 's/^/| /' conftest.$ac_ext >&5
5232d256 19260
8934764e
BB
19261 { $as_echo "$as_me:$LINENO: result: no" >&5
19262$as_echo "no" >&6; }
5232d256
BB
19263
19264
36b313da 19265
6ae7fef5
BB
19266fi
19267
19268 rm -Rf build
19269
36b313da 19270
36b313da 19271
8934764e
BB
19272 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19273$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
19274
19275
dbe561d8 19276cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19277/* confdefs.h. */
36b313da 19278_ACEOF
6ae7fef5
BB
19279cat confdefs.h >>conftest.$ac_ext
19280cat >>conftest.$ac_ext <<_ACEOF
19281/* end confdefs.h. */
36b313da 19282
36b313da 19283
8934764e 19284 #include <linux/fs.h>
36b313da 19285
6ae7fef5
BB
19286int
19287main (void)
19288{
36b313da 19289
8934764e 19290 vfs_unlink(NULL, NULL);
36b313da 19291
6ae7fef5
BB
19292 ;
19293 return 0;
19294}
36b313da 19295
36b313da
BB
19296_ACEOF
19297
6ae7fef5
BB
19298
19299 rm -Rf build && mkdir -p build
19300 echo "obj-m := conftest.o" >build/Makefile
19301 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
8934764e 19305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19306 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
8934764e 19310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19311 (exit $ac_status); }; }; then
19312
8934764e
BB
19313 { $as_echo "$as_me:$LINENO: result: yes" >&5
19314$as_echo "yes" >&6; }
36b313da
BB
19315
19316cat >>confdefs.h <<\_ACEOF
8934764e 19317#define HAVE_2ARGS_VFS_UNLINK 1
36b313da
BB
19318_ACEOF
19319
36b313da 19320
6ae7fef5 19321else
8934764e 19322 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19323sed 's/^/| /' conftest.$ac_ext >&5
36b313da 19324
8934764e
BB
19325 { $as_echo "$as_me:$LINENO: result: no" >&5
19326$as_echo "no" >&6; }
36b313da 19327
36b313da 19328
36b313da 19329
6ae7fef5 19330fi
36b313da 19331
6ae7fef5
BB
19332 rm -Rf build
19333
19334
19335
8934764e
BB
19336 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19337$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
19338
19339
dbe561d8 19340cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19341/* confdefs.h. */
36b313da 19342_ACEOF
6ae7fef5
BB
19343cat confdefs.h >>conftest.$ac_ext
19344cat >>conftest.$ac_ext <<_ACEOF
19345/* end confdefs.h. */
36b313da 19346
36b313da 19347
8934764e 19348 #include <linux/fs.h>
36b313da 19349
6ae7fef5
BB
19350int
19351main (void)
19352{
36b313da 19353
8934764e 19354 vfs_rename(NULL, NULL, NULL, NULL);
5232d256 19355
6ae7fef5
BB
19356 ;
19357 return 0;
19358}
5232d256 19359
5232d256
BB
19360_ACEOF
19361
6ae7fef5
BB
19362
19363 rm -Rf build && mkdir -p build
19364 echo "obj-m := conftest.o" >build/Makefile
19365 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367 (eval $ac_try) 2>&5
19368 ac_status=$?
8934764e 19369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19370 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19372 (eval $ac_try) 2>&5
19373 ac_status=$?
8934764e 19374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19375 (exit $ac_status); }; }; then
19376
8934764e
BB
19377 { $as_echo "$as_me:$LINENO: result: yes" >&5
19378$as_echo "yes" >&6; }
5232d256
BB
19379
19380cat >>confdefs.h <<\_ACEOF
8934764e 19381#define HAVE_4ARGS_VFS_RENAME 1
5232d256
BB
19382_ACEOF
19383
5232d256 19384
9b2048c2
BB
19385else
19386 $as_echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389 { $as_echo "$as_me:$LINENO: result: no" >&5
19390$as_echo "no" >&6; }
19391
19392
19393
19394fi
19395
19396 rm -Rf build
19397
19398
19399
19400
0d0b5237
BB
19401 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19402$as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19403 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19404 $LINUX_OBJ/Module*.symvers 2>/dev/null
19405 rc=$?
19406 if test $rc -ne 0; then
19407 export=0
19408 for file in fs/sync.c; do
19409 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19410 "$LINUX_OBJ/$file" 2>/dev/null
19411 rc=$?
19412 if test $rc -eq 0; then
19413 export=1
19414 break;
19415 fi
19416 done
19417 if test $export -eq 0; then
19418 { $as_echo "$as_me:$LINENO: result: no" >&5
19419$as_echo "no" >&6; }
19420
19421 else
19422 { $as_echo "$as_me:$LINENO: result: yes" >&5
19423$as_echo "yes" >&6; }
19424
19425cat >>confdefs.h <<\_ACEOF
19426#define HAVE_VFS_FSYNC 1
19427_ACEOF
19428
19429 fi
19430 else
19431 { $as_echo "$as_me:$LINENO: result: yes" >&5
19432$as_echo "yes" >&6; }
19433
19434cat >>confdefs.h <<\_ACEOF
19435#define HAVE_VFS_FSYNC 1
19436_ACEOF
19437
19438 fi
19439
19440
19441
19442 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19443$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19444
19445
19446cat confdefs.h - <<_ACEOF >conftest.c
19447/* confdefs.h. */
19448_ACEOF
19449cat confdefs.h >>conftest.$ac_ext
19450cat >>conftest.$ac_ext <<_ACEOF
19451/* end confdefs.h. */
19452
19453
19454 #include <linux/fs.h>
19455
19456int
19457main (void)
19458{
19459
19460 vfs_fsync(NULL, 0);
19461
19462 ;
19463 return 0;
19464}
19465
19466_ACEOF
19467
19468
19469 rm -Rf build && mkdir -p build
19470 echo "obj-m := conftest.o" >build/Makefile
19471 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19473 (eval $ac_try) 2>&5
19474 ac_status=$?
19475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482
19483 { $as_echo "$as_me:$LINENO: result: yes" >&5
19484$as_echo "yes" >&6; }
19485
19486cat >>confdefs.h <<\_ACEOF
19487#define HAVE_2ARGS_VFS_FSYNC 1
19488_ACEOF
19489
19490
19491else
19492 $as_echo "$as_me: failed program was:" >&5
19493sed 's/^/| /' conftest.$ac_ext >&5
19494
19495 { $as_echo "$as_me:$LINENO: result: no" >&5
19496$as_echo "no" >&6; }
19497
19498
19499
19500fi
19501
19502 rm -Rf build
19503
19504
19505
19506
9b2048c2
BB
19507 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19508$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
97fd6a07
BB
19509 tmp_flags="$EXTRA_KCFLAGS"
19510 EXTRA_KCFLAGS="-Werror"
9b2048c2
BB
19511
19512
19513cat confdefs.h - <<_ACEOF >conftest.c
19514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h. */
19519
19520
19521 #include <linux/sched.h>
19522 #include <linux/fs_struct.h>
19523
19524int
19525main (void)
19526{
19527
19528 struct fs_struct fs;
19529 spin_lock_init(&fs.lock);
19530
19531 ;
19532 return 0;
19533}
19534
19535_ACEOF
19536
19537
19538 rm -Rf build && mkdir -p build
19539 echo "obj-m := conftest.o" >build/Makefile
19540 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19548 ac_status=$?
19549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551
19552 { $as_echo "$as_me:$LINENO: result: yes" >&5
19553$as_echo "yes" >&6; }
19554
19555cat >>confdefs.h <<\_ACEOF
19556#define HAVE_FS_STRUCT_SPINLOCK 1
19557_ACEOF
19558
19559
6ae7fef5 19560else
8934764e 19561 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19562sed 's/^/| /' conftest.$ac_ext >&5
5232d256 19563
8934764e
BB
19564 { $as_echo "$as_me:$LINENO: result: no" >&5
19565$as_echo "no" >&6; }
4ab13d3b 19566
4ab13d3b 19567
4ab13d3b 19568
6ae7fef5 19569fi
4ab13d3b 19570
6ae7fef5 19571 rm -Rf build
96dded38
BB
19572
19573
97fd6a07 19574 EXTRA_KCFLAGS="$tmp_flags"
96dded38 19575
8934764e
BB
19576
19577 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19578$as_echo_n "checking whether struct cred exists... " >&6; }
96dded38
BB
19579
19580
dbe561d8 19581cat confdefs.h - <<_ACEOF >conftest.c
96dded38
BB
19582/* confdefs.h. */
19583_ACEOF
19584cat confdefs.h >>conftest.$ac_ext
19585cat >>conftest.$ac_ext <<_ACEOF
19586/* end confdefs.h. */
19587
19588
8934764e 19589 #include <linux/cred.h>
96dded38
BB
19590
19591int
19592main (void)
19593{
19594
03318641 19595 struct cred *cr __attribute__ ((unused));
8934764e 19596 cr = NULL;
96dded38
BB
19597
19598 ;
19599 return 0;
19600}
19601
19602_ACEOF
19603
19604
19605 rm -Rf build && mkdir -p build
19606 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19607 if { 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
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
8934764e 19611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
19612 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19615 ac_status=$?
8934764e 19616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
19617 (exit $ac_status); }; }; then
19618
8934764e
BB
19619 { $as_echo "$as_me:$LINENO: result: yes" >&5
19620$as_echo "yes" >&6; }
96dded38
BB
19621
19622cat >>confdefs.h <<\_ACEOF
8934764e 19623#define HAVE_CRED_STRUCT 1
96dded38
BB
19624_ACEOF
19625
19626
19627else
8934764e 19628 $as_echo "$as_me: failed program was:" >&5
96dded38
BB
19629sed 's/^/| /' conftest.$ac_ext >&5
19630
8934764e
BB
19631 { $as_echo "$as_me:$LINENO: result: no" >&5
19632$as_echo "no" >&6; }
96dded38
BB
19633
19634
19635
19636fi
19637
19638 rm -Rf build
19639
4ab13d3b
BB
19640
19641
19642
8934764e
BB
19643 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19644$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19645 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19646 $LINUX_OBJ/Module*.symvers 2>/dev/null
19647 rc=$?
19648 if test $rc -ne 0; then
19649 export=0
19650 for file in ; do
19651 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19652 "$LINUX_OBJ/$file" 2>/dev/null
19653 rc=$?
19654 if test $rc -eq 0; then
19655 export=1
19656 break;
19657 fi
19658 done
19659 if test $export -eq 0; then
19660 { $as_echo "$as_me:$LINENO: result: no" >&5
19661$as_echo "no" >&6; }
19662
19663 else
19664 { $as_echo "$as_me:$LINENO: result: yes" >&5
19665$as_echo "yes" >&6; }
19666
19667cat >>confdefs.h <<\_ACEOF
19668#define HAVE_GROUPS_SEARCH 1
19669_ACEOF
19670
19671 fi
19672 else
19673 { $as_echo "$as_me:$LINENO: result: yes" >&5
19674$as_echo "yes" >&6; }
19675
19676cat >>confdefs.h <<\_ACEOF
19677#define HAVE_GROUPS_SEARCH 1
19678_ACEOF
19679
19680 fi
19681
19682
19683
19684 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19685$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19686 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19687 $LINUX_OBJ/Module*.symvers 2>/dev/null
19688 rc=$?
19689 if test $rc -ne 0; then
19690 export=0
19691 for file in ; do
19692 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19693 "$LINUX_OBJ/$file" 2>/dev/null
19694 rc=$?
19695 if test $rc -eq 0; then
19696 export=1
19697 break;
19698 fi
19699 done
19700 if test $export -eq 0; then
19701 { $as_echo "$as_me:$LINENO: result: no" >&5
19702$as_echo "no" >&6; }
19703
19704 else
19705 { $as_echo "$as_me:$LINENO: result: yes" >&5
19706$as_echo "yes" >&6; }
19707
19708cat >>confdefs.h <<\_ACEOF
19709#define HAVE_PUT_TASK_STRUCT 1
19710_ACEOF
19711
19712 fi
19713 else
19714 { $as_echo "$as_me:$LINENO: result: yes" >&5
19715$as_echo "yes" >&6; }
19716
19717cat >>confdefs.h <<\_ACEOF
19718#define HAVE_PUT_TASK_STRUCT 1
19719_ACEOF
19720
19721 fi
19722
19723
19724
19725 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19726$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
e11d6c5f
BB
19727
19728
dbe561d8 19729cat confdefs.h - <<_ACEOF >conftest.c
e11d6c5f
BB
19730/* confdefs.h. */
19731_ACEOF
19732cat confdefs.h >>conftest.$ac_ext
19733cat >>conftest.$ac_ext <<_ACEOF
19734/* end confdefs.h. */
19735
19736
8934764e 19737 #include <linux/sysctl.h>
e11d6c5f 19738
8934764e
BB
19739int
19740main (void)
19741{
19742
19743 proc_dostring(NULL, 0, NULL, NULL, NULL);
e11d6c5f
BB
19744
19745 ;
19746 return 0;
19747}
19748
19749_ACEOF
19750
19751
19752 rm -Rf build && mkdir -p build
19753 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19754 if { 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
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
8934764e 19758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
19759 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19762 ac_status=$?
8934764e 19763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
19764 (exit $ac_status); }; }; then
19765
8934764e
BB
19766 { $as_echo "$as_me:$LINENO: result: yes" >&5
19767$as_echo "yes" >&6; }
19768
19769cat >>confdefs.h <<\_ACEOF
19770#define HAVE_5ARGS_PROC_HANDLER 1
19771_ACEOF
19772
6ae7fef5
BB
19773
19774else
8934764e 19775 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
19776sed 's/^/| /' conftest.$ac_ext >&5
19777
8934764e
BB
19778 { $as_echo "$as_me:$LINENO: result: no" >&5
19779$as_echo "no" >&6; }
e11d6c5f 19780
e11d6c5f
BB
19781
19782
8934764e 19783fi
e11d6c5f 19784
8934764e
BB
19785 rm -Rf build
19786
19787
19788
19789
b868e22f
BB
19790 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
19791$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
19792 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
19793 $LINUX_OBJ/Module*.symvers 2>/dev/null
19794 rc=$?
19795 if test $rc -ne 0; then
19796 export=0
19797 for file in ; do
19798 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
19799 "$LINUX_OBJ/$file" 2>/dev/null
19800 rc=$?
19801 if test $rc -eq 0; then
19802 export=1
19803 break;
19804 fi
19805 done
19806 if test $export -eq 0; then
19807 { $as_echo "$as_me:$LINENO: result: no" >&5
19808$as_echo "no" >&6; }
19809
19810 else
19811 { $as_echo "$as_me:$LINENO: result: yes" >&5
19812$as_echo "yes" >&6; }
19813
19814cat >>confdefs.h <<\_ACEOF
19815#define HAVE_KVASPRINTF 1
19816_ACEOF
19817
19818 fi
19819 else
19820 { $as_echo "$as_me:$LINENO: result: yes" >&5
19821$as_echo "yes" >&6; }
19822
19823cat >>confdefs.h <<\_ACEOF
19824#define HAVE_KVASPRINTF 1
19825_ACEOF
19826
19827 fi
19828
19829
19830
46aa7b39
NB
19831 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
19832$as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
19833 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
19834 $LINUX_OBJ/Module*.symvers 2>/dev/null
19835 rc=$?
19836 if test $rc -ne 0; then
19837 export=0
19838 for file in lib/rwsem-spinlock.c; do
19839 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
19840 "$LINUX_OBJ/$file" 2>/dev/null
19841 rc=$?
19842 if test $rc -eq 0; then
19843 export=1
19844 break;
19845 fi
19846 done
19847 if test $export -eq 0; then
19848 { $as_echo "$as_me:$LINENO: result: no" >&5
19849$as_echo "no" >&6; }
19850
19851 else
19852 { $as_echo "$as_me:$LINENO: result: yes" >&5
19853$as_echo "yes" >&6; }
19854
19855cat >>confdefs.h <<\_ACEOF
19856#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19857_ACEOF
19858
19859 fi
19860 else
19861 { $as_echo "$as_me:$LINENO: result: yes" >&5
19862$as_echo "yes" >&6; }
19863
19864cat >>confdefs.h <<\_ACEOF
19865#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
19866_ACEOF
19867
19868 fi
19869
19870
19871
914b0631
BB
19872 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
19873$as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
19874 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
19875 $LINUX_OBJ/Module*.symvers 2>/dev/null
19876 rc=$?
19877 if test $rc -ne 0; then
19878 export=0
19879 for file in ; do
19880 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
19881 "$LINUX_OBJ/$file" 2>/dev/null
19882 rc=$?
19883 if test $rc -eq 0; then
19884 export=1
19885 break;
19886 fi
19887 done
19888 if test $export -eq 0; then
19889 { $as_echo "$as_me:$LINENO: result: no" >&5
19890$as_echo "no" >&6; }
19891
19892 else
19893 { $as_echo "$as_me:$LINENO: result: yes" >&5
19894$as_echo "yes" >&6; }
19895
19896cat >>confdefs.h <<\_ACEOF
19897#define HAVE_INVALIDATE_INODES 1
19898_ACEOF
19899
19900 fi
19901 else
19902 { $as_echo "$as_me:$LINENO: result: yes" >&5
19903$as_echo "yes" >&6; }
19904
19905cat >>confdefs.h <<\_ACEOF
19906#define HAVE_INVALIDATE_INODES 1
19907_ACEOF
19908
19909 fi
19910
19911
9b0f9079
BB
19912 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
19913$as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
19914
19915
19916cat confdefs.h - <<_ACEOF >conftest.c
19917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
19922
19923
19924 #include <linux/fs.h>
19925
19926int
19927main (void)
19928{
19929
19930 return __invalidate_device(NULL, 0);
19931
19932 ;
19933 return 0;
19934}
19935
19936_ACEOF
19937
19938
19939 rm -Rf build && mkdir -p build
19940 echo "obj-m := conftest.o" >build/Makefile
19941 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19949 ac_status=$?
19950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952
19953 { $as_echo "$as_me:$LINENO: result: yes" >&5
19954$as_echo "yes" >&6; }
19955
19956cat >>confdefs.h <<\_ACEOF
19957#define HAVE_2ARGS_INVALIDATE_INODES 1
19958_ACEOF
19959
19960
19961else
19962 $as_echo "$as_me: failed program was:" >&5
19963sed 's/^/| /' conftest.$ac_ext >&5
19964
19965 { $as_echo "$as_me:$LINENO: result: no" >&5
19966$as_echo "no" >&6; }
19967
19968
19969
19970fi
19971
19972 rm -Rf build
19973
19974
19975
914b0631 19976
e76f4bf1
BB
19977 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
19978$as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
19979 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
19980 $LINUX_OBJ/Module*.symvers 2>/dev/null
19981 rc=$?
19982 if test $rc -ne 0; then
19983 export=0
19984 for file in fs/dcache.c; do
19985 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
19986 "$LINUX_OBJ/$file" 2>/dev/null
19987 rc=$?
19988 if test $rc -eq 0; then
19989 export=1
19990 break;
19991 fi
19992 done
19993 if test $export -eq 0; then
19994 { $as_echo "$as_me:$LINENO: result: no" >&5
19995$as_echo "no" >&6; }
19996
19997 else
19998 { $as_echo "$as_me:$LINENO: result: yes" >&5
19999$as_echo "yes" >&6; }
20000
20001cat >>confdefs.h <<\_ACEOF
20002#define HAVE_SHRINK_DCACHE_MEMORY 1
20003_ACEOF
20004
20005 fi
20006 else
20007 { $as_echo "$as_me:$LINENO: result: yes" >&5
20008$as_echo "yes" >&6; }
20009
20010cat >>confdefs.h <<\_ACEOF
20011#define HAVE_SHRINK_DCACHE_MEMORY 1
20012_ACEOF
20013
20014 fi
20015
20016
20017
20018 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
20019$as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
20020 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
20021 $LINUX_OBJ/Module*.symvers 2>/dev/null
20022 rc=$?
20023 if test $rc -ne 0; then
20024 export=0
20025 for file in fs/inode.c; do
20026 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
20027 "$LINUX_OBJ/$file" 2>/dev/null
20028 rc=$?
20029 if test $rc -eq 0; then
20030 export=1
20031 break;
20032 fi
20033 done
20034 if test $export -eq 0; then
20035 { $as_echo "$as_me:$LINENO: result: no" >&5
20036$as_echo "no" >&6; }
20037
20038 else
20039 { $as_echo "$as_me:$LINENO: result: yes" >&5
20040$as_echo "yes" >&6; }
20041
20042cat >>confdefs.h <<\_ACEOF
20043#define HAVE_SHRINK_ICACHE_MEMORY 1
20044_ACEOF
20045
20046 fi
20047 else
20048 { $as_echo "$as_me:$LINENO: result: yes" >&5
20049$as_echo "yes" >&6; }
20050
20051cat >>confdefs.h <<\_ACEOF
20052#define HAVE_SHRINK_ICACHE_MEMORY 1
20053_ACEOF
20054
20055 fi
20056
20057
20058
12ff95ff
BB
20059
20060 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20061$as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20062 header=0
20063 for file in include/linux/namei.h; do
20064 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20065 rc=$?
20066 if test $rc -eq 0; then
20067 header=1
20068 break;
20069 fi
20070 done
20071 if test $header -eq 0; then
20072 { $as_echo "$as_me:$LINENO: result: no" >&5
20073$as_echo "no" >&6; }
20074
20075 else
20076 { $as_echo "$as_me:$LINENO: result: yes" >&5
20077$as_echo "yes" >&6; }
20078
20079cat >>confdefs.h <<\_ACEOF
20080#define HAVE_KERN_PATH_PARENT_HEADER 1
20081_ACEOF
20082
20083 fi
20084
20085
20086
b1cbc461
BB
20087 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20088$as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20089 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20090 $LINUX_OBJ/Module*.symvers 2>/dev/null
20091 rc=$?
20092 if test $rc -ne 0; then
20093 export=0
20094 for file in fs/namei.c; do
20095 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20096 "$LINUX_OBJ/$file" 2>/dev/null
20097 rc=$?
20098 if test $rc -eq 0; then
20099 export=1
20100 break;
20101 fi
20102 done
20103 if test $export -eq 0; then
20104 { $as_echo "$as_me:$LINENO: result: no" >&5
20105$as_echo "no" >&6; }
20106
20107 else
20108 { $as_echo "$as_me:$LINENO: result: yes" >&5
20109$as_echo "yes" >&6; }
20110
20111cat >>confdefs.h <<\_ACEOF
12ff95ff 20112#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
20113_ACEOF
20114
20115 fi
20116 else
20117 { $as_echo "$as_me:$LINENO: result: yes" >&5
20118$as_echo "yes" >&6; }
20119
20120cat >>confdefs.h <<\_ACEOF
12ff95ff 20121#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
20122_ACEOF
20123
20124 fi
20125
20126
3dfc591a
BB
20127 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20128$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20129
20130
20131cat confdefs.h - <<_ACEOF >conftest.c
20132/* confdefs.h. */
20133_ACEOF
20134cat confdefs.h >>conftest.$ac_ext
20135cat >>conftest.$ac_ext <<_ACEOF
20136/* end confdefs.h. */
20137
20138
20139 #include <linux/zlib.h>
20140
20141int
20142main (void)
20143{
20144
20145 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20146
20147 ;
20148 return 0;
20149}
20150
20151_ACEOF
20152
20153
20154 rm -Rf build && mkdir -p build
20155 echo "obj-m := conftest.o" >build/Makefile
20156 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20164 ac_status=$?
20165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167
20168 { $as_echo "$as_me:$LINENO: result: yes" >&5
20169$as_echo "yes" >&6; }
20170
20171cat >>confdefs.h <<\_ACEOF
20172#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20173_ACEOF
20174
20175
20176else
20177 $as_echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
20180 { $as_echo "$as_me:$LINENO: result: no" >&5
20181$as_echo "no" >&6; }
a55bcaad
BB
20182
20183
20184
20185fi
20186
20187 rm -Rf build
20188
20189
20190
20191
20192 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20193$as_echo_n "checking whether struct shrink_control exists... " >&6; }
20194
20195
20196cat confdefs.h - <<_ACEOF >conftest.c
20197/* confdefs.h. */
20198_ACEOF
20199cat confdefs.h >>conftest.$ac_ext
20200cat >>conftest.$ac_ext <<_ACEOF
20201/* end confdefs.h. */
20202
20203
20204 #include <linux/mm.h>
20205
20206int
20207main (void)
20208{
20209
20210 struct shrink_control sc __attribute__ ((unused));
20211
20212 sc.nr_to_scan = 0;
20213 sc.gfp_mask = GFP_KERNEL;
20214
20215 ;
20216 return 0;
20217}
20218
20219_ACEOF
20220
20221
20222 rm -Rf build && mkdir -p build
20223 echo "obj-m := conftest.o" >build/Makefile
20224 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; }; then
20235
20236 { $as_echo "$as_me:$LINENO: result: yes" >&5
20237$as_echo "yes" >&6; }
20238
20239cat >>confdefs.h <<\_ACEOF
20240#define HAVE_SHRINK_CONTROL_STRUCT 1
20241_ACEOF
20242
20243
20244else
20245 $as_echo "$as_me: failed program was:" >&5
20246sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 { $as_echo "$as_me:$LINENO: result: no" >&5
20249$as_echo "no" >&6; }
3dfc591a
BB
20250
20251
20252
20253fi
20254
20255 rm -Rf build
20256
20257
20258
b1cbc461 20259
ad35b6a6 20260 ;;
8934764e
BB
20261 srpm) ;;
20262 *)
20263 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20264$as_echo "Error!" >&6; }
20265 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20266 user kernel|user|all|srpm" >&5
20267$as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20268 user kernel|user|all|srpm" >&2;}
20269 { (exit 1); exit 1; }; } ;;
20270 esac
20271
20272 if test "$SPL_CONFIG" = user ||
20273 test "$SPL_CONFIG" = all; then
20274 CONFIG_USER_TRUE=
20275 CONFIG_USER_FALSE='#'
20276else
20277 CONFIG_USER_TRUE='#'
20278 CONFIG_USER_FALSE=
20279fi
20280
20281 if test "$SPL_CONFIG" = kernel ||
20282 test "$SPL_CONFIG" = all; then
20283 CONFIG_KERNEL_TRUE=
20284 CONFIG_KERNEL_FALSE='#'
20285else
20286 CONFIG_KERNEL_TRUE='#'
20287 CONFIG_KERNEL_FALSE=
20288fi
20289
20290
20291
c2dceb5c 20292ac_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
20293
20294
20295cat >confcache <<\_ACEOF
20296# This file is a shell script that caches the results of configure
20297# tests run on this system so they can be shared between configure
20298# scripts and configure runs, see configure's option --config-cache.
20299# It is not useful on other systems. If it contains results you don't
20300# want to keep, you may remove or edit it.
20301#
20302# config.status only pays attention to the cache file if you give it
20303# the --recheck option to rerun configure.
20304#
20305# `ac_cv_env_foo' variables (set or unset) will be overridden when
20306# loading this file, other *unset* `ac_cv_foo' will be assigned the
20307# following values.
6ae7fef5 20308
6ae7fef5
BB
20309_ACEOF
20310
8934764e
BB
20311# The following way of writing the cache mishandles newlines in values,
20312# but we know of no workaround that is simple, portable, and efficient.
20313# So, we kill variables containing newlines.
20314# Ultrix sh set writes to stderr and can't be redirected directly,
20315# and sets the high bit in the cache file unless we assign to the vars.
20316(
20317 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20318 eval ac_val=\$$ac_var
20319 case $ac_val in #(
20320 *${as_nl}*)
20321 case $ac_var in #(
20322 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20323$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20324 esac
20325 case $ac_var in #(
20326 _ | IFS | as_nl) ;; #(
20327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20328 *) $as_unset $ac_var ;;
20329 esac ;;
20330 esac
20331 done
6ae7fef5 20332
8934764e
BB
20333 (set) 2>&1 |
20334 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20335 *${as_nl}ac_space=\ *)
20336 # `set' does not quote correctly, so add quotes (double-quote
20337 # substitution turns \\\\ into \\, and sed turns \\ into \).
20338 sed -n \
20339 "s/'/'\\\\''/g;
20340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20341 ;; #(
20342 *)
20343 # `set' quotes correctly as required by POSIX, so do not add quotes.
20344 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20345 ;;
20346 esac |
20347 sort
20348) |
20349 sed '
20350 /^ac_cv_env_/b end
20351 t clear
20352 :clear
20353 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20354 t end
20355 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20356 :end' >>confcache
20357if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20358 if test -w "$cache_file"; then
20359 test "x$cache_file" != "x/dev/null" &&
20360 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20361$as_echo "$as_me: updating cache $cache_file" >&6;}
20362 cat confcache >$cache_file
20363 else
20364 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20365$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20366 fi
20367fi
20368rm -f confcache
20369
20370test "x$prefix" = xNONE && prefix=$ac_default_prefix
20371# Let make expand exec_prefix.
20372test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20373
20374DEFS=-DHAVE_CONFIG_H
20375
20376ac_libobjs=
20377ac_ltlibobjs=
20378for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20379 # 1. Remove the extension, and $U if already installed.
20380 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20381 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20382 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20383 # will be set to the directory where LIBOBJS objects are built.
20384 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20385 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20386done
20387LIBOBJS=$ac_libobjs
20388
20389LTLIBOBJS=$ac_ltlibobjs
20390
20391
20392if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20393 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20394Usually this means the macro was only invoked conditionally." >&5
20395$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20396Usually this means the macro was only invoked conditionally." >&2;}
20397 { (exit 1); exit 1; }; }
20398fi
20399 if test -n "$EXEEXT"; then
20400 am__EXEEXT_TRUE=
20401 am__EXEEXT_FALSE='#'
20402else
20403 am__EXEEXT_TRUE='#'
20404 am__EXEEXT_FALSE=
20405fi
20406
20407if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20408 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20409Usually this means the macro was only invoked conditionally." >&5
20410$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20411Usually this means the macro was only invoked conditionally." >&2;}
20412 { (exit 1); exit 1; }; }
20413fi
20414if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20415 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20416Usually this means the macro was only invoked conditionally." >&5
20417$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20418Usually this means the macro was only invoked conditionally." >&2;}
20419 { (exit 1); exit 1; }; }
20420fi
20421if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20422 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20423Usually this means the macro was only invoked conditionally." >&5
20424$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20425Usually this means the macro was only invoked conditionally." >&2;}
20426 { (exit 1); exit 1; }; }
20427fi
20428if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20429 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20430Usually this means the macro was only invoked conditionally." >&5
20431$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20432Usually this means the macro was only invoked conditionally." >&2;}
20433 { (exit 1); exit 1; }; }
20434fi
20435
20436: ${CONFIG_STATUS=./config.status}
20437ac_write_fail=0
20438ac_clean_files_save=$ac_clean_files
20439ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20440{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20441$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20442cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20443#! $SHELL
20444# Generated by $as_me.
20445# Run this file to recreate the current configuration.
20446# Compiler output produced by configure, useful for debugging
20447# configure, is in config.log if it exists.
20448
20449debug=false
20450ac_cs_recheck=false
20451ac_cs_silent=false
20452SHELL=\${CONFIG_SHELL-$SHELL}
6ae7fef5
BB
20453_ACEOF
20454
8934764e
BB
20455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20456## --------------------- ##
20457## M4sh Initialization. ##
20458## --------------------- ##
20459
20460# Be more Bourne compatible
20461DUALCASE=1; export DUALCASE # for MKS sh
20462if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20463 emulate sh
20464 NULLCMD=:
20465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20466 # is contrary to our usage. Disable this feature.
20467 alias -g '${1+"$@"}'='"$@"'
20468 setopt NO_GLOB_SUBST
20469else
20470 case `(set -o) 2>/dev/null` in
20471 *posix*) set -o posix ;;
20472esac
20473
20474fi
20475
6ae7fef5
BB
20476
20477
e11d6c5f 20478
8934764e
BB
20479# PATH needs CR
20480# Avoid depending upon Character Ranges.
20481as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20483as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20484as_cr_digits='0123456789'
20485as_cr_alnum=$as_cr_Letters$as_cr_digits
e11d6c5f 20486
8934764e
BB
20487as_nl='
20488'
20489export as_nl
20490# Printing a long string crashes Solaris 7 /usr/bin/printf.
20491as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20493as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20494if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20495 as_echo='printf %s\n'
20496 as_echo_n='printf %s'
20497else
20498 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20499 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20500 as_echo_n='/usr/ucb/echo -n'
20501 else
20502 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20503 as_echo_n_body='eval
20504 arg=$1;
20505 case $arg in
20506 *"$as_nl"*)
20507 expr "X$arg" : "X\\(.*\\)$as_nl";
20508 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20509 esac;
20510 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20511 '
20512 export as_echo_n_body
20513 as_echo_n='sh -c $as_echo_n_body as_echo'
20514 fi
20515 export as_echo_body
20516 as_echo='sh -c $as_echo_body as_echo'
51a727e9
BB
20517fi
20518
8934764e
BB
20519# The user is always right.
20520if test "${PATH_SEPARATOR+set}" != set; then
20521 PATH_SEPARATOR=:
20522 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20523 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20524 PATH_SEPARATOR=';'
20525 }
20526fi
51a727e9 20527
8934764e
BB
20528# Support unset when possible.
20529if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20530 as_unset=unset
20531else
20532 as_unset=false
20533fi
51a727e9
BB
20534
20535
8934764e
BB
20536# IFS
20537# We need space, tab and new line, in precisely that order. Quoting is
20538# there to prevent editors from complaining about space-tab.
20539# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20540# splitting by setting IFS to empty value.)
20541IFS=" "" $as_nl"
20542
20543# Find who we are. Look in the path if we contain no directory separator.
20544case $0 in
20545 *[\\/]* ) as_myself=$0 ;;
20546 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20547for as_dir in $PATH
20548do
20549 IFS=$as_save_IFS
20550 test -z "$as_dir" && as_dir=.
20551 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20552done
20553IFS=$as_save_IFS
51a727e9 20554
8934764e
BB
20555 ;;
20556esac
20557# We did not find ourselves, most probably we were run as `sh COMMAND'
20558# in which case we are not to be found in the path.
20559if test "x$as_myself" = x; then
20560 as_myself=$0
20561fi
20562if test ! -f "$as_myself"; then
20563 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20564 { (exit 1); exit 1; }
20565fi
51a727e9 20566
8934764e
BB
20567# Work around bugs in pre-3.0 UWIN ksh.
20568for as_var in ENV MAIL MAILPATH
20569do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20570done
20571PS1='$ '
20572PS2='> '
20573PS4='+ '
51a727e9 20574
8934764e
BB
20575# NLS nuisances.
20576LC_ALL=C
20577export LC_ALL
20578LANGUAGE=C
20579export LANGUAGE
51a727e9 20580
8934764e
BB
20581# Required to use basename.
20582if expr a : '\(a\)' >/dev/null 2>&1 &&
20583 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20584 as_expr=expr
20585else
20586 as_expr=false
20587fi
51a727e9 20588
8934764e
BB
20589if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20590 as_basename=basename
20591else
20592 as_basename=false
20593fi
51a727e9 20594
51a727e9 20595
8934764e
BB
20596# Name of the executable.
20597as_me=`$as_basename -- "$0" ||
20598$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20599 X"$0" : 'X\(//\)$' \| \
20600 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20601$as_echo X/"$0" |
20602 sed '/^.*\/\([^/][^/]*\)\/*$/{
20603 s//\1/
20604 q
20605 }
20606 /^X\/\(\/\/\)$/{
20607 s//\1/
20608 q
20609 }
20610 /^X\/\(\/\).*/{
20611 s//\1/
20612 q
20613 }
20614 s/.*/./; q'`
51a727e9 20615
8934764e
BB
20616# CDPATH.
20617$as_unset CDPATH
51a727e9
BB
20618
20619
51a727e9 20620
8934764e
BB
20621 as_lineno_1=$LINENO
20622 as_lineno_2=$LINENO
20623 test "x$as_lineno_1" != "x$as_lineno_2" &&
20624 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51a727e9 20625
8934764e
BB
20626 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20627 # uniformly replaced by the line number. The first 'sed' inserts a
20628 # line-number line after each line using $LINENO; the second 'sed'
20629 # does the real work. The second script uses 'N' to pair each
20630 # line-number line with the line containing $LINENO, and appends
20631 # trailing '-' during substitution so that $LINENO is not a special
20632 # case at line end.
20633 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20634 # scripts with optimization help from Paolo Bonzini. Blame Lee
20635 # E. McMahon (1931-1989) for sed's syntax. :-)
20636 sed -n '
20637 p
20638 /[$]LINENO/=
20639 ' <$as_myself |
20640 sed '
20641 s/[$]LINENO.*/&-/
20642 t lineno
20643 b
20644 :lineno
20645 N
20646 :loop
20647 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20648 t loop
20649 s/-\n.*//
20650 ' >$as_me.lineno &&
20651 chmod +x "$as_me.lineno" ||
20652 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20653 { (exit 1); exit 1; }; }
51a727e9 20654
8934764e
BB
20655 # Don't try to exec as it changes $[0], causing all sort of problems
20656 # (the dirname of $[0] is not the place where we might find the
20657 # original and so on. Autoconf is especially sensitive to this).
20658 . "./$as_me.lineno"
20659 # Exit status is that of the last command.
20660 exit
20661}
51a727e9 20662
51a727e9 20663
8934764e
BB
20664if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20665 as_dirname=dirname
20666else
20667 as_dirname=false
20668fi
51a727e9 20669
8934764e
BB
20670ECHO_C= ECHO_N= ECHO_T=
20671case `echo -n x` in
20672-n*)
20673 case `echo 'x\c'` in
20674 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20675 *) ECHO_C='\c';;
20676 esac;;
20677*)
20678 ECHO_N='-n';;
20679esac
20680if expr a : '\(a\)' >/dev/null 2>&1 &&
20681 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20682 as_expr=expr
20683else
20684 as_expr=false
20685fi
51a727e9 20686
8934764e
BB
20687rm -f conf$$ conf$$.exe conf$$.file
20688if test -d conf$$.dir; then
20689 rm -f conf$$.dir/conf$$.file
20690else
20691 rm -f conf$$.dir
20692 mkdir conf$$.dir 2>/dev/null
20693fi
20694if (echo >conf$$.file) 2>/dev/null; then
20695 if ln -s conf$$.file conf$$ 2>/dev/null; then
20696 as_ln_s='ln -s'
20697 # ... but there are two gotchas:
20698 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20699 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20700 # In both cases, we have to default to `cp -p'.
20701 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20702 as_ln_s='cp -p'
20703 elif ln conf$$.file conf$$ 2>/dev/null; then
20704 as_ln_s=ln
20705 else
20706 as_ln_s='cp -p'
20707 fi
20708else
20709 as_ln_s='cp -p'
20710fi
20711rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20712rmdir conf$$.dir 2>/dev/null
51a727e9 20713
8934764e
BB
20714if mkdir -p . 2>/dev/null; then
20715 as_mkdir_p=:
20716else
20717 test -d ./-p && rmdir ./-p
20718 as_mkdir_p=false
20719fi
51a727e9 20720
8934764e
BB
20721if test -x / >/dev/null 2>&1; then
20722 as_test_x='test -x'
20723else
20724 if ls -dL / >/dev/null 2>&1; then
20725 as_ls_L_option=L
20726 else
20727 as_ls_L_option=
20728 fi
20729 as_test_x='
20730 eval sh -c '\''
20731 if test -d "$1"; then
20732 test -d "$1/.";
20733 else
20734 case $1 in
20735 -*)set "./$1";;
20736 esac;
20737 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20738 ???[sx]*):;;*)false;;esac;fi
20739 '\'' sh
20740 '
20741fi
20742as_executable_p=$as_test_x
51a727e9 20743
8934764e
BB
20744# Sed expression to map a string onto a valid CPP name.
20745as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 20746
8934764e
BB
20747# Sed expression to map a string onto a valid variable name.
20748as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 20749
51a727e9 20750
8934764e 20751exec 6>&1
51a727e9 20752
8934764e
BB
20753# Save the log message, to keep $[0] and so on meaningful, and to
20754# report actual input values of CONFIG_FILES etc. instead of their
20755# values after options handling.
20756ac_log="
20757This file was extended by $as_me, which was
20758generated by GNU Autoconf 2.63. Invocation command line was
51a727e9 20759
8934764e
BB
20760 CONFIG_FILES = $CONFIG_FILES
20761 CONFIG_HEADERS = $CONFIG_HEADERS
20762 CONFIG_LINKS = $CONFIG_LINKS
20763 CONFIG_COMMANDS = $CONFIG_COMMANDS
20764 $ $0 $@
51a727e9 20765
8934764e
BB
20766on `(hostname || uname -n) 2>/dev/null | sed 1q`
20767"
a093c6a4 20768
8934764e 20769_ACEOF
a093c6a4 20770
8934764e
BB
20771case $ac_config_files in *"
20772"*) set x $ac_config_files; shift; ac_config_files=$*;;
20773esac
a093c6a4 20774
8934764e
BB
20775case $ac_config_headers in *"
20776"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20777esac
a093c6a4 20778
a093c6a4 20779
8934764e
BB
20780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20781# Files that config.status was made for.
20782config_files="$ac_config_files"
20783config_headers="$ac_config_headers"
20784config_commands="$ac_config_commands"
a093c6a4 20785
a093c6a4 20786_ACEOF
a093c6a4 20787
8934764e
BB
20788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20789ac_cs_usage="\
20790\`$as_me' instantiates files from templates according to the
20791current configuration.
a093c6a4 20792
8934764e 20793Usage: $0 [OPTION]... [FILE]...
a093c6a4 20794
8934764e
BB
20795 -h, --help print this help, then exit
20796 -V, --version print version number and configuration settings, then exit
20797 -q, --quiet, --silent
20798 do not print progress messages
20799 -d, --debug don't remove temporary files
20800 --recheck update $as_me by reconfiguring in the same conditions
20801 --file=FILE[:TEMPLATE]
20802 instantiate the configuration file FILE
20803 --header=FILE[:TEMPLATE]
20804 instantiate the configuration header FILE
a093c6a4 20805
8934764e
BB
20806Configuration files:
20807$config_files
a093c6a4 20808
8934764e
BB
20809Configuration headers:
20810$config_headers
a093c6a4 20811
8934764e
BB
20812Configuration commands:
20813$config_commands
a093c6a4 20814
8934764e 20815Report bugs to <bug-autoconf@gnu.org>."
a093c6a4 20816
8934764e
BB
20817_ACEOF
20818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20819ac_cs_version="\\
20820config.status
20821configured by $0, generated by GNU Autoconf 2.63,
20822 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
a093c6a4 20823
8934764e
BB
20824Copyright (C) 2008 Free Software Foundation, Inc.
20825This config.status script is free software; the Free Software Foundation
20826gives unlimited permission to copy, distribute and modify it."
a093c6a4 20827
8934764e
BB
20828ac_pwd='$ac_pwd'
20829srcdir='$srcdir'
20830INSTALL='$INSTALL'
20831MKDIR_P='$MKDIR_P'
20832AWK='$AWK'
20833test -n "\$AWK" || AWK=awk
a093c6a4
BB
20834_ACEOF
20835
8934764e
BB
20836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20837# The default lists apply if the user does not specify any file.
20838ac_need_defaults=:
20839while test $# != 0
20840do
20841 case $1 in
20842 --*=*)
20843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20845 ac_shift=:
20846 ;;
20847 *)
20848 ac_option=$1
20849 ac_optarg=$2
20850 ac_shift=shift
20851 ;;
20852 esac
a093c6a4 20853
8934764e
BB
20854 case $ac_option in
20855 # Handling of the options.
20856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20857 ac_cs_recheck=: ;;
20858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20859 $as_echo "$ac_cs_version"; exit ;;
20860 --debug | --debu | --deb | --de | --d | -d )
20861 debug=: ;;
20862 --file | --fil | --fi | --f )
20863 $ac_shift
20864 case $ac_optarg in
20865 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20866 esac
20867 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20868 ac_need_defaults=false;;
20869 --header | --heade | --head | --hea )
20870 $ac_shift
20871 case $ac_optarg in
20872 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20873 esac
20874 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20875 ac_need_defaults=false;;
20876 --he | --h)
20877 # Conflict between --help and --header
20878 { $as_echo "$as_me: error: ambiguous option: $1
20879Try \`$0 --help' for more information." >&2
20880 { (exit 1); exit 1; }; };;
20881 --help | --hel | -h )
20882 $as_echo "$ac_cs_usage"; exit ;;
20883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20885 ac_cs_silent=: ;;
20886
20887 # This is an error.
20888 -*) { $as_echo "$as_me: error: unrecognized option: $1
20889Try \`$0 --help' for more information." >&2
20890 { (exit 1); exit 1; }; } ;;
a093c6a4 20891
8934764e
BB
20892 *) ac_config_targets="$ac_config_targets $1"
20893 ac_need_defaults=false ;;
a093c6a4 20894
8934764e
BB
20895 esac
20896 shift
20897done
a093c6a4 20898
8934764e 20899ac_configure_extra_args=
a093c6a4 20900
8934764e
BB
20901if $ac_cs_silent; then
20902 exec 6>/dev/null
20903 ac_configure_extra_args="$ac_configure_extra_args --silent"
a093c6a4
BB
20904fi
20905
8934764e
BB
20906_ACEOF
20907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20908if \$ac_cs_recheck; then
20909 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20910 shift
20911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20912 CONFIG_SHELL='$SHELL'
20913 export CONFIG_SHELL
20914 exec "\$@"
20915fi
a093c6a4 20916
8934764e
BB
20917_ACEOF
20918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20919exec 5>>config.log
20920{
20921 echo
20922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20923## Running $as_me. ##
20924_ASBOX
20925 $as_echo "$ac_log"
20926} >&5
a093c6a4 20927
8934764e
BB
20928_ACEOF
20929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20930#
20931# INIT-COMMANDS
20932#
20933AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a093c6a4 20934
a093c6a4 20935
8934764e
BB
20936# The HP-UX ksh and POSIX shell print the target directory to stdout
20937# if CDPATH is set.
20938(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a093c6a4 20939
8934764e
BB
20940sed_quote_subst='$sed_quote_subst'
20941double_quote_subst='$double_quote_subst'
20942delay_variable_subst='$delay_variable_subst'
20943macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20944macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20945enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20946enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20947pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20948enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20949host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20950host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20951host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20952build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20953build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20954build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20955SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20956Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20957GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20958EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20959FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20960LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20961NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20962LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20963max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20964ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20965exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20966lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20967lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20968lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20969reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20970reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20971OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20972deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20973file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20974AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20975AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20976STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20977RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20978old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20979old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20980old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20981CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20982CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20983compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20984GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20985lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20986lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20987lt_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"`'
20988lt_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"`'
20989objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20990SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20991ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20992MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20993lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20994lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20995lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20996lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20997lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20998need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20999DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21000NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21001LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21002OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21003OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21004libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21005shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21006extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21007archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21008enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21009export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21010whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21011compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21012old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21013old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21014archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21015archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21016module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21017module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21018with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21019allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21020no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21021hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21022hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21023hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21024hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21025hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21026hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21027hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21028hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21029inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21030link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21031fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21032always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21033export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21034exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21035include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21036prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21037file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21038variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21039need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21040need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21041version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21042runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21043shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21044shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21045libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21046library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21047soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21048postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21049postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21050finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21051finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21052hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21053sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21054sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21055hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21056enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21057enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21058enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21059old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21060striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21061
21062LTCC='$LTCC'
21063LTCFLAGS='$LTCFLAGS'
21064compiler='$compiler_DEFAULT'
21065
21066# Quote evaled strings.
21067for var in SED \
21068GREP \
21069EGREP \
21070FGREP \
21071LD \
21072NM \
21073LN_S \
21074lt_SP2NL \
21075lt_NL2SP \
21076reload_flag \
21077OBJDUMP \
21078deplibs_check_method \
21079file_magic_cmd \
21080AR \
21081AR_FLAGS \
21082STRIP \
21083RANLIB \
21084CC \
21085CFLAGS \
21086compiler \
21087lt_cv_sys_global_symbol_pipe \
21088lt_cv_sys_global_symbol_to_cdecl \
21089lt_cv_sys_global_symbol_to_c_name_address \
21090lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21091SHELL \
21092ECHO \
21093lt_prog_compiler_no_builtin_flag \
21094lt_prog_compiler_wl \
21095lt_prog_compiler_pic \
21096lt_prog_compiler_static \
21097lt_cv_prog_compiler_c_o \
21098need_locks \
21099DSYMUTIL \
21100NMEDIT \
21101LIPO \
21102OTOOL \
21103OTOOL64 \
21104shrext_cmds \
21105export_dynamic_flag_spec \
21106whole_archive_flag_spec \
21107compiler_needs_object \
21108with_gnu_ld \
21109allow_undefined_flag \
21110no_undefined_flag \
21111hardcode_libdir_flag_spec \
21112hardcode_libdir_flag_spec_ld \
21113hardcode_libdir_separator \
21114fix_srcfile_path \
21115exclude_expsyms \
21116include_expsyms \
21117file_list_spec \
21118variables_saved_for_relink \
21119libname_spec \
21120library_names_spec \
21121soname_spec \
21122finish_eval \
21123old_striplib \
21124striplib; do
21125 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21126 *[\\\\\\\`\\"\\\$]*)
21127 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21128 ;;
21129 *)
21130 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21131 ;;
21132 esac
21133done
a093c6a4 21134
8934764e
BB
21135# Double-quote double-evaled strings.
21136for var in reload_cmds \
21137old_postinstall_cmds \
21138old_postuninstall_cmds \
21139old_archive_cmds \
21140extract_expsyms_cmds \
21141old_archive_from_new_cmds \
21142old_archive_from_expsyms_cmds \
21143archive_cmds \
21144archive_expsym_cmds \
21145module_cmds \
21146module_expsym_cmds \
21147export_symbols_cmds \
21148prelink_cmds \
21149postinstall_cmds \
21150postuninstall_cmds \
21151finish_cmds \
21152sys_lib_search_path_spec \
21153sys_lib_dlsearch_path_spec; do
21154 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21155 *[\\\\\\\`\\"\\\$]*)
21156 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21157 ;;
21158 *)
21159 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21160 ;;
21161 esac
21162done
a093c6a4 21163
8934764e
BB
21164# Fix-up fallback echo if it was mangled by the above quoting rules.
21165case \$lt_ECHO in
21166*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21167 ;;
21168esac
a093c6a4 21169
8934764e
BB
21170ac_aux_dir='$ac_aux_dir'
21171xsi_shell='$xsi_shell'
21172lt_shell_append='$lt_shell_append'
a093c6a4 21173
8934764e
BB
21174# See if we are running on zsh, and set the options which allow our
21175# commands through without removal of \ escapes INIT.
21176if test -n "\${ZSH_VERSION+set}" ; then
21177 setopt NO_GLOB_SUBST
21178fi
a093c6a4 21179
a093c6a4 21180
8934764e
BB
21181 PACKAGE='$PACKAGE'
21182 VERSION='$VERSION'
21183 TIMESTAMP='$TIMESTAMP'
21184 RM='$RM'
21185 ofile='$ofile'
a093c6a4
BB
21186
21187
a093c6a4 21188
a093c6a4 21189
a093c6a4
BB
21190_ACEOF
21191
8934764e 21192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a093c6a4 21193
8934764e
BB
21194# Handling of arguments.
21195for ac_config_target in $ac_config_targets
21196do
21197 case $ac_config_target in
21198 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21199 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21200 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21201 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21202 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21203 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21204 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21205 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21206 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21207 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21208 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21209 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21210 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
c2dceb5c
PS
21211 "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;;
21212 "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;;
8934764e
BB
21213
21214 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21215$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21216 { (exit 1); exit 1; }; };;
21217 esac
21218done
a093c6a4
BB
21219
21220
8934764e
BB
21221# If the user did not use the arguments to specify the items to instantiate,
21222# then the envvar interface is used. Set only those that are not.
21223# We use the long form for the default assignment because of an extremely
21224# bizarre bug on SunOS 4.1.3.
21225if $ac_need_defaults; then
21226 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21227 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
e11d6c5f
BB
21229fi
21230
8934764e
BB
21231# Have a temporary directory for convenience. Make it in the build tree
21232# simply because there is no reason against having it here, and in addition,
21233# creating and moving files from /tmp can sometimes cause problems.
21234# Hook for its removal unless debugging.
21235# Note that there is a small window in which the directory will not be cleaned:
21236# after its creation but before its name has been assigned to `$tmp'.
21237$debug ||
21238{
21239 tmp=
21240 trap 'exit_status=$?
21241 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21242' 0
21243 trap '{ (exit 1); exit 1; }' 1 2 13 15
21244}
21245# Create a (secure) tmp directory for tmp files.
e11d6c5f 21246
8934764e
BB
21247{
21248 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21249 test -n "$tmp" && test -d "$tmp"
21250} ||
21251{
21252 tmp=./conf$$-$RANDOM
21253 (umask 077 && mkdir "$tmp")
21254} ||
21255{
21256 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21257 { (exit 1); exit 1; }
21258}
e11d6c5f 21259
8934764e
BB
21260# Set up the scripts for CONFIG_FILES section.
21261# No need to generate them if there are no CONFIG_FILES.
21262# This happens for instance with `./config.status config.h'.
21263if test -n "$CONFIG_FILES"; then
e11d6c5f 21264
ec7d53e9 21265
8934764e
BB
21266ac_cr='\r'
21267ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21268if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21269 ac_cs_awk_cr='\\r'
21270else
21271 ac_cs_awk_cr=$ac_cr
21272fi
ec7d53e9 21273
8934764e 21274echo 'BEGIN {' >"$tmp/subs1.awk" &&
ec7d53e9 21275_ACEOF
ec7d53e9 21276
ec7d53e9 21277
ec7d53e9 21278{
8934764e
BB
21279 echo "cat >conf$$subs.awk <<_ACEOF" &&
21280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21281 echo "_ACEOF"
21282} >conf$$subs.sh ||
21283 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21284$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21285 { (exit 1); exit 1; }; }
21286ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21287ac_delim='%!_!# '
21288for ac_last_try in false false false false false :; do
21289 . ./conf$$subs.sh ||
21290 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21291$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21292 { (exit 1); exit 1; }; }
ec7d53e9 21293
8934764e
BB
21294 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21295 if test $ac_delim_n = $ac_delim_num; then
21296 break
21297 elif $ac_last_try; then
21298 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21299$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21300 { (exit 1); exit 1; }; }
21301 else
21302 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21303 fi
21304done
21305rm -f conf$$subs.sh
21306
21307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21308cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21309_ACEOF
21310sed -n '
21311h
21312s/^/S["/; s/!.*/"]=/
21313p
21314g
21315s/^[^!]*!//
21316:repl
21317t repl
21318s/'"$ac_delim"'$//
21319t delim
21320:nl
21321h
21322s/\(.\{148\}\).*/\1/
21323t more1
21324s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21325p
21326n
21327b repl
21328:more1
21329s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21330p
21331g
21332s/.\{148\}//
21333t nl
21334:delim
21335h
21336s/\(.\{148\}\).*/\1/
21337t more2
21338s/["\\]/\\&/g; s/^/"/; s/$/"/
21339p
21340b
21341:more2
21342s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21343p
21344g
21345s/.\{148\}//
21346t delim
21347' <conf$$subs.awk | sed '
21348/^[^""]/{
21349 N
21350 s/\n//
21351}
21352' >>$CONFIG_STATUS || ac_write_fail=1
21353rm -f conf$$subs.awk
21354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21355_ACAWK
21356cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21357 for (key in S) S_is_set[key] = 1
21358 FS = "\a"
ec7d53e9 21359
8934764e
BB
21360}
21361{
21362 line = $ 0
21363 nfields = split(line, field, "@")
21364 substed = 0
21365 len = length(field[1])
21366 for (i = 2; i < nfields; i++) {
21367 key = field[i]
21368 keylen = length(key)
21369 if (S_is_set[key]) {
21370 value = S[key]
21371 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21372 len += length(value) + length(field[++i])
21373 substed = 1
21374 } else
21375 len += 1 + keylen
21376 }
21377
21378 print line
ec7d53e9
BB
21379}
21380
8934764e
BB
21381_ACAWK
21382_ACEOF
21383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21384if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21386else
21387 cat
21388fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21389 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21390$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21391 { (exit 1); exit 1; }; }
ec7d53e9
BB
21392_ACEOF
21393
8934764e
BB
21394# VPATH may cause trouble with some makes, so we remove $(srcdir),
21395# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21396# trailing colons and then remove the whole line if VPATH becomes empty
21397# (actually we leave an empty line to preserve line numbers).
21398if test "x$srcdir" = x.; then
21399 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21400s/:*\$(srcdir):*/:/
21401s/:*\${srcdir}:*/:/
21402s/:*@srcdir@:*/:/
21403s/^\([^=]*=[ ]*\):*/\1/
21404s/:*$//
21405s/^[^=]*=[ ]*$//
21406}'
21407fi
ec7d53e9 21408
8934764e
BB
21409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21410fi # test -n "$CONFIG_FILES"
ec7d53e9 21411
8934764e
BB
21412# Set up the scripts for CONFIG_HEADERS section.
21413# No need to generate them if there are no CONFIG_HEADERS.
21414# This happens for instance with `./config.status Makefile'.
21415if test -n "$CONFIG_HEADERS"; then
21416cat >"$tmp/defines.awk" <<\_ACAWK ||
21417BEGIN {
ec7d53e9
BB
21418_ACEOF
21419
8934764e
BB
21420# Transform confdefs.h into an awk script `defines.awk', embedded as
21421# here-document in config.status, that substitutes the proper values into
21422# config.h.in to produce config.h.
ec7d53e9 21423
8934764e
BB
21424# Create a delimiter string that does not exist in confdefs.h, to ease
21425# handling of long lines.
21426ac_delim='%!_!# '
21427for ac_last_try in false false :; do
21428 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21429 if test -z "$ac_t"; then
21430 break
21431 elif $ac_last_try; then
21432 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21433$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21434 { (exit 1); exit 1; }; }
21435 else
21436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21437 fi
21438done
ec7d53e9 21439
8934764e
BB
21440# For the awk script, D is an array of macro values keyed by name,
21441# likewise P contains macro parameters if any. Preserve backslash
21442# newline sequences.
21443
21444ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21445sed -n '
21446s/.\{148\}/&'"$ac_delim"'/g
21447t rset
21448:rset
21449s/^[ ]*#[ ]*define[ ][ ]*/ /
21450t def
21451d
21452:def
21453s/\\$//
21454t bsnl
21455s/["\\]/\\&/g
21456s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21457D["\1"]=" \3"/p
21458s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21459d
21460:bsnl
21461s/["\\]/\\&/g
21462s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21463D["\1"]=" \3\\\\\\n"\\/p
21464t cont
21465s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21466t cont
21467d
21468:cont
21469n
21470s/.\{148\}/&'"$ac_delim"'/g
21471t clear
21472:clear
21473s/\\$//
21474t bsnlc
21475s/["\\]/\\&/g; s/^/"/; s/$/"/p
21476d
21477:bsnlc
21478s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21479b cont
21480' <confdefs.h | sed '
21481s/'"$ac_delim"'/"\\\
21482"/g' >>$CONFIG_STATUS || ac_write_fail=1
21483
21484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21485 for (key in D) D_is_set[key] = 1
21486 FS = "\a"
21487}
21488/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21489 line = \$ 0
21490 split(line, arg, " ")
21491 if (arg[1] == "#") {
21492 defundef = arg[2]
21493 mac1 = arg[3]
21494 } else {
21495 defundef = substr(arg[1], 2)
21496 mac1 = arg[2]
21497 }
21498 split(mac1, mac2, "(") #)
21499 macro = mac2[1]
21500 prefix = substr(line, 1, index(line, defundef) - 1)
21501 if (D_is_set[macro]) {
21502 # Preserve the white space surrounding the "#".
21503 print prefix "define", macro P[macro] D[macro]
21504 next
21505 } else {
21506 # Replace #undef with comments. This is necessary, for example,
21507 # in the case of _POSIX_SOURCE, which is predefined and required
21508 # on some systems where configure will not decide to define it.
21509 if (defundef == "undef") {
21510 print "/*", prefix defundef, macro, "*/"
21511 next
21512 }
21513 }
21514}
21515{ print }
21516_ACAWK
21517_ACEOF
21518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21519 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21520$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21521 { (exit 1); exit 1; }; }
21522fi # test -n "$CONFIG_HEADERS"
ec7d53e9
BB
21523
21524
8934764e
BB
21525eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21526shift
21527for ac_tag
21528do
21529 case $ac_tag in
21530 :[FHLC]) ac_mode=$ac_tag; continue;;
21531 esac
21532 case $ac_mode$ac_tag in
21533 :[FHL]*:*);;
21534 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21535$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21536 { (exit 1); exit 1; }; };;
21537 :[FH]-) ac_tag=-:-;;
21538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21539 esac
21540 ac_save_IFS=$IFS
21541 IFS=:
21542 set x $ac_tag
21543 IFS=$ac_save_IFS
21544 shift
21545 ac_file=$1
21546 shift
ec7d53e9 21547
8934764e
BB
21548 case $ac_mode in
21549 :L) ac_source=$1;;
21550 :[FH])
21551 ac_file_inputs=
21552 for ac_f
21553 do
21554 case $ac_f in
21555 -) ac_f="$tmp/stdin";;
21556 *) # Look for the file first in the build tree, then in the source tree
21557 # (if the path is not absolute). The absolute path cannot be DOS-style,
21558 # because $ac_f cannot contain `:'.
21559 test -f "$ac_f" ||
21560 case $ac_f in
21561 [\\/$]*) false;;
21562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21563 esac ||
21564 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21565$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21566 { (exit 1); exit 1; }; };;
21567 esac
21568 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21569 ac_file_inputs="$ac_file_inputs '$ac_f'"
21570 done
ec7d53e9 21571
8934764e
BB
21572 # Let's still pretend it is `configure' which instantiates (i.e., don't
21573 # use $as_me), people would be surprised to read:
21574 # /* config.h. Generated by config.status. */
21575 configure_input='Generated from '`
21576 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21577 `' by configure.'
21578 if test x"$ac_file" != x-; then
21579 configure_input="$ac_file. $configure_input"
21580 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21581$as_echo "$as_me: creating $ac_file" >&6;}
21582 fi
21583 # Neutralize special characters interpreted by sed in replacement strings.
21584 case $configure_input in #(
21585 *\&* | *\|* | *\\* )
21586 ac_sed_conf_input=`$as_echo "$configure_input" |
21587 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21588 *) ac_sed_conf_input=$configure_input;;
21589 esac
ec7d53e9 21590
8934764e
BB
21591 case $ac_tag in
21592 *:-:* | *:-) cat >"$tmp/stdin" \
21593 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21594$as_echo "$as_me: error: could not create $ac_file" >&2;}
21595 { (exit 1); exit 1; }; } ;;
21596 esac
21597 ;;
21598 esac
ec7d53e9 21599
8934764e
BB
21600 ac_dir=`$as_dirname -- "$ac_file" ||
21601$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21602 X"$ac_file" : 'X\(//\)[^/]' \| \
21603 X"$ac_file" : 'X\(//\)$' \| \
21604 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21605$as_echo X"$ac_file" |
21606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21607 s//\1/
21608 q
21609 }
21610 /^X\(\/\/\)[^/].*/{
21611 s//\1/
21612 q
21613 }
21614 /^X\(\/\/\)$/{
21615 s//\1/
21616 q
21617 }
21618 /^X\(\/\).*/{
21619 s//\1/
21620 q
21621 }
21622 s/.*/./; q'`
21623 { as_dir="$ac_dir"
21624 case $as_dir in #(
21625 -*) as_dir=./$as_dir;;
21626 esac
21627 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21628 as_dirs=
21629 while :; do
21630 case $as_dir in #(
21631 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21632 *) as_qdir=$as_dir;;
21633 esac
21634 as_dirs="'$as_qdir' $as_dirs"
21635 as_dir=`$as_dirname -- "$as_dir" ||
21636$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21637 X"$as_dir" : 'X\(//\)[^/]' \| \
21638 X"$as_dir" : 'X\(//\)$' \| \
21639 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21640$as_echo X"$as_dir" |
21641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21642 s//\1/
21643 q
21644 }
21645 /^X\(\/\/\)[^/].*/{
21646 s//\1/
21647 q
21648 }
21649 /^X\(\/\/\)$/{
21650 s//\1/
21651 q
21652 }
21653 /^X\(\/\).*/{
21654 s//\1/
21655 q
21656 }
21657 s/.*/./; q'`
21658 test -d "$as_dir" && break
21659 done
21660 test -z "$as_dirs" || eval "mkdir $as_dirs"
21661 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21662$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21663 { (exit 1); exit 1; }; }; }
21664 ac_builddir=.
ec7d53e9 21665
8934764e
BB
21666case "$ac_dir" in
21667.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21668*)
21669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21670 # A ".." for each directory in $ac_dir_suffix.
21671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21672 case $ac_top_builddir_sub in
21673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21675 esac ;;
21676esac
21677ac_abs_top_builddir=$ac_pwd
21678ac_abs_builddir=$ac_pwd$ac_dir_suffix
21679# for backward compatibility:
21680ac_top_builddir=$ac_top_build_prefix
ec7d53e9 21681
8934764e
BB
21682case $srcdir in
21683 .) # We are building in place.
21684 ac_srcdir=.
21685 ac_top_srcdir=$ac_top_builddir_sub
21686 ac_abs_top_srcdir=$ac_pwd ;;
21687 [\\/]* | ?:[\\/]* ) # Absolute name.
21688 ac_srcdir=$srcdir$ac_dir_suffix;
21689 ac_top_srcdir=$srcdir
21690 ac_abs_top_srcdir=$srcdir ;;
21691 *) # Relative name.
21692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21693 ac_top_srcdir=$ac_top_build_prefix$srcdir
21694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21695esac
21696ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ec7d53e9 21697
ec7d53e9 21698
8934764e
BB
21699 case $ac_mode in
21700 :F)
21701 #
21702 # CONFIG_FILE
21703 #
21704
21705 case $INSTALL in
21706 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21707 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21708 esac
21709 ac_MKDIR_P=$MKDIR_P
21710 case $MKDIR_P in
21711 [\\/$]* | ?:[\\/]* ) ;;
21712 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21713 esac
ec7d53e9
BB
21714_ACEOF
21715
8934764e
BB
21716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21717# If the template does not know about datarootdir, expand it.
21718# FIXME: This hack should be removed a few years after 2.60.
21719ac_datarootdir_hack=; ac_datarootdir_seen=
ec7d53e9 21720
8934764e
BB
21721ac_sed_dataroot='
21722/datarootdir/ {
21723 p
21724 q
21725}
21726/@datadir@/p
21727/@docdir@/p
21728/@infodir@/p
21729/@localedir@/p
21730/@mandir@/p
21731'
21732case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21733*datarootdir*) ac_datarootdir_seen=yes;;
21734*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21735 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21736$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21737_ACEOF
21738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21739 ac_datarootdir_hack='
21740 s&@datadir@&$datadir&g
21741 s&@docdir@&$docdir&g
21742 s&@infodir@&$infodir&g
21743 s&@localedir@&$localedir&g
21744 s&@mandir@&$mandir&g
21745 s&\\\${datarootdir}&$datarootdir&g' ;;
21746esac
ec7d53e9
BB
21747_ACEOF
21748
8934764e
BB
21749# Neutralize VPATH when `$srcdir' = `.'.
21750# Shell code in configure.ac might set extrasub.
21751# FIXME: do we really want to maintain this feature?
21752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21753ac_sed_extra="$ac_vpsub
21754$extrasub
21755_ACEOF
21756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21757:t
21758/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21759s|@configure_input@|$ac_sed_conf_input|;t t
21760s&@top_builddir@&$ac_top_builddir_sub&;t t
21761s&@top_build_prefix@&$ac_top_build_prefix&;t t
21762s&@srcdir@&$ac_srcdir&;t t
21763s&@abs_srcdir@&$ac_abs_srcdir&;t t
21764s&@top_srcdir@&$ac_top_srcdir&;t t
21765s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21766s&@builddir@&$ac_builddir&;t t
21767s&@abs_builddir@&$ac_abs_builddir&;t t
21768s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21769s&@INSTALL@&$ac_INSTALL&;t t
21770s&@MKDIR_P@&$ac_MKDIR_P&;t t
21771$ac_datarootdir_hack
21772"
21773eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21774 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21775$as_echo "$as_me: error: could not create $ac_file" >&2;}
21776 { (exit 1); exit 1; }; }
ec7d53e9 21777
8934764e
BB
21778test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21779 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21780 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21781 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21782which seems to be undefined. Please make sure it is defined." >&5
21783$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21784which seems to be undefined. Please make sure it is defined." >&2;}
ec7d53e9 21785
8934764e
BB
21786 rm -f "$tmp/stdin"
21787 case $ac_file in
21788 -) cat "$tmp/out" && rm -f "$tmp/out";;
21789 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21790 esac \
21791 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21792$as_echo "$as_me: error: could not create $ac_file" >&2;}
21793 { (exit 1); exit 1; }; }
21794 ;;
21795 :H)
21796 #
21797 # CONFIG_HEADER
21798 #
21799 if test x"$ac_file" != x-; then
21800 {
21801 $as_echo "/* $configure_input */" \
21802 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21803 } >"$tmp/config.h" \
21804 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21805$as_echo "$as_me: error: could not create $ac_file" >&2;}
21806 { (exit 1); exit 1; }; }
21807 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21808 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21809$as_echo "$as_me: $ac_file is unchanged" >&6;}
21810 else
21811 rm -f "$ac_file"
21812 mv "$tmp/config.h" "$ac_file" \
21813 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21814$as_echo "$as_me: error: could not create $ac_file" >&2;}
21815 { (exit 1); exit 1; }; }
21816 fi
21817 else
21818 $as_echo "/* $configure_input */" \
21819 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21820 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21821$as_echo "$as_me: error: could not create -" >&2;}
21822 { (exit 1); exit 1; }; }
21823 fi
21824# Compute "$ac_file"'s index in $config_headers.
21825_am_arg="$ac_file"
21826_am_stamp_count=1
21827for _am_header in $config_headers :; do
21828 case $_am_header in
21829 $_am_arg | $_am_arg:* )
21830 break ;;
21831 * )
21832 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21833 esac
21834done
21835echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21836$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21837 X"$_am_arg" : 'X\(//\)[^/]' \| \
21838 X"$_am_arg" : 'X\(//\)$' \| \
21839 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21840$as_echo X"$_am_arg" |
21841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21842 s//\1/
21843 q
21844 }
21845 /^X\(\/\/\)[^/].*/{
21846 s//\1/
21847 q
21848 }
21849 /^X\(\/\/\)$/{
21850 s//\1/
21851 q
21852 }
21853 /^X\(\/\).*/{
21854 s//\1/
21855 q
21856 }
21857 s/.*/./; q'`/stamp-h$_am_stamp_count
21858 ;;
ec7d53e9 21859
8934764e
BB
21860 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21861$as_echo "$as_me: executing $ac_file commands" >&6;}
21862 ;;
21863 esac
e811949a 21864
e811949a 21865
8934764e
BB
21866 case $ac_file$ac_mode in
21867 "spl_config.h":H)
21868 (mv spl_config.h spl_config.h.tmp &&
a7958f7e 21869 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
8934764e
BB
21870 rm spl_config.h.tmp) || exit 1 ;;
21871 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21872 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21873 # are listed without --file. Let's play safe and only enable the eval
21874 # if we detect the quoting.
21875 case $CONFIG_FILES in
21876 *\'*) eval set x "$CONFIG_FILES" ;;
21877 *) set x $CONFIG_FILES ;;
21878 esac
21879 shift
21880 for mf
21881 do
21882 # Strip MF so we end up with the name of the file.
21883 mf=`echo "$mf" | sed -e 's/:.*$//'`
21884 # Check whether this is an Automake generated Makefile or not.
21885 # We used to match only the files named `Makefile.in', but
21886 # some people rename them; so instead we look at the file content.
21887 # Grep'ing the first line is not enough: some people post-process
21888 # each Makefile.in and add a new line on top of each file to say so.
21889 # Grep'ing the whole file is not good either: AIX grep has a line
21890 # limit of 2048, but all sed's we know have understand at least 4000.
21891 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21892 dirpart=`$as_dirname -- "$mf" ||
21893$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21894 X"$mf" : 'X\(//\)[^/]' \| \
21895 X"$mf" : 'X\(//\)$' \| \
21896 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21897$as_echo X"$mf" |
21898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21899 s//\1/
21900 q
21901 }
21902 /^X\(\/\/\)[^/].*/{
21903 s//\1/
21904 q
21905 }
21906 /^X\(\/\/\)$/{
21907 s//\1/
21908 q
21909 }
21910 /^X\(\/\).*/{
21911 s//\1/
21912 q
21913 }
21914 s/.*/./; q'`
21915 else
21916 continue
21917 fi
21918 # Extract the definition of DEPDIR, am__include, and am__quote
21919 # from the Makefile without running `make'.
21920 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21921 test -z "$DEPDIR" && continue
21922 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21923 test -z "am__include" && continue
21924 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21925 # When using ansi2knr, U may be empty or an underscore; expand it
21926 U=`sed -n 's/^U = //p' < "$mf"`
21927 # Find all dependency output files, they are included files with
21928 # $(DEPDIR) in their names. We invoke sed twice because it is the
21929 # simplest approach to changing $(DEPDIR) to its actual value in the
21930 # expansion.
21931 for file in `sed -n "
21932 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21933 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21934 # Make sure the directory exists.
21935 test -f "$dirpart/$file" && continue
21936 fdir=`$as_dirname -- "$file" ||
21937$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21938 X"$file" : 'X\(//\)[^/]' \| \
21939 X"$file" : 'X\(//\)$' \| \
21940 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21941$as_echo X"$file" |
21942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21943 s//\1/
21944 q
21945 }
21946 /^X\(\/\/\)[^/].*/{
21947 s//\1/
21948 q
21949 }
21950 /^X\(\/\/\)$/{
21951 s//\1/
21952 q
21953 }
21954 /^X\(\/\).*/{
21955 s//\1/
21956 q
21957 }
21958 s/.*/./; q'`
21959 { as_dir=$dirpart/$fdir
21960 case $as_dir in #(
21961 -*) as_dir=./$as_dir;;
21962 esac
21963 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21964 as_dirs=
21965 while :; do
21966 case $as_dir in #(
21967 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21968 *) as_qdir=$as_dir;;
21969 esac
21970 as_dirs="'$as_qdir' $as_dirs"
21971 as_dir=`$as_dirname -- "$as_dir" ||
21972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21973 X"$as_dir" : 'X\(//\)[^/]' \| \
21974 X"$as_dir" : 'X\(//\)$' \| \
21975 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21976$as_echo X"$as_dir" |
21977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21978 s//\1/
21979 q
21980 }
21981 /^X\(\/\/\)[^/].*/{
21982 s//\1/
21983 q
21984 }
21985 /^X\(\/\/\)$/{
21986 s//\1/
21987 q
21988 }
21989 /^X\(\/\).*/{
21990 s//\1/
21991 q
21992 }
21993 s/.*/./; q'`
21994 test -d "$as_dir" && break
21995 done
21996 test -z "$as_dirs" || eval "mkdir $as_dirs"
21997 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21998$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21999 { (exit 1); exit 1; }; }; }
22000 # echo "creating $dirpart/$file"
22001 echo '# dummy' > "$dirpart/$file"
22002 done
22003 done
22004}
22005 ;;
22006 "libtool":C)
22007
22008 # See if we are running on zsh, and set the options which allow our
22009 # commands through without removal of \ escapes.
22010 if test -n "${ZSH_VERSION+set}" ; then
22011 setopt NO_GLOB_SUBST
22012 fi
22013
22014 cfgfile="${ofile}T"
22015 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22016 $RM "$cfgfile"
22017
22018 cat <<_LT_EOF >> "$cfgfile"
22019#! $SHELL
22020
22021# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22022# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22023# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22024# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22025#
22026# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22027# 2006, 2007, 2008 Free Software Foundation, Inc.
22028# Written by Gordon Matzigkeit, 1996
22029#
22030# This file is part of GNU Libtool.
22031#
22032# GNU Libtool is free software; you can redistribute it and/or
22033# modify it under the terms of the GNU General Public License as
22034# published by the Free Software Foundation; either version 2 of
22035# the License, or (at your option) any later version.
22036#
22037# As a special exception to the GNU General Public License,
22038# if you distribute this file as part of a program or library that
22039# is built using GNU Libtool, you may include this file under the
22040# same distribution terms that you use for the rest of that program.
22041#
22042# GNU Libtool is distributed in the hope that it will be useful,
22043# but WITHOUT ANY WARRANTY; without even the implied warranty of
22044# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22045# GNU General Public License for more details.
22046#
22047# You should have received a copy of the GNU General Public License
22048# along with GNU Libtool; see the file COPYING. If not, a copy
22049# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22050# obtained by writing to the Free Software Foundation, Inc.,
22051# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22052
22053
22054# The names of the tagged configurations supported by this script.
22055available_tags=""
22056
22057# ### BEGIN LIBTOOL CONFIG
22058
22059# Which release of libtool.m4 was used?
22060macro_version=$macro_version
22061macro_revision=$macro_revision
e811949a 22062
8934764e
BB
22063# Whether or not to build shared libraries.
22064build_libtool_libs=$enable_shared
e811949a 22065
8934764e
BB
22066# Whether or not to build static libraries.
22067build_old_libs=$enable_static
e811949a 22068
8934764e
BB
22069# What type of objects to build.
22070pic_mode=$pic_mode
e811949a 22071
8934764e
BB
22072# Whether or not to optimize for fast installation.
22073fast_install=$enable_fast_install
e811949a 22074
8934764e
BB
22075# The host system.
22076host_alias=$host_alias
22077host=$host
22078host_os=$host_os
e811949a 22079
8934764e
BB
22080# The build system.
22081build_alias=$build_alias
22082build=$build
22083build_os=$build_os
3977f837 22084
8934764e
BB
22085# A sed program that does not truncate output.
22086SED=$lt_SED
3977f837 22087
8934764e
BB
22088# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22089Xsed="\$SED -e 1s/^X//"
3977f837 22090
8934764e
BB
22091# A grep program that handles long lines.
22092GREP=$lt_GREP
3977f837 22093
8934764e
BB
22094# An ERE matcher.
22095EGREP=$lt_EGREP
3977f837 22096
8934764e
BB
22097# A literal string matcher.
22098FGREP=$lt_FGREP
3977f837 22099
8934764e
BB
22100# A BSD- or MS-compatible name lister.
22101NM=$lt_NM
3977f837 22102
8934764e
BB
22103# Whether we need soft or hard links.
22104LN_S=$lt_LN_S
3977f837 22105
8934764e
BB
22106# What is the maximum length of a command?
22107max_cmd_len=$max_cmd_len
3977f837 22108
8934764e
BB
22109# Object file suffix (normally "o").
22110objext=$ac_objext
3977f837 22111
8934764e
BB
22112# Executable file suffix (normally "").
22113exeext=$exeext
3977f837 22114
8934764e
BB
22115# whether the shell understands "unset".
22116lt_unset=$lt_unset
3977f837 22117
8934764e
BB
22118# turn spaces into newlines.
22119SP2NL=$lt_lt_SP2NL
3977f837 22120
8934764e
BB
22121# turn newlines into spaces.
22122NL2SP=$lt_lt_NL2SP
3977f837 22123
8934764e
BB
22124# How to create reloadable object files.
22125reload_flag=$lt_reload_flag
22126reload_cmds=$lt_reload_cmds
3977f837 22127
8934764e
BB
22128# An object symbol dumper.
22129OBJDUMP=$lt_OBJDUMP
3977f837 22130
8934764e
BB
22131# Method to check whether dependent libraries are shared objects.
22132deplibs_check_method=$lt_deplibs_check_method
3977f837 22133
8934764e
BB
22134# Command to use when deplibs_check_method == "file_magic".
22135file_magic_cmd=$lt_file_magic_cmd
3977f837 22136
8934764e
BB
22137# The archiver.
22138AR=$lt_AR
22139AR_FLAGS=$lt_AR_FLAGS
3977f837 22140
8934764e
BB
22141# A symbol stripping program.
22142STRIP=$lt_STRIP
3977f837 22143
8934764e
BB
22144# Commands used to install an old-style archive.
22145RANLIB=$lt_RANLIB
22146old_postinstall_cmds=$lt_old_postinstall_cmds
22147old_postuninstall_cmds=$lt_old_postuninstall_cmds
3977f837 22148
8934764e
BB
22149# A C compiler.
22150LTCC=$lt_CC
3977f837 22151
8934764e
BB
22152# LTCC compiler flags.
22153LTCFLAGS=$lt_CFLAGS
3977f837 22154
8934764e
BB
22155# Take the output of nm and produce a listing of raw symbols and C names.
22156global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
86933a6e 22157
8934764e
BB
22158# Transform the output of nm in a proper C declaration.
22159global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
86933a6e 22160
8934764e
BB
22161# Transform the output of nm in a C name address pair.
22162global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
86933a6e 22163
8934764e
BB
22164# Transform the output of nm in a C name address pair when lib prefix is needed.
22165global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
86933a6e 22166
8934764e
BB
22167# The name of the directory that contains temporary libtool files.
22168objdir=$objdir
86933a6e 22169
8934764e
BB
22170# Shell to use when invoking shell scripts.
22171SHELL=$lt_SHELL
86933a6e 22172
8934764e
BB
22173# An echo program that does not interpret backslashes.
22174ECHO=$lt_ECHO
86933a6e 22175
8934764e
BB
22176# Used to examine libraries when file_magic_cmd begins with "file".
22177MAGIC_CMD=$MAGIC_CMD
86933a6e 22178
8934764e
BB
22179# Must we lock files when doing compilation?
22180need_locks=$lt_need_locks
86933a6e 22181
8934764e
BB
22182# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22183DSYMUTIL=$lt_DSYMUTIL
bf9f3bac 22184
8934764e
BB
22185# Tool to change global to local symbols on Mac OS X.
22186NMEDIT=$lt_NMEDIT
bf9f3bac 22187
8934764e
BB
22188# Tool to manipulate fat objects and archives on Mac OS X.
22189LIPO=$lt_LIPO
bf9f3bac 22190
8934764e
BB
22191# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22192OTOOL=$lt_OTOOL
bf9f3bac 22193
8934764e
BB
22194# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22195OTOOL64=$lt_OTOOL64
bf9f3bac 22196
8934764e
BB
22197# Old archive suffix (normally "a").
22198libext=$libext
bf9f3bac 22199
8934764e
BB
22200# Shared library suffix (normally ".so").
22201shrext_cmds=$lt_shrext_cmds
bf9f3bac 22202
8934764e
BB
22203# The commands to extract the exported symbol list from a shared archive.
22204extract_expsyms_cmds=$lt_extract_expsyms_cmds
bf9f3bac 22205
8934764e
BB
22206# Variables whose values should be saved in libtool wrapper scripts and
22207# restored at link time.
22208variables_saved_for_relink=$lt_variables_saved_for_relink
bf9f3bac 22209
8934764e
BB
22210# Do we need the "lib" prefix for modules?
22211need_lib_prefix=$need_lib_prefix
bf9f3bac 22212
8934764e
BB
22213# Do we need a version for libraries?
22214need_version=$need_version
bf9f3bac 22215
8934764e
BB
22216# Library versioning type.
22217version_type=$version_type
bf9f3bac 22218
8934764e
BB
22219# Shared library runtime path variable.
22220runpath_var=$runpath_var
bf9f3bac 22221
8934764e
BB
22222# Shared library path variable.
22223shlibpath_var=$shlibpath_var
bf9f3bac 22224
8934764e
BB
22225# Is shlibpath searched before the hard-coded library search path?
22226shlibpath_overrides_runpath=$shlibpath_overrides_runpath
bf9f3bac 22227
8934764e
BB
22228# Format of library name prefix.
22229libname_spec=$lt_libname_spec
bf9f3bac 22230
8934764e
BB
22231# List of archive names. First name is the real one, the rest are links.
22232# The last name is the one that the linker finds with -lNAME
22233library_names_spec=$lt_library_names_spec
bf9f3bac 22234
8934764e
BB
22235# The coded name of the library, if different from the real name.
22236soname_spec=$lt_soname_spec
bf9f3bac 22237
8934764e
BB
22238# Command to use after installation of a shared archive.
22239postinstall_cmds=$lt_postinstall_cmds
bf9f3bac 22240
8934764e
BB
22241# Command to use after uninstallation of a shared archive.
22242postuninstall_cmds=$lt_postuninstall_cmds
bf9f3bac 22243
8934764e
BB
22244# Commands used to finish a libtool library installation in a directory.
22245finish_cmds=$lt_finish_cmds
bf9f3bac 22246
8934764e
BB
22247# As "finish_cmds", except a single script fragment to be evaled but
22248# not shown.
22249finish_eval=$lt_finish_eval
bf9f3bac 22250
8934764e
BB
22251# Whether we should hardcode library paths into libraries.
22252hardcode_into_libs=$hardcode_into_libs
bf9f3bac 22253
8934764e
BB
22254# Compile-time system search path for libraries.
22255sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
bf9f3bac 22256
8934764e
BB
22257# Run-time system search path for libraries.
22258sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
bf9f3bac 22259
8934764e
BB
22260# Whether dlopen is supported.
22261dlopen_support=$enable_dlopen
bf9f3bac 22262
8934764e
BB
22263# Whether dlopen of programs is supported.
22264dlopen_self=$enable_dlopen_self
bf9f3bac 22265
8934764e
BB
22266# Whether dlopen of statically linked programs is supported.
22267dlopen_self_static=$enable_dlopen_self_static
bf9f3bac 22268
8934764e
BB
22269# Commands to strip libraries.
22270old_striplib=$lt_old_striplib
22271striplib=$lt_striplib
bf9f3bac 22272
bf9f3bac 22273
8934764e
BB
22274# The linker used to build libraries.
22275LD=$lt_LD
bf9f3bac 22276
8934764e
BB
22277# Commands used to build an old-style archive.
22278old_archive_cmds=$lt_old_archive_cmds
bf9f3bac 22279
8934764e
BB
22280# A language specific compiler.
22281CC=$lt_compiler
bf9f3bac 22282
8934764e
BB
22283# Is the compiler the GNU compiler?
22284with_gcc=$GCC
bf9f3bac 22285
8934764e
BB
22286# Compiler flag to turn off builtin functions.
22287no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
bf9f3bac 22288
8934764e
BB
22289# How to pass a linker flag through the compiler.
22290wl=$lt_lt_prog_compiler_wl
bf9f3bac 22291
8934764e
BB
22292# Additional compiler flags for building library objects.
22293pic_flag=$lt_lt_prog_compiler_pic
bf9f3bac 22294
8934764e
BB
22295# Compiler flag to prevent dynamic linking.
22296link_static_flag=$lt_lt_prog_compiler_static
bf9f3bac 22297
8934764e
BB
22298# Does compiler simultaneously support -c and -o options?
22299compiler_c_o=$lt_lt_cv_prog_compiler_c_o
bf9f3bac 22300
8934764e
BB
22301# Whether or not to add -lc for building shared libraries.
22302build_libtool_need_lc=$archive_cmds_need_lc
bf9f3bac 22303
8934764e
BB
22304# Whether or not to disallow shared libs when runtime libs are static.
22305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
bf9f3bac 22306
8934764e
BB
22307# Compiler flag to allow reflexive dlopens.
22308export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
bf9f3bac 22309
8934764e
BB
22310# Compiler flag to generate shared objects directly from archives.
22311whole_archive_flag_spec=$lt_whole_archive_flag_spec
bf9f3bac 22312
8934764e
BB
22313# Whether the compiler copes with passing no objects directly.
22314compiler_needs_object=$lt_compiler_needs_object
bf9f3bac 22315
8934764e
BB
22316# Create an old-style archive from a shared archive.
22317old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
bf9f3bac 22318
8934764e
BB
22319# Create a temporary old-style archive to link instead of a shared archive.
22320old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
bf9f3bac 22321
8934764e
BB
22322# Commands used to build a shared archive.
22323archive_cmds=$lt_archive_cmds
22324archive_expsym_cmds=$lt_archive_expsym_cmds
bf9f3bac 22325
8934764e
BB
22326# Commands used to build a loadable module if different from building
22327# a shared archive.
22328module_cmds=$lt_module_cmds
22329module_expsym_cmds=$lt_module_expsym_cmds
bf9f3bac 22330
8934764e
BB
22331# Whether we are building with GNU ld or not.
22332with_gnu_ld=$lt_with_gnu_ld
bf9f3bac 22333
8934764e
BB
22334# Flag that allows shared libraries with undefined symbols to be built.
22335allow_undefined_flag=$lt_allow_undefined_flag
bf9f3bac 22336
8934764e
BB
22337# Flag that enforces no undefined symbols.
22338no_undefined_flag=$lt_no_undefined_flag
bf9f3bac 22339
8934764e
BB
22340# Flag to hardcode \$libdir into a binary during linking.
22341# This must work even if \$libdir does not exist
22342hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
bf9f3bac 22343
8934764e
BB
22344# If ld is used when linking, flag to hardcode \$libdir into a binary
22345# during linking. This must work even if \$libdir does not exist.
22346hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
bf9f3bac 22347
8934764e
BB
22348# Whether we need a single "-rpath" flag with a separated argument.
22349hardcode_libdir_separator=$lt_hardcode_libdir_separator
bf9f3bac 22350
8934764e
BB
22351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22352# DIR into the resulting binary.
22353hardcode_direct=$hardcode_direct
bf9f3bac 22354
8934764e
BB
22355# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22356# DIR into the resulting binary and the resulting library dependency is
22357# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22358# library is relocated.
22359hardcode_direct_absolute=$hardcode_direct_absolute
bf9f3bac 22360
8934764e
BB
22361# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22362# into the resulting binary.
22363hardcode_minus_L=$hardcode_minus_L
bf9f3bac 22364
8934764e
BB
22365# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22366# into the resulting binary.
22367hardcode_shlibpath_var=$hardcode_shlibpath_var
bf9f3bac 22368
8934764e
BB
22369# Set to "yes" if building a shared library automatically hardcodes DIR
22370# into the library and all subsequent libraries and executables linked
22371# against it.
22372hardcode_automatic=$hardcode_automatic
bf9f3bac 22373
8934764e
BB
22374# Set to yes if linker adds runtime paths of dependent libraries
22375# to runtime path list.
22376inherit_rpath=$inherit_rpath
bf9f3bac 22377
8934764e
BB
22378# Whether libtool must link a program against all its dependency libraries.
22379link_all_deplibs=$link_all_deplibs
bf9f3bac 22380
8934764e
BB
22381# Fix the shell variable \$srcfile for the compiler.
22382fix_srcfile_path=$lt_fix_srcfile_path
bf9f3bac 22383
8934764e
BB
22384# Set to "yes" if exported symbols are required.
22385always_export_symbols=$always_export_symbols
bf9f3bac 22386
8934764e
BB
22387# The commands to list exported symbols.
22388export_symbols_cmds=$lt_export_symbols_cmds
bf9f3bac 22389
8934764e
BB
22390# Symbols that should not be listed in the preloaded symbols.
22391exclude_expsyms=$lt_exclude_expsyms
bf9f3bac 22392
8934764e
BB
22393# Symbols that must always be exported.
22394include_expsyms=$lt_include_expsyms
bf9f3bac 22395
8934764e
BB
22396# Commands necessary for linking programs (against libraries) with templates.
22397prelink_cmds=$lt_prelink_cmds
bf9f3bac 22398
8934764e
BB
22399# Specify filename containing input files.
22400file_list_spec=$lt_file_list_spec
bf9f3bac 22401
8934764e
BB
22402# How to hardcode a shared library path into an executable.
22403hardcode_action=$hardcode_action
bf9f3bac 22404
8934764e
BB
22405# ### END LIBTOOL CONFIG
22406
22407_LT_EOF
22408
22409 case $host_os in
22410 aix3*)
22411 cat <<\_LT_EOF >> "$cfgfile"
22412# AIX sometimes has problems with the GCC collect2 program. For some
22413# reason, if we set the COLLECT_NAMES environment variable, the problems
22414# vanish in a puff of smoke.
22415if test "X${COLLECT_NAMES+set}" != Xset; then
22416 COLLECT_NAMES=
22417 export COLLECT_NAMES
bf9f3bac 22418fi
8934764e
BB
22419_LT_EOF
22420 ;;
22421 esac
bf9f3bac 22422
bf9f3bac 22423
8934764e 22424ltmain="$ac_aux_dir/ltmain.sh"
bf9f3bac 22425
bf9f3bac 22426
8934764e
BB
22427 # We use sed instead of cat because bash on DJGPP gets confused if
22428 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22429 # text mode, it properly converts lines to CR/LF. This bash problem
22430 # is reportedly fixed, but why not run on old versions too?
22431 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22432 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 22433
8934764e
BB
22434 case $xsi_shell in
22435 yes)
22436 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22437
8934764e
BB
22438# func_dirname file append nondir_replacement
22439# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22440# otherwise set result to NONDIR_REPLACEMENT.
22441func_dirname ()
22442{
22443 case ${1} in
22444 */*) func_dirname_result="${1%/*}${2}" ;;
22445 * ) func_dirname_result="${3}" ;;
bf9f3bac 22446 esac
8934764e 22447}
bf9f3bac 22448
8934764e
BB
22449# func_basename file
22450func_basename ()
22451{
22452 func_basename_result="${1##*/}"
22453}
bf9f3bac 22454
8934764e
BB
22455# func_dirname_and_basename file append nondir_replacement
22456# perform func_basename and func_dirname in a single function
22457# call:
22458# dirname: Compute the dirname of FILE. If nonempty,
22459# add APPEND to the result, otherwise set result
22460# to NONDIR_REPLACEMENT.
22461# value returned in "$func_dirname_result"
22462# basename: Compute filename of FILE.
22463# value retuned in "$func_basename_result"
22464# Implementation must be kept synchronized with func_dirname
22465# and func_basename. For efficiency, we do not delegate to
22466# those functions but instead duplicate the functionality here.
22467func_dirname_and_basename ()
bf9f3bac 22468{
8934764e
BB
22469 case ${1} in
22470 */*) func_dirname_result="${1%/*}${2}" ;;
22471 * ) func_dirname_result="${3}" ;;
22472 esac
22473 func_basename_result="${1##*/}"
bf9f3bac 22474}
22475
8934764e
BB
22476# func_stripname prefix suffix name
22477# strip PREFIX and SUFFIX off of NAME.
22478# PREFIX and SUFFIX must not contain globbing or regex special
22479# characters, hashes, percent signs, but SUFFIX may contain a leading
22480# dot (in which case that matches only a dot).
22481func_stripname ()
22482{
22483 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22484 # positional parameters, so assign one to ordinary parameter first.
22485 func_stripname_result=${3}
22486 func_stripname_result=${func_stripname_result#"${1}"}
22487 func_stripname_result=${func_stripname_result%"${2}"}
22488}
bf9f3bac 22489
8934764e
BB
22490# func_opt_split
22491func_opt_split ()
bf9f3bac 22492{
8934764e
BB
22493 func_opt_split_opt=${1%%=*}
22494 func_opt_split_arg=${1#*=}
22495}
22496
22497# func_lo2o object
22498func_lo2o ()
bf9f3bac 22499{
8934764e
BB
22500 case ${1} in
22501 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22502 *) func_lo2o_result=${1} ;;
22503 esac
22504}
22505
22506# func_xform libobj-or-source
22507func_xform ()
bf9f3bac 22508{
8934764e 22509 func_xform_result=${1%.*}.lo
bf9f3bac 22510}
22511
8934764e
BB
22512# func_arith arithmetic-term...
22513func_arith ()
22514{
22515 func_arith_result=$(( $* ))
22516}
bf9f3bac 22517
8934764e
BB
22518# func_len string
22519# STRING may not start with a hyphen.
22520func_len ()
22521{
22522 func_len_result=${#1}
22523}
bf9f3bac 22524
8934764e
BB
22525_LT_EOF
22526 ;;
22527 *) # Bourne compatible functions.
22528 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22529
8934764e
BB
22530# func_dirname file append nondir_replacement
22531# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22532# otherwise set result to NONDIR_REPLACEMENT.
22533func_dirname ()
22534{
22535 # Extract subdirectory from the argument.
22536 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22537 if test "X$func_dirname_result" = "X${1}"; then
22538 func_dirname_result="${3}"
22539 else
22540 func_dirname_result="$func_dirname_result${2}"
bf9f3bac 22541 fi
8934764e 22542}
bf9f3bac 22543
8934764e
BB
22544# func_basename file
22545func_basename ()
22546{
22547 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22548}
bf9f3bac 22549
bf9f3bac 22550
8934764e
BB
22551# func_stripname prefix suffix name
22552# strip PREFIX and SUFFIX off of NAME.
22553# PREFIX and SUFFIX must not contain globbing or regex special
22554# characters, hashes, percent signs, but SUFFIX may contain a leading
22555# dot (in which case that matches only a dot).
22556# func_strip_suffix prefix name
22557func_stripname ()
22558{
22559 case ${2} in
22560 .*) func_stripname_result=`$ECHO "X${3}" \
22561 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22562 *) func_stripname_result=`$ECHO "X${3}" \
22563 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22564 esac
22565}
bf9f3bac 22566
8934764e
BB
22567# sed scripts:
22568my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22569my_sed_long_arg='1s/^-[^=]*=//'
bf9f3bac 22570
8934764e
BB
22571# func_opt_split
22572func_opt_split ()
22573{
22574 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22575 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22576}
bf9f3bac 22577
8934764e
BB
22578# func_lo2o object
22579func_lo2o ()
22580{
22581 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22582}
bf9f3bac 22583
8934764e
BB
22584# func_xform libobj-or-source
22585func_xform ()
22586{
22587 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22588}
bf9f3bac 22589
8934764e
BB
22590# func_arith arithmetic-term...
22591func_arith ()
22592{
22593 func_arith_result=`expr "$@"`
22594}
bf9f3bac 22595
8934764e
BB
22596# func_len string
22597# STRING may not start with a hyphen.
22598func_len ()
22599{
22600 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22601}
bf9f3bac 22602
8934764e
BB
22603_LT_EOF
22604esac
bf9f3bac 22605
8934764e
BB
22606case $lt_shell_append in
22607 yes)
22608 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22609
8934764e
BB
22610# func_append var value
22611# Append VALUE to the end of shell variable VAR.
22612func_append ()
22613{
22614 eval "$1+=\$2"
22615}
22616_LT_EOF
22617 ;;
22618 *)
22619 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22620
8934764e
BB
22621# func_append var value
22622# Append VALUE to the end of shell variable VAR.
22623func_append ()
22624{
22625 eval "$1=\$$1\$2"
22626}
bf9f3bac 22627
8934764e
BB
22628_LT_EOF
22629 ;;
16b719f0 22630 esac
bf9f3bac 22631
bf9f3bac 22632
8934764e
BB
22633 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22634 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 22635
8934764e
BB
22636 mv -f "$cfgfile" "$ofile" ||
22637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22638 chmod +x "$ofile"
bf9f3bac 22639
bf9f3bac 22640 ;;
8934764e 22641
bf9f3bac 22642 esac
8934764e 22643done # for ac_tag
bf9f3bac 22644
bf9f3bac 22645
22646{ (exit 0); exit 0; }
22647_ACEOF
22648chmod +x $CONFIG_STATUS
22649ac_clean_files=$ac_clean_files_save
22650
8934764e
BB
22651test $ac_write_fail = 0 ||
22652 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22653$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22654 { (exit 1); exit 1; }; }
22655
bf9f3bac 22656
22657# configure is writing to config.log, and then calls config.status.
22658# config.status does its own redirection, appending to config.log.
22659# Unfortunately, on DOS this fails, as config.log is still kept open
22660# by configure, so config.status won't be able to write to it; its
22661# output is simply discarded. So we exec the FD to /dev/null,
22662# effectively closing config.log, so it can be properly (re)opened and
22663# appended to by config.status. When coming back to configure, we
22664# need to make the FD available again.
22665if test "$no_create" != yes; then
22666 ac_cs_success=:
22667 ac_config_status_args=
22668 test "$silent" = yes &&
22669 ac_config_status_args="$ac_config_status_args --quiet"
22670 exec 5>/dev/null
22671 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22672 exec 5>>config.log
22673 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22674 # would make configure fail if this is the last instruction.
22675 $ac_cs_success || { (exit 1); exit 1; }
22676fi
8934764e
BB
22677if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22678 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22679$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22680fi
bf9f3bac 22681