]> git.proxmox.com Git - mirror_spl.git/blame - configure
Allow config/build to work with autoconf-2.65
[mirror_spl.git] / configure
CommitLineData
bf9f3bac 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8934764e 3# Generated by GNU Autoconf 2.63.
bf9f3bac 4#
8934764e
BB
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
bf9f3bac 7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
8934764e
BB
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
bf9f3bac 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
8934764e 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
bf9f3bac 19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
8934764e
BB
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
bf9f3bac 79fi
bf9f3bac 80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
8934764e
BB
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118fi
119
bf9f3bac 120# Work around bugs in pre-3.0 UWIN ksh.
8934764e
BB
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
bf9f3bac 124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
8934764e
BB
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
bf9f3bac 133
134# Required to use basename.
8934764e
BB
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bf9f3bac 137 as_expr=expr
138else
139 as_expr=false
140fi
141
8934764e 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
bf9f3bac 143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
8934764e 150as_me=`$as_basename -- "$0" ||
bf9f3bac 151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
8934764e
BB
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
bf9f3bac 168
8934764e
BB
169# CDPATH.
170$as_unset CDPATH
bf9f3bac 171
bf9f3bac 172
8934764e
BB
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
bf9f3bac 178fi
179
8934764e
BB
180 if test $as_have_required = yes && (eval ":
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
bf9f3bac 196
8934764e
BB
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
bf9f3bac 204
8934764e
BB
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
bf9f3bac 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
8934764e 245 case $as_dir in
bf9f3bac 246 /*)
8934764e
BB
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
bf9f3bac 347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
bf9f3bac 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
8934764e
BB
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
bf9f3bac 447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
8934764e
BB
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
bf9f3bac 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8934764e
BB
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
bf9f3bac 462 sed '
8934764e
BB
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
bf9f3bac 467 N
8934764e
BB
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
bf9f3bac 470 t loop
8934764e 471 s/-\n.*//
bf9f3bac 472 ' >$as_me.lineno &&
8934764e
BB
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
bf9f3bac 475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
8934764e
BB
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
bf9f3bac 481 # Exit status is that of the last command.
482 exit
483}
484
485
8934764e
BB
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
bf9f3bac 491
8934764e
BB
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
bf9f3bac 504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
8934764e
BB
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
bf9f3bac 518 as_ln_s='ln -s'
8934764e
BB
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
bf9f3bac 529 fi
bf9f3bac 530else
531 as_ln_s='cp -p'
532fi
8934764e
BB
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
bf9f3bac 535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
8934764e
BB
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563fi
564as_executable_p=$as_test_x
bf9f3bac 565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
bf9f3bac 573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
8934764e 578case X$lt_ECHO in
bf9f3bac 579X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
8934764e 581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
bf9f3bac 582 ;;
583esac
584
8934764e 585ECHO=${lt_ECHO-echo}
bf9f3bac 586if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
8934764e
BB
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
bf9f3bac 594 :
595else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
8934764e 603 cat <<_LT_EOF
bf9f3bac 604$*
8934764e 605_LT_EOF
bf9f3bac 606 exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
8934764e
BB
613if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
bf9f3bac 625
8934764e
BB
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
bf9f3bac 636
8934764e
BB
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
bf9f3bac 648 IFS="$lt_save_ifs"
bf9f3bac 649
8934764e
BB
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
bf9f3bac 665 else
8934764e
BB
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
bf9f3bac 690
8934764e
BB
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
bf9f3bac 698
8934764e
BB
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
bf9f3bac 708 fi
709 fi
710 fi
711fi
bf9f3bac 712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
8934764e
BB
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
bf9f3bac 718fi
719
720
721
722
8934764e 723exec 7<&0 </dev/null 6>&1
bf9f3bac 724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
bf9f3bac 730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
8934764e 734ac_clean_files=
bf9f3bac 735ac_config_libobj_dir=.
8934764e 736LIBOBJS=
bf9f3bac 737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
bf9f3bac 743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
8934764e 753#ifdef HAVE_SYS_TYPES_H
bf9f3bac 754# include <sys/types.h>
755#endif
8934764e 756#ifdef HAVE_SYS_STAT_H
bf9f3bac 757# include <sys/stat.h>
758#endif
8934764e 759#ifdef STDC_HEADERS
bf9f3bac 760# include <stdlib.h>
761# include <stddef.h>
762#else
8934764e 763# ifdef HAVE_STDLIB_H
bf9f3bac 764# include <stdlib.h>
765# endif
766#endif
8934764e
BB
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
bf9f3bac 769# include <memory.h>
770# endif
771# include <string.h>
772#endif
8934764e 773#ifdef HAVE_STRINGS_H
bf9f3bac 774# include <strings.h>
775#endif
8934764e 776#ifdef HAVE_INTTYPES_H
bf9f3bac 777# include <inttypes.h>
bf9f3bac 778#endif
8934764e
BB
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
bf9f3bac 783# include <unistd.h>
784#endif"
785
8934764e
BB
786ac_subst_vars='am__EXEEXT_FALSE
787am__EXEEXT_TRUE
788LTLIBOBJS
789LIBOBJS
790CONFIG_KERNEL_FALSE
791CONFIG_KERNEL_TRUE
792CONFIG_USER_FALSE
793CONFIG_USER_TRUE
c950d148 794DEBUG_CFLAGS
8934764e
BB
795KERNELCPPFLAGS
796KERNELMAKE_PARAMS
797LINUX_SYMBOLS
798LINUX_VERSION
799LINUX_OBJ
800LINUX
801SPL_CONFIG
802LICENSE
803CPP
804OTOOL64
805OTOOL
806LIPO
807NMEDIT
808DSYMUTIL
809lt_ECHO
810RANLIB
811AR
812OBJDUMP
813LN_S
814NM
815ac_ct_DUMPBIN
816DUMPBIN
817LD
818FGREP
819EGREP
820GREP
821SED
822LIBTOOL
823am__fastdepCC_FALSE
824am__fastdepCC_TRUE
825CCDEPMODE
826AMDEPBACKSLASH
827AMDEP_FALSE
828AMDEP_TRUE
829am__quote
830am__include
831DEPDIR
832OBJEXT
833EXEEXT
834ac_ct_CC
835CPPFLAGS
836LDFLAGS
837CFLAGS
838CC
839am__untar
840am__tar
841AMTAR
842am__leading_dot
843SET_MAKE
844AWK
845mkdir_p
846MKDIR_P
847INSTALL_STRIP_PROGRAM
848STRIP
849install_sh
850MAKEINFO
851AUTOHEADER
852AUTOMAKE
853AUTOCONF
854ACLOCAL
855VERSION
856PACKAGE
857CYGPATH_W
858am__isrc
859INSTALL_DATA
860INSTALL_SCRIPT
861INSTALL_PROGRAM
862AM_BACKSLASH
863AM_DEFAULT_VERBOSITY
864MAINT
865MAINTAINER_MODE_FALSE
866MAINTAINER_MODE_TRUE
867target_os
868target_vendor
869target_cpu
870target
871host_os
872host_vendor
873host_cpu
874host
875build_os
876build_vendor
877build_cpu
878build
879SPL_META_LT_AGE
880SPL_META_LT_REVISION
881SPL_META_LT_CURRENT
882SPL_META_AUTHOR
883SPL_META_DATA
884SPL_META_ALIAS
885SPL_META_RELEASE
886SPL_META_VERSION
887SPL_META_NAME
888target_alias
889host_alias
890build_alias
891LIBS
892ECHO_T
893ECHO_N
894ECHO_C
895DEFS
896mandir
897localedir
898libdir
899psdir
900pdfdir
901dvidir
902htmldir
903infodir
904docdir
905oldincludedir
906includedir
907localstatedir
908sharedstatedir
909sysconfdir
910datadir
911datarootdir
912libexecdir
913sbindir
914bindir
915program_transform_name
916prefix
917exec_prefix
918PACKAGE_BUGREPORT
919PACKAGE_STRING
920PACKAGE_VERSION
921PACKAGE_TARNAME
922PACKAGE_NAME
923PATH_SEPARATOR
924SHELL'
bf9f3bac 925ac_subst_files=''
8934764e
BB
926ac_user_opts='
927enable_option_checking
928enable_maintainer_mode
929enable_silent_rules
930enable_dependency_tracking
931enable_shared
932enable_static
933with_pic
934enable_fast_install
935with_gnu_ld
936enable_libtool_lock
937with_config
938with_linux
939with_linux_obj
940enable_debug
941enable_debug_kmem
942enable_debug_kmem_tracking
943enable_atomic_spinlocks
944'
945 ac_precious_vars='build_alias
946host_alias
947target_alias
948CC
949CFLAGS
950LDFLAGS
951LIBS
952CPPFLAGS
953CPP'
954
bf9f3bac 955
956# Initialize some variables set by options.
957ac_init_help=
958ac_init_version=false
8934764e
BB
959ac_unrecognized_opts=
960ac_unrecognized_sep=
bf9f3bac 961# The variables have the same names as the options, with
962# dashes changed to underlines.
963cache_file=/dev/null
964exec_prefix=NONE
965no_create=
966no_recursion=
967prefix=NONE
968program_prefix=NONE
969program_suffix=NONE
970program_transform_name=s,x,x,
971silent=
972site=
973srcdir=
974verbose=
975x_includes=NONE
976x_libraries=NONE
977
978# Installation directory options.
979# These are left unexpanded so users can "make install exec_prefix=/foo"
980# and all the variables that are supposed to be based on exec_prefix
981# by default will actually change.
982# Use braces instead of parens because sh, perl, etc. also accept them.
8934764e 983# (The list follows the same order as the GNU Coding Standards.)
bf9f3bac 984bindir='${exec_prefix}/bin'
985sbindir='${exec_prefix}/sbin'
986libexecdir='${exec_prefix}/libexec'
8934764e
BB
987datarootdir='${prefix}/share'
988datadir='${datarootdir}'
bf9f3bac 989sysconfdir='${prefix}/etc'
990sharedstatedir='${prefix}/com'
991localstatedir='${prefix}/var'
bf9f3bac 992includedir='${prefix}/include'
993oldincludedir='/usr/include'
8934764e
BB
994docdir='${datarootdir}/doc/${PACKAGE}'
995infodir='${datarootdir}/info'
996htmldir='${docdir}'
997dvidir='${docdir}'
998pdfdir='${docdir}'
999psdir='${docdir}'
1000libdir='${exec_prefix}/lib'
1001localedir='${datarootdir}/locale'
1002mandir='${datarootdir}/man'
bf9f3bac 1003
1004ac_prev=
8934764e 1005ac_dashdash=
bf9f3bac 1006for ac_option
1007do
1008 # If the previous option needs an argument, assign it.
1009 if test -n "$ac_prev"; then
8934764e 1010 eval $ac_prev=\$ac_option
bf9f3bac 1011 ac_prev=
1012 continue
1013 fi
1014
8934764e
BB
1015 case $ac_option in
1016 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 *) ac_optarg=yes ;;
1018 esac
bf9f3bac 1019
1020 # Accept the important Cygnus configure options, so we can diagnose typos.
1021
8934764e
BB
1022 case $ac_dashdash$ac_option in
1023 --)
1024 ac_dashdash=yes ;;
bf9f3bac 1025
1026 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1027 ac_prev=bindir ;;
1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1029 bindir=$ac_optarg ;;
1030
1031 -build | --build | --buil | --bui | --bu)
1032 ac_prev=build_alias ;;
1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1034 build_alias=$ac_optarg ;;
1035
1036 -cache-file | --cache-file | --cache-fil | --cache-fi \
1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1038 ac_prev=cache_file ;;
1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1041 cache_file=$ac_optarg ;;
1042
1043 --config-cache | -C)
1044 cache_file=config.cache ;;
1045
8934764e 1046 -datadir | --datadir | --datadi | --datad)
bf9f3bac 1047 ac_prev=datadir ;;
8934764e 1048 -datadir=* | --datadir=* | --datadi=* | --datad=*)
bf9f3bac 1049 datadir=$ac_optarg ;;
1050
8934764e
BB
1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1052 | --dataroo | --dataro | --datar)
1053 ac_prev=datarootdir ;;
1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1056 datarootdir=$ac_optarg ;;
1057
bf9f3bac 1058 -disable-* | --disable-*)
8934764e 1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
bf9f3bac 1060 # Reject names that are not valid shell variable names.
8934764e
BB
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1063 { (exit 1); exit 1; }; }
8934764e
BB
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068"enable_$ac_useropt"
1069"*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
bf9f3bac 1084
1085 -enable-* | --enable-*)
8934764e 1086 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
bf9f3bac 1087 # Reject names that are not valid shell variable names.
8934764e
BB
1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
bf9f3bac 1090 { (exit 1); exit 1; }; }
8934764e
BB
1091 ac_useropt_orig=$ac_useropt
1092 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093 case $ac_user_opts in
1094 *"
1095"enable_$ac_useropt"
1096"*) ;;
1097 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1098 ac_unrecognized_sep=', ';;
bf9f3bac 1099 esac
8934764e 1100 eval enable_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1101
1102 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1103 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1104 | --exec | --exe | --ex)
1105 ac_prev=exec_prefix ;;
1106 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1107 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1108 | --exec=* | --exe=* | --ex=*)
1109 exec_prefix=$ac_optarg ;;
1110
1111 -gas | --gas | --ga | --g)
1112 # Obsolete; use --with-gas.
1113 with_gas=yes ;;
1114
1115 -help | --help | --hel | --he | -h)
1116 ac_init_help=long ;;
1117 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1118 ac_init_help=recursive ;;
1119 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1120 ac_init_help=short ;;
1121
1122 -host | --host | --hos | --ho)
1123 ac_prev=host_alias ;;
1124 -host=* | --host=* | --hos=* | --ho=*)
1125 host_alias=$ac_optarg ;;
1126
8934764e
BB
1127 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 ac_prev=htmldir ;;
1129 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 | --ht=*)
1131 htmldir=$ac_optarg ;;
1132
bf9f3bac 1133 -includedir | --includedir | --includedi | --included | --include \
1134 | --includ | --inclu | --incl | --inc)
1135 ac_prev=includedir ;;
1136 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1137 | --includ=* | --inclu=* | --incl=* | --inc=*)
1138 includedir=$ac_optarg ;;
1139
1140 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 ac_prev=infodir ;;
1142 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1143 infodir=$ac_optarg ;;
1144
1145 -libdir | --libdir | --libdi | --libd)
1146 ac_prev=libdir ;;
1147 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1148 libdir=$ac_optarg ;;
1149
1150 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1151 | --libexe | --libex | --libe)
1152 ac_prev=libexecdir ;;
1153 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1154 | --libexe=* | --libex=* | --libe=*)
1155 libexecdir=$ac_optarg ;;
1156
8934764e
BB
1157 -localedir | --localedir | --localedi | --localed | --locale)
1158 ac_prev=localedir ;;
1159 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1160 localedir=$ac_optarg ;;
1161
bf9f3bac 1162 -localstatedir | --localstatedir | --localstatedi | --localstated \
8934764e 1163 | --localstate | --localstat | --localsta | --localst | --locals)
bf9f3bac 1164 ac_prev=localstatedir ;;
1165 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8934764e 1166 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
bf9f3bac 1167 localstatedir=$ac_optarg ;;
1168
1169 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 ac_prev=mandir ;;
1171 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1172 mandir=$ac_optarg ;;
1173
1174 -nfp | --nfp | --nf)
1175 # Obsolete; use --without-fp.
1176 with_fp=no ;;
1177
1178 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1179 | --no-cr | --no-c | -n)
1180 no_create=yes ;;
1181
1182 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1183 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 no_recursion=yes ;;
1185
1186 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1187 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1188 | --oldin | --oldi | --old | --ol | --o)
1189 ac_prev=oldincludedir ;;
1190 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1191 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1192 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1193 oldincludedir=$ac_optarg ;;
1194
1195 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 ac_prev=prefix ;;
1197 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1198 prefix=$ac_optarg ;;
1199
1200 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1201 | --program-pre | --program-pr | --program-p)
1202 ac_prev=program_prefix ;;
1203 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1204 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1205 program_prefix=$ac_optarg ;;
1206
1207 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1208 | --program-suf | --program-su | --program-s)
1209 ac_prev=program_suffix ;;
1210 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1211 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1212 program_suffix=$ac_optarg ;;
1213
1214 -program-transform-name | --program-transform-name \
1215 | --program-transform-nam | --program-transform-na \
1216 | --program-transform-n | --program-transform- \
1217 | --program-transform | --program-transfor \
1218 | --program-transfo | --program-transf \
1219 | --program-trans | --program-tran \
1220 | --progr-tra | --program-tr | --program-t)
1221 ac_prev=program_transform_name ;;
1222 -program-transform-name=* | --program-transform-name=* \
1223 | --program-transform-nam=* | --program-transform-na=* \
1224 | --program-transform-n=* | --program-transform-=* \
1225 | --program-transform=* | --program-transfor=* \
1226 | --program-transfo=* | --program-transf=* \
1227 | --program-trans=* | --program-tran=* \
1228 | --progr-tra=* | --program-tr=* | --program-t=*)
1229 program_transform_name=$ac_optarg ;;
1230
8934764e
BB
1231 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 ac_prev=pdfdir ;;
1233 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1234 pdfdir=$ac_optarg ;;
1235
1236 -psdir | --psdir | --psdi | --psd | --ps)
1237 ac_prev=psdir ;;
1238 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 psdir=$ac_optarg ;;
1240
bf9f3bac 1241 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1242 | -silent | --silent | --silen | --sile | --sil)
1243 silent=yes ;;
1244
1245 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 ac_prev=sbindir ;;
1247 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 | --sbi=* | --sb=*)
1249 sbindir=$ac_optarg ;;
1250
1251 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1252 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1253 | --sharedst | --shareds | --shared | --share | --shar \
1254 | --sha | --sh)
1255 ac_prev=sharedstatedir ;;
1256 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1257 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1258 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 | --sha=* | --sh=*)
1260 sharedstatedir=$ac_optarg ;;
1261
1262 -site | --site | --sit)
1263 ac_prev=site ;;
1264 -site=* | --site=* | --sit=*)
1265 site=$ac_optarg ;;
1266
1267 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 ac_prev=srcdir ;;
1269 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1270 srcdir=$ac_optarg ;;
1271
1272 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1273 | --syscon | --sysco | --sysc | --sys | --sy)
1274 ac_prev=sysconfdir ;;
1275 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1276 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1277 sysconfdir=$ac_optarg ;;
1278
1279 -target | --target | --targe | --targ | --tar | --ta | --t)
1280 ac_prev=target_alias ;;
1281 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1282 target_alias=$ac_optarg ;;
1283
1284 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 verbose=yes ;;
1286
1287 -version | --version | --versio | --versi | --vers | -V)
1288 ac_init_version=: ;;
1289
1290 -with-* | --with-*)
8934764e 1291 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
bf9f3bac 1292 # Reject names that are not valid shell variable names.
8934764e
BB
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1295 { (exit 1); exit 1; }; }
8934764e
BB
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300"with_$ac_useropt"
1301"*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
bf9f3bac 1304 esac
8934764e 1305 eval with_$ac_useropt=\$ac_optarg ;;
bf9f3bac 1306
1307 -without-* | --without-*)
8934764e 1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
bf9f3bac 1309 # Reject names that are not valid shell variable names.
8934764e
BB
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
bf9f3bac 1312 { (exit 1); exit 1; }; }
8934764e
BB
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"with_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
bf9f3bac 1323
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1327
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1334
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1341
8934764e 1342 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
bf9f3bac 1343Try \`$0 --help' for more information." >&2
1344 { (exit 1); exit 1; }; }
1345 ;;
1346
1347 *=*)
1348 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8934764e 1351 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
bf9f3bac 1352 { (exit 1); exit 1; }; }
8934764e 1353 eval $ac_envvar=\$ac_optarg
bf9f3bac 1354 export $ac_envvar ;;
1355
1356 *)
1357 # FIXME: should be removed in autoconf 3.0.
8934764e 1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
bf9f3bac 1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8934764e 1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
bf9f3bac 1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1362 ;;
1363
1364 esac
1365done
1366
1367if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8934764e 1369 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
bf9f3bac 1370 { (exit 1); exit 1; }; }
1371fi
1372
8934764e
BB
1373if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1375 no) ;;
1376 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1377 { (exit 1); exit 1; }; } ;;
1378 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
bf9f3bac 1379 esac
8934764e 1380fi
bf9f3bac 1381
8934764e
BB
1382# Check all directory arguments for consistency.
1383for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir
bf9f3bac 1387do
8934764e
BB
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
bf9f3bac 1390 case $ac_val in
8934764e
BB
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
bf9f3bac 1394 esac
8934764e
BB
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1401 { (exit 1); exit 1; }; }
bf9f3bac 1402done
1403
1404# There might be people who depend on the old broken behavior: `$host'
1405# used to hold the argument of --host etc.
1406# FIXME: To remove some day.
1407build=$build_alias
1408host=$host_alias
1409target=$target_alias
1410
1411# FIXME: To remove some day.
1412if test "x$host_alias" != x; then
1413 if test "x$build_alias" = x; then
1414 cross_compiling=maybe
8934764e 1415 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
bf9f3bac 1416 If a cross compiler is detected then cross compile mode will be used." >&2
1417 elif test "x$build_alias" != "x$host_alias"; then
1418 cross_compiling=yes
1419 fi
1420fi
1421
1422ac_tool_prefix=
1423test -n "$host_alias" && ac_tool_prefix=$host_alias-
1424
1425test "$silent" = yes && exec 6>/dev/null
1426
1427
8934764e
BB
1428ac_pwd=`pwd` && test -n "$ac_pwd" &&
1429ac_ls_di=`ls -di .` &&
1430ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1431 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1432 { (exit 1); exit 1; }; }
1433test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1434 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1435 { (exit 1); exit 1; }; }
1436
1437
bf9f3bac 1438# Find the source files, if location was not specified.
1439if test -z "$srcdir"; then
1440 ac_srcdir_defaulted=yes
8934764e
BB
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir=`$as_dirname -- "$as_myself" ||
1443$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447$as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 s//\1/
1450 q
1451 }
1452 /^X\(\/\/\)[^/].*/{
1453 s//\1/
1454 q
1455 }
1456 /^X\(\/\/\)$/{
1457 s//\1/
1458 q
1459 }
1460 /^X\(\/\).*/{
1461 s//\1/
1462 q
1463 }
1464 s/.*/./; q'`
bf9f3bac 1465 srcdir=$ac_confdir
8934764e 1466 if test ! -r "$srcdir/$ac_unique_file"; then
bf9f3bac 1467 srcdir=..
1468 fi
1469else
1470 ac_srcdir_defaulted=no
1471fi
8934764e
BB
1472if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1474 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bf9f3bac 1475 { (exit 1); exit 1; }; }
bf9f3bac 1476fi
8934764e
BB
1477ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1478ac_abs_confdir=`(
1479 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
bf9f3bac 1480 { (exit 1); exit 1; }; }
8934764e
BB
1481 pwd)`
1482# When building in place, set srcdir=.
1483if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 srcdir=.
1485fi
1486# Remove unnecessary trailing slashes from srcdir.
1487# Double slashes in file names in object file debugging info
1488# mess up M-x gdb in Emacs.
1489case $srcdir in
1490*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491esac
1492for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497done
bf9f3bac 1498
1499#
1500# Report the --help message.
1501#
1502if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1505 cat <<_ACEOF
1506\`configure' configures this package to adapt to many kinds of systems.
1507
1508Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511VAR=VALUE. See below for descriptions of some of the useful variables.
1512
1513Defaults for the options are specified in brackets.
1514
1515Configuration:
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525
bf9f3bac 1526Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
8934764e 1528 [$ac_default_prefix]
bf9f3bac 1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8934764e 1530 [PREFIX]
bf9f3bac 1531
1532By default, \`make install' will install all the files in
1533\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535for instance \`--prefix=\$HOME'.
1536
1537For better control, use the options below.
1538
1539Fine tuning of the installation directories:
8934764e
BB
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
bf9f3bac 1559_ACEOF
1560
1561 cat <<\_ACEOF
1562
1563Program names:
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1567
1568System types:
1569 --build=BUILD configure for building on BUILD [guessed]
1570 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1571 --target=TARGET configure for building compilers for TARGET [HOST]
1572_ACEOF
1573fi
1574
1575if test -n "$ac_init_help"; then
1576
1577 cat <<\_ACEOF
1578
1579Optional Features:
8934764e 1580 --disable-option-checking ignore unrecognized --enable/--with options
bf9f3bac 1581 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1582 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1583 --enable-maintainer-mode enable make rules and dependencies not useful
1584 (and sometimes confusing) to the casual installer
8934764e
BB
1585 --enable-silent-rules less verbose build output (undo: `make V=1')
1586 --disable-silent-rules verbose build output (undo: `make V=0')
bf9f3bac 1587 --disable-dependency-tracking speeds up one-time build
1588 --enable-dependency-tracking do not reject slow dependency extractors
8934764e
BB
1589 --enable-shared[=PKGS] build shared libraries [default=yes]
1590 --enable-static[=PKGS] build static libraries [default=yes]
bf9f3bac 1591 --enable-fast-install[=PKGS]
1592 optimize for fast installation [default=yes]
1593 --disable-libtool-lock avoid locking (might break parallel builds)
055ffd98
BB
1594 --enable-debug Enable generic debug support [default=no]
1595 --enable-debug-kmem Enable basic kmem accounting [default=yes]
1596 --enable-debug-kmem-tracking
1597 Enable detailed kmem tracking [default=no]
5e9b5d83 1598 --enable-atomic-spinlocks
d04c8a56 1599 Atomic types use spinlocks [default=check]
bf9f3bac 1600
1601Optional Packages:
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bf9f3bac 1604 --with-pic try to use only PIC/non-PIC objects [default=use
1605 both]
8934764e 1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
c1541dfe 1607 --with-config=CONFIG Config file 'kernel|user|all|srpm'
bf9f3bac 1608 --with-linux=PATH Path to kernel source
1609 --with-linux-obj=PATH Path to kernel build objects
1610
1611Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
8934764e
BB
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
bf9f3bac 1619 CPP C preprocessor
bf9f3bac 1620
1621Use these variables to override the choices made by `configure' or to help
1622it to find libraries and programs with nonstandard names/locations.
1623
1624_ACEOF
8934764e 1625ac_status=$?
bf9f3bac 1626fi
1627
1628if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
bf9f3bac 1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8934764e
BB
1631 test -d "$ac_dir" ||
1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633 continue
bf9f3bac 1634 ac_builddir=.
1635
8934764e
BB
1636case "$ac_dir" in
1637.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638*)
1639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645 esac ;;
1646esac
1647ac_abs_top_builddir=$ac_pwd
1648ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649# for backward compatibility:
1650ac_top_builddir=$ac_top_build_prefix
bf9f3bac 1651
1652case $srcdir in
8934764e 1653 .) # We are building in place.
bf9f3bac 1654 ac_srcdir=.
8934764e
BB
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
bf9f3bac 1658 ac_srcdir=$srcdir$ac_dir_suffix;
8934764e
BB
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1661 *) # Relative name.
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
bf9f3bac 1665esac
8934764e
BB
1666ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure" --help=recursive
bf9f3bac 1676 else
8934764e
BB
1677 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 fi || ac_status=$?
1679 cd "$ac_pwd" || { ac_status=$?; break; }
bf9f3bac 1680 done
1681fi
1682
8934764e 1683test -n "$ac_init_help" && exit $ac_status
bf9f3bac 1684if $ac_init_version; then
1685 cat <<\_ACEOF
8934764e
BB
1686configure
1687generated by GNU Autoconf 2.63
bf9f3bac 1688
8934764e
BB
1689Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16902002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
bf9f3bac 1691This configure script is free software; the Free Software Foundation
1692gives unlimited permission to copy, distribute and modify it.
1693_ACEOF
8934764e 1694 exit
bf9f3bac 1695fi
8934764e 1696cat >config.log <<_ACEOF
bf9f3bac 1697This file contains any messages produced by compilers while
1698running configure, to aid debugging if configure makes a mistake.
1699
1700It was created by $as_me, which was
8934764e 1701generated by GNU Autoconf 2.63. Invocation command line was
bf9f3bac 1702
1703 $ $0 $@
1704
1705_ACEOF
8934764e 1706exec 5>>config.log
bf9f3bac 1707{
1708cat <<_ASUNAME
1709## --------- ##
1710## Platform. ##
1711## --------- ##
1712
1713hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718
1719/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721
1722/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
8934764e 1725/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
bf9f3bac 1726/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1729
1730_ASUNAME
1731
1732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733for as_dir in $PATH
1734do
1735 IFS=$as_save_IFS
1736 test -z "$as_dir" && as_dir=.
8934764e 1737 $as_echo "PATH: $as_dir"
bf9f3bac 1738done
8934764e 1739IFS=$as_save_IFS
bf9f3bac 1740
1741} >&5
1742
1743cat >&5 <<_ACEOF
1744
1745
1746## ----------- ##
1747## Core tests. ##
1748## ----------- ##
1749
1750_ACEOF
1751
1752
1753# Keep a trace of the command line.
1754# Strip out --no-create and --no-recursion so they do not pile up.
1755# Strip out --silent because we don't want to record it for future runs.
1756# Also quote any args containing shell meta-characters.
1757# Make two passes to allow for proper duplicate-argument suppression.
1758ac_configure_args=
1759ac_configure_args0=
1760ac_configure_args1=
bf9f3bac 1761ac_must_keep_next=false
1762for ac_pass in 1 2
1763do
1764 for ac_arg
1765 do
1766 case $ac_arg in
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1770 continue ;;
8934764e
BB
1771 *\'*)
1772 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 1773 esac
1774 case $ac_pass in
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 2)
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1780 else
1781 case $ac_arg in
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 esac
1789 ;;
1790 -* ) ac_must_keep_next=true ;;
1791 esac
1792 fi
8934764e 1793 ac_configure_args="$ac_configure_args '$ac_arg'"
bf9f3bac 1794 ;;
1795 esac
1796 done
1797done
1798$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800
1801# When interrupted or exit'd, cleanup temporary files, and complete
1802# config.log. We remove comments because anyway the quotes in there
1803# would cause problems or look ugly.
8934764e
BB
1804# WARNING: Use '\'' to represent an apostrophe within the trap.
1805# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
bf9f3bac 1806trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1808 {
1809 echo
1810
1811 cat <<\_ASBOX
1812## ---------------- ##
1813## Cache variables. ##
1814## ---------------- ##
1815_ASBOX
1816 echo
1817 # The following way of writing the cache mishandles newlines in values,
8934764e
BB
1818(
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in #(
1822 *${as_nl}*)
1823 case $ac_var in #(
1824 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1825$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1826 esac
1827 case $ac_var in #(
1828 _ | IFS | as_nl) ;; #(
1829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1830 *) $as_unset $ac_var ;;
1831 esac ;;
1832 esac
1833 done
bf9f3bac 1834 (set) 2>&1 |
8934764e
BB
1835 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1836 *${as_nl}ac_space=\ *)
bf9f3bac 1837 sed -n \
8934764e
BB
1838 "s/'\''/'\''\\\\'\'''\''/g;
1839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840 ;; #(
bf9f3bac 1841 *)
8934764e 1842 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
bf9f3bac 1843 ;;
8934764e
BB
1844 esac |
1845 sort
1846)
bf9f3bac 1847 echo
1848
1849 cat <<\_ASBOX
1850## ----------------- ##
1851## Output variables. ##
1852## ----------------- ##
1853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_vars
1856 do
8934764e
BB
1857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1862 done | sort
1863 echo
1864
1865 if test -n "$ac_subst_files"; then
1866 cat <<\_ASBOX
8934764e
BB
1867## ------------------- ##
1868## File substitutions. ##
1869## ------------------- ##
bf9f3bac 1870_ASBOX
1871 echo
1872 for ac_var in $ac_subst_files
1873 do
8934764e
BB
1874 eval ac_val=\$$ac_var
1875 case $ac_val in
1876 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 esac
1878 $as_echo "$ac_var='\''$ac_val'\''"
bf9f3bac 1879 done | sort
1880 echo
1881 fi
1882
1883 if test -s confdefs.h; then
1884 cat <<\_ASBOX
1885## ----------- ##
1886## confdefs.h. ##
1887## ----------- ##
1888_ASBOX
1889 echo
8934764e 1890 cat confdefs.h
bf9f3bac 1891 echo
1892 fi
1893 test "$ac_signal" != 0 &&
8934764e
BB
1894 $as_echo "$as_me: caught signal $ac_signal"
1895 $as_echo "$as_me: exit $exit_status"
bf9f3bac 1896 } >&5
8934764e
BB
1897 rm -f core *.core core.conftest.* &&
1898 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
bf9f3bac 1899 exit $exit_status
8934764e 1900' 0
bf9f3bac 1901for ac_signal in 1 2 13 15; do
1902 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1903done
1904ac_signal=0
1905
1906# confdefs.h avoids OS command line length limits that DEFS can exceed.
8934764e 1907rm -f -r conftest* confdefs.h
bf9f3bac 1908
1909# Predefined preprocessor variables.
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_NAME "$PACKAGE_NAME"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_VERSION "$PACKAGE_VERSION"
1923_ACEOF
1924
1925
1926cat >>confdefs.h <<_ACEOF
1927#define PACKAGE_STRING "$PACKAGE_STRING"
1928_ACEOF
1929
1930
1931cat >>confdefs.h <<_ACEOF
1932#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1933_ACEOF
1934
1935
1936# Let the site file select an alternate cache file if it wants to.
8934764e
BB
1937# Prefer an explicitly selected file to automatically selected ones.
1938ac_site_file1=NONE
1939ac_site_file2=NONE
1940if test -n "$CONFIG_SITE"; then
1941 ac_site_file1=$CONFIG_SITE
1942elif test "x$prefix" != xNONE; then
1943 ac_site_file1=$prefix/share/config.site
1944 ac_site_file2=$prefix/etc/config.site
1945else
1946 ac_site_file1=$ac_default_prefix/share/config.site
1947 ac_site_file2=$ac_default_prefix/etc/config.site
1948fi
1949for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1950do
1951 test "x$ac_site_file" = xNONE && continue
bf9f3bac 1952 if test -r "$ac_site_file"; then
8934764e
BB
1953 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1954$as_echo "$as_me: loading site script $ac_site_file" >&6;}
bf9f3bac 1955 sed 's/^/| /' "$ac_site_file" >&5
1956 . "$ac_site_file"
1957 fi
1958done
1959
1960if test -r "$cache_file"; then
1961 # Some versions of bash will fail to source /dev/null (special
1962 # files actually), so we avoid doing that.
1963 if test -f "$cache_file"; then
8934764e
BB
1964 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1965$as_echo "$as_me: loading cache $cache_file" >&6;}
bf9f3bac 1966 case $cache_file in
8934764e
BB
1967 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1968 *) . "./$cache_file";;
bf9f3bac 1969 esac
1970 fi
1971else
8934764e
BB
1972 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1973$as_echo "$as_me: creating cache $cache_file" >&6;}
bf9f3bac 1974 >$cache_file
1975fi
1976
1977# Check that the precious variables saved in the cache have kept the same
1978# value.
1979ac_cache_corrupted=false
8934764e 1980for ac_var in $ac_precious_vars; do
bf9f3bac 1981 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1982 eval ac_new_set=\$ac_env_${ac_var}_set
8934764e
BB
1983 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1984 eval ac_new_val=\$ac_env_${ac_var}_value
bf9f3bac 1985 case $ac_old_set,$ac_new_set in
1986 set,)
8934764e
BB
1987 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1988$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
bf9f3bac 1989 ac_cache_corrupted=: ;;
1990 ,set)
8934764e
BB
1991 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1992$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
bf9f3bac 1993 ac_cache_corrupted=: ;;
1994 ,);;
1995 *)
1996 if test "x$ac_old_val" != "x$ac_new_val"; then
8934764e
BB
1997 # differences in whitespace do not lead to failure.
1998 ac_old_val_w=`echo x $ac_old_val`
1999 ac_new_val_w=`echo x $ac_new_val`
2000 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2001 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2002$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2003 ac_cache_corrupted=:
2004 else
2005 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2006$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2007 eval $ac_var=\$ac_old_val
2008 fi
2009 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2010$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2011 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2012$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
bf9f3bac 2013 fi;;
2014 esac
2015 # Pass precious variables to config.status.
2016 if test "$ac_new_set" = set; then
2017 case $ac_new_val in
8934764e 2018 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bf9f3bac 2019 *) ac_arg=$ac_var=$ac_new_val ;;
2020 esac
2021 case " $ac_configure_args " in
2022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2023 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2024 esac
2025 fi
2026done
2027if $ac_cache_corrupted; then
8934764e
BB
2028 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2030 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2031$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2032 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2033$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
bf9f3bac 2034 { (exit 1); exit 1; }; }
2035fi
2036
bf9f3bac 2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
8934764e
BB
2053ac_ext=c
2054ac_cpp='$CPP $CPPFLAGS'
2055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2057ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 2058
2059
0c617c9a
BB
2060ac_ext=c
2061ac_cpp='$CPP $CPPFLAGS'
2062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065
2066
8934764e
BB
2067 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2068$as_echo_n "checking metadata... " >&6; }
dd529a30 2069
2070 META="$srcdir/META"
2071 _spl_ac_meta_got_file=no
2072 if test -f "$META"; then
2073 _spl_ac_meta_got_file=yes
2074
abc3ca14 2075 SPL_META_NAME=`perl -n\
dd529a30 2076 -e "BEGIN { \\$key=shift @ARGV; }"\
2077 -e "next unless s/^\s*\\$key[:=]//i;"\
2078 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2079 -e "s/^\s+//;"\
2080 -e "s/\s+$//;"\
2081 -e "s/^(['\"])(.*)\1/\\$2/;"\
2082 -e "\\$val=\\$_;"\
2083 -e "END { print \\$val if defined \\$val; }"\
2084 '(?:NAME|PROJECT|PACKAGE)' $META`;
abc3ca14 2085 if test -n "$SPL_META_NAME"; then
dd529a30 2086
2087cat >>confdefs.h <<_ACEOF
abc3ca14 2088#define SPL_META_NAME "$SPL_META_NAME"
dd529a30 2089_ACEOF
2090
2091
2092 fi
2093
abc3ca14 2094 SPL_META_VERSION=`perl -n\
dd529a30 2095 -e "BEGIN { \\$key=shift @ARGV; }"\
2096 -e "next unless s/^\s*\\$key[:=]//i;"\
2097 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2098 -e "s/^\s+//;"\
2099 -e "s/\s+$//;"\
2100 -e "s/^(['\"])(.*)\1/\\$2/;"\
2101 -e "\\$val=\\$_;"\
2102 -e "END { print \\$val if defined \\$val; }"\
2103 'VERSION' $META`;
abc3ca14 2104 if test -n "$SPL_META_VERSION"; then
dd529a30 2105
2106cat >>confdefs.h <<_ACEOF
abc3ca14 2107#define SPL_META_VERSION "$SPL_META_VERSION"
dd529a30 2108_ACEOF
2109
2110
2111 fi
2112
abc3ca14 2113 SPL_META_RELEASE=`perl -n\
dd529a30 2114 -e "BEGIN { \\$key=shift @ARGV; }"\
2115 -e "next unless s/^\s*\\$key[:=]//i;"\
2116 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2117 -e "s/^\s+//;"\
2118 -e "s/\s+$//;"\
2119 -e "s/^(['\"])(.*)\1/\\$2/;"\
2120 -e "\\$val=\\$_;"\
2121 -e "END { print \\$val if defined \\$val; }"\
2122 'RELEASE' $META`;
abc3ca14 2123 if test -n "$SPL_META_RELEASE"; then
dd529a30 2124
2125cat >>confdefs.h <<_ACEOF
abc3ca14 2126#define SPL_META_RELEASE "$SPL_META_RELEASE"
dd529a30 2127_ACEOF
2128
2129
2130 fi
2131
abc3ca14 2132 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
72e7de60 2133 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
abc3ca14 2134 test -n "$SPL_META_RELEASE" &&
72e7de60 2135 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
dd529a30 2136
2137cat >>confdefs.h <<_ACEOF
72e7de60 2138#define SPL_META_ALIAS "$SPL_META_ALIAS"
dd529a30 2139_ACEOF
2140
2141
2142 fi
2143
abc3ca14 2144 SPL_META_DATA=`perl -n\
dd529a30 2145 -e "BEGIN { \\$key=shift @ARGV; }"\
2146 -e "next unless s/^\s*\\$key[:=]//i;"\
2147 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2148 -e "s/^\s+//;"\
2149 -e "s/\s+$//;"\
2150 -e "s/^(['\"])(.*)\1/\\$2/;"\
2151 -e "\\$val=\\$_;"\
2152 -e "END { print \\$val if defined \\$val; }"\
2153 'DATE' $META`;
abc3ca14 2154 if test -n "$SPL_META_DATA"; then
dd529a30 2155
2156cat >>confdefs.h <<_ACEOF
abc3ca14 2157#define SPL_META_DATA "$SPL_META_DATA"
dd529a30 2158_ACEOF
2159
2160
2161 fi
2162
abc3ca14 2163 SPL_META_AUTHOR=`perl -n\
dd529a30 2164 -e "BEGIN { \\$key=shift @ARGV; }"\
2165 -e "next unless s/^\s*\\$key[:=]//i;"\
2166 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2167 -e "s/^\s+//;"\
2168 -e "s/\s+$//;"\
2169 -e "s/^(['\"])(.*)\1/\\$2/;"\
2170 -e "\\$val=\\$_;"\
2171 -e "END { print \\$val if defined \\$val; }"\
2172 'AUTHOR' $META`;
abc3ca14 2173 if test -n "$SPL_META_AUTHOR"; then
dd529a30 2174
2175cat >>confdefs.h <<_ACEOF
abc3ca14 2176#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
dd529a30 2177_ACEOF
2178
2179
2180 fi
2181
2182
abc3ca14 2183 SPL_META_LT_CURRENT=`perl -n\
dd529a30 2184 -e "BEGIN { \\$key=shift @ARGV; }"\
2185 -e "next unless s/^\s*\\$key[:=]//i;"\
2186 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2187 -e "s/^\s+//;"\
2188 -e "s/\s+$//;"\
2189 -e "s/^(['\"])(.*)\1/\\$2/;"\
2190 -e "\\$val=\\$_;"\
2191 -e "END { print \\$val if defined \\$val; }"\
2192 'LT_CURRENT' $META`;
abc3ca14 2193 SPL_META_LT_REVISION=`perl -n\
dd529a30 2194 -e "BEGIN { \\$key=shift @ARGV; }"\
2195 -e "next unless s/^\s*\\$key[:=]//i;"\
2196 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2197 -e "s/^\s+//;"\
2198 -e "s/\s+$//;"\
2199 -e "s/^(['\"])(.*)\1/\\$2/;"\
2200 -e "\\$val=\\$_;"\
2201 -e "END { print \\$val if defined \\$val; }"\
2202 'LT_REVISION' $META`;
abc3ca14 2203 SPL_META_LT_AGE=`perl -n\
dd529a30 2204 -e "BEGIN { \\$key=shift @ARGV; }"\
2205 -e "next unless s/^\s*\\$key[:=]//i;"\
2206 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2207 -e "s/^\s+//;"\
2208 -e "s/\s+$//;"\
2209 -e "s/^(['\"])(.*)\1/\\$2/;"\
2210 -e "\\$val=\\$_;"\
2211 -e "END { print \\$val if defined \\$val; }"\
2212 'LT_AGE' $META`;
abc3ca14
BB
2213 if test -n "$SPL_META_LT_CURRENT" \
2214 -o -n "$SPL_META_LT_REVISION" \
2215 -o -n "$SPL_META_LT_AGE"; then
2216 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2217 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2218 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
dd529a30 2219
2220cat >>confdefs.h <<_ACEOF
abc3ca14 2221#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
dd529a30 2222_ACEOF
2223
2224
2225cat >>confdefs.h <<_ACEOF
abc3ca14 2226#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
dd529a30 2227_ACEOF
2228
2229
2230cat >>confdefs.h <<_ACEOF
abc3ca14 2231#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
dd529a30 2232_ACEOF
2233
2234
2235
2236
2237 fi
2238 fi
2239
8934764e
BB
2240 { $as_echo "$as_me:$LINENO: result: $_spl_ac_meta_got_file" >&5
2241$as_echo "$_spl_ac_meta_got_file" >&6; }
dd529a30 2242
2243
bf9f3bac 2244ac_aux_dir=
8934764e
BB
2245for ac_dir in config "$srcdir"/config; do
2246 if test -f "$ac_dir/install-sh"; then
bf9f3bac 2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/install-sh -c"
2249 break
8934764e 2250 elif test -f "$ac_dir/install.sh"; then
bf9f3bac 2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/install.sh -c"
2253 break
8934764e 2254 elif test -f "$ac_dir/shtool"; then
bf9f3bac 2255 ac_aux_dir=$ac_dir
2256 ac_install_sh="$ac_aux_dir/shtool install -c"
2257 break
2258 fi
2259done
2260if test -z "$ac_aux_dir"; then
8934764e
BB
2261 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2262$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
bf9f3bac 2263 { (exit 1); exit 1; }; }
2264fi
8934764e
BB
2265
2266# These three variables are undocumented and unsupported,
2267# and are intended to be withdrawn in a future Autoconf release.
2268# They can cause serious problems if a builder's source tree is in a directory
2269# whose full name contains unusual characters.
2270ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2271ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2272ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2273
bf9f3bac 2274
2275# Make sure we can run config.sub.
8934764e
BB
2276$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2277 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2278$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
bf9f3bac 2279 { (exit 1); exit 1; }; }
2280
8934764e
BB
2281{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2282$as_echo_n "checking build system type... " >&6; }
bf9f3bac 2283if test "${ac_cv_build+set}" = set; then
8934764e
BB
2284 $as_echo_n "(cached) " >&6
2285else
2286 ac_build_alias=$build_alias
2287test "x$ac_build_alias" = x &&
2288 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2289test "x$ac_build_alias" = x &&
2290 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2291$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
bf9f3bac 2292 { (exit 1); exit 1; }; }
8934764e
BB
2293ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2294 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2295$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
bf9f3bac 2296 { (exit 1); exit 1; }; }
2297
2298fi
8934764e
BB
2299{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2300$as_echo "$ac_cv_build" >&6; }
2301case $ac_cv_build in
2302*-*-*) ;;
2303*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2304$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2305 { (exit 1); exit 1; }; };;
2306esac
bf9f3bac 2307build=$ac_cv_build
8934764e
BB
2308ac_save_IFS=$IFS; IFS='-'
2309set x $ac_cv_build
2310shift
2311build_cpu=$1
2312build_vendor=$2
2313shift; shift
2314# Remember, the first character of IFS is used to create $*,
2315# except with old shells:
2316build_os=$*
2317IFS=$ac_save_IFS
2318case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2319
2320
2321{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2322$as_echo_n "checking host system type... " >&6; }
bf9f3bac 2323if test "${ac_cv_host+set}" = set; then
8934764e
BB
2324 $as_echo_n "(cached) " >&6
2325else
2326 if test "x$host_alias" = x; then
2327 ac_cv_host=$ac_cv_build
2328else
2329 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2330 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2331$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
bf9f3bac 2332 { (exit 1); exit 1; }; }
8934764e 2333fi
bf9f3bac 2334
2335fi
8934764e
BB
2336{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2337$as_echo "$ac_cv_host" >&6; }
2338case $ac_cv_host in
2339*-*-*) ;;
2340*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2341$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2342 { (exit 1); exit 1; }; };;
2343esac
bf9f3bac 2344host=$ac_cv_host
8934764e
BB
2345ac_save_IFS=$IFS; IFS='-'
2346set x $ac_cv_host
2347shift
2348host_cpu=$1
2349host_vendor=$2
2350shift; shift
2351# Remember, the first character of IFS is used to create $*,
2352# except with old shells:
2353host_os=$*
2354IFS=$ac_save_IFS
2355case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2356
2357
2358{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2359$as_echo_n "checking target system type... " >&6; }
bf9f3bac 2360if test "${ac_cv_target+set}" = set; then
8934764e
BB
2361 $as_echo_n "(cached) " >&6
2362else
2363 if test "x$target_alias" = x; then
2364 ac_cv_target=$ac_cv_host
2365else
2366 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2367 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2368$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
bf9f3bac 2369 { (exit 1); exit 1; }; }
8934764e 2370fi
bf9f3bac 2371
2372fi
8934764e
BB
2373{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2374$as_echo "$ac_cv_target" >&6; }
2375case $ac_cv_target in
2376*-*-*) ;;
2377*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2378$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2379 { (exit 1); exit 1; }; };;
2380esac
bf9f3bac 2381target=$ac_cv_target
8934764e
BB
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_target
2384shift
2385target_cpu=$1
2386target_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390target_os=$*
2391IFS=$ac_save_IFS
2392case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
bf9f3bac 2393
2394
2395# The aliases save the names the user supplied, while $host etc.
2396# will get canonicalized.
2397test -n "$target_alias" &&
2398 test "$program_prefix$program_suffix$program_transform_name" = \
2399 NONENONEs,x,x, &&
2400 program_prefix=${target_alias}-
8934764e
BB
2401
2402{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2403$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2404 # Check whether --enable-maintainer-mode was given.
16b719f0 2405if test "${enable_maintainer_mode+set}" = set; then
8934764e 2406 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16b719f0
BB
2407else
2408 USE_MAINTAINER_MODE=no
8934764e 2409fi
16b719f0 2410
8934764e
BB
2411 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2412$as_echo "$USE_MAINTAINER_MODE" >&6; }
2413 if test $USE_MAINTAINER_MODE = yes; then
16b719f0
BB
2414 MAINTAINER_MODE_TRUE=
2415 MAINTAINER_MODE_FALSE='#'
2416else
2417 MAINTAINER_MODE_TRUE='#'
2418 MAINTAINER_MODE_FALSE=
2419fi
2420
2421 MAINT=$MAINTAINER_MODE_TRUE
2422
2423
8934764e
BB
2424# Check whether --enable-silent-rules was given.
2425if test "${enable_silent_rules+set}" = set; then
2426 enableval=$enable_silent_rules;
2427fi
2428
2429case $enable_silent_rules in
2430yes) AM_DEFAULT_VERBOSITY=0;;
2431no) AM_DEFAULT_VERBOSITY=1;;
2432*) AM_DEFAULT_VERBOSITY=1;;
2433esac
2434AM_BACKSLASH='\'
2435
2436am__api_version='1.11'
2437
bf9f3bac 2438# Find a good install program. We prefer a C program (faster),
2439# so one script is as good as another. But avoid the broken or
2440# incompatible versions:
2441# SysV /etc/install, /usr/sbin/install
2442# SunOS /usr/etc/install
2443# IRIX /sbin/install
2444# AIX /bin/install
2445# AmigaOS /C/install, which installs bootblocks on floppy discs
2446# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2447# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2448# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2449# OS/2's system install, which has a completely different semantic
2450# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2451# Reject install programs that cannot install multiple files.
2452{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2453$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2454if test -z "$INSTALL"; then
2455if test "${ac_cv_path_install+set}" = set; then
8934764e 2456 $as_echo_n "(cached) " >&6
bf9f3bac 2457else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459for as_dir in $PATH
2460do
2461 IFS=$as_save_IFS
2462 test -z "$as_dir" && as_dir=.
2463 # Account for people who put trailing slashes in PATH elements.
2464case $as_dir/ in
2465 ./ | .// | /cC/* | \
2466 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2467 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2468 /usr/ucb/* ) ;;
2469 *)
2470 # OSF1 and SCO ODT 3.0 have their own names for install.
2471 # Don't use installbsd from OSF since it installs stuff as root
2472 # by default.
2473 for ac_prog in ginstall scoinst install; do
2474 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2475 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2476 if test $ac_prog = install &&
2477 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2478 # AIX install. It has an incompatible calling convention.
2479 :
2480 elif test $ac_prog = install &&
2481 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2482 # program-specific install script used by HP pwplus--don't use.
2483 :
2484 else
8934764e
BB
2485 rm -rf conftest.one conftest.two conftest.dir
2486 echo one > conftest.one
2487 echo two > conftest.two
2488 mkdir conftest.dir
2489 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2490 test -s conftest.one && test -s conftest.two &&
2491 test -s conftest.dir/conftest.one &&
2492 test -s conftest.dir/conftest.two
2493 then
2494 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2495 break 3
2496 fi
bf9f3bac 2497 fi
2498 fi
2499 done
2500 done
2501 ;;
2502esac
8934764e 2503
bf9f3bac 2504done
8934764e 2505IFS=$as_save_IFS
bf9f3bac 2506
8934764e 2507rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 2508
2509fi
2510 if test "${ac_cv_path_install+set}" = set; then
2511 INSTALL=$ac_cv_path_install
2512 else
8934764e
BB
2513 # As a last resort, use the slow shell script. Don't cache a
2514 # value for INSTALL within a source directory, because that will
bf9f3bac 2515 # break other packages using the cache if that directory is
8934764e 2516 # removed, or if the value is a relative name.
bf9f3bac 2517 INSTALL=$ac_install_sh
2518 fi
2519fi
8934764e
BB
2520{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2521$as_echo "$INSTALL" >&6; }
bf9f3bac 2522
2523# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2524# It thinks the first close brace ends the variable substitution.
2525test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2526
2527test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2528
2529test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2530
8934764e
BB
2531{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2532$as_echo_n "checking whether build environment is sane... " >&6; }
bf9f3bac 2533# Just in case
2534sleep 1
2535echo timestamp > conftest.file
8934764e
BB
2536# Reject unsafe characters in $srcdir or the absolute working directory
2537# name. Accept space and tab only in the latter.
2538am_lf='
2539'
2540case `pwd` in
2541 *[\\\"\#\$\&\'\`$am_lf]*)
2542 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2543$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2544 { (exit 1); exit 1; }; };;
2545esac
2546case $srcdir in
2547 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2548 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2549$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2550 { (exit 1); exit 1; }; };;
2551esac
2552
bf9f3bac 2553# Do `set' in a subshell so we don't clobber the current shell's
2554# arguments. Must try -L first in case configure is actually a
2555# symlink; some systems play weird games with the mod time of symlinks
2556# (eg FreeBSD returns the mod time of the symlink's containing
2557# directory).
2558if (
8934764e 2559 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
bf9f3bac 2560 if test "$*" = "X"; then
2561 # -L didn't work.
8934764e 2562 set X `ls -t "$srcdir/configure" conftest.file`
bf9f3bac 2563 fi
2564 rm -f conftest.file
2565 if test "$*" != "X $srcdir/configure conftest.file" \
2566 && test "$*" != "X conftest.file $srcdir/configure"; then
2567
2568 # If neither matched, then we have a broken ls. This can happen
2569 # if, for instance, CONFIG_SHELL is bash and it inherits a
2570 # broken ls alias from the environment. This has actually
2571 # happened. Such a system could not be considered "sane".
8934764e 2572 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2573alias in your environment" >&5
8934764e 2574$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
bf9f3bac 2575alias in your environment" >&2;}
2576 { (exit 1); exit 1; }; }
2577 fi
2578
2579 test "$2" = conftest.file
2580 )
2581then
2582 # Ok.
2583 :
2584else
8934764e 2585 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
bf9f3bac 2586Check your system clock" >&5
8934764e 2587$as_echo "$as_me: error: newly created file is older than distributed files!
bf9f3bac 2588Check your system clock" >&2;}
2589 { (exit 1); exit 1; }; }
2590fi
8934764e
BB
2591{ $as_echo "$as_me:$LINENO: result: yes" >&5
2592$as_echo "yes" >&6; }
bf9f3bac 2593test "$program_prefix" != NONE &&
8934764e 2594 program_transform_name="s&^&$program_prefix&;$program_transform_name"
bf9f3bac 2595# Use a double $ so make ignores it.
2596test "$program_suffix" != NONE &&
8934764e
BB
2597 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2598# Double any \ or $.
bf9f3bac 2599# By default was `s,x,x', remove it if useless.
8934764e
BB
2600ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2601program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
bf9f3bac 2602
2603# expand $ac_aux_dir to an absolute path
2604am_aux_dir=`cd $ac_aux_dir && pwd`
2605
8934764e
BB
2606if test x"${MISSING+set}" != xset; then
2607 case $am_aux_dir in
2608 *\ * | *\ *)
2609 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2610 *)
2611 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2612 esac
2613fi
bf9f3bac 2614# Use eval to expand $SHELL
2615if eval "$MISSING --run true"; then
2616 am_missing_run="$MISSING --run "
2617else
2618 am_missing_run=
8934764e
BB
2619 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2620$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2621fi
2622
2623if test x"${install_sh}" != xset; then
2624 case $am_aux_dir in
2625 *\ * | *\ *)
2626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2627 *)
2628 install_sh="\${SHELL} $am_aux_dir/install-sh"
2629 esac
2630fi
2631
2632# Installed binaries are usually stripped using `strip' when the user
2633# run `make install-strip'. However `strip' might not be the right
2634# tool to use in cross-compilation environments, therefore Automake
2635# will honor the `STRIP' environment variable to overrule this program.
2636if test "$cross_compiling" != no; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2639set dummy ${ac_tool_prefix}strip; ac_word=$2
2640{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if test "${ac_cv_prog_STRIP+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2644else
2645 if test -n "$STRIP"; then
2646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659done
2660done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665STRIP=$ac_cv_prog_STRIP
2666if test -n "$STRIP"; then
2667 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2668$as_echo "$STRIP" >&6; }
2669else
2670 { $as_echo "$as_me:$LINENO: result: no" >&5
2671$as_echo "no" >&6; }
2672fi
2673
2674
2675fi
2676if test -z "$ac_cv_prog_STRIP"; then
2677 ac_ct_STRIP=$STRIP
2678 # Extract the first word of "strip", so it can be a program name with args.
2679set dummy strip; ac_word=$2
2680{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2681$as_echo_n "checking for $ac_word... " >&6; }
2682if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2684else
2685 if test -n "$ac_ct_STRIP"; then
2686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_STRIP="strip"
2696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700done
2701IFS=$as_save_IFS
2702
2703fi
2704fi
2705ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2706if test -n "$ac_ct_STRIP"; then
2707 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2708$as_echo "$ac_ct_STRIP" >&6; }
2709else
2710 { $as_echo "$as_me:$LINENO: result: no" >&5
2711$as_echo "no" >&6; }
2712fi
2713
2714 if test "x$ac_ct_STRIP" = x; then
2715 STRIP=":"
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718yes:)
2719{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721ac_tool_warned=yes ;;
2722esac
2723 STRIP=$ac_ct_STRIP
2724 fi
2725else
2726 STRIP="$ac_cv_prog_STRIP"
2727fi
2728
2729fi
2730INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2731
2732{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2733$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2734if test -z "$MKDIR_P"; then
2735 if test "${ac_cv_path_mkdir+set}" = set; then
2736 $as_echo_n "(cached) " >&6
2737else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2740do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_prog in mkdir gmkdir; do
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2747 'mkdir (GNU coreutils) '* | \
2748 'mkdir (coreutils) '* | \
2749 'mkdir (fileutils) '4.1*)
2750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2751 break 3;;
2752 esac
2753 done
2754 done
2755done
2756IFS=$as_save_IFS
2757
2758fi
2759
2760 if test "${ac_cv_path_mkdir+set}" = set; then
2761 MKDIR_P="$ac_cv_path_mkdir -p"
bf9f3bac 2762 else
8934764e
BB
2763 # As a last resort, use the slow shell script. Don't cache a
2764 # value for MKDIR_P within a source directory, because that will
2765 # break other packages using the cache if that directory is
2766 # removed, or if the value is a relative name.
2767 test -d ./--version && rmdir ./--version
2768 MKDIR_P="$ac_install_sh -d"
bf9f3bac 2769 fi
2770fi
8934764e
BB
2771{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2772$as_echo "$MKDIR_P" >&6; }
2773
2774mkdir_p="$MKDIR_P"
2775case $mkdir_p in
2776 [\\/$]* | ?:[\\/]*) ;;
2777 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2778esac
bf9f3bac 2779
2780for ac_prog in gawk mawk nawk awk
2781do
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783set dummy $ac_prog; ac_word=$2
8934764e
BB
2784{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 2786if test "${ac_cv_prog_AWK+set}" = set; then
8934764e 2787 $as_echo_n "(cached) " >&6
bf9f3bac 2788else
2789 if test -n "$AWK"; then
2790 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2791else
2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 2799 ac_cv_prog_AWK="$ac_prog"
8934764e 2800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 2801 break 2
2802 fi
2803done
2804done
8934764e 2805IFS=$as_save_IFS
bf9f3bac 2806
2807fi
2808fi
2809AWK=$ac_cv_prog_AWK
2810if test -n "$AWK"; then
8934764e
BB
2811 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2812$as_echo "$AWK" >&6; }
bf9f3bac 2813else
8934764e
BB
2814 { $as_echo "$as_me:$LINENO: result: no" >&5
2815$as_echo "no" >&6; }
bf9f3bac 2816fi
2817
8934764e 2818
bf9f3bac 2819 test -n "$AWK" && break
2820done
2821
8934764e
BB
2822{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2823$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2824set x ${MAKE-make}
2825ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2826if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2827 $as_echo_n "(cached) " >&6
bf9f3bac 2828else
2829 cat >conftest.make <<\_ACEOF
8934764e 2830SHELL = /bin/sh
bf9f3bac 2831all:
8934764e 2832 @echo '@@@%%%=$(MAKE)=@@@%%%'
bf9f3bac 2833_ACEOF
2834# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8934764e
BB
2835case `${MAKE-make} -f conftest.make 2>/dev/null` in
2836 *@@@%%%=?*=@@@%%%*)
2837 eval ac_cv_prog_make_${ac_make}_set=yes;;
2838 *)
2839 eval ac_cv_prog_make_${ac_make}_set=no;;
2840esac
bf9f3bac 2841rm -f conftest.make
2842fi
8934764e
BB
2843if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2844 { $as_echo "$as_me:$LINENO: result: yes" >&5
2845$as_echo "yes" >&6; }
bf9f3bac 2846 SET_MAKE=
2847else
8934764e
BB
2848 { $as_echo "$as_me:$LINENO: result: no" >&5
2849$as_echo "no" >&6; }
bf9f3bac 2850 SET_MAKE="MAKE=${MAKE-make}"
2851fi
2852
2853rm -rf .tst 2>/dev/null
2854mkdir .tst 2>/dev/null
2855if test -d .tst; then
2856 am__leading_dot=.
2857else
2858 am__leading_dot=_
2859fi
2860rmdir .tst 2>/dev/null
2861
8934764e
BB
2862if test "`cd $srcdir && pwd`" != "`pwd`"; then
2863 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2864 # is not polluted with repeated "-I."
2865 am__isrc=' -I$(srcdir)'
2866 # test to see if srcdir already configured
2867 if test -f $srcdir/config.status; then
2868 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2869$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
bf9f3bac 2870 { (exit 1); exit 1; }; }
8934764e 2871 fi
bf9f3bac 2872fi
2873
2874# test whether we have cygpath
2875if test -z "$CYGPATH_W"; then
2876 if (cygpath --version) >/dev/null 2>/dev/null; then
2877 CYGPATH_W='cygpath -w'
2878 else
2879 CYGPATH_W=echo
2880 fi
2881fi
2882
2883
2884# Define the identity of the package.
abc3ca14
BB
2885 PACKAGE=$SPL_META_NAME
2886 VERSION=$SPL_META_VERSION
bf9f3bac 2887
2888
2889cat >>confdefs.h <<_ACEOF
2890#define PACKAGE "$PACKAGE"
2891_ACEOF
2892
2893
2894cat >>confdefs.h <<_ACEOF
2895#define VERSION "$VERSION"
2896_ACEOF
2897
2898# Some tools Automake needs.
2899
2900ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2901
2902
2903AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2904
2905
2906AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2907
2908
2909AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2910
2911
2912MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2913
bf9f3bac 2914# We need awk for the "check" target. The system "awk" is bad on
2915# some platforms.
2916# Always define AMTAR for backward compatibility.
2917
2918AMTAR=${AMTAR-"${am_missing_run}tar"}
2919
2920am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2921
2922
2923
2924
2925
8934764e 2926ac_config_headers="$ac_config_headers spl_config.h"
bf9f3bac 2927
0cbaeb11 2928
bf9f3bac 2929# Find a good install program. We prefer a C program (faster),
2930# so one script is as good as another. But avoid the broken or
2931# incompatible versions:
2932# SysV /etc/install, /usr/sbin/install
2933# SunOS /usr/etc/install
2934# IRIX /sbin/install
2935# AIX /bin/install
2936# AmigaOS /C/install, which installs bootblocks on floppy discs
2937# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2938# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2939# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2940# OS/2's system install, which has a completely different semantic
2941# ./install, which can be erroneously created by make from ./install.sh.
8934764e
BB
2942# Reject install programs that cannot install multiple files.
2943{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2944$as_echo_n "checking for a BSD-compatible install... " >&6; }
bf9f3bac 2945if test -z "$INSTALL"; then
2946if test "${ac_cv_path_install+set}" = set; then
8934764e 2947 $as_echo_n "(cached) " >&6
bf9f3bac 2948else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952 IFS=$as_save_IFS
2953 test -z "$as_dir" && as_dir=.
2954 # Account for people who put trailing slashes in PATH elements.
2955case $as_dir/ in
2956 ./ | .// | /cC/* | \
2957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2958 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2959 /usr/ucb/* ) ;;
2960 *)
2961 # OSF1 and SCO ODT 3.0 have their own names for install.
2962 # Don't use installbsd from OSF since it installs stuff as root
2963 # by default.
2964 for ac_prog in ginstall scoinst install; do
2965 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 2966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
bf9f3bac 2967 if test $ac_prog = install &&
2968 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2969 # AIX install. It has an incompatible calling convention.
2970 :
2971 elif test $ac_prog = install &&
2972 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2973 # program-specific install script used by HP pwplus--don't use.
2974 :
2975 else
8934764e
BB
2976 rm -rf conftest.one conftest.two conftest.dir
2977 echo one > conftest.one
2978 echo two > conftest.two
2979 mkdir conftest.dir
2980 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2981 test -s conftest.one && test -s conftest.two &&
2982 test -s conftest.dir/conftest.one &&
2983 test -s conftest.dir/conftest.two
2984 then
2985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2986 break 3
2987 fi
bf9f3bac 2988 fi
2989 fi
2990 done
2991 done
2992 ;;
2993esac
8934764e 2994
bf9f3bac 2995done
8934764e 2996IFS=$as_save_IFS
bf9f3bac 2997
8934764e 2998rm -rf conftest.one conftest.two conftest.dir
bf9f3bac 2999
3000fi
3001 if test "${ac_cv_path_install+set}" = set; then
3002 INSTALL=$ac_cv_path_install
3003 else
8934764e
BB
3004 # As a last resort, use the slow shell script. Don't cache a
3005 # value for INSTALL within a source directory, because that will
bf9f3bac 3006 # break other packages using the cache if that directory is
8934764e 3007 # removed, or if the value is a relative name.
bf9f3bac 3008 INSTALL=$ac_install_sh
3009 fi
3010fi
8934764e
BB
3011{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3012$as_echo "$INSTALL" >&6; }
bf9f3bac 3013
3014# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3015# It thinks the first close brace ends the variable substitution.
3016test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3017
3018test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3019
3020test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3021
3022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027if test -n "$ac_tool_prefix"; then
3028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}gcc; ac_word=$2
8934764e
BB
3030{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3031$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3032if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3033 $as_echo_n "(cached) " >&6
bf9f3bac 3034else
3035 if test -n "$CC"; then
3036 ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8934764e 3046 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3047 break 2
3048 fi
3049done
3050done
8934764e 3051IFS=$as_save_IFS
bf9f3bac 3052
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
8934764e
BB
3057 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3058$as_echo "$CC" >&6; }
bf9f3bac 3059else
8934764e
BB
3060 { $as_echo "$as_me:$LINENO: result: no" >&5
3061$as_echo "no" >&6; }
bf9f3bac 3062fi
3063
8934764e 3064
bf9f3bac 3065fi
3066if test -z "$ac_cv_prog_CC"; then
3067 ac_ct_CC=$CC
3068 # Extract the first word of "gcc", so it can be a program name with args.
3069set dummy gcc; ac_word=$2
8934764e
BB
3070{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3073 $as_echo_n "(cached) " >&6
bf9f3bac 3074else
3075 if test -n "$ac_ct_CC"; then
3076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
3083 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3085 ac_cv_prog_ac_ct_CC="gcc"
8934764e 3086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3087 break 2
3088 fi
3089done
3090done
8934764e 3091IFS=$as_save_IFS
bf9f3bac 3092
3093fi
3094fi
3095ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096if test -n "$ac_ct_CC"; then
8934764e
BB
3097 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3098$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3099else
8934764e
BB
3100 { $as_echo "$as_me:$LINENO: result: no" >&5
3101$as_echo "no" >&6; }
bf9f3bac 3102fi
3103
8934764e
BB
3104 if test "x$ac_ct_CC" = x; then
3105 CC=""
3106 else
3107 case $cross_compiling:$ac_tool_warned in
3108yes:)
3109{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111ac_tool_warned=yes ;;
3112esac
3113 CC=$ac_ct_CC
3114 fi
bf9f3bac 3115else
3116 CC="$ac_cv_prog_CC"
3117fi
3118
3119if test -z "$CC"; then
8934764e
BB
3120 if test -n "$ac_tool_prefix"; then
3121 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bf9f3bac 3122set dummy ${ac_tool_prefix}cc; ac_word=$2
8934764e
BB
3123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3125if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3126 $as_echo_n "(cached) " >&6
bf9f3bac 3127else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3138 ac_cv_prog_CC="${ac_tool_prefix}cc"
8934764e 3139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3140 break 2
3141 fi
3142done
3143done
8934764e 3144IFS=$as_save_IFS
bf9f3bac 3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
8934764e
BB
3150 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3151$as_echo "$CC" >&6; }
bf9f3bac 3152else
8934764e
BB
3153 { $as_echo "$as_me:$LINENO: result: no" >&5
3154$as_echo "no" >&6; }
bf9f3bac 3155fi
3156
bf9f3bac 3157
8934764e 3158 fi
bf9f3bac 3159fi
3160if test -z "$CC"; then
3161 # Extract the first word of "cc", so it can be a program name with args.
3162set dummy cc; ac_word=$2
8934764e
BB
3163{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3165if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3166 $as_echo_n "(cached) " >&6
bf9f3bac 3167else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170else
3171 ac_prog_rejected=no
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3179 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180 ac_prog_rejected=yes
3181 continue
3182 fi
3183 ac_cv_prog_CC="cc"
8934764e 3184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3185 break 2
3186 fi
3187done
3188done
8934764e 3189IFS=$as_save_IFS
bf9f3bac 3190
3191if test $ac_prog_rejected = yes; then
3192 # We found a bogon in the path, so make sure we never use it.
3193 set dummy $ac_cv_prog_CC
3194 shift
3195 if test $# != 0; then
3196 # We chose a different compiler from the bogus one.
3197 # However, it has the same basename, so the bogon will be chosen
3198 # first if we set CC to just the basename; use the full file name.
3199 shift
3200 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3201 fi
3202fi
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
8934764e
BB
3207 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3208$as_echo "$CC" >&6; }
bf9f3bac 3209else
8934764e
BB
3210 { $as_echo "$as_me:$LINENO: result: no" >&5
3211$as_echo "no" >&6; }
bf9f3bac 3212fi
3213
8934764e 3214
bf9f3bac 3215fi
3216if test -z "$CC"; then
3217 if test -n "$ac_tool_prefix"; then
8934764e 3218 for ac_prog in cl.exe
bf9f3bac 3219 do
3220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8934764e
BB
3222{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3224if test "${ac_cv_prog_CC+set}" = set; then
8934764e 3225 $as_echo_n "(cached) " >&6
bf9f3bac 3226else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3237 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8934764e 3238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3239 break 2
3240 fi
3241done
3242done
8934764e 3243IFS=$as_save_IFS
bf9f3bac 3244
3245fi
3246fi
3247CC=$ac_cv_prog_CC
3248if test -n "$CC"; then
8934764e
BB
3249 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3250$as_echo "$CC" >&6; }
bf9f3bac 3251else
8934764e
BB
3252 { $as_echo "$as_me:$LINENO: result: no" >&5
3253$as_echo "no" >&6; }
bf9f3bac 3254fi
3255
8934764e 3256
bf9f3bac 3257 test -n "$CC" && break
3258 done
3259fi
3260if test -z "$CC"; then
3261 ac_ct_CC=$CC
8934764e 3262 for ac_prog in cl.exe
bf9f3bac 3263do
3264 # Extract the first word of "$ac_prog", so it can be a program name with args.
3265set dummy $ac_prog; ac_word=$2
8934764e
BB
3266{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
bf9f3bac 3268if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8934764e 3269 $as_echo_n "(cached) " >&6
bf9f3bac 3270else
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e 3280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
bf9f3bac 3281 ac_cv_prog_ac_ct_CC="$ac_prog"
8934764e 3282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 3283 break 2
3284 fi
3285done
3286done
8934764e 3287IFS=$as_save_IFS
bf9f3bac 3288
3289fi
3290fi
3291ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292if test -n "$ac_ct_CC"; then
8934764e
BB
3293 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3294$as_echo "$ac_ct_CC" >&6; }
bf9f3bac 3295else
8934764e
BB
3296 { $as_echo "$as_me:$LINENO: result: no" >&5
3297$as_echo "no" >&6; }
bf9f3bac 3298fi
3299
8934764e 3300
bf9f3bac 3301 test -n "$ac_ct_CC" && break
3302done
3303
8934764e
BB
3304 if test "x$ac_ct_CC" = x; then
3305 CC=""
3306 else
3307 case $cross_compiling:$ac_tool_warned in
3308yes:)
3309{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311ac_tool_warned=yes ;;
3312esac
3313 CC=$ac_ct_CC
3314 fi
bf9f3bac 3315fi
3316
3317fi
3318
3319
8934764e
BB
3320test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
bf9f3bac 3323See \`config.log' for more details." >&5
8934764e 3324$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
bf9f3bac 3325See \`config.log' for more details." >&2;}
8934764e 3326 { (exit 1); exit 1; }; }; }
bf9f3bac 3327
3328# Provide some information about the compiler.
8934764e
BB
3329$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3330set X $ac_compile
3331ac_compiler=$2
3332{ (ac_try="$ac_compiler --version >&5"
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338$as_echo "$ac_try_echo") >&5
3339 (eval "$ac_compiler --version >&5") 2>&5
bf9f3bac 3340 ac_status=$?
8934764e 3341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3342 (exit $ac_status); }
8934764e
BB
3343{ (ac_try="$ac_compiler -v >&5"
3344case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3349$as_echo "$ac_try_echo") >&5
3350 (eval "$ac_compiler -v >&5") 2>&5
bf9f3bac 3351 ac_status=$?
8934764e 3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3353 (exit $ac_status); }
8934764e
BB
3354{ (ac_try="$ac_compiler -V >&5"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360$as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compiler -V >&5") 2>&5
bf9f3bac 3362 ac_status=$?
8934764e 3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3364 (exit $ac_status); }
3365
3366cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
3372
3373int
3374main ()
3375{
3376
3377 ;
3378 return 0;
3379}
3380_ACEOF
3381ac_clean_files_save=$ac_clean_files
8934764e 3382ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
bf9f3bac 3383# Try to create an executable without -o first, disregard a.out.
3384# It will help us diagnose broken compilers, and finding out an intuition
3385# of exeext.
8934764e
BB
3386{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3387$as_echo_n "checking for C compiler default output file name... " >&6; }
3388ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389
3390# The possible output files:
3391ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392
3393ac_rmfiles=
3394for ac_file in $ac_files
3395do
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399 esac
3400done
3401rm -f $ac_rmfiles
3402
3403if { (ac_try="$ac_link_default"
3404case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3409$as_echo "$ac_try_echo") >&5
3410 (eval "$ac_link_default") 2>&5
bf9f3bac 3411 ac_status=$?
8934764e 3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3413 (exit $ac_status); }; then
8934764e
BB
3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416# in a Makefile. We should not override ac_cv_exeext if it was cached,
3417# so that the user can short-circuit this test for compilers unknown to
3418# Autoconf.
3419for ac_file in $ac_files ''
bf9f3bac 3420do
3421 test -f "$ac_file" || continue
3422 case $ac_file in
8934764e 3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
bf9f3bac 3424 ;;
3425 [ab].out )
3426 # We found the default executable, but exeext='' is most
3427 # certainly right.
3428 break;;
3429 *.* )
8934764e
BB
3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431 then :; else
3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 fi
3434 # We set ac_cv_exeext here because the later test for it is not
3435 # safe: cross compilers may not add the suffix if given an `-o'
3436 # argument, so we may need to know it at that point already.
3437 # Even if this section looks crufty: it has the advantage of
3438 # actually working.
bf9f3bac 3439 break;;
3440 * )
3441 break;;
3442 esac
3443done
8934764e
BB
3444test "$ac_cv_exeext" = no && ac_cv_exeext=
3445
bf9f3bac 3446else
8934764e
BB
3447 ac_file=''
3448fi
3449
3450{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3451$as_echo "$ac_file" >&6; }
3452if test -z "$ac_file"; then
3453 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3454sed 's/^/| /' conftest.$ac_ext >&5
3455
8934764e
BB
3456{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
bf9f3bac 3459See \`config.log' for more details." >&5
8934764e 3460$as_echo "$as_me: error: C compiler cannot create executables
bf9f3bac 3461See \`config.log' for more details." >&2;}
8934764e 3462 { (exit 77); exit 77; }; }; }
bf9f3bac 3463fi
3464
3465ac_exeext=$ac_cv_exeext
bf9f3bac 3466
8934764e 3467# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3468# the compiler is broken, or we cross compile.
8934764e
BB
3469{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3470$as_echo_n "checking whether the C compiler works... " >&6; }
bf9f3bac 3471# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3472# If not cross compiling, check that we can run a simple program.
3473if test "$cross_compiling" != yes; then
3474 if { ac_try='./$ac_file'
8934764e
BB
3475 { (case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480$as_echo "$ac_try_echo") >&5
3481 (eval "$ac_try") 2>&5
bf9f3bac 3482 ac_status=$?
8934764e 3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3484 (exit $ac_status); }; }; then
3485 cross_compiling=no
3486 else
3487 if test "$cross_compiling" = maybe; then
3488 cross_compiling=yes
3489 else
8934764e
BB
3490 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
bf9f3bac 3493If you meant to cross compile, use \`--host'.
3494See \`config.log' for more details." >&5
8934764e 3495$as_echo "$as_me: error: cannot run C compiled programs.
bf9f3bac 3496If you meant to cross compile, use \`--host'.
3497See \`config.log' for more details." >&2;}
8934764e 3498 { (exit 1); exit 1; }; }; }
bf9f3bac 3499 fi
3500 fi
3501fi
8934764e
BB
3502{ $as_echo "$as_me:$LINENO: result: yes" >&5
3503$as_echo "yes" >&6; }
bf9f3bac 3504
8934764e 3505rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
bf9f3bac 3506ac_clean_files=$ac_clean_files_save
8934764e 3507# Check that the compiler produces executables we can run. If not, either
bf9f3bac 3508# the compiler is broken, or we cross compile.
8934764e
BB
3509{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3510$as_echo_n "checking whether we are cross compiling... " >&6; }
3511{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3512$as_echo "$cross_compiling" >&6; }
3513
3514{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3515$as_echo_n "checking for suffix of executables... " >&6; }
3516if { (ac_try="$ac_link"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522$as_echo "$ac_try_echo") >&5
3523 (eval "$ac_link") 2>&5
bf9f3bac 3524 ac_status=$?
8934764e 3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3526 (exit $ac_status); }; then
3527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3528# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3529# work properly (i.e., refer to `conftest.exe'), while it won't with
3530# `rm'.
3531for ac_file in conftest.exe conftest conftest.*; do
3532 test -f "$ac_file" || continue
3533 case $ac_file in
8934764e 3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
bf9f3bac 3535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
bf9f3bac 3536 break;;
3537 * ) break;;
3538 esac
3539done
3540else
8934764e
BB
3541 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3544See \`config.log' for more details." >&5
8934764e 3545$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
bf9f3bac 3546See \`config.log' for more details." >&2;}
8934764e 3547 { (exit 1); exit 1; }; }; }
bf9f3bac 3548fi
3549
3550rm -f conftest$ac_cv_exeext
8934764e
BB
3551{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3552$as_echo "$ac_cv_exeext" >&6; }
bf9f3bac 3553
3554rm -f conftest.$ac_ext
3555EXEEXT=$ac_cv_exeext
3556ac_exeext=$EXEEXT
8934764e
BB
3557{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3558$as_echo_n "checking for suffix of object files... " >&6; }
bf9f3bac 3559if test "${ac_cv_objext+set}" = set; then
8934764e 3560 $as_echo_n "(cached) " >&6
bf9f3bac 3561else
3562 cat >conftest.$ac_ext <<_ACEOF
3563/* confdefs.h. */
3564_ACEOF
3565cat confdefs.h >>conftest.$ac_ext
3566cat >>conftest.$ac_ext <<_ACEOF
3567/* end confdefs.h. */
3568
3569int
3570main ()
3571{
3572
3573 ;
3574 return 0;
3575}
3576_ACEOF
3577rm -f conftest.o conftest.obj
8934764e
BB
3578if { (ac_try="$ac_compile"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3584$as_echo "$ac_try_echo") >&5
3585 (eval "$ac_compile") 2>&5
bf9f3bac 3586 ac_status=$?
8934764e 3587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 3588 (exit $ac_status); }; then
8934764e
BB
3589 for ac_file in conftest.o conftest.obj conftest.*; do
3590 test -f "$ac_file" || continue;
bf9f3bac 3591 case $ac_file in
8934764e 3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
bf9f3bac 3593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3594 break;;
3595 esac
3596done
3597else
8934764e 3598 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3599sed 's/^/| /' conftest.$ac_ext >&5
3600
8934764e
BB
3601{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3604See \`config.log' for more details." >&5
8934764e 3605$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
bf9f3bac 3606See \`config.log' for more details." >&2;}
8934764e 3607 { (exit 1); exit 1; }; }; }
bf9f3bac 3608fi
3609
3610rm -f conftest.$ac_cv_objext conftest.$ac_ext
3611fi
8934764e
BB
3612{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3613$as_echo "$ac_cv_objext" >&6; }
bf9f3bac 3614OBJEXT=$ac_cv_objext
3615ac_objext=$OBJEXT
8934764e
BB
3616{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3617$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
bf9f3bac 3618if test "${ac_cv_c_compiler_gnu+set}" = set; then
8934764e 3619 $as_echo_n "(cached) " >&6
bf9f3bac 3620else
3621 cat >conftest.$ac_ext <<_ACEOF
3622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3626/* end confdefs.h. */
3627
3628int
3629main ()
3630{
3631#ifndef __GNUC__
3632 choke me
3633#endif
3634
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639rm -f conftest.$ac_objext
8934764e
BB
3640if { (ac_try="$ac_compile"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646$as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
8934764e
BB
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
bf9f3bac 3657 ac_compiler_gnu=yes
3658else
8934764e 3659 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3660sed 's/^/| /' conftest.$ac_ext >&5
3661
8934764e 3662 ac_compiler_gnu=no
bf9f3bac 3663fi
8934764e
BB
3664
3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3666ac_cv_c_compiler_gnu=$ac_compiler_gnu
3667
3668fi
8934764e
BB
3669{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3670$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3671if test $ac_compiler_gnu = yes; then
3672 GCC=yes
3673else
3674 GCC=
3675fi
bf9f3bac 3676ac_test_CFLAGS=${CFLAGS+set}
3677ac_save_CFLAGS=$CFLAGS
8934764e
BB
3678{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3679$as_echo_n "checking whether $CC accepts -g... " >&6; }
bf9f3bac 3680if test "${ac_cv_prog_cc_g+set}" = set; then
8934764e 3681 $as_echo_n "(cached) " >&6
bf9f3bac 3682else
8934764e
BB
3683 ac_save_c_werror_flag=$ac_c_werror_flag
3684 ac_c_werror_flag=yes
3685 ac_cv_prog_cc_g=no
3686 CFLAGS="-g"
3687 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 3688/* confdefs.h. */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h. */
3693
3694int
3695main ()
3696{
3697
3698 ;
3699 return 0;
3700}
3701_ACEOF
3702rm -f conftest.$ac_objext
8934764e
BB
3703if { (ac_try="$ac_compile"
3704case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709$as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
8934764e
BB
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3720 ac_cv_prog_cc_g=yes
3721else
3722 $as_echo "$as_me: failed program was:" >&5
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 CFLAGS=""
3726 cat >conftest.$ac_ext <<_ACEOF
3727/* confdefs.h. */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h. */
3732
3733int
3734main ()
3735{
3736
3737 ;
3738 return 0;
3739}
3740_ACEOF
3741rm -f conftest.$ac_objext
3742if { (ac_try="$ac_compile"
3743case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746esac
3747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748$as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3750 ac_status=$?
8934764e
BB
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 :
3760else
3761 $as_echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3765 CFLAGS="-g"
3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
3772
3773int
3774main ()
3775{
3776
3777 ;
3778 return 0;
3779}
3780_ACEOF
3781rm -f conftest.$ac_objext
3782if { (ac_try="$ac_compile"
3783case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788$as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3790 ac_status=$?
8934764e
BB
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
bf9f3bac 3799 ac_cv_prog_cc_g=yes
3800else
8934764e 3801 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3802sed 's/^/| /' conftest.$ac_ext >&5
3803
8934764e
BB
3804
3805fi
3806
3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808fi
3809
3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 3811fi
8934764e
BB
3812
3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_c_werror_flag=$ac_save_c_werror_flag
bf9f3bac 3815fi
8934764e
BB
3816{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3817$as_echo "$ac_cv_prog_cc_g" >&6; }
bf9f3bac 3818if test "$ac_test_CFLAGS" = set; then
3819 CFLAGS=$ac_save_CFLAGS
3820elif test $ac_cv_prog_cc_g = yes; then
3821 if test "$GCC" = yes; then
3822 CFLAGS="-g -O2"
3823 else
3824 CFLAGS="-g"
3825 fi
3826else
3827 if test "$GCC" = yes; then
3828 CFLAGS="-O2"
3829 else
3830 CFLAGS=
3831 fi
3832fi
8934764e
BB
3833{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3834$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3835if test "${ac_cv_prog_cc_c89+set}" = set; then
3836 $as_echo_n "(cached) " >&6
bf9f3bac 3837else
8934764e 3838 ac_cv_prog_cc_c89=no
bf9f3bac 3839ac_save_CC=$CC
3840cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h. */
3846#include <stdarg.h>
3847#include <stdio.h>
3848#include <sys/types.h>
3849#include <sys/stat.h>
3850/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3851struct buf { int x; };
3852FILE * (*rcsopen) (struct buf *, struct stat *, int);
3853static char *e (p, i)
3854 char **p;
3855 int i;
3856{
3857 return p[i];
3858}
3859static char *f (char * (*g) (char **, int), char **p, ...)
3860{
3861 char *s;
3862 va_list v;
3863 va_start (v,p);
3864 s = g (p, va_arg (v,int));
3865 va_end (v);
3866 return s;
3867}
3868
3869/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3870 function prototypes and stuff, but not '\xHH' hex character constants.
3871 These don't provoke an error unfortunately, instead are silently treated
8934764e 3872 as 'x'. The following induces an error, until -std is added to get
bf9f3bac 3873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3874 array size at least. It's necessary to write '\x00'==0 to get something
8934764e 3875 that's true only with -std. */
bf9f3bac 3876int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877
8934764e
BB
3878/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3879 inside strings and character constants. */
3880#define FOO(x) 'x'
3881int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882
bf9f3bac 3883int test (int i, double x);
3884struct s1 {int (*f) (int a);};
3885struct s2 {int (*f) (double a);};
3886int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887int argc;
3888char **argv;
3889int
3890main ()
3891{
3892return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3893 ;
3894 return 0;
3895}
3896_ACEOF
8934764e
BB
3897for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bf9f3bac 3899do
3900 CC="$ac_save_CC $ac_arg"
3901 rm -f conftest.$ac_objext
8934764e
BB
3902if { (ac_try="$ac_compile"
3903case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906esac
3907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908$as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
8934764e
BB
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 ac_cv_prog_cc_c89=$ac_arg
3920else
3921 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 3922sed 's/^/| /' conftest.$ac_ext >&5
3923
8934764e 3924
bf9f3bac 3925fi
8934764e
BB
3926
3927rm -f core conftest.err conftest.$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
bf9f3bac 3929done
8934764e 3930rm -f conftest.$ac_ext
bf9f3bac 3931CC=$ac_save_CC
3932
3933fi
8934764e
BB
3934# AC_CACHE_VAL
3935case "x$ac_cv_prog_cc_c89" in
3936 x)
3937 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3938$as_echo "none needed" >&6; } ;;
3939 xno)
3940 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3941$as_echo "unsupported" >&6; } ;;
bf9f3bac 3942 *)
8934764e
BB
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
bf9f3bac 3946esac
3947
bf9f3bac 3948
bf9f3bac 3949ac_ext=c
3950ac_cpp='$CPP $CPPFLAGS'
3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954DEPDIR="${am__leading_dot}deps"
3955
8934764e 3956ac_config_commands="$ac_config_commands depfiles"
bf9f3bac 3957
3958
3959am_make=${MAKE-make}
3960cat > confinc << 'END'
3961am__doit:
8934764e 3962 @echo this is the am__doit target
bf9f3bac 3963.PHONY: am__doit
3964END
3965# If we don't find an include directive, just comment out the code.
8934764e
BB
3966{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3967$as_echo_n "checking for style of include used by $am_make... " >&6; }
bf9f3bac 3968am__include="#"
3969am__quote=
3970_am_result=none
3971# First try GNU make style include.
3972echo "include confinc" > confmf
8934764e
BB
3973# Ignore all kinds of additional output from `make'.
3974case `$am_make -s -f confmf 2> /dev/null` in #(
3975*the\ am__doit\ target*)
3976 am__include=include
3977 am__quote=
3978 _am_result=GNU
3979 ;;
3980esac
bf9f3bac 3981# Now try BSD make style include.
3982if test "$am__include" = "#"; then
3983 echo '.include "confinc"' > confmf
8934764e
BB
3984 case `$am_make -s -f confmf 2> /dev/null` in #(
3985 *the\ am__doit\ target*)
3986 am__include=.include
3987 am__quote="\""
3988 _am_result=BSD
3989 ;;
3990 esac
bf9f3bac 3991fi
3992
3993
8934764e
BB
3994{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3995$as_echo "$_am_result" >&6; }
bf9f3bac 3996rm -f confinc confmf
3997
8934764e 3998# Check whether --enable-dependency-tracking was given.
bf9f3bac 3999if test "${enable_dependency_tracking+set}" = set; then
8934764e
BB
4000 enableval=$enable_dependency_tracking;
4001fi
bf9f3bac 4002
bf9f3bac 4003if test "x$enable_dependency_tracking" != xno; then
4004 am_depcomp="$ac_aux_dir/depcomp"
4005 AMDEPBACKSLASH='\'
4006fi
8934764e 4007 if test "x$enable_dependency_tracking" != xno; then
bf9f3bac 4008 AMDEP_TRUE=
4009 AMDEP_FALSE='#'
4010else
4011 AMDEP_TRUE='#'
4012 AMDEP_FALSE=
4013fi
4014
4015
4016
bf9f3bac 4017depcc="$CC" am_compiler_list=
4018
8934764e
BB
4019{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4020$as_echo_n "checking dependency style of $depcc... " >&6; }
bf9f3bac 4021if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8934764e 4022 $as_echo_n "(cached) " >&6
bf9f3bac 4023else
4024 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4025 # We make a subdir and do the tests there. Otherwise we can end up
4026 # making bogus files that we don't know about and never remove. For
4027 # instance it was reported that on HP-UX the gcc test will end up
4028 # making a dummy file named `D' -- because `-MD' means `put the output
4029 # in D'.
4030 mkdir conftest.dir
4031 # Copy depcomp to subdir because otherwise we won't find it if we're
4032 # using a relative directory.
4033 cp "$am_depcomp" conftest.dir
4034 cd conftest.dir
4035 # We will build objects and dependencies in a subdirectory because
4036 # it helps to detect inapplicable dependency modes. For instance
4037 # both Tru64's cc and ICC support -MD to output dependencies as a
4038 # side effect of compilation, but ICC will put the dependencies in
4039 # the current directory while Tru64 will put them in the object
4040 # directory.
4041 mkdir sub
4042
4043 am_cv_CC_dependencies_compiler_type=none
4044 if test "$am_compiler_list" = ""; then
4045 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4046 fi
8934764e
BB
4047 am__universal=false
4048 case " $depcc " in #(
4049 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4050 esac
4051
bf9f3bac 4052 for depmode in $am_compiler_list; do
4053 # Setup a source with many dependencies, because some compilers
4054 # like to wrap large dependency lists on column 80 (with \), and
4055 # we should not choose a depcomp mode which is confused by this.
4056 #
4057 # We need to recreate these files for each test, as the compiler may
4058 # overwrite some of them when testing with obscure command lines.
4059 # This happens at least with the AIX C compiler.
4060 : > sub/conftest.c
4061 for i in 1 2 3 4 5 6; do
4062 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4063 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4064 # Solaris 8's {/usr,}/bin/sh.
4065 touch sub/conftst$i.h
4066 done
4067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4068
8934764e
BB
4069 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4070 # mode. It turns out that the SunPro C++ compiler does not properly
4071 # handle `-M -o', and we need to detect this. Also, some Intel
4072 # versions had trouble with output in subdirs
4073 am__obj=sub/conftest.${OBJEXT-o}
4074 am__minus_obj="-o $am__obj"
bf9f3bac 4075 case $depmode in
8934764e
BB
4076 gcc)
4077 # This depmode causes a compiler race in universal mode.
4078 test "$am__universal" = false || continue
4079 ;;
bf9f3bac 4080 nosideeffect)
4081 # after this tag, mechanisms are not by side-effect, so they'll
4082 # only be used when explicitly requested
4083 if test "x$enable_dependency_tracking" = xyes; then
4084 continue
4085 else
4086 break
4087 fi
4088 ;;
8934764e
BB
4089 msvisualcpp | msvcmsys)
4090 # This compiler won't grok `-c -o', but also, the minuso test has
4091 # not run yet. These depmodes are late enough in the game, and
4092 # so weak that their functioning should not be impacted.
4093 am__obj=conftest.${OBJEXT-o}
4094 am__minus_obj=
4095 ;;
bf9f3bac 4096 none) break ;;
4097 esac
bf9f3bac 4098 if depmode=$depmode \
8934764e 4099 source=sub/conftest.c object=$am__obj \
bf9f3bac 4100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8934764e 4101 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
bf9f3bac 4102 >/dev/null 2>conftest.err &&
8934764e 4103 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4104 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8934764e 4105 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
bf9f3bac 4106 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4107 # icc doesn't choke on unknown options, it will just issue warnings
4108 # or remarks (even with -Werror). So we grep stderr for any message
4109 # that says an option was ignored or not supported.
4110 # When given -MP, icc 7.0 and 7.1 complain thusly:
4111 # icc: Command line warning: ignoring option '-M'; no argument required
4112 # The diagnosis changed in icc 8.0:
4113 # icc: Command line remark: option '-MP' not supported
4114 if (grep 'ignoring option' conftest.err ||
4115 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4116 am_cv_CC_dependencies_compiler_type=$depmode
4117 break
4118 fi
4119 fi
4120 done
4121
4122 cd ..
4123 rm -rf conftest.dir
4124else
4125 am_cv_CC_dependencies_compiler_type=none
4126fi
4127
4128fi
8934764e
BB
4129{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4130$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
bf9f3bac 4131CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4132
8934764e 4133 if
bf9f3bac 4134 test "x$enable_dependency_tracking" != xno \
4135 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4136 am__fastdepCC_TRUE=
4137 am__fastdepCC_FALSE='#'
4138else
4139 am__fastdepCC_TRUE='#'
4140 am__fastdepCC_FALSE=
4141fi
4142
4143
8934764e
BB
4144case `pwd` in
4145 *\ * | *\ *)
4146 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4147$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4148esac
bf9f3bac 4149
bf9f3bac 4150
bf9f3bac 4151
8934764e
BB
4152macro_version='2.2.6'
4153macro_revision='1.3012'
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167ltmain="$ac_aux_dir/ltmain.sh"
4168
4169{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4170$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4171if test "${ac_cv_path_SED+set}" = set; then
4172 $as_echo_n "(cached) " >&6
4173else
4174 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4175 for ac_i in 1 2 3 4 5 6 7; do
4176 ac_script="$ac_script$as_nl$ac_script"
4177 done
4178 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4179 $as_unset ac_script || ac_script=
4180 if test -z "$SED"; then
4181 ac_path_SED_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
bf9f3bac 4184for as_dir in $PATH
4185do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
8934764e 4188 for ac_prog in sed gsed; do
bf9f3bac 4189 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
4190 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4191 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4192# Check for GNU ac_path_SED and select it if it is found.
4193 # Check for GNU $ac_path_SED
4194case `"$ac_path_SED" --version 2>&1` in
4195*GNU*)
4196 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4197*)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo '' >> "conftest.nl"
4206 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 ac_count=`expr $ac_count + 1`
4209 if test $ac_count -gt ${ac_path_SED_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_SED="$ac_path_SED"
4212 ac_path_SED_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218esac
4219
4220 $ac_path_SED_found && break 3
bf9f3bac 4221 done
4222 done
4223done
4224IFS=$as_save_IFS
8934764e
BB
4225 if test -z "$ac_cv_path_SED"; then
4226 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4227$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4228 { (exit 1); exit 1; }; }
bf9f3bac 4229 fi
8934764e
BB
4230else
4231 ac_cv_path_SED=$SED
4232fi
bf9f3bac 4233
4234fi
8934764e
BB
4235{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4236$as_echo "$ac_cv_path_SED" >&6; }
4237 SED="$ac_cv_path_SED"
4238 rm -f conftest.sed
4239
4240test -z "$SED" && SED=sed
4241Xsed="$SED -e 1s/^X//"
4242
4243
bf9f3bac 4244
bf9f3bac 4245
bf9f3bac 4246
8934764e
BB
4247
4248
4249
4250
4251
4252
4253{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4254$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4255if test "${ac_cv_path_GREP+set}" = set; then
4256 $as_echo_n "(cached) " >&6
bf9f3bac 4257else
8934764e
BB
4258 if test -z "$GREP"; then
4259 ac_path_GREP_found=false
4260 # Loop through the user's path and test for each of PROGNAME-LIST
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_prog in grep ggrep; do
4267 for ac_exec_ext in '' $ac_executable_extensions; do
4268 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4269 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4270# Check for GNU ac_path_GREP and select it if it is found.
4271 # Check for GNU $ac_path_GREP
4272case `"$ac_path_GREP" --version 2>&1` in
4273*GNU*)
4274 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4275*)
4276 ac_count=0
4277 $as_echo_n 0123456789 >"conftest.in"
4278 while :
4279 do
4280 cat "conftest.in" "conftest.in" >"conftest.tmp"
4281 mv "conftest.tmp" "conftest.in"
4282 cp "conftest.in" "conftest.nl"
4283 $as_echo 'GREP' >> "conftest.nl"
4284 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4286 ac_count=`expr $ac_count + 1`
4287 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4288 # Best one so far, save it but keep looking for a better one
4289 ac_cv_path_GREP="$ac_path_GREP"
4290 ac_path_GREP_max=$ac_count
bf9f3bac 4291 fi
8934764e
BB
4292 # 10*(2^10) chars as input seems more than enough
4293 test $ac_count -gt 10 && break
4294 done
4295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4296esac
4297
4298 $ac_path_GREP_found && break 3
4299 done
4300 done
4301done
4302IFS=$as_save_IFS
4303 if test -z "$ac_cv_path_GREP"; then
4304 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4305$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4306 { (exit 1); exit 1; }; }
4307 fi
4308else
4309 ac_cv_path_GREP=$GREP
bf9f3bac 4310fi
bf9f3bac 4311
8934764e
BB
4312fi
4313{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4314$as_echo "$ac_cv_path_GREP" >&6; }
4315 GREP="$ac_cv_path_GREP"
bf9f3bac 4316
4317
8934764e
BB
4318{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4319$as_echo_n "checking for egrep... " >&6; }
4320if test "${ac_cv_path_EGREP+set}" = set; then
4321 $as_echo_n "(cached) " >&6
bf9f3bac 4322else
8934764e
BB
4323 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4324 then ac_cv_path_EGREP="$GREP -E"
4325 else
4326 if test -z "$EGREP"; then
4327 ac_path_EGREP_found=false
4328 # Loop through the user's path and test for each of PROGNAME-LIST
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_prog in egrep; do
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4337 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4338# Check for GNU ac_path_EGREP and select it if it is found.
4339 # Check for GNU $ac_path_EGREP
4340case `"$ac_path_EGREP" --version 2>&1` in
4341*GNU*)
4342 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4343*)
4344 ac_count=0
4345 $as_echo_n 0123456789 >"conftest.in"
4346 while :
4347 do
4348 cat "conftest.in" "conftest.in" >"conftest.tmp"
4349 mv "conftest.tmp" "conftest.in"
4350 cp "conftest.in" "conftest.nl"
4351 $as_echo 'EGREP' >> "conftest.nl"
4352 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354 ac_count=`expr $ac_count + 1`
4355 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4356 # Best one so far, save it but keep looking for a better one
4357 ac_cv_path_EGREP="$ac_path_EGREP"
4358 ac_path_EGREP_max=$ac_count
4359 fi
4360 # 10*(2^10) chars as input seems more than enough
4361 test $ac_count -gt 10 && break
4362 done
4363 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364esac
4365
4366 $ac_path_EGREP_found && break 3
4367 done
4368 done
4369done
4370IFS=$as_save_IFS
4371 if test -z "$ac_cv_path_EGREP"; then
4372 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4373$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4374 { (exit 1); exit 1; }; }
4375 fi
bf9f3bac 4376else
8934764e
BB
4377 ac_cv_path_EGREP=$EGREP
4378fi
4379
4380 fi
4381fi
4382{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4383$as_echo "$ac_cv_path_EGREP" >&6; }
4384 EGREP="$ac_cv_path_EGREP"
4385
4386
4387{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4388$as_echo_n "checking for fgrep... " >&6; }
4389if test "${ac_cv_path_FGREP+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4391else
4392 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4393 then ac_cv_path_FGREP="$GREP -F"
4394 else
4395 if test -z "$FGREP"; then
4396 ac_path_FGREP_found=false
4397 # Loop through the user's path and test for each of PROGNAME-LIST
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400do
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_prog in fgrep; do
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4406 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4407# Check for GNU ac_path_FGREP and select it if it is found.
4408 # Check for GNU $ac_path_FGREP
4409case `"$ac_path_FGREP" --version 2>&1` in
4410*GNU*)
4411 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4412*)
4413 ac_count=0
4414 $as_echo_n 0123456789 >"conftest.in"
4415 while :
4416 do
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 $as_echo 'FGREP' >> "conftest.nl"
4421 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423 ac_count=`expr $ac_count + 1`
4424 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_FGREP="$ac_path_FGREP"
4427 ac_path_FGREP_max=$ac_count
4428 fi
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4431 done
4432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433esac
4434
4435 $ac_path_FGREP_found && break 3
4436 done
4437 done
4438done
4439IFS=$as_save_IFS
4440 if test -z "$ac_cv_path_FGREP"; then
4441 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4442$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4443 { (exit 1); exit 1; }; }
4444 fi
4445else
4446 ac_cv_path_FGREP=$FGREP
4447fi
4448
4449 fi
4450fi
4451{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4452$as_echo "$ac_cv_path_FGREP" >&6; }
4453 FGREP="$ac_cv_path_FGREP"
4454
4455
4456test -z "$GREP" && GREP=grep
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476# Check whether --with-gnu-ld was given.
4477if test "${with_gnu_ld+set}" = set; then
4478 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4479else
4480 with_gnu_ld=no
4481fi
4482
4483ac_prog=ld
4484if test "$GCC" = yes; then
4485 # Check if gcc -print-prog-name=ld gives a path.
4486 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4487$as_echo_n "checking for ld used by $CC... " >&6; }
4488 case $host in
4489 *-*-mingw*)
4490 # gcc leaves a trailing carriage return which upsets mingw
4491 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4492 *)
4493 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4494 esac
4495 case $ac_prog in
4496 # Accept absolute paths.
4497 [\\/]* | ?:[\\/]*)
4498 re_direlt='/[^/][^/]*/\.\./'
4499 # Canonicalize the pathname of ld
4500 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4501 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4502 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4503 done
4504 test -z "$LD" && LD="$ac_prog"
4505 ;;
4506 "")
4507 # If it fails, then pretend we aren't using GCC.
4508 ac_prog=ld
4509 ;;
4510 *)
4511 # If it is relative, then search for the first ld in PATH.
4512 with_gnu_ld=unknown
4513 ;;
4514 esac
4515elif test "$with_gnu_ld" = yes; then
4516 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4517$as_echo_n "checking for GNU ld... " >&6; }
4518else
4519 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4520$as_echo_n "checking for non-GNU ld... " >&6; }
bf9f3bac 4521fi
4522if test "${lt_cv_path_LD+set}" = set; then
8934764e 4523 $as_echo_n "(cached) " >&6
bf9f3bac 4524else
4525 if test -z "$LD"; then
4526 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4527 for ac_dir in $PATH; do
4528 IFS="$lt_save_ifs"
4529 test -z "$ac_dir" && ac_dir=.
4530 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4531 lt_cv_path_LD="$ac_dir/$ac_prog"
4532 # Check to see if the program is GNU ld. I'd rather use --version,
4533 # but apparently some variants of GNU ld only accept -v.
4534 # Break only if it was the GNU/non-GNU ld that we prefer.
4535 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 test "$with_gnu_ld" != no && break
4538 ;;
4539 *)
4540 test "$with_gnu_ld" != yes && break
4541 ;;
4542 esac
4543 fi
4544 done
4545 IFS="$lt_save_ifs"
4546else
4547 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4548fi
4549fi
4550
4551LD="$lt_cv_path_LD"
4552if test -n "$LD"; then
8934764e
BB
4553 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4554$as_echo "$LD" >&6; }
bf9f3bac 4555else
8934764e
BB
4556 { $as_echo "$as_me:$LINENO: result: no" >&5
4557$as_echo "no" >&6; }
bf9f3bac 4558fi
8934764e
BB
4559test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4560$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
bf9f3bac 4561 { (exit 1); exit 1; }; }
8934764e
BB
4562{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4563$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
bf9f3bac 4564if test "${lt_cv_prog_gnu_ld+set}" = set; then
8934764e 4565 $as_echo_n "(cached) " >&6
bf9f3bac 4566else
4567 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4568case `$LD -v 2>&1 </dev/null` in
4569*GNU* | *'with BFD'*)
4570 lt_cv_prog_gnu_ld=yes
4571 ;;
4572*)
4573 lt_cv_prog_gnu_ld=no
4574 ;;
4575esac
4576fi
8934764e
BB
4577{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4578$as_echo "$lt_cv_prog_gnu_ld" >&6; }
bf9f3bac 4579with_gnu_ld=$lt_cv_prog_gnu_ld
4580
4581
bf9f3bac 4582
8934764e
BB
4583
4584
4585
4586
4587
4588
4589{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4590$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
bf9f3bac 4591if test "${lt_cv_path_NM+set}" = set; then
8934764e 4592 $as_echo_n "(cached) " >&6
bf9f3bac 4593else
4594 if test -n "$NM"; then
4595 # Let the user override the test.
4596 lt_cv_path_NM="$NM"
4597else
4598 lt_nm_to_check="${ac_tool_prefix}nm"
4599 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4600 lt_nm_to_check="$lt_nm_to_check nm"
4601 fi
4602 for lt_tmp_nm in $lt_nm_to_check; do
4603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4604 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4605 IFS="$lt_save_ifs"
4606 test -z "$ac_dir" && ac_dir=.
4607 tmp_nm="$ac_dir/$lt_tmp_nm"
4608 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4609 # Check to see if the nm accepts a BSD-compat flag.
4610 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4611 # nm: unknown option "B" ignored
4612 # Tru64's nm complains that /dev/null is an invalid object file
4613 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4614 */dev/null* | *'Invalid file or object type'*)
4615 lt_cv_path_NM="$tmp_nm -B"
4616 break
4617 ;;
4618 *)
4619 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4620 */dev/null*)
4621 lt_cv_path_NM="$tmp_nm -p"
4622 break
4623 ;;
4624 *)
4625 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4626 continue # so that we can try to find one that supports BSD flags
4627 ;;
4628 esac
4629 ;;
4630 esac
4631 fi
4632 done
4633 IFS="$lt_save_ifs"
4634 done
8934764e 4635 : ${lt_cv_path_NM=no}
bf9f3bac 4636fi
4637fi
8934764e
BB
4638{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4639$as_echo "$lt_cv_path_NM" >&6; }
4640if test "$lt_cv_path_NM" != "no"; then
4641 NM="$lt_cv_path_NM"
4642else
4643 # Didn't find any BSD compatible name lister, look for dumpbin.
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4646 do
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4650$as_echo_n "checking for $ac_word... " >&6; }
4651if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4652 $as_echo_n "(cached) " >&6
4653else
4654 if test -n "$DUMPBIN"; then
4655 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670IFS=$as_save_IFS
bf9f3bac 4671
8934764e
BB
4672fi
4673fi
4674DUMPBIN=$ac_cv_prog_DUMPBIN
4675if test -n "$DUMPBIN"; then
4676 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4677$as_echo "$DUMPBIN" >&6; }
bf9f3bac 4678else
8934764e
BB
4679 { $as_echo "$as_me:$LINENO: result: no" >&5
4680$as_echo "no" >&6; }
bf9f3bac 4681fi
4682
bf9f3bac 4683
8934764e
BB
4684 test -n "$DUMPBIN" && break
4685 done
4686fi
4687if test -z "$DUMPBIN"; then
4688 ac_ct_DUMPBIN=$DUMPBIN
4689 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4690do
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692set dummy $ac_prog; ac_word=$2
4693{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
4695if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4696 $as_echo_n "(cached) " >&6
4697else
4698 if test -n "$ac_ct_DUMPBIN"; then
4699 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
4714IFS=$as_save_IFS
bf9f3bac 4715
8934764e
BB
4716fi
4717fi
4718ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4719if test -n "$ac_ct_DUMPBIN"; then
4720 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4721$as_echo "$ac_ct_DUMPBIN" >&6; }
4722else
4723 { $as_echo "$as_me:$LINENO: result: no" >&5
4724$as_echo "no" >&6; }
4725fi
bf9f3bac 4726
bf9f3bac 4727
8934764e
BB
4728 test -n "$ac_ct_DUMPBIN" && break
4729done
bf9f3bac 4730
8934764e
BB
4731 if test "x$ac_ct_DUMPBIN" = x; then
4732 DUMPBIN=":"
4733 else
4734 case $cross_compiling:$ac_tool_warned in
4735yes:)
4736{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738ac_tool_warned=yes ;;
4739esac
4740 DUMPBIN=$ac_ct_DUMPBIN
4741 fi
4742fi
bf9f3bac 4743
bf9f3bac 4744
8934764e
BB
4745 if test "$DUMPBIN" != ":"; then
4746 NM="$DUMPBIN"
bf9f3bac 4747 fi
8934764e
BB
4748fi
4749test -z "$NM" && NM=nm
bf9f3bac 4750
bf9f3bac 4751
bf9f3bac 4752
bf9f3bac 4753
bf9f3bac 4754
bf9f3bac 4755
8934764e
BB
4756{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4757$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4758if test "${lt_cv_nm_interface+set}" = set; then
4759 $as_echo_n "(cached) " >&6
4760else
4761 lt_cv_nm_interface="BSD nm"
4762 echo "int some_variable = 0;" > conftest.$ac_ext
c950d148 4763 (eval echo "\"\$as_me:4763: $ac_compile\"" >&5)
8934764e
BB
4764 (eval "$ac_compile" 2>conftest.err)
4765 cat conftest.err >&5
c950d148 4766 (eval echo "\"\$as_me:4766: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8934764e
BB
4767 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4768 cat conftest.err >&5
c950d148 4769 (eval echo "\"\$as_me:4769: output\"" >&5)
8934764e
BB
4770 cat conftest.out >&5
4771 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4772 lt_cv_nm_interface="MS dumpbin"
bf9f3bac 4773 fi
8934764e
BB
4774 rm -f conftest*
4775fi
4776{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4777$as_echo "$lt_cv_nm_interface" >&6; }
bf9f3bac 4778
8934764e
BB
4779{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4780$as_echo_n "checking whether ln -s works... " >&6; }
4781LN_S=$as_ln_s
4782if test "$LN_S" = "ln -s"; then
4783 { $as_echo "$as_me:$LINENO: result: yes" >&5
4784$as_echo "yes" >&6; }
4785else
4786 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4787$as_echo "no, using $LN_S" >&6; }
4788fi
bf9f3bac 4789
8934764e
BB
4790# find the maximum length of command line arguments
4791{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4792$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4793if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4794 $as_echo_n "(cached) " >&6
4795else
4796 i=0
4797 teststring="ABCD"
bf9f3bac 4798
8934764e
BB
4799 case $build_os in
4800 msdosdjgpp*)
4801 # On DJGPP, this test can blow up pretty badly due to problems in libc
4802 # (any single argument exceeding 2000 bytes causes a buffer overrun
4803 # during glob expansion). Even if it were fixed, the result of this
4804 # check would be larger than it should be.
4805 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4806 ;;
bf9f3bac 4807
8934764e
BB
4808 gnu*)
4809 # Under GNU Hurd, this test is not required because there is
4810 # no limit to the length of command line arguments.
4811 # Libtool will interpret -1 as no limit whatsoever
4812 lt_cv_sys_max_cmd_len=-1;
4813 ;;
bf9f3bac 4814
8934764e
BB
4815 cygwin* | mingw* | cegcc*)
4816 # On Win9x/ME, this test blows up -- it succeeds, but takes
4817 # about 5 minutes as the teststring grows exponentially.
4818 # Worse, since 9x/ME are not pre-emptively multitasking,
4819 # you end up with a "frozen" computer, even though with patience
4820 # the test eventually succeeds (with a max line length of 256k).
4821 # Instead, let's just punt: use the minimum linelength reported by
4822 # all of the supported platforms: 8192 (on NT/2K/XP).
4823 lt_cv_sys_max_cmd_len=8192;
4824 ;;
bf9f3bac 4825
8934764e
BB
4826 amigaos*)
4827 # On AmigaOS with pdksh, this test takes hours, literally.
4828 # So we just punt and use a minimum line length of 8192.
4829 lt_cv_sys_max_cmd_len=8192;
bf9f3bac 4830 ;;
8934764e
BB
4831
4832 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4833 # This has been around since 386BSD, at least. Likely further.
4834 if test -x /sbin/sysctl; then
4835 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4836 elif test -x /usr/sbin/sysctl; then
4837 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4838 else
4839 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4840 fi
4841 # And add a safety zone
4842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
bf9f3bac 4844 ;;
8934764e
BB
4845
4846 interix*)
4847 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4848 lt_cv_sys_max_cmd_len=196608
bf9f3bac 4849 ;;
8934764e
BB
4850
4851 osf*)
4852 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4853 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4854 # nice to cause kernel panics so lets avoid the loop below.
4855 # First set a reasonable default.
4856 lt_cv_sys_max_cmd_len=16384
4857 #
4858 if test -x /sbin/sysconfig; then
4859 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4860 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4861 esac
4862 fi
bf9f3bac 4863 ;;
8934764e
BB
4864 sco3.2v5*)
4865 lt_cv_sys_max_cmd_len=102400
bf9f3bac 4866 ;;
8934764e
BB
4867 sysv5* | sco5v6* | sysv4.2uw2*)
4868 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4869 if test -n "$kargmax"; then
4870 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4871 else
4872 lt_cv_sys_max_cmd_len=32768
4873 fi
4874 ;;
4875 *)
4876 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4877 if test -n "$lt_cv_sys_max_cmd_len"; then
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4880 else
4881 # Make teststring a little bigger before we do anything with it.
4882 # a 1K string should be a reasonable start.
4883 for i in 1 2 3 4 5 6 7 8 ; do
4884 teststring=$teststring$teststring
4885 done
4886 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4887 # If test is not a shell built-in, we'll probably end up computing a
4888 # maximum length that is only half of the actual maximum length, but
4889 # we can't tell.
4890 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4891 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4892 test $i != 17 # 1/2 MB should be enough
4893 do
4894 i=`expr $i + 1`
4895 teststring=$teststring$teststring
4896 done
4897 # Only check the string length outside the loop.
4898 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4899 teststring=
4900 # Add a significant safety factor because C++ compilers can tack on
4901 # massive amounts of additional arguments before passing them to the
4902 # linker. It appears as though 1/2 is a usable value.
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4904 fi
bf9f3bac 4905 ;;
4906 esac
bf9f3bac 4907
8934764e 4908fi
bf9f3bac 4909
8934764e
BB
4910if test -n $lt_cv_sys_max_cmd_len ; then
4911 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4912$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4913else
4914 { $as_echo "$as_me:$LINENO: result: none" >&5
4915$as_echo "none" >&6; }
bf9f3bac 4916fi
8934764e 4917max_cmd_len=$lt_cv_sys_max_cmd_len
bf9f3bac 4918
4919
4920
4921
bf9f3bac 4922
bf9f3bac 4923
8934764e
BB
4924: ${CP="cp -f"}
4925: ${MV="mv -f"}
4926: ${RM="rm -f"}
bf9f3bac 4927
8934764e
BB
4928{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4929$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4930# Try some XSI features
4931xsi_shell=no
4932( _lt_dummy="a/b/c"
4933 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4934 = c,a/b,, \
4935 && eval 'test $(( 1 + 1 )) -eq 2 \
4936 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4937 && xsi_shell=yes
4938{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4939$as_echo "$xsi_shell" >&6; }
bf9f3bac 4940
bf9f3bac 4941
8934764e
BB
4942{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4943$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4944lt_shell_append=no
4945( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4946 >/dev/null 2>&1 \
4947 && lt_shell_append=yes
4948{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4949$as_echo "$lt_shell_append" >&6; }
bf9f3bac 4950
8934764e
BB
4951
4952if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4953 lt_unset=unset
4954else
4955 lt_unset=false
4956fi
4957
4958
4959
4960
4961
4962# test EBCDIC or ASCII
4963case `echo X|tr X '\101'` in
4964 A) # ASCII based system
4965 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4966 lt_SP2NL='tr \040 \012'
4967 lt_NL2SP='tr \015\012 \040\040'
bf9f3bac 4968 ;;
8934764e
BB
4969 *) # EBCDIC based system
4970 lt_SP2NL='tr \100 \n'
4971 lt_NL2SP='tr \r\n \100\100'
bf9f3bac 4972 ;;
8934764e
BB
4973esac
4974
bf9f3bac 4975
bf9f3bac 4976
bf9f3bac 4977
bf9f3bac 4978
bf9f3bac 4979
bf9f3bac 4980
bf9f3bac 4981
8934764e
BB
4982
4983{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4984$as_echo_n "checking for $LD option to reload object files... " >&6; }
4985if test "${lt_cv_ld_reload_flag+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4987else
4988 lt_cv_ld_reload_flag='-r'
bf9f3bac 4989fi
8934764e
BB
4990{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4991$as_echo "$lt_cv_ld_reload_flag" >&6; }
4992reload_flag=$lt_cv_ld_reload_flag
4993case $reload_flag in
4994"" | " "*) ;;
4995*) reload_flag=" $reload_flag" ;;
4996esac
4997reload_cmds='$LD$reload_flag -o $output$reload_objs'
4998case $host_os in
4999 darwin*)
5000 if test "$GCC" = yes; then
5001 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5002 else
5003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5004 fi
5005 ;;
5006esac
bf9f3bac 5007
5008
bf9f3bac 5009
bf9f3bac 5010
5011
8934764e
BB
5012
5013
5014
5015
5016if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5018set dummy ${ac_tool_prefix}objdump; ac_word=$2
5019{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5020$as_echo_n "checking for $ac_word... " >&6; }
5021if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5022 $as_echo_n "(cached) " >&6
bf9f3bac 5023else
8934764e
BB
5024 if test -n "$OBJDUMP"; then
5025 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
bf9f3bac 5029do
8934764e
BB
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
bf9f3bac 5037 fi
8934764e
BB
5038done
5039done
5040IFS=$as_save_IFS
bf9f3bac 5041
bf9f3bac 5042fi
bf9f3bac 5043fi
8934764e
BB
5044OBJDUMP=$ac_cv_prog_OBJDUMP
5045if test -n "$OBJDUMP"; then
5046 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5047$as_echo "$OBJDUMP" >&6; }
bf9f3bac 5048else
8934764e
BB
5049 { $as_echo "$as_me:$LINENO: result: no" >&5
5050$as_echo "no" >&6; }
bf9f3bac 5051fi
5052
bf9f3bac 5053
5054fi
8934764e
BB
5055if test -z "$ac_cv_prog_OBJDUMP"; then
5056 ac_ct_OBJDUMP=$OBJDUMP
5057 # Extract the first word of "objdump", so it can be a program name with args.
5058set dummy objdump; ac_word=$2
5059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5062 $as_echo_n "(cached) " >&6
bf9f3bac 5063else
8934764e
BB
5064 if test -n "$ac_ct_OBJDUMP"; then
5065 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5066else
5067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068for as_dir in $PATH
bf9f3bac 5069do
8934764e
BB
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
bf9f3bac 5077 fi
8934764e
BB
5078done
5079done
5080IFS=$as_save_IFS
5081
bf9f3bac 5082fi
8934764e
BB
5083fi
5084ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5085if test -n "$ac_ct_OBJDUMP"; then
5086 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5087$as_echo "$ac_ct_OBJDUMP" >&6; }
bf9f3bac 5088else
8934764e
BB
5089 { $as_echo "$as_me:$LINENO: result: no" >&5
5090$as_echo "no" >&6; }
bf9f3bac 5091fi
bf9f3bac 5092
8934764e
BB
5093 if test "x$ac_ct_OBJDUMP" = x; then
5094 OBJDUMP="false"
bf9f3bac 5095 else
8934764e
BB
5096 case $cross_compiling:$ac_tool_warned in
5097yes:)
5098{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100ac_tool_warned=yes ;;
5101esac
5102 OBJDUMP=$ac_ct_OBJDUMP
bf9f3bac 5103 fi
5104else
8934764e 5105 OBJDUMP="$ac_cv_prog_OBJDUMP"
bf9f3bac 5106fi
bf9f3bac 5107
8934764e 5108test -z "$OBJDUMP" && OBJDUMP=objdump
bf9f3bac 5109
bf9f3bac 5110
bf9f3bac 5111
5112
bf9f3bac 5113
bf9f3bac 5114
bf9f3bac 5115
bf9f3bac 5116
bf9f3bac 5117
8934764e
BB
5118{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5119$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5120if test "${lt_cv_deplibs_check_method+set}" = set; then
5121 $as_echo_n "(cached) " >&6
bf9f3bac 5122else
8934764e
BB
5123 lt_cv_file_magic_cmd='$MAGIC_CMD'
5124lt_cv_file_magic_test_file=
5125lt_cv_deplibs_check_method='unknown'
5126# Need to set the preceding variable on all platforms that support
5127# interlibrary dependencies.
5128# 'none' -- dependencies not supported.
5129# `unknown' -- same as none, but documents that we really don't know.
5130# 'pass_all' -- all dependencies passed with no checks.
5131# 'test_compile' -- check by making test program.
5132# 'file_magic [[regex]]' -- check by looking for files in library path
5133# which responds to the $file_magic_cmd with a given extended regex.
5134# If you have `file' or equivalent on your system and you're not sure
5135# whether `pass_all' will *always* work, you probably want this one.
bf9f3bac 5136
8934764e
BB
5137case $host_os in
5138aix[4-9]*)
5139 lt_cv_deplibs_check_method=pass_all
5140 ;;
bf9f3bac 5141
8934764e
BB
5142beos*)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
bf9f3bac 5145
8934764e
BB
5146bsdi[45]*)
5147 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5148 lt_cv_file_magic_cmd='/usr/bin/file -L'
5149 lt_cv_file_magic_test_file=/shlib/libc.so
5150 ;;
bf9f3bac 5151
8934764e
BB
5152cygwin*)
5153 # func_win32_libid is a shell function defined in ltmain.sh
5154 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5155 lt_cv_file_magic_cmd='func_win32_libid'
5156 ;;
bf9f3bac 5157
8934764e
BB
5158mingw* | pw32*)
5159 # Base MSYS/MinGW do not provide the 'file' command needed by
5160 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5161 # unless we find 'file', for example because we are cross-compiling.
5162 if ( file / ) >/dev/null 2>&1; then
5163 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5164 lt_cv_file_magic_cmd='func_win32_libid'
5165 else
5166 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5167 lt_cv_file_magic_cmd='$OBJDUMP -f'
5168 fi
5169 ;;
bf9f3bac 5170
8934764e
BB
5171cegcc)
5172 # use the weaker test based on 'objdump'. See mingw*.
5173 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5174 lt_cv_file_magic_cmd='$OBJDUMP -f'
5175 ;;
bf9f3bac 5176
8934764e
BB
5177darwin* | rhapsody*)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
bf9f3bac 5180
8934764e
BB
5181freebsd* | dragonfly*)
5182 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5183 case $host_cpu in
5184 i*86 )
5185 # Not sure whether the presence of OpenBSD here was a mistake.
5186 # Let's accept both of them until this is cleared up.
5187 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5188 lt_cv_file_magic_cmd=/usr/bin/file
5189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5190 ;;
5191 esac
5192 else
5193 lt_cv_deplibs_check_method=pass_all
5194 fi
5195 ;;
bf9f3bac 5196
8934764e
BB
5197gnu*)
5198 lt_cv_deplibs_check_method=pass_all
5199 ;;
bf9f3bac 5200
8934764e
BB
5201hpux10.20* | hpux11*)
5202 lt_cv_file_magic_cmd=/usr/bin/file
5203 case $host_cpu in
5204 ia64*)
5205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5206 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5207 ;;
5208 hppa*64*)
5209 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]'
5210 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5211 ;;
5212 *)
5213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5214 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5215 ;;
5216 esac
5217 ;;
bf9f3bac 5218
8934764e
BB
5219interix[3-9]*)
5220 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5222 ;;
bf9f3bac 5223
8934764e
BB
5224irix5* | irix6* | nonstopux*)
5225 case $LD in
5226 *-32|*"-32 ") libmagic=32-bit;;
5227 *-n32|*"-n32 ") libmagic=N32;;
5228 *-64|*"-64 ") libmagic=64-bit;;
5229 *) libmagic=never-match;;
5230 esac
5231 lt_cv_deplibs_check_method=pass_all
5232 ;;
bf9f3bac 5233
8934764e
BB
5234# This must be Linux ELF.
5235linux* | k*bsd*-gnu)
5236 lt_cv_deplibs_check_method=pass_all
5237 ;;
bf9f3bac 5238
8934764e
BB
5239netbsd*)
5240 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5242 else
5243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5244 fi
5245 ;;
bf9f3bac 5246
8934764e
BB
5247newos6*)
5248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5249 lt_cv_file_magic_cmd=/usr/bin/file
5250 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5251 ;;
bf9f3bac 5252
8934764e
BB
5253*nto* | *qnx*)
5254 lt_cv_deplibs_check_method=pass_all
5255 ;;
bf9f3bac 5256
8934764e
BB
5257openbsd*)
5258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5260 else
5261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5262 fi
5263 ;;
bf9f3bac 5264
8934764e
BB
5265osf3* | osf4* | osf5*)
5266 lt_cv_deplibs_check_method=pass_all
5267 ;;
bf9f3bac 5268
8934764e
BB
5269rdos*)
5270 lt_cv_deplibs_check_method=pass_all
5271 ;;
bf9f3bac 5272
8934764e
BB
5273solaris*)
5274 lt_cv_deplibs_check_method=pass_all
5275 ;;
bf9f3bac 5276
8934764e
BB
5277sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5278 lt_cv_deplibs_check_method=pass_all
5279 ;;
bf9f3bac 5280
8934764e
BB
5281sysv4 | sysv4.3*)
5282 case $host_vendor in
5283 motorola)
5284 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]'
5285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
bf9f3bac 5286 ;;
8934764e
BB
5287 ncr)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290 sequent)
5291 lt_cv_file_magic_cmd='/bin/file'
5292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5293 ;;
5294 sni)
5295 lt_cv_file_magic_cmd='/bin/file'
5296 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5297 lt_cv_file_magic_test_file=/lib/libc.so
5298 ;;
5299 siemens)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302 pc)
5303 lt_cv_deplibs_check_method=pass_all
bf9f3bac 5304 ;;
8934764e
BB
5305 esac
5306 ;;
5307
5308tpf*)
5309 lt_cv_deplibs_check_method=pass_all
5310 ;;
bf9f3bac 5311esac
bf9f3bac 5312
5313fi
8934764e
BB
5314{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5315$as_echo "$lt_cv_deplibs_check_method" >&6; }
5316file_magic_cmd=$lt_cv_file_magic_cmd
5317deplibs_check_method=$lt_cv_deplibs_check_method
5318test -z "$deplibs_check_method" && deplibs_check_method=unknown
5319
5320
5321
5322
5323
5324
5325
5326
5327
bf9f3bac 5328
bf9f3bac 5329
bf9f3bac 5330
bf9f3bac 5331if test -n "$ac_tool_prefix"; then
8934764e
BB
5332 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5333set dummy ${ac_tool_prefix}ar; ac_word=$2
5334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5335$as_echo_n "checking for $ac_word... " >&6; }
5336if test "${ac_cv_prog_AR+set}" = set; then
5337 $as_echo_n "(cached) " >&6
bf9f3bac 5338else
8934764e
BB
5339 if test -n "$AR"; then
5340 ac_cv_prog_AR="$AR" # Let the user override the test.
bf9f3bac 5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_AR="${ac_tool_prefix}ar"
5350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5351 break 2
5352 fi
5353done
5354done
8934764e 5355IFS=$as_save_IFS
bf9f3bac 5356
5357fi
5358fi
8934764e
BB
5359AR=$ac_cv_prog_AR
5360if test -n "$AR"; then
5361 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5362$as_echo "$AR" >&6; }
bf9f3bac 5363else
8934764e
BB
5364 { $as_echo "$as_me:$LINENO: result: no" >&5
5365$as_echo "no" >&6; }
bf9f3bac 5366fi
5367
8934764e 5368
bf9f3bac 5369fi
8934764e
BB
5370if test -z "$ac_cv_prog_AR"; then
5371 ac_ct_AR=$AR
5372 # Extract the first word of "ar", so it can be a program name with args.
5373set dummy ar; ac_word=$2
5374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5375$as_echo_n "checking for $ac_word... " >&6; }
5376if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5377 $as_echo_n "(cached) " >&6
bf9f3bac 5378else
8934764e
BB
5379 if test -n "$ac_ct_AR"; then
5380 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
bf9f3bac 5381else
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389 ac_cv_prog_ac_ct_AR="ar"
5390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 5391 break 2
5392 fi
5393done
5394done
8934764e 5395IFS=$as_save_IFS
bf9f3bac 5396
5397fi
5398fi
8934764e
BB
5399ac_ct_AR=$ac_cv_prog_ac_ct_AR
5400if test -n "$ac_ct_AR"; then
5401 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5402$as_echo "$ac_ct_AR" >&6; }
bf9f3bac 5403else
8934764e
BB
5404 { $as_echo "$as_me:$LINENO: result: no" >&5
5405$as_echo "no" >&6; }
bf9f3bac 5406fi
5407
8934764e
BB
5408 if test "x$ac_ct_AR" = x; then
5409 AR="false"
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412yes:)
5413{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415ac_tool_warned=yes ;;
5416esac
5417 AR=$ac_ct_AR
5418 fi
5419else
5420 AR="$ac_cv_prog_AR"
bf9f3bac 5421fi
5422
8934764e
BB
5423test -z "$AR" && AR=ar
5424test -z "$AR_FLAGS" && AR_FLAGS=cru
bf9f3bac 5425
bf9f3bac 5426
bf9f3bac 5427
bf9f3bac 5428
8934764e
BB
5429
5430
5431
5432
5433
5434
5435
5436if test -n "$ac_tool_prefix"; then
5437 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5438set dummy ${ac_tool_prefix}strip; ac_word=$2
5439{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5440$as_echo_n "checking for $ac_word... " >&6; }
5441if test "${ac_cv_prog_STRIP+set}" = set; then
5442 $as_echo_n "(cached) " >&6
bf9f3bac 5443else
8934764e
BB
5444 if test -n "$STRIP"; then
5445 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5446else
5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448for as_dir in $PATH
5449do
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5456 break 2
5457 fi
5458done
5459done
5460IFS=$as_save_IFS
bf9f3bac 5461
bf9f3bac 5462fi
bf9f3bac 5463fi
8934764e
BB
5464STRIP=$ac_cv_prog_STRIP
5465if test -n "$STRIP"; then
5466 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5467$as_echo "$STRIP" >&6; }
bf9f3bac 5468else
8934764e
BB
5469 { $as_echo "$as_me:$LINENO: result: no" >&5
5470$as_echo "no" >&6; }
5471fi
bf9f3bac 5472
bf9f3bac 5473
8934764e
BB
5474fi
5475if test -z "$ac_cv_prog_STRIP"; then
5476 ac_ct_STRIP=$STRIP
5477 # Extract the first word of "strip", so it can be a program name with args.
5478set dummy strip; ac_word=$2
5479{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5480$as_echo_n "checking for $ac_word... " >&6; }
5481if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5482 $as_echo_n "(cached) " >&6
bf9f3bac 5483else
8934764e
BB
5484 if test -n "$ac_ct_STRIP"; then
5485 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5486else
5487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488for as_dir in $PATH
5489do
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_ac_ct_STRIP="strip"
5495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5497 fi
5498done
5499done
5500IFS=$as_save_IFS
bf9f3bac 5501
bf9f3bac 5502fi
bf9f3bac 5503fi
8934764e
BB
5504ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5505if test -n "$ac_ct_STRIP"; then
5506 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5507$as_echo "$ac_ct_STRIP" >&6; }
bf9f3bac 5508else
8934764e
BB
5509 { $as_echo "$as_me:$LINENO: result: no" >&5
5510$as_echo "no" >&6; }
5511fi
5512
5513 if test "x$ac_ct_STRIP" = x; then
5514 STRIP=":"
bf9f3bac 5515 else
8934764e
BB
5516 case $cross_compiling:$ac_tool_warned in
5517yes:)
5518{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520ac_tool_warned=yes ;;
5521esac
5522 STRIP=$ac_ct_STRIP
bf9f3bac 5523 fi
8934764e
BB
5524else
5525 STRIP="$ac_cv_prog_STRIP"
bf9f3bac 5526fi
bf9f3bac 5527
8934764e 5528test -z "$STRIP" && STRIP=:
bf9f3bac 5529
bf9f3bac 5530
bf9f3bac 5531
bf9f3bac 5532
bf9f3bac 5533
bf9f3bac 5534
8934764e
BB
5535if test -n "$ac_tool_prefix"; then
5536 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5537set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5538{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5539$as_echo_n "checking for $ac_word... " >&6; }
5540if test "${ac_cv_prog_RANLIB+set}" = set; then
5541 $as_echo_n "(cached) " >&6
bf9f3bac 5542else
8934764e
BB
5543 if test -n "$RANLIB"; then
5544 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5545else
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5553 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5554 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555 break 2
5556 fi
5557done
5558done
5559IFS=$as_save_IFS
bf9f3bac 5560
5561fi
8934764e
BB
5562fi
5563RANLIB=$ac_cv_prog_RANLIB
5564if test -n "$RANLIB"; then
5565 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5566$as_echo "$RANLIB" >&6; }
bf9f3bac 5567else
8934764e
BB
5568 { $as_echo "$as_me:$LINENO: result: no" >&5
5569$as_echo "no" >&6; }
bf9f3bac 5570fi
5571
5572
8934764e
BB
5573fi
5574if test -z "$ac_cv_prog_RANLIB"; then
5575 ac_ct_RANLIB=$RANLIB
5576 # Extract the first word of "ranlib", so it can be a program name with args.
5577set dummy ranlib; ac_word=$2
5578{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5579$as_echo_n "checking for $ac_word... " >&6; }
5580if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5581 $as_echo_n "(cached) " >&6
bf9f3bac 5582else
8934764e
BB
5583 if test -n "$ac_ct_RANLIB"; then
5584 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
bf9f3bac 5588do
8934764e
BB
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5593 ac_cv_prog_ac_ct_RANLIB="ranlib"
5594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
bf9f3bac 5596 fi
8934764e
BB
5597done
5598done
5599IFS=$as_save_IFS
5600
bf9f3bac 5601fi
8934764e
BB
5602fi
5603ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5604if test -n "$ac_ct_RANLIB"; then
5605 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5606$as_echo "$ac_ct_RANLIB" >&6; }
bf9f3bac 5607else
8934764e
BB
5608 { $as_echo "$as_me:$LINENO: result: no" >&5
5609$as_echo "no" >&6; }
bf9f3bac 5610fi
bf9f3bac 5611
8934764e
BB
5612 if test "x$ac_ct_RANLIB" = x; then
5613 RANLIB=":"
bf9f3bac 5614 else
8934764e
BB
5615 case $cross_compiling:$ac_tool_warned in
5616yes:)
5617{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5619ac_tool_warned=yes ;;
5620esac
5621 RANLIB=$ac_ct_RANLIB
bf9f3bac 5622 fi
5623else
8934764e 5624 RANLIB="$ac_cv_prog_RANLIB"
bf9f3bac 5625fi
bf9f3bac 5626
8934764e 5627test -z "$RANLIB" && RANLIB=:
bf9f3bac 5628
bf9f3bac 5629
bf9f3bac 5630
bf9f3bac 5631
bf9f3bac 5632
bf9f3bac 5633
8934764e
BB
5634# Determine commands to create old-style static archives.
5635old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5636old_postinstall_cmds='chmod 644 $oldlib'
5637old_postuninstall_cmds=
bf9f3bac 5638
8934764e
BB
5639if test -n "$RANLIB"; then
5640 case $host_os in
5641 openbsd*)
5642 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5643 ;;
5644 *)
5645 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5646 ;;
5647 esac
5648 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
bf9f3bac 5649fi
5650
bf9f3bac 5651
bf9f3bac 5652
5653
bf9f3bac 5654
bf9f3bac 5655
bf9f3bac 5656
bf9f3bac 5657
bf9f3bac 5658
bf9f3bac 5659
5660
bf9f3bac 5661
bf9f3bac 5662
bf9f3bac 5663
bf9f3bac 5664
bf9f3bac 5665
bf9f3bac 5666
bf9f3bac 5667
bf9f3bac 5668
bf9f3bac 5669
5670
5671
bf9f3bac 5672
bf9f3bac 5673
bf9f3bac 5674
bf9f3bac 5675
bf9f3bac 5676
bf9f3bac 5677
bf9f3bac 5678
bf9f3bac 5679
bf9f3bac 5680
bf9f3bac 5681
bf9f3bac 5682
5683
8934764e
BB
5684# If no C compiler was specified, use CC.
5685LTCC=${LTCC-"$CC"}
5686
5687# If no C compiler flags were specified, use CFLAGS.
5688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5689
5690# Allow CC to be a program name with arguments.
5691compiler=$CC
bf9f3bac 5692
5693
5694# Check for command to grab the raw symbol name followed by C symbol from nm.
8934764e
BB
5695{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5696$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
bf9f3bac 5697if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8934764e 5698 $as_echo_n "(cached) " >&6
bf9f3bac 5699else
5700
5701# These are sane defaults that work on at least a few old systems.
5702# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5703
5704# Character class describing NM global symbol codes.
5705symcode='[BCDEGRST]'
5706
5707# Regexp to match symbols that can be accessed directly from C.
5708sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5709
bf9f3bac 5710# Define system-specific variables.
5711case $host_os in
5712aix*)
5713 symcode='[BCDT]'
5714 ;;
8934764e 5715cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 5716 symcode='[ABCDGISTW]'
5717 ;;
8934764e 5718hpux*)
bf9f3bac 5719 if test "$host_cpu" = ia64; then
5720 symcode='[ABCDEGRST]'
5721 fi
bf9f3bac 5722 ;;
5723irix* | nonstopux*)
5724 symcode='[BCDEGRST]'
5725 ;;
5726osf*)
5727 symcode='[BCDEGQRST]'
5728 ;;
5729solaris*)
5730 symcode='[BDRT]'
5731 ;;
5732sco3.2v5*)
5733 symcode='[DT]'
5734 ;;
5735sysv4.2uw2*)
5736 symcode='[DT]'
5737 ;;
5738sysv5* | sco5v6* | unixware* | OpenUNIX*)
5739 symcode='[ABDT]'
5740 ;;
5741sysv4)
5742 symcode='[DFNSTU]'
5743 ;;
5744esac
5745
8934764e
BB
5746# If we're using GNU nm, then use its standard symbol codes.
5747case `$NM -V 2>&1` in
5748*GNU* | *'with BFD'*)
5749 symcode='[ABCDGIRSTW]' ;;
5750esac
5751
5752# Transform an extracted symbol line into a proper C declaration.
5753# Some systems (esp. on ia64) link data and code symbols differently,
5754# so use this general approach.
5755lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5756
5757# Transform an extracted symbol line into symbol name and symbol address
5758lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5759lt_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'"
5760
bf9f3bac 5761# Handle CRLF in mingw tool chain
5762opt_cr=
5763case $build_os in
5764mingw*)
8934764e 5765 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
bf9f3bac 5766 ;;
5767esac
5768
8934764e 5769# Try without a prefix underscore, then with it.
bf9f3bac 5770for ac_symprfx in "" "_"; do
5771
5772 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5773 symxfrm="\\1 $ac_symprfx\\2 \\2"
5774
5775 # Write the raw and C identifiers.
8934764e
BB
5776 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5777 # Fake it for dumpbin and say T for any non-static function
5778 # and D for any global variable.
5779 # Also find C++ and __fastcall symbols from MSVC++,
5780 # which start with @ or ?.
5781 lt_cv_sys_global_symbol_pipe="$AWK '"\
5782" {last_section=section; section=\$ 3};"\
5783" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5784" \$ 0!~/External *\|/{next};"\
5785" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5786" {if(hide[section]) next};"\
5787" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5788" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5789" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5790" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5791" ' prfx=^$ac_symprfx"
5792 else
5793 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5794 fi
bf9f3bac 5795
5796 # Check to see that the pipe works correctly.
5797 pipe_works=no
5798
5799 rm -f conftest*
8934764e 5800 cat > conftest.$ac_ext <<_LT_EOF
bf9f3bac 5801#ifdef __cplusplus
5802extern "C" {
5803#endif
5804char nm_test_var;
8934764e
BB
5805void nm_test_func(void);
5806void nm_test_func(void){}
bf9f3bac 5807#ifdef __cplusplus
5808}
5809#endif
5810int main(){nm_test_var='a';nm_test_func();return(0);}
8934764e 5811_LT_EOF
bf9f3bac 5812
5813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5814 (eval $ac_compile) 2>&5
5815 ac_status=$?
8934764e 5816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5817 (exit $ac_status); }; then
5818 # Now try to grab the symbols.
5819 nlist=conftest.nm
5820 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5821 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5822 ac_status=$?
8934764e 5823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5824 (exit $ac_status); } && test -s "$nlist"; then
5825 # Try sorting and uniquifying the output.
5826 if sort "$nlist" | uniq > "$nlist"T; then
5827 mv -f "$nlist"T "$nlist"
5828 else
5829 rm -f "$nlist"T
5830 fi
5831
5832 # Make sure that we snagged all the symbols we need.
8934764e
BB
5833 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5834 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5835 cat <<_LT_EOF > conftest.$ac_ext
bf9f3bac 5836#ifdef __cplusplus
5837extern "C" {
5838#endif
5839
8934764e 5840_LT_EOF
bf9f3bac 5841 # Now generate the symbol file.
8934764e 5842 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
bf9f3bac 5843
8934764e 5844 cat <<_LT_EOF >> conftest.$ac_ext
bf9f3bac 5845
8934764e 5846/* The mapping between symbol names and symbols. */
bf9f3bac 5847const struct {
5848 const char *name;
8934764e 5849 void *address;
bf9f3bac 5850}
8934764e 5851lt__PROGRAM__LTX_preloaded_symbols[] =
bf9f3bac 5852{
8934764e
BB
5853 { "@PROGRAM@", (void *) 0 },
5854_LT_EOF
5855 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5856 cat <<\_LT_EOF >> conftest.$ac_ext
5857 {0, (void *) 0}
bf9f3bac 5858};
5859
8934764e
BB
5860/* This works around a problem in FreeBSD linker */
5861#ifdef FREEBSD_WORKAROUND
5862static const void *lt_preloaded_setup() {
5863 return lt__PROGRAM__LTX_preloaded_symbols;
5864}
5865#endif
5866
bf9f3bac 5867#ifdef __cplusplus
5868}
5869#endif
8934764e 5870_LT_EOF
bf9f3bac 5871 # Now try linking the two files.
5872 mv conftest.$ac_objext conftstm.$ac_objext
5873 lt_save_LIBS="$LIBS"
5874 lt_save_CFLAGS="$CFLAGS"
5875 LIBS="conftstm.$ac_objext"
5876 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>&5
5879 ac_status=$?
8934764e 5880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 5881 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5882 pipe_works=yes
5883 fi
5884 LIBS="$lt_save_LIBS"
5885 CFLAGS="$lt_save_CFLAGS"
5886 else
5887 echo "cannot find nm_test_func in $nlist" >&5
5888 fi
5889 else
5890 echo "cannot find nm_test_var in $nlist" >&5
5891 fi
5892 else
5893 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5894 fi
5895 else
5896 echo "$progname: failed program was:" >&5
5897 cat conftest.$ac_ext >&5
5898 fi
8934764e 5899 rm -rf conftest* conftst*
bf9f3bac 5900
5901 # Do not use the global_symbol_pipe unless it works.
5902 if test "$pipe_works" = yes; then
5903 break
5904 else
5905 lt_cv_sys_global_symbol_pipe=
5906 fi
5907done
5908
5909fi
5910
5911if test -z "$lt_cv_sys_global_symbol_pipe"; then
5912 lt_cv_sys_global_symbol_to_cdecl=
5913fi
5914if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8934764e
BB
5915 { $as_echo "$as_me:$LINENO: result: failed" >&5
5916$as_echo "failed" >&6; }
bf9f3bac 5917else
8934764e
BB
5918 { $as_echo "$as_me:$LINENO: result: ok" >&5
5919$as_echo "ok" >&6; }
bf9f3bac 5920fi
5921
bf9f3bac 5922
5923
5924
5925
5926
8934764e
BB
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944# Check whether --enable-libtool-lock was given.
5945if test "${enable_libtool_lock+set}" = set; then
5946 enableval=$enable_libtool_lock;
5947fi
5948
5949test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5950
5951# Some flags need to be propagated to the compiler or linker for good
5952# libtool support.
5953case $host in
5954ia64-*-hpux*)
5955 # Find out which ABI we are using.
5956 echo 'int i;' > conftest.$ac_ext
5957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5959 ac_status=$?
5960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; then
5962 case `/usr/bin/file conftest.$ac_objext` in
5963 *ELF-32*)
5964 HPUX_IA64_MODE="32"
5965 ;;
5966 *ELF-64*)
5967 HPUX_IA64_MODE="64"
5968 ;;
5969 esac
bf9f3bac 5970 fi
8934764e
BB
5971 rm -rf conftest*
5972 ;;
5973*-*-irix6*)
5974 # Find out which ABI we are using.
c950d148 5975 echo '#line 5975 "configure"' > conftest.$ac_ext
8934764e
BB
5976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5977 (eval $ac_compile) 2>&5
5978 ac_status=$?
5979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; then
5981 if test "$lt_cv_prog_gnu_ld" = yes; then
5982 case `/usr/bin/file conftest.$ac_objext` in
5983 *32-bit*)
5984 LD="${LD-ld} -melf32bsmip"
5985 ;;
5986 *N32*)
5987 LD="${LD-ld} -melf32bmipn32"
5988 ;;
5989 *64-bit*)
5990 LD="${LD-ld} -melf64bmip"
5991 ;;
5992 esac
5993 else
5994 case `/usr/bin/file conftest.$ac_objext` in
5995 *32-bit*)
5996 LD="${LD-ld} -32"
5997 ;;
5998 *N32*)
5999 LD="${LD-ld} -n32"
6000 ;;
6001 *64-bit*)
6002 LD="${LD-ld} -64"
6003 ;;
6004 esac
6005 fi
6006 fi
6007 rm -rf conftest*
bf9f3bac 6008 ;;
bf9f3bac 6009
8934764e
BB
6010x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6011s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6012 # Find out which ABI we are using.
6013 echo 'int i;' > conftest.$ac_ext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6015 (eval $ac_compile) 2>&5
6016 ac_status=$?
6017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; then
6019 case `/usr/bin/file conftest.o` in
6020 *32-bit*)
6021 case $host in
6022 x86_64-*kfreebsd*-gnu)
6023 LD="${LD-ld} -m elf_i386_fbsd"
6024 ;;
6025 x86_64-*linux*)
6026 LD="${LD-ld} -m elf_i386"
6027 ;;
6028 ppc64-*linux*|powerpc64-*linux*)
6029 LD="${LD-ld} -m elf32ppclinux"
6030 ;;
6031 s390x-*linux*)
6032 LD="${LD-ld} -m elf_s390"
6033 ;;
6034 sparc64-*linux*)
6035 LD="${LD-ld} -m elf32_sparc"
6036 ;;
6037 esac
6038 ;;
6039 *64-bit*)
6040 case $host in
6041 x86_64-*kfreebsd*-gnu)
6042 LD="${LD-ld} -m elf_x86_64_fbsd"
6043 ;;
6044 x86_64-*linux*)
6045 LD="${LD-ld} -m elf_x86_64"
6046 ;;
6047 ppc*-*linux*|powerpc*-*linux*)
6048 LD="${LD-ld} -m elf64ppc"
6049 ;;
6050 s390*-*linux*|s390*-*tpf*)
6051 LD="${LD-ld} -m elf64_s390"
6052 ;;
6053 sparc*-*linux*)
6054 LD="${LD-ld} -m elf64_sparc"
6055 ;;
6056 esac
6057 ;;
6058 esac
6059 fi
6060 rm -rf conftest*
6061 ;;
bf9f3bac 6062
8934764e
BB
6063*-*-sco3.2v5*)
6064 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6065 SAVE_CFLAGS="$CFLAGS"
6066 CFLAGS="$CFLAGS -belf"
6067 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6068$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6069if test "${lt_cv_cc_needs_belf+set}" = set; then
6070 $as_echo_n "(cached) " >&6
6071else
6072 ac_ext=c
6073ac_cpp='$CPP $CPPFLAGS'
6074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6077
8934764e
BB
6078 cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
bf9f3bac 6084
8934764e
BB
6085int
6086main ()
6087{
6088
6089 ;
6090 return 0;
6091}
6092_ACEOF
6093rm -f conftest.$ac_objext conftest$ac_exeext
6094if { (ac_try="$ac_link"
6095case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098esac
6099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6100$as_echo "$ac_try_echo") >&5
6101 (eval "$ac_link") 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } && {
6108 test -z "$ac_c_werror_flag" ||
6109 test ! -s conftest.err
6110 } && test -s conftest$ac_exeext && {
6111 test "$cross_compiling" = yes ||
6112 $as_test_x conftest$ac_exeext
6113 }; then
6114 lt_cv_cc_needs_belf=yes
6115else
6116 $as_echo "$as_me: failed program was:" >&5
6117sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6118
8934764e
BB
6119 lt_cv_cc_needs_belf=no
6120fi
bf9f3bac 6121
8934764e
BB
6122rm -rf conftest.dSYM
6123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6124 conftest$ac_exeext conftest.$ac_ext
6125 ac_ext=c
6126ac_cpp='$CPP $CPPFLAGS'
6127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6129ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 6130
8934764e
BB
6131fi
6132{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6133$as_echo "$lt_cv_cc_needs_belf" >&6; }
6134 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6136 CFLAGS="$SAVE_CFLAGS"
6137 fi
6138 ;;
6139sparc*-*solaris*)
6140 # Find out which ABI we are using.
6141 echo 'int i;' > conftest.$ac_ext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>&5
6144 ac_status=$?
6145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; then
6147 case `/usr/bin/file conftest.o` in
6148 *64-bit*)
6149 case $lt_cv_prog_gnu_ld in
6150 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6151 *)
6152 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6153 LD="${LD-ld} -64"
6154 fi
6155 ;;
6156 esac
6157 ;;
6158 esac
6159 fi
6160 rm -rf conftest*
6161 ;;
6162esac
bf9f3bac 6163
8934764e
BB
6164need_locks="$enable_libtool_lock"
6165
6166
6167 case $host_os in
6168 rhapsody* | darwin*)
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6171set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6172{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6173$as_echo_n "checking for $ac_word... " >&6; }
6174if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6175 $as_echo_n "(cached) " >&6
6176else
6177 if test -n "$DSYMUTIL"; then
6178 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
bf9f3bac 6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6189 break 2
6190 fi
6191done
6192done
8934764e 6193IFS=$as_save_IFS
bf9f3bac 6194
6195fi
6196fi
8934764e
BB
6197DSYMUTIL=$ac_cv_prog_DSYMUTIL
6198if test -n "$DSYMUTIL"; then
6199 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6200$as_echo "$DSYMUTIL" >&6; }
bf9f3bac 6201else
8934764e
BB
6202 { $as_echo "$as_me:$LINENO: result: no" >&5
6203$as_echo "no" >&6; }
bf9f3bac 6204fi
6205
8934764e 6206
bf9f3bac 6207fi
8934764e
BB
6208if test -z "$ac_cv_prog_DSYMUTIL"; then
6209 ac_ct_DSYMUTIL=$DSYMUTIL
6210 # Extract the first word of "dsymutil", so it can be a program name with args.
6211set dummy dsymutil; ac_word=$2
6212{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6213$as_echo_n "checking for $ac_word... " >&6; }
6214if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6215 $as_echo_n "(cached) " >&6
bf9f3bac 6216else
8934764e
BB
6217 if test -n "$ac_ct_DSYMUTIL"; then
6218 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
bf9f3bac 6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6229 break 2
6230 fi
6231done
6232done
8934764e 6233IFS=$as_save_IFS
bf9f3bac 6234
bf9f3bac 6235fi
6236fi
8934764e
BB
6237ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6238if test -n "$ac_ct_DSYMUTIL"; then
6239 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6240$as_echo "$ac_ct_DSYMUTIL" >&6; }
bf9f3bac 6241else
8934764e
BB
6242 { $as_echo "$as_me:$LINENO: result: no" >&5
6243$as_echo "no" >&6; }
bf9f3bac 6244fi
6245
8934764e
BB
6246 if test "x$ac_ct_DSYMUTIL" = x; then
6247 DSYMUTIL=":"
6248 else
6249 case $cross_compiling:$ac_tool_warned in
6250yes:)
6251{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253ac_tool_warned=yes ;;
6254esac
6255 DSYMUTIL=$ac_ct_DSYMUTIL
6256 fi
bf9f3bac 6257else
8934764e 6258 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
bf9f3bac 6259fi
6260
8934764e
BB
6261 if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6263set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6264{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6265$as_echo_n "checking for $ac_word... " >&6; }
6266if test "${ac_cv_prog_NMEDIT+set}" = set; then
6267 $as_echo_n "(cached) " >&6
bf9f3bac 6268else
8934764e
BB
6269 if test -n "$NMEDIT"; then
6270 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
bf9f3bac 6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6281 break 2
6282 fi
6283done
6284done
8934764e 6285IFS=$as_save_IFS
bf9f3bac 6286
6287fi
6288fi
8934764e
BB
6289NMEDIT=$ac_cv_prog_NMEDIT
6290if test -n "$NMEDIT"; then
6291 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6292$as_echo "$NMEDIT" >&6; }
bf9f3bac 6293else
8934764e
BB
6294 { $as_echo "$as_me:$LINENO: result: no" >&5
6295$as_echo "no" >&6; }
bf9f3bac 6296fi
6297
8934764e 6298
bf9f3bac 6299fi
8934764e
BB
6300if test -z "$ac_cv_prog_NMEDIT"; then
6301 ac_ct_NMEDIT=$NMEDIT
6302 # Extract the first word of "nmedit", so it can be a program name with args.
6303set dummy nmedit; ac_word=$2
6304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6305$as_echo_n "checking for $ac_word... " >&6; }
6306if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6307 $as_echo_n "(cached) " >&6
bf9f3bac 6308else
8934764e
BB
6309 if test -n "$ac_ct_NMEDIT"; then
6310 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
bf9f3bac 6311else
6312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313for as_dir in $PATH
6314do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6319 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6321 break 2
6322 fi
6323done
6324done
8934764e 6325IFS=$as_save_IFS
bf9f3bac 6326
bf9f3bac 6327fi
6328fi
8934764e
BB
6329ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6330if test -n "$ac_ct_NMEDIT"; then
6331 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6332$as_echo "$ac_ct_NMEDIT" >&6; }
bf9f3bac 6333else
8934764e
BB
6334 { $as_echo "$as_me:$LINENO: result: no" >&5
6335$as_echo "no" >&6; }
bf9f3bac 6336fi
6337
8934764e
BB
6338 if test "x$ac_ct_NMEDIT" = x; then
6339 NMEDIT=":"
6340 else
6341 case $cross_compiling:$ac_tool_warned in
6342yes:)
6343{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345ac_tool_warned=yes ;;
6346esac
6347 NMEDIT=$ac_ct_NMEDIT
6348 fi
bf9f3bac 6349else
8934764e 6350 NMEDIT="$ac_cv_prog_NMEDIT"
bf9f3bac 6351fi
6352
8934764e
BB
6353 if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6355set dummy ${ac_tool_prefix}lipo; ac_word=$2
6356{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6357$as_echo_n "checking for $ac_word... " >&6; }
6358if test "${ac_cv_prog_LIPO+set}" = set; then
6359 $as_echo_n "(cached) " >&6
bf9f3bac 6360else
8934764e
BB
6361 if test -n "$LIPO"; then
6362 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
bf9f3bac 6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6373 break 2
6374 fi
6375done
6376done
8934764e 6377IFS=$as_save_IFS
bf9f3bac 6378
6379fi
6380fi
8934764e
BB
6381LIPO=$ac_cv_prog_LIPO
6382if test -n "$LIPO"; then
6383 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6384$as_echo "$LIPO" >&6; }
bf9f3bac 6385else
8934764e
BB
6386 { $as_echo "$as_me:$LINENO: result: no" >&5
6387$as_echo "no" >&6; }
bf9f3bac 6388fi
6389
8934764e 6390
bf9f3bac 6391fi
8934764e
BB
6392if test -z "$ac_cv_prog_LIPO"; then
6393 ac_ct_LIPO=$LIPO
6394 # Extract the first word of "lipo", so it can be a program name with args.
6395set dummy lipo; ac_word=$2
6396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6397$as_echo_n "checking for $ac_word... " >&6; }
6398if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6399 $as_echo_n "(cached) " >&6
bf9f3bac 6400else
8934764e
BB
6401 if test -n "$ac_ct_LIPO"; then
6402 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
bf9f3bac 6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
6406do
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
6409 for ac_exec_ext in '' $ac_executable_extensions; do
8934764e
BB
6410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6411 ac_cv_prog_ac_ct_LIPO="lipo"
6412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
bf9f3bac 6413 break 2
6414 fi
6415done
6416done
8934764e 6417IFS=$as_save_IFS
bf9f3bac 6418
bf9f3bac 6419fi
6420fi
8934764e
BB
6421ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6422if test -n "$ac_ct_LIPO"; then
6423 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6424$as_echo "$ac_ct_LIPO" >&6; }
bf9f3bac 6425else
8934764e
BB
6426 { $as_echo "$as_me:$LINENO: result: no" >&5
6427$as_echo "no" >&6; }
bf9f3bac 6428fi
6429
8934764e
BB
6430 if test "x$ac_ct_LIPO" = x; then
6431 LIPO=":"
6432 else
6433 case $cross_compiling:$ac_tool_warned in
6434yes:)
6435{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437ac_tool_warned=yes ;;
6438esac
6439 LIPO=$ac_ct_LIPO
6440 fi
bf9f3bac 6441else
8934764e 6442 LIPO="$ac_cv_prog_LIPO"
bf9f3bac 6443fi
6444
8934764e
BB
6445 if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}otool; ac_word=$2
6448{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if test "${ac_cv_prog_OTOOL+set}" = set; then
6451 $as_echo_n "(cached) " >&6
6452else
6453 if test -n "$OTOOL"; then
6454 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6463 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
bf9f3bac 6467done
8934764e
BB
6468done
6469IFS=$as_save_IFS
bf9f3bac 6470
8934764e
BB
6471fi
6472fi
6473OTOOL=$ac_cv_prog_OTOOL
6474if test -n "$OTOOL"; then
6475 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6476$as_echo "$OTOOL" >&6; }
bf9f3bac 6477else
8934764e
BB
6478 { $as_echo "$as_me:$LINENO: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
bf9f3bac 6481
bf9f3bac 6482
bf9f3bac 6483fi
8934764e
BB
6484if test -z "$ac_cv_prog_OTOOL"; then
6485 ac_ct_OTOOL=$OTOOL
6486 # Extract the first word of "otool", so it can be a program name with args.
6487set dummy otool; ac_word=$2
6488{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6491 $as_echo_n "(cached) " >&6
bf9f3bac 6492else
8934764e
BB
6493 if test -n "$ac_ct_OTOOL"; then
6494 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
bf9f3bac 6495else
8934764e
BB
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6503 ac_cv_prog_ac_ct_OTOOL="otool"
6504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507done
6508done
6509IFS=$as_save_IFS
bf9f3bac 6510
bf9f3bac 6511fi
8934764e
BB
6512fi
6513ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6514if test -n "$ac_ct_OTOOL"; then
6515 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6516$as_echo "$ac_ct_OTOOL" >&6; }
bf9f3bac 6517else
8934764e
BB
6518 { $as_echo "$as_me:$LINENO: result: no" >&5
6519$as_echo "no" >&6; }
bf9f3bac 6520fi
6521
8934764e
BB
6522 if test "x$ac_ct_OTOOL" = x; then
6523 OTOOL=":"
bf9f3bac 6524 else
8934764e
BB
6525 case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531 OTOOL=$ac_ct_OTOOL
bf9f3bac 6532 fi
8934764e
BB
6533else
6534 OTOOL="$ac_cv_prog_OTOOL"
bf9f3bac 6535fi
6536
8934764e
BB
6537 if test -n "$ac_tool_prefix"; then
6538 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6539set dummy ${ac_tool_prefix}otool64; ac_word=$2
6540{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6541$as_echo_n "checking for $ac_word... " >&6; }
6542if test "${ac_cv_prog_OTOOL64+set}" = set; then
6543 $as_echo_n "(cached) " >&6
6544else
6545 if test -n "$OTOOL64"; then
6546 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6547else
6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549for as_dir in $PATH
6550do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
bf9f3bac 6558 fi
8934764e
BB
6559done
6560done
6561IFS=$as_save_IFS
bf9f3bac 6562
8934764e
BB
6563fi
6564fi
6565OTOOL64=$ac_cv_prog_OTOOL64
6566if test -n "$OTOOL64"; then
6567 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6568$as_echo "$OTOOL64" >&6; }
6569else
6570 { $as_echo "$as_me:$LINENO: result: no" >&5
6571$as_echo "no" >&6; }
6572fi
bf9f3bac 6573
bf9f3bac 6574
8934764e
BB
6575fi
6576if test -z "$ac_cv_prog_OTOOL64"; then
6577 ac_ct_OTOOL64=$OTOOL64
6578 # Extract the first word of "otool64", so it can be a program name with args.
6579set dummy otool64; ac_word=$2
6580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6581$as_echo_n "checking for $ac_word... " >&6; }
6582if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6583 $as_echo_n "(cached) " >&6
6584else
6585 if test -n "$ac_ct_OTOOL64"; then
6586 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6587else
6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589for as_dir in $PATH
6590do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_prog_ac_ct_OTOOL64="otool64"
6596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6598 fi
6599done
6600done
6601IFS=$as_save_IFS
bf9f3bac 6602
8934764e
BB
6603fi
6604fi
6605ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6606if test -n "$ac_ct_OTOOL64"; then
6607 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6608$as_echo "$ac_ct_OTOOL64" >&6; }
6609else
6610 { $as_echo "$as_me:$LINENO: result: no" >&5
6611$as_echo "no" >&6; }
6612fi
bf9f3bac 6613
8934764e
BB
6614 if test "x$ac_ct_OTOOL64" = x; then
6615 OTOOL64=":"
6616 else
6617 case $cross_compiling:$ac_tool_warned in
6618yes:)
6619{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6621ac_tool_warned=yes ;;
6622esac
6623 OTOOL64=$ac_ct_OTOOL64
6624 fi
bf9f3bac 6625else
8934764e
BB
6626 OTOOL64="$ac_cv_prog_OTOOL64"
6627fi
bf9f3bac 6628
bf9f3bac 6629
6630
bf9f3bac 6631
bf9f3bac 6632
bf9f3bac 6633
bf9f3bac 6634
6635
bf9f3bac 6636
bf9f3bac 6637
bf9f3bac 6638
6639
bf9f3bac 6640
bf9f3bac 6641
6642
6643
bf9f3bac 6644
bf9f3bac 6645
6646
bf9f3bac 6647
bf9f3bac 6648
8934764e
BB
6649
6650
6651
6652
6653
6654
6655 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6656$as_echo_n "checking for -single_module linker flag... " >&6; }
6657if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6658 $as_echo_n "(cached) " >&6
bf9f3bac 6659else
8934764e
BB
6660 lt_cv_apple_cc_single_mod=no
6661 if test -z "${LT_MULTI_MODULE}"; then
6662 # By default we will add the -single_module flag. You can override
6663 # by either setting the environment variable LT_MULTI_MODULE
6664 # non-empty at configure time, or by adding -multi_module to the
6665 # link flags.
6666 rm -rf libconftest.dylib*
6667 echo "int foo(void){return 1;}" > conftest.c
6668 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6669-dynamiclib -Wl,-single_module conftest.c" >&5
6670 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6671 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6672 _lt_result=$?
6673 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6674 lt_cv_apple_cc_single_mod=yes
6675 else
6676 cat conftest.err >&5
6677 fi
6678 rm -rf libconftest.dylib*
6679 rm -f conftest.*
6680 fi
bf9f3bac 6681fi
8934764e
BB
6682{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6683$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6684 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6685$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6686if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6687 $as_echo_n "(cached) " >&6
6688else
6689 lt_cv_ld_exported_symbols_list=no
6690 save_LDFLAGS=$LDFLAGS
6691 echo "_main" > conftest.sym
6692 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6693 cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h. */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */
bf9f3bac 6699
8934764e
BB
6700int
6701main ()
6702{
bf9f3bac 6703
8934764e
BB
6704 ;
6705 return 0;
6706}
6707_ACEOF
6708rm -f conftest.$ac_objext conftest$ac_exeext
6709if { (ac_try="$ac_link"
6710case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713esac
6714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6715$as_echo "$ac_try_echo") >&5
6716 (eval "$ac_link") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest$ac_exeext && {
6726 test "$cross_compiling" = yes ||
6727 $as_test_x conftest$ac_exeext
6728 }; then
6729 lt_cv_ld_exported_symbols_list=yes
6730else
6731 $as_echo "$as_me: failed program was:" >&5
6732sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6733
8934764e
BB
6734 lt_cv_ld_exported_symbols_list=no
6735fi
bf9f3bac 6736
8934764e
BB
6737rm -rf conftest.dSYM
6738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6739 conftest$ac_exeext conftest.$ac_ext
6740 LDFLAGS="$save_LDFLAGS"
bf9f3bac 6741
8934764e
BB
6742fi
6743{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6744$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
bf9f3bac 6745 case $host_os in
8934764e
BB
6746 rhapsody* | darwin1.[012])
6747 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6748 darwin1.*)
6749 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6750 darwin*) # darwin 5.x on
6751 # if running on 10.5 or later, the deployment target defaults
6752 # to the OS version, if on x86, and 10.4, the deployment
6753 # target defaults to 10.4. Don't you love it?
6754 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6755 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6756 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6757 10.[012]*)
6758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6759 10.*)
6760 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6761 esac
6762 ;;
6763 esac
6764 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6765 _lt_dar_single_mod='$single_module'
6766 fi
6767 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6768 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6769 else
6770 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6771 fi
6772 if test "$DSYMUTIL" != ":"; then
6773 _lt_dsymutil='~$DSYMUTIL $lib || :'
6774 else
6775 _lt_dsymutil=
6776 fi
6777 ;;
6778 esac
bf9f3bac 6779
8934764e
BB
6780ac_ext=c
6781ac_cpp='$CPP $CPPFLAGS'
6782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6786$as_echo_n "checking how to run the C preprocessor... " >&6; }
6787# On Suns, sometimes $CPP names a directory.
6788if test -n "$CPP" && test -d "$CPP"; then
6789 CPP=
6790fi
6791if test -z "$CPP"; then
6792 if test "${ac_cv_prog_CPP+set}" = set; then
6793 $as_echo_n "(cached) " >&6
6794else
6795 # Double quotes because CPP needs to be expanded
6796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6797 do
6798 ac_preproc_ok=false
6799for ac_c_preproc_warn_flag in '' yes
6800do
6801 # Use a header file that comes with gcc, so configuring glibc
6802 # with a fresh cross-compiler works.
6803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6804 # <limits.h> exists even on freestanding compilers.
6805 # On the NeXT, cc -E runs the code through the compiler's parser,
6806 # not just through cpp. "Syntax error" is here to catch this case.
6807 cat >conftest.$ac_ext <<_ACEOF
6808/* confdefs.h. */
6809_ACEOF
6810cat confdefs.h >>conftest.$ac_ext
6811cat >>conftest.$ac_ext <<_ACEOF
6812/* end confdefs.h. */
6813#ifdef __STDC__
6814# include <limits.h>
6815#else
6816# include <assert.h>
6817#endif
6818 Syntax error
6819_ACEOF
6820if { (ac_try="$ac_cpp conftest.$ac_ext"
6821case "(($ac_try" in
6822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823 *) ac_try_echo=$ac_try;;
6824esac
6825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6826$as_echo "$ac_try_echo") >&5
6827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6828 ac_status=$?
6829 grep -v '^ *+' conftest.er1 >conftest.err
6830 rm -f conftest.er1
6831 cat conftest.err >&5
6832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } >/dev/null && {
6834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6835 test ! -s conftest.err
6836 }; then
6837 :
6838else
6839 $as_echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6841
8934764e
BB
6842 # Broken: fails on valid input.
6843continue
6844fi
bf9f3bac 6845
8934764e 6846rm -f conftest.err conftest.$ac_ext
bf9f3bac 6847
8934764e
BB
6848 # OK, works on sane cases. Now check whether nonexistent headers
6849 # can be detected and how.
6850 cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856#include <ac_nonexistent.h>
6857_ACEOF
6858if { (ac_try="$ac_cpp conftest.$ac_ext"
6859case "(($ac_try" in
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6862esac
6863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6864$as_echo "$ac_try_echo") >&5
6865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6866 ac_status=$?
6867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } >/dev/null && {
6872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6873 test ! -s conftest.err
6874 }; then
6875 # Broken: success on invalid input.
6876continue
6877else
6878 $as_echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6880
8934764e
BB
6881 # Passes both tests.
6882ac_preproc_ok=:
6883break
6884fi
bf9f3bac 6885
8934764e 6886rm -f conftest.err conftest.$ac_ext
bf9f3bac 6887
8934764e
BB
6888done
6889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6890rm -f conftest.err conftest.$ac_ext
6891if $ac_preproc_ok; then
6892 break
6893fi
bf9f3bac 6894
8934764e
BB
6895 done
6896 ac_cv_prog_CPP=$CPP
bf9f3bac 6897
8934764e
BB
6898fi
6899 CPP=$ac_cv_prog_CPP
6900else
6901 ac_cv_prog_CPP=$CPP
6902fi
6903{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6904$as_echo "$CPP" >&6; }
6905ac_preproc_ok=false
6906for ac_c_preproc_warn_flag in '' yes
6907do
6908 # Use a header file that comes with gcc, so configuring glibc
6909 # with a fresh cross-compiler works.
6910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6911 # <limits.h> exists even on freestanding compilers.
6912 # On the NeXT, cc -E runs the code through the compiler's parser,
6913 # not just through cpp. "Syntax error" is here to catch this case.
6914 cat >conftest.$ac_ext <<_ACEOF
6915/* confdefs.h. */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h. */
6920#ifdef __STDC__
6921# include <limits.h>
6922#else
6923# include <assert.h>
6924#endif
6925 Syntax error
6926_ACEOF
6927if { (ac_try="$ac_cpp conftest.$ac_ext"
6928case "(($ac_try" in
6929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6931esac
6932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6933$as_echo "$ac_try_echo") >&5
6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6935 ac_status=$?
6936 grep -v '^ *+' conftest.er1 >conftest.err
6937 rm -f conftest.er1
6938 cat conftest.err >&5
6939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } >/dev/null && {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 }; then
6944 :
6945else
6946 $as_echo "$as_me: failed program was:" >&5
6947sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6948
8934764e
BB
6949 # Broken: fails on valid input.
6950continue
6951fi
bf9f3bac 6952
8934764e 6953rm -f conftest.err conftest.$ac_ext
bf9f3bac 6954
8934764e
BB
6955 # OK, works on sane cases. Now check whether nonexistent headers
6956 # can be detected and how.
6957 cat >conftest.$ac_ext <<_ACEOF
6958/* confdefs.h. */
6959_ACEOF
6960cat confdefs.h >>conftest.$ac_ext
6961cat >>conftest.$ac_ext <<_ACEOF
6962/* end confdefs.h. */
6963#include <ac_nonexistent.h>
6964_ACEOF
6965if { (ac_try="$ac_cpp conftest.$ac_ext"
6966case "(($ac_try" in
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6969esac
6970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6971$as_echo "$ac_try_echo") >&5
6972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
6977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } >/dev/null && {
6979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6980 test ! -s conftest.err
6981 }; then
6982 # Broken: success on invalid input.
6983continue
6984else
6985 $as_echo "$as_me: failed program was:" >&5
6986sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 6987
8934764e
BB
6988 # Passes both tests.
6989ac_preproc_ok=:
6990break
6991fi
bf9f3bac 6992
8934764e 6993rm -f conftest.err conftest.$ac_ext
bf9f3bac 6994
8934764e
BB
6995done
6996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6997rm -f conftest.err conftest.$ac_ext
6998if $ac_preproc_ok; then
6999 :
7000else
7001 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7003{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7004See \`config.log' for more details." >&5
7005$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7006See \`config.log' for more details." >&2;}
7007 { (exit 1); exit 1; }; }; }
7008fi
bf9f3bac 7009
8934764e
BB
7010ac_ext=c
7011ac_cpp='$CPP $CPPFLAGS'
7012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014ac_compiler_gnu=$ac_cv_c_compiler_gnu
bf9f3bac 7015
bf9f3bac 7016
8934764e
BB
7017{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7018$as_echo_n "checking for ANSI C header files... " >&6; }
7019if test "${ac_cv_header_stdc+set}" = set; then
7020 $as_echo_n "(cached) " >&6
7021else
7022 cat >conftest.$ac_ext <<_ACEOF
7023/* confdefs.h. */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h. */
7028#include <stdlib.h>
7029#include <stdarg.h>
7030#include <string.h>
7031#include <float.h>
bf9f3bac 7032
8934764e
BB
7033int
7034main ()
7035{
bf9f3bac 7036
8934764e
BB
7037 ;
7038 return 0;
7039}
7040_ACEOF
7041rm -f conftest.$ac_objext
7042if { (ac_try="$ac_compile"
7043case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046esac
7047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7048$as_echo "$ac_try_echo") >&5
7049 (eval "$ac_compile") 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && {
7056 test -z "$ac_c_werror_flag" ||
7057 test ! -s conftest.err
7058 } && test -s conftest.$ac_objext; then
7059 ac_cv_header_stdc=yes
bf9f3bac 7060else
8934764e
BB
7061 $as_echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7063
8934764e 7064 ac_cv_header_stdc=no
bf9f3bac 7065fi
bf9f3bac 7066
8934764e 7067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7068
8934764e
BB
7069if test $ac_cv_header_stdc = yes; then
7070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7071 cat >conftest.$ac_ext <<_ACEOF
7072/* confdefs.h. */
7073_ACEOF
7074cat confdefs.h >>conftest.$ac_ext
7075cat >>conftest.$ac_ext <<_ACEOF
7076/* end confdefs.h. */
7077#include <string.h>
bf9f3bac 7078
8934764e
BB
7079_ACEOF
7080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7081 $EGREP "memchr" >/dev/null 2>&1; then
7082 :
bf9f3bac 7083else
8934764e
BB
7084 ac_cv_header_stdc=no
7085fi
7086rm -f conftest*
bf9f3bac 7087
7088fi
bf9f3bac 7089
8934764e
BB
7090if test $ac_cv_header_stdc = yes; then
7091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7092 cat >conftest.$ac_ext <<_ACEOF
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h. */
7098#include <stdlib.h>
7099
7100_ACEOF
7101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7102 $EGREP "free" >/dev/null 2>&1; then
7103 :
bf9f3bac 7104else
8934764e 7105 ac_cv_header_stdc=no
bf9f3bac 7106fi
8934764e 7107rm -f conftest*
bf9f3bac 7108
8934764e 7109fi
bf9f3bac 7110
8934764e
BB
7111if test $ac_cv_header_stdc = yes; then
7112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7113 if test "$cross_compiling" = yes; then
7114 :
bf9f3bac 7115else
8934764e
BB
7116 cat >conftest.$ac_ext <<_ACEOF
7117/* confdefs.h. */
7118_ACEOF
7119cat confdefs.h >>conftest.$ac_ext
7120cat >>conftest.$ac_ext <<_ACEOF
7121/* end confdefs.h. */
7122#include <ctype.h>
7123#include <stdlib.h>
7124#if ((' ' & 0x0FF) == 0x020)
7125# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7126# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7127#else
7128# define ISLOWER(c) \
7129 (('a' <= (c) && (c) <= 'i') \
7130 || ('j' <= (c) && (c) <= 'r') \
7131 || ('s' <= (c) && (c) <= 'z'))
7132# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7133#endif
bf9f3bac 7134
8934764e
BB
7135#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7136int
7137main ()
7138{
7139 int i;
7140 for (i = 0; i < 256; i++)
7141 if (XOR (islower (i), ISLOWER (i))
7142 || toupper (i) != TOUPPER (i))
7143 return 2;
7144 return 0;
7145}
7146_ACEOF
7147rm -f conftest$ac_exeext
7148if { (ac_try="$ac_link"
7149case "(($ac_try" in
7150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7151 *) ac_try_echo=$ac_try;;
7152esac
7153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7154$as_echo "$ac_try_echo") >&5
7155 (eval "$ac_link") 2>&5
7156 ac_status=$?
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7159 { (case "(($ac_try" in
7160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161 *) ac_try_echo=$ac_try;;
7162esac
7163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7164$as_echo "$ac_try_echo") >&5
7165 (eval "$ac_try") 2>&5
7166 ac_status=$?
7167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 :
7170else
7171 $as_echo "$as_me: program exited with status $ac_status" >&5
7172$as_echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7174
8934764e
BB
7175( exit $ac_status )
7176ac_cv_header_stdc=no
7177fi
7178rm -rf conftest.dSYM
7179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bf9f3bac 7180fi
bf9f3bac 7181
7182
bf9f3bac 7183fi
8934764e
BB
7184fi
7185{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7186$as_echo "$ac_cv_header_stdc" >&6; }
7187if test $ac_cv_header_stdc = yes; then
bf9f3bac 7188
8934764e
BB
7189cat >>confdefs.h <<\_ACEOF
7190#define STDC_HEADERS 1
7191_ACEOF
bf9f3bac 7192
8934764e 7193fi
bf9f3bac 7194
8934764e 7195# On IRIX 5.3, sys/types and inttypes.h are conflicting.
bf9f3bac 7196
bf9f3bac 7197
bf9f3bac 7198
bf9f3bac 7199
bf9f3bac 7200
bf9f3bac 7201
bf9f3bac 7202
bf9f3bac 7203
bf9f3bac 7204
8934764e
BB
7205for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7206 inttypes.h stdint.h unistd.h
7207do
7208as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7209{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7210$as_echo_n "checking for $ac_header... " >&6; }
7211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7212 $as_echo_n "(cached) " >&6
7213else
7214 cat >conftest.$ac_ext <<_ACEOF
7215/* confdefs.h. */
7216_ACEOF
7217cat confdefs.h >>conftest.$ac_ext
7218cat >>conftest.$ac_ext <<_ACEOF
7219/* end confdefs.h. */
7220$ac_includes_default
bf9f3bac 7221
8934764e
BB
7222#include <$ac_header>
7223_ACEOF
7224rm -f conftest.$ac_objext
7225if { (ac_try="$ac_compile"
7226case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7229esac
7230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7231$as_echo "$ac_try_echo") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.$ac_objext; then
7242 eval "$as_ac_Header=yes"
7243else
7244 $as_echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 7246
8934764e
BB
7247 eval "$as_ac_Header=no"
7248fi
bf9f3bac 7249
8934764e
BB
7250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7251fi
7252ac_res=`eval 'as_val=${'$as_ac_Header'}
7253 $as_echo "$as_val"'`
7254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7255$as_echo "$ac_res" >&6; }
7256as_val=`eval 'as_val=${'$as_ac_Header'}
7257 $as_echo "$as_val"'`
7258 if test "x$as_val" = x""yes; then
7259 cat >>confdefs.h <<_ACEOF
7260#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7261_ACEOF
bf9f3bac 7262
8934764e 7263fi
bf9f3bac 7264
8934764e 7265done
bf9f3bac 7266
bf9f3bac 7267
bf9f3bac 7268
8934764e
BB
7269for ac_header in dlfcn.h
7270do
7271as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7273$as_echo_n "checking for $ac_header... " >&6; }
7274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7275 $as_echo_n "(cached) " >&6
7276else
7277 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 7278/* confdefs.h. */
7279_ACEOF
7280cat confdefs.h >>conftest.$ac_ext
7281cat >>conftest.$ac_ext <<_ACEOF
7282/* end confdefs.h. */
8934764e 7283$ac_includes_default
bf9f3bac 7284
8934764e 7285#include <$ac_header>
bf9f3bac 7286_ACEOF
8934764e
BB
7287rm -f conftest.$ac_objext
7288if { (ac_try="$ac_compile"
7289case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292esac
7293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7294$as_echo "$ac_try_echo") >&5
7295 (eval "$ac_compile") 2>conftest.er1
bf9f3bac 7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
8934764e
BB
7300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 eval "$as_ac_Header=yes"
bf9f3bac 7306else
8934764e 7307 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 7308sed 's/^/| /' conftest.$ac_ext >&5
7309
8934764e 7310 eval "$as_ac_Header=no"
bf9f3bac 7311fi
bf9f3bac 7312
8934764e
BB
7313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314fi
7315ac_res=`eval 'as_val=${'$as_ac_Header'}
7316 $as_echo "$as_val"'`
7317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7318$as_echo "$ac_res" >&6; }
7319as_val=`eval 'as_val=${'$as_ac_Header'}
7320 $as_echo "$as_val"'`
7321 if test "x$as_val" = x""yes; then
7322 cat >>confdefs.h <<_ACEOF
7323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
bf9f3bac 7324_ACEOF
bf9f3bac 7325
7326fi
bf9f3bac 7327
8934764e 7328done
bf9f3bac 7329
bf9f3bac 7330
bf9f3bac 7331
8934764e 7332# Set options
bf9f3bac 7333
bf9f3bac 7334
bf9f3bac 7335
8934764e 7336 enable_dlopen=no
bf9f3bac 7337
bf9f3bac 7338
8934764e 7339 enable_win32_dll=no
bf9f3bac 7340
bf9f3bac 7341
8934764e
BB
7342 # Check whether --enable-shared was given.
7343if test "${enable_shared+set}" = set; then
7344 enableval=$enable_shared; p=${PACKAGE-default}
7345 case $enableval in
7346 yes) enable_shared=yes ;;
7347 no) enable_shared=no ;;
7348 *)
7349 enable_shared=no
7350 # Look at the argument we got. We use all the common list separators.
7351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7352 for pkg in $enableval; do
7353 IFS="$lt_save_ifs"
7354 if test "X$pkg" = "X$p"; then
7355 enable_shared=yes
7356 fi
7357 done
7358 IFS="$lt_save_ifs"
bf9f3bac 7359 ;;
8934764e
BB
7360 esac
7361else
7362 enable_shared=yes
7363fi
bf9f3bac 7364
bf9f3bac 7365
bf9f3bac 7366
bf9f3bac 7367
bf9f3bac 7368
bf9f3bac 7369
bf9f3bac 7370
8934764e
BB
7371
7372
7373 # Check whether --enable-static was given.
7374if test "${enable_static+set}" = set; then
7375 enableval=$enable_static; p=${PACKAGE-default}
7376 case $enableval in
7377 yes) enable_static=yes ;;
7378 no) enable_static=no ;;
7379 *)
7380 enable_static=no
7381 # Look at the argument we got. We use all the common list separators.
7382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7383 for pkg in $enableval; do
7384 IFS="$lt_save_ifs"
7385 if test "X$pkg" = "X$p"; then
7386 enable_static=yes
7387 fi
7388 done
7389 IFS="$lt_save_ifs"
7390 ;;
7391 esac
bf9f3bac 7392else
8934764e 7393 enable_static=yes
bf9f3bac 7394fi
bf9f3bac 7395
8934764e
BB
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405# Check whether --with-pic was given.
7406if test "${with_pic+set}" = set; then
7407 withval=$with_pic; pic_mode="$withval"
7408else
7409 pic_mode=default
bf9f3bac 7410fi
7411
7412
8934764e
BB
7413test -z "$pic_mode" && pic_mode=default
7414
7415
7416
7417
7418
7419
7420
7421 # Check whether --enable-fast-install was given.
7422if test "${enable_fast_install+set}" = set; then
7423 enableval=$enable_fast_install; p=${PACKAGE-default}
7424 case $enableval in
7425 yes) enable_fast_install=yes ;;
7426 no) enable_fast_install=no ;;
bf9f3bac 7427 *)
8934764e
BB
7428 enable_fast_install=no
7429 # Look at the argument we got. We use all the common list separators.
7430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7431 for pkg in $enableval; do
7432 IFS="$lt_save_ifs"
7433 if test "X$pkg" = "X$p"; then
7434 enable_fast_install=yes
7435 fi
7436 done
7437 IFS="$lt_save_ifs"
bf9f3bac 7438 ;;
7439 esac
8934764e
BB
7440else
7441 enable_fast_install=yes
7442fi
bf9f3bac 7443
bf9f3bac 7444
bf9f3bac 7445
bf9f3bac 7446
bf9f3bac 7447
bf9f3bac 7448
bf9f3bac 7449
bf9f3bac 7450
bf9f3bac 7451
bf9f3bac 7452
bf9f3bac 7453
8934764e
BB
7454# This can be used to rebuild libtool when needed
7455LIBTOOL_DEPS="$ltmain"
bf9f3bac 7456
8934764e
BB
7457# Always use our own libtool.
7458LIBTOOL='$(SHELL) $(top_builddir)/libtool'
bf9f3bac 7459
bf9f3bac 7460
bf9f3bac 7461
bf9f3bac 7462
bf9f3bac 7463
bf9f3bac 7464
bf9f3bac 7465
bf9f3bac 7466
bf9f3bac 7467
bf9f3bac 7468
bf9f3bac 7469
bf9f3bac 7470
bf9f3bac 7471
bf9f3bac 7472
bf9f3bac 7473
bf9f3bac 7474
bf9f3bac 7475
bf9f3bac 7476
bf9f3bac 7477
bf9f3bac 7478
bf9f3bac 7479
bf9f3bac 7480
bf9f3bac 7481
bf9f3bac 7482
bf9f3bac 7483
8934764e 7484test -z "$LN_S" && LN_S="ln -s"
bf9f3bac 7485
bf9f3bac 7486
bf9f3bac 7487
bf9f3bac 7488
bf9f3bac 7489
bf9f3bac 7490
bf9f3bac 7491
bf9f3bac 7492
bf9f3bac 7493
bf9f3bac 7494
bf9f3bac 7495
bf9f3bac 7496
bf9f3bac 7497
bf9f3bac 7498
8934764e
BB
7499if test -n "${ZSH_VERSION+set}" ; then
7500 setopt NO_GLOB_SUBST
7501fi
bf9f3bac 7502
8934764e
BB
7503{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7504$as_echo_n "checking for objdir... " >&6; }
7505if test "${lt_cv_objdir+set}" = set; then
7506 $as_echo_n "(cached) " >&6
7507else
7508 rm -f .libs 2>/dev/null
7509mkdir .libs 2>/dev/null
7510if test -d .libs; then
7511 lt_cv_objdir=.libs
7512else
7513 # MS-DOS does not allow filenames that begin with a dot.
7514 lt_cv_objdir=_libs
7515fi
7516rmdir .libs 2>/dev/null
7517fi
7518{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7519$as_echo "$lt_cv_objdir" >&6; }
7520objdir=$lt_cv_objdir
bf9f3bac 7521
bf9f3bac 7522
bf9f3bac 7523
bf9f3bac 7524
bf9f3bac 7525
8934764e
BB
7526cat >>confdefs.h <<_ACEOF
7527#define LT_OBJDIR "$lt_cv_objdir/"
7528_ACEOF
bf9f3bac 7529
bf9f3bac 7530
bf9f3bac 7531
bf9f3bac 7532
bf9f3bac 7533
bf9f3bac 7534
bf9f3bac 7535
bf9f3bac 7536
bf9f3bac 7537
bf9f3bac 7538
bf9f3bac 7539
bf9f3bac 7540
bf9f3bac 7541
bf9f3bac 7542
bf9f3bac 7543
bf9f3bac 7544
bf9f3bac 7545
8934764e
BB
7546case $host_os in
7547aix3*)
7548 # AIX sometimes has problems with the GCC collect2 program. For some
7549 # reason, if we set the COLLECT_NAMES environment variable, the problems
7550 # vanish in a puff of smoke.
7551 if test "X${COLLECT_NAMES+set}" != Xset; then
7552 COLLECT_NAMES=
7553 export COLLECT_NAMES
7554 fi
7555 ;;
7556esac
bf9f3bac 7557
8934764e
BB
7558# Sed substitution that helps us do robust quoting. It backslashifies
7559# metacharacters that are still active within double-quoted strings.
7560sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
bf9f3bac 7561
8934764e
BB
7562# Same as above, but do not quote variable references.
7563double_quote_subst='s/\(["`\\]\)/\\\1/g'
bf9f3bac 7564
8934764e
BB
7565# Sed substitution to delay expansion of an escaped shell variable in a
7566# double_quote_subst'ed string.
7567delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
bf9f3bac 7568
8934764e
BB
7569# Sed substitution to delay expansion of an escaped single quote.
7570delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
bf9f3bac 7571
8934764e
BB
7572# Sed substitution to avoid accidental globbing in evaled expressions
7573no_glob_subst='s/\*/\\\*/g'
bf9f3bac 7574
8934764e
BB
7575# Global variables:
7576ofile=libtool
7577can_build_shared=yes
bf9f3bac 7578
8934764e
BB
7579# All known linkers require a `.a' archive for static linking (except MSVC,
7580# which needs '.lib').
7581libext=a
bf9f3bac 7582
8934764e 7583with_gnu_ld="$lt_cv_prog_gnu_ld"
bf9f3bac 7584
8934764e
BB
7585old_CC="$CC"
7586old_CFLAGS="$CFLAGS"
bf9f3bac 7587
8934764e
BB
7588# Set sane defaults for various variables
7589test -z "$CC" && CC=cc
7590test -z "$LTCC" && LTCC=$CC
7591test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7592test -z "$LD" && LD=ld
7593test -z "$ac_objext" && ac_objext=o
bf9f3bac 7594
8934764e
BB
7595for cc_temp in $compiler""; do
7596 case $cc_temp in
7597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7599 \-*) ;;
7600 *) break;;
7601 esac
7602done
7603cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
bf9f3bac 7604
bf9f3bac 7605
8934764e
BB
7606# Only perform the check for file, if the check method requires it
7607test -z "$MAGIC_CMD" && MAGIC_CMD=file
7608case $deplibs_check_method in
7609file_magic*)
7610 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7611 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7612$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7613if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7614 $as_echo_n "(cached) " >&6
7615else
7616 case $MAGIC_CMD in
7617[\\/*] | ?:[\\/]*)
7618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7619 ;;
7620*)
7621 lt_save_MAGIC_CMD="$MAGIC_CMD"
7622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7624 for ac_dir in $ac_dummy; do
7625 IFS="$lt_save_ifs"
7626 test -z "$ac_dir" && ac_dir=.
7627 if test -f $ac_dir/${ac_tool_prefix}file; then
7628 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7629 if test -n "$file_magic_test_file"; then
7630 case $deplibs_check_method in
7631 "file_magic "*)
7632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7635 $EGREP "$file_magic_regex" > /dev/null; then
7636 :
7637 else
7638 cat <<_LT_EOF 1>&2
bf9f3bac 7639
8934764e
BB
7640*** Warning: the command libtool uses to detect shared libraries,
7641*** $file_magic_cmd, produces output that libtool cannot recognize.
7642*** The result is that libtool may fail to recognize shared libraries
7643*** as such. This will affect the creation of libtool libraries that
7644*** depend on shared libraries, but programs linked with such libtool
7645*** libraries will work regardless of this problem. Nevertheless, you
7646*** may want to report the problem to your system manager and/or to
7647*** bug-libtool@gnu.org
bf9f3bac 7648
8934764e
BB
7649_LT_EOF
7650 fi ;;
7651 esac
7652 fi
7653 break
7654 fi
7655 done
7656 IFS="$lt_save_ifs"
7657 MAGIC_CMD="$lt_save_MAGIC_CMD"
7658 ;;
7659esac
7660fi
bf9f3bac 7661
8934764e
BB
7662MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7663if test -n "$MAGIC_CMD"; then
7664 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7665$as_echo "$MAGIC_CMD" >&6; }
7666else
7667 { $as_echo "$as_me:$LINENO: result: no" >&5
7668$as_echo "no" >&6; }
7669fi
bf9f3bac 7670
bf9f3bac 7671
bf9f3bac 7672
bf9f3bac 7673
bf9f3bac 7674
8934764e
BB
7675if test -z "$lt_cv_path_MAGIC_CMD"; then
7676 if test -n "$ac_tool_prefix"; then
7677 { $as_echo "$as_me:$LINENO: checking for file" >&5
7678$as_echo_n "checking for file... " >&6; }
7679if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7680 $as_echo_n "(cached) " >&6
7681else
7682 case $MAGIC_CMD in
7683[\\/*] | ?:[\\/]*)
7684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7685 ;;
7686*)
7687 lt_save_MAGIC_CMD="$MAGIC_CMD"
7688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7689 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7690 for ac_dir in $ac_dummy; do
7691 IFS="$lt_save_ifs"
7692 test -z "$ac_dir" && ac_dir=.
7693 if test -f $ac_dir/file; then
7694 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7695 if test -n "$file_magic_test_file"; then
7696 case $deplibs_check_method in
7697 "file_magic "*)
7698 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7701 $EGREP "$file_magic_regex" > /dev/null; then
7702 :
7703 else
7704 cat <<_LT_EOF 1>&2
7705
7706*** Warning: the command libtool uses to detect shared libraries,
7707*** $file_magic_cmd, produces output that libtool cannot recognize.
7708*** The result is that libtool may fail to recognize shared libraries
7709*** as such. This will affect the creation of libtool libraries that
7710*** depend on shared libraries, but programs linked with such libtool
7711*** libraries will work regardless of this problem. Nevertheless, you
7712*** may want to report the problem to your system manager and/or to
7713*** bug-libtool@gnu.org
bf9f3bac 7714
8934764e
BB
7715_LT_EOF
7716 fi ;;
7717 esac
7718 fi
7719 break
7720 fi
7721 done
7722 IFS="$lt_save_ifs"
7723 MAGIC_CMD="$lt_save_MAGIC_CMD"
7724 ;;
7725esac
7726fi
bf9f3bac 7727
8934764e
BB
7728MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729if test -n "$MAGIC_CMD"; then
7730 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7731$as_echo "$MAGIC_CMD" >&6; }
7732else
7733 { $as_echo "$as_me:$LINENO: result: no" >&5
7734$as_echo "no" >&6; }
7735fi
bf9f3bac 7736
7737
8934764e
BB
7738 else
7739 MAGIC_CMD=:
bf9f3bac 7740 fi
7741fi
7742
8934764e
BB
7743 fi
7744 ;;
7745esac
7746
7747# Use C for the default configuration in the libtool script
bf9f3bac 7748
8934764e 7749lt_save_CC="$CC"
bf9f3bac 7750ac_ext=c
7751ac_cpp='$CPP $CPPFLAGS'
7752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7754ac_compiler_gnu=$ac_cv_c_compiler_gnu
7755
bf9f3bac 7756
8934764e
BB
7757# Source file extension for C test sources.
7758ac_ext=c
bf9f3bac 7759
8934764e
BB
7760# Object file extension for compiled C test sources.
7761objext=o
7762objext=$objext
bf9f3bac 7763
8934764e
BB
7764# Code to be used in simple compile tests
7765lt_simple_compile_test_code="int some_variable = 0;"
7766
7767# Code to be used in simple link tests
7768lt_simple_link_test_code='int main(){return(0);}'
bf9f3bac 7769
7770
bf9f3bac 7771
bf9f3bac 7772
bf9f3bac 7773
bf9f3bac 7774
bf9f3bac 7775
7776# If no C compiler was specified, use CC.
7777LTCC=${LTCC-"$CC"}
7778
7779# If no C compiler flags were specified, use CFLAGS.
7780LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7781
7782# Allow CC to be a program name with arguments.
7783compiler=$CC
7784
8934764e
BB
7785# Save the default compiler, since it gets overwritten when the other
7786# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7787compiler_DEFAULT=$CC
bf9f3bac 7788
7789# save warnings/boilerplate of simple test code
7790ac_outfile=conftest.$ac_objext
8934764e 7791echo "$lt_simple_compile_test_code" >conftest.$ac_ext
bf9f3bac 7792eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7793_lt_compiler_boilerplate=`cat conftest.err`
8934764e 7794$RM conftest*
bf9f3bac 7795
7796ac_outfile=conftest.$ac_objext
8934764e 7797echo "$lt_simple_link_test_code" >conftest.$ac_ext
bf9f3bac 7798eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7799_lt_linker_boilerplate=`cat conftest.err`
8934764e 7800$RM -r conftest*
bf9f3bac 7801
bf9f3bac 7802
8934764e 7803if test -n "$compiler"; then
bf9f3bac 7804
8934764e 7805lt_prog_compiler_no_builtin_flag=
bf9f3bac 7806
7807if test "$GCC" = yes; then
8934764e 7808 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
bf9f3bac 7809
8934764e
BB
7810 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7811$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
bf9f3bac 7812if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8934764e 7813 $as_echo_n "(cached) " >&6
bf9f3bac 7814else
7815 lt_cv_prog_compiler_rtti_exceptions=no
8934764e
BB
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 7818 lt_compiler_flag="-fno-rtti -fno-exceptions"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 # The option is referenced via a variable to avoid confusing sed.
7824 lt_compile=`echo "$ac_compile" | $SED \
7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827 -e 's:$: $lt_compiler_flag:'`
c950d148 7828 (eval echo "\"\$as_me:7828: $lt_compile\"" >&5)
bf9f3bac 7829 (eval "$lt_compile" 2>conftest.err)
7830 ac_status=$?
7831 cat conftest.err >&5
c950d148 7832 echo "$as_me:7832: \$? = $ac_status" >&5
bf9f3bac 7833 if (exit $ac_status) && test -s "$ac_outfile"; then
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings other than the usual output.
8934764e 7836 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 7837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_rtti_exceptions=yes
7840 fi
7841 fi
8934764e 7842 $RM conftest*
bf9f3bac 7843
7844fi
8934764e
BB
7845{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7846$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
bf9f3bac 7847
7848if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8934764e 7849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
bf9f3bac 7850else
7851 :
7852fi
7853
7854fi
7855
bf9f3bac 7856
8934764e
BB
7857
7858
7859
7860
7861 lt_prog_compiler_wl=
7862lt_prog_compiler_pic=
7863lt_prog_compiler_static=
7864
7865{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7866$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
bf9f3bac 7867
7868 if test "$GCC" = yes; then
8934764e
BB
7869 lt_prog_compiler_wl='-Wl,'
7870 lt_prog_compiler_static='-static'
bf9f3bac 7871
7872 case $host_os in
7873 aix*)
7874 # All AIX code is PIC.
7875 if test "$host_cpu" = ia64; then
7876 # AIX 5 now supports IA64 processor
8934764e 7877 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7878 fi
7879 ;;
7880
7881 amigaos*)
8934764e
BB
7882 case $host_cpu in
7883 powerpc)
7884 # see comment about AmigaOS4 .so support
7885 lt_prog_compiler_pic='-fPIC'
7886 ;;
7887 m68k)
7888 # FIXME: we need at least 68020 code to build shared libraries, but
7889 # adding the `-m68020' flag to GCC prevents building anything better,
7890 # like `-m68040'.
7891 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7892 ;;
7893 esac
bf9f3bac 7894 ;;
7895
8934764e 7896 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
bf9f3bac 7897 # PIC is the default for these OSes.
7898 ;;
7899
8934764e 7900 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7901 # This hack is so that the source file can tell whether it is being
7902 # built for inclusion in a dll (and should export symbols for example).
8934764e
BB
7903 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7904 # (--disable-auto-import) libraries
7905 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7906 ;;
7907
7908 darwin* | rhapsody*)
7909 # PIC is the default on this platform
7910 # Common symbols not allowed in MH_DYLIB files
8934764e
BB
7911 lt_prog_compiler_pic='-fno-common'
7912 ;;
7913
7914 hpux*)
7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7917 # sets the default TLS model and affects inlining.
7918 case $host_cpu in
7919 hppa*64*)
7920 # +Z the default
7921 ;;
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
bf9f3bac 7926 ;;
7927
8934764e 7928 interix[3-9]*)
bf9f3bac 7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7930 # Instead, we relocate shared libraries at runtime.
7931 ;;
7932
7933 msdosdjgpp*)
7934 # Just because we use GCC doesn't mean we suddenly get shared libraries
7935 # on systems that don't support them.
8934764e 7936 lt_prog_compiler_can_build_shared=no
bf9f3bac 7937 enable_shared=no
7938 ;;
7939
8934764e
BB
7940 *nto* | *qnx*)
7941 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 # it will coredump.
7943 lt_prog_compiler_pic='-fPIC -shared'
7944 ;;
7945
bf9f3bac 7946 sysv4*MP*)
7947 if test -d /usr/nec; then
8934764e 7948 lt_prog_compiler_pic=-Kconform_pic
bf9f3bac 7949 fi
7950 ;;
7951
bf9f3bac 7952 *)
8934764e 7953 lt_prog_compiler_pic='-fPIC'
bf9f3bac 7954 ;;
7955 esac
7956 else
7957 # PORTME Check for flag to pass linker flags through the system compiler.
7958 case $host_os in
7959 aix*)
8934764e 7960 lt_prog_compiler_wl='-Wl,'
bf9f3bac 7961 if test "$host_cpu" = ia64; then
7962 # AIX 5 now supports IA64 processor
8934764e 7963 lt_prog_compiler_static='-Bstatic'
bf9f3bac 7964 else
8934764e 7965 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
bf9f3bac 7966 fi
7967 ;;
bf9f3bac 7968
8934764e 7969 mingw* | cygwin* | pw32* | os2* | cegcc*)
bf9f3bac 7970 # This hack is so that the source file can tell whether it is being
7971 # built for inclusion in a dll (and should export symbols for example).
8934764e 7972 lt_prog_compiler_pic='-DDLL_EXPORT'
bf9f3bac 7973 ;;
7974
7975 hpux9* | hpux10* | hpux11*)
8934764e 7976 lt_prog_compiler_wl='-Wl,'
bf9f3bac 7977 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7978 # not for PA HP-UX.
7979 case $host_cpu in
7980 hppa*64*|ia64*)
7981 # +Z the default
7982 ;;
7983 *)
8934764e 7984 lt_prog_compiler_pic='+Z'
bf9f3bac 7985 ;;
7986 esac
7987 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8934764e 7988 lt_prog_compiler_static='${wl}-a ${wl}archive'
bf9f3bac 7989 ;;
7990
7991 irix5* | irix6* | nonstopux*)
8934764e 7992 lt_prog_compiler_wl='-Wl,'
bf9f3bac 7993 # PIC (with -KPIC) is the default.
8934764e 7994 lt_prog_compiler_static='-non_shared'
bf9f3bac 7995 ;;
7996
8934764e 7997 linux* | k*bsd*-gnu)
bf9f3bac 7998 case $cc_basename in
8934764e
BB
7999 # old Intel for x86_64 which still supported -KPIC.
8000 ecc*)
8001 lt_prog_compiler_wl='-Wl,'
8002 lt_prog_compiler_pic='-KPIC'
8003 lt_prog_compiler_static='-static'
8004 ;;
8005 # icc used to be incompatible with GCC.
8006 # ICC 10 doesn't accept -KPIC any more.
8007 icc* | ifort*)
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='-fPIC'
8010 lt_prog_compiler_static='-static'
bf9f3bac 8011 ;;
8934764e
BB
8012 # Lahey Fortran 8.1.
8013 lf95*)
8014 lt_prog_compiler_wl='-Wl,'
8015 lt_prog_compiler_pic='--shared'
8016 lt_prog_compiler_static='--static'
8017 ;;
bf9f3bac 8018 pgcc* | pgf77* | pgf90* | pgf95*)
8019 # Portland Group compilers (*not* the Pentium gcc compiler,
8020 # which looks to be a dead project)
8934764e
BB
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='-fpic'
8023 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8024 ;;
8025 ccc*)
8934764e 8026 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8027 # All Alpha code is PIC.
8934764e 8028 lt_prog_compiler_static='-non_shared'
bf9f3bac 8029 ;;
8934764e
BB
8030 xl*)
8031 # IBM XL C 8.0/Fortran 10.1 on PPC
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='-qpic'
8034 lt_prog_compiler_static='-qstaticlink'
8035 ;;
8036 *)
8037 case `$CC -V 2>&1 | sed 5q` in
8038 *Sun\ C*)
8039 # Sun C 5.9
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
8042 lt_prog_compiler_wl='-Wl,'
8043 ;;
8044 *Sun\ F*)
8045 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8046 lt_prog_compiler_pic='-KPIC'
8047 lt_prog_compiler_static='-Bstatic'
8048 lt_prog_compiler_wl=''
8049 ;;
8050 esac
8051 ;;
bf9f3bac 8052 esac
8053 ;;
8054
8934764e
BB
8055 newsos6)
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-Bstatic'
8058 ;;
8059
8060 *nto* | *qnx*)
8061 # QNX uses GNU C++, but need to define -shared option too, otherwise
8062 # it will coredump.
8063 lt_prog_compiler_pic='-fPIC -shared'
8064 ;;
8065
bf9f3bac 8066 osf3* | osf4* | osf5*)
8934764e 8067 lt_prog_compiler_wl='-Wl,'
bf9f3bac 8068 # All OSF/1 code is PIC.
8934764e
BB
8069 lt_prog_compiler_static='-non_shared'
8070 ;;
8071
8072 rdos*)
8073 lt_prog_compiler_static='-non_shared'
bf9f3bac 8074 ;;
8075
8076 solaris*)
8934764e
BB
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8079 case $cc_basename in
8080 f77* | f90* | f95*)
8934764e 8081 lt_prog_compiler_wl='-Qoption ld ';;
bf9f3bac 8082 *)
8934764e 8083 lt_prog_compiler_wl='-Wl,';;
bf9f3bac 8084 esac
8085 ;;
8086
8087 sunos4*)
8934764e
BB
8088 lt_prog_compiler_wl='-Qoption ld '
8089 lt_prog_compiler_pic='-PIC'
8090 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8091 ;;
8092
8093 sysv4 | sysv4.2uw2* | sysv4.3*)
8934764e
BB
8094 lt_prog_compiler_wl='-Wl,'
8095 lt_prog_compiler_pic='-KPIC'
8096 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8097 ;;
8098
8099 sysv4*MP*)
8100 if test -d /usr/nec ;then
8934764e
BB
8101 lt_prog_compiler_pic='-Kconform_pic'
8102 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8103 fi
8104 ;;
8105
8106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934764e
BB
8107 lt_prog_compiler_wl='-Wl,'
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8110 ;;
8111
8112 unicos*)
8934764e
BB
8113 lt_prog_compiler_wl='-Wl,'
8114 lt_prog_compiler_can_build_shared=no
bf9f3bac 8115 ;;
8116
8117 uts4*)
8934764e
BB
8118 lt_prog_compiler_pic='-pic'
8119 lt_prog_compiler_static='-Bstatic'
bf9f3bac 8120 ;;
8121
8122 *)
8934764e 8123 lt_prog_compiler_can_build_shared=no
bf9f3bac 8124 ;;
8125 esac
8126 fi
8127
8934764e
BB
8128case $host_os in
8129 # For platforms which do not support PIC, -DPIC is meaningless:
8130 *djgpp*)
8131 lt_prog_compiler_pic=
8132 ;;
8133 *)
8134 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8135 ;;
8136esac
8137{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8138$as_echo "$lt_prog_compiler_pic" >&6; }
8139
8140
8141
8142
8143
bf9f3bac 8144
8145#
8146# Check to make sure the PIC flag actually works.
8147#
8934764e
BB
8148if test -n "$lt_prog_compiler_pic"; then
8149 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8150$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8151if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8152 $as_echo_n "(cached) " >&6
8153else
8154 lt_cv_prog_compiler_pic_works=no
8155 ac_outfile=conftest.$ac_objext
8156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8157 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
bf9f3bac 8158 # Insert the option either (1) after the last *FLAGS variable, or
8159 # (2) before a word containing "conftest.", or (3) at the end.
8160 # Note that $ac_compile itself does not contain backslashes and begins
8161 # with a dollar sign (not a hyphen), so the echo should work correctly.
8162 # The option is referenced via a variable to avoid confusing sed.
8163 lt_compile=`echo "$ac_compile" | $SED \
8164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8166 -e 's:$: $lt_compiler_flag:'`
c950d148 8167 (eval echo "\"\$as_me:8167: $lt_compile\"" >&5)
bf9f3bac 8168 (eval "$lt_compile" 2>conftest.err)
8169 ac_status=$?
8170 cat conftest.err >&5
c950d148 8171 echo "$as_me:8171: \$? = $ac_status" >&5
bf9f3bac 8172 if (exit $ac_status) && test -s "$ac_outfile"; then
8173 # The compiler can only warn and ignore the option if not recognized
8174 # So say no if there are warnings other than the usual output.
8934764e 8175 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
bf9f3bac 8176 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8177 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8178 lt_cv_prog_compiler_pic_works=yes
bf9f3bac 8179 fi
8180 fi
8934764e 8181 $RM conftest*
bf9f3bac 8182
8183fi
8934764e
BB
8184{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8185$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
bf9f3bac 8186
8934764e
BB
8187if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8188 case $lt_prog_compiler_pic in
bf9f3bac 8189 "" | " "*) ;;
8934764e 8190 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
bf9f3bac 8191 esac
8192else
8934764e
BB
8193 lt_prog_compiler_pic=
8194 lt_prog_compiler_can_build_shared=no
bf9f3bac 8195fi
8196
8197fi
8934764e
BB
8198
8199
8200
8201
8202
bf9f3bac 8203
8204#
8205# Check to make sure the static flag actually works.
8206#
8934764e
BB
8207wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8208{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8209$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8210if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8211 $as_echo_n "(cached) " >&6
bf9f3bac 8212else
8934764e 8213 lt_cv_prog_compiler_static_works=no
bf9f3bac 8214 save_LDFLAGS="$LDFLAGS"
8215 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8934764e 8216 echo "$lt_simple_link_test_code" > conftest.$ac_ext
bf9f3bac 8217 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8218 # The linker can only warn and ignore the option if not recognized
8219 # So say no if there are warnings
8220 if test -s conftest.err; then
8221 # Append any errors to the config.log.
8222 cat conftest.err 1>&5
8934764e 8223 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
bf9f3bac 8224 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8225 if diff conftest.exp conftest.er2 >/dev/null; then
8934764e 8226 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8227 fi
8228 else
8934764e 8229 lt_cv_prog_compiler_static_works=yes
bf9f3bac 8230 fi
8231 fi
8934764e 8232 $RM -r conftest*
bf9f3bac 8233 LDFLAGS="$save_LDFLAGS"
8234
8235fi
8934764e
BB
8236{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8237$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
bf9f3bac 8238
8934764e 8239if test x"$lt_cv_prog_compiler_static_works" = xyes; then
bf9f3bac 8240 :
8241else
8934764e
BB
8242 lt_prog_compiler_static=
8243fi
8244
8245
8246
8247
8248
8249
8250
8251 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8252$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8253if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8254 $as_echo_n "(cached) " >&6
8255else
8256 lt_cv_prog_compiler_c_o=no
8257 $RM -r conftest 2>/dev/null
8258 mkdir conftest
8259 cd conftest
8260 mkdir out
8261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8262
8263 lt_compiler_flag="-o out/conftest2.$ac_objext"
8264 # Insert the option either (1) after the last *FLAGS variable, or
8265 # (2) before a word containing "conftest.", or (3) at the end.
8266 # Note that $ac_compile itself does not contain backslashes and begins
8267 # with a dollar sign (not a hyphen), so the echo should work correctly.
8268 lt_compile=`echo "$ac_compile" | $SED \
8269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8271 -e 's:$: $lt_compiler_flag:'`
c950d148 8272 (eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
8934764e
BB
8273 (eval "$lt_compile" 2>out/conftest.err)
8274 ac_status=$?
8275 cat out/conftest.err >&5
c950d148 8276 echo "$as_me:8276: \$? = $ac_status" >&5
8934764e
BB
8277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8278 then
8279 # The compiler can only warn and ignore the option if not recognized
8280 # So say no if there are warnings
8281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8284 lt_cv_prog_compiler_c_o=yes
8285 fi
8286 fi
8287 chmod u+w . 2>&5
8288 $RM conftest*
8289 # SGI C++ compiler will create directory out/ii_files/ for
8290 # template instantiation
8291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8292 $RM out/* && rmdir out
8293 cd ..
8294 $RM -r conftest
8295 $RM conftest*
8296
bf9f3bac 8297fi
8934764e
BB
8298{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8299$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8300
8301
bf9f3bac 8302
8303
8934764e
BB
8304
8305
8306 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8307$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8308if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8309 $as_echo_n "(cached) " >&6
bf9f3bac 8310else
8934764e
BB
8311 lt_cv_prog_compiler_c_o=no
8312 $RM -r conftest 2>/dev/null
bf9f3bac 8313 mkdir conftest
8314 cd conftest
8315 mkdir out
8934764e 8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 8317
8318 lt_compiler_flag="-o out/conftest2.$ac_objext"
8319 # Insert the option either (1) after the last *FLAGS variable, or
8320 # (2) before a word containing "conftest.", or (3) at the end.
8321 # Note that $ac_compile itself does not contain backslashes and begins
8322 # with a dollar sign (not a hyphen), so the echo should work correctly.
8323 lt_compile=`echo "$ac_compile" | $SED \
8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326 -e 's:$: $lt_compiler_flag:'`
c950d148 8327 (eval echo "\"\$as_me:8327: $lt_compile\"" >&5)
bf9f3bac 8328 (eval "$lt_compile" 2>out/conftest.err)
8329 ac_status=$?
8330 cat out/conftest.err >&5
c950d148 8331 echo "$as_me:8331: \$? = $ac_status" >&5
bf9f3bac 8332 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8333 then
8334 # The compiler can only warn and ignore the option if not recognized
8335 # So say no if there are warnings
8934764e 8336 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
bf9f3bac 8337 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8338 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8934764e 8339 lt_cv_prog_compiler_c_o=yes
bf9f3bac 8340 fi
8341 fi
8342 chmod u+w . 2>&5
8934764e 8343 $RM conftest*
bf9f3bac 8344 # SGI C++ compiler will create directory out/ii_files/ for
8345 # template instantiation
8934764e
BB
8346 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8347 $RM out/* && rmdir out
bf9f3bac 8348 cd ..
8934764e
BB
8349 $RM -r conftest
8350 $RM conftest*
bf9f3bac 8351
8352fi
8934764e
BB
8353{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8354$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8355
8356
bf9f3bac 8357
8358
8359hard_links="nottested"
8934764e 8360if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
bf9f3bac 8361 # do not overwrite the value of need_locks provided by the user
8934764e
BB
8362 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8363$as_echo_n "checking if we can lock with hard links... " >&6; }
bf9f3bac 8364 hard_links=yes
8934764e 8365 $RM conftest*
bf9f3bac 8366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8367 touch conftest.a
8368 ln conftest.a conftest.b 2>&5 || hard_links=no
8369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8934764e
BB
8370 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8371$as_echo "$hard_links" >&6; }
bf9f3bac 8372 if test "$hard_links" = no; then
8934764e
BB
8373 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8374$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
bf9f3bac 8375 need_locks=warn
8376 fi
8377else
8378 need_locks=no
8379fi
8380
8934764e
BB
8381
8382
8383
8384
8385
8386 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8387$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
bf9f3bac 8388
8389 runpath_var=
8934764e
BB
8390 allow_undefined_flag=
8391 always_export_symbols=no
8392 archive_cmds=
8393 archive_expsym_cmds=
8394 compiler_needs_object=no
8395 enable_shared_with_static_runtimes=no
8396 export_dynamic_flag_spec=
8397 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8398 hardcode_automatic=no
8399 hardcode_direct=no
8400 hardcode_direct_absolute=no
8401 hardcode_libdir_flag_spec=
8402 hardcode_libdir_flag_spec_ld=
8403 hardcode_libdir_separator=
8404 hardcode_minus_L=no
8405 hardcode_shlibpath_var=unsupported
8406 inherit_rpath=no
8407 link_all_deplibs=unknown
8408 module_cmds=
8409 module_expsym_cmds=
8410 old_archive_from_new_cmds=
8411 old_archive_from_expsyms_cmds=
8412 thread_safe_flag_spec=
8413 whole_archive_flag_spec=
bf9f3bac 8414 # include_expsyms should be a list of space-separated symbols to be *always*
8415 # included in the symbol list
8934764e 8416 include_expsyms=
bf9f3bac 8417 # exclude_expsyms can be an extended regexp of symbols to exclude
8418 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8419 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8420 # as well as any symbol that contains `d'.
8934764e 8421 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
bf9f3bac 8422 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8423 # platforms (ab)use it in PIC code, but their linkers get confused if
8424 # the symbol is explicitly referenced. Since portable code cannot
8425 # rely on this symbol name, it's probably fine to never include it in
8426 # preloaded symbol tables.
8934764e 8427 # Exclude shared library initialization/finalization symbols.
bf9f3bac 8428 extract_expsyms_cmds=
bf9f3bac 8429
8430 case $host_os in
8934764e 8431 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 8432 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8433 # When not using gcc, we currently assume that we are using
8434 # Microsoft Visual C++.
8435 if test "$GCC" != yes; then
8436 with_gnu_ld=no
8437 fi
8438 ;;
8439 interix*)
8440 # we just hope/assume this is gcc and not c89 (= MSVC++)
8441 with_gnu_ld=yes
8442 ;;
8443 openbsd*)
8444 with_gnu_ld=no
8445 ;;
8446 esac
8447
8934764e 8448 ld_shlibs=yes
bf9f3bac 8449 if test "$with_gnu_ld" = yes; then
8450 # If archive_cmds runs LD, not CC, wlarc should be empty
8451 wlarc='${wl}'
8452
8453 # Set some defaults for GNU ld with shared library support. These
8454 # are reset later if shared libraries are not supported. Putting them
8455 # here allows them to be overridden if necessary.
8456 runpath_var=LD_RUN_PATH
8934764e
BB
8457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8458 export_dynamic_flag_spec='${wl}--export-dynamic'
bf9f3bac 8459 # ancient GNU ld didn't support --whole-archive et. al.
8934764e
BB
8460 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8461 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8462 else
8463 whole_archive_flag_spec=
bf9f3bac 8464 fi
8465 supports_anon_versioning=no
8934764e 8466 case `$LD -v 2>&1` in
bf9f3bac 8467 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8468 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8469 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8470 *\ 2.11.*) ;; # other 2.11 versions
8471 *) supports_anon_versioning=yes ;;
8472 esac
8473
8474 # See if GNU ld supports shared libraries.
8475 case $host_os in
8934764e 8476 aix[3-9]*)
bf9f3bac 8477 # On AIX/PPC, the GNU linker is very broken
8478 if test "$host_cpu" != ia64; then
8934764e
BB
8479 ld_shlibs=no
8480 cat <<_LT_EOF 1>&2
bf9f3bac 8481
8482*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8483*** to be unable to reliably create shared libraries on AIX.
8484*** Therefore, libtool is disabling shared libraries support. If you
8485*** really care for shared libraries, you may want to modify your PATH
8486*** so that a non-GNU linker is found, and then restart.
8487
8934764e 8488_LT_EOF
bf9f3bac 8489 fi
8490 ;;
8491
8492 amigaos*)
8934764e
BB
8493 case $host_cpu in
8494 powerpc)
8495 # see comment about AmigaOS4 .so support
8496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8497 archive_expsym_cmds=''
8498 ;;
8499 m68k)
8500 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)'
8501 hardcode_libdir_flag_spec='-L$libdir'
8502 hardcode_minus_L=yes
8503 ;;
8504 esac
bf9f3bac 8505 ;;
8506
8507 beos*)
8934764e
BB
8508 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8509 allow_undefined_flag=unsupported
bf9f3bac 8510 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8511 # support --undefined. This deserves some investigation. FIXME
8934764e 8512 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8513 else
8934764e 8514 ld_shlibs=no
bf9f3bac 8515 fi
8516 ;;
8517
8934764e
BB
8518 cygwin* | mingw* | pw32* | cegcc*)
8519 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
bf9f3bac 8520 # as there is no search path for DLLs.
8934764e
BB
8521 hardcode_libdir_flag_spec='-L$libdir'
8522 allow_undefined_flag=unsupported
8523 always_export_symbols=no
8524 enable_shared_with_static_runtimes=yes
8525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8526
8527 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
bf9f3bac 8529 # If the export-symbols file already is a .def file (1st line
8530 # is EXPORTS), use it as is; otherwise, prepend...
8934764e 8531 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
bf9f3bac 8532 cp $export_symbols $output_objdir/$soname.def;
8533 else
8534 echo EXPORTS > $output_objdir/$soname.def;
8535 cat $export_symbols >> $output_objdir/$soname.def;
8536 fi~
8537 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8538 else
8934764e 8539 ld_shlibs=no
bf9f3bac 8540 fi
8541 ;;
8542
8934764e
BB
8543 interix[3-9]*)
8544 hardcode_direct=no
8545 hardcode_shlibpath_var=no
8546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8547 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 8548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8549 # Instead, shared libraries are loaded at an image base (0x10000000 by
8550 # default) and relocated if they conflict, which is a slow very memory
8551 # consuming and fragmenting process. To avoid this, we pick a random,
8552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8553 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8934764e
BB
8554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8555 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 8556 ;;
8557
8934764e
BB
8558 gnu* | linux* | tpf* | k*bsd*-gnu)
8559 tmp_diet=no
8560 if test "$host_os" = linux-dietlibc; then
8561 case $cc_basename in
8562 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8563 esac
8564 fi
8565 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8566 && test "$tmp_diet" = no
8567 then
bf9f3bac 8568 tmp_addflag=
8934764e 8569 tmp_sharedflag='-shared'
bf9f3bac 8570 case $cc_basename,$host_cpu in
8934764e
BB
8571 pgcc*) # Portland Group C compiler
8572 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 8573 tmp_addflag=' $pic_flag'
8574 ;;
8575 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8934764e 8576 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 8577 tmp_addflag=' $pic_flag -Mnomain' ;;
8934764e 8578 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
bf9f3bac 8579 tmp_addflag=' -i_dynamic' ;;
8580 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8581 tmp_addflag=' -i_dynamic -nofor_main' ;;
8582 ifc* | ifort*) # Intel Fortran compiler
8583 tmp_addflag=' -nofor_main' ;;
8934764e
BB
8584 lf95*) # Lahey Fortran 8.1
8585 whole_archive_flag_spec=
8586 tmp_sharedflag='--shared' ;;
8587 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8588 tmp_sharedflag='-qmkshrobj'
8589 tmp_addflag= ;;
8590 esac
8591 case `$CC -V 2>&1 | sed 5q` in
8592 *Sun\ C*) # Sun C 5.9
8593 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'
8594 compiler_needs_object=yes
8595 tmp_sharedflag='-G' ;;
8596 *Sun\ F*) # Sun Fortran 8.3
8597 tmp_sharedflag='-G' ;;
bf9f3bac 8598 esac
8934764e 8599 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
bf9f3bac 8600
8934764e
BB
8601 if test "x$supports_anon_versioning" = xyes; then
8602 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8603 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8604 echo "local: *; };" >> $output_objdir/$libname.ver~
8605 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8606 fi
8607
8608 case $cc_basename in
8609 xlf*)
8610 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8611 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8612 hardcode_libdir_flag_spec=
8613 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8614 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8615 if test "x$supports_anon_versioning" = xyes; then
8616 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8617 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8618 echo "local: *; };" >> $output_objdir/$libname.ver~
8619 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8620 fi
8621 ;;
8622 esac
bf9f3bac 8623 else
8934764e 8624 ld_shlibs=no
bf9f3bac 8625 fi
8626 ;;
8627
8628 netbsd*)
8934764e
BB
8629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8630 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
bf9f3bac 8631 wlarc=
8632 else
8934764e
BB
8633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8635 fi
8636 ;;
8637
8638 solaris*)
8934764e
BB
8639 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8640 ld_shlibs=no
8641 cat <<_LT_EOF 1>&2
bf9f3bac 8642
8643*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8644*** create shared libraries on Solaris systems. Therefore, libtool
8645*** is disabling shared libraries support. We urge you to upgrade GNU
8646*** binutils to release 2.9.1 or newer. Another option is to modify
8647*** your PATH or compiler configuration so that the native linker is
8648*** used, and then restart.
8649
8934764e
BB
8650_LT_EOF
8651 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8654 else
8934764e 8655 ld_shlibs=no
bf9f3bac 8656 fi
8657 ;;
8658
8659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8660 case `$LD -v 2>&1` in
8661 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8934764e 8662 ld_shlibs=no
bf9f3bac 8663 cat <<_LT_EOF 1>&2
8664
8665*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8666*** reliably create shared libraries on SCO systems. Therefore, libtool
8667*** is disabling shared libraries support. We urge you to upgrade GNU
8668*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8669*** your PATH or compiler configuration so that the native linker is
8670*** used, and then restart.
8671
8672_LT_EOF
8673 ;;
8674 *)
8934764e
BB
8675 # For security reasons, it is highly recommended that you always
8676 # use absolute paths for naming shared libraries, and exclude the
8677 # DT_RUNPATH tag from executables and libraries. But doing so
8678 # requires that you compile everything twice, which is a pain.
8679 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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 esac
8688 ;;
8689
8690 sunos4*)
8934764e 8691 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 8692 wlarc=
8934764e
BB
8693 hardcode_direct=yes
8694 hardcode_shlibpath_var=no
bf9f3bac 8695 ;;
8696
8697 *)
8934764e
BB
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
bf9f3bac 8701 else
8934764e 8702 ld_shlibs=no
bf9f3bac 8703 fi
8704 ;;
8705 esac
8706
8934764e 8707 if test "$ld_shlibs" = no; then
bf9f3bac 8708 runpath_var=
8934764e
BB
8709 hardcode_libdir_flag_spec=
8710 export_dynamic_flag_spec=
8711 whole_archive_flag_spec=
bf9f3bac 8712 fi
8713 else
8714 # PORTME fill in a description of your system's linker (not GNU ld)
8715 case $host_os in
8716 aix3*)
8934764e
BB
8717 allow_undefined_flag=unsupported
8718 always_export_symbols=yes
8719 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 8720 # Note: this linker hardcodes the directories in LIBPATH if there
8721 # are no directories specified by -L.
8934764e 8722 hardcode_minus_L=yes
bf9f3bac 8723 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8724 # Neither direct hardcoding nor static linking is supported with a
8725 # broken collect2.
8934764e 8726 hardcode_direct=unsupported
bf9f3bac 8727 fi
8728 ;;
8729
8934764e 8730 aix[4-9]*)
bf9f3bac 8731 if test "$host_cpu" = ia64; then
8732 # On IA64, the linker does run time linking by default, so we don't
8733 # have to do anything special.
8734 aix_use_runtimelinking=no
8735 exp_sym_flag='-Bexport'
8736 no_entry_flag=""
8737 else
8738 # If we're using GNU nm, then we don't want the "-C" option.
8739 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8934764e
BB
8740 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8741 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 8742 else
8934764e 8743 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 8744 fi
8745 aix_use_runtimelinking=no
8746
8747 # Test if we are trying to use run time linking or normal
8748 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8749 # need to do runtime linking.
8934764e 8750 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
bf9f3bac 8751 for ld_flag in $LDFLAGS; do
8934764e
BB
8752 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8753 aix_use_runtimelinking=yes
8754 break
8755 fi
bf9f3bac 8756 done
8757 ;;
8758 esac
8759
8760 exp_sym_flag='-bexport'
8761 no_entry_flag='-bnoentry'
8762 fi
8763
8764 # When large executables or shared objects are built, AIX ld can
8765 # have problems creating the table of contents. If linking a library
8766 # or program results in "error TOC overflow" add -mminimal-toc to
8767 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8768 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8769
8934764e
BB
8770 archive_cmds=''
8771 hardcode_direct=yes
8772 hardcode_direct_absolute=yes
8773 hardcode_libdir_separator=':'
8774 link_all_deplibs=yes
8775 file_list_spec='${wl}-f,'
bf9f3bac 8776
8777 if test "$GCC" = yes; then
8778 case $host_os in aix4.[012]|aix4.[012].*)
8779 # We only want to do this on AIX 4.2 and lower, the check
8780 # below for broken collect2 doesn't work under 4.3+
8781 collect2name=`${CC} -print-prog-name=collect2`
8934764e
BB
8782 if test -f "$collect2name" &&
8783 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
bf9f3bac 8784 then
8934764e
BB
8785 # We have reworked collect2
8786 :
bf9f3bac 8787 else
8934764e
BB
8788 # We have old collect2
8789 hardcode_direct=unsupported
8790 # It fails to find uninstalled libraries when the uninstalled
8791 # path is not listed in the libpath. Setting hardcode_minus_L
8792 # to unsupported forces relinking
8793 hardcode_minus_L=yes
8794 hardcode_libdir_flag_spec='-L$libdir'
8795 hardcode_libdir_separator=
bf9f3bac 8796 fi
8797 ;;
8798 esac
8799 shared_flag='-shared'
8800 if test "$aix_use_runtimelinking" = yes; then
8801 shared_flag="$shared_flag "'${wl}-G'
8802 fi
8803 else
8804 # not using gcc
8805 if test "$host_cpu" = ia64; then
8934764e
BB
8806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8807 # chokes on -Wl,-G. The following line is correct:
bf9f3bac 8808 shared_flag='-G'
8809 else
8810 if test "$aix_use_runtimelinking" = yes; then
8811 shared_flag='${wl}-G'
8812 else
8813 shared_flag='${wl}-bM:SRE'
8814 fi
8815 fi
8816 fi
8817
8934764e 8818 export_dynamic_flag_spec='${wl}-bexpall'
bf9f3bac 8819 # It seems that -bexpall does not export symbols beginning with
8820 # underscore (_), so it is better to generate a list of symbols to export.
8934764e 8821 always_export_symbols=yes
bf9f3bac 8822 if test "$aix_use_runtimelinking" = yes; then
8823 # Warning - without using the other runtime loading flags (-brtl),
8824 # -berok will link without error, but may produce a broken library.
8934764e
BB
8825 allow_undefined_flag='-berok'
8826 # Determine the default libpath from the value encoded in an
8827 # empty executable.
8828 cat >conftest.$ac_ext <<_ACEOF
bf9f3bac 8829/* confdefs.h. */
8830_ACEOF
8831cat confdefs.h >>conftest.$ac_ext
8832cat >>conftest.$ac_ext <<_ACEOF
8833/* end confdefs.h. */
8834
8835int
8836main ()
8837{
8838
8839 ;
8840 return 0;
8841}
8842_ACEOF
8843rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8844if { (ac_try="$ac_link"
8845case "(($ac_try" in
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8848esac
8849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850$as_echo "$ac_try_echo") >&5
8851 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8934764e
BB
8856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && {
8858 test -z "$ac_c_werror_flag" ||
8859 test ! -s conftest.err
8860 } && test -s conftest$ac_exeext && {
8861 test "$cross_compiling" = yes ||
8862 $as_test_x conftest$ac_exeext
8863 }; then
8864
8865lt_aix_libpath_sed='
8866 /Import File Strings/,/^$/ {
8867 /^0/ {
8868 s/^0 *\(.*\)$/\1/
8869 p
8870 }
8871 }'
8872aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8873# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8874if test -z "$aix_libpath"; then
8875 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876fi
bf9f3bac 8877else
8934764e 8878 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8934764e 8881
bf9f3bac 8882fi
8934764e
BB
8883
8884rm -rf conftest.dSYM
8885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8886 conftest$ac_exeext conftest.$ac_ext
8887if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8888
8934764e
BB
8889 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8890 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"
8891 else
bf9f3bac 8892 if test "$host_cpu" = ia64; then
8934764e
BB
8893 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8894 allow_undefined_flag="-z nodefs"
8895 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 8896 else
8934764e
BB
8897 # Determine the default libpath from the value encoded in an
8898 # empty executable.
bf9f3bac 8899 cat >conftest.$ac_ext <<_ACEOF
8900/* confdefs.h. */
8901_ACEOF
8902cat confdefs.h >>conftest.$ac_ext
8903cat >>conftest.$ac_ext <<_ACEOF
8904/* end confdefs.h. */
8905
8906int
8907main ()
8908{
8909
8910 ;
8911 return 0;
8912}
8913_ACEOF
8914rm -f conftest.$ac_objext conftest$ac_exeext
8934764e
BB
8915if { (ac_try="$ac_link"
8916case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919esac
8920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8921$as_echo "$ac_try_echo") >&5
8922 (eval "$ac_link") 2>conftest.er1
bf9f3bac 8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8934764e
BB
8927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest$ac_exeext && {
8932 test "$cross_compiling" = yes ||
8933 $as_test_x conftest$ac_exeext
8934 }; then
8935
8936lt_aix_libpath_sed='
8937 /Import File Strings/,/^$/ {
8938 /^0/ {
8939 s/^0 *\(.*\)$/\1/
8940 p
8941 }
8942 }'
8943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
bf9f3bac 8944# Check for a 64-bit object if we didn't find anything.
8934764e
BB
8945if test -z "$aix_libpath"; then
8946 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8947fi
bf9f3bac 8948else
8934764e 8949 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 8950sed 's/^/| /' conftest.$ac_ext >&5
8951
8934764e 8952
bf9f3bac 8953fi
8934764e
BB
8954
8955rm -rf conftest.dSYM
8956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
bf9f3bac 8957 conftest$ac_exeext conftest.$ac_ext
8958if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8959
8934764e 8960 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
bf9f3bac 8961 # Warning - without using the other run time loading flags,
8962 # -berok will link without error, but may produce a broken library.
8934764e
BB
8963 no_undefined_flag=' ${wl}-bernotok'
8964 allow_undefined_flag=' ${wl}-berok'
bf9f3bac 8965 # Exported symbols can be pulled into shared objects from archives
8934764e
BB
8966 whole_archive_flag_spec='$convenience'
8967 archive_cmds_need_lc=yes
bf9f3bac 8968 # This is similar to how AIX traditionally builds its shared libraries.
8934764e 8969 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 8970 fi
8971 fi
8972 ;;
8973
8974 amigaos*)
8934764e
BB
8975 case $host_cpu in
8976 powerpc)
8977 # see comment about AmigaOS4 .so support
8978 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8979 archive_expsym_cmds=''
8980 ;;
8981 m68k)
8982 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)'
8983 hardcode_libdir_flag_spec='-L$libdir'
8984 hardcode_minus_L=yes
8985 ;;
8986 esac
bf9f3bac 8987 ;;
8988
8989 bsdi[45]*)
8934764e 8990 export_dynamic_flag_spec=-rdynamic
bf9f3bac 8991 ;;
8992
8934764e 8993 cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 8994 # When not using gcc, we currently assume that we are using
8995 # Microsoft Visual C++.
8996 # hardcode_libdir_flag_spec is actually meaningless, as there is
8997 # no search path for DLLs.
8934764e
BB
8998 hardcode_libdir_flag_spec=' '
8999 allow_undefined_flag=unsupported
bf9f3bac 9000 # Tell ltmain to make .lib files, not .a files.
9001 libext=lib
9002 # Tell ltmain to make .dll files, not .so files.
9003 shrext_cmds=".dll"
9004 # FIXME: Setting linknames here is a bad hack.
8934764e 9005 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
bf9f3bac 9006 # The linker will automatically build a .lib file if we build a DLL.
8934764e 9007 old_archive_from_new_cmds='true'
bf9f3bac 9008 # FIXME: Should let the user specify the lib program.
8934764e
BB
9009 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9010 fix_srcfile_path='`cygpath -w "$srcfile"`'
9011 enable_shared_with_static_runtimes=yes
bf9f3bac 9012 ;;
9013
9014 darwin* | rhapsody*)
8934764e
BB
9015
9016
9017 archive_cmds_need_lc=no
9018 hardcode_direct=no
9019 hardcode_automatic=yes
9020 hardcode_shlibpath_var=unsupported
9021 whole_archive_flag_spec=''
9022 link_all_deplibs=yes
9023 allow_undefined_flag="$_lt_dar_allow_undefined"
9024 case $cc_basename in
9025 ifort*) _lt_dar_can_shared=yes ;;
9026 *) _lt_dar_can_shared=$GCC ;;
9027 esac
9028 if test "$_lt_dar_can_shared" = "yes"; then
9029 output_verbose_link_cmd=echo
9030 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9031 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9032 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}"
9033 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}"
9034
9035 else
9036 ld_shlibs=no
9037 fi
9038
bf9f3bac 9039 ;;
9040
9041 dgux*)
8934764e
BB
9042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043 hardcode_libdir_flag_spec='-L$libdir'
9044 hardcode_shlibpath_var=no
bf9f3bac 9045 ;;
9046
9047 freebsd1*)
8934764e 9048 ld_shlibs=no
bf9f3bac 9049 ;;
9050
9051 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9052 # support. Future versions do this automatically, but an explicit c++rt0.o
9053 # does not break anything, and helps significantly (at the cost of a little
9054 # extra space).
9055 freebsd2.2*)
8934764e
BB
9056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9057 hardcode_libdir_flag_spec='-R$libdir'
9058 hardcode_direct=yes
9059 hardcode_shlibpath_var=no
bf9f3bac 9060 ;;
9061
9062 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9063 freebsd2*)
8934764e
BB
9064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9065 hardcode_direct=yes
9066 hardcode_minus_L=yes
9067 hardcode_shlibpath_var=no
bf9f3bac 9068 ;;
9069
9070 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8934764e
BB
9071 freebsd* | dragonfly*)
9072 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9073 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
bf9f3bac 9076 ;;
9077
9078 hpux9*)
9079 if test "$GCC" = yes; then
8934764e 9080 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 9081 else
8934764e 9082 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 9083 fi
8934764e
BB
9084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9085 hardcode_libdir_separator=:
9086 hardcode_direct=yes
bf9f3bac 9087
9088 # hardcode_minus_L: Not really in the search PATH,
9089 # but as the default location of the library.
8934764e
BB
9090 hardcode_minus_L=yes
9091 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9092 ;;
9093
9094 hpux10*)
9095 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8934764e 9096 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9097 else
8934764e 9098 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9099 fi
9100 if test "$with_gnu_ld" = no; then
8934764e
BB
9101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102 hardcode_libdir_flag_spec_ld='+b $libdir'
9103 hardcode_libdir_separator=:
9104 hardcode_direct=yes
9105 hardcode_direct_absolute=yes
9106 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9107 # hardcode_minus_L: Not really in the search PATH,
9108 # but as the default location of the library.
8934764e 9109 hardcode_minus_L=yes
bf9f3bac 9110 fi
9111 ;;
9112
9113 hpux11*)
9114 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9115 case $host_cpu in
9116 hppa*64*)
8934764e 9117 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9118 ;;
9119 ia64*)
8934764e 9120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9121 ;;
9122 *)
8934764e 9123 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9124 ;;
9125 esac
9126 else
9127 case $host_cpu in
9128 hppa*64*)
8934764e 9129 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9130 ;;
9131 ia64*)
8934764e 9132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9133 ;;
9134 *)
8934764e 9135 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9136 ;;
9137 esac
9138 fi
9139 if test "$with_gnu_ld" = no; then
8934764e
BB
9140 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141 hardcode_libdir_separator=:
bf9f3bac 9142
9143 case $host_cpu in
9144 hppa*64*|ia64*)
8934764e
BB
9145 hardcode_direct=no
9146 hardcode_shlibpath_var=no
bf9f3bac 9147 ;;
9148 *)
8934764e
BB
9149 hardcode_direct=yes
9150 hardcode_direct_absolute=yes
9151 export_dynamic_flag_spec='${wl}-E'
bf9f3bac 9152
9153 # hardcode_minus_L: Not really in the search PATH,
9154 # but as the default location of the library.
8934764e 9155 hardcode_minus_L=yes
bf9f3bac 9156 ;;
9157 esac
9158 fi
9159 ;;
9160
9161 irix5* | irix6* | nonstopux*)
9162 if test "$GCC" = yes; then
8934764e
BB
9163 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'
9164 # Try to use the -exported_symbol ld option, if it does not
9165 # work, assume that -exports_file does not work either and
9166 # implicitly export all symbols.
9167 save_LDFLAGS="$LDFLAGS"
9168 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9169 cat >conftest.$ac_ext <<_ACEOF
9170int foo(void) {}
9171_ACEOF
9172rm -f conftest.$ac_objext conftest$ac_exeext
9173if { (ac_try="$ac_link"
9174case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177esac
9178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9179$as_echo "$ac_try_echo") >&5
9180 (eval "$ac_link") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_c_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest$ac_exeext && {
9190 test "$cross_compiling" = yes ||
9191 $as_test_x conftest$ac_exeext
9192 }; then
9193 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'
9194
9195else
9196 $as_echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5
9198
9199
9200fi
9201
9202rm -rf conftest.dSYM
9203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9204 conftest$ac_exeext conftest.$ac_ext
9205 LDFLAGS="$save_LDFLAGS"
bf9f3bac 9206 else
8934764e
BB
9207 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'
9208 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 9209 fi
8934764e
BB
9210 archive_cmds_need_lc='no'
9211 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9212 hardcode_libdir_separator=:
9213 inherit_rpath=yes
9214 link_all_deplibs=yes
bf9f3bac 9215 ;;
9216
9217 netbsd*)
8934764e
BB
9218 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9219 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
bf9f3bac 9220 else
8934764e 9221 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
bf9f3bac 9222 fi
8934764e
BB
9223 hardcode_libdir_flag_spec='-R$libdir'
9224 hardcode_direct=yes
9225 hardcode_shlibpath_var=no
bf9f3bac 9226 ;;
9227
9228 newsos6)
8934764e
BB
9229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230 hardcode_direct=yes
9231 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9232 hardcode_libdir_separator=:
9233 hardcode_shlibpath_var=no
9234 ;;
9235
9236 *nto* | *qnx*)
bf9f3bac 9237 ;;
9238
9239 openbsd*)
8934764e
BB
9240 if test -f /usr/libexec/ld.so; then
9241 hardcode_direct=yes
9242 hardcode_shlibpath_var=no
9243 hardcode_direct_absolute=yes
9244 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9246 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9248 export_dynamic_flag_spec='${wl}-E'
9249 else
9250 case $host_os in
9251 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9253 hardcode_libdir_flag_spec='-R$libdir'
9254 ;;
9255 *)
9256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258 ;;
9259 esac
9260 fi
bf9f3bac 9261 else
8934764e 9262 ld_shlibs=no
bf9f3bac 9263 fi
9264 ;;
9265
9266 os2*)
8934764e
BB
9267 hardcode_libdir_flag_spec='-L$libdir'
9268 hardcode_minus_L=yes
9269 allow_undefined_flag=unsupported
9270 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'
9271 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
bf9f3bac 9272 ;;
9273
9274 osf3*)
9275 if test "$GCC" = yes; then
8934764e
BB
9276 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9277 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 9278 else
8934764e
BB
9279 allow_undefined_flag=' -expect_unresolved \*'
9280 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 9281 fi
8934764e
BB
9282 archive_cmds_need_lc='no'
9283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9284 hardcode_libdir_separator=:
bf9f3bac 9285 ;;
9286
9287 osf4* | osf5*) # as osf3* with the addition of -msym flag
9288 if test "$GCC" = yes; then
8934764e
BB
9289 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9290 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'
9291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
bf9f3bac 9292 else
8934764e
BB
9293 allow_undefined_flag=' -expect_unresolved \*'
9294 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'
9295 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~
9296 $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 9297
9298 # Both c and cxx compiler support -rpath directly
8934764e 9299 hardcode_libdir_flag_spec='-rpath $libdir'
bf9f3bac 9300 fi
8934764e
BB
9301 archive_cmds_need_lc='no'
9302 hardcode_libdir_separator=:
bf9f3bac 9303 ;;
9304
9305 solaris*)
8934764e 9306 no_undefined_flag=' -z defs'
bf9f3bac 9307 if test "$GCC" = yes; then
9308 wlarc='${wl}'
8934764e
BB
9309 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9310 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9311 $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 9312 else
8934764e
BB
9313 case `$CC -V 2>&1` in
9314 *"Compilers 5.0"*)
9315 wlarc=''
9316 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9318 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9319 ;;
9320 *)
9321 wlarc='${wl}'
9322 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9323 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9324 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9325 ;;
9326 esac
bf9f3bac 9327 fi
8934764e
BB
9328 hardcode_libdir_flag_spec='-R$libdir'
9329 hardcode_shlibpath_var=no
bf9f3bac 9330 case $host_os in
9331 solaris2.[0-5] | solaris2.[0-5].*) ;;
9332 *)
8934764e
BB
9333 # The compiler driver will combine and reorder linker options,
9334 # but understands `-z linker_flag'. GCC discards it without `$wl',
9335 # but is careful enough not to reorder.
9336 # Supported since Solaris 2.6 (maybe 2.5.1?)
9337 if test "$GCC" = yes; then
9338 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9339 else
9340 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9341 fi
9342 ;;
bf9f3bac 9343 esac
8934764e 9344 link_all_deplibs=yes
bf9f3bac 9345 ;;
9346
9347 sunos4*)
9348 if test "x$host_vendor" = xsequent; then
9349 # Use $CC to link under sequent, because it throws in some extra .o
9350 # files that make .init and .fini sections work.
8934764e 9351 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9352 else
8934764e 9353 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
bf9f3bac 9354 fi
8934764e
BB
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_direct=yes
9357 hardcode_minus_L=yes
9358 hardcode_shlibpath_var=no
bf9f3bac 9359 ;;
9360
9361 sysv4)
9362 case $host_vendor in
9363 sni)
8934764e
BB
9364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365 hardcode_direct=yes # is this really true???
bf9f3bac 9366 ;;
9367 siemens)
9368 ## LD is ld it makes a PLAMLIB
9369 ## CC just makes a GrossModule.
8934764e
BB
9370 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9371 reload_cmds='$CC -r -o $output$reload_objs'
9372 hardcode_direct=no
bf9f3bac 9373 ;;
9374 motorola)
8934764e
BB
9375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
bf9f3bac 9377 ;;
9378 esac
9379 runpath_var='LD_RUN_PATH'
8934764e 9380 hardcode_shlibpath_var=no
bf9f3bac 9381 ;;
9382
9383 sysv4.3*)
8934764e
BB
9384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_shlibpath_var=no
9386 export_dynamic_flag_spec='-Bexport'
bf9f3bac 9387 ;;
9388
9389 sysv4*MP*)
9390 if test -d /usr/nec; then
8934764e
BB
9391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392 hardcode_shlibpath_var=no
bf9f3bac 9393 runpath_var=LD_RUN_PATH
9394 hardcode_runpath_var=yes
8934764e 9395 ld_shlibs=yes
bf9f3bac 9396 fi
9397 ;;
9398
8934764e
BB
9399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9400 no_undefined_flag='${wl}-z,text'
9401 archive_cmds_need_lc=no
9402 hardcode_shlibpath_var=no
bf9f3bac 9403 runpath_var='LD_RUN_PATH'
9404
9405 if test "$GCC" = yes; then
8934764e
BB
9406 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9408 else
8934764e
BB
9409 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9411 fi
9412 ;;
9413
9414 sysv5* | sco3.2v5* | sco5v6*)
9415 # Note: We can NOT use -z defs as we might desire, because we do not
9416 # link with -lc, and that would cause any symbols used from libc to
9417 # always be unresolved, which means just about no library would
9418 # ever link correctly. If we're not using GNU ld we use -z text
9419 # though, which does catch some bad symbols but isn't as heavy-handed
9420 # as -z defs.
8934764e
BB
9421 no_undefined_flag='${wl}-z,text'
9422 allow_undefined_flag='${wl}-z,nodefs'
9423 archive_cmds_need_lc=no
9424 hardcode_shlibpath_var=no
9425 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9426 hardcode_libdir_separator=':'
9427 link_all_deplibs=yes
9428 export_dynamic_flag_spec='${wl}-Bexport'
bf9f3bac 9429 runpath_var='LD_RUN_PATH'
9430
9431 if test "$GCC" = yes; then
8934764e
BB
9432 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9434 else
8934764e
BB
9435 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9436 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
bf9f3bac 9437 fi
9438 ;;
9439
9440 uts4*)
8934764e
BB
9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442 hardcode_libdir_flag_spec='-L$libdir'
9443 hardcode_shlibpath_var=no
bf9f3bac 9444 ;;
9445
9446 *)
8934764e 9447 ld_shlibs=no
bf9f3bac 9448 ;;
9449 esac
8934764e
BB
9450
9451 if test x$host_vendor = xsni; then
9452 case $host in
9453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9454 export_dynamic_flag_spec='${wl}-Blargedynsym'
9455 ;;
9456 esac
9457 fi
bf9f3bac 9458 fi
9459
8934764e
BB
9460{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9461$as_echo "$ld_shlibs" >&6; }
9462test "$ld_shlibs" = no && can_build_shared=no
9463
9464with_gnu_ld=$with_gnu_ld
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
bf9f3bac 9479
9480#
9481# Do we need to explicitly link libc?
9482#
8934764e 9483case "x$archive_cmds_need_lc" in
bf9f3bac 9484x|xyes)
9485 # Assume -lc should be added
8934764e 9486 archive_cmds_need_lc=yes
bf9f3bac 9487
9488 if test "$enable_shared" = yes && test "$GCC" = yes; then
8934764e 9489 case $archive_cmds in
bf9f3bac 9490 *'~'*)
9491 # FIXME: we may have to deal with multi-command sequences.
9492 ;;
9493 '$CC '*)
9494 # Test whether the compiler implicitly links with -lc since on some
9495 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9496 # to ld, don't add -lc before -lgcc.
8934764e
BB
9497 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9498$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9499 $RM conftest*
9500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
bf9f3bac 9501
9502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9503 (eval $ac_compile) 2>&5
9504 ac_status=$?
8934764e 9505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9506 (exit $ac_status); } 2>conftest.err; then
9507 soname=conftest
9508 lib=conftest
9509 libobjs=conftest.$ac_objext
9510 deplibs=
8934764e
BB
9511 wl=$lt_prog_compiler_wl
9512 pic_flag=$lt_prog_compiler_pic
bf9f3bac 9513 compiler_flags=-v
9514 linker_flags=-v
9515 verstring=
9516 output_objdir=.
9517 libname=conftest
8934764e
BB
9518 lt_save_allow_undefined_flag=$allow_undefined_flag
9519 allow_undefined_flag=
9520 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9521 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
bf9f3bac 9522 ac_status=$?
8934764e 9523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 9524 (exit $ac_status); }
9525 then
8934764e 9526 archive_cmds_need_lc=no
bf9f3bac 9527 else
8934764e 9528 archive_cmds_need_lc=yes
bf9f3bac 9529 fi
8934764e 9530 allow_undefined_flag=$lt_save_allow_undefined_flag
bf9f3bac 9531 else
9532 cat conftest.err 1>&5
9533 fi
8934764e
BB
9534 $RM conftest*
9535 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9536$as_echo "$archive_cmds_need_lc" >&6; }
bf9f3bac 9537 ;;
9538 esac
9539 fi
9540 ;;
9541esac
9542
8934764e
BB
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9700$as_echo_n "checking dynamic linker characteristics... " >&6; }
9701
9702if test "$GCC" = yes; then
9703 case $host_os in
9704 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9705 *) lt_awk_arg="/^libraries:/" ;;
9706 esac
9707 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9708 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9709 # if the path contains ";" then we assume it to be the separator
9710 # otherwise default to the standard path separator (i.e. ":") - it is
9711 # assumed that no part of a normal pathname contains ";" but that should
9712 # okay in the real world where ";" in dirpaths is itself problematic.
9713 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9714 else
9715 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9716 fi
9717 # Ok, now we have the path, separated by spaces, we can step through it
9718 # and add multilib dir if necessary.
9719 lt_tmp_lt_search_path_spec=
9720 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9721 for lt_sys_path in $lt_search_path_spec; do
9722 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9724 else
9725 test -d "$lt_sys_path" && \
9726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9727 fi
9728 done
9729 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9730BEGIN {RS=" "; FS="/|\n";} {
9731 lt_foo="";
9732 lt_count=0;
9733 for (lt_i = NF; lt_i > 0; lt_i--) {
9734 if ($lt_i != "" && $lt_i != ".") {
9735 if ($lt_i == "..") {
9736 lt_count++;
9737 } else {
9738 if (lt_count == 0) {
9739 lt_foo="/" $lt_i lt_foo;
9740 } else {
9741 lt_count--;
9742 }
9743 }
9744 }
9745 }
9746 if (lt_foo != "") { lt_freq[lt_foo]++; }
9747 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9748}'`
9749 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9750else
9751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9752fi
bf9f3bac 9753library_names_spec=
9754libname_spec='lib$name'
9755soname_spec=
9756shrext_cmds=".so"
9757postinstall_cmds=
9758postuninstall_cmds=
9759finish_cmds=
9760finish_eval=
9761shlibpath_var=
9762shlibpath_overrides_runpath=unknown
9763version_type=none
9764dynamic_linker="$host_os ld.so"
9765sys_lib_dlsearch_path_spec="/lib /usr/lib"
bf9f3bac 9766need_lib_prefix=unknown
9767hardcode_into_libs=no
9768
9769# when you set need_version to no, make sure it does not cause -set_version
9770# flags to be left without arguments
9771need_version=unknown
9772
9773case $host_os in
9774aix3*)
9775 version_type=linux
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9777 shlibpath_var=LIBPATH
9778
9779 # AIX 3 has no versioning support, so we append a major version to the name.
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 ;;
9782
8934764e 9783aix[4-9]*)
bf9f3bac 9784 version_type=linux
9785 need_lib_prefix=no
9786 need_version=no
9787 hardcode_into_libs=yes
9788 if test "$host_cpu" = ia64; then
9789 # AIX 5 supports IA64
9790 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 else
9793 # With GCC up to 2.95.x, collect2 would create an import file
9794 # for dependence libraries. The import file would start with
9795 # the line `#! .'. This would cause the generated library to
9796 # depend on `.', always an invalid library. This was fixed in
9797 # development snapshots of GCC prior to 3.0.
9798 case $host_os in
9799 aix4 | aix4.[01] | aix4.[01].*)
9800 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9801 echo ' yes '
8934764e 9802 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
bf9f3bac 9803 :
9804 else
9805 can_build_shared=no
9806 fi
9807 ;;
9808 esac
9809 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9810 # soname into executable. Probably we can add versioning support to
9811 # collect2, so additional links can be useful in future.
9812 if test "$aix_use_runtimelinking" = yes; then
9813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9814 # instead of lib<name>.a to let people know that these are not
9815 # typical AIX shared libraries.
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 else
9818 # We preserve .a as extension for shared libraries through AIX4.2
9819 # and later when we are not doing run time linking.
9820 library_names_spec='${libname}${release}.a $libname.a'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 fi
9823 shlibpath_var=LIBPATH
9824 fi
9825 ;;
9826
9827amigaos*)
8934764e
BB
9828 case $host_cpu in
9829 powerpc)
9830 # Since July 2007 AmigaOS4 officially supports .so libraries.
9831 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 ;;
9834 m68k)
9835 library_names_spec='$libname.ixlibrary $libname.a'
9836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9837 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'
9838 ;;
9839 esac
bf9f3bac 9840 ;;
9841
9842beos*)
9843 library_names_spec='${libname}${shared_ext}'
9844 dynamic_linker="$host_os ld.so"
9845 shlibpath_var=LIBRARY_PATH
9846 ;;
9847
9848bsdi[45]*)
9849 version_type=linux
9850 need_version=no
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9857 # the default ld.so.conf also contains /usr/contrib/lib and
9858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9859 # libtool to hard-code these into programs
9860 ;;
9861
8934764e 9862cygwin* | mingw* | pw32* | cegcc*)
bf9f3bac 9863 version_type=windows
9864 shrext_cmds=".dll"
9865 need_version=no
9866 need_lib_prefix=no
9867
9868 case $GCC,$host_os in
8934764e 9869 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
bf9f3bac 9870 library_names_spec='$libname.dll.a'
9871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9872 postinstall_cmds='base_file=`basename \${file}`~
8934764e 9873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
bf9f3bac 9874 dldir=$destdir/`dirname \$dlpath`~
9875 test -d \$dldir || mkdir -p \$dldir~
9876 $install_prog $dir/$dlname \$dldir/$dlname~
8934764e
BB
9877 chmod a+x \$dldir/$dlname~
9878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9880 fi'
bf9f3bac 9881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9882 dlpath=$dir/\$dldll~
8934764e 9883 $RM \$dlpath'
bf9f3bac 9884 shlibpath_overrides_runpath=yes
9885
9886 case $host_os in
9887 cygwin*)
9888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9891 ;;
8934764e 9892 mingw* | cegcc*)
bf9f3bac 9893 # MinGW DLLs use traditional 'lib' prefix
9894 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8934764e
BB
9895 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9896 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
bf9f3bac 9897 # It is most probably a Windows format PATH printed by
9898 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9899 # path with ; separators, and with drive letters. We can handle the
9900 # drive letters (cygwin fileutils understands them), so leave them,
9901 # especially as we might pass files found there to a mingw objdump,
9902 # which wouldn't understand a cygwinified path. Ahh.
8934764e 9903 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
bf9f3bac 9904 else
8934764e 9905 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
bf9f3bac 9906 fi
9907 ;;
9908 pw32*)
9909 # pw32 DLLs use 'pw' prefix rather than 'lib'
9910 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9911 ;;
9912 esac
9913 ;;
9914
9915 *)
9916 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9917 ;;
9918 esac
9919 dynamic_linker='Win32 ld.exe'
9920 # FIXME: first we should search . and the directory the executable is in
9921 shlibpath_var=PATH
9922 ;;
9923
9924darwin* | rhapsody*)
9925 dynamic_linker="$host_os dyld"
9926 version_type=darwin
9927 need_lib_prefix=no
9928 need_version=no
8934764e 9929 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
bf9f3bac 9930 soname_spec='${libname}${release}${major}$shared_ext'
9931 shlibpath_overrides_runpath=yes
9932 shlibpath_var=DYLD_LIBRARY_PATH
9933 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8934764e
BB
9934
9935 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
bf9f3bac 9936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9937 ;;
9938
9939dgux*)
9940 version_type=linux
9941 need_lib_prefix=no
9942 need_version=no
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 ;;
9947
9948freebsd1*)
9949 dynamic_linker=no
9950 ;;
9951
bf9f3bac 9952freebsd* | dragonfly*)
9953 # DragonFly does not have aout. When/if they implement a new
9954 # versioning mechanism, adjust this.
9955 if test -x /usr/bin/objformat; then
9956 objformat=`/usr/bin/objformat`
9957 else
9958 case $host_os in
9959 freebsd[123]*) objformat=aout ;;
9960 *) objformat=elf ;;
9961 esac
9962 fi
9963 version_type=freebsd-$objformat
9964 case $version_type in
9965 freebsd-elf*)
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9967 need_version=no
9968 need_lib_prefix=no
9969 ;;
9970 freebsd-*)
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9972 need_version=yes
9973 ;;
9974 esac
9975 shlibpath_var=LD_LIBRARY_PATH
9976 case $host_os in
9977 freebsd2*)
9978 shlibpath_overrides_runpath=yes
9979 ;;
9980 freebsd3.[01]* | freebsdelf3.[01]*)
9981 shlibpath_overrides_runpath=yes
9982 hardcode_into_libs=yes
9983 ;;
9984 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9985 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9986 shlibpath_overrides_runpath=no
9987 hardcode_into_libs=yes
9988 ;;
8934764e 9989 *) # from 4.6 on, and DragonFly
bf9f3bac 9990 shlibpath_overrides_runpath=yes
9991 hardcode_into_libs=yes
9992 ;;
9993 esac
9994 ;;
9995
9996gnu*)
9997 version_type=linux
9998 need_lib_prefix=no
9999 need_version=no
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 shlibpath_var=LD_LIBRARY_PATH
10003 hardcode_into_libs=yes
10004 ;;
10005
10006hpux9* | hpux10* | hpux11*)
10007 # Give a soname corresponding to the major version so that dld.sl refuses to
10008 # link against other versions.
10009 version_type=sunos
10010 need_lib_prefix=no
10011 need_version=no
10012 case $host_cpu in
10013 ia64*)
10014 shrext_cmds='.so'
10015 hardcode_into_libs=yes
10016 dynamic_linker="$host_os dld.so"
10017 shlibpath_var=LD_LIBRARY_PATH
10018 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 if test "X$HPUX_IA64_MODE" = X32; then
10022 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10023 else
10024 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10025 fi
10026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10027 ;;
8934764e
BB
10028 hppa*64*)
10029 shrext_cmds='.sl'
10030 hardcode_into_libs=yes
10031 dynamic_linker="$host_os dld.sl"
10032 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10035 soname_spec='${libname}${release}${shared_ext}$major'
10036 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10038 ;;
10039 *)
bf9f3bac 10040 shrext_cmds='.sl'
10041 dynamic_linker="$host_os dld.sl"
10042 shlibpath_var=SHLIB_PATH
10043 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 ;;
10047 esac
10048 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10049 postinstall_cmds='chmod 555 $lib'
10050 ;;
10051
8934764e 10052interix[3-9]*)
bf9f3bac 10053 version_type=linux
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=no
10061 hardcode_into_libs=yes
10062 ;;
10063
10064irix5* | irix6* | nonstopux*)
10065 case $host_os in
10066 nonstopux*) version_type=nonstopux ;;
10067 *)
10068 if test "$lt_cv_prog_gnu_ld" = yes; then
10069 version_type=linux
10070 else
10071 version_type=irix
10072 fi ;;
10073 esac
10074 need_lib_prefix=no
10075 need_version=no
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10078 case $host_os in
10079 irix5* | nonstopux*)
10080 libsuff= shlibsuff=
10081 ;;
10082 *)
10083 case $LD in # libtool.m4 will add one of these switches to LD
10084 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10085 libsuff= shlibsuff= libmagic=32-bit;;
10086 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10087 libsuff=32 shlibsuff=N32 libmagic=N32;;
10088 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10089 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10090 *) libsuff= shlibsuff= libmagic=never-match;;
10091 esac
10092 ;;
10093 esac
10094 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10095 shlibpath_overrides_runpath=no
10096 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10097 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10098 hardcode_into_libs=yes
10099 ;;
10100
10101# No shared lib support for Linux oldld, aout, or coff.
10102linux*oldld* | linux*aout* | linux*coff*)
10103 dynamic_linker=no
10104 ;;
10105
10106# This must be Linux ELF.
8934764e 10107linux* | k*bsd*-gnu)
bf9f3bac 10108 version_type=linux
10109 need_lib_prefix=no
10110 need_version=no
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 shlibpath_overrides_runpath=no
8934764e
BB
10116 # Some binutils ld are patched to set DT_RUNPATH
10117 save_LDFLAGS=$LDFLAGS
10118 save_libdir=$libdir
10119 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10120 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10121 cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h. */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h. */
10127
10128int
10129main ()
10130{
10131
10132 ;
10133 return 0;
10134}
10135_ACEOF
10136rm -f conftest.$ac_objext conftest$ac_exeext
10137if { (ac_try="$ac_link"
10138case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10141esac
10142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10143$as_echo "$ac_try_echo") >&5
10144 (eval "$ac_link") 2>conftest.er1
10145 ac_status=$?
10146 grep -v '^ *+' conftest.er1 >conftest.err
10147 rm -f conftest.er1
10148 cat conftest.err >&5
10149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && {
10151 test -z "$ac_c_werror_flag" ||
10152 test ! -s conftest.err
10153 } && test -s conftest$ac_exeext && {
10154 test "$cross_compiling" = yes ||
10155 $as_test_x conftest$ac_exeext
10156 }; then
10157 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10158 shlibpath_overrides_runpath=yes
10159fi
10160
10161else
10162 $as_echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
10165
10166fi
10167
10168rm -rf conftest.dSYM
10169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LDFLAGS=$save_LDFLAGS
10172 libdir=$save_libdir
10173
bf9f3bac 10174 # This implies no fast_install, which is unacceptable.
10175 # Some rework will be needed to allow for fast_install
10176 # before this can be enabled.
10177 hardcode_into_libs=yes
10178
8934764e
BB
10179 # Add ABI-specific directories to the system library path.
10180 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
bf9f3bac 10181
10182 # Append ld.so.conf contents to the search path
10183 if test -f /etc/ld.so.conf; then
8934764e
BB
10184 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' ' '`
10185 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
bf9f3bac 10186 fi
10187
10188 # We used to test for /lib/ld.so.1 and disable shared libraries on
10189 # powerpc, because MkLinux only supported shared libraries with the
10190 # GNU dynamic linker. Since this was broken with cross compilers,
10191 # most powerpc-linux boxes support dynamic linking these days and
10192 # people can always --disable-shared, the test was removed, and we
10193 # assume the GNU/Linux dynamic linker is in use.
10194 dynamic_linker='GNU/Linux ld.so'
10195 ;;
10196
bf9f3bac 10197netbsd*)
10198 version_type=sunos
10199 need_lib_prefix=no
10200 need_version=no
8934764e 10201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
bf9f3bac 10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10204 dynamic_linker='NetBSD (a.out) ld.so'
10205 else
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 dynamic_linker='NetBSD ld.elf_so'
10209 fi
10210 shlibpath_var=LD_LIBRARY_PATH
10211 shlibpath_overrides_runpath=yes
10212 hardcode_into_libs=yes
10213 ;;
10214
10215newsos6)
10216 version_type=linux
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 shlibpath_var=LD_LIBRARY_PATH
10219 shlibpath_overrides_runpath=yes
10220 ;;
10221
8934764e
BB
10222*nto* | *qnx*)
10223 version_type=qnx
bf9f3bac 10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 shlibpath_var=LD_LIBRARY_PATH
8934764e
BB
10229 shlibpath_overrides_runpath=no
10230 hardcode_into_libs=yes
10231 dynamic_linker='ldqnx.so'
bf9f3bac 10232 ;;
10233
10234openbsd*)
10235 version_type=sunos
10236 sys_lib_dlsearch_path_spec="/usr/lib"
10237 need_lib_prefix=no
10238 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10239 case $host_os in
8934764e
BB
10240 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10241 *) need_version=no ;;
bf9f3bac 10242 esac
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10245 shlibpath_var=LD_LIBRARY_PATH
8934764e 10246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
bf9f3bac 10247 case $host_os in
10248 openbsd2.[89] | openbsd2.[89].*)
10249 shlibpath_overrides_runpath=no
10250 ;;
10251 *)
10252 shlibpath_overrides_runpath=yes
10253 ;;
10254 esac
10255 else
10256 shlibpath_overrides_runpath=yes
10257 fi
10258 ;;
10259
10260os2*)
10261 libname_spec='$name'
10262 shrext_cmds=".dll"
10263 need_lib_prefix=no
10264 library_names_spec='$libname${shared_ext} $libname.a'
10265 dynamic_linker='OS/2 ld.exe'
10266 shlibpath_var=LIBPATH
10267 ;;
10268
10269osf3* | osf4* | osf5*)
10270 version_type=osf
10271 need_lib_prefix=no
10272 need_version=no
10273 soname_spec='${libname}${release}${shared_ext}$major'
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 shlibpath_var=LD_LIBRARY_PATH
10276 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10277 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10278 ;;
10279
8934764e
BB
10280rdos*)
10281 dynamic_linker=no
10282 ;;
10283
bf9f3bac 10284solaris*)
10285 version_type=linux
10286 need_lib_prefix=no
10287 need_version=no
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10293 # ldd complains unless libraries are executable
10294 postinstall_cmds='chmod +x $lib'
10295 ;;
10296
10297sunos4*)
10298 version_type=sunos
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10300 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10303 if test "$with_gnu_ld" = yes; then
10304 need_lib_prefix=no
10305 fi
10306 need_version=yes
10307 ;;
10308
10309sysv4 | sysv4.3*)
10310 version_type=linux
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 case $host_vendor in
10315 sni)
10316 shlibpath_overrides_runpath=no
10317 need_lib_prefix=no
bf9f3bac 10318 runpath_var=LD_RUN_PATH
10319 ;;
10320 siemens)
10321 need_lib_prefix=no
10322 ;;
10323 motorola)
10324 need_lib_prefix=no
10325 need_version=no
10326 shlibpath_overrides_runpath=no
10327 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10328 ;;
10329 esac
10330 ;;
10331
10332sysv4*MP*)
10333 if test -d /usr/nec ;then
10334 version_type=linux
10335 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10336 soname_spec='$libname${shared_ext}.$major'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 fi
10339 ;;
10340
10341sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10342 version_type=freebsd-elf
10343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
8934764e 10348 shlibpath_overrides_runpath=yes
bf9f3bac 10349 hardcode_into_libs=yes
10350 if test "$with_gnu_ld" = yes; then
10351 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
bf9f3bac 10352 else
10353 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
bf9f3bac 10354 case $host_os in
10355 sco3.2v5*)
10356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10357 ;;
10358 esac
10359 fi
10360 sys_lib_dlsearch_path_spec='/usr/lib'
10361 ;;
10362
8934764e
BB
10363tpf*)
10364 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10365 version_type=linux
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=no
10371 hardcode_into_libs=yes
10372 ;;
10373
bf9f3bac 10374uts4*)
10375 version_type=linux
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 ;;
10380
10381*)
10382 dynamic_linker=no
10383 ;;
10384esac
8934764e
BB
10385{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10386$as_echo "$dynamic_linker" >&6; }
bf9f3bac 10387test "$dynamic_linker" = no && can_build_shared=no
10388
10389variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10390if test "$GCC" = yes; then
10391 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10392fi
10393
8934764e
BB
10394if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10395 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
bf9f3bac 10396fi
8934764e
BB
10397if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10398 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
bf9f3bac 10399fi
10400
10401
bf9f3bac 10402
bf9f3bac 10403
bf9f3bac 10404
bf9f3bac 10405
bf9f3bac 10406
bf9f3bac 10407
bf9f3bac 10408
bf9f3bac 10409
bf9f3bac 10410
bf9f3bac 10411
bf9f3bac 10412
bf9f3bac 10413
bf9f3bac 10414
bf9f3bac 10415
bf9f3bac 10416
bf9f3bac 10417
bf9f3bac 10418
bf9f3bac 10419
bf9f3bac 10420
bf9f3bac 10421
bf9f3bac 10422
bf9f3bac 10423
bf9f3bac 10424
bf9f3bac 10425
bf9f3bac 10426
bf9f3bac 10427
bf9f3bac 10428
bf9f3bac 10429
bf9f3bac 10430
bf9f3bac 10431
bf9f3bac 10432
bf9f3bac 10433
bf9f3bac 10434
bf9f3bac 10435
bf9f3bac 10436
bf9f3bac 10437
bf9f3bac 10438
bf9f3bac 10439
bf9f3bac 10440
bf9f3bac 10441
bf9f3bac 10442
bf9f3bac 10443
bf9f3bac 10444
bf9f3bac 10445
bf9f3bac 10446
bf9f3bac 10447
bf9f3bac 10448
bf9f3bac 10449
bf9f3bac 10450
bf9f3bac 10451
bf9f3bac 10452
bf9f3bac 10453
bf9f3bac 10454
bf9f3bac 10455
bf9f3bac 10456
bf9f3bac 10457
bf9f3bac 10458
bf9f3bac 10459
bf9f3bac 10460
bf9f3bac 10461
bf9f3bac 10462
bf9f3bac 10463
bf9f3bac 10464
bf9f3bac 10465
bf9f3bac 10466
bf9f3bac 10467
bf9f3bac 10468
bf9f3bac 10469
bf9f3bac 10470
bf9f3bac 10471
bf9f3bac 10472
bf9f3bac 10473
bf9f3bac 10474
bf9f3bac 10475
bf9f3bac 10476
bf9f3bac 10477
bf9f3bac 10478
bf9f3bac 10479
bf9f3bac 10480
bf9f3bac 10481
bf9f3bac 10482
bf9f3bac 10483
bf9f3bac 10484
bf9f3bac 10485
bf9f3bac 10486
8934764e
BB
10487 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10488$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10489hardcode_action=
10490if test -n "$hardcode_libdir_flag_spec" ||
10491 test -n "$runpath_var" ||
10492 test "X$hardcode_automatic" = "Xyes" ; then
bf9f3bac 10493
8934764e
BB
10494 # We can hardcode non-existent directories.
10495 if test "$hardcode_direct" != no &&
10496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10497 # have to relink, otherwise we might link with an installed library
10498 # when we should be linking with a yet-to-be-installed one
10499 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10500 test "$hardcode_minus_L" != no; then
10501 # Linking always hardcodes the temporary library directory.
10502 hardcode_action=relink
10503 else
10504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10505 hardcode_action=immediate
bf9f3bac 10506 fi
8934764e
BB
10507else
10508 # We cannot hardcode anything, or else we can only hardcode existing
10509 # directories.
10510 hardcode_action=unsupported
bf9f3bac 10511fi
8934764e
BB
10512{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10513$as_echo "$hardcode_action" >&6; }
bf9f3bac 10514
8934764e
BB
10515if test "$hardcode_action" = relink ||
10516 test "$inherit_rpath" = yes; then
10517 # Fast installation is not supported
10518 enable_fast_install=no
10519elif test "$shlibpath_overrides_runpath" = yes ||
10520 test "$enable_shared" = no; then
10521 # Fast installation is not necessary
10522 enable_fast_install=needless
10523fi
bf9f3bac 10524
bf9f3bac 10525
bf9f3bac 10526
bf9f3bac 10527
bf9f3bac 10528
10529
8934764e
BB
10530 if test "x$enable_dlopen" != xyes; then
10531 enable_dlopen=unknown
10532 enable_dlopen_self=unknown
10533 enable_dlopen_self_static=unknown
10534else
10535 lt_cv_dlopen=no
10536 lt_cv_dlopen_libs=
bf9f3bac 10537
8934764e
BB
10538 case $host_os in
10539 beos*)
10540 lt_cv_dlopen="load_add_on"
10541 lt_cv_dlopen_libs=
10542 lt_cv_dlopen_self=yes
10543 ;;
bf9f3bac 10544
8934764e
BB
10545 mingw* | pw32* | cegcc*)
10546 lt_cv_dlopen="LoadLibrary"
10547 lt_cv_dlopen_libs=
10548 ;;
bf9f3bac 10549
8934764e
BB
10550 cygwin*)
10551 lt_cv_dlopen="dlopen"
10552 lt_cv_dlopen_libs=
10553 ;;
bf9f3bac 10554
8934764e
BB
10555 darwin*)
10556 # if libdl is installed we need to link against it
10557 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10558$as_echo_n "checking for dlopen in -ldl... " >&6; }
10559if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10560 $as_echo_n "(cached) " >&6
10561else
10562 ac_check_lib_save_LIBS=$LIBS
10563LIBS="-ldl $LIBS"
10564cat >conftest.$ac_ext <<_ACEOF
10565/* confdefs.h. */
10566_ACEOF
10567cat confdefs.h >>conftest.$ac_ext
10568cat >>conftest.$ac_ext <<_ACEOF
10569/* end confdefs.h. */
bf9f3bac 10570
8934764e
BB
10571/* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10574#ifdef __cplusplus
10575extern "C"
10576#endif
10577char dlopen ();
10578int
10579main ()
10580{
10581return dlopen ();
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext conftest$ac_exeext
10587if { (ac_try="$ac_link"
10588case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591esac
10592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593$as_echo "$ac_try_echo") >&5
10594 (eval "$ac_link") 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest$ac_exeext && {
10604 test "$cross_compiling" = yes ||
10605 $as_test_x conftest$ac_exeext
10606 }; then
10607 ac_cv_lib_dl_dlopen=yes
10608else
10609 $as_echo "$as_me: failed program was:" >&5
10610sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10611
8934764e
BB
10612 ac_cv_lib_dl_dlopen=no
10613fi
bf9f3bac 10614
8934764e
BB
10615rm -rf conftest.dSYM
10616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10617 conftest$ac_exeext conftest.$ac_ext
10618LIBS=$ac_check_lib_save_LIBS
10619fi
10620{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10621$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10622if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10623 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10624else
bf9f3bac 10625
8934764e
BB
10626 lt_cv_dlopen="dyld"
10627 lt_cv_dlopen_libs=
10628 lt_cv_dlopen_self=yes
bf9f3bac 10629
8934764e 10630fi
bf9f3bac 10631
8934764e 10632 ;;
bf9f3bac 10633
8934764e
BB
10634 *)
10635 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10636$as_echo_n "checking for shl_load... " >&6; }
10637if test "${ac_cv_func_shl_load+set}" = set; then
10638 $as_echo_n "(cached) " >&6
10639else
10640 cat >conftest.$ac_ext <<_ACEOF
10641/* confdefs.h. */
10642_ACEOF
10643cat confdefs.h >>conftest.$ac_ext
10644cat >>conftest.$ac_ext <<_ACEOF
10645/* end confdefs.h. */
10646/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10648#define shl_load innocuous_shl_load
bf9f3bac 10649
8934764e
BB
10650/* System header to define __stub macros and hopefully few prototypes,
10651 which can conflict with char shl_load (); below.
10652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10653 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10654
8934764e
BB
10655#ifdef __STDC__
10656# include <limits.h>
10657#else
10658# include <assert.h>
10659#endif
bf9f3bac 10660
8934764e 10661#undef shl_load
bf9f3bac 10662
8934764e
BB
10663/* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666#ifdef __cplusplus
10667extern "C"
10668#endif
10669char shl_load ();
10670/* The GNU C library defines this for functions which it implements
10671 to always fail with ENOSYS. Some functions are actually named
10672 something starting with __ and the normal name is an alias. */
10673#if defined __stub_shl_load || defined __stub___shl_load
10674choke me
10675#endif
bf9f3bac 10676
8934764e
BB
10677int
10678main ()
10679{
10680return shl_load ();
10681 ;
10682 return 0;
10683}
10684_ACEOF
10685rm -f conftest.$ac_objext conftest$ac_exeext
10686if { (ac_try="$ac_link"
10687case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690esac
10691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10692$as_echo "$ac_try_echo") >&5
10693 (eval "$ac_link") 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest$ac_exeext && {
10703 test "$cross_compiling" = yes ||
10704 $as_test_x conftest$ac_exeext
10705 }; then
10706 ac_cv_func_shl_load=yes
10707else
10708 $as_echo "$as_me: failed program was:" >&5
10709sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10710
8934764e
BB
10711 ac_cv_func_shl_load=no
10712fi
bf9f3bac 10713
8934764e
BB
10714rm -rf conftest.dSYM
10715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10716 conftest$ac_exeext conftest.$ac_ext
10717fi
10718{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10719$as_echo "$ac_cv_func_shl_load" >&6; }
10720if test "x$ac_cv_func_shl_load" = x""yes; then
10721 lt_cv_dlopen="shl_load"
10722else
10723 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10724$as_echo_n "checking for shl_load in -ldld... " >&6; }
10725if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10726 $as_echo_n "(cached) " >&6
10727else
10728 ac_check_lib_save_LIBS=$LIBS
10729LIBS="-ldld $LIBS"
10730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h. */
bf9f3bac 10736
8934764e
BB
10737/* Override any GCC internal prototype to avoid an error.
10738 Use char because int might match the return type of a GCC
10739 builtin and then its argument prototype would still apply. */
10740#ifdef __cplusplus
10741extern "C"
10742#endif
10743char shl_load ();
10744int
10745main ()
10746{
10747return shl_load ();
10748 ;
10749 return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext conftest$ac_exeext
10753if { (ac_try="$ac_link"
10754case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10757esac
10758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10759$as_echo "$ac_try_echo") >&5
10760 (eval "$ac_link") 2>conftest.er1
10761 ac_status=$?
10762 grep -v '^ *+' conftest.er1 >conftest.err
10763 rm -f conftest.er1
10764 cat conftest.err >&5
10765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && {
10767 test -z "$ac_c_werror_flag" ||
10768 test ! -s conftest.err
10769 } && test -s conftest$ac_exeext && {
10770 test "$cross_compiling" = yes ||
10771 $as_test_x conftest$ac_exeext
10772 }; then
10773 ac_cv_lib_dld_shl_load=yes
10774else
10775 $as_echo "$as_me: failed program was:" >&5
10776sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10777
8934764e
BB
10778 ac_cv_lib_dld_shl_load=no
10779fi
bf9f3bac 10780
8934764e
BB
10781rm -rf conftest.dSYM
10782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783 conftest$ac_exeext conftest.$ac_ext
10784LIBS=$ac_check_lib_save_LIBS
10785fi
10786{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10787$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10788if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10789 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10790else
10791 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10792$as_echo_n "checking for dlopen... " >&6; }
10793if test "${ac_cv_func_dlopen+set}" = set; then
10794 $as_echo_n "(cached) " >&6
10795else
10796 cat >conftest.$ac_ext <<_ACEOF
10797/* confdefs.h. */
10798_ACEOF
10799cat confdefs.h >>conftest.$ac_ext
10800cat >>conftest.$ac_ext <<_ACEOF
10801/* end confdefs.h. */
10802/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10804#define dlopen innocuous_dlopen
bf9f3bac 10805
8934764e
BB
10806/* System header to define __stub macros and hopefully few prototypes,
10807 which can conflict with char dlopen (); below.
10808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10809 <limits.h> exists even on freestanding compilers. */
bf9f3bac 10810
8934764e
BB
10811#ifdef __STDC__
10812# include <limits.h>
10813#else
10814# include <assert.h>
10815#endif
bf9f3bac 10816
8934764e 10817#undef dlopen
bf9f3bac 10818
8934764e
BB
10819/* Override any GCC internal prototype to avoid an error.
10820 Use char because int might match the return type of a GCC
10821 builtin and then its argument prototype would still apply. */
10822#ifdef __cplusplus
10823extern "C"
10824#endif
10825char dlopen ();
10826/* The GNU C library defines this for functions which it implements
10827 to always fail with ENOSYS. Some functions are actually named
10828 something starting with __ and the normal name is an alias. */
10829#if defined __stub_dlopen || defined __stub___dlopen
10830choke me
10831#endif
bf9f3bac 10832
8934764e
BB
10833int
10834main ()
10835{
10836return dlopen ();
10837 ;
10838 return 0;
10839}
10840_ACEOF
10841rm -f conftest.$ac_objext conftest$ac_exeext
10842if { (ac_try="$ac_link"
10843case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10846esac
10847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10848$as_echo "$ac_try_echo") >&5
10849 (eval "$ac_link") 2>conftest.er1
10850 ac_status=$?
10851 grep -v '^ *+' conftest.er1 >conftest.err
10852 rm -f conftest.er1
10853 cat conftest.err >&5
10854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext && {
10859 test "$cross_compiling" = yes ||
10860 $as_test_x conftest$ac_exeext
10861 }; then
10862 ac_cv_func_dlopen=yes
10863else
10864 $as_echo "$as_me: failed program was:" >&5
10865sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10866
8934764e
BB
10867 ac_cv_func_dlopen=no
10868fi
bf9f3bac 10869
8934764e
BB
10870rm -rf conftest.dSYM
10871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10872 conftest$ac_exeext conftest.$ac_ext
10873fi
10874{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10875$as_echo "$ac_cv_func_dlopen" >&6; }
10876if test "x$ac_cv_func_dlopen" = x""yes; then
10877 lt_cv_dlopen="dlopen"
10878else
10879 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10880$as_echo_n "checking for dlopen in -ldl... " >&6; }
10881if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10882 $as_echo_n "(cached) " >&6
10883else
10884 ac_check_lib_save_LIBS=$LIBS
10885LIBS="-ldl $LIBS"
10886cat >conftest.$ac_ext <<_ACEOF
10887/* confdefs.h. */
10888_ACEOF
10889cat confdefs.h >>conftest.$ac_ext
10890cat >>conftest.$ac_ext <<_ACEOF
10891/* end confdefs.h. */
bf9f3bac 10892
8934764e
BB
10893/* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896#ifdef __cplusplus
10897extern "C"
10898#endif
10899char dlopen ();
10900int
10901main ()
10902{
10903return dlopen ();
10904 ;
10905 return 0;
10906}
10907_ACEOF
10908rm -f conftest.$ac_objext conftest$ac_exeext
10909if { (ac_try="$ac_link"
10910case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10915$as_echo "$ac_try_echo") >&5
10916 (eval "$ac_link") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } && {
10923 test -z "$ac_c_werror_flag" ||
10924 test ! -s conftest.err
10925 } && test -s conftest$ac_exeext && {
10926 test "$cross_compiling" = yes ||
10927 $as_test_x conftest$ac_exeext
10928 }; then
10929 ac_cv_lib_dl_dlopen=yes
10930else
10931 $as_echo "$as_me: failed program was:" >&5
10932sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 10933
8934764e
BB
10934 ac_cv_lib_dl_dlopen=no
10935fi
bf9f3bac 10936
8934764e
BB
10937rm -rf conftest.dSYM
10938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10939 conftest$ac_exeext conftest.$ac_ext
10940LIBS=$ac_check_lib_save_LIBS
10941fi
10942{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10943$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10944if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10946else
10947 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10948$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10949if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10950 $as_echo_n "(cached) " >&6
10951else
10952 ac_check_lib_save_LIBS=$LIBS
10953LIBS="-lsvld $LIBS"
10954cat >conftest.$ac_ext <<_ACEOF
10955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
bf9f3bac 10960
8934764e
BB
10961/* Override any GCC internal prototype to avoid an error.
10962 Use char because int might match the return type of a GCC
10963 builtin and then its argument prototype would still apply. */
10964#ifdef __cplusplus
10965extern "C"
10966#endif
10967char dlopen ();
10968int
10969main ()
10970{
10971return dlopen ();
10972 ;
10973 return 0;
10974}
10975_ACEOF
10976rm -f conftest.$ac_objext conftest$ac_exeext
10977if { (ac_try="$ac_link"
10978case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981esac
10982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10983$as_echo "$ac_try_echo") >&5
10984 (eval "$ac_link") 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest$ac_exeext && {
10994 test "$cross_compiling" = yes ||
10995 $as_test_x conftest$ac_exeext
10996 }; then
10997 ac_cv_lib_svld_dlopen=yes
10998else
10999 $as_echo "$as_me: failed program was:" >&5
11000sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11001
8934764e
BB
11002 ac_cv_lib_svld_dlopen=no
11003fi
bf9f3bac 11004
8934764e
BB
11005rm -rf conftest.dSYM
11006rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007 conftest$ac_exeext conftest.$ac_ext
11008LIBS=$ac_check_lib_save_LIBS
11009fi
11010{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11011$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11012if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11013 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11014else
11015 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11016$as_echo_n "checking for dld_link in -ldld... " >&6; }
11017if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11018 $as_echo_n "(cached) " >&6
11019else
11020 ac_check_lib_save_LIBS=$LIBS
11021LIBS="-ldld $LIBS"
11022cat >conftest.$ac_ext <<_ACEOF
11023/* confdefs.h. */
11024_ACEOF
11025cat confdefs.h >>conftest.$ac_ext
11026cat >>conftest.$ac_ext <<_ACEOF
11027/* end confdefs.h. */
bf9f3bac 11028
8934764e
BB
11029/* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032#ifdef __cplusplus
11033extern "C"
11034#endif
11035char dld_link ();
11036int
11037main ()
11038{
11039return dld_link ();
11040 ;
11041 return 0;
11042}
11043_ACEOF
11044rm -f conftest.$ac_objext conftest$ac_exeext
11045if { (ac_try="$ac_link"
11046case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11051$as_echo "$ac_try_echo") >&5
11052 (eval "$ac_link") 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest$ac_exeext && {
11062 test "$cross_compiling" = yes ||
11063 $as_test_x conftest$ac_exeext
11064 }; then
11065 ac_cv_lib_dld_dld_link=yes
11066else
11067 $as_echo "$as_me: failed program was:" >&5
11068sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 11069
8934764e
BB
11070 ac_cv_lib_dld_dld_link=no
11071fi
bf9f3bac 11072
8934764e
BB
11073rm -rf conftest.dSYM
11074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
11076LIBS=$ac_check_lib_save_LIBS
11077fi
11078{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11079$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11080if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11082fi
bf9f3bac 11083
bf9f3bac 11084
8934764e 11085fi
bf9f3bac 11086
bf9f3bac 11087
8934764e 11088fi
bf9f3bac 11089
bf9f3bac 11090
8934764e 11091fi
bf9f3bac 11092
bf9f3bac 11093
8934764e 11094fi
bf9f3bac 11095
bf9f3bac 11096
8934764e 11097fi
bf9f3bac 11098
8934764e
BB
11099 ;;
11100 esac
bf9f3bac 11101
8934764e
BB
11102 if test "x$lt_cv_dlopen" != xno; then
11103 enable_dlopen=yes
11104 else
11105 enable_dlopen=no
11106 fi
bf9f3bac 11107
8934764e
BB
11108 case $lt_cv_dlopen in
11109 dlopen)
11110 save_CPPFLAGS="$CPPFLAGS"
11111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
bf9f3bac 11112
8934764e
BB
11113 save_LDFLAGS="$LDFLAGS"
11114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
bf9f3bac 11115
8934764e
BB
11116 save_LIBS="$LIBS"
11117 LIBS="$lt_cv_dlopen_libs $LIBS"
bf9f3bac 11118
8934764e
BB
11119 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11120$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11121if test "${lt_cv_dlopen_self+set}" = set; then
11122 $as_echo_n "(cached) " >&6
11123else
11124 if test "$cross_compiling" = yes; then :
11125 lt_cv_dlopen_self=cross
11126else
11127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11128 lt_status=$lt_dlunknown
11129 cat > conftest.$ac_ext <<_LT_EOF
c950d148 11130#line 11130 "configure"
8934764e 11131#include "confdefs.h"
bf9f3bac 11132
8934764e
BB
11133#if HAVE_DLFCN_H
11134#include <dlfcn.h>
11135#endif
bf9f3bac 11136
8934764e 11137#include <stdio.h>
bf9f3bac 11138
8934764e
BB
11139#ifdef RTLD_GLOBAL
11140# define LT_DLGLOBAL RTLD_GLOBAL
11141#else
11142# ifdef DL_GLOBAL
11143# define LT_DLGLOBAL DL_GLOBAL
11144# else
11145# define LT_DLGLOBAL 0
11146# endif
11147#endif
bf9f3bac 11148
8934764e
BB
11149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11150 find out it does not work in some platform. */
11151#ifndef LT_DLLAZY_OR_NOW
11152# ifdef RTLD_LAZY
11153# define LT_DLLAZY_OR_NOW RTLD_LAZY
11154# else
11155# ifdef DL_LAZY
11156# define LT_DLLAZY_OR_NOW DL_LAZY
11157# else
11158# ifdef RTLD_NOW
11159# define LT_DLLAZY_OR_NOW RTLD_NOW
11160# else
11161# ifdef DL_NOW
11162# define LT_DLLAZY_OR_NOW DL_NOW
11163# else
11164# define LT_DLLAZY_OR_NOW 0
11165# endif
11166# endif
11167# endif
11168# endif
11169#endif
bf9f3bac 11170
8934764e
BB
11171void fnord() { int i=42;}
11172int main ()
11173{
11174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11175 int status = $lt_dlunknown;
bf9f3bac 11176
8934764e
BB
11177 if (self)
11178 {
11179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11180 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11181 /* dlclose (self); */
11182 }
11183 else
11184 puts (dlerror ());
bf9f3bac 11185
8934764e
BB
11186 return status;
11187}
11188_LT_EOF
11189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11190 (eval $ac_link) 2>&5
11191 ac_status=$?
11192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11194 (./conftest; exit; ) >&5 2>/dev/null
11195 lt_status=$?
11196 case x$lt_status in
11197 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11198 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11199 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11200 esac
11201 else :
11202 # compilation failed
11203 lt_cv_dlopen_self=no
11204 fi
11205fi
11206rm -fr conftest*
bf9f3bac 11207
bf9f3bac 11208
8934764e
BB
11209fi
11210{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11211$as_echo "$lt_cv_dlopen_self" >&6; }
bf9f3bac 11212
8934764e
BB
11213 if test "x$lt_cv_dlopen_self" = xyes; then
11214 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11215 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11216$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11217if test "${lt_cv_dlopen_self_static+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11219else
11220 if test "$cross_compiling" = yes; then :
11221 lt_cv_dlopen_self_static=cross
11222else
11223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11224 lt_status=$lt_dlunknown
11225 cat > conftest.$ac_ext <<_LT_EOF
c950d148 11226#line 11226 "configure"
8934764e 11227#include "confdefs.h"
bf9f3bac 11228
8934764e
BB
11229#if HAVE_DLFCN_H
11230#include <dlfcn.h>
11231#endif
bf9f3bac 11232
8934764e 11233#include <stdio.h>
bf9f3bac 11234
8934764e
BB
11235#ifdef RTLD_GLOBAL
11236# define LT_DLGLOBAL RTLD_GLOBAL
11237#else
11238# ifdef DL_GLOBAL
11239# define LT_DLGLOBAL DL_GLOBAL
11240# else
11241# define LT_DLGLOBAL 0
11242# endif
11243#endif
bf9f3bac 11244
8934764e
BB
11245/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11246 find out it does not work in some platform. */
11247#ifndef LT_DLLAZY_OR_NOW
11248# ifdef RTLD_LAZY
11249# define LT_DLLAZY_OR_NOW RTLD_LAZY
11250# else
11251# ifdef DL_LAZY
11252# define LT_DLLAZY_OR_NOW DL_LAZY
11253# else
11254# ifdef RTLD_NOW
11255# define LT_DLLAZY_OR_NOW RTLD_NOW
11256# else
11257# ifdef DL_NOW
11258# define LT_DLLAZY_OR_NOW DL_NOW
11259# else
11260# define LT_DLLAZY_OR_NOW 0
11261# endif
11262# endif
11263# endif
11264# endif
11265#endif
bf9f3bac 11266
8934764e
BB
11267void fnord() { int i=42;}
11268int main ()
11269{
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
bf9f3bac 11272
8934764e
BB
11273 if (self)
11274 {
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11277 /* dlclose (self); */
11278 }
11279 else
11280 puts (dlerror ());
bf9f3bac 11281
8934764e
BB
11282 return status;
11283}
11284_LT_EOF
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286 (eval $ac_link) 2>&5
11287 ac_status=$?
11288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11290 (./conftest; exit; ) >&5 2>/dev/null
11291 lt_status=$?
11292 case x$lt_status in
11293 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11295 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11296 esac
11297 else :
11298 # compilation failed
11299 lt_cv_dlopen_self_static=no
11300 fi
11301fi
11302rm -fr conftest*
bf9f3bac 11303
bf9f3bac 11304
8934764e
BB
11305fi
11306{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11307$as_echo "$lt_cv_dlopen_self_static" >&6; }
11308 fi
bf9f3bac 11309
8934764e
BB
11310 CPPFLAGS="$save_CPPFLAGS"
11311 LDFLAGS="$save_LDFLAGS"
11312 LIBS="$save_LIBS"
11313 ;;
11314 esac
bf9f3bac 11315
8934764e
BB
11316 case $lt_cv_dlopen_self in
11317 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11318 *) enable_dlopen_self=unknown ;;
11319 esac
bf9f3bac 11320
8934764e
BB
11321 case $lt_cv_dlopen_self_static in
11322 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11323 *) enable_dlopen_self_static=unknown ;;
11324 esac
11325fi
bf9f3bac 11326
bf9f3bac 11327
bf9f3bac 11328
bf9f3bac 11329
bf9f3bac 11330
bf9f3bac 11331
bf9f3bac 11332
bf9f3bac 11333
bf9f3bac 11334
bf9f3bac 11335
bf9f3bac 11336
bf9f3bac 11337
bf9f3bac 11338
bf9f3bac 11339
bf9f3bac 11340
bf9f3bac 11341
bf9f3bac 11342
8934764e
BB
11343striplib=
11344old_striplib=
11345{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11346$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11347if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11350 { $as_echo "$as_me:$LINENO: result: yes" >&5
11351$as_echo "yes" >&6; }
11352else
11353# FIXME - insert some real tests, host_os isn't really good enough
11354 case $host_os in
11355 darwin*)
11356 if test -n "$STRIP" ; then
11357 striplib="$STRIP -x"
11358 old_striplib="$STRIP -S"
11359 { $as_echo "$as_me:$LINENO: result: yes" >&5
11360$as_echo "yes" >&6; }
11361 else
11362 { $as_echo "$as_me:$LINENO: result: no" >&5
11363$as_echo "no" >&6; }
11364 fi
11365 ;;
11366 *)
11367 { $as_echo "$as_me:$LINENO: result: no" >&5
11368$as_echo "no" >&6; }
11369 ;;
11370 esac
11371fi
bf9f3bac 11372
bf9f3bac 11373
bf9f3bac 11374
bf9f3bac 11375
bf9f3bac 11376
bf9f3bac 11377
bf9f3bac 11378
bf9f3bac 11379
bf9f3bac 11380
bf9f3bac 11381
bf9f3bac 11382
bf9f3bac 11383
8934764e
BB
11384 # Report which library types will actually be built
11385 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11386$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11387 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11388$as_echo "$can_build_shared" >&6; }
bf9f3bac 11389
8934764e
BB
11390 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11391$as_echo_n "checking whether to build shared libraries... " >&6; }
11392 test "$can_build_shared" = "no" && enable_shared=no
bf9f3bac 11393
8934764e
BB
11394 # On AIX, shared libraries and static libraries use the same namespace, and
11395 # are all built from PIC.
11396 case $host_os in
11397 aix3*)
11398 test "$enable_shared" = yes && enable_static=no
11399 if test -n "$RANLIB"; then
11400 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11401 postinstall_cmds='$RANLIB $lib'
11402 fi
11403 ;;
bf9f3bac 11404
8934764e
BB
11405 aix[4-9]*)
11406 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11407 test "$enable_shared" = yes && enable_static=no
11408 fi
11409 ;;
11410 esac
11411 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11412$as_echo "$enable_shared" >&6; }
bf9f3bac 11413
8934764e
BB
11414 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11415$as_echo_n "checking whether to build static libraries... " >&6; }
11416 # Make sure either enable_shared or enable_static is yes.
11417 test "$enable_shared" = yes || enable_static=yes
11418 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11419$as_echo "$enable_static" >&6; }
bf9f3bac 11420
bf9f3bac 11421
bf9f3bac 11422
11423
bf9f3bac 11424fi
bf9f3bac 11425ac_ext=c
11426ac_cpp='$CPP $CPPFLAGS'
11427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11429ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430
11431CC="$lt_save_CC"
11432
bf9f3bac 11433
bf9f3bac 11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
8934764e 11445 ac_config_commands="$ac_config_commands libtool"
bf9f3bac 11446
11447
11448
11449
8934764e 11450# Only expand once:
bf9f3bac 11451
11452
11453
11454
8934764e
BB
11455 { $as_echo "$as_me:$LINENO: checking spl license" >&5
11456$as_echo_n "checking spl license... " >&6; }
86933a6e 11457 LICENSE=GPL
8934764e
BB
11458 { $as_echo "$as_me:$LINENO: result: $LICENSE" >&5
11459$as_echo "$LICENSE" >&6; }
86933a6e
BB
11460 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DHAVE_GPL_ONLY_SYMBOLS"
11461
11462
11463
11464 SPL_CONFIG=all
11465
8934764e 11466# Check whether --with-config was given.
86933a6e 11467if test "${with_config+set}" = set; then
8934764e
BB
11468 withval=$with_config; SPL_CONFIG="$withval"
11469fi
86933a6e 11470
8934764e
BB
11471
11472 { $as_echo "$as_me:$LINENO: checking spl config" >&5
11473$as_echo_n "checking spl config... " >&6; }
11474 { $as_echo "$as_me:$LINENO: result: $SPL_CONFIG" >&5
11475$as_echo "$SPL_CONFIG" >&6; };
86933a6e
BB
11476
11477
11478 case "$SPL_CONFIG" in
11479 kernel)
11480
11481
8934764e 11482# Check whether --with-linux was given.
86933a6e 11483if test "${with_linux+set}" = set; then
8934764e
BB
11484 withval=$with_linux; kernelsrc="$withval"
11485fi
86933a6e
BB
11486
11487
8934764e
BB
11488
11489# Check whether --with-linux-obj was given.
86933a6e 11490if test "${with_linux_obj+set}" = set; then
8934764e
BB
11491 withval=$with_linux_obj; kernelbuild="$withval"
11492fi
86933a6e 11493
8934764e
BB
11494
11495 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
11496$as_echo_n "checking kernel source directory... " >&6; }
86933a6e 11497 if test -z "$kernelsrc"; then
534c4e38
BM
11498 headersdir="/lib/modules/$(uname -r)/build"
11499 if test -e "$headersdir"; then
11500 sourcelink=$(readlink -f "$headersdir")
11501 else
11502 sourcelink=$(ls -1d /usr/src/kernels/* \
11503 /usr/src/linux-* \
11504 2>/dev/null | grep -v obj | tail -1)
11505 fi
86933a6e 11506
8fd4e3af 11507 if test -n "$sourcelink" && test -e ${sourcelink}; then
86933a6e
BB
11508 kernelsrc=`readlink -f ${sourcelink}`
11509 else
8934764e
BB
11510 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11511$as_echo "Not found" >&6; }
11512 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
11513 *** Please make sure the kernel devel package for your distribution
11514 *** is installed then try again. If that fails you can specify the
11515 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 11516$as_echo "$as_me: error:
8fd4e3af
BB
11517 *** Please make sure the kernel devel package for your distribution
11518 *** is installed then try again. If that fails you can specify the
11519 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
86933a6e
BB
11520 { (exit 1); exit 1; }; }
11521 fi
11522 else
11523 if test "$kernelsrc" = "NONE"; then
11524 kernsrcver=NONE
11525 fi
11526 fi
11527
8934764e
BB
11528 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
11529$as_echo "$kernelsrc" >&6; }
11530 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
11531$as_echo_n "checking kernel build directory... " >&6; }
86933a6e 11532 if test -z "$kernelbuild"; then
e2d28a37
BB
11533 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11534 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11535 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11536 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11537 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11538 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
86933a6e
BB
11539 else
11540 kernelbuild=${kernelsrc}
11541 fi
11542 fi
8934764e
BB
11543 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
11544$as_echo "$kernelbuild" >&6; }
86933a6e 11545
8934764e
BB
11546 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
11547$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
11548 utsrelease1=$kernelbuild/include/linux/version.h
11549 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11550 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11551 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11552 utsrelease=linux/version.h
11553 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11554 utsrelease=linux/utsrelease.h
11555 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11556 utsrelease=generated/utsrelease.h
11557 fi
86933a6e 11558
fd921c2e
BB
11559 if test "$utsrelease"; then
11560 kernsrcver=`(echo "#include <$utsrelease>";
86933a6e
BB
11561 echo "kernsrcver=UTS_RELEASE") |
11562 cpp -I $kernelbuild/include |
11563 grep "^kernsrcver=" | cut -d \" -f 2`
86933a6e 11564
fd921c2e
BB
11565 if test -z "$kernsrcver"; then
11566 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11567$as_echo "Not found" >&6; }
11568 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
11569$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
11570 { (exit 1); exit 1; }; }
11571 fi
11572 else
8934764e
BB
11573 { $as_echo "$as_me:$LINENO: result: Not found" >&5
11574$as_echo "Not found" >&6; }
fd921c2e
BB
11575 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
11576$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
86933a6e
BB
11577 { (exit 1); exit 1; }; }
11578 fi
11579
8934764e
BB
11580 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
11581$as_echo "$kernsrcver" >&6; }
86933a6e
BB
11582
11583 LINUX=${kernelsrc}
11584 LINUX_OBJ=${kernelbuild}
11585 LINUX_VERSION=${kernsrcver}
11586
11587
11588
11589
11590
11591
bb339d06 11592 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
11593 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
11594$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
11595 if test -f "$modpost"; then
11596 if grep -q Modules.symvers $modpost; then
11597 LINUX_SYMBOLS=Modules.symvers
11598 else
11599 LINUX_SYMBOLS=Module.symvers
11600 fi
86933a6e 11601 else
bb339d06 11602 LINUX_SYMBOLS=NONE
86933a6e 11603 fi
8934764e
BB
11604 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
11605$as_echo "$LINUX_SYMBOLS" >&6; }
86933a6e
BB
11606
11607
11608
11609
86933a6e 11610 abs_srcdir=`readlink -f ${srcdir}`
c950d148 11611 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16b719f0
BB
11612 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
11613 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
86933a6e
BB
11614
11615 if test "${LINUX_OBJ}" != "${LINUX}"; then
11616 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11617 fi
11618
11619
11620
11621
11622
c950d148
BB
11623 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
11624$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 11625 # Check whether --enable-debug was given.
86933a6e 11626if test "${enable_debug+set}" = set; then
8934764e 11627 enableval=$enable_debug;
055ffd98
BB
11628else
11629 enable_debug=no
8934764e
BB
11630fi
11631
055ffd98
BB
11632
11633 if test "x$enable_debug" = xyes; then
c950d148 11634
c950d148
BB
11635 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11636 DEBUG_CFLAGS="-DDEBUG -Werror"
11637
055ffd98 11638else
c950d148 11639
c950d148
BB
11640 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11641 DEBUG_CFLAGS="-DNDEBUG"
11642
055ffd98
BB
11643fi
11644
11645
c950d148 11646
8934764e
BB
11647 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
11648$as_echo "$enable_debug" >&6; }
86933a6e
BB
11649
11650
8934764e 11651 # Check whether --enable-debug-kmem was given.
86933a6e 11652if test "${enable_debug_kmem+set}" = set; then
8934764e 11653 enableval=$enable_debug_kmem;
055ffd98
BB
11654else
11655 enable_debug_kmem=yes
8934764e
BB
11656fi
11657
055ffd98
BB
11658
11659 if test "x$enable_debug_kmem" = xyes; then
86933a6e
BB
11660
11661cat >>confdefs.h <<\_ACEOF
11662#define DEBUG_KMEM 1
11663_ACEOF
11664
11665 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 11666fi
86933a6e 11667
86933a6e 11668
8934764e
BB
11669 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
11670$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11671 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
11672$as_echo "$enable_debug_kmem" >&6; }
86933a6e
BB
11673
11674
8934764e 11675 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 11676if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 11677 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
11678else
11679 enable_debug_kmem_tracking=no
8934764e
BB
11680fi
11681
055ffd98
BB
11682
11683 if test "x$enable_debug_kmem_tracking" = xyes; then
86933a6e
BB
11684
11685cat >>confdefs.h <<\_ACEOF
055ffd98 11686#define DEBUG_KMEM_TRACKING 1
86933a6e
BB
11687_ACEOF
11688
055ffd98
BB
11689 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11690fi
11691
11692
8934764e
BB
11693 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
11694$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11695 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
11696$as_echo "$enable_debug_kmem_tracking" >&6; }
86933a6e 11697
5e9b5d83 11698
8934764e 11699 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 11700if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 11701 enableval=$enable_atomic_spinlocks;
5e9b5d83 11702else
d04c8a56 11703 enable_atomic_spinlocks=check
8934764e
BB
11704fi
11705
5e9b5d83 11706
86933a6e
BB
11707
11708
dbe561d8 11709cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715
11716
d04c8a56 11717 #include <asm/atomic.h>
86933a6e
BB
11718
11719int
11720main (void)
11721{
11722
d04c8a56 11723 atomic64_t *ptr;
86933a6e
BB
11724
11725 ;
11726 return 0;
11727}
11728
11729_ACEOF
11730
11731
11732 rm -Rf build && mkdir -p build
11733 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 11734 if { 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
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
8934764e 11738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
11739 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
8934764e 11743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
11744 (exit $ac_status); }; }; then
11745
d04c8a56 11746 have_atomic64_t=yes
86933a6e
BB
11747
11748cat >>confdefs.h <<\_ACEOF
d04c8a56 11749#define HAVE_ATOMIC64_T 1
86933a6e
BB
11750_ACEOF
11751
11752
11753else
8934764e 11754 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
11755sed 's/^/| /' conftest.$ac_ext >&5
11756
d04c8a56 11757 have_atomic64_t=no
86933a6e
BB
11758
11759
11760
11761fi
11762
11763 rm -Rf build
11764
11765
11766
d04c8a56
BB
11767 if test "x$enable_atomic_spinlocks" = xcheck; then
11768
11769 if test "x$have_atomic64_t" = xyes; then
11770
11771 enable_atomic_spinlocks=no
11772
11773else
11774
11775 enable_atomic_spinlocks=yes
11776
11777fi
11778
11779
11780fi
11781
11782
11783 if test "x$enable_atomic_spinlocks" = xyes; then
11784
11785
11786cat >>confdefs.h <<\_ACEOF
11787#define ATOMIC_SPINLOCK 1
11788_ACEOF
11789
11790
11791else
11792
11793 if test "x$have_atomic64_t" = xno; then
11794
8934764e
BB
11795 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11797{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 11798See \`config.log' for more details." >&5
8934764e 11799$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 11800See \`config.log' for more details." >&2;}
8934764e 11801 { (exit 1); exit 1; }; }; }
d04c8a56
BB
11802
11803fi
11804
11805
11806fi
11807
11808
8934764e
BB
11809 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
11810$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
11811 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
11812$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 11813
8934764e
BB
11814 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
11815$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
11816 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
11817$as_echo "$have_atomic64_t" >&6; }
d04c8a56 11818
8934764e
BB
11819 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
11820$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
86933a6e
BB
11821
11822
dbe561d8 11823cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
11824/* confdefs.h. */
11825_ACEOF
11826cat confdefs.h >>conftest.$ac_ext
11827cat >>conftest.$ac_ext <<_ACEOF
11828/* end confdefs.h. */
11829
11830
11831 #include <asm/atomic.h>
11832
11833int
11834main (void)
11835{
11836
d04c8a56 11837 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
86933a6e
BB
11838
11839 ;
11840 return 0;
11841}
11842
11843_ACEOF
11844
11845
11846 rm -Rf build && mkdir -p build
11847 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 11848 if { 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
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
8934764e 11852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
11853 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
8934764e 11857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
11858 (exit $ac_status); }; }; then
11859
8934764e
BB
11860 { $as_echo "$as_me:$LINENO: result: yes" >&5
11861$as_echo "yes" >&6; }
86933a6e
BB
11862
11863cat >>confdefs.h <<\_ACEOF
d04c8a56 11864#define HAVE_ATOMIC64_CMPXCHG 1
86933a6e
BB
11865_ACEOF
11866
11867
11868else
8934764e 11869 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
8934764e
BB
11872 { $as_echo "$as_me:$LINENO: result: no" >&5
11873$as_echo "no" >&6; }
86933a6e
BB
11874
11875
11876
302b88e6
BB
11877fi
11878
11879 rm -Rf build
11880
11881
11882
8934764e
BB
11883 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
11884$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
11885
11886
dbe561d8 11887cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
11893
11894
11895 #include <asm/atomic.h>
11896
11897int
11898main (void)
11899{
11900
d04c8a56 11901 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
11902
11903 ;
11904 return 0;
11905}
11906
11907_ACEOF
11908
11909
11910 rm -Rf build && mkdir -p build
11911 echo "obj-m := conftest.o" >build/Makefile
11912 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
8934764e 11916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
11917 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
8934764e 11921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
11922 (exit $ac_status); }; }; then
11923
8934764e
BB
11924 { $as_echo "$as_me:$LINENO: result: yes" >&5
11925$as_echo "yes" >&6; }
302b88e6
BB
11926
11927cat >>confdefs.h <<\_ACEOF
d04c8a56 11928#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
11929_ACEOF
11930
11931
11932else
8934764e 11933 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
8934764e
BB
11936 { $as_echo "$as_me:$LINENO: result: no" >&5
11937$as_echo "no" >&6; }
302b88e6
BB
11938
11939
11940
11941fi
11942
11943 rm -Rf build
11944
11945
11946
8934764e
BB
11947 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
11948$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
11949
11950
dbe561d8 11951cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
11952/* confdefs.h. */
11953_ACEOF
11954cat confdefs.h >>conftest.$ac_ext
11955cat >>conftest.$ac_ext <<_ACEOF
11956/* end confdefs.h. */
11957
11958
d04c8a56 11959 #include <linux/types.h>
302b88e6
BB
11960
11961int
11962main (void)
11963{
11964
d04c8a56 11965 uintptr_t *ptr;
302b88e6
BB
11966
11967 ;
11968 return 0;
11969}
11970
11971_ACEOF
11972
11973
11974 rm -Rf build && mkdir -p build
11975 echo "obj-m := conftest.o" >build/Makefile
11976 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
11977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11978 (eval $ac_try) 2>&5
11979 ac_status=$?
8934764e 11980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
11981 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
8934764e 11985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
11986 (exit $ac_status); }; }; then
11987
8934764e
BB
11988 { $as_echo "$as_me:$LINENO: result: yes" >&5
11989$as_echo "yes" >&6; }
302b88e6
BB
11990
11991cat >>confdefs.h <<\_ACEOF
d04c8a56 11992#define HAVE_UINTPTR_T 1
302b88e6
BB
11993_ACEOF
11994
11995
11996else
8934764e 11997 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
8934764e
BB
12000 { $as_echo "$as_me:$LINENO: result: no" >&5
12001$as_echo "no" >&6; }
302b88e6
BB
12002
12003
12004
86933a6e
BB
12005fi
12006
12007 rm -Rf build
12008
12009
12010
8934764e
BB
12011 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
12012$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
86933a6e
BB
12013
12014
dbe561d8 12015cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12016/* confdefs.h. */
12017_ACEOF
12018cat confdefs.h >>conftest.$ac_ext
12019cat >>conftest.$ac_ext <<_ACEOF
12020/* end confdefs.h. */
12021
12022
12023 #include <linux/workqueue.h>
12024
12025int
12026main (void)
12027{
12028
12029 struct work_struct work;
12030 INIT_WORK(&work, NULL, NULL);
12031
12032 ;
12033 return 0;
12034}
12035
12036_ACEOF
12037
12038
12039 rm -Rf build && mkdir -p build
12040 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12041 if { 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
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
8934764e 12045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12046 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
8934764e 12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12051 (exit $ac_status); }; }; then
12052
8934764e
BB
12053 { $as_echo "$as_me:$LINENO: result: yes" >&5
12054$as_echo "yes" >&6; }
86933a6e
BB
12055
12056cat >>confdefs.h <<\_ACEOF
12057#define HAVE_3ARGS_INIT_WORK 1
12058_ACEOF
12059
12060
12061else
8934764e 12062 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12063sed 's/^/| /' conftest.$ac_ext >&5
12064
8934764e
BB
12065 { $as_echo "$as_me:$LINENO: result: no" >&5
12066$as_echo "no" >&6; }
86933a6e
BB
12067
12068
12069
12070fi
12071
12072 rm -Rf build
12073
12074
12075
8934764e
BB
12076 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
12077$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
86933a6e
BB
12078
12079
dbe561d8 12080cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12081/* confdefs.h. */
12082_ACEOF
12083cat confdefs.h >>conftest.$ac_ext
12084cat >>conftest.$ac_ext <<_ACEOF
12085/* end confdefs.h. */
12086
12087
12088 #include <linux/sysctl.h>
12089
12090int
12091main (void)
12092{
12093
12094 return register_sysctl_table(NULL,0);
12095
12096 ;
12097 return 0;
12098}
12099
12100_ACEOF
12101
12102
12103 rm -Rf build && mkdir -p build
12104 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12105 if { 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
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
8934764e 12109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12110 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
8934764e 12114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12115 (exit $ac_status); }; }; then
12116
8934764e
BB
12117 { $as_echo "$as_me:$LINENO: result: yes" >&5
12118$as_echo "yes" >&6; }
86933a6e
BB
12119
12120cat >>confdefs.h <<\_ACEOF
12121#define HAVE_2ARGS_REGISTER_SYSCTL 1
12122_ACEOF
12123
12124
12125else
8934764e 12126 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12127sed 's/^/| /' conftest.$ac_ext >&5
12128
8934764e
BB
12129 { $as_echo "$as_me:$LINENO: result: no" >&5
12130$as_echo "no" >&6; }
86933a6e
BB
12131
12132
12133
12134fi
12135
12136 rm -Rf build
12137
12138
12139
12140
8934764e
BB
12141 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
12142$as_echo_n "checking whether set_shrinker() available... " >&6; }
86933a6e
BB
12143
12144
dbe561d8 12145cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12146/* confdefs.h. */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h. */
12151
12152
12153 #include <linux/mm.h>
12154
12155int
12156main (void)
12157{
12158
12159 return set_shrinker(DEFAULT_SEEKS, NULL);
12160
12161 ;
12162 return 0;
12163}
12164
12165_ACEOF
12166
12167
12168 rm -Rf build && mkdir -p build
12169 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12170 if { 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
12171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12173 ac_status=$?
8934764e 12174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12175 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12178 ac_status=$?
8934764e 12179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12180 (exit $ac_status); }; }; then
12181
8934764e
BB
12182 { $as_echo "$as_me:$LINENO: result: yes" >&5
12183$as_echo "yes" >&6; }
86933a6e
BB
12184
12185cat >>confdefs.h <<\_ACEOF
12186#define HAVE_SET_SHRINKER 1
12187_ACEOF
12188
12189
12190else
8934764e 12191 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
8934764e
BB
12194 { $as_echo "$as_me:$LINENO: result: no" >&5
12195$as_echo "no" >&6; }
86933a6e
BB
12196
12197
12198
12199fi
12200
12201 rm -Rf build
12202
12203
12204
8934764e
BB
12205 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
12206$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
86933a6e
BB
12207
12208
dbe561d8 12209cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12210/* confdefs.h. */
12211_ACEOF
12212cat confdefs.h >>conftest.$ac_ext
12213cat >>conftest.$ac_ext <<_ACEOF
12214/* end confdefs.h. */
12215
12216
12217 #include <linux/namei.h>
12218
12219int
12220main (void)
12221{
12222
12223 struct nameidata nd;
12224
12225 nd.path.mnt = NULL;
12226 nd.path.dentry = NULL;
12227
12228 ;
12229 return 0;
12230}
12231
12232_ACEOF
12233
12234
12235 rm -Rf build && mkdir -p build
12236 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12237 if { 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
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12240 ac_status=$?
8934764e 12241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12242 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
8934764e 12246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12247 (exit $ac_status); }; }; then
12248
8934764e
BB
12249 { $as_echo "$as_me:$LINENO: result: yes" >&5
12250$as_echo "yes" >&6; }
86933a6e
BB
12251
12252cat >>confdefs.h <<\_ACEOF
12253#define HAVE_PATH_IN_NAMEIDATA 1
12254_ACEOF
12255
12256
12257else
8934764e 12258 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12259sed 's/^/| /' conftest.$ac_ext >&5
12260
8934764e
BB
12261 { $as_echo "$as_me:$LINENO: result: no" >&5
12262$as_echo "no" >&6; }
86933a6e
BB
12263
12264
12265
12266fi
12267
12268 rm -Rf build
12269
12270
12271
12272
8934764e
BB
12273 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
12274$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
86933a6e
BB
12275 grep -q -E '[[:space:]]task_curr[[:space:]]' \
12276 $LINUX_OBJ/Module*.symvers 2>/dev/null
12277 rc=$?
12278 if test $rc -ne 0; then
12279 export=0
12280 for file in kernel/sched.c; do
12281 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
12282 "$LINUX_OBJ/$file" 2>/dev/null
12283 rc=$?
12284 if test $rc -eq 0; then
12285 export=1
12286 break;
12287 fi
12288 done
12289 if test $export -eq 0; then
8934764e
BB
12290 { $as_echo "$as_me:$LINENO: result: no" >&5
12291$as_echo "no" >&6; }
86933a6e
BB
12292
12293 else
8934764e
BB
12294 { $as_echo "$as_me:$LINENO: result: yes" >&5
12295$as_echo "yes" >&6; }
86933a6e
BB
12296
12297cat >>confdefs.h <<\_ACEOF
12298#define HAVE_TASK_CURR 1
12299_ACEOF
12300
12301 fi
12302 else
8934764e
BB
12303 { $as_echo "$as_me:$LINENO: result: yes" >&5
12304$as_echo "yes" >&6; }
86933a6e
BB
12305
12306cat >>confdefs.h <<\_ACEOF
12307#define HAVE_TASK_CURR 1
12308_ACEOF
12309
12310 fi
12311
12312
8934764e
BB
12313 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
12314$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
86933a6e
BB
12315
12316
dbe561d8 12317cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12318/* confdefs.h. */
12319_ACEOF
12320cat confdefs.h >>conftest.$ac_ext
12321cat >>conftest.$ac_ext <<_ACEOF
12322/* end confdefs.h. */
12323
12324
12325 #include <linux/sysctl.h>
12326
12327int
12328main (void)
12329{
12330
12331 #ifndef CTL_UNNUMBERED
12332 #error CTL_UNNUMBERED undefined
12333 #endif
12334
12335 ;
12336 return 0;
12337}
12338
12339_ACEOF
12340
12341
12342 rm -Rf build && mkdir -p build
12343 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12344 if { 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
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
8934764e 12348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12349 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
8934764e 12353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12354 (exit $ac_status); }; }; then
12355
8934764e
BB
12356 { $as_echo "$as_me:$LINENO: result: yes" >&5
12357$as_echo "yes" >&6; }
86933a6e
BB
12358
12359cat >>confdefs.h <<\_ACEOF
12360#define HAVE_CTL_UNNUMBERED 1
12361_ACEOF
12362
12363
12364else
8934764e 12365 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12366sed 's/^/| /' conftest.$ac_ext >&5
12367
8934764e
BB
12368 { $as_echo "$as_me:$LINENO: result: no" >&5
12369$as_echo "no" >&6; }
86933a6e
BB
12370
12371
12372
79a3bf13
BB
12373fi
12374
12375 rm -Rf build
12376
12377
12378
12379
12380 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
12381$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12382
12383
dbe561d8 12384cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
12385/* confdefs.h. */
12386_ACEOF
12387cat confdefs.h >>conftest.$ac_ext
12388cat >>conftest.$ac_ext <<_ACEOF
12389/* end confdefs.h. */
12390
12391
12392 #include <linux/sysctl.h>
12393
12394int
12395main (void)
12396{
12397
12398 struct ctl_table ctl;
12399 ctl.ctl_name = 0;
12400
12401 ;
12402 return 0;
12403}
12404
12405_ACEOF
12406
12407
12408 rm -Rf build && mkdir -p build
12409 echo "obj-m := conftest.o" >build/Makefile
12410 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
12411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12412 (eval $ac_try) 2>&5
12413 ac_status=$?
12414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421
12422 { $as_echo "$as_me:$LINENO: result: yes" >&5
12423$as_echo "yes" >&6; }
12424
12425cat >>confdefs.h <<\_ACEOF
12426#define HAVE_CTL_NAME 1
12427_ACEOF
12428
12429
12430else
12431 $as_echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 { $as_echo "$as_me:$LINENO: result: no" >&5
12435$as_echo "no" >&6; }
12436
12437
12438
86933a6e
BB
12439fi
12440
12441 rm -Rf build
12442
12443
12444
8934764e
BB
12445 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
12446$as_echo_n "checking whether fls64() is available... " >&6; }
86933a6e
BB
12447
12448
dbe561d8 12449cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12450/* confdefs.h. */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
12454/* end confdefs.h. */
12455
12456
12457 #include <linux/bitops.h>
12458
12459int
12460main (void)
12461{
12462
12463 return fls64(0);
12464
12465 ;
12466 return 0;
12467}
12468
12469_ACEOF
12470
12471
12472 rm -Rf build && mkdir -p build
12473 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12474 if { 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
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
8934764e 12478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12479 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
8934764e 12483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12484 (exit $ac_status); }; }; then
12485
8934764e
BB
12486 { $as_echo "$as_me:$LINENO: result: yes" >&5
12487$as_echo "yes" >&6; }
86933a6e
BB
12488
12489cat >>confdefs.h <<\_ACEOF
12490#define HAVE_FLS64 1
12491_ACEOF
12492
12493
12494else
8934764e 12495 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12496sed 's/^/| /' conftest.$ac_ext >&5
12497
8934764e
BB
12498 { $as_echo "$as_me:$LINENO: result: no" >&5
12499$as_echo "no" >&6; }
86933a6e
BB
12500
12501
12502
12503fi
12504
12505 rm -Rf build
12506
12507
12508
12509
8934764e
BB
12510 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
12511$as_echo_n "checking whether symbol device_create is exported... " >&6; }
86933a6e
BB
12512 grep -q -E '[[:space:]]device_create[[:space:]]' \
12513 $LINUX_OBJ/Module*.symvers 2>/dev/null
12514 rc=$?
12515 if test $rc -ne 0; then
12516 export=0
12517 for file in drivers/base/core.c; do
12518 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
12519 "$LINUX_OBJ/$file" 2>/dev/null
12520 rc=$?
12521 if test $rc -eq 0; then
12522 export=1
12523 break;
12524 fi
12525 done
12526 if test $export -eq 0; then
8934764e
BB
12527 { $as_echo "$as_me:$LINENO: result: no" >&5
12528$as_echo "no" >&6; }
86933a6e
BB
12529
12530 else
8934764e
BB
12531 { $as_echo "$as_me:$LINENO: result: yes" >&5
12532$as_echo "yes" >&6; }
86933a6e
BB
12533
12534cat >>confdefs.h <<\_ACEOF
12535#define HAVE_DEVICE_CREATE 1
12536_ACEOF
12537
12538 fi
12539 else
8934764e
BB
12540 { $as_echo "$as_me:$LINENO: result: yes" >&5
12541$as_echo "yes" >&6; }
86933a6e
BB
12542
12543cat >>confdefs.h <<\_ACEOF
12544#define HAVE_DEVICE_CREATE 1
12545_ACEOF
12546
12547 fi
12548
12549
12550
8934764e
BB
12551 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
12552$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
86933a6e
BB
12553 tmp_flags="$EXTRA_KCFLAGS"
12554 EXTRA_KCFLAGS="-Werror"
12555
12556
dbe561d8 12557cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12558/* confdefs.h. */
12559_ACEOF
12560cat confdefs.h >>conftest.$ac_ext
12561cat >>conftest.$ac_ext <<_ACEOF
12562/* end confdefs.h. */
12563
12564
12565 #include <linux/device.h>
12566
12567int
12568main (void)
12569{
12570
12571 device_create(NULL, NULL, 0, NULL, "%d", 1);
12572
12573 ;
12574 return 0;
12575}
12576
12577_ACEOF
12578
12579
12580 rm -Rf build && mkdir -p build
12581 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12582 if { 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
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
8934764e 12586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12587 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
8934764e 12591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12592 (exit $ac_status); }; }; then
12593
8934764e
BB
12594 { $as_echo "$as_me:$LINENO: result: yes" >&5
12595$as_echo "yes" >&6; }
86933a6e
BB
12596
12597cat >>confdefs.h <<\_ACEOF
12598#define HAVE_5ARGS_DEVICE_CREATE 1
12599_ACEOF
12600
12601
12602else
8934764e 12603 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12604sed 's/^/| /' conftest.$ac_ext >&5
12605
8934764e
BB
12606 { $as_echo "$as_me:$LINENO: result: no" >&5
12607$as_echo "no" >&6; }
86933a6e
BB
12608
12609
12610
12611fi
12612
12613 rm -Rf build
12614
12615
12616 EXTRA_KCFLAGS="$tmp_flags"
12617
12618
8934764e
BB
12619 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
12620$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
86933a6e
BB
12621 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
12622 $LINUX_OBJ/Module*.symvers 2>/dev/null
12623 rc=$?
12624 if test $rc -ne 0; then
12625 export=0
12626 for file in drivers/base/class.c; do
12627 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
12628 "$LINUX_OBJ/$file" 2>/dev/null
12629 rc=$?
12630 if test $rc -eq 0; then
12631 export=1
12632 break;
12633 fi
12634 done
12635 if test $export -eq 0; then
8934764e
BB
12636 { $as_echo "$as_me:$LINENO: result: no" >&5
12637$as_echo "no" >&6; }
86933a6e
BB
12638
12639 else
8934764e
BB
12640 { $as_echo "$as_me:$LINENO: result: yes" >&5
12641$as_echo "yes" >&6; }
86933a6e
BB
12642
12643cat >>confdefs.h <<\_ACEOF
12644#define HAVE_CLASS_DEVICE_CREATE 1
12645_ACEOF
12646
12647 fi
12648 else
8934764e
BB
12649 { $as_echo "$as_me:$LINENO: result: yes" >&5
12650$as_echo "yes" >&6; }
86933a6e
BB
12651
12652cat >>confdefs.h <<\_ACEOF
12653#define HAVE_CLASS_DEVICE_CREATE 1
12654_ACEOF
12655
12656 fi
12657
12658
12659
8934764e
BB
12660 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
12661$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
86933a6e
BB
12662 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
12663 $LINUX_OBJ/Module*.symvers 2>/dev/null
12664 rc=$?
12665 if test $rc -ne 0; then
12666 export=0
12667 for file in kernel/time.c; do
12668 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
12669 "$LINUX_OBJ/$file" 2>/dev/null
12670 rc=$?
12671 if test $rc -eq 0; then
12672 export=1
12673 break;
12674 fi
12675 done
12676 if test $export -eq 0; then
8934764e
BB
12677 { $as_echo "$as_me:$LINENO: result: no" >&5
12678$as_echo "no" >&6; }
86933a6e
BB
12679
12680 else
8934764e
BB
12681 { $as_echo "$as_me:$LINENO: result: yes" >&5
12682$as_echo "yes" >&6; }
86933a6e
BB
12683
12684cat >>confdefs.h <<\_ACEOF
12685#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12686_ACEOF
12687
12688 fi
12689 else
8934764e
BB
12690 { $as_echo "$as_me:$LINENO: result: yes" >&5
12691$as_echo "yes" >&6; }
86933a6e
BB
12692
12693cat >>confdefs.h <<\_ACEOF
12694#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
12695_ACEOF
12696
12697 fi
12698
12699
12700
8934764e
BB
12701 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
12702$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
86933a6e
BB
12703
12704
dbe561d8 12705cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12706/* confdefs.h. */
12707_ACEOF
12708cat confdefs.h >>conftest.$ac_ext
12709cat >>conftest.$ac_ext <<_ACEOF
12710/* end confdefs.h. */
12711
12712
12713 #include <linux/time.h>
12714 void set_normalized_timespec(struct timespec *ts,
12715 time_t sec, long nsec) { }
12716
12717int
12718main (void)
12719{
12720
12721 ;
12722 return 0;
12723}
12724
12725_ACEOF
12726
12727
12728 rm -Rf build && mkdir -p build
12729 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12730 if { 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
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12733 ac_status=$?
8934764e 12734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12735 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
8934764e 12739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12740 (exit $ac_status); }; }; then
12741
8934764e
BB
12742 { $as_echo "$as_me:$LINENO: result: no" >&5
12743$as_echo "no" >&6; }
86933a6e
BB
12744
12745else
8934764e 12746 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12747sed 's/^/| /' conftest.$ac_ext >&5
12748
8934764e
BB
12749 { $as_echo "$as_me:$LINENO: result: yes" >&5
12750$as_echo "yes" >&6; }
86933a6e
BB
12751
12752cat >>confdefs.h <<\_ACEOF
12753#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
12754_ACEOF
12755
12756
12757
12758
12759fi
12760
12761 rm -Rf build
12762
12763
12764
12765
8934764e
BB
12766 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
12767$as_echo_n "checking whether timespec_sub() is available... " >&6; }
86933a6e
BB
12768
12769
dbe561d8 12770cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12771/* confdefs.h. */
12772_ACEOF
12773cat confdefs.h >>conftest.$ac_ext
12774cat >>conftest.$ac_ext <<_ACEOF
12775/* end confdefs.h. */
12776
12777
12778 #include <linux/time.h>
12779
12780int
12781main (void)
12782{
12783
12784 struct timespec a, b, c = { 0 };
12785 c = timespec_sub(a, b);
12786
12787 ;
12788 return 0;
12789}
12790
12791_ACEOF
12792
12793
12794 rm -Rf build && mkdir -p build
12795 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12796 if { 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
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12799 ac_status=$?
8934764e 12800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12801 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
8934764e 12805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12806 (exit $ac_status); }; }; then
12807
8934764e
BB
12808 { $as_echo "$as_me:$LINENO: result: yes" >&5
12809$as_echo "yes" >&6; }
86933a6e
BB
12810
12811cat >>confdefs.h <<\_ACEOF
12812#define HAVE_TIMESPEC_SUB 1
12813_ACEOF
12814
12815
12816else
8934764e 12817 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12818sed 's/^/| /' conftest.$ac_ext >&5
12819
8934764e
BB
12820 { $as_echo "$as_me:$LINENO: result: no" >&5
12821$as_echo "no" >&6; }
86933a6e
BB
12822
12823
12824
12825fi
12826
12827 rm -Rf build
12828
12829
12830
12831
8934764e
BB
12832 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
12833$as_echo_n "checking whether init_utsname() is available... " >&6; }
86933a6e
BB
12834
12835
dbe561d8 12836cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842
12843
12844 #include <linux/utsname.h>
12845
12846int
12847main (void)
12848{
12849
12850 struct new_utsname *a = init_utsname();
12851
12852 ;
12853 return 0;
12854}
12855
12856_ACEOF
12857
12858
12859 rm -Rf build && mkdir -p build
12860 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12861 if { 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
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
8934764e 12865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12866 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12868 (eval $ac_try) 2>&5
12869 ac_status=$?
8934764e 12870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12871 (exit $ac_status); }; }; then
12872
8934764e
BB
12873 { $as_echo "$as_me:$LINENO: result: yes" >&5
12874$as_echo "yes" >&6; }
86933a6e
BB
12875
12876cat >>confdefs.h <<\_ACEOF
12877#define HAVE_INIT_UTSNAME 1
12878_ACEOF
12879
12880
12881else
8934764e 12882 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
8934764e
BB
12885 { $as_echo "$as_me:$LINENO: result: no" >&5
12886$as_echo "no" >&6; }
86933a6e
BB
12887
12888
12889
12890fi
12891
12892 rm -Rf build
12893
12894
12895
12896
8934764e
BB
12897 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
12898$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
86933a6e
BB
12899
12900
dbe561d8 12901cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12902/* confdefs.h. */
12903_ACEOF
12904cat confdefs.h >>conftest.$ac_ext
12905cat >>conftest.$ac_ext <<_ACEOF
12906/* end confdefs.h. */
12907
12908
12909 #include <linux/fdtable.h>
12910
12911int
12912main (void)
12913{
12914
12915 return 0;
12916
12917 ;
12918 return 0;
12919}
12920
12921_ACEOF
12922
12923
12924 rm -Rf build && mkdir -p build
12925 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12926 if { 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
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
8934764e 12930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12931 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
8934764e 12935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
12936 (exit $ac_status); }; }; then
12937
12938
12939cat >>confdefs.h <<\_ACEOF
12940#define HAVE_FDTABLE_HEADER 1
12941_ACEOF
12942
8934764e
BB
12943 { $as_echo "$as_me:$LINENO: result: yes" >&5
12944$as_echo "yes" >&6; }
86933a6e
BB
12945
12946
12947else
8934764e 12948 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
12949sed 's/^/| /' conftest.$ac_ext >&5
12950
8934764e
BB
12951 { $as_echo "$as_me:$LINENO: result: no" >&5
12952$as_echo "no" >&6; }
86933a6e
BB
12953
12954
12955
12956
12957fi
12958
12959 rm -Rf build
12960
12961
12962
12963
12964
8934764e
BB
12965 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
12966$as_echo_n "checking whether files_fdtable() is available... " >&6; }
86933a6e
BB
12967
12968
dbe561d8 12969cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
12970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h. */
12975
12976
12977 #include <linux/sched.h>
12978 #include <linux/file.h>
12979 #ifdef HAVE_FDTABLE_HEADER
12980 #include <linux/fdtable.h>
12981 #endif
12982
12983int
12984main (void)
12985{
12986
12987 struct files_struct *files = current->files;
12988 struct fdtable *fdt = files_fdtable(files);
12989
12990 ;
12991 return 0;
12992}
12993
12994_ACEOF
12995
12996
12997 rm -Rf build && mkdir -p build
12998 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 12999 if { 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
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
8934764e 13003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13004 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
8934764e 13008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13009 (exit $ac_status); }; }; then
13010
8934764e
BB
13011 { $as_echo "$as_me:$LINENO: result: yes" >&5
13012$as_echo "yes" >&6; }
86933a6e
BB
13013
13014cat >>confdefs.h <<\_ACEOF
13015#define HAVE_FILES_FDTABLE 1
13016_ACEOF
13017
13018
13019else
8934764e 13020 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
8934764e
BB
13023 { $as_echo "$as_me:$LINENO: result: no" >&5
13024$as_echo "no" >&6; }
86933a6e
BB
13025
13026
13027
13028fi
13029
13030 rm -Rf build
13031
13032
13033
13034
8934764e
BB
13035 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
13036$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
86933a6e
BB
13037
13038
dbe561d8 13039cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13040/* confdefs.h. */
13041_ACEOF
13042cat confdefs.h >>conftest.$ac_ext
13043cat >>conftest.$ac_ext <<_ACEOF
13044/* end confdefs.h. */
13045
13046
13047 #include <linux/uaccess.h>
13048
13049int
13050main (void)
13051{
13052
13053 return 0;
13054
13055 ;
13056 return 0;
13057}
13058
13059_ACEOF
13060
13061
13062 rm -Rf build && mkdir -p build
13063 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13064 if { 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
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
8934764e 13068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13069 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13071 (eval $ac_try) 2>&5
13072 ac_status=$?
8934764e 13073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13074 (exit $ac_status); }; }; then
13075
13076
13077cat >>confdefs.h <<\_ACEOF
13078#define HAVE_UACCESS_HEADER 1
13079_ACEOF
13080
8934764e
BB
13081 { $as_echo "$as_me:$LINENO: result: yes" >&5
13082$as_echo "yes" >&6; }
86933a6e
BB
13083
13084
13085else
8934764e 13086 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13087sed 's/^/| /' conftest.$ac_ext >&5
13088
8934764e
BB
13089 { $as_echo "$as_me:$LINENO: result: no" >&5
13090$as_echo "no" >&6; }
86933a6e
BB
13091
13092
13093
13094
13095fi
13096
13097 rm -Rf build
13098
13099
13100
13101
13102
8934764e
BB
13103 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
13104$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
86933a6e
BB
13105
13106
dbe561d8 13107cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13108/* confdefs.h. */
13109_ACEOF
13110cat confdefs.h >>conftest.$ac_ext
13111cat >>conftest.$ac_ext <<_ACEOF
13112/* end confdefs.h. */
13113
13114
13115 #include <linux/slab.h>
13116
13117int
13118main (void)
13119{
13120
13121 void *a = kmalloc_node(1, GFP_KERNEL, 0);
13122
13123 ;
13124 return 0;
13125}
13126
13127_ACEOF
13128
13129
13130 rm -Rf build && mkdir -p build
13131 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13132 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
86933a6e
BB
13133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13134 (eval $ac_try) 2>&5
13135 ac_status=$?
8934764e 13136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13137 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
8934764e 13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13142 (exit $ac_status); }; }; then
13143
8934764e
BB
13144 { $as_echo "$as_me:$LINENO: result: yes" >&5
13145$as_echo "yes" >&6; }
86933a6e
BB
13146
13147cat >>confdefs.h <<\_ACEOF
13148#define HAVE_KMALLOC_NODE 1
13149_ACEOF
13150
13151
13152else
8934764e 13153 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13154sed 's/^/| /' conftest.$ac_ext >&5
13155
8934764e
BB
13156 { $as_echo "$as_me:$LINENO: result: no" >&5
13157$as_echo "no" >&6; }
86933a6e
BB
13158
13159
13160
13161fi
13162
13163 rm -Rf build
13164
13165
13166
13167
8934764e
BB
13168 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
13169$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
86933a6e
BB
13170 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
13171 $LINUX_OBJ/Module*.symvers 2>/dev/null
13172 rc=$?
13173 if test $rc -ne 0; then
13174 export=0
13175 for file in ; do
13176 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
13177 "$LINUX_OBJ/$file" 2>/dev/null
13178 rc=$?
13179 if test $rc -eq 0; then
13180 export=1
13181 break;
13182 fi
13183 done
13184 if test $export -eq 0; then
8934764e
BB
13185 { $as_echo "$as_me:$LINENO: result: no" >&5
13186$as_echo "no" >&6; }
86933a6e
BB
13187
13188 else
8934764e
BB
13189 { $as_echo "$as_me:$LINENO: result: yes" >&5
13190$as_echo "yes" >&6; }
86933a6e
BB
13191
13192cat >>confdefs.h <<\_ACEOF
13193#define HAVE_MONOTONIC_CLOCK 1
13194_ACEOF
13195
13196 fi
13197 else
8934764e
BB
13198 { $as_echo "$as_me:$LINENO: result: yes" >&5
13199$as_echo "yes" >&6; }
86933a6e
BB
13200
13201cat >>confdefs.h <<\_ACEOF
13202#define HAVE_MONOTONIC_CLOCK 1
13203_ACEOF
13204
13205 fi
13206
13207
13208
8934764e
BB
13209 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
13210$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
86933a6e
BB
13211
13212
dbe561d8 13213cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13214/* confdefs.h. */
13215_ACEOF
13216cat confdefs.h >>conftest.$ac_ext
13217cat >>conftest.$ac_ext <<_ACEOF
13218/* end confdefs.h. */
13219
13220
13221 #include <linux/fs.h>
13222 #include <linux/mutex.h>
13223
13224int
13225main (void)
13226{
13227
13228 struct inode i;
13229 mutex_init(&i.i_mutex);
13230
13231 ;
13232 return 0;
13233}
13234
13235_ACEOF
13236
13237
13238 rm -Rf build && mkdir -p build
13239 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13240 if { 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
13241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13242 (eval $ac_try) 2>&5
13243 ac_status=$?
8934764e 13244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13245 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
8934764e 13249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13250 (exit $ac_status); }; }; then
13251
8934764e
BB
13252 { $as_echo "$as_me:$LINENO: result: yes" >&5
13253$as_echo "yes" >&6; }
86933a6e
BB
13254
13255cat >>confdefs.h <<\_ACEOF
13256#define HAVE_INODE_I_MUTEX 1
13257_ACEOF
13258
13259
13260else
8934764e 13261 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
8934764e
BB
13264 { $as_echo "$as_me:$LINENO: result: no" >&5
13265$as_echo "no" >&6; }
86933a6e
BB
13266
13267
13268
13269fi
13270
13271 rm -Rf build
13272
13273
13274
13275
8934764e
BB
13276 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
13277$as_echo_n "checking whether struct mutex has owner... " >&6; }
4d54fdee
BB
13278
13279
dbe561d8 13280cat confdefs.h - <<_ACEOF >conftest.c
4d54fdee
BB
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
13286
13287
13288 #include <linux/mutex.h>
13289
13290int
13291main (void)
13292{
13293
13294 struct mutex mtx;
13295 mtx.owner = NULL;
13296
13297 ;
13298 return 0;
13299}
13300
13301_ACEOF
13302
13303
13304 rm -Rf build && mkdir -p build
13305 echo "obj-m := conftest.o" >build/Makefile
13306 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
8934764e 13310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13311 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
8934764e 13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4d54fdee
BB
13316 (exit $ac_status); }; }; then
13317
8934764e
BB
13318 { $as_echo "$as_me:$LINENO: result: yes" >&5
13319$as_echo "yes" >&6; }
4d54fdee
BB
13320
13321cat >>confdefs.h <<\_ACEOF
13322#define HAVE_MUTEX_OWNER 1
13323_ACEOF
13324
13325
13326else
8934764e 13327 $as_echo "$as_me: failed program was:" >&5
4d54fdee
BB
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
8934764e
BB
13330 { $as_echo "$as_me:$LINENO: result: no" >&5
13331$as_echo "no" >&6; }
4d54fdee
BB
13332
13333
13334
13335fi
13336
13337 rm -Rf build
13338
13339
13340
13341
8934764e
BB
13342 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
13343$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
86933a6e
BB
13344
13345
dbe561d8 13346cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13347/* confdefs.h. */
13348_ACEOF
13349cat confdefs.h >>conftest.$ac_ext
13350cat >>conftest.$ac_ext <<_ACEOF
13351/* end confdefs.h. */
13352
13353
13354 #include <linux/mutex.h>
13355
13356int
13357main (void)
13358{
13359
13360 struct mutex mutex;
13361 mutex_init(&mutex);
13362 mutex_lock_nested(&mutex, 0);
13363
13364 ;
13365 return 0;
13366}
13367
13368_ACEOF
13369
13370
13371 rm -Rf build && mkdir -p build
13372 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13373 if { 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
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13376 ac_status=$?
8934764e 13377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13378 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13381 ac_status=$?
8934764e 13382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13383 (exit $ac_status); }; }; then
13384
8934764e
BB
13385 { $as_echo "$as_me:$LINENO: result: yes" >&5
13386$as_echo "yes" >&6; }
86933a6e
BB
13387
13388cat >>confdefs.h <<\_ACEOF
13389#define HAVE_MUTEX_LOCK_NESTED 1
13390_ACEOF
13391
13392
13393else
8934764e 13394 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13395sed 's/^/| /' conftest.$ac_ext >&5
13396
8934764e
BB
13397 { $as_echo "$as_me:$LINENO: result: no" >&5
13398$as_echo "no" >&6; }
86933a6e
BB
13399
13400
13401
13402fi
13403
13404 rm -Rf build
13405
13406
13407
13408
8934764e
BB
13409 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
13410$as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
86933a6e
BB
13411 grep -q -E '[[:space:]]div64_64[[:space:]]' \
13412 $LINUX_OBJ/Module*.symvers 2>/dev/null
13413 rc=$?
13414 if test $rc -ne 0; then
13415 export=0
13416 for file in ; do
13417 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
13418 "$LINUX_OBJ/$file" 2>/dev/null
13419 rc=$?
13420 if test $rc -eq 0; then
13421 export=1
13422 break;
13423 fi
13424 done
13425 if test $export -eq 0; then
8934764e
BB
13426 { $as_echo "$as_me:$LINENO: result: no" >&5
13427$as_echo "no" >&6; }
86933a6e
BB
13428
13429 else
8934764e
BB
13430 { $as_echo "$as_me:$LINENO: result: yes" >&5
13431$as_echo "yes" >&6; }
86933a6e
BB
13432
13433cat >>confdefs.h <<\_ACEOF
13434#define HAVE_DIV64_64 1
13435_ACEOF
13436
13437 fi
13438 else
8934764e
BB
13439 { $as_echo "$as_me:$LINENO: result: yes" >&5
13440$as_echo "yes" >&6; }
86933a6e
BB
13441
13442cat >>confdefs.h <<\_ACEOF
13443#define HAVE_DIV64_64 1
13444_ACEOF
13445
13446 fi
13447
13448
13449
8934764e
BB
13450 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
13451$as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
86933a6e
BB
13452 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
13453 $LINUX_OBJ/Module*.symvers 2>/dev/null
13454 rc=$?
13455 if test $rc -ne 0; then
13456 export=0
13457 for file in ; do
13458 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
13459 "$LINUX_OBJ/$file" 2>/dev/null
13460 rc=$?
13461 if test $rc -eq 0; then
13462 export=1
13463 break;
13464 fi
13465 done
13466 if test $export -eq 0; then
8934764e
BB
13467 { $as_echo "$as_me:$LINENO: result: no" >&5
13468$as_echo "no" >&6; }
86933a6e
BB
13469
13470 else
8934764e
BB
13471 { $as_echo "$as_me:$LINENO: result: yes" >&5
13472$as_echo "yes" >&6; }
86933a6e
BB
13473
13474cat >>confdefs.h <<\_ACEOF
13475#define HAVE_DIV64_U64 1
13476_ACEOF
13477
13478 fi
13479 else
8934764e
BB
13480 { $as_echo "$as_me:$LINENO: result: yes" >&5
13481$as_echo "yes" >&6; }
86933a6e
BB
13482
13483cat >>confdefs.h <<\_ACEOF
13484#define HAVE_DIV64_U64 1
13485_ACEOF
13486
13487 fi
13488
13489
13490
8934764e
BB
13491 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
13492$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
86933a6e
BB
13493
13494
dbe561d8 13495cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13496/* confdefs.h. */
13497_ACEOF
13498cat confdefs.h >>conftest.$ac_ext
13499cat >>conftest.$ac_ext <<_ACEOF
13500/* end confdefs.h. */
13501
13502
13503 #include <linux/smp.h>
13504
13505int
13506main (void)
13507{
13508
13509 on_each_cpu(NULL, NULL, 0);
13510
13511 ;
13512 return 0;
13513}
13514
13515_ACEOF
13516
13517
13518 rm -Rf build && mkdir -p build
13519 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13520 if { 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
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
8934764e 13524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13525 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
8934764e 13529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13530 (exit $ac_status); }; }; then
13531
8934764e
BB
13532 { $as_echo "$as_me:$LINENO: result: yes" >&5
13533$as_echo "yes" >&6; }
86933a6e
BB
13534
13535cat >>confdefs.h <<\_ACEOF
13536#define HAVE_3ARGS_ON_EACH_CPU 1
13537_ACEOF
13538
13539
13540else
8934764e 13541 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13542sed 's/^/| /' conftest.$ac_ext >&5
13543
8934764e
BB
13544 { $as_echo "$as_me:$LINENO: result: no" >&5
13545$as_echo "no" >&6; }
86933a6e
BB
13546
13547
13548
13549fi
13550
13551 rm -Rf build
13552
13553
13554
13555
8934764e
BB
13556 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
13557$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
86933a6e
BB
13558 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
13559 $LINUX_OBJ/Module*.symvers 2>/dev/null
13560 rc=$?
13561 if test $rc -ne 0; then
13562 export=0
13563 for file in ; do
13564 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
13565 "$LINUX_OBJ/$file" 2>/dev/null
13566 rc=$?
13567 if test $rc -eq 0; then
13568 export=1
13569 break;
13570 fi
13571 done
13572 if test $export -eq 0; then
8934764e
BB
13573 { $as_echo "$as_me:$LINENO: result: no" >&5
13574$as_echo "no" >&6; }
86933a6e
BB
13575
13576 else
8934764e
BB
13577 { $as_echo "$as_me:$LINENO: result: yes" >&5
13578$as_echo "yes" >&6; }
86933a6e
BB
13579
13580cat >>confdefs.h <<\_ACEOF
13581#define HAVE_KALLSYMS_LOOKUP_NAME 1
13582_ACEOF
13583
13584 fi
13585 else
8934764e
BB
13586 { $as_echo "$as_me:$LINENO: result: yes" >&5
13587$as_echo "yes" >&6; }
86933a6e
BB
13588
13589cat >>confdefs.h <<\_ACEOF
13590#define HAVE_KALLSYMS_LOOKUP_NAME 1
13591_ACEOF
13592
13593 fi
13594
13595
13596
8934764e
BB
13597 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
13598$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
86933a6e
BB
13599 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
13600 $LINUX_OBJ/Module*.symvers 2>/dev/null
13601 rc=$?
13602 if test $rc -ne 0; then
13603 export=0
13604 for file in ; do
13605 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
13606 "$LINUX_OBJ/$file" 2>/dev/null
13607 rc=$?
13608 if test $rc -eq 0; then
13609 export=1
13610 break;
13611 fi
13612 done
13613 if test $export -eq 0; then
8934764e
BB
13614 { $as_echo "$as_me:$LINENO: result: no" >&5
13615$as_echo "no" >&6; }
86933a6e
BB
13616
13617 else
8934764e
BB
13618 { $as_echo "$as_me:$LINENO: result: yes" >&5
13619$as_echo "yes" >&6; }
86933a6e
BB
13620
13621cat >>confdefs.h <<\_ACEOF
13622#define HAVE_GET_VMALLOC_INFO 1
13623_ACEOF
13624
13625 fi
13626 else
8934764e
BB
13627 { $as_echo "$as_me:$LINENO: result: yes" >&5
13628$as_echo "yes" >&6; }
86933a6e
BB
13629
13630cat >>confdefs.h <<\_ACEOF
13631#define HAVE_GET_VMALLOC_INFO 1
13632_ACEOF
13633
13634 fi
13635
13636
13637
8934764e
BB
13638 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
13639$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
86933a6e
BB
13640 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
13641 rc=$?
13642 if test $rc -eq 0; then
8934764e
BB
13643 { $as_echo "$as_me:$LINENO: result: yes" >&5
13644$as_echo "yes" >&6; }
86933a6e
BB
13645
13646cat >>confdefs.h <<\_ACEOF
13647#define HAVE_PGDAT_HELPERS 1
13648_ACEOF
13649
13650 else
8934764e
BB
13651 { $as_echo "$as_me:$LINENO: result: no" >&5
13652$as_echo "no" >&6; }
86933a6e
BB
13653 fi
13654
13655
8934764e
BB
13656 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
13657$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
86933a6e
BB
13658 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
13659 $LINUX_OBJ/Module*.symvers 2>/dev/null
13660 rc=$?
13661 if test $rc -ne 0; then
13662 export=0
13663 for file in ; do
13664 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
13665 "$LINUX_OBJ/$file" 2>/dev/null
13666 rc=$?
13667 if test $rc -eq 0; then
13668 export=1
13669 break;
13670 fi
13671 done
13672 if test $export -eq 0; then
8934764e
BB
13673 { $as_echo "$as_me:$LINENO: result: no" >&5
13674$as_echo "no" >&6; }
86933a6e
BB
13675
13676 else
8934764e
BB
13677 { $as_echo "$as_me:$LINENO: result: yes" >&5
13678$as_echo "yes" >&6; }
86933a6e
BB
13679
13680cat >>confdefs.h <<\_ACEOF
13681#define HAVE_FIRST_ONLINE_PGDAT 1
13682_ACEOF
13683
13684 fi
13685 else
8934764e
BB
13686 { $as_echo "$as_me:$LINENO: result: yes" >&5
13687$as_echo "yes" >&6; }
86933a6e
BB
13688
13689cat >>confdefs.h <<\_ACEOF
13690#define HAVE_FIRST_ONLINE_PGDAT 1
13691_ACEOF
13692
13693 fi
13694
13695
13696
8934764e
BB
13697 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
13698$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
86933a6e
BB
13699 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
13700 $LINUX_OBJ/Module*.symvers 2>/dev/null
13701 rc=$?
13702 if test $rc -ne 0; then
13703 export=0
13704 for file in ; do
13705 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
13706 "$LINUX_OBJ/$file" 2>/dev/null
13707 rc=$?
13708 if test $rc -eq 0; then
13709 export=1
13710 break;
13711 fi
13712 done
13713 if test $export -eq 0; then
8934764e
BB
13714 { $as_echo "$as_me:$LINENO: result: no" >&5
13715$as_echo "no" >&6; }
86933a6e
BB
13716
13717 else
8934764e
BB
13718 { $as_echo "$as_me:$LINENO: result: yes" >&5
13719$as_echo "yes" >&6; }
86933a6e
BB
13720
13721cat >>confdefs.h <<\_ACEOF
13722#define HAVE_NEXT_ONLINE_PGDAT 1
13723_ACEOF
13724
13725 fi
13726 else
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_NEXT_ONLINE_PGDAT 1
13732_ACEOF
13733
13734 fi
13735
13736
13737
8934764e
BB
13738 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
13739$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
86933a6e
BB
13740 grep -q -E '[[:space:]]next_zone[[:space:]]' \
13741 $LINUX_OBJ/Module*.symvers 2>/dev/null
13742 rc=$?
13743 if test $rc -ne 0; then
13744 export=0
13745 for file in ; do
13746 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
13747 "$LINUX_OBJ/$file" 2>/dev/null
13748 rc=$?
13749 if test $rc -eq 0; then
13750 export=1
13751 break;
13752 fi
13753 done
13754 if test $export -eq 0; then
8934764e
BB
13755 { $as_echo "$as_me:$LINENO: result: no" >&5
13756$as_echo "no" >&6; }
86933a6e
BB
13757
13758 else
8934764e
BB
13759 { $as_echo "$as_me:$LINENO: result: yes" >&5
13760$as_echo "yes" >&6; }
86933a6e
BB
13761
13762cat >>confdefs.h <<\_ACEOF
13763#define HAVE_NEXT_ZONE 1
13764_ACEOF
13765
13766 fi
13767 else
8934764e
BB
13768 { $as_echo "$as_me:$LINENO: result: yes" >&5
13769$as_echo "yes" >&6; }
86933a6e
BB
13770
13771cat >>confdefs.h <<\_ACEOF
13772#define HAVE_NEXT_ZONE 1
13773_ACEOF
13774
13775 fi
13776
13777
13778
8934764e
BB
13779 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
13780$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
86933a6e
BB
13781 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
13782 $LINUX_OBJ/Module*.symvers 2>/dev/null
13783 rc=$?
13784 if test $rc -ne 0; then
13785 export=0
13786 for file in ; do
13787 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
13788 "$LINUX_OBJ/$file" 2>/dev/null
13789 rc=$?
13790 if test $rc -eq 0; then
13791 export=1
13792 break;
13793 fi
13794 done
13795 if test $export -eq 0; then
8934764e
BB
13796 { $as_echo "$as_me:$LINENO: result: no" >&5
13797$as_echo "no" >&6; }
86933a6e
BB
13798
13799 else
8934764e
BB
13800 { $as_echo "$as_me:$LINENO: result: yes" >&5
13801$as_echo "yes" >&6; }
86933a6e
BB
13802
13803cat >>confdefs.h <<\_ACEOF
13804#define HAVE_PGDAT_LIST 1
13805_ACEOF
13806
13807 fi
13808 else
8934764e
BB
13809 { $as_echo "$as_me:$LINENO: result: yes" >&5
13810$as_echo "yes" >&6; }
86933a6e
BB
13811
13812cat >>confdefs.h <<\_ACEOF
13813#define HAVE_PGDAT_LIST 1
13814_ACEOF
13815
13816 fi
13817
13818
13819
8934764e
BB
13820 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
13821$as_echo_n "checking whether global_page_state() is available... " >&6; }
86933a6e 13822
86933a6e 13823
dbe561d8 13824cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 13825/* confdefs.h. */
86933a6e 13826_ACEOF
6ae7fef5
BB
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
13830
13831
13832 #include <linux/mm.h>
13833
13834int
13835main (void)
13836{
13837
13838 unsigned long state;
13839 state = global_page_state(0);
13840
13841 ;
13842 return 0;
13843}
13844
13845_ACEOF
13846
13847
13848 rm -Rf build && mkdir -p build
13849 echo "obj-m := conftest.o" >build/Makefile
13850 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
13851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852 (eval $ac_try) 2>&5
13853 ac_status=$?
8934764e 13854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
13855 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
8934764e 13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 13860 (exit $ac_status); }; }; then
86933a6e 13861
8934764e
BB
13862 { $as_echo "$as_me:$LINENO: result: yes" >&5
13863$as_echo "yes" >&6; }
86933a6e
BB
13864
13865cat >>confdefs.h <<\_ACEOF
6ae7fef5 13866#define HAVE_GLOBAL_PAGE_STATE 1
86933a6e
BB
13867_ACEOF
13868
6ae7fef5
BB
13869
13870else
8934764e 13871 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
8934764e
BB
13874 { $as_echo "$as_me:$LINENO: result: no" >&5
13875$as_echo "no" >&6; }
6ae7fef5
BB
13876
13877
13878
13879fi
13880
13881 rm -Rf build
86933a6e
BB
13882
13883
13884
6ae7fef5 13885
8934764e
BB
13886 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
13887$as_echo_n "checking whether page state NR_FREE_PAGES 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
6ae7fef5 13898 #include <linux/mm.h>
86933a6e
BB
13899
13900int
13901main (void)
13902{
13903
6ae7fef5
BB
13904 enum zone_stat_item zsi;
13905 zsi = NR_FREE_PAGES;
86933a6e
BB
13906
13907 ;
13908 return 0;
13909}
13910
13911_ACEOF
13912
13913
13914 rm -Rf build && mkdir -p build
13915 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 13916 if { 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
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13919 ac_status=$?
8934764e 13920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13921 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
13922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
8934764e 13925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
13926 (exit $ac_status); }; }; then
13927
8934764e
BB
13928 { $as_echo "$as_me:$LINENO: result: yes" >&5
13929$as_echo "yes" >&6; }
86933a6e
BB
13930
13931cat >>confdefs.h <<\_ACEOF
6ae7fef5 13932#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
86933a6e
BB
13933_ACEOF
13934
13935
13936else
8934764e 13937 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
13938sed 's/^/| /' conftest.$ac_ext >&5
13939
8934764e
BB
13940 { $as_echo "$as_me:$LINENO: result: no" >&5
13941$as_echo "no" >&6; }
86933a6e
BB
13942
13943
13944
13945fi
13946
13947 rm -Rf build
13948
13949
13950
13951
8934764e
BB
13952 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
13953$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
86933a6e
BB
13954
13955
dbe561d8 13956cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
13957/* confdefs.h. */
13958_ACEOF
13959cat confdefs.h >>conftest.$ac_ext
13960cat >>conftest.$ac_ext <<_ACEOF
13961/* end confdefs.h. */
13962
13963
6ae7fef5 13964 #include <linux/mm.h>
86933a6e
BB
13965
13966int
13967main (void)
13968{
13969
6ae7fef5
BB
13970 enum zone_stat_item zsi;
13971 zsi = NR_INACTIVE;
86933a6e
BB
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
6ae7fef5 13998#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
86933a6e
BB
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
8934764e
BB
14017 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
14018$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
86933a6e
BB
14019
14020
dbe561d8 14021cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14022/* confdefs.h. */
14023_ACEOF
14024cat confdefs.h >>conftest.$ac_ext
14025cat >>conftest.$ac_ext <<_ACEOF
14026/* end confdefs.h. */
14027
14028
6ae7fef5 14029 #include <linux/mm.h>
86933a6e
BB
14030
14031int
14032main (void)
14033{
14034
6ae7fef5
BB
14035 enum zone_stat_item zsi;
14036 zsi = NR_INACTIVE_ANON;
86933a6e
BB
14037
14038 ;
14039 return 0;
14040}
14041
14042_ACEOF
14043
14044
14045 rm -Rf build && mkdir -p build
14046 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14047 if { 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
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
8934764e 14051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14055 ac_status=$?
8934764e 14056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14057 (exit $ac_status); }; }; then
14058
8934764e
BB
14059 { $as_echo "$as_me:$LINENO: result: yes" >&5
14060$as_echo "yes" >&6; }
86933a6e
BB
14061
14062cat >>confdefs.h <<\_ACEOF
6ae7fef5 14063#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
86933a6e
BB
14064_ACEOF
14065
14066
14067else
8934764e 14068 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14069sed 's/^/| /' conftest.$ac_ext >&5
14070
8934764e
BB
14071 { $as_echo "$as_me:$LINENO: result: no" >&5
14072$as_echo "no" >&6; }
86933a6e
BB
14073
14074
14075
14076fi
14077
14078 rm -Rf build
14079
14080
14081
8934764e
BB
14082 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
14083$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
86933a6e
BB
14084
14085
dbe561d8 14086cat confdefs.h - <<_ACEOF >conftest.c
86933a6e
BB
14087/* confdefs.h. */
14088_ACEOF
14089cat confdefs.h >>conftest.$ac_ext
14090cat >>conftest.$ac_ext <<_ACEOF
14091/* end confdefs.h. */
14092
14093
6ae7fef5 14094 #include <linux/mm.h>
86933a6e
BB
14095
14096int
14097main (void)
14098{
14099
6ae7fef5
BB
14100 enum zone_stat_item zsi;
14101 zsi = NR_INACTIVE_FILE;
86933a6e
BB
14102
14103 ;
14104 return 0;
14105}
14106
14107_ACEOF
14108
14109
14110 rm -Rf build && mkdir -p build
14111 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 14112 if { 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
14113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114 (eval $ac_try) 2>&5
14115 ac_status=$?
8934764e 14116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14117 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
8934764e 14121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
86933a6e
BB
14122 (exit $ac_status); }; }; then
14123
8934764e
BB
14124 { $as_echo "$as_me:$LINENO: result: yes" >&5
14125$as_echo "yes" >&6; }
86933a6e
BB
14126
14127cat >>confdefs.h <<\_ACEOF
6ae7fef5 14128#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
86933a6e
BB
14129_ACEOF
14130
14131
14132else
8934764e 14133 $as_echo "$as_me: failed program was:" >&5
86933a6e
BB
14134sed 's/^/| /' conftest.$ac_ext >&5
14135
8934764e
BB
14136 { $as_echo "$as_me:$LINENO: result: no" >&5
14137$as_echo "no" >&6; }
86933a6e
BB
14138
14139
14140
14141fi
14142
14143 rm -Rf build
14144
14145
14146
ec7d53e9 14147
8934764e
BB
14148 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
14149$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
ec7d53e9
BB
14150
14151
dbe561d8 14152cat confdefs.h - <<_ACEOF >conftest.c
ec7d53e9
BB
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
14158
14159
6ae7fef5 14160 #include <linux/mm.h>
ec7d53e9
BB
14161
14162int
14163main (void)
14164{
14165
6ae7fef5
BB
14166 enum zone_stat_item zsi;
14167 zsi = NR_ACTIVE;
ec7d53e9
BB
14168
14169 ;
14170 return 0;
14171}
14172
14173_ACEOF
14174
14175
14176 rm -Rf build && mkdir -p build
14177 echo "obj-m := conftest.o" >build/Makefile
14178 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
8934764e 14182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14183 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
8934764e 14187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ec7d53e9
BB
14188 (exit $ac_status); }; }; then
14189
8934764e
BB
14190 { $as_echo "$as_me:$LINENO: result: yes" >&5
14191$as_echo "yes" >&6; }
ec7d53e9
BB
14192
14193cat >>confdefs.h <<\_ACEOF
6ae7fef5 14194#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
ec7d53e9
BB
14195_ACEOF
14196
14197
14198else
8934764e 14199 $as_echo "$as_me: failed program was:" >&5
ec7d53e9
BB
14200sed 's/^/| /' conftest.$ac_ext >&5
14201
8934764e
BB
14202 { $as_echo "$as_me:$LINENO: result: no" >&5
14203$as_echo "no" >&6; }
ec7d53e9
BB
14204
14205
14206
14207fi
14208
14209 rm -Rf build
14210
14211
14212
8934764e
BB
14213 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
14214$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
ec7d53e9 14215
ec7d53e9 14216
dbe561d8 14217cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14218/* confdefs.h. */
14219_ACEOF
14220cat confdefs.h >>conftest.$ac_ext
14221cat >>conftest.$ac_ext <<_ACEOF
14222/* end confdefs.h. */
14223
14224
14225 #include <linux/mm.h>
14226
14227int
14228main (void)
14229{
14230
14231 enum zone_stat_item zsi;
14232 zsi = NR_ACTIVE_ANON;
14233
14234 ;
14235 return 0;
14236}
ec7d53e9 14237
ec7d53e9
BB
14238_ACEOF
14239
6ae7fef5
BB
14240
14241 rm -Rf build && mkdir -p build
14242 echo "obj-m := conftest.o" >build/Makefile
14243 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
8934764e 14247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14248 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14251 ac_status=$?
8934764e 14252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14253 (exit $ac_status); }; }; then
14254
8934764e
BB
14255 { $as_echo "$as_me:$LINENO: result: yes" >&5
14256$as_echo "yes" >&6; }
ec7d53e9
BB
14257
14258cat >>confdefs.h <<\_ACEOF
6ae7fef5 14259#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
ec7d53e9
BB
14260_ACEOF
14261
ec7d53e9 14262
6ae7fef5 14263else
8934764e 14264 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 14265sed 's/^/| /' conftest.$ac_ext >&5
ec7d53e9 14266
8934764e
BB
14267 { $as_echo "$as_me:$LINENO: result: no" >&5
14268$as_echo "no" >&6; }
bf9f3bac 14269
bf9f3bac 14270
bf9f3bac 14271
6ae7fef5 14272fi
bf9f3bac 14273
6ae7fef5 14274 rm -Rf build
bf9f3bac 14275
bf9f3bac 14276
bf9f3bac 14277
8934764e
BB
14278 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
14279$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 14280
bf9f3bac 14281
dbe561d8 14282cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14283/* confdefs.h. */
14284_ACEOF
14285cat confdefs.h >>conftest.$ac_ext
14286cat >>conftest.$ac_ext <<_ACEOF
14287/* end confdefs.h. */
bf9f3bac 14288
bf9f3bac 14289
6ae7fef5 14290 #include <linux/mm.h>
bf9f3bac 14291
6ae7fef5
BB
14292int
14293main (void)
14294{
14295
14296 enum zone_stat_item zsi;
14297 zsi = NR_ACTIVE_FILE;
14298
14299 ;
14300 return 0;
14301}
14302
14303_ACEOF
14304
14305
14306 rm -Rf build && mkdir -p build
14307 echo "obj-m := conftest.o" >build/Makefile
14308 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
8934764e 14312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14313 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
8934764e 14317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14318 (exit $ac_status); }; }; then
14319
8934764e
BB
14320 { $as_echo "$as_me:$LINENO: result: yes" >&5
14321$as_echo "yes" >&6; }
6ae7fef5
BB
14322
14323cat >>confdefs.h <<\_ACEOF
14324#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
14325_ACEOF
14326
14327
14328else
8934764e 14329 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
8934764e
BB
14332 { $as_echo "$as_me:$LINENO: result: no" >&5
14333$as_echo "no" >&6; }
6ae7fef5
BB
14334
14335
14336
14337fi
14338
14339 rm -Rf build
14340
14341
14342
14343
8934764e
BB
14344 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
14345$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
6ae7fef5
BB
14346
14347
dbe561d8 14348cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14349/* confdefs.h. */
14350_ACEOF
14351cat confdefs.h >>conftest.$ac_ext
14352cat >>conftest.$ac_ext <<_ACEOF
14353/* end confdefs.h. */
14354
14355
14356
14357int
14358main (void)
14359{
14360
14361 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
14362 #error "global_page_state needs NR_FREE_PAGES"
14363 #endif
14364
14365 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
14366 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
14367 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
14368 #error "global_page_state needs NR_ACTIVE*"
14369 #endif
14370
14371 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
14372 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
14373 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
14374 #error "global_page_state needs NR_INACTIVE*"
14375 #endif
14376
14377 ;
14378 return 0;
14379}
14380
14381_ACEOF
14382
14383
14384 rm -Rf build && mkdir -p build
14385 echo "obj-m := conftest.o" >build/Makefile
14386 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388 (eval $ac_try) 2>&5
14389 ac_status=$?
8934764e 14390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14391 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
8934764e 14395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14396 (exit $ac_status); }; }; then
14397
8934764e
BB
14398 { $as_echo "$as_me:$LINENO: result: no" >&5
14399$as_echo "no" >&6; }
6ae7fef5
BB
14400
14401else
8934764e 14402 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14403sed 's/^/| /' conftest.$ac_ext >&5
14404
8934764e
BB
14405 { $as_echo "$as_me:$LINENO: result: yes" >&5
14406$as_echo "yes" >&6; }
6ae7fef5
BB
14407
14408cat >>confdefs.h <<\_ACEOF
14409#define NEED_GET_ZONE_COUNTS 1
14410_ACEOF
14411
14412
8934764e
BB
14413 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
14414$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
6ae7fef5
BB
14415 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
14416 $LINUX_OBJ/Module*.symvers 2>/dev/null
14417 rc=$?
14418 if test $rc -ne 0; then
14419 export=0
14420 for file in ; do
14421 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
14422 "$LINUX_OBJ/$file" 2>/dev/null
14423 rc=$?
14424 if test $rc -eq 0; then
14425 export=1
14426 break;
14427 fi
14428 done
14429 if test $export -eq 0; then
8934764e
BB
14430 { $as_echo "$as_me:$LINENO: result: no" >&5
14431$as_echo "no" >&6; }
6ae7fef5
BB
14432
14433 else
8934764e
BB
14434 { $as_echo "$as_me:$LINENO: result: yes" >&5
14435$as_echo "yes" >&6; }
6ae7fef5
BB
14436
14437cat >>confdefs.h <<\_ACEOF
14438#define HAVE_GET_ZONE_COUNTS 1
14439_ACEOF
14440
14441 fi
14442 else
8934764e
BB
14443 { $as_echo "$as_me:$LINENO: result: yes" >&5
14444$as_echo "yes" >&6; }
6ae7fef5
BB
14445
14446cat >>confdefs.h <<\_ACEOF
14447#define HAVE_GET_ZONE_COUNTS 1
14448_ACEOF
14449
14450 fi
14451
14452
14453
14454
51a727e9
BB
14455fi
14456
14457 rm -Rf build
14458
14459
14460
14461
7119bf70
BB
14462 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
14463$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
14464 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
14465 $LINUX_OBJ/Module*.symvers 2>/dev/null
14466 rc=$?
14467 if test $rc -ne 0; then
14468 export=0
14469 for file in ; do
14470 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
14471 "$LINUX_OBJ/$file" 2>/dev/null
14472 rc=$?
14473 if test $rc -eq 0; then
14474 export=1
14475 break;
14476 fi
14477 done
14478 if test $export -eq 0; then
14479 { $as_echo "$as_me:$LINENO: result: no" >&5
14480$as_echo "no" >&6; }
14481
14482 else
14483 { $as_echo "$as_me:$LINENO: result: yes" >&5
14484$as_echo "yes" >&6; }
14485
14486cat >>confdefs.h <<\_ACEOF
14487#define HAVE_USER_PATH_DIR 1
14488_ACEOF
14489
14490 fi
14491 else
14492 { $as_echo "$as_me:$LINENO: result: yes" >&5
14493$as_echo "yes" >&6; }
14494
14495cat >>confdefs.h <<\_ACEOF
14496#define HAVE_USER_PATH_DIR 1
14497_ACEOF
14498
14499 fi
14500
14501
14502
8934764e
BB
14503 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
14504$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
51a727e9
BB
14505 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
14506 $LINUX_OBJ/Module*.symvers 2>/dev/null
14507 rc=$?
14508 if test $rc -ne 0; then
14509 export=0
14510 for file in ; do
14511 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
14512 "$LINUX_OBJ/$file" 2>/dev/null
14513 rc=$?
14514 if test $rc -eq 0; then
14515 export=1
14516 break;
14517 fi
14518 done
14519 if test $export -eq 0; then
8934764e
BB
14520 { $as_echo "$as_me:$LINENO: result: no" >&5
14521$as_echo "no" >&6; }
51a727e9
BB
14522
14523 else
8934764e
BB
14524 { $as_echo "$as_me:$LINENO: result: yes" >&5
14525$as_echo "yes" >&6; }
51a727e9
BB
14526
14527cat >>confdefs.h <<\_ACEOF
14528#define HAVE_SET_FS_PWD 1
14529_ACEOF
14530
14531 fi
14532 else
8934764e
BB
14533 { $as_echo "$as_me:$LINENO: result: yes" >&5
14534$as_echo "yes" >&6; }
51a727e9
BB
14535
14536cat >>confdefs.h <<\_ACEOF
14537#define HAVE_SET_FS_PWD 1
14538_ACEOF
14539
14540 fi
14541
14542
8934764e
BB
14543 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
14544$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
51a727e9
BB
14545
14546
dbe561d8 14547cat confdefs.h - <<_ACEOF >conftest.c
51a727e9
BB
14548/* confdefs.h. */
14549_ACEOF
14550cat confdefs.h >>conftest.$ac_ext
14551cat >>conftest.$ac_ext <<_ACEOF
14552/* end confdefs.h. */
14553
14554
14555 #include <linux/sched.h>
baf2979e 14556 #include <linux/fs_struct.h>
51a727e9
BB
14557
14558int
14559main (void)
14560{
14561
14562 set_fs_pwd(NULL, NULL);
14563
14564 ;
14565 return 0;
14566}
14567
14568_ACEOF
14569
14570
14571 rm -Rf build && mkdir -p build
14572 echo "obj-m := conftest.o" >build/Makefile
14573 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14576 ac_status=$?
8934764e 14577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
14578 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
8934764e 14582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51a727e9
BB
14583 (exit $ac_status); }; }; then
14584
8934764e
BB
14585 { $as_echo "$as_me:$LINENO: result: yes" >&5
14586$as_echo "yes" >&6; }
51a727e9
BB
14587
14588cat >>confdefs.h <<\_ACEOF
14589#define HAVE_2ARGS_SET_FS_PWD 1
14590_ACEOF
14591
14592
14593else
8934764e 14594 $as_echo "$as_me: failed program was:" >&5
51a727e9
BB
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
8934764e
BB
14597 { $as_echo "$as_me:$LINENO: result: no" >&5
14598$as_echo "no" >&6; }
51a727e9
BB
14599
14600
14601
6ae7fef5
BB
14602fi
14603
14604 rm -Rf build
14605
14606
14607
8934764e
BB
14608 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
14609$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
14610
14611
dbe561d8 14612cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14613/* confdefs.h. */
14614_ACEOF
14615cat confdefs.h >>conftest.$ac_ext
14616cat >>conftest.$ac_ext <<_ACEOF
14617/* end confdefs.h. */
14618
14619
14620 #include <linux/fs.h>
14621
14622int
14623main (void)
14624{
14625
14626 vfs_unlink(NULL, NULL);
14627
14628 ;
14629 return 0;
14630}
14631
14632_ACEOF
14633
14634
14635 rm -Rf build && mkdir -p build
14636 echo "obj-m := conftest.o" >build/Makefile
14637 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639 (eval $ac_try) 2>&5
14640 ac_status=$?
8934764e 14641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14642 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
8934764e 14646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14647 (exit $ac_status); }; }; then
14648
8934764e
BB
14649 { $as_echo "$as_me:$LINENO: result: yes" >&5
14650$as_echo "yes" >&6; }
6ae7fef5
BB
14651
14652cat >>confdefs.h <<\_ACEOF
14653#define HAVE_2ARGS_VFS_UNLINK 1
14654_ACEOF
14655
14656
14657else
8934764e 14658 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14659sed 's/^/| /' conftest.$ac_ext >&5
14660
8934764e
BB
14661 { $as_echo "$as_me:$LINENO: result: no" >&5
14662$as_echo "no" >&6; }
6ae7fef5
BB
14663
14664
14665
14666fi
14667
14668 rm -Rf build
14669
14670
14671
8934764e
BB
14672 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
14673$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
14674
14675
dbe561d8 14676cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14677/* confdefs.h. */
14678_ACEOF
14679cat confdefs.h >>conftest.$ac_ext
14680cat >>conftest.$ac_ext <<_ACEOF
14681/* end confdefs.h. */
14682
14683
14684 #include <linux/fs.h>
14685
14686int
14687main (void)
14688{
14689
14690 vfs_rename(NULL, NULL, NULL, NULL);
14691
14692 ;
14693 return 0;
14694}
14695
14696_ACEOF
14697
14698
14699 rm -Rf build && mkdir -p build
14700 echo "obj-m := conftest.o" >build/Makefile
14701 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
8934764e 14705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14706 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14709 ac_status=$?
8934764e 14710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14711 (exit $ac_status); }; }; then
14712
8934764e
BB
14713 { $as_echo "$as_me:$LINENO: result: yes" >&5
14714$as_echo "yes" >&6; }
6ae7fef5
BB
14715
14716cat >>confdefs.h <<\_ACEOF
14717#define HAVE_4ARGS_VFS_RENAME 1
14718_ACEOF
14719
14720
14721else
8934764e 14722 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14723sed 's/^/| /' conftest.$ac_ext >&5
14724
8934764e
BB
14725 { $as_echo "$as_me:$LINENO: result: no" >&5
14726$as_echo "no" >&6; }
6ae7fef5
BB
14727
14728
14729
14730fi
14731
14732 rm -Rf build
14733
14734
14735
14736
8934764e
BB
14737 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
14738$as_echo_n "checking whether struct cred exists... " >&6; }
6ae7fef5
BB
14739
14740
dbe561d8 14741cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
14747
14748
14749 #include <linux/cred.h>
14750
14751int
14752main (void)
14753{
14754
14755 struct cred *cr;
14756 cr = NULL;
14757
14758 ;
14759 return 0;
14760}
14761
14762_ACEOF
14763
14764
14765 rm -Rf build && mkdir -p build
14766 echo "obj-m := conftest.o" >build/Makefile
14767 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
8934764e 14771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14772 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
8934764e 14776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
14777 (exit $ac_status); }; }; then
14778
8934764e
BB
14779 { $as_echo "$as_me:$LINENO: result: yes" >&5
14780$as_echo "yes" >&6; }
6ae7fef5
BB
14781
14782cat >>confdefs.h <<\_ACEOF
14783#define HAVE_CRED_STRUCT 1
14784_ACEOF
14785
14786
14787else
8934764e 14788 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
14789sed 's/^/| /' conftest.$ac_ext >&5
14790
8934764e
BB
14791 { $as_echo "$as_me:$LINENO: result: no" >&5
14792$as_echo "no" >&6; }
6ae7fef5
BB
14793
14794
14795
14796fi
14797
14798 rm -Rf build
14799
14800
14801
14802
8934764e
BB
14803 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
14804$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
6ae7fef5
BB
14805 grep -q -E '[[:space:]]groups_search[[:space:]]' \
14806 $LINUX_OBJ/Module*.symvers 2>/dev/null
14807 rc=$?
14808 if test $rc -ne 0; then
14809 export=0
14810 for file in ; do
14811 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
14812 "$LINUX_OBJ/$file" 2>/dev/null
14813 rc=$?
14814 if test $rc -eq 0; then
14815 export=1
14816 break;
14817 fi
14818 done
14819 if test $export -eq 0; then
8934764e
BB
14820 { $as_echo "$as_me:$LINENO: result: no" >&5
14821$as_echo "no" >&6; }
6ae7fef5
BB
14822
14823 else
8934764e
BB
14824 { $as_echo "$as_me:$LINENO: result: yes" >&5
14825$as_echo "yes" >&6; }
6ae7fef5
BB
14826
14827cat >>confdefs.h <<\_ACEOF
14828#define HAVE_GROUPS_SEARCH 1
14829_ACEOF
14830
14831 fi
14832 else
8934764e
BB
14833 { $as_echo "$as_me:$LINENO: result: yes" >&5
14834$as_echo "yes" >&6; }
6ae7fef5
BB
14835
14836cat >>confdefs.h <<\_ACEOF
14837#define HAVE_GROUPS_SEARCH 1
14838_ACEOF
14839
14840 fi
14841
14842
e811949a 14843
8934764e
BB
14844 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
14845$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
e811949a
BB
14846 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
14847 $LINUX_OBJ/Module*.symvers 2>/dev/null
14848 rc=$?
14849 if test $rc -ne 0; then
14850 export=0
14851 for file in ; do
14852 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
14853 "$LINUX_OBJ/$file" 2>/dev/null
14854 rc=$?
14855 if test $rc -eq 0; then
14856 export=1
14857 break;
14858 fi
14859 done
14860 if test $export -eq 0; then
8934764e
BB
14861 { $as_echo "$as_me:$LINENO: result: no" >&5
14862$as_echo "no" >&6; }
e811949a
BB
14863
14864 else
8934764e
BB
14865 { $as_echo "$as_me:$LINENO: result: yes" >&5
14866$as_echo "yes" >&6; }
e811949a
BB
14867
14868cat >>confdefs.h <<\_ACEOF
14869#define HAVE_PUT_TASK_STRUCT 1
14870_ACEOF
14871
14872 fi
14873 else
8934764e
BB
14874 { $as_echo "$as_me:$LINENO: result: yes" >&5
14875$as_echo "yes" >&6; }
e811949a
BB
14876
14877cat >>confdefs.h <<\_ACEOF
14878#define HAVE_PUT_TASK_STRUCT 1
14879_ACEOF
14880
14881 fi
14882
14883
3977f837 14884
8934764e
BB
14885 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
14886$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
3977f837
BB
14887
14888
dbe561d8 14889cat confdefs.h - <<_ACEOF >conftest.c
3977f837
BB
14890/* confdefs.h. */
14891_ACEOF
14892cat confdefs.h >>conftest.$ac_ext
14893cat >>conftest.$ac_ext <<_ACEOF
14894/* end confdefs.h. */
14895
14896
14897 #include <linux/sysctl.h>
14898
14899int
14900main (void)
14901{
14902
14903 proc_dostring(NULL, 0, NULL, NULL, NULL);
14904
14905 ;
14906 return 0;
14907}
14908
14909_ACEOF
14910
14911
14912 rm -Rf build && mkdir -p build
14913 echo "obj-m := conftest.o" >build/Makefile
14914 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
8934764e 14918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
14919 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
14920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14921 (eval $ac_try) 2>&5
14922 ac_status=$?
8934764e 14923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977f837
BB
14924 (exit $ac_status); }; }; then
14925
8934764e
BB
14926 { $as_echo "$as_me:$LINENO: result: yes" >&5
14927$as_echo "yes" >&6; }
3977f837
BB
14928
14929cat >>confdefs.h <<\_ACEOF
14930#define HAVE_5ARGS_PROC_HANDLER 1
14931_ACEOF
14932
14933
14934else
8934764e 14935 $as_echo "$as_me: failed program was:" >&5
3977f837
BB
14936sed 's/^/| /' conftest.$ac_ext >&5
14937
8934764e
BB
14938 { $as_echo "$as_me:$LINENO: result: no" >&5
14939$as_echo "no" >&6; }
3977f837
BB
14940
14941
14942
14943fi
14944
14945 rm -Rf build
14946
14947
14948
b868e22f
BB
14949
14950 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
14951$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
14952 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
14953 $LINUX_OBJ/Module*.symvers 2>/dev/null
14954 rc=$?
14955 if test $rc -ne 0; then
14956 export=0
14957 for file in ; do
14958 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
14959 "$LINUX_OBJ/$file" 2>/dev/null
14960 rc=$?
14961 if test $rc -eq 0; then
14962 export=1
14963 break;
14964 fi
14965 done
14966 if test $export -eq 0; then
14967 { $as_echo "$as_me:$LINENO: result: no" >&5
14968$as_echo "no" >&6; }
14969
14970 else
14971 { $as_echo "$as_me:$LINENO: result: yes" >&5
14972$as_echo "yes" >&6; }
14973
14974cat >>confdefs.h <<\_ACEOF
14975#define HAVE_KVASPRINTF 1
14976_ACEOF
14977
14978 fi
14979 else
14980 { $as_echo "$as_me:$LINENO: result: yes" >&5
14981$as_echo "yes" >&6; }
14982
14983cat >>confdefs.h <<\_ACEOF
14984#define HAVE_KVASPRINTF 1
14985_ACEOF
14986
14987 fi
14988
14989
6ae7fef5 14990 ;;
18142514
BB
14991 user)
14992 if test "x$AWK" != xgawk; then
14993
14994 { { $as_echo "$as_me:$LINENO: error:
14995 *** Required util gawk missing. Please install the required
14996 *** gawk package for your distribution and try again." >&5
14997$as_echo "$as_me: error:
14998 *** Required util gawk missing. Please install the required
14999 *** gawk package for your distribution and try again." >&2;}
15000 { (exit 1); exit 1; }; }
15001
15002fi
15003
15004 ;;
6ae7fef5
BB
15005 all)
15006
15007
8934764e 15008# Check whether --with-linux was given.
6ae7fef5 15009if test "${with_linux+set}" = set; then
8934764e
BB
15010 withval=$with_linux; kernelsrc="$withval"
15011fi
6ae7fef5
BB
15012
15013
8934764e
BB
15014
15015# Check whether --with-linux-obj was given.
6ae7fef5 15016if test "${with_linux_obj+set}" = set; then
8934764e
BB
15017 withval=$with_linux_obj; kernelbuild="$withval"
15018fi
6ae7fef5 15019
8934764e
BB
15020
15021 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
15022$as_echo_n "checking kernel source directory... " >&6; }
6ae7fef5 15023 if test -z "$kernelsrc"; then
534c4e38
BM
15024 headersdir="/lib/modules/$(uname -r)/build"
15025 if test -e "$headersdir"; then
15026 sourcelink=$(readlink -f "$headersdir")
15027 else
15028 sourcelink=$(ls -1d /usr/src/kernels/* \
15029 /usr/src/linux-* \
15030 2>/dev/null | grep -v obj | tail -1)
15031 fi
6ae7fef5 15032
8fd4e3af 15033 if test -n "$sourcelink" && test -e ${sourcelink}; then
6ae7fef5
BB
15034 kernelsrc=`readlink -f ${sourcelink}`
15035 else
8934764e
BB
15036 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15037$as_echo "Not found" >&6; }
15038 { { $as_echo "$as_me:$LINENO: error:
8fd4e3af
BB
15039 *** Please make sure the kernel devel package for your distribution
15040 *** is installed then try again. If that fails you can specify the
15041 *** location of the kernel source with the '--with-linux=PATH' option." >&5
8934764e 15042$as_echo "$as_me: error:
8fd4e3af
BB
15043 *** Please make sure the kernel devel package for your distribution
15044 *** is installed then try again. If that fails you can specify the
15045 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
6ae7fef5
BB
15046 { (exit 1); exit 1; }; }
15047 fi
15048 else
15049 if test "$kernelsrc" = "NONE"; then
15050 kernsrcver=NONE
15051 fi
15052 fi
15053
8934764e
BB
15054 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
15055$as_echo "$kernelsrc" >&6; }
15056 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
15057$as_echo_n "checking kernel build directory... " >&6; }
6ae7fef5 15058 if test -z "$kernelbuild"; then
e2d28a37
BB
15059 if test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
15060 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
15061 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
15062 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
15063 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
15064 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
6ae7fef5
BB
15065 else
15066 kernelbuild=${kernelsrc}
15067 fi
15068 fi
8934764e
BB
15069 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
15070$as_echo "$kernelbuild" >&6; }
6ae7fef5 15071
8934764e
BB
15072 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
15073$as_echo_n "checking kernel source version... " >&6; }
fd921c2e
BB
15074 utsrelease1=$kernelbuild/include/linux/version.h
15075 utsrelease2=$kernelbuild/include/linux/utsrelease.h
15076 utsrelease3=$kernelbuild/include/generated/utsrelease.h
15077 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
15078 utsrelease=linux/version.h
15079 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
15080 utsrelease=linux/utsrelease.h
15081 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
15082 utsrelease=generated/utsrelease.h
15083 fi
6ae7fef5 15084
fd921c2e
BB
15085 if test "$utsrelease"; then
15086 kernsrcver=`(echo "#include <$utsrelease>";
6ae7fef5
BB
15087 echo "kernsrcver=UTS_RELEASE") |
15088 cpp -I $kernelbuild/include |
15089 grep "^kernsrcver=" | cut -d \" -f 2`
6ae7fef5 15090
fd921c2e
BB
15091 if test -z "$kernsrcver"; then
15092 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15093$as_echo "Not found" >&6; }
15094 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
15095$as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
15096 { (exit 1); exit 1; }; }
15097 fi
15098 else
8934764e
BB
15099 { $as_echo "$as_me:$LINENO: result: Not found" >&5
15100$as_echo "Not found" >&6; }
fd921c2e
BB
15101 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
15102$as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
bf9f3bac 15103 { (exit 1); exit 1; }; }
15104 fi
15105
8934764e
BB
15106 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
15107$as_echo "$kernsrcver" >&6; }
bf9f3bac 15108
bf9f3bac 15109 LINUX=${kernelsrc}
15110 LINUX_OBJ=${kernelbuild}
c5f70460
BB
15111 LINUX_VERSION=${kernsrcver}
15112
bf9f3bac 15113
15114
15115
15116
15117
bb339d06 15118 modpost=$LINUX/scripts/Makefile.modpost
8934764e
BB
15119 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
15120$as_echo_n "checking kernel file name for module symbols... " >&6; }
bb339d06
BB
15121 if test -f "$modpost"; then
15122 if grep -q Modules.symvers $modpost; then
15123 LINUX_SYMBOLS=Modules.symvers
15124 else
15125 LINUX_SYMBOLS=Module.symvers
15126 fi
2e0e7e69 15127 else
bb339d06 15128 LINUX_SYMBOLS=NONE
2e0e7e69 15129 fi
8934764e
BB
15130 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
15131$as_echo "$LINUX_SYMBOLS" >&6; }
2e0e7e69
BB
15132
15133
15134
86933a6e 15135
86933a6e 15136 abs_srcdir=`readlink -f ${srcdir}`
c950d148 15137 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
16b719f0
BB
15138 KERNELCPPFLAGS="$KERNELCPPFLAGS -I${abs_srcdir}/include"
15139 KERNELCPPFLAGS="$KERNELCPPFLAGS -include ${abs_srcdir}/spl_config.h"
86933a6e
BB
15140
15141 if test "${LINUX_OBJ}" != "${LINUX}"; then
15142 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
15143 fi
15144
15145
15146
bf9f3bac 15147
15148
c950d148
BB
15149 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
15150$as_echo_n "checking whether debugging is enabled... " >&6; }
8934764e 15151 # Check whether --enable-debug was given.
bf9f3bac 15152if test "${enable_debug+set}" = set; then
8934764e 15153 enableval=$enable_debug;
055ffd98
BB
15154else
15155 enable_debug=no
8934764e
BB
15156fi
15157
055ffd98
BB
15158
15159 if test "x$enable_debug" = xyes; then
c950d148 15160
c950d148
BB
15161 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
15162 DEBUG_CFLAGS="-DDEBUG -Werror"
15163
055ffd98 15164else
c950d148 15165
c950d148
BB
15166 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
15167 DEBUG_CFLAGS="-DNDEBUG"
15168
055ffd98
BB
15169fi
15170
15171
c950d148 15172
8934764e
BB
15173 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
15174$as_echo "$enable_debug" >&6; }
bf9f3bac 15175
15176
8934764e 15177 # Check whether --enable-debug-kmem was given.
bf9f3bac 15178if test "${enable_debug_kmem+set}" = set; then
8934764e 15179 enableval=$enable_debug_kmem;
055ffd98
BB
15180else
15181 enable_debug_kmem=yes
8934764e
BB
15182fi
15183
055ffd98
BB
15184
15185 if test "x$enable_debug_kmem" = xyes; then
bf9f3bac 15186
15187cat >>confdefs.h <<\_ACEOF
15188#define DEBUG_KMEM 1
15189_ACEOF
15190
15191 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
055ffd98 15192fi
bf9f3bac 15193
bf9f3bac 15194
8934764e
BB
15195 { $as_echo "$as_me:$LINENO: checking whether basic kmem accounting is enabled" >&5
15196$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
15197 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem" >&5
15198$as_echo "$enable_debug_kmem" >&6; }
bf9f3bac 15199
15200
8934764e 15201 # Check whether --enable-debug-kmem-tracking was given.
055ffd98 15202if test "${enable_debug_kmem_tracking+set}" = set; then
8934764e 15203 enableval=$enable_debug_kmem_tracking;
055ffd98
BB
15204else
15205 enable_debug_kmem_tracking=no
8934764e
BB
15206fi
15207
055ffd98
BB
15208
15209 if test "x$enable_debug_kmem_tracking" = xyes; then
bf9f3bac 15210
15211cat >>confdefs.h <<\_ACEOF
055ffd98 15212#define DEBUG_KMEM_TRACKING 1
bf9f3bac 15213_ACEOF
15214
055ffd98
BB
15215 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
15216fi
15217
15218
8934764e
BB
15219 { $as_echo "$as_me:$LINENO: checking whether detailed kmem tracking is enabled" >&5
15220$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
15221 { $as_echo "$as_me:$LINENO: result: $enable_debug_kmem_tracking" >&5
15222$as_echo "$enable_debug_kmem_tracking" >&6; }
bf9f3bac 15223
5e9b5d83 15224
8934764e 15225 # Check whether --enable-atomic-spinlocks was given.
5e9b5d83 15226if test "${enable_atomic_spinlocks+set}" = set; then
8934764e 15227 enableval=$enable_atomic_spinlocks;
5e9b5d83 15228else
d04c8a56 15229 enable_atomic_spinlocks=check
8934764e
BB
15230fi
15231
5e9b5d83 15232
bf9f3bac 15233
15234
dbe561d8 15235cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
15241
15242
d04c8a56 15243 #include <asm/atomic.h>
bf9f3bac 15244
15245int
15246main (void)
15247{
15248
d04c8a56 15249 atomic64_t *ptr;
bf9f3bac 15250
15251 ;
15252 return 0;
15253}
15254
15255_ACEOF
15256
c5f70460
BB
15257
15258 rm -Rf build && mkdir -p build
15259 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15260 if { 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 15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
8934764e 15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15265 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 (eval $ac_try) 2>&5
15268 ac_status=$?
8934764e 15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15270 (exit $ac_status); }; }; then
15271
d04c8a56 15272 have_atomic64_t=yes
bf9f3bac 15273
15274cat >>confdefs.h <<\_ACEOF
d04c8a56 15275#define HAVE_ATOMIC64_T 1
bf9f3bac 15276_ACEOF
15277
15278
15279else
8934764e 15280 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15281sed 's/^/| /' conftest.$ac_ext >&5
15282
d04c8a56 15283 have_atomic64_t=no
bf9f3bac 15284
c5f70460
BB
15285
15286
bf9f3bac 15287fi
c5f70460
BB
15288
15289 rm -Rf build
15290
bf9f3bac 15291
15292
d04c8a56
BB
15293 if test "x$enable_atomic_spinlocks" = xcheck; then
15294
15295 if test "x$have_atomic64_t" = xyes; then
15296
15297 enable_atomic_spinlocks=no
15298
15299else
15300
15301 enable_atomic_spinlocks=yes
15302
15303fi
15304
15305
15306fi
15307
15308
15309 if test "x$enable_atomic_spinlocks" = xyes; then
15310
15311
15312cat >>confdefs.h <<\_ACEOF
15313#define ATOMIC_SPINLOCK 1
15314_ACEOF
15315
15316
15317else
15318
15319 if test "x$have_atomic64_t" = xno; then
15320
8934764e
BB
15321 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15323{ { $as_echo "$as_me:$LINENO: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 15324See \`config.log' for more details." >&5
8934764e 15325$as_echo "$as_me: error: --disable-atomic-spinlocks given but required atomic64 support is unavailable
d04c8a56 15326See \`config.log' for more details." >&2;}
8934764e 15327 { (exit 1); exit 1; }; }; }
d04c8a56
BB
15328
15329fi
15330
15331
15332fi
15333
15334
8934764e
BB
15335 { $as_echo "$as_me:$LINENO: checking whether atomic types use spinlocks" >&5
15336$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15337 { $as_echo "$as_me:$LINENO: result: $enable_atomic_spinlocks" >&5
15338$as_echo "$enable_atomic_spinlocks" >&6; }
d04c8a56 15339
8934764e
BB
15340 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_t" >&5
15341$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15342 { $as_echo "$as_me:$LINENO: result: $have_atomic64_t" >&5
15343$as_echo "$have_atomic64_t" >&6; }
d04c8a56 15344
8934764e
BB
15345 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_cmpxchg" >&5
15346$as_echo_n "checking whether kernel defines atomic64_cmpxchg... " >&6; }
bf9f3bac 15347
15348
dbe561d8 15349cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15350/* confdefs.h. */
15351_ACEOF
15352cat confdefs.h >>conftest.$ac_ext
15353cat >>conftest.$ac_ext <<_ACEOF
15354/* end confdefs.h. */
15355
15356
15357 #include <asm/atomic.h>
15358
15359int
15360main (void)
15361{
15362
d04c8a56 15363 atomic64_cmpxchg((atomic64_t *)NULL, 0, 0);
bf9f3bac 15364
15365 ;
15366 return 0;
15367}
15368
15369_ACEOF
15370
c5f70460
BB
15371
15372 rm -Rf build && mkdir -p build
15373 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15374 if { 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 15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
8934764e 15378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15379 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
8934764e 15383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15384 (exit $ac_status); }; }; then
15385
8934764e
BB
15386 { $as_echo "$as_me:$LINENO: result: yes" >&5
15387$as_echo "yes" >&6; }
bf9f3bac 15388
15389cat >>confdefs.h <<\_ACEOF
d04c8a56 15390#define HAVE_ATOMIC64_CMPXCHG 1
bf9f3bac 15391_ACEOF
15392
15393
302b88e6 15394else
8934764e 15395 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
15396sed 's/^/| /' conftest.$ac_ext >&5
15397
8934764e
BB
15398 { $as_echo "$as_me:$LINENO: result: no" >&5
15399$as_echo "no" >&6; }
302b88e6
BB
15400
15401
15402
15403fi
15404
15405 rm -Rf build
15406
15407
15408
8934764e
BB
15409 { $as_echo "$as_me:$LINENO: checking whether kernel defines atomic64_xchg" >&5
15410$as_echo_n "checking whether kernel defines atomic64_xchg... " >&6; }
302b88e6
BB
15411
15412
dbe561d8 15413cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419
15420
15421 #include <asm/atomic.h>
15422
15423int
15424main (void)
15425{
15426
d04c8a56 15427 atomic64_xchg((atomic64_t *)NULL, 0);
302b88e6
BB
15428
15429 ;
15430 return 0;
15431}
15432
15433_ACEOF
15434
15435
15436 rm -Rf build && mkdir -p build
15437 echo "obj-m := conftest.o" >build/Makefile
15438 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
8934764e 15442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
15443 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15446 ac_status=$?
8934764e 15447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
15448 (exit $ac_status); }; }; then
15449
8934764e
BB
15450 { $as_echo "$as_me:$LINENO: result: yes" >&5
15451$as_echo "yes" >&6; }
302b88e6
BB
15452
15453cat >>confdefs.h <<\_ACEOF
d04c8a56 15454#define HAVE_ATOMIC64_XCHG 1
302b88e6
BB
15455_ACEOF
15456
15457
15458else
8934764e 15459 $as_echo "$as_me: failed program was:" >&5
302b88e6
BB
15460sed 's/^/| /' conftest.$ac_ext >&5
15461
8934764e
BB
15462 { $as_echo "$as_me:$LINENO: result: no" >&5
15463$as_echo "no" >&6; }
302b88e6
BB
15464
15465
15466
15467fi
15468
15469 rm -Rf build
15470
15471
15472
8934764e
BB
15473 { $as_echo "$as_me:$LINENO: checking whether kernel defines uintptr_t" >&5
15474$as_echo_n "checking whether kernel defines uintptr_t... " >&6; }
302b88e6
BB
15475
15476
dbe561d8 15477cat confdefs.h - <<_ACEOF >conftest.c
302b88e6
BB
15478/* confdefs.h. */
15479_ACEOF
15480cat confdefs.h >>conftest.$ac_ext
15481cat >>conftest.$ac_ext <<_ACEOF
15482/* end confdefs.h. */
15483
15484
d04c8a56 15485 #include <linux/types.h>
302b88e6
BB
15486
15487int
15488main (void)
15489{
15490
d04c8a56 15491 uintptr_t *ptr;
302b88e6
BB
15492
15493 ;
15494 return 0;
15495}
15496
15497_ACEOF
15498
15499
15500 rm -Rf build && mkdir -p build
15501 echo "obj-m := conftest.o" >build/Makefile
15502 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
8934764e 15506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
15507 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
8934764e 15511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
302b88e6
BB
15512 (exit $ac_status); }; }; then
15513
8934764e
BB
15514 { $as_echo "$as_me:$LINENO: result: yes" >&5
15515$as_echo "yes" >&6; }
302b88e6
BB
15516
15517cat >>confdefs.h <<\_ACEOF
d04c8a56 15518#define HAVE_UINTPTR_T 1
302b88e6
BB
15519_ACEOF
15520
15521
bf9f3bac 15522else
8934764e 15523 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15524sed 's/^/| /' conftest.$ac_ext >&5
15525
8934764e
BB
15526 { $as_echo "$as_me:$LINENO: result: no" >&5
15527$as_echo "no" >&6; }
bf9f3bac 15528
c5f70460
BB
15529
15530
bf9f3bac 15531fi
c5f70460
BB
15532
15533 rm -Rf build
15534
bf9f3bac 15535
15536
8934764e
BB
15537 { $as_echo "$as_me:$LINENO: checking whether INIT_WORK wants 3 args" >&5
15538$as_echo_n "checking whether INIT_WORK wants 3 args... " >&6; }
bf9f3bac 15539
15540
dbe561d8 15541cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
15547
15548
15549 #include <linux/workqueue.h>
15550
15551int
15552main (void)
15553{
15554
15555 struct work_struct work;
15556 INIT_WORK(&work, NULL, NULL);
15557
15558 ;
15559 return 0;
15560}
15561
15562_ACEOF
15563
c5f70460
BB
15564
15565 rm -Rf build && mkdir -p build
15566 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15567 if { 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 15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
8934764e 15571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15572 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5
15575 ac_status=$?
8934764e 15576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15577 (exit $ac_status); }; }; then
15578
8934764e
BB
15579 { $as_echo "$as_me:$LINENO: result: yes" >&5
15580$as_echo "yes" >&6; }
bf9f3bac 15581
15582cat >>confdefs.h <<\_ACEOF
15583#define HAVE_3ARGS_INIT_WORK 1
15584_ACEOF
15585
15586
15587else
8934764e 15588 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15589sed 's/^/| /' conftest.$ac_ext >&5
15590
8934764e
BB
15591 { $as_echo "$as_me:$LINENO: result: no" >&5
15592$as_echo "no" >&6; }
bf9f3bac 15593
c5f70460
BB
15594
15595
bf9f3bac 15596fi
c5f70460
BB
15597
15598 rm -Rf build
15599
bf9f3bac 15600
15601
8934764e
BB
15602 { $as_echo "$as_me:$LINENO: checking whether register_sysctl_table() wants 2 args" >&5
15603$as_echo_n "checking whether register_sysctl_table() wants 2 args... " >&6; }
bf9f3bac 15604
15605
dbe561d8 15606cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15607/* confdefs.h. */
15608_ACEOF
15609cat confdefs.h >>conftest.$ac_ext
15610cat >>conftest.$ac_ext <<_ACEOF
15611/* end confdefs.h. */
15612
15613
15614 #include <linux/sysctl.h>
15615
15616int
15617main (void)
15618{
15619
15620 return register_sysctl_table(NULL,0);
15621
15622 ;
15623 return 0;
15624}
15625
15626_ACEOF
15627
c5f70460
BB
15628
15629 rm -Rf build && mkdir -p build
15630 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15631 if { 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 15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15634 ac_status=$?
8934764e 15635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15636 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
8934764e 15640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15641 (exit $ac_status); }; }; then
15642
8934764e
BB
15643 { $as_echo "$as_me:$LINENO: result: yes" >&5
15644$as_echo "yes" >&6; }
bf9f3bac 15645
15646cat >>confdefs.h <<\_ACEOF
15647#define HAVE_2ARGS_REGISTER_SYSCTL 1
15648_ACEOF
15649
15650
15651else
8934764e 15652 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15653sed 's/^/| /' conftest.$ac_ext >&5
15654
8934764e
BB
15655 { $as_echo "$as_me:$LINENO: result: no" >&5
15656$as_echo "no" >&6; }
bf9f3bac 15657
c5f70460
BB
15658
15659
bf9f3bac 15660fi
c5f70460
BB
15661
15662 rm -Rf build
15663
bf9f3bac 15664
15665
15666
8934764e
BB
15667 { $as_echo "$as_me:$LINENO: checking whether set_shrinker() available" >&5
15668$as_echo_n "checking whether set_shrinker() available... " >&6; }
bf9f3bac 15669
15670
dbe561d8 15671cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15672/* confdefs.h. */
15673_ACEOF
15674cat confdefs.h >>conftest.$ac_ext
15675cat >>conftest.$ac_ext <<_ACEOF
15676/* end confdefs.h. */
15677
15678
15679 #include <linux/mm.h>
15680
15681int
15682main (void)
15683{
15684
15685 return set_shrinker(DEFAULT_SEEKS, NULL);
15686
15687 ;
15688 return 0;
15689}
15690
15691_ACEOF
15692
c5f70460
BB
15693
15694 rm -Rf build && mkdir -p build
15695 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15696 if { 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 15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
8934764e 15700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15701 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
8934764e 15705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15706 (exit $ac_status); }; }; then
15707
8934764e
BB
15708 { $as_echo "$as_me:$LINENO: result: yes" >&5
15709$as_echo "yes" >&6; }
bf9f3bac 15710
15711cat >>confdefs.h <<\_ACEOF
15712#define HAVE_SET_SHRINKER 1
15713_ACEOF
15714
15715
15716else
8934764e 15717 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15718sed 's/^/| /' conftest.$ac_ext >&5
15719
8934764e
BB
15720 { $as_echo "$as_me:$LINENO: result: no" >&5
15721$as_echo "no" >&6; }
bf9f3bac 15722
c5f70460
BB
15723
15724
bf9f3bac 15725fi
c5f70460
BB
15726
15727 rm -Rf build
15728
bf9f3bac 15729
15730
8934764e
BB
15731 { $as_echo "$as_me:$LINENO: checking whether struct path used in struct nameidata" >&5
15732$as_echo_n "checking whether struct path used in struct nameidata... " >&6; }
bf9f3bac 15733
15734
dbe561d8 15735cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15736/* confdefs.h. */
15737_ACEOF
15738cat confdefs.h >>conftest.$ac_ext
15739cat >>conftest.$ac_ext <<_ACEOF
15740/* end confdefs.h. */
15741
15742
15743 #include <linux/namei.h>
15744
15745int
15746main (void)
15747{
15748
15749 struct nameidata nd;
15750
15751 nd.path.mnt = NULL;
15752 nd.path.dentry = NULL;
15753
15754 ;
15755 return 0;
15756}
15757
15758_ACEOF
15759
c5f70460
BB
15760
15761 rm -Rf build && mkdir -p build
15762 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15763 if { 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 15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
8934764e 15767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15768 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770 (eval $ac_try) 2>&5
15771 ac_status=$?
8934764e 15772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15773 (exit $ac_status); }; }; then
15774
8934764e
BB
15775 { $as_echo "$as_me:$LINENO: result: yes" >&5
15776$as_echo "yes" >&6; }
bf9f3bac 15777
15778cat >>confdefs.h <<\_ACEOF
15779#define HAVE_PATH_IN_NAMEIDATA 1
15780_ACEOF
15781
15782
15783else
8934764e 15784 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15785sed 's/^/| /' conftest.$ac_ext >&5
15786
8934764e
BB
15787 { $as_echo "$as_me:$LINENO: result: no" >&5
15788$as_echo "no" >&6; }
bf9f3bac 15789
c5f70460
BB
15790
15791
bf9f3bac 15792fi
c5f70460
BB
15793
15794 rm -Rf build
15795
bf9f3bac 15796
15797
15798
8934764e
BB
15799 { $as_echo "$as_me:$LINENO: checking whether symbol task_curr is exported" >&5
15800$as_echo_n "checking whether symbol task_curr is exported... " >&6; }
2e0e7e69
BB
15801 grep -q -E '[[:space:]]task_curr[[:space:]]' \
15802 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 15803 rc=$?
15804 if test $rc -ne 0; then
15805 export=0
15806 for file in kernel/sched.c; do
2e0e7e69
BB
15807 grep -q -E "EXPORT_SYMBOL.*(task_curr)" \
15808 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 15809 rc=$?
15810 if test $rc -eq 0; then
15811 export=1
15812 break;
15813 fi
15814 done
15815 if test $export -eq 0; then
8934764e
BB
15816 { $as_echo "$as_me:$LINENO: result: no" >&5
15817$as_echo "no" >&6; }
bf9f3bac 15818
15819 else
8934764e
BB
15820 { $as_echo "$as_me:$LINENO: result: yes" >&5
15821$as_echo "yes" >&6; }
bf9f3bac 15822
15823cat >>confdefs.h <<\_ACEOF
15824#define HAVE_TASK_CURR 1
15825_ACEOF
15826
15827 fi
15828 else
8934764e
BB
15829 { $as_echo "$as_me:$LINENO: result: yes" >&5
15830$as_echo "yes" >&6; }
bf9f3bac 15831
15832cat >>confdefs.h <<\_ACEOF
15833#define HAVE_TASK_CURR 1
15834_ACEOF
15835
15836 fi
15837
15838
8934764e
BB
15839 { $as_echo "$as_me:$LINENO: checking whether unnumbered sysctl support exists" >&5
15840$as_echo_n "checking whether unnumbered sysctl support exists... " >&6; }
bf9f3bac 15841
15842
dbe561d8 15843cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15844/* confdefs.h. */
15845_ACEOF
15846cat confdefs.h >>conftest.$ac_ext
15847cat >>conftest.$ac_ext <<_ACEOF
15848/* end confdefs.h. */
15849
15850
15851 #include <linux/sysctl.h>
15852
15853int
15854main (void)
15855{
15856
15857 #ifndef CTL_UNNUMBERED
15858 #error CTL_UNNUMBERED undefined
15859 #endif
15860
15861 ;
15862 return 0;
15863}
15864
15865_ACEOF
15866
c5f70460
BB
15867
15868 rm -Rf build && mkdir -p build
15869 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 15870 if { 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 15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
8934764e 15874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15875 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
8934764e 15879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 15880 (exit $ac_status); }; }; then
15881
8934764e
BB
15882 { $as_echo "$as_me:$LINENO: result: yes" >&5
15883$as_echo "yes" >&6; }
bf9f3bac 15884
15885cat >>confdefs.h <<\_ACEOF
15886#define HAVE_CTL_UNNUMBERED 1
15887_ACEOF
15888
15889
79a3bf13
BB
15890else
15891 $as_echo "$as_me: failed program was:" >&5
15892sed 's/^/| /' conftest.$ac_ext >&5
15893
15894 { $as_echo "$as_me:$LINENO: result: no" >&5
15895$as_echo "no" >&6; }
15896
15897
15898
15899fi
15900
15901 rm -Rf build
15902
15903
15904
15905
15906 { $as_echo "$as_me:$LINENO: checking whether struct ctl_table has ctl_name" >&5
15907$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
15908
15909
dbe561d8 15910cat confdefs.h - <<_ACEOF >conftest.c
79a3bf13
BB
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
15916
15917
15918 #include <linux/sysctl.h>
15919
15920int
15921main (void)
15922{
15923
15924 struct ctl_table ctl;
15925 ctl.ctl_name = 0;
15926
15927 ;
15928 return 0;
15929}
15930
15931_ACEOF
15932
15933
15934 rm -Rf build && mkdir -p build
15935 echo "obj-m := conftest.o" >build/Makefile
15936 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15939 ac_status=$?
15940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947
15948 { $as_echo "$as_me:$LINENO: result: yes" >&5
15949$as_echo "yes" >&6; }
15950
15951cat >>confdefs.h <<\_ACEOF
15952#define HAVE_CTL_NAME 1
15953_ACEOF
15954
15955
bf9f3bac 15956else
8934764e 15957 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 15958sed 's/^/| /' conftest.$ac_ext >&5
15959
8934764e
BB
15960 { $as_echo "$as_me:$LINENO: result: no" >&5
15961$as_echo "no" >&6; }
bf9f3bac 15962
c5f70460
BB
15963
15964
bf9f3bac 15965fi
c5f70460
BB
15966
15967 rm -Rf build
15968
bf9f3bac 15969
15970
8934764e
BB
15971 { $as_echo "$as_me:$LINENO: checking whether fls64() is available" >&5
15972$as_echo_n "checking whether fls64() is available... " >&6; }
bf9f3bac 15973
15974
dbe561d8 15975cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 15976/* confdefs.h. */
15977_ACEOF
15978cat confdefs.h >>conftest.$ac_ext
15979cat >>conftest.$ac_ext <<_ACEOF
15980/* end confdefs.h. */
15981
15982
15983 #include <linux/bitops.h>
15984
15985int
15986main (void)
15987{
15988
15989 return fls64(0);
15990
15991 ;
15992 return 0;
15993}
15994
15995_ACEOF
15996
c5f70460
BB
15997
15998 rm -Rf build && mkdir -p build
15999 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16000 if { 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 16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
8934764e 16004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16005 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
8934764e 16009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16010 (exit $ac_status); }; }; then
16011
8934764e
BB
16012 { $as_echo "$as_me:$LINENO: result: yes" >&5
16013$as_echo "yes" >&6; }
bf9f3bac 16014
16015cat >>confdefs.h <<\_ACEOF
16016#define HAVE_FLS64 1
16017_ACEOF
16018
16019
16020else
8934764e 16021 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16022sed 's/^/| /' conftest.$ac_ext >&5
16023
8934764e
BB
16024 { $as_echo "$as_me:$LINENO: result: no" >&5
16025$as_echo "no" >&6; }
bf9f3bac 16026
c5f70460
BB
16027
16028
bf9f3bac 16029fi
c5f70460
BB
16030
16031 rm -Rf build
16032
bf9f3bac 16033
16034
16035
8934764e
BB
16036 { $as_echo "$as_me:$LINENO: checking whether symbol device_create is exported" >&5
16037$as_echo_n "checking whether symbol device_create is exported... " >&6; }
2e0e7e69
BB
16038 grep -q -E '[[:space:]]device_create[[:space:]]' \
16039 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 16040 rc=$?
16041 if test $rc -ne 0; then
16042 export=0
16043 for file in drivers/base/core.c; do
2e0e7e69
BB
16044 grep -q -E "EXPORT_SYMBOL.*(device_create)" \
16045 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 16046 rc=$?
16047 if test $rc -eq 0; then
16048 export=1
16049 break;
16050 fi
16051 done
16052 if test $export -eq 0; then
8934764e
BB
16053 { $as_echo "$as_me:$LINENO: result: no" >&5
16054$as_echo "no" >&6; }
bf9f3bac 16055
16056 else
8934764e
BB
16057 { $as_echo "$as_me:$LINENO: result: yes" >&5
16058$as_echo "yes" >&6; }
bf9f3bac 16059
16060cat >>confdefs.h <<\_ACEOF
16061#define HAVE_DEVICE_CREATE 1
16062_ACEOF
16063
16064 fi
16065 else
8934764e
BB
16066 { $as_echo "$as_me:$LINENO: result: yes" >&5
16067$as_echo "yes" >&6; }
bf9f3bac 16068
16069cat >>confdefs.h <<\_ACEOF
16070#define HAVE_DEVICE_CREATE 1
16071_ACEOF
16072
16073 fi
16074
16075
16076
8934764e
BB
16077 { $as_echo "$as_me:$LINENO: checking whether device_create() wants 5 args" >&5
16078$as_echo_n "checking whether device_create() wants 5 args... " >&6; }
8123ac4f
BB
16079 tmp_flags="$EXTRA_KCFLAGS"
16080 EXTRA_KCFLAGS="-Werror"
16081
16082
dbe561d8 16083cat confdefs.h - <<_ACEOF >conftest.c
8123ac4f
BB
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
16089
16090
16091 #include <linux/device.h>
16092
16093int
16094main (void)
16095{
16096
16097 device_create(NULL, NULL, 0, NULL, "%d", 1);
16098
16099 ;
16100 return 0;
16101}
16102
16103_ACEOF
16104
16105
16106 rm -Rf build && mkdir -p build
16107 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16108 if { 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
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
8934764e 16112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
16113 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
8934764e 16117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123ac4f
BB
16118 (exit $ac_status); }; }; then
16119
8934764e
BB
16120 { $as_echo "$as_me:$LINENO: result: yes" >&5
16121$as_echo "yes" >&6; }
8123ac4f
BB
16122
16123cat >>confdefs.h <<\_ACEOF
16124#define HAVE_5ARGS_DEVICE_CREATE 1
16125_ACEOF
16126
16127
16128else
8934764e 16129 $as_echo "$as_me: failed program was:" >&5
8123ac4f
BB
16130sed 's/^/| /' conftest.$ac_ext >&5
16131
8934764e
BB
16132 { $as_echo "$as_me:$LINENO: result: no" >&5
16133$as_echo "no" >&6; }
8123ac4f
BB
16134
16135
16136
16137fi
16138
16139 rm -Rf build
16140
16141
16142 EXTRA_KCFLAGS="$tmp_flags"
16143
16144
8934764e
BB
16145 { $as_echo "$as_me:$LINENO: checking whether symbol class_device_create is exported" >&5
16146$as_echo_n "checking whether symbol class_device_create is exported... " >&6; }
2e0e7e69
BB
16147 grep -q -E '[[:space:]]class_device_create[[:space:]]' \
16148 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 16149 rc=$?
16150 if test $rc -ne 0; then
16151 export=0
16152 for file in drivers/base/class.c; do
2e0e7e69
BB
16153 grep -q -E "EXPORT_SYMBOL.*(class_device_create)" \
16154 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 16155 rc=$?
16156 if test $rc -eq 0; then
16157 export=1
16158 break;
16159 fi
16160 done
16161 if test $export -eq 0; then
8934764e
BB
16162 { $as_echo "$as_me:$LINENO: result: no" >&5
16163$as_echo "no" >&6; }
bf9f3bac 16164
16165 else
8934764e
BB
16166 { $as_echo "$as_me:$LINENO: result: yes" >&5
16167$as_echo "yes" >&6; }
bf9f3bac 16168
16169cat >>confdefs.h <<\_ACEOF
16170#define HAVE_CLASS_DEVICE_CREATE 1
16171_ACEOF
16172
16173 fi
16174 else
8934764e
BB
16175 { $as_echo "$as_me:$LINENO: result: yes" >&5
16176$as_echo "yes" >&6; }
bf9f3bac 16177
16178cat >>confdefs.h <<\_ACEOF
16179#define HAVE_CLASS_DEVICE_CREATE 1
16180_ACEOF
16181
16182 fi
16183
16184
16185
8934764e
BB
16186 { $as_echo "$as_me:$LINENO: checking whether symbol set_normalized_timespec is exported" >&5
16187$as_echo_n "checking whether symbol set_normalized_timespec is exported... " >&6; }
2e0e7e69
BB
16188 grep -q -E '[[:space:]]set_normalized_timespec[[:space:]]' \
16189 $LINUX_OBJ/Module*.symvers 2>/dev/null
bf9f3bac 16190 rc=$?
16191 if test $rc -ne 0; then
16192 export=0
16193 for file in kernel/time.c; do
2e0e7e69
BB
16194 grep -q -E "EXPORT_SYMBOL.*(set_normalized_timespec)" \
16195 "$LINUX_OBJ/$file" 2>/dev/null
bf9f3bac 16196 rc=$?
16197 if test $rc -eq 0; then
16198 export=1
16199 break;
16200 fi
16201 done
16202 if test $export -eq 0; then
8934764e
BB
16203 { $as_echo "$as_me:$LINENO: result: no" >&5
16204$as_echo "no" >&6; }
bf9f3bac 16205
6ae7fef5 16206 else
8934764e
BB
16207 { $as_echo "$as_me:$LINENO: result: yes" >&5
16208$as_echo "yes" >&6; }
6ae7fef5
BB
16209
16210cat >>confdefs.h <<\_ACEOF
16211#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
16212_ACEOF
16213
16214 fi
16215 else
8934764e
BB
16216 { $as_echo "$as_me:$LINENO: result: yes" >&5
16217$as_echo "yes" >&6; }
6ae7fef5
BB
16218
16219cat >>confdefs.h <<\_ACEOF
16220#define HAVE_SET_NORMALIZED_TIMESPEC_EXPORT 1
16221_ACEOF
16222
16223 fi
16224
16225
16226
8934764e
BB
16227 { $as_echo "$as_me:$LINENO: checking whether set_normalized_timespec() is an inline" >&5
16228$as_echo_n "checking whether set_normalized_timespec() is an inline... " >&6; }
6ae7fef5
BB
16229
16230
dbe561d8 16231cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
16232/* confdefs.h. */
16233_ACEOF
16234cat confdefs.h >>conftest.$ac_ext
16235cat >>conftest.$ac_ext <<_ACEOF
16236/* end confdefs.h. */
16237
16238
16239 #include <linux/time.h>
16240 void set_normalized_timespec(struct timespec *ts,
16241 time_t sec, long nsec) { }
16242
16243int
16244main (void)
16245{
16246
16247 ;
16248 return 0;
16249}
16250
16251_ACEOF
16252
16253
16254 rm -Rf build && mkdir -p build
16255 echo "obj-m := conftest.o" >build/Makefile
16256 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
8934764e 16260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16261 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16264 ac_status=$?
8934764e 16265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16266 (exit $ac_status); }; }; then
16267
8934764e
BB
16268 { $as_echo "$as_me:$LINENO: result: no" >&5
16269$as_echo "no" >&6; }
6ae7fef5
BB
16270
16271else
8934764e 16272 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16273sed 's/^/| /' conftest.$ac_ext >&5
16274
8934764e
BB
16275 { $as_echo "$as_me:$LINENO: result: yes" >&5
16276$as_echo "yes" >&6; }
6ae7fef5
BB
16277
16278cat >>confdefs.h <<\_ACEOF
16279#define HAVE_SET_NORMALIZED_TIMESPEC_INLINE 1
16280_ACEOF
16281
16282
16283
16284
16285fi
16286
16287 rm -Rf build
16288
16289
16290
16291
8934764e
BB
16292 { $as_echo "$as_me:$LINENO: checking whether timespec_sub() is available" >&5
16293$as_echo_n "checking whether timespec_sub() is available... " >&6; }
6ae7fef5
BB
16294
16295
dbe561d8 16296cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
16297/* confdefs.h. */
16298_ACEOF
16299cat confdefs.h >>conftest.$ac_ext
16300cat >>conftest.$ac_ext <<_ACEOF
16301/* end confdefs.h. */
16302
16303
16304 #include <linux/time.h>
16305
16306int
16307main (void)
16308{
16309
16310 struct timespec a, b, c = { 0 };
16311 c = timespec_sub(a, b);
16312
16313 ;
16314 return 0;
16315}
16316
16317_ACEOF
16318
16319
16320 rm -Rf build && mkdir -p build
16321 echo "obj-m := conftest.o" >build/Makefile
16322 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16324 (eval $ac_try) 2>&5
16325 ac_status=$?
8934764e 16326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16327 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329 (eval $ac_try) 2>&5
16330 ac_status=$?
8934764e 16331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16332 (exit $ac_status); }; }; then
16333
8934764e
BB
16334 { $as_echo "$as_me:$LINENO: result: yes" >&5
16335$as_echo "yes" >&6; }
6ae7fef5
BB
16336
16337cat >>confdefs.h <<\_ACEOF
16338#define HAVE_TIMESPEC_SUB 1
16339_ACEOF
16340
16341
16342else
8934764e 16343 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16344sed 's/^/| /' conftest.$ac_ext >&5
16345
8934764e
BB
16346 { $as_echo "$as_me:$LINENO: result: no" >&5
16347$as_echo "no" >&6; }
6ae7fef5
BB
16348
16349
16350
16351fi
16352
16353 rm -Rf build
16354
16355
16356
16357
8934764e
BB
16358 { $as_echo "$as_me:$LINENO: checking whether init_utsname() is available" >&5
16359$as_echo_n "checking whether init_utsname() is available... " >&6; }
6ae7fef5
BB
16360
16361
dbe561d8 16362cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
16363/* confdefs.h. */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
16367/* end confdefs.h. */
16368
16369
16370 #include <linux/utsname.h>
16371
16372int
16373main (void)
16374{
16375
16376 struct new_utsname *a = init_utsname();
16377
16378 ;
16379 return 0;
16380}
16381
16382_ACEOF
16383
16384
16385 rm -Rf build && mkdir -p build
16386 echo "obj-m := conftest.o" >build/Makefile
16387 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
8934764e 16391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16392 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16395 ac_status=$?
8934764e 16396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16397 (exit $ac_status); }; }; then
16398
8934764e
BB
16399 { $as_echo "$as_me:$LINENO: result: yes" >&5
16400$as_echo "yes" >&6; }
6ae7fef5
BB
16401
16402cat >>confdefs.h <<\_ACEOF
16403#define HAVE_INIT_UTSNAME 1
16404_ACEOF
16405
16406
16407else
8934764e 16408 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16409sed 's/^/| /' conftest.$ac_ext >&5
16410
8934764e
BB
16411 { $as_echo "$as_me:$LINENO: result: no" >&5
16412$as_echo "no" >&6; }
6ae7fef5
BB
16413
16414
16415
16416fi
16417
16418 rm -Rf build
16419
16420
16421
16422
8934764e
BB
16423 { $as_echo "$as_me:$LINENO: checking whether header linux/fdtable.h exists" >&5
16424$as_echo_n "checking whether header linux/fdtable.h exists... " >&6; }
6ae7fef5
BB
16425
16426
dbe561d8 16427cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5
BB
16428/* confdefs.h. */
16429_ACEOF
16430cat confdefs.h >>conftest.$ac_ext
16431cat >>conftest.$ac_ext <<_ACEOF
16432/* end confdefs.h. */
16433
16434
16435 #include <linux/fdtable.h>
16436
16437int
16438main (void)
16439{
16440
16441 return 0;
16442
16443 ;
16444 return 0;
16445}
16446
16447_ACEOF
16448
16449
16450 rm -Rf build && mkdir -p build
16451 echo "obj-m := conftest.o" >build/Makefile
16452 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
8934764e 16456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
8934764e 16461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
16462 (exit $ac_status); }; }; then
16463
bf9f3bac 16464
16465cat >>confdefs.h <<\_ACEOF
6ae7fef5 16466#define HAVE_FDTABLE_HEADER 1
bf9f3bac 16467_ACEOF
16468
8934764e
BB
16469 { $as_echo "$as_me:$LINENO: result: yes" >&5
16470$as_echo "yes" >&6; }
bf9f3bac 16471
bf9f3bac 16472
6ae7fef5 16473else
8934764e 16474 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16475sed 's/^/| /' conftest.$ac_ext >&5
16476
8934764e
BB
16477 { $as_echo "$as_me:$LINENO: result: no" >&5
16478$as_echo "no" >&6; }
bf9f3bac 16479
16480
16481
6ae7fef5
BB
16482
16483fi
16484
16485 rm -Rf build
16486
16487
16488
16489
16490
8934764e
BB
16491 { $as_echo "$as_me:$LINENO: checking whether files_fdtable() is available" >&5
16492$as_echo_n "checking whether files_fdtable() is available... " >&6; }
bf9f3bac 16493
16494
dbe561d8 16495cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
16501
16502
6ae7fef5
BB
16503 #include <linux/sched.h>
16504 #include <linux/file.h>
16505 #ifdef HAVE_FDTABLE_HEADER
16506 #include <linux/fdtable.h>
16507 #endif
bf9f3bac 16508
16509int
16510main (void)
16511{
16512
6ae7fef5
BB
16513 struct files_struct *files = current->files;
16514 struct fdtable *fdt = files_fdtable(files);
16515
bf9f3bac 16516 ;
16517 return 0;
16518}
16519
16520_ACEOF
16521
c5f70460
BB
16522
16523 rm -Rf build && mkdir -p build
16524 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16525 if { 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 16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16528 ac_status=$?
8934764e 16529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16530 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
8934764e 16534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16535 (exit $ac_status); }; }; then
16536
8934764e
BB
16537 { $as_echo "$as_me:$LINENO: result: yes" >&5
16538$as_echo "yes" >&6; }
bf9f3bac 16539
16540cat >>confdefs.h <<\_ACEOF
6ae7fef5 16541#define HAVE_FILES_FDTABLE 1
bf9f3bac 16542_ACEOF
16543
16544
6ae7fef5 16545else
8934764e 16546 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
16547sed 's/^/| /' conftest.$ac_ext >&5
16548
8934764e
BB
16549 { $as_echo "$as_me:$LINENO: result: no" >&5
16550$as_echo "no" >&6; }
6ae7fef5 16551
c5f70460
BB
16552
16553
bf9f3bac 16554fi
c5f70460
BB
16555
16556 rm -Rf build
16557
bf9f3bac 16558
16559
16560
8934764e
BB
16561 { $as_echo "$as_me:$LINENO: checking whether header linux/uaccess.h exists" >&5
16562$as_echo_n "checking whether header linux/uaccess.h exists... " >&6; }
bf9f3bac 16563
16564
dbe561d8 16565cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16566/* confdefs.h. */
16567_ACEOF
16568cat confdefs.h >>conftest.$ac_ext
16569cat >>conftest.$ac_ext <<_ACEOF
16570/* end confdefs.h. */
16571
16572
6ae7fef5 16573 #include <linux/uaccess.h>
bf9f3bac 16574
16575int
16576main (void)
16577{
16578
6ae7fef5 16579 return 0;
bf9f3bac 16580
16581 ;
16582 return 0;
16583}
16584
16585_ACEOF
16586
c5f70460
BB
16587
16588 rm -Rf build && mkdir -p build
16589 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16590 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
bf9f3bac 16591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592 (eval $ac_try) 2>&5
16593 ac_status=$?
8934764e 16594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16595 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
8934764e 16599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16600 (exit $ac_status); }; }; then
16601
bf9f3bac 16602
16603cat >>confdefs.h <<\_ACEOF
6ae7fef5 16604#define HAVE_UACCESS_HEADER 1
bf9f3bac 16605_ACEOF
16606
8934764e
BB
16607 { $as_echo "$as_me:$LINENO: result: yes" >&5
16608$as_echo "yes" >&6; }
6ae7fef5 16609
bf9f3bac 16610
16611else
8934764e 16612 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16613sed 's/^/| /' conftest.$ac_ext >&5
16614
8934764e
BB
16615 { $as_echo "$as_me:$LINENO: result: no" >&5
16616$as_echo "no" >&6; }
bf9f3bac 16617
c5f70460
BB
16618
16619
6ae7fef5 16620
bf9f3bac 16621fi
c5f70460
BB
16622
16623 rm -Rf build
16624
bf9f3bac 16625
16626
16627
6ae7fef5 16628
8934764e
BB
16629 { $as_echo "$as_me:$LINENO: checking whether kmalloc_node() is available" >&5
16630$as_echo_n "checking whether kmalloc_node() is available... " >&6; }
bf9f3bac 16631
16632
dbe561d8 16633cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 16634/* confdefs.h. */
16635_ACEOF
16636cat confdefs.h >>conftest.$ac_ext
16637cat >>conftest.$ac_ext <<_ACEOF
16638/* end confdefs.h. */
16639
16640
6ae7fef5 16641 #include <linux/slab.h>
bf9f3bac 16642
16643int
16644main (void)
16645{
16646
6ae7fef5 16647 void *a = kmalloc_node(1, GFP_KERNEL, 0);
bf9f3bac 16648
16649 ;
16650 return 0;
16651}
16652
16653_ACEOF
16654
c5f70460
BB
16655
16656 rm -Rf build && mkdir -p build
16657 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 16658 if { 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 16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
8934764e 16662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16663 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
8934764e 16667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 16668 (exit $ac_status); }; }; then
16669
8934764e
BB
16670 { $as_echo "$as_me:$LINENO: result: yes" >&5
16671$as_echo "yes" >&6; }
bf9f3bac 16672
16673cat >>confdefs.h <<\_ACEOF
6ae7fef5 16674#define HAVE_KMALLOC_NODE 1
bf9f3bac 16675_ACEOF
16676
16677
16678else
8934764e
BB
16679 $as_echo "$as_me: failed program was:" >&5
16680sed 's/^/| /' conftest.$ac_ext >&5
16681
16682 { $as_echo "$as_me:$LINENO: result: no" >&5
16683$as_echo "no" >&6; }
16684
16685
16686
16687fi
16688
16689 rm -Rf build
16690
16691
16692
16693
16694 { $as_echo "$as_me:$LINENO: checking whether symbol monotonic_clock is exported" >&5
16695$as_echo_n "checking whether symbol monotonic_clock is exported... " >&6; }
16696 grep -q -E '[[:space:]]monotonic_clock[[:space:]]' \
16697 $LINUX_OBJ/Module*.symvers 2>/dev/null
16698 rc=$?
16699 if test $rc -ne 0; then
16700 export=0
16701 for file in ; do
16702 grep -q -E "EXPORT_SYMBOL.*(monotonic_clock)" \
16703 "$LINUX_OBJ/$file" 2>/dev/null
16704 rc=$?
16705 if test $rc -eq 0; then
16706 export=1
16707 break;
16708 fi
16709 done
16710 if test $export -eq 0; then
16711 { $as_echo "$as_me:$LINENO: result: no" >&5
16712$as_echo "no" >&6; }
16713
16714 else
16715 { $as_echo "$as_me:$LINENO: result: yes" >&5
16716$as_echo "yes" >&6; }
16717
16718cat >>confdefs.h <<\_ACEOF
16719#define HAVE_MONOTONIC_CLOCK 1
16720_ACEOF
16721
16722 fi
16723 else
16724 { $as_echo "$as_me:$LINENO: result: yes" >&5
16725$as_echo "yes" >&6; }
16726
16727cat >>confdefs.h <<\_ACEOF
16728#define HAVE_MONOTONIC_CLOCK 1
16729_ACEOF
16730
16731 fi
16732
16733
16734
16735 { $as_echo "$as_me:$LINENO: checking whether struct inode has i_mutex" >&5
16736$as_echo_n "checking whether struct inode has i_mutex... " >&6; }
16737
16738
dbe561d8 16739cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
16740/* confdefs.h. */
16741_ACEOF
16742cat confdefs.h >>conftest.$ac_ext
16743cat >>conftest.$ac_ext <<_ACEOF
16744/* end confdefs.h. */
16745
16746
16747 #include <linux/fs.h>
16748 #include <linux/mutex.h>
16749
16750int
16751main (void)
16752{
16753
16754 struct inode i;
16755 mutex_init(&i.i_mutex);
16756
16757 ;
16758 return 0;
16759}
16760
16761_ACEOF
16762
16763
16764 rm -Rf build && mkdir -p build
16765 echo "obj-m := conftest.o" >build/Makefile
16766 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16769 ac_status=$?
16770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777
16778 { $as_echo "$as_me:$LINENO: result: yes" >&5
16779$as_echo "yes" >&6; }
16780
16781cat >>confdefs.h <<\_ACEOF
16782#define HAVE_INODE_I_MUTEX 1
16783_ACEOF
16784
16785
16786else
16787 $as_echo "$as_me: failed program was:" >&5
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
16790 { $as_echo "$as_me:$LINENO: result: no" >&5
16791$as_echo "no" >&6; }
16792
16793
16794
16795fi
16796
16797 rm -Rf build
16798
16799
16800
16801
16802 { $as_echo "$as_me:$LINENO: checking whether struct mutex has owner" >&5
16803$as_echo_n "checking whether struct mutex has owner... " >&6; }
16804
16805
dbe561d8 16806cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812
16813
16814 #include <linux/mutex.h>
16815
16816int
16817main (void)
16818{
16819
16820 struct mutex mtx;
16821 mtx.owner = NULL;
16822
16823 ;
16824 return 0;
16825}
16826
16827_ACEOF
16828
16829
16830 rm -Rf build && mkdir -p build
16831 echo "obj-m := conftest.o" >build/Makefile
16832 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16835 ac_status=$?
16836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843
16844 { $as_echo "$as_me:$LINENO: result: yes" >&5
16845$as_echo "yes" >&6; }
16846
16847cat >>confdefs.h <<\_ACEOF
16848#define HAVE_MUTEX_OWNER 1
16849_ACEOF
16850
16851
16852else
16853 $as_echo "$as_me: failed program was:" >&5
16854sed 's/^/| /' conftest.$ac_ext >&5
16855
16856 { $as_echo "$as_me:$LINENO: result: no" >&5
16857$as_echo "no" >&6; }
16858
16859
16860
16861fi
16862
16863 rm -Rf build
16864
16865
16866
16867
16868 { $as_echo "$as_me:$LINENO: checking whether mutex_lock_nested() is available" >&5
16869$as_echo_n "checking whether mutex_lock_nested() is available... " >&6; }
16870
16871
dbe561d8 16872cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
16878
16879
16880 #include <linux/mutex.h>
16881
16882int
16883main (void)
16884{
16885
16886 struct mutex mutex;
16887 mutex_init(&mutex);
16888 mutex_lock_nested(&mutex, 0);
16889
16890 ;
16891 return 0;
16892}
16893
16894_ACEOF
16895
16896
16897 rm -Rf build && mkdir -p build
16898 echo "obj-m := conftest.o" >build/Makefile
16899 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910
16911 { $as_echo "$as_me:$LINENO: result: yes" >&5
16912$as_echo "yes" >&6; }
16913
16914cat >>confdefs.h <<\_ACEOF
16915#define HAVE_MUTEX_LOCK_NESTED 1
16916_ACEOF
16917
16918
16919else
16920 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 16921sed 's/^/| /' conftest.$ac_ext >&5
16922
8934764e
BB
16923 { $as_echo "$as_me:$LINENO: result: no" >&5
16924$as_echo "no" >&6; }
16925
16926
16927
16928fi
16929
16930 rm -Rf build
16931
16932
16933
16934
16935 { $as_echo "$as_me:$LINENO: checking whether symbol div64_64 is exported" >&5
16936$as_echo_n "checking whether symbol div64_64 is exported... " >&6; }
16937 grep -q -E '[[:space:]]div64_64[[:space:]]' \
16938 $LINUX_OBJ/Module*.symvers 2>/dev/null
16939 rc=$?
16940 if test $rc -ne 0; then
16941 export=0
16942 for file in ; do
16943 grep -q -E "EXPORT_SYMBOL.*(div64_64)" \
16944 "$LINUX_OBJ/$file" 2>/dev/null
16945 rc=$?
16946 if test $rc -eq 0; then
16947 export=1
16948 break;
16949 fi
16950 done
16951 if test $export -eq 0; then
16952 { $as_echo "$as_me:$LINENO: result: no" >&5
16953$as_echo "no" >&6; }
bf9f3bac 16954
8934764e
BB
16955 else
16956 { $as_echo "$as_me:$LINENO: result: yes" >&5
16957$as_echo "yes" >&6; }
c5f70460 16958
8934764e
BB
16959cat >>confdefs.h <<\_ACEOF
16960#define HAVE_DIV64_64 1
16961_ACEOF
c5f70460 16962
8934764e
BB
16963 fi
16964 else
16965 { $as_echo "$as_me:$LINENO: result: yes" >&5
16966$as_echo "yes" >&6; }
c5f70460 16967
8934764e
BB
16968cat >>confdefs.h <<\_ACEOF
16969#define HAVE_DIV64_64 1
16970_ACEOF
c5f70460 16971
8934764e 16972 fi
bf9f3bac 16973
16974
16975
8934764e
BB
16976 { $as_echo "$as_me:$LINENO: checking whether symbol div64_u64 is exported" >&5
16977$as_echo_n "checking whether symbol div64_u64 is exported... " >&6; }
16978 grep -q -E '[[:space:]]div64_u64[[:space:]]' \
6ae7fef5
BB
16979 $LINUX_OBJ/Module*.symvers 2>/dev/null
16980 rc=$?
16981 if test $rc -ne 0; then
16982 export=0
16983 for file in ; do
8934764e 16984 grep -q -E "EXPORT_SYMBOL.*(div64_u64)" \
6ae7fef5
BB
16985 "$LINUX_OBJ/$file" 2>/dev/null
16986 rc=$?
16987 if test $rc -eq 0; then
16988 export=1
16989 break;
16990 fi
16991 done
16992 if test $export -eq 0; then
8934764e
BB
16993 { $as_echo "$as_me:$LINENO: result: no" >&5
16994$as_echo "no" >&6; }
6ae7fef5
BB
16995
16996 else
8934764e
BB
16997 { $as_echo "$as_me:$LINENO: result: yes" >&5
16998$as_echo "yes" >&6; }
6ae7fef5
BB
16999
17000cat >>confdefs.h <<\_ACEOF
8934764e 17001#define HAVE_DIV64_U64 1
6ae7fef5
BB
17002_ACEOF
17003
17004 fi
17005 else
8934764e
BB
17006 { $as_echo "$as_me:$LINENO: result: yes" >&5
17007$as_echo "yes" >&6; }
6ae7fef5
BB
17008
17009cat >>confdefs.h <<\_ACEOF
8934764e 17010#define HAVE_DIV64_U64 1
6ae7fef5
BB
17011_ACEOF
17012
17013 fi
17014
17015
17016
8934764e
BB
17017 { $as_echo "$as_me:$LINENO: checking whether on_each_cpu() wants 3 args" >&5
17018$as_echo_n "checking whether on_each_cpu() wants 3 args... " >&6; }
bf9f3bac 17019
17020
dbe561d8 17021cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17022/* confdefs.h. */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h. */
17027
17028
8934764e 17029 #include <linux/smp.h>
bf9f3bac 17030
17031int
17032main (void)
17033{
17034
8934764e 17035 on_each_cpu(NULL, NULL, 0);
bf9f3bac 17036
17037 ;
17038 return 0;
17039}
17040
17041_ACEOF
17042
c5f70460
BB
17043
17044 rm -Rf build && mkdir -p build
17045 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17046 if { 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 17047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17048 (eval $ac_try) 2>&5
17049 ac_status=$?
8934764e 17050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17051 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
8934764e 17055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17056 (exit $ac_status); }; }; then
17057
8934764e
BB
17058 { $as_echo "$as_me:$LINENO: result: yes" >&5
17059$as_echo "yes" >&6; }
bf9f3bac 17060
17061cat >>confdefs.h <<\_ACEOF
8934764e 17062#define HAVE_3ARGS_ON_EACH_CPU 1
bf9f3bac 17063_ACEOF
17064
bf9f3bac 17065
17066else
8934764e 17067 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17068sed 's/^/| /' conftest.$ac_ext >&5
17069
8934764e
BB
17070 { $as_echo "$as_me:$LINENO: result: no" >&5
17071$as_echo "no" >&6; }
bf9f3bac 17072
17073
c5f70460 17074
bf9f3bac 17075fi
c5f70460
BB
17076
17077 rm -Rf build
17078
bf9f3bac 17079
17080
17081
8934764e
BB
17082 { $as_echo "$as_me:$LINENO: checking whether symbol kallsyms_lookup_name is exported" >&5
17083$as_echo_n "checking whether symbol kallsyms_lookup_name is exported... " >&6; }
17084 grep -q -E '[[:space:]]kallsyms_lookup_name[[:space:]]' \
17085 $LINUX_OBJ/Module*.symvers 2>/dev/null
17086 rc=$?
17087 if test $rc -ne 0; then
17088 export=0
17089 for file in ; do
17090 grep -q -E "EXPORT_SYMBOL.*(kallsyms_lookup_name)" \
17091 "$LINUX_OBJ/$file" 2>/dev/null
17092 rc=$?
17093 if test $rc -eq 0; then
17094 export=1
17095 break;
17096 fi
17097 done
17098 if test $export -eq 0; then
17099 { $as_echo "$as_me:$LINENO: result: no" >&5
17100$as_echo "no" >&6; }
4d54fdee 17101
8934764e
BB
17102 else
17103 { $as_echo "$as_me:$LINENO: result: yes" >&5
17104$as_echo "yes" >&6; }
4d54fdee 17105
8934764e
BB
17106cat >>confdefs.h <<\_ACEOF
17107#define HAVE_KALLSYMS_LOOKUP_NAME 1
4d54fdee 17108_ACEOF
4d54fdee 17109
8934764e
BB
17110 fi
17111 else
17112 { $as_echo "$as_me:$LINENO: result: yes" >&5
17113$as_echo "yes" >&6; }
4d54fdee 17114
8934764e
BB
17115cat >>confdefs.h <<\_ACEOF
17116#define HAVE_KALLSYMS_LOOKUP_NAME 1
17117_ACEOF
4d54fdee 17118
8934764e 17119 fi
4d54fdee 17120
4d54fdee 17121
4d54fdee 17122
8934764e
BB
17123 { $as_echo "$as_me:$LINENO: checking whether symbol get_vmalloc_info is exported" >&5
17124$as_echo_n "checking whether symbol get_vmalloc_info is exported... " >&6; }
17125 grep -q -E '[[:space:]]get_vmalloc_info[[:space:]]' \
17126 $LINUX_OBJ/Module*.symvers 2>/dev/null
17127 rc=$?
17128 if test $rc -ne 0; then
17129 export=0
17130 for file in ; do
17131 grep -q -E "EXPORT_SYMBOL.*(get_vmalloc_info)" \
17132 "$LINUX_OBJ/$file" 2>/dev/null
17133 rc=$?
17134 if test $rc -eq 0; then
17135 export=1
17136 break;
17137 fi
17138 done
17139 if test $export -eq 0; then
17140 { $as_echo "$as_me:$LINENO: result: no" >&5
17141$as_echo "no" >&6; }
4d54fdee 17142
8934764e
BB
17143 else
17144 { $as_echo "$as_me:$LINENO: result: yes" >&5
17145$as_echo "yes" >&6; }
4d54fdee 17146
8934764e
BB
17147cat >>confdefs.h <<\_ACEOF
17148#define HAVE_GET_VMALLOC_INFO 1
17149_ACEOF
4d54fdee 17150
8934764e
BB
17151 fi
17152 else
17153 { $as_echo "$as_me:$LINENO: result: yes" >&5
17154$as_echo "yes" >&6; }
4d54fdee
BB
17155
17156cat >>confdefs.h <<\_ACEOF
8934764e 17157#define HAVE_GET_VMALLOC_INFO 1
4d54fdee
BB
17158_ACEOF
17159
8934764e 17160 fi
4d54fdee 17161
4d54fdee
BB
17162
17163
8934764e
BB
17164 { $as_echo "$as_me:$LINENO: checking whether symbol *_pgdat exist" >&5
17165$as_echo_n "checking whether symbol *_pgdat exist... " >&6; }
17166 grep -q -E 'first_online_pgdat' $LINUX/include/linux/mmzone.h 2>/dev/null
17167 rc=$?
17168 if test $rc -eq 0; then
17169 { $as_echo "$as_me:$LINENO: result: yes" >&5
17170$as_echo "yes" >&6; }
4d54fdee 17171
8934764e
BB
17172cat >>confdefs.h <<\_ACEOF
17173#define HAVE_PGDAT_HELPERS 1
17174_ACEOF
4d54fdee 17175
8934764e
BB
17176 else
17177 { $as_echo "$as_me:$LINENO: result: no" >&5
17178$as_echo "no" >&6; }
17179 fi
4d54fdee
BB
17180
17181
8934764e
BB
17182 { $as_echo "$as_me:$LINENO: checking whether symbol first_online_pgdat is exported" >&5
17183$as_echo_n "checking whether symbol first_online_pgdat is exported... " >&6; }
17184 grep -q -E '[[:space:]]first_online_pgdat[[:space:]]' \
17185 $LINUX_OBJ/Module*.symvers 2>/dev/null
17186 rc=$?
17187 if test $rc -ne 0; then
17188 export=0
17189 for file in ; do
17190 grep -q -E "EXPORT_SYMBOL.*(first_online_pgdat)" \
17191 "$LINUX_OBJ/$file" 2>/dev/null
17192 rc=$?
17193 if test $rc -eq 0; then
17194 export=1
17195 break;
17196 fi
17197 done
17198 if test $export -eq 0; then
17199 { $as_echo "$as_me:$LINENO: result: no" >&5
17200$as_echo "no" >&6; }
4d54fdee 17201
8934764e
BB
17202 else
17203 { $as_echo "$as_me:$LINENO: result: yes" >&5
17204$as_echo "yes" >&6; }
4d54fdee 17205
8934764e
BB
17206cat >>confdefs.h <<\_ACEOF
17207#define HAVE_FIRST_ONLINE_PGDAT 1
17208_ACEOF
bf9f3bac 17209
8934764e
BB
17210 fi
17211 else
17212 { $as_echo "$as_me:$LINENO: result: yes" >&5
17213$as_echo "yes" >&6; }
bf9f3bac 17214
8934764e
BB
17215cat >>confdefs.h <<\_ACEOF
17216#define HAVE_FIRST_ONLINE_PGDAT 1
bf9f3bac 17217_ACEOF
bf9f3bac 17218
8934764e 17219 fi
bf9f3bac 17220
bf9f3bac 17221
bf9f3bac 17222
8934764e
BB
17223 { $as_echo "$as_me:$LINENO: checking whether symbol next_online_pgdat is exported" >&5
17224$as_echo_n "checking whether symbol next_online_pgdat is exported... " >&6; }
17225 grep -q -E '[[:space:]]next_online_pgdat[[:space:]]' \
17226 $LINUX_OBJ/Module*.symvers 2>/dev/null
17227 rc=$?
17228 if test $rc -ne 0; then
17229 export=0
17230 for file in ; do
17231 grep -q -E "EXPORT_SYMBOL.*(next_online_pgdat)" \
17232 "$LINUX_OBJ/$file" 2>/dev/null
17233 rc=$?
17234 if test $rc -eq 0; then
17235 export=1
17236 break;
17237 fi
17238 done
17239 if test $export -eq 0; then
17240 { $as_echo "$as_me:$LINENO: result: no" >&5
17241$as_echo "no" >&6; }
bf9f3bac 17242
8934764e
BB
17243 else
17244 { $as_echo "$as_me:$LINENO: result: yes" >&5
17245$as_echo "yes" >&6; }
bf9f3bac 17246
8934764e
BB
17247cat >>confdefs.h <<\_ACEOF
17248#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 17249_ACEOF
17250
8934764e
BB
17251 fi
17252 else
17253 { $as_echo "$as_me:$LINENO: result: yes" >&5
17254$as_echo "yes" >&6; }
bf9f3bac 17255
17256cat >>confdefs.h <<\_ACEOF
8934764e 17257#define HAVE_NEXT_ONLINE_PGDAT 1
bf9f3bac 17258_ACEOF
17259
8934764e 17260 fi
bf9f3bac 17261
17262
17263
8934764e
BB
17264 { $as_echo "$as_me:$LINENO: checking whether symbol next_zone is exported" >&5
17265$as_echo_n "checking whether symbol next_zone is exported... " >&6; }
17266 grep -q -E '[[:space:]]next_zone[[:space:]]' \
6ae7fef5
BB
17267 $LINUX_OBJ/Module*.symvers 2>/dev/null
17268 rc=$?
17269 if test $rc -ne 0; then
17270 export=0
17271 for file in ; do
8934764e 17272 grep -q -E "EXPORT_SYMBOL.*(next_zone)" \
6ae7fef5
BB
17273 "$LINUX_OBJ/$file" 2>/dev/null
17274 rc=$?
17275 if test $rc -eq 0; then
17276 export=1
17277 break;
17278 fi
17279 done
17280 if test $export -eq 0; then
8934764e
BB
17281 { $as_echo "$as_me:$LINENO: result: no" >&5
17282$as_echo "no" >&6; }
6ae7fef5
BB
17283
17284 else
8934764e
BB
17285 { $as_echo "$as_me:$LINENO: result: yes" >&5
17286$as_echo "yes" >&6; }
6ae7fef5
BB
17287
17288cat >>confdefs.h <<\_ACEOF
8934764e 17289#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
17290_ACEOF
17291
17292 fi
17293 else
8934764e
BB
17294 { $as_echo "$as_me:$LINENO: result: yes" >&5
17295$as_echo "yes" >&6; }
6ae7fef5
BB
17296
17297cat >>confdefs.h <<\_ACEOF
8934764e 17298#define HAVE_NEXT_ZONE 1
6ae7fef5
BB
17299_ACEOF
17300
17301 fi
17302
17303
17304
8934764e
BB
17305 { $as_echo "$as_me:$LINENO: checking whether symbol pgdat_list is exported" >&5
17306$as_echo_n "checking whether symbol pgdat_list is exported... " >&6; }
17307 grep -q -E '[[:space:]]pgdat_list[[:space:]]' \
6ae7fef5
BB
17308 $LINUX_OBJ/Module*.symvers 2>/dev/null
17309 rc=$?
17310 if test $rc -ne 0; then
17311 export=0
17312 for file in ; do
8934764e 17313 grep -q -E "EXPORT_SYMBOL.*(pgdat_list)" \
6ae7fef5
BB
17314 "$LINUX_OBJ/$file" 2>/dev/null
17315 rc=$?
17316 if test $rc -eq 0; then
17317 export=1
17318 break;
17319 fi
17320 done
17321 if test $export -eq 0; then
8934764e
BB
17322 { $as_echo "$as_me:$LINENO: result: no" >&5
17323$as_echo "no" >&6; }
17324
17325 else
17326 { $as_echo "$as_me:$LINENO: result: yes" >&5
17327$as_echo "yes" >&6; }
17328
17329cat >>confdefs.h <<\_ACEOF
17330#define HAVE_PGDAT_LIST 1
17331_ACEOF
17332
17333 fi
17334 else
17335 { $as_echo "$as_me:$LINENO: result: yes" >&5
17336$as_echo "yes" >&6; }
17337
17338cat >>confdefs.h <<\_ACEOF
17339#define HAVE_PGDAT_LIST 1
17340_ACEOF
17341
17342 fi
17343
17344
17345
17346 { $as_echo "$as_me:$LINENO: checking whether global_page_state() is available" >&5
17347$as_echo_n "checking whether global_page_state() is available... " >&6; }
17348
17349
dbe561d8 17350cat confdefs.h - <<_ACEOF >conftest.c
8934764e
BB
17351/* confdefs.h. */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h. */
17356
17357
17358 #include <linux/mm.h>
17359
17360int
17361main (void)
17362{
17363
17364 unsigned long state;
17365 state = global_page_state(0);
17366
17367 ;
17368 return 0;
17369}
17370
17371_ACEOF
17372
17373
17374 rm -Rf build && mkdir -p build
17375 echo "obj-m := conftest.o" >build/Makefile
17376 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17378 (eval $ac_try) 2>&5
17379 ac_status=$?
17380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
6ae7fef5 17387
8934764e
BB
17388 { $as_echo "$as_me:$LINENO: result: yes" >&5
17389$as_echo "yes" >&6; }
6ae7fef5
BB
17390
17391cat >>confdefs.h <<\_ACEOF
8934764e 17392#define HAVE_GLOBAL_PAGE_STATE 1
6ae7fef5
BB
17393_ACEOF
17394
6ae7fef5 17395
8934764e
BB
17396else
17397 $as_echo "$as_me: failed program was:" >&5
17398sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 { $as_echo "$as_me:$LINENO: result: no" >&5
17401$as_echo "no" >&6; }
17402
17403
17404
17405fi
17406
17407 rm -Rf build
6ae7fef5 17408
6ae7fef5
BB
17409
17410
17411
8934764e
BB
17412 { $as_echo "$as_me:$LINENO: checking whether page state NR_FREE_PAGES is available" >&5
17413$as_echo_n "checking whether page state NR_FREE_PAGES is available... " >&6; }
bf9f3bac 17414
17415
dbe561d8 17416cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17417/* confdefs.h. */
17418_ACEOF
17419cat confdefs.h >>conftest.$ac_ext
17420cat >>conftest.$ac_ext <<_ACEOF
17421/* end confdefs.h. */
17422
17423
8934764e 17424 #include <linux/mm.h>
bf9f3bac 17425
17426int
17427main (void)
17428{
17429
8934764e
BB
17430 enum zone_stat_item zsi;
17431 zsi = NR_FREE_PAGES;
bf9f3bac 17432
17433 ;
17434 return 0;
17435}
17436
17437_ACEOF
17438
c5f70460
BB
17439
17440 rm -Rf build && mkdir -p build
17441 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17442 if { 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 17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
8934764e 17446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17447 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17450 ac_status=$?
8934764e 17451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17452 (exit $ac_status); }; }; then
17453
8934764e
BB
17454 { $as_echo "$as_me:$LINENO: result: yes" >&5
17455$as_echo "yes" >&6; }
bf9f3bac 17456
17457cat >>confdefs.h <<\_ACEOF
8934764e 17458#define HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES 1
bf9f3bac 17459_ACEOF
17460
bf9f3bac 17461
17462else
8934764e 17463 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17464sed 's/^/| /' conftest.$ac_ext >&5
17465
8934764e
BB
17466 { $as_echo "$as_me:$LINENO: result: no" >&5
17467$as_echo "no" >&6; }
bf9f3bac 17468
17469
c5f70460 17470
bf9f3bac 17471fi
c5f70460
BB
17472
17473 rm -Rf build
17474
bf9f3bac 17475
17476
17477
8934764e
BB
17478 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE is available" >&5
17479$as_echo_n "checking whether page state NR_INACTIVE is available... " >&6; }
bf9f3bac 17480
bf9f3bac 17481
dbe561d8 17482cat confdefs.h - <<_ACEOF >conftest.c
8934764e 17483/* confdefs.h. */
6ae7fef5 17484_ACEOF
8934764e
BB
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
bf9f3bac 17488
6ae7fef5 17489
8934764e 17490 #include <linux/mm.h>
bf9f3bac 17491
8934764e
BB
17492int
17493main (void)
17494{
bf9f3bac 17495
8934764e
BB
17496 enum zone_stat_item zsi;
17497 zsi = NR_INACTIVE;
bf9f3bac 17498
8934764e
BB
17499 ;
17500 return 0;
17501}
bf9f3bac 17502
8934764e 17503_ACEOF
bf9f3bac 17504
bf9f3bac 17505
8934764e
BB
17506 rm -Rf build && mkdir -p build
17507 echo "obj-m := conftest.o" >build/Makefile
17508 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17516 ac_status=$?
17517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
bf9f3bac 17519
8934764e
BB
17520 { $as_echo "$as_me:$LINENO: result: yes" >&5
17521$as_echo "yes" >&6; }
6ae7fef5
BB
17522
17523cat >>confdefs.h <<\_ACEOF
8934764e 17524#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE 1
6ae7fef5
BB
17525_ACEOF
17526
6ae7fef5 17527
8934764e
BB
17528else
17529 $as_echo "$as_me: failed program was:" >&5
17530sed 's/^/| /' conftest.$ac_ext >&5
c5f70460 17531
8934764e
BB
17532 { $as_echo "$as_me:$LINENO: result: no" >&5
17533$as_echo "no" >&6; }
bf9f3bac 17534
bf9f3bac 17535
8934764e
BB
17536
17537fi
17538
17539 rm -Rf build
17540
17541
17542
17543 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_ANON is available" >&5
17544$as_echo_n "checking whether page state NR_INACTIVE_ANON is available... " >&6; }
17545
17546
dbe561d8 17547cat confdefs.h - <<_ACEOF >conftest.c
8934764e 17548/* confdefs.h. */
bf9f3bac 17549_ACEOF
8934764e
BB
17550cat confdefs.h >>conftest.$ac_ext
17551cat >>conftest.$ac_ext <<_ACEOF
17552/* end confdefs.h. */
bf9f3bac 17553
17554
8934764e 17555 #include <linux/mm.h>
bf9f3bac 17556
8934764e
BB
17557int
17558main (void)
17559{
bf9f3bac 17560
8934764e
BB
17561 enum zone_stat_item zsi;
17562 zsi = NR_INACTIVE_ANON;
17563
17564 ;
17565 return 0;
17566}
c5f70460 17567
6ae7fef5 17568_ACEOF
c5f70460 17569
8934764e
BB
17570
17571 rm -Rf build && mkdir -p build
17572 echo "obj-m := conftest.o" >build/Makefile
17573 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; }; then
17584
17585 { $as_echo "$as_me:$LINENO: result: yes" >&5
17586$as_echo "yes" >&6; }
c5f70460 17587
6ae7fef5 17588cat >>confdefs.h <<\_ACEOF
8934764e 17589#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON 1
6ae7fef5 17590_ACEOF
c5f70460 17591
bf9f3bac 17592
8934764e
BB
17593else
17594 $as_echo "$as_me: failed program was:" >&5
17595sed 's/^/| /' conftest.$ac_ext >&5
bf9f3bac 17596
8934764e
BB
17597 { $as_echo "$as_me:$LINENO: result: no" >&5
17598$as_echo "no" >&6; }
bf9f3bac 17599
bf9f3bac 17600
bf9f3bac 17601
8934764e 17602fi
bf9f3bac 17603
8934764e 17604 rm -Rf build
bf9f3bac 17605
8934764e
BB
17606
17607
17608 { $as_echo "$as_me:$LINENO: checking whether page state NR_INACTIVE_FILE is available" >&5
17609$as_echo_n "checking whether page state NR_INACTIVE_FILE is available... " >&6; }
17610
17611
dbe561d8 17612cat confdefs.h - <<_ACEOF >conftest.c
8934764e 17613/* confdefs.h. */
bf9f3bac 17614_ACEOF
8934764e
BB
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
17617/* end confdefs.h. */
bf9f3bac 17618
bf9f3bac 17619
8934764e 17620 #include <linux/mm.h>
bf9f3bac 17621
8934764e
BB
17622int
17623main (void)
17624{
bf9f3bac 17625
8934764e
BB
17626 enum zone_stat_item zsi;
17627 zsi = NR_INACTIVE_FILE;
6ae7fef5 17628
8934764e
BB
17629 ;
17630 return 0;
17631}
6ae7fef5 17632
6ae7fef5
BB
17633_ACEOF
17634
8934764e
BB
17635
17636 rm -Rf build && mkdir -p build
17637 echo "obj-m := conftest.o" >build/Makefile
17638 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17641 ac_status=$?
17642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649
17650 { $as_echo "$as_me:$LINENO: result: yes" >&5
17651$as_echo "yes" >&6; }
6ae7fef5
BB
17652
17653cat >>confdefs.h <<\_ACEOF
8934764e 17654#define HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE 1
6ae7fef5
BB
17655_ACEOF
17656
6ae7fef5 17657
8934764e
BB
17658else
17659 $as_echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
6ae7fef5 17661
8934764e
BB
17662 { $as_echo "$as_me:$LINENO: result: no" >&5
17663$as_echo "no" >&6; }
6ae7fef5 17664
6ae7fef5 17665
6ae7fef5 17666
8934764e 17667fi
6ae7fef5 17668
8934764e 17669 rm -Rf build
6ae7fef5 17670
6ae7fef5
BB
17671
17672
17673
8934764e
BB
17674 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE is available" >&5
17675$as_echo_n "checking whether page state NR_ACTIVE is available... " >&6; }
bf9f3bac 17676
17677
dbe561d8 17678cat confdefs.h - <<_ACEOF >conftest.c
bf9f3bac 17679/* confdefs.h. */
17680_ACEOF
17681cat confdefs.h >>conftest.$ac_ext
17682cat >>conftest.$ac_ext <<_ACEOF
17683/* end confdefs.h. */
17684
17685
6ae7fef5 17686 #include <linux/mm.h>
bf9f3bac 17687
17688int
17689main (void)
17690{
17691
8934764e
BB
17692 enum zone_stat_item zsi;
17693 zsi = NR_ACTIVE;
bf9f3bac 17694
17695 ;
17696 return 0;
17697}
17698
17699_ACEOF
17700
c5f70460
BB
17701
17702 rm -Rf build && mkdir -p build
17703 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17704 if { 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 17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
8934764e 17708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17709 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17712 ac_status=$?
8934764e 17713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
bf9f3bac 17714 (exit $ac_status); }; }; then
17715
8934764e
BB
17716 { $as_echo "$as_me:$LINENO: result: yes" >&5
17717$as_echo "yes" >&6; }
bf9f3bac 17718
17719cat >>confdefs.h <<\_ACEOF
8934764e 17720#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE 1
bf9f3bac 17721_ACEOF
17722
17723
17724else
8934764e 17725 $as_echo "$as_me: failed program was:" >&5
bf9f3bac 17726sed 's/^/| /' conftest.$ac_ext >&5
17727
8934764e
BB
17728 { $as_echo "$as_me:$LINENO: result: no" >&5
17729$as_echo "no" >&6; }
bf9f3bac 17730
c5f70460
BB
17731
17732
bf9f3bac 17733fi
c5f70460
BB
17734
17735 rm -Rf build
17736
bf9f3bac 17737
17738
8934764e
BB
17739 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_ANON is available" >&5
17740$as_echo_n "checking whether page state NR_ACTIVE_ANON is available... " >&6; }
6c9433c1
BB
17741
17742
dbe561d8 17743cat confdefs.h - <<_ACEOF >conftest.c
6c9433c1
BB
17744/* confdefs.h. */
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h. */
17749
17750
6ae7fef5 17751 #include <linux/mm.h>
6c9433c1
BB
17752
17753int
17754main (void)
17755{
17756
6ae7fef5 17757 enum zone_stat_item zsi;
8934764e 17758 zsi = NR_ACTIVE_ANON;
6c9433c1
BB
17759
17760 ;
17761 return 0;
17762}
17763
17764_ACEOF
17765
17766
17767 rm -Rf build && mkdir -p build
17768 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17769 if { 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
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
6c9433c1
BB
17774 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
8934764e 17778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6c9433c1
BB
17779 (exit $ac_status); }; }; then
17780
8934764e
BB
17781 { $as_echo "$as_me:$LINENO: result: yes" >&5
17782$as_echo "yes" >&6; }
6c9433c1
BB
17783
17784cat >>confdefs.h <<\_ACEOF
8934764e 17785#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON 1
6c9433c1
BB
17786_ACEOF
17787
17788
17789else
8934764e 17790 $as_echo "$as_me: failed program was:" >&5
6c9433c1
BB
17791sed 's/^/| /' conftest.$ac_ext >&5
17792
8934764e
BB
17793 { $as_echo "$as_me:$LINENO: result: no" >&5
17794$as_echo "no" >&6; }
6c9433c1
BB
17795
17796
17797
17798fi
17799
17800 rm -Rf build
17801
17802
17803
8934764e
BB
17804 { $as_echo "$as_me:$LINENO: checking whether page state NR_ACTIVE_FILE is available" >&5
17805$as_echo_n "checking whether page state NR_ACTIVE_FILE is available... " >&6; }
bf9f3bac 17806
bf9f3bac 17807
dbe561d8 17808cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 17809/* confdefs.h. */
bf9f3bac 17810_ACEOF
6ae7fef5
BB
17811cat confdefs.h >>conftest.$ac_ext
17812cat >>conftest.$ac_ext <<_ACEOF
17813/* end confdefs.h. */
bf9f3bac 17814
bf9f3bac 17815
6ae7fef5 17816 #include <linux/mm.h>
bf9f3bac 17817
6ae7fef5
BB
17818int
17819main (void)
17820{
96dded38 17821
6ae7fef5 17822 enum zone_stat_item zsi;
8934764e 17823 zsi = NR_ACTIVE_FILE;
bf9f3bac 17824
6ae7fef5
BB
17825 ;
17826 return 0;
17827}
31a033ec 17828
6ae7fef5 17829_ACEOF
31a033ec 17830
c5f70460 17831
6ae7fef5
BB
17832 rm -Rf build && mkdir -p build
17833 echo "obj-m := conftest.o" >build/Makefile
17834 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
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); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
8934764e 17843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 17844 (exit $ac_status); }; }; then
c5f70460 17845
8934764e
BB
17846 { $as_echo "$as_me:$LINENO: result: yes" >&5
17847$as_echo "yes" >&6; }
c5f70460 17848
96dded38 17849cat >>confdefs.h <<\_ACEOF
8934764e 17850#define HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE 1
96dded38 17851_ACEOF
c5f70460 17852
31a033ec 17853
6ae7fef5 17854else
8934764e 17855 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
8934764e
BB
17858 { $as_echo "$as_me:$LINENO: result: no" >&5
17859$as_echo "no" >&6; }
6ae7fef5
BB
17860
17861
17862
17863fi
17864
17865 rm -Rf build
31a033ec
BB
17866
17867
6ae7fef5 17868
8934764e
BB
17869
17870 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is needed" >&5
17871$as_echo_n "checking whether symbol get_zone_counts is needed... " >&6; }
31a033ec
BB
17872
17873
dbe561d8 17874cat confdefs.h - <<_ACEOF >conftest.c
31a033ec
BB
17875/* confdefs.h. */
17876_ACEOF
17877cat confdefs.h >>conftest.$ac_ext
17878cat >>conftest.$ac_ext <<_ACEOF
17879/* end confdefs.h. */
17880
17881
31a033ec
BB
17882
17883int
17884main (void)
17885{
17886
8934764e
BB
17887 #if !defined(HAVE_ZONE_STAT_ITEM_NR_FREE_PAGES)
17888 #error "global_page_state needs NR_FREE_PAGES"
17889 #endif
17890
17891 #if !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE) && \
17892 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_ANON) && \
17893 !defined(HAVE_ZONE_STAT_ITEM_NR_ACTIVE_FILE)
17894 #error "global_page_state needs NR_ACTIVE*"
17895 #endif
17896
17897 #if !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE) && \
17898 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_ANON) && \
17899 !defined(HAVE_ZONE_STAT_ITEM_NR_INACTIVE_FILE)
17900 #error "global_page_state needs NR_INACTIVE*"
17901 #endif
31a033ec
BB
17902
17903 ;
17904 return 0;
17905}
17906
17907_ACEOF
17908
c5f70460
BB
17909
17910 rm -Rf build && mkdir -p build
17911 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 17912 if { 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
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17915 ac_status=$?
8934764e 17916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
17917 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17920 ac_status=$?
8934764e 17921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31a033ec
BB
17922 (exit $ac_status); }; }; then
17923
8934764e
BB
17924 { $as_echo "$as_me:$LINENO: result: no" >&5
17925$as_echo "no" >&6; }
17926
17927else
17928 $as_echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 { $as_echo "$as_me:$LINENO: result: yes" >&5
17932$as_echo "yes" >&6; }
31a033ec
BB
17933
17934cat >>confdefs.h <<\_ACEOF
8934764e 17935#define NEED_GET_ZONE_COUNTS 1
31a033ec
BB
17936_ACEOF
17937
17938
8934764e
BB
17939 { $as_echo "$as_me:$LINENO: checking whether symbol get_zone_counts is exported" >&5
17940$as_echo_n "checking whether symbol get_zone_counts is exported... " >&6; }
17941 grep -q -E '[[:space:]]get_zone_counts[[:space:]]' \
17942 $LINUX_OBJ/Module*.symvers 2>/dev/null
17943 rc=$?
17944 if test $rc -ne 0; then
17945 export=0
17946 for file in ; do
17947 grep -q -E "EXPORT_SYMBOL.*(get_zone_counts)" \
17948 "$LINUX_OBJ/$file" 2>/dev/null
17949 rc=$?
17950 if test $rc -eq 0; then
17951 export=1
17952 break;
17953 fi
17954 done
17955 if test $export -eq 0; then
17956 { $as_echo "$as_me:$LINENO: result: no" >&5
17957$as_echo "no" >&6; }
17958
17959 else
17960 { $as_echo "$as_me:$LINENO: result: yes" >&5
17961$as_echo "yes" >&6; }
17962
17963cat >>confdefs.h <<\_ACEOF
17964#define HAVE_GET_ZONE_COUNTS 1
17965_ACEOF
17966
17967 fi
17968 else
17969 { $as_echo "$as_me:$LINENO: result: yes" >&5
17970$as_echo "yes" >&6; }
17971
17972cat >>confdefs.h <<\_ACEOF
17973#define HAVE_GET_ZONE_COUNTS 1
17974_ACEOF
17975
17976 fi
bf9f3bac 17977
bf9f3bac 17978
c5f70460
BB
17979
17980
bf9f3bac 17981fi
c5f70460
BB
17982
17983 rm -Rf build
17984
bf9f3bac 17985
17986
8934764e 17987
7119bf70
BB
17988 { $as_echo "$as_me:$LINENO: checking whether symbol user_path_at is exported" >&5
17989$as_echo_n "checking whether symbol user_path_at is exported... " >&6; }
17990 grep -q -E '[[:space:]]user_path_at[[:space:]]' \
17991 $LINUX_OBJ/Module*.symvers 2>/dev/null
17992 rc=$?
17993 if test $rc -ne 0; then
17994 export=0
17995 for file in ; do
17996 grep -q -E "EXPORT_SYMBOL.*(user_path_at)" \
17997 "$LINUX_OBJ/$file" 2>/dev/null
17998 rc=$?
17999 if test $rc -eq 0; then
18000 export=1
18001 break;
18002 fi
18003 done
18004 if test $export -eq 0; then
18005 { $as_echo "$as_me:$LINENO: result: no" >&5
18006$as_echo "no" >&6; }
18007
18008 else
18009 { $as_echo "$as_me:$LINENO: result: yes" >&5
18010$as_echo "yes" >&6; }
18011
18012cat >>confdefs.h <<\_ACEOF
18013#define HAVE_USER_PATH_DIR 1
18014_ACEOF
18015
18016 fi
18017 else
18018 { $as_echo "$as_me:$LINENO: result: yes" >&5
18019$as_echo "yes" >&6; }
18020
18021cat >>confdefs.h <<\_ACEOF
18022#define HAVE_USER_PATH_DIR 1
18023_ACEOF
18024
18025 fi
18026
18027
18028
8934764e
BB
18029 { $as_echo "$as_me:$LINENO: checking whether symbol set_fs_pwd is exported" >&5
18030$as_echo_n "checking whether symbol set_fs_pwd is exported... " >&6; }
18031 grep -q -E '[[:space:]]set_fs_pwd[[:space:]]' \
18032 $LINUX_OBJ/Module*.symvers 2>/dev/null
18033 rc=$?
18034 if test $rc -ne 0; then
18035 export=0
18036 for file in ; do
18037 grep -q -E "EXPORT_SYMBOL.*(set_fs_pwd)" \
18038 "$LINUX_OBJ/$file" 2>/dev/null
18039 rc=$?
18040 if test $rc -eq 0; then
18041 export=1
18042 break;
18043 fi
18044 done
18045 if test $export -eq 0; then
18046 { $as_echo "$as_me:$LINENO: result: no" >&5
18047$as_echo "no" >&6; }
18048
18049 else
18050 { $as_echo "$as_me:$LINENO: result: yes" >&5
18051$as_echo "yes" >&6; }
18052
18053cat >>confdefs.h <<\_ACEOF
18054#define HAVE_SET_FS_PWD 1
18055_ACEOF
18056
18057 fi
18058 else
18059 { $as_echo "$as_me:$LINENO: result: yes" >&5
18060$as_echo "yes" >&6; }
18061
18062cat >>confdefs.h <<\_ACEOF
18063#define HAVE_SET_FS_PWD 1
18064_ACEOF
18065
18066 fi
18067
18068
18069 { $as_echo "$as_me:$LINENO: checking whether set_fs_pwd() wants 2 args" >&5
18070$as_echo_n "checking whether set_fs_pwd() wants 2 args... " >&6; }
bf9f3bac 18071
d1ff2312 18072
dbe561d8 18073cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 18074/* confdefs.h. */
d1ff2312 18075_ACEOF
6ae7fef5
BB
18076cat confdefs.h >>conftest.$ac_ext
18077cat >>conftest.$ac_ext <<_ACEOF
18078/* end confdefs.h. */
d1ff2312 18079
d1ff2312 18080
8934764e
BB
18081 #include <linux/sched.h>
18082 #include <linux/fs_struct.h>
d1ff2312 18083
6ae7fef5
BB
18084int
18085main (void)
18086{
d1ff2312 18087
8934764e 18088 set_fs_pwd(NULL, NULL);
d1ff2312 18089
6ae7fef5
BB
18090 ;
18091 return 0;
18092}
d1ff2312 18093
6ae7fef5 18094_ACEOF
d1ff2312 18095
d1ff2312 18096
6ae7fef5
BB
18097 rm -Rf build && mkdir -p build
18098 echo "obj-m := conftest.o" >build/Makefile
18099 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18101 (eval $ac_try) 2>&5
18102 ac_status=$?
8934764e 18103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18104 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18106 (eval $ac_try) 2>&5
18107 ac_status=$?
8934764e 18108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5 18109 (exit $ac_status); }; }; then
d1ff2312 18110
8934764e
BB
18111 { $as_echo "$as_me:$LINENO: result: yes" >&5
18112$as_echo "yes" >&6; }
d1ff2312
BB
18113
18114cat >>confdefs.h <<\_ACEOF
8934764e 18115#define HAVE_2ARGS_SET_FS_PWD 1
d1ff2312
BB
18116_ACEOF
18117
5232d256 18118
6ae7fef5 18119else
8934764e 18120 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 18121sed 's/^/| /' conftest.$ac_ext >&5
5232d256 18122
8934764e
BB
18123 { $as_echo "$as_me:$LINENO: result: no" >&5
18124$as_echo "no" >&6; }
5232d256
BB
18125
18126
36b313da 18127
6ae7fef5
BB
18128fi
18129
18130 rm -Rf build
18131
36b313da 18132
36b313da 18133
8934764e
BB
18134 { $as_echo "$as_me:$LINENO: checking whether vfs_unlink() wants 2 args" >&5
18135$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
6ae7fef5
BB
18136
18137
dbe561d8 18138cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 18139/* confdefs.h. */
36b313da 18140_ACEOF
6ae7fef5
BB
18141cat confdefs.h >>conftest.$ac_ext
18142cat >>conftest.$ac_ext <<_ACEOF
18143/* end confdefs.h. */
36b313da 18144
36b313da 18145
8934764e 18146 #include <linux/fs.h>
36b313da 18147
6ae7fef5
BB
18148int
18149main (void)
18150{
36b313da 18151
8934764e 18152 vfs_unlink(NULL, NULL);
36b313da 18153
6ae7fef5
BB
18154 ;
18155 return 0;
18156}
36b313da 18157
36b313da
BB
18158_ACEOF
18159
6ae7fef5
BB
18160
18161 rm -Rf build && mkdir -p build
18162 echo "obj-m := conftest.o" >build/Makefile
18163 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
8934764e 18167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18168 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
8934764e 18172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18173 (exit $ac_status); }; }; then
18174
8934764e
BB
18175 { $as_echo "$as_me:$LINENO: result: yes" >&5
18176$as_echo "yes" >&6; }
36b313da
BB
18177
18178cat >>confdefs.h <<\_ACEOF
8934764e 18179#define HAVE_2ARGS_VFS_UNLINK 1
36b313da
BB
18180_ACEOF
18181
36b313da 18182
6ae7fef5 18183else
8934764e 18184 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 18185sed 's/^/| /' conftest.$ac_ext >&5
36b313da 18186
8934764e
BB
18187 { $as_echo "$as_me:$LINENO: result: no" >&5
18188$as_echo "no" >&6; }
36b313da 18189
36b313da 18190
36b313da 18191
6ae7fef5 18192fi
36b313da 18193
6ae7fef5
BB
18194 rm -Rf build
18195
18196
18197
8934764e
BB
18198 { $as_echo "$as_me:$LINENO: checking whether vfs_rename() wants 4 args" >&5
18199$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
6ae7fef5
BB
18200
18201
dbe561d8 18202cat confdefs.h - <<_ACEOF >conftest.c
6ae7fef5 18203/* confdefs.h. */
36b313da 18204_ACEOF
6ae7fef5
BB
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
36b313da 18208
36b313da 18209
8934764e 18210 #include <linux/fs.h>
36b313da 18211
6ae7fef5
BB
18212int
18213main (void)
18214{
36b313da 18215
8934764e 18216 vfs_rename(NULL, NULL, NULL, NULL);
5232d256 18217
6ae7fef5
BB
18218 ;
18219 return 0;
18220}
5232d256 18221
5232d256
BB
18222_ACEOF
18223
6ae7fef5
BB
18224
18225 rm -Rf build && mkdir -p build
18226 echo "obj-m := conftest.o" >build/Makefile
18227 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
8934764e 18231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18232 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234 (eval $ac_try) 2>&5
18235 ac_status=$?
8934764e 18236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6ae7fef5
BB
18237 (exit $ac_status); }; }; then
18238
8934764e
BB
18239 { $as_echo "$as_me:$LINENO: result: yes" >&5
18240$as_echo "yes" >&6; }
5232d256
BB
18241
18242cat >>confdefs.h <<\_ACEOF
8934764e 18243#define HAVE_4ARGS_VFS_RENAME 1
5232d256
BB
18244_ACEOF
18245
5232d256 18246
6ae7fef5 18247else
8934764e 18248 $as_echo "$as_me: failed program was:" >&5
6ae7fef5 18249sed 's/^/| /' conftest.$ac_ext >&5
5232d256 18250
8934764e
BB
18251 { $as_echo "$as_me:$LINENO: result: no" >&5
18252$as_echo "no" >&6; }
4ab13d3b 18253
4ab13d3b 18254
4ab13d3b 18255
6ae7fef5 18256fi
4ab13d3b 18257
6ae7fef5 18258 rm -Rf build
96dded38
BB
18259
18260
18261
8934764e
BB
18262
18263 { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
18264$as_echo_n "checking whether struct cred exists... " >&6; }
96dded38
BB
18265
18266
dbe561d8 18267cat confdefs.h - <<_ACEOF >conftest.c
96dded38
BB
18268/* confdefs.h. */
18269_ACEOF
18270cat confdefs.h >>conftest.$ac_ext
18271cat >>conftest.$ac_ext <<_ACEOF
18272/* end confdefs.h. */
18273
18274
8934764e 18275 #include <linux/cred.h>
96dded38
BB
18276
18277int
18278main (void)
18279{
18280
8934764e
BB
18281 struct cred *cr;
18282 cr = NULL;
96dded38
BB
18283
18284 ;
18285 return 0;
18286}
18287
18288_ACEOF
18289
18290
18291 rm -Rf build && mkdir -p build
18292 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18293 if { 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
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
8934764e 18297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
18298 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
8934764e 18302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
96dded38
BB
18303 (exit $ac_status); }; }; then
18304
8934764e
BB
18305 { $as_echo "$as_me:$LINENO: result: yes" >&5
18306$as_echo "yes" >&6; }
96dded38
BB
18307
18308cat >>confdefs.h <<\_ACEOF
8934764e 18309#define HAVE_CRED_STRUCT 1
96dded38
BB
18310_ACEOF
18311
18312
18313else
8934764e 18314 $as_echo "$as_me: failed program was:" >&5
96dded38
BB
18315sed 's/^/| /' conftest.$ac_ext >&5
18316
8934764e
BB
18317 { $as_echo "$as_me:$LINENO: result: no" >&5
18318$as_echo "no" >&6; }
96dded38
BB
18319
18320
18321
18322fi
18323
18324 rm -Rf build
18325
4ab13d3b
BB
18326
18327
18328
8934764e
BB
18329 { $as_echo "$as_me:$LINENO: checking whether symbol groups_search is exported" >&5
18330$as_echo_n "checking whether symbol groups_search is exported... " >&6; }
18331 grep -q -E '[[:space:]]groups_search[[:space:]]' \
18332 $LINUX_OBJ/Module*.symvers 2>/dev/null
18333 rc=$?
18334 if test $rc -ne 0; then
18335 export=0
18336 for file in ; do
18337 grep -q -E "EXPORT_SYMBOL.*(groups_search)" \
18338 "$LINUX_OBJ/$file" 2>/dev/null
18339 rc=$?
18340 if test $rc -eq 0; then
18341 export=1
18342 break;
18343 fi
18344 done
18345 if test $export -eq 0; then
18346 { $as_echo "$as_me:$LINENO: result: no" >&5
18347$as_echo "no" >&6; }
18348
18349 else
18350 { $as_echo "$as_me:$LINENO: result: yes" >&5
18351$as_echo "yes" >&6; }
18352
18353cat >>confdefs.h <<\_ACEOF
18354#define HAVE_GROUPS_SEARCH 1
18355_ACEOF
18356
18357 fi
18358 else
18359 { $as_echo "$as_me:$LINENO: result: yes" >&5
18360$as_echo "yes" >&6; }
18361
18362cat >>confdefs.h <<\_ACEOF
18363#define HAVE_GROUPS_SEARCH 1
18364_ACEOF
18365
18366 fi
18367
18368
18369
18370 { $as_echo "$as_me:$LINENO: checking whether symbol __put_task_struct is exported" >&5
18371$as_echo_n "checking whether symbol __put_task_struct is exported... " >&6; }
18372 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
18373 $LINUX_OBJ/Module*.symvers 2>/dev/null
18374 rc=$?
18375 if test $rc -ne 0; then
18376 export=0
18377 for file in ; do
18378 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
18379 "$LINUX_OBJ/$file" 2>/dev/null
18380 rc=$?
18381 if test $rc -eq 0; then
18382 export=1
18383 break;
18384 fi
18385 done
18386 if test $export -eq 0; then
18387 { $as_echo "$as_me:$LINENO: result: no" >&5
18388$as_echo "no" >&6; }
18389
18390 else
18391 { $as_echo "$as_me:$LINENO: result: yes" >&5
18392$as_echo "yes" >&6; }
18393
18394cat >>confdefs.h <<\_ACEOF
18395#define HAVE_PUT_TASK_STRUCT 1
18396_ACEOF
18397
18398 fi
18399 else
18400 { $as_echo "$as_me:$LINENO: result: yes" >&5
18401$as_echo "yes" >&6; }
18402
18403cat >>confdefs.h <<\_ACEOF
18404#define HAVE_PUT_TASK_STRUCT 1
18405_ACEOF
18406
18407 fi
18408
18409
18410
18411 { $as_echo "$as_me:$LINENO: checking whether proc_handler() wants 5 args" >&5
18412$as_echo_n "checking whether proc_handler() wants 5 args... " >&6; }
e11d6c5f
BB
18413
18414
dbe561d8 18415cat confdefs.h - <<_ACEOF >conftest.c
e11d6c5f
BB
18416/* confdefs.h. */
18417_ACEOF
18418cat confdefs.h >>conftest.$ac_ext
18419cat >>conftest.$ac_ext <<_ACEOF
18420/* end confdefs.h. */
18421
18422
8934764e 18423 #include <linux/sysctl.h>
e11d6c5f 18424
8934764e
BB
18425int
18426main (void)
18427{
18428
18429 proc_dostring(NULL, 0, NULL, NULL, NULL);
e11d6c5f
BB
18430
18431 ;
18432 return 0;
18433}
18434
18435_ACEOF
18436
18437
18438 rm -Rf build && mkdir -p build
18439 echo "obj-m := conftest.o" >build/Makefile
3d0cb2d3 18440 if { 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
18441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18442 (eval $ac_try) 2>&5
18443 ac_status=$?
8934764e 18444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
18445 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
8934764e 18449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
e11d6c5f
BB
18450 (exit $ac_status); }; }; then
18451
8934764e
BB
18452 { $as_echo "$as_me:$LINENO: result: yes" >&5
18453$as_echo "yes" >&6; }
18454
18455cat >>confdefs.h <<\_ACEOF
18456#define HAVE_5ARGS_PROC_HANDLER 1
18457_ACEOF
18458
6ae7fef5
BB
18459
18460else
8934764e 18461 $as_echo "$as_me: failed program was:" >&5
6ae7fef5
BB
18462sed 's/^/| /' conftest.$ac_ext >&5
18463
8934764e
BB
18464 { $as_echo "$as_me:$LINENO: result: no" >&5
18465$as_echo "no" >&6; }
e11d6c5f 18466
e11d6c5f
BB
18467
18468
8934764e 18469fi
e11d6c5f 18470
8934764e
BB
18471 rm -Rf build
18472
18473
18474
18475
b868e22f
BB
18476 { $as_echo "$as_me:$LINENO: checking whether symbol kvasprintf is exported" >&5
18477$as_echo_n "checking whether symbol kvasprintf is exported... " >&6; }
18478 grep -q -E '[[:space:]]kvasprintf[[:space:]]' \
18479 $LINUX_OBJ/Module*.symvers 2>/dev/null
18480 rc=$?
18481 if test $rc -ne 0; then
18482 export=0
18483 for file in ; do
18484 grep -q -E "EXPORT_SYMBOL.*(kvasprintf)" \
18485 "$LINUX_OBJ/$file" 2>/dev/null
18486 rc=$?
18487 if test $rc -eq 0; then
18488 export=1
18489 break;
18490 fi
18491 done
18492 if test $export -eq 0; then
18493 { $as_echo "$as_me:$LINENO: result: no" >&5
18494$as_echo "no" >&6; }
18495
18496 else
18497 { $as_echo "$as_me:$LINENO: result: yes" >&5
18498$as_echo "yes" >&6; }
18499
18500cat >>confdefs.h <<\_ACEOF
18501#define HAVE_KVASPRINTF 1
18502_ACEOF
18503
18504 fi
18505 else
18506 { $as_echo "$as_me:$LINENO: result: yes" >&5
18507$as_echo "yes" >&6; }
18508
18509cat >>confdefs.h <<\_ACEOF
18510#define HAVE_KVASPRINTF 1
18511_ACEOF
18512
18513 fi
18514
18515
18516
18142514
BB
18517
18518 if test "x$AWK" != xgawk; then
18519
18520 { { $as_echo "$as_me:$LINENO: error:
18521 *** Required util gawk missing. Please install the required
18522 *** gawk package for your distribution and try again." >&5
18523$as_echo "$as_me: error:
18524 *** Required util gawk missing. Please install the required
18525 *** gawk package for your distribution and try again." >&2;}
18526 { (exit 1); exit 1; }; }
18527
18528fi
18529
18530 ;;
8934764e
BB
18531 srpm) ;;
18532 *)
18533 { $as_echo "$as_me:$LINENO: result: Error!" >&5
18534$as_echo "Error!" >&6; }
18535 { { $as_echo "$as_me:$LINENO: error: Bad value \"$SPL_CONFIG\" for --with-config,
18536 user kernel|user|all|srpm" >&5
18537$as_echo "$as_me: error: Bad value \"$SPL_CONFIG\" for --with-config,
18538 user kernel|user|all|srpm" >&2;}
18539 { (exit 1); exit 1; }; } ;;
18540 esac
18541
18542 if test "$SPL_CONFIG" = user ||
18543 test "$SPL_CONFIG" = all; then
18544 CONFIG_USER_TRUE=
18545 CONFIG_USER_FALSE='#'
18546else
18547 CONFIG_USER_TRUE='#'
18548 CONFIG_USER_FALSE=
18549fi
18550
18551 if test "$SPL_CONFIG" = kernel ||
18552 test "$SPL_CONFIG" = all; then
18553 CONFIG_KERNEL_TRUE=
18554 CONFIG_KERNEL_FALSE='#'
18555else
18556 CONFIG_KERNEL_TRUE='#'
18557 CONFIG_KERNEL_FALSE=
18558fi
18559
18560
18561
18562ac_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"
18563
18564
18565cat >confcache <<\_ACEOF
18566# This file is a shell script that caches the results of configure
18567# tests run on this system so they can be shared between configure
18568# scripts and configure runs, see configure's option --config-cache.
18569# It is not useful on other systems. If it contains results you don't
18570# want to keep, you may remove or edit it.
18571#
18572# config.status only pays attention to the cache file if you give it
18573# the --recheck option to rerun configure.
18574#
18575# `ac_cv_env_foo' variables (set or unset) will be overridden when
18576# loading this file, other *unset* `ac_cv_foo' will be assigned the
18577# following values.
6ae7fef5 18578
6ae7fef5
BB
18579_ACEOF
18580
8934764e
BB
18581# The following way of writing the cache mishandles newlines in values,
18582# but we know of no workaround that is simple, portable, and efficient.
18583# So, we kill variables containing newlines.
18584# Ultrix sh set writes to stderr and can't be redirected directly,
18585# and sets the high bit in the cache file unless we assign to the vars.
18586(
18587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18588 eval ac_val=\$$ac_var
18589 case $ac_val in #(
18590 *${as_nl}*)
18591 case $ac_var in #(
18592 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18593$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18594 esac
18595 case $ac_var in #(
18596 _ | IFS | as_nl) ;; #(
18597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18598 *) $as_unset $ac_var ;;
18599 esac ;;
18600 esac
18601 done
6ae7fef5 18602
8934764e
BB
18603 (set) 2>&1 |
18604 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18605 *${as_nl}ac_space=\ *)
18606 # `set' does not quote correctly, so add quotes (double-quote
18607 # substitution turns \\\\ into \\, and sed turns \\ into \).
18608 sed -n \
18609 "s/'/'\\\\''/g;
18610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18611 ;; #(
18612 *)
18613 # `set' quotes correctly as required by POSIX, so do not add quotes.
18614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18615 ;;
18616 esac |
18617 sort
18618) |
18619 sed '
18620 /^ac_cv_env_/b end
18621 t clear
18622 :clear
18623 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18624 t end
18625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18626 :end' >>confcache
18627if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18628 if test -w "$cache_file"; then
18629 test "x$cache_file" != "x/dev/null" &&
18630 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18631$as_echo "$as_me: updating cache $cache_file" >&6;}
18632 cat confcache >$cache_file
18633 else
18634 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18635$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18636 fi
18637fi
18638rm -f confcache
18639
18640test "x$prefix" = xNONE && prefix=$ac_default_prefix
18641# Let make expand exec_prefix.
18642test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18643
18644DEFS=-DHAVE_CONFIG_H
18645
18646ac_libobjs=
18647ac_ltlibobjs=
18648for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18649 # 1. Remove the extension, and $U if already installed.
18650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18653 # will be set to the directory where LIBOBJS objects are built.
18654 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18655 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18656done
18657LIBOBJS=$ac_libobjs
18658
18659LTLIBOBJS=$ac_ltlibobjs
18660
18661
18662if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18663 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18664Usually this means the macro was only invoked conditionally." >&5
18665$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18666Usually this means the macro was only invoked conditionally." >&2;}
18667 { (exit 1); exit 1; }; }
18668fi
18669 if test -n "$EXEEXT"; then
18670 am__EXEEXT_TRUE=
18671 am__EXEEXT_FALSE='#'
18672else
18673 am__EXEEXT_TRUE='#'
18674 am__EXEEXT_FALSE=
18675fi
18676
18677if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18678 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18679Usually this means the macro was only invoked conditionally." >&5
18680$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
18681Usually this means the macro was only invoked conditionally." >&2;}
18682 { (exit 1); exit 1; }; }
18683fi
18684if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18685 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18686Usually this means the macro was only invoked conditionally." >&5
18687$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18688Usually this means the macro was only invoked conditionally." >&2;}
18689 { (exit 1); exit 1; }; }
18690fi
18691if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
18692 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
18693Usually this means the macro was only invoked conditionally." >&5
18694$as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
18695Usually this means the macro was only invoked conditionally." >&2;}
18696 { (exit 1); exit 1; }; }
18697fi
18698if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
18699 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
18700Usually this means the macro was only invoked conditionally." >&5
18701$as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
18702Usually this means the macro was only invoked conditionally." >&2;}
18703 { (exit 1); exit 1; }; }
18704fi
18705
18706: ${CONFIG_STATUS=./config.status}
18707ac_write_fail=0
18708ac_clean_files_save=$ac_clean_files
18709ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18710{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18711$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18712cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18713#! $SHELL
18714# Generated by $as_me.
18715# Run this file to recreate the current configuration.
18716# Compiler output produced by configure, useful for debugging
18717# configure, is in config.log if it exists.
18718
18719debug=false
18720ac_cs_recheck=false
18721ac_cs_silent=false
18722SHELL=\${CONFIG_SHELL-$SHELL}
6ae7fef5
BB
18723_ACEOF
18724
8934764e
BB
18725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18726## --------------------- ##
18727## M4sh Initialization. ##
18728## --------------------- ##
18729
18730# Be more Bourne compatible
18731DUALCASE=1; export DUALCASE # for MKS sh
18732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18733 emulate sh
18734 NULLCMD=:
18735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18736 # is contrary to our usage. Disable this feature.
18737 alias -g '${1+"$@"}'='"$@"'
18738 setopt NO_GLOB_SUBST
18739else
18740 case `(set -o) 2>/dev/null` in
18741 *posix*) set -o posix ;;
18742esac
18743
18744fi
18745
6ae7fef5
BB
18746
18747
e11d6c5f 18748
8934764e
BB
18749# PATH needs CR
18750# Avoid depending upon Character Ranges.
18751as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18752as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18753as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18754as_cr_digits='0123456789'
18755as_cr_alnum=$as_cr_Letters$as_cr_digits
e11d6c5f 18756
8934764e
BB
18757as_nl='
18758'
18759export as_nl
18760# Printing a long string crashes Solaris 7 /usr/bin/printf.
18761as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18762as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18764if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18765 as_echo='printf %s\n'
18766 as_echo_n='printf %s'
18767else
18768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18770 as_echo_n='/usr/ucb/echo -n'
18771 else
18772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18773 as_echo_n_body='eval
18774 arg=$1;
18775 case $arg in
18776 *"$as_nl"*)
18777 expr "X$arg" : "X\\(.*\\)$as_nl";
18778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18779 esac;
18780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18781 '
18782 export as_echo_n_body
18783 as_echo_n='sh -c $as_echo_n_body as_echo'
18784 fi
18785 export as_echo_body
18786 as_echo='sh -c $as_echo_body as_echo'
51a727e9
BB
18787fi
18788
8934764e
BB
18789# The user is always right.
18790if test "${PATH_SEPARATOR+set}" != set; then
18791 PATH_SEPARATOR=:
18792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18794 PATH_SEPARATOR=';'
18795 }
18796fi
51a727e9 18797
8934764e
BB
18798# Support unset when possible.
18799if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18800 as_unset=unset
18801else
18802 as_unset=false
18803fi
51a727e9
BB
18804
18805
8934764e
BB
18806# IFS
18807# We need space, tab and new line, in precisely that order. Quoting is
18808# there to prevent editors from complaining about space-tab.
18809# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18810# splitting by setting IFS to empty value.)
18811IFS=" "" $as_nl"
18812
18813# Find who we are. Look in the path if we contain no directory separator.
18814case $0 in
18815 *[\\/]* ) as_myself=$0 ;;
18816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18817for as_dir in $PATH
18818do
18819 IFS=$as_save_IFS
18820 test -z "$as_dir" && as_dir=.
18821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18822done
18823IFS=$as_save_IFS
51a727e9 18824
8934764e
BB
18825 ;;
18826esac
18827# We did not find ourselves, most probably we were run as `sh COMMAND'
18828# in which case we are not to be found in the path.
18829if test "x$as_myself" = x; then
18830 as_myself=$0
18831fi
18832if test ! -f "$as_myself"; then
18833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18834 { (exit 1); exit 1; }
18835fi
51a727e9 18836
8934764e
BB
18837# Work around bugs in pre-3.0 UWIN ksh.
18838for as_var in ENV MAIL MAILPATH
18839do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18840done
18841PS1='$ '
18842PS2='> '
18843PS4='+ '
51a727e9 18844
8934764e
BB
18845# NLS nuisances.
18846LC_ALL=C
18847export LC_ALL
18848LANGUAGE=C
18849export LANGUAGE
51a727e9 18850
8934764e
BB
18851# Required to use basename.
18852if expr a : '\(a\)' >/dev/null 2>&1 &&
18853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18854 as_expr=expr
18855else
18856 as_expr=false
18857fi
51a727e9 18858
8934764e
BB
18859if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18860 as_basename=basename
18861else
18862 as_basename=false
18863fi
51a727e9 18864
51a727e9 18865
8934764e
BB
18866# Name of the executable.
18867as_me=`$as_basename -- "$0" ||
18868$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18869 X"$0" : 'X\(//\)$' \| \
18870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18871$as_echo X/"$0" |
18872 sed '/^.*\/\([^/][^/]*\)\/*$/{
18873 s//\1/
18874 q
18875 }
18876 /^X\/\(\/\/\)$/{
18877 s//\1/
18878 q
18879 }
18880 /^X\/\(\/\).*/{
18881 s//\1/
18882 q
18883 }
18884 s/.*/./; q'`
51a727e9 18885
8934764e
BB
18886# CDPATH.
18887$as_unset CDPATH
51a727e9
BB
18888
18889
51a727e9 18890
8934764e
BB
18891 as_lineno_1=$LINENO
18892 as_lineno_2=$LINENO
18893 test "x$as_lineno_1" != "x$as_lineno_2" &&
18894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51a727e9 18895
8934764e
BB
18896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18897 # uniformly replaced by the line number. The first 'sed' inserts a
18898 # line-number line after each line using $LINENO; the second 'sed'
18899 # does the real work. The second script uses 'N' to pair each
18900 # line-number line with the line containing $LINENO, and appends
18901 # trailing '-' during substitution so that $LINENO is not a special
18902 # case at line end.
18903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18904 # scripts with optimization help from Paolo Bonzini. Blame Lee
18905 # E. McMahon (1931-1989) for sed's syntax. :-)
18906 sed -n '
18907 p
18908 /[$]LINENO/=
18909 ' <$as_myself |
18910 sed '
18911 s/[$]LINENO.*/&-/
18912 t lineno
18913 b
18914 :lineno
18915 N
18916 :loop
18917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18918 t loop
18919 s/-\n.*//
18920 ' >$as_me.lineno &&
18921 chmod +x "$as_me.lineno" ||
18922 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18923 { (exit 1); exit 1; }; }
51a727e9 18924
8934764e
BB
18925 # Don't try to exec as it changes $[0], causing all sort of problems
18926 # (the dirname of $[0] is not the place where we might find the
18927 # original and so on. Autoconf is especially sensitive to this).
18928 . "./$as_me.lineno"
18929 # Exit status is that of the last command.
18930 exit
18931}
51a727e9 18932
51a727e9 18933
8934764e
BB
18934if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18935 as_dirname=dirname
18936else
18937 as_dirname=false
18938fi
51a727e9 18939
8934764e
BB
18940ECHO_C= ECHO_N= ECHO_T=
18941case `echo -n x` in
18942-n*)
18943 case `echo 'x\c'` in
18944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18945 *) ECHO_C='\c';;
18946 esac;;
18947*)
18948 ECHO_N='-n';;
18949esac
18950if expr a : '\(a\)' >/dev/null 2>&1 &&
18951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18952 as_expr=expr
18953else
18954 as_expr=false
18955fi
51a727e9 18956
8934764e
BB
18957rm -f conf$$ conf$$.exe conf$$.file
18958if test -d conf$$.dir; then
18959 rm -f conf$$.dir/conf$$.file
18960else
18961 rm -f conf$$.dir
18962 mkdir conf$$.dir 2>/dev/null
18963fi
18964if (echo >conf$$.file) 2>/dev/null; then
18965 if ln -s conf$$.file conf$$ 2>/dev/null; then
18966 as_ln_s='ln -s'
18967 # ... but there are two gotchas:
18968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18970 # In both cases, we have to default to `cp -p'.
18971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18972 as_ln_s='cp -p'
18973 elif ln conf$$.file conf$$ 2>/dev/null; then
18974 as_ln_s=ln
18975 else
18976 as_ln_s='cp -p'
18977 fi
18978else
18979 as_ln_s='cp -p'
18980fi
18981rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18982rmdir conf$$.dir 2>/dev/null
51a727e9 18983
8934764e
BB
18984if mkdir -p . 2>/dev/null; then
18985 as_mkdir_p=:
18986else
18987 test -d ./-p && rmdir ./-p
18988 as_mkdir_p=false
18989fi
51a727e9 18990
8934764e
BB
18991if test -x / >/dev/null 2>&1; then
18992 as_test_x='test -x'
18993else
18994 if ls -dL / >/dev/null 2>&1; then
18995 as_ls_L_option=L
18996 else
18997 as_ls_L_option=
18998 fi
18999 as_test_x='
19000 eval sh -c '\''
19001 if test -d "$1"; then
19002 test -d "$1/.";
19003 else
19004 case $1 in
19005 -*)set "./$1";;
19006 esac;
19007 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19008 ???[sx]*):;;*)false;;esac;fi
19009 '\'' sh
19010 '
19011fi
19012as_executable_p=$as_test_x
51a727e9 19013
8934764e
BB
19014# Sed expression to map a string onto a valid CPP name.
19015as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 19016
8934764e
BB
19017# Sed expression to map a string onto a valid variable name.
19018as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51a727e9 19019
51a727e9 19020
8934764e 19021exec 6>&1
51a727e9 19022
8934764e
BB
19023# Save the log message, to keep $[0] and so on meaningful, and to
19024# report actual input values of CONFIG_FILES etc. instead of their
19025# values after options handling.
19026ac_log="
19027This file was extended by $as_me, which was
19028generated by GNU Autoconf 2.63. Invocation command line was
51a727e9 19029
8934764e
BB
19030 CONFIG_FILES = $CONFIG_FILES
19031 CONFIG_HEADERS = $CONFIG_HEADERS
19032 CONFIG_LINKS = $CONFIG_LINKS
19033 CONFIG_COMMANDS = $CONFIG_COMMANDS
19034 $ $0 $@
51a727e9 19035
8934764e
BB
19036on `(hostname || uname -n) 2>/dev/null | sed 1q`
19037"
a093c6a4 19038
8934764e 19039_ACEOF
a093c6a4 19040
8934764e
BB
19041case $ac_config_files in *"
19042"*) set x $ac_config_files; shift; ac_config_files=$*;;
19043esac
a093c6a4 19044
8934764e
BB
19045case $ac_config_headers in *"
19046"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19047esac
a093c6a4 19048
a093c6a4 19049
8934764e
BB
19050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19051# Files that config.status was made for.
19052config_files="$ac_config_files"
19053config_headers="$ac_config_headers"
19054config_commands="$ac_config_commands"
a093c6a4 19055
a093c6a4 19056_ACEOF
a093c6a4 19057
8934764e
BB
19058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19059ac_cs_usage="\
19060\`$as_me' instantiates files from templates according to the
19061current configuration.
a093c6a4 19062
8934764e 19063Usage: $0 [OPTION]... [FILE]...
a093c6a4 19064
8934764e
BB
19065 -h, --help print this help, then exit
19066 -V, --version print version number and configuration settings, then exit
19067 -q, --quiet, --silent
19068 do not print progress messages
19069 -d, --debug don't remove temporary files
19070 --recheck update $as_me by reconfiguring in the same conditions
19071 --file=FILE[:TEMPLATE]
19072 instantiate the configuration file FILE
19073 --header=FILE[:TEMPLATE]
19074 instantiate the configuration header FILE
a093c6a4 19075
8934764e
BB
19076Configuration files:
19077$config_files
a093c6a4 19078
8934764e
BB
19079Configuration headers:
19080$config_headers
a093c6a4 19081
8934764e
BB
19082Configuration commands:
19083$config_commands
a093c6a4 19084
8934764e 19085Report bugs to <bug-autoconf@gnu.org>."
a093c6a4 19086
8934764e
BB
19087_ACEOF
19088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19089ac_cs_version="\\
19090config.status
19091configured by $0, generated by GNU Autoconf 2.63,
19092 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
a093c6a4 19093
8934764e
BB
19094Copyright (C) 2008 Free Software Foundation, Inc.
19095This config.status script is free software; the Free Software Foundation
19096gives unlimited permission to copy, distribute and modify it."
a093c6a4 19097
8934764e
BB
19098ac_pwd='$ac_pwd'
19099srcdir='$srcdir'
19100INSTALL='$INSTALL'
19101MKDIR_P='$MKDIR_P'
19102AWK='$AWK'
19103test -n "\$AWK" || AWK=awk
a093c6a4
BB
19104_ACEOF
19105
8934764e
BB
19106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19107# The default lists apply if the user does not specify any file.
19108ac_need_defaults=:
19109while test $# != 0
19110do
19111 case $1 in
19112 --*=*)
19113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19115 ac_shift=:
19116 ;;
19117 *)
19118 ac_option=$1
19119 ac_optarg=$2
19120 ac_shift=shift
19121 ;;
19122 esac
a093c6a4 19123
8934764e
BB
19124 case $ac_option in
19125 # Handling of the options.
19126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19127 ac_cs_recheck=: ;;
19128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19129 $as_echo "$ac_cs_version"; exit ;;
19130 --debug | --debu | --deb | --de | --d | -d )
19131 debug=: ;;
19132 --file | --fil | --fi | --f )
19133 $ac_shift
19134 case $ac_optarg in
19135 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19136 esac
19137 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
19138 ac_need_defaults=false;;
19139 --header | --heade | --head | --hea )
19140 $ac_shift
19141 case $ac_optarg in
19142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19143 esac
19144 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
19145 ac_need_defaults=false;;
19146 --he | --h)
19147 # Conflict between --help and --header
19148 { $as_echo "$as_me: error: ambiguous option: $1
19149Try \`$0 --help' for more information." >&2
19150 { (exit 1); exit 1; }; };;
19151 --help | --hel | -h )
19152 $as_echo "$ac_cs_usage"; exit ;;
19153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19154 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19155 ac_cs_silent=: ;;
19156
19157 # This is an error.
19158 -*) { $as_echo "$as_me: error: unrecognized option: $1
19159Try \`$0 --help' for more information." >&2
19160 { (exit 1); exit 1; }; } ;;
a093c6a4 19161
8934764e
BB
19162 *) ac_config_targets="$ac_config_targets $1"
19163 ac_need_defaults=false ;;
a093c6a4 19164
8934764e
BB
19165 esac
19166 shift
19167done
a093c6a4 19168
8934764e 19169ac_configure_extra_args=
a093c6a4 19170
8934764e
BB
19171if $ac_cs_silent; then
19172 exec 6>/dev/null
19173 ac_configure_extra_args="$ac_configure_extra_args --silent"
a093c6a4
BB
19174fi
19175
8934764e
BB
19176_ACEOF
19177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19178if \$ac_cs_recheck; then
19179 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19180 shift
19181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19182 CONFIG_SHELL='$SHELL'
19183 export CONFIG_SHELL
19184 exec "\$@"
19185fi
a093c6a4 19186
8934764e
BB
19187_ACEOF
19188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19189exec 5>>config.log
19190{
19191 echo
19192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19193## Running $as_me. ##
19194_ASBOX
19195 $as_echo "$ac_log"
19196} >&5
a093c6a4 19197
8934764e
BB
19198_ACEOF
19199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19200#
19201# INIT-COMMANDS
19202#
19203AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
a093c6a4 19204
a093c6a4 19205
8934764e
BB
19206# The HP-UX ksh and POSIX shell print the target directory to stdout
19207# if CDPATH is set.
19208(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
a093c6a4 19209
8934764e
BB
19210sed_quote_subst='$sed_quote_subst'
19211double_quote_subst='$double_quote_subst'
19212delay_variable_subst='$delay_variable_subst'
19213macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
19214macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
19215enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
19216enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
19217pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
19218enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
19219host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
19220host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
19221host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
19222build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
19223build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
19224build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
19225SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
19226Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
19227GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
19228EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
19229FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
19230LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
19231NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
19232LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
19233max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
19234ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
19235exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
19236lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
19237lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
19238lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
19239reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
19240reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19241OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
19242deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
19243file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
19244AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
19245AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19246STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
19247RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
19248old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19249old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19250old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19251CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
19252CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
19253compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
19254GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
19255lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
19256lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
19257lt_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"`'
19258lt_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"`'
19259objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
19260SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
19261ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
19262MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
19263lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
19264lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
19265lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
19266lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
19267lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
19268need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
19269DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
19270NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
19271LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
19272OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
19273OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
19274libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
19275shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19276extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19277archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
19278enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
19279export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19280whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19281compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
19282old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19283old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19284archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19285archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19286module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19287module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19288with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
19289allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19290no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
19291hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
19292hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
19293hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
19294hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
19295hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
19296hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
19297hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19298hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
19299inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
19300link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
19301fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
19302always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
19303export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19304exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19305include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
19306prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19307file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
19308variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
19309need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
19310need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
19311version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
19312runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19313shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
19314shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
19315libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19316library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
19317soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
19318postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19319postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19320finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
19321finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
19322hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
19323sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19324sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
19325hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
19326enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
19327enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
19328enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
19329old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
19330striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
19331
19332LTCC='$LTCC'
19333LTCFLAGS='$LTCFLAGS'
19334compiler='$compiler_DEFAULT'
19335
19336# Quote evaled strings.
19337for var in SED \
19338GREP \
19339EGREP \
19340FGREP \
19341LD \
19342NM \
19343LN_S \
19344lt_SP2NL \
19345lt_NL2SP \
19346reload_flag \
19347OBJDUMP \
19348deplibs_check_method \
19349file_magic_cmd \
19350AR \
19351AR_FLAGS \
19352STRIP \
19353RANLIB \
19354CC \
19355CFLAGS \
19356compiler \
19357lt_cv_sys_global_symbol_pipe \
19358lt_cv_sys_global_symbol_to_cdecl \
19359lt_cv_sys_global_symbol_to_c_name_address \
19360lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19361SHELL \
19362ECHO \
19363lt_prog_compiler_no_builtin_flag \
19364lt_prog_compiler_wl \
19365lt_prog_compiler_pic \
19366lt_prog_compiler_static \
19367lt_cv_prog_compiler_c_o \
19368need_locks \
19369DSYMUTIL \
19370NMEDIT \
19371LIPO \
19372OTOOL \
19373OTOOL64 \
19374shrext_cmds \
19375export_dynamic_flag_spec \
19376whole_archive_flag_spec \
19377compiler_needs_object \
19378with_gnu_ld \
19379allow_undefined_flag \
19380no_undefined_flag \
19381hardcode_libdir_flag_spec \
19382hardcode_libdir_flag_spec_ld \
19383hardcode_libdir_separator \
19384fix_srcfile_path \
19385exclude_expsyms \
19386include_expsyms \
19387file_list_spec \
19388variables_saved_for_relink \
19389libname_spec \
19390library_names_spec \
19391soname_spec \
19392finish_eval \
19393old_striplib \
19394striplib; do
19395 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19396 *[\\\\\\\`\\"\\\$]*)
19397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19398 ;;
19399 *)
19400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19401 ;;
19402 esac
19403done
a093c6a4 19404
8934764e
BB
19405# Double-quote double-evaled strings.
19406for var in reload_cmds \
19407old_postinstall_cmds \
19408old_postuninstall_cmds \
19409old_archive_cmds \
19410extract_expsyms_cmds \
19411old_archive_from_new_cmds \
19412old_archive_from_expsyms_cmds \
19413archive_cmds \
19414archive_expsym_cmds \
19415module_cmds \
19416module_expsym_cmds \
19417export_symbols_cmds \
19418prelink_cmds \
19419postinstall_cmds \
19420postuninstall_cmds \
19421finish_cmds \
19422sys_lib_search_path_spec \
19423sys_lib_dlsearch_path_spec; do
19424 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
19425 *[\\\\\\\`\\"\\\$]*)
19426 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19427 ;;
19428 *)
19429 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19430 ;;
19431 esac
19432done
a093c6a4 19433
8934764e
BB
19434# Fix-up fallback echo if it was mangled by the above quoting rules.
19435case \$lt_ECHO in
19436*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
19437 ;;
19438esac
a093c6a4 19439
8934764e
BB
19440ac_aux_dir='$ac_aux_dir'
19441xsi_shell='$xsi_shell'
19442lt_shell_append='$lt_shell_append'
a093c6a4 19443
8934764e
BB
19444# See if we are running on zsh, and set the options which allow our
19445# commands through without removal of \ escapes INIT.
19446if test -n "\${ZSH_VERSION+set}" ; then
19447 setopt NO_GLOB_SUBST
19448fi
a093c6a4 19449
a093c6a4 19450
8934764e
BB
19451 PACKAGE='$PACKAGE'
19452 VERSION='$VERSION'
19453 TIMESTAMP='$TIMESTAMP'
19454 RM='$RM'
19455 ofile='$ofile'
a093c6a4
BB
19456
19457
a093c6a4 19458
a093c6a4 19459
a093c6a4
BB
19460_ACEOF
19461
8934764e 19462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
a093c6a4 19463
8934764e
BB
19464# Handling of arguments.
19465for ac_config_target in $ac_config_targets
19466do
19467 case $ac_config_target in
19468 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
19469 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19470 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19471 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19472 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19473 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
19474 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
19475 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
19476 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
19477 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19478 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19479 "spl.spec") CONFIG_FILES="$CONFIG_FILES spl.spec" ;;
19480 "spl-modules.spec") CONFIG_FILES="$CONFIG_FILES spl-modules.spec" ;;
19481
19482 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19483$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19484 { (exit 1); exit 1; }; };;
19485 esac
19486done
a093c6a4
BB
19487
19488
8934764e
BB
19489# If the user did not use the arguments to specify the items to instantiate,
19490# then the envvar interface is used. Set only those that are not.
19491# We use the long form for the default assignment because of an extremely
19492# bizarre bug on SunOS 4.1.3.
19493if $ac_need_defaults; then
19494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
e11d6c5f
BB
19497fi
19498
8934764e
BB
19499# Have a temporary directory for convenience. Make it in the build tree
19500# simply because there is no reason against having it here, and in addition,
19501# creating and moving files from /tmp can sometimes cause problems.
19502# Hook for its removal unless debugging.
19503# Note that there is a small window in which the directory will not be cleaned:
19504# after its creation but before its name has been assigned to `$tmp'.
19505$debug ||
19506{
19507 tmp=
19508 trap 'exit_status=$?
19509 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19510' 0
19511 trap '{ (exit 1); exit 1; }' 1 2 13 15
19512}
19513# Create a (secure) tmp directory for tmp files.
e11d6c5f 19514
8934764e
BB
19515{
19516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19517 test -n "$tmp" && test -d "$tmp"
19518} ||
19519{
19520 tmp=./conf$$-$RANDOM
19521 (umask 077 && mkdir "$tmp")
19522} ||
19523{
19524 $as_echo "$as_me: cannot create a temporary directory in ." >&2
19525 { (exit 1); exit 1; }
19526}
e11d6c5f 19527
8934764e
BB
19528# Set up the scripts for CONFIG_FILES section.
19529# No need to generate them if there are no CONFIG_FILES.
19530# This happens for instance with `./config.status config.h'.
19531if test -n "$CONFIG_FILES"; then
e11d6c5f 19532
ec7d53e9 19533
8934764e
BB
19534ac_cr='\r'
19535ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19536if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19537 ac_cs_awk_cr='\\r'
19538else
19539 ac_cs_awk_cr=$ac_cr
19540fi
ec7d53e9 19541
8934764e 19542echo 'BEGIN {' >"$tmp/subs1.awk" &&
ec7d53e9 19543_ACEOF
ec7d53e9 19544
ec7d53e9 19545
ec7d53e9 19546{
8934764e
BB
19547 echo "cat >conf$$subs.awk <<_ACEOF" &&
19548 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19549 echo "_ACEOF"
19550} >conf$$subs.sh ||
19551 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19552$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19553 { (exit 1); exit 1; }; }
19554ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19555ac_delim='%!_!# '
19556for ac_last_try in false false false false false :; do
19557 . ./conf$$subs.sh ||
19558 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19559$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19560 { (exit 1); exit 1; }; }
ec7d53e9 19561
8934764e
BB
19562 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19563 if test $ac_delim_n = $ac_delim_num; then
19564 break
19565 elif $ac_last_try; then
19566 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19567$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19568 { (exit 1); exit 1; }; }
19569 else
19570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19571 fi
19572done
19573rm -f conf$$subs.sh
19574
19575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19576cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19577_ACEOF
19578sed -n '
19579h
19580s/^/S["/; s/!.*/"]=/
19581p
19582g
19583s/^[^!]*!//
19584:repl
19585t repl
19586s/'"$ac_delim"'$//
19587t delim
19588:nl
19589h
19590s/\(.\{148\}\).*/\1/
19591t more1
19592s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19593p
19594n
19595b repl
19596:more1
19597s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19598p
19599g
19600s/.\{148\}//
19601t nl
19602:delim
19603h
19604s/\(.\{148\}\).*/\1/
19605t more2
19606s/["\\]/\\&/g; s/^/"/; s/$/"/
19607p
19608b
19609:more2
19610s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19611p
19612g
19613s/.\{148\}//
19614t delim
19615' <conf$$subs.awk | sed '
19616/^[^""]/{
19617 N
19618 s/\n//
19619}
19620' >>$CONFIG_STATUS || ac_write_fail=1
19621rm -f conf$$subs.awk
19622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19623_ACAWK
19624cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19625 for (key in S) S_is_set[key] = 1
19626 FS = "\a"
ec7d53e9 19627
8934764e
BB
19628}
19629{
19630 line = $ 0
19631 nfields = split(line, field, "@")
19632 substed = 0
19633 len = length(field[1])
19634 for (i = 2; i < nfields; i++) {
19635 key = field[i]
19636 keylen = length(key)
19637 if (S_is_set[key]) {
19638 value = S[key]
19639 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19640 len += length(value) + length(field[++i])
19641 substed = 1
19642 } else
19643 len += 1 + keylen
19644 }
19645
19646 print line
ec7d53e9
BB
19647}
19648
8934764e
BB
19649_ACAWK
19650_ACEOF
19651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19652if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19653 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19654else
19655 cat
19656fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19657 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19658$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19659 { (exit 1); exit 1; }; }
ec7d53e9
BB
19660_ACEOF
19661
8934764e
BB
19662# VPATH may cause trouble with some makes, so we remove $(srcdir),
19663# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19664# trailing colons and then remove the whole line if VPATH becomes empty
19665# (actually we leave an empty line to preserve line numbers).
19666if test "x$srcdir" = x.; then
19667 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19668s/:*\$(srcdir):*/:/
19669s/:*\${srcdir}:*/:/
19670s/:*@srcdir@:*/:/
19671s/^\([^=]*=[ ]*\):*/\1/
19672s/:*$//
19673s/^[^=]*=[ ]*$//
19674}'
19675fi
ec7d53e9 19676
8934764e
BB
19677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19678fi # test -n "$CONFIG_FILES"
ec7d53e9 19679
8934764e
BB
19680# Set up the scripts for CONFIG_HEADERS section.
19681# No need to generate them if there are no CONFIG_HEADERS.
19682# This happens for instance with `./config.status Makefile'.
19683if test -n "$CONFIG_HEADERS"; then
19684cat >"$tmp/defines.awk" <<\_ACAWK ||
19685BEGIN {
ec7d53e9
BB
19686_ACEOF
19687
8934764e
BB
19688# Transform confdefs.h into an awk script `defines.awk', embedded as
19689# here-document in config.status, that substitutes the proper values into
19690# config.h.in to produce config.h.
ec7d53e9 19691
8934764e
BB
19692# Create a delimiter string that does not exist in confdefs.h, to ease
19693# handling of long lines.
19694ac_delim='%!_!# '
19695for ac_last_try in false false :; do
19696 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19697 if test -z "$ac_t"; then
19698 break
19699 elif $ac_last_try; then
19700 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19701$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19702 { (exit 1); exit 1; }; }
19703 else
19704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19705 fi
19706done
ec7d53e9 19707
8934764e
BB
19708# For the awk script, D is an array of macro values keyed by name,
19709# likewise P contains macro parameters if any. Preserve backslash
19710# newline sequences.
19711
19712ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19713sed -n '
19714s/.\{148\}/&'"$ac_delim"'/g
19715t rset
19716:rset
19717s/^[ ]*#[ ]*define[ ][ ]*/ /
19718t def
19719d
19720:def
19721s/\\$//
19722t bsnl
19723s/["\\]/\\&/g
19724s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19725D["\1"]=" \3"/p
19726s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19727d
19728:bsnl
19729s/["\\]/\\&/g
19730s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19731D["\1"]=" \3\\\\\\n"\\/p
19732t cont
19733s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19734t cont
19735d
19736:cont
19737n
19738s/.\{148\}/&'"$ac_delim"'/g
19739t clear
19740:clear
19741s/\\$//
19742t bsnlc
19743s/["\\]/\\&/g; s/^/"/; s/$/"/p
19744d
19745:bsnlc
19746s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19747b cont
19748' <confdefs.h | sed '
19749s/'"$ac_delim"'/"\\\
19750"/g' >>$CONFIG_STATUS || ac_write_fail=1
19751
19752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19753 for (key in D) D_is_set[key] = 1
19754 FS = "\a"
19755}
19756/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19757 line = \$ 0
19758 split(line, arg, " ")
19759 if (arg[1] == "#") {
19760 defundef = arg[2]
19761 mac1 = arg[3]
19762 } else {
19763 defundef = substr(arg[1], 2)
19764 mac1 = arg[2]
19765 }
19766 split(mac1, mac2, "(") #)
19767 macro = mac2[1]
19768 prefix = substr(line, 1, index(line, defundef) - 1)
19769 if (D_is_set[macro]) {
19770 # Preserve the white space surrounding the "#".
19771 print prefix "define", macro P[macro] D[macro]
19772 next
19773 } else {
19774 # Replace #undef with comments. This is necessary, for example,
19775 # in the case of _POSIX_SOURCE, which is predefined and required
19776 # on some systems where configure will not decide to define it.
19777 if (defundef == "undef") {
19778 print "/*", prefix defundef, macro, "*/"
19779 next
19780 }
19781 }
19782}
19783{ print }
19784_ACAWK
19785_ACEOF
19786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19787 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19788$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19789 { (exit 1); exit 1; }; }
19790fi # test -n "$CONFIG_HEADERS"
ec7d53e9
BB
19791
19792
8934764e
BB
19793eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19794shift
19795for ac_tag
19796do
19797 case $ac_tag in
19798 :[FHLC]) ac_mode=$ac_tag; continue;;
19799 esac
19800 case $ac_mode$ac_tag in
19801 :[FHL]*:*);;
19802 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19803$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
19804 { (exit 1); exit 1; }; };;
19805 :[FH]-) ac_tag=-:-;;
19806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19807 esac
19808 ac_save_IFS=$IFS
19809 IFS=:
19810 set x $ac_tag
19811 IFS=$ac_save_IFS
19812 shift
19813 ac_file=$1
19814 shift
ec7d53e9 19815
8934764e
BB
19816 case $ac_mode in
19817 :L) ac_source=$1;;
19818 :[FH])
19819 ac_file_inputs=
19820 for ac_f
19821 do
19822 case $ac_f in
19823 -) ac_f="$tmp/stdin";;
19824 *) # Look for the file first in the build tree, then in the source tree
19825 # (if the path is not absolute). The absolute path cannot be DOS-style,
19826 # because $ac_f cannot contain `:'.
19827 test -f "$ac_f" ||
19828 case $ac_f in
19829 [\\/$]*) false;;
19830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19831 esac ||
19832 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19833$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19834 { (exit 1); exit 1; }; };;
19835 esac
19836 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19837 ac_file_inputs="$ac_file_inputs '$ac_f'"
19838 done
ec7d53e9 19839
8934764e
BB
19840 # Let's still pretend it is `configure' which instantiates (i.e., don't
19841 # use $as_me), people would be surprised to read:
19842 # /* config.h. Generated by config.status. */
19843 configure_input='Generated from '`
19844 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19845 `' by configure.'
19846 if test x"$ac_file" != x-; then
19847 configure_input="$ac_file. $configure_input"
19848 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19849$as_echo "$as_me: creating $ac_file" >&6;}
19850 fi
19851 # Neutralize special characters interpreted by sed in replacement strings.
19852 case $configure_input in #(
19853 *\&* | *\|* | *\\* )
19854 ac_sed_conf_input=`$as_echo "$configure_input" |
19855 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19856 *) ac_sed_conf_input=$configure_input;;
19857 esac
ec7d53e9 19858
8934764e
BB
19859 case $ac_tag in
19860 *:-:* | *:-) cat >"$tmp/stdin" \
19861 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19862$as_echo "$as_me: error: could not create $ac_file" >&2;}
19863 { (exit 1); exit 1; }; } ;;
19864 esac
19865 ;;
19866 esac
ec7d53e9 19867
8934764e
BB
19868 ac_dir=`$as_dirname -- "$ac_file" ||
19869$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19870 X"$ac_file" : 'X\(//\)[^/]' \| \
19871 X"$ac_file" : 'X\(//\)$' \| \
19872 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19873$as_echo X"$ac_file" |
19874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19875 s//\1/
19876 q
19877 }
19878 /^X\(\/\/\)[^/].*/{
19879 s//\1/
19880 q
19881 }
19882 /^X\(\/\/\)$/{
19883 s//\1/
19884 q
19885 }
19886 /^X\(\/\).*/{
19887 s//\1/
19888 q
19889 }
19890 s/.*/./; q'`
19891 { as_dir="$ac_dir"
19892 case $as_dir in #(
19893 -*) as_dir=./$as_dir;;
19894 esac
19895 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19896 as_dirs=
19897 while :; do
19898 case $as_dir in #(
19899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19900 *) as_qdir=$as_dir;;
19901 esac
19902 as_dirs="'$as_qdir' $as_dirs"
19903 as_dir=`$as_dirname -- "$as_dir" ||
19904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19905 X"$as_dir" : 'X\(//\)[^/]' \| \
19906 X"$as_dir" : 'X\(//\)$' \| \
19907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19908$as_echo X"$as_dir" |
19909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19910 s//\1/
19911 q
19912 }
19913 /^X\(\/\/\)[^/].*/{
19914 s//\1/
19915 q
19916 }
19917 /^X\(\/\/\)$/{
19918 s//\1/
19919 q
19920 }
19921 /^X\(\/\).*/{
19922 s//\1/
19923 q
19924 }
19925 s/.*/./; q'`
19926 test -d "$as_dir" && break
19927 done
19928 test -z "$as_dirs" || eval "mkdir $as_dirs"
19929 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19930$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19931 { (exit 1); exit 1; }; }; }
19932 ac_builddir=.
ec7d53e9 19933
8934764e
BB
19934case "$ac_dir" in
19935.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19936*)
19937 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19938 # A ".." for each directory in $ac_dir_suffix.
19939 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19940 case $ac_top_builddir_sub in
19941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19943 esac ;;
19944esac
19945ac_abs_top_builddir=$ac_pwd
19946ac_abs_builddir=$ac_pwd$ac_dir_suffix
19947# for backward compatibility:
19948ac_top_builddir=$ac_top_build_prefix
ec7d53e9 19949
8934764e
BB
19950case $srcdir in
19951 .) # We are building in place.
19952 ac_srcdir=.
19953 ac_top_srcdir=$ac_top_builddir_sub
19954 ac_abs_top_srcdir=$ac_pwd ;;
19955 [\\/]* | ?:[\\/]* ) # Absolute name.
19956 ac_srcdir=$srcdir$ac_dir_suffix;
19957 ac_top_srcdir=$srcdir
19958 ac_abs_top_srcdir=$srcdir ;;
19959 *) # Relative name.
19960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19961 ac_top_srcdir=$ac_top_build_prefix$srcdir
19962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19963esac
19964ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ec7d53e9 19965
ec7d53e9 19966
8934764e
BB
19967 case $ac_mode in
19968 :F)
19969 #
19970 # CONFIG_FILE
19971 #
19972
19973 case $INSTALL in
19974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19975 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19976 esac
19977 ac_MKDIR_P=$MKDIR_P
19978 case $MKDIR_P in
19979 [\\/$]* | ?:[\\/]* ) ;;
19980 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19981 esac
ec7d53e9
BB
19982_ACEOF
19983
8934764e
BB
19984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19985# If the template does not know about datarootdir, expand it.
19986# FIXME: This hack should be removed a few years after 2.60.
19987ac_datarootdir_hack=; ac_datarootdir_seen=
ec7d53e9 19988
8934764e
BB
19989ac_sed_dataroot='
19990/datarootdir/ {
19991 p
19992 q
19993}
19994/@datadir@/p
19995/@docdir@/p
19996/@infodir@/p
19997/@localedir@/p
19998/@mandir@/p
19999'
20000case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20001*datarootdir*) ac_datarootdir_seen=yes;;
20002*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20003 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20004$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20005_ACEOF
20006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20007 ac_datarootdir_hack='
20008 s&@datadir@&$datadir&g
20009 s&@docdir@&$docdir&g
20010 s&@infodir@&$infodir&g
20011 s&@localedir@&$localedir&g
20012 s&@mandir@&$mandir&g
20013 s&\\\${datarootdir}&$datarootdir&g' ;;
20014esac
ec7d53e9
BB
20015_ACEOF
20016
8934764e
BB
20017# Neutralize VPATH when `$srcdir' = `.'.
20018# Shell code in configure.ac might set extrasub.
20019# FIXME: do we really want to maintain this feature?
20020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20021ac_sed_extra="$ac_vpsub
20022$extrasub
20023_ACEOF
20024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20025:t
20026/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20027s|@configure_input@|$ac_sed_conf_input|;t t
20028s&@top_builddir@&$ac_top_builddir_sub&;t t
20029s&@top_build_prefix@&$ac_top_build_prefix&;t t
20030s&@srcdir@&$ac_srcdir&;t t
20031s&@abs_srcdir@&$ac_abs_srcdir&;t t
20032s&@top_srcdir@&$ac_top_srcdir&;t t
20033s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20034s&@builddir@&$ac_builddir&;t t
20035s&@abs_builddir@&$ac_abs_builddir&;t t
20036s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20037s&@INSTALL@&$ac_INSTALL&;t t
20038s&@MKDIR_P@&$ac_MKDIR_P&;t t
20039$ac_datarootdir_hack
20040"
20041eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20042 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20043$as_echo "$as_me: error: could not create $ac_file" >&2;}
20044 { (exit 1); exit 1; }; }
ec7d53e9 20045
8934764e
BB
20046test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20047 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20049 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20050which seems to be undefined. Please make sure it is defined." >&5
20051$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20052which seems to be undefined. Please make sure it is defined." >&2;}
ec7d53e9 20053
8934764e
BB
20054 rm -f "$tmp/stdin"
20055 case $ac_file in
20056 -) cat "$tmp/out" && rm -f "$tmp/out";;
20057 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20058 esac \
20059 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20060$as_echo "$as_me: error: could not create $ac_file" >&2;}
20061 { (exit 1); exit 1; }; }
20062 ;;
20063 :H)
20064 #
20065 # CONFIG_HEADER
20066 #
20067 if test x"$ac_file" != x-; then
20068 {
20069 $as_echo "/* $configure_input */" \
20070 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20071 } >"$tmp/config.h" \
20072 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20073$as_echo "$as_me: error: could not create $ac_file" >&2;}
20074 { (exit 1); exit 1; }; }
20075 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20076 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20077$as_echo "$as_me: $ac_file is unchanged" >&6;}
20078 else
20079 rm -f "$ac_file"
20080 mv "$tmp/config.h" "$ac_file" \
20081 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
20082$as_echo "$as_me: error: could not create $ac_file" >&2;}
20083 { (exit 1); exit 1; }; }
20084 fi
20085 else
20086 $as_echo "/* $configure_input */" \
20087 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20088 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
20089$as_echo "$as_me: error: could not create -" >&2;}
20090 { (exit 1); exit 1; }; }
20091 fi
20092# Compute "$ac_file"'s index in $config_headers.
20093_am_arg="$ac_file"
20094_am_stamp_count=1
20095for _am_header in $config_headers :; do
20096 case $_am_header in
20097 $_am_arg | $_am_arg:* )
20098 break ;;
20099 * )
20100 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20101 esac
20102done
20103echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20104$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20105 X"$_am_arg" : 'X\(//\)[^/]' \| \
20106 X"$_am_arg" : 'X\(//\)$' \| \
20107 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20108$as_echo X"$_am_arg" |
20109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20110 s//\1/
20111 q
20112 }
20113 /^X\(\/\/\)[^/].*/{
20114 s//\1/
20115 q
20116 }
20117 /^X\(\/\/\)$/{
20118 s//\1/
20119 q
20120 }
20121 /^X\(\/\).*/{
20122 s//\1/
20123 q
20124 }
20125 s/.*/./; q'`/stamp-h$_am_stamp_count
20126 ;;
ec7d53e9 20127
8934764e
BB
20128 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
20129$as_echo "$as_me: executing $ac_file commands" >&6;}
20130 ;;
20131 esac
e811949a 20132
e811949a 20133
8934764e
BB
20134 case $ac_file$ac_mode in
20135 "spl_config.h":H)
20136 (mv spl_config.h spl_config.h.tmp &&
20137 awk -f config/config.awk spl_config.h.tmp >spl_config.h &&
20138 rm spl_config.h.tmp) || exit 1 ;;
20139 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20140 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20141 # are listed without --file. Let's play safe and only enable the eval
20142 # if we detect the quoting.
20143 case $CONFIG_FILES in
20144 *\'*) eval set x "$CONFIG_FILES" ;;
20145 *) set x $CONFIG_FILES ;;
20146 esac
20147 shift
20148 for mf
20149 do
20150 # Strip MF so we end up with the name of the file.
20151 mf=`echo "$mf" | sed -e 's/:.*$//'`
20152 # Check whether this is an Automake generated Makefile or not.
20153 # We used to match only the files named `Makefile.in', but
20154 # some people rename them; so instead we look at the file content.
20155 # Grep'ing the first line is not enough: some people post-process
20156 # each Makefile.in and add a new line on top of each file to say so.
20157 # Grep'ing the whole file is not good either: AIX grep has a line
20158 # limit of 2048, but all sed's we know have understand at least 4000.
20159 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20160 dirpart=`$as_dirname -- "$mf" ||
20161$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20162 X"$mf" : 'X\(//\)[^/]' \| \
20163 X"$mf" : 'X\(//\)$' \| \
20164 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20165$as_echo X"$mf" |
20166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20167 s//\1/
20168 q
20169 }
20170 /^X\(\/\/\)[^/].*/{
20171 s//\1/
20172 q
20173 }
20174 /^X\(\/\/\)$/{
20175 s//\1/
20176 q
20177 }
20178 /^X\(\/\).*/{
20179 s//\1/
20180 q
20181 }
20182 s/.*/./; q'`
20183 else
20184 continue
20185 fi
20186 # Extract the definition of DEPDIR, am__include, and am__quote
20187 # from the Makefile without running `make'.
20188 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20189 test -z "$DEPDIR" && continue
20190 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20191 test -z "am__include" && continue
20192 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20193 # When using ansi2knr, U may be empty or an underscore; expand it
20194 U=`sed -n 's/^U = //p' < "$mf"`
20195 # Find all dependency output files, they are included files with
20196 # $(DEPDIR) in their names. We invoke sed twice because it is the
20197 # simplest approach to changing $(DEPDIR) to its actual value in the
20198 # expansion.
20199 for file in `sed -n "
20200 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20201 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20202 # Make sure the directory exists.
20203 test -f "$dirpart/$file" && continue
20204 fdir=`$as_dirname -- "$file" ||
20205$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20206 X"$file" : 'X\(//\)[^/]' \| \
20207 X"$file" : 'X\(//\)$' \| \
20208 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20209$as_echo X"$file" |
20210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20211 s//\1/
20212 q
20213 }
20214 /^X\(\/\/\)[^/].*/{
20215 s//\1/
20216 q
20217 }
20218 /^X\(\/\/\)$/{
20219 s//\1/
20220 q
20221 }
20222 /^X\(\/\).*/{
20223 s//\1/
20224 q
20225 }
20226 s/.*/./; q'`
20227 { as_dir=$dirpart/$fdir
20228 case $as_dir in #(
20229 -*) as_dir=./$as_dir;;
20230 esac
20231 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20232 as_dirs=
20233 while :; do
20234 case $as_dir in #(
20235 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20236 *) as_qdir=$as_dir;;
20237 esac
20238 as_dirs="'$as_qdir' $as_dirs"
20239 as_dir=`$as_dirname -- "$as_dir" ||
20240$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20241 X"$as_dir" : 'X\(//\)[^/]' \| \
20242 X"$as_dir" : 'X\(//\)$' \| \
20243 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20244$as_echo X"$as_dir" |
20245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20246 s//\1/
20247 q
20248 }
20249 /^X\(\/\/\)[^/].*/{
20250 s//\1/
20251 q
20252 }
20253 /^X\(\/\/\)$/{
20254 s//\1/
20255 q
20256 }
20257 /^X\(\/\).*/{
20258 s//\1/
20259 q
20260 }
20261 s/.*/./; q'`
20262 test -d "$as_dir" && break
20263 done
20264 test -z "$as_dirs" || eval "mkdir $as_dirs"
20265 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20266$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20267 { (exit 1); exit 1; }; }; }
20268 # echo "creating $dirpart/$file"
20269 echo '# dummy' > "$dirpart/$file"
20270 done
20271 done
20272}
20273 ;;
20274 "libtool":C)
20275
20276 # See if we are running on zsh, and set the options which allow our
20277 # commands through without removal of \ escapes.
20278 if test -n "${ZSH_VERSION+set}" ; then
20279 setopt NO_GLOB_SUBST
20280 fi
20281
20282 cfgfile="${ofile}T"
20283 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20284 $RM "$cfgfile"
20285
20286 cat <<_LT_EOF >> "$cfgfile"
20287#! $SHELL
20288
20289# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20290# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20291# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20292# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20293#
20294# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20295# 2006, 2007, 2008 Free Software Foundation, Inc.
20296# Written by Gordon Matzigkeit, 1996
20297#
20298# This file is part of GNU Libtool.
20299#
20300# GNU Libtool is free software; you can redistribute it and/or
20301# modify it under the terms of the GNU General Public License as
20302# published by the Free Software Foundation; either version 2 of
20303# the License, or (at your option) any later version.
20304#
20305# As a special exception to the GNU General Public License,
20306# if you distribute this file as part of a program or library that
20307# is built using GNU Libtool, you may include this file under the
20308# same distribution terms that you use for the rest of that program.
20309#
20310# GNU Libtool is distributed in the hope that it will be useful,
20311# but WITHOUT ANY WARRANTY; without even the implied warranty of
20312# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20313# GNU General Public License for more details.
20314#
20315# You should have received a copy of the GNU General Public License
20316# along with GNU Libtool; see the file COPYING. If not, a copy
20317# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20318# obtained by writing to the Free Software Foundation, Inc.,
20319# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20320
20321
20322# The names of the tagged configurations supported by this script.
20323available_tags=""
20324
20325# ### BEGIN LIBTOOL CONFIG
20326
20327# Which release of libtool.m4 was used?
20328macro_version=$macro_version
20329macro_revision=$macro_revision
e811949a 20330
8934764e
BB
20331# Whether or not to build shared libraries.
20332build_libtool_libs=$enable_shared
e811949a 20333
8934764e
BB
20334# Whether or not to build static libraries.
20335build_old_libs=$enable_static
e811949a 20336
8934764e
BB
20337# What type of objects to build.
20338pic_mode=$pic_mode
e811949a 20339
8934764e
BB
20340# Whether or not to optimize for fast installation.
20341fast_install=$enable_fast_install
e811949a 20342
8934764e
BB
20343# The host system.
20344host_alias=$host_alias
20345host=$host
20346host_os=$host_os
e811949a 20347
8934764e
BB
20348# The build system.
20349build_alias=$build_alias
20350build=$build
20351build_os=$build_os
3977f837 20352
8934764e
BB
20353# A sed program that does not truncate output.
20354SED=$lt_SED
3977f837 20355
8934764e
BB
20356# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20357Xsed="\$SED -e 1s/^X//"
3977f837 20358
8934764e
BB
20359# A grep program that handles long lines.
20360GREP=$lt_GREP
3977f837 20361
8934764e
BB
20362# An ERE matcher.
20363EGREP=$lt_EGREP
3977f837 20364
8934764e
BB
20365# A literal string matcher.
20366FGREP=$lt_FGREP
3977f837 20367
8934764e
BB
20368# A BSD- or MS-compatible name lister.
20369NM=$lt_NM
3977f837 20370
8934764e
BB
20371# Whether we need soft or hard links.
20372LN_S=$lt_LN_S
3977f837 20373
8934764e
BB
20374# What is the maximum length of a command?
20375max_cmd_len=$max_cmd_len
3977f837 20376
8934764e
BB
20377# Object file suffix (normally "o").
20378objext=$ac_objext
3977f837 20379
8934764e
BB
20380# Executable file suffix (normally "").
20381exeext=$exeext
3977f837 20382
8934764e
BB
20383# whether the shell understands "unset".
20384lt_unset=$lt_unset
3977f837 20385
8934764e
BB
20386# turn spaces into newlines.
20387SP2NL=$lt_lt_SP2NL
3977f837 20388
8934764e
BB
20389# turn newlines into spaces.
20390NL2SP=$lt_lt_NL2SP
3977f837 20391
8934764e
BB
20392# How to create reloadable object files.
20393reload_flag=$lt_reload_flag
20394reload_cmds=$lt_reload_cmds
3977f837 20395
8934764e
BB
20396# An object symbol dumper.
20397OBJDUMP=$lt_OBJDUMP
3977f837 20398
8934764e
BB
20399# Method to check whether dependent libraries are shared objects.
20400deplibs_check_method=$lt_deplibs_check_method
3977f837 20401
8934764e
BB
20402# Command to use when deplibs_check_method == "file_magic".
20403file_magic_cmd=$lt_file_magic_cmd
3977f837 20404
8934764e
BB
20405# The archiver.
20406AR=$lt_AR
20407AR_FLAGS=$lt_AR_FLAGS
3977f837 20408
8934764e
BB
20409# A symbol stripping program.
20410STRIP=$lt_STRIP
3977f837 20411
8934764e
BB
20412# Commands used to install an old-style archive.
20413RANLIB=$lt_RANLIB
20414old_postinstall_cmds=$lt_old_postinstall_cmds
20415old_postuninstall_cmds=$lt_old_postuninstall_cmds
3977f837 20416
8934764e
BB
20417# A C compiler.
20418LTCC=$lt_CC
3977f837 20419
8934764e
BB
20420# LTCC compiler flags.
20421LTCFLAGS=$lt_CFLAGS
3977f837 20422
8934764e
BB
20423# Take the output of nm and produce a listing of raw symbols and C names.
20424global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
86933a6e 20425
8934764e
BB
20426# Transform the output of nm in a proper C declaration.
20427global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
86933a6e 20428
8934764e
BB
20429# Transform the output of nm in a C name address pair.
20430global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
86933a6e 20431
8934764e
BB
20432# Transform the output of nm in a C name address pair when lib prefix is needed.
20433global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
86933a6e 20434
8934764e
BB
20435# The name of the directory that contains temporary libtool files.
20436objdir=$objdir
86933a6e 20437
8934764e
BB
20438# Shell to use when invoking shell scripts.
20439SHELL=$lt_SHELL
86933a6e 20440
8934764e
BB
20441# An echo program that does not interpret backslashes.
20442ECHO=$lt_ECHO
86933a6e 20443
8934764e
BB
20444# Used to examine libraries when file_magic_cmd begins with "file".
20445MAGIC_CMD=$MAGIC_CMD
86933a6e 20446
8934764e
BB
20447# Must we lock files when doing compilation?
20448need_locks=$lt_need_locks
86933a6e 20449
8934764e
BB
20450# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20451DSYMUTIL=$lt_DSYMUTIL
bf9f3bac 20452
8934764e
BB
20453# Tool to change global to local symbols on Mac OS X.
20454NMEDIT=$lt_NMEDIT
bf9f3bac 20455
8934764e
BB
20456# Tool to manipulate fat objects and archives on Mac OS X.
20457LIPO=$lt_LIPO
bf9f3bac 20458
8934764e
BB
20459# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20460OTOOL=$lt_OTOOL
bf9f3bac 20461
8934764e
BB
20462# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20463OTOOL64=$lt_OTOOL64
bf9f3bac 20464
8934764e
BB
20465# Old archive suffix (normally "a").
20466libext=$libext
bf9f3bac 20467
8934764e
BB
20468# Shared library suffix (normally ".so").
20469shrext_cmds=$lt_shrext_cmds
bf9f3bac 20470
8934764e
BB
20471# The commands to extract the exported symbol list from a shared archive.
20472extract_expsyms_cmds=$lt_extract_expsyms_cmds
bf9f3bac 20473
8934764e
BB
20474# Variables whose values should be saved in libtool wrapper scripts and
20475# restored at link time.
20476variables_saved_for_relink=$lt_variables_saved_for_relink
bf9f3bac 20477
8934764e
BB
20478# Do we need the "lib" prefix for modules?
20479need_lib_prefix=$need_lib_prefix
bf9f3bac 20480
8934764e
BB
20481# Do we need a version for libraries?
20482need_version=$need_version
bf9f3bac 20483
8934764e
BB
20484# Library versioning type.
20485version_type=$version_type
bf9f3bac 20486
8934764e
BB
20487# Shared library runtime path variable.
20488runpath_var=$runpath_var
bf9f3bac 20489
8934764e
BB
20490# Shared library path variable.
20491shlibpath_var=$shlibpath_var
bf9f3bac 20492
8934764e
BB
20493# Is shlibpath searched before the hard-coded library search path?
20494shlibpath_overrides_runpath=$shlibpath_overrides_runpath
bf9f3bac 20495
8934764e
BB
20496# Format of library name prefix.
20497libname_spec=$lt_libname_spec
bf9f3bac 20498
8934764e
BB
20499# List of archive names. First name is the real one, the rest are links.
20500# The last name is the one that the linker finds with -lNAME
20501library_names_spec=$lt_library_names_spec
bf9f3bac 20502
8934764e
BB
20503# The coded name of the library, if different from the real name.
20504soname_spec=$lt_soname_spec
bf9f3bac 20505
8934764e
BB
20506# Command to use after installation of a shared archive.
20507postinstall_cmds=$lt_postinstall_cmds
bf9f3bac 20508
8934764e
BB
20509# Command to use after uninstallation of a shared archive.
20510postuninstall_cmds=$lt_postuninstall_cmds
bf9f3bac 20511
8934764e
BB
20512# Commands used to finish a libtool library installation in a directory.
20513finish_cmds=$lt_finish_cmds
bf9f3bac 20514
8934764e
BB
20515# As "finish_cmds", except a single script fragment to be evaled but
20516# not shown.
20517finish_eval=$lt_finish_eval
bf9f3bac 20518
8934764e
BB
20519# Whether we should hardcode library paths into libraries.
20520hardcode_into_libs=$hardcode_into_libs
bf9f3bac 20521
8934764e
BB
20522# Compile-time system search path for libraries.
20523sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
bf9f3bac 20524
8934764e
BB
20525# Run-time system search path for libraries.
20526sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
bf9f3bac 20527
8934764e
BB
20528# Whether dlopen is supported.
20529dlopen_support=$enable_dlopen
bf9f3bac 20530
8934764e
BB
20531# Whether dlopen of programs is supported.
20532dlopen_self=$enable_dlopen_self
bf9f3bac 20533
8934764e
BB
20534# Whether dlopen of statically linked programs is supported.
20535dlopen_self_static=$enable_dlopen_self_static
bf9f3bac 20536
8934764e
BB
20537# Commands to strip libraries.
20538old_striplib=$lt_old_striplib
20539striplib=$lt_striplib
bf9f3bac 20540
bf9f3bac 20541
8934764e
BB
20542# The linker used to build libraries.
20543LD=$lt_LD
bf9f3bac 20544
8934764e
BB
20545# Commands used to build an old-style archive.
20546old_archive_cmds=$lt_old_archive_cmds
bf9f3bac 20547
8934764e
BB
20548# A language specific compiler.
20549CC=$lt_compiler
bf9f3bac 20550
8934764e
BB
20551# Is the compiler the GNU compiler?
20552with_gcc=$GCC
bf9f3bac 20553
8934764e
BB
20554# Compiler flag to turn off builtin functions.
20555no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
bf9f3bac 20556
8934764e
BB
20557# How to pass a linker flag through the compiler.
20558wl=$lt_lt_prog_compiler_wl
bf9f3bac 20559
8934764e
BB
20560# Additional compiler flags for building library objects.
20561pic_flag=$lt_lt_prog_compiler_pic
bf9f3bac 20562
8934764e
BB
20563# Compiler flag to prevent dynamic linking.
20564link_static_flag=$lt_lt_prog_compiler_static
bf9f3bac 20565
8934764e
BB
20566# Does compiler simultaneously support -c and -o options?
20567compiler_c_o=$lt_lt_cv_prog_compiler_c_o
bf9f3bac 20568
8934764e
BB
20569# Whether or not to add -lc for building shared libraries.
20570build_libtool_need_lc=$archive_cmds_need_lc
bf9f3bac 20571
8934764e
BB
20572# Whether or not to disallow shared libs when runtime libs are static.
20573allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
bf9f3bac 20574
8934764e
BB
20575# Compiler flag to allow reflexive dlopens.
20576export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
bf9f3bac 20577
8934764e
BB
20578# Compiler flag to generate shared objects directly from archives.
20579whole_archive_flag_spec=$lt_whole_archive_flag_spec
bf9f3bac 20580
8934764e
BB
20581# Whether the compiler copes with passing no objects directly.
20582compiler_needs_object=$lt_compiler_needs_object
bf9f3bac 20583
8934764e
BB
20584# Create an old-style archive from a shared archive.
20585old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
bf9f3bac 20586
8934764e
BB
20587# Create a temporary old-style archive to link instead of a shared archive.
20588old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
bf9f3bac 20589
8934764e
BB
20590# Commands used to build a shared archive.
20591archive_cmds=$lt_archive_cmds
20592archive_expsym_cmds=$lt_archive_expsym_cmds
bf9f3bac 20593
8934764e
BB
20594# Commands used to build a loadable module if different from building
20595# a shared archive.
20596module_cmds=$lt_module_cmds
20597module_expsym_cmds=$lt_module_expsym_cmds
bf9f3bac 20598
8934764e
BB
20599# Whether we are building with GNU ld or not.
20600with_gnu_ld=$lt_with_gnu_ld
bf9f3bac 20601
8934764e
BB
20602# Flag that allows shared libraries with undefined symbols to be built.
20603allow_undefined_flag=$lt_allow_undefined_flag
bf9f3bac 20604
8934764e
BB
20605# Flag that enforces no undefined symbols.
20606no_undefined_flag=$lt_no_undefined_flag
bf9f3bac 20607
8934764e
BB
20608# Flag to hardcode \$libdir into a binary during linking.
20609# This must work even if \$libdir does not exist
20610hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
bf9f3bac 20611
8934764e
BB
20612# If ld is used when linking, flag to hardcode \$libdir into a binary
20613# during linking. This must work even if \$libdir does not exist.
20614hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
bf9f3bac 20615
8934764e
BB
20616# Whether we need a single "-rpath" flag with a separated argument.
20617hardcode_libdir_separator=$lt_hardcode_libdir_separator
bf9f3bac 20618
8934764e
BB
20619# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20620# DIR into the resulting binary.
20621hardcode_direct=$hardcode_direct
bf9f3bac 20622
8934764e
BB
20623# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20624# DIR into the resulting binary and the resulting library dependency is
20625# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20626# library is relocated.
20627hardcode_direct_absolute=$hardcode_direct_absolute
bf9f3bac 20628
8934764e
BB
20629# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20630# into the resulting binary.
20631hardcode_minus_L=$hardcode_minus_L
bf9f3bac 20632
8934764e
BB
20633# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20634# into the resulting binary.
20635hardcode_shlibpath_var=$hardcode_shlibpath_var
bf9f3bac 20636
8934764e
BB
20637# Set to "yes" if building a shared library automatically hardcodes DIR
20638# into the library and all subsequent libraries and executables linked
20639# against it.
20640hardcode_automatic=$hardcode_automatic
bf9f3bac 20641
8934764e
BB
20642# Set to yes if linker adds runtime paths of dependent libraries
20643# to runtime path list.
20644inherit_rpath=$inherit_rpath
bf9f3bac 20645
8934764e
BB
20646# Whether libtool must link a program against all its dependency libraries.
20647link_all_deplibs=$link_all_deplibs
bf9f3bac 20648
8934764e
BB
20649# Fix the shell variable \$srcfile for the compiler.
20650fix_srcfile_path=$lt_fix_srcfile_path
bf9f3bac 20651
8934764e
BB
20652# Set to "yes" if exported symbols are required.
20653always_export_symbols=$always_export_symbols
bf9f3bac 20654
8934764e
BB
20655# The commands to list exported symbols.
20656export_symbols_cmds=$lt_export_symbols_cmds
bf9f3bac 20657
8934764e
BB
20658# Symbols that should not be listed in the preloaded symbols.
20659exclude_expsyms=$lt_exclude_expsyms
bf9f3bac 20660
8934764e
BB
20661# Symbols that must always be exported.
20662include_expsyms=$lt_include_expsyms
bf9f3bac 20663
8934764e
BB
20664# Commands necessary for linking programs (against libraries) with templates.
20665prelink_cmds=$lt_prelink_cmds
bf9f3bac 20666
8934764e
BB
20667# Specify filename containing input files.
20668file_list_spec=$lt_file_list_spec
bf9f3bac 20669
8934764e
BB
20670# How to hardcode a shared library path into an executable.
20671hardcode_action=$hardcode_action
bf9f3bac 20672
8934764e
BB
20673# ### END LIBTOOL CONFIG
20674
20675_LT_EOF
20676
20677 case $host_os in
20678 aix3*)
20679 cat <<\_LT_EOF >> "$cfgfile"
20680# AIX sometimes has problems with the GCC collect2 program. For some
20681# reason, if we set the COLLECT_NAMES environment variable, the problems
20682# vanish in a puff of smoke.
20683if test "X${COLLECT_NAMES+set}" != Xset; then
20684 COLLECT_NAMES=
20685 export COLLECT_NAMES
bf9f3bac 20686fi
8934764e
BB
20687_LT_EOF
20688 ;;
20689 esac
bf9f3bac 20690
bf9f3bac 20691
8934764e 20692ltmain="$ac_aux_dir/ltmain.sh"
bf9f3bac 20693
bf9f3bac 20694
8934764e
BB
20695 # We use sed instead of cat because bash on DJGPP gets confused if
20696 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20697 # text mode, it properly converts lines to CR/LF. This bash problem
20698 # is reportedly fixed, but why not run on old versions too?
20699 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20700 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 20701
8934764e
BB
20702 case $xsi_shell in
20703 yes)
20704 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 20705
8934764e
BB
20706# func_dirname file append nondir_replacement
20707# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20708# otherwise set result to NONDIR_REPLACEMENT.
20709func_dirname ()
20710{
20711 case ${1} in
20712 */*) func_dirname_result="${1%/*}${2}" ;;
20713 * ) func_dirname_result="${3}" ;;
bf9f3bac 20714 esac
8934764e 20715}
bf9f3bac 20716
8934764e
BB
20717# func_basename file
20718func_basename ()
20719{
20720 func_basename_result="${1##*/}"
20721}
bf9f3bac 20722
8934764e
BB
20723# func_dirname_and_basename file append nondir_replacement
20724# perform func_basename and func_dirname in a single function
20725# call:
20726# dirname: Compute the dirname of FILE. If nonempty,
20727# add APPEND to the result, otherwise set result
20728# to NONDIR_REPLACEMENT.
20729# value returned in "$func_dirname_result"
20730# basename: Compute filename of FILE.
20731# value retuned in "$func_basename_result"
20732# Implementation must be kept synchronized with func_dirname
20733# and func_basename. For efficiency, we do not delegate to
20734# those functions but instead duplicate the functionality here.
20735func_dirname_and_basename ()
bf9f3bac 20736{
8934764e
BB
20737 case ${1} in
20738 */*) func_dirname_result="${1%/*}${2}" ;;
20739 * ) func_dirname_result="${3}" ;;
20740 esac
20741 func_basename_result="${1##*/}"
bf9f3bac 20742}
20743
8934764e
BB
20744# func_stripname prefix suffix name
20745# strip PREFIX and SUFFIX off of NAME.
20746# PREFIX and SUFFIX must not contain globbing or regex special
20747# characters, hashes, percent signs, but SUFFIX may contain a leading
20748# dot (in which case that matches only a dot).
20749func_stripname ()
20750{
20751 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20752 # positional parameters, so assign one to ordinary parameter first.
20753 func_stripname_result=${3}
20754 func_stripname_result=${func_stripname_result#"${1}"}
20755 func_stripname_result=${func_stripname_result%"${2}"}
20756}
bf9f3bac 20757
8934764e
BB
20758# func_opt_split
20759func_opt_split ()
bf9f3bac 20760{
8934764e
BB
20761 func_opt_split_opt=${1%%=*}
20762 func_opt_split_arg=${1#*=}
20763}
20764
20765# func_lo2o object
20766func_lo2o ()
bf9f3bac 20767{
8934764e
BB
20768 case ${1} in
20769 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20770 *) func_lo2o_result=${1} ;;
20771 esac
20772}
20773
20774# func_xform libobj-or-source
20775func_xform ()
bf9f3bac 20776{
8934764e 20777 func_xform_result=${1%.*}.lo
bf9f3bac 20778}
20779
8934764e
BB
20780# func_arith arithmetic-term...
20781func_arith ()
20782{
20783 func_arith_result=$(( $* ))
20784}
bf9f3bac 20785
8934764e
BB
20786# func_len string
20787# STRING may not start with a hyphen.
20788func_len ()
20789{
20790 func_len_result=${#1}
20791}
bf9f3bac 20792
8934764e
BB
20793_LT_EOF
20794 ;;
20795 *) # Bourne compatible functions.
20796 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 20797
8934764e
BB
20798# func_dirname file append nondir_replacement
20799# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20800# otherwise set result to NONDIR_REPLACEMENT.
20801func_dirname ()
20802{
20803 # Extract subdirectory from the argument.
20804 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20805 if test "X$func_dirname_result" = "X${1}"; then
20806 func_dirname_result="${3}"
20807 else
20808 func_dirname_result="$func_dirname_result${2}"
bf9f3bac 20809 fi
8934764e 20810}
bf9f3bac 20811
8934764e
BB
20812# func_basename file
20813func_basename ()
20814{
20815 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20816}
bf9f3bac 20817
bf9f3bac 20818
8934764e
BB
20819# func_stripname prefix suffix name
20820# strip PREFIX and SUFFIX off of NAME.
20821# PREFIX and SUFFIX must not contain globbing or regex special
20822# characters, hashes, percent signs, but SUFFIX may contain a leading
20823# dot (in which case that matches only a dot).
20824# func_strip_suffix prefix name
20825func_stripname ()
20826{
20827 case ${2} in
20828 .*) func_stripname_result=`$ECHO "X${3}" \
20829 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20830 *) func_stripname_result=`$ECHO "X${3}" \
20831 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20832 esac
20833}
bf9f3bac 20834
8934764e
BB
20835# sed scripts:
20836my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20837my_sed_long_arg='1s/^-[^=]*=//'
bf9f3bac 20838
8934764e
BB
20839# func_opt_split
20840func_opt_split ()
20841{
20842 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20843 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20844}
bf9f3bac 20845
8934764e
BB
20846# func_lo2o object
20847func_lo2o ()
20848{
20849 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20850}
bf9f3bac 20851
8934764e
BB
20852# func_xform libobj-or-source
20853func_xform ()
20854{
20855 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20856}
bf9f3bac 20857
8934764e
BB
20858# func_arith arithmetic-term...
20859func_arith ()
20860{
20861 func_arith_result=`expr "$@"`
20862}
bf9f3bac 20863
8934764e
BB
20864# func_len string
20865# STRING may not start with a hyphen.
20866func_len ()
20867{
20868 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20869}
bf9f3bac 20870
8934764e
BB
20871_LT_EOF
20872esac
bf9f3bac 20873
8934764e
BB
20874case $lt_shell_append in
20875 yes)
20876 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 20877
8934764e
BB
20878# func_append var value
20879# Append VALUE to the end of shell variable VAR.
20880func_append ()
20881{
20882 eval "$1+=\$2"
20883}
20884_LT_EOF
20885 ;;
20886 *)
20887 cat << \_LT_EOF >> "$cfgfile"
bf9f3bac 20888
8934764e
BB
20889# func_append var value
20890# Append VALUE to the end of shell variable VAR.
20891func_append ()
20892{
20893 eval "$1=\$$1\$2"
20894}
bf9f3bac 20895
8934764e
BB
20896_LT_EOF
20897 ;;
16b719f0 20898 esac
bf9f3bac 20899
bf9f3bac 20900
8934764e
BB
20901 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20902 || (rm -f "$cfgfile"; exit 1)
bf9f3bac 20903
8934764e
BB
20904 mv -f "$cfgfile" "$ofile" ||
20905 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20906 chmod +x "$ofile"
bf9f3bac 20907
bf9f3bac 20908 ;;
8934764e 20909
bf9f3bac 20910 esac
8934764e 20911done # for ac_tag
bf9f3bac 20912
bf9f3bac 20913
20914{ (exit 0); exit 0; }
20915_ACEOF
20916chmod +x $CONFIG_STATUS
20917ac_clean_files=$ac_clean_files_save
20918
8934764e
BB
20919test $ac_write_fail = 0 ||
20920 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20921$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20922 { (exit 1); exit 1; }; }
20923
bf9f3bac 20924
20925# configure is writing to config.log, and then calls config.status.
20926# config.status does its own redirection, appending to config.log.
20927# Unfortunately, on DOS this fails, as config.log is still kept open
20928# by configure, so config.status won't be able to write to it; its
20929# output is simply discarded. So we exec the FD to /dev/null,
20930# effectively closing config.log, so it can be properly (re)opened and
20931# appended to by config.status. When coming back to configure, we
20932# need to make the FD available again.
20933if test "$no_create" != yes; then
20934 ac_cs_success=:
20935 ac_config_status_args=
20936 test "$silent" = yes &&
20937 ac_config_status_args="$ac_config_status_args --quiet"
20938 exec 5>/dev/null
20939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20940 exec 5>>config.log
20941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20942 # would make configure fail if this is the last instruction.
20943 $ac_cs_success || { (exit 1); exit 1; }
20944fi
8934764e
BB
20945if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20946 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20947$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20948fi
bf9f3bac 20949