]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
SPL 0.6.0-rc8
[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
3c208a54
BB
794DEBUG_KMEM_TRACKING
795DEBUG_KMEM
796DEBUG_LOG
797DEBUG_SPL
c950d148 798DEBUG_CFLAGS
8934764e
BB
799KERNELCPPFLAGS
800KERNELMAKE_PARAMS
801LINUX_SYMBOLS
802LINUX_VERSION
803LINUX_OBJ
804LINUX
805SPL_CONFIG
c2dceb5c
PS
806MAKEPKG_VERSION
807MAKEPKG
808HAVE_MAKEPKG
809PACMAN_VERSION
810PACMAN
811HAVE_PACMAN
287b2fb1
BB
812ALIEN_VERSION
813ALIEN
814HAVE_ALIEN
815DPKGBUILD_VERSION
816DPKGBUILD
817HAVE_DPKGBUILD
818DPKG_VERSION
819DPKG
820HAVE_DPKG
821RPMBUILD_VERSION
822RPMBUILD
823HAVE_RPMBUILD
824RPM_VERSION
825RPM
826HAVE_RPM
0b14b9f3
BB
827DEFAULT_PACKAGE
828VENDOR
8934764e
BB
829LICENSE
830CPP
831OTOOL64
832OTOOL
833LIPO
834NMEDIT
835DSYMUTIL
836lt_ECHO
837RANLIB
838AR
839OBJDUMP
840LN_S
841NM
842ac_ct_DUMPBIN
843DUMPBIN
844LD
845FGREP
846EGREP
847GREP
848SED
849LIBTOOL
850am__fastdepCC_FALSE
851am__fastdepCC_TRUE
852CCDEPMODE
853AMDEPBACKSLASH
854AMDEP_FALSE
855AMDEP_TRUE
856am__quote
857am__include
858DEPDIR
859OBJEXT
860EXEEXT
861ac_ct_CC
862CPPFLAGS
863LDFLAGS
864CFLAGS
865CC
866am__untar
867am__tar
868AMTAR
869am__leading_dot
870SET_MAKE
871AWK
872mkdir_p
873MKDIR_P
874INSTALL_STRIP_PROGRAM
875STRIP
876install_sh
877MAKEINFO
878AUTOHEADER
879AUTOMAKE
880AUTOCONF
881ACLOCAL
882VERSION
883PACKAGE
884CYGPATH_W
885am__isrc
886INSTALL_DATA
887INSTALL_SCRIPT
888INSTALL_PROGRAM
889AM_BACKSLASH
890AM_DEFAULT_VERBOSITY
891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
894target_os
895target_vendor
896target_cpu
897target
898host_os
899host_vendor
900host_cpu
901host
902build_os
903build_vendor
904build_cpu
905build
906SPL_META_LT_AGE
907SPL_META_LT_REVISION
908SPL_META_LT_CURRENT
909SPL_META_AUTHOR
910SPL_META_DATA
911SPL_META_ALIAS
912SPL_META_RELEASE
913SPL_META_VERSION
914SPL_META_NAME
915target_alias
916host_alias
917build_alias
918LIBS
919ECHO_T
920ECHO_N
921ECHO_C
922DEFS
923mandir
924localedir
925libdir
926psdir
927pdfdir
928dvidir
929htmldir
930infodir
931docdir
932oldincludedir
933includedir
934localstatedir
935sharedstatedir
936sysconfdir
937datadir
938datarootdir
939libexecdir
940sbindir
941bindir
942program_transform_name
943prefix
944exec_prefix
945PACKAGE_BUGREPORT
946PACKAGE_STRING
947PACKAGE_VERSION
948PACKAGE_TARNAME
949PACKAGE_NAME
950PATH_SEPARATOR
951SHELL'
bf9f3bac 952ac_subst_files=''
8934764e
BB
953ac_user_opts='
954enable_option_checking
955enable_maintainer_mode
956enable_silent_rules
957enable_dependency_tracking
958enable_shared
959enable_static
960with_pic
961enable_fast_install
962with_gnu_ld
963enable_libtool_lock
964with_config
965with_linux
966with_linux_obj
967enable_debug
4b2220f0 968enable_debug_log
8934764e
BB
969enable_debug_kmem
970enable_debug_kmem_tracking
971enable_atomic_spinlocks
972'
973 ac_precious_vars='build_alias
974host_alias
975target_alias
976CC
977CFLAGS
978LDFLAGS
979LIBS
980CPPFLAGS
981CPP'
982
bf9f3bac 983
984# Initialize some variables set by options.
985ac_init_help=
986ac_init_version=false
8934764e
BB
987ac_unrecognized_opts=
988ac_unrecognized_sep=
bf9f3bac 989# The variables have the same names as the options, with
990# dashes changed to underlines.
991cache_file=/dev/null
992exec_prefix=NONE
993no_create=
994no_recursion=
995prefix=NONE
996program_prefix=NONE
997program_suffix=NONE
998program_transform_name=s,x,x,
999silent=
1000site=
1001srcdir=
1002verbose=
1003x_includes=NONE
1004x_libraries=NONE
1005
1006# Installation directory options.
1007# These are left unexpanded so users can "make install exec_prefix=/foo"
1008# and all the variables that are supposed to be based on exec_prefix
1009# by default will actually change.
1010# Use braces instead of parens because sh, perl, etc. also accept them.
8934764e 1011# (The list follows the same order as the GNU Coding Standards.)
bf9f3bac 1012bindir='${exec_prefix}/bin'
1013sbindir='${exec_prefix}/sbin'
1014libexecdir='${exec_prefix}/libexec'
8934764e
BB
1015datarootdir='${prefix}/share'
1016datadir='${datarootdir}'
bf9f3bac 1017sysconfdir='${prefix}/etc'
1018sharedstatedir='${prefix}/com'
1019localstatedir='${prefix}/var'
bf9f3bac 1020includedir='${prefix}/include'
1021oldincludedir='/usr/include'
8934764e
BB
1022docdir='${datarootdir}/doc/${PACKAGE}'
1023infodir='${datarootdir}/info'
1024htmldir='${docdir}'
1025dvidir='${docdir}'
1026pdfdir='${docdir}'
1027psdir='${docdir}'
1028libdir='${exec_prefix}/lib'
1029localedir='${datarootdir}/locale'
1030mandir='${datarootdir}/man'
bf9f3bac 1031
1032ac_prev=
8934764e 1033ac_dashdash=
bf9f3bac 1034for ac_option
1035do
1036 # If the previous option needs an argument, assign it.
1037 if test -n "$ac_prev"; then
8934764e 1038 eval $ac_prev=\$ac_option
bf9f3bac 1039 ac_prev=
1040 continue
1041 fi
1042
8934764e
BB
1043 case $ac_option in
1044 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045 *) ac_optarg=yes ;;
1046 esac
bf9f3bac 1047
1048 # Accept the important Cygnus configure options, so we can diagnose typos.
1049
8934764e
BB
1050 case $ac_dashdash$ac_option in
1051 --)
1052 ac_dashdash=yes ;;
bf9f3bac 1053
1054 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055 ac_prev=bindir ;;
1056 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057 bindir=$ac_optarg ;;
1058
1059 -build | --build | --buil | --bui | --bu)
1060 ac_prev=build_alias ;;
1061 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062 build_alias=$ac_optarg ;;
1063
1064 -cache-file | --cache-file | --cache-fil | --cache-fi \
1065 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066 ac_prev=cache_file ;;
1067 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069 cache_file=$ac_optarg ;;
1070
1071 --config-cache | -C)
1072 cache_file=config.cache ;;
1073
8934764e 1074 -datadir | --datadir | --datadi | --datad)
bf9f3bac 1075 ac_prev=datadir ;;
8934764e 1076 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bf9f3bac 1077 datadir=$ac_optarg ;;
1078
8934764e
BB
1079 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080 | --dataroo | --dataro | --datar)
1081 ac_prev=datarootdir ;;
1082 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084 datarootdir=$ac_optarg ;;
1085
bf9f3bac 1086 -disable-* | --disable-*)
8934764e 1087 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bf9f3bac 1088 # Reject names that are not valid shell variable names.
8934764e
BB
1089 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1091 { (exit 1); exit 1; }; }
8934764e
BB
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096"enable_$ac_useropt"
1097"*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=no ;;
1102
1103 -docdir | --docdir | --docdi | --doc | --do)
1104 ac_prev=docdir ;;
1105 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106 docdir=$ac_optarg ;;
1107
1108 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1109 ac_prev=dvidir ;;
1110 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111 dvidir=$ac_optarg ;;
bf9f3bac 1112
1113 -enable-* | --enable-*)
8934764e 1114 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bf9f3bac 1115 # Reject names that are not valid shell variable names.
8934764e
BB
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1118 { (exit 1); exit 1; }; }
8934764e
BB
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123"enable_$ac_useropt"
1124"*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
bf9f3bac 1127 esac
8934764e 1128 eval enable_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1129
1130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1132 | --exec | --exe | --ex)
1133 ac_prev=exec_prefix ;;
1134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1136 | --exec=* | --exe=* | --ex=*)
1137 exec_prefix=$ac_optarg ;;
1138
1139 -gas | --gas | --ga | --g)
1140 # Obsolete; use --with-gas.
1141 with_gas=yes ;;
1142
1143 -help | --help | --hel | --he | -h)
1144 ac_init_help=long ;;
1145 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1146 ac_init_help=recursive ;;
1147 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1148 ac_init_help=short ;;
1149
1150 -host | --host | --hos | --ho)
1151 ac_prev=host_alias ;;
1152 -host=* | --host=* | --hos=* | --ho=*)
1153 host_alias=$ac_optarg ;;
1154
8934764e
BB
1155 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1156 ac_prev=htmldir ;;
1157 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1158 | --ht=*)
1159 htmldir=$ac_optarg ;;
1160
bf9f3bac 1161 -includedir | --includedir | --includedi | --included | --include \
1162 | --includ | --inclu | --incl | --inc)
1163 ac_prev=includedir ;;
1164 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1165 | --includ=* | --inclu=* | --incl=* | --inc=*)
1166 includedir=$ac_optarg ;;
1167
1168 -infodir | --infodir | --infodi | --infod | --info | --inf)
1169 ac_prev=infodir ;;
1170 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1171 infodir=$ac_optarg ;;
1172
1173 -libdir | --libdir | --libdi | --libd)
1174 ac_prev=libdir ;;
1175 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1176 libdir=$ac_optarg ;;
1177
1178 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1179 | --libexe | --libex | --libe)
1180 ac_prev=libexecdir ;;
1181 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1182 | --libexe=* | --libex=* | --libe=*)
1183 libexecdir=$ac_optarg ;;
1184
8934764e
BB
1185 -localedir | --localedir | --localedi | --localed | --locale)
1186 ac_prev=localedir ;;
1187 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1188 localedir=$ac_optarg ;;
1189
bf9f3bac 1190 -localstatedir | --localstatedir | --localstatedi | --localstated \
8934764e 1191 | --localstate | --localstat | --localsta | --localst | --locals)
bf9f3bac 1192 ac_prev=localstatedir ;;
1193 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8934764e 1194 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bf9f3bac 1195 localstatedir=$ac_optarg ;;
1196
1197 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1198 ac_prev=mandir ;;
1199 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1200 mandir=$ac_optarg ;;
1201
1202 -nfp | --nfp | --nf)
1203 # Obsolete; use --without-fp.
1204 with_fp=no ;;
1205
1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1207 | --no-cr | --no-c | -n)
1208 no_create=yes ;;
1209
1210 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1211 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1212 no_recursion=yes ;;
1213
1214 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1215 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1216 | --oldin | --oldi | --old | --ol | --o)
1217 ac_prev=oldincludedir ;;
1218 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1219 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1220 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1221 oldincludedir=$ac_optarg ;;
1222
1223 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1224 ac_prev=prefix ;;
1225 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1226 prefix=$ac_optarg ;;
1227
1228 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1229 | --program-pre | --program-pr | --program-p)
1230 ac_prev=program_prefix ;;
1231 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1232 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1233 program_prefix=$ac_optarg ;;
1234
1235 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1236 | --program-suf | --program-su | --program-s)
1237 ac_prev=program_suffix ;;
1238 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1239 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1240 program_suffix=$ac_optarg ;;
1241
1242 -program-transform-name | --program-transform-name \
1243 | --program-transform-nam | --program-transform-na \
1244 | --program-transform-n | --program-transform- \
1245 | --program-transform | --program-transfor \
1246 | --program-transfo | --program-transf \
1247 | --program-trans | --program-tran \
1248 | --progr-tra | --program-tr | --program-t)
1249 ac_prev=program_transform_name ;;
1250 -program-transform-name=* | --program-transform-name=* \
1251 | --program-transform-nam=* | --program-transform-na=* \
1252 | --program-transform-n=* | --program-transform-=* \
1253 | --program-transform=* | --program-transfor=* \
1254 | --program-transfo=* | --program-transf=* \
1255 | --program-trans=* | --program-tran=* \
1256 | --progr-tra=* | --program-tr=* | --program-t=*)
1257 program_transform_name=$ac_optarg ;;
1258
8934764e
BB
1259 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1260 ac_prev=pdfdir ;;
1261 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1262 pdfdir=$ac_optarg ;;
1263
1264 -psdir | --psdir | --psdi | --psd | --ps)
1265 ac_prev=psdir ;;
1266 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1267 psdir=$ac_optarg ;;
1268
bf9f3bac 1269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1270 | -silent | --silent | --silen | --sile | --sil)
1271 silent=yes ;;
1272
1273 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274 ac_prev=sbindir ;;
1275 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276 | --sbi=* | --sb=*)
1277 sbindir=$ac_optarg ;;
1278
1279 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1280 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1281 | --sharedst | --shareds | --shared | --share | --shar \
1282 | --sha | --sh)
1283 ac_prev=sharedstatedir ;;
1284 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1285 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1286 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287 | --sha=* | --sh=*)
1288 sharedstatedir=$ac_optarg ;;
1289
1290 -site | --site | --sit)
1291 ac_prev=site ;;
1292 -site=* | --site=* | --sit=*)
1293 site=$ac_optarg ;;
1294
1295 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296 ac_prev=srcdir ;;
1297 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1298 srcdir=$ac_optarg ;;
1299
1300 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1301 | --syscon | --sysco | --sysc | --sys | --sy)
1302 ac_prev=sysconfdir ;;
1303 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1304 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1305 sysconfdir=$ac_optarg ;;
1306
1307 -target | --target | --targe | --targ | --tar | --ta | --t)
1308 ac_prev=target_alias ;;
1309 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1310 target_alias=$ac_optarg ;;
1311
1312 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1313 verbose=yes ;;
1314
1315 -version | --version | --versio | --versi | --vers | -V)
1316 ac_init_version=: ;;
1317
1318 -with-* | --with-*)
8934764e 1319 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bf9f3bac 1320 # Reject names that are not valid shell variable names.
8934764e
BB
1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1322 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1323 { (exit 1); exit 1; }; }
8934764e
BB
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328"with_$ac_useropt"
1329"*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
bf9f3bac 1332 esac
8934764e 1333 eval with_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1334
1335 -without-* | --without-*)
8934764e 1336 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bf9f3bac 1337 # Reject names that are not valid shell variable names.
8934764e
BB
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1340 { (exit 1); exit 1; }; }
8934764e
BB
1341 ac_useropt_orig=$ac_useropt
1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1344 *"
1345"with_$ac_useropt"
1346"*) ;;
1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1348 ac_unrecognized_sep=', ';;
1349 esac
1350 eval with_$ac_useropt=no ;;
bf9f3bac 1351
1352 --x)
1353 # Obsolete; use --with-x.
1354 with_x=yes ;;
1355
1356 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357 | --x-incl | --x-inc | --x-in | --x-i)
1358 ac_prev=x_includes ;;
1359 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361 x_includes=$ac_optarg ;;
1362
1363 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365 ac_prev=x_libraries ;;
1366 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368 x_libraries=$ac_optarg ;;
1369
8934764e 1370 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
bf9f3bac 1371Try \`$0 --help' for more information." >&2
1372 { (exit 1); exit 1; }; }
1373 ;;
1374
1375 *=*)
1376 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8934764e 1379 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
bf9f3bac 1380 { (exit 1); exit 1; }; }
8934764e 1381 eval $ac_envvar=\$ac_optarg
bf9f3bac 1382 export $ac_envvar ;;
1383
1384 *)
1385 # FIXME: should be removed in autoconf 3.0.
8934764e 1386 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bf9f3bac 1387 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8934764e 1388 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bf9f3bac 1389 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390 ;;
1391
1392 esac
1393done
1394
1395if test -n "$ac_prev"; then
1396 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8934764e 1397 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
bf9f3bac 1398 { (exit 1); exit 1; }; }
1399fi
1400
8934764e
BB
1401if test -n "$ac_unrecognized_opts"; then
1402 case $enable_option_checking in
1403 no) ;;
1404 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1405 { (exit 1); exit 1; }; } ;;
1406 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bf9f3bac 1407 esac
8934764e 1408fi
bf9f3bac 1409
8934764e
BB
1410# Check all directory arguments for consistency.
1411for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412 datadir sysconfdir sharedstatedir localstatedir includedir \
1413 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414 libdir localedir mandir
bf9f3bac 1415do
8934764e
BB
1416 eval ac_val=\$$ac_var
1417 # Remove trailing slashes.
bf9f3bac 1418 case $ac_val in
8934764e
BB
1419 */ )
1420 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421 eval $ac_var=\$ac_val;;
bf9f3bac 1422 esac
8934764e
BB
1423 # Be sure to have absolute directory names.
1424 case $ac_val in
1425 [\\/$]* | ?:[\\/]* ) continue;;
1426 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1427 esac
1428 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1429 { (exit 1); exit 1; }; }
bf9f3bac 1430done
1431
1432# There might be people who depend on the old broken behavior: `$host'
1433# used to hold the argument of --host etc.
1434# FIXME: To remove some day.
1435build=$build_alias
1436host=$host_alias
1437target=$target_alias
1438
1439# FIXME: To remove some day.
1440if test "x$host_alias" != x; then
1441 if test "x$build_alias" = x; then
1442 cross_compiling=maybe
8934764e 1443 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bf9f3bac 1444 If a cross compiler is detected then cross compile mode will be used." >&2
1445 elif test "x$build_alias" != "x$host_alias"; then
1446 cross_compiling=yes
1447 fi
1448fi
1449
1450ac_tool_prefix=
1451test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452
1453test "$silent" = yes && exec 6>/dev/null
1454
1455
8934764e
BB
1456ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457ac_ls_di=`ls -di .` &&
1458ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1460 { (exit 1); exit 1; }; }
1461test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1463 { (exit 1); exit 1; }; }
1464
1465
bf9f3bac 1466# Find the source files, if location was not specified.
1467if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
8934764e
BB
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475$as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 s//\1/
1478 q
1479 }
1480 /^X\(\/\/\)[^/].*/{
1481 s//\1/
1482 q
1483 }
1484 /^X\(\/\/\)$/{
1485 s//\1/
1486 q
1487 }
1488 /^X\(\/\).*/{
1489 s//\1/
1490 q
1491 }
1492 s/.*/./; q'`
bf9f3bac 1493 srcdir=$ac_confdir
8934764e 1494 if test ! -r "$srcdir/$ac_unique_file"; then
bf9f3bac 1495 srcdir=..
1496 fi
1497else
1498 ac_srcdir_defaulted=no
1499fi
8934764e
BB
1500if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bf9f3bac 1503 { (exit 1); exit 1; }; }
bf9f3bac 1504fi
8934764e
BB
1505ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506ac_abs_confdir=`(
1507 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
bf9f3bac 1508 { (exit 1); exit 1; }; }
8934764e
BB
1509 pwd)`
1510# When building in place, set srcdir=.
1511if test "$ac_abs_confdir" = "$ac_pwd"; then
1512 srcdir=.
1513fi
1514# Remove unnecessary trailing slashes from srcdir.
1515# Double slashes in file names in object file debugging info
1516# mess up M-x gdb in Emacs.
1517case $srcdir in
1518*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519esac
1520for ac_var in $ac_precious_vars; do
1521 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_env_${ac_var}_value=\$${ac_var}
1523 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1525done
bf9f3bac 1526
1527#
1528# Report the --help message.
1529#
1530if test "$ac_init_help" = "long"; then
1531 # Omit some internal or obsolete options to make the list less imposing.
1532 # This message is too long to be a string in the A/UX 3.1 sh.
1533 cat <<_ACEOF
1534\`configure' configures this package to adapt to many kinds of systems.
1535
1536Usage: $0 [OPTION]... [VAR=VALUE]...
1537
1538To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539VAR=VALUE. See below for descriptions of some of the useful variables.
1540
1541Defaults for the options are specified in brackets.
1542
1543Configuration:
1544 -h, --help display this help and exit
1545 --help=short display options specific to this package
1546 --help=recursive display the short help of all the included packages
1547 -V, --version display version information and exit
1548 -q, --quiet, --silent do not print \`checking...' messages
1549 --cache-file=FILE cache test results in FILE [disabled]
1550 -C, --config-cache alias for \`--cache-file=config.cache'
1551 -n, --no-create do not create output files
1552 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1553
bf9f3bac 1554Installation directories:
1555 --prefix=PREFIX install architecture-independent files in PREFIX
8934764e 1556 [$ac_default_prefix]
bf9f3bac 1557 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8934764e 1558 [PREFIX]
bf9f3bac 1559
1560By default, \`make install' will install all the files in
1561\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1562an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563for instance \`--prefix=\$HOME'.
1564
1565For better control, use the options below.
1566
1567Fine tuning of the installation directories:
8934764e
BB
1568 --bindir=DIR user executables [EPREFIX/bin]
1569 --sbindir=DIR system admin executables [EPREFIX/sbin]
1570 --libexecdir=DIR program executables [EPREFIX/libexec]
1571 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1572 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1573 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1574 --libdir=DIR object code libraries [EPREFIX/lib]
1575 --includedir=DIR C header files [PREFIX/include]
1576 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1577 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1578 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1579 --infodir=DIR info documentation [DATAROOTDIR/info]
1580 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1581 --mandir=DIR man documentation [DATAROOTDIR/man]
1582 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1583 --htmldir=DIR html documentation [DOCDIR]
1584 --dvidir=DIR dvi documentation [DOCDIR]
1585 --pdfdir=DIR pdf documentation [DOCDIR]
1586 --psdir=DIR ps documentation [DOCDIR]
bf9f3bac 1587_ACEOF
1588
1589 cat <<\_ACEOF
1590
1591Program names:
1592 --program-prefix=PREFIX prepend PREFIX to installed program names
1593 --program-suffix=SUFFIX append SUFFIX to installed program names
1594 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1595
1596System types:
1597 --build=BUILD configure for building on BUILD [guessed]
1598 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1599 --target=TARGET configure for building compilers for TARGET [HOST]
1600_ACEOF
1601fi
1602
1603if test -n "$ac_init_help"; then
1604
1605 cat <<\_ACEOF
1606
1607Optional Features:
8934764e 1608 --disable-option-checking ignore unrecognized --enable/--with options
bf9f3bac 1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --enable-maintainer-mode enable make rules and dependencies not useful
1612 (and sometimes confusing) to the casual installer
8934764e
BB
1613 --enable-silent-rules less verbose build output (undo: `make V=1')
1614 --disable-silent-rules verbose build output (undo: `make V=0')
bf9f3bac 1615 --disable-dependency-tracking speeds up one-time build
1616 --enable-dependency-tracking do not reject slow dependency extractors
8934764e
BB
1617 --enable-shared[=PKGS] build shared libraries [default=yes]
1618 --enable-static[=PKGS] build static libraries [default=yes]
bf9f3bac 1619 --enable-fast-install[=PKGS]
1620 optimize for fast installation [default=yes]
1621 --disable-libtool-lock avoid locking (might break parallel builds)
055ffd98 1622 --enable-debug Enable generic debug support [default=no]
4b2220f0 1623 --enable-debug-log Enable basic debug logging [default=yes]
055ffd98
BB
1624 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1625 --enable-debug-kmem-tracking
1626 Enable detailed kmem tracking [default=no]
5e9b5d83 1627 --enable-atomic-spinlocks
d04c8a56 1628 Atomic types use spinlocks [default=check]
bf9f3bac 1629
1630Optional Packages:
1631 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1632 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bf9f3bac 1633 --with-pic try to use only PIC/non-PIC objects [default=use
1634 both]
8934764e 1635 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
c1541dfe 1636 --with-config=CONFIG Config file 'kernel|user|all|srpm'
bf9f3bac 1637 --with-linux=PATH Path to kernel source
1638 --with-linux-obj=PATH Path to kernel build objects
1639
1640Some influential environment variables:
1641 CC C compiler command
1642 CFLAGS C compiler flags
1643 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1644 nonstandard directory <lib dir>
8934764e
BB
1645 LIBS libraries to pass to the linker, e.g. -l<library>
1646 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1647 you have headers in a nonstandard directory <include dir>
bf9f3bac 1648 CPP C preprocessor
bf9f3bac 1649
1650Use these variables to override the choices made by `configure' or to help
1651it to find libraries and programs with nonstandard names/locations.
1652
1653_ACEOF
8934764e 1654ac_status=$?
bf9f3bac 1655fi
1656
1657if test "$ac_init_help" = "recursive"; then
1658 # If there are subdirs, report their specific --help.
bf9f3bac 1659 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8934764e
BB
1660 test -d "$ac_dir" ||
1661 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 continue
bf9f3bac 1663 ac_builddir=.
1664
8934764e
BB
1665case "$ac_dir" in
1666.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1667*)
1668 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1669 # A ".." for each directory in $ac_dir_suffix.
1670 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1671 case $ac_top_builddir_sub in
1672 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1674 esac ;;
1675esac
1676ac_abs_top_builddir=$ac_pwd
1677ac_abs_builddir=$ac_pwd$ac_dir_suffix
1678# for backward compatibility:
1679ac_top_builddir=$ac_top_build_prefix
bf9f3bac 1680
1681case $srcdir in
8934764e 1682 .) # We are building in place.
bf9f3bac 1683 ac_srcdir=.
8934764e
BB
1684 ac_top_srcdir=$ac_top_builddir_sub
1685 ac_abs_top_srcdir=$ac_pwd ;;
1686 [\\/]* | ?:[\\/]* ) # Absolute name.
bf9f3bac 1687 ac_srcdir=$srcdir$ac_dir_suffix;
8934764e
BB
1688 ac_top_srcdir=$srcdir
1689 ac_abs_top_srcdir=$srcdir ;;
1690 *) # Relative name.
1691 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1692 ac_top_srcdir=$ac_top_build_prefix$srcdir
1693 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bf9f3bac 1694esac
8934764e
BB
1695ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1696
1697 cd "$ac_dir" || { ac_status=$?; continue; }
1698 # Check for guested configure.
1699 if test -f "$ac_srcdir/configure.gnu"; then
1700 echo &&
1701 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1702 elif test -f "$ac_srcdir/configure"; then
1703 echo &&
1704 $SHELL "$ac_srcdir/configure" --help=recursive
bf9f3bac 1705 else
8934764e
BB
1706 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1707 fi || ac_status=$?
1708 cd "$ac_pwd" || { ac_status=$?; break; }
bf9f3bac 1709 done
1710fi
1711
8934764e 1712test -n "$ac_init_help" && exit $ac_status
bf9f3bac 1713if $ac_init_version; then
1714 cat <<\_ACEOF
8934764e
BB
1715configure
1716generated by GNU Autoconf 2.63
bf9f3bac 1717
8934764e
BB
1718Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17192002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
bf9f3bac 1720This configure script is free software; the Free Software Foundation
1721gives unlimited permission to copy, distribute and modify it.
1722_ACEOF
8934764e 1723 exit
bf9f3bac 1724fi
8934764e 1725cat >config.log <<_ACEOF
bf9f3bac 1726This file contains any messages produced by compilers while
1727running configure, to aid debugging if configure makes a mistake.
1728
1729It was created by $as_me, which was
8934764e 1730generated by GNU Autoconf 2.63. Invocation command line was
bf9f3bac 1731
1732 $ $0 $@
1733
1734_ACEOF
8934764e 1735exec 5>>config.log
bf9f3bac 1736{
1737cat <<_ASUNAME
1738## --------- ##
1739## Platform. ##
1740## --------- ##
1741
1742hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1743uname -m = `(uname -m) 2>/dev/null || echo unknown`
1744uname -r = `(uname -r) 2>/dev/null || echo unknown`
1745uname -s = `(uname -s) 2>/dev/null || echo unknown`
1746uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747
1748/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1749/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1750
1751/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1752/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1753/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
8934764e 1754/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
bf9f3bac 1755/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1756/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1757/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1758
1759_ASUNAME
1760
1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762for as_dir in $PATH
1763do
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
8934764e 1766 $as_echo "PATH: $as_dir"
bf9f3bac 1767done
8934764e 1768IFS=$as_save_IFS
bf9f3bac 1769
1770} >&5
1771
1772cat >&5 <<_ACEOF
1773
1774
1775## ----------- ##
1776## Core tests. ##
1777## ----------- ##
1778
1779_ACEOF
1780
1781
1782# Keep a trace of the command line.
1783# Strip out --no-create and --no-recursion so they do not pile up.
1784# Strip out --silent because we don't want to record it for future runs.
1785# Also quote any args containing shell meta-characters.
1786# Make two passes to allow for proper duplicate-argument suppression.
1787ac_configure_args=
1788ac_configure_args0=
1789ac_configure_args1=
bf9f3bac 1790ac_must_keep_next=false
1791for ac_pass in 1 2
1792do
1793 for ac_arg
1794 do
1795 case $ac_arg in
1796 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1797 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1798 | -silent | --silent | --silen | --sile | --sil)
1799 continue ;;
8934764e
BB
1800 *\'*)
1801 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 1802 esac
1803 case $ac_pass in
1804 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1805 2)
1806 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1807 if test $ac_must_keep_next = true; then
1808 ac_must_keep_next=false # Got value, back to normal.
1809 else
1810 case $ac_arg in
1811 *=* | --config-cache | -C | -disable-* | --disable-* \
1812 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1813 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1814 | -with-* | --with-* | -without-* | --without-* | --x)
1815 case "$ac_configure_args0 " in
1816 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1817 esac
1818 ;;
1819 -* ) ac_must_keep_next=true ;;
1820 esac
1821 fi
8934764e 1822 ac_configure_args="$ac_configure_args '$ac_arg'"
bf9f3bac 1823 ;;
1824 esac
1825 done
1826done
1827$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1828$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1829
1830# When interrupted or exit'd, cleanup temporary files, and complete
1831# config.log. We remove comments because anyway the quotes in there
1832# would cause problems or look ugly.
8934764e
BB
1833# WARNING: Use '\'' to represent an apostrophe within the trap.
1834# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bf9f3bac 1835trap 'exit_status=$?
1836 # Save into config.log some information that might help in debugging.
1837 {
1838 echo
1839
1840 cat <<\_ASBOX
1841## ---------------- ##
1842## Cache variables. ##
1843## ---------------- ##
1844_ASBOX
1845 echo
1846 # The following way of writing the cache mishandles newlines in values,
8934764e
BB
1847(
1848 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1849 eval ac_val=\$$ac_var
1850 case $ac_val in #(
1851 *${as_nl}*)
1852 case $ac_var in #(
1853 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1854$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1855 esac
1856 case $ac_var in #(
1857 _ | IFS | as_nl) ;; #(
1858 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1859 *) $as_unset $ac_var ;;
1860 esac ;;
1861 esac
1862 done
bf9f3bac 1863 (set) 2>&1 |
8934764e
BB
1864 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1865 *${as_nl}ac_space=\ *)
bf9f3bac 1866 sed -n \
8934764e
BB
1867 "s/'\''/'\''\\\\'\'''\''/g;
1868 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1869 ;; #(
bf9f3bac 1870 *)
8934764e 1871 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bf9f3bac 1872 ;;
8934764e
BB
1873 esac |
1874 sort
1875)
bf9f3bac 1876 echo
1877
1878 cat <<\_ASBOX
1879## ----------------- ##
1880## Output variables. ##
1881## ----------------- ##
1882_ASBOX
1883 echo
1884 for ac_var in $ac_subst_vars
1885 do
8934764e
BB
1886 eval ac_val=\$$ac_var
1887 case $ac_val in
1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1889 esac
1890 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1891 done | sort
1892 echo
1893
1894 if test -n "$ac_subst_files"; then
1895 cat <<\_ASBOX
8934764e
BB
1896## ------------------- ##
1897## File substitutions. ##
1898## ------------------- ##
bf9f3bac 1899_ASBOX
1900 echo
1901 for ac_var in $ac_subst_files
1902 do
8934764e
BB
1903 eval ac_val=\$$ac_var
1904 case $ac_val in
1905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906 esac
1907 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1908 done | sort
1909 echo
1910 fi
1911
1912 if test -s confdefs.h; then
1913 cat <<\_ASBOX
1914## ----------- ##
1915## confdefs.h. ##
1916## ----------- ##
1917_ASBOX
1918 echo
8934764e 1919 cat confdefs.h
bf9f3bac 1920 echo
1921 fi
1922 test "$ac_signal" != 0 &&
8934764e
BB
1923 $as_echo "$as_me: caught signal $ac_signal"
1924 $as_echo "$as_me: exit $exit_status"
bf9f3bac 1925 } >&5
8934764e
BB
1926 rm -f core *.core core.conftest.* &&
1927 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bf9f3bac 1928 exit $exit_status
8934764e 1929' 0
bf9f3bac 1930for ac_signal in 1 2 13 15; do
1931 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1932done
1933ac_signal=0
1934
1935# confdefs.h avoids OS command line length limits that DEFS can exceed.
8934764e 1936rm -f -r conftest* confdefs.h
bf9f3bac 1937
1938# Predefined preprocessor variables.
1939
1940cat >>confdefs.h <<_ACEOF
1941#define PACKAGE_NAME "$PACKAGE_NAME"
1942_ACEOF
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1947_ACEOF
1948
1949
1950cat >>confdefs.h <<_ACEOF
1951#define PACKAGE_VERSION "$PACKAGE_VERSION"
1952_ACEOF
1953
1954
1955cat >>confdefs.h <<_ACEOF
1956#define PACKAGE_STRING "$PACKAGE_STRING"
1957_ACEOF
1958
1959
1960cat >>confdefs.h <<_ACEOF
1961#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1962_ACEOF
1963
1964
1965# Let the site file select an alternate cache file if it wants to.
8934764e
BB
1966# Prefer an explicitly selected file to automatically selected ones.
1967ac_site_file1=NONE
1968ac_site_file2=NONE
1969if test -n "$CONFIG_SITE"; then
1970 ac_site_file1=$CONFIG_SITE
1971elif test "x$prefix" != xNONE; then
1972 ac_site_file1=$prefix/share/config.site
1973 ac_site_file2=$prefix/etc/config.site
1974else
1975 ac_site_file1=$ac_default_prefix/share/config.site
1976 ac_site_file2=$ac_default_prefix/etc/config.site
1977fi
1978for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1979do
1980 test "x$ac_site_file" = xNONE && continue
bf9f3bac 1981 if test -r "$ac_site_file"; then
8934764e
BB
1982 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1983$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bf9f3bac 1984 sed 's/^/| /' "$ac_site_file" >&5
1985 . "$ac_site_file"
1986 fi
1987done
1988
1989if test -r "$cache_file"; then
1990 # Some versions of bash will fail to source /dev/null (special
1991 # files actually), so we avoid doing that.
1992 if test -f "$cache_file"; then
8934764e
BB
1993 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1994$as_echo "$as_me: loading cache $cache_file" >&6;}
bf9f3bac 1995 case $cache_file in
8934764e
BB
1996 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1997 *) . "./$cache_file";;
bf9f3bac 1998 esac
1999 fi
2000else
8934764e
BB
2001 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2002$as_echo "$as_me: creating cache $cache_file" >&6;}
bf9f3bac 2003 >$cache_file
2004fi
2005
2006# Check that the precious variables saved in the cache have kept the same
2007# value.
2008ac_cache_corrupted=false
8934764e 2009for ac_var in $ac_precious_vars; do
bf9f3bac 2010 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2011 eval ac_new_set=\$ac_env_${ac_var}_set
8934764e
BB
2012 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2013 eval ac_new_val=\$ac_env_${ac_var}_value
bf9f3bac 2014 case $ac_old_set,$ac_new_set in
2015 set,)
8934764e
BB
2016 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2017$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bf9f3bac 2018 ac_cache_corrupted=: ;;
2019 ,set)
8934764e
BB
2020 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2021$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bf9f3bac 2022 ac_cache_corrupted=: ;;
2023 ,);;
2024 *)
2025 if test "x$ac_old_val" != "x$ac_new_val"; then
8934764e
BB
2026 # differences in whitespace do not lead to failure.
2027 ac_old_val_w=`echo x $ac_old_val`
2028 ac_new_val_w=`echo x $ac_new_val`
2029 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2030 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2031$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2032 ac_cache_corrupted=:
2033 else
2034 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2035$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2036 eval $ac_var=\$ac_old_val
2037 fi
2038 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2039$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2040 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2041$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bf9f3bac 2042 fi;;
2043 esac
2044 # Pass precious variables to config.status.
2045 if test "$ac_new_set" = set; then
2046 case $ac_new_val in
8934764e 2047 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 2048 *) ac_arg=$ac_var=$ac_new_val ;;
2049 esac
2050 case " $ac_configure_args " in
2051 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2052 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2053 esac
2054 fi
2055done
2056if $ac_cache_corrupted; then
8934764e
BB
2057 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2059 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2060$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2061 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2062$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
bf9f3bac 2063 { (exit 1); exit 1; }; }
2064fi
2065
bf9f3bac 2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
8934764e
BB
2082ac_ext=c
2083ac_cpp='$CPP $CPPFLAGS'
2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 2087
2088
0c617c9a
BB
2089ac_ext=c
2090ac_cpp='$CPP $CPPFLAGS'
2091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094
2095
8934764e
BB
2096 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2097$as_echo_n "checking metadata... " >&6; }
dd529a30 2098
2099 META="$srcdir/META"
2100 _spl_ac_meta_got_file=no
2101 if test -f "$META"; then
2102 _spl_ac_meta_got_file=yes
2103
abc3ca14 2104 SPL_META_NAME=`perl -n\
dd529a30 2105 -e "BEGIN { \\$key=shift @ARGV; }"\
2106 -e "next unless s/^\s*\\$key[:=]//i;"\
2107 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2108 -e "s/^\s+//;"\
2109 -e "s/\s+$//;"\
2110 -e "s/^(['\"])(.*)\1/\\$2/;"\
2111 -e "\\$val=\\$_;"\
2112 -e "END { print \\$val if defined \\$val; }"\
2113 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 2114 if test -n "$SPL_META_NAME"; then
dd529a30 2115
2116cat >>confdefs.h <<_ACEOF
abc3ca14 2117#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 2118_ACEOF
2119
2120
2121 fi
2122
abc3ca14 2123 SPL_META_VERSION=`perl -n\
dd529a30 2124 -e "BEGIN { \\$key=shift @ARGV; }"\
2125 -e "next unless s/^\s*\\$key[:=]//i;"\
2126 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2127 -e "s/^\s+//;"\
2128 -e "s/\s+$//;"\
2129 -e "s/^(['\"])(.*)\1/\\$2/;"\
2130 -e "\\$val=\\$_;"\
2131 -e "END { print \\$val if defined \\$val; }"\
2132 'VERSION' $META`;
abc3ca14 2133 if test -n "$SPL_META_VERSION"; then
dd529a30 2134
2135cat >>confdefs.h <<_ACEOF
abc3ca14 2136#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 2137_ACEOF
2138
2139
2140 fi
2141
abc3ca14 2142 SPL_META_RELEASE=`perl -n\
dd529a30 2143 -e "BEGIN { \\$key=shift @ARGV; }"\
2144 -e "next unless s/^\s*\\$key[:=]//i;"\
2145 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2146 -e "s/^\s+//;"\
2147 -e "s/\s+$//;"\
2148 -e "s/^(['\"])(.*)\1/\\$2/;"\
2149 -e "\\$val=\\$_;"\
2150 -e "END { print \\$val if defined \\$val; }"\
2151 'RELEASE' $META`;
abc3ca14 2152 if test -n "$SPL_META_RELEASE"; then
dd529a30 2153
2154cat >>confdefs.h <<_ACEOF
abc3ca14 2155#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 2156_ACEOF
2157
2158
2159 fi
2160
abc3ca14 2161 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 2162 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 2163 test -n "$SPL_META_RELEASE" &&
72e7de60 2164 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 2165
2166cat >>confdefs.h <<_ACEOF
72e7de60 2167#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 2168_ACEOF
2169
2170
2171 fi
2172
abc3ca14 2173 SPL_META_DATA=`perl -n\
dd529a30 2174 -e "BEGIN { \\$key=shift @ARGV; }"\
2175 -e "next unless s/^\s*\\$key[:=]//i;"\
2176 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2177 -e "s/^\s+//;"\
2178 -e "s/\s+$//;"\
2179 -e "s/^(['\"])(.*)\1/\\$2/;"\
2180 -e "\\$val=\\$_;"\
2181 -e "END { print \\$val if defined \\$val; }"\
2182 'DATE' $META`;
abc3ca14 2183 if test -n "$SPL_META_DATA"; then
dd529a30 2184
2185cat >>confdefs.h <<_ACEOF
abc3ca14 2186#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 2187_ACEOF
2188
2189
2190 fi
2191
abc3ca14 2192 SPL_META_AUTHOR=`perl -n\
dd529a30 2193 -e "BEGIN { \\$key=shift @ARGV; }"\
2194 -e "next unless s/^\s*\\$key[:=]//i;"\
2195 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2196 -e "s/^\s+//;"\
2197 -e "s/\s+$//;"\
2198 -e "s/^(['\"])(.*)\1/\\$2/;"\
2199 -e "\\$val=\\$_;"\
2200 -e "END { print \\$val if defined \\$val; }"\
2201 'AUTHOR' $META`;
abc3ca14 2202 if test -n "$SPL_META_AUTHOR"; then
dd529a30 2203
2204cat >>confdefs.h <<_ACEOF
abc3ca14 2205#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 2206_ACEOF
2207
2208
2209 fi
2210
2211
abc3ca14 2212 SPL_META_LT_CURRENT=`perl -n\
dd529a30 2213 -e "BEGIN { \\$key=shift @ARGV; }"\
2214 -e "next unless s/^\s*\\$key[:=]//i;"\
2215 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2216 -e "s/^\s+//;"\
2217 -e "s/\s+$//;"\
2218 -e "s/^(['\"])(.*)\1/\\$2/;"\
2219 -e "\\$val=\\$_;"\
2220 -e "END { print \\$val if defined \\$val; }"\
2221 'LT_CURRENT' $META`;
abc3ca14 2222 SPL_META_LT_REVISION=`perl -n\
dd529a30 2223 -e "BEGIN { \\$key=shift @ARGV; }"\
2224 -e "next unless s/^\s*\\$key[:=]//i;"\
2225 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2226 -e "s/^\s+//;"\
2227 -e "s/\s+$//;"\
2228 -e "s/^(['\"])(.*)\1/\\$2/;"\
2229 -e "\\$val=\\$_;"\
2230 -e "END { print \\$val if defined \\$val; }"\
2231 'LT_REVISION' $META`;
abc3ca14 2232 SPL_META_LT_AGE=`perl -n\
dd529a30 2233 -e "BEGIN { \\$key=shift @ARGV; }"\
2234 -e "next unless s/^\s*\\$key[:=]//i;"\
2235 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2236 -e "s/^\s+//;"\
2237 -e "s/\s+$//;"\
2238 -e "s/^(['\"])(.*)\1/\\$2/;"\
2239 -e "\\$val=\\$_;"\
2240 -e "END { print \\$val if defined \\$val; }"\
2241 'LT_AGE' $META`;
abc3ca14
BB
2242 if test -n "$SPL_META_LT_CURRENT" \
2243 -o -n "$SPL_META_LT_REVISION" \
2244 -o -n "$SPL_META_LT_AGE"; then
2245 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2246 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2247 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 2248
2249cat >>confdefs.h <<_ACEOF
abc3ca14 2250#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 2251_ACEOF
2252
2253
2254cat >>confdefs.h <<_ACEOF
abc3ca14 2255#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 2256_ACEOF
2257
2258
2259cat >>confdefs.h <<_ACEOF
abc3ca14 2260#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 2261_ACEOF
2262
2263
2264
2265
2266 fi
2267 fi
2268
8934764e
BB
2269 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2270$as_echo "$_spl_ac_meta_got_file" >&6; }
dd529a30 2271
2272
bf9f3bac 2273ac_aux_dir=
8934764e
BB
2274for ac_dir in config "$srcdir"/config; do
2275 if test -f "$ac_dir/install-sh"; then
bf9f3bac 2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install-sh -c"
2278 break
8934764e 2279 elif test -f "$ac_dir/install.sh"; then
bf9f3bac 2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install.sh -c"
2282 break
8934764e 2283 elif test -f "$ac_dir/shtool"; then
bf9f3bac 2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/shtool install -c"
2286 break
2287 fi
2288done
2289if test -z "$ac_aux_dir"; then
8934764e
BB
2290 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2291$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
bf9f3bac 2292 { (exit 1); exit 1; }; }
2293fi
8934764e
BB
2294
2295# These three variables are undocumented and unsupported,
2296# and are intended to be withdrawn in a future Autoconf release.
2297# They can cause serious problems if a builder's source tree is in a directory
2298# whose full name contains unusual characters.
2299ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2302
bf9f3bac 2303
2304# Make sure we can run config.sub.
8934764e
BB
2305$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2306 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2307$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
bf9f3bac 2308 { (exit 1); exit 1; }; }
2309
8934764e
BB
2310{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2311$as_echo_n "checking build system type... " >&6; }
bf9f3bac 2312if test "${ac_cv_build+set}" = set; then
8934764e
BB
2313 $as_echo_n "(cached) " >&6
2314else
2315 ac_build_alias=$build_alias
2316test "x$ac_build_alias" = x &&
2317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2318test "x$ac_build_alias" = x &&
2319 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2320$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
bf9f3bac 2321 { (exit 1); exit 1; }; }
8934764e
BB
2322ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2323 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2324$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
bf9f3bac 2325 { (exit 1); exit 1; }; }
2326
2327fi
8934764e
BB
2328{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2329$as_echo "$ac_cv_build" >&6; }
2330case $ac_cv_build in
2331*-*-*) ;;
2332*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2333$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2334 { (exit 1); exit 1; }; };;
2335esac
bf9f3bac 2336build=$ac_cv_build
8934764e
BB
2337ac_save_IFS=$IFS; IFS='-'
2338set x $ac_cv_build
2339shift
2340build_cpu=$1
2341build_vendor=$2
2342shift; shift
2343# Remember, the first character of IFS is used to create $*,
2344# except with old shells:
2345build_os=$*
2346IFS=$ac_save_IFS
2347case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2348
2349
2350{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2351$as_echo_n "checking host system type... " >&6; }
bf9f3bac 2352if test "${ac_cv_host+set}" = set; then
8934764e
BB
2353 $as_echo_n "(cached) " >&6
2354else
2355 if test "x$host_alias" = x; then
2356 ac_cv_host=$ac_cv_build
2357else
2358 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2359 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2360$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
bf9f3bac 2361 { (exit 1); exit 1; }; }
8934764e 2362fi
bf9f3bac 2363
2364fi
8934764e
BB
2365{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2366$as_echo "$ac_cv_host" >&6; }
2367case $ac_cv_host in
2368*-*-*) ;;
2369*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2370$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2371 { (exit 1); exit 1; }; };;
2372esac
bf9f3bac 2373host=$ac_cv_host
8934764e
BB
2374ac_save_IFS=$IFS; IFS='-'
2375set x $ac_cv_host
2376shift
2377host_cpu=$1
2378host_vendor=$2
2379shift; shift
2380# Remember, the first character of IFS is used to create $*,
2381# except with old shells:
2382host_os=$*
2383IFS=$ac_save_IFS
2384case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2385
2386
2387{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2388$as_echo_n "checking target system type... " >&6; }
bf9f3bac 2389if test "${ac_cv_target+set}" = set; then
8934764e
BB
2390 $as_echo_n "(cached) " >&6
2391else
2392 if test "x$target_alias" = x; then
2393 ac_cv_target=$ac_cv_host
2394else
2395 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2396 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2397$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
bf9f3bac 2398 { (exit 1); exit 1; }; }
8934764e 2399fi
bf9f3bac 2400
2401fi
8934764e
BB
2402{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2403$as_echo "$ac_cv_target" >&6; }
2404case $ac_cv_target in
2405*-*-*) ;;
2406*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2407$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2408 { (exit 1); exit 1; }; };;
2409esac
bf9f3bac 2410target=$ac_cv_target
8934764e
BB
2411ac_save_IFS=$IFS; IFS='-'
2412set x $ac_cv_target
2413shift
2414target_cpu=$1
2415target_vendor=$2
2416shift; shift
2417# Remember, the first character of IFS is used to create $*,
2418# except with old shells:
2419target_os=$*
2420IFS=$ac_save_IFS
2421case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
bf9f3bac 2422
2423
2424# The aliases save the names the user supplied, while $host etc.
2425# will get canonicalized.
2426test -n "$target_alias" &&
2427 test "$program_prefix$program_suffix$program_transform_name" = \
2428 NONENONEs,x,x, &&
2429 program_prefix=${target_alias}-
8934764e
BB
2430
2431{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2432$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2433 # Check whether --enable-maintainer-mode was given.
16b719f0 2434if test "${enable_maintainer_mode+set}" = set; then
8934764e 2435 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16b719f0
BB
2436else
2437 USE_MAINTAINER_MODE=no
8934764e 2438fi
16b719f0 2439
8934764e
BB
2440 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2441$as_echo "$USE_MAINTAINER_MODE" >&6; }
2442 if test $USE_MAINTAINER_MODE = yes; then
16b719f0
BB
2443 MAINTAINER_MODE_TRUE=
2444 MAINTAINER_MODE_FALSE='#'
2445else
2446 MAINTAINER_MODE_TRUE='#'
2447 MAINTAINER_MODE_FALSE=
2448fi
2449
2450 MAINT=$MAINTAINER_MODE_TRUE
2451
2452
8934764e
BB
2453# Check whether --enable-silent-rules was given.
2454if test "${enable_silent_rules+set}" = set; then
2455 enableval=$enable_silent_rules;
2456fi
2457
2458case $enable_silent_rules in
2459yes) AM_DEFAULT_VERBOSITY=0;;
2460no) AM_DEFAULT_VERBOSITY=1;;
2461*) AM_DEFAULT_VERBOSITY=1;;
2462esac
2463AM_BACKSLASH='\'
2464
2465am__api_version='1.11'
2466
bf9f3bac 2467# Find a good install program. We prefer a C program (faster),
2468# so one script is as good as another. But avoid the broken or
2469# incompatible versions:
2470# SysV /etc/install, /usr/sbin/install
2471# SunOS /usr/etc/install
2472# IRIX /sbin/install
2473# AIX /bin/install
2474# AmigaOS /C/install, which installs bootblocks on floppy discs
2475# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478# OS/2's system install, which has a completely different semantic
2479# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2480# Reject install programs that cannot install multiple files.
2481{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2482$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2483if test -z "$INSTALL"; then
2484if test "${ac_cv_path_install+set}" = set; then
8934764e 2485 $as_echo_n "(cached) " >&6
bf9f3bac 2486else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 # Account for people who put trailing slashes in PATH elements.
2493case $as_dir/ in
2494 ./ | .// | /cC/* | \
2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2497 /usr/ucb/* ) ;;
2498 *)
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2501 # by default.
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2505 if test $ac_prog = install &&
2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # AIX install. It has an incompatible calling convention.
2508 :
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2512 :
2513 else
8934764e
BB
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2517 mkdir conftest.dir
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2522 then
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524 break 3
2525 fi
bf9f3bac 2526 fi
2527 fi
2528 done
2529 done
2530 ;;
2531esac
8934764e 2532
bf9f3bac 2533done
8934764e 2534IFS=$as_save_IFS
bf9f3bac 2535
8934764e 2536rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 2537
2538fi
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2541 else
8934764e
BB
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
bf9f3bac 2544 # break other packages using the cache if that directory is
8934764e 2545 # removed, or if the value is a relative name.
bf9f3bac 2546 INSTALL=$ac_install_sh
2547 fi
2548fi
8934764e
BB
2549{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2550$as_echo "$INSTALL" >&6; }
bf9f3bac 2551
2552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553# It thinks the first close brace ends the variable substitution.
2554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
2556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557
2558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
8934764e
BB
2560{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2561$as_echo_n "checking whether build environment is sane... " >&6; }
bf9f3bac 2562# Just in case
2563sleep 1
2564echo timestamp > conftest.file
8934764e
BB
2565# Reject unsafe characters in $srcdir or the absolute working directory
2566# name. Accept space and tab only in the latter.
2567am_lf='
2568'
2569case `pwd` in
2570 *[\\\"\#\$\&\'\`$am_lf]*)
2571 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2572$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2573 { (exit 1); exit 1; }; };;
2574esac
2575case $srcdir in
2576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2577 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2578$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2579 { (exit 1); exit 1; }; };;
2580esac
2581
bf9f3bac 2582# Do `set' in a subshell so we don't clobber the current shell's
2583# arguments. Must try -L first in case configure is actually a
2584# symlink; some systems play weird games with the mod time of symlinks
2585# (eg FreeBSD returns the mod time of the symlink's containing
2586# directory).
2587if (
8934764e 2588 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
bf9f3bac 2589 if test "$*" = "X"; then
2590 # -L didn't work.
8934764e 2591 set X `ls -t "$srcdir/configure" conftest.file`
bf9f3bac 2592 fi
2593 rm -f conftest.file
2594 if test "$*" != "X $srcdir/configure conftest.file" \
2595 && test "$*" != "X conftest.file $srcdir/configure"; then
2596
2597 # If neither matched, then we have a broken ls. This can happen
2598 # if, for instance, CONFIG_SHELL is bash and it inherits a
2599 # broken ls alias from the environment. This has actually
2600 # happened. Such a system could not be considered "sane".
8934764e 2601 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2602alias in your environment" >&5
8934764e 2603$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2604alias in your environment" >&2;}
2605 { (exit 1); exit 1; }; }
2606 fi
2607
2608 test "$2" = conftest.file
2609 )
2610then
2611 # Ok.
2612 :
2613else
8934764e 2614 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
bf9f3bac 2615Check your system clock" >&5
8934764e 2616$as_echo "$as_me: error: newly created file is older than distributed files!
bf9f3bac 2617Check your system clock" >&2;}
2618 { (exit 1); exit 1; }; }
2619fi
8934764e
BB
2620{ $as_echo "$as_me:$LINENO: result: yes" >&5
2621$as_echo "yes" >&6; }
bf9f3bac 2622test "$program_prefix" != NONE &&
8934764e 2623 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bf9f3bac 2624# Use a double $ so make ignores it.
2625test "$program_suffix" != NONE &&
8934764e
BB
2626 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2627# Double any \ or $.
bf9f3bac 2628# By default was `s,x,x', remove it if useless.
8934764e
BB
2629ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2630program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bf9f3bac 2631
2632# expand $ac_aux_dir to an absolute path
2633am_aux_dir=`cd $ac_aux_dir && pwd`
2634
8934764e
BB
2635if test x"${MISSING+set}" != xset; then
2636 case $am_aux_dir in
2637 *\ * | *\ *)
2638 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2639 *)
2640 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2641 esac
2642fi
bf9f3bac 2643# Use eval to expand $SHELL
2644if eval "$MISSING --run true"; then
2645 am_missing_run="$MISSING --run "
2646else
2647 am_missing_run=
8934764e
BB
2648 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2649$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2650fi
2651
2652if test x"${install_sh}" != xset; then
2653 case $am_aux_dir in
2654 *\ * | *\ *)
2655 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2656 *)
2657 install_sh="\${SHELL} $am_aux_dir/install-sh"
2658 esac
2659fi
2660
2661# Installed binaries are usually stripped using `strip' when the user
2662# run `make install-strip'. However `strip' might not be the right
2663# tool to use in cross-compilation environments, therefore Automake
2664# will honor the `STRIP' environment variable to overrule this program.
2665if test "$cross_compiling" != no; then
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2668set dummy ${ac_tool_prefix}strip; ac_word=$2
2669{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if test "${ac_cv_prog_STRIP+set}" = set; then
2672 $as_echo_n "(cached) " >&6
2673else
2674 if test -n "$STRIP"; then
2675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694STRIP=$ac_cv_prog_STRIP
2695if test -n "$STRIP"; then
2696 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2697$as_echo "$STRIP" >&6; }
2698else
2699 { $as_echo "$as_me:$LINENO: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704fi
2705if test -z "$ac_cv_prog_STRIP"; then
2706 ac_ct_STRIP=$STRIP
2707 # Extract the first word of "strip", so it can be a program name with args.
2708set dummy strip; ac_word=$2
2709{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2713else
2714 if test -n "$ac_ct_STRIP"; then
2715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_STRIP="strip"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728done
2729done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2735if test -n "$ac_ct_STRIP"; then
2736 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2737$as_echo "$ac_ct_STRIP" >&6; }
2738else
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743 if test "x$ac_ct_STRIP" = x; then
2744 STRIP=":"
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750ac_tool_warned=yes ;;
2751esac
2752 STRIP=$ac_ct_STRIP
2753 fi
2754else
2755 STRIP="$ac_cv_prog_STRIP"
2756fi
2757
2758fi
2759INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2760
2761{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2762$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2763if test -z "$MKDIR_P"; then
2764 if test "${ac_cv_path_mkdir+set}" = set; then
2765 $as_echo_n "(cached) " >&6
2766else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_prog in mkdir gmkdir; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2775 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2776 'mkdir (GNU coreutils) '* | \
2777 'mkdir (coreutils) '* | \
2778 'mkdir (fileutils) '4.1*)
2779 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2780 break 3;;
2781 esac
2782 done
2783 done
2784done
2785IFS=$as_save_IFS
2786
2787fi
2788
2789 if test "${ac_cv_path_mkdir+set}" = set; then
2790 MKDIR_P="$ac_cv_path_mkdir -p"
bf9f3bac 2791 else
8934764e
BB
2792 # As a last resort, use the slow shell script. Don't cache a
2793 # value for MKDIR_P within a source directory, because that will
2794 # break other packages using the cache if that directory is
2795 # removed, or if the value is a relative name.
2796 test -d ./--version && rmdir ./--version
2797 MKDIR_P="$ac_install_sh -d"
bf9f3bac 2798 fi
2799fi
8934764e
BB
2800{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2801$as_echo "$MKDIR_P" >&6; }
2802
2803mkdir_p="$MKDIR_P"
2804case $mkdir_p in
2805 [\\/$]* | ?:[\\/]*) ;;
2806 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2807esac
bf9f3bac 2808
2809for ac_prog in gawk mawk nawk awk
2810do
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812set dummy $ac_prog; ac_word=$2
8934764e
BB
2813{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 2815if test "${ac_cv_prog_AWK+set}" = set; then
8934764e 2816 $as_echo_n "(cached) " >&6
bf9f3bac 2817else
2818 if test -n "$AWK"; then
2819 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 2828 ac_cv_prog_AWK="$ac_prog"
8934764e 2829 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 2830 break 2
2831 fi
2832done
2833done
8934764e 2834IFS=$as_save_IFS
bf9f3bac 2835
2836fi
2837fi
2838AWK=$ac_cv_prog_AWK
2839if test -n "$AWK"; then
8934764e
BB
2840 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2841$as_echo "$AWK" >&6; }
bf9f3bac 2842else
8934764e
BB
2843 { $as_echo "$as_me:$LINENO: result: no" >&5
2844$as_echo "no" >&6; }
bf9f3bac 2845fi
2846
8934764e 2847
bf9f3bac 2848 test -n "$AWK" && break
2849done
2850
8934764e
BB
2851{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2853set x ${MAKE-make}
2854ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2856 $as_echo_n "(cached) " >&6
bf9f3bac 2857else
2858 cat >conftest.make <<\_ACEOF
8934764e 2859SHELL = /bin/sh
bf9f3bac 2860all:
8934764e 2861 @echo '@@@%%%=$(MAKE)=@@@%%%'
bf9f3bac 2862_ACEOF
2863# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8934764e
BB
2864case `${MAKE-make} -f conftest.make 2>/dev/null` in
2865 *@@@%%%=?*=@@@%%%*)
2866 eval ac_cv_prog_make_${ac_make}_set=yes;;
2867 *)
2868 eval ac_cv_prog_make_${ac_make}_set=no;;
2869esac
bf9f3bac 2870rm -f conftest.make
2871fi
8934764e
BB
2872if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873 { $as_echo "$as_me:$LINENO: result: yes" >&5
2874$as_echo "yes" >&6; }
bf9f3bac 2875 SET_MAKE=
2876else
8934764e
BB
2877 { $as_echo "$as_me:$LINENO: result: no" >&5
2878$as_echo "no" >&6; }
bf9f3bac 2879 SET_MAKE="MAKE=${MAKE-make}"
2880fi
2881
2882rm -rf .tst 2>/dev/null
2883mkdir .tst 2>/dev/null
2884if test -d .tst; then
2885 am__leading_dot=.
2886else
2887 am__leading_dot=_
2888fi
2889rmdir .tst 2>/dev/null
2890
8934764e
BB
2891if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893 # is not polluted with repeated "-I."
2894 am__isrc=' -I$(srcdir)'
2895 # test to see if srcdir already configured
2896 if test -f $srcdir/config.status; then
2897 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2898$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
bf9f3bac 2899 { (exit 1); exit 1; }; }
8934764e 2900 fi
bf9f3bac 2901fi
2902
2903# test whether we have cygpath
2904if test -z "$CYGPATH_W"; then
2905 if (cygpath --version) >/dev/null 2>/dev/null; then
2906 CYGPATH_W='cygpath -w'
2907 else
2908 CYGPATH_W=echo
2909 fi
2910fi
2911
2912
2913# Define the identity of the package.
abc3ca14
BB
2914 PACKAGE=$SPL_META_NAME
2915 VERSION=$SPL_META_VERSION
bf9f3bac 2916
2917
2918cat >>confdefs.h <<_ACEOF
2919#define PACKAGE "$PACKAGE"
2920_ACEOF
2921
2922
2923cat >>confdefs.h <<_ACEOF
2924#define VERSION "$VERSION"
2925_ACEOF
2926
2927# Some tools Automake needs.
2928
2929ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2930
2931
2932AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2933
2934
2935AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2936
2937
2938AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2939
2940
2941MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2942
bf9f3bac 2943# We need awk for the "check" target. The system "awk" is bad on
2944# some platforms.
2945# Always define AMTAR for backward compatibility.
2946
2947AMTAR=${AMTAR-"${am_missing_run}tar"}
2948
2949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2950
2951
2952
2953
2954
8934764e 2955ac_config_headers="$ac_config_headers spl_config.h"
bf9f3bac 2956
0cbaeb11 2957
bf9f3bac 2958# Find a good install program. We prefer a C program (faster),
2959# so one script is as good as another. But avoid the broken or
2960# incompatible versions:
2961# SysV /etc/install, /usr/sbin/install
2962# SunOS /usr/etc/install
2963# IRIX /sbin/install
2964# AIX /bin/install
2965# AmigaOS /C/install, which installs bootblocks on floppy discs
2966# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2967# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2968# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2969# OS/2's system install, which has a completely different semantic
2970# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2971# Reject install programs that cannot install multiple files.
2972{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2973$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2974if test -z "$INSTALL"; then
2975if test "${ac_cv_path_install+set}" = set; then
8934764e 2976 $as_echo_n "(cached) " >&6
bf9f3bac 2977else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 # Account for people who put trailing slashes in PATH elements.
2984case $as_dir/ in
2985 ./ | .// | /cC/* | \
2986 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2987 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2988 /usr/ucb/* ) ;;
2989 *)
2990 # OSF1 and SCO ODT 3.0 have their own names for install.
2991 # Don't use installbsd from OSF since it installs stuff as root
2992 # by default.
2993 for ac_prog in ginstall scoinst install; do
2994 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2995 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2996 if test $ac_prog = install &&
2997 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998 # AIX install. It has an incompatible calling convention.
2999 :
3000 elif test $ac_prog = install &&
3001 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3002 # program-specific install script used by HP pwplus--don't use.
3003 :
3004 else
8934764e
BB
3005 rm -rf conftest.one conftest.two conftest.dir
3006 echo one > conftest.one
3007 echo two > conftest.two
3008 mkdir conftest.dir
3009 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3010 test -s conftest.one && test -s conftest.two &&
3011 test -s conftest.dir/conftest.one &&
3012 test -s conftest.dir/conftest.two
3013 then
3014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3015 break 3
3016 fi
bf9f3bac 3017 fi
3018 fi
3019 done
3020 done
3021 ;;
3022esac
8934764e 3023
bf9f3bac 3024done
8934764e 3025IFS=$as_save_IFS
bf9f3bac 3026
8934764e 3027rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 3028
3029fi
3030 if test "${ac_cv_path_install+set}" = set; then
3031 INSTALL=$ac_cv_path_install
3032 else
8934764e
BB
3033 # As a last resort, use the slow shell script. Don't cache a
3034 # value for INSTALL within a source directory, because that will
bf9f3bac 3035 # break other packages using the cache if that directory is
8934764e 3036 # removed, or if the value is a relative name.
bf9f3bac 3037 INSTALL=$ac_install_sh
3038 fi
3039fi
8934764e
BB
3040{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3041$as_echo "$INSTALL" >&6; }
bf9f3bac 3042
3043# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3044# It thinks the first close brace ends the variable substitution.
3045test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3046
3047test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3048
3049test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3050
3051ac_ext=c
3052ac_cpp='$CPP $CPPFLAGS'
3053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055ac_compiler_gnu=$ac_cv_c_compiler_gnu
3056if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3058set dummy ${ac_tool_prefix}gcc; ac_word=$2
8934764e
BB
3059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3060$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3061if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3062 $as_echo_n "(cached) " >&6
bf9f3bac 3063else
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC="$CC" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3074 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8934764e 3075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3076 break 2
3077 fi
3078done
3079done
8934764e 3080IFS=$as_save_IFS
bf9f3bac 3081
3082fi
3083fi
3084CC=$ac_cv_prog_CC
3085if test -n "$CC"; then
8934764e
BB
3086 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3087$as_echo "$CC" >&6; }
bf9f3bac 3088else
8934764e
BB
3089 { $as_echo "$as_me:$LINENO: result: no" >&5
3090$as_echo "no" >&6; }
bf9f3bac 3091fi
3092
8934764e 3093
bf9f3bac 3094fi
3095if test -z "$ac_cv_prog_CC"; then
3096 ac_ct_CC=$CC
3097 # Extract the first word of "gcc", so it can be a program name with args.
3098set dummy gcc; ac_word=$2
8934764e
BB
3099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3100$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3101if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3102 $as_echo_n "(cached) " >&6
bf9f3bac 3103else
3104 if test -n "$ac_ct_CC"; then
3105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3106else
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3114 ac_cv_prog_ac_ct_CC="gcc"
8934764e 3115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3116 break 2
3117 fi
3118done
3119done
8934764e 3120IFS=$as_save_IFS
bf9f3bac 3121
3122fi
3123fi
3124ac_ct_CC=$ac_cv_prog_ac_ct_CC
3125if test -n "$ac_ct_CC"; then
8934764e
BB
3126 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3127$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3128else
8934764e
BB
3129 { $as_echo "$as_me:$LINENO: result: no" >&5
3130$as_echo "no" >&6; }
bf9f3bac 3131fi
3132
8934764e
BB
3133 if test "x$ac_ct_CC" = x; then
3134 CC=""
3135 else
3136 case $cross_compiling:$ac_tool_warned in
3137yes:)
3138{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140ac_tool_warned=yes ;;
3141esac
3142 CC=$ac_ct_CC
3143 fi
bf9f3bac 3144else
3145 CC="$ac_cv_prog_CC"
3146fi
3147
3148if test -z "$CC"; then
8934764e
BB
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bf9f3bac 3151set dummy ${ac_tool_prefix}cc; ac_word=$2
8934764e
BB
3152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3154if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3155 $as_echo_n "(cached) " >&6
bf9f3bac 3156else
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3167 ac_cv_prog_CC="${ac_tool_prefix}cc"
8934764e 3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3169 break 2
3170 fi
3171done
3172done
8934764e 3173IFS=$as_save_IFS
bf9f3bac 3174
3175fi
3176fi
3177CC=$ac_cv_prog_CC
3178if test -n "$CC"; then
8934764e
BB
3179 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180$as_echo "$CC" >&6; }
bf9f3bac 3181else
8934764e
BB
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183$as_echo "no" >&6; }
bf9f3bac 3184fi
3185
bf9f3bac 3186
8934764e 3187 fi
bf9f3bac 3188fi
3189if test -z "$CC"; then
3190 # Extract the first word of "cc", so it can be a program name with args.
3191set dummy cc; ac_word=$2
8934764e
BB
3192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3194if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3195 $as_echo_n "(cached) " >&6
bf9f3bac 3196else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199else
3200 ac_prog_rejected=no
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3208 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3209 ac_prog_rejected=yes
3210 continue
3211 fi
3212 ac_cv_prog_CC="cc"
8934764e 3213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3214 break 2
3215 fi
3216done
3217done
8934764e 3218IFS=$as_save_IFS
bf9f3bac 3219
3220if test $ac_prog_rejected = yes; then
3221 # We found a bogon in the path, so make sure we never use it.
3222 set dummy $ac_cv_prog_CC
3223 shift
3224 if test $# != 0; then
3225 # We chose a different compiler from the bogus one.
3226 # However, it has the same basename, so the bogon will be chosen
3227 # first if we set CC to just the basename; use the full file name.
3228 shift
3229 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3230 fi
3231fi
3232fi
3233fi
3234CC=$ac_cv_prog_CC
3235if test -n "$CC"; then
8934764e
BB
3236 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3237$as_echo "$CC" >&6; }
bf9f3bac 3238else
8934764e
BB
3239 { $as_echo "$as_me:$LINENO: result: no" >&5
3240$as_echo "no" >&6; }
bf9f3bac 3241fi
3242
8934764e 3243
bf9f3bac 3244fi
3245if test -z "$CC"; then
3246 if test -n "$ac_tool_prefix"; then
8934764e 3247 for ac_prog in cl.exe
bf9f3bac 3248 do
3249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8934764e
BB
3251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3252$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3253if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3254 $as_echo_n "(cached) " >&6
bf9f3bac 3255else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3266 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8934764e 3267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3268 break 2
3269 fi
3270done
3271done
8934764e 3272IFS=$as_save_IFS
bf9f3bac 3273
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
8934764e
BB
3278 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3279$as_echo "$CC" >&6; }
bf9f3bac 3280else
8934764e
BB
3281 { $as_echo "$as_me:$LINENO: result: no" >&5
3282$as_echo "no" >&6; }
bf9f3bac 3283fi
3284
8934764e 3285
bf9f3bac 3286 test -n "$CC" && break
3287 done
3288fi
3289if test -z "$CC"; then
3290 ac_ct_CC=$CC
8934764e 3291 for ac_prog in cl.exe
bf9f3bac 3292do
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294set dummy $ac_prog; ac_word=$2
8934764e
BB
3295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3296$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3298 $as_echo_n "(cached) " >&6
bf9f3bac 3299else
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302else
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304for as_dir in $PATH
3305do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3310 ac_cv_prog_ac_ct_CC="$ac_prog"
8934764e 3311 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3312 break 2
3313 fi
3314done
3315done
8934764e 3316IFS=$as_save_IFS
bf9f3bac 3317
3318fi
3319fi
3320ac_ct_CC=$ac_cv_prog_ac_ct_CC
3321if test -n "$ac_ct_CC"; then
8934764e
BB
3322 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3323$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3324else
8934764e
BB
3325 { $as_echo "$as_me:$LINENO: result: no" >&5
3326$as_echo "no" >&6; }
bf9f3bac 3327fi
3328
8934764e 3329
bf9f3bac 3330 test -n "$ac_ct_CC" && break
3331done
3332
8934764e
BB
3333 if test "x$ac_ct_CC" = x; then
3334 CC=""
3335 else
3336 case $cross_compiling:$ac_tool_warned in
3337yes:)
3338{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3340ac_tool_warned=yes ;;
3341esac
3342 CC=$ac_ct_CC
3343 fi
bf9f3bac 3344fi
3345
3346fi
3347
3348
8934764e
BB
3349test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bf9f3bac 3352See \`config.log' for more details." >&5
8934764e 3353$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
bf9f3bac 3354See \`config.log' for more details." >&2;}
8934764e 3355 { (exit 1); exit 1; }; }; }
bf9f3bac 3356
3357# Provide some information about the compiler.
8934764e
BB
3358$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3359set X $ac_compile
3360ac_compiler=$2
3361{ (ac_try="$ac_compiler --version >&5"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3367$as_echo "$ac_try_echo") >&5
3368 (eval "$ac_compiler --version >&5") 2>&5
bf9f3bac 3369 ac_status=$?
8934764e 3370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3371 (exit $ac_status); }
8934764e
BB
3372{ (ac_try="$ac_compiler -v >&5"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378$as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compiler -v >&5") 2>&5
bf9f3bac 3380 ac_status=$?
8934764e 3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3382 (exit $ac_status); }
8934764e
BB
3383{ (ac_try="$ac_compiler -V >&5"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389$as_echo "$ac_try_echo") >&5
3390 (eval "$ac_compiler -V >&5") 2>&5
bf9f3bac 3391 ac_status=$?
8934764e 3392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3393 (exit $ac_status); }
3394
3395cat >conftest.$ac_ext <<_ACEOF
3396/* confdefs.h. */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
3400/* end confdefs.h. */
3401
3402int
3403main ()
3404{
3405
3406 ;
3407 return 0;
3408}
3409_ACEOF
3410ac_clean_files_save=$ac_clean_files
8934764e 3411ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
bf9f3bac 3412# Try to create an executable without -o first, disregard a.out.
3413# It will help us diagnose broken compilers, and finding out an intuition
3414# of exeext.
8934764e
BB
3415{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3416$as_echo_n "checking for C compiler default output file name... " >&6; }
3417ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3418
3419# The possible output files:
3420ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3421
3422ac_rmfiles=
3423for ac_file in $ac_files
3424do
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3428 esac
3429done
3430rm -f $ac_rmfiles
3431
3432if { (ac_try="$ac_link_default"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438$as_echo "$ac_try_echo") >&5
3439 (eval "$ac_link_default") 2>&5
bf9f3bac 3440 ac_status=$?
8934764e 3441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3442 (exit $ac_status); }; then
8934764e
BB
3443 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3444# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3445# in a Makefile. We should not override ac_cv_exeext if it was cached,
3446# so that the user can short-circuit this test for compilers unknown to
3447# Autoconf.
3448for ac_file in $ac_files ''
bf9f3bac 3449do
3450 test -f "$ac_file" || continue
3451 case $ac_file in
8934764e 3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bf9f3bac 3453 ;;
3454 [ab].out )
3455 # We found the default executable, but exeext='' is most
3456 # certainly right.
3457 break;;
3458 *.* )
8934764e
BB
3459 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3460 then :; else
3461 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3462 fi
3463 # We set ac_cv_exeext here because the later test for it is not
3464 # safe: cross compilers may not add the suffix if given an `-o'
3465 # argument, so we may need to know it at that point already.
3466 # Even if this section looks crufty: it has the advantage of
3467 # actually working.
bf9f3bac 3468 break;;
3469 * )
3470 break;;
3471 esac
3472done
8934764e
BB
3473test "$ac_cv_exeext" = no && ac_cv_exeext=
3474
bf9f3bac 3475else
8934764e
BB
3476 ac_file=''
3477fi
3478
3479{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3480$as_echo "$ac_file" >&6; }
3481if test -z "$ac_file"; then
3482 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3483sed 's/^/| /' conftest.$ac_ext >&5
3484
8934764e
BB
3485{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
bf9f3bac 3488See \`config.log' for more details." >&5
8934764e 3489$as_echo "$as_me: error: C compiler cannot create executables
bf9f3bac 3490See \`config.log' for more details." >&2;}
8934764e 3491 { (exit 77); exit 77; }; }; }
bf9f3bac 3492fi
3493
3494ac_exeext=$ac_cv_exeext
bf9f3bac 3495
8934764e 3496# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3497# the compiler is broken, or we cross compile.
8934764e
BB
3498{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3499$as_echo_n "checking whether the C compiler works... " >&6; }
bf9f3bac 3500# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3501# If not cross compiling, check that we can run a simple program.
3502if test "$cross_compiling" != yes; then
3503 if { ac_try='./$ac_file'
8934764e
BB
3504 { (case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3509$as_echo "$ac_try_echo") >&5
3510 (eval "$ac_try") 2>&5
bf9f3bac 3511 ac_status=$?
8934764e 3512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3513 (exit $ac_status); }; }; then
3514 cross_compiling=no
3515 else
3516 if test "$cross_compiling" = maybe; then
3517 cross_compiling=yes
3518 else
8934764e
BB
3519 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
bf9f3bac 3522If you meant to cross compile, use \`--host'.
3523See \`config.log' for more details." >&5
8934764e 3524$as_echo "$as_me: error: cannot run C compiled programs.
bf9f3bac 3525If you meant to cross compile, use \`--host'.
3526See \`config.log' for more details." >&2;}
8934764e 3527 { (exit 1); exit 1; }; }; }
bf9f3bac 3528 fi
3529 fi
3530fi
8934764e
BB
3531{ $as_echo "$as_me:$LINENO: result: yes" >&5
3532$as_echo "yes" >&6; }
bf9f3bac 3533
8934764e 3534rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
bf9f3bac 3535ac_clean_files=$ac_clean_files_save
8934764e 3536# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3537# the compiler is broken, or we cross compile.
8934764e
BB
3538{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3539$as_echo_n "checking whether we are cross compiling... " >&6; }
3540{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3541$as_echo "$cross_compiling" >&6; }
3542
3543{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3544$as_echo_n "checking for suffix of executables... " >&6; }
3545if { (ac_try="$ac_link"
3546case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
3550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3551$as_echo "$ac_try_echo") >&5
3552 (eval "$ac_link") 2>&5
bf9f3bac 3553 ac_status=$?
8934764e 3554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3555 (exit $ac_status); }; then
3556 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3557# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3558# work properly (i.e., refer to `conftest.exe'), while it won't with
3559# `rm'.
3560for ac_file in conftest.exe conftest conftest.*; do
3561 test -f "$ac_file" || continue
3562 case $ac_file in
8934764e 3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bf9f3bac 3564 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bf9f3bac 3565 break;;
3566 * ) break;;
3567 esac
3568done
3569else
8934764e
BB
3570 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3573See \`config.log' for more details." >&5
8934764e 3574$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3575See \`config.log' for more details." >&2;}
8934764e 3576 { (exit 1); exit 1; }; }; }
bf9f3bac 3577fi
3578
3579rm -f conftest$ac_cv_exeext
8934764e
BB
3580{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3581$as_echo "$ac_cv_exeext" >&6; }
bf9f3bac 3582
3583rm -f conftest.$ac_ext
3584EXEEXT=$ac_cv_exeext
3585ac_exeext=$EXEEXT
8934764e
BB
3586{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3587$as_echo_n "checking for suffix of object files... " >&6; }
bf9f3bac 3588if test "${ac_cv_objext+set}" = set; then
8934764e 3589 $as_echo_n "(cached) " >&6
bf9f3bac 3590else
3591 cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h. */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h. */
3597
3598int
3599main ()
3600{
3601
3602 ;
3603 return 0;
3604}
3605_ACEOF
3606rm -f conftest.o conftest.obj
8934764e
BB
3607if { (ac_try="$ac_compile"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3613$as_echo "$ac_try_echo") >&5
3614 (eval "$ac_compile") 2>&5
bf9f3bac 3615 ac_status=$?
8934764e 3616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3617 (exit $ac_status); }; then
8934764e
BB
3618 for ac_file in conftest.o conftest.obj conftest.*; do
3619 test -f "$ac_file" || continue;
bf9f3bac 3620 case $ac_file in
8934764e 3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bf9f3bac 3622 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3623 break;;
3624 esac
3625done
3626else
8934764e 3627 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3628sed 's/^/| /' conftest.$ac_ext >&5
3629
8934764e
BB
3630{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3633See \`config.log' for more details." >&5
8934764e 3634$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3635See \`config.log' for more details." >&2;}
8934764e 3636 { (exit 1); exit 1; }; }; }
bf9f3bac 3637fi
3638
3639rm -f conftest.$ac_cv_objext conftest.$ac_ext
3640fi
8934764e
BB
3641{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3642$as_echo "$ac_cv_objext" >&6; }
bf9f3bac 3643OBJEXT=$ac_cv_objext
3644ac_objext=$OBJEXT
8934764e
BB
3645{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3646$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
bf9f3bac 3647if test "${ac_cv_c_compiler_gnu+set}" = set; then
8934764e 3648 $as_echo_n "(cached) " >&6
bf9f3bac 3649else
3650 cat >conftest.$ac_ext <<_ACEOF
3651/* confdefs.h. */
3652_ACEOF
3653cat confdefs.h >>conftest.$ac_ext
3654cat >>conftest.$ac_ext <<_ACEOF
3655/* end confdefs.h. */
3656
3657int
3658main ()
3659{
3660#ifndef __GNUC__
3661 choke me
3662#endif
3663
3664 ;
3665 return 0;
3666}
3667_ACEOF
3668rm -f conftest.$ac_objext
8934764e
BB
3669if { (ac_try="$ac_compile"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3675$as_echo "$ac_try_echo") >&5
3676 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3677 ac_status=$?
3678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
8934764e
BB
3681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } && {
3683 test -z "$ac_c_werror_flag" ||
3684 test ! -s conftest.err
3685 } && test -s conftest.$ac_objext; then
bf9f3bac 3686 ac_compiler_gnu=yes
3687else
8934764e 3688 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3689sed 's/^/| /' conftest.$ac_ext >&5
3690
8934764e 3691 ac_compiler_gnu=no
bf9f3bac 3692fi
8934764e
BB
3693
3694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3695ac_cv_c_compiler_gnu=$ac_compiler_gnu
3696
3697fi
8934764e
BB
3698{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3699$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3700if test $ac_compiler_gnu = yes; then
3701 GCC=yes
3702else
3703 GCC=
3704fi
bf9f3bac 3705ac_test_CFLAGS=${CFLAGS+set}
3706ac_save_CFLAGS=$CFLAGS
8934764e
BB
3707{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3708$as_echo_n "checking whether $CC accepts -g... " >&6; }
bf9f3bac 3709if test "${ac_cv_prog_cc_g+set}" = set; then
8934764e 3710 $as_echo_n "(cached) " >&6
bf9f3bac 3711else
8934764e
BB
3712 ac_save_c_werror_flag=$ac_c_werror_flag
3713 ac_c_werror_flag=yes
3714 ac_cv_prog_cc_g=no
3715 CFLAGS="-g"
3716 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 3717/* confdefs.h. */
3718_ACEOF
3719cat confdefs.h >>conftest.$ac_ext
3720cat >>conftest.$ac_ext <<_ACEOF
3721/* end confdefs.h. */
3722
3723int
3724main ()
3725{
3726
3727 ;
3728 return 0;
3729}
3730_ACEOF
3731rm -f conftest.$ac_objext
8934764e
BB
3732if { (ac_try="$ac_compile"
3733case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736esac
3737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3738$as_echo "$ac_try_echo") >&5
3739 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3740 ac_status=$?
3741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
8934764e
BB
3744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } && {
3746 test -z "$ac_c_werror_flag" ||
3747 test ! -s conftest.err
3748 } && test -s conftest.$ac_objext; then
3749 ac_cv_prog_cc_g=yes
3750else
3751 $as_echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 CFLAGS=""
3755 cat >conftest.$ac_ext <<_ACEOF
3756/* confdefs.h. */
3757_ACEOF
3758cat confdefs.h >>conftest.$ac_ext
3759cat >>conftest.$ac_ext <<_ACEOF
3760/* end confdefs.h. */
3761
3762int
3763main ()
3764{
3765
3766 ;
3767 return 0;
3768}
3769_ACEOF
3770rm -f conftest.$ac_objext
3771if { (ac_try="$ac_compile"
3772case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3777$as_echo "$ac_try_echo") >&5
3778 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3779 ac_status=$?
8934764e
BB
3780 grep -v '^ *+' conftest.er1 >conftest.err
3781 rm -f conftest.er1
3782 cat conftest.err >&5
3783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } && {
3785 test -z "$ac_c_werror_flag" ||
3786 test ! -s conftest.err
3787 } && test -s conftest.$ac_objext; then
3788 :
3789else
3790 $as_echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793 ac_c_werror_flag=$ac_save_c_werror_flag
3794 CFLAGS="-g"
3795 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h. */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h. */
3801
3802int
3803main ()
3804{
3805
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext
3811if { (ac_try="$ac_compile"
3812case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815esac
3816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3817$as_echo "$ac_try_echo") >&5
3818 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3819 ac_status=$?
8934764e
BB
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } && {
3825 test -z "$ac_c_werror_flag" ||
3826 test ! -s conftest.err
3827 } && test -s conftest.$ac_objext; then
bf9f3bac 3828 ac_cv_prog_cc_g=yes
3829else
8934764e 3830 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3831sed 's/^/| /' conftest.$ac_ext >&5
3832
8934764e
BB
3833
3834fi
3835
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837fi
3838
3839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3840fi
8934764e
BB
3841
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 ac_c_werror_flag=$ac_save_c_werror_flag
bf9f3bac 3844fi
8934764e
BB
3845{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3846$as_echo "$ac_cv_prog_cc_g" >&6; }
bf9f3bac 3847if test "$ac_test_CFLAGS" = set; then
3848 CFLAGS=$ac_save_CFLAGS
3849elif test $ac_cv_prog_cc_g = yes; then
3850 if test "$GCC" = yes; then
3851 CFLAGS="-g -O2"
3852 else
3853 CFLAGS="-g"
3854 fi
3855else
3856 if test "$GCC" = yes; then
3857 CFLAGS="-O2"
3858 else
3859 CFLAGS=
3860 fi
3861fi
8934764e
BB
3862{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3863$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3864if test "${ac_cv_prog_cc_c89+set}" = set; then
3865 $as_echo_n "(cached) " >&6
bf9f3bac 3866else
8934764e 3867 ac_cv_prog_cc_c89=no
bf9f3bac 3868ac_save_CC=$CC
3869cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
3875#include <stdarg.h>
3876#include <stdio.h>
3877#include <sys/types.h>
3878#include <sys/stat.h>
3879/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3880struct buf { int x; };
3881FILE * (*rcsopen) (struct buf *, struct stat *, int);
3882static char *e (p, i)
3883 char **p;
3884 int i;
3885{
3886 return p[i];
3887}
3888static char *f (char * (*g) (char **, int), char **p, ...)
3889{
3890 char *s;
3891 va_list v;
3892 va_start (v,p);
3893 s = g (p, va_arg (v,int));
3894 va_end (v);
3895 return s;
3896}
3897
3898/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3899 function prototypes and stuff, but not '\xHH' hex character constants.
3900 These don't provoke an error unfortunately, instead are silently treated
8934764e 3901 as 'x'. The following induces an error, until -std is added to get
bf9f3bac 3902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3903 array size at least. It's necessary to write '\x00'==0 to get something
8934764e 3904 that's true only with -std. */
bf9f3bac 3905int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3906
8934764e
BB
3907/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3908 inside strings and character constants. */
3909#define FOO(x) 'x'
3910int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3911
bf9f3bac 3912int test (int i, double x);
3913struct s1 {int (*f) (int a);};
3914struct s2 {int (*f) (double a);};
3915int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3916int argc;
3917char **argv;
3918int
3919main ()
3920{
3921return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3922 ;
3923 return 0;
3924}
3925_ACEOF
8934764e
BB
3926for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3927 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bf9f3bac 3928do
3929 CC="$ac_save_CC $ac_arg"
3930 rm -f conftest.$ac_objext
8934764e
BB
3931if { (ac_try="$ac_compile"
3932case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935esac
3936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3937$as_echo "$ac_try_echo") >&5
3938 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3939 ac_status=$?
3940 grep -v '^ *+' conftest.er1 >conftest.err
3941 rm -f conftest.er1
3942 cat conftest.err >&5
8934764e
BB
3943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } && {
3945 test -z "$ac_c_werror_flag" ||
3946 test ! -s conftest.err
3947 } && test -s conftest.$ac_objext; then
3948 ac_cv_prog_cc_c89=$ac_arg
3949else
3950 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3951sed 's/^/| /' conftest.$ac_ext >&5
3952
8934764e 3953
bf9f3bac 3954fi
8934764e
BB
3955
3956rm -f core conftest.err conftest.$ac_objext
3957 test "x$ac_cv_prog_cc_c89" != "xno" && break
bf9f3bac 3958done
8934764e 3959rm -f conftest.$ac_ext
bf9f3bac 3960CC=$ac_save_CC
3961
3962fi
8934764e
BB
3963# AC_CACHE_VAL
3964case "x$ac_cv_prog_cc_c89" in
3965 x)
3966 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3967$as_echo "none needed" >&6; } ;;
3968 xno)
3969 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3970$as_echo "unsupported" >&6; } ;;
bf9f3bac 3971 *)
8934764e
BB
3972 CC="$CC $ac_cv_prog_cc_c89"
3973 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3974$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bf9f3bac 3975esac
3976
bf9f3bac 3977
bf9f3bac 3978ac_ext=c
3979ac_cpp='$CPP $CPPFLAGS'
3980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982ac_compiler_gnu=$ac_cv_c_compiler_gnu
3983DEPDIR="${am__leading_dot}deps"
3984
8934764e 3985ac_config_commands="$ac_config_commands depfiles"
bf9f3bac 3986
3987
3988am_make=${MAKE-make}
3989cat > confinc << 'END'
3990am__doit:
8934764e 3991 @echo this is the am__doit target
bf9f3bac 3992.PHONY: am__doit
3993END
3994# If we don't find an include directive, just comment out the code.
8934764e
BB
3995{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3996$as_echo_n "checking for style of include used by $am_make... " >&6; }
bf9f3bac 3997am__include="#"
3998am__quote=
3999_am_result=none
4000# First try GNU make style include.
4001echo "include confinc" > confmf
8934764e
BB
4002# Ignore all kinds of additional output from `make'.
4003case `$am_make -s -f confmf 2> /dev/null` in #(
4004*the\ am__doit\ target*)
4005 am__include=include
4006 am__quote=
4007 _am_result=GNU
4008 ;;
4009esac
bf9f3bac 4010# Now try BSD make style include.
4011if test "$am__include" = "#"; then
4012 echo '.include "confinc"' > confmf
8934764e
BB
4013 case `$am_make -s -f confmf 2> /dev/null` in #(
4014 *the\ am__doit\ target*)
4015 am__include=.include
4016 am__quote="\""
4017 _am_result=BSD
4018 ;;
4019 esac
bf9f3bac 4020fi
4021
4022
8934764e
BB
4023{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4024$as_echo "$_am_result" >&6; }
bf9f3bac 4025rm -f confinc confmf
4026
8934764e 4027# Check whether --enable-dependency-tracking was given.
bf9f3bac 4028if test "${enable_dependency_tracking+set}" = set; then
8934764e
BB
4029 enableval=$enable_dependency_tracking;
4030fi
bf9f3bac 4031
bf9f3bac 4032if test "x$enable_dependency_tracking" != xno; then
4033 am_depcomp="$ac_aux_dir/depcomp"
4034 AMDEPBACKSLASH='\'
4035fi
8934764e 4036 if test "x$enable_dependency_tracking" != xno; then
bf9f3bac 4037 AMDEP_TRUE=
4038 AMDEP_FALSE='#'
4039else
4040 AMDEP_TRUE='#'
4041 AMDEP_FALSE=
4042fi
4043
4044
4045
bf9f3bac 4046depcc="$CC" am_compiler_list=
4047
8934764e
BB
4048{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4049$as_echo_n "checking dependency style of $depcc... " >&6; }
bf9f3bac 4050if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8934764e 4051 $as_echo_n "(cached) " >&6
bf9f3bac 4052else
4053 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4054 # We make a subdir and do the tests there. Otherwise we can end up
4055 # making bogus files that we don't know about and never remove. For
4056 # instance it was reported that on HP-UX the gcc test will end up
4057 # making a dummy file named `D' -- because `-MD' means `put the output
4058 # in D'.
4059 mkdir conftest.dir
4060 # Copy depcomp to subdir because otherwise we won't find it if we're
4061 # using a relative directory.
4062 cp "$am_depcomp" conftest.dir
4063 cd conftest.dir
4064 # We will build objects and dependencies in a subdirectory because
4065 # it helps to detect inapplicable dependency modes. For instance
4066 # both Tru64's cc and ICC support -MD to output dependencies as a
4067 # side effect of compilation, but ICC will put the dependencies in
4068 # the current directory while Tru64 will put them in the object
4069 # directory.
4070 mkdir sub
4071
4072 am_cv_CC_dependencies_compiler_type=none
4073 if test "$am_compiler_list" = ""; then
4074 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4075 fi
8934764e
BB
4076 am__universal=false
4077 case " $depcc " in #(
4078 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4079 esac
4080
bf9f3bac 4081 for depmode in $am_compiler_list; do
4082 # Setup a source with many dependencies, because some compilers
4083 # like to wrap large dependency lists on column 80 (with \), and
4084 # we should not choose a depcomp mode which is confused by this.
4085 #
4086 # We need to recreate these files for each test, as the compiler may
4087 # overwrite some of them when testing with obscure command lines.
4088 # This happens at least with the AIX C compiler.
4089 : > sub/conftest.c
4090 for i in 1 2 3 4 5 6; do
4091 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4092 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4093 # Solaris 8's {/usr,}/bin/sh.
4094 touch sub/conftst$i.h
4095 done
4096 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4097
8934764e
BB
4098 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4099 # mode. It turns out that the SunPro C++ compiler does not properly
4100 # handle `-M -o', and we need to detect this. Also, some Intel
4101 # versions had trouble with output in subdirs
4102 am__obj=sub/conftest.${OBJEXT-o}
4103 am__minus_obj="-o $am__obj"
bf9f3bac 4104 case $depmode in
8934764e
BB
4105 gcc)
4106 # This depmode causes a compiler race in universal mode.
4107 test "$am__universal" = false || continue
4108 ;;
bf9f3bac 4109 nosideeffect)
4110 # after this tag, mechanisms are not by side-effect, so they'll
4111 # only be used when explicitly requested
4112 if test "x$enable_dependency_tracking" = xyes; then
4113 continue
4114 else
4115 break
4116 fi
4117 ;;
8934764e
BB
4118 msvisualcpp | msvcmsys)
4119 # This compiler won't grok `-c -o', but also, the minuso test has
4120 # not run yet. These depmodes are late enough in the game, and
4121 # so weak that their functioning should not be impacted.
4122 am__obj=conftest.${OBJEXT-o}
4123 am__minus_obj=
4124 ;;
bf9f3bac 4125 none) break ;;
4126 esac
bf9f3bac 4127 if depmode=$depmode \
8934764e 4128 source=sub/conftest.c object=$am__obj \
bf9f3bac 4129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8934764e 4130 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9f3bac 4131 >/dev/null 2>conftest.err &&
8934764e 4132 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8934764e 4134 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4136 # icc doesn't choke on unknown options, it will just issue warnings
4137 # or remarks (even with -Werror). So we grep stderr for any message
4138 # that says an option was ignored or not supported.
4139 # When given -MP, icc 7.0 and 7.1 complain thusly:
4140 # icc: Command line warning: ignoring option '-M'; no argument required
4141 # The diagnosis changed in icc 8.0:
4142 # icc: Command line remark: option '-MP' not supported
4143 if (grep 'ignoring option' conftest.err ||
4144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4145 am_cv_CC_dependencies_compiler_type=$depmode
4146 break
4147 fi
4148 fi
4149 done
4150
4151 cd ..
4152 rm -rf conftest.dir
4153else
4154 am_cv_CC_dependencies_compiler_type=none
4155fi
4156
4157fi
8934764e
BB
4158{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4159$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
bf9f3bac 4160CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4161
8934764e 4162 if
bf9f3bac 4163 test "x$enable_dependency_tracking" != xno \
4164 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4165 am__fastdepCC_TRUE=
4166 am__fastdepCC_FALSE='#'
4167else
4168 am__fastdepCC_TRUE='#'
4169 am__fastdepCC_FALSE=
4170fi
4171
4172
8934764e
BB
4173case `pwd` in
4174 *\ * | *\ *)
4175 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4176$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4177esac
bf9f3bac 4178
bf9f3bac 4179
bf9f3bac 4180
8beea9ac
BB
4181macro_version='2.2.6b'
4182macro_revision='1.3017'
8934764e
BB
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196ltmain="$ac_aux_dir/ltmain.sh"
4197
4198{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4199$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4200if test "${ac_cv_path_SED+set}" = set; then
4201 $as_echo_n "(cached) " >&6
4202else
4203 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4204 for ac_i in 1 2 3 4 5 6 7; do
4205 ac_script="$ac_script$as_nl$ac_script"
4206 done
4207 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4208 $as_unset ac_script || ac_script=
4209 if test -z "$SED"; then
4210 ac_path_SED_found=false
4211 # Loop through the user's path and test for each of PROGNAME-LIST
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
bf9f3bac 4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
8934764e 4217 for ac_prog in sed gsed; do
bf9f3bac 4218 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
4219 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4220 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4221# Check for GNU ac_path_SED and select it if it is found.
4222 # Check for GNU $ac_path_SED
4223case `"$ac_path_SED" --version 2>&1` in
4224*GNU*)
4225 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4226*)
4227 ac_count=0
4228 $as_echo_n 0123456789 >"conftest.in"
4229 while :
4230 do
4231 cat "conftest.in" "conftest.in" >"conftest.tmp"
4232 mv "conftest.tmp" "conftest.in"
4233 cp "conftest.in" "conftest.nl"
4234 $as_echo '' >> "conftest.nl"
4235 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237 ac_count=`expr $ac_count + 1`
4238 if test $ac_count -gt ${ac_path_SED_max-0}; then
4239 # Best one so far, save it but keep looking for a better one
4240 ac_cv_path_SED="$ac_path_SED"
4241 ac_path_SED_max=$ac_count
4242 fi
4243 # 10*(2^10) chars as input seems more than enough
4244 test $ac_count -gt 10 && break
4245 done
4246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247esac
4248
4249 $ac_path_SED_found && break 3
bf9f3bac 4250 done
4251 done
4252done
4253IFS=$as_save_IFS
8934764e
BB
4254 if test -z "$ac_cv_path_SED"; then
4255 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4256$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4257 { (exit 1); exit 1; }; }
bf9f3bac 4258 fi
8934764e
BB
4259else
4260 ac_cv_path_SED=$SED
4261fi
bf9f3bac 4262
4263fi
8934764e
BB
4264{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4265$as_echo "$ac_cv_path_SED" >&6; }
4266 SED="$ac_cv_path_SED"
4267 rm -f conftest.sed
4268
4269test -z "$SED" && SED=sed
4270Xsed="$SED -e 1s/^X//"
4271
4272
bf9f3bac 4273
bf9f3bac 4274
bf9f3bac 4275
8934764e
BB
4276
4277
4278
4279
4280
4281
4282{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4283$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4284if test "${ac_cv_path_GREP+set}" = set; then
4285 $as_echo_n "(cached) " >&6
bf9f3bac 4286else
8934764e
BB
4287 if test -z "$GREP"; then
4288 ac_path_GREP_found=false
4289 # Loop through the user's path and test for each of PROGNAME-LIST
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4292do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
4295 for ac_prog in grep ggrep; do
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4298 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4299# Check for GNU ac_path_GREP and select it if it is found.
4300 # Check for GNU $ac_path_GREP
4301case `"$ac_path_GREP" --version 2>&1` in
4302*GNU*)
4303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4304*)
4305 ac_count=0
4306 $as_echo_n 0123456789 >"conftest.in"
4307 while :
4308 do
4309 cat "conftest.in" "conftest.in" >"conftest.tmp"
4310 mv "conftest.tmp" "conftest.in"
4311 cp "conftest.in" "conftest.nl"
4312 $as_echo 'GREP' >> "conftest.nl"
4313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4315 ac_count=`expr $ac_count + 1`
4316 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4317 # Best one so far, save it but keep looking for a better one
4318 ac_cv_path_GREP="$ac_path_GREP"
4319 ac_path_GREP_max=$ac_count
bf9f3bac 4320 fi
8934764e
BB
4321 # 10*(2^10) chars as input seems more than enough
4322 test $ac_count -gt 10 && break
4323 done
4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4325esac
4326
4327 $ac_path_GREP_found && break 3
4328 done
4329 done
4330done
4331IFS=$as_save_IFS
4332 if test -z "$ac_cv_path_GREP"; then
4333 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4334$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4335 { (exit 1); exit 1; }; }
4336 fi
4337else
4338 ac_cv_path_GREP=$GREP
bf9f3bac 4339fi
bf9f3bac 4340
8934764e
BB
4341fi
4342{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4343$as_echo "$ac_cv_path_GREP" >&6; }
4344 GREP="$ac_cv_path_GREP"
bf9f3bac 4345
4346
8934764e
BB
4347{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4348$as_echo_n "checking for egrep... " >&6; }
4349if test "${ac_cv_path_EGREP+set}" = set; then
4350 $as_echo_n "(cached) " >&6
bf9f3bac 4351else
8934764e
BB
4352 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4353 then ac_cv_path_EGREP="$GREP -E"
4354 else
4355 if test -z "$EGREP"; then
4356 ac_path_EGREP_found=false
4357 # Loop through the user's path and test for each of PROGNAME-LIST
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4360do
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_prog in egrep; do
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4366 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4367# Check for GNU ac_path_EGREP and select it if it is found.
4368 # Check for GNU $ac_path_EGREP
4369case `"$ac_path_EGREP" --version 2>&1` in
4370*GNU*)
4371 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4372*)
4373 ac_count=0
4374 $as_echo_n 0123456789 >"conftest.in"
4375 while :
4376 do
4377 cat "conftest.in" "conftest.in" >"conftest.tmp"
4378 mv "conftest.tmp" "conftest.in"
4379 cp "conftest.in" "conftest.nl"
4380 $as_echo 'EGREP' >> "conftest.nl"
4381 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4383 ac_count=`expr $ac_count + 1`
4384 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4385 # Best one so far, save it but keep looking for a better one
4386 ac_cv_path_EGREP="$ac_path_EGREP"
4387 ac_path_EGREP_max=$ac_count
4388 fi
4389 # 10*(2^10) chars as input seems more than enough
4390 test $ac_count -gt 10 && break
4391 done
4392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4393esac
4394
4395 $ac_path_EGREP_found && break 3
4396 done
4397 done
4398done
4399IFS=$as_save_IFS
4400 if test -z "$ac_cv_path_EGREP"; then
4401 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4402$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4403 { (exit 1); exit 1; }; }
4404 fi
bf9f3bac 4405else
8934764e
BB
4406 ac_cv_path_EGREP=$EGREP
4407fi
4408
4409 fi
4410fi
4411{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4412$as_echo "$ac_cv_path_EGREP" >&6; }
4413 EGREP="$ac_cv_path_EGREP"
4414
4415
4416{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4417$as_echo_n "checking for fgrep... " >&6; }
4418if test "${ac_cv_path_FGREP+set}" = set; then
4419 $as_echo_n "(cached) " >&6
4420else
4421 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4422 then ac_cv_path_FGREP="$GREP -F"
4423 else
4424 if test -z "$FGREP"; then
4425 ac_path_FGREP_found=false
4426 # Loop through the user's path and test for each of PROGNAME-LIST
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4429do
4430 IFS=$as_save_IFS
4431 test -z "$as_dir" && as_dir=.
4432 for ac_prog in fgrep; do
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4435 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4436# Check for GNU ac_path_FGREP and select it if it is found.
4437 # Check for GNU $ac_path_FGREP
4438case `"$ac_path_FGREP" --version 2>&1` in
4439*GNU*)
4440 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4441*)
4442 ac_count=0
4443 $as_echo_n 0123456789 >"conftest.in"
4444 while :
4445 do
4446 cat "conftest.in" "conftest.in" >"conftest.tmp"
4447 mv "conftest.tmp" "conftest.in"
4448 cp "conftest.in" "conftest.nl"
4449 $as_echo 'FGREP' >> "conftest.nl"
4450 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4452 ac_count=`expr $ac_count + 1`
4453 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4454 # Best one so far, save it but keep looking for a better one
4455 ac_cv_path_FGREP="$ac_path_FGREP"
4456 ac_path_FGREP_max=$ac_count
4457 fi
4458 # 10*(2^10) chars as input seems more than enough
4459 test $ac_count -gt 10 && break
4460 done
4461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4462esac
4463
4464 $ac_path_FGREP_found && break 3
4465 done
4466 done
4467done
4468IFS=$as_save_IFS
4469 if test -z "$ac_cv_path_FGREP"; then
4470 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4471$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4472 { (exit 1); exit 1; }; }
4473 fi
4474else
4475 ac_cv_path_FGREP=$FGREP
4476fi
4477
4478 fi
4479fi
4480{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4481$as_echo "$ac_cv_path_FGREP" >&6; }
4482 FGREP="$ac_cv_path_FGREP"
4483
4484
4485test -z "$GREP" && GREP=grep
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505# Check whether --with-gnu-ld was given.
4506if test "${with_gnu_ld+set}" = set; then
4507 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4508else
4509 with_gnu_ld=no
4510fi
4511
4512ac_prog=ld
4513if test "$GCC" = yes; then
4514 # Check if gcc -print-prog-name=ld gives a path.
4515 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4516$as_echo_n "checking for ld used by $CC... " >&6; }
4517 case $host in
4518 *-*-mingw*)
4519 # gcc leaves a trailing carriage return which upsets mingw
4520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4521 *)
4522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4523 esac
4524 case $ac_prog in
4525 # Accept absolute paths.
4526 [\\/]* | ?:[\\/]*)
4527 re_direlt='/[^/][^/]*/\.\./'
4528 # Canonicalize the pathname of ld
4529 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4530 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4531 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4532 done
4533 test -z "$LD" && LD="$ac_prog"
4534 ;;
4535 "")
4536 # If it fails, then pretend we aren't using GCC.
4537 ac_prog=ld
4538 ;;
4539 *)
4540 # If it is relative, then search for the first ld in PATH.
4541 with_gnu_ld=unknown
4542 ;;
4543 esac
4544elif test "$with_gnu_ld" = yes; then
4545 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4546$as_echo_n "checking for GNU ld... " >&6; }
4547else
4548 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4549$as_echo_n "checking for non-GNU ld... " >&6; }
bf9f3bac 4550fi
4551if test "${lt_cv_path_LD+set}" = set; then
8934764e 4552 $as_echo_n "(cached) " >&6
bf9f3bac 4553else
4554 if test -z "$LD"; then
4555 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4556 for ac_dir in $PATH; do
4557 IFS="$lt_save_ifs"
4558 test -z "$ac_dir" && ac_dir=.
4559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4560 lt_cv_path_LD="$ac_dir/$ac_prog"
4561 # Check to see if the program is GNU ld. I'd rather use --version,
4562 # but apparently some variants of GNU ld only accept -v.
4563 # Break only if it was the GNU/non-GNU ld that we prefer.
4564 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4565 *GNU* | *'with BFD'*)
4566 test "$with_gnu_ld" != no && break
4567 ;;
4568 *)
4569 test "$with_gnu_ld" != yes && break
4570 ;;
4571 esac
4572 fi
4573 done
4574 IFS="$lt_save_ifs"
4575else
4576 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4577fi
4578fi
4579
4580LD="$lt_cv_path_LD"
4581if test -n "$LD"; then
8934764e
BB
4582 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4583$as_echo "$LD" >&6; }
bf9f3bac 4584else
8934764e
BB
4585 { $as_echo "$as_me:$LINENO: result: no" >&5
4586$as_echo "no" >&6; }
bf9f3bac 4587fi
8934764e
BB
4588test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4589$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
bf9f3bac 4590 { (exit 1); exit 1; }; }
8934764e
BB
4591{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4592$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
bf9f3bac 4593if test "${lt_cv_prog_gnu_ld+set}" = set; then
8934764e 4594 $as_echo_n "(cached) " >&6
bf9f3bac 4595else
4596 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4597case `$LD -v 2>&1 </dev/null` in
4598*GNU* | *'with BFD'*)
4599 lt_cv_prog_gnu_ld=yes
4600 ;;
4601*)
4602 lt_cv_prog_gnu_ld=no
4603 ;;
4604esac
4605fi
8934764e
BB
4606{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4607$as_echo "$lt_cv_prog_gnu_ld" >&6; }
bf9f3bac 4608with_gnu_ld=$lt_cv_prog_gnu_ld
4609
4610
bf9f3bac 4611
8934764e
BB
4612
4613
4614
4615
4616
4617
4618{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4619$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
bf9f3bac 4620if test "${lt_cv_path_NM+set}" = set; then
8934764e 4621 $as_echo_n "(cached) " >&6
bf9f3bac 4622else
4623 if test -n "$NM"; then
4624 # Let the user override the test.
4625 lt_cv_path_NM="$NM"
4626else
4627 lt_nm_to_check="${ac_tool_prefix}nm"
4628 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4629 lt_nm_to_check="$lt_nm_to_check nm"
4630 fi
4631 for lt_tmp_nm in $lt_nm_to_check; do
4632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4633 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4634 IFS="$lt_save_ifs"
4635 test -z "$ac_dir" && ac_dir=.
4636 tmp_nm="$ac_dir/$lt_tmp_nm"
4637 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4638 # Check to see if the nm accepts a BSD-compat flag.
4639 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4640 # nm: unknown option "B" ignored
4641 # Tru64's nm complains that /dev/null is an invalid object file
4642 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4643 */dev/null* | *'Invalid file or object type'*)
4644 lt_cv_path_NM="$tmp_nm -B"
4645 break
4646 ;;
4647 *)
4648 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4649 */dev/null*)
4650 lt_cv_path_NM="$tmp_nm -p"
4651 break
4652 ;;
4653 *)
4654 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4655 continue # so that we can try to find one that supports BSD flags
4656 ;;
4657 esac
4658 ;;
4659 esac
4660 fi
4661 done
4662 IFS="$lt_save_ifs"
4663 done
8934764e 4664 : ${lt_cv_path_NM=no}
bf9f3bac 4665fi
4666fi
8934764e
BB
4667{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4668$as_echo "$lt_cv_path_NM" >&6; }
4669if test "$lt_cv_path_NM" != "no"; then
4670 NM="$lt_cv_path_NM"
4671else
4672 # Didn't find any BSD compatible name lister, look for dumpbin.
4673 if test -n "$ac_tool_prefix"; then
4674 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4675 do
4676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4678{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4679$as_echo_n "checking for $ac_word... " >&6; }
4680if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4681 $as_echo_n "(cached) " >&6
4682else
4683 if test -n "$DUMPBIN"; then
4684 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697done
4698done
4699IFS=$as_save_IFS
bf9f3bac 4700
8934764e
BB
4701fi
4702fi
4703DUMPBIN=$ac_cv_prog_DUMPBIN
4704if test -n "$DUMPBIN"; then
4705 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4706$as_echo "$DUMPBIN" >&6; }
bf9f3bac 4707else
8934764e
BB
4708 { $as_echo "$as_me:$LINENO: result: no" >&5
4709$as_echo "no" >&6; }
bf9f3bac 4710fi
4711
bf9f3bac 4712
8934764e
BB
4713 test -n "$DUMPBIN" && break
4714 done
4715fi
4716if test -z "$DUMPBIN"; then
4717 ac_ct_DUMPBIN=$DUMPBIN
4718 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4719do
4720 # Extract the first word of "$ac_prog", so it can be a program name with args.
4721set dummy $ac_prog; ac_word=$2
4722{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4723$as_echo_n "checking for $ac_word... " >&6; }
4724if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4725 $as_echo_n "(cached) " >&6
4726else
4727 if test -n "$ac_ct_DUMPBIN"; then
4728 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733 IFS=$as_save_IFS
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741done
4742done
4743IFS=$as_save_IFS
bf9f3bac 4744
8934764e
BB
4745fi
4746fi
4747ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4748if test -n "$ac_ct_DUMPBIN"; then
4749 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4750$as_echo "$ac_ct_DUMPBIN" >&6; }
4751else
4752 { $as_echo "$as_me:$LINENO: result: no" >&5
4753$as_echo "no" >&6; }
4754fi
bf9f3bac 4755
bf9f3bac 4756
8934764e
BB
4757 test -n "$ac_ct_DUMPBIN" && break
4758done
bf9f3bac 4759
8934764e
BB
4760 if test "x$ac_ct_DUMPBIN" = x; then
4761 DUMPBIN=":"
4762 else
4763 case $cross_compiling:$ac_tool_warned in
4764yes:)
4765{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767ac_tool_warned=yes ;;
4768esac
4769 DUMPBIN=$ac_ct_DUMPBIN
4770 fi
4771fi
bf9f3bac 4772
bf9f3bac 4773
8934764e
BB
4774 if test "$DUMPBIN" != ":"; then
4775 NM="$DUMPBIN"
bf9f3bac 4776 fi
8934764e
BB
4777fi
4778test -z "$NM" && NM=nm
bf9f3bac 4779
bf9f3bac 4780
bf9f3bac 4781
bf9f3bac 4782
bf9f3bac 4783
bf9f3bac 4784
8934764e
BB
4785{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4786$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4787if test "${lt_cv_nm_interface+set}" = set; then
4788 $as_echo_n "(cached) " >&6
4789else
4790 lt_cv_nm_interface="BSD nm"
4791 echo "int some_variable = 0;" > conftest.$ac_ext
3c208a54 4792 (eval echo "\"\$as_me:4792: $ac_compile\"" >&5)
8934764e
BB
4793 (eval "$ac_compile" 2>conftest.err)
4794 cat conftest.err >&5
3c208a54 4795 (eval echo "\"\$as_me:4795: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8934764e
BB
4796 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4797 cat conftest.err >&5
3c208a54 4798 (eval echo "\"\$as_me:4798: output\"" >&5)
8934764e
BB
4799 cat conftest.out >&5
4800 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4801 lt_cv_nm_interface="MS dumpbin"
bf9f3bac 4802 fi
8934764e
BB
4803 rm -f conftest*
4804fi
4805{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4806$as_echo "$lt_cv_nm_interface" >&6; }
bf9f3bac 4807
8934764e
BB
4808{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4809$as_echo_n "checking whether ln -s works... " >&6; }
4810LN_S=$as_ln_s
4811if test "$LN_S" = "ln -s"; then
4812 { $as_echo "$as_me:$LINENO: result: yes" >&5
4813$as_echo "yes" >&6; }
4814else
4815 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4816$as_echo "no, using $LN_S" >&6; }
4817fi
bf9f3bac 4818
8934764e
BB
4819# find the maximum length of command line arguments
4820{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4821$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4822if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4824else
4825 i=0
4826 teststring="ABCD"
bf9f3bac 4827
8934764e
BB
4828 case $build_os in
4829 msdosdjgpp*)
4830 # On DJGPP, this test can blow up pretty badly due to problems in libc
4831 # (any single argument exceeding 2000 bytes causes a buffer overrun
4832 # during glob expansion). Even if it were fixed, the result of this
4833 # check would be larger than it should be.
4834 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4835 ;;
bf9f3bac 4836
8934764e
BB
4837 gnu*)
4838 # Under GNU Hurd, this test is not required because there is
4839 # no limit to the length of command line arguments.
4840 # Libtool will interpret -1 as no limit whatsoever
4841 lt_cv_sys_max_cmd_len=-1;
4842 ;;
bf9f3bac 4843
8934764e
BB
4844 cygwin* | mingw* | cegcc*)
4845 # On Win9x/ME, this test blows up -- it succeeds, but takes
4846 # about 5 minutes as the teststring grows exponentially.
4847 # Worse, since 9x/ME are not pre-emptively multitasking,
4848 # you end up with a "frozen" computer, even though with patience
4849 # the test eventually succeeds (with a max line length of 256k).
4850 # Instead, let's just punt: use the minimum linelength reported by
4851 # all of the supported platforms: 8192 (on NT/2K/XP).
4852 lt_cv_sys_max_cmd_len=8192;
4853 ;;
bf9f3bac 4854
8934764e
BB
4855 amigaos*)
4856 # On AmigaOS with pdksh, this test takes hours, literally.
4857 # So we just punt and use a minimum line length of 8192.
4858 lt_cv_sys_max_cmd_len=8192;
bf9f3bac 4859 ;;
8934764e
BB
4860
4861 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4862 # This has been around since 386BSD, at least. Likely further.
4863 if test -x /sbin/sysctl; then
4864 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4865 elif test -x /usr/sbin/sysctl; then
4866 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4867 else
4868 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4869 fi
4870 # And add a safety zone
4871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4872 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
bf9f3bac 4873 ;;
8934764e
BB
4874
4875 interix*)
4876 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4877 lt_cv_sys_max_cmd_len=196608
bf9f3bac 4878 ;;
8934764e
BB
4879
4880 osf*)
4881 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4882 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4883 # nice to cause kernel panics so lets avoid the loop below.
4884 # First set a reasonable default.
4885 lt_cv_sys_max_cmd_len=16384
4886 #
4887 if test -x /sbin/sysconfig; then
4888 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4889 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4890 esac
4891 fi
bf9f3bac 4892 ;;
8934764e
BB
4893 sco3.2v5*)
4894 lt_cv_sys_max_cmd_len=102400
bf9f3bac 4895 ;;
8934764e
BB
4896 sysv5* | sco5v6* | sysv4.2uw2*)
4897 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4898 if test -n "$kargmax"; then
4899 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4900 else
4901 lt_cv_sys_max_cmd_len=32768
4902 fi
4903 ;;
4904 *)
4905 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4906 if test -n "$lt_cv_sys_max_cmd_len"; then
4907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4909 else
4910 # Make teststring a little bigger before we do anything with it.
4911 # a 1K string should be a reasonable start.
4912 for i in 1 2 3 4 5 6 7 8 ; do
4913 teststring=$teststring$teststring
4914 done
4915 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4916 # If test is not a shell built-in, we'll probably end up computing a
4917 # maximum length that is only half of the actual maximum length, but
4918 # we can't tell.
4919 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4920 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4921 test $i != 17 # 1/2 MB should be enough
4922 do
4923 i=`expr $i + 1`
4924 teststring=$teststring$teststring
4925 done
4926 # Only check the string length outside the loop.
4927 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4928 teststring=
4929 # Add a significant safety factor because C++ compilers can tack on
4930 # massive amounts of additional arguments before passing them to the
4931 # linker. It appears as though 1/2 is a usable value.
4932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4933 fi
bf9f3bac 4934 ;;
4935 esac
bf9f3bac 4936
8934764e 4937fi
bf9f3bac 4938
8934764e
BB
4939if test -n $lt_cv_sys_max_cmd_len ; then
4940 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4941$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4942else
4943 { $as_echo "$as_me:$LINENO: result: none" >&5
4944$as_echo "none" >&6; }
bf9f3bac 4945fi
8934764e 4946max_cmd_len=$lt_cv_sys_max_cmd_len
bf9f3bac 4947
4948
4949
4950
bf9f3bac 4951
bf9f3bac 4952
8934764e
BB
4953: ${CP="cp -f"}
4954: ${MV="mv -f"}
4955: ${RM="rm -f"}
bf9f3bac 4956
8934764e
BB
4957{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4958$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4959# Try some XSI features
4960xsi_shell=no
4961( _lt_dummy="a/b/c"
4962 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4963 = c,a/b,, \
4964 && eval 'test $(( 1 + 1 )) -eq 2 \
4965 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4966 && xsi_shell=yes
4967{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4968$as_echo "$xsi_shell" >&6; }
bf9f3bac 4969
bf9f3bac 4970
8934764e
BB
4971{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4972$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4973lt_shell_append=no
4974( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4975 >/dev/null 2>&1 \
4976 && lt_shell_append=yes
4977{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4978$as_echo "$lt_shell_append" >&6; }
bf9f3bac 4979
8934764e
BB
4980
4981if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4982 lt_unset=unset
4983else
4984 lt_unset=false
4985fi
4986
4987
4988
4989
4990
4991# test EBCDIC or ASCII
4992case `echo X|tr X '\101'` in
4993 A) # ASCII based system
4994 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4995 lt_SP2NL='tr \040 \012'
4996 lt_NL2SP='tr \015\012 \040\040'
bf9f3bac 4997 ;;
8934764e
BB
4998 *) # EBCDIC based system
4999 lt_SP2NL='tr \100 \n'
5000 lt_NL2SP='tr \r\n \100\100'
bf9f3bac 5001 ;;
8934764e
BB
5002esac
5003
bf9f3bac 5004
bf9f3bac 5005
bf9f3bac 5006
bf9f3bac 5007
bf9f3bac 5008
bf9f3bac 5009
bf9f3bac 5010
8934764e
BB
5011
5012{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5013$as_echo_n "checking for $LD option to reload object files... " >&6; }
5014if test "${lt_cv_ld_reload_flag+set}" = set; then
5015 $as_echo_n "(cached) " >&6
5016else
5017 lt_cv_ld_reload_flag='-r'
bf9f3bac 5018fi
8934764e
BB
5019{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5020$as_echo "$lt_cv_ld_reload_flag" >&6; }
5021reload_flag=$lt_cv_ld_reload_flag
5022case $reload_flag in
5023"" | " "*) ;;
5024*) reload_flag=" $reload_flag" ;;
5025esac
5026reload_cmds='$LD$reload_flag -o $output$reload_objs'
5027case $host_os in
5028 darwin*)
5029 if test "$GCC" = yes; then
5030 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5031 else
5032 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5033 fi
5034 ;;
5035esac
bf9f3bac 5036
5037
bf9f3bac 5038
bf9f3bac 5039
5040
8934764e
BB
5041
5042
5043
5044
5045if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5047set dummy ${ac_tool_prefix}objdump; ac_word=$2
5048{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5049$as_echo_n "checking for $ac_word... " >&6; }
5050if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5051 $as_echo_n "(cached) " >&6
bf9f3bac 5052else
8934764e
BB
5053 if test -n "$OBJDUMP"; then
5054 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5055else
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
bf9f3bac 5058do
8934764e
BB
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
bf9f3bac 5066 fi
8934764e
BB
5067done
5068done
5069IFS=$as_save_IFS
bf9f3bac 5070
bf9f3bac 5071fi
bf9f3bac 5072fi
8934764e
BB
5073OBJDUMP=$ac_cv_prog_OBJDUMP
5074if test -n "$OBJDUMP"; then
5075 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5076$as_echo "$OBJDUMP" >&6; }
bf9f3bac 5077else
8934764e
BB
5078 { $as_echo "$as_me:$LINENO: result: no" >&5
5079$as_echo "no" >&6; }
bf9f3bac 5080fi
5081
bf9f3bac 5082
5083fi
8934764e
BB
5084if test -z "$ac_cv_prog_OBJDUMP"; then
5085 ac_ct_OBJDUMP=$OBJDUMP
5086 # Extract the first word of "objdump", so it can be a program name with args.
5087set dummy objdump; ac_word=$2
5088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5089$as_echo_n "checking for $ac_word... " >&6; }
5090if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5091 $as_echo_n "(cached) " >&6
bf9f3bac 5092else
8934764e
BB
5093 if test -n "$ac_ct_OBJDUMP"; then
5094 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
bf9f3bac 5098do
8934764e
BB
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
bf9f3bac 5106 fi
8934764e
BB
5107done
5108done
5109IFS=$as_save_IFS
5110
bf9f3bac 5111fi
8934764e
BB
5112fi
5113ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5114if test -n "$ac_ct_OBJDUMP"; then
5115 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5116$as_echo "$ac_ct_OBJDUMP" >&6; }
bf9f3bac 5117else
8934764e
BB
5118 { $as_echo "$as_me:$LINENO: result: no" >&5
5119$as_echo "no" >&6; }
bf9f3bac 5120fi
bf9f3bac 5121
8934764e
BB
5122 if test "x$ac_ct_OBJDUMP" = x; then
5123 OBJDUMP="false"
bf9f3bac 5124 else
8934764e
BB
5125 case $cross_compiling:$ac_tool_warned in
5126yes:)
5127{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129ac_tool_warned=yes ;;
5130esac
5131 OBJDUMP=$ac_ct_OBJDUMP
bf9f3bac 5132 fi
5133else
8934764e 5134 OBJDUMP="$ac_cv_prog_OBJDUMP"
bf9f3bac 5135fi
bf9f3bac 5136
8934764e 5137test -z "$OBJDUMP" && OBJDUMP=objdump
bf9f3bac 5138
bf9f3bac 5139
bf9f3bac 5140
5141
bf9f3bac 5142
bf9f3bac 5143
bf9f3bac 5144
bf9f3bac 5145
bf9f3bac 5146
8934764e
BB
5147{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5148$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5149if test "${lt_cv_deplibs_check_method+set}" = set; then
5150 $as_echo_n "(cached) " >&6
bf9f3bac 5151else
8934764e
BB
5152 lt_cv_file_magic_cmd='$MAGIC_CMD'
5153lt_cv_file_magic_test_file=
5154lt_cv_deplibs_check_method='unknown'
5155# Need to set the preceding variable on all platforms that support
5156# interlibrary dependencies.
5157# 'none' -- dependencies not supported.
5158# `unknown' -- same as none, but documents that we really don't know.
5159# 'pass_all' -- all dependencies passed with no checks.
5160# 'test_compile' -- check by making test program.
5161# 'file_magic [[regex]]' -- check by looking for files in library path
5162# which responds to the $file_magic_cmd with a given extended regex.
5163# If you have `file' or equivalent on your system and you're not sure
5164# whether `pass_all' will *always* work, you probably want this one.
bf9f3bac 5165
8934764e
BB
5166case $host_os in
5167aix[4-9]*)
5168 lt_cv_deplibs_check_method=pass_all
5169 ;;
bf9f3bac 5170
8934764e
BB
5171beos*)
5172 lt_cv_deplibs_check_method=pass_all
5173 ;;
bf9f3bac 5174
8934764e
BB
5175bsdi[45]*)
5176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5177 lt_cv_file_magic_cmd='/usr/bin/file -L'
5178 lt_cv_file_magic_test_file=/shlib/libc.so
5179 ;;
bf9f3bac 5180
8934764e
BB
5181cygwin*)
5182 # func_win32_libid is a shell function defined in ltmain.sh
5183 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5184 lt_cv_file_magic_cmd='func_win32_libid'
5185 ;;
bf9f3bac 5186
8934764e
BB
5187mingw* | pw32*)
5188 # Base MSYS/MinGW do not provide the 'file' command needed by
5189 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5190 # unless we find 'file', for example because we are cross-compiling.
5191 if ( file / ) >/dev/null 2>&1; then
5192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5193 lt_cv_file_magic_cmd='func_win32_libid'
5194 else
5195 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5196 lt_cv_file_magic_cmd='$OBJDUMP -f'
5197 fi
5198 ;;
bf9f3bac 5199
8934764e
BB
5200cegcc)
5201 # use the weaker test based on 'objdump'. See mingw*.
5202 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5203 lt_cv_file_magic_cmd='$OBJDUMP -f'
5204 ;;
bf9f3bac 5205
8934764e
BB
5206darwin* | rhapsody*)
5207 lt_cv_deplibs_check_method=pass_all
5208 ;;
bf9f3bac 5209
8934764e
BB
5210freebsd* | dragonfly*)
5211 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5212 case $host_cpu in
5213 i*86 )
5214 # Not sure whether the presence of OpenBSD here was a mistake.
5215 # Let's accept both of them until this is cleared up.
5216 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5217 lt_cv_file_magic_cmd=/usr/bin/file
5218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5219 ;;
5220 esac
5221 else
5222 lt_cv_deplibs_check_method=pass_all
5223 fi
5224 ;;
bf9f3bac 5225
8934764e
BB
5226gnu*)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
bf9f3bac 5229
8934764e
BB
5230hpux10.20* | hpux11*)
5231 lt_cv_file_magic_cmd=/usr/bin/file
5232 case $host_cpu in
5233 ia64*)
5234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5235 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5236 ;;
5237 hppa*64*)
5238 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]'
5239 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5240 ;;
5241 *)
5242 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5243 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5244 ;;
5245 esac
5246 ;;
bf9f3bac 5247
8934764e
BB
5248interix[3-9]*)
5249 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5251 ;;
bf9f3bac 5252
8934764e
BB
5253irix5* | irix6* | nonstopux*)
5254 case $LD in
5255 *-32|*"-32 ") libmagic=32-bit;;
5256 *-n32|*"-n32 ") libmagic=N32;;
5257 *-64|*"-64 ") libmagic=64-bit;;
5258 *) libmagic=never-match;;
5259 esac
5260 lt_cv_deplibs_check_method=pass_all
5261 ;;
bf9f3bac 5262
8934764e
BB
5263# This must be Linux ELF.
5264linux* | k*bsd*-gnu)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
bf9f3bac 5267
8934764e
BB
5268netbsd*)
5269 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5271 else
5272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5273 fi
5274 ;;
bf9f3bac 5275
8934764e
BB
5276newos6*)
5277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5278 lt_cv_file_magic_cmd=/usr/bin/file
5279 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5280 ;;
bf9f3bac 5281
8934764e
BB
5282*nto* | *qnx*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
bf9f3bac 5285
8934764e
BB
5286openbsd*)
5287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5289 else
5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5291 fi
5292 ;;
bf9f3bac 5293
8934764e
BB
5294osf3* | osf4* | osf5*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
bf9f3bac 5297
8934764e
BB
5298rdos*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
bf9f3bac 5301
8934764e
BB
5302solaris*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
bf9f3bac 5305
8934764e
BB
5306sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5307 lt_cv_deplibs_check_method=pass_all
5308 ;;
bf9f3bac 5309
8934764e
BB
5310sysv4 | sysv4.3*)
5311 case $host_vendor in
5312 motorola)
5313 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]'
5314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
bf9f3bac 5315 ;;
8934764e
BB
5316 ncr)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319 sequent)
5320 lt_cv_file_magic_cmd='/bin/file'
5321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5322 ;;
5323 sni)
5324 lt_cv_file_magic_cmd='/bin/file'
5325 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5326 lt_cv_file_magic_test_file=/lib/libc.so
5327 ;;
5328 siemens)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331 pc)
5332 lt_cv_deplibs_check_method=pass_all
bf9f3bac 5333 ;;
8934764e
BB
5334 esac
5335 ;;
5336
5337tpf*)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
bf9f3bac 5340esac
bf9f3bac 5341
5342fi
8934764e
BB
5343{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5344$as_echo "$lt_cv_deplibs_check_method" >&6; }
5345file_magic_cmd=$lt_cv_file_magic_cmd
5346deplibs_check_method=$lt_cv_deplibs_check_method
5347test -z "$deplibs_check_method" && deplibs_check_method=unknown
5348
5349
5350
5351
5352
5353
5354
5355
5356
bf9f3bac 5357
bf9f3bac 5358
bf9f3bac 5359
bf9f3bac 5360if test -n "$ac_tool_prefix"; then
8934764e
BB
5361 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5362set dummy ${ac_tool_prefix}ar; ac_word=$2
5363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5364$as_echo_n "checking for $ac_word... " >&6; }
5365if test "${ac_cv_prog_AR+set}" = set; then
5366 $as_echo_n "(cached) " >&6
bf9f3bac 5367else
8934764e
BB
5368 if test -n "$AR"; then
5369 ac_cv_prog_AR="$AR" # Let the user override the test.
bf9f3bac 5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_AR="${ac_tool_prefix}ar"
5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5380 break 2
5381 fi
5382done
5383done
8934764e 5384IFS=$as_save_IFS
bf9f3bac 5385
5386fi
5387fi
8934764e
BB
5388AR=$ac_cv_prog_AR
5389if test -n "$AR"; then
5390 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5391$as_echo "$AR" >&6; }
bf9f3bac 5392else
8934764e
BB
5393 { $as_echo "$as_me:$LINENO: result: no" >&5
5394$as_echo "no" >&6; }
bf9f3bac 5395fi
5396
8934764e 5397
bf9f3bac 5398fi
8934764e
BB
5399if test -z "$ac_cv_prog_AR"; then
5400 ac_ct_AR=$AR
5401 # Extract the first word of "ar", so it can be a program name with args.
5402set dummy ar; ac_word=$2
5403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5404$as_echo_n "checking for $ac_word... " >&6; }
5405if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5406 $as_echo_n "(cached) " >&6
bf9f3bac 5407else
8934764e
BB
5408 if test -n "$ac_ct_AR"; then
5409 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
bf9f3bac 5410else
5411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412for as_dir in $PATH
5413do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_AR="ar"
5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5420 break 2
5421 fi
5422done
5423done
8934764e 5424IFS=$as_save_IFS
bf9f3bac 5425
5426fi
5427fi
8934764e
BB
5428ac_ct_AR=$ac_cv_prog_ac_ct_AR
5429if test -n "$ac_ct_AR"; then
5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5431$as_echo "$ac_ct_AR" >&6; }
bf9f3bac 5432else
8934764e
BB
5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5434$as_echo "no" >&6; }
bf9f3bac 5435fi
5436
8934764e
BB
5437 if test "x$ac_ct_AR" = x; then
5438 AR="false"
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441yes:)
5442{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444ac_tool_warned=yes ;;
5445esac
5446 AR=$ac_ct_AR
5447 fi
5448else
5449 AR="$ac_cv_prog_AR"
bf9f3bac 5450fi
5451
8934764e
BB
5452test -z "$AR" && AR=ar
5453test -z "$AR_FLAGS" && AR_FLAGS=cru
bf9f3bac 5454
bf9f3bac 5455
bf9f3bac 5456
bf9f3bac 5457
8934764e
BB
5458
5459
5460
5461
5462
5463
5464
5465if test -n "$ac_tool_prefix"; then
5466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5467set dummy ${ac_tool_prefix}strip; ac_word=$2
5468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5469$as_echo_n "checking for $ac_word... " >&6; }
5470if test "${ac_cv_prog_STRIP+set}" = set; then
5471 $as_echo_n "(cached) " >&6
bf9f3bac 5472else
8934764e
BB
5473 if test -n "$STRIP"; then
5474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5475else
5476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477for as_dir in $PATH
5478do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5486 fi
5487done
5488done
5489IFS=$as_save_IFS
bf9f3bac 5490
bf9f3bac 5491fi
bf9f3bac 5492fi
8934764e
BB
5493STRIP=$ac_cv_prog_STRIP
5494if test -n "$STRIP"; then
5495 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5496$as_echo "$STRIP" >&6; }
bf9f3bac 5497else
8934764e
BB
5498 { $as_echo "$as_me:$LINENO: result: no" >&5
5499$as_echo "no" >&6; }
5500fi
bf9f3bac 5501
bf9f3bac 5502
8934764e
BB
5503fi
5504if test -z "$ac_cv_prog_STRIP"; then
5505 ac_ct_STRIP=$STRIP
5506 # Extract the first word of "strip", so it can be a program name with args.
5507set dummy strip; ac_word=$2
5508{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5509$as_echo_n "checking for $ac_word... " >&6; }
5510if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5511 $as_echo_n "(cached) " >&6
bf9f3bac 5512else
8934764e
BB
5513 if test -n "$ac_ct_STRIP"; then
5514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5515else
5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517for as_dir in $PATH
5518do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_ac_ct_STRIP="strip"
5524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527done
5528done
5529IFS=$as_save_IFS
bf9f3bac 5530
bf9f3bac 5531fi
bf9f3bac 5532fi
8934764e
BB
5533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5534if test -n "$ac_ct_STRIP"; then
5535 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5536$as_echo "$ac_ct_STRIP" >&6; }
bf9f3bac 5537else
8934764e
BB
5538 { $as_echo "$as_me:$LINENO: result: no" >&5
5539$as_echo "no" >&6; }
5540fi
5541
5542 if test "x$ac_ct_STRIP" = x; then
5543 STRIP=":"
bf9f3bac 5544 else
8934764e
BB
5545 case $cross_compiling:$ac_tool_warned in
5546yes:)
5547{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5549ac_tool_warned=yes ;;
5550esac
5551 STRIP=$ac_ct_STRIP
bf9f3bac 5552 fi
8934764e
BB
5553else
5554 STRIP="$ac_cv_prog_STRIP"
bf9f3bac 5555fi
bf9f3bac 5556
8934764e 5557test -z "$STRIP" && STRIP=:
bf9f3bac 5558
bf9f3bac 5559
bf9f3bac 5560
bf9f3bac 5561
bf9f3bac 5562
bf9f3bac 5563
8934764e
BB
5564if test -n "$ac_tool_prefix"; then
5565 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5566set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5568$as_echo_n "checking for $ac_word... " >&6; }
5569if test "${ac_cv_prog_RANLIB+set}" = set; then
5570 $as_echo_n "(cached) " >&6
bf9f3bac 5571else
8934764e
BB
5572 if test -n "$RANLIB"; then
5573 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5574else
5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584 break 2
5585 fi
5586done
5587done
5588IFS=$as_save_IFS
bf9f3bac 5589
5590fi
8934764e
BB
5591fi
5592RANLIB=$ac_cv_prog_RANLIB
5593if test -n "$RANLIB"; then
5594 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5595$as_echo "$RANLIB" >&6; }
bf9f3bac 5596else
8934764e
BB
5597 { $as_echo "$as_me:$LINENO: result: no" >&5
5598$as_echo "no" >&6; }
bf9f3bac 5599fi
5600
5601
8934764e
BB
5602fi
5603if test -z "$ac_cv_prog_RANLIB"; then
5604 ac_ct_RANLIB=$RANLIB
5605 # Extract the first word of "ranlib", so it can be a program name with args.
5606set dummy ranlib; ac_word=$2
5607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5608$as_echo_n "checking for $ac_word... " >&6; }
5609if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5610 $as_echo_n "(cached) " >&6
bf9f3bac 5611else
8934764e
BB
5612 if test -n "$ac_ct_RANLIB"; then
5613 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
bf9f3bac 5617do
8934764e
BB
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_prog_ac_ct_RANLIB="ranlib"
5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
bf9f3bac 5625 fi
8934764e
BB
5626done
5627done
5628IFS=$as_save_IFS
5629
bf9f3bac 5630fi
8934764e
BB
5631fi
5632ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5633if test -n "$ac_ct_RANLIB"; then
5634 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5635$as_echo "$ac_ct_RANLIB" >&6; }
bf9f3bac 5636else
8934764e
BB
5637 { $as_echo "$as_me:$LINENO: result: no" >&5
5638$as_echo "no" >&6; }
bf9f3bac 5639fi
bf9f3bac 5640
8934764e
BB
5641 if test "x$ac_ct_RANLIB" = x; then
5642 RANLIB=":"
bf9f3bac 5643 else
8934764e
BB
5644 case $cross_compiling:$ac_tool_warned in
5645yes:)
5646{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648ac_tool_warned=yes ;;
5649esac
5650 RANLIB=$ac_ct_RANLIB
bf9f3bac 5651 fi
5652else
8934764e 5653 RANLIB="$ac_cv_prog_RANLIB"
bf9f3bac 5654fi
bf9f3bac 5655
8934764e 5656test -z "$RANLIB" && RANLIB=:
bf9f3bac 5657
bf9f3bac 5658
bf9f3bac 5659
bf9f3bac 5660
bf9f3bac 5661
bf9f3bac 5662
8934764e
BB
5663# Determine commands to create old-style static archives.
5664old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5665old_postinstall_cmds='chmod 644 $oldlib'
5666old_postuninstall_cmds=
bf9f3bac 5667
8934764e
BB
5668if test -n "$RANLIB"; then
5669 case $host_os in
5670 openbsd*)
5671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5672 ;;
5673 *)
5674 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5675 ;;
5676 esac
5677 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
bf9f3bac 5678fi
5679
bf9f3bac 5680
bf9f3bac 5681
5682
bf9f3bac 5683
bf9f3bac 5684
bf9f3bac 5685
bf9f3bac 5686
bf9f3bac 5687
bf9f3bac 5688
5689
bf9f3bac 5690
bf9f3bac 5691
bf9f3bac 5692
bf9f3bac 5693
bf9f3bac 5694
bf9f3bac 5695
bf9f3bac 5696
bf9f3bac 5697
bf9f3bac 5698
5699
5700
bf9f3bac 5701
bf9f3bac 5702
bf9f3bac 5703
bf9f3bac 5704
bf9f3bac 5705
bf9f3bac 5706
bf9f3bac 5707
bf9f3bac 5708
bf9f3bac 5709
bf9f3bac 5710
bf9f3bac 5711
5712
8934764e
BB
5713# If no C compiler was specified, use CC.
5714LTCC=${LTCC-"$CC"}
5715
5716# If no C compiler flags were specified, use CFLAGS.
5717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5718
5719# Allow CC to be a program name with arguments.
5720compiler=$CC
bf9f3bac 5721
5722
5723# Check for command to grab the raw symbol name followed by C symbol from nm.
8934764e
BB
5724{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5725$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
bf9f3bac 5726if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8934764e 5727 $as_echo_n "(cached) " >&6
bf9f3bac 5728else
5729
5730# These are sane defaults that work on at least a few old systems.
5731# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5732
5733# Character class describing NM global symbol codes.
5734symcode='[BCDEGRST]'
5735
5736# Regexp to match symbols that can be accessed directly from C.
5737sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5738
bf9f3bac 5739# Define system-specific variables.
5740case $host_os in
5741aix*)
5742 symcode='[BCDT]'
5743 ;;
8934764e 5744cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 5745 symcode='[ABCDGISTW]'
5746 ;;
8934764e 5747hpux*)
bf9f3bac 5748 if test "$host_cpu" = ia64; then
5749 symcode='[ABCDEGRST]'
5750 fi
bf9f3bac 5751 ;;
5752irix* | nonstopux*)
5753 symcode='[BCDEGRST]'
5754 ;;
5755osf*)
5756 symcode='[BCDEGQRST]'
5757 ;;
5758solaris*)
5759 symcode='[BDRT]'
5760 ;;
5761sco3.2v5*)
5762 symcode='[DT]'
5763 ;;
5764sysv4.2uw2*)
5765 symcode='[DT]'
5766 ;;
5767sysv5* | sco5v6* | unixware* | OpenUNIX*)
5768 symcode='[ABDT]'
5769 ;;
5770sysv4)
5771 symcode='[DFNSTU]'
5772 ;;
5773esac
5774
8934764e
BB
5775# If we're using GNU nm, then use its standard symbol codes.
5776case `$NM -V 2>&1` in
5777*GNU* | *'with BFD'*)
5778 symcode='[ABCDGIRSTW]' ;;
5779esac
5780
5781# Transform an extracted symbol line into a proper C declaration.
5782# Some systems (esp. on ia64) link data and code symbols differently,
5783# so use this general approach.
5784lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5785
5786# Transform an extracted symbol line into symbol name and symbol address
5787lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5788lt_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'"
5789
bf9f3bac 5790# Handle CRLF in mingw tool chain
5791opt_cr=
5792case $build_os in
5793mingw*)
8934764e 5794 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
bf9f3bac 5795 ;;
5796esac
5797
8934764e 5798# Try without a prefix underscore, then with it.
bf9f3bac 5799for ac_symprfx in "" "_"; do
5800
5801 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5802 symxfrm="\\1 $ac_symprfx\\2 \\2"
5803
5804 # Write the raw and C identifiers.
8934764e
BB
5805 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5806 # Fake it for dumpbin and say T for any non-static function
5807 # and D for any global variable.
5808 # Also find C++ and __fastcall symbols from MSVC++,
5809 # which start with @ or ?.
5810 lt_cv_sys_global_symbol_pipe="$AWK '"\
5811" {last_section=section; section=\$ 3};"\
5812" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5813" \$ 0!~/External *\|/{next};"\
5814" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5815" {if(hide[section]) next};"\
5816" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5817" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5818" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5819" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5820" ' prfx=^$ac_symprfx"
5821 else
5822 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5823 fi
bf9f3bac 5824
5825 # Check to see that the pipe works correctly.
5826 pipe_works=no
5827
5828 rm -f conftest*
8934764e 5829 cat > conftest.$ac_ext <<_LT_EOF
bf9f3bac 5830#ifdef __cplusplus
5831extern "C" {
5832#endif
5833char nm_test_var;
8934764e
BB
5834void nm_test_func(void);
5835void nm_test_func(void){}
bf9f3bac 5836#ifdef __cplusplus
5837}
5838#endif
5839int main(){nm_test_var='a';nm_test_func();return(0);}
8934764e 5840_LT_EOF
bf9f3bac 5841
5842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843 (eval $ac_compile) 2>&5
5844 ac_status=$?
8934764e 5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5846 (exit $ac_status); }; then
5847 # Now try to grab the symbols.
5848 nlist=conftest.nm
5849 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5850 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5851 ac_status=$?
8934764e 5852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5853 (exit $ac_status); } && test -s "$nlist"; then
5854 # Try sorting and uniquifying the output.
5855 if sort "$nlist" | uniq > "$nlist"T; then
5856 mv -f "$nlist"T "$nlist"
5857 else
5858 rm -f "$nlist"T
5859 fi
5860
5861 # Make sure that we snagged all the symbols we need.
8934764e
BB
5862 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5863 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5864 cat <<_LT_EOF > conftest.$ac_ext
bf9f3bac 5865#ifdef __cplusplus
5866extern "C" {
5867#endif
5868
8934764e 5869_LT_EOF
bf9f3bac 5870 # Now generate the symbol file.
8934764e 5871 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
bf9f3bac 5872
8934764e 5873 cat <<_LT_EOF >> conftest.$ac_ext
bf9f3bac 5874
8934764e 5875/* The mapping between symbol names and symbols. */
bf9f3bac 5876const struct {
5877 const char *name;
8934764e 5878 void *address;
bf9f3bac 5879}
8934764e 5880lt__PROGRAM__LTX_preloaded_symbols[] =
bf9f3bac 5881{
8934764e
BB
5882 { "@PROGRAM@", (void *) 0 },
5883_LT_EOF
5884 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5885 cat <<\_LT_EOF >> conftest.$ac_ext
5886 {0, (void *) 0}
bf9f3bac 5887};
5888
8934764e
BB
5889/* This works around a problem in FreeBSD linker */
5890#ifdef FREEBSD_WORKAROUND
5891static const void *lt_preloaded_setup() {
5892 return lt__PROGRAM__LTX_preloaded_symbols;
5893}
5894#endif
5895
bf9f3bac 5896#ifdef __cplusplus
5897}
5898#endif
8934764e 5899_LT_EOF
bf9f3bac 5900 # Now try linking the two files.
5901 mv conftest.$ac_objext conftstm.$ac_objext
5902 lt_save_LIBS="$LIBS"
5903 lt_save_CFLAGS="$CFLAGS"
5904 LIBS="conftstm.$ac_objext"
5905 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907 (eval $ac_link) 2>&5
5908 ac_status=$?
8934764e 5909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5910 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5911 pipe_works=yes
5912 fi
5913 LIBS="$lt_save_LIBS"
5914 CFLAGS="$lt_save_CFLAGS"
5915 else
5916 echo "cannot find nm_test_func in $nlist" >&5
5917 fi
5918 else
5919 echo "cannot find nm_test_var in $nlist" >&5
5920 fi
5921 else
5922 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5923 fi
5924 else
5925 echo "$progname: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5927 fi
8934764e 5928 rm -rf conftest* conftst*
bf9f3bac 5929
5930 # Do not use the global_symbol_pipe unless it works.
5931 if test "$pipe_works" = yes; then
5932 break
5933 else
5934 lt_cv_sys_global_symbol_pipe=
5935 fi
5936done
5937
5938fi
5939
5940if test -z "$lt_cv_sys_global_symbol_pipe"; then
5941 lt_cv_sys_global_symbol_to_cdecl=
5942fi
5943if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8934764e
BB
5944 { $as_echo "$as_me:$LINENO: result: failed" >&5
5945$as_echo "failed" >&6; }
bf9f3bac 5946else
8934764e
BB
5947 { $as_echo "$as_me:$LINENO: result: ok" >&5
5948$as_echo "ok" >&6; }
bf9f3bac 5949fi
5950
bf9f3bac 5951
5952
5953
5954
5955
8934764e
BB
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973# Check whether --enable-libtool-lock was given.
5974if test "${enable_libtool_lock+set}" = set; then
5975 enableval=$enable_libtool_lock;
5976fi
5977
5978test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5979
5980# Some flags need to be propagated to the compiler or linker for good
5981# libtool support.
5982case $host in
5983ia64-*-hpux*)
5984 # Find out which ABI we are using.
5985 echo 'int i;' > conftest.$ac_ext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>&5
5988 ac_status=$?
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); }; then
5991 case `/usr/bin/file conftest.$ac_objext` in
5992 *ELF-32*)
5993 HPUX_IA64_MODE="32"
5994 ;;
5995 *ELF-64*)
5996 HPUX_IA64_MODE="64"
5997 ;;
5998 esac
bf9f3bac 5999 fi
8934764e
BB
6000 rm -rf conftest*
6001 ;;
6002*-*-irix6*)
6003 # Find out which ABI we are using.
3c208a54 6004 echo '#line 6004 "configure"' > conftest.$ac_ext
8934764e
BB
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>&5
6007 ac_status=$?
6008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; then
6010 if test "$lt_cv_prog_gnu_ld" = yes; then
6011 case `/usr/bin/file conftest.$ac_objext` in
6012 *32-bit*)
6013 LD="${LD-ld} -melf32bsmip"
6014 ;;
6015 *N32*)
6016 LD="${LD-ld} -melf32bmipn32"
6017 ;;
6018 *64-bit*)
6019 LD="${LD-ld} -melf64bmip"
6020 ;;
6021 esac
6022 else
6023 case `/usr/bin/file conftest.$ac_objext` in
6024 *32-bit*)
6025 LD="${LD-ld} -32"
6026 ;;
6027 *N32*)
6028 LD="${LD-ld} -n32"
6029 ;;
6030 *64-bit*)
6031 LD="${LD-ld} -64"
6032 ;;
6033 esac
6034 fi
6035 fi
6036 rm -rf conftest*
bf9f3bac 6037 ;;
bf9f3bac 6038
8934764e
BB
6039x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6040s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6041 # Find out which ABI we are using.
6042 echo 'int i;' > conftest.$ac_ext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>&5
6045 ac_status=$?
6046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); }; then
6048 case `/usr/bin/file conftest.o` in
6049 *32-bit*)
6050 case $host in
6051 x86_64-*kfreebsd*-gnu)
6052 LD="${LD-ld} -m elf_i386_fbsd"
6053 ;;
6054 x86_64-*linux*)
6055 LD="${LD-ld} -m elf_i386"
6056 ;;
6057 ppc64-*linux*|powerpc64-*linux*)
6058 LD="${LD-ld} -m elf32ppclinux"
6059 ;;
6060 s390x-*linux*)
6061 LD="${LD-ld} -m elf_s390"
6062 ;;
6063 sparc64-*linux*)
6064 LD="${LD-ld} -m elf32_sparc"
6065 ;;
6066 esac
6067 ;;
6068 *64-bit*)
6069 case $host in
6070 x86_64-*kfreebsd*-gnu)
6071 LD="${LD-ld} -m elf_x86_64_fbsd"
6072 ;;
6073 x86_64-*linux*)
6074 LD="${LD-ld} -m elf_x86_64"
6075 ;;
6076 ppc*-*linux*|powerpc*-*linux*)
6077 LD="${LD-ld} -m elf64ppc"
6078 ;;
6079 s390*-*linux*|s390*-*tpf*)
6080 LD="${LD-ld} -m elf64_s390"
6081 ;;
6082 sparc*-*linux*)
6083 LD="${LD-ld} -m elf64_sparc"
6084 ;;
6085 esac
6086 ;;
6087 esac
6088 fi
6089 rm -rf conftest*
6090 ;;
bf9f3bac 6091
8934764e
BB
6092*-*-sco3.2v5*)
6093 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6094 SAVE_CFLAGS="$CFLAGS"
6095 CFLAGS="$CFLAGS -belf"
6096 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6097$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6098if test "${lt_cv_cc_needs_belf+set}" = set; then
6099 $as_echo_n "(cached) " >&6
6100else
6101 ac_ext=c
6102ac_cpp='$CPP $CPPFLAGS'
6103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6105ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6106
8934764e
BB
6107 cat >conftest.$ac_ext <<_ACEOF
6108/* confdefs.h. */
6109_ACEOF
6110cat confdefs.h >>conftest.$ac_ext
6111cat >>conftest.$ac_ext <<_ACEOF
6112/* end confdefs.h. */
bf9f3bac 6113
8934764e
BB
6114int
6115main ()
6116{
6117
6118 ;
6119 return 0;
6120}
6121_ACEOF
6122rm -f conftest.$ac_objext conftest$ac_exeext
6123if { (ac_try="$ac_link"
6124case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6129$as_echo "$ac_try_echo") >&5
6130 (eval "$ac_link") 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && {
6137 test -z "$ac_c_werror_flag" ||
6138 test ! -s conftest.err
6139 } && test -s conftest$ac_exeext && {
6140 test "$cross_compiling" = yes ||
6141 $as_test_x conftest$ac_exeext
6142 }; then
6143 lt_cv_cc_needs_belf=yes
6144else
6145 $as_echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6147
8934764e
BB
6148 lt_cv_cc_needs_belf=no
6149fi
bf9f3bac 6150
8934764e
BB
6151rm -rf conftest.dSYM
6152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6153 conftest$ac_exeext conftest.$ac_ext
6154 ac_ext=c
6155ac_cpp='$CPP $CPPFLAGS'
6156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6159
8934764e
BB
6160fi
6161{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6162$as_echo "$lt_cv_cc_needs_belf" >&6; }
6163 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6164 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6165 CFLAGS="$SAVE_CFLAGS"
6166 fi
6167 ;;
6168sparc*-*solaris*)
6169 # Find out which ABI we are using.
6170 echo 'int i;' > conftest.$ac_ext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>&5
6173 ac_status=$?
6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; then
6176 case `/usr/bin/file conftest.o` in
6177 *64-bit*)
6178 case $lt_cv_prog_gnu_ld in
6179 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6180 *)
6181 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6182 LD="${LD-ld} -64"
6183 fi
6184 ;;
6185 esac
6186 ;;
6187 esac
6188 fi
6189 rm -rf conftest*
6190 ;;
6191esac
bf9f3bac 6192
8934764e
BB
6193need_locks="$enable_libtool_lock"
6194
6195
6196 case $host_os in
6197 rhapsody* | darwin*)
6198 if test -n "$ac_tool_prefix"; then
6199 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6200set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6201{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6204 $as_echo_n "(cached) " >&6
6205else
6206 if test -n "$DSYMUTIL"; then
6207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
bf9f3bac 6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212 IFS=$as_save_IFS
6213 test -z "$as_dir" && as_dir=.
6214 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6218 break 2
6219 fi
6220done
6221done
8934764e 6222IFS=$as_save_IFS
bf9f3bac 6223
6224fi
6225fi
8934764e
BB
6226DSYMUTIL=$ac_cv_prog_DSYMUTIL
6227if test -n "$DSYMUTIL"; then
6228 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6229$as_echo "$DSYMUTIL" >&6; }
bf9f3bac 6230else
8934764e
BB
6231 { $as_echo "$as_me:$LINENO: result: no" >&5
6232$as_echo "no" >&6; }
bf9f3bac 6233fi
6234
8934764e 6235
bf9f3bac 6236fi
8934764e
BB
6237if test -z "$ac_cv_prog_DSYMUTIL"; then
6238 ac_ct_DSYMUTIL=$DSYMUTIL
6239 # Extract the first word of "dsymutil", so it can be a program name with args.
6240set dummy dsymutil; ac_word=$2
6241{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6242$as_echo_n "checking for $ac_word... " >&6; }
6243if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6244 $as_echo_n "(cached) " >&6
bf9f3bac 6245else
8934764e
BB
6246 if test -n "$ac_ct_DSYMUTIL"; then
6247 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
bf9f3bac 6248else
6249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250for as_dir in $PATH
6251do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6258 break 2
6259 fi
6260done
6261done
8934764e 6262IFS=$as_save_IFS
bf9f3bac 6263
bf9f3bac 6264fi
6265fi
8934764e
BB
6266ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6267if test -n "$ac_ct_DSYMUTIL"; then
6268 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6269$as_echo "$ac_ct_DSYMUTIL" >&6; }
bf9f3bac 6270else
8934764e
BB
6271 { $as_echo "$as_me:$LINENO: result: no" >&5
6272$as_echo "no" >&6; }
bf9f3bac 6273fi
6274
8934764e
BB
6275 if test "x$ac_ct_DSYMUTIL" = x; then
6276 DSYMUTIL=":"
6277 else
6278 case $cross_compiling:$ac_tool_warned in
6279yes:)
6280{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6282ac_tool_warned=yes ;;
6283esac
6284 DSYMUTIL=$ac_ct_DSYMUTIL
6285 fi
bf9f3bac 6286else
8934764e 6287 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
bf9f3bac 6288fi
6289
8934764e
BB
6290 if test -n "$ac_tool_prefix"; then
6291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6292set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6293{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6294$as_echo_n "checking for $ac_word... " >&6; }
6295if test "${ac_cv_prog_NMEDIT+set}" = set; then
6296 $as_echo_n "(cached) " >&6
bf9f3bac 6297else
8934764e
BB
6298 if test -n "$NMEDIT"; then
6299 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
bf9f3bac 6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304 IFS=$as_save_IFS
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6310 break 2
6311 fi
6312done
6313done
8934764e 6314IFS=$as_save_IFS
bf9f3bac 6315
6316fi
6317fi
8934764e
BB
6318NMEDIT=$ac_cv_prog_NMEDIT
6319if test -n "$NMEDIT"; then
6320 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6321$as_echo "$NMEDIT" >&6; }
bf9f3bac 6322else
8934764e
BB
6323 { $as_echo "$as_me:$LINENO: result: no" >&5
6324$as_echo "no" >&6; }
bf9f3bac 6325fi
6326
8934764e 6327
bf9f3bac 6328fi
8934764e
BB
6329if test -z "$ac_cv_prog_NMEDIT"; then
6330 ac_ct_NMEDIT=$NMEDIT
6331 # Extract the first word of "nmedit", so it can be a program name with args.
6332set dummy nmedit; ac_word=$2
6333{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6334$as_echo_n "checking for $ac_word... " >&6; }
6335if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6336 $as_echo_n "(cached) " >&6
bf9f3bac 6337else
8934764e
BB
6338 if test -n "$ac_ct_NMEDIT"; then
6339 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
bf9f3bac 6340else
6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6350 break 2
6351 fi
6352done
6353done
8934764e 6354IFS=$as_save_IFS
bf9f3bac 6355
bf9f3bac 6356fi
6357fi
8934764e
BB
6358ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6359if test -n "$ac_ct_NMEDIT"; then
6360 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6361$as_echo "$ac_ct_NMEDIT" >&6; }
bf9f3bac 6362else
8934764e
BB
6363 { $as_echo "$as_me:$LINENO: result: no" >&5
6364$as_echo "no" >&6; }
bf9f3bac 6365fi
6366
8934764e
BB
6367 if test "x$ac_ct_NMEDIT" = x; then
6368 NMEDIT=":"
6369 else
6370 case $cross_compiling:$ac_tool_warned in
6371yes:)
6372{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374ac_tool_warned=yes ;;
6375esac
6376 NMEDIT=$ac_ct_NMEDIT
6377 fi
bf9f3bac 6378else
8934764e 6379 NMEDIT="$ac_cv_prog_NMEDIT"
bf9f3bac 6380fi
6381
8934764e
BB
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6384set dummy ${ac_tool_prefix}lipo; ac_word=$2
6385{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6386$as_echo_n "checking for $ac_word... " >&6; }
6387if test "${ac_cv_prog_LIPO+set}" = set; then
6388 $as_echo_n "(cached) " >&6
bf9f3bac 6389else
8934764e
BB
6390 if test -n "$LIPO"; then
6391 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
bf9f3bac 6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6402 break 2
6403 fi
6404done
6405done
8934764e 6406IFS=$as_save_IFS
bf9f3bac 6407
6408fi
6409fi
8934764e
BB
6410LIPO=$ac_cv_prog_LIPO
6411if test -n "$LIPO"; then
6412 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6413$as_echo "$LIPO" >&6; }
bf9f3bac 6414else
8934764e
BB
6415 { $as_echo "$as_me:$LINENO: result: no" >&5
6416$as_echo "no" >&6; }
bf9f3bac 6417fi
6418
8934764e 6419
bf9f3bac 6420fi
8934764e
BB
6421if test -z "$ac_cv_prog_LIPO"; then
6422 ac_ct_LIPO=$LIPO
6423 # Extract the first word of "lipo", so it can be a program name with args.
6424set dummy lipo; ac_word=$2
6425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
6427if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6428 $as_echo_n "(cached) " >&6
bf9f3bac 6429else
8934764e
BB
6430 if test -n "$ac_ct_LIPO"; then
6431 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
bf9f3bac 6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_LIPO="lipo"
6441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6442 break 2
6443 fi
6444done
6445done
8934764e 6446IFS=$as_save_IFS
bf9f3bac 6447
bf9f3bac 6448fi
6449fi
8934764e
BB
6450ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6451if test -n "$ac_ct_LIPO"; then
6452 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6453$as_echo "$ac_ct_LIPO" >&6; }
bf9f3bac 6454else
8934764e
BB
6455 { $as_echo "$as_me:$LINENO: result: no" >&5
6456$as_echo "no" >&6; }
bf9f3bac 6457fi
6458
8934764e
BB
6459 if test "x$ac_ct_LIPO" = x; then
6460 LIPO=":"
6461 else
6462 case $cross_compiling:$ac_tool_warned in
6463yes:)
6464{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6465$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466ac_tool_warned=yes ;;
6467esac
6468 LIPO=$ac_ct_LIPO
6469 fi
bf9f3bac 6470else
8934764e 6471 LIPO="$ac_cv_prog_LIPO"
bf9f3bac 6472fi
6473
8934764e
BB
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6476set dummy ${ac_tool_prefix}otool; ac_word=$2
6477{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478$as_echo_n "checking for $ac_word... " >&6; }
6479if test "${ac_cv_prog_OTOOL+set}" = set; then
6480 $as_echo_n "(cached) " >&6
6481else
6482 if test -n "$OTOOL"; then
6483 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6484else
6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
bf9f3bac 6496done
8934764e
BB
6497done
6498IFS=$as_save_IFS
bf9f3bac 6499
8934764e
BB
6500fi
6501fi
6502OTOOL=$ac_cv_prog_OTOOL
6503if test -n "$OTOOL"; then
6504 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6505$as_echo "$OTOOL" >&6; }
bf9f3bac 6506else
8934764e
BB
6507 { $as_echo "$as_me:$LINENO: result: no" >&5
6508$as_echo "no" >&6; }
6509fi
bf9f3bac 6510
bf9f3bac 6511
bf9f3bac 6512fi
8934764e
BB
6513if test -z "$ac_cv_prog_OTOOL"; then
6514 ac_ct_OTOOL=$OTOOL
6515 # Extract the first word of "otool", so it can be a program name with args.
6516set dummy otool; ac_word=$2
6517{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518$as_echo_n "checking for $ac_word... " >&6; }
6519if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6520 $as_echo_n "(cached) " >&6
bf9f3bac 6521else
8934764e
BB
6522 if test -n "$ac_ct_OTOOL"; then
6523 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
bf9f3bac 6524else
8934764e
BB
6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_ac_ct_OTOOL="otool"
6533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536done
6537done
6538IFS=$as_save_IFS
bf9f3bac 6539
bf9f3bac 6540fi
8934764e
BB
6541fi
6542ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6543if test -n "$ac_ct_OTOOL"; then
6544 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6545$as_echo "$ac_ct_OTOOL" >&6; }
bf9f3bac 6546else
8934764e
BB
6547 { $as_echo "$as_me:$LINENO: result: no" >&5
6548$as_echo "no" >&6; }
bf9f3bac 6549fi
6550
8934764e
BB
6551 if test "x$ac_ct_OTOOL" = x; then
6552 OTOOL=":"
bf9f3bac 6553 else
8934764e
BB
6554 case $cross_compiling:$ac_tool_warned in
6555yes:)
6556{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558ac_tool_warned=yes ;;
6559esac
6560 OTOOL=$ac_ct_OTOOL
bf9f3bac 6561 fi
8934764e
BB
6562else
6563 OTOOL="$ac_cv_prog_OTOOL"
bf9f3bac 6564fi
6565
8934764e
BB
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6568set dummy ${ac_tool_prefix}otool64; ac_word=$2
6569{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6570$as_echo_n "checking for $ac_word... " >&6; }
6571if test "${ac_cv_prog_OTOOL64+set}" = set; then
6572 $as_echo_n "(cached) " >&6
6573else
6574 if test -n "$OTOOL64"; then
6575 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6576else
6577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578for as_dir in $PATH
6579do
6580 IFS=$as_save_IFS
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 break 2
bf9f3bac 6587 fi
8934764e
BB
6588done
6589done
6590IFS=$as_save_IFS
bf9f3bac 6591
8934764e
BB
6592fi
6593fi
6594OTOOL64=$ac_cv_prog_OTOOL64
6595if test -n "$OTOOL64"; then
6596 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6597$as_echo "$OTOOL64" >&6; }
6598else
6599 { $as_echo "$as_me:$LINENO: result: no" >&5
6600$as_echo "no" >&6; }
6601fi
bf9f3bac 6602
bf9f3bac 6603
8934764e
BB
6604fi
6605if test -z "$ac_cv_prog_OTOOL64"; then
6606 ac_ct_OTOOL64=$OTOOL64
6607 # Extract the first word of "otool64", so it can be a program name with args.
6608set dummy otool64; ac_word=$2
6609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
6611if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6612 $as_echo_n "(cached) " >&6
6613else
6614 if test -n "$ac_ct_OTOOL64"; then
6615 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6616else
6617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618for as_dir in $PATH
6619do
6620 IFS=$as_save_IFS
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_ac_ct_OTOOL64="otool64"
6625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626 break 2
6627 fi
6628done
6629done
6630IFS=$as_save_IFS
bf9f3bac 6631
8934764e
BB
6632fi
6633fi
6634ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6635if test -n "$ac_ct_OTOOL64"; then
6636 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6637$as_echo "$ac_ct_OTOOL64" >&6; }
6638else
6639 { $as_echo "$as_me:$LINENO: result: no" >&5
6640$as_echo "no" >&6; }
6641fi
bf9f3bac 6642
8934764e
BB
6643 if test "x$ac_ct_OTOOL64" = x; then
6644 OTOOL64=":"
6645 else
6646 case $cross_compiling:$ac_tool_warned in
6647yes:)
6648{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6650ac_tool_warned=yes ;;
6651esac
6652 OTOOL64=$ac_ct_OTOOL64
6653 fi
bf9f3bac 6654else
8934764e
BB
6655 OTOOL64="$ac_cv_prog_OTOOL64"
6656fi
bf9f3bac 6657
bf9f3bac 6658
6659
bf9f3bac 6660
bf9f3bac 6661
bf9f3bac 6662
bf9f3bac 6663
6664
bf9f3bac 6665
bf9f3bac 6666
bf9f3bac 6667
6668
bf9f3bac 6669
bf9f3bac 6670
6671
6672
bf9f3bac 6673
bf9f3bac 6674
6675
bf9f3bac 6676
bf9f3bac 6677
8934764e
BB
6678
6679
6680
6681
6682
6683
6684 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6685$as_echo_n "checking for -single_module linker flag... " >&6; }
6686if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6687 $as_echo_n "(cached) " >&6
bf9f3bac 6688else
8934764e
BB
6689 lt_cv_apple_cc_single_mod=no
6690 if test -z "${LT_MULTI_MODULE}"; then
6691 # By default we will add the -single_module flag. You can override
6692 # by either setting the environment variable LT_MULTI_MODULE
6693 # non-empty at configure time, or by adding -multi_module to the
6694 # link flags.
6695 rm -rf libconftest.dylib*
6696 echo "int foo(void){return 1;}" > conftest.c
6697 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6698-dynamiclib -Wl,-single_module conftest.c" >&5
6699 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6700 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6701 _lt_result=$?
6702 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6703 lt_cv_apple_cc_single_mod=yes
6704 else
6705 cat conftest.err >&5
6706 fi
6707 rm -rf libconftest.dylib*
6708 rm -f conftest.*
6709 fi
bf9f3bac 6710fi
8934764e
BB
6711{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6712$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6713 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6714$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6715if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6716 $as_echo_n "(cached) " >&6
6717else
6718 lt_cv_ld_exported_symbols_list=no
6719 save_LDFLAGS=$LDFLAGS
6720 echo "_main" > conftest.sym
6721 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6722 cat >conftest.$ac_ext <<_ACEOF
6723/* confdefs.h. */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
6727/* end confdefs.h. */
bf9f3bac 6728
8934764e
BB
6729int
6730main ()
6731{
bf9f3bac 6732
8934764e
BB
6733 ;
6734 return 0;
6735}
6736_ACEOF
6737rm -f conftest.$ac_objext conftest$ac_exeext
6738if { (ac_try="$ac_link"
6739case "(($ac_try" in
6740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6742esac
6743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6744$as_echo "$ac_try_echo") >&5
6745 (eval "$ac_link") 2>conftest.er1
6746 ac_status=$?
6747 grep -v '^ *+' conftest.er1 >conftest.err
6748 rm -f conftest.er1
6749 cat conftest.err >&5
6750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } && {
6752 test -z "$ac_c_werror_flag" ||
6753 test ! -s conftest.err
6754 } && test -s conftest$ac_exeext && {
6755 test "$cross_compiling" = yes ||
6756 $as_test_x conftest$ac_exeext
6757 }; then
6758 lt_cv_ld_exported_symbols_list=yes
6759else
6760 $as_echo "$as_me: failed program was:" >&5
6761sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6762
8934764e
BB
6763 lt_cv_ld_exported_symbols_list=no
6764fi
bf9f3bac 6765
8934764e
BB
6766rm -rf conftest.dSYM
6767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6768 conftest$ac_exeext conftest.$ac_ext
6769 LDFLAGS="$save_LDFLAGS"
bf9f3bac 6770
8934764e
BB
6771fi
6772{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6773$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
bf9f3bac 6774 case $host_os in
8934764e
BB
6775 rhapsody* | darwin1.[012])
6776 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6777 darwin1.*)
6778 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6779 darwin*) # darwin 5.x on
6780 # if running on 10.5 or later, the deployment target defaults
6781 # to the OS version, if on x86, and 10.4, the deployment
6782 # target defaults to 10.4. Don't you love it?
6783 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6784 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6785 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6786 10.[012]*)
6787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6788 10.*)
6789 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6790 esac
6791 ;;
6792 esac
6793 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6794 _lt_dar_single_mod='$single_module'
6795 fi
6796 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6797 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6798 else
6799 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6800 fi
6801 if test "$DSYMUTIL" != ":"; then
6802 _lt_dsymutil='~$DSYMUTIL $lib || :'
6803 else
6804 _lt_dsymutil=
6805 fi
6806 ;;
6807 esac
bf9f3bac 6808
8934764e
BB
6809ac_ext=c
6810ac_cpp='$CPP $CPPFLAGS'
6811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6813ac_compiler_gnu=$ac_cv_c_compiler_gnu
6814{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6815$as_echo_n "checking how to run the C preprocessor... " >&6; }
6816# On Suns, sometimes $CPP names a directory.
6817if test -n "$CPP" && test -d "$CPP"; then
6818 CPP=
6819fi
6820if test -z "$CPP"; then
6821 if test "${ac_cv_prog_CPP+set}" = set; then
6822 $as_echo_n "(cached) " >&6
6823else
6824 # Double quotes because CPP needs to be expanded
6825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6826 do
6827 ac_preproc_ok=false
6828for ac_c_preproc_warn_flag in '' yes
6829do
6830 # Use a header file that comes with gcc, so configuring glibc
6831 # with a fresh cross-compiler works.
6832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 # <limits.h> exists even on freestanding compilers.
6834 # On the NeXT, cc -E runs the code through the compiler's parser,
6835 # not just through cpp. "Syntax error" is here to catch this case.
6836 cat >conftest.$ac_ext <<_ACEOF
6837/* confdefs.h. */
6838_ACEOF
6839cat confdefs.h >>conftest.$ac_ext
6840cat >>conftest.$ac_ext <<_ACEOF
6841/* end confdefs.h. */
6842#ifdef __STDC__
6843# include <limits.h>
6844#else
6845# include <assert.h>
6846#endif
6847 Syntax error
6848_ACEOF
6849if { (ac_try="$ac_cpp conftest.$ac_ext"
6850case "(($ac_try" in
6851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6852 *) ac_try_echo=$ac_try;;
6853esac
6854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6855$as_echo "$ac_try_echo") >&5
6856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } >/dev/null && {
6863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6864 test ! -s conftest.err
6865 }; then
6866 :
6867else
6868 $as_echo "$as_me: failed program was:" >&5
6869sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6870
8934764e
BB
6871 # Broken: fails on valid input.
6872continue
6873fi
bf9f3bac 6874
8934764e 6875rm -f conftest.err conftest.$ac_ext
bf9f3bac 6876
8934764e
BB
6877 # OK, works on sane cases. Now check whether nonexistent headers
6878 # can be detected and how.
6879 cat >conftest.$ac_ext <<_ACEOF
6880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
6885#include <ac_nonexistent.h>
6886_ACEOF
6887if { (ac_try="$ac_cpp conftest.$ac_ext"
6888case "(($ac_try" in
6889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6891esac
6892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6893$as_echo "$ac_try_echo") >&5
6894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6895 ac_status=$?
6896 grep -v '^ *+' conftest.er1 >conftest.err
6897 rm -f conftest.er1
6898 cat conftest.err >&5
6899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } >/dev/null && {
6901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 }; then
6904 # Broken: success on invalid input.
6905continue
6906else
6907 $as_echo "$as_me: failed program was:" >&5
6908sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6909
8934764e
BB
6910 # Passes both tests.
6911ac_preproc_ok=:
6912break
6913fi
bf9f3bac 6914
8934764e 6915rm -f conftest.err conftest.$ac_ext
bf9f3bac 6916
8934764e
BB
6917done
6918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6919rm -f conftest.err conftest.$ac_ext
6920if $ac_preproc_ok; then
6921 break
6922fi
bf9f3bac 6923
8934764e
BB
6924 done
6925 ac_cv_prog_CPP=$CPP
bf9f3bac 6926
8934764e
BB
6927fi
6928 CPP=$ac_cv_prog_CPP
6929else
6930 ac_cv_prog_CPP=$CPP
6931fi
6932{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6933$as_echo "$CPP" >&6; }
6934ac_preproc_ok=false
6935for ac_c_preproc_warn_flag in '' yes
6936do
6937 # Use a header file that comes with gcc, so configuring glibc
6938 # with a fresh cross-compiler works.
6939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940 # <limits.h> exists even on freestanding compilers.
6941 # On the NeXT, cc -E runs the code through the compiler's parser,
6942 # not just through cpp. "Syntax error" is here to catch this case.
6943 cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949#ifdef __STDC__
6950# include <limits.h>
6951#else
6952# include <assert.h>
6953#endif
6954 Syntax error
6955_ACEOF
6956if { (ac_try="$ac_cpp conftest.$ac_ext"
6957case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960esac
6961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6962$as_echo "$ac_try_echo") >&5
6963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } >/dev/null && {
6970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 }; then
6973 :
6974else
6975 $as_echo "$as_me: failed program was:" >&5
6976sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6977
8934764e
BB
6978 # Broken: fails on valid input.
6979continue
6980fi
bf9f3bac 6981
8934764e 6982rm -f conftest.err conftest.$ac_ext
bf9f3bac 6983
8934764e
BB
6984 # OK, works on sane cases. Now check whether nonexistent headers
6985 # can be detected and how.
6986 cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h. */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h. */
6992#include <ac_nonexistent.h>
6993_ACEOF
6994if { (ac_try="$ac_cpp conftest.$ac_ext"
6995case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998esac
6999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7000$as_echo "$ac_try_echo") >&5
7001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } >/dev/null && {
7008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 }; then
7011 # Broken: success on invalid input.
7012continue
7013else
7014 $as_echo "$as_me: failed program was:" >&5
7015sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7016
8934764e
BB
7017 # Passes both tests.
7018ac_preproc_ok=:
7019break
7020fi
bf9f3bac 7021
8934764e 7022rm -f conftest.err conftest.$ac_ext
bf9f3bac 7023
8934764e
BB
7024done
7025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026rm -f conftest.err conftest.$ac_ext
7027if $ac_preproc_ok; then
7028 :
7029else
7030 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7032{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7033See \`config.log' for more details." >&5
7034$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7035See \`config.log' for more details." >&2;}
7036 { (exit 1); exit 1; }; }; }
7037fi
bf9f3bac 7038
8934764e
BB
7039ac_ext=c
7040ac_cpp='$CPP $CPPFLAGS'
7041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7043ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 7044
bf9f3bac 7045
8934764e
BB
7046{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7047$as_echo_n "checking for ANSI C header files... " >&6; }
7048if test "${ac_cv_header_stdc+set}" = set; then
7049 $as_echo_n "(cached) " >&6
7050else
7051 cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
7057#include <stdlib.h>
7058#include <stdarg.h>
7059#include <string.h>
7060#include <float.h>
bf9f3bac 7061
8934764e
BB
7062int
7063main ()
7064{
bf9f3bac 7065
8934764e
BB
7066 ;
7067 return 0;
7068}
7069_ACEOF
7070rm -f conftest.$ac_objext
7071if { (ac_try="$ac_compile"
7072case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075esac
7076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077$as_echo "$ac_try_echo") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_header_stdc=yes
bf9f3bac 7089else
8934764e
BB
7090 $as_echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7092
8934764e 7093 ac_cv_header_stdc=no
bf9f3bac 7094fi
bf9f3bac 7095
8934764e 7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7097
8934764e
BB
7098if test $ac_cv_header_stdc = yes; then
7099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7100 cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h. */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h. */
7106#include <string.h>
bf9f3bac 7107
8934764e
BB
7108_ACEOF
7109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110 $EGREP "memchr" >/dev/null 2>&1; then
7111 :
bf9f3bac 7112else
8934764e
BB
7113 ac_cv_header_stdc=no
7114fi
7115rm -f conftest*
bf9f3bac 7116
7117fi
bf9f3bac 7118
8934764e
BB
7119if test $ac_cv_header_stdc = yes; then
7120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7121 cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h. */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h. */
7127#include <stdlib.h>
7128
7129_ACEOF
7130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7131 $EGREP "free" >/dev/null 2>&1; then
7132 :
bf9f3bac 7133else
8934764e 7134 ac_cv_header_stdc=no
bf9f3bac 7135fi
8934764e 7136rm -f conftest*
bf9f3bac 7137
8934764e 7138fi
bf9f3bac 7139
8934764e
BB
7140if test $ac_cv_header_stdc = yes; then
7141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7142 if test "$cross_compiling" = yes; then
7143 :
bf9f3bac 7144else
8934764e
BB
7145 cat >conftest.$ac_ext <<_ACEOF
7146/* confdefs.h. */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h. */
7151#include <ctype.h>
7152#include <stdlib.h>
7153#if ((' ' & 0x0FF) == 0x020)
7154# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7155# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7156#else
7157# define ISLOWER(c) \
7158 (('a' <= (c) && (c) <= 'i') \
7159 || ('j' <= (c) && (c) <= 'r') \
7160 || ('s' <= (c) && (c) <= 'z'))
7161# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7162#endif
bf9f3bac 7163
8934764e
BB
7164#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7165int
7166main ()
7167{
7168 int i;
7169 for (i = 0; i < 256; i++)
7170 if (XOR (islower (i), ISLOWER (i))
7171 || toupper (i) != TOUPPER (i))
7172 return 2;
7173 return 0;
7174}
7175_ACEOF
7176rm -f conftest$ac_exeext
7177if { (ac_try="$ac_link"
7178case "(($ac_try" in
7179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7180 *) ac_try_echo=$ac_try;;
7181esac
7182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7183$as_echo "$ac_try_echo") >&5
7184 (eval "$ac_link") 2>&5
7185 ac_status=$?
7186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7188 { (case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191esac
7192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193$as_echo "$ac_try_echo") >&5
7194 (eval "$ac_try") 2>&5
7195 ac_status=$?
7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 :
7199else
7200 $as_echo "$as_me: program exited with status $ac_status" >&5
7201$as_echo "$as_me: failed program was:" >&5
7202sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7203
8934764e
BB
7204( exit $ac_status )
7205ac_cv_header_stdc=no
7206fi
7207rm -rf conftest.dSYM
7208rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7209fi
bf9f3bac 7210
7211
bf9f3bac 7212fi
8934764e
BB
7213fi
7214{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7215$as_echo "$ac_cv_header_stdc" >&6; }
7216if test $ac_cv_header_stdc = yes; then
bf9f3bac 7217
8934764e
BB
7218cat >>confdefs.h <<\_ACEOF
7219#define STDC_HEADERS 1
7220_ACEOF
bf9f3bac 7221
8934764e 7222fi
bf9f3bac 7223
8934764e 7224# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bf9f3bac 7225
bf9f3bac 7226
bf9f3bac 7227
bf9f3bac 7228
bf9f3bac 7229
bf9f3bac 7230
bf9f3bac 7231
bf9f3bac 7232
bf9f3bac 7233
8934764e
BB
7234for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7235 inttypes.h stdint.h unistd.h
7236do
7237as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7239$as_echo_n "checking for $ac_header... " >&6; }
7240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7241 $as_echo_n "(cached) " >&6
7242else
7243 cat >conftest.$ac_ext <<_ACEOF
7244/* confdefs.h. */
7245_ACEOF
7246cat confdefs.h >>conftest.$ac_ext
7247cat >>conftest.$ac_ext <<_ACEOF
7248/* end confdefs.h. */
7249$ac_includes_default
bf9f3bac 7250
8934764e
BB
7251#include <$ac_header>
7252_ACEOF
7253rm -f conftest.$ac_objext
7254if { (ac_try="$ac_compile"
7255case "(($ac_try" in
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7258esac
7259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7260$as_echo "$ac_try_echo") >&5
7261 (eval "$ac_compile") 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && {
7268 test -z "$ac_c_werror_flag" ||
7269 test ! -s conftest.err
7270 } && test -s conftest.$ac_objext; then
7271 eval "$as_ac_Header=yes"
7272else
7273 $as_echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7275
8934764e
BB
7276 eval "$as_ac_Header=no"
7277fi
bf9f3bac 7278
8934764e
BB
7279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280fi
7281ac_res=`eval 'as_val=${'$as_ac_Header'}
7282 $as_echo "$as_val"'`
7283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7284$as_echo "$ac_res" >&6; }
7285as_val=`eval 'as_val=${'$as_ac_Header'}
7286 $as_echo "$as_val"'`
7287 if test "x$as_val" = x""yes; then
7288 cat >>confdefs.h <<_ACEOF
7289#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7290_ACEOF
bf9f3bac 7291
8934764e 7292fi
bf9f3bac 7293
8934764e 7294done
bf9f3bac 7295
bf9f3bac 7296
bf9f3bac 7297
8934764e
BB
7298for ac_header in dlfcn.h
7299do
7300as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7301{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7302$as_echo_n "checking for $ac_header... " >&6; }
7303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7304 $as_echo_n "(cached) " >&6
7305else
7306 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 7307/* confdefs.h. */
7308_ACEOF
7309cat confdefs.h >>conftest.$ac_ext
7310cat >>conftest.$ac_ext <<_ACEOF
7311/* end confdefs.h. */
8934764e 7312$ac_includes_default
bf9f3bac 7313
8934764e 7314#include <$ac_header>
bf9f3bac 7315_ACEOF
8934764e
BB
7316rm -f conftest.$ac_objext
7317if { (ac_try="$ac_compile"
7318case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321esac
7322eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7323$as_echo "$ac_try_echo") >&5
7324 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
8934764e
BB
7329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.$ac_objext; then
7334 eval "$as_ac_Header=yes"
bf9f3bac 7335else
8934764e 7336 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 7337sed 's/^/| /' conftest.$ac_ext >&5
7338
8934764e 7339 eval "$as_ac_Header=no"
bf9f3bac 7340fi
bf9f3bac 7341
8934764e
BB
7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343fi
7344ac_res=`eval 'as_val=${'$as_ac_Header'}
7345 $as_echo "$as_val"'`
7346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7347$as_echo "$ac_res" >&6; }
7348as_val=`eval 'as_val=${'$as_ac_Header'}
7349 $as_echo "$as_val"'`
7350 if test "x$as_val" = x""yes; then
7351 cat >>confdefs.h <<_ACEOF
7352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bf9f3bac 7353_ACEOF
bf9f3bac 7354
7355fi
bf9f3bac 7356
8934764e 7357done
bf9f3bac 7358
bf9f3bac 7359
bf9f3bac 7360
8934764e 7361# Set options
bf9f3bac 7362
bf9f3bac 7363
bf9f3bac 7364
8934764e 7365 enable_dlopen=no
bf9f3bac 7366
bf9f3bac 7367
8934764e 7368 enable_win32_dll=no
bf9f3bac 7369
bf9f3bac 7370
8934764e
BB
7371 # Check whether --enable-shared was given.
7372if test "${enable_shared+set}" = set; then
7373 enableval=$enable_shared; p=${PACKAGE-default}
7374 case $enableval in
7375 yes) enable_shared=yes ;;
7376 no) enable_shared=no ;;
7377 *)
7378 enable_shared=no
7379 # Look at the argument we got. We use all the common list separators.
7380 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7381 for pkg in $enableval; do
7382 IFS="$lt_save_ifs"
7383 if test "X$pkg" = "X$p"; then
7384 enable_shared=yes
7385 fi
7386 done
7387 IFS="$lt_save_ifs"
bf9f3bac 7388 ;;
8934764e
BB
7389 esac
7390else
7391 enable_shared=yes
7392fi
bf9f3bac 7393
bf9f3bac 7394
bf9f3bac 7395
bf9f3bac 7396
bf9f3bac 7397
bf9f3bac 7398
bf9f3bac 7399
8934764e
BB
7400
7401
7402 # Check whether --enable-static was given.
7403if test "${enable_static+set}" = set; then
7404 enableval=$enable_static; p=${PACKAGE-default}
7405 case $enableval in
7406 yes) enable_static=yes ;;
7407 no) enable_static=no ;;
7408 *)
7409 enable_static=no
7410 # Look at the argument we got. We use all the common list separators.
7411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412 for pkg in $enableval; do
7413 IFS="$lt_save_ifs"
7414 if test "X$pkg" = "X$p"; then
7415 enable_static=yes
7416 fi
7417 done
7418 IFS="$lt_save_ifs"
7419 ;;
7420 esac
bf9f3bac 7421else
8934764e 7422 enable_static=yes
bf9f3bac 7423fi
bf9f3bac 7424
8934764e
BB
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434# Check whether --with-pic was given.
7435if test "${with_pic+set}" = set; then
7436 withval=$with_pic; pic_mode="$withval"
7437else
7438 pic_mode=default
bf9f3bac 7439fi
7440
7441
8934764e
BB
7442test -z "$pic_mode" && pic_mode=default
7443
7444
7445
7446
7447
7448
7449
7450 # Check whether --enable-fast-install was given.
7451if test "${enable_fast_install+set}" = set; then
7452 enableval=$enable_fast_install; p=${PACKAGE-default}
7453 case $enableval in
7454 yes) enable_fast_install=yes ;;
7455 no) enable_fast_install=no ;;
bf9f3bac 7456 *)
8934764e
BB
7457 enable_fast_install=no
7458 # Look at the argument we got. We use all the common list separators.
7459 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7460 for pkg in $enableval; do
7461 IFS="$lt_save_ifs"
7462 if test "X$pkg" = "X$p"; then
7463 enable_fast_install=yes
7464 fi
7465 done
7466 IFS="$lt_save_ifs"
bf9f3bac 7467 ;;
7468 esac
8934764e
BB
7469else
7470 enable_fast_install=yes
7471fi
bf9f3bac 7472
bf9f3bac 7473
bf9f3bac 7474
bf9f3bac 7475
bf9f3bac 7476
bf9f3bac 7477
bf9f3bac 7478
bf9f3bac 7479
bf9f3bac 7480
bf9f3bac 7481
bf9f3bac 7482
8934764e
BB
7483# This can be used to rebuild libtool when needed
7484LIBTOOL_DEPS="$ltmain"
bf9f3bac 7485
8934764e
BB
7486# Always use our own libtool.
7487LIBTOOL='$(SHELL) $(top_builddir)/libtool'
bf9f3bac 7488
bf9f3bac 7489
bf9f3bac 7490
bf9f3bac 7491
bf9f3bac 7492
bf9f3bac 7493
bf9f3bac 7494
bf9f3bac 7495
bf9f3bac 7496
bf9f3bac 7497
bf9f3bac 7498
bf9f3bac 7499
bf9f3bac 7500
bf9f3bac 7501
bf9f3bac 7502
bf9f3bac 7503
bf9f3bac 7504
bf9f3bac 7505
bf9f3bac 7506
bf9f3bac 7507
bf9f3bac 7508
bf9f3bac 7509
bf9f3bac 7510
bf9f3bac 7511
bf9f3bac 7512
8934764e 7513test -z "$LN_S" && LN_S="ln -s"
bf9f3bac 7514
bf9f3bac 7515
bf9f3bac 7516
bf9f3bac 7517
bf9f3bac 7518
bf9f3bac 7519
bf9f3bac 7520
bf9f3bac 7521
bf9f3bac 7522
bf9f3bac 7523
bf9f3bac 7524
bf9f3bac 7525
bf9f3bac 7526
bf9f3bac 7527
8934764e
BB
7528if test -n "${ZSH_VERSION+set}" ; then
7529 setopt NO_GLOB_SUBST
7530fi
bf9f3bac 7531
8934764e
BB
7532{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7533$as_echo_n "checking for objdir... " >&6; }
7534if test "${lt_cv_objdir+set}" = set; then
7535 $as_echo_n "(cached) " >&6
7536else
7537 rm -f .libs 2>/dev/null
7538mkdir .libs 2>/dev/null
7539if test -d .libs; then
7540 lt_cv_objdir=.libs
7541else
7542 # MS-DOS does not allow filenames that begin with a dot.
7543 lt_cv_objdir=_libs
7544fi
7545rmdir .libs 2>/dev/null
7546fi
7547{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7548$as_echo "$lt_cv_objdir" >&6; }
7549objdir=$lt_cv_objdir
bf9f3bac 7550
bf9f3bac 7551
bf9f3bac 7552
bf9f3bac 7553
bf9f3bac 7554
8934764e
BB
7555cat >>confdefs.h <<_ACEOF
7556#define LT_OBJDIR "$lt_cv_objdir/"
7557_ACEOF
bf9f3bac 7558
bf9f3bac 7559
bf9f3bac 7560
bf9f3bac 7561
bf9f3bac 7562
bf9f3bac 7563
bf9f3bac 7564
bf9f3bac 7565
bf9f3bac 7566
bf9f3bac 7567
bf9f3bac 7568
bf9f3bac 7569
bf9f3bac 7570
bf9f3bac 7571
bf9f3bac 7572
bf9f3bac 7573
bf9f3bac 7574
8934764e
BB
7575case $host_os in
7576aix3*)
7577 # AIX sometimes has problems with the GCC collect2 program. For some
7578 # reason, if we set the COLLECT_NAMES environment variable, the problems
7579 # vanish in a puff of smoke.
7580 if test "X${COLLECT_NAMES+set}" != Xset; then
7581 COLLECT_NAMES=
7582 export COLLECT_NAMES
7583 fi
7584 ;;
7585esac
bf9f3bac 7586
8934764e
BB
7587# Sed substitution that helps us do robust quoting. It backslashifies
7588# metacharacters that are still active within double-quoted strings.
7589sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
bf9f3bac 7590
8934764e
BB
7591# Same as above, but do not quote variable references.
7592double_quote_subst='s/\(["`\\]\)/\\\1/g'
bf9f3bac 7593
8934764e
BB
7594# Sed substitution to delay expansion of an escaped shell variable in a
7595# double_quote_subst'ed string.
7596delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
bf9f3bac 7597
8934764e
BB
7598# Sed substitution to delay expansion of an escaped single quote.
7599delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
bf9f3bac 7600
8934764e
BB
7601# Sed substitution to avoid accidental globbing in evaled expressions
7602no_glob_subst='s/\*/\\\*/g'
bf9f3bac 7603
8934764e
BB
7604# Global variables:
7605ofile=libtool
7606can_build_shared=yes
bf9f3bac 7607
8934764e
BB
7608# All known linkers require a `.a' archive for static linking (except MSVC,
7609# which needs '.lib').
7610libext=a
bf9f3bac 7611
8934764e 7612with_gnu_ld="$lt_cv_prog_gnu_ld"
bf9f3bac 7613
8934764e
BB
7614old_CC="$CC"
7615old_CFLAGS="$CFLAGS"
bf9f3bac 7616
8934764e
BB
7617# Set sane defaults for various variables
7618test -z "$CC" && CC=cc
7619test -z "$LTCC" && LTCC=$CC
7620test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7621test -z "$LD" && LD=ld
7622test -z "$ac_objext" && ac_objext=o
bf9f3bac 7623
8934764e
BB
7624for cc_temp in $compiler""; do
7625 case $cc_temp in
7626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7628 \-*) ;;
7629 *) break;;
7630 esac
7631done
7632cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
bf9f3bac 7633
bf9f3bac 7634
8934764e
BB
7635# Only perform the check for file, if the check method requires it
7636test -z "$MAGIC_CMD" && MAGIC_CMD=file
7637case $deplibs_check_method in
7638file_magic*)
7639 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7640 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7641$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7642if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7643 $as_echo_n "(cached) " >&6
7644else
7645 case $MAGIC_CMD in
7646[\\/*] | ?:[\\/]*)
7647 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7648 ;;
7649*)
7650 lt_save_MAGIC_CMD="$MAGIC_CMD"
7651 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7652 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7653 for ac_dir in $ac_dummy; do
7654 IFS="$lt_save_ifs"
7655 test -z "$ac_dir" && ac_dir=.
7656 if test -f $ac_dir/${ac_tool_prefix}file; then
7657 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7658 if test -n "$file_magic_test_file"; then
7659 case $deplibs_check_method in
7660 "file_magic "*)
7661 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7663 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7664 $EGREP "$file_magic_regex" > /dev/null; then
7665 :
7666 else
7667 cat <<_LT_EOF 1>&2
bf9f3bac 7668
8934764e
BB
7669*** Warning: the command libtool uses to detect shared libraries,
7670*** $file_magic_cmd, produces output that libtool cannot recognize.
7671*** The result is that libtool may fail to recognize shared libraries
7672*** as such. This will affect the creation of libtool libraries that
7673*** depend on shared libraries, but programs linked with such libtool
7674*** libraries will work regardless of this problem. Nevertheless, you
7675*** may want to report the problem to your system manager and/or to
7676*** bug-libtool@gnu.org
bf9f3bac 7677
8934764e
BB
7678_LT_EOF
7679 fi ;;
7680 esac
7681 fi
7682 break
7683 fi
7684 done
7685 IFS="$lt_save_ifs"
7686 MAGIC_CMD="$lt_save_MAGIC_CMD"
7687 ;;
7688esac
7689fi
bf9f3bac 7690
8934764e
BB
7691MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7692if test -n "$MAGIC_CMD"; then
7693 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7694$as_echo "$MAGIC_CMD" >&6; }
7695else
7696 { $as_echo "$as_me:$LINENO: result: no" >&5
7697$as_echo "no" >&6; }
7698fi
bf9f3bac 7699
bf9f3bac 7700
bf9f3bac 7701
bf9f3bac 7702
bf9f3bac 7703
8934764e
BB
7704if test -z "$lt_cv_path_MAGIC_CMD"; then
7705 if test -n "$ac_tool_prefix"; then
7706 { $as_echo "$as_me:$LINENO: checking for file" >&5
7707$as_echo_n "checking for file... " >&6; }
7708if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7709 $as_echo_n "(cached) " >&6
7710else
7711 case $MAGIC_CMD in
7712[\\/*] | ?:[\\/]*)
7713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7714 ;;
7715*)
7716 lt_save_MAGIC_CMD="$MAGIC_CMD"
7717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7719 for ac_dir in $ac_dummy; do
7720 IFS="$lt_save_ifs"
7721 test -z "$ac_dir" && ac_dir=.
7722 if test -f $ac_dir/file; then
7723 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7724 if test -n "$file_magic_test_file"; then
7725 case $deplibs_check_method in
7726 "file_magic "*)
7727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7730 $EGREP "$file_magic_regex" > /dev/null; then
7731 :
7732 else
7733 cat <<_LT_EOF 1>&2
7734
7735*** Warning: the command libtool uses to detect shared libraries,
7736*** $file_magic_cmd, produces output that libtool cannot recognize.
7737*** The result is that libtool may fail to recognize shared libraries
7738*** as such. This will affect the creation of libtool libraries that
7739*** depend on shared libraries, but programs linked with such libtool
7740*** libraries will work regardless of this problem. Nevertheless, you
7741*** may want to report the problem to your system manager and/or to
7742*** bug-libtool@gnu.org
bf9f3bac 7743
8934764e
BB
7744_LT_EOF
7745 fi ;;
7746 esac
7747 fi
7748 break
7749 fi
7750 done
7751 IFS="$lt_save_ifs"
7752 MAGIC_CMD="$lt_save_MAGIC_CMD"
7753 ;;
7754esac
7755fi
bf9f3bac 7756
8934764e
BB
7757MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7758if test -n "$MAGIC_CMD"; then
7759 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7760$as_echo "$MAGIC_CMD" >&6; }
7761else
7762 { $as_echo "$as_me:$LINENO: result: no" >&5
7763$as_echo "no" >&6; }
7764fi
bf9f3bac 7765
7766
8934764e
BB
7767 else
7768 MAGIC_CMD=:
bf9f3bac 7769 fi
7770fi
7771
8934764e
BB
7772 fi
7773 ;;
7774esac
7775
7776# Use C for the default configuration in the libtool script
bf9f3bac 7777
8934764e 7778lt_save_CC="$CC"
bf9f3bac 7779ac_ext=c
7780ac_cpp='$CPP $CPPFLAGS'
7781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
bf9f3bac 7785
8934764e
BB
7786# Source file extension for C test sources.
7787ac_ext=c
bf9f3bac 7788
8934764e
BB
7789# Object file extension for compiled C test sources.
7790objext=o
7791objext=$objext
bf9f3bac 7792
8934764e
BB
7793# Code to be used in simple compile tests
7794lt_simple_compile_test_code="int some_variable = 0;"
7795
7796# Code to be used in simple link tests
7797lt_simple_link_test_code='int main(){return(0);}'
bf9f3bac 7798
7799
bf9f3bac 7800
bf9f3bac 7801
bf9f3bac 7802
bf9f3bac 7803
bf9f3bac 7804
7805# If no C compiler was specified, use CC.
7806LTCC=${LTCC-"$CC"}
7807
7808# If no C compiler flags were specified, use CFLAGS.
7809LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7810
7811# Allow CC to be a program name with arguments.
7812compiler=$CC
7813
8934764e
BB
7814# Save the default compiler, since it gets overwritten when the other
7815# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7816compiler_DEFAULT=$CC
bf9f3bac 7817
7818# save warnings/boilerplate of simple test code
7819ac_outfile=conftest.$ac_objext
8934764e 7820echo "$lt_simple_compile_test_code" >conftest.$ac_ext
bf9f3bac 7821eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7822_lt_compiler_boilerplate=`cat conftest.err`
8934764e 7823$RM conftest*
bf9f3bac 7824
7825ac_outfile=conftest.$ac_objext
8934764e 7826echo "$lt_simple_link_test_code" >conftest.$ac_ext
bf9f3bac 7827eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7828_lt_linker_boilerplate=`cat conftest.err`
8934764e 7829$RM -r conftest*
bf9f3bac 7830
bf9f3bac 7831
8934764e 7832if test -n "$compiler"; then
bf9f3bac 7833
8934764e 7834lt_prog_compiler_no_builtin_flag=
bf9f3bac 7835
7836if test "$GCC" = yes; then
8934764e 7837 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
bf9f3bac 7838
8934764e
BB
7839 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7840$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
bf9f3bac 7841if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8934764e 7842 $as_echo_n "(cached) " >&6
bf9f3bac 7843else
7844 lt_cv_prog_compiler_rtti_exceptions=no
8934764e
BB
7845 ac_outfile=conftest.$ac_objext
7846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 7847 lt_compiler_flag="-fno-rtti -fno-exceptions"
7848 # Insert the option either (1) after the last *FLAGS variable, or
7849 # (2) before a word containing "conftest.", or (3) at the end.
7850 # Note that $ac_compile itself does not contain backslashes and begins
7851 # with a dollar sign (not a hyphen), so the echo should work correctly.
7852 # The option is referenced via a variable to avoid confusing sed.
7853 lt_compile=`echo "$ac_compile" | $SED \
7854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7856 -e 's:$: $lt_compiler_flag:'`
3c208a54 7857 (eval echo "\"\$as_me:7857: $lt_compile\"" >&5)
bf9f3bac 7858 (eval "$lt_compile" 2>conftest.err)
7859 ac_status=$?
7860 cat conftest.err >&5
3c208a54 7861 echo "$as_me:7861: \$? = $ac_status" >&5
bf9f3bac 7862 if (exit $ac_status) && test -s "$ac_outfile"; then
7863 # The compiler can only warn and ignore the option if not recognized
7864 # So say no if there are warnings other than the usual output.
8934764e 7865 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 7866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7868 lt_cv_prog_compiler_rtti_exceptions=yes
7869 fi
7870 fi
8934764e 7871 $RM conftest*
bf9f3bac 7872
7873fi
8934764e
BB
7874{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7875$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
bf9f3bac 7876
7877if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8934764e 7878 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
bf9f3bac 7879else
7880 :
7881fi
7882
7883fi
7884
bf9f3bac 7885
8934764e
BB
7886
7887
7888
7889
7890 lt_prog_compiler_wl=
7891lt_prog_compiler_pic=
7892lt_prog_compiler_static=
7893
7894{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7895$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
bf9f3bac 7896
7897 if test "$GCC" = yes; then
8934764e
BB
7898 lt_prog_compiler_wl='-Wl,'
7899 lt_prog_compiler_static='-static'
bf9f3bac 7900
7901 case $host_os in
7902 aix*)
7903 # All AIX code is PIC.
7904 if test "$host_cpu" = ia64; then
7905 # AIX 5 now supports IA64 processor
8934764e 7906 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7907 fi
7908 ;;
7909
7910 amigaos*)
8934764e
BB
7911 case $host_cpu in
7912 powerpc)
7913 # see comment about AmigaOS4 .so support
7914 lt_prog_compiler_pic='-fPIC'
7915 ;;
7916 m68k)
7917 # FIXME: we need at least 68020 code to build shared libraries, but
7918 # adding the `-m68020' flag to GCC prevents building anything better,
7919 # like `-m68040'.
7920 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7921 ;;
7922 esac
bf9f3bac 7923 ;;
7924
8934764e 7925 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
bf9f3bac 7926 # PIC is the default for these OSes.
7927 ;;
7928
8934764e 7929 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7930 # This hack is so that the source file can tell whether it is being
7931 # built for inclusion in a dll (and should export symbols for example).
8934764e
BB
7932 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7933 # (--disable-auto-import) libraries
7934 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7935 ;;
7936
7937 darwin* | rhapsody*)
7938 # PIC is the default on this platform
7939 # Common symbols not allowed in MH_DYLIB files
8934764e
BB
7940 lt_prog_compiler_pic='-fno-common'
7941 ;;
7942
7943 hpux*)
7944 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7945 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7946 # sets the default TLS model and affects inlining.
7947 case $host_cpu in
7948 hppa*64*)
7949 # +Z the default
7950 ;;
7951 *)
7952 lt_prog_compiler_pic='-fPIC'
7953 ;;
7954 esac
bf9f3bac 7955 ;;
7956
8934764e 7957 interix[3-9]*)
bf9f3bac 7958 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7959 # Instead, we relocate shared libraries at runtime.
7960 ;;
7961
7962 msdosdjgpp*)
7963 # Just because we use GCC doesn't mean we suddenly get shared libraries
7964 # on systems that don't support them.
8934764e 7965 lt_prog_compiler_can_build_shared=no
bf9f3bac 7966 enable_shared=no
7967 ;;
7968
8934764e
BB
7969 *nto* | *qnx*)
7970 # QNX uses GNU C++, but need to define -shared option too, otherwise
7971 # it will coredump.
7972 lt_prog_compiler_pic='-fPIC -shared'
7973 ;;
7974
bf9f3bac 7975 sysv4*MP*)
7976 if test -d /usr/nec; then
8934764e 7977 lt_prog_compiler_pic=-Kconform_pic
bf9f3bac 7978 fi
7979 ;;
7980
bf9f3bac 7981 *)
8934764e 7982 lt_prog_compiler_pic='-fPIC'
bf9f3bac 7983 ;;
7984 esac
7985 else
7986 # PORTME Check for flag to pass linker flags through the system compiler.
7987 case $host_os in
7988 aix*)
8934764e 7989 lt_prog_compiler_wl='-Wl,'
bf9f3bac 7990 if test "$host_cpu" = ia64; then
7991 # AIX 5 now supports IA64 processor
8934764e 7992 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7993 else
8934764e 7994 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
bf9f3bac 7995 fi
7996 ;;
bf9f3bac 7997
8934764e 7998 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7999 # This hack is so that the source file can tell whether it is being
8000 # built for inclusion in a dll (and should export symbols for example).
8934764e 8001 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 8002 ;;
8003
8004 hpux9* | hpux10* | hpux11*)
8934764e 8005 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8007 # not for PA HP-UX.
8008 case $host_cpu in
8009 hppa*64*|ia64*)
8010 # +Z the default
8011 ;;
8012 *)
8934764e 8013 lt_prog_compiler_pic='+Z'
bf9f3bac 8014 ;;
8015 esac
8016 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8934764e 8017 lt_prog_compiler_static='${wl}-a ${wl}archive'
bf9f3bac 8018 ;;
8019
8020 irix5* | irix6* | nonstopux*)
8934764e 8021 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8022 # PIC (with -KPIC) is the default.
8934764e 8023 lt_prog_compiler_static='-non_shared'
bf9f3bac 8024 ;;
8025
8934764e 8026 linux* | k*bsd*-gnu)
bf9f3bac 8027 case $cc_basename in
8934764e
BB
8028 # old Intel for x86_64 which still supported -KPIC.
8029 ecc*)
8030 lt_prog_compiler_wl='-Wl,'
8031 lt_prog_compiler_pic='-KPIC'
8032 lt_prog_compiler_static='-static'
8033 ;;
8034 # icc used to be incompatible with GCC.
8035 # ICC 10 doesn't accept -KPIC any more.
8036 icc* | ifort*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_pic='-fPIC'
8039 lt_prog_compiler_static='-static'
bf9f3bac 8040 ;;
8934764e
BB
8041 # Lahey Fortran 8.1.
8042 lf95*)
8043 lt_prog_compiler_wl='-Wl,'
8044 lt_prog_compiler_pic='--shared'
8045 lt_prog_compiler_static='--static'
8046 ;;
bf9f3bac 8047 pgcc* | pgf77* | pgf90* | pgf95*)
8048 # Portland Group compilers (*not* the Pentium gcc compiler,
8049 # which looks to be a dead project)
8934764e
BB
8050 lt_prog_compiler_wl='-Wl,'
8051 lt_prog_compiler_pic='-fpic'
8052 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8053 ;;
8054 ccc*)
8934764e 8055 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8056 # All Alpha code is PIC.
8934764e 8057 lt_prog_compiler_static='-non_shared'
bf9f3bac 8058 ;;
8934764e
BB
8059 xl*)
8060 # IBM XL C 8.0/Fortran 10.1 on PPC
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-qpic'
8063 lt_prog_compiler_static='-qstaticlink'
8064 ;;
8065 *)
8066 case `$CC -V 2>&1 | sed 5q` in
8067 *Sun\ C*)
8068 # Sun C 5.9
8069 lt_prog_compiler_pic='-KPIC'
8070 lt_prog_compiler_static='-Bstatic'
8071 lt_prog_compiler_wl='-Wl,'
8072 ;;
8073 *Sun\ F*)
8074 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8075 lt_prog_compiler_pic='-KPIC'
8076 lt_prog_compiler_static='-Bstatic'
8077 lt_prog_compiler_wl=''
8078 ;;
8079 esac
8080 ;;
bf9f3bac 8081 esac
8082 ;;
8083
8934764e
BB
8084 newsos6)
8085 lt_prog_compiler_pic='-KPIC'
8086 lt_prog_compiler_static='-Bstatic'
8087 ;;
8088
8089 *nto* | *qnx*)
8090 # QNX uses GNU C++, but need to define -shared option too, otherwise
8091 # it will coredump.
8092 lt_prog_compiler_pic='-fPIC -shared'
8093 ;;
8094
bf9f3bac 8095 osf3* | osf4* | osf5*)
8934764e 8096 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8097 # All OSF/1 code is PIC.
8934764e
BB
8098 lt_prog_compiler_static='-non_shared'
8099 ;;
8100
8101 rdos*)
8102 lt_prog_compiler_static='-non_shared'
bf9f3bac 8103 ;;
8104
8105 solaris*)
8934764e
BB
8106 lt_prog_compiler_pic='-KPIC'
8107 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8108 case $cc_basename in
8109 f77* | f90* | f95*)
8934764e 8110 lt_prog_compiler_wl='-Qoption ld ';;
bf9f3bac 8111 *)
8934764e 8112 lt_prog_compiler_wl='-Wl,';;
bf9f3bac 8113 esac
8114 ;;
8115
8116 sunos4*)
8934764e
BB
8117 lt_prog_compiler_wl='-Qoption ld '
8118 lt_prog_compiler_pic='-PIC'
8119 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8120 ;;
8121
8122 sysv4 | sysv4.2uw2* | sysv4.3*)
8934764e
BB
8123 lt_prog_compiler_wl='-Wl,'
8124 lt_prog_compiler_pic='-KPIC'
8125 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8126 ;;
8127
8128 sysv4*MP*)
8129 if test -d /usr/nec ;then
8934764e
BB
8130 lt_prog_compiler_pic='-Kconform_pic'
8131 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8132 fi
8133 ;;
8134
8135 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934764e
BB
8136 lt_prog_compiler_wl='-Wl,'
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8139 ;;
8140
8141 unicos*)
8934764e
BB
8142 lt_prog_compiler_wl='-Wl,'
8143 lt_prog_compiler_can_build_shared=no
bf9f3bac 8144 ;;
8145
8146 uts4*)
8934764e
BB
8147 lt_prog_compiler_pic='-pic'
8148 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8149 ;;
8150
8151 *)
8934764e 8152 lt_prog_compiler_can_build_shared=no
bf9f3bac 8153 ;;
8154 esac
8155 fi
8156
8934764e
BB
8157case $host_os in
8158 # For platforms which do not support PIC, -DPIC is meaningless:
8159 *djgpp*)
8160 lt_prog_compiler_pic=
8161 ;;
8162 *)
8163 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8164 ;;
8165esac
8166{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8167$as_echo "$lt_prog_compiler_pic" >&6; }
8168
8169
8170
8171
8172
bf9f3bac 8173
8174#
8175# Check to make sure the PIC flag actually works.
8176#
8934764e
BB
8177if test -n "$lt_prog_compiler_pic"; then
8178 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8179$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8180if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8181 $as_echo_n "(cached) " >&6
8182else
8183 lt_cv_prog_compiler_pic_works=no
8184 ac_outfile=conftest.$ac_objext
8185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8186 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
bf9f3bac 8187 # Insert the option either (1) after the last *FLAGS variable, or
8188 # (2) before a word containing "conftest.", or (3) at the end.
8189 # Note that $ac_compile itself does not contain backslashes and begins
8190 # with a dollar sign (not a hyphen), so the echo should work correctly.
8191 # The option is referenced via a variable to avoid confusing sed.
8192 lt_compile=`echo "$ac_compile" | $SED \
8193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8195 -e 's:$: $lt_compiler_flag:'`
3c208a54 8196 (eval echo "\"\$as_me:8196: $lt_compile\"" >&5)
bf9f3bac 8197 (eval "$lt_compile" 2>conftest.err)
8198 ac_status=$?
8199 cat conftest.err >&5
3c208a54 8200 echo "$as_me:8200: \$? = $ac_status" >&5
bf9f3bac 8201 if (exit $ac_status) && test -s "$ac_outfile"; then
8202 # The compiler can only warn and ignore the option if not recognized
8203 # So say no if there are warnings other than the usual output.
8934764e 8204 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 8205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8207 lt_cv_prog_compiler_pic_works=yes
bf9f3bac 8208 fi
8209 fi
8934764e 8210 $RM conftest*
bf9f3bac 8211
8212fi
8934764e
BB
8213{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8214$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
bf9f3bac 8215
8934764e
BB
8216if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8217 case $lt_prog_compiler_pic in
bf9f3bac 8218 "" | " "*) ;;
8934764e 8219 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
bf9f3bac 8220 esac
8221else
8934764e
BB
8222 lt_prog_compiler_pic=
8223 lt_prog_compiler_can_build_shared=no
bf9f3bac 8224fi
8225
8226fi
8934764e
BB
8227
8228
8229
8230
8231
bf9f3bac 8232
8233#
8234# Check to make sure the static flag actually works.
8235#
8934764e
BB
8236wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8237{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8238$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8239if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8240 $as_echo_n "(cached) " >&6
bf9f3bac 8241else
8934764e 8242 lt_cv_prog_compiler_static_works=no
bf9f3bac 8243 save_LDFLAGS="$LDFLAGS"
8244 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8934764e 8245 echo "$lt_simple_link_test_code" > conftest.$ac_ext
bf9f3bac 8246 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8247 # The linker can only warn and ignore the option if not recognized
8248 # So say no if there are warnings
8249 if test -s conftest.err; then
8250 # Append any errors to the config.log.
8251 cat conftest.err 1>&5
8934764e 8252 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
bf9f3bac 8253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8254 if diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8255 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8256 fi
8257 else
8934764e 8258 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8259 fi
8260 fi
8934764e 8261 $RM -r conftest*
bf9f3bac 8262 LDFLAGS="$save_LDFLAGS"
8263
8264fi
8934764e
BB
8265{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8266$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
bf9f3bac 8267
8934764e 8268if test x"$lt_cv_prog_compiler_static_works" = xyes; then
bf9f3bac 8269 :
8270else
8934764e
BB
8271 lt_prog_compiler_static=
8272fi
8273
8274
8275
8276
8277
8278
8279
8280 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8281$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8282if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8283 $as_echo_n "(cached) " >&6
8284else
8285 lt_cv_prog_compiler_c_o=no
8286 $RM -r conftest 2>/dev/null
8287 mkdir conftest
8288 cd conftest
8289 mkdir out
8290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8291
8292 lt_compiler_flag="-o out/conftest2.$ac_objext"
8293 # Insert the option either (1) after the last *FLAGS variable, or
8294 # (2) before a word containing "conftest.", or (3) at the end.
8295 # Note that $ac_compile itself does not contain backslashes and begins
8296 # with a dollar sign (not a hyphen), so the echo should work correctly.
8297 lt_compile=`echo "$ac_compile" | $SED \
8298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8300 -e 's:$: $lt_compiler_flag:'`
3c208a54 8301 (eval echo "\"\$as_me:8301: $lt_compile\"" >&5)
8934764e
BB
8302 (eval "$lt_compile" 2>out/conftest.err)
8303 ac_status=$?
8304 cat out/conftest.err >&5
3c208a54 8305 echo "$as_me:8305: \$? = $ac_status" >&5
8934764e
BB
8306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8307 then
8308 # The compiler can only warn and ignore the option if not recognized
8309 # So say no if there are warnings
8310 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8313 lt_cv_prog_compiler_c_o=yes
8314 fi
8315 fi
8316 chmod u+w . 2>&5
8317 $RM conftest*
8318 # SGI C++ compiler will create directory out/ii_files/ for
8319 # template instantiation
8320 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8321 $RM out/* && rmdir out
8322 cd ..
8323 $RM -r conftest
8324 $RM conftest*
8325
bf9f3bac 8326fi
8934764e
BB
8327{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8328$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8329
8330
bf9f3bac 8331
8332
8934764e
BB
8333
8334
8335 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8336$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8337if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8338 $as_echo_n "(cached) " >&6
bf9f3bac 8339else
8934764e
BB
8340 lt_cv_prog_compiler_c_o=no
8341 $RM -r conftest 2>/dev/null
bf9f3bac 8342 mkdir conftest
8343 cd conftest
8344 mkdir out
8934764e 8345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 8346
8347 lt_compiler_flag="-o out/conftest2.$ac_objext"
8348 # Insert the option either (1) after the last *FLAGS variable, or
8349 # (2) before a word containing "conftest.", or (3) at the end.
8350 # Note that $ac_compile itself does not contain backslashes and begins
8351 # with a dollar sign (not a hyphen), so the echo should work correctly.
8352 lt_compile=`echo "$ac_compile" | $SED \
8353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8355 -e 's:$: $lt_compiler_flag:'`
3c208a54 8356 (eval echo "\"\$as_me:8356: $lt_compile\"" >&5)
bf9f3bac 8357 (eval "$lt_compile" 2>out/conftest.err)
8358 ac_status=$?
8359 cat out/conftest.err >&5
3c208a54 8360 echo "$as_me:8360: \$? = $ac_status" >&5
bf9f3bac 8361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8362 then
8363 # The compiler can only warn and ignore the option if not recognized
8364 # So say no if there are warnings
8934764e 8365 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
bf9f3bac 8366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8934764e 8368 lt_cv_prog_compiler_c_o=yes
bf9f3bac 8369 fi
8370 fi
8371 chmod u+w . 2>&5
8934764e 8372 $RM conftest*
bf9f3bac 8373 # SGI C++ compiler will create directory out/ii_files/ for
8374 # template instantiation
8934764e
BB
8375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8376 $RM out/* && rmdir out
bf9f3bac 8377 cd ..
8934764e
BB
8378 $RM -r conftest
8379 $RM conftest*
bf9f3bac 8380
8381fi
8934764e
BB
8382{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8383$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8384
8385
bf9f3bac 8386
8387
8388hard_links="nottested"
8934764e 8389if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
bf9f3bac 8390 # do not overwrite the value of need_locks provided by the user
8934764e
BB
8391 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8392$as_echo_n "checking if we can lock with hard links... " >&6; }
bf9f3bac 8393 hard_links=yes
8934764e 8394 $RM conftest*
bf9f3bac 8395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8396 touch conftest.a
8397 ln conftest.a conftest.b 2>&5 || hard_links=no
8398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934764e
BB
8399 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8400$as_echo "$hard_links" >&6; }
bf9f3bac 8401 if test "$hard_links" = no; then
8934764e
BB
8402 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8403$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
bf9f3bac 8404 need_locks=warn
8405 fi
8406else
8407 need_locks=no
8408fi
8409
8934764e
BB
8410
8411
8412
8413
8414
8415 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8416$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
bf9f3bac 8417
8418 runpath_var=
8934764e
BB
8419 allow_undefined_flag=
8420 always_export_symbols=no
8421 archive_cmds=
8422 archive_expsym_cmds=
8423 compiler_needs_object=no
8424 enable_shared_with_static_runtimes=no
8425 export_dynamic_flag_spec=
8426 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8427 hardcode_automatic=no
8428 hardcode_direct=no
8429 hardcode_direct_absolute=no
8430 hardcode_libdir_flag_spec=
8431 hardcode_libdir_flag_spec_ld=
8432 hardcode_libdir_separator=
8433 hardcode_minus_L=no
8434 hardcode_shlibpath_var=unsupported
8435 inherit_rpath=no
8436 link_all_deplibs=unknown
8437 module_cmds=
8438 module_expsym_cmds=
8439 old_archive_from_new_cmds=
8440 old_archive_from_expsyms_cmds=
8441 thread_safe_flag_spec=
8442 whole_archive_flag_spec=
bf9f3bac 8443 # include_expsyms should be a list of space-separated symbols to be *always*
8444 # included in the symbol list
8934764e 8445 include_expsyms=
bf9f3bac 8446 # exclude_expsyms can be an extended regexp of symbols to exclude
8447 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8448 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8449 # as well as any symbol that contains `d'.
8934764e 8450 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
bf9f3bac 8451 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8452 # platforms (ab)use it in PIC code, but their linkers get confused if
8453 # the symbol is explicitly referenced. Since portable code cannot
8454 # rely on this symbol name, it's probably fine to never include it in
8455 # preloaded symbol tables.
8934764e 8456 # Exclude shared library initialization/finalization symbols.
bf9f3bac 8457 extract_expsyms_cmds=
bf9f3bac 8458
8459 case $host_os in
8934764e 8460 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 8461 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8462 # When not using gcc, we currently assume that we are using
8463 # Microsoft Visual C++.
8464 if test "$GCC" != yes; then
8465 with_gnu_ld=no
8466 fi
8467 ;;
8468 interix*)
8469 # we just hope/assume this is gcc and not c89 (= MSVC++)
8470 with_gnu_ld=yes
8471 ;;
8472 openbsd*)
8473 with_gnu_ld=no
8474 ;;
8475 esac
8476
8934764e 8477 ld_shlibs=yes
bf9f3bac 8478 if test "$with_gnu_ld" = yes; then
8479 # If archive_cmds runs LD, not CC, wlarc should be empty
8480 wlarc='${wl}'
8481
8482 # Set some defaults for GNU ld with shared library support. These
8483 # are reset later if shared libraries are not supported. Putting them
8484 # here allows them to be overridden if necessary.
8485 runpath_var=LD_RUN_PATH
8934764e
BB
8486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8487 export_dynamic_flag_spec='${wl}--export-dynamic'
bf9f3bac 8488 # ancient GNU ld didn't support --whole-archive et. al.
8934764e
BB
8489 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8490 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8491 else
8492 whole_archive_flag_spec=
bf9f3bac 8493 fi
8494 supports_anon_versioning=no
8934764e 8495 case `$LD -v 2>&1` in
bf9f3bac 8496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8499 *\ 2.11.*) ;; # other 2.11 versions
8500 *) supports_anon_versioning=yes ;;
8501 esac
8502
8503 # See if GNU ld supports shared libraries.
8504 case $host_os in
8934764e 8505 aix[3-9]*)
bf9f3bac 8506 # On AIX/PPC, the GNU linker is very broken
8507 if test "$host_cpu" != ia64; then
8934764e
BB
8508 ld_shlibs=no
8509 cat <<_LT_EOF 1>&2
bf9f3bac 8510
8511*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8512*** to be unable to reliably create shared libraries on AIX.
8513*** Therefore, libtool is disabling shared libraries support. If you
8514*** really care for shared libraries, you may want to modify your PATH
8515*** so that a non-GNU linker is found, and then restart.
8516
8934764e 8517_LT_EOF
bf9f3bac 8518 fi
8519 ;;
8520
8521 amigaos*)
8934764e
BB
8522 case $host_cpu in
8523 powerpc)
8524 # see comment about AmigaOS4 .so support
8525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8526 archive_expsym_cmds=''
8527 ;;
8528 m68k)
8529 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)'
8530 hardcode_libdir_flag_spec='-L$libdir'
8531 hardcode_minus_L=yes
8532 ;;
8533 esac
bf9f3bac 8534 ;;
8535
8536 beos*)
8934764e
BB
8537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8538 allow_undefined_flag=unsupported
bf9f3bac 8539 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8540 # support --undefined. This deserves some investigation. FIXME
8934764e 8541 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8542 else
8934764e 8543 ld_shlibs=no
bf9f3bac 8544 fi
8545 ;;
8546
8934764e
BB
8547 cygwin* | mingw* | pw32* | cegcc*)
8548 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
bf9f3bac 8549 # as there is no search path for DLLs.
8934764e
BB
8550 hardcode_libdir_flag_spec='-L$libdir'
8551 allow_undefined_flag=unsupported
8552 always_export_symbols=no
8553 enable_shared_with_static_runtimes=yes
8554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8555
8556 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
bf9f3bac 8558 # If the export-symbols file already is a .def file (1st line
8559 # is EXPORTS), use it as is; otherwise, prepend...
8934764e 8560 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
bf9f3bac 8561 cp $export_symbols $output_objdir/$soname.def;
8562 else
8563 echo EXPORTS > $output_objdir/$soname.def;
8564 cat $export_symbols >> $output_objdir/$soname.def;
8565 fi~
8566 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8567 else
8934764e 8568 ld_shlibs=no
bf9f3bac 8569 fi
8570 ;;
8571
8934764e
BB
8572 interix[3-9]*)
8573 hardcode_direct=no
8574 hardcode_shlibpath_var=no
8575 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8576 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 8577 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8578 # Instead, shared libraries are loaded at an image base (0x10000000 by
8579 # default) and relocated if they conflict, which is a slow very memory
8580 # consuming and fragmenting process. To avoid this, we pick a random,
8581 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8582 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8934764e
BB
8583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8584 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 8585 ;;
8586
8934764e
BB
8587 gnu* | linux* | tpf* | k*bsd*-gnu)
8588 tmp_diet=no
8589 if test "$host_os" = linux-dietlibc; then
8590 case $cc_basename in
8591 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8592 esac
8593 fi
8594 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8595 && test "$tmp_diet" = no
8596 then
bf9f3bac 8597 tmp_addflag=
8934764e 8598 tmp_sharedflag='-shared'
bf9f3bac 8599 case $cc_basename,$host_cpu in
8934764e
BB
8600 pgcc*) # Portland Group C compiler
8601 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
bf9f3bac 8602 tmp_addflag=' $pic_flag'
8603 ;;
8604 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8934764e 8605 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 8606 tmp_addflag=' $pic_flag -Mnomain' ;;
8934764e 8607 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
bf9f3bac 8608 tmp_addflag=' -i_dynamic' ;;
8609 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8610 tmp_addflag=' -i_dynamic -nofor_main' ;;
8611 ifc* | ifort*) # Intel Fortran compiler
8612 tmp_addflag=' -nofor_main' ;;
8934764e
BB
8613 lf95*) # Lahey Fortran 8.1
8614 whole_archive_flag_spec=
8615 tmp_sharedflag='--shared' ;;
8616 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8617 tmp_sharedflag='-qmkshrobj'
8618 tmp_addflag= ;;
8619 esac
8620 case `$CC -V 2>&1 | sed 5q` in
8621 *Sun\ C*) # Sun C 5.9
8622 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'
8623 compiler_needs_object=yes
8624 tmp_sharedflag='-G' ;;
8625 *Sun\ F*) # Sun Fortran 8.3
8626 tmp_sharedflag='-G' ;;
bf9f3bac 8627 esac
8934764e 8628 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8629
8934764e
BB
8630 if test "x$supports_anon_versioning" = xyes; then
8631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8633 echo "local: *; };" >> $output_objdir/$libname.ver~
8634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8635 fi
8636
8637 case $cc_basename in
8638 xlf*)
8639 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8640 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8641 hardcode_libdir_flag_spec=
8642 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8643 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8644 if test "x$supports_anon_versioning" = xyes; then
8645 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8647 echo "local: *; };" >> $output_objdir/$libname.ver~
8648 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8649 fi
8650 ;;
8651 esac
bf9f3bac 8652 else
8934764e 8653 ld_shlibs=no
bf9f3bac 8654 fi
8655 ;;
8656
8657 netbsd*)
8934764e
BB
8658 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8659 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
bf9f3bac 8660 wlarc=
8661 else
8934764e
BB
8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8664 fi
8665 ;;
8666
8667 solaris*)
8934764e
BB
8668 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8669 ld_shlibs=no
8670 cat <<_LT_EOF 1>&2
bf9f3bac 8671
8672*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8673*** create shared libraries on Solaris systems. Therefore, libtool
8674*** is disabling shared libraries support. We urge you to upgrade GNU
8675*** binutils to release 2.9.1 or newer. Another option is to modify
8676*** your PATH or compiler configuration so that the native linker is
8677*** used, and then restart.
8678
8934764e
BB
8679_LT_EOF
8680 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8683 else
8934764e 8684 ld_shlibs=no
bf9f3bac 8685 fi
8686 ;;
8687
8688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8689 case `$LD -v 2>&1` in
8690 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8934764e 8691 ld_shlibs=no
bf9f3bac 8692 cat <<_LT_EOF 1>&2
8693
8694*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8695*** reliably create shared libraries on SCO systems. Therefore, libtool
8696*** is disabling shared libraries support. We urge you to upgrade GNU
8697*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8698*** your PATH or compiler configuration so that the native linker is
8699*** used, and then restart.
8700
8701_LT_EOF
8702 ;;
8703 *)
8934764e
BB
8704 # For security reasons, it is highly recommended that you always
8705 # use absolute paths for naming shared libraries, and exclude the
8706 # DT_RUNPATH tag from executables and libraries. But doing so
8707 # requires that you compile everything twice, which is a pain.
8708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8712 else
8934764e 8713 ld_shlibs=no
bf9f3bac 8714 fi
8715 ;;
8716 esac
8717 ;;
8718
8719 sunos4*)
8934764e 8720 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 8721 wlarc=
8934764e
BB
8722 hardcode_direct=yes
8723 hardcode_shlibpath_var=no
bf9f3bac 8724 ;;
8725
8726 *)
8934764e
BB
8727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8730 else
8934764e 8731 ld_shlibs=no
bf9f3bac 8732 fi
8733 ;;
8734 esac
8735
8934764e 8736 if test "$ld_shlibs" = no; then
bf9f3bac 8737 runpath_var=
8934764e
BB
8738 hardcode_libdir_flag_spec=
8739 export_dynamic_flag_spec=
8740 whole_archive_flag_spec=
bf9f3bac 8741 fi
8742 else
8743 # PORTME fill in a description of your system's linker (not GNU ld)
8744 case $host_os in
8745 aix3*)
8934764e
BB
8746 allow_undefined_flag=unsupported
8747 always_export_symbols=yes
8748 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 8749 # Note: this linker hardcodes the directories in LIBPATH if there
8750 # are no directories specified by -L.
8934764e 8751 hardcode_minus_L=yes
bf9f3bac 8752 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8753 # Neither direct hardcoding nor static linking is supported with a
8754 # broken collect2.
8934764e 8755 hardcode_direct=unsupported
bf9f3bac 8756 fi
8757 ;;
8758
8934764e 8759 aix[4-9]*)
bf9f3bac 8760 if test "$host_cpu" = ia64; then
8761 # On IA64, the linker does run time linking by default, so we don't
8762 # have to do anything special.
8763 aix_use_runtimelinking=no
8764 exp_sym_flag='-Bexport'
8765 no_entry_flag=""
8766 else
8767 # If we're using GNU nm, then we don't want the "-C" option.
8768 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8934764e
BB
8769 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8770 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 8771 else
8934764e 8772 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 8773 fi
8774 aix_use_runtimelinking=no
8775
8776 # Test if we are trying to use run time linking or normal
8777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8778 # need to do runtime linking.
8934764e 8779 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
bf9f3bac 8780 for ld_flag in $LDFLAGS; do
8934764e
BB
8781 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8782 aix_use_runtimelinking=yes
8783 break
8784 fi
bf9f3bac 8785 done
8786 ;;
8787 esac
8788
8789 exp_sym_flag='-bexport'
8790 no_entry_flag='-bnoentry'
8791 fi
8792
8793 # When large executables or shared objects are built, AIX ld can
8794 # have problems creating the table of contents. If linking a library
8795 # or program results in "error TOC overflow" add -mminimal-toc to
8796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8798
8934764e
BB
8799 archive_cmds=''
8800 hardcode_direct=yes
8801 hardcode_direct_absolute=yes
8802 hardcode_libdir_separator=':'
8803 link_all_deplibs=yes
8804 file_list_spec='${wl}-f,'
bf9f3bac 8805
8806 if test "$GCC" = yes; then
8807 case $host_os in aix4.[012]|aix4.[012].*)
8808 # We only want to do this on AIX 4.2 and lower, the check
8809 # below for broken collect2 doesn't work under 4.3+
8810 collect2name=`${CC} -print-prog-name=collect2`
8934764e
BB
8811 if test -f "$collect2name" &&
8812 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
bf9f3bac 8813 then
8934764e
BB
8814 # We have reworked collect2
8815 :
bf9f3bac 8816 else
8934764e
BB
8817 # We have old collect2
8818 hardcode_direct=unsupported
8819 # It fails to find uninstalled libraries when the uninstalled
8820 # path is not listed in the libpath. Setting hardcode_minus_L
8821 # to unsupported forces relinking
8822 hardcode_minus_L=yes
8823 hardcode_libdir_flag_spec='-L$libdir'
8824 hardcode_libdir_separator=
bf9f3bac 8825 fi
8826 ;;
8827 esac
8828 shared_flag='-shared'
8829 if test "$aix_use_runtimelinking" = yes; then
8830 shared_flag="$shared_flag "'${wl}-G'
8831 fi
8832 else
8833 # not using gcc
8834 if test "$host_cpu" = ia64; then
8934764e
BB
8835 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8836 # chokes on -Wl,-G. The following line is correct:
bf9f3bac 8837 shared_flag='-G'
8838 else
8839 if test "$aix_use_runtimelinking" = yes; then
8840 shared_flag='${wl}-G'
8841 else
8842 shared_flag='${wl}-bM:SRE'
8843 fi
8844 fi
8845 fi
8846
8934764e 8847 export_dynamic_flag_spec='${wl}-bexpall'
bf9f3bac 8848 # It seems that -bexpall does not export symbols beginning with
8849 # underscore (_), so it is better to generate a list of symbols to export.
8934764e 8850 always_export_symbols=yes
bf9f3bac 8851 if test "$aix_use_runtimelinking" = yes; then
8852 # Warning - without using the other runtime loading flags (-brtl),
8853 # -berok will link without error, but may produce a broken library.
8934764e
BB
8854 allow_undefined_flag='-berok'
8855 # Determine the default libpath from the value encoded in an
8856 # empty executable.
8857 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 8858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
8863
8864int
8865main ()
8866{
8867
8868 ;
8869 return 0;
8870}
8871_ACEOF
8872rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8873if { (ac_try="$ac_link"
8874case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877esac
8878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8879$as_echo "$ac_try_echo") >&5
8880 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8934764e
BB
8885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest$ac_exeext && {
8890 test "$cross_compiling" = yes ||
8891 $as_test_x conftest$ac_exeext
8892 }; then
8893
8894lt_aix_libpath_sed='
8895 /Import File Strings/,/^$/ {
8896 /^0/ {
8897 s/^0 *\(.*\)$/\1/
8898 p
8899 }
8900 }'
8901aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8902# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8903if test -z "$aix_libpath"; then
8904 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8905fi
bf9f3bac 8906else
8934764e 8907 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8908sed 's/^/| /' conftest.$ac_ext >&5
8909
8934764e 8910
bf9f3bac 8911fi
8934764e
BB
8912
8913rm -rf conftest.dSYM
8914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8915 conftest$ac_exeext conftest.$ac_ext
8916if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8917
8934764e
BB
8918 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8919 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"
8920 else
bf9f3bac 8921 if test "$host_cpu" = ia64; then
8934764e
BB
8922 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8923 allow_undefined_flag="-z nodefs"
8924 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 8925 else
8934764e
BB
8926 # Determine the default libpath from the value encoded in an
8927 # empty executable.
bf9f3bac 8928 cat >conftest.$ac_ext <<_ACEOF
8929/* confdefs.h. */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
8933/* end confdefs.h. */
8934
8935int
8936main ()
8937{
8938
8939 ;
8940 return 0;
8941}
8942_ACEOF
8943rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8944if { (ac_try="$ac_link"
8945case "(($ac_try" in
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8948esac
8949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8950$as_echo "$ac_try_echo") >&5
8951 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8952 ac_status=$?
8953 grep -v '^ *+' conftest.er1 >conftest.err
8954 rm -f conftest.er1
8955 cat conftest.err >&5
8934764e
BB
8956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); } && {
8958 test -z "$ac_c_werror_flag" ||
8959 test ! -s conftest.err
8960 } && test -s conftest$ac_exeext && {
8961 test "$cross_compiling" = yes ||
8962 $as_test_x conftest$ac_exeext
8963 }; then
8964
8965lt_aix_libpath_sed='
8966 /Import File Strings/,/^$/ {
8967 /^0/ {
8968 s/^0 *\(.*\)$/\1/
8969 p
8970 }
8971 }'
8972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8973# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8974if test -z "$aix_libpath"; then
8975 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8976fi
bf9f3bac 8977else
8934764e 8978 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8979sed 's/^/| /' conftest.$ac_ext >&5
8980
8934764e 8981
bf9f3bac 8982fi
8934764e
BB
8983
8984rm -rf conftest.dSYM
8985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8986 conftest$ac_exeext conftest.$ac_ext
8987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8988
8934764e 8989 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
bf9f3bac 8990 # Warning - without using the other run time loading flags,
8991 # -berok will link without error, but may produce a broken library.
8934764e
BB
8992 no_undefined_flag=' ${wl}-bernotok'
8993 allow_undefined_flag=' ${wl}-berok'
bf9f3bac 8994 # Exported symbols can be pulled into shared objects from archives
8934764e
BB
8995 whole_archive_flag_spec='$convenience'
8996 archive_cmds_need_lc=yes
bf9f3bac 8997 # This is similar to how AIX traditionally builds its shared libraries.
8934764e 8998 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 8999 fi
9000 fi
9001 ;;
9002
9003 amigaos*)
8934764e
BB
9004 case $host_cpu in
9005 powerpc)
9006 # see comment about AmigaOS4 .so support
9007 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008 archive_expsym_cmds=''
9009 ;;
9010 m68k)
9011 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)'
9012 hardcode_libdir_flag_spec='-L$libdir'
9013 hardcode_minus_L=yes
9014 ;;
9015 esac
bf9f3bac 9016 ;;
9017
9018 bsdi[45]*)
8934764e 9019 export_dynamic_flag_spec=-rdynamic
bf9f3bac 9020 ;;
9021
8934764e 9022 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9023 # When not using gcc, we currently assume that we are using
9024 # Microsoft Visual C++.
9025 # hardcode_libdir_flag_spec is actually meaningless, as there is
9026 # no search path for DLLs.
8934764e
BB
9027 hardcode_libdir_flag_spec=' '
9028 allow_undefined_flag=unsupported
bf9f3bac 9029 # Tell ltmain to make .lib files, not .a files.
9030 libext=lib
9031 # Tell ltmain to make .dll files, not .so files.
9032 shrext_cmds=".dll"
9033 # FIXME: Setting linknames here is a bad hack.
8934764e 9034 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
bf9f3bac 9035 # The linker will automatically build a .lib file if we build a DLL.
8934764e 9036 old_archive_from_new_cmds='true'
bf9f3bac 9037 # FIXME: Should let the user specify the lib program.
8934764e
BB
9038 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9039 fix_srcfile_path='`cygpath -w "$srcfile"`'
9040 enable_shared_with_static_runtimes=yes
bf9f3bac 9041 ;;
9042
9043 darwin* | rhapsody*)
8934764e
BB
9044
9045
9046 archive_cmds_need_lc=no
9047 hardcode_direct=no
9048 hardcode_automatic=yes
9049 hardcode_shlibpath_var=unsupported
9050 whole_archive_flag_spec=''
9051 link_all_deplibs=yes
9052 allow_undefined_flag="$_lt_dar_allow_undefined"
9053 case $cc_basename in
9054 ifort*) _lt_dar_can_shared=yes ;;
9055 *) _lt_dar_can_shared=$GCC ;;
9056 esac
9057 if test "$_lt_dar_can_shared" = "yes"; then
9058 output_verbose_link_cmd=echo
9059 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9060 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9061 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}"
9062 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}"
9063
9064 else
9065 ld_shlibs=no
9066 fi
9067
bf9f3bac 9068 ;;
9069
9070 dgux*)
8934764e
BB
9071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_libdir_flag_spec='-L$libdir'
9073 hardcode_shlibpath_var=no
bf9f3bac 9074 ;;
9075
9076 freebsd1*)
8934764e 9077 ld_shlibs=no
bf9f3bac 9078 ;;
9079
9080 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9081 # support. Future versions do this automatically, but an explicit c++rt0.o
9082 # does not break anything, and helps significantly (at the cost of a little
9083 # extra space).
9084 freebsd2.2*)
8934764e
BB
9085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9086 hardcode_libdir_flag_spec='-R$libdir'
9087 hardcode_direct=yes
9088 hardcode_shlibpath_var=no
bf9f3bac 9089 ;;
9090
9091 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9092 freebsd2*)
8934764e
BB
9093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9094 hardcode_direct=yes
9095 hardcode_minus_L=yes
9096 hardcode_shlibpath_var=no
bf9f3bac 9097 ;;
9098
9099 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8934764e
BB
9100 freebsd* | dragonfly*)
9101 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9102 hardcode_libdir_flag_spec='-R$libdir'
9103 hardcode_direct=yes
9104 hardcode_shlibpath_var=no
bf9f3bac 9105 ;;
9106
9107 hpux9*)
9108 if test "$GCC" = yes; then
8934764e 9109 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 9110 else
8934764e 9111 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 9112 fi
8934764e
BB
9113 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9114 hardcode_libdir_separator=:
9115 hardcode_direct=yes
bf9f3bac 9116
9117 # hardcode_minus_L: Not really in the search PATH,
9118 # but as the default location of the library.
8934764e
BB
9119 hardcode_minus_L=yes
9120 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9121 ;;
9122
9123 hpux10*)
9124 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8934764e 9125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9126 else
8934764e 9127 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9128 fi
9129 if test "$with_gnu_ld" = no; then
8934764e
BB
9130 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9131 hardcode_libdir_flag_spec_ld='+b $libdir'
9132 hardcode_libdir_separator=:
9133 hardcode_direct=yes
9134 hardcode_direct_absolute=yes
9135 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9136 # hardcode_minus_L: Not really in the search PATH,
9137 # but as the default location of the library.
8934764e 9138 hardcode_minus_L=yes
bf9f3bac 9139 fi
9140 ;;
9141
9142 hpux11*)
9143 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9144 case $host_cpu in
9145 hppa*64*)
8934764e 9146 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9147 ;;
9148 ia64*)
8934764e 9149 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9150 ;;
9151 *)
8934764e 9152 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9153 ;;
9154 esac
9155 else
9156 case $host_cpu in
9157 hppa*64*)
8934764e 9158 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9159 ;;
9160 ia64*)
8934764e 9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9162 ;;
9163 *)
8934764e 9164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9165 ;;
9166 esac
9167 fi
9168 if test "$with_gnu_ld" = no; then
8934764e
BB
9169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9170 hardcode_libdir_separator=:
bf9f3bac 9171
9172 case $host_cpu in
9173 hppa*64*|ia64*)
8934764e
BB
9174 hardcode_direct=no
9175 hardcode_shlibpath_var=no
bf9f3bac 9176 ;;
9177 *)
8934764e
BB
9178 hardcode_direct=yes
9179 hardcode_direct_absolute=yes
9180 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9181
9182 # hardcode_minus_L: Not really in the search PATH,
9183 # but as the default location of the library.
8934764e 9184 hardcode_minus_L=yes
bf9f3bac 9185 ;;
9186 esac
9187 fi
9188 ;;
9189
9190 irix5* | irix6* | nonstopux*)
9191 if test "$GCC" = yes; then
8934764e
BB
9192 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'
9193 # Try to use the -exported_symbol ld option, if it does not
9194 # work, assume that -exports_file does not work either and
9195 # implicitly export all symbols.
9196 save_LDFLAGS="$LDFLAGS"
9197 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9198 cat >conftest.$ac_ext <<_ACEOF
9199int foo(void) {}
9200_ACEOF
9201rm -f conftest.$ac_objext conftest$ac_exeext
9202if { (ac_try="$ac_link"
9203case "(($ac_try" in
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9206esac
9207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9208$as_echo "$ac_try_echo") >&5
9209 (eval "$ac_link") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest$ac_exeext && {
9219 test "$cross_compiling" = yes ||
9220 $as_test_x conftest$ac_exeext
9221 }; then
9222 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'
9223
9224else
9225 $as_echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228
9229fi
9230
9231rm -rf conftest.dSYM
9232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9233 conftest$ac_exeext conftest.$ac_ext
9234 LDFLAGS="$save_LDFLAGS"
bf9f3bac 9235 else
8934764e
BB
9236 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'
9237 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 9238 fi
8934764e
BB
9239 archive_cmds_need_lc='no'
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 hardcode_libdir_separator=:
9242 inherit_rpath=yes
9243 link_all_deplibs=yes
bf9f3bac 9244 ;;
9245
9246 netbsd*)
8934764e
BB
9247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
bf9f3bac 9249 else
8934764e 9250 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
bf9f3bac 9251 fi
8934764e
BB
9252 hardcode_libdir_flag_spec='-R$libdir'
9253 hardcode_direct=yes
9254 hardcode_shlibpath_var=no
bf9f3bac 9255 ;;
9256
9257 newsos6)
8934764e
BB
9258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9259 hardcode_direct=yes
9260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9261 hardcode_libdir_separator=:
9262 hardcode_shlibpath_var=no
9263 ;;
9264
9265 *nto* | *qnx*)
bf9f3bac 9266 ;;
9267
9268 openbsd*)
8934764e
BB
9269 if test -f /usr/libexec/ld.so; then
9270 hardcode_direct=yes
9271 hardcode_shlibpath_var=no
9272 hardcode_direct_absolute=yes
9273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9275 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9277 export_dynamic_flag_spec='${wl}-E'
9278 else
9279 case $host_os in
9280 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9282 hardcode_libdir_flag_spec='-R$libdir'
9283 ;;
9284 *)
9285 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9287 ;;
9288 esac
9289 fi
bf9f3bac 9290 else
8934764e 9291 ld_shlibs=no
bf9f3bac 9292 fi
9293 ;;
9294
9295 os2*)
8934764e
BB
9296 hardcode_libdir_flag_spec='-L$libdir'
9297 hardcode_minus_L=yes
9298 allow_undefined_flag=unsupported
9299 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'
9300 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
bf9f3bac 9301 ;;
9302
9303 osf3*)
9304 if test "$GCC" = yes; then
8934764e
BB
9305 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9306 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 9307 else
8934764e
BB
9308 allow_undefined_flag=' -expect_unresolved \*'
9309 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 9310 fi
8934764e
BB
9311 archive_cmds_need_lc='no'
9312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9313 hardcode_libdir_separator=:
bf9f3bac 9314 ;;
9315
9316 osf4* | osf5*) # as osf3* with the addition of -msym flag
9317 if test "$GCC" = yes; then
8934764e
BB
9318 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9319 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'
9320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
bf9f3bac 9321 else
8934764e
BB
9322 allow_undefined_flag=' -expect_unresolved \*'
9323 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'
9324 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~
9325 $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 9326
9327 # Both c and cxx compiler support -rpath directly
8934764e 9328 hardcode_libdir_flag_spec='-rpath $libdir'
bf9f3bac 9329 fi
8934764e
BB
9330 archive_cmds_need_lc='no'
9331 hardcode_libdir_separator=:
bf9f3bac 9332 ;;
9333
9334 solaris*)
8934764e 9335 no_undefined_flag=' -z defs'
bf9f3bac 9336 if test "$GCC" = yes; then
9337 wlarc='${wl}'
8934764e
BB
9338 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9340 $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 9341 else
8934764e
BB
9342 case `$CC -V 2>&1` in
9343 *"Compilers 5.0"*)
9344 wlarc=''
9345 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9347 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9348 ;;
9349 *)
9350 wlarc='${wl}'
9351 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9353 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9354 ;;
9355 esac
bf9f3bac 9356 fi
8934764e
BB
9357 hardcode_libdir_flag_spec='-R$libdir'
9358 hardcode_shlibpath_var=no
bf9f3bac 9359 case $host_os in
9360 solaris2.[0-5] | solaris2.[0-5].*) ;;
9361 *)
8934764e
BB
9362 # The compiler driver will combine and reorder linker options,
9363 # but understands `-z linker_flag'. GCC discards it without `$wl',
9364 # but is careful enough not to reorder.
9365 # Supported since Solaris 2.6 (maybe 2.5.1?)
9366 if test "$GCC" = yes; then
9367 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9368 else
9369 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9370 fi
9371 ;;
bf9f3bac 9372 esac
8934764e 9373 link_all_deplibs=yes
bf9f3bac 9374 ;;
9375
9376 sunos4*)
9377 if test "x$host_vendor" = xsequent; then
9378 # Use $CC to link under sequent, because it throws in some extra .o
9379 # files that make .init and .fini sections work.
8934764e 9380 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9381 else
8934764e 9382 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9383 fi
8934764e
BB
9384 hardcode_libdir_flag_spec='-L$libdir'
9385 hardcode_direct=yes
9386 hardcode_minus_L=yes
9387 hardcode_shlibpath_var=no
bf9f3bac 9388 ;;
9389
9390 sysv4)
9391 case $host_vendor in
9392 sni)
8934764e
BB
9393 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394 hardcode_direct=yes # is this really true???
bf9f3bac 9395 ;;
9396 siemens)
9397 ## LD is ld it makes a PLAMLIB
9398 ## CC just makes a GrossModule.
8934764e
BB
9399 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9400 reload_cmds='$CC -r -o $output$reload_objs'
9401 hardcode_direct=no
bf9f3bac 9402 ;;
9403 motorola)
8934764e
BB
9404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
bf9f3bac 9406 ;;
9407 esac
9408 runpath_var='LD_RUN_PATH'
8934764e 9409 hardcode_shlibpath_var=no
bf9f3bac 9410 ;;
9411
9412 sysv4.3*)
8934764e
BB
9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414 hardcode_shlibpath_var=no
9415 export_dynamic_flag_spec='-Bexport'
bf9f3bac 9416 ;;
9417
9418 sysv4*MP*)
9419 if test -d /usr/nec; then
8934764e
BB
9420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421 hardcode_shlibpath_var=no
bf9f3bac 9422 runpath_var=LD_RUN_PATH
9423 hardcode_runpath_var=yes
8934764e 9424 ld_shlibs=yes
bf9f3bac 9425 fi
9426 ;;
9427
8934764e
BB
9428 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9429 no_undefined_flag='${wl}-z,text'
9430 archive_cmds_need_lc=no
9431 hardcode_shlibpath_var=no
bf9f3bac 9432 runpath_var='LD_RUN_PATH'
9433
9434 if test "$GCC" = yes; then
8934764e
BB
9435 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9437 else
8934764e
BB
9438 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9440 fi
9441 ;;
9442
9443 sysv5* | sco3.2v5* | sco5v6*)
9444 # Note: We can NOT use -z defs as we might desire, because we do not
9445 # link with -lc, and that would cause any symbols used from libc to
9446 # always be unresolved, which means just about no library would
9447 # ever link correctly. If we're not using GNU ld we use -z text
9448 # though, which does catch some bad symbols but isn't as heavy-handed
9449 # as -z defs.
8934764e
BB
9450 no_undefined_flag='${wl}-z,text'
9451 allow_undefined_flag='${wl}-z,nodefs'
9452 archive_cmds_need_lc=no
9453 hardcode_shlibpath_var=no
9454 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9455 hardcode_libdir_separator=':'
9456 link_all_deplibs=yes
9457 export_dynamic_flag_spec='${wl}-Bexport'
bf9f3bac 9458 runpath_var='LD_RUN_PATH'
9459
9460 if test "$GCC" = yes; then
8934764e
BB
9461 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9462 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9463 else
8934764e
BB
9464 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9466 fi
9467 ;;
9468
9469 uts4*)
8934764e
BB
9470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9471 hardcode_libdir_flag_spec='-L$libdir'
9472 hardcode_shlibpath_var=no
bf9f3bac 9473 ;;
9474
9475 *)
8934764e 9476 ld_shlibs=no
bf9f3bac 9477 ;;
9478 esac
8934764e
BB
9479
9480 if test x$host_vendor = xsni; then
9481 case $host in
9482 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9483 export_dynamic_flag_spec='${wl}-Blargedynsym'
9484 ;;
9485 esac
9486 fi
bf9f3bac 9487 fi
9488
8934764e
BB
9489{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9490$as_echo "$ld_shlibs" >&6; }
9491test "$ld_shlibs" = no && can_build_shared=no
9492
9493with_gnu_ld=$with_gnu_ld
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
bf9f3bac 9508
9509#
9510# Do we need to explicitly link libc?
9511#
8934764e 9512case "x$archive_cmds_need_lc" in
bf9f3bac 9513x|xyes)
9514 # Assume -lc should be added
8934764e 9515 archive_cmds_need_lc=yes
bf9f3bac 9516
9517 if test "$enable_shared" = yes && test "$GCC" = yes; then
8934764e 9518 case $archive_cmds in
bf9f3bac 9519 *'~'*)
9520 # FIXME: we may have to deal with multi-command sequences.
9521 ;;
9522 '$CC '*)
9523 # Test whether the compiler implicitly links with -lc since on some
9524 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9525 # to ld, don't add -lc before -lgcc.
8934764e
BB
9526 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9527$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9528 $RM conftest*
9529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 9530
9531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9532 (eval $ac_compile) 2>&5
9533 ac_status=$?
8934764e 9534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9535 (exit $ac_status); } 2>conftest.err; then
9536 soname=conftest
9537 lib=conftest
9538 libobjs=conftest.$ac_objext
9539 deplibs=
8934764e
BB
9540 wl=$lt_prog_compiler_wl
9541 pic_flag=$lt_prog_compiler_pic
bf9f3bac 9542 compiler_flags=-v
9543 linker_flags=-v
9544 verstring=
9545 output_objdir=.
9546 libname=conftest
8934764e
BB
9547 lt_save_allow_undefined_flag=$allow_undefined_flag
9548 allow_undefined_flag=
9549 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9550 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
bf9f3bac 9551 ac_status=$?
8934764e 9552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9553 (exit $ac_status); }
9554 then
8934764e 9555 archive_cmds_need_lc=no
bf9f3bac 9556 else
8934764e 9557 archive_cmds_need_lc=yes
bf9f3bac 9558 fi
8934764e 9559 allow_undefined_flag=$lt_save_allow_undefined_flag
bf9f3bac 9560 else
9561 cat conftest.err 1>&5
9562 fi
8934764e
BB
9563 $RM conftest*
9564 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9565$as_echo "$archive_cmds_need_lc" >&6; }
bf9f3bac 9566 ;;
9567 esac
9568 fi
9569 ;;
9570esac
9571
8934764e
BB
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9729$as_echo_n "checking dynamic linker characteristics... " >&6; }
9730
9731if test "$GCC" = yes; then
9732 case $host_os in
9733 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9734 *) lt_awk_arg="/^libraries:/" ;;
9735 esac
9736 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9737 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9738 # if the path contains ";" then we assume it to be the separator
9739 # otherwise default to the standard path separator (i.e. ":") - it is
9740 # assumed that no part of a normal pathname contains ";" but that should
9741 # okay in the real world where ";" in dirpaths is itself problematic.
9742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9743 else
9744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9745 fi
9746 # Ok, now we have the path, separated by spaces, we can step through it
9747 # and add multilib dir if necessary.
9748 lt_tmp_lt_search_path_spec=
9749 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9750 for lt_sys_path in $lt_search_path_spec; do
9751 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9752 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9753 else
9754 test -d "$lt_sys_path" && \
9755 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9756 fi
9757 done
9758 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9759BEGIN {RS=" "; FS="/|\n";} {
9760 lt_foo="";
9761 lt_count=0;
9762 for (lt_i = NF; lt_i > 0; lt_i--) {
9763 if ($lt_i != "" && $lt_i != ".") {
9764 if ($lt_i == "..") {
9765 lt_count++;
9766 } else {
9767 if (lt_count == 0) {
9768 lt_foo="/" $lt_i lt_foo;
9769 } else {
9770 lt_count--;
9771 }
9772 }
9773 }
9774 }
9775 if (lt_foo != "") { lt_freq[lt_foo]++; }
9776 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9777}'`
9778 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9779else
9780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9781fi
bf9f3bac 9782library_names_spec=
9783libname_spec='lib$name'
9784soname_spec=
9785shrext_cmds=".so"
9786postinstall_cmds=
9787postuninstall_cmds=
9788finish_cmds=
9789finish_eval=
9790shlibpath_var=
9791shlibpath_overrides_runpath=unknown
9792version_type=none
9793dynamic_linker="$host_os ld.so"
9794sys_lib_dlsearch_path_spec="/lib /usr/lib"
bf9f3bac 9795need_lib_prefix=unknown
9796hardcode_into_libs=no
9797
9798# when you set need_version to no, make sure it does not cause -set_version
9799# flags to be left without arguments
9800need_version=unknown
9801
9802case $host_os in
9803aix3*)
9804 version_type=linux
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9806 shlibpath_var=LIBPATH
9807
9808 # AIX 3 has no versioning support, so we append a major version to the name.
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 ;;
9811
8934764e 9812aix[4-9]*)
bf9f3bac 9813 version_type=linux
9814 need_lib_prefix=no
9815 need_version=no
9816 hardcode_into_libs=yes
9817 if test "$host_cpu" = ia64; then
9818 # AIX 5 supports IA64
9819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 else
9822 # With GCC up to 2.95.x, collect2 would create an import file
9823 # for dependence libraries. The import file would start with
9824 # the line `#! .'. This would cause the generated library to
9825 # depend on `.', always an invalid library. This was fixed in
9826 # development snapshots of GCC prior to 3.0.
9827 case $host_os in
9828 aix4 | aix4.[01] | aix4.[01].*)
9829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9830 echo ' yes '
8934764e 9831 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
bf9f3bac 9832 :
9833 else
9834 can_build_shared=no
9835 fi
9836 ;;
9837 esac
9838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9839 # soname into executable. Probably we can add versioning support to
9840 # collect2, so additional links can be useful in future.
9841 if test "$aix_use_runtimelinking" = yes; then
9842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9843 # instead of lib<name>.a to let people know that these are not
9844 # typical AIX shared libraries.
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 else
9847 # We preserve .a as extension for shared libraries through AIX4.2
9848 # and later when we are not doing run time linking.
9849 library_names_spec='${libname}${release}.a $libname.a'
9850 soname_spec='${libname}${release}${shared_ext}$major'
9851 fi
9852 shlibpath_var=LIBPATH
9853 fi
9854 ;;
9855
9856amigaos*)
8934764e
BB
9857 case $host_cpu in
9858 powerpc)
9859 # Since July 2007 AmigaOS4 officially supports .so libraries.
9860 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9862 ;;
9863 m68k)
9864 library_names_spec='$libname.ixlibrary $libname.a'
9865 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9866 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'
9867 ;;
9868 esac
bf9f3bac 9869 ;;
9870
9871beos*)
9872 library_names_spec='${libname}${shared_ext}'
9873 dynamic_linker="$host_os ld.so"
9874 shlibpath_var=LIBRARY_PATH
9875 ;;
9876
9877bsdi[45]*)
9878 version_type=linux
9879 need_version=no
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 soname_spec='${libname}${release}${shared_ext}$major'
9882 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9885 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9886 # the default ld.so.conf also contains /usr/contrib/lib and
9887 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9888 # libtool to hard-code these into programs
9889 ;;
9890
8934764e 9891cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9892 version_type=windows
9893 shrext_cmds=".dll"
9894 need_version=no
9895 need_lib_prefix=no
9896
9897 case $GCC,$host_os in
8934764e 9898 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
bf9f3bac 9899 library_names_spec='$libname.dll.a'
9900 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9901 postinstall_cmds='base_file=`basename \${file}`~
8934764e 9902 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
bf9f3bac 9903 dldir=$destdir/`dirname \$dlpath`~
9904 test -d \$dldir || mkdir -p \$dldir~
9905 $install_prog $dir/$dlname \$dldir/$dlname~
8934764e
BB
9906 chmod a+x \$dldir/$dlname~
9907 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9908 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9909 fi'
bf9f3bac 9910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9911 dlpath=$dir/\$dldll~
8934764e 9912 $RM \$dlpath'
bf9f3bac 9913 shlibpath_overrides_runpath=yes
9914
9915 case $host_os in
9916 cygwin*)
9917 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9918 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9920 ;;
8934764e 9921 mingw* | cegcc*)
bf9f3bac 9922 # MinGW DLLs use traditional 'lib' prefix
9923 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934764e
BB
9924 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9925 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
bf9f3bac 9926 # It is most probably a Windows format PATH printed by
9927 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9928 # path with ; separators, and with drive letters. We can handle the
9929 # drive letters (cygwin fileutils understands them), so leave them,
9930 # especially as we might pass files found there to a mingw objdump,
9931 # which wouldn't understand a cygwinified path. Ahh.
8934764e 9932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
bf9f3bac 9933 else
8934764e 9934 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
bf9f3bac 9935 fi
9936 ;;
9937 pw32*)
9938 # pw32 DLLs use 'pw' prefix rather than 'lib'
9939 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9940 ;;
9941 esac
9942 ;;
9943
9944 *)
9945 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9946 ;;
9947 esac
9948 dynamic_linker='Win32 ld.exe'
9949 # FIXME: first we should search . and the directory the executable is in
9950 shlibpath_var=PATH
9951 ;;
9952
9953darwin* | rhapsody*)
9954 dynamic_linker="$host_os dyld"
9955 version_type=darwin
9956 need_lib_prefix=no
9957 need_version=no
8934764e 9958 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
bf9f3bac 9959 soname_spec='${libname}${release}${major}$shared_ext'
9960 shlibpath_overrides_runpath=yes
9961 shlibpath_var=DYLD_LIBRARY_PATH
9962 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8934764e
BB
9963
9964 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
bf9f3bac 9965 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9966 ;;
9967
9968dgux*)
9969 version_type=linux
9970 need_lib_prefix=no
9971 need_version=no
9972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9973 soname_spec='${libname}${release}${shared_ext}$major'
9974 shlibpath_var=LD_LIBRARY_PATH
9975 ;;
9976
9977freebsd1*)
9978 dynamic_linker=no
9979 ;;
9980
bf9f3bac 9981freebsd* | dragonfly*)
9982 # DragonFly does not have aout. When/if they implement a new
9983 # versioning mechanism, adjust this.
9984 if test -x /usr/bin/objformat; then
9985 objformat=`/usr/bin/objformat`
9986 else
9987 case $host_os in
9988 freebsd[123]*) objformat=aout ;;
9989 *) objformat=elf ;;
9990 esac
9991 fi
9992 version_type=freebsd-$objformat
9993 case $version_type in
9994 freebsd-elf*)
9995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9996 need_version=no
9997 need_lib_prefix=no
9998 ;;
9999 freebsd-*)
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10001 need_version=yes
10002 ;;
10003 esac
10004 shlibpath_var=LD_LIBRARY_PATH
10005 case $host_os in
10006 freebsd2*)
10007 shlibpath_overrides_runpath=yes
10008 ;;
10009 freebsd3.[01]* | freebsdelf3.[01]*)
10010 shlibpath_overrides_runpath=yes
10011 hardcode_into_libs=yes
10012 ;;
10013 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10014 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10015 shlibpath_overrides_runpath=no
10016 hardcode_into_libs=yes
10017 ;;
8934764e 10018 *) # from 4.6 on, and DragonFly
bf9f3bac 10019 shlibpath_overrides_runpath=yes
10020 hardcode_into_libs=yes
10021 ;;
10022 esac
10023 ;;
10024
10025gnu*)
10026 version_type=linux
10027 need_lib_prefix=no
10028 need_version=no
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 hardcode_into_libs=yes
10033 ;;
10034
10035hpux9* | hpux10* | hpux11*)
10036 # Give a soname corresponding to the major version so that dld.sl refuses to
10037 # link against other versions.
10038 version_type=sunos
10039 need_lib_prefix=no
10040 need_version=no
10041 case $host_cpu in
10042 ia64*)
10043 shrext_cmds='.so'
10044 hardcode_into_libs=yes
10045 dynamic_linker="$host_os dld.so"
10046 shlibpath_var=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049 soname_spec='${libname}${release}${shared_ext}$major'
10050 if test "X$HPUX_IA64_MODE" = X32; then
10051 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10052 else
10053 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10054 fi
10055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10056 ;;
8934764e
BB
10057 hppa*64*)
10058 shrext_cmds='.sl'
10059 hardcode_into_libs=yes
10060 dynamic_linker="$host_os dld.sl"
10061 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10062 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10066 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10067 ;;
10068 *)
bf9f3bac 10069 shrext_cmds='.sl'
10070 dynamic_linker="$host_os dld.sl"
10071 shlibpath_var=SHLIB_PATH
10072 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 ;;
10076 esac
10077 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10078 postinstall_cmds='chmod 555 $lib'
10079 ;;
10080
8934764e 10081interix[3-9]*)
bf9f3bac 10082 version_type=linux
10083 need_lib_prefix=no
10084 need_version=no
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10087 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=no
10090 hardcode_into_libs=yes
10091 ;;
10092
10093irix5* | irix6* | nonstopux*)
10094 case $host_os in
10095 nonstopux*) version_type=nonstopux ;;
10096 *)
10097 if test "$lt_cv_prog_gnu_ld" = yes; then
10098 version_type=linux
10099 else
10100 version_type=irix
10101 fi ;;
10102 esac
10103 need_lib_prefix=no
10104 need_version=no
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10107 case $host_os in
10108 irix5* | nonstopux*)
10109 libsuff= shlibsuff=
10110 ;;
10111 *)
10112 case $LD in # libtool.m4 will add one of these switches to LD
10113 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10114 libsuff= shlibsuff= libmagic=32-bit;;
10115 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10116 libsuff=32 shlibsuff=N32 libmagic=N32;;
10117 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10118 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10119 *) libsuff= shlibsuff= libmagic=never-match;;
10120 esac
10121 ;;
10122 esac
10123 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10124 shlibpath_overrides_runpath=no
10125 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10126 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10127 hardcode_into_libs=yes
10128 ;;
10129
10130# No shared lib support for Linux oldld, aout, or coff.
10131linux*oldld* | linux*aout* | linux*coff*)
10132 dynamic_linker=no
10133 ;;
10134
10135# This must be Linux ELF.
8934764e 10136linux* | k*bsd*-gnu)
bf9f3bac 10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 shlibpath_overrides_runpath=no
8934764e
BB
10145 # Some binutils ld are patched to set DT_RUNPATH
10146 save_LDFLAGS=$LDFLAGS
10147 save_libdir=$libdir
10148 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10149 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10150 cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h. */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h. */
10156
10157int
10158main ()
10159{
10160
10161 ;
10162 return 0;
10163}
10164_ACEOF
10165rm -f conftest.$ac_objext conftest$ac_exeext
10166if { (ac_try="$ac_link"
10167case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170esac
10171eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10172$as_echo "$ac_try_echo") >&5
10173 (eval "$ac_link") 2>conftest.er1
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } && {
10180 test -z "$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 } && test -s conftest$ac_exeext && {
10183 test "$cross_compiling" = yes ||
10184 $as_test_x conftest$ac_exeext
10185 }; then
10186 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10187 shlibpath_overrides_runpath=yes
10188fi
10189
10190else
10191 $as_echo "$as_me: failed program was:" >&5
10192sed 's/^/| /' conftest.$ac_ext >&5
10193
10194
10195fi
10196
10197rm -rf conftest.dSYM
10198rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10199 conftest$ac_exeext conftest.$ac_ext
10200 LDFLAGS=$save_LDFLAGS
10201 libdir=$save_libdir
10202
bf9f3bac 10203 # This implies no fast_install, which is unacceptable.
10204 # Some rework will be needed to allow for fast_install
10205 # before this can be enabled.
10206 hardcode_into_libs=yes
10207
8934764e
BB
10208 # Add ABI-specific directories to the system library path.
10209 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
bf9f3bac 10210
10211 # Append ld.so.conf contents to the search path
10212 if test -f /etc/ld.so.conf; then
8934764e
BB
10213 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' ' '`
10214 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
bf9f3bac 10215 fi
10216
10217 # We used to test for /lib/ld.so.1 and disable shared libraries on
10218 # powerpc, because MkLinux only supported shared libraries with the
10219 # GNU dynamic linker. Since this was broken with cross compilers,
10220 # most powerpc-linux boxes support dynamic linking these days and
10221 # people can always --disable-shared, the test was removed, and we
10222 # assume the GNU/Linux dynamic linker is in use.
10223 dynamic_linker='GNU/Linux ld.so'
10224 ;;
10225
bf9f3bac 10226netbsd*)
10227 version_type=sunos
10228 need_lib_prefix=no
10229 need_version=no
8934764e 10230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
bf9f3bac 10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10233 dynamic_linker='NetBSD (a.out) ld.so'
10234 else
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 dynamic_linker='NetBSD ld.elf_so'
10238 fi
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10241 hardcode_into_libs=yes
10242 ;;
10243
10244newsos6)
10245 version_type=linux
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 shlibpath_var=LD_LIBRARY_PATH
10248 shlibpath_overrides_runpath=yes
10249 ;;
10250
8934764e
BB
10251*nto* | *qnx*)
10252 version_type=qnx
bf9f3bac 10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 shlibpath_var=LD_LIBRARY_PATH
8934764e
BB
10258 shlibpath_overrides_runpath=no
10259 hardcode_into_libs=yes
10260 dynamic_linker='ldqnx.so'
bf9f3bac 10261 ;;
10262
10263openbsd*)
10264 version_type=sunos
10265 sys_lib_dlsearch_path_spec="/usr/lib"
10266 need_lib_prefix=no
10267 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10268 case $host_os in
8934764e
BB
10269 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10270 *) need_version=no ;;
bf9f3bac 10271 esac
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10274 shlibpath_var=LD_LIBRARY_PATH
8934764e 10275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
bf9f3bac 10276 case $host_os in
10277 openbsd2.[89] | openbsd2.[89].*)
10278 shlibpath_overrides_runpath=no
10279 ;;
10280 *)
10281 shlibpath_overrides_runpath=yes
10282 ;;
10283 esac
10284 else
10285 shlibpath_overrides_runpath=yes
10286 fi
10287 ;;
10288
10289os2*)
10290 libname_spec='$name'
10291 shrext_cmds=".dll"
10292 need_lib_prefix=no
10293 library_names_spec='$libname${shared_ext} $libname.a'
10294 dynamic_linker='OS/2 ld.exe'
10295 shlibpath_var=LIBPATH
10296 ;;
10297
10298osf3* | osf4* | osf5*)
10299 version_type=osf
10300 need_lib_prefix=no
10301 need_version=no
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10306 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10307 ;;
10308
8934764e
BB
10309rdos*)
10310 dynamic_linker=no
10311 ;;
10312
bf9f3bac 10313solaris*)
10314 version_type=linux
10315 need_lib_prefix=no
10316 need_version=no
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 shlibpath_var=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath=yes
10321 hardcode_into_libs=yes
10322 # ldd complains unless libraries are executable
10323 postinstall_cmds='chmod +x $lib'
10324 ;;
10325
10326sunos4*)
10327 version_type=sunos
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10329 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 shlibpath_overrides_runpath=yes
10332 if test "$with_gnu_ld" = yes; then
10333 need_lib_prefix=no
10334 fi
10335 need_version=yes
10336 ;;
10337
10338sysv4 | sysv4.3*)
10339 version_type=linux
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LD_LIBRARY_PATH
10343 case $host_vendor in
10344 sni)
10345 shlibpath_overrides_runpath=no
10346 need_lib_prefix=no
bf9f3bac 10347 runpath_var=LD_RUN_PATH
10348 ;;
10349 siemens)
10350 need_lib_prefix=no
10351 ;;
10352 motorola)
10353 need_lib_prefix=no
10354 need_version=no
10355 shlibpath_overrides_runpath=no
10356 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10357 ;;
10358 esac
10359 ;;
10360
10361sysv4*MP*)
10362 if test -d /usr/nec ;then
10363 version_type=linux
10364 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10365 soname_spec='$libname${shared_ext}.$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 fi
10368 ;;
10369
10370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10371 version_type=freebsd-elf
10372 need_lib_prefix=no
10373 need_version=no
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LD_LIBRARY_PATH
8934764e 10377 shlibpath_overrides_runpath=yes
bf9f3bac 10378 hardcode_into_libs=yes
10379 if test "$with_gnu_ld" = yes; then
10380 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
bf9f3bac 10381 else
10382 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
bf9f3bac 10383 case $host_os in
10384 sco3.2v5*)
10385 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10386 ;;
10387 esac
10388 fi
10389 sys_lib_dlsearch_path_spec='/usr/lib'
10390 ;;
10391
8934764e
BB
10392tpf*)
10393 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10394 version_type=linux
10395 need_lib_prefix=no
10396 need_version=no
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=no
10400 hardcode_into_libs=yes
10401 ;;
10402
bf9f3bac 10403uts4*)
10404 version_type=linux
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 ;;
10409
10410*)
10411 dynamic_linker=no
10412 ;;
10413esac
8934764e
BB
10414{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10415$as_echo "$dynamic_linker" >&6; }
bf9f3bac 10416test "$dynamic_linker" = no && can_build_shared=no
10417
10418variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10419if test "$GCC" = yes; then
10420 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10421fi
10422
8934764e
BB
10423if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10424 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
bf9f3bac 10425fi
8934764e
BB
10426if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10427 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
bf9f3bac 10428fi
10429
10430
bf9f3bac 10431
bf9f3bac 10432
bf9f3bac 10433
bf9f3bac 10434
bf9f3bac 10435
bf9f3bac 10436
bf9f3bac 10437
bf9f3bac 10438
bf9f3bac 10439
bf9f3bac 10440
bf9f3bac 10441
bf9f3bac 10442
bf9f3bac 10443
bf9f3bac 10444
bf9f3bac 10445
bf9f3bac 10446
bf9f3bac 10447
bf9f3bac 10448
bf9f3bac 10449
bf9f3bac 10450
bf9f3bac 10451
bf9f3bac 10452
bf9f3bac 10453
bf9f3bac 10454
bf9f3bac 10455
bf9f3bac 10456
bf9f3bac 10457
bf9f3bac 10458
bf9f3bac 10459
bf9f3bac 10460
bf9f3bac 10461
bf9f3bac 10462
bf9f3bac 10463
bf9f3bac 10464
bf9f3bac 10465
bf9f3bac 10466
bf9f3bac 10467
bf9f3bac 10468
bf9f3bac 10469
bf9f3bac 10470
bf9f3bac 10471
bf9f3bac 10472
bf9f3bac 10473
bf9f3bac 10474
bf9f3bac 10475
bf9f3bac 10476
bf9f3bac 10477
bf9f3bac 10478
bf9f3bac 10479
bf9f3bac 10480
bf9f3bac 10481
bf9f3bac 10482
bf9f3bac 10483
bf9f3bac 10484
bf9f3bac 10485
bf9f3bac 10486
bf9f3bac 10487
bf9f3bac 10488
bf9f3bac 10489
bf9f3bac 10490
bf9f3bac 10491
bf9f3bac 10492
bf9f3bac 10493
bf9f3bac 10494
bf9f3bac 10495
bf9f3bac 10496
bf9f3bac 10497
bf9f3bac 10498
bf9f3bac 10499
bf9f3bac 10500
bf9f3bac 10501
bf9f3bac 10502
bf9f3bac 10503
bf9f3bac 10504
bf9f3bac 10505
bf9f3bac 10506
bf9f3bac 10507
bf9f3bac 10508
bf9f3bac 10509
bf9f3bac 10510
bf9f3bac 10511
bf9f3bac 10512
bf9f3bac 10513
bf9f3bac 10514
bf9f3bac 10515
8934764e
BB
10516 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10517$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10518hardcode_action=
10519if test -n "$hardcode_libdir_flag_spec" ||
10520 test -n "$runpath_var" ||
10521 test "X$hardcode_automatic" = "Xyes" ; then
bf9f3bac 10522
8934764e
BB
10523 # We can hardcode non-existent directories.
10524 if test "$hardcode_direct" != no &&
10525 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10526 # have to relink, otherwise we might link with an installed library
10527 # when we should be linking with a yet-to-be-installed one
10528 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10529 test "$hardcode_minus_L" != no; then
10530 # Linking always hardcodes the temporary library directory.
10531 hardcode_action=relink
10532 else
10533 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10534 hardcode_action=immediate
bf9f3bac 10535 fi
8934764e
BB
10536else
10537 # We cannot hardcode anything, or else we can only hardcode existing
10538 # directories.
10539 hardcode_action=unsupported
bf9f3bac 10540fi
8934764e
BB
10541{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10542$as_echo "$hardcode_action" >&6; }
bf9f3bac 10543
8934764e
BB
10544if test "$hardcode_action" = relink ||
10545 test "$inherit_rpath" = yes; then
10546 # Fast installation is not supported
10547 enable_fast_install=no
10548elif test "$shlibpath_overrides_runpath" = yes ||
10549 test "$enable_shared" = no; then
10550 # Fast installation is not necessary
10551 enable_fast_install=needless
10552fi
bf9f3bac 10553
bf9f3bac 10554
bf9f3bac 10555
bf9f3bac 10556
bf9f3bac 10557
10558
8934764e
BB
10559 if test "x$enable_dlopen" != xyes; then
10560 enable_dlopen=unknown
10561 enable_dlopen_self=unknown
10562 enable_dlopen_self_static=unknown
10563else
10564 lt_cv_dlopen=no
10565 lt_cv_dlopen_libs=
bf9f3bac 10566
8934764e
BB
10567 case $host_os in
10568 beos*)
10569 lt_cv_dlopen="load_add_on"
10570 lt_cv_dlopen_libs=
10571 lt_cv_dlopen_self=yes
10572 ;;
bf9f3bac 10573
8934764e
BB
10574 mingw* | pw32* | cegcc*)
10575 lt_cv_dlopen="LoadLibrary"
10576 lt_cv_dlopen_libs=
10577 ;;
bf9f3bac 10578
8934764e
BB
10579 cygwin*)
10580 lt_cv_dlopen="dlopen"
10581 lt_cv_dlopen_libs=
10582 ;;
bf9f3bac 10583
8934764e
BB
10584 darwin*)
10585 # if libdl is installed we need to link against it
10586 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10587$as_echo_n "checking for dlopen in -ldl... " >&6; }
10588if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10589 $as_echo_n "(cached) " >&6
10590else
10591 ac_check_lib_save_LIBS=$LIBS
10592LIBS="-ldl $LIBS"
10593cat >conftest.$ac_ext <<_ACEOF
10594/* confdefs.h. */
10595_ACEOF
10596cat confdefs.h >>conftest.$ac_ext
10597cat >>conftest.$ac_ext <<_ACEOF
10598/* end confdefs.h. */
bf9f3bac 10599
8934764e
BB
10600/* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10603#ifdef __cplusplus
10604extern "C"
10605#endif
10606char dlopen ();
10607int
10608main ()
10609{
10610return dlopen ();
10611 ;
10612 return 0;
10613}
10614_ACEOF
10615rm -f conftest.$ac_objext conftest$ac_exeext
10616if { (ac_try="$ac_link"
10617case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620esac
10621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10622$as_echo "$ac_try_echo") >&5
10623 (eval "$ac_link") 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } && {
10630 test -z "$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10632 } && test -s conftest$ac_exeext && {
10633 test "$cross_compiling" = yes ||
10634 $as_test_x conftest$ac_exeext
10635 }; then
10636 ac_cv_lib_dl_dlopen=yes
10637else
10638 $as_echo "$as_me: failed program was:" >&5
10639sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10640
8934764e
BB
10641 ac_cv_lib_dl_dlopen=no
10642fi
bf9f3bac 10643
8934764e
BB
10644rm -rf conftest.dSYM
10645rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10646 conftest$ac_exeext conftest.$ac_ext
10647LIBS=$ac_check_lib_save_LIBS
10648fi
10649{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10650$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10651if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10653else
bf9f3bac 10654
8934764e
BB
10655 lt_cv_dlopen="dyld"
10656 lt_cv_dlopen_libs=
10657 lt_cv_dlopen_self=yes
bf9f3bac 10658
8934764e 10659fi
bf9f3bac 10660
8934764e 10661 ;;
bf9f3bac 10662
8934764e
BB
10663 *)
10664 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10665$as_echo_n "checking for shl_load... " >&6; }
10666if test "${ac_cv_func_shl_load+set}" = set; then
10667 $as_echo_n "(cached) " >&6
10668else
10669 cat >conftest.$ac_ext <<_ACEOF
10670/* confdefs.h. */
10671_ACEOF
10672cat confdefs.h >>conftest.$ac_ext
10673cat >>conftest.$ac_ext <<_ACEOF
10674/* end confdefs.h. */
10675/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10677#define shl_load innocuous_shl_load
bf9f3bac 10678
8934764e
BB
10679/* System header to define __stub macros and hopefully few prototypes,
10680 which can conflict with char shl_load (); below.
10681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10682 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10683
8934764e
BB
10684#ifdef __STDC__
10685# include <limits.h>
10686#else
10687# include <assert.h>
10688#endif
bf9f3bac 10689
8934764e 10690#undef shl_load
bf9f3bac 10691
8934764e
BB
10692/* Override any GCC internal prototype to avoid an error.
10693 Use char because int might match the return type of a GCC
10694 builtin and then its argument prototype would still apply. */
10695#ifdef __cplusplus
10696extern "C"
10697#endif
10698char shl_load ();
10699/* The GNU C library defines this for functions which it implements
10700 to always fail with ENOSYS. Some functions are actually named
10701 something starting with __ and the normal name is an alias. */
10702#if defined __stub_shl_load || defined __stub___shl_load
10703choke me
10704#endif
bf9f3bac 10705
8934764e
BB
10706int
10707main ()
10708{
10709return shl_load ();
10710 ;
10711 return 0;
10712}
10713_ACEOF
10714rm -f conftest.$ac_objext conftest$ac_exeext
10715if { (ac_try="$ac_link"
10716case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10719esac
10720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10721$as_echo "$ac_try_echo") >&5
10722 (eval "$ac_link") 2>conftest.er1
10723 ac_status=$?
10724 grep -v '^ *+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
10727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && {
10729 test -z "$ac_c_werror_flag" ||
10730 test ! -s conftest.err
10731 } && test -s conftest$ac_exeext && {
10732 test "$cross_compiling" = yes ||
10733 $as_test_x conftest$ac_exeext
10734 }; then
10735 ac_cv_func_shl_load=yes
10736else
10737 $as_echo "$as_me: failed program was:" >&5
10738sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10739
8934764e
BB
10740 ac_cv_func_shl_load=no
10741fi
bf9f3bac 10742
8934764e
BB
10743rm -rf conftest.dSYM
10744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10745 conftest$ac_exeext conftest.$ac_ext
10746fi
10747{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10748$as_echo "$ac_cv_func_shl_load" >&6; }
10749if test "x$ac_cv_func_shl_load" = x""yes; then
10750 lt_cv_dlopen="shl_load"
10751else
10752 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10753$as_echo_n "checking for shl_load in -ldld... " >&6; }
10754if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10755 $as_echo_n "(cached) " >&6
10756else
10757 ac_check_lib_save_LIBS=$LIBS
10758LIBS="-ldld $LIBS"
10759cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
bf9f3bac 10765
8934764e
BB
10766/* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10769#ifdef __cplusplus
10770extern "C"
10771#endif
10772char shl_load ();
10773int
10774main ()
10775{
10776return shl_load ();
10777 ;
10778 return 0;
10779}
10780_ACEOF
10781rm -f conftest.$ac_objext conftest$ac_exeext
10782if { (ac_try="$ac_link"
10783case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
10787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10788$as_echo "$ac_try_echo") >&5
10789 (eval "$ac_link") 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } && {
10796 test -z "$ac_c_werror_flag" ||
10797 test ! -s conftest.err
10798 } && test -s conftest$ac_exeext && {
10799 test "$cross_compiling" = yes ||
10800 $as_test_x conftest$ac_exeext
10801 }; then
10802 ac_cv_lib_dld_shl_load=yes
10803else
10804 $as_echo "$as_me: failed program was:" >&5
10805sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10806
8934764e
BB
10807 ac_cv_lib_dld_shl_load=no
10808fi
bf9f3bac 10809
8934764e
BB
10810rm -rf conftest.dSYM
10811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10812 conftest$ac_exeext conftest.$ac_ext
10813LIBS=$ac_check_lib_save_LIBS
10814fi
10815{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10816$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10817if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10818 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10819else
10820 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10821$as_echo_n "checking for dlopen... " >&6; }
10822if test "${ac_cv_func_dlopen+set}" = set; then
10823 $as_echo_n "(cached) " >&6
10824else
10825 cat >conftest.$ac_ext <<_ACEOF
10826/* confdefs.h. */
10827_ACEOF
10828cat confdefs.h >>conftest.$ac_ext
10829cat >>conftest.$ac_ext <<_ACEOF
10830/* end confdefs.h. */
10831/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10833#define dlopen innocuous_dlopen
bf9f3bac 10834
8934764e
BB
10835/* System header to define __stub macros and hopefully few prototypes,
10836 which can conflict with char dlopen (); below.
10837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10838 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10839
8934764e
BB
10840#ifdef __STDC__
10841# include <limits.h>
10842#else
10843# include <assert.h>
10844#endif
bf9f3bac 10845
8934764e 10846#undef dlopen
bf9f3bac 10847
8934764e
BB
10848/* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10851#ifdef __cplusplus
10852extern "C"
10853#endif
10854char dlopen ();
10855/* The GNU C library defines this for functions which it implements
10856 to always fail with ENOSYS. Some functions are actually named
10857 something starting with __ and the normal name is an alias. */
10858#if defined __stub_dlopen || defined __stub___dlopen
10859choke me
10860#endif
bf9f3bac 10861
8934764e
BB
10862int
10863main ()
10864{
10865return dlopen ();
10866 ;
10867 return 0;
10868}
10869_ACEOF
10870rm -f conftest.$ac_objext conftest$ac_exeext
10871if { (ac_try="$ac_link"
10872case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875esac
10876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10877$as_echo "$ac_try_echo") >&5
10878 (eval "$ac_link") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } && {
10885 test -z "$ac_c_werror_flag" ||
10886 test ! -s conftest.err
10887 } && test -s conftest$ac_exeext && {
10888 test "$cross_compiling" = yes ||
10889 $as_test_x conftest$ac_exeext
10890 }; then
10891 ac_cv_func_dlopen=yes
10892else
10893 $as_echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10895
8934764e
BB
10896 ac_cv_func_dlopen=no
10897fi
bf9f3bac 10898
8934764e
BB
10899rm -rf conftest.dSYM
10900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901 conftest$ac_exeext conftest.$ac_ext
10902fi
10903{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10904$as_echo "$ac_cv_func_dlopen" >&6; }
10905if test "x$ac_cv_func_dlopen" = x""yes; then
10906 lt_cv_dlopen="dlopen"
10907else
10908 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10909$as_echo_n "checking for dlopen in -ldl... " >&6; }
10910if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10911 $as_echo_n "(cached) " >&6
10912else
10913 ac_check_lib_save_LIBS=$LIBS
10914LIBS="-ldl $LIBS"
10915cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
bf9f3bac 10921
8934764e
BB
10922/* Override any GCC internal prototype to avoid an error.
10923 Use char because int might match the return type of a GCC
10924 builtin and then its argument prototype would still apply. */
10925#ifdef __cplusplus
10926extern "C"
10927#endif
10928char dlopen ();
10929int
10930main ()
10931{
10932return dlopen ();
10933 ;
10934 return 0;
10935}
10936_ACEOF
10937rm -f conftest.$ac_objext conftest$ac_exeext
10938if { (ac_try="$ac_link"
10939case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10942esac
10943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10944$as_echo "$ac_try_echo") >&5
10945 (eval "$ac_link") 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } && {
10952 test -z "$ac_c_werror_flag" ||
10953 test ! -s conftest.err
10954 } && test -s conftest$ac_exeext && {
10955 test "$cross_compiling" = yes ||
10956 $as_test_x conftest$ac_exeext
10957 }; then
10958 ac_cv_lib_dl_dlopen=yes
10959else
10960 $as_echo "$as_me: failed program was:" >&5
10961sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10962
8934764e
BB
10963 ac_cv_lib_dl_dlopen=no
10964fi
bf9f3bac 10965
8934764e
BB
10966rm -rf conftest.dSYM
10967rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext conftest.$ac_ext
10969LIBS=$ac_check_lib_save_LIBS
10970fi
10971{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10972$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10973if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10974 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10975else
10976 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10977$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10978if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10979 $as_echo_n "(cached) " >&6
10980else
10981 ac_check_lib_save_LIBS=$LIBS
10982LIBS="-lsvld $LIBS"
10983cat >conftest.$ac_ext <<_ACEOF
10984/* confdefs.h. */
10985_ACEOF
10986cat confdefs.h >>conftest.$ac_ext
10987cat >>conftest.$ac_ext <<_ACEOF
10988/* end confdefs.h. */
bf9f3bac 10989
8934764e
BB
10990/* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
10993#ifdef __cplusplus
10994extern "C"
10995#endif
10996char dlopen ();
10997int
10998main ()
10999{
11000return dlopen ();
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005rm -f conftest.$ac_objext conftest$ac_exeext
11006if { (ac_try="$ac_link"
11007case "(($ac_try" in
11008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11010esac
11011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11012$as_echo "$ac_try_echo") >&5
11013 (eval "$ac_link") 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest$ac_exeext && {
11023 test "$cross_compiling" = yes ||
11024 $as_test_x conftest$ac_exeext
11025 }; then
11026 ac_cv_lib_svld_dlopen=yes
11027else
11028 $as_echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11030
8934764e
BB
11031 ac_cv_lib_svld_dlopen=no
11032fi
bf9f3bac 11033
8934764e
BB
11034rm -rf conftest.dSYM
11035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11036 conftest$ac_exeext conftest.$ac_ext
11037LIBS=$ac_check_lib_save_LIBS
11038fi
11039{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11040$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11041if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11042 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11043else
11044 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11045$as_echo_n "checking for dld_link in -ldld... " >&6; }
11046if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11047 $as_echo_n "(cached) " >&6
11048else
11049 ac_check_lib_save_LIBS=$LIBS
11050LIBS="-ldld $LIBS"
11051cat >conftest.$ac_ext <<_ACEOF
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
bf9f3bac 11057
8934764e
BB
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char dld_link ();
11065int
11066main ()
11067{
11068return dld_link ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073rm -f conftest.$ac_objext conftest$ac_exeext
11074if { (ac_try="$ac_link"
11075case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080$as_echo "$ac_try_echo") >&5
11081 (eval "$ac_link") 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } && {
11088 test -z "$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11090 } && test -s conftest$ac_exeext && {
11091 test "$cross_compiling" = yes ||
11092 $as_test_x conftest$ac_exeext
11093 }; then
11094 ac_cv_lib_dld_dld_link=yes
11095else
11096 $as_echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11098
8934764e
BB
11099 ac_cv_lib_dld_dld_link=no
11100fi
bf9f3bac 11101
8934764e
BB
11102rm -rf conftest.dSYM
11103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11104 conftest$ac_exeext conftest.$ac_ext
11105LIBS=$ac_check_lib_save_LIBS
11106fi
11107{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11108$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11109if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11110 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11111fi
bf9f3bac 11112
bf9f3bac 11113
8934764e 11114fi
bf9f3bac 11115
bf9f3bac 11116
8934764e 11117fi
bf9f3bac 11118
bf9f3bac 11119
8934764e 11120fi
bf9f3bac 11121
bf9f3bac 11122
8934764e 11123fi
bf9f3bac 11124
bf9f3bac 11125
8934764e 11126fi
bf9f3bac 11127
8934764e
BB
11128 ;;
11129 esac
bf9f3bac 11130
8934764e
BB
11131 if test "x$lt_cv_dlopen" != xno; then
11132 enable_dlopen=yes
11133 else
11134 enable_dlopen=no
11135 fi
bf9f3bac 11136
8934764e
BB
11137 case $lt_cv_dlopen in
11138 dlopen)
11139 save_CPPFLAGS="$CPPFLAGS"
11140 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
bf9f3bac 11141
8934764e
BB
11142 save_LDFLAGS="$LDFLAGS"
11143 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
bf9f3bac 11144
8934764e
BB
11145 save_LIBS="$LIBS"
11146 LIBS="$lt_cv_dlopen_libs $LIBS"
bf9f3bac 11147
8934764e
BB
11148 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11149$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11150if test "${lt_cv_dlopen_self+set}" = set; then
11151 $as_echo_n "(cached) " >&6
11152else
11153 if test "$cross_compiling" = yes; then :
11154 lt_cv_dlopen_self=cross
11155else
11156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11157 lt_status=$lt_dlunknown
11158 cat > conftest.$ac_ext <<_LT_EOF
3c208a54 11159#line 11159 "configure"
8934764e 11160#include "confdefs.h"
bf9f3bac 11161
8934764e
BB
11162#if HAVE_DLFCN_H
11163#include <dlfcn.h>
11164#endif
bf9f3bac 11165
8934764e 11166#include <stdio.h>
bf9f3bac 11167
8934764e
BB
11168#ifdef RTLD_GLOBAL
11169# define LT_DLGLOBAL RTLD_GLOBAL
11170#else
11171# ifdef DL_GLOBAL
11172# define LT_DLGLOBAL DL_GLOBAL
11173# else
11174# define LT_DLGLOBAL 0
11175# endif
11176#endif
bf9f3bac 11177
8934764e
BB
11178/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11179 find out it does not work in some platform. */
11180#ifndef LT_DLLAZY_OR_NOW
11181# ifdef RTLD_LAZY
11182# define LT_DLLAZY_OR_NOW RTLD_LAZY
11183# else
11184# ifdef DL_LAZY
11185# define LT_DLLAZY_OR_NOW DL_LAZY
11186# else
11187# ifdef RTLD_NOW
11188# define LT_DLLAZY_OR_NOW RTLD_NOW
11189# else
11190# ifdef DL_NOW
11191# define LT_DLLAZY_OR_NOW DL_NOW
11192# else
11193# define LT_DLLAZY_OR_NOW 0
11194# endif
11195# endif
11196# endif
11197# endif
11198#endif
bf9f3bac 11199
8934764e
BB
11200void fnord() { int i=42;}
11201int main ()
11202{
11203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11204 int status = $lt_dlunknown;
bf9f3bac 11205
8934764e
BB
11206 if (self)
11207 {
11208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11209 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11210 /* dlclose (self); */
11211 }
11212 else
11213 puts (dlerror ());
bf9f3bac 11214
8934764e
BB
11215 return status;
11216}
11217_LT_EOF
11218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11219 (eval $ac_link) 2>&5
11220 ac_status=$?
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11223 (./conftest; exit; ) >&5 2>/dev/null
11224 lt_status=$?
11225 case x$lt_status in
11226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11229 esac
11230 else :
11231 # compilation failed
11232 lt_cv_dlopen_self=no
11233 fi
11234fi
11235rm -fr conftest*
bf9f3bac 11236
bf9f3bac 11237
8934764e
BB
11238fi
11239{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11240$as_echo "$lt_cv_dlopen_self" >&6; }
bf9f3bac 11241
8934764e
BB
11242 if test "x$lt_cv_dlopen_self" = xyes; then
11243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11244 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11245$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11246if test "${lt_cv_dlopen_self_static+set}" = set; then
11247 $as_echo_n "(cached) " >&6
11248else
11249 if test "$cross_compiling" = yes; then :
11250 lt_cv_dlopen_self_static=cross
11251else
11252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11253 lt_status=$lt_dlunknown
11254 cat > conftest.$ac_ext <<_LT_EOF
3c208a54 11255#line 11255 "configure"
8934764e 11256#include "confdefs.h"
bf9f3bac 11257
8934764e
BB
11258#if HAVE_DLFCN_H
11259#include <dlfcn.h>
11260#endif
bf9f3bac 11261
8934764e 11262#include <stdio.h>
bf9f3bac 11263
8934764e
BB
11264#ifdef RTLD_GLOBAL
11265# define LT_DLGLOBAL RTLD_GLOBAL
11266#else
11267# ifdef DL_GLOBAL
11268# define LT_DLGLOBAL DL_GLOBAL
11269# else
11270# define LT_DLGLOBAL 0
11271# endif
11272#endif
bf9f3bac 11273
8934764e
BB
11274/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11275 find out it does not work in some platform. */
11276#ifndef LT_DLLAZY_OR_NOW
11277# ifdef RTLD_LAZY
11278# define LT_DLLAZY_OR_NOW RTLD_LAZY
11279# else
11280# ifdef DL_LAZY
11281# define LT_DLLAZY_OR_NOW DL_LAZY
11282# else
11283# ifdef RTLD_NOW
11284# define LT_DLLAZY_OR_NOW RTLD_NOW
11285# else
11286# ifdef DL_NOW
11287# define LT_DLLAZY_OR_NOW DL_NOW
11288# else
11289# define LT_DLLAZY_OR_NOW 0
11290# endif
11291# endif
11292# endif
11293# endif
11294#endif
bf9f3bac 11295
8934764e
BB
11296void fnord() { int i=42;}
11297int main ()
11298{
11299 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11300 int status = $lt_dlunknown;
bf9f3bac 11301
8934764e
BB
11302 if (self)
11303 {
11304 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11305 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11306 /* dlclose (self); */
11307 }
11308 else
11309 puts (dlerror ());
bf9f3bac 11310
8934764e
BB
11311 return status;
11312}
11313_LT_EOF
11314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11315 (eval $ac_link) 2>&5
11316 ac_status=$?
11317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11319 (./conftest; exit; ) >&5 2>/dev/null
11320 lt_status=$?
11321 case x$lt_status in
11322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11325 esac
11326 else :
11327 # compilation failed
11328 lt_cv_dlopen_self_static=no
11329 fi
11330fi
11331rm -fr conftest*
bf9f3bac 11332
bf9f3bac 11333
8934764e
BB
11334fi
11335{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11336$as_echo "$lt_cv_dlopen_self_static" >&6; }
11337 fi
bf9f3bac 11338
8934764e
BB
11339 CPPFLAGS="$save_CPPFLAGS"
11340 LDFLAGS="$save_LDFLAGS"
11341 LIBS="$save_LIBS"
11342 ;;
11343 esac
bf9f3bac 11344
8934764e
BB
11345 case $lt_cv_dlopen_self in
11346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11347 *) enable_dlopen_self=unknown ;;
11348 esac
bf9f3bac 11349
8934764e
BB
11350 case $lt_cv_dlopen_self_static in
11351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11352 *) enable_dlopen_self_static=unknown ;;
11353 esac
11354fi
bf9f3bac 11355
bf9f3bac 11356
bf9f3bac 11357
bf9f3bac 11358
bf9f3bac 11359
bf9f3bac 11360
bf9f3bac 11361
bf9f3bac 11362
bf9f3bac 11363
bf9f3bac 11364
bf9f3bac 11365
bf9f3bac 11366
bf9f3bac 11367
bf9f3bac 11368
bf9f3bac 11369
bf9f3bac 11370
bf9f3bac 11371
8934764e
BB
11372striplib=
11373old_striplib=
11374{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11375$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11376if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11379 { $as_echo "$as_me:$LINENO: result: yes" >&5
11380$as_echo "yes" >&6; }
11381else
11382# FIXME - insert some real tests, host_os isn't really good enough
11383 case $host_os in
11384 darwin*)
11385 if test -n "$STRIP" ; then
11386 striplib="$STRIP -x"
11387 old_striplib="$STRIP -S"
11388 { $as_echo "$as_me:$LINENO: result: yes" >&5
11389$as_echo "yes" >&6; }
11390 else
11391 { $as_echo "$as_me:$LINENO: result: no" >&5
11392$as_echo "no" >&6; }
11393 fi
11394 ;;
11395 *)
11396 { $as_echo "$as_me:$LINENO: result: no" >&5
11397$as_echo "no" >&6; }
11398 ;;
11399 esac
11400fi
bf9f3bac 11401
bf9f3bac 11402
bf9f3bac 11403
bf9f3bac 11404
bf9f3bac 11405
bf9f3bac 11406
bf9f3bac 11407
bf9f3bac 11408
bf9f3bac 11409
bf9f3bac 11410
bf9f3bac 11411
bf9f3bac 11412
8934764e
BB
11413 # Report which library types will actually be built
11414 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11415$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11416 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11417$as_echo "$can_build_shared" >&6; }
bf9f3bac 11418
8934764e
BB
11419 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11420$as_echo_n "checking whether to build shared libraries... " >&6; }
11421 test "$can_build_shared" = "no" && enable_shared=no
bf9f3bac 11422
8934764e
BB
11423 # On AIX, shared libraries and static libraries use the same namespace, and
11424 # are all built from PIC.
11425 case $host_os in
11426 aix3*)
11427 test "$enable_shared" = yes && enable_static=no
11428 if test -n "$RANLIB"; then
11429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11430 postinstall_cmds='$RANLIB $lib'
11431 fi
11432 ;;
bf9f3bac 11433
8934764e
BB
11434 aix[4-9]*)
11435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11436 test "$enable_shared" = yes && enable_static=no
11437 fi
11438 ;;
11439 esac
11440 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11441$as_echo "$enable_shared" >&6; }
bf9f3bac 11442
8934764e
BB
11443 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11444$as_echo_n "checking whether to build static libraries... " >&6; }
11445 # Make sure either enable_shared or enable_static is yes.
11446 test "$enable_shared" = yes || enable_static=yes
11447 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11448$as_echo "$enable_static" >&6; }
bf9f3bac 11449
bf9f3bac 11450
bf9f3bac 11451
11452
bf9f3bac 11453fi
bf9f3bac 11454ac_ext=c
11455ac_cpp='$CPP $CPPFLAGS'
11456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459
11460CC="$lt_save_CC"
11461
bf9f3bac 11462
bf9f3bac 11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
8934764e 11474 ac_config_commands="$ac_config_commands libtool"
bf9f3bac 11475
11476
11477
11478
8934764e 11479# Only expand once:
bf9f3bac 11480
11481
11482
11483
8934764e
BB
11484 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11485$as_echo_n "checking spl license... " >&6; }
86933a6e 11486 LICENSE=GPL
8934764e
BB
11487 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11488$as_echo "$LICENSE" >&6; }
86933a6e
BB
11489 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11490
11491
11492
287b2fb1 11493
0b14b9f3
BB
11494 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11495$as_echo_n "checking linux distribution... " >&6; }
a3a69b74
BB
11496 if test -f /etc/toss-release ; then
11497 VENDOR=toss ;
0b14b9f3
BB
11498 elif test -f /etc/fedora-release ; then
11499 VENDOR=fedora ;
a3a69b74
BB
11500 elif test -f /etc/redhat-release ; then
11501 VENDOR=redhat ;
11502 elif test -f /etc/gentoo-release ; then
11503 VENDOR=gentoo ;
0b14b9f3
BB
11504 elif test -f /etc/arch-release ; then
11505 VENDOR=arch ;
0b14b9f3
BB
11506 elif test -f /etc/SuSE-release ; then
11507 VENDOR=sles ;
11508 elif test -f /etc/slackware-version ; then
11509 VENDOR=slackware ;
a3a69b74
BB
11510 elif test -f /etc/lunar.release ; then
11511 VENDOR=lunar ;
11512 elif test -f /etc/lsb-release ; then
11513 VENDOR=ubuntu ;
11514 elif test -f /etc/debian_version ; then
11515 VENDOR=debian ;
0b14b9f3
BB
11516 else
11517 VENDOR= ;
11518 fi
11519 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11520$as_echo "$VENDOR" >&6; }
11521
11522
11523 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11524$as_echo_n "checking default package type... " >&6; }
11525 case "$VENDOR" in
a3a69b74
BB
11526 toss) DEFAULT_PACKAGE=rpm ;;
11527 redhat) DEFAULT_PACKAGE=rpm ;;
11528 fedora) DEFAULT_PACKAGE=rpm ;;
11529 gentoo) DEFAULT_PACKAGE=tgz ;;
11530 arch) DEFAULT_PACKAGE=arch ;;
11531 sles) DEFAULT_PACKAGE=rpm ;;
11532 slackware) DEFAULT_PACKAGE=tgz ;;
11533 lunar) DEFAULT_PACKAGE=tgz ;;
11534 ubuntu) DEFAULT_PACKAGE=deb ;;
11535 debian) DEFAULT_PACKAGE=deb ;;
11536 *) DEFAULT_PACKAGE=rpm ;;
0b14b9f3
BB
11537 esac
11538
11539 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11540$as_echo "$DEFAULT_PACKAGE" >&6; }
11541
11542
11543
287b2fb1
BB
11544 RPM=rpm
11545 RPMBUILD=rpmbuild
11546
11547 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11548$as_echo_n "checking whether $RPM is available... " >&6; }
11549 if tmp=$($RPM --version 2>/dev/null); then
11550
11551 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11552 HAVE_RPM=yes
11553 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11554$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11555
11556else
11557
11558 HAVE_RPM=no
11559 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11560$as_echo "$HAVE_RPM" >&6; }
11561
11562fi
11563
11564
11565 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11566$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11567 if tmp=$($RPMBUILD --version 2>/dev/null); then
11568
11569 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11570 HAVE_RPMBUILD=yes
11571 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11572$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11573
11574else
11575
11576 HAVE_RPMBUILD=no
11577 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11578$as_echo "$HAVE_RPMBUILD" >&6; }
11579
11580fi
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592 DPKG=dpkg
11593 DPKGBUILD=dpkg-buildpackage
11594
11595 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11596$as_echo_n "checking whether $DPKG is available... " >&6; }
11597 if tmp=$($DPKG --version 2>/dev/null); then
11598
11599 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11600 HAVE_DPKG=yes
11601 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11602$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11603
11604else
11605
11606 HAVE_DPKG=no
11607 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11608$as_echo "$HAVE_DPKG" >&6; }
11609
11610fi
11611
11612
11613 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11614$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11615 if tmp=$($DPKGBUILD --version 2>/dev/null); then
11616
11617 DPKGBUILD_VERSION=$(echo $tmp | \
11618 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11619 HAVE_DPKGBUILD=yes
11620 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11621$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11622
11623else
11624
11625 HAVE_DPKGBUILD=no
11626 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11627$as_echo "$HAVE_DPKGBUILD" >&6; }
11628
11629fi
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 ALIEN=alien
11642
11643 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11644$as_echo_n "checking whether $ALIEN is available... " >&6; }
11645 if tmp=$($ALIEN --version 2>/dev/null); then
11646
11647 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11648 HAVE_ALIEN=yes
11649 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11650$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11651
11652else
11653
11654 HAVE_ALIEN=no
11655 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11656$as_echo "$HAVE_ALIEN" >&6; }
11657
11658fi
11659
11660
11661
11662
11663
11664
11665
0b14b9f3
BB
11666 if test "$VENDOR" = "arch"; then
11667
c2dceb5c
PS
11668 PACMAN=pacman
11669 MAKEPKG=makepkg
11670
11671 { $as_echo "$as_me:$LINENO: checking whether $PACMAN is available" >&5
11672$as_echo_n "checking whether $PACMAN is available... " >&6; }
11673 tmp=$($PACMAN --version 2>/dev/null)
11674 if test -n "$tmp"; then
11675
11676 PACMAN_VERSION=$(echo $tmp |
11677 $AWK '/Pacman/ { print $3 }' |
11678 $SED 's/^v//')
11679 HAVE_PACMAN=yes
11680 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN ($PACMAN_VERSION)" >&5
11681$as_echo "$HAVE_PACMAN ($PACMAN_VERSION)" >&6; }
11682
11683else
11684
11685 HAVE_PACMAN=no
11686 { $as_echo "$as_me:$LINENO: result: $HAVE_PACMAN" >&5
11687$as_echo "$HAVE_PACMAN" >&6; }
11688
11689fi
11690
11691
11692 { $as_echo "$as_me:$LINENO: checking whether $MAKEPKG is available" >&5
11693$as_echo_n "checking whether $MAKEPKG is available... " >&6; }
11694 tmp=$($MAKEPKG --version 2>/dev/null)
11695 if test -n "$tmp"; then
11696
11697 MAKEPKG_VERSION=$(echo $tmp | $AWK '/makepkg/ { print $3 }')
11698 HAVE_MAKEPKG=yes
11699 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&5
11700$as_echo "$HAVE_MAKEPKG ($MAKEPKG_VERSION)" >&6; }
11701
11702else
11703
11704 HAVE_MAKEPKG=no
11705 { $as_echo "$as_me:$LINENO: result: $HAVE_MAKEPKG" >&5
11706$as_echo "$HAVE_MAKEPKG" >&6; }
11707
11708fi
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
0b14b9f3 11719fi
287b2fb1
BB
11720
11721
11722
86933a6e
BB
11723 SPL_CONFIG=all
11724
8934764e 11725# Check whether --with-config was given.
86933a6e 11726if test "${with_config+set}" = set; then
8934764e
BB
11727 withval=$with_config; SPL_CONFIG="$withval"
11728fi
86933a6e 11729
8934764e
BB
11730
11731 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11732$as_echo_n "checking spl config... " >&6; }
11733 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11734$as_echo "$SPL_CONFIG" >&6; };
86933a6e
BB
11735
11736
11737 case "$SPL_CONFIG" in
11738 kernel)
11739
11740
8934764e 11741# Check whether --with-linux was given.
86933a6e 11742if test "${with_linux+set}" = set; then
8934764e
BB
11743 withval=$with_linux; kernelsrc="$withval"
11744fi
86933a6e
BB
11745
11746
8934764e
BB
11747
11748# Check whether --with-linux-obj was given.
86933a6e 11749if test "${with_linux_obj+set}" = set; then
8934764e
BB
11750 withval=$with_linux_obj; kernelbuild="$withval"
11751fi
86933a6e 11752
8934764e
BB
11753
11754 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11755$as_echo_n "checking kernel source directory... " >&6; }
86933a6e 11756 if test -z "$kernelsrc"; then
22ccfaa8
BB
11757 if test -e "/lib/modules/$(uname -r)/source"; then
11758 headersdir="/lib/modules/$(uname -r)/source"
11759 sourcelink=$(readlink -f "$headersdir")
11760 elif test -e "/lib/modules/$(uname -r)/build"; then
11761 headersdir="/lib/modules/$(uname -r)/build"
534c4e38
BM
11762 sourcelink=$(readlink -f "$headersdir")
11763 else
11764 sourcelink=$(ls -1d /usr/src/kernels/* \
11765 /usr/src/linux-* \
11766 2>/dev/null | grep -v obj | tail -1)
11767 fi
86933a6e 11768
8fd4e3af 11769 if test -n "$sourcelink" && test -e ${sourcelink}; then
86933a6e
BB
11770 kernelsrc=`readlink -f ${sourcelink}`
11771 else
8934764e
BB
11772 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11773$as_echo "Not found" >&6; }
11774 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
11775 *** Please make sure the kernel devel package for your distribution
11776 *** is installed then try again. If that fails you can specify the
11777 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 11778$as_echo "$as_me: error:
8fd4e3af
BB
11779 *** Please make sure the kernel devel package for your distribution
11780 *** is installed then try again. If that fails you can specify the
11781 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
86933a6e
BB
11782 { (exit 1); exit 1; }; }
11783 fi
11784 else
11785 if test "$kernelsrc" = "NONE"; then
11786 kernsrcver=NONE
11787 fi
11788 fi
11789
8934764e
BB
11790 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11791$as_echo "$kernelsrc" >&6; }
11792 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11793$as_echo_n "checking kernel build directory... " >&6; }
86933a6e 11794 if test -z "$kernelbuild"; then
22ccfaa8
BB
11795 if test -e "/lib/modules/$(uname -r)/build"; then
11796 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11797 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
e2d28a37
BB
11798 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11799 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11800 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11801 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11802 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
86933a6e
BB
11803 else
11804 kernelbuild=${kernelsrc}
11805 fi
11806 fi
8934764e
BB
11807 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11808$as_echo "$kernelbuild" >&6; }
86933a6e 11809
8934764e
BB
11810 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11811$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
11812 utsrelease1=$kernelbuild/include/linux/version.h
11813 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11814 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11815 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11816 utsrelease=linux/version.h
11817 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11818 utsrelease=linux/utsrelease.h
11819 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11820 utsrelease=generated/utsrelease.h
11821 fi
86933a6e 11822
fd921c2e
BB
11823 if test "$utsrelease"; then
11824 kernsrcver=`(echo "#include <$utsrelease>";
86933a6e
BB
11825 echo "kernsrcver=UTS_RELEASE") |
11826 cpp -I $kernelbuild/include |
11827 grep "^kernsrcver=" | cut -d \" -f 2`
86933a6e 11828
fd921c2e
BB
11829 if test -z "$kernsrcver"; then
11830 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11831$as_echo "Not found" >&6; }
11832 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11833$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11834 { (exit 1); exit 1; }; }
11835 fi
11836 else
8934764e
BB
11837 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11838$as_echo "Not found" >&6; }
fd921c2e
BB
11839 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11840$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
86933a6e
BB
11841 { (exit 1); exit 1; }; }
11842 fi
11843
8934764e
BB
11844 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11845$as_echo "$kernsrcver" >&6; }
86933a6e
BB
11846
11847 LINUX=${kernelsrc}
11848 LINUX_OBJ=${kernelbuild}
11849 LINUX_VERSION=${kernsrcver}
11850
11851
11852
11853
11854
11855
bb339d06 11856 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
11857 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11858$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
11859 if test -f "$modpost"; then
11860 if grep -q Modules.symvers $modpost; then
11861 LINUX_SYMBOLS=Modules.symvers
11862 else
11863 LINUX_SYMBOLS=Module.symvers
11864 fi
912fd84d
BB
11865
11866 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11867 { { $as_echo "$as_me:$LINENO: error:
11868 *** Please make sure the kernel devel package for your distribution
11869 *** is installed. If your building with a custom kernel make sure the
11870 *** kernel is configured, built, and the '--with-linux=PATH' configure
11871 *** option refers to the location of the kernel source." >&5
11872$as_echo "$as_me: error:
11873 *** Please make sure the kernel devel package for your distribution
11874 *** is installed. If your building with a custom kernel make sure the
11875 *** kernel is configured, built, and the '--with-linux=PATH' configure
11876 *** option refers to the location of the kernel source." >&2;}
11877 { (exit 1); exit 1; }; }
11878 fi
86933a6e 11879 else
bb339d06 11880 LINUX_SYMBOLS=NONE
86933a6e 11881 fi
8934764e
BB
11882 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11883$as_echo "$LINUX_SYMBOLS" >&6; }
86933a6e
BB
11884
11885
11886
11887
7731d46b
BB
11888 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
11889$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
11890
11891
11892cat confdefs.h - <<_ACEOF >conftest.c
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898
11899
c064bdee 11900 #include <linux/module.h>
7731d46b
BB
11901
11902int
11903main (void)
11904{
11905
11906 #ifndef CONFIG_PREEMPT
11907 #error CONFIG_PREEMPT not #defined
11908 #endif
11909
11910 ;
11911 return 0;
11912}
11913
11914_ACEOF
11915
11916
11917 rm -Rf build && mkdir -p build
11918 echo "obj-m := conftest.o" >build/Makefile
11919 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930
11931 { $as_echo "$as_me:$LINENO: result: yes" >&5
11932$as_echo "yes" >&6; }
11933 { { $as_echo "$as_me:$LINENO: error:
11934 *** Kernel built with CONFIG_PREEMPT which is not supported.
11935 ** You must rebuild your kernel without this option." >&5
11936$as_echo "$as_me: error:
11937 *** Kernel built with CONFIG_PREEMPT which is not supported.
11938 ** You must rebuild your kernel without this option." >&2;}
11939 { (exit 1); exit 1; }; }
11940
11941else
11942 $as_echo "$as_me: failed program was:" >&5
11943sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 { $as_echo "$as_me:$LINENO: result: no" >&5
11946$as_echo "no" >&6; }
11947
11948
11949
11950
11951fi
11952
11953 rm -Rf build
11954
11955
11956
11957
11958
86933a6e
BB
11959 if test "${LINUX_OBJ}" != "${LINUX}"; then
11960 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11961 fi
11962
11963
a7958f7e 11964 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
86933a6e
BB
11965
11966
11967
c950d148
BB
11968 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11969$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 11970 # Check whether --enable-debug was given.
86933a6e 11971if test "${enable_debug+set}" = set; then
8934764e 11972 enableval=$enable_debug;
055ffd98
BB
11973else
11974 enable_debug=no
8934764e
BB
11975fi
11976
055ffd98
BB
11977
11978 if test "x$enable_debug" = xyes; then
c950d148 11979
c950d148
BB
11980 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11981 DEBUG_CFLAGS="-DDEBUG -Werror"
3c208a54 11982 DEBUG_SPL="_with_debug"
c950d148 11983
055ffd98 11984else
c950d148 11985
c950d148
BB
11986 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11987 DEBUG_CFLAGS="-DNDEBUG"
3c208a54 11988 DEBUG_SPL="_without_debug"
c950d148 11989
055ffd98
BB
11990fi
11991
11992
c950d148 11993
3c208a54 11994
8934764e
BB
11995 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11996$as_echo "$enable_debug" >&6; }
86933a6e
BB
11997
11998
4b2220f0
BB
11999 # Check whether --enable-debug-log was given.
12000if test "${enable_debug_log+set}" = set; then
12001 enableval=$enable_debug_log;
12002else
12003 enable_debug_log=yes
12004fi
12005
12006
12007 if test "x$enable_debug_log" = xyes; then
12008
3c208a54
BB
12009 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
12010 DEBUG_LOG="_with_debug_log"
12011
4b2220f0
BB
12012cat >>confdefs.h <<\_ACEOF
12013#define DEBUG_LOG 1
12014_ACEOF
12015
3c208a54
BB
12016
12017else
12018
12019 DEBUG_LOG="_without_debug_log"
12020
4b2220f0
BB
12021fi
12022
12023
3c208a54 12024
4b2220f0
BB
12025 { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5
12026$as_echo_n "checking whether basic debug logging is enabled... " >&6; }
12027 { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5
12028$as_echo "$enable_debug_log" >&6; }
12029
12030
8934764e 12031 # Check whether --enable-debug-kmem was given.
86933a6e 12032if test "${enable_debug_kmem+set}" = set; then
8934764e 12033 enableval=$enable_debug_kmem;
055ffd98
BB
12034else
12035 enable_debug_kmem=yes
8934764e
BB
12036fi
12037
055ffd98
BB
12038
12039 if test "x$enable_debug_kmem" = xyes; then
86933a6e 12040
3c208a54
BB
12041 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
12042 DEBUG_KMEM="_with_debug_kmem"
12043
86933a6e
BB
12044cat >>confdefs.h <<\_ACEOF
12045#define DEBUG_KMEM 1
12046_ACEOF
12047
3c208a54
BB
12048
12049else
12050
12051 DEBUG_KMEM="_without_debug_kmem"
12052
055ffd98 12053fi
86933a6e 12054
86933a6e 12055
3c208a54 12056
8934764e
BB
12057 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
12058$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
12059 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
12060$as_echo "$enable_debug_kmem" >&6; }
86933a6e
BB
12061
12062
8934764e 12063 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 12064if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 12065 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
12066else
12067 enable_debug_kmem_tracking=no
8934764e
BB
12068fi
12069
055ffd98
BB
12070
12071 if test "x$enable_debug_kmem_tracking" = xyes; then
86933a6e 12072
3c208a54
BB
12073 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
12074 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
12075
86933a6e 12076cat >>confdefs.h <<\_ACEOF
055ffd98 12077#define DEBUG_KMEM_TRACKING 1
86933a6e
BB
12078_ACEOF
12079
3c208a54
BB
12080
12081else
12082
12083 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
12084
055ffd98
BB
12085fi
12086
12087
3c208a54 12088
8934764e
BB
12089 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
12090$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
12091 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
12092$as_echo "$enable_debug_kmem_tracking" >&6; }
86933a6e 12093
5e9b5d83 12094
8934764e 12095 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 12096if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 12097 enableval=$enable_atomic_spinlocks;
5e9b5d83 12098else
d04c8a56 12099 enable_atomic_spinlocks=check
8934764e
BB
12100fi
12101
5e9b5d83 12102
86933a6e
BB
12103
12104
dbe561d8 12105cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111
12112
d04c8a56 12113 #include <asm/atomic.h>
86933a6e
BB
12114
12115int
12116main (void)
12117{
12118
03318641 12119 atomic64_t *ptr __attribute__ ((unused));
86933a6e
BB
12120
12121 ;
12122 return 0;
12123}
12124
12125_ACEOF
12126
12127
12128 rm -Rf build && mkdir -p build
12129 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12130 if { 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
12131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132 (eval $ac_try) 2>&5
12133 ac_status=$?
8934764e 12134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
8934764e 12139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12140 (exit $ac_status); }; }; then
12141
d04c8a56 12142 have_atomic64_t=yes
86933a6e
BB
12143
12144cat >>confdefs.h <<\_ACEOF
d04c8a56 12145#define HAVE_ATOMIC64_T 1
86933a6e
BB
12146_ACEOF
12147
12148
12149else
8934764e 12150 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12151sed 's/^/| /' conftest.$ac_ext >&5
12152
d04c8a56 12153 have_atomic64_t=no
86933a6e
BB
12154
12155
12156
12157fi
12158
12159 rm -Rf build
12160
12161
12162
d04c8a56
BB
12163 if test "x$enable_atomic_spinlocks" = xcheck; then
12164
12165 if test "x$have_atomic64_t" = xyes; then
12166
12167 enable_atomic_spinlocks=no
12168
12169else
12170
12171 enable_atomic_spinlocks=yes
12172
12173fi
12174
12175
12176fi
12177
12178
12179 if test "x$enable_atomic_spinlocks" = xyes; then
12180
12181
12182cat >>confdefs.h <<\_ACEOF
12183#define ATOMIC_SPINLOCK 1
12184_ACEOF
12185
12186
12187else
12188
12189 if test "x$have_atomic64_t" = xno; then
12190
8934764e
BB
12191 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12193{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 12194See \`config.log' for more details." >&5
8934764e 12195$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 12196See \`config.log' for more details." >&2;}
8934764e 12197 { (exit 1); exit 1; }; }; }
d04c8a56
BB
12198
12199fi
12200
12201
12202fi
12203
12204
8934764e
BB
12205 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
12206$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12207 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
12208$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 12209
8934764e
BB
12210 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
12211$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12212 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
12213$as_echo "$have_atomic64_t" >&6; }
d04c8a56 12214
8934764e
BB
12215 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
12216$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
86933a6e
BB
12217
12218
dbe561d8 12219cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12220/* confdefs.h. */
12221_ACEOF
12222cat confdefs.h >>conftest.$ac_ext
12223cat >>conftest.$ac_ext <<_ACEOF
12224/* end confdefs.h. */
12225
12226
12227 #include <asm/atomic.h>
5ec44a37 12228 #include <asm/system.h>
86933a6e
BB
12229
12230int
12231main (void)
12232{
12233
d04c8a56 12234 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
86933a6e
BB
12235
12236 ;
12237 return 0;
12238}
12239
12240_ACEOF
12241
12242
12243 rm -Rf build && mkdir -p build
12244 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12245 if { 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
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12248 ac_status=$?
8934764e 12249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12250 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252 (eval $ac_try) 2>&5
12253 ac_status=$?
8934764e 12254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12255 (exit $ac_status); }; }; then
12256
8934764e
BB
12257 { $as_echo "$as_me:$LINENO: result: yes" >&5
12258$as_echo "yes" >&6; }
86933a6e
BB
12259
12260cat >>confdefs.h <<\_ACEOF
d04c8a56 12261#define HAVE_ATOMIC64_CMPXCHG 1
86933a6e
BB
12262_ACEOF
12263
12264
12265else
8934764e 12266 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
8934764e
BB
12269 { $as_echo "$as_me:$LINENO: result: no" >&5
12270$as_echo "no" >&6; }
86933a6e
BB
12271
12272
12273
302b88e6
BB
12274fi
12275
12276 rm -Rf build
12277
12278
12279
8934764e
BB
12280 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
12281$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
12282
12283
dbe561d8 12284cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
12285/* confdefs.h. */
12286_ACEOF
12287cat confdefs.h >>conftest.$ac_ext
12288cat >>conftest.$ac_ext <<_ACEOF
12289/* end confdefs.h. */
12290
12291
12292 #include <asm/atomic.h>
12293
12294int
12295main (void)
12296{
12297
d04c8a56 12298 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
12299
12300 ;
12301 return 0;
12302}
12303
12304_ACEOF
12305
12306
12307 rm -Rf build && mkdir -p build
12308 echo "obj-m := conftest.o" >build/Makefile
12309 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12312 ac_status=$?
8934764e 12313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12314 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12317 ac_status=$?
8934764e 12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12319 (exit $ac_status); }; }; then
12320
8934764e
BB
12321 { $as_echo "$as_me:$LINENO: result: yes" >&5
12322$as_echo "yes" >&6; }
302b88e6
BB
12323
12324cat >>confdefs.h <<\_ACEOF
d04c8a56 12325#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
12326_ACEOF
12327
12328
12329else
8934764e 12330 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
12331sed 's/^/| /' conftest.$ac_ext >&5
12332
8934764e
BB
12333 { $as_echo "$as_me:$LINENO: result: no" >&5
12334$as_echo "no" >&6; }
302b88e6
BB
12335
12336
12337
12338fi
12339
12340 rm -Rf build
12341
12342
12343
8934764e
BB
12344 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
12345$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
12346
12347
dbe561d8 12348cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
12349/* confdefs.h. */
12350_ACEOF
12351cat confdefs.h >>conftest.$ac_ext
12352cat >>conftest.$ac_ext <<_ACEOF
12353/* end confdefs.h. */
12354
12355
d04c8a56 12356 #include <linux/types.h>
302b88e6
BB
12357
12358int
12359main (void)
12360{
12361
03318641 12362 uintptr_t *ptr __attribute__ ((unused));
302b88e6
BB
12363
12364 ;
12365 return 0;
12366}
12367
12368_ACEOF
12369
12370
12371 rm -Rf build && mkdir -p build
12372 echo "obj-m := conftest.o" >build/Makefile
12373 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
8934764e 12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12378 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
8934764e 12382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
12383 (exit $ac_status); }; }; then
12384
8934764e
BB
12385 { $as_echo "$as_me:$LINENO: result: yes" >&5
12386$as_echo "yes" >&6; }
302b88e6
BB
12387
12388cat >>confdefs.h <<\_ACEOF
d04c8a56 12389#define HAVE_UINTPTR_T 1
302b88e6
BB
12390_ACEOF
12391
12392
12393else
8934764e 12394 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
8934764e
BB
12397 { $as_echo "$as_me:$LINENO: result: no" >&5
12398$as_echo "no" >&6; }
302b88e6
BB
12399
12400
12401
86933a6e
BB
12402fi
12403
12404 rm -Rf build
12405
12406
12407
8934764e
BB
12408 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12409$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
86933a6e
BB
12410
12411
dbe561d8 12412cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12413/* confdefs.h. */
12414_ACEOF
12415cat confdefs.h >>conftest.$ac_ext
12416cat >>conftest.$ac_ext <<_ACEOF
12417/* end confdefs.h. */
12418
12419
12420 #include <linux/workqueue.h>
12421
12422int
12423main (void)
12424{
12425
03318641 12426 struct work_struct work __attribute__ ((unused));
86933a6e
BB
12427 INIT_WORK(&work, NULL, NULL);
12428
12429 ;
12430 return 0;
12431}
12432
12433_ACEOF
12434
12435
12436 rm -Rf build && mkdir -p build
12437 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12438 if { 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
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
8934764e 12442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12443 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
8934764e 12447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12448 (exit $ac_status); }; }; then
12449
8934764e
BB
12450 { $as_echo "$as_me:$LINENO: result: yes" >&5
12451$as_echo "yes" >&6; }
86933a6e
BB
12452
12453cat >>confdefs.h <<\_ACEOF
12454#define HAVE_3ARGS_INIT_WORK 1
12455_ACEOF
12456
12457
12458else
8934764e 12459 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
8934764e
BB
12462 { $as_echo "$as_me:$LINENO: result: no" >&5
12463$as_echo "no" >&6; }
86933a6e
BB
12464
12465
12466
12467fi
12468
12469 rm -Rf build
12470
12471
12472
8934764e
BB
12473 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12474$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
86933a6e
BB
12475
12476
dbe561d8 12477cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
12483
12484
12485 #include <linux/sysctl.h>
12486
12487int
12488main (void)
12489{
12490
03318641 12491 (void) register_sysctl_table(NULL, 0);
86933a6e
BB
12492
12493 ;
12494 return 0;
12495}
12496
12497_ACEOF
12498
12499
12500 rm -Rf build && mkdir -p build
12501 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12502 if { 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
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
8934764e 12506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12507 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
8934764e 12511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12512 (exit $ac_status); }; }; then
12513
8934764e
BB
12514 { $as_echo "$as_me:$LINENO: result: yes" >&5
12515$as_echo "yes" >&6; }
86933a6e
BB
12516
12517cat >>confdefs.h <<\_ACEOF
12518#define HAVE_2ARGS_REGISTER_SYSCTL 1
12519_ACEOF
12520
12521
12522else
8934764e 12523 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
8934764e
BB
12526 { $as_echo "$as_me:$LINENO: result: no" >&5
12527$as_echo "no" >&6; }
86933a6e
BB
12528
12529
12530
12531fi
12532
12533 rm -Rf build
12534
12535
12536
12537
8934764e
BB
12538 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12539$as_echo_n "checking whether set_shrinker() available... " >&6; }
86933a6e
BB
12540
12541
dbe561d8 12542cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548
12549
12550 #include <linux/mm.h>
12551
12552int
12553main (void)
12554{
12555
12556 return set_shrinker(DEFAULT_SEEKS, NULL);
12557
12558 ;
12559 return 0;
12560}
12561
12562_ACEOF
12563
12564
12565 rm -Rf build && mkdir -p build
12566 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12567 if { 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
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
8934764e 12571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12572 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
8934764e 12576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12577 (exit $ac_status); }; }; then
12578
8934764e
BB
12579 { $as_echo "$as_me:$LINENO: result: yes" >&5
12580$as_echo "yes" >&6; }
86933a6e
BB
12581
12582cat >>confdefs.h <<\_ACEOF
12583#define HAVE_SET_SHRINKER 1
12584_ACEOF
12585
12586
12587else
8934764e 12588 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12589sed 's/^/| /' conftest.$ac_ext >&5
12590
8934764e
BB
12591 { $as_echo "$as_me:$LINENO: result: no" >&5
12592$as_echo "no" >&6; }
86933a6e
BB
12593
12594
12595
12596fi
12597
12598 rm -Rf build
12599
12600
12601
23aa63cb
BB
12602 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
12603$as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
12604 tmp_flags="$EXTRA_KCFLAGS"
12605 EXTRA_KCFLAGS="-Werror"
12606
12607
12608cat confdefs.h - <<_ACEOF >conftest.c
12609/* confdefs.h. */
12610_ACEOF
12611cat confdefs.h >>conftest.$ac_ext
12612cat >>conftest.$ac_ext <<_ACEOF
12613/* end confdefs.h. */
12614
12615
12616 #include <linux/mm.h>
12617
12618 int shrinker_cb(struct shrinker *, int, unsigned int);
12619
12620int
12621main (void)
12622{
12623
12624 struct shrinker cache_shrinker = {
12625 .shrink = shrinker_cb,
12626 .seeks = DEFAULT_SEEKS,
12627 };
12628 register_shrinker(&cache_shrinker);
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
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'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12642 ac_status=$?
12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650
12651 { $as_echo "$as_me:$LINENO: result: yes" >&5
12652$as_echo "yes" >&6; }
12653
12654cat >>confdefs.h <<\_ACEOF
12655#define HAVE_3ARGS_SHRINKER_CALLBACK 1
12656_ACEOF
12657
12658
12659else
12660 $as_echo "$as_me: failed program was:" >&5
12661sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 { $as_echo "$as_me:$LINENO: result: no" >&5
12664$as_echo "no" >&6; }
12665
12666
12667
12668fi
12669
12670 rm -Rf build
12671
12672
12673 EXTRA_KCFLAGS="$tmp_flags"
12674
8934764e
BB
12675 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12676$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
86933a6e
BB
12677
12678
dbe561d8 12679cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12680/* confdefs.h. */
12681_ACEOF
12682cat confdefs.h >>conftest.$ac_ext
12683cat >>conftest.$ac_ext <<_ACEOF
12684/* end confdefs.h. */
12685
12686
12687 #include <linux/namei.h>
12688
12689int
12690main (void)
12691{
12692
03318641 12693 struct nameidata nd __attribute__ ((unused));
86933a6e
BB
12694
12695 nd.path.mnt = NULL;
12696 nd.path.dentry = NULL;
12697
12698 ;
12699 return 0;
12700}
12701
12702_ACEOF
12703
12704
12705 rm -Rf build && mkdir -p build
12706 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12707 if { 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
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
8934764e 12711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12712 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
8934764e 12716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12717 (exit $ac_status); }; }; then
12718
8934764e
BB
12719 { $as_echo "$as_me:$LINENO: result: yes" >&5
12720$as_echo "yes" >&6; }
86933a6e
BB
12721
12722cat >>confdefs.h <<\_ACEOF
12723#define HAVE_PATH_IN_NAMEIDATA 1
12724_ACEOF
12725
12726
12727else
8934764e 12728 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12729sed 's/^/| /' conftest.$ac_ext >&5
12730
8934764e
BB
12731 { $as_echo "$as_me:$LINENO: result: no" >&5
12732$as_echo "no" >&6; }
86933a6e
BB
12733
12734
12735
12736fi
12737
12738 rm -Rf build
12739
12740
12741
12742
8934764e
BB
12743 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12744$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
86933a6e
BB
12745 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12746 $LINUX_OBJ/Module*.symvers 2>/dev/null
12747 rc=$?
12748 if test $rc -ne 0; then
12749 export=0
12750 for file in kernel/sched.c; do
12751 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12752 "$LINUX_OBJ/$file" 2>/dev/null
12753 rc=$?
12754 if test $rc -eq 0; then
12755 export=1
12756 break;
12757 fi
12758 done
12759 if test $export -eq 0; then
8934764e
BB
12760 { $as_echo "$as_me:$LINENO: result: no" >&5
12761$as_echo "no" >&6; }
86933a6e
BB
12762
12763 else
8934764e
BB
12764 { $as_echo "$as_me:$LINENO: result: yes" >&5
12765$as_echo "yes" >&6; }
86933a6e
BB
12766
12767cat >>confdefs.h <<\_ACEOF
12768#define HAVE_TASK_CURR 1
12769_ACEOF
12770
12771 fi
12772 else
8934764e
BB
12773 { $as_echo "$as_me:$LINENO: result: yes" >&5
12774$as_echo "yes" >&6; }
86933a6e
BB
12775
12776cat >>confdefs.h <<\_ACEOF
12777#define HAVE_TASK_CURR 1
12778_ACEOF
12779
12780 fi
12781
12782
8934764e
BB
12783 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12784$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
86933a6e
BB
12785
12786
dbe561d8 12787cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793
12794
12795 #include <linux/sysctl.h>
12796
12797int
12798main (void)
12799{
12800
12801 #ifndef CTL_UNNUMBERED
12802 #error CTL_UNNUMBERED undefined
12803 #endif
12804
12805 ;
12806 return 0;
12807}
12808
12809_ACEOF
12810
12811
12812 rm -Rf build && mkdir -p build
12813 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12814 if { 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
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
8934764e 12818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12819 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
8934764e 12823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12824 (exit $ac_status); }; }; then
12825
8934764e
BB
12826 { $as_echo "$as_me:$LINENO: result: yes" >&5
12827$as_echo "yes" >&6; }
86933a6e
BB
12828
12829cat >>confdefs.h <<\_ACEOF
12830#define HAVE_CTL_UNNUMBERED 1
12831_ACEOF
12832
12833
12834else
8934764e 12835 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12836sed 's/^/| /' conftest.$ac_ext >&5
12837
8934764e
BB
12838 { $as_echo "$as_me:$LINENO: result: no" >&5
12839$as_echo "no" >&6; }
86933a6e
BB
12840
12841
12842
79a3bf13
BB
12843fi
12844
12845 rm -Rf build
12846
12847
12848
12849
12850 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12851$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12852
12853
dbe561d8 12854cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
12855/* confdefs.h. */
12856_ACEOF
12857cat confdefs.h >>conftest.$ac_ext
12858cat >>conftest.$ac_ext <<_ACEOF
12859/* end confdefs.h. */
12860
12861
12862 #include <linux/sysctl.h>
12863
12864int
12865main (void)
12866{
12867
03318641 12868 struct ctl_table ctl __attribute__ ((unused));
79a3bf13
BB
12869 ctl.ctl_name = 0;
12870
12871 ;
12872 return 0;
12873}
12874
12875_ACEOF
12876
12877
12878 rm -Rf build && mkdir -p build
12879 echo "obj-m := conftest.o" >build/Makefile
12880 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12883 ac_status=$?
12884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; }; then
12891
12892 { $as_echo "$as_me:$LINENO: result: yes" >&5
12893$as_echo "yes" >&6; }
12894
12895cat >>confdefs.h <<\_ACEOF
12896#define HAVE_CTL_NAME 1
12897_ACEOF
12898
12899
12900else
12901 $as_echo "$as_me: failed program was:" >&5
12902sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 { $as_echo "$as_me:$LINENO: result: no" >&5
12905$as_echo "no" >&6; }
12906
12907
12908
86933a6e
BB
12909fi
12910
12911 rm -Rf build
12912
12913
12914
8934764e
BB
12915 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12916$as_echo_n "checking whether fls64() is available... " >&6; }
86933a6e
BB
12917
12918
dbe561d8 12919cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12920/* confdefs.h. */
12921_ACEOF
12922cat confdefs.h >>conftest.$ac_ext
12923cat >>conftest.$ac_ext <<_ACEOF
12924/* end confdefs.h. */
12925
12926
12927 #include <linux/bitops.h>
12928
12929int
12930main (void)
12931{
12932
12933 return fls64(0);
12934
12935 ;
12936 return 0;
12937}
12938
12939_ACEOF
12940
12941
12942 rm -Rf build && mkdir -p build
12943 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12944 if { 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
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12947 ac_status=$?
8934764e 12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12949 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
8934764e 12953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12954 (exit $ac_status); }; }; then
12955
8934764e
BB
12956 { $as_echo "$as_me:$LINENO: result: yes" >&5
12957$as_echo "yes" >&6; }
86933a6e
BB
12958
12959cat >>confdefs.h <<\_ACEOF
12960#define HAVE_FLS64 1
12961_ACEOF
12962
12963
12964else
8934764e 12965 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12966sed 's/^/| /' conftest.$ac_ext >&5
12967
8934764e
BB
12968 { $as_echo "$as_me:$LINENO: result: no" >&5
12969$as_echo "no" >&6; }
86933a6e
BB
12970
12971
12972
12973fi
12974
12975 rm -Rf build
12976
12977
12978
12979
8934764e
BB
12980 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12981$as_echo_n "checking whether symbol device_create is exported... " >&6; }
86933a6e
BB
12982 grep -q -E '[[:space:]]device_create[[:space:]]' \
12983 $LINUX_OBJ/Module*.symvers 2>/dev/null
12984 rc=$?
12985 if test $rc -ne 0; then
12986 export=0
12987 for file in drivers/base/core.c; do
12988 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12989 "$LINUX_OBJ/$file" 2>/dev/null
12990 rc=$?
12991 if test $rc -eq 0; then
12992 export=1
12993 break;
12994 fi
12995 done
12996 if test $export -eq 0; then
8934764e
BB
12997 { $as_echo "$as_me:$LINENO: result: no" >&5
12998$as_echo "no" >&6; }
86933a6e
BB
12999
13000 else
8934764e
BB
13001 { $as_echo "$as_me:$LINENO: result: yes" >&5
13002$as_echo "yes" >&6; }
86933a6e
BB
13003
13004cat >>confdefs.h <<\_ACEOF
13005#define HAVE_DEVICE_CREATE 1
13006_ACEOF
13007
13008 fi
13009 else
8934764e
BB
13010 { $as_echo "$as_me:$LINENO: result: yes" >&5
13011$as_echo "yes" >&6; }
86933a6e
BB
13012
13013cat >>confdefs.h <<\_ACEOF
13014#define HAVE_DEVICE_CREATE 1
13015_ACEOF
13016
13017 fi
13018
13019
13020
8934764e
BB
13021 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
13022$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
86933a6e
BB
13023 tmp_flags="$EXTRA_KCFLAGS"
13024 EXTRA_KCFLAGS="-Werror"
13025
13026
dbe561d8 13027cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033
13034
13035 #include <linux/device.h>
13036
13037int
13038main (void)
13039{
13040
13041 device_create(NULL, NULL, 0, NULL, "%d", 1);
13042
13043 ;
13044 return 0;
13045}
13046
13047_ACEOF
13048
13049
13050 rm -Rf build && mkdir -p build
13051 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13052 if { 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
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
8934764e 13056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13057 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
8934764e 13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13062 (exit $ac_status); }; }; then
13063
8934764e
BB
13064 { $as_echo "$as_me:$LINENO: result: yes" >&5
13065$as_echo "yes" >&6; }
86933a6e
BB
13066
13067cat >>confdefs.h <<\_ACEOF
13068#define HAVE_5ARGS_DEVICE_CREATE 1
13069_ACEOF
13070
13071
13072else
8934764e 13073 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13074sed 's/^/| /' conftest.$ac_ext >&5
13075
8934764e
BB
13076 { $as_echo "$as_me:$LINENO: result: no" >&5
13077$as_echo "no" >&6; }
86933a6e
BB
13078
13079
13080
13081fi
13082
13083 rm -Rf build
13084
13085
13086 EXTRA_KCFLAGS="$tmp_flags"
13087
13088
8934764e
BB
13089 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
13090$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
86933a6e
BB
13091 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
13092 $LINUX_OBJ/Module*.symvers 2>/dev/null
13093 rc=$?
13094 if test $rc -ne 0; then
13095 export=0
13096 for file in drivers/base/class.c; do
13097 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
13098 "$LINUX_OBJ/$file" 2>/dev/null
13099 rc=$?
13100 if test $rc -eq 0; then
13101 export=1
13102 break;
13103 fi
13104 done
13105 if test $export -eq 0; then
8934764e
BB
13106 { $as_echo "$as_me:$LINENO: result: no" >&5
13107$as_echo "no" >&6; }
86933a6e
BB
13108
13109 else
8934764e
BB
13110 { $as_echo "$as_me:$LINENO: result: yes" >&5
13111$as_echo "yes" >&6; }
86933a6e
BB
13112
13113cat >>confdefs.h <<\_ACEOF
13114#define HAVE_CLASS_DEVICE_CREATE 1
13115_ACEOF
13116
13117 fi
13118 else
8934764e
BB
13119 { $as_echo "$as_me:$LINENO: result: yes" >&5
13120$as_echo "yes" >&6; }
86933a6e
BB
13121
13122cat >>confdefs.h <<\_ACEOF
13123#define HAVE_CLASS_DEVICE_CREATE 1
13124_ACEOF
13125
13126 fi
13127
13128
13129
8934764e
BB
13130 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
13131$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
86933a6e
BB
13132 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
13133 $LINUX_OBJ/Module*.symvers 2>/dev/null
13134 rc=$?
13135 if test $rc -ne 0; then
13136 export=0
13137 for file in kernel/time.c; do
13138 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
13139 "$LINUX_OBJ/$file" 2>/dev/null
13140 rc=$?
13141 if test $rc -eq 0; then
13142 export=1
13143 break;
13144 fi
13145 done
13146 if test $export -eq 0; then
8934764e
BB
13147 { $as_echo "$as_me:$LINENO: result: no" >&5
13148$as_echo "no" >&6; }
86933a6e
BB
13149
13150 else
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_EXPORT 1
13156_ACEOF
13157
13158 fi
13159 else
8934764e
BB
13160 { $as_echo "$as_me:$LINENO: result: yes" >&5
13161$as_echo "yes" >&6; }
86933a6e
BB
13162
13163cat >>confdefs.h <<\_ACEOF
13164#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
13165_ACEOF
13166
13167 fi
13168
13169
13170
8934764e
BB
13171 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
13172$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
86933a6e
BB
13173
13174
dbe561d8 13175cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
13181
13182
13183 #include <linux/time.h>
13184 void set_normalized_timespec(struct timespec *ts,
13185 time_t sec, long nsec) { }
13186
13187int
13188main (void)
13189{
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: no" >&5
13213$as_echo "no" >&6; }
86933a6e
BB
13214
13215else
8934764e 13216 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13217sed 's/^/| /' conftest.$ac_ext >&5
13218
8934764e
BB
13219 { $as_echo "$as_me:$LINENO: result: yes" >&5
13220$as_echo "yes" >&6; }
86933a6e
BB
13221
13222cat >>confdefs.h <<\_ACEOF
13223#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
13224_ACEOF
13225
13226
13227
13228
13229fi
13230
13231 rm -Rf build
13232
13233
13234
13235
8934764e
BB
13236 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
13237$as_echo_n "checking whether timespec_sub() 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/time.h>
13249
13250int
13251main (void)
13252{
13253
03318641
BB
13254 struct timespec a = { 0 };
13255 struct timespec b = { 0 };
13256 struct timespec c __attribute__ ((unused));
86933a6e
BB
13257 c = timespec_sub(a, b);
13258
13259 ;
13260 return 0;
13261}
13262
13263_ACEOF
13264
13265
13266 rm -Rf build && mkdir -p build
13267 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13268 if { 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
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
8934764e 13272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13273 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
8934764e 13277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13278 (exit $ac_status); }; }; then
13279
8934764e
BB
13280 { $as_echo "$as_me:$LINENO: result: yes" >&5
13281$as_echo "yes" >&6; }
86933a6e
BB
13282
13283cat >>confdefs.h <<\_ACEOF
13284#define HAVE_TIMESPEC_SUB 1
13285_ACEOF
13286
13287
13288else
8934764e 13289 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
8934764e
BB
13292 { $as_echo "$as_me:$LINENO: result: no" >&5
13293$as_echo "no" >&6; }
86933a6e
BB
13294
13295
13296
13297fi
13298
13299 rm -Rf build
13300
13301
13302
13303
8934764e
BB
13304 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
13305$as_echo_n "checking whether init_utsname() is available... " >&6; }
86933a6e
BB
13306
13307
dbe561d8 13308cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13309/* confdefs.h. */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h. */
13314
13315
13316 #include <linux/utsname.h>
13317
13318int
13319main (void)
13320{
13321
03318641
BB
13322 struct new_utsname *a __attribute__ ((unused));
13323 a = init_utsname();
86933a6e
BB
13324
13325 ;
13326 return 0;
13327}
13328
13329_ACEOF
13330
13331
13332 rm -Rf build && mkdir -p build
13333 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13334 if { 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
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
8934764e 13338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13339 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
8934764e 13343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13344 (exit $ac_status); }; }; then
13345
8934764e
BB
13346 { $as_echo "$as_me:$LINENO: result: yes" >&5
13347$as_echo "yes" >&6; }
86933a6e
BB
13348
13349cat >>confdefs.h <<\_ACEOF
13350#define HAVE_INIT_UTSNAME 1
13351_ACEOF
13352
13353
13354else
8934764e 13355 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13356sed 's/^/| /' conftest.$ac_ext >&5
13357
8934764e
BB
13358 { $as_echo "$as_me:$LINENO: result: no" >&5
13359$as_echo "no" >&6; }
86933a6e
BB
13360
13361
13362
13363fi
13364
13365 rm -Rf build
13366
13367
13368
13369
8934764e
BB
13370 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
13371$as_echo_n "checking whether header linux/fdtable.h exists... " >&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/fdtable.h>
13383
13384int
13385main (void)
13386{
13387
13388 return 0;
13389
13390 ;
13391 return 0;
13392}
13393
13394_ACEOF
13395
13396
13397 rm -Rf build && mkdir -p build
13398 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13399 if { 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
13400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401 (eval $ac_try) 2>&5
13402 ac_status=$?
8934764e 13403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13404 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
8934764e 13408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13409 (exit $ac_status); }; }; then
13410
13411
13412cat >>confdefs.h <<\_ACEOF
13413#define HAVE_FDTABLE_HEADER 1
13414_ACEOF
13415
8934764e
BB
13416 { $as_echo "$as_me:$LINENO: result: yes" >&5
13417$as_echo "yes" >&6; }
86933a6e
BB
13418
13419
13420else
8934764e 13421 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13422sed 's/^/| /' conftest.$ac_ext >&5
13423
8934764e
BB
13424 { $as_echo "$as_me:$LINENO: result: no" >&5
13425$as_echo "no" >&6; }
86933a6e
BB
13426
13427
13428
13429
13430fi
13431
13432 rm -Rf build
13433
13434
13435
13436
13437
8934764e
BB
13438 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
13439$as_echo_n "checking whether files_fdtable() is available... " >&6; }
86933a6e
BB
13440
13441
dbe561d8 13442cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13443/* confdefs.h. */
13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
13448
13449
13450 #include <linux/sched.h>
13451 #include <linux/file.h>
13452 #ifdef HAVE_FDTABLE_HEADER
13453 #include <linux/fdtable.h>
13454 #endif
13455
13456int
13457main (void)
13458{
13459
13460 struct files_struct *files = current->files;
03318641
BB
13461 struct fdtable *fdt __attribute__ ((unused));
13462 fdt = files_fdtable(files);
86933a6e
BB
13463
13464 ;
13465 return 0;
13466}
13467
13468_ACEOF
13469
13470
13471 rm -Rf build && mkdir -p build
13472 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13473 if { 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
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
8934764e 13477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13478 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
8934764e 13482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13483 (exit $ac_status); }; }; then
13484
8934764e
BB
13485 { $as_echo "$as_me:$LINENO: result: yes" >&5
13486$as_echo "yes" >&6; }
86933a6e
BB
13487
13488cat >>confdefs.h <<\_ACEOF
13489#define HAVE_FILES_FDTABLE 1
13490_ACEOF
13491
13492
13493else
8934764e 13494 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13495sed 's/^/| /' conftest.$ac_ext >&5
13496
8934764e
BB
13497 { $as_echo "$as_me:$LINENO: result: no" >&5
13498$as_echo "no" >&6; }
86933a6e
BB
13499
13500
13501
13502fi
13503
13504 rm -Rf build
13505
13506
13507
13508
8934764e
BB
13509 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13510$as_echo_n "checking whether header linux/uaccess.h exists... " >&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/uaccess.h>
13522
13523int
13524main (void)
13525{
13526
13527 return 0;
13528
13529 ;
13530 return 0;
13531}
13532
13533_ACEOF
13534
13535
13536 rm -Rf build && mkdir -p build
13537 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13538 if { 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
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
8934764e 13542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13543 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
8934764e 13547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13548 (exit $ac_status); }; }; then
13549
13550
13551cat >>confdefs.h <<\_ACEOF
13552#define HAVE_UACCESS_HEADER 1
13553_ACEOF
13554
8934764e
BB
13555 { $as_echo "$as_me:$LINENO: result: yes" >&5
13556$as_echo "yes" >&6; }
86933a6e
BB
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
13568
13569fi
13570
13571 rm -Rf build
13572
13573
13574
13575
13576
8934764e
BB
13577 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13578$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
86933a6e
BB
13579
13580
dbe561d8 13581cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13582/* confdefs.h. */
13583_ACEOF
13584cat confdefs.h >>conftest.$ac_ext
13585cat >>conftest.$ac_ext <<_ACEOF
13586/* end confdefs.h. */
13587
13588
13589 #include <linux/slab.h>
13590
13591int
13592main (void)
13593{
13594
03318641
BB
13595 void *a __attribute__ ((unused));
13596 a = kmalloc_node(1, GFP_KERNEL, 0);
86933a6e
BB
13597
13598 ;
13599 return 0;
13600}
13601
13602_ACEOF
13603
13604
13605 rm -Rf build && mkdir -p build
13606 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13607 if { 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
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
8934764e 13611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13612 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
8934764e 13616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13617 (exit $ac_status); }; }; then
13618
8934764e
BB
13619 { $as_echo "$as_me:$LINENO: result: yes" >&5
13620$as_echo "yes" >&6; }
86933a6e
BB
13621
13622cat >>confdefs.h <<\_ACEOF
13623#define HAVE_KMALLOC_NODE 1
13624_ACEOF
13625
13626
13627else
8934764e 13628 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13629sed 's/^/| /' conftest.$ac_ext >&5
13630
8934764e
BB
13631 { $as_echo "$as_me:$LINENO: result: no" >&5
13632$as_echo "no" >&6; }
86933a6e
BB
13633
13634
13635
13636fi
13637
13638 rm -Rf build
13639
13640
13641
13642
8934764e
BB
13643 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13644$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
86933a6e
BB
13645 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13646 $LINUX_OBJ/Module*.symvers 2>/dev/null
13647 rc=$?
13648 if test $rc -ne 0; then
13649 export=0
13650 for file in ; do
13651 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13652 "$LINUX_OBJ/$file" 2>/dev/null
13653 rc=$?
13654 if test $rc -eq 0; then
13655 export=1
13656 break;
13657 fi
13658 done
13659 if test $export -eq 0; then
8934764e
BB
13660 { $as_echo "$as_me:$LINENO: result: no" >&5
13661$as_echo "no" >&6; }
86933a6e
BB
13662
13663 else
8934764e
BB
13664 { $as_echo "$as_me:$LINENO: result: yes" >&5
13665$as_echo "yes" >&6; }
86933a6e
BB
13666
13667cat >>confdefs.h <<\_ACEOF
13668#define HAVE_MONOTONIC_CLOCK 1
13669_ACEOF
13670
13671 fi
13672 else
8934764e
BB
13673 { $as_echo "$as_me:$LINENO: result: yes" >&5
13674$as_echo "yes" >&6; }
86933a6e
BB
13675
13676cat >>confdefs.h <<\_ACEOF
13677#define HAVE_MONOTONIC_CLOCK 1
13678_ACEOF
13679
13680 fi
13681
13682
13683
8934764e
BB
13684 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13685$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
86933a6e
BB
13686
13687
dbe561d8 13688cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13689/* confdefs.h. */
13690_ACEOF
13691cat confdefs.h >>conftest.$ac_ext
13692cat >>conftest.$ac_ext <<_ACEOF
13693/* end confdefs.h. */
13694
13695
13696 #include <linux/fs.h>
13697 #include <linux/mutex.h>
13698
13699int
13700main (void)
13701{
13702
13703 struct inode i;
13704 mutex_init(&i.i_mutex);
13705
13706 ;
13707 return 0;
13708}
13709
13710_ACEOF
13711
13712
13713 rm -Rf build && mkdir -p build
13714 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13715 if { 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
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
8934764e 13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13720 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13723 ac_status=$?
8934764e 13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13725 (exit $ac_status); }; }; then
13726
8934764e
BB
13727 { $as_echo "$as_me:$LINENO: result: yes" >&5
13728$as_echo "yes" >&6; }
86933a6e
BB
13729
13730cat >>confdefs.h <<\_ACEOF
13731#define HAVE_INODE_I_MUTEX 1
13732_ACEOF
13733
13734
13735else
8934764e 13736 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13737sed 's/^/| /' conftest.$ac_ext >&5
13738
8934764e
BB
13739 { $as_echo "$as_me:$LINENO: result: no" >&5
13740$as_echo "no" >&6; }
86933a6e
BB
13741
13742
13743
13744fi
13745
13746 rm -Rf build
13747
13748
13749
13750
8934764e
BB
13751 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13752$as_echo_n "checking whether struct mutex has owner... " >&6; }
4d54fdee
BB
13753
13754
dbe561d8 13755cat confdefs.h - <<_ACEOF >conftest.c
4d54fdee
BB
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
03318641 13769 struct mutex mtx __attribute__ ((unused));
4d54fdee
BB
13770 mtx.owner = NULL;
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=$?
8934764e 13785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
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=$?
8934764e 13790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13791 (exit $ac_status); }; }; then
13792
8934764e
BB
13793 { $as_echo "$as_me:$LINENO: result: yes" >&5
13794$as_echo "yes" >&6; }
4d54fdee
BB
13795
13796cat >>confdefs.h <<\_ACEOF
13797#define HAVE_MUTEX_OWNER 1
13798_ACEOF
13799
13800
13801else
8934764e 13802 $as_echo "$as_me: failed program was:" >&5
4d54fdee
BB
13803sed 's/^/| /' conftest.$ac_ext >&5
13804
8934764e
BB
13805 { $as_echo "$as_me:$LINENO: result: no" >&5
13806$as_echo "no" >&6; }
4d54fdee
BB
13807
13808
13809
13810fi
13811
13812 rm -Rf build
13813
13814
13815
13816
86fd39f3
BB
13817 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
13818$as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
13819 tmp_flags="$EXTRA_KCFLAGS"
13820 EXTRA_KCFLAGS="-Werror"
13821
13822
13823cat confdefs.h - <<_ACEOF >conftest.c
13824/* confdefs.h. */
13825_ACEOF
13826cat confdefs.h >>conftest.$ac_ext
13827cat >>conftest.$ac_ext <<_ACEOF
13828/* end confdefs.h. */
13829
13830
13831 #include <linux/mutex.h>
13832
13833int
13834main (void)
13835{
13836
13837 struct mutex mtx __attribute__ ((unused));
13838 mtx.owner = current;
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
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'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
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=$?
13858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13860
13861 { $as_echo "$as_me:$LINENO: result: yes" >&5
13862$as_echo "yes" >&6; }
13863
13864cat >>confdefs.h <<\_ACEOF
13865#define HAVE_MUTEX_OWNER_TASK_STRUCT 1
13866_ACEOF
13867
13868
13869else
13870 $as_echo "$as_me: failed program was:" >&5
13871sed 's/^/| /' conftest.$ac_ext >&5
13872
13873 { $as_echo "$as_me:$LINENO: result: no" >&5
13874$as_echo "no" >&6; }
13875
13876
13877
13878fi
13879
13880 rm -Rf build
13881
13882
13883 EXTRA_KCFLAGS="$tmp_flags"
13884
13885
8934764e
BB
13886 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13887$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
86933a6e
BB
13888
13889
dbe561d8 13890cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13891/* confdefs.h. */
13892_ACEOF
13893cat confdefs.h >>conftest.$ac_ext
13894cat >>conftest.$ac_ext <<_ACEOF
13895/* end confdefs.h. */
13896
13897
13898 #include <linux/mutex.h>
13899
13900int
13901main (void)
13902{
13903
13904 struct mutex mutex;
13905 mutex_init(&mutex);
13906 mutex_lock_nested(&mutex, 0);
13907
13908 ;
13909 return 0;
13910}
13911
13912_ACEOF
13913
13914
13915 rm -Rf build && mkdir -p build
13916 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13917 if { 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
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
8934764e 13921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13922 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
8934764e 13926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13927 (exit $ac_status); }; }; then
13928
8934764e
BB
13929 { $as_echo "$as_me:$LINENO: result: yes" >&5
13930$as_echo "yes" >&6; }
86933a6e
BB
13931
13932cat >>confdefs.h <<\_ACEOF
13933#define HAVE_MUTEX_LOCK_NESTED 1
13934_ACEOF
13935
13936
13937else
8934764e 13938 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13939sed 's/^/| /' conftest.$ac_ext >&5
13940
8934764e
BB
13941 { $as_echo "$as_me:$LINENO: result: no" >&5
13942$as_echo "no" >&6; }
86933a6e
BB
13943
13944
13945
13946fi
13947
13948 rm -Rf build
13949
13950
13951
13952
8934764e
BB
13953 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13954$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
86933a6e
BB
13955
13956
dbe561d8 13957cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13958/* confdefs.h. */
13959_ACEOF
13960cat confdefs.h >>conftest.$ac_ext
13961cat >>conftest.$ac_ext <<_ACEOF
13962/* end confdefs.h. */
13963
13964
13965 #include <linux/smp.h>
13966
13967int
13968main (void)
13969{
13970
13971 on_each_cpu(NULL, NULL, 0);
13972
13973 ;
13974 return 0;
13975}
13976
13977_ACEOF
13978
13979
13980 rm -Rf build && mkdir -p build
13981 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13982 if { 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
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
8934764e 13986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13987 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989 (eval $ac_try) 2>&5
13990 ac_status=$?
8934764e 13991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13992 (exit $ac_status); }; }; then
13993
8934764e
BB
13994 { $as_echo "$as_me:$LINENO: result: yes" >&5
13995$as_echo "yes" >&6; }
86933a6e
BB
13996
13997cat >>confdefs.h <<\_ACEOF
13998#define HAVE_3ARGS_ON_EACH_CPU 1
13999_ACEOF
14000
14001
14002else
8934764e 14003 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14004sed 's/^/| /' conftest.$ac_ext >&5
14005
8934764e
BB
14006 { $as_echo "$as_me:$LINENO: result: no" >&5
14007$as_echo "no" >&6; }
86933a6e
BB
14008
14009
14010
14011fi
14012
14013 rm -Rf build
14014
14015
14016
14017
8934764e
BB
14018 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
14019$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
86933a6e
BB
14020 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
14021 $LINUX_OBJ/Module*.symvers 2>/dev/null
14022 rc=$?
14023 if test $rc -ne 0; then
14024 export=0
14025 for file in ; do
14026 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
14027 "$LINUX_OBJ/$file" 2>/dev/null
14028 rc=$?
14029 if test $rc -eq 0; then
14030 export=1
14031 break;
14032 fi
14033 done
14034 if test $export -eq 0; then
8934764e
BB
14035 { $as_echo "$as_me:$LINENO: result: no" >&5
14036$as_echo "no" >&6; }
86933a6e
BB
14037
14038 else
8934764e
BB
14039 { $as_echo "$as_me:$LINENO: result: yes" >&5
14040$as_echo "yes" >&6; }
86933a6e
BB
14041
14042cat >>confdefs.h <<\_ACEOF
14043#define HAVE_KALLSYMS_LOOKUP_NAME 1
14044_ACEOF
14045
14046 fi
14047 else
8934764e
BB
14048 { $as_echo "$as_me:$LINENO: result: yes" >&5
14049$as_echo "yes" >&6; }
86933a6e
BB
14050
14051cat >>confdefs.h <<\_ACEOF
14052#define HAVE_KALLSYMS_LOOKUP_NAME 1
14053_ACEOF
14054
14055 fi
14056
14057
14058
8934764e
BB
14059 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
14060$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
86933a6e
BB
14061 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
14062 $LINUX_OBJ/Module*.symvers 2>/dev/null
14063 rc=$?
14064 if test $rc -ne 0; then
14065 export=0
14066 for file in ; do
14067 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
14068 "$LINUX_OBJ/$file" 2>/dev/null
14069 rc=$?
14070 if test $rc -eq 0; then
14071 export=1
14072 break;
14073 fi
14074 done
14075 if test $export -eq 0; then
8934764e
BB
14076 { $as_echo "$as_me:$LINENO: result: no" >&5
14077$as_echo "no" >&6; }
86933a6e
BB
14078
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_GET_VMALLOC_INFO 1
14085_ACEOF
14086
14087 fi
14088 else
8934764e
BB
14089 { $as_echo "$as_me:$LINENO: result: yes" >&5
14090$as_echo "yes" >&6; }
86933a6e
BB
14091
14092cat >>confdefs.h <<\_ACEOF
14093#define HAVE_GET_VMALLOC_INFO 1
14094_ACEOF
14095
14096 fi
14097
14098
14099
8934764e
BB
14100 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
14101$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
86933a6e
BB
14102 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
14103 rc=$?
14104 if test $rc -eq 0; then
8934764e
BB
14105 { $as_echo "$as_me:$LINENO: result: yes" >&5
14106$as_echo "yes" >&6; }
86933a6e
BB
14107
14108cat >>confdefs.h <<\_ACEOF
14109#define HAVE_PGDAT_HELPERS 1
14110_ACEOF
14111
14112 else
8934764e
BB
14113 { $as_echo "$as_me:$LINENO: result: no" >&5
14114$as_echo "no" >&6; }
86933a6e
BB
14115 fi
14116
14117
8934764e
BB
14118 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
14119$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
86933a6e
BB
14120 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
14121 $LINUX_OBJ/Module*.symvers 2>/dev/null
14122 rc=$?
14123 if test $rc -ne 0; then
14124 export=0
14125 for file in ; do
14126 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
14127 "$LINUX_OBJ/$file" 2>/dev/null
14128 rc=$?
14129 if test $rc -eq 0; then
14130 export=1
14131 break;
14132 fi
14133 done
14134 if test $export -eq 0; then
8934764e
BB
14135 { $as_echo "$as_me:$LINENO: result: no" >&5
14136$as_echo "no" >&6; }
86933a6e
BB
14137
14138 else
8934764e
BB
14139 { $as_echo "$as_me:$LINENO: result: yes" >&5
14140$as_echo "yes" >&6; }
86933a6e
BB
14141
14142cat >>confdefs.h <<\_ACEOF
14143#define HAVE_FIRST_ONLINE_PGDAT 1
14144_ACEOF
14145
14146 fi
14147 else
8934764e
BB
14148 { $as_echo "$as_me:$LINENO: result: yes" >&5
14149$as_echo "yes" >&6; }
86933a6e
BB
14150
14151cat >>confdefs.h <<\_ACEOF
14152#define HAVE_FIRST_ONLINE_PGDAT 1
14153_ACEOF
14154
14155 fi
14156
14157
14158
8934764e
BB
14159 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
14160$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
86933a6e
BB
14161 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
14162 $LINUX_OBJ/Module*.symvers 2>/dev/null
14163 rc=$?
14164 if test $rc -ne 0; then
14165 export=0
14166 for file in ; do
14167 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
14168 "$LINUX_OBJ/$file" 2>/dev/null
14169 rc=$?
14170 if test $rc -eq 0; then
14171 export=1
14172 break;
14173 fi
14174 done
14175 if test $export -eq 0; then
8934764e
BB
14176 { $as_echo "$as_me:$LINENO: result: no" >&5
14177$as_echo "no" >&6; }
86933a6e
BB
14178
14179 else
8934764e
BB
14180 { $as_echo "$as_me:$LINENO: result: yes" >&5
14181$as_echo "yes" >&6; }
86933a6e
BB
14182
14183cat >>confdefs.h <<\_ACEOF
14184#define HAVE_NEXT_ONLINE_PGDAT 1
14185_ACEOF
14186
14187 fi
14188 else
8934764e
BB
14189 { $as_echo "$as_me:$LINENO: result: yes" >&5
14190$as_echo "yes" >&6; }
86933a6e
BB
14191
14192cat >>confdefs.h <<\_ACEOF
14193#define HAVE_NEXT_ONLINE_PGDAT 1
14194_ACEOF
14195
14196 fi
14197
14198
14199
8934764e
BB
14200 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
14201$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
86933a6e
BB
14202 grep -q -E '[[:space:]]next_zone[[:space:]]' \
14203 $LINUX_OBJ/Module*.symvers 2>/dev/null
14204 rc=$?
14205 if test $rc -ne 0; then
14206 export=0
14207 for file in ; do
14208 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
14209 "$LINUX_OBJ/$file" 2>/dev/null
14210 rc=$?
14211 if test $rc -eq 0; then
14212 export=1
14213 break;
14214 fi
14215 done
14216 if test $export -eq 0; then
8934764e
BB
14217 { $as_echo "$as_me:$LINENO: result: no" >&5
14218$as_echo "no" >&6; }
86933a6e
BB
14219
14220 else
8934764e
BB
14221 { $as_echo "$as_me:$LINENO: result: yes" >&5
14222$as_echo "yes" >&6; }
86933a6e
BB
14223
14224cat >>confdefs.h <<\_ACEOF
14225#define HAVE_NEXT_ZONE 1
14226_ACEOF
14227
14228 fi
14229 else
8934764e
BB
14230 { $as_echo "$as_me:$LINENO: result: yes" >&5
14231$as_echo "yes" >&6; }
86933a6e
BB
14232
14233cat >>confdefs.h <<\_ACEOF
14234#define HAVE_NEXT_ZONE 1
14235_ACEOF
14236
14237 fi
14238
14239
14240
8934764e
BB
14241 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
14242$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
86933a6e
BB
14243 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
14244 $LINUX_OBJ/Module*.symvers 2>/dev/null
14245 rc=$?
14246 if test $rc -ne 0; then
14247 export=0
14248 for file in ; do
14249 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
14250 "$LINUX_OBJ/$file" 2>/dev/null
14251 rc=$?
14252 if test $rc -eq 0; then
14253 export=1
14254 break;
14255 fi
14256 done
14257 if test $export -eq 0; then
8934764e
BB
14258 { $as_echo "$as_me:$LINENO: result: no" >&5
14259$as_echo "no" >&6; }
86933a6e
BB
14260
14261 else
8934764e
BB
14262 { $as_echo "$as_me:$LINENO: result: yes" >&5
14263$as_echo "yes" >&6; }
86933a6e
BB
14264
14265cat >>confdefs.h <<\_ACEOF
14266#define HAVE_PGDAT_LIST 1
14267_ACEOF
14268
14269 fi
14270 else
8934764e
BB
14271 { $as_echo "$as_me:$LINENO: result: yes" >&5
14272$as_echo "yes" >&6; }
86933a6e
BB
14273
14274cat >>confdefs.h <<\_ACEOF
14275#define HAVE_PGDAT_LIST 1
14276_ACEOF
14277
14278 fi
14279
14280
14281
8934764e
BB
14282 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
14283$as_echo_n "checking whether global_page_state() is available... " >&6; }
86933a6e 14284
86933a6e 14285
dbe561d8 14286cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 14287/* confdefs.h. */
86933a6e 14288_ACEOF
6ae7fef5
BB
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
14291/* end confdefs.h. */
14292
14293
14294 #include <linux/mm.h>
14295
14296int
14297main (void)
14298{
14299
03318641 14300 unsigned long state __attribute__ ((unused));
6ae7fef5
BB
14301 state = global_page_state(0);
14302
14303 ;
14304 return 0;
14305}
14306
14307_ACEOF
14308
14309
14310 rm -Rf build && mkdir -p build
14311 echo "obj-m := conftest.o" >build/Makefile
14312 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
8934764e 14316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14317 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
8934764e 14321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 14322 (exit $ac_status); }; }; then
86933a6e 14323
8934764e
BB
14324 { $as_echo "$as_me:$LINENO: result: yes" >&5
14325$as_echo "yes" >&6; }
86933a6e
BB
14326
14327cat >>confdefs.h <<\_ACEOF
6ae7fef5 14328#define HAVE_GLOBAL_PAGE_STATE 1
86933a6e
BB
14329_ACEOF
14330
6ae7fef5
BB
14331
14332else
8934764e 14333 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14334sed 's/^/| /' conftest.$ac_ext >&5
14335
8934764e
BB
14336 { $as_echo "$as_me:$LINENO: result: no" >&5
14337$as_echo "no" >&6; }
6ae7fef5
BB
14338
14339
14340
14341fi
14342
14343 rm -Rf build
86933a6e
BB
14344
14345
14346
6ae7fef5 14347
8934764e
BB
14348 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
14349$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
86933a6e
BB
14350
14351
dbe561d8 14352cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14353/* confdefs.h. */
14354_ACEOF
14355cat confdefs.h >>conftest.$ac_ext
14356cat >>conftest.$ac_ext <<_ACEOF
14357/* end confdefs.h. */
14358
14359
6ae7fef5 14360 #include <linux/mm.h>
86933a6e
BB
14361
14362int
14363main (void)
14364{
14365
03318641 14366 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14367 zsi = NR_FREE_PAGES;
86933a6e
BB
14368
14369 ;
14370 return 0;
14371}
14372
14373_ACEOF
14374
14375
14376 rm -Rf build && mkdir -p build
14377 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14378 if { 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
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
8934764e 14382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14383 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14386 ac_status=$?
8934764e 14387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14388 (exit $ac_status); }; }; then
14389
8934764e
BB
14390 { $as_echo "$as_me:$LINENO: result: yes" >&5
14391$as_echo "yes" >&6; }
86933a6e
BB
14392
14393cat >>confdefs.h <<\_ACEOF
6ae7fef5 14394#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
86933a6e
BB
14395_ACEOF
14396
14397
14398else
8934764e 14399 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
8934764e
BB
14402 { $as_echo "$as_me:$LINENO: result: no" >&5
14403$as_echo "no" >&6; }
86933a6e
BB
14404
14405
14406
14407fi
14408
14409 rm -Rf build
14410
14411
14412
14413
8934764e
BB
14414 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
14415$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
86933a6e
BB
14416
14417
dbe561d8 14418cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14419/* confdefs.h. */
14420_ACEOF
14421cat confdefs.h >>conftest.$ac_ext
14422cat >>conftest.$ac_ext <<_ACEOF
14423/* end confdefs.h. */
14424
14425
6ae7fef5 14426 #include <linux/mm.h>
86933a6e
BB
14427
14428int
14429main (void)
14430{
14431
03318641 14432 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14433 zsi = NR_INACTIVE;
86933a6e
BB
14434
14435 ;
14436 return 0;
14437}
14438
14439_ACEOF
14440
14441
14442 rm -Rf build && mkdir -p build
14443 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14444 if { 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
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
8934764e 14448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14449 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14452 ac_status=$?
8934764e 14453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14454 (exit $ac_status); }; }; then
14455
8934764e
BB
14456 { $as_echo "$as_me:$LINENO: result: yes" >&5
14457$as_echo "yes" >&6; }
86933a6e
BB
14458
14459cat >>confdefs.h <<\_ACEOF
6ae7fef5 14460#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
86933a6e
BB
14461_ACEOF
14462
14463
14464else
8934764e 14465 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
8934764e
BB
14468 { $as_echo "$as_me:$LINENO: result: no" >&5
14469$as_echo "no" >&6; }
86933a6e
BB
14470
14471
14472
14473fi
14474
14475 rm -Rf build
14476
14477
14478
8934764e
BB
14479 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14480$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
86933a6e
BB
14481
14482
dbe561d8 14483cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14484/* confdefs.h. */
14485_ACEOF
14486cat confdefs.h >>conftest.$ac_ext
14487cat >>conftest.$ac_ext <<_ACEOF
14488/* end confdefs.h. */
14489
14490
6ae7fef5 14491 #include <linux/mm.h>
86933a6e
BB
14492
14493int
14494main (void)
14495{
14496
03318641 14497 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14498 zsi = NR_INACTIVE_ANON;
86933a6e
BB
14499
14500 ;
14501 return 0;
14502}
14503
14504_ACEOF
14505
14506
14507 rm -Rf build && mkdir -p build
14508 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14509 if { 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
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
8934764e 14513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14514 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14517 ac_status=$?
8934764e 14518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14519 (exit $ac_status); }; }; then
14520
8934764e
BB
14521 { $as_echo "$as_me:$LINENO: result: yes" >&5
14522$as_echo "yes" >&6; }
86933a6e
BB
14523
14524cat >>confdefs.h <<\_ACEOF
6ae7fef5 14525#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
86933a6e
BB
14526_ACEOF
14527
14528
14529else
8934764e 14530 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14531sed 's/^/| /' conftest.$ac_ext >&5
14532
8934764e
BB
14533 { $as_echo "$as_me:$LINENO: result: no" >&5
14534$as_echo "no" >&6; }
86933a6e
BB
14535
14536
14537
14538fi
14539
14540 rm -Rf build
14541
14542
14543
8934764e
BB
14544 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14545$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
86933a6e
BB
14546
14547
dbe561d8 14548cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14549/* confdefs.h. */
14550_ACEOF
14551cat confdefs.h >>conftest.$ac_ext
14552cat >>conftest.$ac_ext <<_ACEOF
14553/* end confdefs.h. */
14554
14555
6ae7fef5 14556 #include <linux/mm.h>
86933a6e
BB
14557
14558int
14559main (void)
14560{
14561
03318641 14562 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14563 zsi = NR_INACTIVE_FILE;
86933a6e
BB
14564
14565 ;
14566 return 0;
14567}
14568
14569_ACEOF
14570
14571
14572 rm -Rf build && mkdir -p build
14573 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14574 if { 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
14575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576 (eval $ac_try) 2>&5
14577 ac_status=$?
8934764e 14578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14579 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14582 ac_status=$?
8934764e 14583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14584 (exit $ac_status); }; }; then
14585
8934764e
BB
14586 { $as_echo "$as_me:$LINENO: result: yes" >&5
14587$as_echo "yes" >&6; }
86933a6e
BB
14588
14589cat >>confdefs.h <<\_ACEOF
6ae7fef5 14590#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
86933a6e
BB
14591_ACEOF
14592
14593
14594else
8934764e 14595 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14596sed 's/^/| /' conftest.$ac_ext >&5
14597
8934764e
BB
14598 { $as_echo "$as_me:$LINENO: result: no" >&5
14599$as_echo "no" >&6; }
86933a6e
BB
14600
14601
14602
14603fi
14604
14605 rm -Rf build
14606
14607
14608
ec7d53e9 14609
8934764e
BB
14610 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14611$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
ec7d53e9
BB
14612
14613
dbe561d8 14614cat confdefs.h - <<_ACEOF >conftest.c
ec7d53e9
BB
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h. */
14620
14621
6ae7fef5 14622 #include <linux/mm.h>
ec7d53e9
BB
14623
14624int
14625main (void)
14626{
14627
03318641 14628 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5 14629 zsi = NR_ACTIVE;
ec7d53e9
BB
14630
14631 ;
14632 return 0;
14633}
14634
14635_ACEOF
14636
14637
14638 rm -Rf build && mkdir -p build
14639 echo "obj-m := conftest.o" >build/Makefile
14640 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642 (eval $ac_try) 2>&5
14643 ac_status=$?
8934764e 14644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14645 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
8934764e 14649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14650 (exit $ac_status); }; }; then
14651
8934764e
BB
14652 { $as_echo "$as_me:$LINENO: result: yes" >&5
14653$as_echo "yes" >&6; }
ec7d53e9
BB
14654
14655cat >>confdefs.h <<\_ACEOF
6ae7fef5 14656#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
ec7d53e9
BB
14657_ACEOF
14658
14659
14660else
8934764e 14661 $as_echo "$as_me: failed program was:" >&5
ec7d53e9
BB
14662sed 's/^/| /' conftest.$ac_ext >&5
14663
8934764e
BB
14664 { $as_echo "$as_me:$LINENO: result: no" >&5
14665$as_echo "no" >&6; }
ec7d53e9
BB
14666
14667
14668
14669fi
14670
14671 rm -Rf build
14672
14673
14674
8934764e
BB
14675 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14676$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
ec7d53e9 14677
ec7d53e9 14678
dbe561d8 14679cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14680/* confdefs.h. */
14681_ACEOF
14682cat confdefs.h >>conftest.$ac_ext
14683cat >>conftest.$ac_ext <<_ACEOF
14684/* end confdefs.h. */
14685
14686
14687 #include <linux/mm.h>
14688
14689int
14690main (void)
14691{
14692
03318641 14693 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5
BB
14694 zsi = NR_ACTIVE_ANON;
14695
14696 ;
14697 return 0;
14698}
ec7d53e9 14699
ec7d53e9
BB
14700_ACEOF
14701
6ae7fef5
BB
14702
14703 rm -Rf build && mkdir -p build
14704 echo "obj-m := conftest.o" >build/Makefile
14705 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14708 ac_status=$?
8934764e 14709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14710 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
8934764e 14714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14715 (exit $ac_status); }; }; then
14716
8934764e
BB
14717 { $as_echo "$as_me:$LINENO: result: yes" >&5
14718$as_echo "yes" >&6; }
ec7d53e9
BB
14719
14720cat >>confdefs.h <<\_ACEOF
6ae7fef5 14721#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
ec7d53e9
BB
14722_ACEOF
14723
ec7d53e9 14724
6ae7fef5 14725else
8934764e 14726 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 14727sed 's/^/| /' conftest.$ac_ext >&5
ec7d53e9 14728
8934764e
BB
14729 { $as_echo "$as_me:$LINENO: result: no" >&5
14730$as_echo "no" >&6; }
bf9f3bac 14731
bf9f3bac 14732
bf9f3bac 14733
6ae7fef5 14734fi
bf9f3bac 14735
6ae7fef5 14736 rm -Rf build
bf9f3bac 14737
bf9f3bac 14738
bf9f3bac 14739
8934764e
BB
14740 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14741$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 14742
bf9f3bac 14743
dbe561d8 14744cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14745/* confdefs.h. */
14746_ACEOF
14747cat confdefs.h >>conftest.$ac_ext
14748cat >>conftest.$ac_ext <<_ACEOF
14749/* end confdefs.h. */
bf9f3bac 14750
bf9f3bac 14751
6ae7fef5 14752 #include <linux/mm.h>
bf9f3bac 14753
6ae7fef5
BB
14754int
14755main (void)
14756{
14757
03318641 14758 enum zone_stat_item zsi __attribute__ ((unused));
6ae7fef5
BB
14759 zsi = NR_ACTIVE_FILE;
14760
14761 ;
14762 return 0;
14763}
14764
14765_ACEOF
14766
14767
14768 rm -Rf build && mkdir -p build
14769 echo "obj-m := conftest.o" >build/Makefile
14770 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
8934764e 14774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14775 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14778 ac_status=$?
8934764e 14779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14780 (exit $ac_status); }; }; then
14781
8934764e
BB
14782 { $as_echo "$as_me:$LINENO: result: yes" >&5
14783$as_echo "yes" >&6; }
6ae7fef5
BB
14784
14785cat >>confdefs.h <<\_ACEOF
14786#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14787_ACEOF
14788
14789
14790else
8934764e 14791 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14792sed 's/^/| /' conftest.$ac_ext >&5
14793
8934764e
BB
14794 { $as_echo "$as_me:$LINENO: result: no" >&5
14795$as_echo "no" >&6; }
6ae7fef5
BB
14796
14797
14798
14799fi
14800
14801 rm -Rf build
14802
14803
14804
14805
8934764e
BB
14806 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14807$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
6ae7fef5
BB
14808
14809
dbe561d8 14810cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14811/* confdefs.h. */
14812_ACEOF
14813cat confdefs.h >>conftest.$ac_ext
14814cat >>conftest.$ac_ext <<_ACEOF
14815/* end confdefs.h. */
14816
14817
14818
14819int
14820main (void)
14821{
14822
14823 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14824 #error "global_page_state needs NR_FREE_PAGES"
14825 #endif
14826
14827 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14828 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14829 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14830 #error "global_page_state needs NR_ACTIVE*"
14831 #endif
14832
14833 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14834 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14835 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14836 #error "global_page_state needs NR_INACTIVE*"
14837 #endif
14838
14839 ;
14840 return 0;
14841}
14842
14843_ACEOF
14844
14845
14846 rm -Rf build && mkdir -p build
14847 echo "obj-m := conftest.o" >build/Makefile
14848 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850 (eval $ac_try) 2>&5
14851 ac_status=$?
8934764e 14852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
8934764e 14857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14858 (exit $ac_status); }; }; then
14859
8934764e
BB
14860 { $as_echo "$as_me:$LINENO: result: no" >&5
14861$as_echo "no" >&6; }
6ae7fef5
BB
14862
14863else
8934764e 14864 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14865sed 's/^/| /' conftest.$ac_ext >&5
14866
8934764e
BB
14867 { $as_echo "$as_me:$LINENO: result: yes" >&5
14868$as_echo "yes" >&6; }
6ae7fef5
BB
14869
14870cat >>confdefs.h <<\_ACEOF
14871#define NEED_GET_ZONE_COUNTS 1
14872_ACEOF
14873
14874
8934764e
BB
14875 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14876$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
6ae7fef5
BB
14877 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14878 $LINUX_OBJ/Module*.symvers 2>/dev/null
14879 rc=$?
14880 if test $rc -ne 0; then
14881 export=0
14882 for file in ; do
14883 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14884 "$LINUX_OBJ/$file" 2>/dev/null
14885 rc=$?
14886 if test $rc -eq 0; then
14887 export=1
14888 break;
14889 fi
14890 done
14891 if test $export -eq 0; then
8934764e
BB
14892 { $as_echo "$as_me:$LINENO: result: no" >&5
14893$as_echo "no" >&6; }
6ae7fef5
BB
14894
14895 else
8934764e
BB
14896 { $as_echo "$as_me:$LINENO: result: yes" >&5
14897$as_echo "yes" >&6; }
6ae7fef5
BB
14898
14899cat >>confdefs.h <<\_ACEOF
14900#define HAVE_GET_ZONE_COUNTS 1
14901_ACEOF
14902
14903 fi
14904 else
8934764e
BB
14905 { $as_echo "$as_me:$LINENO: result: yes" >&5
14906$as_echo "yes" >&6; }
6ae7fef5
BB
14907
14908cat >>confdefs.h <<\_ACEOF
14909#define HAVE_GET_ZONE_COUNTS 1
14910_ACEOF
14911
14912 fi
14913
14914
14915
14916
51a727e9
BB
14917fi
14918
14919 rm -Rf build
14920
14921
14922
14923
7119bf70
BB
14924 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14925$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14926 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14927 $LINUX_OBJ/Module*.symvers 2>/dev/null
14928 rc=$?
14929 if test $rc -ne 0; then
14930 export=0
14931 for file in ; do
14932 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14933 "$LINUX_OBJ/$file" 2>/dev/null
14934 rc=$?
14935 if test $rc -eq 0; then
14936 export=1
14937 break;
14938 fi
14939 done
14940 if test $export -eq 0; then
14941 { $as_echo "$as_me:$LINENO: result: no" >&5
14942$as_echo "no" >&6; }
14943
14944 else
14945 { $as_echo "$as_me:$LINENO: result: yes" >&5
14946$as_echo "yes" >&6; }
14947
14948cat >>confdefs.h <<\_ACEOF
14949#define HAVE_USER_PATH_DIR 1
14950_ACEOF
14951
14952 fi
14953 else
14954 { $as_echo "$as_me:$LINENO: result: yes" >&5
14955$as_echo "yes" >&6; }
14956
14957cat >>confdefs.h <<\_ACEOF
14958#define HAVE_USER_PATH_DIR 1
14959_ACEOF
14960
14961 fi
14962
14963
14964
8934764e
BB
14965 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14966$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
51a727e9
BB
14967 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14968 $LINUX_OBJ/Module*.symvers 2>/dev/null
14969 rc=$?
14970 if test $rc -ne 0; then
14971 export=0
14972 for file in ; do
14973 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14974 "$LINUX_OBJ/$file" 2>/dev/null
14975 rc=$?
14976 if test $rc -eq 0; then
14977 export=1
14978 break;
14979 fi
14980 done
14981 if test $export -eq 0; then
8934764e
BB
14982 { $as_echo "$as_me:$LINENO: result: no" >&5
14983$as_echo "no" >&6; }
51a727e9
BB
14984
14985 else
8934764e
BB
14986 { $as_echo "$as_me:$LINENO: result: yes" >&5
14987$as_echo "yes" >&6; }
51a727e9
BB
14988
14989cat >>confdefs.h <<\_ACEOF
14990#define HAVE_SET_FS_PWD 1
14991_ACEOF
14992
14993 fi
14994 else
8934764e
BB
14995 { $as_echo "$as_me:$LINENO: result: yes" >&5
14996$as_echo "yes" >&6; }
51a727e9
BB
14997
14998cat >>confdefs.h <<\_ACEOF
14999#define HAVE_SET_FS_PWD 1
15000_ACEOF
15001
15002 fi
15003
15004
8934764e
BB
15005 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
15006$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
51a727e9
BB
15007
15008
dbe561d8 15009cat confdefs.h - <<_ACEOF >conftest.c
51a727e9
BB
15010/* confdefs.h. */
15011_ACEOF
15012cat confdefs.h >>conftest.$ac_ext
15013cat >>conftest.$ac_ext <<_ACEOF
15014/* end confdefs.h. */
15015
15016
15017 #include <linux/sched.h>
baf2979e 15018 #include <linux/fs_struct.h>
51a727e9
BB
15019
15020int
15021main (void)
15022{
15023
15024 set_fs_pwd(NULL, NULL);
15025
15026 ;
15027 return 0;
15028}
15029
15030_ACEOF
15031
15032
15033 rm -Rf build && mkdir -p build
15034 echo "obj-m := conftest.o" >build/Makefile
15035 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15038 ac_status=$?
8934764e 15039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
15040 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15043 ac_status=$?
8934764e 15044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
15045 (exit $ac_status); }; }; then
15046
8934764e
BB
15047 { $as_echo "$as_me:$LINENO: result: yes" >&5
15048$as_echo "yes" >&6; }
51a727e9
BB
15049
15050cat >>confdefs.h <<\_ACEOF
15051#define HAVE_2ARGS_SET_FS_PWD 1
15052_ACEOF
15053
15054
15055else
8934764e 15056 $as_echo "$as_me: failed program was:" >&5
51a727e9
BB
15057sed 's/^/| /' conftest.$ac_ext >&5
15058
8934764e
BB
15059 { $as_echo "$as_me:$LINENO: result: no" >&5
15060$as_echo "no" >&6; }
51a727e9
BB
15061
15062
15063
6ae7fef5
BB
15064fi
15065
15066 rm -Rf build
15067
15068
15069
8934764e
BB
15070 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
15071$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
15072
15073
dbe561d8 15074cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080
15081
15082 #include <linux/fs.h>
15083
15084int
15085main (void)
15086{
15087
15088 vfs_unlink(NULL, NULL);
15089
15090 ;
15091 return 0;
15092}
15093
15094_ACEOF
15095
15096
15097 rm -Rf build && mkdir -p build
15098 echo "obj-m := conftest.o" >build/Makefile
15099 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
8934764e 15103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
8934764e 15108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15109 (exit $ac_status); }; }; then
15110
8934764e
BB
15111 { $as_echo "$as_me:$LINENO: result: yes" >&5
15112$as_echo "yes" >&6; }
6ae7fef5
BB
15113
15114cat >>confdefs.h <<\_ACEOF
15115#define HAVE_2ARGS_VFS_UNLINK 1
15116_ACEOF
15117
15118
15119else
8934764e 15120 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15121sed 's/^/| /' conftest.$ac_ext >&5
15122
8934764e
BB
15123 { $as_echo "$as_me:$LINENO: result: no" >&5
15124$as_echo "no" >&6; }
6ae7fef5
BB
15125
15126
15127
15128fi
15129
15130 rm -Rf build
15131
15132
15133
8934764e
BB
15134 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
15135$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
15136
15137
dbe561d8 15138cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
15144
15145
15146 #include <linux/fs.h>
15147
15148int
15149main (void)
15150{
15151
15152 vfs_rename(NULL, NULL, NULL, NULL);
15153
15154 ;
15155 return 0;
15156}
15157
15158_ACEOF
15159
15160
15161 rm -Rf build && mkdir -p build
15162 echo "obj-m := conftest.o" >build/Makefile
15163 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
8934764e 15167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15168 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
8934764e 15172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15173 (exit $ac_status); }; }; then
15174
8934764e
BB
15175 { $as_echo "$as_me:$LINENO: result: yes" >&5
15176$as_echo "yes" >&6; }
6ae7fef5
BB
15177
15178cat >>confdefs.h <<\_ACEOF
15179#define HAVE_4ARGS_VFS_RENAME 1
15180_ACEOF
15181
15182
15183else
8934764e 15184 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15185sed 's/^/| /' conftest.$ac_ext >&5
15186
8934764e
BB
15187 { $as_echo "$as_me:$LINENO: result: no" >&5
15188$as_echo "no" >&6; }
6ae7fef5
BB
15189
15190
15191
15192fi
15193
15194 rm -Rf build
15195
15196
15197
15198
0d0b5237
BB
15199 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
15200$as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
15201 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
15202 $LINUX_OBJ/Module*.symvers 2>/dev/null
15203 rc=$?
15204 if test $rc -ne 0; then
15205 export=0
15206 for file in fs/sync.c; do
15207 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
15208 "$LINUX_OBJ/$file" 2>/dev/null
15209 rc=$?
15210 if test $rc -eq 0; then
15211 export=1
15212 break;
15213 fi
15214 done
15215 if test $export -eq 0; then
15216 { $as_echo "$as_me:$LINENO: result: no" >&5
15217$as_echo "no" >&6; }
15218
15219 else
15220 { $as_echo "$as_me:$LINENO: result: yes" >&5
15221$as_echo "yes" >&6; }
15222
15223cat >>confdefs.h <<\_ACEOF
15224#define HAVE_VFS_FSYNC 1
15225_ACEOF
15226
15227 fi
15228 else
15229 { $as_echo "$as_me:$LINENO: result: yes" >&5
15230$as_echo "yes" >&6; }
15231
15232cat >>confdefs.h <<\_ACEOF
15233#define HAVE_VFS_FSYNC 1
15234_ACEOF
15235
15236 fi
15237
15238
15239
15240 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
15241$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15242
15243
15244cat confdefs.h - <<_ACEOF >conftest.c
15245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h. */
15250
15251
15252 #include <linux/fs.h>
15253
15254int
15255main (void)
15256{
15257
15258 vfs_fsync(NULL, 0);
15259
15260 ;
15261 return 0;
15262}
15263
15264_ACEOF
15265
15266
15267 rm -Rf build && mkdir -p build
15268 echo "obj-m := conftest.o" >build/Makefile
15269 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15277 ac_status=$?
15278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280
15281 { $as_echo "$as_me:$LINENO: result: yes" >&5
15282$as_echo "yes" >&6; }
15283
15284cat >>confdefs.h <<\_ACEOF
15285#define HAVE_2ARGS_VFS_FSYNC 1
15286_ACEOF
15287
15288
15289else
15290 $as_echo "$as_me: failed program was:" >&5
15291sed 's/^/| /' conftest.$ac_ext >&5
15292
15293 { $as_echo "$as_me:$LINENO: result: no" >&5
15294$as_echo "no" >&6; }
15295
15296
15297
15298fi
15299
15300 rm -Rf build
15301
15302
15303
15304
9b2048c2
BB
15305 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
15306$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
97fd6a07
BB
15307 tmp_flags="$EXTRA_KCFLAGS"
15308 EXTRA_KCFLAGS="-Werror"
9b2048c2
BB
15309
15310
15311cat confdefs.h - <<_ACEOF >conftest.c
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/sched.h>
15320 #include <linux/fs_struct.h>
15321
15322int
15323main (void)
15324{
15325
15326 struct fs_struct fs;
15327 spin_lock_init(&fs.lock);
15328
15329 ;
15330 return 0;
15331}
15332
15333_ACEOF
15334
15335
15336 rm -Rf build && mkdir -p build
15337 echo "obj-m := conftest.o" >build/Makefile
15338 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345 (eval $ac_try) 2>&5
15346 ac_status=$?
15347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); }; }; then
15349
15350 { $as_echo "$as_me:$LINENO: result: yes" >&5
15351$as_echo "yes" >&6; }
15352
15353cat >>confdefs.h <<\_ACEOF
15354#define HAVE_FS_STRUCT_SPINLOCK 1
15355_ACEOF
15356
15357
15358else
15359 $as_echo "$as_me: failed program was:" >&5
15360sed 's/^/| /' conftest.$ac_ext >&5
15361
15362 { $as_echo "$as_me:$LINENO: result: no" >&5
15363$as_echo "no" >&6; }
15364
15365
15366
15367fi
15368
15369 rm -Rf build
15370
15371
97fd6a07 15372 EXTRA_KCFLAGS="$tmp_flags"
9b2048c2
BB
15373
15374
8934764e
BB
15375 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
15376$as_echo_n "checking whether struct cred exists... " >&6; }
6ae7fef5
BB
15377
15378
dbe561d8 15379cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
15380/* confdefs.h. */
15381_ACEOF
15382cat confdefs.h >>conftest.$ac_ext
15383cat >>conftest.$ac_ext <<_ACEOF
15384/* end confdefs.h. */
15385
15386
15387 #include <linux/cred.h>
15388
15389int
15390main (void)
15391{
15392
03318641 15393 struct cred *cr __attribute__ ((unused));
6ae7fef5
BB
15394 cr = NULL;
15395
15396 ;
15397 return 0;
15398}
15399
15400_ACEOF
15401
15402
15403 rm -Rf build && mkdir -p build
15404 echo "obj-m := conftest.o" >build/Makefile
15405 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15408 ac_status=$?
8934764e 15409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15410 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15412 (eval $ac_try) 2>&5
15413 ac_status=$?
8934764e 15414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
15415 (exit $ac_status); }; }; then
15416
8934764e
BB
15417 { $as_echo "$as_me:$LINENO: result: yes" >&5
15418$as_echo "yes" >&6; }
6ae7fef5
BB
15419
15420cat >>confdefs.h <<\_ACEOF
15421#define HAVE_CRED_STRUCT 1
15422_ACEOF
15423
15424
15425else
8934764e 15426 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
15427sed 's/^/| /' conftest.$ac_ext >&5
15428
8934764e
BB
15429 { $as_echo "$as_me:$LINENO: result: no" >&5
15430$as_echo "no" >&6; }
6ae7fef5
BB
15431
15432
15433
15434fi
15435
15436 rm -Rf build
15437
15438
15439
15440
8934764e
BB
15441 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
15442$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
6ae7fef5
BB
15443 grep -q -E '[[:space:]]groups_search[[:space:]]' \
15444 $LINUX_OBJ/Module*.symvers 2>/dev/null
15445 rc=$?
15446 if test $rc -ne 0; then
15447 export=0
15448 for file in ; do
15449 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
15450 "$LINUX_OBJ/$file" 2>/dev/null
15451 rc=$?
15452 if test $rc -eq 0; then
15453 export=1
15454 break;
15455 fi
15456 done
15457 if test $export -eq 0; then
8934764e
BB
15458 { $as_echo "$as_me:$LINENO: result: no" >&5
15459$as_echo "no" >&6; }
6ae7fef5
BB
15460
15461 else
8934764e
BB
15462 { $as_echo "$as_me:$LINENO: result: yes" >&5
15463$as_echo "yes" >&6; }
6ae7fef5
BB
15464
15465cat >>confdefs.h <<\_ACEOF
15466#define HAVE_GROUPS_SEARCH 1
15467_ACEOF
15468
15469 fi
15470 else
8934764e
BB
15471 { $as_echo "$as_me:$LINENO: result: yes" >&5
15472$as_echo "yes" >&6; }
6ae7fef5
BB
15473
15474cat >>confdefs.h <<\_ACEOF
15475#define HAVE_GROUPS_SEARCH 1
15476_ACEOF
15477
15478 fi
15479
15480
e811949a 15481
8934764e
BB
15482 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
15483$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
e811949a
BB
15484 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
15485 $LINUX_OBJ/Module*.symvers 2>/dev/null
15486 rc=$?
15487 if test $rc -ne 0; then
15488 export=0
15489 for file in ; do
15490 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
15491 "$LINUX_OBJ/$file" 2>/dev/null
15492 rc=$?
15493 if test $rc -eq 0; then
15494 export=1
15495 break;
15496 fi
15497 done
15498 if test $export -eq 0; then
8934764e
BB
15499 { $as_echo "$as_me:$LINENO: result: no" >&5
15500$as_echo "no" >&6; }
e811949a
BB
15501
15502 else
8934764e
BB
15503 { $as_echo "$as_me:$LINENO: result: yes" >&5
15504$as_echo "yes" >&6; }
e811949a
BB
15505
15506cat >>confdefs.h <<\_ACEOF
15507#define HAVE_PUT_TASK_STRUCT 1
15508_ACEOF
15509
15510 fi
15511 else
8934764e
BB
15512 { $as_echo "$as_me:$LINENO: result: yes" >&5
15513$as_echo "yes" >&6; }
e811949a
BB
15514
15515cat >>confdefs.h <<\_ACEOF
15516#define HAVE_PUT_TASK_STRUCT 1
15517_ACEOF
15518
15519 fi
15520
15521
3977f837 15522
8934764e
BB
15523 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
15524$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
3977f837
BB
15525
15526
dbe561d8 15527cat confdefs.h - <<_ACEOF >conftest.c
3977f837
BB
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533
15534
15535 #include <linux/sysctl.h>
15536
15537int
15538main (void)
15539{
15540
15541 proc_dostring(NULL, 0, NULL, NULL, NULL);
15542
15543 ;
15544 return 0;
15545}
15546
15547_ACEOF
15548
15549
15550 rm -Rf build && mkdir -p build
15551 echo "obj-m := conftest.o" >build/Makefile
15552 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15555 ac_status=$?
8934764e 15556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
15557 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
8934764e 15561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
15562 (exit $ac_status); }; }; then
15563
8934764e
BB
15564 { $as_echo "$as_me:$LINENO: result: yes" >&5
15565$as_echo "yes" >&6; }
3977f837
BB
15566
15567cat >>confdefs.h <<\_ACEOF
15568#define HAVE_5ARGS_PROC_HANDLER 1
15569_ACEOF
15570
15571
15572else
8934764e 15573 $as_echo "$as_me: failed program was:" >&5
3977f837
BB
15574sed 's/^/| /' conftest.$ac_ext >&5
15575
8934764e
BB
15576 { $as_echo "$as_me:$LINENO: result: no" >&5
15577$as_echo "no" >&6; }
3977f837
BB
15578
15579
15580
15581fi
15582
15583 rm -Rf build
15584
15585
15586
b868e22f
BB
15587
15588 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
15589$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
15590 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
15591 $LINUX_OBJ/Module*.symvers 2>/dev/null
15592 rc=$?
15593 if test $rc -ne 0; then
15594 export=0
15595 for file in ; do
15596 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
15597 "$LINUX_OBJ/$file" 2>/dev/null
15598 rc=$?
15599 if test $rc -eq 0; then
15600 export=1
15601 break;
15602 fi
15603 done
15604 if test $export -eq 0; then
15605 { $as_echo "$as_me:$LINENO: result: no" >&5
15606$as_echo "no" >&6; }
15607
15608 else
15609 { $as_echo "$as_me:$LINENO: result: yes" >&5
15610$as_echo "yes" >&6; }
15611
15612cat >>confdefs.h <<\_ACEOF
15613#define HAVE_KVASPRINTF 1
15614_ACEOF
15615
15616 fi
15617 else
15618 { $as_echo "$as_me:$LINENO: result: yes" >&5
15619$as_echo "yes" >&6; }
15620
15621cat >>confdefs.h <<\_ACEOF
15622#define HAVE_KVASPRINTF 1
15623_ACEOF
15624
15625 fi
15626
15627
f0ff89fc 15628
46aa7b39
NB
15629 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
15630$as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
15631 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
15632 $LINUX_OBJ/Module*.symvers 2>/dev/null
15633 rc=$?
15634 if test $rc -ne 0; then
15635 export=0
15636 for file in lib/rwsem-spinlock.c; do
15637 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
15638 "$LINUX_OBJ/$file" 2>/dev/null
15639 rc=$?
15640 if test $rc -eq 0; then
15641 export=1
15642 break;
15643 fi
15644 done
15645 if test $export -eq 0; then
15646 { $as_echo "$as_me:$LINENO: result: no" >&5
15647$as_echo "no" >&6; }
15648
15649 else
15650 { $as_echo "$as_me:$LINENO: result: yes" >&5
15651$as_echo "yes" >&6; }
15652
15653cat >>confdefs.h <<\_ACEOF
15654#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15655_ACEOF
15656
15657 fi
15658 else
15659 { $as_echo "$as_me:$LINENO: result: yes" >&5
15660$as_echo "yes" >&6; }
15661
15662cat >>confdefs.h <<\_ACEOF
15663#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
15664_ACEOF
15665
15666 fi
15667
15668
914b0631
BB
15669
15670 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
15671$as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
15672 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
15673 $LINUX_OBJ/Module*.symvers 2>/dev/null
15674 rc=$?
15675 if test $rc -ne 0; then
15676 export=0
15677 for file in ; do
15678 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
15679 "$LINUX_OBJ/$file" 2>/dev/null
15680 rc=$?
15681 if test $rc -eq 0; then
15682 export=1
15683 break;
15684 fi
15685 done
15686 if test $export -eq 0; then
15687 { $as_echo "$as_me:$LINENO: result: no" >&5
15688$as_echo "no" >&6; }
15689
15690 else
15691 { $as_echo "$as_me:$LINENO: result: yes" >&5
15692$as_echo "yes" >&6; }
15693
15694cat >>confdefs.h <<\_ACEOF
15695#define HAVE_INVALIDATE_INODES 1
15696_ACEOF
15697
15698 fi
15699 else
15700 { $as_echo "$as_me:$LINENO: result: yes" >&5
15701$as_echo "yes" >&6; }
15702
15703cat >>confdefs.h <<\_ACEOF
15704#define HAVE_INVALIDATE_INODES 1
15705_ACEOF
15706
15707 fi
15708
5f6c14b1
BB
15709 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
15710$as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
15711 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
15712 $LINUX_OBJ/Module*.symvers 2>/dev/null
15713 rc=$?
15714 if test $rc -ne 0; then
15715 export=0
15716 for file in ; do
15717 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
15718 "$LINUX_OBJ/$file" 2>/dev/null
15719 rc=$?
15720 if test $rc -eq 0; then
15721 export=1
15722 break;
15723 fi
15724 done
15725 if test $export -eq 0; then
15726 { $as_echo "$as_me:$LINENO: result: no" >&5
15727$as_echo "no" >&6; }
15728
15729 else
15730 { $as_echo "$as_me:$LINENO: result: yes" >&5
15731$as_echo "yes" >&6; }
15732
15733cat >>confdefs.h <<\_ACEOF
15734#define HAVE_INVALIDATE_INODES_CHECK 1
15735_ACEOF
15736
15737 fi
15738 else
15739 { $as_echo "$as_me:$LINENO: result: yes" >&5
15740$as_echo "yes" >&6; }
15741
15742cat >>confdefs.h <<\_ACEOF
15743#define HAVE_INVALIDATE_INODES_CHECK 1
15744_ACEOF
15745
15746 fi
15747
914b0631 15748
9b0f9079
BB
15749 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
15750$as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
15751
15752
15753cat confdefs.h - <<_ACEOF >conftest.c
15754/* confdefs.h. */
15755_ACEOF
15756cat confdefs.h >>conftest.$ac_ext
15757cat >>conftest.$ac_ext <<_ACEOF
15758/* end confdefs.h. */
15759
15760
15761 #include <linux/fs.h>
15762
15763int
15764main (void)
15765{
15766
15767 return __invalidate_device(NULL, 0);
15768
15769 ;
15770 return 0;
15771}
15772
15773_ACEOF
15774
15775
15776 rm -Rf build && mkdir -p build
15777 echo "obj-m := conftest.o" >build/Makefile
15778 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; }; then
15789
15790 { $as_echo "$as_me:$LINENO: result: yes" >&5
15791$as_echo "yes" >&6; }
15792
15793cat >>confdefs.h <<\_ACEOF
15794#define HAVE_2ARGS_INVALIDATE_INODES 1
15795_ACEOF
15796
15797
15798else
15799 $as_echo "$as_me: failed program was:" >&5
15800sed 's/^/| /' conftest.$ac_ext >&5
15801
15802 { $as_echo "$as_me:$LINENO: result: no" >&5
15803$as_echo "no" >&6; }
15804
15805
15806
15807fi
15808
15809 rm -Rf build
15810
15811
15812
e76f4bf1
BB
15813
15814 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
15815$as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
15816 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
15817 $LINUX_OBJ/Module*.symvers 2>/dev/null
15818 rc=$?
15819 if test $rc -ne 0; then
15820 export=0
15821 for file in fs/dcache.c; do
15822 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
15823 "$LINUX_OBJ/$file" 2>/dev/null
15824 rc=$?
15825 if test $rc -eq 0; then
15826 export=1
15827 break;
15828 fi
15829 done
15830 if test $export -eq 0; then
15831 { $as_echo "$as_me:$LINENO: result: no" >&5
15832$as_echo "no" >&6; }
15833
15834 else
15835 { $as_echo "$as_me:$LINENO: result: yes" >&5
15836$as_echo "yes" >&6; }
15837
15838cat >>confdefs.h <<\_ACEOF
15839#define HAVE_SHRINK_DCACHE_MEMORY 1
15840_ACEOF
15841
15842 fi
15843 else
15844 { $as_echo "$as_me:$LINENO: result: yes" >&5
15845$as_echo "yes" >&6; }
15846
15847cat >>confdefs.h <<\_ACEOF
15848#define HAVE_SHRINK_DCACHE_MEMORY 1
15849_ACEOF
15850
15851 fi
15852
15853
15854
15855 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
15856$as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
15857 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
15858 $LINUX_OBJ/Module*.symvers 2>/dev/null
15859 rc=$?
15860 if test $rc -ne 0; then
15861 export=0
15862 for file in fs/inode.c; do
15863 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
15864 "$LINUX_OBJ/$file" 2>/dev/null
15865 rc=$?
15866 if test $rc -eq 0; then
15867 export=1
15868 break;
15869 fi
15870 done
15871 if test $export -eq 0; then
15872 { $as_echo "$as_me:$LINENO: result: no" >&5
15873$as_echo "no" >&6; }
15874
15875 else
15876 { $as_echo "$as_me:$LINENO: result: yes" >&5
15877$as_echo "yes" >&6; }
15878
15879cat >>confdefs.h <<\_ACEOF
15880#define HAVE_SHRINK_ICACHE_MEMORY 1
15881_ACEOF
15882
15883 fi
15884 else
15885 { $as_echo "$as_me:$LINENO: result: yes" >&5
15886$as_echo "yes" >&6; }
15887
15888cat >>confdefs.h <<\_ACEOF
15889#define HAVE_SHRINK_ICACHE_MEMORY 1
15890_ACEOF
15891
15892 fi
15893
15894
b1cbc461 15895
12ff95ff
BB
15896
15897 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
15898$as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
15899 header=0
15900 for file in include/linux/namei.h; do
15901 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
15902 rc=$?
15903 if test $rc -eq 0; then
15904 header=1
15905 break;
15906 fi
15907 done
15908 if test $header -eq 0; then
15909 { $as_echo "$as_me:$LINENO: result: no" >&5
15910$as_echo "no" >&6; }
15911
15912 else
15913 { $as_echo "$as_me:$LINENO: result: yes" >&5
15914$as_echo "yes" >&6; }
15915
15916cat >>confdefs.h <<\_ACEOF
15917#define HAVE_KERN_PATH_PARENT_HEADER 1
15918_ACEOF
15919
15920 fi
15921
15922
15923
b1cbc461
BB
15924 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
15925$as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
15926 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
15927 $LINUX_OBJ/Module*.symvers 2>/dev/null
15928 rc=$?
15929 if test $rc -ne 0; then
15930 export=0
15931 for file in fs/namei.c; do
15932 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
15933 "$LINUX_OBJ/$file" 2>/dev/null
15934 rc=$?
15935 if test $rc -eq 0; then
15936 export=1
15937 break;
15938 fi
15939 done
15940 if test $export -eq 0; then
15941 { $as_echo "$as_me:$LINENO: result: no" >&5
15942$as_echo "no" >&6; }
15943
15944 else
15945 { $as_echo "$as_me:$LINENO: result: yes" >&5
15946$as_echo "yes" >&6; }
15947
15948cat >>confdefs.h <<\_ACEOF
12ff95ff 15949#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
15950_ACEOF
15951
15952 fi
15953 else
15954 { $as_echo "$as_me:$LINENO: result: yes" >&5
15955$as_echo "yes" >&6; }
15956
15957cat >>confdefs.h <<\_ACEOF
12ff95ff 15958#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
15959_ACEOF
15960
15961 fi
15962
15963
3dfc591a
BB
15964 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
15965$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
15966
15967
15968cat confdefs.h - <<_ACEOF >conftest.c
15969/* confdefs.h. */
15970_ACEOF
15971cat confdefs.h >>conftest.$ac_ext
15972cat >>conftest.$ac_ext <<_ACEOF
15973/* end confdefs.h. */
15974
15975
15976 #include <linux/zlib.h>
15977
15978int
15979main (void)
15980{
15981
15982 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
15983
15984 ;
15985 return 0;
15986}
15987
15988_ACEOF
15989
15990
15991 rm -Rf build && mkdir -p build
15992 echo "obj-m := conftest.o" >build/Makefile
15993 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; }; then
16004
16005 { $as_echo "$as_me:$LINENO: result: yes" >&5
16006$as_echo "yes" >&6; }
16007
16008cat >>confdefs.h <<\_ACEOF
16009#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
16010_ACEOF
16011
16012
16013else
16014 $as_echo "$as_me: failed program was:" >&5
16015sed 's/^/| /' conftest.$ac_ext >&5
16016
16017 { $as_echo "$as_me:$LINENO: result: no" >&5
16018$as_echo "no" >&6; }
16019
16020
16021
a55bcaad
BB
16022fi
16023
16024 rm -Rf build
16025
16026
16027
16028
16029 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
16030$as_echo_n "checking whether struct shrink_control exists... " >&6; }
16031
16032
16033cat confdefs.h - <<_ACEOF >conftest.c
16034/* confdefs.h. */
16035_ACEOF
16036cat confdefs.h >>conftest.$ac_ext
16037cat >>conftest.$ac_ext <<_ACEOF
16038/* end confdefs.h. */
16039
16040
16041 #include <linux/mm.h>
16042
16043int
16044main (void)
16045{
16046
16047 struct shrink_control sc __attribute__ ((unused));
16048
16049 sc.nr_to_scan = 0;
16050 sc.gfp_mask = GFP_KERNEL;
16051
16052 ;
16053 return 0;
16054}
16055
16056_ACEOF
16057
16058
16059 rm -Rf build && mkdir -p build
16060 echo "obj-m := conftest.o" >build/Makefile
16061 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16069 ac_status=$?
16070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072
16073 { $as_echo "$as_me:$LINENO: result: yes" >&5
16074$as_echo "yes" >&6; }
16075
16076cat >>confdefs.h <<\_ACEOF
16077#define HAVE_SHRINK_CONTROL_STRUCT 1
16078_ACEOF
16079
16080
16081else
16082 $as_echo "$as_me: failed program was:" >&5
16083sed 's/^/| /' conftest.$ac_ext >&5
16084
16085 { $as_echo "$as_me:$LINENO: result: no" >&5
16086$as_echo "no" >&6; }
16087
16088
16089
3dfc591a
BB
16090fi
16091
16092 rm -Rf build
16093
16094
16095
588d9004
DH
16096
16097 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
16098$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16099 tmp_flags="$EXTRA_KCFLAGS"
16100 EXTRA_KCFLAGS="-Werror"
16101
16102
16103cat confdefs.h - <<_ACEOF >conftest.c
16104/* confdefs.h. */
16105_ACEOF
16106cat confdefs.h >>conftest.$ac_ext
16107cat >>conftest.$ac_ext <<_ACEOF
16108/* end confdefs.h. */
16109
16110
16111 #include <linux/rwsem.h>
16112
16113int
16114main (void)
16115{
16116
16117 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16118 raw_spinlock_t dummy_lock __attribute__ ((unused));
16119 dummy_semaphore.wait_lock = dummy_lock;
16120
16121 ;
16122 return 0;
16123}
16124
16125_ACEOF
16126
16127
16128 rm -Rf build && mkdir -p build
16129 echo "obj-m := conftest.o" >build/Makefile
16130 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137 (eval $ac_try) 2>&5
16138 ac_status=$?
16139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141
16142 { $as_echo "$as_me:$LINENO: result: yes" >&5
16143$as_echo "yes" >&6; }
16144
16145cat >>confdefs.h <<\_ACEOF
16146#define RWSEM_SPINLOCK_IS_RAW 1
16147_ACEOF
16148
16149
16150else
16151 $as_echo "$as_me: failed program was:" >&5
16152sed 's/^/| /' conftest.$ac_ext >&5
16153
16154 { $as_echo "$as_me:$LINENO: result: no" >&5
16155$as_echo "no" >&6; }
16156
16157
16158
16159fi
16160
16161 rm -Rf build
16162
16163
16164 EXTRA_KCFLAGS="$tmp_flags"
16165
6ae7fef5 16166 ;;
ad35b6a6 16167 user) ;;
6ae7fef5
BB
16168 all)
16169
16170
8934764e 16171# Check whether --with-linux was given.
6ae7fef5 16172if test "${with_linux+set}" = set; then
8934764e
BB
16173 withval=$with_linux; kernelsrc="$withval"
16174fi
6ae7fef5
BB
16175
16176
8934764e
BB
16177
16178# Check whether --with-linux-obj was given.
6ae7fef5 16179if test "${with_linux_obj+set}" = set; then
8934764e
BB
16180 withval=$with_linux_obj; kernelbuild="$withval"
16181fi
6ae7fef5 16182
8934764e
BB
16183
16184 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
16185$as_echo_n "checking kernel source directory... " >&6; }
6ae7fef5 16186 if test -z "$kernelsrc"; then
22ccfaa8
BB
16187 if test -e "/lib/modules/$(uname -r)/source"; then
16188 headersdir="/lib/modules/$(uname -r)/source"
16189 sourcelink=$(readlink -f "$headersdir")
16190 elif test -e "/lib/modules/$(uname -r)/build"; then
16191 headersdir="/lib/modules/$(uname -r)/build"
534c4e38
BM
16192 sourcelink=$(readlink -f "$headersdir")
16193 else
16194 sourcelink=$(ls -1d /usr/src/kernels/* \
16195 /usr/src/linux-* \
16196 2>/dev/null | grep -v obj | tail -1)
16197 fi
6ae7fef5 16198
8fd4e3af 16199 if test -n "$sourcelink" && test -e ${sourcelink}; then
6ae7fef5
BB
16200 kernelsrc=`readlink -f ${sourcelink}`
16201 else
8934764e
BB
16202 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16203$as_echo "Not found" >&6; }
16204 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
16205 *** Please make sure the kernel devel package for your distribution
16206 *** is installed then try again. If that fails you can specify the
16207 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 16208$as_echo "$as_me: error:
8fd4e3af
BB
16209 *** Please make sure the kernel devel package for your distribution
16210 *** is installed then try again. If that fails you can specify the
16211 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
6ae7fef5
BB
16212 { (exit 1); exit 1; }; }
16213 fi
16214 else
16215 if test "$kernelsrc" = "NONE"; then
16216 kernsrcver=NONE
16217 fi
16218 fi
16219
8934764e
BB
16220 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
16221$as_echo "$kernelsrc" >&6; }
16222 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
16223$as_echo_n "checking kernel build directory... " >&6; }
6ae7fef5 16224 if test -z "$kernelbuild"; then
22ccfaa8
BB
16225 if test -e "/lib/modules/$(uname -r)/build"; then
16226 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
16227 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
e2d28a37
BB
16228 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
16229 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
16230 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
16231 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
16232 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
6ae7fef5
BB
16233 else
16234 kernelbuild=${kernelsrc}
16235 fi
16236 fi
8934764e
BB
16237 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
16238$as_echo "$kernelbuild" >&6; }
6ae7fef5 16239
8934764e
BB
16240 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
16241$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
16242 utsrelease1=$kernelbuild/include/linux/version.h
16243 utsrelease2=$kernelbuild/include/linux/utsrelease.h
16244 utsrelease3=$kernelbuild/include/generated/utsrelease.h
16245 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
16246 utsrelease=linux/version.h
16247 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
16248 utsrelease=linux/utsrelease.h
16249 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
16250 utsrelease=generated/utsrelease.h
16251 fi
6ae7fef5 16252
fd921c2e
BB
16253 if test "$utsrelease"; then
16254 kernsrcver=`(echo "#include <$utsrelease>";
6ae7fef5
BB
16255 echo "kernsrcver=UTS_RELEASE") |
16256 cpp -I $kernelbuild/include |
16257 grep "^kernsrcver=" | cut -d \" -f 2`
6ae7fef5 16258
fd921c2e
BB
16259 if test -z "$kernsrcver"; then
16260 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16261$as_echo "Not found" >&6; }
16262 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
16263$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
16264 { (exit 1); exit 1; }; }
16265 fi
16266 else
8934764e
BB
16267 { $as_echo "$as_me:$LINENO: result: Not found" >&5
16268$as_echo "Not found" >&6; }
fd921c2e
BB
16269 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
16270$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
bf9f3bac 16271 { (exit 1); exit 1; }; }
16272 fi
16273
8934764e
BB
16274 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
16275$as_echo "$kernsrcver" >&6; }
bf9f3bac 16276
bf9f3bac 16277 LINUX=${kernelsrc}
16278 LINUX_OBJ=${kernelbuild}
c5f70460
BB
16279 LINUX_VERSION=${kernsrcver}
16280
bf9f3bac 16281
16282
16283
16284
16285
bb339d06 16286 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
16287 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
16288$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
16289 if test -f "$modpost"; then
16290 if grep -q Modules.symvers $modpost; then
16291 LINUX_SYMBOLS=Modules.symvers
16292 else
16293 LINUX_SYMBOLS=Module.symvers
16294 fi
912fd84d
BB
16295
16296 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
16297 { { $as_echo "$as_me:$LINENO: error:
16298 *** Please make sure the kernel devel package for your distribution
16299 *** is installed. If your building with a custom kernel make sure the
16300 *** kernel is configured, built, and the '--with-linux=PATH' configure
16301 *** option refers to the location of the kernel source." >&5
16302$as_echo "$as_me: error:
16303 *** Please make sure the kernel devel package for your distribution
16304 *** is installed. If your building with a custom kernel make sure the
16305 *** kernel is configured, built, and the '--with-linux=PATH' configure
16306 *** option refers to the location of the kernel source." >&2;}
16307 { (exit 1); exit 1; }; }
16308 fi
2e0e7e69 16309 else
bb339d06 16310 LINUX_SYMBOLS=NONE
2e0e7e69 16311 fi
8934764e
BB
16312 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
16313$as_echo "$LINUX_SYMBOLS" >&6; }
2e0e7e69
BB
16314
16315
16316
86933a6e 16317
7731d46b
BB
16318 { $as_echo "$as_me:$LINENO: checking whether Linux was built with CONFIG_PREEMPT" >&5
16319$as_echo_n "checking whether Linux was built with CONFIG_PREEMPT... " >&6; }
16320
16321
16322cat confdefs.h - <<_ACEOF >conftest.c
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328
16329
c064bdee 16330 #include <linux/module.h>
7731d46b
BB
16331
16332int
16333main (void)
16334{
16335
16336 #ifndef CONFIG_PREEMPT
16337 #error CONFIG_PREEMPT not #defined
16338 #endif
16339
16340 ;
16341 return 0;
16342}
16343
16344_ACEOF
16345
16346
16347 rm -Rf build && mkdir -p build
16348 echo "obj-m := conftest.o" >build/Makefile
16349 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360
16361 { $as_echo "$as_me:$LINENO: result: yes" >&5
16362$as_echo "yes" >&6; }
16363 { { $as_echo "$as_me:$LINENO: error:
16364 *** Kernel built with CONFIG_PREEMPT which is not supported.
16365 ** You must rebuild your kernel without this option." >&5
16366$as_echo "$as_me: error:
16367 *** Kernel built with CONFIG_PREEMPT which is not supported.
16368 ** You must rebuild your kernel without this option." >&2;}
16369 { (exit 1); exit 1; }; }
16370
16371else
16372 $as_echo "$as_me: failed program was:" >&5
16373sed 's/^/| /' conftest.$ac_ext >&5
16374
16375 { $as_echo "$as_me:$LINENO: result: no" >&5
16376$as_echo "no" >&6; }
16377
16378
16379
16380
16381fi
16382
16383 rm -Rf build
16384
16385
16386
16387
16388
86933a6e
BB
16389 if test "${LINUX_OBJ}" != "${LINUX}"; then
16390 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
16391 fi
16392
16393
a7958f7e 16394 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
86933a6e 16395
bf9f3bac 16396
16397
c950d148
BB
16398 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
16399$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 16400 # Check whether --enable-debug was given.
bf9f3bac 16401if test "${enable_debug+set}" = set; then
8934764e 16402 enableval=$enable_debug;
055ffd98
BB
16403else
16404 enable_debug=no
8934764e
BB
16405fi
16406
055ffd98
BB
16407
16408 if test "x$enable_debug" = xyes; then
c950d148 16409
c950d148
BB
16410 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
16411 DEBUG_CFLAGS="-DDEBUG -Werror"
3c208a54 16412 DEBUG_SPL="_with_debug"
c950d148 16413
055ffd98 16414else
c950d148 16415
c950d148
BB
16416 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
16417 DEBUG_CFLAGS="-DNDEBUG"
3c208a54 16418 DEBUG_SPL="_without_debug"
c950d148 16419
055ffd98
BB
16420fi
16421
16422
c950d148 16423
3c208a54 16424
8934764e
BB
16425 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
16426$as_echo "$enable_debug" >&6; }
bf9f3bac 16427
16428
4b2220f0
BB
16429 # Check whether --enable-debug-log was given.
16430if test "${enable_debug_log+set}" = set; then
16431 enableval=$enable_debug_log;
16432else
16433 enable_debug_log=yes
16434fi
16435
16436
16437 if test "x$enable_debug_log" = xyes; then
16438
3c208a54
BB
16439 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_LOG"
16440 DEBUG_LOG="_with_debug_log"
16441
4b2220f0
BB
16442cat >>confdefs.h <<\_ACEOF
16443#define DEBUG_LOG 1
16444_ACEOF
16445
3c208a54
BB
16446
16447else
16448
16449 DEBUG_LOG="_without_debug_log"
16450
4b2220f0
BB
16451fi
16452
16453
3c208a54 16454
4b2220f0
BB
16455 { $as_echo "$as_me:$LINENO: checking whether basic debug logging is enabled" >&5
16456$as_echo_n "checking whether basic debug logging is enabled... " >&6; }
16457 { $as_echo "$as_me:$LINENO: result: $enable_debug_log" >&5
16458$as_echo "$enable_debug_log" >&6; }
16459
16460
8934764e 16461 # Check whether --enable-debug-kmem was given.
bf9f3bac 16462if test "${enable_debug_kmem+set}" = set; then
8934764e 16463 enableval=$enable_debug_kmem;
055ffd98
BB
16464else
16465 enable_debug_kmem=yes
8934764e
BB
16466fi
16467
055ffd98
BB
16468
16469 if test "x$enable_debug_kmem" = xyes; then
bf9f3bac 16470
3c208a54
BB
16471 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
16472 DEBUG_KMEM="_with_debug_kmem"
16473
bf9f3bac 16474cat >>confdefs.h <<\_ACEOF
16475#define DEBUG_KMEM 1
16476_ACEOF
16477
3c208a54
BB
16478
16479else
16480
16481 DEBUG_KMEM="_without_debug_kmem"
16482
055ffd98 16483fi
bf9f3bac 16484
bf9f3bac 16485
3c208a54 16486
8934764e
BB
16487 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
16488$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
16489 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
16490$as_echo "$enable_debug_kmem" >&6; }
bf9f3bac 16491
16492
8934764e 16493 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 16494if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 16495 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
16496else
16497 enable_debug_kmem_tracking=no
8934764e
BB
16498fi
16499
055ffd98
BB
16500
16501 if test "x$enable_debug_kmem_tracking" = xyes; then
bf9f3bac 16502
3c208a54
BB
16503 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
16504 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
16505
bf9f3bac 16506cat >>confdefs.h <<\_ACEOF
055ffd98 16507#define DEBUG_KMEM_TRACKING 1
bf9f3bac 16508_ACEOF
16509
3c208a54
BB
16510
16511else
16512
16513 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
16514
055ffd98
BB
16515fi
16516
16517
3c208a54 16518
8934764e
BB
16519 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
16520$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
16521 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
16522$as_echo "$enable_debug_kmem_tracking" >&6; }
bf9f3bac 16523
5e9b5d83 16524
8934764e 16525 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 16526if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 16527 enableval=$enable_atomic_spinlocks;
5e9b5d83 16528else
d04c8a56 16529 enable_atomic_spinlocks=check
8934764e
BB
16530fi
16531
5e9b5d83 16532
bf9f3bac 16533
16534
dbe561d8 16535cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16536/* confdefs.h. */
16537_ACEOF
16538cat confdefs.h >>conftest.$ac_ext
16539cat >>conftest.$ac_ext <<_ACEOF
16540/* end confdefs.h. */
16541
16542
d04c8a56 16543 #include <asm/atomic.h>
bf9f3bac 16544
16545int
16546main (void)
16547{
16548
03318641 16549 atomic64_t *ptr __attribute__ ((unused));
bf9f3bac 16550
16551 ;
16552 return 0;
16553}
16554
16555_ACEOF
16556
c5f70460
BB
16557
16558 rm -Rf build && mkdir -p build
16559 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16560 if { 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 16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
8934764e 16564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
8934764e 16569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16570 (exit $ac_status); }; }; then
16571
d04c8a56 16572 have_atomic64_t=yes
bf9f3bac 16573
16574cat >>confdefs.h <<\_ACEOF
d04c8a56 16575#define HAVE_ATOMIC64_T 1
bf9f3bac 16576_ACEOF
16577
16578
16579else
8934764e 16580 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16581sed 's/^/| /' conftest.$ac_ext >&5
16582
d04c8a56 16583 have_atomic64_t=no
bf9f3bac 16584
c5f70460
BB
16585
16586
bf9f3bac 16587fi
c5f70460
BB
16588
16589 rm -Rf build
16590
bf9f3bac 16591
16592
d04c8a56
BB
16593 if test "x$enable_atomic_spinlocks" = xcheck; then
16594
16595 if test "x$have_atomic64_t" = xyes; then
16596
16597 enable_atomic_spinlocks=no
16598
16599else
16600
16601 enable_atomic_spinlocks=yes
16602
16603fi
16604
16605
16606fi
16607
16608
16609 if test "x$enable_atomic_spinlocks" = xyes; then
16610
16611
16612cat >>confdefs.h <<\_ACEOF
16613#define ATOMIC_SPINLOCK 1
16614_ACEOF
16615
16616
16617else
16618
16619 if test "x$have_atomic64_t" = xno; then
16620
8934764e
BB
16621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
16622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16623{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 16624See \`config.log' for more details." >&5
8934764e 16625$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 16626See \`config.log' for more details." >&2;}
8934764e 16627 { (exit 1); exit 1; }; }; }
d04c8a56
BB
16628
16629fi
16630
16631
16632fi
16633
16634
8934764e
BB
16635 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
16636$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
16637 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
16638$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 16639
8934764e
BB
16640 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
16641$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
16642 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
16643$as_echo "$have_atomic64_t" >&6; }
d04c8a56 16644
8934764e
BB
16645 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
16646$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
bf9f3bac 16647
16648
dbe561d8 16649cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16650/* confdefs.h. */
16651_ACEOF
16652cat confdefs.h >>conftest.$ac_ext
16653cat >>conftest.$ac_ext <<_ACEOF
16654/* end confdefs.h. */
16655
16656
16657 #include <asm/atomic.h>
5ec44a37 16658 #include <asm/system.h>
bf9f3bac 16659
16660int
16661main (void)
16662{
16663
d04c8a56 16664 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
bf9f3bac 16665
16666 ;
16667 return 0;
16668}
16669
16670_ACEOF
16671
c5f70460
BB
16672
16673 rm -Rf build && mkdir -p build
16674 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16675 if { 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 16676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16677 (eval $ac_try) 2>&5
16678 ac_status=$?
8934764e 16679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16680 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682 (eval $ac_try) 2>&5
16683 ac_status=$?
8934764e 16684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16685 (exit $ac_status); }; }; then
16686
8934764e
BB
16687 { $as_echo "$as_me:$LINENO: result: yes" >&5
16688$as_echo "yes" >&6; }
bf9f3bac 16689
16690cat >>confdefs.h <<\_ACEOF
d04c8a56 16691#define HAVE_ATOMIC64_CMPXCHG 1
bf9f3bac 16692_ACEOF
16693
16694
302b88e6 16695else
8934764e 16696 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
16697sed 's/^/| /' conftest.$ac_ext >&5
16698
8934764e
BB
16699 { $as_echo "$as_me:$LINENO: result: no" >&5
16700$as_echo "no" >&6; }
302b88e6
BB
16701
16702
16703
16704fi
16705
16706 rm -Rf build
16707
16708
16709
8934764e
BB
16710 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
16711$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
16712
16713
dbe561d8 16714cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
16715/* confdefs.h. */
16716_ACEOF
16717cat confdefs.h >>conftest.$ac_ext
16718cat >>conftest.$ac_ext <<_ACEOF
16719/* end confdefs.h. */
16720
16721
16722 #include <asm/atomic.h>
16723
16724int
16725main (void)
16726{
16727
d04c8a56 16728 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
16729
16730 ;
16731 return 0;
16732}
16733
16734_ACEOF
16735
16736
16737 rm -Rf build && mkdir -p build
16738 echo "obj-m := conftest.o" >build/Makefile
16739 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
8934764e 16743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16744 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
8934764e 16748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16749 (exit $ac_status); }; }; then
16750
8934764e
BB
16751 { $as_echo "$as_me:$LINENO: result: yes" >&5
16752$as_echo "yes" >&6; }
302b88e6
BB
16753
16754cat >>confdefs.h <<\_ACEOF
d04c8a56 16755#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
16756_ACEOF
16757
16758
16759else
8934764e 16760 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
16761sed 's/^/| /' conftest.$ac_ext >&5
16762
8934764e
BB
16763 { $as_echo "$as_me:$LINENO: result: no" >&5
16764$as_echo "no" >&6; }
302b88e6
BB
16765
16766
16767
16768fi
16769
16770 rm -Rf build
16771
16772
16773
8934764e
BB
16774 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
16775$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
16776
16777
dbe561d8 16778cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
16779/* confdefs.h. */
16780_ACEOF
16781cat confdefs.h >>conftest.$ac_ext
16782cat >>conftest.$ac_ext <<_ACEOF
16783/* end confdefs.h. */
16784
16785
d04c8a56 16786 #include <linux/types.h>
302b88e6
BB
16787
16788int
16789main (void)
16790{
16791
03318641 16792 uintptr_t *ptr __attribute__ ((unused));
302b88e6
BB
16793
16794 ;
16795 return 0;
16796}
16797
16798_ACEOF
16799
16800
16801 rm -Rf build && mkdir -p build
16802 echo "obj-m := conftest.o" >build/Makefile
16803 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
8934764e 16807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16808 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
8934764e 16812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
16813 (exit $ac_status); }; }; then
16814
8934764e
BB
16815 { $as_echo "$as_me:$LINENO: result: yes" >&5
16816$as_echo "yes" >&6; }
302b88e6
BB
16817
16818cat >>confdefs.h <<\_ACEOF
d04c8a56 16819#define HAVE_UINTPTR_T 1
302b88e6
BB
16820_ACEOF
16821
16822
bf9f3bac 16823else
8934764e 16824 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16825sed 's/^/| /' conftest.$ac_ext >&5
16826
8934764e
BB
16827 { $as_echo "$as_me:$LINENO: result: no" >&5
16828$as_echo "no" >&6; }
bf9f3bac 16829
c5f70460
BB
16830
16831
bf9f3bac 16832fi
c5f70460
BB
16833
16834 rm -Rf build
16835
bf9f3bac 16836
16837
8934764e
BB
16838 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
16839$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
bf9f3bac 16840
16841
dbe561d8 16842cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848
16849
16850 #include <linux/workqueue.h>
16851
16852int
16853main (void)
16854{
16855
03318641 16856 struct work_struct work __attribute__ ((unused));
bf9f3bac 16857 INIT_WORK(&work, NULL, NULL);
16858
16859 ;
16860 return 0;
16861}
16862
16863_ACEOF
16864
c5f70460
BB
16865
16866 rm -Rf build && mkdir -p build
16867 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16868 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16871 ac_status=$?
8934764e 16872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16873 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
8934764e 16877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16878 (exit $ac_status); }; }; then
16879
8934764e
BB
16880 { $as_echo "$as_me:$LINENO: result: yes" >&5
16881$as_echo "yes" >&6; }
bf9f3bac 16882
16883cat >>confdefs.h <<\_ACEOF
16884#define HAVE_3ARGS_INIT_WORK 1
16885_ACEOF
16886
16887
16888else
8934764e 16889 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16890sed 's/^/| /' conftest.$ac_ext >&5
16891
8934764e
BB
16892 { $as_echo "$as_me:$LINENO: result: no" >&5
16893$as_echo "no" >&6; }
bf9f3bac 16894
c5f70460
BB
16895
16896
bf9f3bac 16897fi
c5f70460
BB
16898
16899 rm -Rf build
16900
bf9f3bac 16901
16902
8934764e
BB
16903 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
16904$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
bf9f3bac 16905
16906
dbe561d8 16907cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16908/* confdefs.h. */
16909_ACEOF
16910cat confdefs.h >>conftest.$ac_ext
16911cat >>conftest.$ac_ext <<_ACEOF
16912/* end confdefs.h. */
16913
16914
16915 #include <linux/sysctl.h>
16916
16917int
16918main (void)
16919{
16920
03318641 16921 (void) register_sysctl_table(NULL, 0);
bf9f3bac 16922
16923 ;
16924 return 0;
16925}
16926
16927_ACEOF
16928
c5f70460
BB
16929
16930 rm -Rf build && mkdir -p build
16931 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16932 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
8934764e 16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16937 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
8934764e 16941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16942 (exit $ac_status); }; }; then
16943
8934764e
BB
16944 { $as_echo "$as_me:$LINENO: result: yes" >&5
16945$as_echo "yes" >&6; }
bf9f3bac 16946
16947cat >>confdefs.h <<\_ACEOF
16948#define HAVE_2ARGS_REGISTER_SYSCTL 1
16949_ACEOF
16950
16951
16952else
8934764e 16953 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16954sed 's/^/| /' conftest.$ac_ext >&5
16955
8934764e
BB
16956 { $as_echo "$as_me:$LINENO: result: no" >&5
16957$as_echo "no" >&6; }
bf9f3bac 16958
c5f70460
BB
16959
16960
bf9f3bac 16961fi
c5f70460
BB
16962
16963 rm -Rf build
16964
bf9f3bac 16965
16966
16967
8934764e
BB
16968 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
16969$as_echo_n "checking whether set_shrinker() available... " >&6; }
bf9f3bac 16970
16971
dbe561d8 16972cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978
16979
16980 #include <linux/mm.h>
16981
16982int
16983main (void)
16984{
16985
16986 return set_shrinker(DEFAULT_SEEKS, NULL);
16987
16988 ;
16989 return 0;
16990}
16991
16992_ACEOF
16993
c5f70460
BB
16994
16995 rm -Rf build && mkdir -p build
16996 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16997 if { 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 16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
8934764e 17001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17002 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
8934764e 17006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17007 (exit $ac_status); }; }; then
17008
8934764e
BB
17009 { $as_echo "$as_me:$LINENO: result: yes" >&5
17010$as_echo "yes" >&6; }
bf9f3bac 17011
17012cat >>confdefs.h <<\_ACEOF
17013#define HAVE_SET_SHRINKER 1
17014_ACEOF
17015
17016
17017else
8934764e 17018 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17019sed 's/^/| /' conftest.$ac_ext >&5
17020
8934764e
BB
17021 { $as_echo "$as_me:$LINENO: result: no" >&5
17022$as_echo "no" >&6; }
bf9f3bac 17023
c5f70460
BB
17024
17025
bf9f3bac 17026fi
c5f70460
BB
17027
17028 rm -Rf build
17029
bf9f3bac 17030
17031
23aa63cb
BB
17032 { $as_echo "$as_me:$LINENO: checking whether shrinker callback wants 3 args" >&5
17033$as_echo_n "checking whether shrinker callback wants 3 args... " >&6; }
17034 tmp_flags="$EXTRA_KCFLAGS"
17035 EXTRA_KCFLAGS="-Werror"
17036
17037
17038cat confdefs.h - <<_ACEOF >conftest.c
17039/* confdefs.h. */
17040_ACEOF
17041cat confdefs.h >>conftest.$ac_ext
17042cat >>conftest.$ac_ext <<_ACEOF
17043/* end confdefs.h. */
17044
17045
17046 #include <linux/mm.h>
17047
17048 int shrinker_cb(struct shrinker *, int, unsigned int);
17049
17050int
17051main (void)
17052{
17053
17054 struct shrinker cache_shrinker = {
17055 .shrink = shrinker_cb,
17056 .seeks = DEFAULT_SEEKS,
17057 };
17058 register_shrinker(&cache_shrinker);
17059
17060 ;
17061 return 0;
17062}
17063
17064_ACEOF
17065
17066
17067 rm -Rf build && mkdir -p build
17068 echo "obj-m := conftest.o" >build/Makefile
17069 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17077 ac_status=$?
17078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080
17081 { $as_echo "$as_me:$LINENO: result: yes" >&5
17082$as_echo "yes" >&6; }
17083
17084cat >>confdefs.h <<\_ACEOF
17085#define HAVE_3ARGS_SHRINKER_CALLBACK 1
17086_ACEOF
17087
17088
17089else
17090 $as_echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
17093 { $as_echo "$as_me:$LINENO: result: no" >&5
17094$as_echo "no" >&6; }
17095
17096
17097
17098fi
17099
17100 rm -Rf build
17101
17102
17103 EXTRA_KCFLAGS="$tmp_flags"
17104
8934764e
BB
17105 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
17106$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
bf9f3bac 17107
17108
dbe561d8 17109cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17110/* confdefs.h. */
17111_ACEOF
17112cat confdefs.h >>conftest.$ac_ext
17113cat >>conftest.$ac_ext <<_ACEOF
17114/* end confdefs.h. */
17115
17116
17117 #include <linux/namei.h>
17118
17119int
17120main (void)
17121{
17122
03318641 17123 struct nameidata nd __attribute__ ((unused));
bf9f3bac 17124
17125 nd.path.mnt = NULL;
17126 nd.path.dentry = NULL;
17127
17128 ;
17129 return 0;
17130}
17131
17132_ACEOF
17133
c5f70460
BB
17134
17135 rm -Rf build && mkdir -p build
17136 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17137 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
8934764e 17141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
8934764e 17146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17147 (exit $ac_status); }; }; then
17148
8934764e
BB
17149 { $as_echo "$as_me:$LINENO: result: yes" >&5
17150$as_echo "yes" >&6; }
bf9f3bac 17151
17152cat >>confdefs.h <<\_ACEOF
17153#define HAVE_PATH_IN_NAMEIDATA 1
17154_ACEOF
17155
17156
17157else
8934764e 17158 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17159sed 's/^/| /' conftest.$ac_ext >&5
17160
8934764e
BB
17161 { $as_echo "$as_me:$LINENO: result: no" >&5
17162$as_echo "no" >&6; }
bf9f3bac 17163
c5f70460
BB
17164
17165
bf9f3bac 17166fi
c5f70460
BB
17167
17168 rm -Rf build
17169
bf9f3bac 17170
17171
17172
8934764e
BB
17173 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
17174$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
2e0e7e69
BB
17175 grep -q -E '[[:space:]]task_curr[[:space:]]' \
17176 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17177 rc=$?
17178 if test $rc -ne 0; then
17179 export=0
17180 for file in kernel/sched.c; do
2e0e7e69
BB
17181 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
17182 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17183 rc=$?
17184 if test $rc -eq 0; then
17185 export=1
17186 break;
17187 fi
17188 done
17189 if test $export -eq 0; then
8934764e
BB
17190 { $as_echo "$as_me:$LINENO: result: no" >&5
17191$as_echo "no" >&6; }
bf9f3bac 17192
17193 else
8934764e
BB
17194 { $as_echo "$as_me:$LINENO: result: yes" >&5
17195$as_echo "yes" >&6; }
bf9f3bac 17196
17197cat >>confdefs.h <<\_ACEOF
17198#define HAVE_TASK_CURR 1
17199_ACEOF
17200
17201 fi
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_TASK_CURR 1
17208_ACEOF
17209
17210 fi
17211
17212
8934764e
BB
17213 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
17214$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
bf9f3bac 17215
17216
dbe561d8 17217cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17218/* confdefs.h. */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h. */
17223
17224
17225 #include <linux/sysctl.h>
17226
17227int
17228main (void)
17229{
17230
17231 #ifndef CTL_UNNUMBERED
17232 #error CTL_UNNUMBERED undefined
17233 #endif
17234
17235 ;
17236 return 0;
17237}
17238
17239_ACEOF
17240
c5f70460
BB
17241
17242 rm -Rf build && mkdir -p build
17243 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17244 if { 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 17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
8934764e 17248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17249 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
8934764e 17253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17254 (exit $ac_status); }; }; then
17255
8934764e
BB
17256 { $as_echo "$as_me:$LINENO: result: yes" >&5
17257$as_echo "yes" >&6; }
bf9f3bac 17258
17259cat >>confdefs.h <<\_ACEOF
17260#define HAVE_CTL_UNNUMBERED 1
17261_ACEOF
17262
17263
79a3bf13
BB
17264else
17265 $as_echo "$as_me: failed program was:" >&5
17266sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 { $as_echo "$as_me:$LINENO: result: no" >&5
17269$as_echo "no" >&6; }
17270
17271
17272
17273fi
17274
17275 rm -Rf build
17276
17277
17278
17279
17280 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
17281$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
17282
17283
dbe561d8 17284cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
17285/* confdefs.h. */
17286_ACEOF
17287cat confdefs.h >>conftest.$ac_ext
17288cat >>conftest.$ac_ext <<_ACEOF
17289/* end confdefs.h. */
17290
17291
17292 #include <linux/sysctl.h>
17293
17294int
17295main (void)
17296{
17297
03318641 17298 struct ctl_table ctl __attribute__ ((unused));
79a3bf13
BB
17299 ctl.ctl_name = 0;
17300
17301 ;
17302 return 0;
17303}
17304
17305_ACEOF
17306
17307
17308 rm -Rf build && mkdir -p build
17309 echo "obj-m := conftest.o" >build/Makefile
17310 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312 (eval $ac_try) 2>&5
17313 ac_status=$?
17314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17317 (eval $ac_try) 2>&5
17318 ac_status=$?
17319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); }; }; then
17321
17322 { $as_echo "$as_me:$LINENO: result: yes" >&5
17323$as_echo "yes" >&6; }
17324
17325cat >>confdefs.h <<\_ACEOF
17326#define HAVE_CTL_NAME 1
17327_ACEOF
17328
17329
bf9f3bac 17330else
8934764e 17331 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17332sed 's/^/| /' conftest.$ac_ext >&5
17333
8934764e
BB
17334 { $as_echo "$as_me:$LINENO: result: no" >&5
17335$as_echo "no" >&6; }
bf9f3bac 17336
c5f70460
BB
17337
17338
bf9f3bac 17339fi
c5f70460
BB
17340
17341 rm -Rf build
17342
bf9f3bac 17343
17344
8934764e
BB
17345 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
17346$as_echo_n "checking whether fls64() is available... " >&6; }
bf9f3bac 17347
17348
dbe561d8 17349cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17350/* confdefs.h. */
17351_ACEOF
17352cat confdefs.h >>conftest.$ac_ext
17353cat >>conftest.$ac_ext <<_ACEOF
17354/* end confdefs.h. */
17355
17356
17357 #include <linux/bitops.h>
17358
17359int
17360main (void)
17361{
17362
17363 return fls64(0);
17364
17365 ;
17366 return 0;
17367}
17368
17369_ACEOF
17370
c5f70460
BB
17371
17372 rm -Rf build && mkdir -p build
17373 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17374 if { 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 17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
8934764e 17378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17379 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
8934764e 17383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17384 (exit $ac_status); }; }; then
17385
8934764e
BB
17386 { $as_echo "$as_me:$LINENO: result: yes" >&5
17387$as_echo "yes" >&6; }
bf9f3bac 17388
17389cat >>confdefs.h <<\_ACEOF
17390#define HAVE_FLS64 1
17391_ACEOF
17392
17393
17394else
8934764e 17395 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17396sed 's/^/| /' conftest.$ac_ext >&5
17397
8934764e
BB
17398 { $as_echo "$as_me:$LINENO: result: no" >&5
17399$as_echo "no" >&6; }
bf9f3bac 17400
c5f70460
BB
17401
17402
bf9f3bac 17403fi
c5f70460
BB
17404
17405 rm -Rf build
17406
bf9f3bac 17407
17408
17409
8934764e
BB
17410 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
17411$as_echo_n "checking whether symbol device_create is exported... " >&6; }
2e0e7e69
BB
17412 grep -q -E '[[:space:]]device_create[[:space:]]' \
17413 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17414 rc=$?
17415 if test $rc -ne 0; then
17416 export=0
17417 for file in drivers/base/core.c; do
2e0e7e69
BB
17418 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
17419 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17420 rc=$?
17421 if test $rc -eq 0; then
17422 export=1
17423 break;
17424 fi
17425 done
17426 if test $export -eq 0; then
8934764e
BB
17427 { $as_echo "$as_me:$LINENO: result: no" >&5
17428$as_echo "no" >&6; }
bf9f3bac 17429
17430 else
8934764e
BB
17431 { $as_echo "$as_me:$LINENO: result: yes" >&5
17432$as_echo "yes" >&6; }
bf9f3bac 17433
17434cat >>confdefs.h <<\_ACEOF
17435#define HAVE_DEVICE_CREATE 1
17436_ACEOF
17437
17438 fi
17439 else
8934764e
BB
17440 { $as_echo "$as_me:$LINENO: result: yes" >&5
17441$as_echo "yes" >&6; }
bf9f3bac 17442
17443cat >>confdefs.h <<\_ACEOF
17444#define HAVE_DEVICE_CREATE 1
17445_ACEOF
17446
17447 fi
17448
17449
17450
8934764e
BB
17451 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
17452$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
8123ac4f
BB
17453 tmp_flags="$EXTRA_KCFLAGS"
17454 EXTRA_KCFLAGS="-Werror"
17455
17456
dbe561d8 17457cat confdefs.h - <<_ACEOF >conftest.c
8123ac4f
BB
17458/* confdefs.h. */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h. */
17463
17464
17465 #include <linux/device.h>
17466
17467int
17468main (void)
17469{
17470
17471 device_create(NULL, NULL, 0, NULL, "%d", 1);
17472
17473 ;
17474 return 0;
17475}
17476
17477_ACEOF
17478
17479
17480 rm -Rf build && mkdir -p build
17481 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17482 if { 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
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
8934764e 17486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
17487 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
8934764e 17491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
17492 (exit $ac_status); }; }; then
17493
8934764e
BB
17494 { $as_echo "$as_me:$LINENO: result: yes" >&5
17495$as_echo "yes" >&6; }
8123ac4f
BB
17496
17497cat >>confdefs.h <<\_ACEOF
17498#define HAVE_5ARGS_DEVICE_CREATE 1
17499_ACEOF
17500
17501
17502else
8934764e 17503 $as_echo "$as_me: failed program was:" >&5
8123ac4f
BB
17504sed 's/^/| /' conftest.$ac_ext >&5
17505
8934764e
BB
17506 { $as_echo "$as_me:$LINENO: result: no" >&5
17507$as_echo "no" >&6; }
8123ac4f
BB
17508
17509
17510
17511fi
17512
17513 rm -Rf build
17514
17515
17516 EXTRA_KCFLAGS="$tmp_flags"
17517
17518
8934764e
BB
17519 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
17520$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
2e0e7e69
BB
17521 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
17522 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17523 rc=$?
17524 if test $rc -ne 0; then
17525 export=0
17526 for file in drivers/base/class.c; do
2e0e7e69
BB
17527 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
17528 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17529 rc=$?
17530 if test $rc -eq 0; then
17531 export=1
17532 break;
17533 fi
17534 done
17535 if test $export -eq 0; then
8934764e
BB
17536 { $as_echo "$as_me:$LINENO: result: no" >&5
17537$as_echo "no" >&6; }
bf9f3bac 17538
17539 else
8934764e
BB
17540 { $as_echo "$as_me:$LINENO: result: yes" >&5
17541$as_echo "yes" >&6; }
bf9f3bac 17542
17543cat >>confdefs.h <<\_ACEOF
17544#define HAVE_CLASS_DEVICE_CREATE 1
17545_ACEOF
17546
17547 fi
17548 else
8934764e
BB
17549 { $as_echo "$as_me:$LINENO: result: yes" >&5
17550$as_echo "yes" >&6; }
bf9f3bac 17551
17552cat >>confdefs.h <<\_ACEOF
17553#define HAVE_CLASS_DEVICE_CREATE 1
17554_ACEOF
17555
17556 fi
17557
17558
17559
8934764e
BB
17560 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
17561$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
2e0e7e69
BB
17562 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
17563 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 17564 rc=$?
17565 if test $rc -ne 0; then
17566 export=0
17567 for file in kernel/time.c; do
2e0e7e69
BB
17568 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
17569 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 17570 rc=$?
17571 if test $rc -eq 0; then
17572 export=1
17573 break;
17574 fi
17575 done
17576 if test $export -eq 0; then
8934764e
BB
17577 { $as_echo "$as_me:$LINENO: result: no" >&5
17578$as_echo "no" >&6; }
bf9f3bac 17579
6ae7fef5 17580 else
8934764e
BB
17581 { $as_echo "$as_me:$LINENO: result: yes" >&5
17582$as_echo "yes" >&6; }
6ae7fef5
BB
17583
17584cat >>confdefs.h <<\_ACEOF
17585#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17586_ACEOF
17587
17588 fi
17589 else
8934764e
BB
17590 { $as_echo "$as_me:$LINENO: result: yes" >&5
17591$as_echo "yes" >&6; }
6ae7fef5
BB
17592
17593cat >>confdefs.h <<\_ACEOF
17594#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
17595_ACEOF
17596
17597 fi
17598
17599
17600
8934764e
BB
17601 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
17602$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
6ae7fef5
BB
17603
17604
dbe561d8 17605cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
17611
17612
17613 #include <linux/time.h>
17614 void set_normalized_timespec(struct timespec *ts,
17615 time_t sec, long nsec) { }
17616
17617int
17618main (void)
17619{
17620
17621 ;
17622 return 0;
17623}
17624
17625_ACEOF
17626
17627
17628 rm -Rf build && mkdir -p build
17629 echo "obj-m := conftest.o" >build/Makefile
17630 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
8934764e 17634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17635 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637 (eval $ac_try) 2>&5
17638 ac_status=$?
8934764e 17639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17640 (exit $ac_status); }; }; then
17641
8934764e
BB
17642 { $as_echo "$as_me:$LINENO: result: no" >&5
17643$as_echo "no" >&6; }
6ae7fef5
BB
17644
17645else
8934764e 17646 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17647sed 's/^/| /' conftest.$ac_ext >&5
17648
8934764e
BB
17649 { $as_echo "$as_me:$LINENO: result: yes" >&5
17650$as_echo "yes" >&6; }
6ae7fef5
BB
17651
17652cat >>confdefs.h <<\_ACEOF
17653#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
17654_ACEOF
17655
17656
17657
17658
17659fi
17660
17661 rm -Rf build
17662
17663
17664
17665
8934764e
BB
17666 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
17667$as_echo_n "checking whether timespec_sub() is available... " >&6; }
6ae7fef5
BB
17668
17669
dbe561d8 17670cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
17676
17677
17678 #include <linux/time.h>
17679
17680int
17681main (void)
17682{
17683
03318641
BB
17684 struct timespec a = { 0 };
17685 struct timespec b = { 0 };
17686 struct timespec c __attribute__ ((unused));
6ae7fef5
BB
17687 c = timespec_sub(a, b);
17688
17689 ;
17690 return 0;
17691}
17692
17693_ACEOF
17694
17695
17696 rm -Rf build && mkdir -p build
17697 echo "obj-m := conftest.o" >build/Makefile
17698 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
8934764e 17702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17703 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
8934764e 17707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17708 (exit $ac_status); }; }; then
17709
8934764e
BB
17710 { $as_echo "$as_me:$LINENO: result: yes" >&5
17711$as_echo "yes" >&6; }
6ae7fef5
BB
17712
17713cat >>confdefs.h <<\_ACEOF
17714#define HAVE_TIMESPEC_SUB 1
17715_ACEOF
17716
17717
17718else
8934764e 17719 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17720sed 's/^/| /' conftest.$ac_ext >&5
17721
8934764e
BB
17722 { $as_echo "$as_me:$LINENO: result: no" >&5
17723$as_echo "no" >&6; }
6ae7fef5
BB
17724
17725
17726
17727fi
17728
17729 rm -Rf build
17730
17731
17732
17733
8934764e
BB
17734 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
17735$as_echo_n "checking whether init_utsname() is available... " >&6; }
6ae7fef5
BB
17736
17737
dbe561d8 17738cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
17744
17745
17746 #include <linux/utsname.h>
17747
17748int
17749main (void)
17750{
17751
03318641
BB
17752 struct new_utsname *a __attribute__ ((unused));
17753 a = init_utsname();
6ae7fef5
BB
17754
17755 ;
17756 return 0;
17757}
17758
17759_ACEOF
17760
17761
17762 rm -Rf build && mkdir -p build
17763 echo "obj-m := conftest.o" >build/Makefile
17764 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
8934764e 17768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17769 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
8934764e 17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17774 (exit $ac_status); }; }; then
17775
8934764e
BB
17776 { $as_echo "$as_me:$LINENO: result: yes" >&5
17777$as_echo "yes" >&6; }
6ae7fef5
BB
17778
17779cat >>confdefs.h <<\_ACEOF
17780#define HAVE_INIT_UTSNAME 1
17781_ACEOF
17782
17783
17784else
8934764e 17785 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
8934764e
BB
17788 { $as_echo "$as_me:$LINENO: result: no" >&5
17789$as_echo "no" >&6; }
6ae7fef5
BB
17790
17791
17792
17793fi
17794
17795 rm -Rf build
17796
17797
17798
17799
8934764e
BB
17800 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
17801$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
6ae7fef5
BB
17802
17803
dbe561d8 17804cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
17805/* confdefs.h. */
17806_ACEOF
17807cat confdefs.h >>conftest.$ac_ext
17808cat >>conftest.$ac_ext <<_ACEOF
17809/* end confdefs.h. */
17810
17811
17812 #include <linux/fdtable.h>
17813
17814int
17815main (void)
17816{
17817
17818 return 0;
17819
17820 ;
17821 return 0;
17822}
17823
17824_ACEOF
17825
17826
17827 rm -Rf build && mkdir -p build
17828 echo "obj-m := conftest.o" >build/Makefile
17829 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
8934764e 17833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17834 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17836 (eval $ac_try) 2>&5
17837 ac_status=$?
8934764e 17838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
17839 (exit $ac_status); }; }; then
17840
bf9f3bac 17841
17842cat >>confdefs.h <<\_ACEOF
6ae7fef5 17843#define HAVE_FDTABLE_HEADER 1
bf9f3bac 17844_ACEOF
17845
8934764e
BB
17846 { $as_echo "$as_me:$LINENO: result: yes" >&5
17847$as_echo "yes" >&6; }
bf9f3bac 17848
bf9f3bac 17849
6ae7fef5 17850else
8934764e 17851 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17852sed 's/^/| /' conftest.$ac_ext >&5
17853
8934764e
BB
17854 { $as_echo "$as_me:$LINENO: result: no" >&5
17855$as_echo "no" >&6; }
bf9f3bac 17856
17857
17858
6ae7fef5
BB
17859
17860fi
17861
17862 rm -Rf build
17863
17864
17865
17866
17867
8934764e
BB
17868 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
17869$as_echo_n "checking whether files_fdtable() is available... " >&6; }
bf9f3bac 17870
17871
dbe561d8 17872cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17873/* confdefs.h. */
17874_ACEOF
17875cat confdefs.h >>conftest.$ac_ext
17876cat >>conftest.$ac_ext <<_ACEOF
17877/* end confdefs.h. */
17878
17879
6ae7fef5
BB
17880 #include <linux/sched.h>
17881 #include <linux/file.h>
17882 #ifdef HAVE_FDTABLE_HEADER
17883 #include <linux/fdtable.h>
17884 #endif
bf9f3bac 17885
17886int
17887main (void)
17888{
17889
6ae7fef5 17890 struct files_struct *files = current->files;
03318641
BB
17891 struct fdtable *fdt __attribute__ ((unused));
17892 fdt = files_fdtable(files);
6ae7fef5 17893
bf9f3bac 17894 ;
17895 return 0;
17896}
17897
17898_ACEOF
17899
c5f70460
BB
17900
17901 rm -Rf build && mkdir -p build
17902 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17903 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
8934764e 17907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17908 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
8934764e 17912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17913 (exit $ac_status); }; }; then
17914
8934764e
BB
17915 { $as_echo "$as_me:$LINENO: result: yes" >&5
17916$as_echo "yes" >&6; }
bf9f3bac 17917
17918cat >>confdefs.h <<\_ACEOF
6ae7fef5 17919#define HAVE_FILES_FDTABLE 1
bf9f3bac 17920_ACEOF
17921
17922
6ae7fef5 17923else
8934764e 17924 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17925sed 's/^/| /' conftest.$ac_ext >&5
17926
8934764e
BB
17927 { $as_echo "$as_me:$LINENO: result: no" >&5
17928$as_echo "no" >&6; }
6ae7fef5 17929
c5f70460
BB
17930
17931
bf9f3bac 17932fi
c5f70460
BB
17933
17934 rm -Rf build
17935
bf9f3bac 17936
17937
17938
8934764e
BB
17939 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
17940$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
bf9f3bac 17941
17942
dbe561d8 17943cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
17949
17950
6ae7fef5 17951 #include <linux/uaccess.h>
bf9f3bac 17952
17953int
17954main (void)
17955{
17956
6ae7fef5 17957 return 0;
bf9f3bac 17958
17959 ;
17960 return 0;
17961}
17962
17963_ACEOF
17964
c5f70460
BB
17965
17966 rm -Rf build && mkdir -p build
17967 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17968 if { 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 17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17970 (eval $ac_try) 2>&5
17971 ac_status=$?
8934764e 17972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17973 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
8934764e 17977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17978 (exit $ac_status); }; }; then
17979
bf9f3bac 17980
17981cat >>confdefs.h <<\_ACEOF
6ae7fef5 17982#define HAVE_UACCESS_HEADER 1
bf9f3bac 17983_ACEOF
17984
8934764e
BB
17985 { $as_echo "$as_me:$LINENO: result: yes" >&5
17986$as_echo "yes" >&6; }
6ae7fef5 17987
bf9f3bac 17988
17989else
8934764e 17990 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17991sed 's/^/| /' conftest.$ac_ext >&5
17992
8934764e
BB
17993 { $as_echo "$as_me:$LINENO: result: no" >&5
17994$as_echo "no" >&6; }
bf9f3bac 17995
c5f70460
BB
17996
17997
6ae7fef5 17998
bf9f3bac 17999fi
c5f70460
BB
18000
18001 rm -Rf build
18002
bf9f3bac 18003
18004
18005
6ae7fef5 18006
8934764e
BB
18007 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
18008$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
bf9f3bac 18009
18010
dbe561d8 18011cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18012/* confdefs.h. */
18013_ACEOF
18014cat confdefs.h >>conftest.$ac_ext
18015cat >>conftest.$ac_ext <<_ACEOF
18016/* end confdefs.h. */
18017
18018
6ae7fef5 18019 #include <linux/slab.h>
bf9f3bac 18020
18021int
18022main (void)
18023{
18024
03318641
BB
18025 void *a __attribute__ ((unused));
18026 a = kmalloc_node(1, GFP_KERNEL, 0);
bf9f3bac 18027
18028 ;
18029 return 0;
18030}
18031
18032_ACEOF
18033
c5f70460
BB
18034
18035 rm -Rf build && mkdir -p build
18036 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18037 if { 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 18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
8934764e 18041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18042 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
8934764e 18046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18047 (exit $ac_status); }; }; then
18048
8934764e
BB
18049 { $as_echo "$as_me:$LINENO: result: yes" >&5
18050$as_echo "yes" >&6; }
bf9f3bac 18051
18052cat >>confdefs.h <<\_ACEOF
6ae7fef5 18053#define HAVE_KMALLOC_NODE 1
bf9f3bac 18054_ACEOF
18055
18056
18057else
8934764e
BB
18058 $as_echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061 { $as_echo "$as_me:$LINENO: result: no" >&5
18062$as_echo "no" >&6; }
18063
18064
18065
18066fi
18067
18068 rm -Rf build
18069
18070
18071
18072
18073 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
18074$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
18075 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
18076 $LINUX_OBJ/Module*.symvers 2>/dev/null
18077 rc=$?
18078 if test $rc -ne 0; then
18079 export=0
18080 for file in ; do
18081 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
18082 "$LINUX_OBJ/$file" 2>/dev/null
18083 rc=$?
18084 if test $rc -eq 0; then
18085 export=1
18086 break;
18087 fi
18088 done
18089 if test $export -eq 0; then
18090 { $as_echo "$as_me:$LINENO: result: no" >&5
18091$as_echo "no" >&6; }
18092
18093 else
18094 { $as_echo "$as_me:$LINENO: result: yes" >&5
18095$as_echo "yes" >&6; }
18096
18097cat >>confdefs.h <<\_ACEOF
18098#define HAVE_MONOTONIC_CLOCK 1
18099_ACEOF
18100
18101 fi
18102 else
18103 { $as_echo "$as_me:$LINENO: result: yes" >&5
18104$as_echo "yes" >&6; }
18105
18106cat >>confdefs.h <<\_ACEOF
18107#define HAVE_MONOTONIC_CLOCK 1
18108_ACEOF
18109
18110 fi
18111
18112
18113
18114 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
18115$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
18116
18117
dbe561d8 18118cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18119/* confdefs.h. */
18120_ACEOF
18121cat confdefs.h >>conftest.$ac_ext
18122cat >>conftest.$ac_ext <<_ACEOF
18123/* end confdefs.h. */
18124
18125
18126 #include <linux/fs.h>
18127 #include <linux/mutex.h>
18128
18129int
18130main (void)
18131{
18132
18133 struct inode i;
18134 mutex_init(&i.i_mutex);
18135
18136 ;
18137 return 0;
18138}
18139
18140_ACEOF
18141
18142
18143 rm -Rf build && mkdir -p build
18144 echo "obj-m := conftest.o" >build/Makefile
18145 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18147 (eval $ac_try) 2>&5
18148 ac_status=$?
18149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156
18157 { $as_echo "$as_me:$LINENO: result: yes" >&5
18158$as_echo "yes" >&6; }
18159
18160cat >>confdefs.h <<\_ACEOF
18161#define HAVE_INODE_I_MUTEX 1
18162_ACEOF
18163
18164
18165else
18166 $as_echo "$as_me: failed program was:" >&5
18167sed 's/^/| /' conftest.$ac_ext >&5
18168
18169 { $as_echo "$as_me:$LINENO: result: no" >&5
18170$as_echo "no" >&6; }
18171
18172
18173
18174fi
18175
18176 rm -Rf build
18177
18178
18179
18180
18181 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
18182$as_echo_n "checking whether struct mutex has owner... " >&6; }
18183
18184
dbe561d8 18185cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18186/* confdefs.h. */
18187_ACEOF
18188cat confdefs.h >>conftest.$ac_ext
18189cat >>conftest.$ac_ext <<_ACEOF
18190/* end confdefs.h. */
18191
18192
18193 #include <linux/mutex.h>
18194
18195int
18196main (void)
18197{
18198
03318641 18199 struct mutex mtx __attribute__ ((unused));
8934764e
BB
18200 mtx.owner = NULL;
18201
18202 ;
18203 return 0;
18204}
18205
18206_ACEOF
18207
18208
18209 rm -Rf build && mkdir -p build
18210 echo "obj-m := conftest.o" >build/Makefile
18211 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213 (eval $ac_try) 2>&5
18214 ac_status=$?
18215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222
18223 { $as_echo "$as_me:$LINENO: result: yes" >&5
18224$as_echo "yes" >&6; }
18225
18226cat >>confdefs.h <<\_ACEOF
18227#define HAVE_MUTEX_OWNER 1
18228_ACEOF
18229
18230
18231else
18232 $as_echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235 { $as_echo "$as_me:$LINENO: result: no" >&5
18236$as_echo "no" >&6; }
18237
18238
18239
18240fi
18241
18242 rm -Rf build
18243
18244
18245
18246
86fd39f3
BB
18247 { $as_echo "$as_me:$LINENO: checking whether struct mutex owner is a task_struct" >&5
18248$as_echo_n "checking whether struct mutex owner is a task_struct... " >&6; }
18249 tmp_flags="$EXTRA_KCFLAGS"
18250 EXTRA_KCFLAGS="-Werror"
18251
18252
18253cat confdefs.h - <<_ACEOF >conftest.c
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
18259
18260
18261 #include <linux/mutex.h>
18262
18263int
18264main (void)
18265{
18266
18267 struct mutex mtx __attribute__ ((unused));
18268 mtx.owner = current;
18269
18270 ;
18271 return 0;
18272}
18273
18274_ACEOF
18275
18276
18277 rm -Rf build && mkdir -p build
18278 echo "obj-m := conftest.o" >build/Makefile
18279 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281 (eval $ac_try) 2>&5
18282 ac_status=$?
18283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290
18291 { $as_echo "$as_me:$LINENO: result: yes" >&5
18292$as_echo "yes" >&6; }
18293
18294cat >>confdefs.h <<\_ACEOF
18295#define HAVE_MUTEX_OWNER_TASK_STRUCT 1
18296_ACEOF
18297
18298
18299else
18300 $as_echo "$as_me: failed program was:" >&5
18301sed 's/^/| /' conftest.$ac_ext >&5
18302
18303 { $as_echo "$as_me:$LINENO: result: no" >&5
18304$as_echo "no" >&6; }
18305
18306
18307
18308fi
18309
18310 rm -Rf build
18311
18312
18313 EXTRA_KCFLAGS="$tmp_flags"
18314
18315
8934764e
BB
18316 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
18317$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
18318
18319
dbe561d8 18320cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18321/* confdefs.h. */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h. */
18326
18327
18328 #include <linux/mutex.h>
18329
18330int
18331main (void)
18332{
18333
18334 struct mutex mutex;
18335 mutex_init(&mutex);
18336 mutex_lock_nested(&mutex, 0);
18337
18338 ;
18339 return 0;
18340}
18341
18342_ACEOF
18343
18344
18345 rm -Rf build && mkdir -p build
18346 echo "obj-m := conftest.o" >build/Makefile
18347 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358
18359 { $as_echo "$as_me:$LINENO: result: yes" >&5
18360$as_echo "yes" >&6; }
18361
18362cat >>confdefs.h <<\_ACEOF
18363#define HAVE_MUTEX_LOCK_NESTED 1
18364_ACEOF
18365
18366
18367else
18368 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18369sed 's/^/| /' conftest.$ac_ext >&5
18370
8934764e
BB
18371 { $as_echo "$as_me:$LINENO: result: no" >&5
18372$as_echo "no" >&6; }
18373
18374
18375
18376fi
18377
18378 rm -Rf build
18379
18380
18381
18382
8934764e
BB
18383 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
18384$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
bf9f3bac 18385
18386
dbe561d8 18387cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18388/* confdefs.h. */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h. */
18393
18394
8934764e 18395 #include <linux/smp.h>
bf9f3bac 18396
18397int
18398main (void)
18399{
18400
8934764e 18401 on_each_cpu(NULL, NULL, 0);
bf9f3bac 18402
18403 ;
18404 return 0;
18405}
18406
18407_ACEOF
18408
c5f70460
BB
18409
18410 rm -Rf build && mkdir -p build
18411 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18412 if { 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 18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
8934764e 18416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18417 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18420 ac_status=$?
8934764e 18421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18422 (exit $ac_status); }; }; then
18423
8934764e
BB
18424 { $as_echo "$as_me:$LINENO: result: yes" >&5
18425$as_echo "yes" >&6; }
bf9f3bac 18426
18427cat >>confdefs.h <<\_ACEOF
8934764e 18428#define HAVE_3ARGS_ON_EACH_CPU 1
bf9f3bac 18429_ACEOF
18430
bf9f3bac 18431
18432else
8934764e 18433 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18434sed 's/^/| /' conftest.$ac_ext >&5
18435
8934764e
BB
18436 { $as_echo "$as_me:$LINENO: result: no" >&5
18437$as_echo "no" >&6; }
bf9f3bac 18438
18439
c5f70460 18440
bf9f3bac 18441fi
c5f70460
BB
18442
18443 rm -Rf build
18444
bf9f3bac 18445
18446
18447
8934764e
BB
18448 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
18449$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
18450 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
18451 $LINUX_OBJ/Module*.symvers 2>/dev/null
18452 rc=$?
18453 if test $rc -ne 0; then
18454 export=0
18455 for file in ; do
18456 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
18457 "$LINUX_OBJ/$file" 2>/dev/null
18458 rc=$?
18459 if test $rc -eq 0; then
18460 export=1
18461 break;
18462 fi
18463 done
18464 if test $export -eq 0; then
18465 { $as_echo "$as_me:$LINENO: result: no" >&5
18466$as_echo "no" >&6; }
4d54fdee 18467
8934764e
BB
18468 else
18469 { $as_echo "$as_me:$LINENO: result: yes" >&5
18470$as_echo "yes" >&6; }
4d54fdee 18471
8934764e
BB
18472cat >>confdefs.h <<\_ACEOF
18473#define HAVE_KALLSYMS_LOOKUP_NAME 1
4d54fdee 18474_ACEOF
4d54fdee 18475
8934764e
BB
18476 fi
18477 else
18478 { $as_echo "$as_me:$LINENO: result: yes" >&5
18479$as_echo "yes" >&6; }
4d54fdee 18480
8934764e
BB
18481cat >>confdefs.h <<\_ACEOF
18482#define HAVE_KALLSYMS_LOOKUP_NAME 1
18483_ACEOF
4d54fdee 18484
8934764e 18485 fi
4d54fdee 18486
4d54fdee 18487
4d54fdee 18488
8934764e
BB
18489 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
18490$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
18491 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
18492 $LINUX_OBJ/Module*.symvers 2>/dev/null
18493 rc=$?
18494 if test $rc -ne 0; then
18495 export=0
18496 for file in ; do
18497 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
18498 "$LINUX_OBJ/$file" 2>/dev/null
18499 rc=$?
18500 if test $rc -eq 0; then
18501 export=1
18502 break;
18503 fi
18504 done
18505 if test $export -eq 0; then
18506 { $as_echo "$as_me:$LINENO: result: no" >&5
18507$as_echo "no" >&6; }
4d54fdee 18508
8934764e
BB
18509 else
18510 { $as_echo "$as_me:$LINENO: result: yes" >&5
18511$as_echo "yes" >&6; }
4d54fdee 18512
8934764e
BB
18513cat >>confdefs.h <<\_ACEOF
18514#define HAVE_GET_VMALLOC_INFO 1
18515_ACEOF
4d54fdee 18516
8934764e
BB
18517 fi
18518 else
18519 { $as_echo "$as_me:$LINENO: result: yes" >&5
18520$as_echo "yes" >&6; }
4d54fdee
BB
18521
18522cat >>confdefs.h <<\_ACEOF
8934764e 18523#define HAVE_GET_VMALLOC_INFO 1
4d54fdee
BB
18524_ACEOF
18525
8934764e 18526 fi
4d54fdee 18527
4d54fdee
BB
18528
18529
8934764e
BB
18530 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
18531$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
18532 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
18533 rc=$?
18534 if test $rc -eq 0; then
18535 { $as_echo "$as_me:$LINENO: result: yes" >&5
18536$as_echo "yes" >&6; }
4d54fdee 18537
8934764e
BB
18538cat >>confdefs.h <<\_ACEOF
18539#define HAVE_PGDAT_HELPERS 1
18540_ACEOF
4d54fdee 18541
8934764e
BB
18542 else
18543 { $as_echo "$as_me:$LINENO: result: no" >&5
18544$as_echo "no" >&6; }
18545 fi
4d54fdee
BB
18546
18547
8934764e
BB
18548 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
18549$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
18550 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
18551 $LINUX_OBJ/Module*.symvers 2>/dev/null
18552 rc=$?
18553 if test $rc -ne 0; then
18554 export=0
18555 for file in ; do
18556 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
18557 "$LINUX_OBJ/$file" 2>/dev/null
18558 rc=$?
18559 if test $rc -eq 0; then
18560 export=1
18561 break;
18562 fi
18563 done
18564 if test $export -eq 0; then
18565 { $as_echo "$as_me:$LINENO: result: no" >&5
18566$as_echo "no" >&6; }
4d54fdee 18567
8934764e
BB
18568 else
18569 { $as_echo "$as_me:$LINENO: result: yes" >&5
18570$as_echo "yes" >&6; }
4d54fdee 18571
8934764e
BB
18572cat >>confdefs.h <<\_ACEOF
18573#define HAVE_FIRST_ONLINE_PGDAT 1
18574_ACEOF
bf9f3bac 18575
8934764e
BB
18576 fi
18577 else
18578 { $as_echo "$as_me:$LINENO: result: yes" >&5
18579$as_echo "yes" >&6; }
bf9f3bac 18580
8934764e
BB
18581cat >>confdefs.h <<\_ACEOF
18582#define HAVE_FIRST_ONLINE_PGDAT 1
bf9f3bac 18583_ACEOF
bf9f3bac 18584
8934764e 18585 fi
bf9f3bac 18586
bf9f3bac 18587
bf9f3bac 18588
8934764e
BB
18589 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
18590$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
18591 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
18592 $LINUX_OBJ/Module*.symvers 2>/dev/null
18593 rc=$?
18594 if test $rc -ne 0; then
18595 export=0
18596 for file in ; do
18597 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
18598 "$LINUX_OBJ/$file" 2>/dev/null
18599 rc=$?
18600 if test $rc -eq 0; then
18601 export=1
18602 break;
18603 fi
18604 done
18605 if test $export -eq 0; then
18606 { $as_echo "$as_me:$LINENO: result: no" >&5
18607$as_echo "no" >&6; }
bf9f3bac 18608
8934764e
BB
18609 else
18610 { $as_echo "$as_me:$LINENO: result: yes" >&5
18611$as_echo "yes" >&6; }
bf9f3bac 18612
8934764e
BB
18613cat >>confdefs.h <<\_ACEOF
18614#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 18615_ACEOF
18616
8934764e
BB
18617 fi
18618 else
18619 { $as_echo "$as_me:$LINENO: result: yes" >&5
18620$as_echo "yes" >&6; }
bf9f3bac 18621
18622cat >>confdefs.h <<\_ACEOF
8934764e 18623#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 18624_ACEOF
18625
8934764e 18626 fi
bf9f3bac 18627
18628
18629
8934764e
BB
18630 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
18631$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
18632 grep -q -E '[[:space:]]next_zone[[:space:]]' \
6ae7fef5
BB
18633 $LINUX_OBJ/Module*.symvers 2>/dev/null
18634 rc=$?
18635 if test $rc -ne 0; then
18636 export=0
18637 for file in ; do
8934764e 18638 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
6ae7fef5
BB
18639 "$LINUX_OBJ/$file" 2>/dev/null
18640 rc=$?
18641 if test $rc -eq 0; then
18642 export=1
18643 break;
18644 fi
18645 done
18646 if test $export -eq 0; then
8934764e
BB
18647 { $as_echo "$as_me:$LINENO: result: no" >&5
18648$as_echo "no" >&6; }
6ae7fef5
BB
18649
18650 else
8934764e
BB
18651 { $as_echo "$as_me:$LINENO: result: yes" >&5
18652$as_echo "yes" >&6; }
6ae7fef5
BB
18653
18654cat >>confdefs.h <<\_ACEOF
8934764e 18655#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
18656_ACEOF
18657
18658 fi
18659 else
8934764e
BB
18660 { $as_echo "$as_me:$LINENO: result: yes" >&5
18661$as_echo "yes" >&6; }
6ae7fef5
BB
18662
18663cat >>confdefs.h <<\_ACEOF
8934764e 18664#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
18665_ACEOF
18666
18667 fi
18668
18669
18670
8934764e
BB
18671 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
18672$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
18673 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
6ae7fef5
BB
18674 $LINUX_OBJ/Module*.symvers 2>/dev/null
18675 rc=$?
18676 if test $rc -ne 0; then
18677 export=0
18678 for file in ; do
8934764e 18679 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
6ae7fef5
BB
18680 "$LINUX_OBJ/$file" 2>/dev/null
18681 rc=$?
18682 if test $rc -eq 0; then
18683 export=1
18684 break;
18685 fi
18686 done
18687 if test $export -eq 0; then
8934764e
BB
18688 { $as_echo "$as_me:$LINENO: result: no" >&5
18689$as_echo "no" >&6; }
18690
18691 else
18692 { $as_echo "$as_me:$LINENO: result: yes" >&5
18693$as_echo "yes" >&6; }
18694
18695cat >>confdefs.h <<\_ACEOF
18696#define HAVE_PGDAT_LIST 1
18697_ACEOF
18698
18699 fi
18700 else
18701 { $as_echo "$as_me:$LINENO: result: yes" >&5
18702$as_echo "yes" >&6; }
18703
18704cat >>confdefs.h <<\_ACEOF
18705#define HAVE_PGDAT_LIST 1
18706_ACEOF
18707
18708 fi
18709
18710
18711
18712 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
18713$as_echo_n "checking whether global_page_state() is available... " >&6; }
18714
18715
dbe561d8 18716cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
18717/* confdefs.h. */
18718_ACEOF
18719cat confdefs.h >>conftest.$ac_ext
18720cat >>conftest.$ac_ext <<_ACEOF
18721/* end confdefs.h. */
18722
18723
18724 #include <linux/mm.h>
18725
18726int
18727main (void)
18728{
18729
03318641 18730 unsigned long state __attribute__ ((unused));
8934764e
BB
18731 state = global_page_state(0);
18732
18733 ;
18734 return 0;
18735}
18736
18737_ACEOF
18738
18739
18740 rm -Rf build && mkdir -p build
18741 echo "obj-m := conftest.o" >build/Makefile
18742 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18744 (eval $ac_try) 2>&5
18745 ac_status=$?
18746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
6ae7fef5 18753
8934764e
BB
18754 { $as_echo "$as_me:$LINENO: result: yes" >&5
18755$as_echo "yes" >&6; }
6ae7fef5
BB
18756
18757cat >>confdefs.h <<\_ACEOF
8934764e 18758#define HAVE_GLOBAL_PAGE_STATE 1
6ae7fef5
BB
18759_ACEOF
18760
6ae7fef5 18761
8934764e
BB
18762else
18763 $as_echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
18766 { $as_echo "$as_me:$LINENO: result: no" >&5
18767$as_echo "no" >&6; }
18768
18769
18770
18771fi
18772
18773 rm -Rf build
6ae7fef5 18774
6ae7fef5
BB
18775
18776
18777
8934764e
BB
18778 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
18779$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
bf9f3bac 18780
18781
dbe561d8 18782cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 18783/* confdefs.h. */
18784_ACEOF
18785cat confdefs.h >>conftest.$ac_ext
18786cat >>conftest.$ac_ext <<_ACEOF
18787/* end confdefs.h. */
18788
18789
8934764e 18790 #include <linux/mm.h>
bf9f3bac 18791
18792int
18793main (void)
18794{
18795
03318641 18796 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18797 zsi = NR_FREE_PAGES;
bf9f3bac 18798
18799 ;
18800 return 0;
18801}
18802
18803_ACEOF
18804
c5f70460
BB
18805
18806 rm -Rf build && mkdir -p build
18807 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18808 if { 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 18809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18810 (eval $ac_try) 2>&5
18811 ac_status=$?
8934764e 18812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18813 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18816 ac_status=$?
8934764e 18817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 18818 (exit $ac_status); }; }; then
18819
8934764e
BB
18820 { $as_echo "$as_me:$LINENO: result: yes" >&5
18821$as_echo "yes" >&6; }
bf9f3bac 18822
18823cat >>confdefs.h <<\_ACEOF
8934764e 18824#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
bf9f3bac 18825_ACEOF
18826
bf9f3bac 18827
18828else
8934764e 18829 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 18830sed 's/^/| /' conftest.$ac_ext >&5
18831
8934764e
BB
18832 { $as_echo "$as_me:$LINENO: result: no" >&5
18833$as_echo "no" >&6; }
bf9f3bac 18834
18835
c5f70460 18836
bf9f3bac 18837fi
c5f70460
BB
18838
18839 rm -Rf build
18840
bf9f3bac 18841
18842
18843
8934764e
BB
18844 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
18845$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
bf9f3bac 18846
bf9f3bac 18847
dbe561d8 18848cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18849/* confdefs.h. */
6ae7fef5 18850_ACEOF
8934764e
BB
18851cat confdefs.h >>conftest.$ac_ext
18852cat >>conftest.$ac_ext <<_ACEOF
18853/* end confdefs.h. */
bf9f3bac 18854
6ae7fef5 18855
8934764e 18856 #include <linux/mm.h>
bf9f3bac 18857
8934764e
BB
18858int
18859main (void)
18860{
bf9f3bac 18861
03318641 18862 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18863 zsi = NR_INACTIVE;
bf9f3bac 18864
8934764e
BB
18865 ;
18866 return 0;
18867}
bf9f3bac 18868
8934764e 18869_ACEOF
bf9f3bac 18870
bf9f3bac 18871
8934764e
BB
18872 rm -Rf build && mkdir -p build
18873 echo "obj-m := conftest.o" >build/Makefile
18874 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18877 ac_status=$?
18878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; }; then
bf9f3bac 18885
8934764e
BB
18886 { $as_echo "$as_me:$LINENO: result: yes" >&5
18887$as_echo "yes" >&6; }
6ae7fef5
BB
18888
18889cat >>confdefs.h <<\_ACEOF
8934764e 18890#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
6ae7fef5
BB
18891_ACEOF
18892
6ae7fef5 18893
8934764e
BB
18894else
18895 $as_echo "$as_me: failed program was:" >&5
18896sed 's/^/| /' conftest.$ac_ext >&5
c5f70460 18897
8934764e
BB
18898 { $as_echo "$as_me:$LINENO: result: no" >&5
18899$as_echo "no" >&6; }
bf9f3bac 18900
bf9f3bac 18901
8934764e
BB
18902
18903fi
18904
18905 rm -Rf build
18906
18907
18908
18909 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
18910$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
18911
18912
dbe561d8 18913cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18914/* confdefs.h. */
bf9f3bac 18915_ACEOF
8934764e
BB
18916cat confdefs.h >>conftest.$ac_ext
18917cat >>conftest.$ac_ext <<_ACEOF
18918/* end confdefs.h. */
bf9f3bac 18919
18920
8934764e 18921 #include <linux/mm.h>
bf9f3bac 18922
8934764e
BB
18923int
18924main (void)
18925{
bf9f3bac 18926
03318641 18927 enum zone_stat_item zsi __attribute__ ((unused));
8934764e
BB
18928 zsi = NR_INACTIVE_ANON;
18929
18930 ;
18931 return 0;
18932}
c5f70460 18933
6ae7fef5 18934_ACEOF
c5f70460 18935
8934764e
BB
18936
18937 rm -Rf build && mkdir -p build
18938 echo "obj-m := conftest.o" >build/Makefile
18939 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18941 (eval $ac_try) 2>&5
18942 ac_status=$?
18943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18947 ac_status=$?
18948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; }; then
18950
18951 { $as_echo "$as_me:$LINENO: result: yes" >&5
18952$as_echo "yes" >&6; }
c5f70460 18953
6ae7fef5 18954cat >>confdefs.h <<\_ACEOF
8934764e 18955#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
6ae7fef5 18956_ACEOF
c5f70460 18957
bf9f3bac 18958
8934764e
BB
18959else
18960 $as_echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 18962
8934764e
BB
18963 { $as_echo "$as_me:$LINENO: result: no" >&5
18964$as_echo "no" >&6; }
bf9f3bac 18965
bf9f3bac 18966
bf9f3bac 18967
8934764e 18968fi
bf9f3bac 18969
8934764e 18970 rm -Rf build
bf9f3bac 18971
8934764e
BB
18972
18973
18974 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
18975$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
18976
18977
dbe561d8 18978cat confdefs.h - <<_ACEOF >conftest.c
8934764e 18979/* confdefs.h. */
bf9f3bac 18980_ACEOF
8934764e
BB
18981cat confdefs.h >>conftest.$ac_ext
18982cat >>conftest.$ac_ext <<_ACEOF
18983/* end confdefs.h. */
bf9f3bac 18984
bf9f3bac 18985
8934764e 18986 #include <linux/mm.h>
bf9f3bac 18987
8934764e
BB
18988int
18989main (void)
18990{
bf9f3bac 18991
03318641 18992 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 18993 zsi = NR_INACTIVE_FILE;
6ae7fef5 18994
8934764e
BB
18995 ;
18996 return 0;
18997}
6ae7fef5 18998
6ae7fef5
BB
18999_ACEOF
19000
8934764e
BB
19001
19002 rm -Rf build && mkdir -p build
19003 echo "obj-m := conftest.o" >build/Makefile
19004 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011 (eval $ac_try) 2>&5
19012 ac_status=$?
19013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015
19016 { $as_echo "$as_me:$LINENO: result: yes" >&5
19017$as_echo "yes" >&6; }
6ae7fef5
BB
19018
19019cat >>confdefs.h <<\_ACEOF
8934764e 19020#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
6ae7fef5
BB
19021_ACEOF
19022
6ae7fef5 19023
8934764e
BB
19024else
19025 $as_echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
6ae7fef5 19027
8934764e
BB
19028 { $as_echo "$as_me:$LINENO: result: no" >&5
19029$as_echo "no" >&6; }
6ae7fef5 19030
6ae7fef5 19031
6ae7fef5 19032
8934764e 19033fi
6ae7fef5 19034
8934764e 19035 rm -Rf build
6ae7fef5 19036
6ae7fef5
BB
19037
19038
19039
8934764e
BB
19040 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
19041$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
bf9f3bac 19042
19043
dbe561d8 19044cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 19045/* confdefs.h. */
19046_ACEOF
19047cat confdefs.h >>conftest.$ac_ext
19048cat >>conftest.$ac_ext <<_ACEOF
19049/* end confdefs.h. */
19050
19051
6ae7fef5 19052 #include <linux/mm.h>
bf9f3bac 19053
19054int
19055main (void)
19056{
19057
03318641 19058 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 19059 zsi = NR_ACTIVE;
bf9f3bac 19060
19061 ;
19062 return 0;
19063}
19064
19065_ACEOF
19066
c5f70460
BB
19067
19068 rm -Rf build && mkdir -p build
19069 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19070 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
8934764e 19074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 19075 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19078 ac_status=$?
8934764e 19079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 19080 (exit $ac_status); }; }; then
19081
8934764e
BB
19082 { $as_echo "$as_me:$LINENO: result: yes" >&5
19083$as_echo "yes" >&6; }
bf9f3bac 19084
19085cat >>confdefs.h <<\_ACEOF
8934764e 19086#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
bf9f3bac 19087_ACEOF
19088
19089
19090else
8934764e 19091 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 19092sed 's/^/| /' conftest.$ac_ext >&5
19093
8934764e
BB
19094 { $as_echo "$as_me:$LINENO: result: no" >&5
19095$as_echo "no" >&6; }
bf9f3bac 19096
c5f70460
BB
19097
19098
bf9f3bac 19099fi
c5f70460
BB
19100
19101 rm -Rf build
19102
bf9f3bac 19103
19104
8934764e
BB
19105 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
19106$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
6c9433c1
BB
19107
19108
dbe561d8 19109cat confdefs.h - <<_ACEOF >conftest.c
6c9433c1
BB
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
19115
19116
6ae7fef5 19117 #include <linux/mm.h>
6c9433c1
BB
19118
19119int
19120main (void)
19121{
19122
03318641 19123 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 19124 zsi = NR_ACTIVE_ANON;
6c9433c1
BB
19125
19126 ;
19127 return 0;
19128}
19129
19130_ACEOF
19131
19132
19133 rm -Rf build && mkdir -p build
19134 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19135 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
6c9433c1
BB
19136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137 (eval $ac_try) 2>&5
19138 ac_status=$?
8934764e 19139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
19140 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
8934764e 19144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
19145 (exit $ac_status); }; }; then
19146
8934764e
BB
19147 { $as_echo "$as_me:$LINENO: result: yes" >&5
19148$as_echo "yes" >&6; }
6c9433c1
BB
19149
19150cat >>confdefs.h <<\_ACEOF
8934764e 19151#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
6c9433c1
BB
19152_ACEOF
19153
19154
19155else
8934764e 19156 $as_echo "$as_me: failed program was:" >&5
6c9433c1
BB
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
8934764e
BB
19159 { $as_echo "$as_me:$LINENO: result: no" >&5
19160$as_echo "no" >&6; }
6c9433c1
BB
19161
19162
19163
19164fi
19165
19166 rm -Rf build
19167
19168
19169
8934764e
BB
19170 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
19171$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 19172
bf9f3bac 19173
dbe561d8 19174cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19175/* confdefs.h. */
bf9f3bac 19176_ACEOF
6ae7fef5
BB
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
bf9f3bac 19180
bf9f3bac 19181
6ae7fef5 19182 #include <linux/mm.h>
bf9f3bac 19183
6ae7fef5
BB
19184int
19185main (void)
19186{
96dded38 19187
03318641 19188 enum zone_stat_item zsi __attribute__ ((unused));
8934764e 19189 zsi = NR_ACTIVE_FILE;
bf9f3bac 19190
6ae7fef5
BB
19191 ;
19192 return 0;
19193}
31a033ec 19194
6ae7fef5 19195_ACEOF
31a033ec 19196
c5f70460 19197
6ae7fef5
BB
19198 rm -Rf build && mkdir -p build
19199 echo "obj-m := conftest.o" >build/Makefile
19200 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
8934764e 19204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19205 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207 (eval $ac_try) 2>&5
19208 ac_status=$?
8934764e 19209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 19210 (exit $ac_status); }; }; then
c5f70460 19211
8934764e
BB
19212 { $as_echo "$as_me:$LINENO: result: yes" >&5
19213$as_echo "yes" >&6; }
c5f70460 19214
96dded38 19215cat >>confdefs.h <<\_ACEOF
8934764e 19216#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
96dded38 19217_ACEOF
c5f70460 19218
31a033ec 19219
6ae7fef5 19220else
8934764e 19221 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
19222sed 's/^/| /' conftest.$ac_ext >&5
19223
8934764e
BB
19224 { $as_echo "$as_me:$LINENO: result: no" >&5
19225$as_echo "no" >&6; }
6ae7fef5
BB
19226
19227
19228
19229fi
19230
19231 rm -Rf build
31a033ec
BB
19232
19233
6ae7fef5 19234
8934764e
BB
19235
19236 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
19237$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
31a033ec
BB
19238
19239
dbe561d8 19240cat confdefs.h - <<_ACEOF >conftest.c
31a033ec
BB
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
19246
19247
31a033ec
BB
19248
19249int
19250main (void)
19251{
19252
8934764e
BB
19253 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
19254 #error "global_page_state needs NR_FREE_PAGES"
19255 #endif
19256
19257 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
19258 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
19259 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
19260 #error "global_page_state needs NR_ACTIVE*"
19261 #endif
19262
19263 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
19264 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
19265 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
19266 #error "global_page_state needs NR_INACTIVE*"
19267 #endif
31a033ec
BB
19268
19269 ;
19270 return 0;
19271}
19272
19273_ACEOF
19274
c5f70460
BB
19275
19276 rm -Rf build && mkdir -p build
19277 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19278 if { 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
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
8934764e 19282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
19283 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
8934764e 19287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
19288 (exit $ac_status); }; }; then
19289
8934764e
BB
19290 { $as_echo "$as_me:$LINENO: result: no" >&5
19291$as_echo "no" >&6; }
19292
19293else
19294 $as_echo "$as_me: failed program was:" >&5
19295sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 { $as_echo "$as_me:$LINENO: result: yes" >&5
19298$as_echo "yes" >&6; }
31a033ec
BB
19299
19300cat >>confdefs.h <<\_ACEOF
8934764e 19301#define NEED_GET_ZONE_COUNTS 1
31a033ec
BB
19302_ACEOF
19303
19304
8934764e
BB
19305 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
19306$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
19307 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
19308 $LINUX_OBJ/Module*.symvers 2>/dev/null
19309 rc=$?
19310 if test $rc -ne 0; then
19311 export=0
19312 for file in ; do
19313 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
19314 "$LINUX_OBJ/$file" 2>/dev/null
19315 rc=$?
19316 if test $rc -eq 0; then
19317 export=1
19318 break;
19319 fi
19320 done
19321 if test $export -eq 0; then
19322 { $as_echo "$as_me:$LINENO: result: no" >&5
19323$as_echo "no" >&6; }
19324
19325 else
19326 { $as_echo "$as_me:$LINENO: result: yes" >&5
19327$as_echo "yes" >&6; }
19328
19329cat >>confdefs.h <<\_ACEOF
19330#define HAVE_GET_ZONE_COUNTS 1
19331_ACEOF
19332
19333 fi
19334 else
19335 { $as_echo "$as_me:$LINENO: result: yes" >&5
19336$as_echo "yes" >&6; }
19337
19338cat >>confdefs.h <<\_ACEOF
19339#define HAVE_GET_ZONE_COUNTS 1
19340_ACEOF
19341
19342 fi
bf9f3bac 19343
bf9f3bac 19344
c5f70460
BB
19345
19346
bf9f3bac 19347fi
c5f70460
BB
19348
19349 rm -Rf build
19350
bf9f3bac 19351
19352
8934764e 19353
7119bf70
BB
19354 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
19355$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
19356 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
19357 $LINUX_OBJ/Module*.symvers 2>/dev/null
19358 rc=$?
19359 if test $rc -ne 0; then
19360 export=0
19361 for file in ; do
19362 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
19363 "$LINUX_OBJ/$file" 2>/dev/null
19364 rc=$?
19365 if test $rc -eq 0; then
19366 export=1
19367 break;
19368 fi
19369 done
19370 if test $export -eq 0; then
19371 { $as_echo "$as_me:$LINENO: result: no" >&5
19372$as_echo "no" >&6; }
19373
19374 else
19375 { $as_echo "$as_me:$LINENO: result: yes" >&5
19376$as_echo "yes" >&6; }
19377
19378cat >>confdefs.h <<\_ACEOF
19379#define HAVE_USER_PATH_DIR 1
19380_ACEOF
19381
19382 fi
19383 else
19384 { $as_echo "$as_me:$LINENO: result: yes" >&5
19385$as_echo "yes" >&6; }
19386
19387cat >>confdefs.h <<\_ACEOF
19388#define HAVE_USER_PATH_DIR 1
19389_ACEOF
19390
19391 fi
19392
19393
19394
8934764e
BB
19395 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
19396$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
19397 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
19398 $LINUX_OBJ/Module*.symvers 2>/dev/null
19399 rc=$?
19400 if test $rc -ne 0; then
19401 export=0
19402 for file in ; do
19403 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
19404 "$LINUX_OBJ/$file" 2>/dev/null
19405 rc=$?
19406 if test $rc -eq 0; then
19407 export=1
19408 break;
19409 fi
19410 done
19411 if test $export -eq 0; then
19412 { $as_echo "$as_me:$LINENO: result: no" >&5
19413$as_echo "no" >&6; }
19414
19415 else
19416 { $as_echo "$as_me:$LINENO: result: yes" >&5
19417$as_echo "yes" >&6; }
19418
19419cat >>confdefs.h <<\_ACEOF
19420#define HAVE_SET_FS_PWD 1
19421_ACEOF
19422
19423 fi
19424 else
19425 { $as_echo "$as_me:$LINENO: result: yes" >&5
19426$as_echo "yes" >&6; }
19427
19428cat >>confdefs.h <<\_ACEOF
19429#define HAVE_SET_FS_PWD 1
19430_ACEOF
19431
19432 fi
19433
19434
19435 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
19436$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
bf9f3bac 19437
d1ff2312 19438
dbe561d8 19439cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19440/* confdefs.h. */
d1ff2312 19441_ACEOF
6ae7fef5
BB
19442cat confdefs.h >>conftest.$ac_ext
19443cat >>conftest.$ac_ext <<_ACEOF
19444/* end confdefs.h. */
d1ff2312 19445
d1ff2312 19446
8934764e
BB
19447 #include <linux/sched.h>
19448 #include <linux/fs_struct.h>
d1ff2312 19449
6ae7fef5
BB
19450int
19451main (void)
19452{
d1ff2312 19453
8934764e 19454 set_fs_pwd(NULL, NULL);
d1ff2312 19455
6ae7fef5
BB
19456 ;
19457 return 0;
19458}
d1ff2312 19459
6ae7fef5 19460_ACEOF
d1ff2312 19461
d1ff2312 19462
6ae7fef5
BB
19463 rm -Rf build && mkdir -p build
19464 echo "obj-m := conftest.o" >build/Makefile
19465 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467 (eval $ac_try) 2>&5
19468 ac_status=$?
8934764e 19469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19470 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
8934764e 19474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 19475 (exit $ac_status); }; }; then
d1ff2312 19476
8934764e
BB
19477 { $as_echo "$as_me:$LINENO: result: yes" >&5
19478$as_echo "yes" >&6; }
d1ff2312
BB
19479
19480cat >>confdefs.h <<\_ACEOF
8934764e 19481#define HAVE_2ARGS_SET_FS_PWD 1
d1ff2312
BB
19482_ACEOF
19483
5232d256 19484
6ae7fef5 19485else
8934764e 19486 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19487sed 's/^/| /' conftest.$ac_ext >&5
5232d256 19488
8934764e
BB
19489 { $as_echo "$as_me:$LINENO: result: no" >&5
19490$as_echo "no" >&6; }
5232d256
BB
19491
19492
36b313da 19493
6ae7fef5
BB
19494fi
19495
19496 rm -Rf build
19497
36b313da 19498
36b313da 19499
8934764e
BB
19500 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
19501$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
19502
19503
dbe561d8 19504cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19505/* confdefs.h. */
36b313da 19506_ACEOF
6ae7fef5
BB
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h. */
36b313da 19510
36b313da 19511
8934764e 19512 #include <linux/fs.h>
36b313da 19513
6ae7fef5
BB
19514int
19515main (void)
19516{
36b313da 19517
8934764e 19518 vfs_unlink(NULL, NULL);
36b313da 19519
6ae7fef5
BB
19520 ;
19521 return 0;
19522}
36b313da 19523
36b313da
BB
19524_ACEOF
19525
6ae7fef5
BB
19526
19527 rm -Rf build && mkdir -p build
19528 echo "obj-m := conftest.o" >build/Makefile
19529 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
8934764e 19533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19534 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
8934764e 19538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19539 (exit $ac_status); }; }; then
19540
8934764e
BB
19541 { $as_echo "$as_me:$LINENO: result: yes" >&5
19542$as_echo "yes" >&6; }
36b313da
BB
19543
19544cat >>confdefs.h <<\_ACEOF
8934764e 19545#define HAVE_2ARGS_VFS_UNLINK 1
36b313da
BB
19546_ACEOF
19547
36b313da 19548
6ae7fef5 19549else
8934764e 19550 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19551sed 's/^/| /' conftest.$ac_ext >&5
36b313da 19552
8934764e
BB
19553 { $as_echo "$as_me:$LINENO: result: no" >&5
19554$as_echo "no" >&6; }
36b313da 19555
36b313da 19556
36b313da 19557
6ae7fef5 19558fi
36b313da 19559
6ae7fef5
BB
19560 rm -Rf build
19561
19562
19563
8934764e
BB
19564 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
19565$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
19566
19567
dbe561d8 19568cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 19569/* confdefs.h. */
36b313da 19570_ACEOF
6ae7fef5
BB
19571cat confdefs.h >>conftest.$ac_ext
19572cat >>conftest.$ac_ext <<_ACEOF
19573/* end confdefs.h. */
36b313da 19574
36b313da 19575
8934764e 19576 #include <linux/fs.h>
36b313da 19577
6ae7fef5
BB
19578int
19579main (void)
19580{
36b313da 19581
8934764e 19582 vfs_rename(NULL, NULL, NULL, NULL);
5232d256 19583
6ae7fef5
BB
19584 ;
19585 return 0;
19586}
5232d256 19587
5232d256
BB
19588_ACEOF
19589
6ae7fef5
BB
19590
19591 rm -Rf build && mkdir -p build
19592 echo "obj-m := conftest.o" >build/Makefile
19593 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
8934764e 19597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19598 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19601 ac_status=$?
8934764e 19602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
19603 (exit $ac_status); }; }; then
19604
8934764e
BB
19605 { $as_echo "$as_me:$LINENO: result: yes" >&5
19606$as_echo "yes" >&6; }
5232d256
BB
19607
19608cat >>confdefs.h <<\_ACEOF
8934764e 19609#define HAVE_4ARGS_VFS_RENAME 1
5232d256
BB
19610_ACEOF
19611
5232d256 19612
9b2048c2
BB
19613else
19614 $as_echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 { $as_echo "$as_me:$LINENO: result: no" >&5
19618$as_echo "no" >&6; }
19619
19620
19621
19622fi
19623
19624 rm -Rf build
19625
19626
19627
19628
0d0b5237
BB
19629 { $as_echo "$as_me:$LINENO: checking whether symbol vfs_fsync is exported" >&5
19630$as_echo_n "checking whether symbol vfs_fsync is exported... " >&6; }
19631 grep -q -E '[[:space:]]vfs_fsync[[:space:]]' \
19632 $LINUX_OBJ/Module*.symvers 2>/dev/null
19633 rc=$?
19634 if test $rc -ne 0; then
19635 export=0
19636 for file in fs/sync.c; do
19637 grep -q -E "EXPORT_SYMBOL.*(vfs_fsync)" \
19638 "$LINUX_OBJ/$file" 2>/dev/null
19639 rc=$?
19640 if test $rc -eq 0; then
19641 export=1
19642 break;
19643 fi
19644 done
19645 if test $export -eq 0; then
19646 { $as_echo "$as_me:$LINENO: result: no" >&5
19647$as_echo "no" >&6; }
19648
19649 else
19650 { $as_echo "$as_me:$LINENO: result: yes" >&5
19651$as_echo "yes" >&6; }
19652
19653cat >>confdefs.h <<\_ACEOF
19654#define HAVE_VFS_FSYNC 1
19655_ACEOF
19656
19657 fi
19658 else
19659 { $as_echo "$as_me:$LINENO: result: yes" >&5
19660$as_echo "yes" >&6; }
19661
19662cat >>confdefs.h <<\_ACEOF
19663#define HAVE_VFS_FSYNC 1
19664_ACEOF
19665
19666 fi
19667
19668
19669
19670 { $as_echo "$as_me:$LINENO: checking whether vfs_fsync() wants 2 args" >&5
19671$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
19672
19673
19674cat confdefs.h - <<_ACEOF >conftest.c
19675/* confdefs.h. */
19676_ACEOF
19677cat confdefs.h >>conftest.$ac_ext
19678cat >>conftest.$ac_ext <<_ACEOF
19679/* end confdefs.h. */
19680
19681
19682 #include <linux/fs.h>
19683
19684int
19685main (void)
19686{
19687
19688 vfs_fsync(NULL, 0);
19689
19690 ;
19691 return 0;
19692}
19693
19694_ACEOF
19695
19696
19697 rm -Rf build && mkdir -p build
19698 echo "obj-m := conftest.o" >build/Makefile
19699 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710
19711 { $as_echo "$as_me:$LINENO: result: yes" >&5
19712$as_echo "yes" >&6; }
19713
19714cat >>confdefs.h <<\_ACEOF
19715#define HAVE_2ARGS_VFS_FSYNC 1
19716_ACEOF
19717
19718
19719else
19720 $as_echo "$as_me: failed program was:" >&5
19721sed 's/^/| /' conftest.$ac_ext >&5
19722
19723 { $as_echo "$as_me:$LINENO: result: no" >&5
19724$as_echo "no" >&6; }
19725
19726
19727
19728fi
19729
19730 rm -Rf build
19731
19732
19733
19734
9b2048c2
BB
19735 { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
19736$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
97fd6a07
BB
19737 tmp_flags="$EXTRA_KCFLAGS"
19738 EXTRA_KCFLAGS="-Werror"
9b2048c2
BB
19739
19740
19741cat confdefs.h - <<_ACEOF >conftest.c
19742/* confdefs.h. */
19743_ACEOF
19744cat confdefs.h >>conftest.$ac_ext
19745cat >>conftest.$ac_ext <<_ACEOF
19746/* end confdefs.h. */
19747
19748
19749 #include <linux/sched.h>
19750 #include <linux/fs_struct.h>
19751
19752int
19753main (void)
19754{
19755
19756 struct fs_struct fs;
19757 spin_lock_init(&fs.lock);
19758
19759 ;
19760 return 0;
19761}
19762
19763_ACEOF
19764
19765
19766 rm -Rf build && mkdir -p build
19767 echo "obj-m := conftest.o" >build/Makefile
19768 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19771 ac_status=$?
19772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779
19780 { $as_echo "$as_me:$LINENO: result: yes" >&5
19781$as_echo "yes" >&6; }
19782
19783cat >>confdefs.h <<\_ACEOF
19784#define HAVE_FS_STRUCT_SPINLOCK 1
19785_ACEOF
19786
19787
6ae7fef5 19788else
8934764e 19789 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 19790sed 's/^/| /' conftest.$ac_ext >&5
5232d256 19791
8934764e
BB
19792 { $as_echo "$as_me:$LINENO: result: no" >&5
19793$as_echo "no" >&6; }
4ab13d3b 19794
4ab13d3b 19795
4ab13d3b 19796
6ae7fef5 19797fi
4ab13d3b 19798
6ae7fef5 19799 rm -Rf build
96dded38
BB
19800
19801
97fd6a07 19802 EXTRA_KCFLAGS="$tmp_flags"
96dded38 19803
8934764e
BB
19804
19805 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
19806$as_echo_n "checking whether struct cred exists... " >&6; }
96dded38
BB
19807
19808
dbe561d8 19809cat confdefs.h - <<_ACEOF >conftest.c
96dded38
BB
19810/* confdefs.h. */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h. */
19815
19816
8934764e 19817 #include <linux/cred.h>
96dded38
BB
19818
19819int
19820main (void)
19821{
19822
03318641 19823 struct cred *cr __attribute__ ((unused));
8934764e 19824 cr = NULL;
96dded38
BB
19825
19826 ;
19827 return 0;
19828}
19829
19830_ACEOF
19831
19832
19833 rm -Rf build && mkdir -p build
19834 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19835 if { 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
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
8934764e 19839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
19840 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19843 ac_status=$?
8934764e 19844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
19845 (exit $ac_status); }; }; then
19846
8934764e
BB
19847 { $as_echo "$as_me:$LINENO: result: yes" >&5
19848$as_echo "yes" >&6; }
96dded38
BB
19849
19850cat >>confdefs.h <<\_ACEOF
8934764e 19851#define HAVE_CRED_STRUCT 1
96dded38
BB
19852_ACEOF
19853
19854
19855else
8934764e 19856 $as_echo "$as_me: failed program was:" >&5
96dded38
BB
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
8934764e
BB
19859 { $as_echo "$as_me:$LINENO: result: no" >&5
19860$as_echo "no" >&6; }
96dded38
BB
19861
19862
19863
19864fi
19865
19866 rm -Rf build
19867
4ab13d3b
BB
19868
19869
19870
8934764e
BB
19871 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
19872$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
19873 grep -q -E '[[:space:]]groups_search[[:space:]]' \
19874 $LINUX_OBJ/Module*.symvers 2>/dev/null
19875 rc=$?
19876 if test $rc -ne 0; then
19877 export=0
19878 for file in ; do
19879 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
19880 "$LINUX_OBJ/$file" 2>/dev/null
19881 rc=$?
19882 if test $rc -eq 0; then
19883 export=1
19884 break;
19885 fi
19886 done
19887 if test $export -eq 0; then
19888 { $as_echo "$as_me:$LINENO: result: no" >&5
19889$as_echo "no" >&6; }
19890
19891 else
19892 { $as_echo "$as_me:$LINENO: result: yes" >&5
19893$as_echo "yes" >&6; }
19894
19895cat >>confdefs.h <<\_ACEOF
19896#define HAVE_GROUPS_SEARCH 1
19897_ACEOF
19898
19899 fi
19900 else
19901 { $as_echo "$as_me:$LINENO: result: yes" >&5
19902$as_echo "yes" >&6; }
19903
19904cat >>confdefs.h <<\_ACEOF
19905#define HAVE_GROUPS_SEARCH 1
19906_ACEOF
19907
19908 fi
19909
19910
19911
19912 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
19913$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
19914 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
19915 $LINUX_OBJ/Module*.symvers 2>/dev/null
19916 rc=$?
19917 if test $rc -ne 0; then
19918 export=0
19919 for file in ; do
19920 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
19921 "$LINUX_OBJ/$file" 2>/dev/null
19922 rc=$?
19923 if test $rc -eq 0; then
19924 export=1
19925 break;
19926 fi
19927 done
19928 if test $export -eq 0; then
19929 { $as_echo "$as_me:$LINENO: result: no" >&5
19930$as_echo "no" >&6; }
19931
19932 else
19933 { $as_echo "$as_me:$LINENO: result: yes" >&5
19934$as_echo "yes" >&6; }
19935
19936cat >>confdefs.h <<\_ACEOF
19937#define HAVE_PUT_TASK_STRUCT 1
19938_ACEOF
19939
19940 fi
19941 else
19942 { $as_echo "$as_me:$LINENO: result: yes" >&5
19943$as_echo "yes" >&6; }
19944
19945cat >>confdefs.h <<\_ACEOF
19946#define HAVE_PUT_TASK_STRUCT 1
19947_ACEOF
19948
19949 fi
19950
19951
19952
19953 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
19954$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
e11d6c5f
BB
19955
19956
dbe561d8 19957cat confdefs.h - <<_ACEOF >conftest.c
e11d6c5f
BB
19958/* confdefs.h. */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h. */
19963
19964
8934764e 19965 #include <linux/sysctl.h>
e11d6c5f 19966
8934764e
BB
19967int
19968main (void)
19969{
19970
19971 proc_dostring(NULL, 0, NULL, NULL, NULL);
e11d6c5f
BB
19972
19973 ;
19974 return 0;
19975}
19976
19977_ACEOF
19978
19979
19980 rm -Rf build && mkdir -p build
19981 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 19982 if { 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
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
8934764e 19986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
19987 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
19988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989 (eval $ac_try) 2>&5
19990 ac_status=$?
8934764e 19991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
19992 (exit $ac_status); }; }; then
19993
8934764e
BB
19994 { $as_echo "$as_me:$LINENO: result: yes" >&5
19995$as_echo "yes" >&6; }
19996
19997cat >>confdefs.h <<\_ACEOF
19998#define HAVE_5ARGS_PROC_HANDLER 1
19999_ACEOF
20000
6ae7fef5
BB
20001
20002else
8934764e 20003 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
8934764e
BB
20006 { $as_echo "$as_me:$LINENO: result: no" >&5
20007$as_echo "no" >&6; }
e11d6c5f 20008
e11d6c5f
BB
20009
20010
8934764e 20011fi
e11d6c5f 20012
8934764e
BB
20013 rm -Rf build
20014
20015
20016
20017
b868e22f
BB
20018 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
20019$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
20020 grep -q -E '[[:space:]]kvasprintf[[: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 ; do
20026 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
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_KVASPRINTF 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_KVASPRINTF 1
20053_ACEOF
20054
20055 fi
20056
20057
20058
46aa7b39
NB
20059 { $as_echo "$as_me:$LINENO: checking whether symbol rwsem_is_locked is exported" >&5
20060$as_echo_n "checking whether symbol rwsem_is_locked is exported... " >&6; }
20061 grep -q -E '[[:space:]]rwsem_is_locked[[:space:]]' \
20062 $LINUX_OBJ/Module*.symvers 2>/dev/null
20063 rc=$?
20064 if test $rc -ne 0; then
20065 export=0
20066 for file in lib/rwsem-spinlock.c; do
20067 grep -q -E "EXPORT_SYMBOL.*(rwsem_is_locked)" \
20068 "$LINUX_OBJ/$file" 2>/dev/null
20069 rc=$?
20070 if test $rc -eq 0; then
20071 export=1
20072 break;
20073 fi
20074 done
20075 if test $export -eq 0; then
20076 { $as_echo "$as_me:$LINENO: result: no" >&5
20077$as_echo "no" >&6; }
20078
20079 else
20080 { $as_echo "$as_me:$LINENO: result: yes" >&5
20081$as_echo "yes" >&6; }
20082
20083cat >>confdefs.h <<\_ACEOF
20084#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
20085_ACEOF
20086
20087 fi
20088 else
20089 { $as_echo "$as_me:$LINENO: result: yes" >&5
20090$as_echo "yes" >&6; }
20091
20092cat >>confdefs.h <<\_ACEOF
20093#define RWSEM_IS_LOCKED_TAKES_WAIT_LOCK 1
20094_ACEOF
20095
20096 fi
20097
20098
20099
914b0631
BB
20100 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes is exported" >&5
20101$as_echo_n "checking whether symbol invalidate_inodes is exported... " >&6; }
20102 grep -q -E '[[:space:]]invalidate_inodes[[:space:]]' \
20103 $LINUX_OBJ/Module*.symvers 2>/dev/null
20104 rc=$?
20105 if test $rc -ne 0; then
20106 export=0
20107 for file in ; do
20108 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes)" \
20109 "$LINUX_OBJ/$file" 2>/dev/null
20110 rc=$?
20111 if test $rc -eq 0; then
20112 export=1
20113 break;
20114 fi
20115 done
20116 if test $export -eq 0; then
20117 { $as_echo "$as_me:$LINENO: result: no" >&5
20118$as_echo "no" >&6; }
20119
20120 else
20121 { $as_echo "$as_me:$LINENO: result: yes" >&5
20122$as_echo "yes" >&6; }
20123
20124cat >>confdefs.h <<\_ACEOF
20125#define HAVE_INVALIDATE_INODES 1
20126_ACEOF
20127
20128 fi
20129 else
20130 { $as_echo "$as_me:$LINENO: result: yes" >&5
20131$as_echo "yes" >&6; }
20132
20133cat >>confdefs.h <<\_ACEOF
20134#define HAVE_INVALIDATE_INODES 1
20135_ACEOF
20136
20137 fi
20138
5f6c14b1
BB
20139 { $as_echo "$as_me:$LINENO: checking whether symbol invalidate_inodes_check is exported" >&5
20140$as_echo_n "checking whether symbol invalidate_inodes_check is exported... " >&6; }
20141 grep -q -E '[[:space:]]invalidate_inodes_check[[:space:]]' \
20142 $LINUX_OBJ/Module*.symvers 2>/dev/null
20143 rc=$?
20144 if test $rc -ne 0; then
20145 export=0
20146 for file in ; do
20147 grep -q -E "EXPORT_SYMBOL.*(invalidate_inodes_check)" \
20148 "$LINUX_OBJ/$file" 2>/dev/null
20149 rc=$?
20150 if test $rc -eq 0; then
20151 export=1
20152 break;
20153 fi
20154 done
20155 if test $export -eq 0; then
20156 { $as_echo "$as_me:$LINENO: result: no" >&5
20157$as_echo "no" >&6; }
20158
20159 else
20160 { $as_echo "$as_me:$LINENO: result: yes" >&5
20161$as_echo "yes" >&6; }
20162
20163cat >>confdefs.h <<\_ACEOF
20164#define HAVE_INVALIDATE_INODES_CHECK 1
20165_ACEOF
20166
20167 fi
20168 else
20169 { $as_echo "$as_me:$LINENO: result: yes" >&5
20170$as_echo "yes" >&6; }
20171
20172cat >>confdefs.h <<\_ACEOF
20173#define HAVE_INVALIDATE_INODES_CHECK 1
20174_ACEOF
20175
20176 fi
20177
914b0631 20178
9b0f9079
BB
20179 { $as_echo "$as_me:$LINENO: checking whether invalidate_inodes() wants 2 args" >&5
20180$as_echo_n "checking whether invalidate_inodes() wants 2 args... " >&6; }
20181
20182
20183cat confdefs.h - <<_ACEOF >conftest.c
20184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
20189
20190
20191 #include <linux/fs.h>
20192
20193int
20194main (void)
20195{
20196
20197 return __invalidate_device(NULL, 0);
20198
20199 ;
20200 return 0;
20201}
20202
20203_ACEOF
20204
20205
20206 rm -Rf build && mkdir -p build
20207 echo "obj-m := conftest.o" >build/Makefile
20208 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20210 (eval $ac_try) 2>&5
20211 ac_status=$?
20212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219
20220 { $as_echo "$as_me:$LINENO: result: yes" >&5
20221$as_echo "yes" >&6; }
20222
20223cat >>confdefs.h <<\_ACEOF
20224#define HAVE_2ARGS_INVALIDATE_INODES 1
20225_ACEOF
20226
20227
20228else
20229 $as_echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 { $as_echo "$as_me:$LINENO: result: no" >&5
20233$as_echo "no" >&6; }
20234
20235
20236
20237fi
20238
20239 rm -Rf build
20240
20241
20242
914b0631 20243
e76f4bf1
BB
20244 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_dcache_memory is exported" >&5
20245$as_echo_n "checking whether symbol shrink_dcache_memory is exported... " >&6; }
20246 grep -q -E '[[:space:]]shrink_dcache_memory[[:space:]]' \
20247 $LINUX_OBJ/Module*.symvers 2>/dev/null
20248 rc=$?
20249 if test $rc -ne 0; then
20250 export=0
20251 for file in fs/dcache.c; do
20252 grep -q -E "EXPORT_SYMBOL.*(shrink_dcache_memory)" \
20253 "$LINUX_OBJ/$file" 2>/dev/null
20254 rc=$?
20255 if test $rc -eq 0; then
20256 export=1
20257 break;
20258 fi
20259 done
20260 if test $export -eq 0; then
20261 { $as_echo "$as_me:$LINENO: result: no" >&5
20262$as_echo "no" >&6; }
20263
20264 else
20265 { $as_echo "$as_me:$LINENO: result: yes" >&5
20266$as_echo "yes" >&6; }
20267
20268cat >>confdefs.h <<\_ACEOF
20269#define HAVE_SHRINK_DCACHE_MEMORY 1
20270_ACEOF
20271
20272 fi
20273 else
20274 { $as_echo "$as_me:$LINENO: result: yes" >&5
20275$as_echo "yes" >&6; }
20276
20277cat >>confdefs.h <<\_ACEOF
20278#define HAVE_SHRINK_DCACHE_MEMORY 1
20279_ACEOF
20280
20281 fi
20282
20283
20284
20285 { $as_echo "$as_me:$LINENO: checking whether symbol shrink_icache_memory is exported" >&5
20286$as_echo_n "checking whether symbol shrink_icache_memory is exported... " >&6; }
20287 grep -q -E '[[:space:]]shrink_icache_memory[[:space:]]' \
20288 $LINUX_OBJ/Module*.symvers 2>/dev/null
20289 rc=$?
20290 if test $rc -ne 0; then
20291 export=0
20292 for file in fs/inode.c; do
20293 grep -q -E "EXPORT_SYMBOL.*(shrink_icache_memory)" \
20294 "$LINUX_OBJ/$file" 2>/dev/null
20295 rc=$?
20296 if test $rc -eq 0; then
20297 export=1
20298 break;
20299 fi
20300 done
20301 if test $export -eq 0; then
20302 { $as_echo "$as_me:$LINENO: result: no" >&5
20303$as_echo "no" >&6; }
20304
20305 else
20306 { $as_echo "$as_me:$LINENO: result: yes" >&5
20307$as_echo "yes" >&6; }
20308
20309cat >>confdefs.h <<\_ACEOF
20310#define HAVE_SHRINK_ICACHE_MEMORY 1
20311_ACEOF
20312
20313 fi
20314 else
20315 { $as_echo "$as_me:$LINENO: result: yes" >&5
20316$as_echo "yes" >&6; }
20317
20318cat >>confdefs.h <<\_ACEOF
20319#define HAVE_SHRINK_ICACHE_MEMORY 1
20320_ACEOF
20321
20322 fi
20323
20324
20325
12ff95ff
BB
20326
20327 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent exists in header" >&5
20328$as_echo_n "checking whether symbol kern_path_parent exists in header... " >&6; }
20329 header=0
20330 for file in include/linux/namei.h; do
20331 grep -q "int kern_path_parent(const char \*, struct nameidata \*)" "$LINUX/$file" 2>/dev/null
20332 rc=$?
20333 if test $rc -eq 0; then
20334 header=1
20335 break;
20336 fi
20337 done
20338 if test $header -eq 0; then
20339 { $as_echo "$as_me:$LINENO: result: no" >&5
20340$as_echo "no" >&6; }
20341
20342 else
20343 { $as_echo "$as_me:$LINENO: result: yes" >&5
20344$as_echo "yes" >&6; }
20345
20346cat >>confdefs.h <<\_ACEOF
20347#define HAVE_KERN_PATH_PARENT_HEADER 1
20348_ACEOF
20349
20350 fi
20351
20352
20353
b1cbc461
BB
20354 { $as_echo "$as_me:$LINENO: checking whether symbol kern_path_parent is exported" >&5
20355$as_echo_n "checking whether symbol kern_path_parent is exported... " >&6; }
20356 grep -q -E '[[:space:]]kern_path_parent[[:space:]]' \
20357 $LINUX_OBJ/Module*.symvers 2>/dev/null
20358 rc=$?
20359 if test $rc -ne 0; then
20360 export=0
20361 for file in fs/namei.c; do
20362 grep -q -E "EXPORT_SYMBOL.*(kern_path_parent)" \
20363 "$LINUX_OBJ/$file" 2>/dev/null
20364 rc=$?
20365 if test $rc -eq 0; then
20366 export=1
20367 break;
20368 fi
20369 done
20370 if test $export -eq 0; then
20371 { $as_echo "$as_me:$LINENO: result: no" >&5
20372$as_echo "no" >&6; }
20373
20374 else
20375 { $as_echo "$as_me:$LINENO: result: yes" >&5
20376$as_echo "yes" >&6; }
20377
20378cat >>confdefs.h <<\_ACEOF
12ff95ff 20379#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
20380_ACEOF
20381
20382 fi
20383 else
20384 { $as_echo "$as_me:$LINENO: result: yes" >&5
20385$as_echo "yes" >&6; }
20386
20387cat >>confdefs.h <<\_ACEOF
12ff95ff 20388#define HAVE_KERN_PATH_PARENT_SYMBOL 1
b1cbc461
BB
20389_ACEOF
20390
20391 fi
20392
20393
3dfc591a
BB
20394 { $as_echo "$as_me:$LINENO: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
20395$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
20396
20397
20398cat confdefs.h - <<_ACEOF >conftest.c
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404
20405
20406 #include <linux/zlib.h>
20407
20408int
20409main (void)
20410{
20411
20412 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
20413
20414 ;
20415 return 0;
20416}
20417
20418_ACEOF
20419
20420
20421 rm -Rf build && mkdir -p build
20422 echo "obj-m := conftest.o" >build/Makefile
20423 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20426 ac_status=$?
20427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434
20435 { $as_echo "$as_me:$LINENO: result: yes" >&5
20436$as_echo "yes" >&6; }
20437
20438cat >>confdefs.h <<\_ACEOF
20439#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1
20440_ACEOF
20441
20442
20443else
20444 $as_echo "$as_me: failed program was:" >&5
20445sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 { $as_echo "$as_me:$LINENO: result: no" >&5
20448$as_echo "no" >&6; }
a55bcaad
BB
20449
20450
20451
20452fi
20453
20454 rm -Rf build
20455
20456
20457
20458
20459 { $as_echo "$as_me:$LINENO: checking whether struct shrink_control exists" >&5
20460$as_echo_n "checking whether struct shrink_control exists... " >&6; }
20461
20462
20463cat confdefs.h - <<_ACEOF >conftest.c
20464/* confdefs.h. */
20465_ACEOF
20466cat confdefs.h >>conftest.$ac_ext
20467cat >>conftest.$ac_ext <<_ACEOF
20468/* end confdefs.h. */
20469
20470
20471 #include <linux/mm.h>
20472
20473int
20474main (void)
20475{
20476
20477 struct shrink_control sc __attribute__ ((unused));
20478
20479 sc.nr_to_scan = 0;
20480 sc.gfp_mask = GFP_KERNEL;
20481
20482 ;
20483 return 0;
20484}
20485
20486_ACEOF
20487
20488
20489 rm -Rf build && mkdir -p build
20490 echo "obj-m := conftest.o" >build/Makefile
20491 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20494 ac_status=$?
20495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498 (eval $ac_try) 2>&5
20499 ac_status=$?
20500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); }; }; then
20502
20503 { $as_echo "$as_me:$LINENO: result: yes" >&5
20504$as_echo "yes" >&6; }
20505
20506cat >>confdefs.h <<\_ACEOF
20507#define HAVE_SHRINK_CONTROL_STRUCT 1
20508_ACEOF
20509
20510
20511else
20512 $as_echo "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
20514
20515 { $as_echo "$as_me:$LINENO: result: no" >&5
20516$as_echo "no" >&6; }
3dfc591a
BB
20517
20518
20519
20520fi
20521
20522 rm -Rf build
20523
20524
20525
b1cbc461 20526
588d9004
DH
20527 { $as_echo "$as_me:$LINENO: checking whether struct rw_semaphore member wait_lock is raw" >&5
20528$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
20529 tmp_flags="$EXTRA_KCFLAGS"
20530 EXTRA_KCFLAGS="-Werror"
20531
20532
20533cat confdefs.h - <<_ACEOF >conftest.c
20534/* confdefs.h. */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h. */
20539
20540
20541 #include <linux/rwsem.h>
20542
20543int
20544main (void)
20545{
20546
20547 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
20548 raw_spinlock_t dummy_lock __attribute__ ((unused));
20549 dummy_semaphore.wait_lock = dummy_lock;
20550
20551 ;
20552 return 0;
20553}
20554
20555_ACEOF
20556
20557
20558 rm -Rf build && mkdir -p build
20559 echo "obj-m := conftest.o" >build/Makefile
20560 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
20566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20567 (eval $ac_try) 2>&5
20568 ac_status=$?
20569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); }; }; then
20571
20572 { $as_echo "$as_me:$LINENO: result: yes" >&5
20573$as_echo "yes" >&6; }
20574
20575cat >>confdefs.h <<\_ACEOF
20576#define RWSEM_SPINLOCK_IS_RAW 1
20577_ACEOF
20578
20579
20580else
20581 $as_echo "$as_me: failed program was:" >&5
20582sed 's/^/| /' conftest.$ac_ext >&5
20583
20584 { $as_echo "$as_me:$LINENO: result: no" >&5
20585$as_echo "no" >&6; }
20586
20587
20588
20589fi
20590
20591 rm -Rf build
20592
20593
20594 EXTRA_KCFLAGS="$tmp_flags"
20595
20596
ad35b6a6 20597 ;;
8934764e
BB
20598 srpm) ;;
20599 *)
20600 { $as_echo "$as_me:$LINENO: result: Error!" >&5
20601$as_echo "Error!" >&6; }
20602 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
20603 user kernel|user|all|srpm" >&5
20604$as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
20605 user kernel|user|all|srpm" >&2;}
20606 { (exit 1); exit 1; }; } ;;
20607 esac
20608
20609 if test "$SPL_CONFIG" = user ||
20610 test "$SPL_CONFIG" = all; then
20611 CONFIG_USER_TRUE=
20612 CONFIG_USER_FALSE='#'
20613else
20614 CONFIG_USER_TRUE='#'
20615 CONFIG_USER_FALSE=
20616fi
20617
20618 if test "$SPL_CONFIG" = kernel ||
20619 test "$SPL_CONFIG" = all; then
20620 CONFIG_KERNEL_TRUE=
20621 CONFIG_KERNEL_FALSE='#'
20622else
20623 CONFIG_KERNEL_TRUE='#'
20624 CONFIG_KERNEL_FALSE=
20625fi
20626
20627
20628
c2dceb5c 20629ac_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
20630
20631
20632cat >confcache <<\_ACEOF
20633# This file is a shell script that caches the results of configure
20634# tests run on this system so they can be shared between configure
20635# scripts and configure runs, see configure's option --config-cache.
20636# It is not useful on other systems. If it contains results you don't
20637# want to keep, you may remove or edit it.
20638#
20639# config.status only pays attention to the cache file if you give it
20640# the --recheck option to rerun configure.
20641#
20642# `ac_cv_env_foo' variables (set or unset) will be overridden when
20643# loading this file, other *unset* `ac_cv_foo' will be assigned the
20644# following values.
6ae7fef5 20645
6ae7fef5
BB
20646_ACEOF
20647
8934764e
BB
20648# The following way of writing the cache mishandles newlines in values,
20649# but we know of no workaround that is simple, portable, and efficient.
20650# So, we kill variables containing newlines.
20651# Ultrix sh set writes to stderr and can't be redirected directly,
20652# and sets the high bit in the cache file unless we assign to the vars.
20653(
20654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20655 eval ac_val=\$$ac_var
20656 case $ac_val in #(
20657 *${as_nl}*)
20658 case $ac_var in #(
20659 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20660$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20661 esac
20662 case $ac_var in #(
20663 _ | IFS | as_nl) ;; #(
20664 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20665 *) $as_unset $ac_var ;;
20666 esac ;;
20667 esac
20668 done
6ae7fef5 20669
8934764e
BB
20670 (set) 2>&1 |
20671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20672 *${as_nl}ac_space=\ *)
20673 # `set' does not quote correctly, so add quotes (double-quote
20674 # substitution turns \\\\ into \\, and sed turns \\ into \).
20675 sed -n \
20676 "s/'/'\\\\''/g;
20677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20678 ;; #(
20679 *)
20680 # `set' quotes correctly as required by POSIX, so do not add quotes.
20681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20682 ;;
20683 esac |
20684 sort
20685) |
20686 sed '
20687 /^ac_cv_env_/b end
20688 t clear
20689 :clear
20690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20691 t end
20692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20693 :end' >>confcache
20694if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20695 if test -w "$cache_file"; then
20696 test "x$cache_file" != "x/dev/null" &&
20697 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20698$as_echo "$as_me: updating cache $cache_file" >&6;}
20699 cat confcache >$cache_file
20700 else
20701 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20702$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20703 fi
20704fi
20705rm -f confcache
20706
20707test "x$prefix" = xNONE && prefix=$ac_default_prefix
20708# Let make expand exec_prefix.
20709test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20710
20711DEFS=-DHAVE_CONFIG_H
20712
20713ac_libobjs=
20714ac_ltlibobjs=
20715for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20716 # 1. Remove the extension, and $U if already installed.
20717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20718 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20720 # will be set to the directory where LIBOBJS objects are built.
20721 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20722 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20723done
20724LIBOBJS=$ac_libobjs
20725
20726LTLIBOBJS=$ac_ltlibobjs
20727
20728
20729if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20730 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20731Usually this means the macro was only invoked conditionally." >&5
20732$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20733Usually this means the macro was only invoked conditionally." >&2;}
20734 { (exit 1); exit 1; }; }
20735fi
20736 if test -n "$EXEEXT"; then
20737 am__EXEEXT_TRUE=
20738 am__EXEEXT_FALSE='#'
20739else
20740 am__EXEEXT_TRUE='#'
20741 am__EXEEXT_FALSE=
20742fi
20743
20744if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20745 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20746Usually this means the macro was only invoked conditionally." >&5
20747$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20748Usually this means the macro was only invoked conditionally." >&2;}
20749 { (exit 1); exit 1; }; }
20750fi
20751if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20752 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20753Usually this means the macro was only invoked conditionally." >&5
20754$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20755Usually this means the macro was only invoked conditionally." >&2;}
20756 { (exit 1); exit 1; }; }
20757fi
20758if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
20759 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
20760Usually this means the macro was only invoked conditionally." >&5
20761$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
20762Usually this means the macro was only invoked conditionally." >&2;}
20763 { (exit 1); exit 1; }; }
20764fi
20765if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
20766 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
20767Usually this means the macro was only invoked conditionally." >&5
20768$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
20769Usually this means the macro was only invoked conditionally." >&2;}
20770 { (exit 1); exit 1; }; }
20771fi
20772
20773: ${CONFIG_STATUS=./config.status}
20774ac_write_fail=0
20775ac_clean_files_save=$ac_clean_files
20776ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20777{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20778$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20779cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20780#! $SHELL
20781# Generated by $as_me.
20782# Run this file to recreate the current configuration.
20783# Compiler output produced by configure, useful for debugging
20784# configure, is in config.log if it exists.
20785
20786debug=false
20787ac_cs_recheck=false
20788ac_cs_silent=false
20789SHELL=\${CONFIG_SHELL-$SHELL}
6ae7fef5
BB
20790_ACEOF
20791
8934764e
BB
20792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20793## --------------------- ##
20794## M4sh Initialization. ##
20795## --------------------- ##
20796
20797# Be more Bourne compatible
20798DUALCASE=1; export DUALCASE # for MKS sh
20799if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20800 emulate sh
20801 NULLCMD=:
20802 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20803 # is contrary to our usage. Disable this feature.
20804 alias -g '${1+"$@"}'='"$@"'
20805 setopt NO_GLOB_SUBST
20806else
20807 case `(set -o) 2>/dev/null` in
20808 *posix*) set -o posix ;;
20809esac
20810
20811fi
20812
6ae7fef5
BB
20813
20814
e11d6c5f 20815
8934764e
BB
20816# PATH needs CR
20817# Avoid depending upon Character Ranges.
20818as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20819as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20820as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20821as_cr_digits='0123456789'
20822as_cr_alnum=$as_cr_Letters$as_cr_digits
e11d6c5f 20823
8934764e
BB
20824as_nl='
20825'
20826export as_nl
20827# Printing a long string crashes Solaris 7 /usr/bin/printf.
20828as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20829as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20830as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20831if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20832 as_echo='printf %s\n'
20833 as_echo_n='printf %s'
20834else
20835 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20836 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20837 as_echo_n='/usr/ucb/echo -n'
20838 else
20839 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20840 as_echo_n_body='eval
20841 arg=$1;
20842 case $arg in
20843 *"$as_nl"*)
20844 expr "X$arg" : "X\\(.*\\)$as_nl";
20845 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20846 esac;
20847 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20848 '
20849 export as_echo_n_body
20850 as_echo_n='sh -c $as_echo_n_body as_echo'
20851 fi
20852 export as_echo_body
20853 as_echo='sh -c $as_echo_body as_echo'
51a727e9
BB
20854fi
20855
8934764e
BB
20856# The user is always right.
20857if test "${PATH_SEPARATOR+set}" != set; then
20858 PATH_SEPARATOR=:
20859 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20860 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20861 PATH_SEPARATOR=';'
20862 }
20863fi
51a727e9 20864
8934764e
BB
20865# Support unset when possible.
20866if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20867 as_unset=unset
20868else
20869 as_unset=false
20870fi
51a727e9
BB
20871
20872
8934764e
BB
20873# IFS
20874# We need space, tab and new line, in precisely that order. Quoting is
20875# there to prevent editors from complaining about space-tab.
20876# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20877# splitting by setting IFS to empty value.)
20878IFS=" "" $as_nl"
20879
20880# Find who we are. Look in the path if we contain no directory separator.
20881case $0 in
20882 *[\\/]* ) as_myself=$0 ;;
20883 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20884for as_dir in $PATH
20885do
20886 IFS=$as_save_IFS
20887 test -z "$as_dir" && as_dir=.
20888 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20889done
20890IFS=$as_save_IFS
51a727e9 20891
8934764e
BB
20892 ;;
20893esac
20894# We did not find ourselves, most probably we were run as `sh COMMAND'
20895# in which case we are not to be found in the path.
20896if test "x$as_myself" = x; then
20897 as_myself=$0
20898fi
20899if test ! -f "$as_myself"; then
20900 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20901 { (exit 1); exit 1; }
20902fi
51a727e9 20903
8934764e
BB
20904# Work around bugs in pre-3.0 UWIN ksh.
20905for as_var in ENV MAIL MAILPATH
20906do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20907done
20908PS1='$ '
20909PS2='> '
20910PS4='+ '
51a727e9 20911
8934764e
BB
20912# NLS nuisances.
20913LC_ALL=C
20914export LC_ALL
20915LANGUAGE=C
20916export LANGUAGE
51a727e9 20917
8934764e
BB
20918# Required to use basename.
20919if expr a : '\(a\)' >/dev/null 2>&1 &&
20920 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20921 as_expr=expr
20922else
20923 as_expr=false
20924fi
51a727e9 20925
8934764e
BB
20926if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20927 as_basename=basename
20928else
20929 as_basename=false
20930fi
51a727e9 20931
51a727e9 20932
8934764e
BB
20933# Name of the executable.
20934as_me=`$as_basename -- "$0" ||
20935$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20936 X"$0" : 'X\(//\)$' \| \
20937 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20938$as_echo X/"$0" |
20939 sed '/^.*\/\([^/][^/]*\)\/*$/{
20940 s//\1/
20941 q
20942 }
20943 /^X\/\(\/\/\)$/{
20944 s//\1/
20945 q
20946 }
20947 /^X\/\(\/\).*/{
20948 s//\1/
20949 q
20950 }
20951 s/.*/./; q'`
51a727e9 20952
8934764e
BB
20953# CDPATH.
20954$as_unset CDPATH
51a727e9
BB
20955
20956
51a727e9 20957
8934764e
BB
20958 as_lineno_1=$LINENO
20959 as_lineno_2=$LINENO
20960 test "x$as_lineno_1" != "x$as_lineno_2" &&
20961 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51a727e9 20962
8934764e
BB
20963 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20964 # uniformly replaced by the line number. The first 'sed' inserts a
20965 # line-number line after each line using $LINENO; the second 'sed'
20966 # does the real work. The second script uses 'N' to pair each
20967 # line-number line with the line containing $LINENO, and appends
20968 # trailing '-' during substitution so that $LINENO is not a special
20969 # case at line end.
20970 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20971 # scripts with optimization help from Paolo Bonzini. Blame Lee
20972 # E. McMahon (1931-1989) for sed's syntax. :-)
20973 sed -n '
20974 p
20975 /[$]LINENO/=
20976 ' <$as_myself |
20977 sed '
20978 s/[$]LINENO.*/&-/
20979 t lineno
20980 b
20981 :lineno
20982 N
20983 :loop
20984 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20985 t loop
20986 s/-\n.*//
20987 ' >$as_me.lineno &&
20988 chmod +x "$as_me.lineno" ||
20989 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20990 { (exit 1); exit 1; }; }
51a727e9 20991
8934764e
BB
20992 # Don't try to exec as it changes $[0], causing all sort of problems
20993 # (the dirname of $[0] is not the place where we might find the
20994 # original and so on. Autoconf is especially sensitive to this).
20995 . "./$as_me.lineno"
20996 # Exit status is that of the last command.
20997 exit
20998}
51a727e9 20999
51a727e9 21000
8934764e
BB
21001if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21002 as_dirname=dirname
21003else
21004 as_dirname=false
21005fi
51a727e9 21006
8934764e
BB
21007ECHO_C= ECHO_N= ECHO_T=
21008case `echo -n x` in
21009-n*)
21010 case `echo 'x\c'` in
21011 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21012 *) ECHO_C='\c';;
21013 esac;;
21014*)
21015 ECHO_N='-n';;
21016esac
21017if expr a : '\(a\)' >/dev/null 2>&1 &&
21018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21019 as_expr=expr
21020else
21021 as_expr=false
21022fi
51a727e9 21023
8934764e
BB
21024rm -f conf$$ conf$$.exe conf$$.file
21025if test -d conf$$.dir; then
21026 rm -f conf$$.dir/conf$$.file
21027else
21028 rm -f conf$$.dir
21029 mkdir conf$$.dir 2>/dev/null
21030fi
21031if (echo >conf$$.file) 2>/dev/null; then
21032 if ln -s conf$$.file conf$$ 2>/dev/null; then
21033 as_ln_s='ln -s'
21034 # ... but there are two gotchas:
21035 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21036 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21037 # In both cases, we have to default to `cp -p'.
21038 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21039 as_ln_s='cp -p'
21040 elif ln conf$$.file conf$$ 2>/dev/null; then
21041 as_ln_s=ln
21042 else
21043 as_ln_s='cp -p'
21044 fi
21045else
21046 as_ln_s='cp -p'
21047fi
21048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21049rmdir conf$$.dir 2>/dev/null
51a727e9 21050
8934764e
BB
21051if mkdir -p . 2>/dev/null; then
21052 as_mkdir_p=:
21053else
21054 test -d ./-p && rmdir ./-p
21055 as_mkdir_p=false
21056fi
51a727e9 21057
8934764e
BB
21058if test -x / >/dev/null 2>&1; then
21059 as_test_x='test -x'
21060else
21061 if ls -dL / >/dev/null 2>&1; then
21062 as_ls_L_option=L
21063 else
21064 as_ls_L_option=
21065 fi
21066 as_test_x='
21067 eval sh -c '\''
21068 if test -d "$1"; then
21069 test -d "$1/.";
21070 else
21071 case $1 in
21072 -*)set "./$1";;
21073 esac;
21074 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21075 ???[sx]*):;;*)false;;esac;fi
21076 '\'' sh
21077 '
21078fi
21079as_executable_p=$as_test_x
51a727e9 21080
8934764e
BB
21081# Sed expression to map a string onto a valid CPP name.
21082as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 21083
8934764e
BB
21084# Sed expression to map a string onto a valid variable name.
21085as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 21086
51a727e9 21087
8934764e 21088exec 6>&1
51a727e9 21089
8934764e
BB
21090# Save the log message, to keep $[0] and so on meaningful, and to
21091# report actual input values of CONFIG_FILES etc. instead of their
21092# values after options handling.
21093ac_log="
21094This file was extended by $as_me, which was
21095generated by GNU Autoconf 2.63. Invocation command line was
51a727e9 21096
8934764e
BB
21097 CONFIG_FILES = $CONFIG_FILES
21098 CONFIG_HEADERS = $CONFIG_HEADERS
21099 CONFIG_LINKS = $CONFIG_LINKS
21100 CONFIG_COMMANDS = $CONFIG_COMMANDS
21101 $ $0 $@
51a727e9 21102
8934764e
BB
21103on `(hostname || uname -n) 2>/dev/null | sed 1q`
21104"
a093c6a4 21105
8934764e 21106_ACEOF
a093c6a4 21107
8934764e
BB
21108case $ac_config_files in *"
21109"*) set x $ac_config_files; shift; ac_config_files=$*;;
21110esac
a093c6a4 21111
8934764e
BB
21112case $ac_config_headers in *"
21113"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21114esac
a093c6a4 21115
a093c6a4 21116
8934764e
BB
21117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21118# Files that config.status was made for.
21119config_files="$ac_config_files"
21120config_headers="$ac_config_headers"
21121config_commands="$ac_config_commands"
a093c6a4 21122
a093c6a4 21123_ACEOF
a093c6a4 21124
8934764e
BB
21125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21126ac_cs_usage="\
21127\`$as_me' instantiates files from templates according to the
21128current configuration.
a093c6a4 21129
8934764e 21130Usage: $0 [OPTION]... [FILE]...
a093c6a4 21131
8934764e
BB
21132 -h, --help print this help, then exit
21133 -V, --version print version number and configuration settings, then exit
21134 -q, --quiet, --silent
21135 do not print progress messages
21136 -d, --debug don't remove temporary files
21137 --recheck update $as_me by reconfiguring in the same conditions
21138 --file=FILE[:TEMPLATE]
21139 instantiate the configuration file FILE
21140 --header=FILE[:TEMPLATE]
21141 instantiate the configuration header FILE
a093c6a4 21142
8934764e
BB
21143Configuration files:
21144$config_files
a093c6a4 21145
8934764e
BB
21146Configuration headers:
21147$config_headers
a093c6a4 21148
8934764e
BB
21149Configuration commands:
21150$config_commands
a093c6a4 21151
8934764e 21152Report bugs to <bug-autoconf@gnu.org>."
a093c6a4 21153
8934764e
BB
21154_ACEOF
21155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21156ac_cs_version="\\
21157config.status
21158configured by $0, generated by GNU Autoconf 2.63,
21159 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
a093c6a4 21160
8934764e
BB
21161Copyright (C) 2008 Free Software Foundation, Inc.
21162This config.status script is free software; the Free Software Foundation
21163gives unlimited permission to copy, distribute and modify it."
a093c6a4 21164
8934764e
BB
21165ac_pwd='$ac_pwd'
21166srcdir='$srcdir'
21167INSTALL='$INSTALL'
21168MKDIR_P='$MKDIR_P'
21169AWK='$AWK'
21170test -n "\$AWK" || AWK=awk
a093c6a4
BB
21171_ACEOF
21172
8934764e
BB
21173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21174# The default lists apply if the user does not specify any file.
21175ac_need_defaults=:
21176while test $# != 0
21177do
21178 case $1 in
21179 --*=*)
21180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21181 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21182 ac_shift=:
21183 ;;
21184 *)
21185 ac_option=$1
21186 ac_optarg=$2
21187 ac_shift=shift
21188 ;;
21189 esac
a093c6a4 21190
8934764e
BB
21191 case $ac_option in
21192 # Handling of the options.
21193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21194 ac_cs_recheck=: ;;
21195 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21196 $as_echo "$ac_cs_version"; exit ;;
21197 --debug | --debu | --deb | --de | --d | -d )
21198 debug=: ;;
21199 --file | --fil | --fi | --f )
21200 $ac_shift
21201 case $ac_optarg in
21202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21203 esac
21204 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21205 ac_need_defaults=false;;
21206 --header | --heade | --head | --hea )
21207 $ac_shift
21208 case $ac_optarg in
21209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21210 esac
21211 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21212 ac_need_defaults=false;;
21213 --he | --h)
21214 # Conflict between --help and --header
21215 { $as_echo "$as_me: error: ambiguous option: $1
21216Try \`$0 --help' for more information." >&2
21217 { (exit 1); exit 1; }; };;
21218 --help | --hel | -h )
21219 $as_echo "$ac_cs_usage"; exit ;;
21220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21222 ac_cs_silent=: ;;
21223
21224 # This is an error.
21225 -*) { $as_echo "$as_me: error: unrecognized option: $1
21226Try \`$0 --help' for more information." >&2
21227 { (exit 1); exit 1; }; } ;;
a093c6a4 21228
8934764e
BB
21229 *) ac_config_targets="$ac_config_targets $1"
21230 ac_need_defaults=false ;;
a093c6a4 21231
8934764e
BB
21232 esac
21233 shift
21234done
a093c6a4 21235
8934764e 21236ac_configure_extra_args=
a093c6a4 21237
8934764e
BB
21238if $ac_cs_silent; then
21239 exec 6>/dev/null
21240 ac_configure_extra_args="$ac_configure_extra_args --silent"
a093c6a4
BB
21241fi
21242
8934764e
BB
21243_ACEOF
21244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21245if \$ac_cs_recheck; then
21246 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21247 shift
21248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21249 CONFIG_SHELL='$SHELL'
21250 export CONFIG_SHELL
21251 exec "\$@"
21252fi
a093c6a4 21253
8934764e
BB
21254_ACEOF
21255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21256exec 5>>config.log
21257{
21258 echo
21259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21260## Running $as_me. ##
21261_ASBOX
21262 $as_echo "$ac_log"
21263} >&5
a093c6a4 21264
8934764e
BB
21265_ACEOF
21266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21267#
21268# INIT-COMMANDS
21269#
21270AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a093c6a4 21271
a093c6a4 21272
8934764e
BB
21273# The HP-UX ksh and POSIX shell print the target directory to stdout
21274# if CDPATH is set.
21275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a093c6a4 21276
8934764e
BB
21277sed_quote_subst='$sed_quote_subst'
21278double_quote_subst='$double_quote_subst'
21279delay_variable_subst='$delay_variable_subst'
21280macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21281macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21282enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21283enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21284pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21285enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21286host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21287host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21288host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21289build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21290build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21291build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21292SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21293Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21294GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21295EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21296FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21297LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21298NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21299LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21300max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21301ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21302exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21303lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21304lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21305lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21306reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21307reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21308OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21309deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21310file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21311AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21312AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21313STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21314RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21315old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21316old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21317old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21318CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21319CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21320compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21321GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21322lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21323lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21324lt_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"`'
21325lt_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"`'
21326objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21327SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21328ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21329MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21330lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21331lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21332lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21333lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21334lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21335need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21336DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21337NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21338LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21339OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21340OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21341libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21342shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21343extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21344archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21345enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21346export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21347whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21348compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21349old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21350old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21351archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21352archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21353module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21354module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21355with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21356allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21357no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21358hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21359hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21360hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21361hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21362hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21363hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21364hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21365hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21366inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21367link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21368fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21369always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21370export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21371exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21372include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21373prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21374file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21375variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21376need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21377need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21378version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21379runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21380shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21381shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21382libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21383library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21384soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21385postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21386postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21387finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21388finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21389hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21390sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21391sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21392hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21393enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21394enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21395enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21396old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21397striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21398
21399LTCC='$LTCC'
21400LTCFLAGS='$LTCFLAGS'
21401compiler='$compiler_DEFAULT'
21402
21403# Quote evaled strings.
21404for var in SED \
21405GREP \
21406EGREP \
21407FGREP \
21408LD \
21409NM \
21410LN_S \
21411lt_SP2NL \
21412lt_NL2SP \
21413reload_flag \
21414OBJDUMP \
21415deplibs_check_method \
21416file_magic_cmd \
21417AR \
21418AR_FLAGS \
21419STRIP \
21420RANLIB \
21421CC \
21422CFLAGS \
21423compiler \
21424lt_cv_sys_global_symbol_pipe \
21425lt_cv_sys_global_symbol_to_cdecl \
21426lt_cv_sys_global_symbol_to_c_name_address \
21427lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21428SHELL \
21429ECHO \
21430lt_prog_compiler_no_builtin_flag \
21431lt_prog_compiler_wl \
21432lt_prog_compiler_pic \
21433lt_prog_compiler_static \
21434lt_cv_prog_compiler_c_o \
21435need_locks \
21436DSYMUTIL \
21437NMEDIT \
21438LIPO \
21439OTOOL \
21440OTOOL64 \
21441shrext_cmds \
21442export_dynamic_flag_spec \
21443whole_archive_flag_spec \
21444compiler_needs_object \
21445with_gnu_ld \
21446allow_undefined_flag \
21447no_undefined_flag \
21448hardcode_libdir_flag_spec \
21449hardcode_libdir_flag_spec_ld \
21450hardcode_libdir_separator \
21451fix_srcfile_path \
21452exclude_expsyms \
21453include_expsyms \
21454file_list_spec \
21455variables_saved_for_relink \
21456libname_spec \
21457library_names_spec \
21458soname_spec \
21459finish_eval \
21460old_striplib \
21461striplib; do
21462 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21463 *[\\\\\\\`\\"\\\$]*)
21464 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21465 ;;
21466 *)
21467 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21468 ;;
21469 esac
21470done
a093c6a4 21471
8934764e
BB
21472# Double-quote double-evaled strings.
21473for var in reload_cmds \
21474old_postinstall_cmds \
21475old_postuninstall_cmds \
21476old_archive_cmds \
21477extract_expsyms_cmds \
21478old_archive_from_new_cmds \
21479old_archive_from_expsyms_cmds \
21480archive_cmds \
21481archive_expsym_cmds \
21482module_cmds \
21483module_expsym_cmds \
21484export_symbols_cmds \
21485prelink_cmds \
21486postinstall_cmds \
21487postuninstall_cmds \
21488finish_cmds \
21489sys_lib_search_path_spec \
21490sys_lib_dlsearch_path_spec; do
21491 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21492 *[\\\\\\\`\\"\\\$]*)
21493 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21494 ;;
21495 *)
21496 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21497 ;;
21498 esac
21499done
a093c6a4 21500
8934764e
BB
21501# Fix-up fallback echo if it was mangled by the above quoting rules.
21502case \$lt_ECHO in
21503*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21504 ;;
21505esac
a093c6a4 21506
8934764e
BB
21507ac_aux_dir='$ac_aux_dir'
21508xsi_shell='$xsi_shell'
21509lt_shell_append='$lt_shell_append'
a093c6a4 21510
8934764e
BB
21511# See if we are running on zsh, and set the options which allow our
21512# commands through without removal of \ escapes INIT.
21513if test -n "\${ZSH_VERSION+set}" ; then
21514 setopt NO_GLOB_SUBST
21515fi
a093c6a4 21516
a093c6a4 21517
8934764e
BB
21518 PACKAGE='$PACKAGE'
21519 VERSION='$VERSION'
21520 TIMESTAMP='$TIMESTAMP'
21521 RM='$RM'
21522 ofile='$ofile'
a093c6a4
BB
21523
21524
a093c6a4 21525
a093c6a4 21526
a093c6a4
BB
21527_ACEOF
21528
8934764e 21529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a093c6a4 21530
8934764e
BB
21531# Handling of arguments.
21532for ac_config_target in $ac_config_targets
21533do
21534 case $ac_config_target in
21535 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
21536 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21537 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21538 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21539 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21540 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
21541 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
21542 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
21543 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
21544 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21545 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21546 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
21547 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
c2dceb5c
PS
21548 "PKGBUILD-spl") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl" ;;
21549 "PKGBUILD-spl-modules") CONFIG_FILES="$CONFIG_FILES PKGBUILD-spl-modules" ;;
8934764e
BB
21550
21551 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21552$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21553 { (exit 1); exit 1; }; };;
21554 esac
21555done
a093c6a4
BB
21556
21557
8934764e
BB
21558# If the user did not use the arguments to specify the items to instantiate,
21559# then the envvar interface is used. Set only those that are not.
21560# We use the long form for the default assignment because of an extremely
21561# bizarre bug on SunOS 4.1.3.
21562if $ac_need_defaults; then
21563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
e11d6c5f
BB
21566fi
21567
8934764e
BB
21568# Have a temporary directory for convenience. Make it in the build tree
21569# simply because there is no reason against having it here, and in addition,
21570# creating and moving files from /tmp can sometimes cause problems.
21571# Hook for its removal unless debugging.
21572# Note that there is a small window in which the directory will not be cleaned:
21573# after its creation but before its name has been assigned to `$tmp'.
21574$debug ||
21575{
21576 tmp=
21577 trap 'exit_status=$?
21578 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21579' 0
21580 trap '{ (exit 1); exit 1; }' 1 2 13 15
21581}
21582# Create a (secure) tmp directory for tmp files.
e11d6c5f 21583
8934764e
BB
21584{
21585 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21586 test -n "$tmp" && test -d "$tmp"
21587} ||
21588{
21589 tmp=./conf$$-$RANDOM
21590 (umask 077 && mkdir "$tmp")
21591} ||
21592{
21593 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21594 { (exit 1); exit 1; }
21595}
e11d6c5f 21596
8934764e
BB
21597# Set up the scripts for CONFIG_FILES section.
21598# No need to generate them if there are no CONFIG_FILES.
21599# This happens for instance with `./config.status config.h'.
21600if test -n "$CONFIG_FILES"; then
e11d6c5f 21601
ec7d53e9 21602
8934764e
BB
21603ac_cr='\r'
21604ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21605if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21606 ac_cs_awk_cr='\\r'
21607else
21608 ac_cs_awk_cr=$ac_cr
21609fi
ec7d53e9 21610
8934764e 21611echo 'BEGIN {' >"$tmp/subs1.awk" &&
ec7d53e9 21612_ACEOF
ec7d53e9 21613
ec7d53e9 21614
ec7d53e9 21615{
8934764e
BB
21616 echo "cat >conf$$subs.awk <<_ACEOF" &&
21617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21618 echo "_ACEOF"
21619} >conf$$subs.sh ||
21620 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21621$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21622 { (exit 1); exit 1; }; }
21623ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21624ac_delim='%!_!# '
21625for ac_last_try in false false false false false :; do
21626 . ./conf$$subs.sh ||
21627 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21628$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21629 { (exit 1); exit 1; }; }
ec7d53e9 21630
8934764e
BB
21631 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21632 if test $ac_delim_n = $ac_delim_num; then
21633 break
21634 elif $ac_last_try; then
21635 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21636$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21637 { (exit 1); exit 1; }; }
21638 else
21639 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21640 fi
21641done
21642rm -f conf$$subs.sh
21643
21644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21645cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21646_ACEOF
21647sed -n '
21648h
21649s/^/S["/; s/!.*/"]=/
21650p
21651g
21652s/^[^!]*!//
21653:repl
21654t repl
21655s/'"$ac_delim"'$//
21656t delim
21657:nl
21658h
21659s/\(.\{148\}\).*/\1/
21660t more1
21661s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21662p
21663n
21664b repl
21665:more1
21666s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21667p
21668g
21669s/.\{148\}//
21670t nl
21671:delim
21672h
21673s/\(.\{148\}\).*/\1/
21674t more2
21675s/["\\]/\\&/g; s/^/"/; s/$/"/
21676p
21677b
21678:more2
21679s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21680p
21681g
21682s/.\{148\}//
21683t delim
21684' <conf$$subs.awk | sed '
21685/^[^""]/{
21686 N
21687 s/\n//
21688}
21689' >>$CONFIG_STATUS || ac_write_fail=1
21690rm -f conf$$subs.awk
21691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21692_ACAWK
21693cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21694 for (key in S) S_is_set[key] = 1
21695 FS = "\a"
ec7d53e9 21696
8934764e
BB
21697}
21698{
21699 line = $ 0
21700 nfields = split(line, field, "@")
21701 substed = 0
21702 len = length(field[1])
21703 for (i = 2; i < nfields; i++) {
21704 key = field[i]
21705 keylen = length(key)
21706 if (S_is_set[key]) {
21707 value = S[key]
21708 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21709 len += length(value) + length(field[++i])
21710 substed = 1
21711 } else
21712 len += 1 + keylen
21713 }
21714
21715 print line
ec7d53e9
BB
21716}
21717
8934764e
BB
21718_ACAWK
21719_ACEOF
21720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21721if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21722 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21723else
21724 cat
21725fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21726 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21727$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21728 { (exit 1); exit 1; }; }
ec7d53e9
BB
21729_ACEOF
21730
8934764e
BB
21731# VPATH may cause trouble with some makes, so we remove $(srcdir),
21732# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21733# trailing colons and then remove the whole line if VPATH becomes empty
21734# (actually we leave an empty line to preserve line numbers).
21735if test "x$srcdir" = x.; then
21736 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21737s/:*\$(srcdir):*/:/
21738s/:*\${srcdir}:*/:/
21739s/:*@srcdir@:*/:/
21740s/^\([^=]*=[ ]*\):*/\1/
21741s/:*$//
21742s/^[^=]*=[ ]*$//
21743}'
21744fi
ec7d53e9 21745
8934764e
BB
21746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21747fi # test -n "$CONFIG_FILES"
ec7d53e9 21748
8934764e
BB
21749# Set up the scripts for CONFIG_HEADERS section.
21750# No need to generate them if there are no CONFIG_HEADERS.
21751# This happens for instance with `./config.status Makefile'.
21752if test -n "$CONFIG_HEADERS"; then
21753cat >"$tmp/defines.awk" <<\_ACAWK ||
21754BEGIN {
ec7d53e9
BB
21755_ACEOF
21756
8934764e
BB
21757# Transform confdefs.h into an awk script `defines.awk', embedded as
21758# here-document in config.status, that substitutes the proper values into
21759# config.h.in to produce config.h.
ec7d53e9 21760
8934764e
BB
21761# Create a delimiter string that does not exist in confdefs.h, to ease
21762# handling of long lines.
21763ac_delim='%!_!# '
21764for ac_last_try in false false :; do
21765 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21766 if test -z "$ac_t"; then
21767 break
21768 elif $ac_last_try; then
21769 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21770$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21771 { (exit 1); exit 1; }; }
21772 else
21773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21774 fi
21775done
ec7d53e9 21776
8934764e
BB
21777# For the awk script, D is an array of macro values keyed by name,
21778# likewise P contains macro parameters if any. Preserve backslash
21779# newline sequences.
21780
21781ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21782sed -n '
21783s/.\{148\}/&'"$ac_delim"'/g
21784t rset
21785:rset
21786s/^[ ]*#[ ]*define[ ][ ]*/ /
21787t def
21788d
21789:def
21790s/\\$//
21791t bsnl
21792s/["\\]/\\&/g
21793s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21794D["\1"]=" \3"/p
21795s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21796d
21797:bsnl
21798s/["\\]/\\&/g
21799s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21800D["\1"]=" \3\\\\\\n"\\/p
21801t cont
21802s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21803t cont
21804d
21805:cont
21806n
21807s/.\{148\}/&'"$ac_delim"'/g
21808t clear
21809:clear
21810s/\\$//
21811t bsnlc
21812s/["\\]/\\&/g; s/^/"/; s/$/"/p
21813d
21814:bsnlc
21815s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21816b cont
21817' <confdefs.h | sed '
21818s/'"$ac_delim"'/"\\\
21819"/g' >>$CONFIG_STATUS || ac_write_fail=1
21820
21821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21822 for (key in D) D_is_set[key] = 1
21823 FS = "\a"
21824}
21825/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21826 line = \$ 0
21827 split(line, arg, " ")
21828 if (arg[1] == "#") {
21829 defundef = arg[2]
21830 mac1 = arg[3]
21831 } else {
21832 defundef = substr(arg[1], 2)
21833 mac1 = arg[2]
21834 }
21835 split(mac1, mac2, "(") #)
21836 macro = mac2[1]
21837 prefix = substr(line, 1, index(line, defundef) - 1)
21838 if (D_is_set[macro]) {
21839 # Preserve the white space surrounding the "#".
21840 print prefix "define", macro P[macro] D[macro]
21841 next
21842 } else {
21843 # Replace #undef with comments. This is necessary, for example,
21844 # in the case of _POSIX_SOURCE, which is predefined and required
21845 # on some systems where configure will not decide to define it.
21846 if (defundef == "undef") {
21847 print "/*", prefix defundef, macro, "*/"
21848 next
21849 }
21850 }
21851}
21852{ print }
21853_ACAWK
21854_ACEOF
21855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21856 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21857$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21858 { (exit 1); exit 1; }; }
21859fi # test -n "$CONFIG_HEADERS"
ec7d53e9
BB
21860
21861
8934764e
BB
21862eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21863shift
21864for ac_tag
21865do
21866 case $ac_tag in
21867 :[FHLC]) ac_mode=$ac_tag; continue;;
21868 esac
21869 case $ac_mode$ac_tag in
21870 :[FHL]*:*);;
21871 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21872$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21873 { (exit 1); exit 1; }; };;
21874 :[FH]-) ac_tag=-:-;;
21875 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21876 esac
21877 ac_save_IFS=$IFS
21878 IFS=:
21879 set x $ac_tag
21880 IFS=$ac_save_IFS
21881 shift
21882 ac_file=$1
21883 shift
ec7d53e9 21884
8934764e
BB
21885 case $ac_mode in
21886 :L) ac_source=$1;;
21887 :[FH])
21888 ac_file_inputs=
21889 for ac_f
21890 do
21891 case $ac_f in
21892 -) ac_f="$tmp/stdin";;
21893 *) # Look for the file first in the build tree, then in the source tree
21894 # (if the path is not absolute). The absolute path cannot be DOS-style,
21895 # because $ac_f cannot contain `:'.
21896 test -f "$ac_f" ||
21897 case $ac_f in
21898 [\\/$]*) false;;
21899 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21900 esac ||
21901 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21902$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21903 { (exit 1); exit 1; }; };;
21904 esac
21905 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21906 ac_file_inputs="$ac_file_inputs '$ac_f'"
21907 done
ec7d53e9 21908
8934764e
BB
21909 # Let's still pretend it is `configure' which instantiates (i.e., don't
21910 # use $as_me), people would be surprised to read:
21911 # /* config.h. Generated by config.status. */
21912 configure_input='Generated from '`
21913 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21914 `' by configure.'
21915 if test x"$ac_file" != x-; then
21916 configure_input="$ac_file. $configure_input"
21917 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21918$as_echo "$as_me: creating $ac_file" >&6;}
21919 fi
21920 # Neutralize special characters interpreted by sed in replacement strings.
21921 case $configure_input in #(
21922 *\&* | *\|* | *\\* )
21923 ac_sed_conf_input=`$as_echo "$configure_input" |
21924 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21925 *) ac_sed_conf_input=$configure_input;;
21926 esac
ec7d53e9 21927
8934764e
BB
21928 case $ac_tag in
21929 *:-:* | *:-) cat >"$tmp/stdin" \
21930 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21931$as_echo "$as_me: error: could not create $ac_file" >&2;}
21932 { (exit 1); exit 1; }; } ;;
21933 esac
21934 ;;
21935 esac
ec7d53e9 21936
8934764e
BB
21937 ac_dir=`$as_dirname -- "$ac_file" ||
21938$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21939 X"$ac_file" : 'X\(//\)[^/]' \| \
21940 X"$ac_file" : 'X\(//\)$' \| \
21941 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21942$as_echo X"$ac_file" |
21943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21944 s//\1/
21945 q
21946 }
21947 /^X\(\/\/\)[^/].*/{
21948 s//\1/
21949 q
21950 }
21951 /^X\(\/\/\)$/{
21952 s//\1/
21953 q
21954 }
21955 /^X\(\/\).*/{
21956 s//\1/
21957 q
21958 }
21959 s/.*/./; q'`
21960 { as_dir="$ac_dir"
21961 case $as_dir in #(
21962 -*) as_dir=./$as_dir;;
21963 esac
21964 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21965 as_dirs=
21966 while :; do
21967 case $as_dir in #(
21968 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21969 *) as_qdir=$as_dir;;
21970 esac
21971 as_dirs="'$as_qdir' $as_dirs"
21972 as_dir=`$as_dirname -- "$as_dir" ||
21973$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21974 X"$as_dir" : 'X\(//\)[^/]' \| \
21975 X"$as_dir" : 'X\(//\)$' \| \
21976 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21977$as_echo X"$as_dir" |
21978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21979 s//\1/
21980 q
21981 }
21982 /^X\(\/\/\)[^/].*/{
21983 s//\1/
21984 q
21985 }
21986 /^X\(\/\/\)$/{
21987 s//\1/
21988 q
21989 }
21990 /^X\(\/\).*/{
21991 s//\1/
21992 q
21993 }
21994 s/.*/./; q'`
21995 test -d "$as_dir" && break
21996 done
21997 test -z "$as_dirs" || eval "mkdir $as_dirs"
21998 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21999$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22000 { (exit 1); exit 1; }; }; }
22001 ac_builddir=.
ec7d53e9 22002
8934764e
BB
22003case "$ac_dir" in
22004.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22005*)
22006 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22007 # A ".." for each directory in $ac_dir_suffix.
22008 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22009 case $ac_top_builddir_sub in
22010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22012 esac ;;
22013esac
22014ac_abs_top_builddir=$ac_pwd
22015ac_abs_builddir=$ac_pwd$ac_dir_suffix
22016# for backward compatibility:
22017ac_top_builddir=$ac_top_build_prefix
ec7d53e9 22018
8934764e
BB
22019case $srcdir in
22020 .) # We are building in place.
22021 ac_srcdir=.
22022 ac_top_srcdir=$ac_top_builddir_sub
22023 ac_abs_top_srcdir=$ac_pwd ;;
22024 [\\/]* | ?:[\\/]* ) # Absolute name.
22025 ac_srcdir=$srcdir$ac_dir_suffix;
22026 ac_top_srcdir=$srcdir
22027 ac_abs_top_srcdir=$srcdir ;;
22028 *) # Relative name.
22029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22030 ac_top_srcdir=$ac_top_build_prefix$srcdir
22031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22032esac
22033ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ec7d53e9 22034
ec7d53e9 22035
8934764e
BB
22036 case $ac_mode in
22037 :F)
22038 #
22039 # CONFIG_FILE
22040 #
22041
22042 case $INSTALL in
22043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22045 esac
22046 ac_MKDIR_P=$MKDIR_P
22047 case $MKDIR_P in
22048 [\\/$]* | ?:[\\/]* ) ;;
22049 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22050 esac
ec7d53e9
BB
22051_ACEOF
22052
8934764e
BB
22053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22054# If the template does not know about datarootdir, expand it.
22055# FIXME: This hack should be removed a few years after 2.60.
22056ac_datarootdir_hack=; ac_datarootdir_seen=
ec7d53e9 22057
8934764e
BB
22058ac_sed_dataroot='
22059/datarootdir/ {
22060 p
22061 q
22062}
22063/@datadir@/p
22064/@docdir@/p
22065/@infodir@/p
22066/@localedir@/p
22067/@mandir@/p
22068'
22069case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22070*datarootdir*) ac_datarootdir_seen=yes;;
22071*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22072 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22073$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22074_ACEOF
22075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22076 ac_datarootdir_hack='
22077 s&@datadir@&$datadir&g
22078 s&@docdir@&$docdir&g
22079 s&@infodir@&$infodir&g
22080 s&@localedir@&$localedir&g
22081 s&@mandir@&$mandir&g
22082 s&\\\${datarootdir}&$datarootdir&g' ;;
22083esac
ec7d53e9
BB
22084_ACEOF
22085
8934764e
BB
22086# Neutralize VPATH when `$srcdir' = `.'.
22087# Shell code in configure.ac might set extrasub.
22088# FIXME: do we really want to maintain this feature?
22089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22090ac_sed_extra="$ac_vpsub
22091$extrasub
22092_ACEOF
22093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22094:t
22095/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22096s|@configure_input@|$ac_sed_conf_input|;t t
22097s&@top_builddir@&$ac_top_builddir_sub&;t t
22098s&@top_build_prefix@&$ac_top_build_prefix&;t t
22099s&@srcdir@&$ac_srcdir&;t t
22100s&@abs_srcdir@&$ac_abs_srcdir&;t t
22101s&@top_srcdir@&$ac_top_srcdir&;t t
22102s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22103s&@builddir@&$ac_builddir&;t t
22104s&@abs_builddir@&$ac_abs_builddir&;t t
22105s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22106s&@INSTALL@&$ac_INSTALL&;t t
22107s&@MKDIR_P@&$ac_MKDIR_P&;t t
22108$ac_datarootdir_hack
22109"
22110eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22111 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22112$as_echo "$as_me: error: could not create $ac_file" >&2;}
22113 { (exit 1); exit 1; }; }
ec7d53e9 22114
8934764e
BB
22115test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22116 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22118 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22119which seems to be undefined. Please make sure it is defined." >&5
22120$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22121which seems to be undefined. Please make sure it is defined." >&2;}
ec7d53e9 22122
8934764e
BB
22123 rm -f "$tmp/stdin"
22124 case $ac_file in
22125 -) cat "$tmp/out" && rm -f "$tmp/out";;
22126 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22127 esac \
22128 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22129$as_echo "$as_me: error: could not create $ac_file" >&2;}
22130 { (exit 1); exit 1; }; }
22131 ;;
22132 :H)
22133 #
22134 # CONFIG_HEADER
22135 #
22136 if test x"$ac_file" != x-; then
22137 {
22138 $as_echo "/* $configure_input */" \
22139 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22140 } >"$tmp/config.h" \
22141 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22142$as_echo "$as_me: error: could not create $ac_file" >&2;}
22143 { (exit 1); exit 1; }; }
22144 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22145 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22146$as_echo "$as_me: $ac_file is unchanged" >&6;}
22147 else
22148 rm -f "$ac_file"
22149 mv "$tmp/config.h" "$ac_file" \
22150 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22151$as_echo "$as_me: error: could not create $ac_file" >&2;}
22152 { (exit 1); exit 1; }; }
22153 fi
22154 else
22155 $as_echo "/* $configure_input */" \
22156 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22157 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22158$as_echo "$as_me: error: could not create -" >&2;}
22159 { (exit 1); exit 1; }; }
22160 fi
22161# Compute "$ac_file"'s index in $config_headers.
22162_am_arg="$ac_file"
22163_am_stamp_count=1
22164for _am_header in $config_headers :; do
22165 case $_am_header in
22166 $_am_arg | $_am_arg:* )
22167 break ;;
22168 * )
22169 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22170 esac
22171done
22172echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22173$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22174 X"$_am_arg" : 'X\(//\)[^/]' \| \
22175 X"$_am_arg" : 'X\(//\)$' \| \
22176 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22177$as_echo X"$_am_arg" |
22178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22179 s//\1/
22180 q
22181 }
22182 /^X\(\/\/\)[^/].*/{
22183 s//\1/
22184 q
22185 }
22186 /^X\(\/\/\)$/{
22187 s//\1/
22188 q
22189 }
22190 /^X\(\/\).*/{
22191 s//\1/
22192 q
22193 }
22194 s/.*/./; q'`/stamp-h$_am_stamp_count
22195 ;;
ec7d53e9 22196
8934764e
BB
22197 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22198$as_echo "$as_me: executing $ac_file commands" >&6;}
22199 ;;
22200 esac
e811949a 22201
e811949a 22202
8934764e
BB
22203 case $ac_file$ac_mode in
22204 "spl_config.h":H)
22205 (mv spl_config.h spl_config.h.tmp &&
a7958f7e 22206 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
8934764e
BB
22207 rm spl_config.h.tmp) || exit 1 ;;
22208 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22209 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22210 # are listed without --file. Let's play safe and only enable the eval
22211 # if we detect the quoting.
22212 case $CONFIG_FILES in
22213 *\'*) eval set x "$CONFIG_FILES" ;;
22214 *) set x $CONFIG_FILES ;;
22215 esac
22216 shift
22217 for mf
22218 do
22219 # Strip MF so we end up with the name of the file.
22220 mf=`echo "$mf" | sed -e 's/:.*$//'`
22221 # Check whether this is an Automake generated Makefile or not.
22222 # We used to match only the files named `Makefile.in', but
22223 # some people rename them; so instead we look at the file content.
22224 # Grep'ing the first line is not enough: some people post-process
22225 # each Makefile.in and add a new line on top of each file to say so.
22226 # Grep'ing the whole file is not good either: AIX grep has a line
22227 # limit of 2048, but all sed's we know have understand at least 4000.
22228 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22229 dirpart=`$as_dirname -- "$mf" ||
22230$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22231 X"$mf" : 'X\(//\)[^/]' \| \
22232 X"$mf" : 'X\(//\)$' \| \
22233 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22234$as_echo X"$mf" |
22235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22236 s//\1/
22237 q
22238 }
22239 /^X\(\/\/\)[^/].*/{
22240 s//\1/
22241 q
22242 }
22243 /^X\(\/\/\)$/{
22244 s//\1/
22245 q
22246 }
22247 /^X\(\/\).*/{
22248 s//\1/
22249 q
22250 }
22251 s/.*/./; q'`
22252 else
22253 continue
22254 fi
22255 # Extract the definition of DEPDIR, am__include, and am__quote
22256 # from the Makefile without running `make'.
22257 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22258 test -z "$DEPDIR" && continue
22259 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22260 test -z "am__include" && continue
22261 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22262 # When using ansi2knr, U may be empty or an underscore; expand it
22263 U=`sed -n 's/^U = //p' < "$mf"`
22264 # Find all dependency output files, they are included files with
22265 # $(DEPDIR) in their names. We invoke sed twice because it is the
22266 # simplest approach to changing $(DEPDIR) to its actual value in the
22267 # expansion.
22268 for file in `sed -n "
22269 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22270 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22271 # Make sure the directory exists.
22272 test -f "$dirpart/$file" && continue
22273 fdir=`$as_dirname -- "$file" ||
22274$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22275 X"$file" : 'X\(//\)[^/]' \| \
22276 X"$file" : 'X\(//\)$' \| \
22277 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22278$as_echo X"$file" |
22279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22280 s//\1/
22281 q
22282 }
22283 /^X\(\/\/\)[^/].*/{
22284 s//\1/
22285 q
22286 }
22287 /^X\(\/\/\)$/{
22288 s//\1/
22289 q
22290 }
22291 /^X\(\/\).*/{
22292 s//\1/
22293 q
22294 }
22295 s/.*/./; q'`
22296 { as_dir=$dirpart/$fdir
22297 case $as_dir in #(
22298 -*) as_dir=./$as_dir;;
22299 esac
22300 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22301 as_dirs=
22302 while :; do
22303 case $as_dir in #(
22304 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22305 *) as_qdir=$as_dir;;
22306 esac
22307 as_dirs="'$as_qdir' $as_dirs"
22308 as_dir=`$as_dirname -- "$as_dir" ||
22309$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22310 X"$as_dir" : 'X\(//\)[^/]' \| \
22311 X"$as_dir" : 'X\(//\)$' \| \
22312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22313$as_echo X"$as_dir" |
22314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22315 s//\1/
22316 q
22317 }
22318 /^X\(\/\/\)[^/].*/{
22319 s//\1/
22320 q
22321 }
22322 /^X\(\/\/\)$/{
22323 s//\1/
22324 q
22325 }
22326 /^X\(\/\).*/{
22327 s//\1/
22328 q
22329 }
22330 s/.*/./; q'`
22331 test -d "$as_dir" && break
22332 done
22333 test -z "$as_dirs" || eval "mkdir $as_dirs"
22334 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22335$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22336 { (exit 1); exit 1; }; }; }
22337 # echo "creating $dirpart/$file"
22338 echo '# dummy' > "$dirpart/$file"
22339 done
22340 done
22341}
22342 ;;
22343 "libtool":C)
22344
22345 # See if we are running on zsh, and set the options which allow our
22346 # commands through without removal of \ escapes.
22347 if test -n "${ZSH_VERSION+set}" ; then
22348 setopt NO_GLOB_SUBST
22349 fi
22350
22351 cfgfile="${ofile}T"
22352 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22353 $RM "$cfgfile"
22354
22355 cat <<_LT_EOF >> "$cfgfile"
22356#! $SHELL
22357
22358# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22359# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22360# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22361# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22362#
22363# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22364# 2006, 2007, 2008 Free Software Foundation, Inc.
22365# Written by Gordon Matzigkeit, 1996
22366#
22367# This file is part of GNU Libtool.
22368#
22369# GNU Libtool is free software; you can redistribute it and/or
22370# modify it under the terms of the GNU General Public License as
22371# published by the Free Software Foundation; either version 2 of
22372# the License, or (at your option) any later version.
22373#
22374# As a special exception to the GNU General Public License,
22375# if you distribute this file as part of a program or library that
22376# is built using GNU Libtool, you may include this file under the
22377# same distribution terms that you use for the rest of that program.
22378#
22379# GNU Libtool is distributed in the hope that it will be useful,
22380# but WITHOUT ANY WARRANTY; without even the implied warranty of
22381# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22382# GNU General Public License for more details.
22383#
22384# You should have received a copy of the GNU General Public License
22385# along with GNU Libtool; see the file COPYING. If not, a copy
22386# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22387# obtained by writing to the Free Software Foundation, Inc.,
22388# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22389
22390
22391# The names of the tagged configurations supported by this script.
22392available_tags=""
22393
22394# ### BEGIN LIBTOOL CONFIG
22395
22396# Which release of libtool.m4 was used?
22397macro_version=$macro_version
22398macro_revision=$macro_revision
e811949a 22399
8934764e
BB
22400# Whether or not to build shared libraries.
22401build_libtool_libs=$enable_shared
e811949a 22402
8934764e
BB
22403# Whether or not to build static libraries.
22404build_old_libs=$enable_static
e811949a 22405
8934764e
BB
22406# What type of objects to build.
22407pic_mode=$pic_mode
e811949a 22408
8934764e
BB
22409# Whether or not to optimize for fast installation.
22410fast_install=$enable_fast_install
e811949a 22411
8934764e
BB
22412# The host system.
22413host_alias=$host_alias
22414host=$host
22415host_os=$host_os
e811949a 22416
8934764e
BB
22417# The build system.
22418build_alias=$build_alias
22419build=$build
22420build_os=$build_os
3977f837 22421
8934764e
BB
22422# A sed program that does not truncate output.
22423SED=$lt_SED
3977f837 22424
8934764e
BB
22425# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22426Xsed="\$SED -e 1s/^X//"
3977f837 22427
8934764e
BB
22428# A grep program that handles long lines.
22429GREP=$lt_GREP
3977f837 22430
8934764e
BB
22431# An ERE matcher.
22432EGREP=$lt_EGREP
3977f837 22433
8934764e
BB
22434# A literal string matcher.
22435FGREP=$lt_FGREP
3977f837 22436
8934764e
BB
22437# A BSD- or MS-compatible name lister.
22438NM=$lt_NM
3977f837 22439
8934764e
BB
22440# Whether we need soft or hard links.
22441LN_S=$lt_LN_S
3977f837 22442
8934764e
BB
22443# What is the maximum length of a command?
22444max_cmd_len=$max_cmd_len
3977f837 22445
8934764e
BB
22446# Object file suffix (normally "o").
22447objext=$ac_objext
3977f837 22448
8934764e
BB
22449# Executable file suffix (normally "").
22450exeext=$exeext
3977f837 22451
8934764e
BB
22452# whether the shell understands "unset".
22453lt_unset=$lt_unset
3977f837 22454
8934764e
BB
22455# turn spaces into newlines.
22456SP2NL=$lt_lt_SP2NL
3977f837 22457
8934764e
BB
22458# turn newlines into spaces.
22459NL2SP=$lt_lt_NL2SP
3977f837 22460
8934764e
BB
22461# How to create reloadable object files.
22462reload_flag=$lt_reload_flag
22463reload_cmds=$lt_reload_cmds
3977f837 22464
8934764e
BB
22465# An object symbol dumper.
22466OBJDUMP=$lt_OBJDUMP
3977f837 22467
8934764e
BB
22468# Method to check whether dependent libraries are shared objects.
22469deplibs_check_method=$lt_deplibs_check_method
3977f837 22470
8934764e
BB
22471# Command to use when deplibs_check_method == "file_magic".
22472file_magic_cmd=$lt_file_magic_cmd
3977f837 22473
8934764e
BB
22474# The archiver.
22475AR=$lt_AR
22476AR_FLAGS=$lt_AR_FLAGS
3977f837 22477
8934764e
BB
22478# A symbol stripping program.
22479STRIP=$lt_STRIP
3977f837 22480
8934764e
BB
22481# Commands used to install an old-style archive.
22482RANLIB=$lt_RANLIB
22483old_postinstall_cmds=$lt_old_postinstall_cmds
22484old_postuninstall_cmds=$lt_old_postuninstall_cmds
3977f837 22485
8934764e
BB
22486# A C compiler.
22487LTCC=$lt_CC
3977f837 22488
8934764e
BB
22489# LTCC compiler flags.
22490LTCFLAGS=$lt_CFLAGS
3977f837 22491
8934764e
BB
22492# Take the output of nm and produce a listing of raw symbols and C names.
22493global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
86933a6e 22494
8934764e
BB
22495# Transform the output of nm in a proper C declaration.
22496global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
86933a6e 22497
8934764e
BB
22498# Transform the output of nm in a C name address pair.
22499global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
86933a6e 22500
8934764e
BB
22501# Transform the output of nm in a C name address pair when lib prefix is needed.
22502global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
86933a6e 22503
8934764e
BB
22504# The name of the directory that contains temporary libtool files.
22505objdir=$objdir
86933a6e 22506
8934764e
BB
22507# Shell to use when invoking shell scripts.
22508SHELL=$lt_SHELL
86933a6e 22509
8934764e
BB
22510# An echo program that does not interpret backslashes.
22511ECHO=$lt_ECHO
86933a6e 22512
8934764e
BB
22513# Used to examine libraries when file_magic_cmd begins with "file".
22514MAGIC_CMD=$MAGIC_CMD
86933a6e 22515
8934764e
BB
22516# Must we lock files when doing compilation?
22517need_locks=$lt_need_locks
86933a6e 22518
8934764e
BB
22519# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22520DSYMUTIL=$lt_DSYMUTIL
bf9f3bac 22521
8934764e
BB
22522# Tool to change global to local symbols on Mac OS X.
22523NMEDIT=$lt_NMEDIT
bf9f3bac 22524
8934764e
BB
22525# Tool to manipulate fat objects and archives on Mac OS X.
22526LIPO=$lt_LIPO
bf9f3bac 22527
8934764e
BB
22528# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22529OTOOL=$lt_OTOOL
bf9f3bac 22530
8934764e
BB
22531# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22532OTOOL64=$lt_OTOOL64
bf9f3bac 22533
8934764e
BB
22534# Old archive suffix (normally "a").
22535libext=$libext
bf9f3bac 22536
8934764e
BB
22537# Shared library suffix (normally ".so").
22538shrext_cmds=$lt_shrext_cmds
bf9f3bac 22539
8934764e
BB
22540# The commands to extract the exported symbol list from a shared archive.
22541extract_expsyms_cmds=$lt_extract_expsyms_cmds
bf9f3bac 22542
8934764e
BB
22543# Variables whose values should be saved in libtool wrapper scripts and
22544# restored at link time.
22545variables_saved_for_relink=$lt_variables_saved_for_relink
bf9f3bac 22546
8934764e
BB
22547# Do we need the "lib" prefix for modules?
22548need_lib_prefix=$need_lib_prefix
bf9f3bac 22549
8934764e
BB
22550# Do we need a version for libraries?
22551need_version=$need_version
bf9f3bac 22552
8934764e
BB
22553# Library versioning type.
22554version_type=$version_type
bf9f3bac 22555
8934764e
BB
22556# Shared library runtime path variable.
22557runpath_var=$runpath_var
bf9f3bac 22558
8934764e
BB
22559# Shared library path variable.
22560shlibpath_var=$shlibpath_var
bf9f3bac 22561
8934764e
BB
22562# Is shlibpath searched before the hard-coded library search path?
22563shlibpath_overrides_runpath=$shlibpath_overrides_runpath
bf9f3bac 22564
8934764e
BB
22565# Format of library name prefix.
22566libname_spec=$lt_libname_spec
bf9f3bac 22567
8934764e
BB
22568# List of archive names. First name is the real one, the rest are links.
22569# The last name is the one that the linker finds with -lNAME
22570library_names_spec=$lt_library_names_spec
bf9f3bac 22571
8934764e
BB
22572# The coded name of the library, if different from the real name.
22573soname_spec=$lt_soname_spec
bf9f3bac 22574
8934764e
BB
22575# Command to use after installation of a shared archive.
22576postinstall_cmds=$lt_postinstall_cmds
bf9f3bac 22577
8934764e
BB
22578# Command to use after uninstallation of a shared archive.
22579postuninstall_cmds=$lt_postuninstall_cmds
bf9f3bac 22580
8934764e
BB
22581# Commands used to finish a libtool library installation in a directory.
22582finish_cmds=$lt_finish_cmds
bf9f3bac 22583
8934764e
BB
22584# As "finish_cmds", except a single script fragment to be evaled but
22585# not shown.
22586finish_eval=$lt_finish_eval
bf9f3bac 22587
8934764e
BB
22588# Whether we should hardcode library paths into libraries.
22589hardcode_into_libs=$hardcode_into_libs
bf9f3bac 22590
8934764e
BB
22591# Compile-time system search path for libraries.
22592sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
bf9f3bac 22593
8934764e
BB
22594# Run-time system search path for libraries.
22595sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
bf9f3bac 22596
8934764e
BB
22597# Whether dlopen is supported.
22598dlopen_support=$enable_dlopen
bf9f3bac 22599
8934764e
BB
22600# Whether dlopen of programs is supported.
22601dlopen_self=$enable_dlopen_self
bf9f3bac 22602
8934764e
BB
22603# Whether dlopen of statically linked programs is supported.
22604dlopen_self_static=$enable_dlopen_self_static
bf9f3bac 22605
8934764e
BB
22606# Commands to strip libraries.
22607old_striplib=$lt_old_striplib
22608striplib=$lt_striplib
bf9f3bac 22609
bf9f3bac 22610
8934764e
BB
22611# The linker used to build libraries.
22612LD=$lt_LD
bf9f3bac 22613
8934764e
BB
22614# Commands used to build an old-style archive.
22615old_archive_cmds=$lt_old_archive_cmds
bf9f3bac 22616
8934764e
BB
22617# A language specific compiler.
22618CC=$lt_compiler
bf9f3bac 22619
8934764e
BB
22620# Is the compiler the GNU compiler?
22621with_gcc=$GCC
bf9f3bac 22622
8934764e
BB
22623# Compiler flag to turn off builtin functions.
22624no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
bf9f3bac 22625
8934764e
BB
22626# How to pass a linker flag through the compiler.
22627wl=$lt_lt_prog_compiler_wl
bf9f3bac 22628
8934764e
BB
22629# Additional compiler flags for building library objects.
22630pic_flag=$lt_lt_prog_compiler_pic
bf9f3bac 22631
8934764e
BB
22632# Compiler flag to prevent dynamic linking.
22633link_static_flag=$lt_lt_prog_compiler_static
bf9f3bac 22634
8934764e
BB
22635# Does compiler simultaneously support -c and -o options?
22636compiler_c_o=$lt_lt_cv_prog_compiler_c_o
bf9f3bac 22637
8934764e
BB
22638# Whether or not to add -lc for building shared libraries.
22639build_libtool_need_lc=$archive_cmds_need_lc
bf9f3bac 22640
8934764e
BB
22641# Whether or not to disallow shared libs when runtime libs are static.
22642allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
bf9f3bac 22643
8934764e
BB
22644# Compiler flag to allow reflexive dlopens.
22645export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
bf9f3bac 22646
8934764e
BB
22647# Compiler flag to generate shared objects directly from archives.
22648whole_archive_flag_spec=$lt_whole_archive_flag_spec
bf9f3bac 22649
8934764e
BB
22650# Whether the compiler copes with passing no objects directly.
22651compiler_needs_object=$lt_compiler_needs_object
bf9f3bac 22652
8934764e
BB
22653# Create an old-style archive from a shared archive.
22654old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
bf9f3bac 22655
8934764e
BB
22656# Create a temporary old-style archive to link instead of a shared archive.
22657old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
bf9f3bac 22658
8934764e
BB
22659# Commands used to build a shared archive.
22660archive_cmds=$lt_archive_cmds
22661archive_expsym_cmds=$lt_archive_expsym_cmds
bf9f3bac 22662
8934764e
BB
22663# Commands used to build a loadable module if different from building
22664# a shared archive.
22665module_cmds=$lt_module_cmds
22666module_expsym_cmds=$lt_module_expsym_cmds
bf9f3bac 22667
8934764e
BB
22668# Whether we are building with GNU ld or not.
22669with_gnu_ld=$lt_with_gnu_ld
bf9f3bac 22670
8934764e
BB
22671# Flag that allows shared libraries with undefined symbols to be built.
22672allow_undefined_flag=$lt_allow_undefined_flag
bf9f3bac 22673
8934764e
BB
22674# Flag that enforces no undefined symbols.
22675no_undefined_flag=$lt_no_undefined_flag
bf9f3bac 22676
8934764e
BB
22677# Flag to hardcode \$libdir into a binary during linking.
22678# This must work even if \$libdir does not exist
22679hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
bf9f3bac 22680
8934764e
BB
22681# If ld is used when linking, flag to hardcode \$libdir into a binary
22682# during linking. This must work even if \$libdir does not exist.
22683hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
bf9f3bac 22684
8934764e
BB
22685# Whether we need a single "-rpath" flag with a separated argument.
22686hardcode_libdir_separator=$lt_hardcode_libdir_separator
bf9f3bac 22687
8934764e
BB
22688# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22689# DIR into the resulting binary.
22690hardcode_direct=$hardcode_direct
bf9f3bac 22691
8934764e
BB
22692# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22693# DIR into the resulting binary and the resulting library dependency is
22694# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22695# library is relocated.
22696hardcode_direct_absolute=$hardcode_direct_absolute
bf9f3bac 22697
8934764e
BB
22698# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22699# into the resulting binary.
22700hardcode_minus_L=$hardcode_minus_L
bf9f3bac 22701
8934764e
BB
22702# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22703# into the resulting binary.
22704hardcode_shlibpath_var=$hardcode_shlibpath_var
bf9f3bac 22705
8934764e
BB
22706# Set to "yes" if building a shared library automatically hardcodes DIR
22707# into the library and all subsequent libraries and executables linked
22708# against it.
22709hardcode_automatic=$hardcode_automatic
bf9f3bac 22710
8934764e
BB
22711# Set to yes if linker adds runtime paths of dependent libraries
22712# to runtime path list.
22713inherit_rpath=$inherit_rpath
bf9f3bac 22714
8934764e
BB
22715# Whether libtool must link a program against all its dependency libraries.
22716link_all_deplibs=$link_all_deplibs
bf9f3bac 22717
8934764e
BB
22718# Fix the shell variable \$srcfile for the compiler.
22719fix_srcfile_path=$lt_fix_srcfile_path
bf9f3bac 22720
8934764e
BB
22721# Set to "yes" if exported symbols are required.
22722always_export_symbols=$always_export_symbols
bf9f3bac 22723
8934764e
BB
22724# The commands to list exported symbols.
22725export_symbols_cmds=$lt_export_symbols_cmds
bf9f3bac 22726
8934764e
BB
22727# Symbols that should not be listed in the preloaded symbols.
22728exclude_expsyms=$lt_exclude_expsyms
bf9f3bac 22729
8934764e
BB
22730# Symbols that must always be exported.
22731include_expsyms=$lt_include_expsyms
bf9f3bac 22732
8934764e
BB
22733# Commands necessary for linking programs (against libraries) with templates.
22734prelink_cmds=$lt_prelink_cmds
bf9f3bac 22735
8934764e
BB
22736# Specify filename containing input files.
22737file_list_spec=$lt_file_list_spec
bf9f3bac 22738
8934764e
BB
22739# How to hardcode a shared library path into an executable.
22740hardcode_action=$hardcode_action
bf9f3bac 22741
8934764e
BB
22742# ### END LIBTOOL CONFIG
22743
22744_LT_EOF
22745
22746 case $host_os in
22747 aix3*)
22748 cat <<\_LT_EOF >> "$cfgfile"
22749# AIX sometimes has problems with the GCC collect2 program. For some
22750# reason, if we set the COLLECT_NAMES environment variable, the problems
22751# vanish in a puff of smoke.
22752if test "X${COLLECT_NAMES+set}" != Xset; then
22753 COLLECT_NAMES=
22754 export COLLECT_NAMES
bf9f3bac 22755fi
8934764e
BB
22756_LT_EOF
22757 ;;
22758 esac
bf9f3bac 22759
bf9f3bac 22760
8934764e 22761ltmain="$ac_aux_dir/ltmain.sh"
bf9f3bac 22762
bf9f3bac 22763
8934764e
BB
22764 # We use sed instead of cat because bash on DJGPP gets confused if
22765 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22766 # text mode, it properly converts lines to CR/LF. This bash problem
22767 # is reportedly fixed, but why not run on old versions too?
22768 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22769 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 22770
8934764e
BB
22771 case $xsi_shell in
22772 yes)
22773 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22774
8934764e
BB
22775# func_dirname file append nondir_replacement
22776# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22777# otherwise set result to NONDIR_REPLACEMENT.
22778func_dirname ()
22779{
22780 case ${1} in
22781 */*) func_dirname_result="${1%/*}${2}" ;;
22782 * ) func_dirname_result="${3}" ;;
bf9f3bac 22783 esac
8934764e 22784}
bf9f3bac 22785
8934764e
BB
22786# func_basename file
22787func_basename ()
22788{
22789 func_basename_result="${1##*/}"
22790}
bf9f3bac 22791
8934764e
BB
22792# func_dirname_and_basename file append nondir_replacement
22793# perform func_basename and func_dirname in a single function
22794# call:
22795# dirname: Compute the dirname of FILE. If nonempty,
22796# add APPEND to the result, otherwise set result
22797# to NONDIR_REPLACEMENT.
22798# value returned in "$func_dirname_result"
22799# basename: Compute filename of FILE.
22800# value retuned in "$func_basename_result"
22801# Implementation must be kept synchronized with func_dirname
22802# and func_basename. For efficiency, we do not delegate to
22803# those functions but instead duplicate the functionality here.
22804func_dirname_and_basename ()
bf9f3bac 22805{
8934764e
BB
22806 case ${1} in
22807 */*) func_dirname_result="${1%/*}${2}" ;;
22808 * ) func_dirname_result="${3}" ;;
22809 esac
22810 func_basename_result="${1##*/}"
bf9f3bac 22811}
22812
8934764e
BB
22813# func_stripname prefix suffix name
22814# strip PREFIX and SUFFIX off of NAME.
22815# PREFIX and SUFFIX must not contain globbing or regex special
22816# characters, hashes, percent signs, but SUFFIX may contain a leading
22817# dot (in which case that matches only a dot).
22818func_stripname ()
22819{
22820 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22821 # positional parameters, so assign one to ordinary parameter first.
22822 func_stripname_result=${3}
22823 func_stripname_result=${func_stripname_result#"${1}"}
22824 func_stripname_result=${func_stripname_result%"${2}"}
22825}
bf9f3bac 22826
8934764e
BB
22827# func_opt_split
22828func_opt_split ()
bf9f3bac 22829{
8934764e
BB
22830 func_opt_split_opt=${1%%=*}
22831 func_opt_split_arg=${1#*=}
22832}
22833
22834# func_lo2o object
22835func_lo2o ()
bf9f3bac 22836{
8934764e
BB
22837 case ${1} in
22838 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22839 *) func_lo2o_result=${1} ;;
22840 esac
22841}
22842
22843# func_xform libobj-or-source
22844func_xform ()
bf9f3bac 22845{
8934764e 22846 func_xform_result=${1%.*}.lo
bf9f3bac 22847}
22848
8934764e
BB
22849# func_arith arithmetic-term...
22850func_arith ()
22851{
22852 func_arith_result=$(( $* ))
22853}
bf9f3bac 22854
8934764e
BB
22855# func_len string
22856# STRING may not start with a hyphen.
22857func_len ()
22858{
22859 func_len_result=${#1}
22860}
bf9f3bac 22861
8934764e
BB
22862_LT_EOF
22863 ;;
22864 *) # Bourne compatible functions.
22865 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22866
8934764e
BB
22867# func_dirname file append nondir_replacement
22868# Compute the dirname of FILE. If nonempty, add APPEND to the result,
22869# otherwise set result to NONDIR_REPLACEMENT.
22870func_dirname ()
22871{
22872 # Extract subdirectory from the argument.
22873 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22874 if test "X$func_dirname_result" = "X${1}"; then
22875 func_dirname_result="${3}"
22876 else
22877 func_dirname_result="$func_dirname_result${2}"
bf9f3bac 22878 fi
8934764e 22879}
bf9f3bac 22880
8934764e
BB
22881# func_basename file
22882func_basename ()
22883{
22884 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22885}
bf9f3bac 22886
bf9f3bac 22887
8934764e
BB
22888# func_stripname prefix suffix name
22889# strip PREFIX and SUFFIX off of NAME.
22890# PREFIX and SUFFIX must not contain globbing or regex special
22891# characters, hashes, percent signs, but SUFFIX may contain a leading
22892# dot (in which case that matches only a dot).
22893# func_strip_suffix prefix name
22894func_stripname ()
22895{
22896 case ${2} in
22897 .*) func_stripname_result=`$ECHO "X${3}" \
22898 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22899 *) func_stripname_result=`$ECHO "X${3}" \
22900 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22901 esac
22902}
bf9f3bac 22903
8934764e
BB
22904# sed scripts:
22905my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22906my_sed_long_arg='1s/^-[^=]*=//'
bf9f3bac 22907
8934764e
BB
22908# func_opt_split
22909func_opt_split ()
22910{
22911 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22912 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22913}
bf9f3bac 22914
8934764e
BB
22915# func_lo2o object
22916func_lo2o ()
22917{
22918 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22919}
bf9f3bac 22920
8934764e
BB
22921# func_xform libobj-or-source
22922func_xform ()
22923{
22924 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22925}
bf9f3bac 22926
8934764e
BB
22927# func_arith arithmetic-term...
22928func_arith ()
22929{
22930 func_arith_result=`expr "$@"`
22931}
bf9f3bac 22932
8934764e
BB
22933# func_len string
22934# STRING may not start with a hyphen.
22935func_len ()
22936{
22937 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22938}
bf9f3bac 22939
8934764e
BB
22940_LT_EOF
22941esac
bf9f3bac 22942
8934764e
BB
22943case $lt_shell_append in
22944 yes)
22945 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22946
8934764e
BB
22947# func_append var value
22948# Append VALUE to the end of shell variable VAR.
22949func_append ()
22950{
22951 eval "$1+=\$2"
22952}
22953_LT_EOF
22954 ;;
22955 *)
22956 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 22957
8934764e
BB
22958# func_append var value
22959# Append VALUE to the end of shell variable VAR.
22960func_append ()
22961{
22962 eval "$1=\$$1\$2"
22963}
bf9f3bac 22964
8934764e
BB
22965_LT_EOF
22966 ;;
16b719f0 22967 esac
bf9f3bac 22968
bf9f3bac 22969
8934764e
BB
22970 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22971 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 22972
8934764e
BB
22973 mv -f "$cfgfile" "$ofile" ||
22974 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22975 chmod +x "$ofile"
bf9f3bac 22976
bf9f3bac 22977 ;;
8934764e 22978
bf9f3bac 22979 esac
8934764e 22980done # for ac_tag
bf9f3bac 22981
bf9f3bac 22982
22983{ (exit 0); exit 0; }
22984_ACEOF
22985chmod +x $CONFIG_STATUS
22986ac_clean_files=$ac_clean_files_save
22987
8934764e
BB
22988test $ac_write_fail = 0 ||
22989 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22990$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22991 { (exit 1); exit 1; }; }
22992
bf9f3bac 22993
22994# configure is writing to config.log, and then calls config.status.
22995# config.status does its own redirection, appending to config.log.
22996# Unfortunately, on DOS this fails, as config.log is still kept open
22997# by configure, so config.status won't be able to write to it; its
22998# output is simply discarded. So we exec the FD to /dev/null,
22999# effectively closing config.log, so it can be properly (re)opened and
23000# appended to by config.status. When coming back to configure, we
23001# need to make the FD available again.
23002if test "$no_create" != yes; then
23003 ac_cs_success=:
23004 ac_config_status_args=
23005 test "$silent" = yes &&
23006 ac_config_status_args="$ac_config_status_args --quiet"
23007 exec 5>/dev/null
23008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23009 exec 5>>config.log
23010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23011 # would make configure fail if this is the last instruction.
23012 $ac_cs_success || { (exit 1); exit 1; }
23013fi
8934764e
BB
23014if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23015 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23016$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23017fi
bf9f3bac 23018