]> git.proxmox.com Git - mirror_spl-debian.git/blame - configure
Restore the compatibility to dkms < 2.2.0.3-3 (Closes: #838706)
[mirror_spl-debian.git] / configure
CommitLineData
10946b02
AX
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
0f836a62 3# Generated by GNU Autoconf 2.68 for spl 0.6.5.8.
10946b02
AX
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186else
187 as_have_required=no
188fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209fi
210fi
211 done;;
212 esac
213 as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251 fi
252 exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270 { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279 return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287 set +e
288 as_fn_set_status $1
289 exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394else
395 as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400else
401 as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406else
407 as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477*)
478 ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502else
503 as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME='spl'
569PACKAGE_TARNAME='spl'
0f836a62
AX
570PACKAGE_VERSION='0.6.5.8'
571PACKAGE_STRING='spl 0.6.5.8'
10946b02
AX
572PACKAGE_BUGREPORT=''
573PACKAGE_URL=''
574
575# Factoring default headers for most tests.
576ac_includes_default="\
577#include <stdio.h>
578#ifdef HAVE_SYS_TYPES_H
579# include <sys/types.h>
580#endif
581#ifdef HAVE_SYS_STAT_H
582# include <sys/stat.h>
583#endif
584#ifdef STDC_HEADERS
585# include <stdlib.h>
586# include <stddef.h>
587#else
588# ifdef HAVE_STDLIB_H
589# include <stdlib.h>
590# endif
591#endif
592#ifdef HAVE_STRING_H
593# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594# include <memory.h>
595# endif
596# include <string.h>
597#endif
598#ifdef HAVE_STRINGS_H
599# include <strings.h>
600#endif
601#ifdef HAVE_INTTYPES_H
602# include <inttypes.h>
603#endif
604#ifdef HAVE_STDINT_H
605# include <stdint.h>
606#endif
607#ifdef HAVE_UNISTD_H
608# include <unistd.h>
609#endif"
610
611ac_subst_vars='am__EXEEXT_FALSE
612am__EXEEXT_TRUE
613LTLIBOBJS
614LIBOBJS
615CONFIG_KERNEL_FALSE
616CONFIG_KERNEL_TRUE
617CONFIG_USER_FALSE
618CONFIG_USER_TRUE
619DEBUG_KMEM_TRACKING
620DEBUG_KMEM
621DEBUG_SPL
622DEBUG_CFLAGS
623KERNELCPPFLAGS
624KERNELMAKE_PARAMS
625LINUX_SYMBOLS
626LINUX_VERSION
627LINUX_OBJ
628LINUX
629SPL_CONFIG
630ALIEN_VERSION
631ALIEN
632HAVE_ALIEN
633DPKGBUILD_VERSION
634DPKGBUILD
635HAVE_DPKGBUILD
636DPKG_VERSION
637DPKG
638HAVE_DPKG
639SRPM_DEFINE_COMMON
640SRPM_DEFINE_DKMS
641SRPM_DEFINE_KMOD
642SRPM_DEFINE_UTIL
643RPM_DEFINE_COMMON
644RPM_DEFINE_DKMS
645RPM_DEFINE_KMOD
646RPM_DEFINE_UTIL
647RPM_SPEC_DIR
648RPMBUILD_VERSION
649RPMBUILD
650HAVE_RPMBUILD
651RPM_VERSION
652RPM
653HAVE_RPM
654DEFAULT_PACKAGE
655VENDOR
656CPP
657OTOOL64
658OTOOL
659LIPO
660NMEDIT
661DSYMUTIL
662MANIFEST_TOOL
663RANLIB
664ac_ct_AR
665AR
666DLLTOOL
667OBJDUMP
668LN_S
669NM
670ac_ct_DUMPBIN
671DUMPBIN
672LD
673FGREP
674EGREP
675GREP
676SED
677LIBTOOL
678am__fastdepCC_FALSE
679am__fastdepCC_TRUE
680CCDEPMODE
681am__nodep
682AMDEPBACKSLASH
683AMDEP_FALSE
684AMDEP_TRUE
685am__quote
686am__include
687DEPDIR
688OBJEXT
689EXEEXT
690ac_ct_CC
691CPPFLAGS
692LDFLAGS
693CFLAGS
694CC
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700mkdir_p
701MKDIR_P
702INSTALL_STRIP_PROGRAM
703STRIP
704install_sh
705MAKEINFO
706AUTOHEADER
707AUTOMAKE
708AUTOCONF
709ACLOCAL
710VERSION
711PACKAGE
712CYGPATH_W
713am__isrc
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
721MAINT
722MAINTAINER_MODE_FALSE
723MAINTAINER_MODE_TRUE
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732build_os
733build_vendor
734build_cpu
735build
736SPL_META_LT_AGE
737SPL_META_LT_REVISION
738SPL_META_LT_CURRENT
739SPL_META_AUTHOR
740SPL_META_DATA
741SPL_META_ALIAS
742SPL_META_LICENSE
743RELEASE
744SPL_META_RELEASE
745SPL_META_VERSION
746SPL_META_NAME
747AWK
748target_alias
749host_alias
750build_alias
751LIBS
752ECHO_T
753ECHO_N
754ECHO_C
755DEFS
756mandir
757localedir
758libdir
759psdir
760pdfdir
761dvidir
762htmldir
763infodir
764docdir
765oldincludedir
766includedir
767localstatedir
768sharedstatedir
769sysconfdir
770datadir
771datarootdir
772libexecdir
773sbindir
774bindir
775program_transform_name
776prefix
777exec_prefix
778PACKAGE_URL
779PACKAGE_BUGREPORT
780PACKAGE_STRING
781PACKAGE_VERSION
782PACKAGE_TARNAME
783PACKAGE_NAME
784PATH_SEPARATOR
785SHELL'
786ac_subst_files=''
787ac_user_opts='
788enable_option_checking
789enable_maintainer_mode
790enable_silent_rules
791enable_dependency_tracking
792enable_shared
793enable_static
794with_pic
795enable_fast_install
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799with_spec
800with_config
801enable_linux_builtin
802with_linux
803with_linux_obj
804enable_debug
805enable_debug_kmem
806enable_debug_kmem_tracking
807enable_atomic_spinlocks
808'
809 ac_precious_vars='build_alias
810host_alias
811target_alias
812CC
813CFLAGS
814LDFLAGS
815LIBS
816CPPFLAGS
817CPP'
818
819
820# Initialize some variables set by options.
821ac_init_help=
822ac_init_version=false
823ac_unrecognized_opts=
824ac_unrecognized_sep=
825# The variables have the same names as the options, with
826# dashes changed to underlines.
827cache_file=/dev/null
828exec_prefix=NONE
829no_create=
830no_recursion=
831prefix=NONE
832program_prefix=NONE
833program_suffix=NONE
834program_transform_name=s,x,x,
835silent=
836site=
837srcdir=
838verbose=
839x_includes=NONE
840x_libraries=NONE
841
842# Installation directory options.
843# These are left unexpanded so users can "make install exec_prefix=/foo"
844# and all the variables that are supposed to be based on exec_prefix
845# by default will actually change.
846# Use braces instead of parens because sh, perl, etc. also accept them.
847# (The list follows the same order as the GNU Coding Standards.)
848bindir='${exec_prefix}/bin'
849sbindir='${exec_prefix}/sbin'
850libexecdir='${exec_prefix}/libexec'
851datarootdir='${prefix}/share'
852datadir='${datarootdir}'
853sysconfdir='${prefix}/etc'
854sharedstatedir='${prefix}/com'
855localstatedir='${prefix}/var'
856includedir='${prefix}/include'
857oldincludedir='/usr/include'
858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859infodir='${datarootdir}/info'
860htmldir='${docdir}'
861dvidir='${docdir}'
862pdfdir='${docdir}'
863psdir='${docdir}'
864libdir='${exec_prefix}/lib'
865localedir='${datarootdir}/locale'
866mandir='${datarootdir}/man'
867
868ac_prev=
869ac_dashdash=
870for ac_option
871do
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
875 ac_prev=
876 continue
877 fi
878
879 case $ac_option in
880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 *=) ac_optarg= ;;
882 *) ac_optarg=yes ;;
883 esac
884
885 # Accept the important Cygnus configure options, so we can diagnose typos.
886
887 case $ac_dashdash$ac_option in
888 --)
889 ac_dashdash=yes ;;
890
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
895
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
900
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
907
908 --config-cache | -C)
909 cache_file=config.cache ;;
910
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
915
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
922
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
931 *"
932"enable_$ac_useropt"
933"*) ;;
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
936 esac
937 eval enable_$ac_useropt=no ;;
938
939 -docdir | --docdir | --docdi | --doc | --do)
940 ac_prev=docdir ;;
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942 docdir=$ac_optarg ;;
943
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945 ac_prev=dvidir ;;
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947 dvidir=$ac_optarg ;;
948
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error $? "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=\$ac_optarg ;;
964
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
973
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
976 with_gas=yes ;;
977
978 -help | --help | --hel | --he | -h)
979 ac_init_help=long ;;
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
984
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
989
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991 ac_prev=htmldir ;;
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993 | --ht=*)
994 htmldir=$ac_optarg ;;
995
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1002
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1004 ac_prev=infodir ;;
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1007
1008 -libdir | --libdir | --libdi | --libd)
1009 ac_prev=libdir ;;
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1012
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1019
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1024
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1031
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033 ac_prev=mandir ;;
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1036
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1039 with_fp=no ;;
1040
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1043 no_create=yes ;;
1044
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047 no_recursion=yes ;;
1048
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1057
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059 ac_prev=prefix ;;
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1062
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1069
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1076
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1093
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095 ac_prev=pdfdir ;;
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1098
1099 -psdir | --psdir | --psdi | --psd | --ps)
1100 ac_prev=psdir ;;
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102 psdir=$ac_optarg ;;
1103
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 silent=yes ;;
1107
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1113
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1124
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1129
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1134
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1141
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1146
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1149
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1152
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162"with_$ac_useropt"
1163"*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1168
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=no ;;
1184
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1188
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1195
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1202
1203 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204Try \`$0 --help' for more information"
1205 ;;
1206
1207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213 esac
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1216
1217 *)
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 ;;
1224
1225 esac
1226done
1227
1228if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $? "missing argument to $ac_option"
1231fi
1232
1233if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1235 no) ;;
1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 esac
1239fi
1240
1241# Check all directory arguments for consistency.
1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1246do
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1249 case $ac_val in
1250 */ )
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1253 esac
1254 # Be sure to have absolute directory names.
1255 case $ac_val in
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 esac
1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260done
1261
1262# There might be people who depend on the old broken behavior: `$host'
1263# used to hold the argument of --host etc.
1264# FIXME: To remove some day.
1265build=$build_alias
1266host=$host_alias
1267target=$target_alias
1268
1269# FIXME: To remove some day.
1270if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used" >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278fi
1279
1280ac_tool_prefix=
1281test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283test "$silent" = yes && exec 6>/dev/null
1284
1285
1286ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287ac_ls_di=`ls -di .` &&
1288ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294# Find the source files, if location was not specified.
1295if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303$as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325else
1326 ac_srcdir_defaulted=no
1327fi
1328if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331fi
1332ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336# When building in place, set srcdir=.
1337if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339fi
1340# Remove unnecessary trailing slashes from srcdir.
1341# Double slashes in file names in object file debugging info
1342# mess up M-x gdb in Emacs.
1343case $srcdir in
1344*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345esac
1346for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
0f836a62 1360\`configure' configures spl 0.6.5.8 to adapt to many kinds of systems.
10946b02
AX
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/spl]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413_ACEOF
1414
1415 cat <<\_ACEOF
1416
1417Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430 case $ac_init_help in
0f836a62 1431 short | recursive ) echo "Configuration of spl 0.6.5.8:";;
10946b02
AX
1432 esac
1433 cat <<\_ACEOF
1434
1435Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-maintainer-mode enable make rules and dependencies not useful
1440 (and sometimes confusing) to the casual installer
1441 --enable-silent-rules less verbose build output (undo: `make V=1')
1442 --disable-silent-rules verbose build output (undo: `make V=0')
1443 --disable-dependency-tracking speeds up one-time build
1444 --enable-dependency-tracking do not reject slow dependency extractors
1445 --enable-shared[=PKGS] build shared libraries [default=yes]
1446 --enable-static[=PKGS] build static libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450 --enable-linux-builtin Configure for builtin in-tree kernel modules
1451 [default=no]
1452 --enable-debug Enable generic debug support [default=no]
f6188ddd 1453 --enable-debug-kmem Enable basic kmem accounting [default=no]
10946b02
AX
1454 --enable-debug-kmem-tracking
1455 Enable detailed kmem tracking [default=no]
1456 --enable-atomic-spinlocks
1457 Atomic types use spinlocks [default=check]
1458
1459Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-sysroot=DIR Search for dependent libraries within DIR
1466 (or the compiler's sysroot if not specified).
1467 --with-spec=SPEC Spec files 'generic|redhat'
1468 --with-config=CONFIG Config file 'kernel|user|all|srpm'
1469 --with-linux=PATH Path to kernel source
1470 --with-linux-obj=PATH Path to kernel build objects
1471
1472Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CPP C preprocessor
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
1485Report bugs to the package provider.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547 cat <<\_ACEOF
0f836a62 1548spl configure 0.6.5.8
10946b02
AX
1549generated by GNU Autoconf 2.68
1550
1551Copyright (C) 2010 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
1555 exit
1556fi
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594fi
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_link LINENO
1601# -----------------------
1602# Try to link conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_link ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext conftest$ac_exeext
1607 if { { ac_try="$ac_link"
1608case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611esac
1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613$as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_link") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest$ac_exeext && {
1626 test "$cross_compiling" = yes ||
1627 $as_test_x conftest$ac_exeext
1628 }; then :
1629 ac_retval=0
1630else
1631 $as_echo "$as_me: failed program was:" >&5
1632sed 's/^/| /' conftest.$ac_ext >&5
1633
1634 ac_retval=1
1635fi
1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1638 # interfere with the next link command; also delete a directory that is
1639 # left behind by Apple's compiler. We do this before executing the actions.
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644} # ac_fn_c_try_link
1645
1646# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647# -------------------------------------------------------
1648# Tests whether HEADER exists and can be compiled using the include files in
1649# INCLUDES, setting the cache variable VAR accordingly.
1650ac_fn_c_check_header_compile ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654$as_echo_n "checking for $2... " >&6; }
1655if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1657else
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h. */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664 eval "$3=yes"
1665else
1666 eval "$3=no"
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669fi
1670eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675} # ac_fn_c_check_header_compile
1676
1677# ac_fn_c_try_cpp LINENO
1678# ----------------------
1679# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1680ac_fn_c_try_cpp ()
1681{
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_cpp conftest.$ac_ext"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } > conftest.i && {
1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 }; then :
1702 ac_retval=0
1703else
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708fi
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712} # ac_fn_c_try_cpp
1713
1714# ac_fn_c_try_run LINENO
1715# ----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717# that executables *can* be run.
1718ac_fn_c_try_run ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=$ac_status
1749fi
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_run
1755
1756# ac_fn_c_check_func LINENO FUNC VAR
1757# ----------------------------------
1758# Tests whether FUNC exists, setting the cache variable VAR accordingly
1759ac_fn_c_check_func ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768/* end confdefs.h. */
1769/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771#define $2 innocuous_$2
1772
1773/* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below.
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776 <limits.h> exists even on freestanding compilers. */
1777
1778#ifdef __STDC__
1779# include <limits.h>
1780#else
1781# include <assert.h>
1782#endif
1783
1784#undef $2
1785
1786/* Override any GCC internal prototype to avoid an error.
1787 Use char because int might match the return type of a GCC
1788 builtin and then its argument prototype would still apply. */
1789#ifdef __cplusplus
1790extern "C"
1791#endif
1792char $2 ();
1793/* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796#if defined __stub_$2 || defined __stub___$2
1797choke me
1798#endif
1799
1800int
1801main ()
1802{
1803return $2 ();
1804 ;
1805 return 0;
1806}
1807_ACEOF
1808if ac_fn_c_try_link "$LINENO"; then :
1809 eval "$3=yes"
1810else
1811 eval "$3=no"
1812fi
1813rm -f core conftest.err conftest.$ac_objext \
1814 conftest$ac_exeext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820
1821} # ac_fn_c_check_func
1822cat >config.log <<_ACEOF
1823This file contains any messages produced by compilers while
1824running configure, to aid debugging if configure makes a mistake.
1825
0f836a62 1826It was created by spl $as_me 0.6.5.8, which was
10946b02
AX
1827generated by GNU Autoconf 2.68. Invocation command line was
1828
1829 $ $0 $@
1830
1831_ACEOF
1832exec 5>>config.log
1833{
1834cat <<_ASUNAME
1835## --------- ##
1836## Platform. ##
1837## --------- ##
1838
1839hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1840uname -m = `(uname -m) 2>/dev/null || echo unknown`
1841uname -r = `(uname -r) 2>/dev/null || echo unknown`
1842uname -s = `(uname -s) 2>/dev/null || echo unknown`
1843uname -v = `(uname -v) 2>/dev/null || echo unknown`
1844
1845/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1846/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1847
1848/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1849/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1850/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1851/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1852/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1853/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1854/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1855
1856_ASUNAME
1857
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 $as_echo "PATH: $as_dir"
1864 done
1865IFS=$as_save_IFS
1866
1867} >&5
1868
1869cat >&5 <<_ACEOF
1870
1871
1872## ----------- ##
1873## Core tests. ##
1874## ----------- ##
1875
1876_ACEOF
1877
1878
1879# Keep a trace of the command line.
1880# Strip out --no-create and --no-recursion so they do not pile up.
1881# Strip out --silent because we don't want to record it for future runs.
1882# Also quote any args containing shell meta-characters.
1883# Make two passes to allow for proper duplicate-argument suppression.
1884ac_configure_args=
1885ac_configure_args0=
1886ac_configure_args1=
1887ac_must_keep_next=false
1888for ac_pass in 1 2
1889do
1890 for ac_arg
1891 do
1892 case $ac_arg in
1893 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1895 | -silent | --silent | --silen | --sile | --sil)
1896 continue ;;
1897 *\'*)
1898 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 esac
1900 case $ac_pass in
1901 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1902 2)
1903 as_fn_append ac_configure_args1 " '$ac_arg'"
1904 if test $ac_must_keep_next = true; then
1905 ac_must_keep_next=false # Got value, back to normal.
1906 else
1907 case $ac_arg in
1908 *=* | --config-cache | -C | -disable-* | --disable-* \
1909 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1910 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1911 | -with-* | --with-* | -without-* | --without-* | --x)
1912 case "$ac_configure_args0 " in
1913 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1914 esac
1915 ;;
1916 -* ) ac_must_keep_next=true ;;
1917 esac
1918 fi
1919 as_fn_append ac_configure_args " '$ac_arg'"
1920 ;;
1921 esac
1922 done
1923done
1924{ ac_configure_args0=; unset ac_configure_args0;}
1925{ ac_configure_args1=; unset ac_configure_args1;}
1926
1927# When interrupted or exit'd, cleanup temporary files, and complete
1928# config.log. We remove comments because anyway the quotes in there
1929# would cause problems or look ugly.
1930# WARNING: Use '\'' to represent an apostrophe within the trap.
1931# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1932trap 'exit_status=$?
1933 # Save into config.log some information that might help in debugging.
1934 {
1935 echo
1936
1937 $as_echo "## ---------------- ##
1938## Cache variables. ##
1939## ---------------- ##"
1940 echo
1941 # The following way of writing the cache mishandles newlines in values,
1942(
1943 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1944 eval ac_val=\$$ac_var
1945 case $ac_val in #(
1946 *${as_nl}*)
1947 case $ac_var in #(
1948 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1949$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1950 esac
1951 case $ac_var in #(
1952 _ | IFS | as_nl) ;; #(
1953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1954 *) { eval $ac_var=; unset $ac_var;} ;;
1955 esac ;;
1956 esac
1957 done
1958 (set) 2>&1 |
1959 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1960 *${as_nl}ac_space=\ *)
1961 sed -n \
1962 "s/'\''/'\''\\\\'\'''\''/g;
1963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1964 ;; #(
1965 *)
1966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1967 ;;
1968 esac |
1969 sort
1970)
1971 echo
1972
1973 $as_echo "## ----------------- ##
1974## Output variables. ##
1975## ----------------- ##"
1976 echo
1977 for ac_var in $ac_subst_vars
1978 do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in
1981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 esac
1983 $as_echo "$ac_var='\''$ac_val'\''"
1984 done | sort
1985 echo
1986
1987 if test -n "$ac_subst_files"; then
1988 $as_echo "## ------------------- ##
1989## File substitutions. ##
1990## ------------------- ##"
1991 echo
1992 for ac_var in $ac_subst_files
1993 do
1994 eval ac_val=\$$ac_var
1995 case $ac_val in
1996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 esac
1998 $as_echo "$ac_var='\''$ac_val'\''"
1999 done | sort
2000 echo
2001 fi
2002
2003 if test -s confdefs.h; then
2004 $as_echo "## ----------- ##
2005## confdefs.h. ##
2006## ----------- ##"
2007 echo
2008 cat confdefs.h
2009 echo
2010 fi
2011 test "$ac_signal" != 0 &&
2012 $as_echo "$as_me: caught signal $ac_signal"
2013 $as_echo "$as_me: exit $exit_status"
2014 } >&5
2015 rm -f core *.core core.conftest.* &&
2016 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2017 exit $exit_status
2018' 0
2019for ac_signal in 1 2 13 15; do
2020 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2021done
2022ac_signal=0
2023
2024# confdefs.h avoids OS command line length limits that DEFS can exceed.
2025rm -f -r conftest* confdefs.h
2026
2027$as_echo "/* confdefs.h */" > confdefs.h
2028
2029# Predefined preprocessor variables.
2030
2031cat >>confdefs.h <<_ACEOF
2032#define PACKAGE_NAME "$PACKAGE_NAME"
2033_ACEOF
2034
2035cat >>confdefs.h <<_ACEOF
2036#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2037_ACEOF
2038
2039cat >>confdefs.h <<_ACEOF
2040#define PACKAGE_VERSION "$PACKAGE_VERSION"
2041_ACEOF
2042
2043cat >>confdefs.h <<_ACEOF
2044#define PACKAGE_STRING "$PACKAGE_STRING"
2045_ACEOF
2046
2047cat >>confdefs.h <<_ACEOF
2048#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2049_ACEOF
2050
2051cat >>confdefs.h <<_ACEOF
2052#define PACKAGE_URL "$PACKAGE_URL"
2053_ACEOF
2054
2055
2056# Let the site file select an alternate cache file if it wants to.
2057# Prefer an explicitly selected file to automatically selected ones.
2058ac_site_file1=NONE
2059ac_site_file2=NONE
2060if test -n "$CONFIG_SITE"; then
2061 # We do not want a PATH search for config.site.
2062 case $CONFIG_SITE in #((
2063 -*) ac_site_file1=./$CONFIG_SITE;;
2064 */*) ac_site_file1=$CONFIG_SITE;;
2065 *) ac_site_file1=./$CONFIG_SITE;;
2066 esac
2067elif test "x$prefix" != xNONE; then
2068 ac_site_file1=$prefix/share/config.site
2069 ac_site_file2=$prefix/etc/config.site
2070else
2071 ac_site_file1=$ac_default_prefix/share/config.site
2072 ac_site_file2=$ac_default_prefix/etc/config.site
2073fi
2074for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2075do
2076 test "x$ac_site_file" = xNONE && continue
2077 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2079$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2080 sed 's/^/| /' "$ac_site_file" >&5
2081 . "$ac_site_file" \
2082 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2084as_fn_error $? "failed to load site script $ac_site_file
2085See \`config.log' for more details" "$LINENO" 5; }
2086 fi
2087done
2088
2089if test -r "$cache_file"; then
2090 # Some versions of bash will fail to source /dev/null (special files
2091 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2092 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2094$as_echo "$as_me: loading cache $cache_file" >&6;}
2095 case $cache_file in
2096 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2097 *) . "./$cache_file";;
2098 esac
2099 fi
2100else
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2102$as_echo "$as_me: creating cache $cache_file" >&6;}
2103 >$cache_file
2104fi
2105
2106# Check that the precious variables saved in the cache have kept the same
2107# value.
2108ac_cache_corrupted=false
2109for ac_var in $ac_precious_vars; do
2110 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2111 eval ac_new_set=\$ac_env_${ac_var}_set
2112 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2113 eval ac_new_val=\$ac_env_${ac_var}_value
2114 case $ac_old_set,$ac_new_set in
2115 set,)
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2117$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2118 ac_cache_corrupted=: ;;
2119 ,set)
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2121$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2122 ac_cache_corrupted=: ;;
2123 ,);;
2124 *)
2125 if test "x$ac_old_val" != "x$ac_new_val"; then
2126 # differences in whitespace do not lead to failure.
2127 ac_old_val_w=`echo x $ac_old_val`
2128 ac_new_val_w=`echo x $ac_new_val`
2129 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2131$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2132 ac_cache_corrupted=:
2133 else
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2135$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2136 eval $ac_var=\$ac_old_val
2137 fi
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2139$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2141$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2142 fi;;
2143 esac
2144 # Pass precious variables to config.status.
2145 if test "$ac_new_set" = set; then
2146 case $ac_new_val in
2147 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2148 *) ac_arg=$ac_var=$ac_new_val ;;
2149 esac
2150 case " $ac_configure_args " in
2151 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2152 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2153 esac
2154 fi
2155done
2156if $ac_cache_corrupted; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2160$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2161 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2162fi
2163## -------------------- ##
2164## Main body of script. ##
2165## -------------------- ##
2166
2167ac_ext=c
2168ac_cpp='$CPP $CPPFLAGS'
2169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172
2173
2174ac_ext=c
2175ac_cpp='$CPP $CPPFLAGS'
2176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178ac_compiler_gnu=$ac_cv_c_compiler_gnu
2179
2180
2181 for ac_prog in gawk mawk nawk awk
2182do
2183 # Extract the first word of "$ac_prog", so it can be a program name with args.
2184set dummy $ac_prog; ac_word=$2
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2186$as_echo_n "checking for $ac_word... " >&6; }
2187if ${ac_cv_prog_AWK+:} false; then :
2188 $as_echo_n "(cached) " >&6
2189else
2190 if test -n "$AWK"; then
2191 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 ac_cv_prog_AWK="$ac_prog"
2201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2203 fi
2204done
2205 done
2206IFS=$as_save_IFS
2207
2208fi
2209fi
2210AWK=$ac_cv_prog_AWK
2211if test -n "$AWK"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2213$as_echo "$AWK" >&6; }
2214else
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2216$as_echo "no" >&6; }
2217fi
2218
2219
2220 test -n "$AWK" && break
2221done
2222
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2224$as_echo_n "checking metadata... " >&6; }
2225
2226 META="$srcdir/META"
2227 _spl_ac_meta_type="none"
2228 if test -f "$META"; then
2229 _spl_ac_meta_type="META file"
2230
2231 SPL_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2232 if test -n "$SPL_META_NAME"; then
2233
2234cat >>confdefs.h <<_ACEOF
2235#define SPL_META_NAME "$SPL_META_NAME"
2236_ACEOF
2237
2238
2239 fi
2240
2241 SPL_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2242 if test -n "$SPL_META_VERSION"; then
2243
2244cat >>confdefs.h <<_ACEOF
2245#define SPL_META_VERSION "$SPL_META_VERSION"
2246_ACEOF
2247
2248
2249 fi
2250
2251 SPL_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2252 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2253 _match="${SPL_META_NAME}-${SPL_META_VERSION}"
2254 _alias=$(git describe --match=${_match} 2>/dev/null)
2255 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2256 if test -n "${_release}"; then
2257 SPL_META_RELEASE=${_release}
2258 _spl_ac_meta_type="git describe"
2259 fi
2260 fi
2261
2262 if test -n "$SPL_META_RELEASE"; then
2263
2264cat >>confdefs.h <<_ACEOF
2265#define SPL_META_RELEASE "$SPL_META_RELEASE"
2266_ACEOF
2267
2268
2269
2270 RELEASE="$SPL_META_RELEASE"
2271
2272 fi
2273
2274 SPL_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2275 if test -n "$SPL_META_LICENSE"; then
2276
2277cat >>confdefs.h <<_ACEOF
2278#define SPL_META_LICENSE "$SPL_META_LICENSE"
2279_ACEOF
2280
2281
2282 fi
2283
2284 if test -n "$SPL_META_NAME" -a -n "$SPL_META_VERSION"; then
2285 SPL_META_ALIAS="$SPL_META_NAME-$SPL_META_VERSION"
2286 test -n "$SPL_META_RELEASE" &&
2287 SPL_META_ALIAS="$SPL_META_ALIAS-$SPL_META_RELEASE"
2288
2289cat >>confdefs.h <<_ACEOF
2290#define SPL_META_ALIAS "$SPL_META_ALIAS"
2291_ACEOF
2292
2293
2294 fi
2295
2296 SPL_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2297 if test -n "$SPL_META_DATA"; then
2298
2299cat >>confdefs.h <<_ACEOF
2300#define SPL_META_DATA "$SPL_META_DATA"
2301_ACEOF
2302
2303
2304 fi
2305
2306 SPL_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2307 if test -n "$SPL_META_AUTHOR"; then
2308
2309cat >>confdefs.h <<_ACEOF
2310#define SPL_META_AUTHOR "$SPL_META_AUTHOR"
2311_ACEOF
2312
2313
2314 fi
2315
2316
2317 SPL_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2318 SPL_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2319 SPL_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2320 if test -n "$SPL_META_LT_CURRENT" \
2321 -o -n "$SPL_META_LT_REVISION" \
2322 -o -n "$SPL_META_LT_AGE"; then
2323 test -n "$SPL_META_LT_CURRENT" || SPL_META_LT_CURRENT="0"
2324 test -n "$SPL_META_LT_REVISION" || SPL_META_LT_REVISION="0"
2325 test -n "$SPL_META_LT_AGE" || SPL_META_LT_AGE="0"
2326
2327cat >>confdefs.h <<_ACEOF
2328#define SPL_META_LT_CURRENT "$SPL_META_LT_CURRENT"
2329_ACEOF
2330
2331
2332cat >>confdefs.h <<_ACEOF
2333#define SPL_META_LT_REVISION "$SPL_META_LT_REVISION"
2334_ACEOF
2335
2336
2337cat >>confdefs.h <<_ACEOF
2338#define SPL_META_LT_AGE "$SPL_META_LT_AGE"
2339_ACEOF
2340
2341
2342
2343
2344 fi
2345 fi
2346
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_spl_ac_meta_type" >&5
2348$as_echo "$_spl_ac_meta_type" >&6; }
2349
2350
2351ac_aux_dir=
2352for ac_dir in config "$srcdir"/config; do
2353 if test -f "$ac_dir/install-sh"; then
2354 ac_aux_dir=$ac_dir
2355 ac_install_sh="$ac_aux_dir/install-sh -c"
2356 break
2357 elif test -f "$ac_dir/install.sh"; then
2358 ac_aux_dir=$ac_dir
2359 ac_install_sh="$ac_aux_dir/install.sh -c"
2360 break
2361 elif test -f "$ac_dir/shtool"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/shtool install -c"
2364 break
2365 fi
2366done
2367if test -z "$ac_aux_dir"; then
2368 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2369fi
2370
2371# These three variables are undocumented and unsupported,
2372# and are intended to be withdrawn in a future Autoconf release.
2373# They can cause serious problems if a builder's source tree is in a directory
2374# whose full name contains unusual characters.
2375ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2376ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2377ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2378
2379
2380
2381# Make sure we can run config.sub.
2382$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2383 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2384
2385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2386$as_echo_n "checking build system type... " >&6; }
2387if ${ac_cv_build+:} false; then :
2388 $as_echo_n "(cached) " >&6
2389else
2390 ac_build_alias=$build_alias
2391test "x$ac_build_alias" = x &&
2392 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2393test "x$ac_build_alias" = x &&
2394 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2395ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2396 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2397
2398fi
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2400$as_echo "$ac_cv_build" >&6; }
2401case $ac_cv_build in
2402*-*-*) ;;
2403*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2404esac
2405build=$ac_cv_build
2406ac_save_IFS=$IFS; IFS='-'
2407set x $ac_cv_build
2408shift
2409build_cpu=$1
2410build_vendor=$2
2411shift; shift
2412# Remember, the first character of IFS is used to create $*,
2413# except with old shells:
2414build_os=$*
2415IFS=$ac_save_IFS
2416case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2417
2418
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420$as_echo_n "checking host system type... " >&6; }
2421if ${ac_cv_host+:} false; then :
2422 $as_echo_n "(cached) " >&6
2423else
2424 if test "x$host_alias" = x; then
2425 ac_cv_host=$ac_cv_build
2426else
2427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2429fi
2430
2431fi
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433$as_echo "$ac_cv_host" >&6; }
2434case $ac_cv_host in
2435*-*-*) ;;
2436*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2437esac
2438host=$ac_cv_host
2439ac_save_IFS=$IFS; IFS='-'
2440set x $ac_cv_host
2441shift
2442host_cpu=$1
2443host_vendor=$2
2444shift; shift
2445# Remember, the first character of IFS is used to create $*,
2446# except with old shells:
2447host_os=$*
2448IFS=$ac_save_IFS
2449case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2450
2451
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2453$as_echo_n "checking target system type... " >&6; }
2454if ${ac_cv_target+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456else
2457 if test "x$target_alias" = x; then
2458 ac_cv_target=$ac_cv_host
2459else
2460 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2462fi
2463
2464fi
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2466$as_echo "$ac_cv_target" >&6; }
2467case $ac_cv_target in
2468*-*-*) ;;
2469*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2470esac
2471target=$ac_cv_target
2472ac_save_IFS=$IFS; IFS='-'
2473set x $ac_cv_target
2474shift
2475target_cpu=$1
2476target_vendor=$2
2477shift; shift
2478# Remember, the first character of IFS is used to create $*,
2479# except with old shells:
2480target_os=$*
2481IFS=$ac_save_IFS
2482case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2483
2484
2485# The aliases save the names the user supplied, while $host etc.
2486# will get canonicalized.
2487test -n "$target_alias" &&
2488 test "$program_prefix$program_suffix$program_transform_name" = \
2489 NONENONEs,x,x, &&
2490 program_prefix=${target_alias}-
2491
2492
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2494$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2495 # Check whether --enable-maintainer-mode was given.
2496if test "${enable_maintainer_mode+set}" = set; then :
2497 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2498else
2499 USE_MAINTAINER_MODE=no
2500fi
2501
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2503$as_echo "$USE_MAINTAINER_MODE" >&6; }
2504 if test $USE_MAINTAINER_MODE = yes; then
2505 MAINTAINER_MODE_TRUE=
2506 MAINTAINER_MODE_FALSE='#'
2507else
2508 MAINTAINER_MODE_TRUE='#'
2509 MAINTAINER_MODE_FALSE=
2510fi
2511
2512 MAINT=$MAINTAINER_MODE_TRUE
2513
2514
2515# Check whether --enable-silent-rules was given.
2516if test "${enable_silent_rules+set}" = set; then :
2517 enableval=$enable_silent_rules;
2518fi
2519
2520case $enable_silent_rules in
2521yes) AM_DEFAULT_VERBOSITY=0;;
2522no) AM_DEFAULT_VERBOSITY=1;;
2523*) AM_DEFAULT_VERBOSITY=0;;
2524esac
2525am_make=${MAKE-make}
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2527$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2528if ${am_cv_make_support_nested_variables+:} false; then :
2529 $as_echo_n "(cached) " >&6
2530else
2531 if $as_echo 'TRUE=$(BAR$(V))
2532BAR0=false
2533BAR1=true
2534V=1
2535am__doit:
2536 @$(TRUE)
2537.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2538 am_cv_make_support_nested_variables=yes
2539else
2540 am_cv_make_support_nested_variables=no
2541fi
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2544$as_echo "$am_cv_make_support_nested_variables" >&6; }
2545if test $am_cv_make_support_nested_variables = yes; then
2546 AM_V='$(V)'
2547 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2548else
2549 AM_V=$AM_DEFAULT_VERBOSITY
2550 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2551fi
2552AM_BACKSLASH='\'
2553
2554am__api_version='1.11'
2555
2556# Find a good install program. We prefer a C program (faster),
2557# so one script is as good as another. But avoid the broken or
2558# incompatible versions:
2559# SysV /etc/install, /usr/sbin/install
2560# SunOS /usr/etc/install
2561# IRIX /sbin/install
2562# AIX /bin/install
2563# AmigaOS /C/install, which installs bootblocks on floppy discs
2564# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2565# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2566# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2567# OS/2's system install, which has a completely different semantic
2568# ./install, which can be erroneously created by make from ./install.sh.
2569# Reject install programs that cannot install multiple files.
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2571$as_echo_n "checking for a BSD-compatible install... " >&6; }
2572if test -z "$INSTALL"; then
2573if ${ac_cv_path_install+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577for as_dir in $PATH
2578do
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 # Account for people who put trailing slashes in PATH elements.
2582case $as_dir/ in #((
2583 ./ | .// | /[cC]/* | \
2584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2585 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2586 /usr/ucb/* ) ;;
2587 *)
2588 # OSF1 and SCO ODT 3.0 have their own names for install.
2589 # Don't use installbsd from OSF since it installs stuff as root
2590 # by default.
2591 for ac_prog in ginstall scoinst install; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2594 if test $ac_prog = install &&
2595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2596 # AIX install. It has an incompatible calling convention.
2597 :
2598 elif test $ac_prog = install &&
2599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2600 # program-specific install script used by HP pwplus--don't use.
2601 :
2602 else
2603 rm -rf conftest.one conftest.two conftest.dir
2604 echo one > conftest.one
2605 echo two > conftest.two
2606 mkdir conftest.dir
2607 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2608 test -s conftest.one && test -s conftest.two &&
2609 test -s conftest.dir/conftest.one &&
2610 test -s conftest.dir/conftest.two
2611 then
2612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2613 break 3
2614 fi
2615 fi
2616 fi
2617 done
2618 done
2619 ;;
2620esac
2621
2622 done
2623IFS=$as_save_IFS
2624
2625rm -rf conftest.one conftest.two conftest.dir
2626
2627fi
2628 if test "${ac_cv_path_install+set}" = set; then
2629 INSTALL=$ac_cv_path_install
2630 else
2631 # As a last resort, use the slow shell script. Don't cache a
2632 # value for INSTALL within a source directory, because that will
2633 # break other packages using the cache if that directory is
2634 # removed, or if the value is a relative name.
2635 INSTALL=$ac_install_sh
2636 fi
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2639$as_echo "$INSTALL" >&6; }
2640
2641# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2642# It thinks the first close brace ends the variable substitution.
2643test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2644
2645test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2646
2647test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2648
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2650$as_echo_n "checking whether build environment is sane... " >&6; }
2651# Just in case
2652sleep 1
2653echo timestamp > conftest.file
2654# Reject unsafe characters in $srcdir or the absolute working directory
2655# name. Accept space and tab only in the latter.
2656am_lf='
2657'
2658case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2661esac
2662case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2664 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2665esac
2666
2667# Do `set' in a subshell so we don't clobber the current shell's
2668# arguments. Must try -L first in case configure is actually a
2669# symlink; some systems play weird games with the mod time of symlinks
2670# (eg FreeBSD returns the mod time of the symlink's containing
2671# directory).
2672if (
2673 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2674 if test "$*" = "X"; then
2675 # -L didn't work.
2676 set X `ls -t "$srcdir/configure" conftest.file`
2677 fi
2678 rm -f conftest.file
2679 if test "$*" != "X $srcdir/configure conftest.file" \
2680 && test "$*" != "X conftest.file $srcdir/configure"; then
2681
2682 # If neither matched, then we have a broken ls. This can happen
2683 # if, for instance, CONFIG_SHELL is bash and it inherits a
2684 # broken ls alias from the environment. This has actually
2685 # happened. Such a system could not be considered "sane".
2686 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2687alias in your environment" "$LINENO" 5
2688 fi
2689
2690 test "$2" = conftest.file
2691 )
2692then
2693 # Ok.
2694 :
2695else
2696 as_fn_error $? "newly created file is older than distributed files!
2697Check your system clock" "$LINENO" 5
2698fi
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2700$as_echo "yes" >&6; }
2701test "$program_prefix" != NONE &&
2702 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2703# Use a double $ so make ignores it.
2704test "$program_suffix" != NONE &&
2705 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2706# Double any \ or $.
2707# By default was `s,x,x', remove it if useless.
2708ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2709program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2710
2711# expand $ac_aux_dir to an absolute path
2712am_aux_dir=`cd $ac_aux_dir && pwd`
2713
2714if test x"${MISSING+set}" != xset; then
2715 case $am_aux_dir in
2716 *\ * | *\ *)
2717 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2718 *)
2719 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2720 esac
2721fi
2722# Use eval to expand $SHELL
2723if eval "$MISSING --run true"; then
2724 am_missing_run="$MISSING --run "
2725else
2726 am_missing_run=
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2728$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2729fi
2730
2731if test x"${install_sh}" != xset; then
2732 case $am_aux_dir in
2733 *\ * | *\ *)
2734 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2735 *)
2736 install_sh="\${SHELL} $am_aux_dir/install-sh"
2737 esac
2738fi
2739
2740# Installed binaries are usually stripped using `strip' when the user
2741# run `make install-strip'. However `strip' might not be the right
2742# tool to use in cross-compilation environments, therefore Automake
2743# will honor the `STRIP' environment variable to overrule this program.
2744if test "$cross_compiling" != no; then
2745 if test -n "$ac_tool_prefix"; then
2746 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2747set dummy ${ac_tool_prefix}strip; ac_word=$2
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749$as_echo_n "checking for $ac_word... " >&6; }
2750if ${ac_cv_prog_STRIP+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752else
2753 if test -n "$STRIP"; then
2754 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2755else
2756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757for as_dir in $PATH
2758do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767done
2768 done
2769IFS=$as_save_IFS
2770
2771fi
2772fi
2773STRIP=$ac_cv_prog_STRIP
2774if test -n "$STRIP"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2776$as_echo "$STRIP" >&6; }
2777else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779$as_echo "no" >&6; }
2780fi
2781
2782
2783fi
2784if test -z "$ac_cv_prog_STRIP"; then
2785 ac_ct_STRIP=$STRIP
2786 # Extract the first word of "strip", so it can be a program name with args.
2787set dummy strip; ac_word=$2
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789$as_echo_n "checking for $ac_word... " >&6; }
2790if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792else
2793 if test -n "$ac_ct_STRIP"; then
2794 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2803 ac_cv_prog_ac_ct_STRIP="strip"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807done
2808 done
2809IFS=$as_save_IFS
2810
2811fi
2812fi
2813ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2814if test -n "$ac_ct_STRIP"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2816$as_echo "$ac_ct_STRIP" >&6; }
2817else
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819$as_echo "no" >&6; }
2820fi
2821
2822 if test "x$ac_ct_STRIP" = x; then
2823 STRIP=":"
2824 else
2825 case $cross_compiling:$ac_tool_warned in
2826yes:)
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829ac_tool_warned=yes ;;
2830esac
2831 STRIP=$ac_ct_STRIP
2832 fi
2833else
2834 STRIP="$ac_cv_prog_STRIP"
2835fi
2836
2837fi
2838INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2839
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2841$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2842if test -z "$MKDIR_P"; then
2843 if ${ac_cv_path_mkdir+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2848do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_prog in mkdir gmkdir; do
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2854 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2855 'mkdir (GNU coreutils) '* | \
2856 'mkdir (coreutils) '* | \
2857 'mkdir (fileutils) '4.1*)
2858 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2859 break 3;;
2860 esac
2861 done
2862 done
2863 done
2864IFS=$as_save_IFS
2865
2866fi
2867
2868 test -d ./--version && rmdir ./--version
2869 if test "${ac_cv_path_mkdir+set}" = set; then
2870 MKDIR_P="$ac_cv_path_mkdir -p"
2871 else
2872 # As a last resort, use the slow shell script. Don't cache a
2873 # value for MKDIR_P within a source directory, because that will
2874 # break other packages using the cache if that directory is
2875 # removed, or if the value is a relative name.
2876 MKDIR_P="$ac_install_sh -d"
2877 fi
2878fi
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2880$as_echo "$MKDIR_P" >&6; }
2881
2882mkdir_p="$MKDIR_P"
2883case $mkdir_p in
2884 [\\/$]* | ?:[\\/]*) ;;
2885 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2886esac
2887
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2889$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2890set x ${MAKE-make}
2891ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2892if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894else
2895 cat >conftest.make <<\_ACEOF
2896SHELL = /bin/sh
2897all:
2898 @echo '@@@%%%=$(MAKE)=@@@%%%'
2899_ACEOF
2900# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2901case `${MAKE-make} -f conftest.make 2>/dev/null` in
2902 *@@@%%%=?*=@@@%%%*)
2903 eval ac_cv_prog_make_${ac_make}_set=yes;;
2904 *)
2905 eval ac_cv_prog_make_${ac_make}_set=no;;
2906esac
2907rm -f conftest.make
2908fi
2909if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911$as_echo "yes" >&6; }
2912 SET_MAKE=
2913else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916 SET_MAKE="MAKE=${MAKE-make}"
2917fi
2918
2919rm -rf .tst 2>/dev/null
2920mkdir .tst 2>/dev/null
2921if test -d .tst; then
2922 am__leading_dot=.
2923else
2924 am__leading_dot=_
2925fi
2926rmdir .tst 2>/dev/null
2927
2928if test "`cd $srcdir && pwd`" != "`pwd`"; then
2929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2930 # is not polluted with repeated "-I."
2931 am__isrc=' -I$(srcdir)'
2932 # test to see if srcdir already configured
2933 if test -f $srcdir/config.status; then
2934 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2935 fi
2936fi
2937
2938# test whether we have cygpath
2939if test -z "$CYGPATH_W"; then
2940 if (cygpath --version) >/dev/null 2>/dev/null; then
2941 CYGPATH_W='cygpath -w'
2942 else
2943 CYGPATH_W=echo
2944 fi
2945fi
2946
2947
2948# Define the identity of the package.
2949 PACKAGE='spl'
0f836a62 2950 VERSION='0.6.5.8'
10946b02
AX
2951
2952
2953cat >>confdefs.h <<_ACEOF
2954#define PACKAGE "$PACKAGE"
2955_ACEOF
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define VERSION "$VERSION"
2960_ACEOF
2961
2962# Some tools Automake needs.
2963
2964ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2965
2966
2967AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2968
2969
2970AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2971
2972
2973AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2974
2975
2976MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2977
2978# We need awk for the "check" target. The system "awk" is bad on
2979# some platforms.
2980# Always define AMTAR for backward compatibility. Yes, it's still used
2981# in the wild :-( We should find a proper way to deprecate it ...
2982AMTAR='$${TAR-tar}'
2983
2984am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2985
2986
2987
2988
2989
2990ac_config_headers="$ac_config_headers spl_config.h"
2991
2992
2993
2994ac_ext=c
2995ac_cpp='$CPP $CPPFLAGS'
2996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
3004if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021done
3022 done
3023IFS=$as_save_IFS
3024
3025fi
3026fi
3027CC=$ac_cv_prog_CC
3028if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030$as_echo "$CC" >&6; }
3031else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
3034fi
3035
3036
3037fi
3038if test -z "$ac_cv_prog_CC"; then
3039 ac_ct_CC=$CC
3040 # Extract the first word of "gcc", so it can be a program name with args.
3041set dummy gcc; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046else
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_ac_ct_CC="gcc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061done
3062 done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070$as_echo "$ac_ct_CC" >&6; }
3071else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076 if test "x$ac_ct_CC" = x; then
3077 CC=""
3078 else
3079 case $cross_compiling:$ac_tool_warned in
3080yes:)
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083ac_tool_warned=yes ;;
3084esac
3085 CC=$ac_ct_CC
3086 fi
3087else
3088 CC="$ac_cv_prog_CC"
3089fi
3090
3091if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094set dummy ${ac_tool_prefix}cc; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_CC="${ac_tool_prefix}cc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114done
3115 done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123$as_echo "$CC" >&6; }
3124else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130 fi
3131fi
3132if test -z "$CC"; then
3133 # Extract the first word of "cc", so it can be a program name with args.
3134set dummy cc; ac_word=$2
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if ${ac_cv_prog_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143 ac_prog_rejected=no
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152 ac_prog_rejected=yes
3153 continue
3154 fi
3155 ac_cv_prog_CC="cc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159done
3160 done
3161IFS=$as_save_IFS
3162
3163if test $ac_prog_rejected = yes; then
3164 # We found a bogon in the path, so make sure we never use it.
3165 set dummy $ac_cv_prog_CC
3166 shift
3167 if test $# != 0; then
3168 # We chose a different compiler from the bogus one.
3169 # However, it has the same basename, so the bogon will be chosen
3170 # first if we set CC to just the basename; use the full file name.
3171 shift
3172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173 fi
3174fi
3175fi
3176fi
3177CC=$ac_cv_prog_CC
3178if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180$as_echo "$CC" >&6; }
3181else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186
3187fi
3188if test -z "$CC"; then
3189 if test -n "$ac_tool_prefix"; then
3190 for ac_prog in cl.exe
3191 do
3192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if ${ac_cv_prog_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198else
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213done
3214 done
3215IFS=$as_save_IFS
3216
3217fi
3218fi
3219CC=$ac_cv_prog_CC
3220if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222$as_echo "$CC" >&6; }
3223else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226fi
3227
3228
3229 test -n "$CC" && break
3230 done
3231fi
3232if test -z "$CC"; then
3233 ac_ct_CC=$CC
3234 for ac_prog in cl.exe
3235do
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237set dummy $ac_prog; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242else
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_ac_ct_CC="$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257done
3258 done
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264if test -n "$ac_ct_CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266$as_echo "$ac_ct_CC" >&6; }
3267else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273 test -n "$ac_ct_CC" && break
3274done
3275
3276 if test "x$ac_ct_CC" = x; then
3277 CC=""
3278 else
3279 case $cross_compiling:$ac_tool_warned in
3280yes:)
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283ac_tool_warned=yes ;;
3284esac
3285 CC=$ac_ct_CC
3286 fi
3287fi
3288
3289fi
3290
3291
3292test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294as_fn_error $? "no acceptable C compiler found in \$PATH
3295See \`config.log' for more details" "$LINENO" 5; }
3296
3297# Provide some information about the compiler.
3298$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3299set X $ac_compile
3300ac_compiler=$2
3301for ac_option in --version -v -V -qversion; do
3302 { { ac_try="$ac_compiler $ac_option >&5"
3303case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3310 ac_status=$?
3311 if test -s conftest.err; then
3312 sed '10a\
3313... rest of stderr output deleted ...
3314 10q' conftest.err >conftest.er1
3315 cat conftest.er1 >&5
3316 fi
3317 rm -f conftest.er1 conftest.err
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }
3320done
3321
3322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323/* end confdefs.h. */
3324
3325int
3326main ()
3327{
3328
3329 ;
3330 return 0;
3331}
3332_ACEOF
3333ac_clean_files_save=$ac_clean_files
3334ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335# Try to create an executable without -o first, disregard a.out.
3336# It will help us diagnose broken compilers, and finding out an intuition
3337# of exeext.
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339$as_echo_n "checking whether the C compiler works... " >&6; }
3340ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3341
3342# The possible output files:
3343ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3344
3345ac_rmfiles=
3346for ac_file in $ac_files
3347do
3348 case $ac_file in
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351 esac
3352done
3353rm -f $ac_rmfiles
3354
3355if { { ac_try="$ac_link_default"
3356case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link_default") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3367# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3368# in a Makefile. We should not override ac_cv_exeext if it was cached,
3369# so that the user can short-circuit this test for compilers unknown to
3370# Autoconf.
3371for ac_file in $ac_files ''
3372do
3373 test -f "$ac_file" || continue
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3376 ;;
3377 [ab].out )
3378 # We found the default executable, but exeext='' is most
3379 # certainly right.
3380 break;;
3381 *.* )
3382 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3383 then :; else
3384 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385 fi
3386 # We set ac_cv_exeext here because the later test for it is not
3387 # safe: cross compilers may not add the suffix if given an `-o'
3388 # argument, so we may need to know it at that point already.
3389 # Even if this section looks crufty: it has the advantage of
3390 # actually working.
3391 break;;
3392 * )
3393 break;;
3394 esac
3395done
3396test "$ac_cv_exeext" = no && ac_cv_exeext=
3397
3398else
3399 ac_file=''
3400fi
3401if test -z "$ac_file"; then :
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404$as_echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409as_fn_error 77 "C compiler cannot create executables
3410See \`config.log' for more details" "$LINENO" 5; }
3411else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413$as_echo "yes" >&6; }
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416$as_echo_n "checking for C compiler default output file name... " >&6; }
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418$as_echo "$ac_file" >&6; }
3419ac_exeext=$ac_cv_exeext
3420
3421rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422ac_clean_files=$ac_clean_files_save
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424$as_echo_n "checking for suffix of executables... " >&6; }
3425if { { ac_try="$ac_link"
3426case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429esac
3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431$as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3438# work properly (i.e., refer to `conftest.exe'), while it won't with
3439# `rm'.
3440for ac_file in conftest.exe conftest conftest.*; do
3441 test -f "$ac_file" || continue
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 break;;
3446 * ) break;;
3447 esac
3448done
3449else
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3453See \`config.log' for more details" "$LINENO" 5; }
3454fi
3455rm -f conftest conftest$ac_cv_exeext
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457$as_echo "$ac_cv_exeext" >&6; }
3458
3459rm -f conftest.$ac_ext
3460EXEEXT=$ac_cv_exeext
3461ac_exeext=$EXEEXT
3462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h. */
3464#include <stdio.h>
3465int
3466main ()
3467{
3468FILE *f = fopen ("conftest.out", "w");
3469 return ferror (f) || fclose (f) != 0;
3470
3471 ;
3472 return 0;
3473}
3474_ACEOF
3475ac_clean_files="$ac_clean_files conftest.out"
3476# Check that the compiler produces executables we can run. If not, either
3477# the compiler is broken, or we cross compile.
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479$as_echo_n "checking whether we are cross compiling... " >&6; }
3480if test "$cross_compiling" != yes; then
3481 { { ac_try="$ac_link"
3482case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_link") 2>&5
3489 ac_status=$?
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 if { ac_try='./conftest$ac_cv_exeext'
3493 { { case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498$as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_try") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; }; then
3503 cross_compiling=no
3504 else
3505 if test "$cross_compiling" = maybe; then
3506 cross_compiling=yes
3507 else
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error $? "cannot run C compiled programs.
3511If you meant to cross compile, use \`--host'.
3512See \`config.log' for more details" "$LINENO" 5; }
3513 fi
3514 fi
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517$as_echo "$cross_compiling" >&6; }
3518
3519rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3520ac_clean_files=$ac_clean_files_save
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522$as_echo_n "checking for suffix of object files... " >&6; }
3523if ${ac_cv_objext+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525else
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h. */
3528
3529int
3530main ()
3531{
3532
3533 ;
3534 return 0;
3535}
3536_ACEOF
3537rm -f conftest.o conftest.obj
3538if { { ac_try="$ac_compile"
3539case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542esac
3543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544$as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compile") 2>&5
3546 ac_status=$?
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; then :
3549 for ac_file in conftest.o conftest.obj conftest.*; do
3550 test -f "$ac_file" || continue;
3551 case $ac_file in
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554 break;;
3555 esac
3556done
3557else
3558 $as_echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563as_fn_error $? "cannot compute suffix of object files: cannot compile
3564See \`config.log' for more details" "$LINENO" 5; }
3565fi
3566rm -f conftest.$ac_cv_objext conftest.$ac_ext
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569$as_echo "$ac_cv_objext" >&6; }
3570OBJEXT=$ac_cv_objext
3571ac_objext=$OBJEXT
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574if ${ac_cv_c_compiler_gnu+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576else
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h. */
3579
3580int
3581main ()
3582{
3583#ifndef __GNUC__
3584 choke me
3585#endif
3586
3587 ;
3588 return 0;
3589}
3590_ACEOF
3591if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_compiler_gnu=yes
3593else
3594 ac_compiler_gnu=no
3595fi
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597ac_cv_c_compiler_gnu=$ac_compiler_gnu
3598
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602if test $ac_compiler_gnu = yes; then
3603 GCC=yes
3604else
3605 GCC=
3606fi
3607ac_test_CFLAGS=${CFLAGS+set}
3608ac_save_CFLAGS=$CFLAGS
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610$as_echo_n "checking whether $CC accepts -g... " >&6; }
3611if ${ac_cv_prog_cc_g+:} false; then :
3612 $as_echo_n "(cached) " >&6
3613else
3614 ac_save_c_werror_flag=$ac_c_werror_flag
3615 ac_c_werror_flag=yes
3616 ac_cv_prog_cc_g=no
3617 CFLAGS="-g"
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h. */
3620
3621int
3622main ()
3623{
3624
3625 ;
3626 return 0;
3627}
3628_ACEOF
3629if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_cv_prog_cc_g=yes
3631else
3632 CFLAGS=""
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634/* end confdefs.h. */
3635
3636int
3637main ()
3638{
3639
3640 ;
3641 return 0;
3642}
3643_ACEOF
3644if ac_fn_c_try_compile "$LINENO"; then :
3645
3646else
3647 ac_c_werror_flag=$ac_save_c_werror_flag
3648 CFLAGS="-g"
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h. */
3651
3652int
3653main ()
3654{
3655
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_cv_prog_cc_g=yes
3662fi
3663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664fi
3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671$as_echo "$ac_cv_prog_cc_g" >&6; }
3672if test "$ac_test_CFLAGS" = set; then
3673 CFLAGS=$ac_save_CFLAGS
3674elif test $ac_cv_prog_cc_g = yes; then
3675 if test "$GCC" = yes; then
3676 CFLAGS="-g -O2"
3677 else
3678 CFLAGS="-g"
3679 fi
3680else
3681 if test "$GCC" = yes; then
3682 CFLAGS="-O2"
3683 else
3684 CFLAGS=
3685 fi
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689if ${ac_cv_prog_cc_c89+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691else
3692 ac_cv_prog_cc_c89=no
3693ac_save_CC=$CC
3694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h. */
3696#include <stdarg.h>
3697#include <stdio.h>
3698#include <sys/types.h>
3699#include <sys/stat.h>
3700/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3701struct buf { int x; };
3702FILE * (*rcsopen) (struct buf *, struct stat *, int);
3703static char *e (p, i)
3704 char **p;
3705 int i;
3706{
3707 return p[i];
3708}
3709static char *f (char * (*g) (char **, int), char **p, ...)
3710{
3711 char *s;
3712 va_list v;
3713 va_start (v,p);
3714 s = g (p, va_arg (v,int));
3715 va_end (v);
3716 return s;
3717}
3718
3719/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3720 function prototypes and stuff, but not '\xHH' hex character constants.
3721 These don't provoke an error unfortunately, instead are silently treated
3722 as 'x'. The following induces an error, until -std is added to get
3723 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3724 array size at least. It's necessary to write '\x00'==0 to get something
3725 that's true only with -std. */
3726int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3727
3728/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3729 inside strings and character constants. */
3730#define FOO(x) 'x'
3731int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3732
3733int test (int i, double x);
3734struct s1 {int (*f) (int a);};
3735struct s2 {int (*f) (double a);};
3736int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3737int argc;
3738char **argv;
3739int
3740main ()
3741{
3742return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3743 ;
3744 return 0;
3745}
3746_ACEOF
3747for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3748 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3749do
3750 CC="$ac_save_CC $ac_arg"
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_prog_cc_c89=$ac_arg
3753fi
3754rm -f core conftest.err conftest.$ac_objext
3755 test "x$ac_cv_prog_cc_c89" != "xno" && break
3756done
3757rm -f conftest.$ac_ext
3758CC=$ac_save_CC
3759
3760fi
3761# AC_CACHE_VAL
3762case "x$ac_cv_prog_cc_c89" in
3763 x)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3765$as_echo "none needed" >&6; } ;;
3766 xno)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3768$as_echo "unsupported" >&6; } ;;
3769 *)
3770 CC="$CC $ac_cv_prog_cc_c89"
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3772$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3773esac
3774if test "x$ac_cv_prog_cc_c89" != xno; then :
3775
3776fi
3777
3778ac_ext=c
3779ac_cpp='$CPP $CPPFLAGS'
3780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783DEPDIR="${am__leading_dot}deps"
3784
3785ac_config_commands="$ac_config_commands depfiles"
3786
3787
3788am_make=${MAKE-make}
3789cat > confinc << 'END'
3790am__doit:
3791 @echo this is the am__doit target
3792.PHONY: am__doit
3793END
3794# If we don't find an include directive, just comment out the code.
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3796$as_echo_n "checking for style of include used by $am_make... " >&6; }
3797am__include="#"
3798am__quote=
3799_am_result=none
3800# First try GNU make style include.
3801echo "include confinc" > confmf
3802# Ignore all kinds of additional output from `make'.
3803case `$am_make -s -f confmf 2> /dev/null` in #(
3804*the\ am__doit\ target*)
3805 am__include=include
3806 am__quote=
3807 _am_result=GNU
3808 ;;
3809esac
3810# Now try BSD make style include.
3811if test "$am__include" = "#"; then
3812 echo '.include "confinc"' > confmf
3813 case `$am_make -s -f confmf 2> /dev/null` in #(
3814 *the\ am__doit\ target*)
3815 am__include=.include
3816 am__quote="\""
3817 _am_result=BSD
3818 ;;
3819 esac
3820fi
3821
3822
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3824$as_echo "$_am_result" >&6; }
3825rm -f confinc confmf
3826
3827# Check whether --enable-dependency-tracking was given.
3828if test "${enable_dependency_tracking+set}" = set; then :
3829 enableval=$enable_dependency_tracking;
3830fi
3831
3832if test "x$enable_dependency_tracking" != xno; then
3833 am_depcomp="$ac_aux_dir/depcomp"
3834 AMDEPBACKSLASH='\'
3835 am__nodep='_no'
3836fi
3837 if test "x$enable_dependency_tracking" != xno; then
3838 AMDEP_TRUE=
3839 AMDEP_FALSE='#'
3840else
3841 AMDEP_TRUE='#'
3842 AMDEP_FALSE=
3843fi
3844
3845
3846
3847depcc="$CC" am_compiler_list=
3848
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3850$as_echo_n "checking dependency style of $depcc... " >&6; }
3851if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853else
3854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3855 # We make a subdir and do the tests there. Otherwise we can end up
3856 # making bogus files that we don't know about and never remove. For
3857 # instance it was reported that on HP-UX the gcc test will end up
3858 # making a dummy file named `D' -- because `-MD' means `put the output
3859 # in D'.
3860 rm -rf conftest.dir
3861 mkdir conftest.dir
3862 # Copy depcomp to subdir because otherwise we won't find it if we're
3863 # using a relative directory.
3864 cp "$am_depcomp" conftest.dir
3865 cd conftest.dir
3866 # We will build objects and dependencies in a subdirectory because
3867 # it helps to detect inapplicable dependency modes. For instance
3868 # both Tru64's cc and ICC support -MD to output dependencies as a
3869 # side effect of compilation, but ICC will put the dependencies in
3870 # the current directory while Tru64 will put them in the object
3871 # directory.
3872 mkdir sub
3873
3874 am_cv_CC_dependencies_compiler_type=none
3875 if test "$am_compiler_list" = ""; then
3876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877 fi
3878 am__universal=false
3879 case " $depcc " in #(
3880 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3881 esac
3882
3883 for depmode in $am_compiler_list; do
3884 # Setup a source with many dependencies, because some compilers
3885 # like to wrap large dependency lists on column 80 (with \), and
3886 # we should not choose a depcomp mode which is confused by this.
3887 #
3888 # We need to recreate these files for each test, as the compiler may
3889 # overwrite some of them when testing with obscure command lines.
3890 # This happens at least with the AIX C compiler.
3891 : > sub/conftest.c
3892 for i in 1 2 3 4 5 6; do
3893 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3894 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3895 # Solaris 8's {/usr,}/bin/sh.
3896 touch sub/conftst$i.h
3897 done
3898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3899
3900 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3901 # mode. It turns out that the SunPro C++ compiler does not properly
3902 # handle `-M -o', and we need to detect this. Also, some Intel
3903 # versions had trouble with output in subdirs
3904 am__obj=sub/conftest.${OBJEXT-o}
3905 am__minus_obj="-o $am__obj"
3906 case $depmode in
3907 gcc)
3908 # This depmode causes a compiler race in universal mode.
3909 test "$am__universal" = false || continue
3910 ;;
3911 nosideeffect)
3912 # after this tag, mechanisms are not by side-effect, so they'll
3913 # only be used when explicitly requested
3914 if test "x$enable_dependency_tracking" = xyes; then
3915 continue
3916 else
3917 break
3918 fi
3919 ;;
3920 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3921 # This compiler won't grok `-c -o', but also, the minuso test has
3922 # not run yet. These depmodes are late enough in the game, and
3923 # so weak that their functioning should not be impacted.
3924 am__obj=conftest.${OBJEXT-o}
3925 am__minus_obj=
3926 ;;
3927 none) break ;;
3928 esac
3929 if depmode=$depmode \
3930 source=sub/conftest.c object=$am__obj \
3931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3933 >/dev/null 2>conftest.err &&
3934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938 # icc doesn't choke on unknown options, it will just issue warnings
3939 # or remarks (even with -Werror). So we grep stderr for any message
3940 # that says an option was ignored or not supported.
3941 # When given -MP, icc 7.0 and 7.1 complain thusly:
3942 # icc: Command line warning: ignoring option '-M'; no argument required
3943 # The diagnosis changed in icc 8.0:
3944 # icc: Command line remark: option '-MP' not supported
3945 if (grep 'ignoring option' conftest.err ||
3946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947 am_cv_CC_dependencies_compiler_type=$depmode
3948 break
3949 fi
3950 fi
3951 done
3952
3953 cd ..
3954 rm -rf conftest.dir
3955else
3956 am_cv_CC_dependencies_compiler_type=none
3957fi
3958
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963
3964 if
3965 test "x$enable_dependency_tracking" != xno \
3966 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967 am__fastdepCC_TRUE=
3968 am__fastdepCC_FALSE='#'
3969else
3970 am__fastdepCC_TRUE='#'
3971 am__fastdepCC_FALSE=
3972fi
3973
3974
3975case `pwd` in
3976 *\ * | *\ *)
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3978$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3979esac
3980
3981
3982
3983macro_version='2.4.2'
3984macro_revision='1.3337'
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998ltmain="$ac_aux_dir/ltmain.sh"
3999
4000# Backslashify metacharacters that are still active within
4001# double-quoted strings.
4002sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4003
4004# Same as above, but do not quote variable references.
4005double_quote_subst='s/\(["`\\]\)/\\\1/g'
4006
4007# Sed substitution to delay expansion of an escaped shell variable in a
4008# double_quote_subst'ed string.
4009delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4010
4011# Sed substitution to delay expansion of an escaped single quote.
4012delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4013
4014# Sed substitution to avoid accidental globbing in evaled expressions
4015no_glob_subst='s/\*/\\\*/g'
4016
4017ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4018ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4019ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4020
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4022$as_echo_n "checking how to print strings... " >&6; }
4023# Test print first, because it will be a builtin if present.
4024if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4025 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4026 ECHO='print -r --'
4027elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4028 ECHO='printf %s\n'
4029else
4030 # Use this function as a fallback that always works.
4031 func_fallback_echo ()
4032 {
4033 eval 'cat <<_LTECHO_EOF
4034$1
4035_LTECHO_EOF'
4036 }
4037 ECHO='func_fallback_echo'
4038fi
4039
4040# func_echo_all arg...
4041# Invoke $ECHO with all args, space-separated.
4042func_echo_all ()
4043{
4044 $ECHO ""
4045}
4046
4047case "$ECHO" in
4048 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4049$as_echo "printf" >&6; } ;;
4050 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4051$as_echo "print -r" >&6; } ;;
4052 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4053$as_echo "cat" >&6; } ;;
4054esac
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4070$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4071if ${ac_cv_path_SED+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073else
4074 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4075 for ac_i in 1 2 3 4 5 6 7; do
4076 ac_script="$ac_script$as_nl$ac_script"
4077 done
4078 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4079 { ac_script=; unset ac_script;}
4080 if test -z "$SED"; then
4081 ac_path_SED_found=false
4082 # Loop through the user's path and test for each of PROGNAME-LIST
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_prog in sed gsed; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4091 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4092# Check for GNU ac_path_SED and select it if it is found.
4093 # Check for GNU $ac_path_SED
4094case `"$ac_path_SED" --version 2>&1` in
4095*GNU*)
4096 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4097*)
4098 ac_count=0
4099 $as_echo_n 0123456789 >"conftest.in"
4100 while :
4101 do
4102 cat "conftest.in" "conftest.in" >"conftest.tmp"
4103 mv "conftest.tmp" "conftest.in"
4104 cp "conftest.in" "conftest.nl"
4105 $as_echo '' >> "conftest.nl"
4106 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108 as_fn_arith $ac_count + 1 && ac_count=$as_val
4109 if test $ac_count -gt ${ac_path_SED_max-0}; then
4110 # Best one so far, save it but keep looking for a better one
4111 ac_cv_path_SED="$ac_path_SED"
4112 ac_path_SED_max=$ac_count
4113 fi
4114 # 10*(2^10) chars as input seems more than enough
4115 test $ac_count -gt 10 && break
4116 done
4117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4118esac
4119
4120 $ac_path_SED_found && break 3
4121 done
4122 done
4123 done
4124IFS=$as_save_IFS
4125 if test -z "$ac_cv_path_SED"; then
4126 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4127 fi
4128else
4129 ac_cv_path_SED=$SED
4130fi
4131
4132fi
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4134$as_echo "$ac_cv_path_SED" >&6; }
4135 SED="$ac_cv_path_SED"
4136 rm -f conftest.sed
4137
4138test -z "$SED" && SED=sed
4139Xsed="$SED -e 1s/^X//"
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4152$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4153if ${ac_cv_path_GREP+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155else
4156 if test -z "$GREP"; then
4157 ac_path_GREP_found=false
4158 # Loop through the user's path and test for each of PROGNAME-LIST
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4161do
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_prog in grep ggrep; do
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4167 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4168# Check for GNU ac_path_GREP and select it if it is found.
4169 # Check for GNU $ac_path_GREP
4170case `"$ac_path_GREP" --version 2>&1` in
4171*GNU*)
4172 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4173*)
4174 ac_count=0
4175 $as_echo_n 0123456789 >"conftest.in"
4176 while :
4177 do
4178 cat "conftest.in" "conftest.in" >"conftest.tmp"
4179 mv "conftest.tmp" "conftest.in"
4180 cp "conftest.in" "conftest.nl"
4181 $as_echo 'GREP' >> "conftest.nl"
4182 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4184 as_fn_arith $ac_count + 1 && ac_count=$as_val
4185 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4186 # Best one so far, save it but keep looking for a better one
4187 ac_cv_path_GREP="$ac_path_GREP"
4188 ac_path_GREP_max=$ac_count
4189 fi
4190 # 10*(2^10) chars as input seems more than enough
4191 test $ac_count -gt 10 && break
4192 done
4193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4194esac
4195
4196 $ac_path_GREP_found && break 3
4197 done
4198 done
4199 done
4200IFS=$as_save_IFS
4201 if test -z "$ac_cv_path_GREP"; then
4202 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4203 fi
4204else
4205 ac_cv_path_GREP=$GREP
4206fi
4207
4208fi
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4210$as_echo "$ac_cv_path_GREP" >&6; }
4211 GREP="$ac_cv_path_GREP"
4212
4213
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4215$as_echo_n "checking for egrep... " >&6; }
4216if ${ac_cv_path_EGREP+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218else
4219 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4220 then ac_cv_path_EGREP="$GREP -E"
4221 else
4222 if test -z "$EGREP"; then
4223 ac_path_EGREP_found=false
4224 # Loop through the user's path and test for each of PROGNAME-LIST
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in egrep; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4233 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4234# Check for GNU ac_path_EGREP and select it if it is found.
4235 # Check for GNU $ac_path_EGREP
4236case `"$ac_path_EGREP" --version 2>&1` in
4237*GNU*)
4238 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4239*)
4240 ac_count=0
4241 $as_echo_n 0123456789 >"conftest.in"
4242 while :
4243 do
4244 cat "conftest.in" "conftest.in" >"conftest.tmp"
4245 mv "conftest.tmp" "conftest.in"
4246 cp "conftest.in" "conftest.nl"
4247 $as_echo 'EGREP' >> "conftest.nl"
4248 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4250 as_fn_arith $ac_count + 1 && ac_count=$as_val
4251 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4252 # Best one so far, save it but keep looking for a better one
4253 ac_cv_path_EGREP="$ac_path_EGREP"
4254 ac_path_EGREP_max=$ac_count
4255 fi
4256 # 10*(2^10) chars as input seems more than enough
4257 test $ac_count -gt 10 && break
4258 done
4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4260esac
4261
4262 $ac_path_EGREP_found && break 3
4263 done
4264 done
4265 done
4266IFS=$as_save_IFS
4267 if test -z "$ac_cv_path_EGREP"; then
4268 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4269 fi
4270else
4271 ac_cv_path_EGREP=$EGREP
4272fi
4273
4274 fi
4275fi
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4277$as_echo "$ac_cv_path_EGREP" >&6; }
4278 EGREP="$ac_cv_path_EGREP"
4279
4280
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4282$as_echo_n "checking for fgrep... " >&6; }
4283if ${ac_cv_path_FGREP+:} false; then :
4284 $as_echo_n "(cached) " >&6
4285else
4286 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4287 then ac_cv_path_FGREP="$GREP -F"
4288 else
4289 if test -z "$FGREP"; then
4290 ac_path_FGREP_found=false
4291 # Loop through the user's path and test for each of PROGNAME-LIST
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_prog in fgrep; do
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4300 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4301# Check for GNU ac_path_FGREP and select it if it is found.
4302 # Check for GNU $ac_path_FGREP
4303case `"$ac_path_FGREP" --version 2>&1` in
4304*GNU*)
4305 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4306*)
4307 ac_count=0
4308 $as_echo_n 0123456789 >"conftest.in"
4309 while :
4310 do
4311 cat "conftest.in" "conftest.in" >"conftest.tmp"
4312 mv "conftest.tmp" "conftest.in"
4313 cp "conftest.in" "conftest.nl"
4314 $as_echo 'FGREP' >> "conftest.nl"
4315 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4316 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4317 as_fn_arith $ac_count + 1 && ac_count=$as_val
4318 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4319 # Best one so far, save it but keep looking for a better one
4320 ac_cv_path_FGREP="$ac_path_FGREP"
4321 ac_path_FGREP_max=$ac_count
4322 fi
4323 # 10*(2^10) chars as input seems more than enough
4324 test $ac_count -gt 10 && break
4325 done
4326 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4327esac
4328
4329 $ac_path_FGREP_found && break 3
4330 done
4331 done
4332 done
4333IFS=$as_save_IFS
4334 if test -z "$ac_cv_path_FGREP"; then
4335 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4336 fi
4337else
4338 ac_cv_path_FGREP=$FGREP
4339fi
4340
4341 fi
4342fi
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4344$as_echo "$ac_cv_path_FGREP" >&6; }
4345 FGREP="$ac_cv_path_FGREP"
4346
4347
4348test -z "$GREP" && GREP=grep
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368# Check whether --with-gnu-ld was given.
4369if test "${with_gnu_ld+set}" = set; then :
4370 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4371else
4372 with_gnu_ld=no
4373fi
4374
4375ac_prog=ld
4376if test "$GCC" = yes; then
4377 # Check if gcc -print-prog-name=ld gives a path.
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4379$as_echo_n "checking for ld used by $CC... " >&6; }
4380 case $host in
4381 *-*-mingw*)
4382 # gcc leaves a trailing carriage return which upsets mingw
4383 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4384 *)
4385 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4386 esac
4387 case $ac_prog in
4388 # Accept absolute paths.
4389 [\\/]* | ?:[\\/]*)
4390 re_direlt='/[^/][^/]*/\.\./'
4391 # Canonicalize the pathname of ld
4392 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4393 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4394 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4395 done
4396 test -z "$LD" && LD="$ac_prog"
4397 ;;
4398 "")
4399 # If it fails, then pretend we aren't using GCC.
4400 ac_prog=ld
4401 ;;
4402 *)
4403 # If it is relative, then search for the first ld in PATH.
4404 with_gnu_ld=unknown
4405 ;;
4406 esac
4407elif test "$with_gnu_ld" = yes; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4409$as_echo_n "checking for GNU ld... " >&6; }
4410else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4412$as_echo_n "checking for non-GNU ld... " >&6; }
4413fi
4414if ${lt_cv_path_LD+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416else
4417 if test -z "$LD"; then
4418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4419 for ac_dir in $PATH; do
4420 IFS="$lt_save_ifs"
4421 test -z "$ac_dir" && ac_dir=.
4422 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4423 lt_cv_path_LD="$ac_dir/$ac_prog"
4424 # Check to see if the program is GNU ld. I'd rather use --version,
4425 # but apparently some variants of GNU ld only accept -v.
4426 # Break only if it was the GNU/non-GNU ld that we prefer.
4427 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4428 *GNU* | *'with BFD'*)
4429 test "$with_gnu_ld" != no && break
4430 ;;
4431 *)
4432 test "$with_gnu_ld" != yes && break
4433 ;;
4434 esac
4435 fi
4436 done
4437 IFS="$lt_save_ifs"
4438else
4439 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4440fi
4441fi
4442
4443LD="$lt_cv_path_LD"
4444if test -n "$LD"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4446$as_echo "$LD" >&6; }
4447else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449$as_echo "no" >&6; }
4450fi
4451test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4453$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4454if ${lt_cv_prog_gnu_ld+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456else
4457 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4458case `$LD -v 2>&1 </dev/null` in
4459*GNU* | *'with BFD'*)
4460 lt_cv_prog_gnu_ld=yes
4461 ;;
4462*)
4463 lt_cv_prog_gnu_ld=no
4464 ;;
4465esac
4466fi
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4468$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4469with_gnu_ld=$lt_cv_prog_gnu_ld
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4480$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4481if ${lt_cv_path_NM+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483else
4484 if test -n "$NM"; then
4485 # Let the user override the test.
4486 lt_cv_path_NM="$NM"
4487else
4488 lt_nm_to_check="${ac_tool_prefix}nm"
4489 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4490 lt_nm_to_check="$lt_nm_to_check nm"
4491 fi
4492 for lt_tmp_nm in $lt_nm_to_check; do
4493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4494 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4495 IFS="$lt_save_ifs"
4496 test -z "$ac_dir" && ac_dir=.
4497 tmp_nm="$ac_dir/$lt_tmp_nm"
4498 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4499 # Check to see if the nm accepts a BSD-compat flag.
4500 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4501 # nm: unknown option "B" ignored
4502 # Tru64's nm complains that /dev/null is an invalid object file
4503 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4504 */dev/null* | *'Invalid file or object type'*)
4505 lt_cv_path_NM="$tmp_nm -B"
4506 break
4507 ;;
4508 *)
4509 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4510 */dev/null*)
4511 lt_cv_path_NM="$tmp_nm -p"
4512 break
4513 ;;
4514 *)
4515 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4516 continue # so that we can try to find one that supports BSD flags
4517 ;;
4518 esac
4519 ;;
4520 esac
4521 fi
4522 done
4523 IFS="$lt_save_ifs"
4524 done
4525 : ${lt_cv_path_NM=no}
4526fi
4527fi
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4529$as_echo "$lt_cv_path_NM" >&6; }
4530if test "$lt_cv_path_NM" != "no"; then
4531 NM="$lt_cv_path_NM"
4532else
4533 # Didn't find any BSD compatible name lister, look for dumpbin.
4534 if test -n "$DUMPBIN"; then :
4535 # Let the user override the test.
4536 else
4537 if test -n "$ac_tool_prefix"; then
4538 for ac_prog in dumpbin "link -dump"
4539 do
4540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4541set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4543$as_echo_n "checking for $ac_word... " >&6; }
4544if ${ac_cv_prog_DUMPBIN+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546else
4547 if test -n "$DUMPBIN"; then
4548 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4549else
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
4562 done
4563IFS=$as_save_IFS
4564
4565fi
4566fi
4567DUMPBIN=$ac_cv_prog_DUMPBIN
4568if test -n "$DUMPBIN"; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4570$as_echo "$DUMPBIN" >&6; }
4571else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573$as_echo "no" >&6; }
4574fi
4575
4576
4577 test -n "$DUMPBIN" && break
4578 done
4579fi
4580if test -z "$DUMPBIN"; then
4581 ac_ct_DUMPBIN=$DUMPBIN
4582 for ac_prog in dumpbin "link -dump"
4583do
4584 # Extract the first word of "$ac_prog", so it can be a program name with args.
4585set dummy $ac_prog; ac_word=$2
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587$as_echo_n "checking for $ac_word... " >&6; }
4588if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590else
4591 if test -n "$ac_ct_DUMPBIN"; then
4592 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4593else
4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH
4596do
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4604 fi
4605done
4606 done
4607IFS=$as_save_IFS
4608
4609fi
4610fi
4611ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4612if test -n "$ac_ct_DUMPBIN"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4614$as_echo "$ac_ct_DUMPBIN" >&6; }
4615else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617$as_echo "no" >&6; }
4618fi
4619
4620
4621 test -n "$ac_ct_DUMPBIN" && break
4622done
4623
4624 if test "x$ac_ct_DUMPBIN" = x; then
4625 DUMPBIN=":"
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628yes:)
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631ac_tool_warned=yes ;;
4632esac
4633 DUMPBIN=$ac_ct_DUMPBIN
4634 fi
4635fi
4636
4637 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4638 *COFF*)
4639 DUMPBIN="$DUMPBIN -symbols"
4640 ;;
4641 *)
4642 DUMPBIN=:
4643 ;;
4644 esac
4645 fi
4646
4647 if test "$DUMPBIN" != ":"; then
4648 NM="$DUMPBIN"
4649 fi
4650fi
4651test -z "$NM" && NM=nm
4652
4653
4654
4655
4656
4657
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4659$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4660if ${lt_cv_nm_interface+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662else
4663 lt_cv_nm_interface="BSD nm"
4664 echo "int some_variable = 0;" > conftest.$ac_ext
4665 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4666 (eval "$ac_compile" 2>conftest.err)
4667 cat conftest.err >&5
4668 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4669 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4670 cat conftest.err >&5
4671 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4672 cat conftest.out >&5
4673 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4674 lt_cv_nm_interface="MS dumpbin"
4675 fi
4676 rm -f conftest*
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4679$as_echo "$lt_cv_nm_interface" >&6; }
4680
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4682$as_echo_n "checking whether ln -s works... " >&6; }
4683LN_S=$as_ln_s
4684if test "$LN_S" = "ln -s"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4686$as_echo "yes" >&6; }
4687else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4689$as_echo "no, using $LN_S" >&6; }
4690fi
4691
4692# find the maximum length of command line arguments
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4694$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4695if ${lt_cv_sys_max_cmd_len+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697else
4698 i=0
4699 teststring="ABCD"
4700
4701 case $build_os in
4702 msdosdjgpp*)
4703 # On DJGPP, this test can blow up pretty badly due to problems in libc
4704 # (any single argument exceeding 2000 bytes causes a buffer overrun
4705 # during glob expansion). Even if it were fixed, the result of this
4706 # check would be larger than it should be.
4707 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4708 ;;
4709
4710 gnu*)
4711 # Under GNU Hurd, this test is not required because there is
4712 # no limit to the length of command line arguments.
4713 # Libtool will interpret -1 as no limit whatsoever
4714 lt_cv_sys_max_cmd_len=-1;
4715 ;;
4716
4717 cygwin* | mingw* | cegcc*)
4718 # On Win9x/ME, this test blows up -- it succeeds, but takes
4719 # about 5 minutes as the teststring grows exponentially.
4720 # Worse, since 9x/ME are not pre-emptively multitasking,
4721 # you end up with a "frozen" computer, even though with patience
4722 # the test eventually succeeds (with a max line length of 256k).
4723 # Instead, let's just punt: use the minimum linelength reported by
4724 # all of the supported platforms: 8192 (on NT/2K/XP).
4725 lt_cv_sys_max_cmd_len=8192;
4726 ;;
4727
4728 mint*)
4729 # On MiNT this can take a long time and run out of memory.
4730 lt_cv_sys_max_cmd_len=8192;
4731 ;;
4732
4733 amigaos*)
4734 # On AmigaOS with pdksh, this test takes hours, literally.
4735 # So we just punt and use a minimum line length of 8192.
4736 lt_cv_sys_max_cmd_len=8192;
4737 ;;
4738
4739 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4740 # This has been around since 386BSD, at least. Likely further.
4741 if test -x /sbin/sysctl; then
4742 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4743 elif test -x /usr/sbin/sysctl; then
4744 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4745 else
4746 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4747 fi
4748 # And add a safety zone
4749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4751 ;;
4752
4753 interix*)
4754 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4755 lt_cv_sys_max_cmd_len=196608
4756 ;;
4757
4758 os2*)
4759 # The test takes a long time on OS/2.
4760 lt_cv_sys_max_cmd_len=8192
4761 ;;
4762
4763 osf*)
4764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4766 # nice to cause kernel panics so lets avoid the loop below.
4767 # First set a reasonable default.
4768 lt_cv_sys_max_cmd_len=16384
4769 #
4770 if test -x /sbin/sysconfig; then
4771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4772 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4773 esac
4774 fi
4775 ;;
4776 sco3.2v5*)
4777 lt_cv_sys_max_cmd_len=102400
4778 ;;
4779 sysv5* | sco5v6* | sysv4.2uw2*)
4780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4781 if test -n "$kargmax"; then
4782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4783 else
4784 lt_cv_sys_max_cmd_len=32768
4785 fi
4786 ;;
4787 *)
4788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4789 if test -n "$lt_cv_sys_max_cmd_len"; then
4790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4792 else
4793 # Make teststring a little bigger before we do anything with it.
4794 # a 1K string should be a reasonable start.
4795 for i in 1 2 3 4 5 6 7 8 ; do
4796 teststring=$teststring$teststring
4797 done
4798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4799 # If test is not a shell built-in, we'll probably end up computing a
4800 # maximum length that is only half of the actual maximum length, but
4801 # we can't tell.
4802 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4803 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4804 test $i != 17 # 1/2 MB should be enough
4805 do
4806 i=`expr $i + 1`
4807 teststring=$teststring$teststring
4808 done
4809 # Only check the string length outside the loop.
4810 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4811 teststring=
4812 # Add a significant safety factor because C++ compilers can tack on
4813 # massive amounts of additional arguments before passing them to the
4814 # linker. It appears as though 1/2 is a usable value.
4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4816 fi
4817 ;;
4818 esac
4819
4820fi
4821
4822if test -n $lt_cv_sys_max_cmd_len ; then
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4824$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4825else
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4827$as_echo "none" >&6; }
4828fi
4829max_cmd_len=$lt_cv_sys_max_cmd_len
4830
4831
4832
4833
4834
4835
4836: ${CP="cp -f"}
4837: ${MV="mv -f"}
4838: ${RM="rm -f"}
4839
4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4841$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4842# Try some XSI features
4843xsi_shell=no
4844( _lt_dummy="a/b/c"
4845 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4846 = c,a/b,b/c, \
4847 && eval 'test $(( 1 + 1 )) -eq 2 \
4848 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4849 && xsi_shell=yes
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4851$as_echo "$xsi_shell" >&6; }
4852
4853
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4855$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4856lt_shell_append=no
4857( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4858 >/dev/null 2>&1 \
4859 && lt_shell_append=yes
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4861$as_echo "$lt_shell_append" >&6; }
4862
4863
4864if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4865 lt_unset=unset
4866else
4867 lt_unset=false
4868fi
4869
4870
4871
4872
4873
4874# test EBCDIC or ASCII
4875case `echo X|tr X '\101'` in
4876 A) # ASCII based system
4877 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4878 lt_SP2NL='tr \040 \012'
4879 lt_NL2SP='tr \015\012 \040\040'
4880 ;;
4881 *) # EBCDIC based system
4882 lt_SP2NL='tr \100 \n'
4883 lt_NL2SP='tr \r\n \100\100'
4884 ;;
4885esac
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4896$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4897if ${lt_cv_to_host_file_cmd+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899else
4900 case $host in
4901 *-*-mingw* )
4902 case $build in
4903 *-*-mingw* ) # actually msys
4904 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4905 ;;
4906 *-*-cygwin* )
4907 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4908 ;;
4909 * ) # otherwise, assume *nix
4910 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4911 ;;
4912 esac
4913 ;;
4914 *-*-cygwin* )
4915 case $build in
4916 *-*-mingw* ) # actually msys
4917 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4918 ;;
4919 *-*-cygwin* )
4920 lt_cv_to_host_file_cmd=func_convert_file_noop
4921 ;;
4922 * ) # otherwise, assume *nix
4923 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4924 ;;
4925 esac
4926 ;;
4927 * ) # unhandled hosts (and "normal" native builds)
4928 lt_cv_to_host_file_cmd=func_convert_file_noop
4929 ;;
4930esac
4931
4932fi
4933
4934to_host_file_cmd=$lt_cv_to_host_file_cmd
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4936$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4937
4938
4939
4940
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4943$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4944if ${lt_cv_to_tool_file_cmd+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946else
4947 #assume ordinary cross tools, or native build.
4948lt_cv_to_tool_file_cmd=func_convert_file_noop
4949case $host in
4950 *-*-mingw* )
4951 case $build in
4952 *-*-mingw* ) # actually msys
4953 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4954 ;;
4955 esac
4956 ;;
4957esac
4958
4959fi
4960
4961to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4963$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4964
4965
4966
4967
4968
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4970$as_echo_n "checking for $LD option to reload object files... " >&6; }
4971if ${lt_cv_ld_reload_flag+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973else
4974 lt_cv_ld_reload_flag='-r'
4975fi
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4977$as_echo "$lt_cv_ld_reload_flag" >&6; }
4978reload_flag=$lt_cv_ld_reload_flag
4979case $reload_flag in
4980"" | " "*) ;;
4981*) reload_flag=" $reload_flag" ;;
4982esac
4983reload_cmds='$LD$reload_flag -o $output$reload_objs'
4984case $host_os in
4985 cygwin* | mingw* | pw32* | cegcc*)
4986 if test "$GCC" != yes; then
4987 reload_cmds=false
4988 fi
4989 ;;
4990 darwin*)
4991 if test "$GCC" = yes; then
4992 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4993 else
4994 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4995 fi
4996 ;;
4997esac
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007if test -n "$ac_tool_prefix"; then
5008 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5009set dummy ${ac_tool_prefix}objdump; ac_word=$2
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011$as_echo_n "checking for $ac_word... " >&6; }
5012if ${ac_cv_prog_OBJDUMP+:} false; then :
5013 $as_echo_n "(cached) " >&6
5014else
5015 if test -n "$OBJDUMP"; then
5016 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5017else
5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019for as_dir in $PATH
5020do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029done
5030 done
5031IFS=$as_save_IFS
5032
5033fi
5034fi
5035OBJDUMP=$ac_cv_prog_OBJDUMP
5036if test -n "$OBJDUMP"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5038$as_echo "$OBJDUMP" >&6; }
5039else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041$as_echo "no" >&6; }
5042fi
5043
5044
5045fi
5046if test -z "$ac_cv_prog_OBJDUMP"; then
5047 ac_ct_OBJDUMP=$OBJDUMP
5048 # Extract the first word of "objdump", so it can be a program name with args.
5049set dummy objdump; ac_word=$2
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
5052if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054else
5055 if test -n "$ac_ct_OBJDUMP"; then
5056 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5057else
5058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069done
5070 done
5071IFS=$as_save_IFS
5072
5073fi
5074fi
5075ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5076if test -n "$ac_ct_OBJDUMP"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5078$as_echo "$ac_ct_OBJDUMP" >&6; }
5079else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081$as_echo "no" >&6; }
5082fi
5083
5084 if test "x$ac_ct_OBJDUMP" = x; then
5085 OBJDUMP="false"
5086 else
5087 case $cross_compiling:$ac_tool_warned in
5088yes:)
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5091ac_tool_warned=yes ;;
5092esac
5093 OBJDUMP=$ac_ct_OBJDUMP
5094 fi
5095else
5096 OBJDUMP="$ac_cv_prog_OBJDUMP"
5097fi
5098
5099test -z "$OBJDUMP" && OBJDUMP=objdump
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5110$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5111if ${lt_cv_deplibs_check_method+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113else
5114 lt_cv_file_magic_cmd='$MAGIC_CMD'
5115lt_cv_file_magic_test_file=
5116lt_cv_deplibs_check_method='unknown'
5117# Need to set the preceding variable on all platforms that support
5118# interlibrary dependencies.
5119# 'none' -- dependencies not supported.
5120# `unknown' -- same as none, but documents that we really don't know.
5121# 'pass_all' -- all dependencies passed with no checks.
5122# 'test_compile' -- check by making test program.
5123# 'file_magic [[regex]]' -- check by looking for files in library path
5124# which responds to the $file_magic_cmd with a given extended regex.
5125# If you have `file' or equivalent on your system and you're not sure
5126# whether `pass_all' will *always* work, you probably want this one.
5127
5128case $host_os in
5129aix[4-9]*)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133beos*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136
5137bsdi[45]*)
5138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5139 lt_cv_file_magic_cmd='/usr/bin/file -L'
5140 lt_cv_file_magic_test_file=/shlib/libc.so
5141 ;;
5142
5143cygwin*)
5144 # func_win32_libid is a shell function defined in ltmain.sh
5145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5146 lt_cv_file_magic_cmd='func_win32_libid'
5147 ;;
5148
5149mingw* | pw32*)
5150 # Base MSYS/MinGW do not provide the 'file' command needed by
5151 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5152 # unless we find 'file', for example because we are cross-compiling.
5153 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5154 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5155 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5156 lt_cv_file_magic_cmd='func_win32_libid'
5157 else
5158 # Keep this pattern in sync with the one in func_win32_libid.
5159 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5160 lt_cv_file_magic_cmd='$OBJDUMP -f'
5161 fi
5162 ;;
5163
5164cegcc*)
5165 # use the weaker test based on 'objdump'. See mingw*.
5166 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5167 lt_cv_file_magic_cmd='$OBJDUMP -f'
5168 ;;
5169
5170darwin* | rhapsody*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174freebsd* | dragonfly*)
5175 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5176 case $host_cpu in
5177 i*86 )
5178 # Not sure whether the presence of OpenBSD here was a mistake.
5179 # Let's accept both of them until this is cleared up.
5180 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5181 lt_cv_file_magic_cmd=/usr/bin/file
5182 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5183 ;;
5184 esac
5185 else
5186 lt_cv_deplibs_check_method=pass_all
5187 fi
5188 ;;
5189
5190gnu*)
5191 lt_cv_deplibs_check_method=pass_all
5192 ;;
5193
5194haiku*)
5195 lt_cv_deplibs_check_method=pass_all
5196 ;;
5197
5198hpux10.20* | hpux11*)
5199 lt_cv_file_magic_cmd=/usr/bin/file
5200 case $host_cpu in
5201 ia64*)
5202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5203 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5204 ;;
5205 hppa*64*)
5206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5207 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5208 ;;
5209 *)
5210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5211 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5212 ;;
5213 esac
5214 ;;
5215
5216interix[3-9]*)
5217 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5219 ;;
5220
5221irix5* | irix6* | nonstopux*)
5222 case $LD in
5223 *-32|*"-32 ") libmagic=32-bit;;
5224 *-n32|*"-n32 ") libmagic=N32;;
5225 *-64|*"-64 ") libmagic=64-bit;;
5226 *) libmagic=never-match;;
5227 esac
5228 lt_cv_deplibs_check_method=pass_all
5229 ;;
5230
5231# This must be glibc/ELF.
5232linux* | k*bsd*-gnu | kopensolaris*-gnu)
5233 lt_cv_deplibs_check_method=pass_all
5234 ;;
5235
5236netbsd* | netbsdelf*-gnu)
5237 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5239 else
5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5241 fi
5242 ;;
5243
5244newos6*)
5245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5246 lt_cv_file_magic_cmd=/usr/bin/file
5247 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5248 ;;
5249
5250*nto* | *qnx*)
5251 lt_cv_deplibs_check_method=pass_all
5252 ;;
5253
5254openbsd*)
5255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5257 else
5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5259 fi
5260 ;;
5261
5262osf3* | osf4* | osf5*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265
5266rdos*)
5267 lt_cv_deplibs_check_method=pass_all
5268 ;;
5269
5270solaris*)
5271 lt_cv_deplibs_check_method=pass_all
5272 ;;
5273
5274sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5275 lt_cv_deplibs_check_method=pass_all
5276 ;;
5277
5278sysv4 | sysv4.3*)
5279 case $host_vendor in
5280 motorola)
5281 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]'
5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5283 ;;
5284 ncr)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287 sequent)
5288 lt_cv_file_magic_cmd='/bin/file'
5289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5290 ;;
5291 sni)
5292 lt_cv_file_magic_cmd='/bin/file'
5293 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5294 lt_cv_file_magic_test_file=/lib/libc.so
5295 ;;
5296 siemens)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299 pc)
5300 lt_cv_deplibs_check_method=pass_all
5301 ;;
5302 esac
5303 ;;
5304
5305tpf*)
5306 lt_cv_deplibs_check_method=pass_all
5307 ;;
5308esac
5309
5310fi
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5312$as_echo "$lt_cv_deplibs_check_method" >&6; }
5313
5314file_magic_glob=
5315want_nocaseglob=no
5316if test "$build" = "$host"; then
5317 case $host_os in
5318 mingw* | pw32*)
5319 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5320 want_nocaseglob=yes
5321 else
5322 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5323 fi
5324 ;;
5325 esac
5326fi
5327
5328file_magic_cmd=$lt_cv_file_magic_cmd
5329deplibs_check_method=$lt_cv_deplibs_check_method
5330test -z "$deplibs_check_method" && deplibs_check_method=unknown
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5355set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357$as_echo_n "checking for $ac_word... " >&6; }
5358if ${ac_cv_prog_DLLTOOL+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360else
5361 if test -n "$DLLTOOL"; then
5362 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5363else
5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH
5366do
5367 IFS=$as_save_IFS
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375done
5376 done
5377IFS=$as_save_IFS
5378
5379fi
5380fi
5381DLLTOOL=$ac_cv_prog_DLLTOOL
5382if test -n "$DLLTOOL"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5384$as_echo "$DLLTOOL" >&6; }
5385else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387$as_echo "no" >&6; }
5388fi
5389
5390
5391fi
5392if test -z "$ac_cv_prog_DLLTOOL"; then
5393 ac_ct_DLLTOOL=$DLLTOOL
5394 # Extract the first word of "dlltool", so it can be a program name with args.
5395set dummy dlltool; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400else
5401 if test -n "$ac_ct_DLLTOOL"; then
5402 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415done
5416 done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5422if test -n "$ac_ct_DLLTOOL"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5424$as_echo "$ac_ct_DLLTOOL" >&6; }
5425else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427$as_echo "no" >&6; }
5428fi
5429
5430 if test "x$ac_ct_DLLTOOL" = x; then
5431 DLLTOOL="false"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434yes:)
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 DLLTOOL=$ac_ct_DLLTOOL
5440 fi
5441else
5442 DLLTOOL="$ac_cv_prog_DLLTOOL"
5443fi
5444
5445test -z "$DLLTOOL" && DLLTOOL=dlltool
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5457$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5458if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460else
5461 lt_cv_sharedlib_from_linklib_cmd='unknown'
5462
5463case $host_os in
5464cygwin* | mingw* | pw32* | cegcc*)
5465 # two different shell functions defined in ltmain.sh
5466 # decide which to use based on capabilities of $DLLTOOL
5467 case `$DLLTOOL --help 2>&1` in
5468 *--identify-strict*)
5469 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5470 ;;
5471 *)
5472 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5473 ;;
5474 esac
5475 ;;
5476*)
5477 # fallback: assume linklib IS sharedlib
5478 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5479 ;;
5480esac
5481
5482fi
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5484$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5485sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5486test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5487
5488
5489
5490
5491
5492
5493
5494
5495if test -n "$ac_tool_prefix"; then
5496 for ac_prog in ar
5497 do
5498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5499set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5501$as_echo_n "checking for $ac_word... " >&6; }
5502if ${ac_cv_prog_AR+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504else
5505 if test -n "$AR"; then
5506 ac_cv_prog_AR="$AR" # Let the user override the test.
5507else
5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509for as_dir in $PATH
5510do
5511 IFS=$as_save_IFS
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 break 2
5518 fi
5519done
5520 done
5521IFS=$as_save_IFS
5522
5523fi
5524fi
5525AR=$ac_cv_prog_AR
5526if test -n "$AR"; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5528$as_echo "$AR" >&6; }
5529else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531$as_echo "no" >&6; }
5532fi
5533
5534
5535 test -n "$AR" && break
5536 done
5537fi
5538if test -z "$AR"; then
5539 ac_ct_AR=$AR
5540 for ac_prog in ar
5541do
5542 # Extract the first word of "$ac_prog", so it can be a program name with args.
5543set dummy $ac_prog; ac_word=$2
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
5546if ${ac_cv_prog_ac_ct_AR+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548else
5549 if test -n "$ac_ct_AR"; then
5550 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_ac_ct_AR="$ac_prog"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5562 fi
5563done
5564 done
5565IFS=$as_save_IFS
5566
5567fi
5568fi
5569ac_ct_AR=$ac_cv_prog_ac_ct_AR
5570if test -n "$ac_ct_AR"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5572$as_echo "$ac_ct_AR" >&6; }
5573else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5576fi
5577
5578
5579 test -n "$ac_ct_AR" && break
5580done
5581
5582 if test "x$ac_ct_AR" = x; then
5583 AR="false"
5584 else
5585 case $cross_compiling:$ac_tool_warned in
5586yes:)
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589ac_tool_warned=yes ;;
5590esac
5591 AR=$ac_ct_AR
5592 fi
5593fi
5594
5595: ${AR=ar}
5596: ${AR_FLAGS=cru}
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5609$as_echo_n "checking for archiver @FILE support... " >&6; }
5610if ${lt_cv_ar_at_file+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612else
5613 lt_cv_ar_at_file=no
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h. */
5616
5617int
5618main ()
5619{
5620
5621 ;
5622 return 0;
5623}
5624_ACEOF
5625if ac_fn_c_try_compile "$LINENO"; then :
5626 echo conftest.$ac_objext > conftest.lst
5627 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5629 (eval $lt_ar_try) 2>&5
5630 ac_status=$?
5631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5632 test $ac_status = 0; }
5633 if test "$ac_status" -eq 0; then
5634 # Ensure the archiver fails upon bogus file names.
5635 rm -f conftest.$ac_objext libconftest.a
5636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5637 (eval $lt_ar_try) 2>&5
5638 ac_status=$?
5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5640 test $ac_status = 0; }
5641 if test "$ac_status" -ne 0; then
5642 lt_cv_ar_at_file=@
5643 fi
5644 fi
5645 rm -f conftest.* libconftest.a
5646
5647fi
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5652$as_echo "$lt_cv_ar_at_file" >&6; }
5653
5654if test "x$lt_cv_ar_at_file" = xno; then
5655 archiver_list_spec=
5656else
5657 archiver_list_spec=$lt_cv_ar_at_file
5658fi
5659
5660
5661
5662
5663
5664
5665
5666if test -n "$ac_tool_prefix"; then
5667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5668set dummy ${ac_tool_prefix}strip; ac_word=$2
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670$as_echo_n "checking for $ac_word... " >&6; }
5671if ${ac_cv_prog_STRIP+:} false; then :
5672 $as_echo_n "(cached) " >&6
5673else
5674 if test -n "$STRIP"; then
5675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5676else
5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678for as_dir in $PATH
5679do
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5687 fi
5688done
5689 done
5690IFS=$as_save_IFS
5691
5692fi
5693fi
5694STRIP=$ac_cv_prog_STRIP
5695if test -n "$STRIP"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5697$as_echo "$STRIP" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700$as_echo "no" >&6; }
5701fi
5702
5703
5704fi
5705if test -z "$ac_cv_prog_STRIP"; then
5706 ac_ct_STRIP=$STRIP
5707 # Extract the first word of "strip", so it can be a program name with args.
5708set dummy strip; ac_word=$2
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710$as_echo_n "checking for $ac_word... " >&6; }
5711if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713else
5714 if test -n "$ac_ct_STRIP"; then
5715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5716else
5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718for as_dir in $PATH
5719do
5720 IFS=$as_save_IFS
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_ac_ct_STRIP="strip"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 break 2
5727 fi
5728done
5729 done
5730IFS=$as_save_IFS
5731
5732fi
5733fi
5734ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5735if test -n "$ac_ct_STRIP"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5737$as_echo "$ac_ct_STRIP" >&6; }
5738else
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }
5741fi
5742
5743 if test "x$ac_ct_STRIP" = x; then
5744 STRIP=":"
5745 else
5746 case $cross_compiling:$ac_tool_warned in
5747yes:)
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5750ac_tool_warned=yes ;;
5751esac
5752 STRIP=$ac_ct_STRIP
5753 fi
5754else
5755 STRIP="$ac_cv_prog_STRIP"
5756fi
5757
5758test -z "$STRIP" && STRIP=:
5759
5760
5761
5762
5763
5764
5765if test -n "$ac_tool_prefix"; then
5766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5767set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if ${ac_cv_prog_RANLIB+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772else
5773 if test -n "$RANLIB"; then
5774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779 IFS=$as_save_IFS
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785 break 2
5786 fi
5787done
5788 done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793RANLIB=$ac_cv_prog_RANLIB
5794if test -n "$RANLIB"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5796$as_echo "$RANLIB" >&6; }
5797else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802
5803fi
5804if test -z "$ac_cv_prog_RANLIB"; then
5805 ac_ct_RANLIB=$RANLIB
5806 # Extract the first word of "ranlib", so it can be a program name with args.
5807set dummy ranlib; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812else
5813 if test -n "$ac_ct_RANLIB"; then
5814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_prog_ac_ct_RANLIB="ranlib"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5826 fi
5827done
5828 done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5834if test -n "$ac_ct_RANLIB"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5836$as_echo "$ac_ct_RANLIB" >&6; }
5837else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842 if test "x$ac_ct_RANLIB" = x; then
5843 RANLIB=":"
5844 else
5845 case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849ac_tool_warned=yes ;;
5850esac
5851 RANLIB=$ac_ct_RANLIB
5852 fi
5853else
5854 RANLIB="$ac_cv_prog_RANLIB"
5855fi
5856
5857test -z "$RANLIB" && RANLIB=:
5858
5859
5860
5861
5862
5863
5864# Determine commands to create old-style static archives.
5865old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5866old_postinstall_cmds='chmod 644 $oldlib'
5867old_postuninstall_cmds=
5868
5869if test -n "$RANLIB"; then
5870 case $host_os in
5871 openbsd*)
5872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5873 ;;
5874 *)
5875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5876 ;;
5877 esac
5878 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5879fi
5880
5881case $host_os in
5882 darwin*)
5883 lock_old_archive_extraction=yes ;;
5884 *)
5885 lock_old_archive_extraction=no ;;
5886esac
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926# If no C compiler was specified, use CC.
5927LTCC=${LTCC-"$CC"}
5928
5929# If no C compiler flags were specified, use CFLAGS.
5930LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5931
5932# Allow CC to be a program name with arguments.
5933compiler=$CC
5934
5935
5936# Check for command to grab the raw symbol name followed by C symbol from nm.
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5938$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5939if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941else
5942
5943# These are sane defaults that work on at least a few old systems.
5944# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5945
5946# Character class describing NM global symbol codes.
5947symcode='[BCDEGRST]'
5948
5949# Regexp to match symbols that can be accessed directly from C.
5950sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5951
5952# Define system-specific variables.
5953case $host_os in
5954aix*)
5955 symcode='[BCDT]'
5956 ;;
5957cygwin* | mingw* | pw32* | cegcc*)
5958 symcode='[ABCDGISTW]'
5959 ;;
5960hpux*)
5961 if test "$host_cpu" = ia64; then
5962 symcode='[ABCDEGRST]'
5963 fi
5964 ;;
5965irix* | nonstopux*)
5966 symcode='[BCDEGRST]'
5967 ;;
5968osf*)
5969 symcode='[BCDEGQRST]'
5970 ;;
5971solaris*)
5972 symcode='[BDRT]'
5973 ;;
5974sco3.2v5*)
5975 symcode='[DT]'
5976 ;;
5977sysv4.2uw2*)
5978 symcode='[DT]'
5979 ;;
5980sysv5* | sco5v6* | unixware* | OpenUNIX*)
5981 symcode='[ABDT]'
5982 ;;
5983sysv4)
5984 symcode='[DFNSTU]'
5985 ;;
5986esac
5987
5988# If we're using GNU nm, then use its standard symbol codes.
5989case `$NM -V 2>&1` in
5990*GNU* | *'with BFD'*)
5991 symcode='[ABCDGIRSTW]' ;;
5992esac
5993
5994# Transform an extracted symbol line into a proper C declaration.
5995# Some systems (esp. on ia64) link data and code symbols differently,
5996# so use this general approach.
5997lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5998
5999# Transform an extracted symbol line into symbol name and symbol address
6000lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6001lt_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'"
6002
6003# Handle CRLF in mingw tool chain
6004opt_cr=
6005case $build_os in
6006mingw*)
6007 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6008 ;;
6009esac
6010
6011# Try without a prefix underscore, then with it.
6012for ac_symprfx in "" "_"; do
6013
6014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6015 symxfrm="\\1 $ac_symprfx\\2 \\2"
6016
6017 # Write the raw and C identifiers.
6018 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6019 # Fake it for dumpbin and say T for any non-static function
6020 # and D for any global variable.
6021 # Also find C++ and __fastcall symbols from MSVC++,
6022 # which start with @ or ?.
6023 lt_cv_sys_global_symbol_pipe="$AWK '"\
6024" {last_section=section; section=\$ 3};"\
6025" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6026" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6027" \$ 0!~/External *\|/{next};"\
6028" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6029" {if(hide[section]) next};"\
6030" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6031" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6032" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6033" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6034" ' prfx=^$ac_symprfx"
6035 else
6036 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6037 fi
6038 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6039
6040 # Check to see that the pipe works correctly.
6041 pipe_works=no
6042
6043 rm -f conftest*
6044 cat > conftest.$ac_ext <<_LT_EOF
6045#ifdef __cplusplus
6046extern "C" {
6047#endif
6048char nm_test_var;
6049void nm_test_func(void);
6050void nm_test_func(void){}
6051#ifdef __cplusplus
6052}
6053#endif
6054int main(){nm_test_var='a';nm_test_func();return(0);}
6055_LT_EOF
6056
6057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6058 (eval $ac_compile) 2>&5
6059 ac_status=$?
6060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6061 test $ac_status = 0; }; then
6062 # Now try to grab the symbols.
6063 nlist=conftest.nm
6064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6065 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6066 ac_status=$?
6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6068 test $ac_status = 0; } && test -s "$nlist"; then
6069 # Try sorting and uniquifying the output.
6070 if sort "$nlist" | uniq > "$nlist"T; then
6071 mv -f "$nlist"T "$nlist"
6072 else
6073 rm -f "$nlist"T
6074 fi
6075
6076 # Make sure that we snagged all the symbols we need.
6077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6079 cat <<_LT_EOF > conftest.$ac_ext
6080/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6081#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6082/* DATA imports from DLLs on WIN32 con't be const, because runtime
6083 relocations are performed -- see ld's documentation on pseudo-relocs. */
6084# define LT_DLSYM_CONST
6085#elif defined(__osf__)
6086/* This system does not cope well with relocations in const data. */
6087# define LT_DLSYM_CONST
6088#else
6089# define LT_DLSYM_CONST const
6090#endif
6091
6092#ifdef __cplusplus
6093extern "C" {
6094#endif
6095
6096_LT_EOF
6097 # Now generate the symbol file.
6098 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6099
6100 cat <<_LT_EOF >> conftest.$ac_ext
6101
6102/* The mapping between symbol names and symbols. */
6103LT_DLSYM_CONST struct {
6104 const char *name;
6105 void *address;
6106}
6107lt__PROGRAM__LTX_preloaded_symbols[] =
6108{
6109 { "@PROGRAM@", (void *) 0 },
6110_LT_EOF
6111 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6112 cat <<\_LT_EOF >> conftest.$ac_ext
6113 {0, (void *) 0}
6114};
6115
6116/* This works around a problem in FreeBSD linker */
6117#ifdef FREEBSD_WORKAROUND
6118static const void *lt_preloaded_setup() {
6119 return lt__PROGRAM__LTX_preloaded_symbols;
6120}
6121#endif
6122
6123#ifdef __cplusplus
6124}
6125#endif
6126_LT_EOF
6127 # Now try linking the two files.
6128 mv conftest.$ac_objext conftstm.$ac_objext
6129 lt_globsym_save_LIBS=$LIBS
6130 lt_globsym_save_CFLAGS=$CFLAGS
6131 LIBS="conftstm.$ac_objext"
6132 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6134 (eval $ac_link) 2>&5
6135 ac_status=$?
6136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6137 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6138 pipe_works=yes
6139 fi
6140 LIBS=$lt_globsym_save_LIBS
6141 CFLAGS=$lt_globsym_save_CFLAGS
6142 else
6143 echo "cannot find nm_test_func in $nlist" >&5
6144 fi
6145 else
6146 echo "cannot find nm_test_var in $nlist" >&5
6147 fi
6148 else
6149 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6150 fi
6151 else
6152 echo "$progname: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 fi
6155 rm -rf conftest* conftst*
6156
6157 # Do not use the global_symbol_pipe unless it works.
6158 if test "$pipe_works" = yes; then
6159 break
6160 else
6161 lt_cv_sys_global_symbol_pipe=
6162 fi
6163done
6164
6165fi
6166
6167if test -z "$lt_cv_sys_global_symbol_pipe"; then
6168 lt_cv_sys_global_symbol_to_cdecl=
6169fi
6170if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6172$as_echo "failed" >&6; }
6173else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6175$as_echo "ok" >&6; }
6176fi
6177
6178# Response file support.
6179if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6180 nm_file_list_spec='@'
6181elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6182 nm_file_list_spec='@'
6183fi
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6212$as_echo_n "checking for sysroot... " >&6; }
6213
6214# Check whether --with-sysroot was given.
6215if test "${with_sysroot+set}" = set; then :
6216 withval=$with_sysroot;
6217else
6218 with_sysroot=no
6219fi
6220
6221
6222lt_sysroot=
6223case ${with_sysroot} in #(
6224 yes)
6225 if test "$GCC" = yes; then
6226 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6227 fi
6228 ;; #(
6229 /*)
6230 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6231 ;; #(
6232 no|'')
6233 ;; #(
6234 *)
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6236$as_echo "${with_sysroot}" >&6; }
6237 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6238 ;;
6239esac
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6242$as_echo "${lt_sysroot:-no}" >&6; }
6243
6244
6245
6246
6247
6248# Check whether --enable-libtool-lock was given.
6249if test "${enable_libtool_lock+set}" = set; then :
6250 enableval=$enable_libtool_lock;
6251fi
6252
6253test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6254
6255# Some flags need to be propagated to the compiler or linker for good
6256# libtool support.
6257case $host in
6258ia64-*-hpux*)
6259 # Find out which ABI we are using.
6260 echo 'int i;' > conftest.$ac_ext
6261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6262 (eval $ac_compile) 2>&5
6263 ac_status=$?
6264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265 test $ac_status = 0; }; then
6266 case `/usr/bin/file conftest.$ac_objext` in
6267 *ELF-32*)
6268 HPUX_IA64_MODE="32"
6269 ;;
6270 *ELF-64*)
6271 HPUX_IA64_MODE="64"
6272 ;;
6273 esac
6274 fi
6275 rm -rf conftest*
6276 ;;
6277*-*-irix6*)
6278 # Find out which ABI we are using.
6279 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6281 (eval $ac_compile) 2>&5
6282 ac_status=$?
6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284 test $ac_status = 0; }; then
6285 if test "$lt_cv_prog_gnu_ld" = yes; then
6286 case `/usr/bin/file conftest.$ac_objext` in
6287 *32-bit*)
6288 LD="${LD-ld} -melf32bsmip"
6289 ;;
6290 *N32*)
6291 LD="${LD-ld} -melf32bmipn32"
6292 ;;
6293 *64-bit*)
6294 LD="${LD-ld} -melf64bmip"
6295 ;;
6296 esac
6297 else
6298 case `/usr/bin/file conftest.$ac_objext` in
6299 *32-bit*)
6300 LD="${LD-ld} -32"
6301 ;;
6302 *N32*)
6303 LD="${LD-ld} -n32"
6304 ;;
6305 *64-bit*)
6306 LD="${LD-ld} -64"
6307 ;;
6308 esac
6309 fi
6310 fi
6311 rm -rf conftest*
6312 ;;
6313
6314x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6315s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6316 # Find out which ABI we are using.
6317 echo 'int i;' > conftest.$ac_ext
6318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319 (eval $ac_compile) 2>&5
6320 ac_status=$?
6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }; then
6323 case `/usr/bin/file conftest.o` in
6324 *32-bit*)
6325 case $host in
6326 x86_64-*kfreebsd*-gnu)
6327 LD="${LD-ld} -m elf_i386_fbsd"
6328 ;;
6329 x86_64-*linux*)
6330 LD="${LD-ld} -m elf_i386"
6331 ;;
6332 ppc64-*linux*|powerpc64-*linux*)
6333 LD="${LD-ld} -m elf32ppclinux"
6334 ;;
6335 s390x-*linux*)
6336 LD="${LD-ld} -m elf_s390"
6337 ;;
6338 sparc64-*linux*)
6339 LD="${LD-ld} -m elf32_sparc"
6340 ;;
6341 esac
6342 ;;
6343 *64-bit*)
6344 case $host in
6345 x86_64-*kfreebsd*-gnu)
6346 LD="${LD-ld} -m elf_x86_64_fbsd"
6347 ;;
6348 x86_64-*linux*)
6349 LD="${LD-ld} -m elf_x86_64"
6350 ;;
6351 ppc*-*linux*|powerpc*-*linux*)
6352 LD="${LD-ld} -m elf64ppc"
6353 ;;
6354 s390*-*linux*|s390*-*tpf*)
6355 LD="${LD-ld} -m elf64_s390"
6356 ;;
6357 sparc*-*linux*)
6358 LD="${LD-ld} -m elf64_sparc"
6359 ;;
6360 esac
6361 ;;
6362 esac
6363 fi
6364 rm -rf conftest*
6365 ;;
6366
6367*-*-sco3.2v5*)
6368 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6369 SAVE_CFLAGS="$CFLAGS"
6370 CFLAGS="$CFLAGS -belf"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6372$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6373if ${lt_cv_cc_needs_belf+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375else
6376 ac_ext=c
6377ac_cpp='$CPP $CPPFLAGS'
6378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h. */
6384
6385int
6386main ()
6387{
6388
6389 ;
6390 return 0;
6391}
6392_ACEOF
6393if ac_fn_c_try_link "$LINENO"; then :
6394 lt_cv_cc_needs_belf=yes
6395else
6396 lt_cv_cc_needs_belf=no
6397fi
6398rm -f core conftest.err conftest.$ac_objext \
6399 conftest$ac_exeext conftest.$ac_ext
6400 ac_ext=c
6401ac_cpp='$CPP $CPPFLAGS'
6402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405
6406fi
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6408$as_echo "$lt_cv_cc_needs_belf" >&6; }
6409 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6411 CFLAGS="$SAVE_CFLAGS"
6412 fi
6413 ;;
6414*-*solaris*)
6415 # Find out which ABI we are using.
6416 echo 'int i;' > conftest.$ac_ext
6417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6418 (eval $ac_compile) 2>&5
6419 ac_status=$?
6420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421 test $ac_status = 0; }; then
6422 case `/usr/bin/file conftest.o` in
6423 *64-bit*)
6424 case $lt_cv_prog_gnu_ld in
6425 yes*)
6426 case $host in
6427 i?86-*-solaris*)
6428 LD="${LD-ld} -m elf_x86_64"
6429 ;;
6430 sparc*-*-solaris*)
6431 LD="${LD-ld} -m elf64_sparc"
6432 ;;
6433 esac
6434 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6435 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6436 LD="${LD-ld}_sol2"
6437 fi
6438 ;;
6439 *)
6440 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6441 LD="${LD-ld} -64"
6442 fi
6443 ;;
6444 esac
6445 ;;
6446 esac
6447 fi
6448 rm -rf conftest*
6449 ;;
6450esac
6451
6452need_locks="$enable_libtool_lock"
6453
6454if test -n "$ac_tool_prefix"; then
6455 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6456set dummy ${ac_tool_prefix}mt; ac_word=$2
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458$as_echo_n "checking for $ac_word... " >&6; }
6459if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461else
6462 if test -n "$MANIFEST_TOOL"; then
6463 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6464else
6465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466for as_dir in $PATH
6467do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476done
6477 done
6478IFS=$as_save_IFS
6479
6480fi
6481fi
6482MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6483if test -n "$MANIFEST_TOOL"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6485$as_echo "$MANIFEST_TOOL" >&6; }
6486else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488$as_echo "no" >&6; }
6489fi
6490
6491
6492fi
6493if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6494 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6495 # Extract the first word of "mt", so it can be a program name with args.
6496set dummy mt; ac_word=$2
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498$as_echo_n "checking for $ac_word... " >&6; }
6499if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501else
6502 if test -n "$ac_ct_MANIFEST_TOOL"; then
6503 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516done
6517 done
6518IFS=$as_save_IFS
6519
6520fi
6521fi
6522ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6523if test -n "$ac_ct_MANIFEST_TOOL"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6525$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6526else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528$as_echo "no" >&6; }
6529fi
6530
6531 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6532 MANIFEST_TOOL=":"
6533 else
6534 case $cross_compiling:$ac_tool_warned in
6535yes:)
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538ac_tool_warned=yes ;;
6539esac
6540 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6541 fi
6542else
6543 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6544fi
6545
6546test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6548$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6549if ${lt_cv_path_mainfest_tool+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551else
6552 lt_cv_path_mainfest_tool=no
6553 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6554 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6555 cat conftest.err >&5
6556 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6557 lt_cv_path_mainfest_tool=yes
6558 fi
6559 rm -f conftest*
6560fi
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6562$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6563if test "x$lt_cv_path_mainfest_tool" != xyes; then
6564 MANIFEST_TOOL=:
6565fi
6566
6567
6568
6569
6570
6571
6572 case $host_os in
6573 rhapsody* | darwin*)
6574 if test -n "$ac_tool_prefix"; then
6575 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6576set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578$as_echo_n "checking for $ac_word... " >&6; }
6579if ${ac_cv_prog_DSYMUTIL+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581else
6582 if test -n "$DSYMUTIL"; then
6583 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6595 fi
6596done
6597 done
6598IFS=$as_save_IFS
6599
6600fi
6601fi
6602DSYMUTIL=$ac_cv_prog_DSYMUTIL
6603if test -n "$DSYMUTIL"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6605$as_echo "$DSYMUTIL" >&6; }
6606else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; }
6609fi
6610
6611
6612fi
6613if test -z "$ac_cv_prog_DSYMUTIL"; then
6614 ac_ct_DSYMUTIL=$DSYMUTIL
6615 # Extract the first word of "dsymutil", so it can be a program name with args.
6616set dummy dsymutil; ac_word=$2
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618$as_echo_n "checking for $ac_word... " >&6; }
6619if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621else
6622 if test -n "$ac_ct_DSYMUTIL"; then
6623 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6624else
6625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626for as_dir in $PATH
6627do
6628 IFS=$as_save_IFS
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 break 2
6635 fi
6636done
6637 done
6638IFS=$as_save_IFS
6639
6640fi
6641fi
6642ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6643if test -n "$ac_ct_DSYMUTIL"; then
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6645$as_echo "$ac_ct_DSYMUTIL" >&6; }
6646else
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648$as_echo "no" >&6; }
6649fi
6650
6651 if test "x$ac_ct_DSYMUTIL" = x; then
6652 DSYMUTIL=":"
6653 else
6654 case $cross_compiling:$ac_tool_warned in
6655yes:)
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6658ac_tool_warned=yes ;;
6659esac
6660 DSYMUTIL=$ac_ct_DSYMUTIL
6661 fi
6662else
6663 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6664fi
6665
6666 if test -n "$ac_tool_prefix"; then
6667 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6668set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
6671if ${ac_cv_prog_NMEDIT+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673else
6674 if test -n "$NMEDIT"; then
6675 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689 done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694NMEDIT=$ac_cv_prog_NMEDIT
6695if test -n "$NMEDIT"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6697$as_echo "$NMEDIT" >&6; }
6698else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703
6704fi
6705if test -z "$ac_cv_prog_NMEDIT"; then
6706 ac_ct_NMEDIT=$NMEDIT
6707 # Extract the first word of "nmedit", so it can be a program name with args.
6708set dummy nmedit; ac_word=$2
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710$as_echo_n "checking for $ac_word... " >&6; }
6711if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6712 $as_echo_n "(cached) " >&6
6713else
6714 if test -n "$ac_ct_NMEDIT"; then
6715 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
6723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729 done
6730IFS=$as_save_IFS
6731
6732fi
6733fi
6734ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6735if test -n "$ac_ct_NMEDIT"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6737$as_echo "$ac_ct_NMEDIT" >&6; }
6738else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740$as_echo "no" >&6; }
6741fi
6742
6743 if test "x$ac_ct_NMEDIT" = x; then
6744 NMEDIT=":"
6745 else
6746 case $cross_compiling:$ac_tool_warned in
6747yes:)
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6750ac_tool_warned=yes ;;
6751esac
6752 NMEDIT=$ac_ct_NMEDIT
6753 fi
6754else
6755 NMEDIT="$ac_cv_prog_NMEDIT"
6756fi
6757
6758 if test -n "$ac_tool_prefix"; then
6759 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6760set dummy ${ac_tool_prefix}lipo; ac_word=$2
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762$as_echo_n "checking for $ac_word... " >&6; }
6763if ${ac_cv_prog_LIPO+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765else
6766 if test -n "$LIPO"; then
6767 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781 done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786LIPO=$ac_cv_prog_LIPO
6787if test -n "$LIPO"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6789$as_echo "$LIPO" >&6; }
6790else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792$as_echo "no" >&6; }
6793fi
6794
6795
6796fi
6797if test -z "$ac_cv_prog_LIPO"; then
6798 ac_ct_LIPO=$LIPO
6799 # Extract the first word of "lipo", so it can be a program name with args.
6800set dummy lipo; ac_word=$2
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802$as_echo_n "checking for $ac_word... " >&6; }
6803if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805else
6806 if test -n "$ac_ct_LIPO"; then
6807 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6808else
6809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810for as_dir in $PATH
6811do
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_ac_ct_LIPO="lipo"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6819 fi
6820done
6821 done
6822IFS=$as_save_IFS
6823
6824fi
6825fi
6826ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6827if test -n "$ac_ct_LIPO"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6829$as_echo "$ac_ct_LIPO" >&6; }
6830else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832$as_echo "no" >&6; }
6833fi
6834
6835 if test "x$ac_ct_LIPO" = x; then
6836 LIPO=":"
6837 else
6838 case $cross_compiling:$ac_tool_warned in
6839yes:)
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6842ac_tool_warned=yes ;;
6843esac
6844 LIPO=$ac_ct_LIPO
6845 fi
6846else
6847 LIPO="$ac_cv_prog_LIPO"
6848fi
6849
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6852set dummy ${ac_tool_prefix}otool; ac_word=$2
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854$as_echo_n "checking for $ac_word... " >&6; }
6855if ${ac_cv_prog_OTOOL+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857else
6858 if test -n "$OTOOL"; then
6859 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6860else
6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872done
6873 done
6874IFS=$as_save_IFS
6875
6876fi
6877fi
6878OTOOL=$ac_cv_prog_OTOOL
6879if test -n "$OTOOL"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6881$as_echo "$OTOOL" >&6; }
6882else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884$as_echo "no" >&6; }
6885fi
6886
6887
6888fi
6889if test -z "$ac_cv_prog_OTOOL"; then
6890 ac_ct_OTOOL=$OTOOL
6891 # Extract the first word of "otool", so it can be a program name with args.
6892set dummy otool; ac_word=$2
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894$as_echo_n "checking for $ac_word... " >&6; }
6895if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897else
6898 if test -n "$ac_ct_OTOOL"; then
6899 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_OTOOL="otool"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912done
6913 done
6914IFS=$as_save_IFS
6915
6916fi
6917fi
6918ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6919if test -n "$ac_ct_OTOOL"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6921$as_echo "$ac_ct_OTOOL" >&6; }
6922else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927 if test "x$ac_ct_OTOOL" = x; then
6928 OTOOL=":"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931yes:)
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934ac_tool_warned=yes ;;
6935esac
6936 OTOOL=$ac_ct_OTOOL
6937 fi
6938else
6939 OTOOL="$ac_cv_prog_OTOOL"
6940fi
6941
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6944set dummy ${ac_tool_prefix}otool64; ac_word=$2
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946$as_echo_n "checking for $ac_word... " >&6; }
6947if ${ac_cv_prog_OTOOL64+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949else
6950 if test -n "$OTOOL64"; then
6951 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6952else
6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964done
6965 done
6966IFS=$as_save_IFS
6967
6968fi
6969fi
6970OTOOL64=$ac_cv_prog_OTOOL64
6971if test -n "$OTOOL64"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6973$as_echo "$OTOOL64" >&6; }
6974else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976$as_echo "no" >&6; }
6977fi
6978
6979
6980fi
6981if test -z "$ac_cv_prog_OTOOL64"; then
6982 ac_ct_OTOOL64=$OTOOL64
6983 # Extract the first word of "otool64", so it can be a program name with args.
6984set dummy otool64; ac_word=$2
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986$as_echo_n "checking for $ac_word... " >&6; }
6987if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989else
6990 if test -n "$ac_ct_OTOOL64"; then
6991 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_ac_ct_OTOOL64="otool64"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004done
7005 done
7006IFS=$as_save_IFS
7007
7008fi
7009fi
7010ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7011if test -n "$ac_ct_OTOOL64"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7013$as_echo "$ac_ct_OTOOL64" >&6; }
7014else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016$as_echo "no" >&6; }
7017fi
7018
7019 if test "x$ac_ct_OTOOL64" = x; then
7020 OTOOL64=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023yes:)
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026ac_tool_warned=yes ;;
7027esac
7028 OTOOL64=$ac_ct_OTOOL64
7029 fi
7030else
7031 OTOOL64="$ac_cv_prog_OTOOL64"
7032fi
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7061$as_echo_n "checking for -single_module linker flag... " >&6; }
7062if ${lt_cv_apple_cc_single_mod+:} false; then :
7063 $as_echo_n "(cached) " >&6
7064else
7065 lt_cv_apple_cc_single_mod=no
7066 if test -z "${LT_MULTI_MODULE}"; then
7067 # By default we will add the -single_module flag. You can override
7068 # by either setting the environment variable LT_MULTI_MODULE
7069 # non-empty at configure time, or by adding -multi_module to the
7070 # link flags.
7071 rm -rf libconftest.dylib*
7072 echo "int foo(void){return 1;}" > conftest.c
7073 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7074-dynamiclib -Wl,-single_module conftest.c" >&5
7075 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7076 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7077 _lt_result=$?
7078 # If there is a non-empty error log, and "single_module"
7079 # appears in it, assume the flag caused a linker warning
7080 if test -s conftest.err && $GREP single_module conftest.err; then
7081 cat conftest.err >&5
7082 # Otherwise, if the output was created with a 0 exit code from
7083 # the compiler, it worked.
7084 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7085 lt_cv_apple_cc_single_mod=yes
7086 else
7087 cat conftest.err >&5
7088 fi
7089 rm -rf libconftest.dylib*
7090 rm -f conftest.*
7091 fi
7092fi
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7094$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7095
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7097$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7098if ${lt_cv_ld_exported_symbols_list+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100else
7101 lt_cv_ld_exported_symbols_list=no
7102 save_LDFLAGS=$LDFLAGS
7103 echo "_main" > conftest.sym
7104 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h. */
7107
7108int
7109main ()
7110{
7111
7112 ;
7113 return 0;
7114}
7115_ACEOF
7116if ac_fn_c_try_link "$LINENO"; then :
7117 lt_cv_ld_exported_symbols_list=yes
7118else
7119 lt_cv_ld_exported_symbols_list=no
7120fi
7121rm -f core conftest.err conftest.$ac_objext \
7122 conftest$ac_exeext conftest.$ac_ext
7123 LDFLAGS="$save_LDFLAGS"
7124
7125fi
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7127$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7128
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7130$as_echo_n "checking for -force_load linker flag... " >&6; }
7131if ${lt_cv_ld_force_load+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133else
7134 lt_cv_ld_force_load=no
7135 cat > conftest.c << _LT_EOF
7136int forced_loaded() { return 2;}
7137_LT_EOF
7138 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7139 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7140 echo "$AR cru libconftest.a conftest.o" >&5
7141 $AR cru libconftest.a conftest.o 2>&5
7142 echo "$RANLIB libconftest.a" >&5
7143 $RANLIB libconftest.a 2>&5
7144 cat > conftest.c << _LT_EOF
7145int main() { return 0;}
7146_LT_EOF
7147 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7148 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7149 _lt_result=$?
7150 if test -s conftest.err && $GREP force_load conftest.err; then
7151 cat conftest.err >&5
7152 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7153 lt_cv_ld_force_load=yes
7154 else
7155 cat conftest.err >&5
7156 fi
7157 rm -f conftest.err libconftest.a conftest conftest.c
7158 rm -rf conftest.dSYM
7159
7160fi
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7162$as_echo "$lt_cv_ld_force_load" >&6; }
7163 case $host_os in
7164 rhapsody* | darwin1.[012])
7165 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7166 darwin1.*)
7167 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7168 darwin*) # darwin 5.x on
7169 # if running on 10.5 or later, the deployment target defaults
7170 # to the OS version, if on x86, and 10.4, the deployment
7171 # target defaults to 10.4. Don't you love it?
7172 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7173 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7174 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7175 10.[012]*)
7176 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7177 10.*)
7178 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7179 esac
7180 ;;
7181 esac
7182 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7183 _lt_dar_single_mod='$single_module'
7184 fi
7185 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7186 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7187 else
7188 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7189 fi
7190 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7191 _lt_dsymutil='~$DSYMUTIL $lib || :'
7192 else
7193 _lt_dsymutil=
7194 fi
7195 ;;
7196 esac
7197
7198ac_ext=c
7199ac_cpp='$CPP $CPPFLAGS'
7200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7204$as_echo_n "checking how to run the C preprocessor... " >&6; }
7205# On Suns, sometimes $CPP names a directory.
7206if test -n "$CPP" && test -d "$CPP"; then
7207 CPP=
7208fi
7209if test -z "$CPP"; then
7210 if ${ac_cv_prog_CPP+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212else
7213 # Double quotes because CPP needs to be expanded
7214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7215 do
7216 ac_preproc_ok=false
7217for ac_c_preproc_warn_flag in '' yes
7218do
7219 # Use a header file that comes with gcc, so configuring glibc
7220 # with a fresh cross-compiler works.
7221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7222 # <limits.h> exists even on freestanding compilers.
7223 # On the NeXT, cc -E runs the code through the compiler's parser,
7224 # not just through cpp. "Syntax error" is here to catch this case.
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h. */
7227#ifdef __STDC__
7228# include <limits.h>
7229#else
7230# include <assert.h>
7231#endif
7232 Syntax error
7233_ACEOF
7234if ac_fn_c_try_cpp "$LINENO"; then :
7235
7236else
7237 # Broken: fails on valid input.
7238continue
7239fi
7240rm -f conftest.err conftest.i conftest.$ac_ext
7241
7242 # OK, works on sane cases. Now check whether nonexistent headers
7243 # can be detected and how.
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245/* end confdefs.h. */
7246#include <ac_nonexistent.h>
7247_ACEOF
7248if ac_fn_c_try_cpp "$LINENO"; then :
7249 # Broken: success on invalid input.
7250continue
7251else
7252 # Passes both tests.
7253ac_preproc_ok=:
7254break
7255fi
7256rm -f conftest.err conftest.i conftest.$ac_ext
7257
7258done
7259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7260rm -f conftest.i conftest.err conftest.$ac_ext
7261if $ac_preproc_ok; then :
7262 break
7263fi
7264
7265 done
7266 ac_cv_prog_CPP=$CPP
7267
7268fi
7269 CPP=$ac_cv_prog_CPP
7270else
7271 ac_cv_prog_CPP=$CPP
7272fi
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7274$as_echo "$CPP" >&6; }
7275ac_preproc_ok=false
7276for ac_c_preproc_warn_flag in '' yes
7277do
7278 # Use a header file that comes with gcc, so configuring glibc
7279 # with a fresh cross-compiler works.
7280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7281 # <limits.h> exists even on freestanding compilers.
7282 # On the NeXT, cc -E runs the code through the compiler's parser,
7283 # not just through cpp. "Syntax error" is here to catch this case.
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285/* end confdefs.h. */
7286#ifdef __STDC__
7287# include <limits.h>
7288#else
7289# include <assert.h>
7290#endif
7291 Syntax error
7292_ACEOF
7293if ac_fn_c_try_cpp "$LINENO"; then :
7294
7295else
7296 # Broken: fails on valid input.
7297continue
7298fi
7299rm -f conftest.err conftest.i conftest.$ac_ext
7300
7301 # OK, works on sane cases. Now check whether nonexistent headers
7302 # can be detected and how.
7303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304/* end confdefs.h. */
7305#include <ac_nonexistent.h>
7306_ACEOF
7307if ac_fn_c_try_cpp "$LINENO"; then :
7308 # Broken: success on invalid input.
7309continue
7310else
7311 # Passes both tests.
7312ac_preproc_ok=:
7313break
7314fi
7315rm -f conftest.err conftest.i conftest.$ac_ext
7316
7317done
7318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7319rm -f conftest.i conftest.err conftest.$ac_ext
7320if $ac_preproc_ok; then :
7321
7322else
7323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7325as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7326See \`config.log' for more details" "$LINENO" 5; }
7327fi
7328
7329ac_ext=c
7330ac_cpp='$CPP $CPPFLAGS'
7331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7333ac_compiler_gnu=$ac_cv_c_compiler_gnu
7334
7335
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7337$as_echo_n "checking for ANSI C header files... " >&6; }
7338if ${ac_cv_header_stdc+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h. */
7343#include <stdlib.h>
7344#include <stdarg.h>
7345#include <string.h>
7346#include <float.h>
7347
7348int
7349main ()
7350{
7351
7352 ;
7353 return 0;
7354}
7355_ACEOF
7356if ac_fn_c_try_compile "$LINENO"; then :
7357 ac_cv_header_stdc=yes
7358else
7359 ac_cv_header_stdc=no
7360fi
7361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362
7363if test $ac_cv_header_stdc = yes; then
7364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h. */
7367#include <string.h>
7368
7369_ACEOF
7370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7371 $EGREP "memchr" >/dev/null 2>&1; then :
7372
7373else
7374 ac_cv_header_stdc=no
7375fi
7376rm -f conftest*
7377
7378fi
7379
7380if test $ac_cv_header_stdc = yes; then
7381 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383/* end confdefs.h. */
7384#include <stdlib.h>
7385
7386_ACEOF
7387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388 $EGREP "free" >/dev/null 2>&1; then :
7389
7390else
7391 ac_cv_header_stdc=no
7392fi
7393rm -f conftest*
7394
7395fi
7396
7397if test $ac_cv_header_stdc = yes; then
7398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7399 if test "$cross_compiling" = yes; then :
7400 :
7401else
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h. */
7404#include <ctype.h>
7405#include <stdlib.h>
7406#if ((' ' & 0x0FF) == 0x020)
7407# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7408# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7409#else
7410# define ISLOWER(c) \
7411 (('a' <= (c) && (c) <= 'i') \
7412 || ('j' <= (c) && (c) <= 'r') \
7413 || ('s' <= (c) && (c) <= 'z'))
7414# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7415#endif
7416
7417#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7418int
7419main ()
7420{
7421 int i;
7422 for (i = 0; i < 256; i++)
7423 if (XOR (islower (i), ISLOWER (i))
7424 || toupper (i) != TOUPPER (i))
7425 return 2;
7426 return 0;
7427}
7428_ACEOF
7429if ac_fn_c_try_run "$LINENO"; then :
7430
7431else
7432 ac_cv_header_stdc=no
7433fi
7434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7435 conftest.$ac_objext conftest.beam conftest.$ac_ext
7436fi
7437
7438fi
7439fi
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7441$as_echo "$ac_cv_header_stdc" >&6; }
7442if test $ac_cv_header_stdc = yes; then
7443
7444$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7445
7446fi
7447
7448# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7449for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7450 inttypes.h stdint.h unistd.h
7451do :
7452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7453ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7454"
7455if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7456 cat >>confdefs.h <<_ACEOF
7457#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7458_ACEOF
7459
7460fi
7461
7462done
7463
7464
7465for ac_header in dlfcn.h
7466do :
7467 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7468"
7469if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7470 cat >>confdefs.h <<_ACEOF
7471#define HAVE_DLFCN_H 1
7472_ACEOF
7473
7474fi
7475
7476done
7477
7478
7479
7480
7481
7482# Set options
7483
7484
7485
7486 enable_dlopen=no
7487
7488
7489 enable_win32_dll=no
7490
7491
7492 # Check whether --enable-shared was given.
7493if test "${enable_shared+set}" = set; then :
7494 enableval=$enable_shared; p=${PACKAGE-default}
7495 case $enableval in
7496 yes) enable_shared=yes ;;
7497 no) enable_shared=no ;;
7498 *)
7499 enable_shared=no
7500 # Look at the argument we got. We use all the common list separators.
7501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7502 for pkg in $enableval; do
7503 IFS="$lt_save_ifs"
7504 if test "X$pkg" = "X$p"; then
7505 enable_shared=yes
7506 fi
7507 done
7508 IFS="$lt_save_ifs"
7509 ;;
7510 esac
7511else
7512 enable_shared=yes
7513fi
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523 # Check whether --enable-static was given.
7524if test "${enable_static+set}" = set; then :
7525 enableval=$enable_static; p=${PACKAGE-default}
7526 case $enableval in
7527 yes) enable_static=yes ;;
7528 no) enable_static=no ;;
7529 *)
7530 enable_static=no
7531 # Look at the argument we got. We use all the common list separators.
7532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7533 for pkg in $enableval; do
7534 IFS="$lt_save_ifs"
7535 if test "X$pkg" = "X$p"; then
7536 enable_static=yes
7537 fi
7538 done
7539 IFS="$lt_save_ifs"
7540 ;;
7541 esac
7542else
7543 enable_static=yes
7544fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555# Check whether --with-pic was given.
7556if test "${with_pic+set}" = set; then :
7557 withval=$with_pic; lt_p=${PACKAGE-default}
7558 case $withval in
7559 yes|no) pic_mode=$withval ;;
7560 *)
7561 pic_mode=default
7562 # Look at the argument we got. We use all the common list separators.
7563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7564 for lt_pkg in $withval; do
7565 IFS="$lt_save_ifs"
7566 if test "X$lt_pkg" = "X$lt_p"; then
7567 pic_mode=yes
7568 fi
7569 done
7570 IFS="$lt_save_ifs"
7571 ;;
7572 esac
7573else
7574 pic_mode=default
7575fi
7576
7577
7578test -z "$pic_mode" && pic_mode=default
7579
7580
7581
7582
7583
7584
7585
7586 # Check whether --enable-fast-install was given.
7587if test "${enable_fast_install+set}" = set; then :
7588 enableval=$enable_fast_install; p=${PACKAGE-default}
7589 case $enableval in
7590 yes) enable_fast_install=yes ;;
7591 no) enable_fast_install=no ;;
7592 *)
7593 enable_fast_install=no
7594 # Look at the argument we got. We use all the common list separators.
7595 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7596 for pkg in $enableval; do
7597 IFS="$lt_save_ifs"
7598 if test "X$pkg" = "X$p"; then
7599 enable_fast_install=yes
7600 fi
7601 done
7602 IFS="$lt_save_ifs"
7603 ;;
7604 esac
7605else
7606 enable_fast_install=yes
7607fi
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619# This can be used to rebuild libtool when needed
7620LIBTOOL_DEPS="$ltmain"
7621
7622# Always use our own libtool.
7623LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654test -z "$LN_S" && LN_S="ln -s"
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669if test -n "${ZSH_VERSION+set}" ; then
7670 setopt NO_GLOB_SUBST
7671fi
7672
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7674$as_echo_n "checking for objdir... " >&6; }
7675if ${lt_cv_objdir+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677else
7678 rm -f .libs 2>/dev/null
7679mkdir .libs 2>/dev/null
7680if test -d .libs; then
7681 lt_cv_objdir=.libs
7682else
7683 # MS-DOS does not allow filenames that begin with a dot.
7684 lt_cv_objdir=_libs
7685fi
7686rmdir .libs 2>/dev/null
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7689$as_echo "$lt_cv_objdir" >&6; }
7690objdir=$lt_cv_objdir
7691
7692
7693
7694
7695
7696cat >>confdefs.h <<_ACEOF
7697#define LT_OBJDIR "$lt_cv_objdir/"
7698_ACEOF
7699
7700
7701
7702
7703case $host_os in
7704aix3*)
7705 # AIX sometimes has problems with the GCC collect2 program. For some
7706 # reason, if we set the COLLECT_NAMES environment variable, the problems
7707 # vanish in a puff of smoke.
7708 if test "X${COLLECT_NAMES+set}" != Xset; then
7709 COLLECT_NAMES=
7710 export COLLECT_NAMES
7711 fi
7712 ;;
7713esac
7714
7715# Global variables:
7716ofile=libtool
7717can_build_shared=yes
7718
7719# All known linkers require a `.a' archive for static linking (except MSVC,
7720# which needs '.lib').
7721libext=a
7722
7723with_gnu_ld="$lt_cv_prog_gnu_ld"
7724
7725old_CC="$CC"
7726old_CFLAGS="$CFLAGS"
7727
7728# Set sane defaults for various variables
7729test -z "$CC" && CC=cc
7730test -z "$LTCC" && LTCC=$CC
7731test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7732test -z "$LD" && LD=ld
7733test -z "$ac_objext" && ac_objext=o
7734
7735for cc_temp in $compiler""; do
7736 case $cc_temp in
7737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7739 \-*) ;;
7740 *) break;;
7741 esac
7742done
7743cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7744
7745
7746# Only perform the check for file, if the check method requires it
7747test -z "$MAGIC_CMD" && MAGIC_CMD=file
7748case $deplibs_check_method in
7749file_magic*)
7750 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7752$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7753if ${lt_cv_path_MAGIC_CMD+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755else
7756 case $MAGIC_CMD in
7757[\\/*] | ?:[\\/]*)
7758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7759 ;;
7760*)
7761 lt_save_MAGIC_CMD="$MAGIC_CMD"
7762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7764 for ac_dir in $ac_dummy; do
7765 IFS="$lt_save_ifs"
7766 test -z "$ac_dir" && ac_dir=.
7767 if test -f $ac_dir/${ac_tool_prefix}file; then
7768 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7769 if test -n "$file_magic_test_file"; then
7770 case $deplibs_check_method in
7771 "file_magic "*)
7772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7775 $EGREP "$file_magic_regex" > /dev/null; then
7776 :
7777 else
7778 cat <<_LT_EOF 1>&2
7779
7780*** Warning: the command libtool uses to detect shared libraries,
7781*** $file_magic_cmd, produces output that libtool cannot recognize.
7782*** The result is that libtool may fail to recognize shared libraries
7783*** as such. This will affect the creation of libtool libraries that
7784*** depend on shared libraries, but programs linked with such libtool
7785*** libraries will work regardless of this problem. Nevertheless, you
7786*** may want to report the problem to your system manager and/or to
7787*** bug-libtool@gnu.org
7788
7789_LT_EOF
7790 fi ;;
7791 esac
7792 fi
7793 break
7794 fi
7795 done
7796 IFS="$lt_save_ifs"
7797 MAGIC_CMD="$lt_save_MAGIC_CMD"
7798 ;;
7799esac
7800fi
7801
7802MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7803if test -n "$MAGIC_CMD"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7805$as_echo "$MAGIC_CMD" >&6; }
7806else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808$as_echo "no" >&6; }
7809fi
7810
7811
7812
7813
7814
7815if test -z "$lt_cv_path_MAGIC_CMD"; then
7816 if test -n "$ac_tool_prefix"; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7818$as_echo_n "checking for file... " >&6; }
7819if ${lt_cv_path_MAGIC_CMD+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821else
7822 case $MAGIC_CMD in
7823[\\/*] | ?:[\\/]*)
7824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7825 ;;
7826*)
7827 lt_save_MAGIC_CMD="$MAGIC_CMD"
7828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7830 for ac_dir in $ac_dummy; do
7831 IFS="$lt_save_ifs"
7832 test -z "$ac_dir" && ac_dir=.
7833 if test -f $ac_dir/file; then
7834 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7835 if test -n "$file_magic_test_file"; then
7836 case $deplibs_check_method in
7837 "file_magic "*)
7838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7841 $EGREP "$file_magic_regex" > /dev/null; then
7842 :
7843 else
7844 cat <<_LT_EOF 1>&2
7845
7846*** Warning: the command libtool uses to detect shared libraries,
7847*** $file_magic_cmd, produces output that libtool cannot recognize.
7848*** The result is that libtool may fail to recognize shared libraries
7849*** as such. This will affect the creation of libtool libraries that
7850*** depend on shared libraries, but programs linked with such libtool
7851*** libraries will work regardless of this problem. Nevertheless, you
7852*** may want to report the problem to your system manager and/or to
7853*** bug-libtool@gnu.org
7854
7855_LT_EOF
7856 fi ;;
7857 esac
7858 fi
7859 break
7860 fi
7861 done
7862 IFS="$lt_save_ifs"
7863 MAGIC_CMD="$lt_save_MAGIC_CMD"
7864 ;;
7865esac
7866fi
7867
7868MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7869if test -n "$MAGIC_CMD"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7871$as_echo "$MAGIC_CMD" >&6; }
7872else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875fi
7876
7877
7878 else
7879 MAGIC_CMD=:
7880 fi
7881fi
7882
7883 fi
7884 ;;
7885esac
7886
7887# Use C for the default configuration in the libtool script
7888
7889lt_save_CC="$CC"
7890ac_ext=c
7891ac_cpp='$CPP $CPPFLAGS'
7892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895
7896
7897# Source file extension for C test sources.
7898ac_ext=c
7899
7900# Object file extension for compiled C test sources.
7901objext=o
7902objext=$objext
7903
7904# Code to be used in simple compile tests
7905lt_simple_compile_test_code="int some_variable = 0;"
7906
7907# Code to be used in simple link tests
7908lt_simple_link_test_code='int main(){return(0);}'
7909
7910
7911
7912
7913
7914
7915
7916# If no C compiler was specified, use CC.
7917LTCC=${LTCC-"$CC"}
7918
7919# If no C compiler flags were specified, use CFLAGS.
7920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7921
7922# Allow CC to be a program name with arguments.
7923compiler=$CC
7924
7925# Save the default compiler, since it gets overwritten when the other
7926# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7927compiler_DEFAULT=$CC
7928
7929# save warnings/boilerplate of simple test code
7930ac_outfile=conftest.$ac_objext
7931echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7932eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7933_lt_compiler_boilerplate=`cat conftest.err`
7934$RM conftest*
7935
7936ac_outfile=conftest.$ac_objext
7937echo "$lt_simple_link_test_code" >conftest.$ac_ext
7938eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7939_lt_linker_boilerplate=`cat conftest.err`
7940$RM -r conftest*
7941
7942
7943## CAVEAT EMPTOR:
7944## There is no encapsulation within the following macros, do not change
7945## the running order or otherwise move them around unless you know exactly
7946## what you are doing...
7947if test -n "$compiler"; then
7948
7949lt_prog_compiler_no_builtin_flag=
7950
7951if test "$GCC" = yes; then
7952 case $cc_basename in
7953 nvcc*)
7954 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7955 *)
7956 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7957 esac
7958
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7960$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7961if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963else
7964 lt_cv_prog_compiler_rtti_exceptions=no
7965 ac_outfile=conftest.$ac_objext
7966 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7967 lt_compiler_flag="-fno-rtti -fno-exceptions"
7968 # Insert the option either (1) after the last *FLAGS variable, or
7969 # (2) before a word containing "conftest.", or (3) at the end.
7970 # Note that $ac_compile itself does not contain backslashes and begins
7971 # with a dollar sign (not a hyphen), so the echo should work correctly.
7972 # The option is referenced via a variable to avoid confusing sed.
7973 lt_compile=`echo "$ac_compile" | $SED \
7974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7976 -e 's:$: $lt_compiler_flag:'`
7977 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7978 (eval "$lt_compile" 2>conftest.err)
7979 ac_status=$?
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 if (exit $ac_status) && test -s "$ac_outfile"; then
7983 # The compiler can only warn and ignore the option if not recognized
7984 # So say no if there are warnings other than the usual output.
7985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7988 lt_cv_prog_compiler_rtti_exceptions=yes
7989 fi
7990 fi
7991 $RM conftest*
7992
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7995$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7996
7997if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7998 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7999else
8000 :
8001fi
8002
8003fi
8004
8005
8006
8007
8008
8009
8010 lt_prog_compiler_wl=
8011lt_prog_compiler_pic=
8012lt_prog_compiler_static=
8013
8014
8015 if test "$GCC" = yes; then
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_static='-static'
8018
8019 case $host_os in
8020 aix*)
8021 # All AIX code is PIC.
8022 if test "$host_cpu" = ia64; then
8023 # AIX 5 now supports IA64 processor
8024 lt_prog_compiler_static='-Bstatic'
8025 fi
8026 ;;
8027
8028 amigaos*)
8029 case $host_cpu in
8030 powerpc)
8031 # see comment about AmigaOS4 .so support
8032 lt_prog_compiler_pic='-fPIC'
8033 ;;
8034 m68k)
8035 # FIXME: we need at least 68020 code to build shared libraries, but
8036 # adding the `-m68020' flag to GCC prevents building anything better,
8037 # like `-m68040'.
8038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8039 ;;
8040 esac
8041 ;;
8042
8043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8044 # PIC is the default for these OSes.
8045 ;;
8046
8047 mingw* | cygwin* | pw32* | os2* | cegcc*)
8048 # This hack is so that the source file can tell whether it is being
8049 # built for inclusion in a dll (and should export symbols for example).
8050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8051 # (--disable-auto-import) libraries
8052 lt_prog_compiler_pic='-DDLL_EXPORT'
8053 ;;
8054
8055 darwin* | rhapsody*)
8056 # PIC is the default on this platform
8057 # Common symbols not allowed in MH_DYLIB files
8058 lt_prog_compiler_pic='-fno-common'
8059 ;;
8060
8061 haiku*)
8062 # PIC is the default for Haiku.
8063 # The "-static" flag exists, but is broken.
8064 lt_prog_compiler_static=
8065 ;;
8066
8067 hpux*)
8068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8070 # sets the default TLS model and affects inlining.
8071 case $host_cpu in
8072 hppa*64*)
8073 # +Z the default
8074 ;;
8075 *)
8076 lt_prog_compiler_pic='-fPIC'
8077 ;;
8078 esac
8079 ;;
8080
8081 interix[3-9]*)
8082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8083 # Instead, we relocate shared libraries at runtime.
8084 ;;
8085
8086 msdosdjgpp*)
8087 # Just because we use GCC doesn't mean we suddenly get shared libraries
8088 # on systems that don't support them.
8089 lt_prog_compiler_can_build_shared=no
8090 enable_shared=no
8091 ;;
8092
8093 *nto* | *qnx*)
8094 # QNX uses GNU C++, but need to define -shared option too, otherwise
8095 # it will coredump.
8096 lt_prog_compiler_pic='-fPIC -shared'
8097 ;;
8098
8099 sysv4*MP*)
8100 if test -d /usr/nec; then
8101 lt_prog_compiler_pic=-Kconform_pic
8102 fi
8103 ;;
8104
8105 *)
8106 lt_prog_compiler_pic='-fPIC'
8107 ;;
8108 esac
8109
8110 case $cc_basename in
8111 nvcc*) # Cuda Compiler Driver 2.2
8112 lt_prog_compiler_wl='-Xlinker '
8113 if test -n "$lt_prog_compiler_pic"; then
8114 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8115 fi
8116 ;;
8117 esac
8118 else
8119 # PORTME Check for flag to pass linker flags through the system compiler.
8120 case $host_os in
8121 aix*)
8122 lt_prog_compiler_wl='-Wl,'
8123 if test "$host_cpu" = ia64; then
8124 # AIX 5 now supports IA64 processor
8125 lt_prog_compiler_static='-Bstatic'
8126 else
8127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8128 fi
8129 ;;
8130
8131 mingw* | cygwin* | pw32* | os2* | cegcc*)
8132 # This hack is so that the source file can tell whether it is being
8133 # built for inclusion in a dll (and should export symbols for example).
8134 lt_prog_compiler_pic='-DDLL_EXPORT'
8135 ;;
8136
8137 hpux9* | hpux10* | hpux11*)
8138 lt_prog_compiler_wl='-Wl,'
8139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8140 # not for PA HP-UX.
8141 case $host_cpu in
8142 hppa*64*|ia64*)
8143 # +Z the default
8144 ;;
8145 *)
8146 lt_prog_compiler_pic='+Z'
8147 ;;
8148 esac
8149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8150 lt_prog_compiler_static='${wl}-a ${wl}archive'
8151 ;;
8152
8153 irix5* | irix6* | nonstopux*)
8154 lt_prog_compiler_wl='-Wl,'
8155 # PIC (with -KPIC) is the default.
8156 lt_prog_compiler_static='-non_shared'
8157 ;;
8158
8159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8160 case $cc_basename in
8161 # old Intel for x86_64 which still supported -KPIC.
8162 ecc*)
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_pic='-KPIC'
8165 lt_prog_compiler_static='-static'
8166 ;;
8167 # icc used to be incompatible with GCC.
8168 # ICC 10 doesn't accept -KPIC any more.
8169 icc* | ifort*)
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-fPIC'
8172 lt_prog_compiler_static='-static'
8173 ;;
8174 # Lahey Fortran 8.1.
8175 lf95*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='--shared'
8178 lt_prog_compiler_static='--static'
8179 ;;
8180 nagfor*)
8181 # NAG Fortran compiler
8182 lt_prog_compiler_wl='-Wl,-Wl,,'
8183 lt_prog_compiler_pic='-PIC'
8184 lt_prog_compiler_static='-Bstatic'
8185 ;;
8186 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8187 # Portland Group compilers (*not* the Pentium gcc compiler,
8188 # which looks to be a dead project)
8189 lt_prog_compiler_wl='-Wl,'
8190 lt_prog_compiler_pic='-fpic'
8191 lt_prog_compiler_static='-Bstatic'
8192 ;;
8193 ccc*)
8194 lt_prog_compiler_wl='-Wl,'
8195 # All Alpha code is PIC.
8196 lt_prog_compiler_static='-non_shared'
8197 ;;
8198 xl* | bgxl* | bgf* | mpixl*)
8199 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8200 lt_prog_compiler_wl='-Wl,'
8201 lt_prog_compiler_pic='-qpic'
8202 lt_prog_compiler_static='-qstaticlink'
8203 ;;
8204 *)
8205 case `$CC -V 2>&1 | sed 5q` in
8206 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8207 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8208 lt_prog_compiler_pic='-KPIC'
8209 lt_prog_compiler_static='-Bstatic'
8210 lt_prog_compiler_wl=''
8211 ;;
8212 *Sun\ F* | *Sun*Fortran*)
8213 lt_prog_compiler_pic='-KPIC'
8214 lt_prog_compiler_static='-Bstatic'
8215 lt_prog_compiler_wl='-Qoption ld '
8216 ;;
8217 *Sun\ C*)
8218 # Sun C 5.9
8219 lt_prog_compiler_pic='-KPIC'
8220 lt_prog_compiler_static='-Bstatic'
8221 lt_prog_compiler_wl='-Wl,'
8222 ;;
8223 *Intel*\ [CF]*Compiler*)
8224 lt_prog_compiler_wl='-Wl,'
8225 lt_prog_compiler_pic='-fPIC'
8226 lt_prog_compiler_static='-static'
8227 ;;
8228 *Portland\ Group*)
8229 lt_prog_compiler_wl='-Wl,'
8230 lt_prog_compiler_pic='-fpic'
8231 lt_prog_compiler_static='-Bstatic'
8232 ;;
8233 esac
8234 ;;
8235 esac
8236 ;;
8237
8238 newsos6)
8239 lt_prog_compiler_pic='-KPIC'
8240 lt_prog_compiler_static='-Bstatic'
8241 ;;
8242
8243 *nto* | *qnx*)
8244 # QNX uses GNU C++, but need to define -shared option too, otherwise
8245 # it will coredump.
8246 lt_prog_compiler_pic='-fPIC -shared'
8247 ;;
8248
8249 osf3* | osf4* | osf5*)
8250 lt_prog_compiler_wl='-Wl,'
8251 # All OSF/1 code is PIC.
8252 lt_prog_compiler_static='-non_shared'
8253 ;;
8254
8255 rdos*)
8256 lt_prog_compiler_static='-non_shared'
8257 ;;
8258
8259 solaris*)
8260 lt_prog_compiler_pic='-KPIC'
8261 lt_prog_compiler_static='-Bstatic'
8262 case $cc_basename in
8263 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8264 lt_prog_compiler_wl='-Qoption ld ';;
8265 *)
8266 lt_prog_compiler_wl='-Wl,';;
8267 esac
8268 ;;
8269
8270 sunos4*)
8271 lt_prog_compiler_wl='-Qoption ld '
8272 lt_prog_compiler_pic='-PIC'
8273 lt_prog_compiler_static='-Bstatic'
8274 ;;
8275
8276 sysv4 | sysv4.2uw2* | sysv4.3*)
8277 lt_prog_compiler_wl='-Wl,'
8278 lt_prog_compiler_pic='-KPIC'
8279 lt_prog_compiler_static='-Bstatic'
8280 ;;
8281
8282 sysv4*MP*)
8283 if test -d /usr/nec ;then
8284 lt_prog_compiler_pic='-Kconform_pic'
8285 lt_prog_compiler_static='-Bstatic'
8286 fi
8287 ;;
8288
8289 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8290 lt_prog_compiler_wl='-Wl,'
8291 lt_prog_compiler_pic='-KPIC'
8292 lt_prog_compiler_static='-Bstatic'
8293 ;;
8294
8295 unicos*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_can_build_shared=no
8298 ;;
8299
8300 uts4*)
8301 lt_prog_compiler_pic='-pic'
8302 lt_prog_compiler_static='-Bstatic'
8303 ;;
8304
8305 *)
8306 lt_prog_compiler_can_build_shared=no
8307 ;;
8308 esac
8309 fi
8310
8311case $host_os in
8312 # For platforms which do not support PIC, -DPIC is meaningless:
8313 *djgpp*)
8314 lt_prog_compiler_pic=
8315 ;;
8316 *)
8317 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8318 ;;
8319esac
8320
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8322$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8323if ${lt_cv_prog_compiler_pic+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325else
8326 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8327fi
8328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8329$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8330lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8331
8332#
8333# Check to make sure the PIC flag actually works.
8334#
8335if test -n "$lt_prog_compiler_pic"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8337$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8338if ${lt_cv_prog_compiler_pic_works+:} false; then :
8339 $as_echo_n "(cached) " >&6
8340else
8341 lt_cv_prog_compiler_pic_works=no
8342 ac_outfile=conftest.$ac_objext
8343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8344 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8345 # Insert the option either (1) after the last *FLAGS variable, or
8346 # (2) before a word containing "conftest.", or (3) at the end.
8347 # Note that $ac_compile itself does not contain backslashes and begins
8348 # with a dollar sign (not a hyphen), so the echo should work correctly.
8349 # The option is referenced via a variable to avoid confusing sed.
8350 lt_compile=`echo "$ac_compile" | $SED \
8351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8353 -e 's:$: $lt_compiler_flag:'`
8354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8355 (eval "$lt_compile" 2>conftest.err)
8356 ac_status=$?
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 if (exit $ac_status) && test -s "$ac_outfile"; then
8360 # The compiler can only warn and ignore the option if not recognized
8361 # So say no if there are warnings other than the usual output.
8362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8365 lt_cv_prog_compiler_pic_works=yes
8366 fi
8367 fi
8368 $RM conftest*
8369
8370fi
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8372$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8373
8374if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8375 case $lt_prog_compiler_pic in
8376 "" | " "*) ;;
8377 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8378 esac
8379else
8380 lt_prog_compiler_pic=
8381 lt_prog_compiler_can_build_shared=no
8382fi
8383
8384fi
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396#
8397# Check to make sure the static flag actually works.
8398#
8399wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8401$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8402if ${lt_cv_prog_compiler_static_works+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404else
8405 lt_cv_prog_compiler_static_works=no
8406 save_LDFLAGS="$LDFLAGS"
8407 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8408 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8410 # The linker can only warn and ignore the option if not recognized
8411 # So say no if there are warnings
8412 if test -s conftest.err; then
8413 # Append any errors to the config.log.
8414 cat conftest.err 1>&5
8415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8417 if diff conftest.exp conftest.er2 >/dev/null; then
8418 lt_cv_prog_compiler_static_works=yes
8419 fi
8420 else
8421 lt_cv_prog_compiler_static_works=yes
8422 fi
8423 fi
8424 $RM -r conftest*
8425 LDFLAGS="$save_LDFLAGS"
8426
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8429$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8430
8431if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8432 :
8433else
8434 lt_prog_compiler_static=
8435fi
8436
8437
8438
8439
8440
8441
8442
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8444$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8445if ${lt_cv_prog_compiler_c_o+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447else
8448 lt_cv_prog_compiler_c_o=no
8449 $RM -r conftest 2>/dev/null
8450 mkdir conftest
8451 cd conftest
8452 mkdir out
8453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8454
8455 lt_compiler_flag="-o out/conftest2.$ac_objext"
8456 # Insert the option either (1) after the last *FLAGS variable, or
8457 # (2) before a word containing "conftest.", or (3) at the end.
8458 # Note that $ac_compile itself does not contain backslashes and begins
8459 # with a dollar sign (not a hyphen), so the echo should work correctly.
8460 lt_compile=`echo "$ac_compile" | $SED \
8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8463 -e 's:$: $lt_compiler_flag:'`
8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8465 (eval "$lt_compile" 2>out/conftest.err)
8466 ac_status=$?
8467 cat out/conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8470 then
8471 # The compiler can only warn and ignore the option if not recognized
8472 # So say no if there are warnings
8473 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8474 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8475 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8476 lt_cv_prog_compiler_c_o=yes
8477 fi
8478 fi
8479 chmod u+w . 2>&5
8480 $RM conftest*
8481 # SGI C++ compiler will create directory out/ii_files/ for
8482 # template instantiation
8483 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8484 $RM out/* && rmdir out
8485 cd ..
8486 $RM -r conftest
8487 $RM conftest*
8488
8489fi
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8491$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8492
8493
8494
8495
8496
8497
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8499$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8500if ${lt_cv_prog_compiler_c_o+:} false; then :
8501 $as_echo_n "(cached) " >&6
8502else
8503 lt_cv_prog_compiler_c_o=no
8504 $RM -r conftest 2>/dev/null
8505 mkdir conftest
8506 cd conftest
8507 mkdir out
8508 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8509
8510 lt_compiler_flag="-o out/conftest2.$ac_objext"
8511 # Insert the option either (1) after the last *FLAGS variable, or
8512 # (2) before a word containing "conftest.", or (3) at the end.
8513 # Note that $ac_compile itself does not contain backslashes and begins
8514 # with a dollar sign (not a hyphen), so the echo should work correctly.
8515 lt_compile=`echo "$ac_compile" | $SED \
8516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8518 -e 's:$: $lt_compiler_flag:'`
8519 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8520 (eval "$lt_compile" 2>out/conftest.err)
8521 ac_status=$?
8522 cat out/conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8525 then
8526 # The compiler can only warn and ignore the option if not recognized
8527 # So say no if there are warnings
8528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8531 lt_cv_prog_compiler_c_o=yes
8532 fi
8533 fi
8534 chmod u+w . 2>&5
8535 $RM conftest*
8536 # SGI C++ compiler will create directory out/ii_files/ for
8537 # template instantiation
8538 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8539 $RM out/* && rmdir out
8540 cd ..
8541 $RM -r conftest
8542 $RM conftest*
8543
8544fi
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8546$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8547
8548
8549
8550
8551hard_links="nottested"
8552if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8553 # do not overwrite the value of need_locks provided by the user
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8555$as_echo_n "checking if we can lock with hard links... " >&6; }
8556 hard_links=yes
8557 $RM conftest*
8558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8559 touch conftest.a
8560 ln conftest.a conftest.b 2>&5 || hard_links=no
8561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8563$as_echo "$hard_links" >&6; }
8564 if test "$hard_links" = no; then
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8566$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8567 need_locks=warn
8568 fi
8569else
8570 need_locks=no
8571fi
8572
8573
8574
8575
8576
8577
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8579$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8580
8581 runpath_var=
8582 allow_undefined_flag=
8583 always_export_symbols=no
8584 archive_cmds=
8585 archive_expsym_cmds=
8586 compiler_needs_object=no
8587 enable_shared_with_static_runtimes=no
8588 export_dynamic_flag_spec=
8589 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8590 hardcode_automatic=no
8591 hardcode_direct=no
8592 hardcode_direct_absolute=no
8593 hardcode_libdir_flag_spec=
8594 hardcode_libdir_separator=
8595 hardcode_minus_L=no
8596 hardcode_shlibpath_var=unsupported
8597 inherit_rpath=no
8598 link_all_deplibs=unknown
8599 module_cmds=
8600 module_expsym_cmds=
8601 old_archive_from_new_cmds=
8602 old_archive_from_expsyms_cmds=
8603 thread_safe_flag_spec=
8604 whole_archive_flag_spec=
8605 # include_expsyms should be a list of space-separated symbols to be *always*
8606 # included in the symbol list
8607 include_expsyms=
8608 # exclude_expsyms can be an extended regexp of symbols to exclude
8609 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8610 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8611 # as well as any symbol that contains `d'.
8612 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8613 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8614 # platforms (ab)use it in PIC code, but their linkers get confused if
8615 # the symbol is explicitly referenced. Since portable code cannot
8616 # rely on this symbol name, it's probably fine to never include it in
8617 # preloaded symbol tables.
8618 # Exclude shared library initialization/finalization symbols.
8619 extract_expsyms_cmds=
8620
8621 case $host_os in
8622 cygwin* | mingw* | pw32* | cegcc*)
8623 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8624 # When not using gcc, we currently assume that we are using
8625 # Microsoft Visual C++.
8626 if test "$GCC" != yes; then
8627 with_gnu_ld=no
8628 fi
8629 ;;
8630 interix*)
8631 # we just hope/assume this is gcc and not c89 (= MSVC++)
8632 with_gnu_ld=yes
8633 ;;
8634 openbsd*)
8635 with_gnu_ld=no
8636 ;;
8637 linux* | k*bsd*-gnu | gnu*)
8638 link_all_deplibs=no
8639 ;;
8640 esac
8641
8642 ld_shlibs=yes
8643
8644 # On some targets, GNU ld is compatible enough with the native linker
8645 # that we're better off using the native interface for both.
8646 lt_use_gnu_ld_interface=no
8647 if test "$with_gnu_ld" = yes; then
8648 case $host_os in
8649 aix*)
8650 # The AIX port of GNU ld has always aspired to compatibility
8651 # with the native linker. However, as the warning in the GNU ld
8652 # block says, versions before 2.19.5* couldn't really create working
8653 # shared libraries, regardless of the interface used.
8654 case `$LD -v 2>&1` in
8655 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8656 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8657 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8658 *)
8659 lt_use_gnu_ld_interface=yes
8660 ;;
8661 esac
8662 ;;
8663 *)
8664 lt_use_gnu_ld_interface=yes
8665 ;;
8666 esac
8667 fi
8668
8669 if test "$lt_use_gnu_ld_interface" = yes; then
8670 # If archive_cmds runs LD, not CC, wlarc should be empty
8671 wlarc='${wl}'
8672
8673 # Set some defaults for GNU ld with shared library support. These
8674 # are reset later if shared libraries are not supported. Putting them
8675 # here allows them to be overridden if necessary.
8676 runpath_var=LD_RUN_PATH
8677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8678 export_dynamic_flag_spec='${wl}--export-dynamic'
8679 # ancient GNU ld didn't support --whole-archive et. al.
8680 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8681 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8682 else
8683 whole_archive_flag_spec=
8684 fi
8685 supports_anon_versioning=no
8686 case `$LD -v 2>&1` in
8687 *GNU\ gold*) supports_anon_versioning=yes ;;
8688 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8691 *\ 2.11.*) ;; # other 2.11 versions
8692 *) supports_anon_versioning=yes ;;
8693 esac
8694
8695 # See if GNU ld supports shared libraries.
8696 case $host_os in
8697 aix[3-9]*)
8698 # On AIX/PPC, the GNU linker is very broken
8699 if test "$host_cpu" != ia64; then
8700 ld_shlibs=no
8701 cat <<_LT_EOF 1>&2
8702
8703*** Warning: the GNU linker, at least up to release 2.19, is reported
8704*** to be unable to reliably create shared libraries on AIX.
8705*** Therefore, libtool is disabling shared libraries support. If you
8706*** really care for shared libraries, you may want to install binutils
8707*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8708*** You will then need to restart the configuration process.
8709
8710_LT_EOF
8711 fi
8712 ;;
8713
8714 amigaos*)
8715 case $host_cpu in
8716 powerpc)
8717 # see comment about AmigaOS4 .so support
8718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719 archive_expsym_cmds=''
8720 ;;
8721 m68k)
8722 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)'
8723 hardcode_libdir_flag_spec='-L$libdir'
8724 hardcode_minus_L=yes
8725 ;;
8726 esac
8727 ;;
8728
8729 beos*)
8730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8731 allow_undefined_flag=unsupported
8732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8733 # support --undefined. This deserves some investigation. FIXME
8734 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8735 else
8736 ld_shlibs=no
8737 fi
8738 ;;
8739
8740 cygwin* | mingw* | pw32* | cegcc*)
8741 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8742 # as there is no search path for DLLs.
8743 hardcode_libdir_flag_spec='-L$libdir'
8744 export_dynamic_flag_spec='${wl}--export-all-symbols'
8745 allow_undefined_flag=unsupported
8746 always_export_symbols=no
8747 enable_shared_with_static_runtimes=yes
8748 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8749 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8750
8751 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8753 # If the export-symbols file already is a .def file (1st line
8754 # is EXPORTS), use it as is; otherwise, prepend...
8755 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8756 cp $export_symbols $output_objdir/$soname.def;
8757 else
8758 echo EXPORTS > $output_objdir/$soname.def;
8759 cat $export_symbols >> $output_objdir/$soname.def;
8760 fi~
8761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8762 else
8763 ld_shlibs=no
8764 fi
8765 ;;
8766
8767 haiku*)
8768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769 link_all_deplibs=yes
8770 ;;
8771
8772 interix[3-9]*)
8773 hardcode_direct=no
8774 hardcode_shlibpath_var=no
8775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8776 export_dynamic_flag_spec='${wl}-E'
8777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8778 # Instead, shared libraries are loaded at an image base (0x10000000 by
8779 # default) and relocated if they conflict, which is a slow very memory
8780 # consuming and fragmenting process. To avoid this, we pick a random,
8781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8782 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8783 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8784 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'
8785 ;;
8786
8787 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8788 tmp_diet=no
8789 if test "$host_os" = linux-dietlibc; then
8790 case $cc_basename in
8791 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8792 esac
8793 fi
8794 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8795 && test "$tmp_diet" = no
8796 then
8797 tmp_addflag=' $pic_flag'
8798 tmp_sharedflag='-shared'
8799 case $cc_basename,$host_cpu in
8800 pgcc*) # Portland Group C compiler
8801 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8802 tmp_addflag=' $pic_flag'
8803 ;;
8804 pgf77* | pgf90* | pgf95* | pgfortran*)
8805 # Portland Group f77 and f90 compilers
8806 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8807 tmp_addflag=' $pic_flag -Mnomain' ;;
8808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8809 tmp_addflag=' -i_dynamic' ;;
8810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8811 tmp_addflag=' -i_dynamic -nofor_main' ;;
8812 ifc* | ifort*) # Intel Fortran compiler
8813 tmp_addflag=' -nofor_main' ;;
8814 lf95*) # Lahey Fortran 8.1
8815 whole_archive_flag_spec=
8816 tmp_sharedflag='--shared' ;;
8817 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8818 tmp_sharedflag='-qmkshrobj'
8819 tmp_addflag= ;;
8820 nvcc*) # Cuda Compiler Driver 2.2
8821 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8822 compiler_needs_object=yes
8823 ;;
8824 esac
8825 case `$CC -V 2>&1 | sed 5q` in
8826 *Sun\ C*) # Sun C 5.9
8827 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8828 compiler_needs_object=yes
8829 tmp_sharedflag='-G' ;;
8830 *Sun\ F*) # Sun Fortran 8.3
8831 tmp_sharedflag='-G' ;;
8832 esac
8833 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834
8835 if test "x$supports_anon_versioning" = xyes; then
8836 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8838 echo "local: *; };" >> $output_objdir/$libname.ver~
8839 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8840 fi
8841
8842 case $cc_basename in
8843 xlf* | bgf* | bgxlf* | mpixlf*)
8844 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8845 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8847 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8848 if test "x$supports_anon_versioning" = xyes; then
8849 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8851 echo "local: *; };" >> $output_objdir/$libname.ver~
8852 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8853 fi
8854 ;;
8855 esac
8856 else
8857 ld_shlibs=no
8858 fi
8859 ;;
8860
8861 netbsd* | netbsdelf*-gnu)
8862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8863 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8864 wlarc=
8865 else
8866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8868 fi
8869 ;;
8870
8871 solaris*)
8872 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8873 ld_shlibs=no
8874 cat <<_LT_EOF 1>&2
8875
8876*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8877*** create shared libraries on Solaris systems. Therefore, libtool
8878*** is disabling shared libraries support. We urge you to upgrade GNU
8879*** binutils to release 2.9.1 or newer. Another option is to modify
8880*** your PATH or compiler configuration so that the native linker is
8881*** used, and then restart.
8882
8883_LT_EOF
8884 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8887 else
8888 ld_shlibs=no
8889 fi
8890 ;;
8891
8892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8893 case `$LD -v 2>&1` in
8894 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8895 ld_shlibs=no
8896 cat <<_LT_EOF 1>&2
8897
8898*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8899*** reliably create shared libraries on SCO systems. Therefore, libtool
8900*** is disabling shared libraries support. We urge you to upgrade GNU
8901*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8902*** your PATH or compiler configuration so that the native linker is
8903*** used, and then restart.
8904
8905_LT_EOF
8906 ;;
8907 *)
8908 # For security reasons, it is highly recommended that you always
8909 # use absolute paths for naming shared libraries, and exclude the
8910 # DT_RUNPATH tag from executables and libraries. But doing so
8911 # requires that you compile everything twice, which is a pain.
8912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8916 else
8917 ld_shlibs=no
8918 fi
8919 ;;
8920 esac
8921 ;;
8922
8923 sunos4*)
8924 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8925 wlarc=
8926 hardcode_direct=yes
8927 hardcode_shlibpath_var=no
8928 ;;
8929
8930 *)
8931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8932 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8934 else
8935 ld_shlibs=no
8936 fi
8937 ;;
8938 esac
8939
8940 if test "$ld_shlibs" = no; then
8941 runpath_var=
8942 hardcode_libdir_flag_spec=
8943 export_dynamic_flag_spec=
8944 whole_archive_flag_spec=
8945 fi
8946 else
8947 # PORTME fill in a description of your system's linker (not GNU ld)
8948 case $host_os in
8949 aix3*)
8950 allow_undefined_flag=unsupported
8951 always_export_symbols=yes
8952 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'
8953 # Note: this linker hardcodes the directories in LIBPATH if there
8954 # are no directories specified by -L.
8955 hardcode_minus_L=yes
8956 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8957 # Neither direct hardcoding nor static linking is supported with a
8958 # broken collect2.
8959 hardcode_direct=unsupported
8960 fi
8961 ;;
8962
8963 aix[4-9]*)
8964 if test "$host_cpu" = ia64; then
8965 # On IA64, the linker does run time linking by default, so we don't
8966 # have to do anything special.
8967 aix_use_runtimelinking=no
8968 exp_sym_flag='-Bexport'
8969 no_entry_flag=""
8970 else
8971 # If we're using GNU nm, then we don't want the "-C" option.
8972 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8973 # Also, AIX nm treats weak defined symbols like other global
8974 # defined symbols, whereas GNU nm marks them as "W".
8975 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8976 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8977 else
8978 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'
8979 fi
8980 aix_use_runtimelinking=no
8981
8982 # Test if we are trying to use run time linking or normal
8983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8984 # need to do runtime linking.
8985 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8986 for ld_flag in $LDFLAGS; do
8987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8988 aix_use_runtimelinking=yes
8989 break
8990 fi
8991 done
8992 ;;
8993 esac
8994
8995 exp_sym_flag='-bexport'
8996 no_entry_flag='-bnoentry'
8997 fi
8998
8999 # When large executables or shared objects are built, AIX ld can
9000 # have problems creating the table of contents. If linking a library
9001 # or program results in "error TOC overflow" add -mminimal-toc to
9002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9004
9005 archive_cmds=''
9006 hardcode_direct=yes
9007 hardcode_direct_absolute=yes
9008 hardcode_libdir_separator=':'
9009 link_all_deplibs=yes
9010 file_list_spec='${wl}-f,'
9011
9012 if test "$GCC" = yes; then
9013 case $host_os in aix4.[012]|aix4.[012].*)
9014 # We only want to do this on AIX 4.2 and lower, the check
9015 # below for broken collect2 doesn't work under 4.3+
9016 collect2name=`${CC} -print-prog-name=collect2`
9017 if test -f "$collect2name" &&
9018 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9019 then
9020 # We have reworked collect2
9021 :
9022 else
9023 # We have old collect2
9024 hardcode_direct=unsupported
9025 # It fails to find uninstalled libraries when the uninstalled
9026 # path is not listed in the libpath. Setting hardcode_minus_L
9027 # to unsupported forces relinking
9028 hardcode_minus_L=yes
9029 hardcode_libdir_flag_spec='-L$libdir'
9030 hardcode_libdir_separator=
9031 fi
9032 ;;
9033 esac
9034 shared_flag='-shared'
9035 if test "$aix_use_runtimelinking" = yes; then
9036 shared_flag="$shared_flag "'${wl}-G'
9037 fi
9038 link_all_deplibs=no
9039 else
9040 # not using gcc
9041 if test "$host_cpu" = ia64; then
9042 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9043 # chokes on -Wl,-G. The following line is correct:
9044 shared_flag='-G'
9045 else
9046 if test "$aix_use_runtimelinking" = yes; then
9047 shared_flag='${wl}-G'
9048 else
9049 shared_flag='${wl}-bM:SRE'
9050 fi
9051 fi
9052 fi
9053
9054 export_dynamic_flag_spec='${wl}-bexpall'
9055 # It seems that -bexpall does not export symbols beginning with
9056 # underscore (_), so it is better to generate a list of symbols to export.
9057 always_export_symbols=yes
9058 if test "$aix_use_runtimelinking" = yes; then
9059 # Warning - without using the other runtime loading flags (-brtl),
9060 # -berok will link without error, but may produce a broken library.
9061 allow_undefined_flag='-berok'
9062 # Determine the default libpath from the value encoded in an
9063 # empty executable.
9064 if test "${lt_cv_aix_libpath+set}" = set; then
9065 aix_libpath=$lt_cv_aix_libpath
9066else
9067 if ${lt_cv_aix_libpath_+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069else
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071/* end confdefs.h. */
9072
9073int
9074main ()
9075{
9076
9077 ;
9078 return 0;
9079}
9080_ACEOF
9081if ac_fn_c_try_link "$LINENO"; then :
9082
9083 lt_aix_libpath_sed='
9084 /Import File Strings/,/^$/ {
9085 /^0/ {
9086 s/^0 *\([^ ]*\) *$/\1/
9087 p
9088 }
9089 }'
9090 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9091 # Check for a 64-bit object if we didn't find anything.
9092 if test -z "$lt_cv_aix_libpath_"; then
9093 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094 fi
9095fi
9096rm -f core conftest.err conftest.$ac_objext \
9097 conftest$ac_exeext conftest.$ac_ext
9098 if test -z "$lt_cv_aix_libpath_"; then
9099 lt_cv_aix_libpath_="/usr/lib:/lib"
9100 fi
9101
9102fi
9103
9104 aix_libpath=$lt_cv_aix_libpath_
9105fi
9106
9107 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9108 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9109 else
9110 if test "$host_cpu" = ia64; then
9111 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9112 allow_undefined_flag="-z nodefs"
9113 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"
9114 else
9115 # Determine the default libpath from the value encoded in an
9116 # empty executable.
9117 if test "${lt_cv_aix_libpath+set}" = set; then
9118 aix_libpath=$lt_cv_aix_libpath
9119else
9120 if ${lt_cv_aix_libpath_+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122else
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h. */
9125
9126int
9127main ()
9128{
9129
9130 ;
9131 return 0;
9132}
9133_ACEOF
9134if ac_fn_c_try_link "$LINENO"; then :
9135
9136 lt_aix_libpath_sed='
9137 /Import File Strings/,/^$/ {
9138 /^0/ {
9139 s/^0 *\([^ ]*\) *$/\1/
9140 p
9141 }
9142 }'
9143 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9144 # Check for a 64-bit object if we didn't find anything.
9145 if test -z "$lt_cv_aix_libpath_"; then
9146 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9147 fi
9148fi
9149rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 if test -z "$lt_cv_aix_libpath_"; then
9152 lt_cv_aix_libpath_="/usr/lib:/lib"
9153 fi
9154
9155fi
9156
9157 aix_libpath=$lt_cv_aix_libpath_
9158fi
9159
9160 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9161 # Warning - without using the other run time loading flags,
9162 # -berok will link without error, but may produce a broken library.
9163 no_undefined_flag=' ${wl}-bernotok'
9164 allow_undefined_flag=' ${wl}-berok'
9165 if test "$with_gnu_ld" = yes; then
9166 # We only use this code for GNU lds that support --whole-archive.
9167 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9168 else
9169 # Exported symbols can be pulled into shared objects from archives
9170 whole_archive_flag_spec='$convenience'
9171 fi
9172 archive_cmds_need_lc=yes
9173 # This is similar to how AIX traditionally builds its shared libraries.
9174 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'
9175 fi
9176 fi
9177 ;;
9178
9179 amigaos*)
9180 case $host_cpu in
9181 powerpc)
9182 # see comment about AmigaOS4 .so support
9183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184 archive_expsym_cmds=''
9185 ;;
9186 m68k)
9187 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)'
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_minus_L=yes
9190 ;;
9191 esac
9192 ;;
9193
9194 bsdi[45]*)
9195 export_dynamic_flag_spec=-rdynamic
9196 ;;
9197
9198 cygwin* | mingw* | pw32* | cegcc*)
9199 # When not using gcc, we currently assume that we are using
9200 # Microsoft Visual C++.
9201 # hardcode_libdir_flag_spec is actually meaningless, as there is
9202 # no search path for DLLs.
9203 case $cc_basename in
9204 cl*)
9205 # Native MSVC
9206 hardcode_libdir_flag_spec=' '
9207 allow_undefined_flag=unsupported
9208 always_export_symbols=yes
9209 file_list_spec='@'
9210 # Tell ltmain to make .lib files, not .a files.
9211 libext=lib
9212 # Tell ltmain to make .dll files, not .so files.
9213 shrext_cmds=".dll"
9214 # FIXME: Setting linknames here is a bad hack.
9215 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9216 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9217 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9218 else
9219 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9220 fi~
9221 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9222 linknames='
9223 # The linker will not automatically build a static lib if we build a DLL.
9224 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9225 enable_shared_with_static_runtimes=yes
9226 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9228 # Don't use ranlib
9229 old_postinstall_cmds='chmod 644 $oldlib'
9230 postlink_cmds='lt_outputfile="@OUTPUT@"~
9231 lt_tool_outputfile="@TOOL_OUTPUT@"~
9232 case $lt_outputfile in
9233 *.exe|*.EXE) ;;
9234 *)
9235 lt_outputfile="$lt_outputfile.exe"
9236 lt_tool_outputfile="$lt_tool_outputfile.exe"
9237 ;;
9238 esac~
9239 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9240 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9241 $RM "$lt_outputfile.manifest";
9242 fi'
9243 ;;
9244 *)
9245 # Assume MSVC wrapper
9246 hardcode_libdir_flag_spec=' '
9247 allow_undefined_flag=unsupported
9248 # Tell ltmain to make .lib files, not .a files.
9249 libext=lib
9250 # Tell ltmain to make .dll files, not .so files.
9251 shrext_cmds=".dll"
9252 # FIXME: Setting linknames here is a bad hack.
9253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9254 # The linker will automatically build a .lib file if we build a DLL.
9255 old_archive_from_new_cmds='true'
9256 # FIXME: Should let the user specify the lib program.
9257 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9258 enable_shared_with_static_runtimes=yes
9259 ;;
9260 esac
9261 ;;
9262
9263 darwin* | rhapsody*)
9264
9265
9266 archive_cmds_need_lc=no
9267 hardcode_direct=no
9268 hardcode_automatic=yes
9269 hardcode_shlibpath_var=unsupported
9270 if test "$lt_cv_ld_force_load" = "yes"; then
9271 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9272
9273 else
9274 whole_archive_flag_spec=''
9275 fi
9276 link_all_deplibs=yes
9277 allow_undefined_flag="$_lt_dar_allow_undefined"
9278 case $cc_basename in
9279 ifort*) _lt_dar_can_shared=yes ;;
9280 *) _lt_dar_can_shared=$GCC ;;
9281 esac
9282 if test "$_lt_dar_can_shared" = "yes"; then
9283 output_verbose_link_cmd=func_echo_all
9284 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9285 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9286 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}"
9287 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}"
9288
9289 else
9290 ld_shlibs=no
9291 fi
9292
9293 ;;
9294
9295 dgux*)
9296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_shlibpath_var=no
9299 ;;
9300
9301 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9302 # support. Future versions do this automatically, but an explicit c++rt0.o
9303 # does not break anything, and helps significantly (at the cost of a little
9304 # extra space).
9305 freebsd2.2*)
9306 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9307 hardcode_libdir_flag_spec='-R$libdir'
9308 hardcode_direct=yes
9309 hardcode_shlibpath_var=no
9310 ;;
9311
9312 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9313 freebsd2.*)
9314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_direct=yes
9316 hardcode_minus_L=yes
9317 hardcode_shlibpath_var=no
9318 ;;
9319
9320 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9321 freebsd* | dragonfly*)
9322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_direct=yes
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 hpux9*)
9329 if test "$GCC" = yes; then
9330 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9331 else
9332 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'
9333 fi
9334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9335 hardcode_libdir_separator=:
9336 hardcode_direct=yes
9337
9338 # hardcode_minus_L: Not really in the search PATH,
9339 # but as the default location of the library.
9340 hardcode_minus_L=yes
9341 export_dynamic_flag_spec='${wl}-E'
9342 ;;
9343
9344 hpux10*)
9345 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9346 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9347 else
9348 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9349 fi
9350 if test "$with_gnu_ld" = no; then
9351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9352 hardcode_libdir_separator=:
9353 hardcode_direct=yes
9354 hardcode_direct_absolute=yes
9355 export_dynamic_flag_spec='${wl}-E'
9356 # hardcode_minus_L: Not really in the search PATH,
9357 # but as the default location of the library.
9358 hardcode_minus_L=yes
9359 fi
9360 ;;
9361
9362 hpux11*)
9363 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9364 case $host_cpu in
9365 hppa*64*)
9366 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 ;;
9368 ia64*)
9369 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9370 ;;
9371 *)
9372 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9373 ;;
9374 esac
9375 else
9376 case $host_cpu in
9377 hppa*64*)
9378 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 ;;
9380 ia64*)
9381 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9382 ;;
9383 *)
9384
9385 # Older versions of the 11.00 compiler do not understand -b yet
9386 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9388$as_echo_n "checking if $CC understands -b... " >&6; }
9389if ${lt_cv_prog_compiler__b+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391else
9392 lt_cv_prog_compiler__b=no
9393 save_LDFLAGS="$LDFLAGS"
9394 LDFLAGS="$LDFLAGS -b"
9395 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9396 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9397 # The linker can only warn and ignore the option if not recognized
9398 # So say no if there are warnings
9399 if test -s conftest.err; then
9400 # Append any errors to the config.log.
9401 cat conftest.err 1>&5
9402 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9404 if diff conftest.exp conftest.er2 >/dev/null; then
9405 lt_cv_prog_compiler__b=yes
9406 fi
9407 else
9408 lt_cv_prog_compiler__b=yes
9409 fi
9410 fi
9411 $RM -r conftest*
9412 LDFLAGS="$save_LDFLAGS"
9413
9414fi
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9416$as_echo "$lt_cv_prog_compiler__b" >&6; }
9417
9418if test x"$lt_cv_prog_compiler__b" = xyes; then
9419 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9420else
9421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9422fi
9423
9424 ;;
9425 esac
9426 fi
9427 if test "$with_gnu_ld" = no; then
9428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9429 hardcode_libdir_separator=:
9430
9431 case $host_cpu in
9432 hppa*64*|ia64*)
9433 hardcode_direct=no
9434 hardcode_shlibpath_var=no
9435 ;;
9436 *)
9437 hardcode_direct=yes
9438 hardcode_direct_absolute=yes
9439 export_dynamic_flag_spec='${wl}-E'
9440
9441 # hardcode_minus_L: Not really in the search PATH,
9442 # but as the default location of the library.
9443 hardcode_minus_L=yes
9444 ;;
9445 esac
9446 fi
9447 ;;
9448
9449 irix5* | irix6* | nonstopux*)
9450 if test "$GCC" = yes; then
9451 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9452 # Try to use the -exported_symbol ld option, if it does not
9453 # work, assume that -exports_file does not work either and
9454 # implicitly export all symbols.
9455 # This should be the same for all languages, so no per-tag cache variable.
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9457$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9458if ${lt_cv_irix_exported_symbol+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460else
9461 save_LDFLAGS="$LDFLAGS"
9462 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464/* end confdefs.h. */
9465int foo (void) { return 0; }
9466_ACEOF
9467if ac_fn_c_try_link "$LINENO"; then :
9468 lt_cv_irix_exported_symbol=yes
9469else
9470 lt_cv_irix_exported_symbol=no
9471fi
9472rm -f core conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext conftest.$ac_ext
9474 LDFLAGS="$save_LDFLAGS"
9475fi
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9477$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9478 if test "$lt_cv_irix_exported_symbol" = yes; then
9479 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9480 fi
9481 else
9482 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9483 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9484 fi
9485 archive_cmds_need_lc='no'
9486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488 inherit_rpath=yes
9489 link_all_deplibs=yes
9490 ;;
9491
9492 netbsd* | netbsdelf*-gnu)
9493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9495 else
9496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9497 fi
9498 hardcode_libdir_flag_spec='-R$libdir'
9499 hardcode_direct=yes
9500 hardcode_shlibpath_var=no
9501 ;;
9502
9503 newsos6)
9504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505 hardcode_direct=yes
9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9507 hardcode_libdir_separator=:
9508 hardcode_shlibpath_var=no
9509 ;;
9510
9511 *nto* | *qnx*)
9512 ;;
9513
9514 openbsd*)
9515 if test -f /usr/libexec/ld.so; then
9516 hardcode_direct=yes
9517 hardcode_shlibpath_var=no
9518 hardcode_direct_absolute=yes
9519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9521 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9523 export_dynamic_flag_spec='${wl}-E'
9524 else
9525 case $host_os in
9526 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_libdir_flag_spec='-R$libdir'
9529 ;;
9530 *)
9531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9533 ;;
9534 esac
9535 fi
9536 else
9537 ld_shlibs=no
9538 fi
9539 ;;
9540
9541 os2*)
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_minus_L=yes
9544 allow_undefined_flag=unsupported
9545 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'
9546 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9547 ;;
9548
9549 osf3*)
9550 if test "$GCC" = yes; then
9551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9552 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9553 else
9554 allow_undefined_flag=' -expect_unresolved \*'
9555 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9556 fi
9557 archive_cmds_need_lc='no'
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 hardcode_libdir_separator=:
9560 ;;
9561
9562 osf4* | osf5*) # as osf3* with the addition of -msym flag
9563 if test "$GCC" = yes; then
9564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9565 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9567 else
9568 allow_undefined_flag=' -expect_unresolved \*'
9569 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9570 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~
9571 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9572
9573 # Both c and cxx compiler support -rpath directly
9574 hardcode_libdir_flag_spec='-rpath $libdir'
9575 fi
9576 archive_cmds_need_lc='no'
9577 hardcode_libdir_separator=:
9578 ;;
9579
9580 solaris*)
9581 no_undefined_flag=' -z defs'
9582 if test "$GCC" = yes; then
9583 wlarc='${wl}'
9584 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9586 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9587 else
9588 case `$CC -V 2>&1` in
9589 *"Compilers 5.0"*)
9590 wlarc=''
9591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9594 ;;
9595 *)
9596 wlarc='${wl}'
9597 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9600 ;;
9601 esac
9602 fi
9603 hardcode_libdir_flag_spec='-R$libdir'
9604 hardcode_shlibpath_var=no
9605 case $host_os in
9606 solaris2.[0-5] | solaris2.[0-5].*) ;;
9607 *)
9608 # The compiler driver will combine and reorder linker options,
9609 # but understands `-z linker_flag'. GCC discards it without `$wl',
9610 # but is careful enough not to reorder.
9611 # Supported since Solaris 2.6 (maybe 2.5.1?)
9612 if test "$GCC" = yes; then
9613 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9614 else
9615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9616 fi
9617 ;;
9618 esac
9619 link_all_deplibs=yes
9620 ;;
9621
9622 sunos4*)
9623 if test "x$host_vendor" = xsequent; then
9624 # Use $CC to link under sequent, because it throws in some extra .o
9625 # files that make .init and .fini sections work.
9626 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9627 else
9628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9629 fi
9630 hardcode_libdir_flag_spec='-L$libdir'
9631 hardcode_direct=yes
9632 hardcode_minus_L=yes
9633 hardcode_shlibpath_var=no
9634 ;;
9635
9636 sysv4)
9637 case $host_vendor in
9638 sni)
9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_direct=yes # is this really true???
9641 ;;
9642 siemens)
9643 ## LD is ld it makes a PLAMLIB
9644 ## CC just makes a GrossModule.
9645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9646 reload_cmds='$CC -r -o $output$reload_objs'
9647 hardcode_direct=no
9648 ;;
9649 motorola)
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9652 ;;
9653 esac
9654 runpath_var='LD_RUN_PATH'
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 sysv4.3*)
9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660 hardcode_shlibpath_var=no
9661 export_dynamic_flag_spec='-Bexport'
9662 ;;
9663
9664 sysv4*MP*)
9665 if test -d /usr/nec; then
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_shlibpath_var=no
9668 runpath_var=LD_RUN_PATH
9669 hardcode_runpath_var=yes
9670 ld_shlibs=yes
9671 fi
9672 ;;
9673
9674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9675 no_undefined_flag='${wl}-z,text'
9676 archive_cmds_need_lc=no
9677 hardcode_shlibpath_var=no
9678 runpath_var='LD_RUN_PATH'
9679
9680 if test "$GCC" = yes; then
9681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 else
9684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9686 fi
9687 ;;
9688
9689 sysv5* | sco3.2v5* | sco5v6*)
9690 # Note: We can NOT use -z defs as we might desire, because we do not
9691 # link with -lc, and that would cause any symbols used from libc to
9692 # always be unresolved, which means just about no library would
9693 # ever link correctly. If we're not using GNU ld we use -z text
9694 # though, which does catch some bad symbols but isn't as heavy-handed
9695 # as -z defs.
9696 no_undefined_flag='${wl}-z,text'
9697 allow_undefined_flag='${wl}-z,nodefs'
9698 archive_cmds_need_lc=no
9699 hardcode_shlibpath_var=no
9700 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9701 hardcode_libdir_separator=':'
9702 link_all_deplibs=yes
9703 export_dynamic_flag_spec='${wl}-Bexport'
9704 runpath_var='LD_RUN_PATH'
9705
9706 if test "$GCC" = yes; then
9707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 else
9710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 fi
9713 ;;
9714
9715 uts4*)
9716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_libdir_flag_spec='-L$libdir'
9718 hardcode_shlibpath_var=no
9719 ;;
9720
9721 *)
9722 ld_shlibs=no
9723 ;;
9724 esac
9725
9726 if test x$host_vendor = xsni; then
9727 case $host in
9728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9729 export_dynamic_flag_spec='${wl}-Blargedynsym'
9730 ;;
9731 esac
9732 fi
9733 fi
9734
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9736$as_echo "$ld_shlibs" >&6; }
9737test "$ld_shlibs" = no && can_build_shared=no
9738
9739with_gnu_ld=$with_gnu_ld
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755#
9756# Do we need to explicitly link libc?
9757#
9758case "x$archive_cmds_need_lc" in
9759x|xyes)
9760 # Assume -lc should be added
9761 archive_cmds_need_lc=yes
9762
9763 if test "$enable_shared" = yes && test "$GCC" = yes; then
9764 case $archive_cmds in
9765 *'~'*)
9766 # FIXME: we may have to deal with multi-command sequences.
9767 ;;
9768 '$CC '*)
9769 # Test whether the compiler implicitly links with -lc since on some
9770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9771 # to ld, don't add -lc before -lgcc.
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9773$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9774if ${lt_cv_archive_cmds_need_lc+:} false; then :
9775 $as_echo_n "(cached) " >&6
9776else
9777 $RM conftest*
9778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9779
9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9781 (eval $ac_compile) 2>&5
9782 ac_status=$?
9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9784 test $ac_status = 0; } 2>conftest.err; then
9785 soname=conftest
9786 lib=conftest
9787 libobjs=conftest.$ac_objext
9788 deplibs=
9789 wl=$lt_prog_compiler_wl
9790 pic_flag=$lt_prog_compiler_pic
9791 compiler_flags=-v
9792 linker_flags=-v
9793 verstring=
9794 output_objdir=.
9795 libname=conftest
9796 lt_save_allow_undefined_flag=$allow_undefined_flag
9797 allow_undefined_flag=
9798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9799 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9800 ac_status=$?
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; }
9803 then
9804 lt_cv_archive_cmds_need_lc=no
9805 else
9806 lt_cv_archive_cmds_need_lc=yes
9807 fi
9808 allow_undefined_flag=$lt_save_allow_undefined_flag
9809 else
9810 cat conftest.err 1>&5
9811 fi
9812 $RM conftest*
9813
9814fi
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9816$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9817 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9818 ;;
9819 esac
9820 fi
9821 ;;
9822esac
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9976$as_echo_n "checking dynamic linker characteristics... " >&6; }
9977
9978if test "$GCC" = yes; then
9979 case $host_os in
9980 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9981 *) lt_awk_arg="/^libraries:/" ;;
9982 esac
9983 case $host_os in
9984 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9985 *) lt_sed_strip_eq="s,=/,/,g" ;;
9986 esac
9987 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9988 case $lt_search_path_spec in
9989 *\;*)
9990 # if the path contains ";" then we assume it to be the separator
9991 # otherwise default to the standard path separator (i.e. ":") - it is
9992 # assumed that no part of a normal pathname contains ";" but that should
9993 # okay in the real world where ";" in dirpaths is itself problematic.
9994 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9995 ;;
9996 *)
9997 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9998 ;;
9999 esac
10000 # Ok, now we have the path, separated by spaces, we can step through it
10001 # and add multilib dir if necessary.
10002 lt_tmp_lt_search_path_spec=
10003 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10004 for lt_sys_path in $lt_search_path_spec; do
10005 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10006 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10007 else
10008 test -d "$lt_sys_path" && \
10009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10010 fi
10011 done
10012 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10013BEGIN {RS=" "; FS="/|\n";} {
10014 lt_foo="";
10015 lt_count=0;
10016 for (lt_i = NF; lt_i > 0; lt_i--) {
10017 if ($lt_i != "" && $lt_i != ".") {
10018 if ($lt_i == "..") {
10019 lt_count++;
10020 } else {
10021 if (lt_count == 0) {
10022 lt_foo="/" $lt_i lt_foo;
10023 } else {
10024 lt_count--;
10025 }
10026 }
10027 }
10028 }
10029 if (lt_foo != "") { lt_freq[lt_foo]++; }
10030 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10031}'`
10032 # AWK program above erroneously prepends '/' to C:/dos/paths
10033 # for these hosts.
10034 case $host_os in
10035 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10036 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10037 esac
10038 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10039else
10040 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10041fi
10042library_names_spec=
10043libname_spec='lib$name'
10044soname_spec=
10045shrext_cmds=".so"
10046postinstall_cmds=
10047postuninstall_cmds=
10048finish_cmds=
10049finish_eval=
10050shlibpath_var=
10051shlibpath_overrides_runpath=unknown
10052version_type=none
10053dynamic_linker="$host_os ld.so"
10054sys_lib_dlsearch_path_spec="/lib /usr/lib"
10055need_lib_prefix=unknown
10056hardcode_into_libs=no
10057
10058# when you set need_version to no, make sure it does not cause -set_version
10059# flags to be left without arguments
10060need_version=unknown
10061
10062case $host_os in
10063aix3*)
10064 version_type=linux # correct to gnu/linux during the next big refactor
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10066 shlibpath_var=LIBPATH
10067
10068 # AIX 3 has no versioning support, so we append a major version to the name.
10069 soname_spec='${libname}${release}${shared_ext}$major'
10070 ;;
10071
10072aix[4-9]*)
10073 version_type=linux # correct to gnu/linux during the next big refactor
10074 need_lib_prefix=no
10075 need_version=no
10076 hardcode_into_libs=yes
10077 if test "$host_cpu" = ia64; then
10078 # AIX 5 supports IA64
10079 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10080 shlibpath_var=LD_LIBRARY_PATH
10081 else
10082 # With GCC up to 2.95.x, collect2 would create an import file
10083 # for dependence libraries. The import file would start with
10084 # the line `#! .'. This would cause the generated library to
10085 # depend on `.', always an invalid library. This was fixed in
10086 # development snapshots of GCC prior to 3.0.
10087 case $host_os in
10088 aix4 | aix4.[01] | aix4.[01].*)
10089 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10090 echo ' yes '
10091 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10092 :
10093 else
10094 can_build_shared=no
10095 fi
10096 ;;
10097 esac
10098 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10099 # soname into executable. Probably we can add versioning support to
10100 # collect2, so additional links can be useful in future.
10101 if test "$aix_use_runtimelinking" = yes; then
10102 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10103 # instead of lib<name>.a to let people know that these are not
10104 # typical AIX shared libraries.
10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10106 else
10107 # We preserve .a as extension for shared libraries through AIX4.2
10108 # and later when we are not doing run time linking.
10109 library_names_spec='${libname}${release}.a $libname.a'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 fi
10112 shlibpath_var=LIBPATH
10113 fi
10114 ;;
10115
10116amigaos*)
10117 case $host_cpu in
10118 powerpc)
10119 # Since July 2007 AmigaOS4 officially supports .so libraries.
10120 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10122 ;;
10123 m68k)
10124 library_names_spec='$libname.ixlibrary $libname.a'
10125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10126 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10127 ;;
10128 esac
10129 ;;
10130
10131beos*)
10132 library_names_spec='${libname}${shared_ext}'
10133 dynamic_linker="$host_os ld.so"
10134 shlibpath_var=LIBRARY_PATH
10135 ;;
10136
10137bsdi[45]*)
10138 version_type=linux # correct to gnu/linux during the next big refactor
10139 need_version=no
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 soname_spec='${libname}${release}${shared_ext}$major'
10142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10146 # the default ld.so.conf also contains /usr/contrib/lib and
10147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10148 # libtool to hard-code these into programs
10149 ;;
10150
10151cygwin* | mingw* | pw32* | cegcc*)
10152 version_type=windows
10153 shrext_cmds=".dll"
10154 need_version=no
10155 need_lib_prefix=no
10156
10157 case $GCC,$cc_basename in
10158 yes,*)
10159 # gcc
10160 library_names_spec='$libname.dll.a'
10161 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10162 postinstall_cmds='base_file=`basename \${file}`~
10163 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10164 dldir=$destdir/`dirname \$dlpath`~
10165 test -d \$dldir || mkdir -p \$dldir~
10166 $install_prog $dir/$dlname \$dldir/$dlname~
10167 chmod a+x \$dldir/$dlname~
10168 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10169 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10170 fi'
10171 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10172 dlpath=$dir/\$dldll~
10173 $RM \$dlpath'
10174 shlibpath_overrides_runpath=yes
10175
10176 case $host_os in
10177 cygwin*)
10178 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10179 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10180
10181 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10182 ;;
10183 mingw* | cegcc*)
10184 # MinGW DLLs use traditional 'lib' prefix
10185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10186 ;;
10187 pw32*)
10188 # pw32 DLLs use 'pw' prefix rather than 'lib'
10189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10190 ;;
10191 esac
10192 dynamic_linker='Win32 ld.exe'
10193 ;;
10194
10195 *,cl*)
10196 # Native MSVC
10197 libname_spec='$name'
10198 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199 library_names_spec='${libname}.dll.lib'
10200
10201 case $build_os in
10202 mingw*)
10203 sys_lib_search_path_spec=
10204 lt_save_ifs=$IFS
10205 IFS=';'
10206 for lt_path in $LIB
10207 do
10208 IFS=$lt_save_ifs
10209 # Let DOS variable expansion print the short 8.3 style file name.
10210 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10211 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10212 done
10213 IFS=$lt_save_ifs
10214 # Convert to MSYS style.
10215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10216 ;;
10217 cygwin*)
10218 # Convert to unix form, then to dos form, then back to unix form
10219 # but this time dos style (no spaces!) so that the unix form looks
10220 # like /cygdrive/c/PROGRA~1:/cygdr...
10221 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10222 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10223 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10224 ;;
10225 *)
10226 sys_lib_search_path_spec="$LIB"
10227 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10228 # It is most probably a Windows format PATH.
10229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10230 else
10231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10232 fi
10233 # FIXME: find the short name or the path components, as spaces are
10234 # common. (e.g. "Program Files" -> "PROGRA~1")
10235 ;;
10236 esac
10237
10238 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10239 postinstall_cmds='base_file=`basename \${file}`~
10240 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10241 dldir=$destdir/`dirname \$dlpath`~
10242 test -d \$dldir || mkdir -p \$dldir~
10243 $install_prog $dir/$dlname \$dldir/$dlname'
10244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10245 dlpath=$dir/\$dldll~
10246 $RM \$dlpath'
10247 shlibpath_overrides_runpath=yes
10248 dynamic_linker='Win32 link.exe'
10249 ;;
10250
10251 *)
10252 # Assume MSVC wrapper
10253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10254 dynamic_linker='Win32 ld.exe'
10255 ;;
10256 esac
10257 # FIXME: first we should search . and the directory the executable is in
10258 shlibpath_var=PATH
10259 ;;
10260
10261darwin* | rhapsody*)
10262 dynamic_linker="$host_os dyld"
10263 version_type=darwin
10264 need_lib_prefix=no
10265 need_version=no
10266 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10267 soname_spec='${libname}${release}${major}$shared_ext'
10268 shlibpath_overrides_runpath=yes
10269 shlibpath_var=DYLD_LIBRARY_PATH
10270 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10271
10272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10274 ;;
10275
10276dgux*)
10277 version_type=linux # correct to gnu/linux during the next big refactor
10278 need_lib_prefix=no
10279 need_version=no
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 ;;
10284
10285freebsd* | dragonfly*)
10286 # DragonFly does not have aout. When/if they implement a new
10287 # versioning mechanism, adjust this.
10288 if test -x /usr/bin/objformat; then
10289 objformat=`/usr/bin/objformat`
10290 else
10291 case $host_os in
10292 freebsd[23].*) objformat=aout ;;
10293 *) objformat=elf ;;
10294 esac
10295 fi
10296 version_type=freebsd-$objformat
10297 case $version_type in
10298 freebsd-elf*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10300 need_version=no
10301 need_lib_prefix=no
10302 ;;
10303 freebsd-*)
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10305 need_version=yes
10306 ;;
10307 esac
10308 shlibpath_var=LD_LIBRARY_PATH
10309 case $host_os in
10310 freebsd2.*)
10311 shlibpath_overrides_runpath=yes
10312 ;;
10313 freebsd3.[01]* | freebsdelf3.[01]*)
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 ;;
10317 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10318 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10319 shlibpath_overrides_runpath=no
10320 hardcode_into_libs=yes
10321 ;;
10322 *) # from 4.6 on, and DragonFly
10323 shlibpath_overrides_runpath=yes
10324 hardcode_into_libs=yes
10325 ;;
10326 esac
10327 ;;
10328
10329gnu*)
10330 version_type=linux # correct to gnu/linux during the next big refactor
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=no
10337 hardcode_into_libs=yes
10338 ;;
10339
10340haiku*)
10341 version_type=linux # correct to gnu/linux during the next big refactor
10342 need_lib_prefix=no
10343 need_version=no
10344 dynamic_linker="$host_os runtime_loader"
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LIBRARY_PATH
10348 shlibpath_overrides_runpath=yes
10349 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10350 hardcode_into_libs=yes
10351 ;;
10352
10353hpux9* | hpux10* | hpux11*)
10354 # Give a soname corresponding to the major version so that dld.sl refuses to
10355 # link against other versions.
10356 version_type=sunos
10357 need_lib_prefix=no
10358 need_version=no
10359 case $host_cpu in
10360 ia64*)
10361 shrext_cmds='.so'
10362 hardcode_into_libs=yes
10363 dynamic_linker="$host_os dld.so"
10364 shlibpath_var=LD_LIBRARY_PATH
10365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 if test "X$HPUX_IA64_MODE" = X32; then
10369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10370 else
10371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10372 fi
10373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10374 ;;
10375 hppa*64*)
10376 shrext_cmds='.sl'
10377 hardcode_into_libs=yes
10378 dynamic_linker="$host_os dld.sl"
10379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10385 ;;
10386 *)
10387 shrext_cmds='.sl'
10388 dynamic_linker="$host_os dld.sl"
10389 shlibpath_var=SHLIB_PATH
10390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 ;;
10394 esac
10395 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10396 postinstall_cmds='chmod 555 $lib'
10397 # or fails outright, so override atomically:
10398 install_override_mode=555
10399 ;;
10400
10401interix[3-9]*)
10402 version_type=linux # correct to gnu/linux during the next big refactor
10403 need_lib_prefix=no
10404 need_version=no
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 shlibpath_overrides_runpath=no
10410 hardcode_into_libs=yes
10411 ;;
10412
10413irix5* | irix6* | nonstopux*)
10414 case $host_os in
10415 nonstopux*) version_type=nonstopux ;;
10416 *)
10417 if test "$lt_cv_prog_gnu_ld" = yes; then
10418 version_type=linux # correct to gnu/linux during the next big refactor
10419 else
10420 version_type=irix
10421 fi ;;
10422 esac
10423 need_lib_prefix=no
10424 need_version=no
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10427 case $host_os in
10428 irix5* | nonstopux*)
10429 libsuff= shlibsuff=
10430 ;;
10431 *)
10432 case $LD in # libtool.m4 will add one of these switches to LD
10433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10434 libsuff= shlibsuff= libmagic=32-bit;;
10435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10436 libsuff=32 shlibsuff=N32 libmagic=N32;;
10437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10439 *) libsuff= shlibsuff= libmagic=never-match;;
10440 esac
10441 ;;
10442 esac
10443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10444 shlibpath_overrides_runpath=no
10445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10447 hardcode_into_libs=yes
10448 ;;
10449
10450# No shared lib support for Linux oldld, aout, or coff.
10451linux*oldld* | linux*aout* | linux*coff*)
10452 dynamic_linker=no
10453 ;;
10454
10455# This must be glibc/ELF.
10456linux* | k*bsd*-gnu | kopensolaris*-gnu)
10457 version_type=linux # correct to gnu/linux during the next big refactor
10458 need_lib_prefix=no
10459 need_version=no
10460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 soname_spec='${libname}${release}${shared_ext}$major'
10462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 shlibpath_overrides_runpath=no
10465
10466 # Some binutils ld are patched to set DT_RUNPATH
10467 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469else
10470 lt_cv_shlibpath_overrides_runpath=no
10471 save_LDFLAGS=$LDFLAGS
10472 save_libdir=$libdir
10473 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10474 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476/* end confdefs.h. */
10477
10478int
10479main ()
10480{
10481
10482 ;
10483 return 0;
10484}
10485_ACEOF
10486if ac_fn_c_try_link "$LINENO"; then :
10487 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10488 lt_cv_shlibpath_overrides_runpath=yes
10489fi
10490fi
10491rm -f core conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10493 LDFLAGS=$save_LDFLAGS
10494 libdir=$save_libdir
10495
10496fi
10497
10498 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10499
10500 # This implies no fast_install, which is unacceptable.
10501 # Some rework will be needed to allow for fast_install
10502 # before this can be enabled.
10503 hardcode_into_libs=yes
10504
10505 # Append ld.so.conf contents to the search path
10506 if test -f /etc/ld.so.conf; then
10507 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;s/"//g;/^$/d' | tr '\n' ' '`
10508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10509 fi
10510
10511 # We used to test for /lib/ld.so.1 and disable shared libraries on
10512 # powerpc, because MkLinux only supported shared libraries with the
10513 # GNU dynamic linker. Since this was broken with cross compilers,
10514 # most powerpc-linux boxes support dynamic linking these days and
10515 # people can always --disable-shared, the test was removed, and we
10516 # assume the GNU/Linux dynamic linker is in use.
10517 dynamic_linker='GNU/Linux ld.so'
10518 ;;
10519
10520netbsdelf*-gnu)
10521 version_type=linux
10522 need_lib_prefix=no
10523 need_version=no
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10525 soname_spec='${libname}${release}${shared_ext}$major'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 shlibpath_overrides_runpath=no
10528 hardcode_into_libs=yes
10529 dynamic_linker='NetBSD ld.elf_so'
10530 ;;
10531
10532netbsd*)
10533 version_type=sunos
10534 need_lib_prefix=no
10535 need_version=no
10536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10539 dynamic_linker='NetBSD (a.out) ld.so'
10540 else
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 dynamic_linker='NetBSD ld.elf_so'
10544 fi
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=yes
10547 hardcode_into_libs=yes
10548 ;;
10549
10550newsos6)
10551 version_type=linux # correct to gnu/linux during the next big refactor
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 shlibpath_var=LD_LIBRARY_PATH
10554 shlibpath_overrides_runpath=yes
10555 ;;
10556
10557*nto* | *qnx*)
10558 version_type=qnx
10559 need_lib_prefix=no
10560 need_version=no
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 soname_spec='${libname}${release}${shared_ext}$major'
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=no
10565 hardcode_into_libs=yes
10566 dynamic_linker='ldqnx.so'
10567 ;;
10568
10569openbsd*)
10570 version_type=sunos
10571 sys_lib_dlsearch_path_spec="/usr/lib"
10572 need_lib_prefix=no
10573 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10574 case $host_os in
10575 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10576 *) need_version=no ;;
10577 esac
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10580 shlibpath_var=LD_LIBRARY_PATH
10581 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10582 case $host_os in
10583 openbsd2.[89] | openbsd2.[89].*)
10584 shlibpath_overrides_runpath=no
10585 ;;
10586 *)
10587 shlibpath_overrides_runpath=yes
10588 ;;
10589 esac
10590 else
10591 shlibpath_overrides_runpath=yes
10592 fi
10593 ;;
10594
10595os2*)
10596 libname_spec='$name'
10597 shrext_cmds=".dll"
10598 need_lib_prefix=no
10599 library_names_spec='$libname${shared_ext} $libname.a'
10600 dynamic_linker='OS/2 ld.exe'
10601 shlibpath_var=LIBPATH
10602 ;;
10603
10604osf3* | osf4* | osf5*)
10605 version_type=osf
10606 need_lib_prefix=no
10607 need_version=no
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10612 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10613 ;;
10614
10615rdos*)
10616 dynamic_linker=no
10617 ;;
10618
10619solaris*)
10620 version_type=linux # correct to gnu/linux during the next big refactor
10621 need_lib_prefix=no
10622 need_version=no
10623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 shlibpath_overrides_runpath=yes
10627 hardcode_into_libs=yes
10628 # ldd complains unless libraries are executable
10629 postinstall_cmds='chmod +x $lib'
10630 ;;
10631
10632sunos4*)
10633 version_type=sunos
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10635 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 shlibpath_overrides_runpath=yes
10638 if test "$with_gnu_ld" = yes; then
10639 need_lib_prefix=no
10640 fi
10641 need_version=yes
10642 ;;
10643
10644sysv4 | sysv4.3*)
10645 version_type=linux # correct to gnu/linux during the next big refactor
10646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647 soname_spec='${libname}${release}${shared_ext}$major'
10648 shlibpath_var=LD_LIBRARY_PATH
10649 case $host_vendor in
10650 sni)
10651 shlibpath_overrides_runpath=no
10652 need_lib_prefix=no
10653 runpath_var=LD_RUN_PATH
10654 ;;
10655 siemens)
10656 need_lib_prefix=no
10657 ;;
10658 motorola)
10659 need_lib_prefix=no
10660 need_version=no
10661 shlibpath_overrides_runpath=no
10662 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10663 ;;
10664 esac
10665 ;;
10666
10667sysv4*MP*)
10668 if test -d /usr/nec ;then
10669 version_type=linux # correct to gnu/linux during the next big refactor
10670 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10671 soname_spec='$libname${shared_ext}.$major'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 fi
10674 ;;
10675
10676sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10677 version_type=freebsd-elf
10678 need_lib_prefix=no
10679 need_version=no
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 shlibpath_overrides_runpath=yes
10684 hardcode_into_libs=yes
10685 if test "$with_gnu_ld" = yes; then
10686 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10687 else
10688 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10689 case $host_os in
10690 sco3.2v5*)
10691 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10692 ;;
10693 esac
10694 fi
10695 sys_lib_dlsearch_path_spec='/usr/lib'
10696 ;;
10697
10698tpf*)
10699 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10700 version_type=linux # correct to gnu/linux during the next big refactor
10701 need_lib_prefix=no
10702 need_version=no
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 shlibpath_overrides_runpath=no
10706 hardcode_into_libs=yes
10707 ;;
10708
10709uts4*)
10710 version_type=linux # correct to gnu/linux during the next big refactor
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 ;;
10715
10716*)
10717 dynamic_linker=no
10718 ;;
10719esac
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10721$as_echo "$dynamic_linker" >&6; }
10722test "$dynamic_linker" = no && can_build_shared=no
10723
10724variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10725if test "$GCC" = yes; then
10726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10727fi
10728
10729if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10730 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10731fi
10732if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10733 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10734fi
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10828$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10829hardcode_action=
10830if test -n "$hardcode_libdir_flag_spec" ||
10831 test -n "$runpath_var" ||
10832 test "X$hardcode_automatic" = "Xyes" ; then
10833
10834 # We can hardcode non-existent directories.
10835 if test "$hardcode_direct" != no &&
10836 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10837 # have to relink, otherwise we might link with an installed library
10838 # when we should be linking with a yet-to-be-installed one
10839 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10840 test "$hardcode_minus_L" != no; then
10841 # Linking always hardcodes the temporary library directory.
10842 hardcode_action=relink
10843 else
10844 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10845 hardcode_action=immediate
10846 fi
10847else
10848 # We cannot hardcode anything, or else we can only hardcode existing
10849 # directories.
10850 hardcode_action=unsupported
10851fi
10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10853$as_echo "$hardcode_action" >&6; }
10854
10855if test "$hardcode_action" = relink ||
10856 test "$inherit_rpath" = yes; then
10857 # Fast installation is not supported
10858 enable_fast_install=no
10859elif test "$shlibpath_overrides_runpath" = yes ||
10860 test "$enable_shared" = no; then
10861 # Fast installation is not necessary
10862 enable_fast_install=needless
10863fi
10864
10865
10866
10867
10868
10869
10870 if test "x$enable_dlopen" != xyes; then
10871 enable_dlopen=unknown
10872 enable_dlopen_self=unknown
10873 enable_dlopen_self_static=unknown
10874else
10875 lt_cv_dlopen=no
10876 lt_cv_dlopen_libs=
10877
10878 case $host_os in
10879 beos*)
10880 lt_cv_dlopen="load_add_on"
10881 lt_cv_dlopen_libs=
10882 lt_cv_dlopen_self=yes
10883 ;;
10884
10885 mingw* | pw32* | cegcc*)
10886 lt_cv_dlopen="LoadLibrary"
10887 lt_cv_dlopen_libs=
10888 ;;
10889
10890 cygwin*)
10891 lt_cv_dlopen="dlopen"
10892 lt_cv_dlopen_libs=
10893 ;;
10894
10895 darwin*)
10896 # if libdl is installed we need to link against it
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10898$as_echo_n "checking for dlopen in -ldl... " >&6; }
10899if ${ac_cv_lib_dl_dlopen+:} false; then :
10900 $as_echo_n "(cached) " >&6
10901else
10902 ac_check_lib_save_LIBS=$LIBS
10903LIBS="-ldl $LIBS"
10904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905/* end confdefs.h. */
10906
10907/* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10910#ifdef __cplusplus
10911extern "C"
10912#endif
10913char dlopen ();
10914int
10915main ()
10916{
10917return dlopen ();
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922if ac_fn_c_try_link "$LINENO"; then :
10923 ac_cv_lib_dl_dlopen=yes
10924else
10925 ac_cv_lib_dl_dlopen=no
10926fi
10927rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929LIBS=$ac_check_lib_save_LIBS
10930fi
10931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10932$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10933if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10935else
10936
10937 lt_cv_dlopen="dyld"
10938 lt_cv_dlopen_libs=
10939 lt_cv_dlopen_self=yes
10940
10941fi
10942
10943 ;;
10944
10945 *)
10946 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10947if test "x$ac_cv_func_shl_load" = xyes; then :
10948 lt_cv_dlopen="shl_load"
10949else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10951$as_echo_n "checking for shl_load in -ldld... " >&6; }
10952if ${ac_cv_lib_dld_shl_load+:} false; then :
10953 $as_echo_n "(cached) " >&6
10954else
10955 ac_check_lib_save_LIBS=$LIBS
10956LIBS="-ldld $LIBS"
10957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h. */
10959
10960/* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10963#ifdef __cplusplus
10964extern "C"
10965#endif
10966char shl_load ();
10967int
10968main ()
10969{
10970return shl_load ();
10971 ;
10972 return 0;
10973}
10974_ACEOF
10975if ac_fn_c_try_link "$LINENO"; then :
10976 ac_cv_lib_dld_shl_load=yes
10977else
10978 ac_cv_lib_dld_shl_load=no
10979fi
10980rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10982LIBS=$ac_check_lib_save_LIBS
10983fi
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10985$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10986if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10988else
10989 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10990if test "x$ac_cv_func_dlopen" = xyes; then :
10991 lt_cv_dlopen="dlopen"
10992else
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10994$as_echo_n "checking for dlopen in -ldl... " >&6; }
10995if ${ac_cv_lib_dl_dlopen+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997else
10998 ac_check_lib_save_LIBS=$LIBS
10999LIBS="-ldl $LIBS"
11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001/* end confdefs.h. */
11002
11003/* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11006#ifdef __cplusplus
11007extern "C"
11008#endif
11009char dlopen ();
11010int
11011main ()
11012{
11013return dlopen ();
11014 ;
11015 return 0;
11016}
11017_ACEOF
11018if ac_fn_c_try_link "$LINENO"; then :
11019 ac_cv_lib_dl_dlopen=yes
11020else
11021 ac_cv_lib_dl_dlopen=no
11022fi
11023rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025LIBS=$ac_check_lib_save_LIBS
11026fi
11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11028$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11029if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11031else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11033$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11034if ${ac_cv_lib_svld_dlopen+:} false; then :
11035 $as_echo_n "(cached) " >&6
11036else
11037 ac_check_lib_save_LIBS=$LIBS
11038LIBS="-lsvld $LIBS"
11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040/* end confdefs.h. */
11041
11042/* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11045#ifdef __cplusplus
11046extern "C"
11047#endif
11048char dlopen ();
11049int
11050main ()
11051{
11052return dlopen ();
11053 ;
11054 return 0;
11055}
11056_ACEOF
11057if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_svld_dlopen=yes
11059else
11060 ac_cv_lib_svld_dlopen=no
11061fi
11062rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064LIBS=$ac_check_lib_save_LIBS
11065fi
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11067$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11068if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11069 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11070else
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11072$as_echo_n "checking for dld_link in -ldld... " >&6; }
11073if ${ac_cv_lib_dld_dld_link+:} false; then :
11074 $as_echo_n "(cached) " >&6
11075else
11076 ac_check_lib_save_LIBS=$LIBS
11077LIBS="-ldld $LIBS"
11078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079/* end confdefs.h. */
11080
11081/* Override any GCC internal prototype to avoid an error.
11082 Use char because int might match the return type of a GCC
11083 builtin and then its argument prototype would still apply. */
11084#ifdef __cplusplus
11085extern "C"
11086#endif
11087char dld_link ();
11088int
11089main ()
11090{
11091return dld_link ();
11092 ;
11093 return 0;
11094}
11095_ACEOF
11096if ac_fn_c_try_link "$LINENO"; then :
11097 ac_cv_lib_dld_dld_link=yes
11098else
11099 ac_cv_lib_dld_dld_link=no
11100fi
11101rm -f core conftest.err conftest.$ac_objext \
11102 conftest$ac_exeext conftest.$ac_ext
11103LIBS=$ac_check_lib_save_LIBS
11104fi
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11106$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11107if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11108 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11109fi
11110
11111
11112fi
11113
11114
11115fi
11116
11117
11118fi
11119
11120
11121fi
11122
11123
11124fi
11125
11126 ;;
11127 esac
11128
11129 if test "x$lt_cv_dlopen" != xno; then
11130 enable_dlopen=yes
11131 else
11132 enable_dlopen=no
11133 fi
11134
11135 case $lt_cv_dlopen in
11136 dlopen)
11137 save_CPPFLAGS="$CPPFLAGS"
11138 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11139
11140 save_LDFLAGS="$LDFLAGS"
11141 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11142
11143 save_LIBS="$LIBS"
11144 LIBS="$lt_cv_dlopen_libs $LIBS"
11145
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11147$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11148if ${lt_cv_dlopen_self+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150else
11151 if test "$cross_compiling" = yes; then :
11152 lt_cv_dlopen_self=cross
11153else
11154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11155 lt_status=$lt_dlunknown
11156 cat > conftest.$ac_ext <<_LT_EOF
11157#line $LINENO "configure"
11158#include "confdefs.h"
11159
11160#if HAVE_DLFCN_H
11161#include <dlfcn.h>
11162#endif
11163
11164#include <stdio.h>
11165
11166#ifdef RTLD_GLOBAL
11167# define LT_DLGLOBAL RTLD_GLOBAL
11168#else
11169# ifdef DL_GLOBAL
11170# define LT_DLGLOBAL DL_GLOBAL
11171# else
11172# define LT_DLGLOBAL 0
11173# endif
11174#endif
11175
11176/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11177 find out it does not work in some platform. */
11178#ifndef LT_DLLAZY_OR_NOW
11179# ifdef RTLD_LAZY
11180# define LT_DLLAZY_OR_NOW RTLD_LAZY
11181# else
11182# ifdef DL_LAZY
11183# define LT_DLLAZY_OR_NOW DL_LAZY
11184# else
11185# ifdef RTLD_NOW
11186# define LT_DLLAZY_OR_NOW RTLD_NOW
11187# else
11188# ifdef DL_NOW
11189# define LT_DLLAZY_OR_NOW DL_NOW
11190# else
11191# define LT_DLLAZY_OR_NOW 0
11192# endif
11193# endif
11194# endif
11195# endif
11196#endif
11197
11198/* When -fvisbility=hidden is used, assume the code has been annotated
11199 correspondingly for the symbols needed. */
11200#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11201int fnord () __attribute__((visibility("default")));
11202#endif
11203
11204int fnord () { return 42; }
11205int main ()
11206{
11207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11208 int status = $lt_dlunknown;
11209
11210 if (self)
11211 {
11212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11213 else
11214 {
11215 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11216 else puts (dlerror ());
11217 }
11218 /* dlclose (self); */
11219 }
11220 else
11221 puts (dlerror ());
11222
11223 return status;
11224}
11225_LT_EOF
11226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11227 (eval $ac_link) 2>&5
11228 ac_status=$?
11229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11230 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11231 (./conftest; exit; ) >&5 2>/dev/null
11232 lt_status=$?
11233 case x$lt_status in
11234 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11235 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11236 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11237 esac
11238 else :
11239 # compilation failed
11240 lt_cv_dlopen_self=no
11241 fi
11242fi
11243rm -fr conftest*
11244
11245
11246fi
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11248$as_echo "$lt_cv_dlopen_self" >&6; }
11249
11250 if test "x$lt_cv_dlopen_self" = xyes; then
11251 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11253$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11254if ${lt_cv_dlopen_self_static+:} false; then :
11255 $as_echo_n "(cached) " >&6
11256else
11257 if test "$cross_compiling" = yes; then :
11258 lt_cv_dlopen_self_static=cross
11259else
11260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11261 lt_status=$lt_dlunknown
11262 cat > conftest.$ac_ext <<_LT_EOF
11263#line $LINENO "configure"
11264#include "confdefs.h"
11265
11266#if HAVE_DLFCN_H
11267#include <dlfcn.h>
11268#endif
11269
11270#include <stdio.h>
11271
11272#ifdef RTLD_GLOBAL
11273# define LT_DLGLOBAL RTLD_GLOBAL
11274#else
11275# ifdef DL_GLOBAL
11276# define LT_DLGLOBAL DL_GLOBAL
11277# else
11278# define LT_DLGLOBAL 0
11279# endif
11280#endif
11281
11282/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11283 find out it does not work in some platform. */
11284#ifndef LT_DLLAZY_OR_NOW
11285# ifdef RTLD_LAZY
11286# define LT_DLLAZY_OR_NOW RTLD_LAZY
11287# else
11288# ifdef DL_LAZY
11289# define LT_DLLAZY_OR_NOW DL_LAZY
11290# else
11291# ifdef RTLD_NOW
11292# define LT_DLLAZY_OR_NOW RTLD_NOW
11293# else
11294# ifdef DL_NOW
11295# define LT_DLLAZY_OR_NOW DL_NOW
11296# else
11297# define LT_DLLAZY_OR_NOW 0
11298# endif
11299# endif
11300# endif
11301# endif
11302#endif
11303
11304/* When -fvisbility=hidden is used, assume the code has been annotated
11305 correspondingly for the symbols needed. */
11306#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11307int fnord () __attribute__((visibility("default")));
11308#endif
11309
11310int fnord () { return 42; }
11311int main ()
11312{
11313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11314 int status = $lt_dlunknown;
11315
11316 if (self)
11317 {
11318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11319 else
11320 {
11321 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11322 else puts (dlerror ());
11323 }
11324 /* dlclose (self); */
11325 }
11326 else
11327 puts (dlerror ());
11328
11329 return status;
11330}
11331_LT_EOF
11332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11333 (eval $ac_link) 2>&5
11334 ac_status=$?
11335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11336 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11337 (./conftest; exit; ) >&5 2>/dev/null
11338 lt_status=$?
11339 case x$lt_status in
11340 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11341 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11342 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11343 esac
11344 else :
11345 # compilation failed
11346 lt_cv_dlopen_self_static=no
11347 fi
11348fi
11349rm -fr conftest*
11350
11351
11352fi
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11354$as_echo "$lt_cv_dlopen_self_static" >&6; }
11355 fi
11356
11357 CPPFLAGS="$save_CPPFLAGS"
11358 LDFLAGS="$save_LDFLAGS"
11359 LIBS="$save_LIBS"
11360 ;;
11361 esac
11362
11363 case $lt_cv_dlopen_self in
11364 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11365 *) enable_dlopen_self=unknown ;;
11366 esac
11367
11368 case $lt_cv_dlopen_self_static in
11369 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11370 *) enable_dlopen_self_static=unknown ;;
11371 esac
11372fi
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390striplib=
11391old_striplib=
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11393$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11394if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11395 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11396 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398$as_echo "yes" >&6; }
11399else
11400# FIXME - insert some real tests, host_os isn't really good enough
11401 case $host_os in
11402 darwin*)
11403 if test -n "$STRIP" ; then
11404 striplib="$STRIP -x"
11405 old_striplib="$STRIP -S"
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11407$as_echo "yes" >&6; }
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410$as_echo "no" >&6; }
11411 fi
11412 ;;
11413 *)
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
11416 ;;
11417 esac
11418fi
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431 # Report which library types will actually be built
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11433$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11435$as_echo "$can_build_shared" >&6; }
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11438$as_echo_n "checking whether to build shared libraries... " >&6; }
11439 test "$can_build_shared" = "no" && enable_shared=no
11440
11441 # On AIX, shared libraries and static libraries use the same namespace, and
11442 # are all built from PIC.
11443 case $host_os in
11444 aix3*)
11445 test "$enable_shared" = yes && enable_static=no
11446 if test -n "$RANLIB"; then
11447 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11448 postinstall_cmds='$RANLIB $lib'
11449 fi
11450 ;;
11451
11452 aix[4-9]*)
11453 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11454 test "$enable_shared" = yes && enable_static=no
11455 fi
11456 ;;
11457 esac
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11459$as_echo "$enable_shared" >&6; }
11460
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11462$as_echo_n "checking whether to build static libraries... " >&6; }
11463 # Make sure either enable_shared or enable_static is yes.
11464 test "$enable_shared" = yes || enable_static=yes
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11466$as_echo "$enable_static" >&6; }
11467
11468
11469
11470
11471fi
11472ac_ext=c
11473ac_cpp='$CPP $CPPFLAGS'
11474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11476ac_compiler_gnu=$ac_cv_c_compiler_gnu
11477
11478CC="$lt_save_CC"
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494 ac_config_commands="$ac_config_commands libtool"
11495
11496
11497
11498
11499# Only expand once:
11500
11501
11502
11503
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl author" >&5
11505$as_echo_n "checking spl author... " >&6; }
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_AUTHOR" >&5
11507$as_echo "$SPL_META_AUTHOR" >&6; }
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl license" >&5
11510$as_echo_n "checking spl license... " >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_META_LICENSE" >&5
11512$as_echo "$SPL_META_LICENSE" >&6; }
11513
11514
11515
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
11517$as_echo_n "checking linux distribution... " >&6; }
11518 if test -f /etc/toss-release ; then
11519 VENDOR=toss ;
11520 elif test -f /etc/fedora-release ; then
11521 VENDOR=fedora ;
11522 elif test -f /etc/redhat-release ; then
11523 VENDOR=redhat ;
11524 elif test -f /etc/gentoo-release ; then
11525 VENDOR=gentoo ;
11526 elif test -f /etc/arch-release ; then
11527 VENDOR=arch ;
11528 elif test -f /etc/SuSE-release ; then
11529 VENDOR=sles ;
11530 elif test -f /etc/slackware-version ; then
11531 VENDOR=slackware ;
11532 elif test -f /etc/lunar.release ; then
11533 VENDOR=lunar ;
11534 elif test -f /etc/lsb-release ; then
11535 VENDOR=ubuntu ;
11536 elif test -f /etc/debian_version ; then
11537 VENDOR=debian ;
11538 else
11539 VENDOR= ;
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
11542$as_echo "$VENDOR" >&6; }
11543
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11546$as_echo_n "checking default package type... " >&6; }
11547 case "$VENDOR" in
11548 toss) DEFAULT_PACKAGE=rpm ;;
11549 redhat) DEFAULT_PACKAGE=rpm ;;
11550 fedora) DEFAULT_PACKAGE=rpm ;;
11551 gentoo) DEFAULT_PACKAGE=tgz ;;
11552 arch) DEFAULT_PACKAGE=tgz ;;
11553 sles) DEFAULT_PACKAGE=rpm ;;
11554 slackware) DEFAULT_PACKAGE=tgz ;;
11555 lunar) DEFAULT_PACKAGE=tgz ;;
11556 ubuntu) DEFAULT_PACKAGE=deb ;;
11557 debian) DEFAULT_PACKAGE=deb ;;
11558 *) DEFAULT_PACKAGE=rpm ;;
11559 esac
11560
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11562$as_echo "$DEFAULT_PACKAGE" >&6; }
11563
11564
11565
11566 RPM=rpm
11567 RPMBUILD=rpmbuild
11568
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11570$as_echo_n "checking whether $RPM is available... " >&6; }
11571 if tmp=$($RPM --version 2>/dev/null); then :
11572
11573 RPM_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11574 HAVE_RPM=yes
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11576$as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11577
11578else
11579
11580 HAVE_RPM=no
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11582$as_echo "$HAVE_RPM" >&6; }
11583
11584fi
11585
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11587$as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11588 if tmp=$($RPMBUILD --version 2>/dev/null); then :
11589
11590 RPMBUILD_VERSION=$(echo $tmp | $AWK '/RPM/ { print $3 }')
11591 HAVE_RPMBUILD=yes
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11593$as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11594
11595else
11596
11597 HAVE_RPMBUILD=no
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11599$as_echo "$HAVE_RPMBUILD" >&6; }
11600
11601fi
11602
11603 RPM_DEFINE_COMMON='--define "$(DEBUG_SPL) 1" --define "$(DEBUG_KMEM) 1" --define "$(DEBUG_KMEM_TRACKING) 1"'
11604 RPM_DEFINE_UTIL=
11605 RPM_DEFINE_KMOD='--define "kernels $(LINUX_VERSION)"'
11606 RPM_DEFINE_DKMS=
11607
11608 SRPM_DEFINE_COMMON='--define "build_src_rpm 1"'
11609 SRPM_DEFINE_UTIL=
11610 SRPM_DEFINE_KMOD=
11611 SRPM_DEFINE_DKMS=
11612
11613 RPM_SPEC_DIR="rpm/generic"
11614
11615# Check whether --with-spec was given.
11616if test "${with_spec+set}" = set; then :
11617 withval=$with_spec; RPM_SPEC_DIR="rpm/$withval"
11618fi
11619
11620
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11622$as_echo_n "checking whether spec files are available... " >&6; }
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11624$as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645 DPKG=dpkg
11646 DPKGBUILD=dpkg-buildpackage
11647
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11649$as_echo_n "checking whether $DPKG is available... " >&6; }
11650 if tmp=$($DPKG --version 2>/dev/null); then :
11651
11652 DPKG_VERSION=$(echo $tmp | $AWK '/Debian/ { print $7 }')
11653 HAVE_DPKG=yes
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11655$as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11656
11657else
11658
11659 HAVE_DPKG=no
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
11661$as_echo "$HAVE_DPKG" >&6; }
11662
11663fi
11664
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
11666$as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11667 if tmp=$($DPKGBUILD --version 2>/dev/null); then :
11668
11669 DPKGBUILD_VERSION=$(echo $tmp | \
11670 $AWK '/Debian/ { print $4 }' | cut -f-4 -d'.')
11671 HAVE_DPKGBUILD=yes
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11673$as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11674
11675else
11676
11677 HAVE_DPKGBUILD=no
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
11679$as_echo "$HAVE_DPKGBUILD" >&6; }
11680
11681fi
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692 ALIEN=alien
11693
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
11695$as_echo_n "checking whether $ALIEN is available... " >&6; }
11696 if tmp=$($ALIEN --version 2>/dev/null); then :
11697
11698 ALIEN_VERSION=$(echo $tmp | $AWK '{ print $3 }')
11699 HAVE_ALIEN=yes
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11701$as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11702
11703else
11704
11705 HAVE_ALIEN=no
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
11707$as_echo "$HAVE_ALIEN" >&6; }
11708
11709fi
11710
11711
11712
11713
11714
11715
11716
11717 SPL_CONFIG=all
11718
11719# Check whether --with-config was given.
11720if test "${with_config+set}" = set; then :
11721 withval=$with_config; SPL_CONFIG="$withval"
11722fi
11723
11724 # Check whether --enable-linux-builtin was given.
11725if test "${enable_linux_builtin+set}" = set; then :
11726 enableval=$enable_linux_builtin;
11727else
11728 enable_linux_builtin=no
11729fi
11730
11731
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl config" >&5
11733$as_echo_n "checking spl config... " >&6; }
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_CONFIG" >&5
11735$as_echo "$SPL_CONFIG" >&6; };
11736
11737
11738 case "$SPL_CONFIG" in
11739 kernel)
11740
11741
11742# Check whether --with-linux was given.
11743if test "${with_linux+set}" = set; then :
11744 withval=$with_linux; kernelsrc="$withval"
11745fi
11746
11747
11748
11749# Check whether --with-linux-obj was given.
11750if test "${with_linux_obj+set}" = set; then :
11751 withval=$with_linux_obj; kernelbuild="$withval"
11752fi
11753
11754
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
11756$as_echo_n "checking kernel source directory... " >&6; }
11757 if test -z "$kernelsrc"; then
11758 if test -e "/lib/modules/$(uname -r)/source"; then
11759 headersdir="/lib/modules/$(uname -r)/source"
11760 sourcelink=$(readlink -f "$headersdir")
11761 elif test -e "/lib/modules/$(uname -r)/build"; then
11762 headersdir="/lib/modules/$(uname -r)/build"
11763 sourcelink=$(readlink -f "$headersdir")
11764 else
11765 sourcelink=$(ls -1d /usr/src/kernels/* \
11766 /usr/src/linux-* \
11767 2>/dev/null | grep -v obj | tail -1)
11768 fi
11769
11770 if test -n "$sourcelink" && test -e ${sourcelink}; then
11771 kernelsrc=`readlink -f ${sourcelink}`
11772 else
11773 kernelsrc="Not found"
11774 fi
11775 else
11776 if test "$kernelsrc" = "NONE"; then
11777 kernsrcver=NONE
11778 fi
11779 fi
11780
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
11782$as_echo "$kernelsrc" >&6; }
11783 if test ! -d "$kernelsrc"; then
11784 as_fn_error $? "
11785 *** Please make sure the kernel devel package for your distribution
11786 *** is installed and then try again. If that fails, you can specify the
11787 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
11788 fi
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
11791$as_echo_n "checking kernel build directory... " >&6; }
11792 if test -z "$kernelbuild"; then
11793 if test -e "/lib/modules/$(uname -r)/build"; then
11794 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
11795 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
11796 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11797 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
11798 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
11799 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
11800 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
11801 else
11802 kernelbuild=${kernelsrc}
11803 fi
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
11806$as_echo "$kernelbuild" >&6; }
11807
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
11809$as_echo_n "checking kernel source version... " >&6; }
11810 utsrelease1=$kernelbuild/include/linux/version.h
11811 utsrelease2=$kernelbuild/include/linux/utsrelease.h
11812 utsrelease3=$kernelbuild/include/generated/utsrelease.h
11813 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
11814 utsrelease=linux/version.h
11815 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
11816 utsrelease=linux/utsrelease.h
11817 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
11818 utsrelease=generated/utsrelease.h
11819 fi
11820
11821 if test "$utsrelease"; then
11822 kernsrcver=`(echo "#include <$utsrelease>";
11823 echo "kernsrcver=UTS_RELEASE") |
11824 cpp -I $kernelbuild/include |
11825 grep "^kernsrcver=" | cut -d \" -f 2`
11826
11827 if test -z "$kernsrcver"; then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11829$as_echo "Not found" >&6; }
11830 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
11831 fi
11832 else
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11834$as_echo "Not found" >&6; }
11835 if test "x$enable_linux_builtin" != xyes; then
11836 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
11837 else
11838 as_fn_error $? "
11839 *** Cannot find UTS_RELEASE definition.
11840 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
11841 fi
11842 fi
11843
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
11845$as_echo "$kernsrcver" >&6; }
11846
11847 LINUX=${kernelsrc}
11848 LINUX_OBJ=${kernelbuild}
11849 LINUX_VERSION=${kernsrcver}
11850
11851
11852
11853
11854
11855
11856 modpost=$LINUX/scripts/Makefile.modpost
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
11858$as_echo_n "checking kernel file name for module symbols... " >&6; }
11859 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
11860 if grep -q Modules.symvers $modpost; then
11861 LINUX_SYMBOLS=Modules.symvers
11862 else
11863 LINUX_SYMBOLS=Module.symvers
11864 fi
11865
11866 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
11867 as_fn_error $? "
11868 *** Please make sure the kernel devel package for your distribution
11869 *** is installed. If you are building with a custom kernel, make sure the
11870 *** kernel is configured, built, and the '--with-linux=PATH' configure
11871 *** option refers to the location of the kernel source." "$LINENO" 5
11872 fi
11873 else
11874 LINUX_SYMBOLS=NONE
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
11877$as_echo "$LINUX_SYMBOLS" >&6; }
11878
11879
11880
11881
11882 if test "${LINUX_OBJ}" != "${LINUX}"; then
11883 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
11884 fi
11885
11886
11887 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
11888
11889
11890
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
11892$as_echo_n "checking whether debugging is enabled... " >&6; }
11893 # Check whether --enable-debug was given.
11894if test "${enable_debug+set}" = set; then :
11895 enableval=$enable_debug;
11896else
11897 enable_debug=no
11898fi
11899
11900
11901 if test "x$enable_debug" = xyes; then :
11902
11903 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
11904 DEBUG_CFLAGS="-DDEBUG -Werror"
11905 DEBUG_SPL="_with_debug"
11906
11907else
11908
11909 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
11910 DEBUG_CFLAGS="-DNDEBUG"
11911 DEBUG_SPL="_without_debug"
11912
11913fi
11914
11915
11916
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
11918$as_echo "$enable_debug" >&6; }
11919
11920
11921 # Check whether --enable-debug-kmem was given.
11922if test "${enable_debug_kmem+set}" = set; then :
11923 enableval=$enable_debug_kmem;
11924else
f6188ddd 11925 enable_debug_kmem=no
10946b02
AX
11926fi
11927
11928
11929 if test "x$enable_debug_kmem" = xyes; then :
11930
11931 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
11932 DEBUG_KMEM="_with_debug_kmem"
11933
11934$as_echo "#define DEBUG_KMEM 1" >>confdefs.h
11935
11936
11937else
11938
11939 DEBUG_KMEM="_without_debug_kmem"
11940
11941fi
11942
11943
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
11945$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
11947$as_echo "$enable_debug_kmem" >&6; }
11948
11949
11950 # Check whether --enable-debug-kmem-tracking was given.
11951if test "${enable_debug_kmem_tracking+set}" = set; then :
11952 enableval=$enable_debug_kmem_tracking;
11953else
11954 enable_debug_kmem_tracking=no
11955fi
11956
11957
11958 if test "x$enable_debug_kmem_tracking" = xyes; then :
11959
11960 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
11961 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
11962
11963$as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
11964
11965
11966else
11967
11968 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
11969
11970fi
11971
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
11974$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
11976$as_echo "$enable_debug_kmem_tracking" >&6; }
11977
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
11979$as_echo_n "checking whether modules can be built... " >&6; }
11980
11981
11982cat confdefs.h - <<_ACEOF >conftest.c
11983
11984
11985int
11986main (void)
11987{
11988
11989 ;
11990 return 0;
11991}
11992
11993_ACEOF
11994
11995
11996 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
11997 echo "obj-m := conftest.o" >build/Makefile
11998 modpost_flag=''
11999 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12000 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12005 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12010 test $ac_status = 0; }; }; then :
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12013$as_echo "yes" >&6; }
12014
12015else
12016 $as_echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020$as_echo "no" >&6; }
12021 if test "x$enable_linux_builtin" != xyes; then
12022 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
12023 else
12024 as_fn_error $? "
12025 *** Unable to build an empty module.
12026 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12027 fi
12028
12029
12030
12031fi
12032 rm -Rf build
12033
12034
12035
879bbbc7
AX
12036 if test "x$cross_compiling" != xyes; then :
12037
12038 if test "$cross_compiling" = yes; then :
10946b02
AX
12039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12041as_fn_error $? "cannot run test program while cross compiling
12042See \`config.log' for more details" "$LINENO" 5; }
12043else
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045/* end confdefs.h. */
12046
12047
879bbbc7 12048 #include "$LINUX/include/linux/license.h"
10946b02
AX
12049
12050int
12051main ()
12052{
12053
879bbbc7
AX
12054 return !license_is_gpl_compatible(
12055 "$SPL_META_LICENSE");
10946b02
AX
12056
12057 ;
12058 return 0;
12059}
12060
12061_ACEOF
12062if ac_fn_c_try_run "$LINENO"; then :
12063
12064
12065$as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
12066
12067
12068fi
12069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12070 conftest.$ac_objext conftest.beam conftest.$ac_ext
12071fi
12072
12073
879bbbc7
AX
12074fi
12075
10946b02
AX
12076
12077 # Check whether --enable-atomic-spinlocks was given.
12078if test "${enable_atomic_spinlocks+set}" = set; then :
12079 enableval=$enable_atomic_spinlocks;
12080else
12081 enable_atomic_spinlocks=check
12082fi
12083
12084
12085
12086
12087cat confdefs.h - <<_ACEOF >conftest.c
12088
12089
12090 #include <linux/fs.h>
12091
12092int
12093main (void)
12094{
12095
12096 atomic64_t *ptr __attribute__ ((unused));
12097
12098 ;
12099 return 0;
12100}
12101
12102_ACEOF
12103
12104
12105 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12106 echo "obj-m := conftest.o" >build/Makefile
12107 modpost_flag=''
12108 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12109 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12114 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12119 test $ac_status = 0; }; }; then :
12120
12121 have_atomic64_t=yes
12122
12123$as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
12124
12125
12126else
12127 $as_echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 have_atomic64_t=no
12131
12132
12133
12134fi
12135 rm -Rf build
12136
12137
12138
12139 if test "x$enable_atomic_spinlocks" = xcheck; then :
12140
12141 if test "x$have_atomic64_t" = xyes; then :
12142
12143 enable_atomic_spinlocks=no
12144
12145else
12146
12147 enable_atomic_spinlocks=yes
12148
12149fi
12150
12151fi
12152
12153 if test "x$enable_atomic_spinlocks" = xyes; then :
12154
12155
12156$as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
12157
12158
12159else
12160
12161 if test "x$have_atomic64_t" = xno; then :
12162
12163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12165as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
12166See \`config.log' for more details" "$LINENO" 5; }
12167
12168fi
12169
12170fi
12171
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
12173$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
12175$as_echo "$enable_atomic_spinlocks" >&6; }
12176
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
12178$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
12180$as_echo "$have_atomic64_t" >&6; }
12181
12182
12183 tmp_flags="$EXTRA_KCFLAGS"
12184 EXTRA_KCFLAGS="-Werror"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
12186$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
12187
12188
12189cat confdefs.h - <<_ACEOF >conftest.c
12190
12191
12192 #include <linux/mm.h>
12193
12194 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
12195
12196int
12197main (void)
12198{
12199
12200 struct shrinker cache_shrinker = {
12201 .shrink = shrinker_cb,
12202 .seeks = DEFAULT_SEEKS,
12203 };
12204 register_shrinker(&cache_shrinker);
12205
12206 ;
12207 return 0;
12208}
12209
12210_ACEOF
12211
12212
12213 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12214 echo "obj-m := conftest.o" >build/Makefile
12215 modpost_flag=''
12216 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12217 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12227 test $ac_status = 0; }; }; then :
12228
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12230$as_echo "yes" >&6; }
12231
12232$as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
12233
12234
12235else
12236 $as_echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240$as_echo "no" >&6; }
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
12242$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
12243
12244
12245cat confdefs.h - <<_ACEOF >conftest.c
12246
12247
12248 #include <linux/mm.h>
12249
12250 int shrinker_cb(struct shrinker *, int nr_to_scan,
12251 gfp_t gfp_mask);
12252
12253int
12254main (void)
12255{
12256
12257 struct shrinker cache_shrinker = {
12258 .shrink = shrinker_cb,
12259 .seeks = DEFAULT_SEEKS,
12260 };
12261 register_shrinker(&cache_shrinker);
12262
12263 ;
12264 return 0;
12265}
12266
12267_ACEOF
12268
12269
12270 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12271 echo "obj-m := conftest.o" >build/Makefile
12272 modpost_flag=''
12273 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12274 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12279 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12284 test $ac_status = 0; }; }; then :
12285
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12287$as_echo "yes" >&6; }
12288
12289$as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
12290
12291
12292else
12293 $as_echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
12299$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
12300
12301
12302cat confdefs.h - <<_ACEOF >conftest.c
12303
12304
12305 #include <linux/mm.h>
12306
12307 int shrinker_cb(struct shrinker *,
12308 struct shrink_control *sc);
12309
12310int
12311main (void)
12312{
12313
12314 struct shrinker cache_shrinker = {
12315 .shrink = shrinker_cb,
12316 .seeks = DEFAULT_SEEKS,
12317 };
12318 register_shrinker(&cache_shrinker);
12319
12320 ;
12321 return 0;
12322}
12323
12324_ACEOF
12325
12326
12327 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12328 echo "obj-m := conftest.o" >build/Makefile
12329 modpost_flag=''
12330 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12331 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12336 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12341 test $ac_status = 0; }; }; then :
12342
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344$as_echo "yes" >&6; }
12345
12346$as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h
12347
12348
12349else
12350 $as_echo "$as_me: failed program was:" >&5
12351sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354$as_echo "no" >&6; }
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5
12356$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
12357
12358
12359cat confdefs.h - <<_ACEOF >conftest.c
12360
12361
12362 #include <linux/mm.h>
12363
12364 unsigned long shrinker_cb(
12365 struct shrinker *,
12366 struct shrink_control *sc);
12367
12368int
12369main (void)
12370{
12371
12372 struct shrinker cache_shrinker = {
12373 .count_objects = shrinker_cb,
12374 .scan_objects = shrinker_cb,
12375 .seeks = DEFAULT_SEEKS,
12376 };
12377 register_shrinker(&cache_shrinker);
12378
12379 ;
12380 return 0;
12381}
12382
12383_ACEOF
12384
12385
12386 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12387 echo "obj-m := conftest.o" >build/Makefile
12388 modpost_flag=''
12389 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12390 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12395 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12400 test $ac_status = 0; }; }; then :
12401
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403$as_echo "yes" >&6; }
12404
12405$as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
12406
12407
12408else
12409 $as_echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 as_fn_error $? "error" "$LINENO" 5
12413
12414
12415
12416fi
12417 rm -Rf build
12418
12419
12420
12421
12422
12423fi
12424 rm -Rf build
12425
12426
12427
12428
12429
12430fi
12431 rm -Rf build
12432
12433
12434
12435
12436
12437fi
12438 rm -Rf build
12439
12440
12441 EXTRA_KCFLAGS="$tmp_flags"
12442
12443
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
12445$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
12446
12447
12448cat confdefs.h - <<_ACEOF >conftest.c
12449
12450
12451 #include <linux/sysctl.h>
12452
12453int
12454main (void)
12455{
12456
12457 struct ctl_table ctl __attribute__ ((unused));
12458 ctl.ctl_name = 0;
12459
12460 ;
12461 return 0;
12462}
12463
12464_ACEOF
12465
12466
12467 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12468 echo "obj-m := conftest.o" >build/Makefile
12469 modpost_flag=''
12470 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12471 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12476 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12481 test $ac_status = 0; }; }; then :
12482
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12484$as_echo "yes" >&6; }
12485
12486$as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
12487
12488
12489else
12490 $as_echo "$as_me: failed program was:" >&5
12491sed 's/^/| /' conftest.$ac_ext >&5
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
12495
12496
12497
12498fi
12499 rm -Rf build
12500
12501
12502
12503
0f836a62
AX
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
12505$as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
12506
12507
12508cat confdefs.h - <<_ACEOF >conftest.c
12509
12510
12511 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
12512 #error CONFIG_TRIM_UNUSED_KSYMS not defined
12513 #endif
12514
12515int
12516main (void)
12517{
12518
12519 ;
12520 return 0;
12521}
12522
12523_ACEOF
12524
12525
12526 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12527 echo "obj-m := conftest.o" >build/Makefile
12528 modpost_flag=''
12529 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12530 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12535 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12537 (eval $ac_try) 2>&5
12538 ac_status=$?
12539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12540 test $ac_status = 0; }; }; then :
12541
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12543$as_echo "yes" >&6; }
12544
12545else
12546 $as_echo "$as_me: failed program was:" >&5
12547sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
12551 as_fn_error $? "
12552 *** This kernel has unused symbols trimming enabled, please disable.
12553 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5
12554
12555
12556
12557fi
12558 rm -Rf build
12559
12560
12561
12562
10946b02
AX
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
12564$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
12565
12566
12567
12568cat confdefs.h - <<_ACEOF >conftest.c
12569
12570
12571 #include <linux/proc_fs.h>
12572
12573int
12574main (void)
12575{
12576
12577 PDE_DATA(NULL);
12578
12579 ;
12580 return 0;
12581}
12582
12583_ACEOF
12584
12585
12586 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12587 echo "obj-m := conftest.o" >build/Makefile
12588 modpost_flag=''
12589 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12590 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12592 (eval $ac_try) 2>&5
12593 ac_status=$?
12594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12595 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600 test $ac_status = 0; }; }; then :
12601 rc=0
12602else
12603 $as_echo "$as_me: failed program was:" >&5
12604sed 's/^/| /' conftest.$ac_ext >&5
12605 rc=1
12606
12607
12608fi
12609 rm -Rf build
12610
12611
12612 if test $rc -ne 0; then :
12613
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615$as_echo "no" >&6; }
12616
12617 else
12618 if test "x$enable_linux_builtin" != xyes; then
12619
12620 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
12621 $LINUX_OBJ/Module*.symvers 2>/dev/null
12622 rc=$?
12623 if test $rc -ne 0; then
12624 export=0
12625 for file in ; do
12626 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
12627 "$LINUX_OBJ/$file" 2>/dev/null
12628 rc=$?
12629 if test $rc -eq 0; then
12630 export=1
12631 break;
12632 fi
12633 done
12634 if test $export -eq 0; then :
12635 rc=1
12636 else :
12637 rc=0
12638 fi
12639 else :
12640 rc=0
12641 fi
12642
12643 fi
12644 if test $rc -ne 0; then :
12645
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12647$as_echo "no" >&6; }
12648
12649 else :
12650
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12652$as_echo "yes" >&6; }
12653
12654$as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
12655
12656
12657 fi
12658 fi
12659
12660
12661 tmp_flags="$EXTRA_KCFLAGS"
12662 EXTRA_KCFLAGS="-Werror"
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
12664$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
12665
12666
12667cat confdefs.h - <<_ACEOF >conftest.c
12668
12669
12670 #include <linux/spinlock.h>
12671 #include <linux/fs_struct.h>
12672 #include <linux/path.h>
12673 void (*const set_fs_pwd_func)
12674 (struct fs_struct *, const struct path *)
12675 = set_fs_pwd;
12676
12677int
12678main (void)
12679{
12680
12681 return 0;
12682
12683 ;
12684 return 0;
12685}
12686
12687_ACEOF
12688
12689
12690 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12691 echo "obj-m := conftest.o" >build/Makefile
12692 modpost_flag=''
12693 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12694 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12704 test $ac_status = 0; }; }; then :
12705
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12707$as_echo "yes" >&6; }
12708
12709$as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
12710
12711
12712else
12713 $as_echo "$as_me: failed program was:" >&5
12714sed 's/^/| /' conftest.$ac_ext >&5
12715
12716
12717
12718cat confdefs.h - <<_ACEOF >conftest.c
12719
12720
12721 #include <linux/spinlock.h>
12722 #include <linux/fs_struct.h>
12723 #include <linux/path.h>
12724 void (*const set_fs_pwd_func)
12725 (struct fs_struct *, struct path *)
12726 = set_fs_pwd;
12727
12728int
12729main (void)
12730{
12731
12732 return 0;
12733
12734 ;
12735 return 0;
12736}
12737
12738_ACEOF
12739
12740
12741 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12742 echo "obj-m := conftest.o" >build/Makefile
12743 modpost_flag=''
12744 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12745 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12750 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12752 (eval $ac_try) 2>&5
12753 ac_status=$?
12754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12755 test $ac_status = 0; }; }; then :
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
12759
12760else
12761 $as_echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
12764 as_fn_error $? "unknown" "$LINENO" 5
12765
12766
12767
12768fi
12769 rm -Rf build
12770
12771
12772
12773
12774
12775fi
12776 rm -Rf build
12777
12778
12779 EXTRA_KCFLAGS="$tmp_flags"
12780
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
12782$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
12783
12784
12785cat confdefs.h - <<_ACEOF >conftest.c
12786
12787
12788 #include <linux/fs.h>
12789
12790int
12791main (void)
12792{
12793
12794 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
12795
12796 ;
12797 return 0;
12798}
12799
12800_ACEOF
12801
12802
12803 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12804 echo "obj-m := conftest.o" >build/Makefile
12805 modpost_flag=''
12806 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12807 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12812 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12817 test $ac_status = 0; }; }; then :
12818
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12820$as_echo "yes" >&6; }
12821
12822$as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
12823
12824
12825else
12826 $as_echo "$as_me: failed program was:" >&5
12827sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830$as_echo "no" >&6; }
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
12832$as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
12833
12834
12835cat confdefs.h - <<_ACEOF >conftest.c
12836
12837
12838 #include <linux/fs.h>
12839
12840int
12841main (void)
12842{
12843
12844 vfs_unlink((struct inode *) NULL,
12845 (struct dentry *) NULL,
12846 (struct inode **) NULL);
12847
12848 ;
12849 return 0;
12850}
12851
12852_ACEOF
12853
12854
12855 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12856 echo "obj-m := conftest.o" >build/Makefile
12857 modpost_flag=''
12858 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12859 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12869 test $ac_status = 0; }; }; then :
12870
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12872$as_echo "yes" >&6; }
12873
12874$as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
12875
12876
12877else
12878 $as_echo "$as_me: failed program was:" >&5
12879sed 's/^/| /' conftest.$ac_ext >&5
12880
12881 as_fn_error $? "no" "$LINENO" 5
12882
12883
12884
12885fi
12886 rm -Rf build
12887
12888
12889
12890
12891
12892
12893fi
12894 rm -Rf build
12895
12896
12897
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
12899$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
12900
12901
12902cat confdefs.h - <<_ACEOF >conftest.c
12903
12904
12905 #include <linux/fs.h>
12906
12907int
12908main (void)
12909{
12910
12911 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
12912 (struct inode *) NULL, (struct dentry *) NULL);
12913
12914 ;
12915 return 0;
12916}
12917
12918_ACEOF
12919
12920
12921 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12922 echo "obj-m := conftest.o" >build/Makefile
12923 modpost_flag=''
12924 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12925 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12927 (eval $ac_try) 2>&5
12928 ac_status=$?
12929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12930 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12935 test $ac_status = 0; }; }; then :
12936
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12938$as_echo "yes" >&6; }
12939
12940$as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
12941
12942
12943else
12944 $as_echo "$as_me: failed program was:" >&5
12945sed 's/^/| /' conftest.$ac_ext >&5
12946
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948$as_echo "no" >&6; }
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
12950$as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
12951
12952
12953cat confdefs.h - <<_ACEOF >conftest.c
12954
12955
12956 #include <linux/fs.h>
12957
12958int
12959main (void)
12960{
12961
12962 vfs_rename((struct inode *) NULL,
12963 (struct dentry *) NULL,
12964 (struct inode *) NULL,
12965 (struct dentry *) NULL,
12966 (struct inode **) NULL);
12967
12968 ;
12969 return 0;
12970}
12971
12972_ACEOF
12973
12974
12975 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
12976 echo "obj-m := conftest.o" >build/Makefile
12977 modpost_flag=''
12978 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
12979 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12984 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
12985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12989 test $ac_status = 0; }; }; then :
12990
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12992$as_echo "yes" >&6; }
12993
12994$as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
12995
12996
12997else
12998 $as_echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002$as_echo "no" >&6; }
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
13004$as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
13005
13006
13007cat confdefs.h - <<_ACEOF >conftest.c
13008
13009
13010 #include <linux/fs.h>
13011
13012int
13013main (void)
13014{
13015
13016 vfs_rename((struct inode *) NULL,
13017 (struct dentry *) NULL,
13018 (struct inode *) NULL,
13019 (struct dentry *) NULL,
13020 (struct inode **) NULL,
13021 (unsigned int) 0);
13022
13023 ;
13024 return 0;
13025}
13026
13027_ACEOF
13028
13029
13030 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13031 echo "obj-m := conftest.o" >build/Makefile
13032 modpost_flag=''
13033 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13034 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13036 (eval $ac_try) 2>&5
13037 ac_status=$?
13038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13039 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13044 test $ac_status = 0; }; }; then :
13045
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13047$as_echo "yes" >&6; }
13048
13049$as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
13050
13051
13052else
13053 $as_echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 as_fn_error $? "no" "$LINENO" 5
13057
13058
13059
13060fi
13061 rm -Rf build
13062
13063
13064
13065
13066
13067fi
13068 rm -Rf build
13069
13070
13071
13072
13073
13074fi
13075 rm -Rf build
13076
13077
13078
13079
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
13081$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
13082
13083
13084cat confdefs.h - <<_ACEOF >conftest.c
13085
13086
13087 #include <linux/fs.h>
13088
13089int
13090main (void)
13091{
13092
13093 vfs_fsync(NULL, 0);
13094
13095 ;
13096 return 0;
13097}
13098
13099_ACEOF
13100
13101
13102 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13103 echo "obj-m := conftest.o" >build/Makefile
13104 modpost_flag=''
13105 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13106 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13111 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116 test $ac_status = 0; }; }; then :
13117
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13119$as_echo "yes" >&6; }
13120
13121$as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
13122
13123
13124else
13125 $as_echo "$as_me: failed program was:" >&5
13126sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129$as_echo "no" >&6; }
13130
13131
13132
13133fi
13134 rm -Rf build
13135
13136
13137
13138
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
13140$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
13141
13142
13143cat confdefs.h - <<_ACEOF >conftest.c
13144
13145
13146 #include <linux/fs.h>
13147
13148int
13149main (void)
13150{
13151
13152 struct inode_operations ops;
13153 ops.truncate_range = NULL;
13154
13155 ;
13156 return 0;
13157}
13158
13159_ACEOF
13160
13161
13162 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13163 echo "obj-m := conftest.o" >build/Makefile
13164 modpost_flag=''
13165 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13166 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13168 (eval $ac_try) 2>&5
13169 ac_status=$?
13170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }; }; then :
13177
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13179$as_echo "yes" >&6; }
13180
13181$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
13182
13183
13184else
13185 $as_echo "$as_me: failed program was:" >&5
13186sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189$as_echo "no" >&6; }
13190
13191
13192
13193fi
13194 rm -Rf build
13195
13196
13197
13198
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
13200$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
13201 tmp_flags="$EXTRA_KCFLAGS"
13202 EXTRA_KCFLAGS="-Werror"
13203
13204
13205cat confdefs.h - <<_ACEOF >conftest.c
13206
13207
13208 #include <linux/sched.h>
13209 #include <linux/fs_struct.h>
13210
13211int
13212main (void)
13213{
13214
13215 static struct fs_struct fs;
13216 spin_lock_init(&fs.lock);
13217
13218 ;
13219 return 0;
13220}
13221
13222_ACEOF
13223
13224
13225 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13226 echo "obj-m := conftest.o" >build/Makefile
13227 modpost_flag=''
13228 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13229 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13231 (eval $ac_try) 2>&5
13232 ac_status=$?
13233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13234 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13236 (eval $ac_try) 2>&5
13237 ac_status=$?
13238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13239 test $ac_status = 0; }; }; then :
13240
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242$as_echo "yes" >&6; }
13243
13244$as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
13245
13246
13247else
13248 $as_echo "$as_me: failed program was:" >&5
13249sed 's/^/| /' conftest.$ac_ext >&5
13250
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252$as_echo "no" >&6; }
13253
13254
13255
13256fi
13257 rm -Rf build
13258
13259
13260 EXTRA_KCFLAGS="$tmp_flags"
13261
13262
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
13264$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
13265
13266
13267cat confdefs.h - <<_ACEOF >conftest.c
13268
13269
13270 #include <linux/uidgid.h>
13271
13272int
13273main (void)
13274{
13275
13276 kuid_t userid = KUIDT_INIT(0);
13277 kgid_t groupid = KGIDT_INIT(0);
13278
13279 ;
13280 return 0;
13281}
13282
13283_ACEOF
13284
13285
13286 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13287 echo "obj-m := conftest.o" >build/Makefile
13288 modpost_flag=''
13289 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13290 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13295 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13300 test $ac_status = 0; }; }; then :
13301
13302
13303
13304cat confdefs.h - <<_ACEOF >conftest.c
13305
13306
13307 #include <linux/uidgid.h>
13308
13309int
13310main (void)
13311{
13312
13313 kuid_t userid = 0;
13314 kgid_t groupid = 0;
13315
13316 ;
13317 return 0;
13318}
13319
13320_ACEOF
13321
13322
13323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13324 echo "obj-m := conftest.o" >build/Makefile
13325 modpost_flag=''
13326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13327 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13332 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13337 test $ac_status = 0; }; }; then :
13338
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
13340$as_echo "yes; optional" >&6; }
13341
13342else
13343 $as_echo "$as_me: failed program was:" >&5
13344sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
13347$as_echo "yes; mandatory" >&6; }
13348
13349$as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
13350
13351
13352
13353
13354fi
13355 rm -Rf build
13356
13357
13358
13359else
13360 $as_echo "$as_me: failed program was:" >&5
13361sed 's/^/| /' conftest.$ac_ext >&5
13362
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364$as_echo "no" >&6; }
13365
13366
13367
13368fi
13369 rm -Rf build
13370
13371
13372
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
13374$as_echo_n "checking whether __put_task_struct() is available... " >&6; }
13375
13376
13377
13378cat confdefs.h - <<_ACEOF >conftest.c
13379
13380
13381 #include <linux/sched.h>
13382
13383int
13384main (void)
13385{
13386
13387 __put_task_struct(NULL);
13388
13389 ;
13390 return 0;
13391}
13392
13393_ACEOF
13394
13395
13396 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13397 echo "obj-m := conftest.o" >build/Makefile
13398 modpost_flag=''
13399 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13400 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13407 (eval $ac_try) 2>&5
13408 ac_status=$?
13409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13410 test $ac_status = 0; }; }; then :
13411 rc=0
13412else
13413 $as_echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415 rc=1
13416
13417
13418fi
13419 rm -Rf build
13420
13421
13422 if test $rc -ne 0; then :
13423
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425$as_echo "no" >&6; }
13426
13427 else
13428 if test "x$enable_linux_builtin" != xyes; then
13429
13430 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
13431 $LINUX_OBJ/Module*.symvers 2>/dev/null
13432 rc=$?
13433 if test $rc -ne 0; then
13434 export=0
13435 for file in ; do
13436 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
13437 "$LINUX_OBJ/$file" 2>/dev/null
13438 rc=$?
13439 if test $rc -eq 0; then
13440 export=1
13441 break;
13442 fi
13443 done
13444 if test $export -eq 0; then :
13445 rc=1
13446 else :
13447 rc=0
13448 fi
13449 else :
13450 rc=0
13451 fi
13452
13453 fi
13454 if test $rc -ne 0; then :
13455
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457$as_echo "no" >&6; }
13458
13459 else :
13460
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13462$as_echo "yes" >&6; }
13463
13464$as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
13465
13466
13467 fi
13468 fi
13469
13470
10946b02
AX
13471
13472
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
13474$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13475
13476
13477cat confdefs.h - <<_ACEOF >conftest.c
13478
13479
13480 #include <linux/fs.h>
13481
13482int
13483main (void)
13484{
13485
13486 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13487 struct file_operations fops __attribute__ ((unused)) = {
13488 .fallocate = fallocate,
13489 };
13490
13491 ;
13492 return 0;
13493}
13494
13495_ACEOF
13496
13497
13498 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13499 echo "obj-m := conftest.o" >build/Makefile
13500 modpost_flag=''
13501 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13502 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13504 (eval $ac_try) 2>&5
13505 ac_status=$?
13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13512 test $ac_status = 0; }; }; then :
13513
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13515$as_echo "yes" >&6; }
13516
13517$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
13518
13519
13520else
13521 $as_echo "$as_me: failed program was:" >&5
13522sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525$as_echo "no" >&6; }
13526
13527
13528
13529fi
13530 rm -Rf build
13531
13532
13533
13534
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
13536$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
13537
13538
13539cat confdefs.h - <<_ACEOF >conftest.c
13540
13541
13542 #include <linux/fs.h>
13543
13544int
13545main (void)
13546{
13547
13548 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
13549 struct inode_operations fops __attribute__ ((unused)) = {
13550 .fallocate = fallocate,
13551 };
13552
13553 ;
13554 return 0;
13555}
13556
13557_ACEOF
13558
13559
13560 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13561 echo "obj-m := conftest.o" >build/Makefile
13562 modpost_flag=''
13563 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13564 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13566 (eval $ac_try) 2>&5
13567 ac_status=$?
13568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13569 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13571 (eval $ac_try) 2>&5
13572 ac_status=$?
13573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574 test $ac_status = 0; }; }; then :
13575
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13577$as_echo "yes" >&6; }
13578
13579$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
13580
13581
13582else
13583 $as_echo "$as_me: failed program was:" >&5
13584sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13587$as_echo "no" >&6; }
13588
13589
13590
13591fi
13592 rm -Rf build
13593
13594
13595
13596
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
13598$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
13599
13600
13601cat confdefs.h - <<_ACEOF >conftest.c
13602
13603
13604 #include <linux/fs.h>
13605
13606int
13607main (void)
13608{
13609
13610 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
13611 struct file_operations_no_const fops __attribute__ ((unused)) = {
13612 .fallocate = fallocate,
13613 };
13614
13615 ;
13616 return 0;
13617}
13618
13619_ACEOF
13620
13621
13622 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13623 echo "obj-m := conftest.o" >build/Makefile
13624 modpost_flag=''
13625 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13626 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13631 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13636 test $ac_status = 0; }; }; then :
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13639$as_echo "yes" >&6; }
13640
13641$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
13642
13643
13644else
13645 $as_echo "$as_me: failed program was:" >&5
13646sed 's/^/| /' conftest.$ac_ext >&5
13647
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649$as_echo "no" >&6; }
13650
13651
13652
13653fi
13654 rm -Rf build
13655
13656
13657
13658
13659
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
13661$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
13662
13663
13664cat confdefs.h - <<_ACEOF >conftest.c
13665
13666
13667 #if !defined(CONFIG_ZLIB_INFLATE) && \
13668 !defined(CONFIG_ZLIB_INFLATE_MODULE)
13669 #error CONFIG_ZLIB_INFLATE not defined
13670 #endif
13671
13672int
13673main (void)
13674{
13675
13676 ;
13677 return 0;
13678}
13679
13680_ACEOF
13681
13682
13683 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13684 echo "obj-m := conftest.o" >build/Makefile
13685 modpost_flag=''
13686 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13687 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13692 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13694 (eval $ac_try) 2>&5
13695 ac_status=$?
13696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697 test $ac_status = 0; }; }; then :
13698
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13700$as_echo "yes" >&6; }
13701
13702else
13703 $as_echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13707$as_echo "no" >&6; }
13708 as_fn_error $? "
13709 *** This kernel does not include the required zlib inflate support.
13710 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
13711
13712
13713
13714fi
13715 rm -Rf build
13716
13717
13718
13719
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
13721$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
13722
13723
13724cat confdefs.h - <<_ACEOF >conftest.c
13725
13726
13727 #if !defined(CONFIG_ZLIB_DEFLATE) && \
13728 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
13729 #error CONFIG_ZLIB_DEFLATE not defined
13730 #endif
13731
13732int
13733main (void)
13734{
13735
13736 ;
13737 return 0;
13738}
13739
13740_ACEOF
13741
13742
13743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13744 echo "obj-m := conftest.o" >build/Makefile
13745 modpost_flag=''
13746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13747 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13752 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13754 (eval $ac_try) 2>&5
13755 ac_status=$?
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757 test $ac_status = 0; }; }; then :
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13760$as_echo "yes" >&6; }
13761
13762else
13763 $as_echo "$as_me: failed program was:" >&5
13764sed 's/^/| /' conftest.$ac_ext >&5
13765
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768 as_fn_error $? "
13769 *** This kernel does not include the required zlib deflate support.
13770 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
13771
13772
13773
13774fi
13775 rm -Rf build
13776
13777
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
13780$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
13781
13782
13783cat confdefs.h - <<_ACEOF >conftest.c
13784
13785
13786 #include <linux/zlib.h>
13787
13788int
13789main (void)
13790{
13791
13792 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
13793
13794 ;
13795 return 0;
13796}
13797
13798_ACEOF
13799
13800
13801 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13802 echo "obj-m := conftest.o" >build/Makefile
13803 modpost_flag=''
13804 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13805 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13810 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13812 (eval $ac_try) 2>&5
13813 ac_status=$?
13814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13815 test $ac_status = 0; }; }; then :
13816
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13818$as_echo "yes" >&6; }
13819
13820$as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
13821
13822
13823else
13824 $as_echo "$as_me: failed program was:" >&5
13825sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13828$as_echo "no" >&6; }
13829
13830
13831
13832fi
13833 rm -Rf build
13834
13835
13836
13837
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
13839$as_echo_n "checking whether struct shrink_control exists... " >&6; }
13840
13841
13842cat confdefs.h - <<_ACEOF >conftest.c
13843
13844
13845 #include <linux/mm.h>
13846
13847int
13848main (void)
13849{
13850
13851 struct shrink_control sc __attribute__ ((unused));
13852
13853 sc.nr_to_scan = 0;
13854 sc.gfp_mask = GFP_KERNEL;
13855
13856 ;
13857 return 0;
13858}
13859
13860_ACEOF
13861
13862
13863 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13864 echo "obj-m := conftest.o" >build/Makefile
13865 modpost_flag=''
13866 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13872 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; }; then :
13878
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13880$as_echo "yes" >&6; }
13881
13882$as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
13883
13884
13885else
13886 $as_echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890$as_echo "no" >&6; }
13891
13892
13893
13894fi
13895 rm -Rf build
13896
13897
13898
13899
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
13901$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
13902 tmp_flags="$EXTRA_KCFLAGS"
13903 EXTRA_KCFLAGS="-Werror"
13904
13905
13906cat confdefs.h - <<_ACEOF >conftest.c
13907
13908
13909 #include <linux/rwsem.h>
13910
13911int
13912main (void)
13913{
13914
13915 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
13916 raw_spinlock_t dummy_lock __attribute__ ((unused));
13917 dummy_semaphore.wait_lock = dummy_lock;
13918
13919 ;
13920 return 0;
13921}
13922
13923_ACEOF
13924
13925
13926 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13927 echo "obj-m := conftest.o" >build/Makefile
13928 modpost_flag=''
13929 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13930 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13935 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940 test $ac_status = 0; }; }; then :
13941
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943$as_echo "yes" >&6; }
13944
13945$as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
13946
13947
13948else
13949 $as_echo "$as_me: failed program was:" >&5
13950sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953$as_echo "no" >&6; }
13954
13955
13956
0f836a62
AX
13957fi
13958 rm -Rf build
13959
13960
13961 EXTRA_KCFLAGS="$tmp_flags"
13962
13963
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5
13965$as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
13966 tmp_flags="$EXTRA_KCFLAGS"
13967 EXTRA_KCFLAGS="-Werror"
13968
13969
13970cat confdefs.h - <<_ACEOF >conftest.c
13971
13972
13973 #include <linux/rwsem.h>
13974
13975int
13976main (void)
13977{
13978
13979 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
13980 dummy_semaphore.activity = 0;
13981
13982 ;
13983 return 0;
13984}
13985
13986_ACEOF
13987
13988
13989 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
13990 echo "obj-m := conftest.o" >build/Makefile
13991 modpost_flag=''
13992 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
13993 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13995 (eval $ac_try) 2>&5
13996 ac_status=$?
13997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13998 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
13999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; }; }; then :
14004
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14006$as_echo "yes" >&6; }
14007
14008$as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h
14009
14010
14011else
14012 $as_echo "$as_me: failed program was:" >&5
14013sed 's/^/| /' conftest.$ac_ext >&5
14014
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14016$as_echo "no" >&6; }
14017
14018
14019
14020fi
14021 rm -Rf build
14022
14023
14024 EXTRA_KCFLAGS="$tmp_flags"
14025
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5
14028$as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
14029 tmp_flags="$EXTRA_KCFLAGS"
14030 EXTRA_KCFLAGS="-Werror"
14031
14032
14033cat confdefs.h - <<_ACEOF >conftest.c
14034
14035
14036 #include <linux/rwsem.h>
14037
14038int
14039main (void)
14040{
14041
14042 DECLARE_RWSEM(dummy_semaphore);
14043 (void) atomic_long_read(&dummy_semaphore.count);
14044
14045 ;
14046 return 0;
14047}
14048
14049_ACEOF
14050
14051
14052 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14053 echo "obj-m := conftest.o" >build/Makefile
14054 modpost_flag=''
14055 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14056 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14061 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14063 (eval $ac_try) 2>&5
14064 ac_status=$?
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; }; then :
14067
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14069$as_echo "yes" >&6; }
14070
14071$as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h
14072
14073
14074else
14075 $as_echo "$as_me: failed program was:" >&5
14076sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079$as_echo "no" >&6; }
14080
14081
14082
10946b02
AX
14083fi
14084 rm -Rf build
14085
14086
14087 EXTRA_KCFLAGS="$tmp_flags"
14088
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
14090$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
14091
14092
14093cat confdefs.h - <<_ACEOF >conftest.c
14094
14095
14096 #include <linux/sched.h>
14097 #include <linux/sched/rt.h>
14098
14099int
14100main (void)
14101{
14102
14103 return 0;
14104
14105 ;
14106 return 0;
14107}
14108
14109_ACEOF
14110
14111
14112 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14113 echo "obj-m := conftest.o" >build/Makefile
14114 modpost_flag=''
14115 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14116 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14121 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14123 (eval $ac_try) 2>&5
14124 ac_status=$?
14125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14126 test $ac_status = 0; }; }; then :
14127
14128
14129$as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132$as_echo "yes" >&6; }
14133
14134else
14135 $as_echo "$as_me: failed program was:" >&5
14136sed 's/^/| /' conftest.$ac_ext >&5
14137
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139$as_echo "no" >&6; }
14140
14141
14142
14143fi
14144 rm -Rf build
14145
14146
14147
14148
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
14150$as_echo_n "checking whether vfs_getattr() wants... " >&6; }
14151
14152
14153cat confdefs.h - <<_ACEOF >conftest.c
14154
14155
14156 #include <linux/fs.h>
14157
14158int
14159main (void)
14160{
14161
14162 vfs_getattr((struct path *) NULL,
14163 (struct kstat *)NULL);
14164
14165 ;
14166 return 0;
14167}
14168
14169_ACEOF
14170
14171
14172 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14173 echo "obj-m := conftest.o" >build/Makefile
14174 modpost_flag=''
14175 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14176 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14178 (eval $ac_try) 2>&5
14179 ac_status=$?
14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186 test $ac_status = 0; }; }; then :
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
14189$as_echo "2 args" >&6; }
14190
14191$as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
14192
14193
14194else
14195 $as_echo "$as_me: failed program was:" >&5
14196sed 's/^/| /' conftest.$ac_ext >&5
14197
14198
14199
14200cat confdefs.h - <<_ACEOF >conftest.c
14201
14202
14203 #include <linux/fs.h>
14204
14205int
14206main (void)
14207{
14208
14209 vfs_getattr((struct vfsmount *)NULL,
14210 (struct dentry *)NULL,
14211 (struct kstat *)NULL);
14212
14213 ;
14214 return 0;
14215}
14216
14217_ACEOF
14218
14219
14220 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14221 echo "obj-m := conftest.o" >build/Makefile
14222 modpost_flag=''
14223 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14224 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14226 (eval $ac_try) 2>&5
14227 ac_status=$?
14228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14229 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14234 test $ac_status = 0; }; }; then :
14235
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
14237$as_echo "3 args" >&6; }
14238
14239else
14240 $as_echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5
14242
14243 as_fn_error $? "unknown" "$LINENO" 5
14244
14245
14246
14247fi
14248 rm -Rf build
14249
14250
14251
14252
14253
14254fi
14255 rm -Rf build
14256
14257
14258
14259
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
14261$as_echo_n "checking whether usleep_range() is available... " >&6; }
14262
14263
14264cat confdefs.h - <<_ACEOF >conftest.c
14265
14266
14267 #include <linux/delay.h>
14268
14269int
14270main (void)
14271{
14272
14273 usleep_range(0, 0);
14274
14275 ;
14276 return 0;
14277}
14278
14279_ACEOF
14280
14281
14282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14283 echo "obj-m := conftest.o" >build/Makefile
14284 modpost_flag=''
14285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14286 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14288 (eval $ac_try) 2>&5
14289 ac_status=$?
14290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14291 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14296 test $ac_status = 0; }; }; then :
14297
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14299$as_echo "yes" >&6; }
14300
14301$as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
14302
14303
14304else
14305 $as_echo "$as_me: failed program was:" >&5
14306sed 's/^/| /' conftest.$ac_ext >&5
14307
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309$as_echo "no" >&6; }
14310
14311
14312
14313fi
14314 rm -Rf build
14315
14316
14317
14318
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
14320$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
14321
14322
14323cat confdefs.h - <<_ACEOF >conftest.c
14324
14325
14326 #include <linux/slab.h>
14327
14328int
14329main (void)
14330{
14331
14332 struct kmem_cache cachep __attribute__ ((unused));
14333 cachep.allocflags = GFP_KERNEL;
14334
14335 ;
14336 return 0;
14337}
14338
14339_ACEOF
14340
14341
14342 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14343 echo "obj-m := conftest.o" >build/Makefile
14344 modpost_flag=''
14345 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14346 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14348 (eval $ac_try) 2>&5
14349 ac_status=$?
14350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14351 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14353 (eval $ac_try) 2>&5
14354 ac_status=$?
14355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14356 test $ac_status = 0; }; }; then :
14357
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14359$as_echo "yes" >&6; }
14360
14361$as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
14362
14363
14364else
14365 $as_echo "$as_me: failed program was:" >&5
14366sed 's/^/| /' conftest.$ac_ext >&5
14367
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369$as_echo "no" >&6; }
14370
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
14372$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
14373
14374
14375cat confdefs.h - <<_ACEOF >conftest.c
14376
14377
14378 #include <linux/slab.h>
14379
14380int
14381main (void)
14382{
14383
14384 struct kmem_cache cachep __attribute__ ((unused));
14385 cachep.gfpflags = GFP_KERNEL;
14386
14387 ;
14388 return 0;
14389}
14390
14391_ACEOF
14392
14393
14394 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14395 echo "obj-m := conftest.o" >build/Makefile
14396 modpost_flag=''
14397 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14398 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14403 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14408 test $ac_status = 0; }; }; then :
14409
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14411$as_echo "yes" >&6; }
14412
14413$as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
14414
14415
14416else
14417 $as_echo "$as_me: failed program was:" >&5
14418sed 's/^/| /' conftest.$ac_ext >&5
14419
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421$as_echo "no" >&6; }
14422
14423
14424
14425fi
14426 rm -Rf build
14427
14428
14429
14430
14431
14432fi
14433 rm -Rf build
14434
14435
14436
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
14439$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
14440
14441
14442cat confdefs.h - <<_ACEOF >conftest.c
14443
14444
14445 #include <linux/wait.h>
14446
14447int
14448main (void)
14449{
14450
14451 int (*action)(void *) = NULL;
14452 wait_on_bit(NULL, 0, action, 0);
14453
14454 ;
14455 return 0;
14456}
14457
14458_ACEOF
14459
14460
14461 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14462 echo "obj-m := conftest.o" >build/Makefile
14463 modpost_flag=''
14464 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14465 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14470 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14475 test $ac_status = 0; }; }; then :
14476
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14478$as_echo "yes" >&6; }
14479
14480$as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
14481
14482
14483else
14484 $as_echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488$as_echo "no" >&6; }
14489
14490
14491
14492fi
14493 rm -Rf build
14494
14495
14496
0f836a62
AX
14497
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5
14499$as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
14500 tmp_flags="$EXTRA_KCFLAGS"
14501 EXTRA_KCFLAGS="-Werror"
14502
14503
14504cat confdefs.h - <<_ACEOF >conftest.c
14505
14506
14507 #include <linux/fs.h>
14508
14509int
14510main (void)
14511{
14512
14513 struct inode *inode = NULL;
14514 inode_lock_shared(inode);
14515
14516 ;
14517 return 0;
14518}
14519
14520_ACEOF
14521
14522
14523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14524 echo "obj-m := conftest.o" >build/Makefile
14525 modpost_flag=''
14526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14527 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14532 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14537 test $ac_status = 0; }; }; then :
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14540$as_echo "yes" >&6; }
14541
14542$as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h
14543
14544
14545else
14546 $as_echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14550$as_echo "no" >&6; }
14551
14552
14553
14554fi
14555 rm -Rf build
14556
14557
14558 EXTRA_KCFLAGS="$tmp_flags"
14559
14560
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5
14562$as_echo_n "checking whether mutex has owner... " >&6; }
14563 tmp_flags="$EXTRA_KCFLAGS"
14564 EXTRA_KCFLAGS="-Werror"
14565
14566
14567cat confdefs.h - <<_ACEOF >conftest.c
14568
14569
14570 #include <linux/mutex.h>
14571 #include <linux/spinlock.h>
14572
14573int
14574main (void)
14575{
14576
14577 DEFINE_MUTEX(m);
14578 struct task_struct *t __attribute__ ((unused));
14579 t = m.owner;
14580
14581 ;
14582 return 0;
14583}
14584
14585_ACEOF
14586
14587
14588 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14589 echo "obj-m := conftest.o" >build/Makefile
14590 modpost_flag=''
14591 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14592 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14602 test $ac_status = 0; }; }; then :
14603
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14605$as_echo "yes" >&6; }
14606
14607$as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
14608
14609
14610else
14611 $as_echo "$as_me: failed program was:" >&5
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14615$as_echo "no" >&6; }
14616
14617
14618
14619fi
14620 rm -Rf build
14621
14622
14623 EXTRA_KCFLAGS="$tmp_flags"
14624
10946b02
AX
14625 ;;
14626 user) ;;
14627 all)
14628
14629
14630# Check whether --with-linux was given.
14631if test "${with_linux+set}" = set; then :
14632 withval=$with_linux; kernelsrc="$withval"
14633fi
14634
14635
14636
14637# Check whether --with-linux-obj was given.
14638if test "${with_linux_obj+set}" = set; then :
14639 withval=$with_linux_obj; kernelbuild="$withval"
14640fi
14641
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
14644$as_echo_n "checking kernel source directory... " >&6; }
14645 if test -z "$kernelsrc"; then
14646 if test -e "/lib/modules/$(uname -r)/source"; then
14647 headersdir="/lib/modules/$(uname -r)/source"
14648 sourcelink=$(readlink -f "$headersdir")
14649 elif test -e "/lib/modules/$(uname -r)/build"; then
14650 headersdir="/lib/modules/$(uname -r)/build"
14651 sourcelink=$(readlink -f "$headersdir")
14652 else
14653 sourcelink=$(ls -1d /usr/src/kernels/* \
14654 /usr/src/linux-* \
14655 2>/dev/null | grep -v obj | tail -1)
14656 fi
14657
14658 if test -n "$sourcelink" && test -e ${sourcelink}; then
14659 kernelsrc=`readlink -f ${sourcelink}`
14660 else
14661 kernelsrc="Not found"
14662 fi
14663 else
14664 if test "$kernelsrc" = "NONE"; then
14665 kernsrcver=NONE
14666 fi
14667 fi
14668
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
14670$as_echo "$kernelsrc" >&6; }
14671 if test ! -d "$kernelsrc"; then
14672 as_fn_error $? "
14673 *** Please make sure the kernel devel package for your distribution
14674 *** is installed and then try again. If that fails, you can specify the
14675 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
14676 fi
14677
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
14679$as_echo_n "checking kernel build directory... " >&6; }
14680 if test -z "$kernelbuild"; then
14681 if test -e "/lib/modules/$(uname -r)/build"; then
14682 kernelbuild=`readlink -f /lib/modules/$(uname -r)/build`
14683 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
14684 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
14685 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
14686 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
14687 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
14688 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
14689 else
14690 kernelbuild=${kernelsrc}
14691 fi
14692 fi
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
14694$as_echo "$kernelbuild" >&6; }
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
14697$as_echo_n "checking kernel source version... " >&6; }
14698 utsrelease1=$kernelbuild/include/linux/version.h
14699 utsrelease2=$kernelbuild/include/linux/utsrelease.h
14700 utsrelease3=$kernelbuild/include/generated/utsrelease.h
14701 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
14702 utsrelease=linux/version.h
14703 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
14704 utsrelease=linux/utsrelease.h
14705 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
14706 utsrelease=generated/utsrelease.h
14707 fi
14708
14709 if test "$utsrelease"; then
14710 kernsrcver=`(echo "#include <$utsrelease>";
14711 echo "kernsrcver=UTS_RELEASE") |
14712 cpp -I $kernelbuild/include |
14713 grep "^kernsrcver=" | cut -d \" -f 2`
14714
14715 if test -z "$kernsrcver"; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
14717$as_echo "Not found" >&6; }
14718 as_fn_error $? "*** Cannot determine kernel version." "$LINENO" 5
14719 fi
14720 else
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
14722$as_echo "Not found" >&6; }
14723 if test "x$enable_linux_builtin" != xyes; then
14724 as_fn_error $? "*** Cannot find UTS_RELEASE definition." "$LINENO" 5
14725 else
14726 as_fn_error $? "
14727 *** Cannot find UTS_RELEASE definition.
14728 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
14729 fi
14730 fi
14731
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
14733$as_echo "$kernsrcver" >&6; }
14734
14735 LINUX=${kernelsrc}
14736 LINUX_OBJ=${kernelbuild}
14737 LINUX_VERSION=${kernsrcver}
14738
14739
14740
14741
14742
14743
14744 modpost=$LINUX/scripts/Makefile.modpost
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
14746$as_echo_n "checking kernel file name for module symbols... " >&6; }
14747 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
14748 if grep -q Modules.symvers $modpost; then
14749 LINUX_SYMBOLS=Modules.symvers
14750 else
14751 LINUX_SYMBOLS=Module.symvers
14752 fi
14753
14754 if ! test -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
14755 as_fn_error $? "
14756 *** Please make sure the kernel devel package for your distribution
14757 *** is installed. If you are building with a custom kernel, make sure the
14758 *** kernel is configured, built, and the '--with-linux=PATH' configure
14759 *** option refers to the location of the kernel source." "$LINENO" 5
14760 fi
14761 else
14762 LINUX_SYMBOLS=NONE
14763 fi
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
14765$as_echo "$LINUX_SYMBOLS" >&6; }
14766
14767
14768
14769
14770 if test "${LINUX_OBJ}" != "${LINUX}"; then
14771 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
14772 fi
14773
14774
14775 KERNELCPPFLAGS="$KERNELCPPFLAGS -Wstrict-prototypes"
14776
14777
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
14780$as_echo_n "checking whether debugging is enabled... " >&6; }
14781 # Check whether --enable-debug was given.
14782if test "${enable_debug+set}" = set; then :
14783 enableval=$enable_debug;
14784else
14785 enable_debug=no
14786fi
14787
14788
14789 if test "x$enable_debug" = xyes; then :
14790
14791 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG -Werror"
14792 DEBUG_CFLAGS="-DDEBUG -Werror"
14793 DEBUG_SPL="_with_debug"
14794
14795else
14796
14797 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DNDEBUG"
14798 DEBUG_CFLAGS="-DNDEBUG"
14799 DEBUG_SPL="_without_debug"
14800
14801fi
14802
14803
14804
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
14806$as_echo "$enable_debug" >&6; }
14807
14808
14809 # Check whether --enable-debug-kmem was given.
14810if test "${enable_debug_kmem+set}" = set; then :
14811 enableval=$enable_debug_kmem;
14812else
f6188ddd 14813 enable_debug_kmem=no
10946b02
AX
14814fi
14815
14816
14817 if test "x$enable_debug_kmem" = xyes; then :
14818
14819 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM"
14820 DEBUG_KMEM="_with_debug_kmem"
14821
14822$as_echo "#define DEBUG_KMEM 1" >>confdefs.h
14823
14824
14825else
14826
14827 DEBUG_KMEM="_without_debug_kmem"
14828
14829fi
14830
14831
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basic kmem accounting is enabled" >&5
14833$as_echo_n "checking whether basic kmem accounting is enabled... " >&6; }
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem" >&5
14835$as_echo "$enable_debug_kmem" >&6; }
14836
14837
14838 # Check whether --enable-debug-kmem-tracking was given.
14839if test "${enable_debug_kmem_tracking+set}" = set; then :
14840 enableval=$enable_debug_kmem_tracking;
14841else
14842 enable_debug_kmem_tracking=no
14843fi
14844
14845
14846 if test "x$enable_debug_kmem_tracking" = xyes; then :
14847
14848 KERNELCPPFLAGS="${KERNELCPPFLAGS} -DDEBUG_KMEM_TRACKING"
14849 DEBUG_KMEM_TRACKING="_with_debug_kmem_tracking"
14850
14851$as_echo "#define DEBUG_KMEM_TRACKING 1" >>confdefs.h
14852
14853
14854else
14855
14856 DEBUG_KMEM_TRACKING="_without_debug_kmem_tracking"
14857
14858fi
14859
14860
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether detailed kmem tracking is enabled" >&5
14862$as_echo_n "checking whether detailed kmem tracking is enabled... " >&6; }
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_kmem_tracking" >&5
14864$as_echo "$enable_debug_kmem_tracking" >&6; }
14865
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
14867$as_echo_n "checking whether modules can be built... " >&6; }
14868
14869
14870cat confdefs.h - <<_ACEOF >conftest.c
14871
14872
14873int
14874main (void)
14875{
14876
14877 ;
14878 return 0;
14879}
14880
14881_ACEOF
14882
14883
14884 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14885 echo "obj-m := conftest.o" >build/Makefile
14886 modpost_flag=''
14887 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14888 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14893 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
14894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14898 test $ac_status = 0; }; }; then :
14899
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14901$as_echo "yes" >&6; }
14902
14903else
14904 $as_echo "$as_me: failed program was:" >&5
14905sed 's/^/| /' conftest.$ac_ext >&5
14906
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14908$as_echo "no" >&6; }
14909 if test "x$enable_linux_builtin" != xyes; then
14910 as_fn_error $? "*** Unable to build an empty module." "$LINENO" 5
14911 else
14912 as_fn_error $? "
14913 *** Unable to build an empty module.
14914 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14915 fi
14916
14917
14918
14919fi
14920 rm -Rf build
14921
14922
14923
879bbbc7
AX
14924 if test "x$cross_compiling" != xyes; then :
14925
14926 if test "$cross_compiling" = yes; then :
10946b02
AX
14927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14929as_fn_error $? "cannot run test program while cross compiling
14930See \`config.log' for more details" "$LINENO" 5; }
14931else
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933/* end confdefs.h. */
14934
14935
879bbbc7 14936 #include "$LINUX/include/linux/license.h"
10946b02
AX
14937
14938int
14939main ()
14940{
14941
879bbbc7
AX
14942 return !license_is_gpl_compatible(
14943 "$SPL_META_LICENSE");
10946b02
AX
14944
14945 ;
14946 return 0;
14947}
14948
14949_ACEOF
14950if ac_fn_c_try_run "$LINENO"; then :
14951
14952
14953$as_echo "#define SPL_IS_GPL_COMPATIBLE 1" >>confdefs.h
14954
14955
14956fi
14957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14958 conftest.$ac_objext conftest.beam conftest.$ac_ext
14959fi
14960
14961
879bbbc7
AX
14962fi
14963
10946b02
AX
14964
14965 # Check whether --enable-atomic-spinlocks was given.
14966if test "${enable_atomic_spinlocks+set}" = set; then :
14967 enableval=$enable_atomic_spinlocks;
14968else
14969 enable_atomic_spinlocks=check
14970fi
14971
14972
14973
14974
14975cat confdefs.h - <<_ACEOF >conftest.c
14976
14977
14978 #include <linux/fs.h>
14979
14980int
14981main (void)
14982{
14983
14984 atomic64_t *ptr __attribute__ ((unused));
14985
14986 ;
14987 return 0;
14988}
14989
14990_ACEOF
14991
14992
14993 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
14994 echo "obj-m := conftest.o" >build/Makefile
14995 modpost_flag=''
14996 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
14997 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14999 (eval $ac_try) 2>&5
15000 ac_status=$?
15001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15002 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15004 (eval $ac_try) 2>&5
15005 ac_status=$?
15006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 test $ac_status = 0; }; }; then :
15008
15009 have_atomic64_t=yes
15010
15011$as_echo "#define HAVE_ATOMIC64_T 1" >>confdefs.h
15012
15013
15014else
15015 $as_echo "$as_me: failed program was:" >&5
15016sed 's/^/| /' conftest.$ac_ext >&5
15017
15018 have_atomic64_t=no
15019
15020
15021
15022fi
15023 rm -Rf build
15024
15025
15026
15027 if test "x$enable_atomic_spinlocks" = xcheck; then :
15028
15029 if test "x$have_atomic64_t" = xyes; then :
15030
15031 enable_atomic_spinlocks=no
15032
15033else
15034
15035 enable_atomic_spinlocks=yes
15036
15037fi
15038
15039fi
15040
15041 if test "x$enable_atomic_spinlocks" = xyes; then :
15042
15043
15044$as_echo "#define ATOMIC_SPINLOCK 1" >>confdefs.h
15045
15046
15047else
15048
15049 if test "x$have_atomic64_t" = xno; then :
15050
15051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15053as_fn_error $? "--disable-atomic-spinlocks given but required atomic64 support is unavailable
15054See \`config.log' for more details" "$LINENO" 5; }
15055
15056fi
15057
15058fi
15059
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic types use spinlocks" >&5
15061$as_echo_n "checking whether atomic types use spinlocks... " >&6; }
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atomic_spinlocks" >&5
15063$as_echo "$enable_atomic_spinlocks" >&6; }
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines atomic64_t" >&5
15066$as_echo_n "checking whether kernel defines atomic64_t... " >&6; }
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic64_t" >&5
15068$as_echo "$have_atomic64_t" >&6; }
15069
15070
15071 tmp_flags="$EXTRA_KCFLAGS"
15072 EXTRA_KCFLAGS="-Werror"
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 2-argument shrinker exists" >&5
15074$as_echo_n "checking whether old 2-argument shrinker exists... " >&6; }
15075
15076
15077cat confdefs.h - <<_ACEOF >conftest.c
15078
15079
15080 #include <linux/mm.h>
15081
15082 int shrinker_cb(int nr_to_scan, gfp_t gfp_mask);
15083
15084int
15085main (void)
15086{
15087
15088 struct shrinker cache_shrinker = {
15089 .shrink = shrinker_cb,
15090 .seeks = DEFAULT_SEEKS,
15091 };
15092 register_shrinker(&cache_shrinker);
15093
15094 ;
15095 return 0;
15096}
15097
15098_ACEOF
15099
15100
15101 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15102 echo "obj-m := conftest.o" >build/Makefile
15103 modpost_flag=''
15104 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15105 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15107 (eval $ac_try) 2>&5
15108 ac_status=$?
15109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15110 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15115 test $ac_status = 0; }; }; then :
15116
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15118$as_echo "yes" >&6; }
15119
15120$as_echo "#define HAVE_2ARGS_OLD_SHRINKER_CALLBACK 1" >>confdefs.h
15121
15122
15123else
15124 $as_echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15128$as_echo "no" >&6; }
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether old 3-argument shrinker exists" >&5
15130$as_echo_n "checking whether old 3-argument shrinker exists... " >&6; }
15131
15132
15133cat confdefs.h - <<_ACEOF >conftest.c
15134
15135
15136 #include <linux/mm.h>
15137
15138 int shrinker_cb(struct shrinker *, int nr_to_scan,
15139 gfp_t gfp_mask);
15140
15141int
15142main (void)
15143{
15144
15145 struct shrinker cache_shrinker = {
15146 .shrink = shrinker_cb,
15147 .seeks = DEFAULT_SEEKS,
15148 };
15149 register_shrinker(&cache_shrinker);
15150
15151 ;
15152 return 0;
15153}
15154
15155_ACEOF
15156
15157
15158 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15159 echo "obj-m := conftest.o" >build/Makefile
15160 modpost_flag=''
15161 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15162 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15167 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15172 test $ac_status = 0; }; }; then :
15173
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15175$as_echo "yes" >&6; }
15176
15177$as_echo "#define HAVE_3ARGS_SHRINKER_CALLBACK 1" >>confdefs.h
15178
15179
15180else
15181 $as_echo "$as_me: failed program was:" >&5
15182sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15185$as_echo "no" >&6; }
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new 2-argument shrinker exists" >&5
15187$as_echo_n "checking whether new 2-argument shrinker exists... " >&6; }
15188
15189
15190cat confdefs.h - <<_ACEOF >conftest.c
15191
15192
15193 #include <linux/mm.h>
15194
15195 int shrinker_cb(struct shrinker *,
15196 struct shrink_control *sc);
15197
15198int
15199main (void)
15200{
15201
15202 struct shrinker cache_shrinker = {
15203 .shrink = shrinker_cb,
15204 .seeks = DEFAULT_SEEKS,
15205 };
15206 register_shrinker(&cache_shrinker);
15207
15208 ;
15209 return 0;
15210}
15211
15212_ACEOF
15213
15214
15215 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15216 echo "obj-m := conftest.o" >build/Makefile
15217 modpost_flag=''
15218 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15219 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15224 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15229 test $ac_status = 0; }; }; then :
15230
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15232$as_echo "yes" >&6; }
15233
15234$as_echo "#define HAVE_2ARGS_NEW_SHRINKER_CALLBACK 1" >>confdefs.h
15235
15236
15237else
15238 $as_echo "$as_me: failed program was:" >&5
15239sed 's/^/| /' conftest.$ac_ext >&5
15240
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242$as_echo "no" >&6; }
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ->count_objects callback exists" >&5
15244$as_echo_n "checking whether ->count_objects callback exists... " >&6; }
15245
15246
15247cat confdefs.h - <<_ACEOF >conftest.c
15248
15249
15250 #include <linux/mm.h>
15251
15252 unsigned long shrinker_cb(
15253 struct shrinker *,
15254 struct shrink_control *sc);
15255
15256int
15257main (void)
15258{
15259
15260 struct shrinker cache_shrinker = {
15261 .count_objects = shrinker_cb,
15262 .scan_objects = shrinker_cb,
15263 .seeks = DEFAULT_SEEKS,
15264 };
15265 register_shrinker(&cache_shrinker);
15266
15267 ;
15268 return 0;
15269}
15270
15271_ACEOF
15272
15273
15274 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15275 echo "obj-m := conftest.o" >build/Makefile
15276 modpost_flag=''
15277 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15278 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15283 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15285 (eval $ac_try) 2>&5
15286 ac_status=$?
15287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15288 test $ac_status = 0; }; }; then :
15289
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15291$as_echo "yes" >&6; }
15292
15293$as_echo "#define HAVE_SPLIT_SHRINKER_CALLBACK 1" >>confdefs.h
15294
15295
15296else
15297 $as_echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 as_fn_error $? "error" "$LINENO" 5
15301
15302
15303
15304fi
15305 rm -Rf build
15306
15307
15308
15309
15310
15311fi
15312 rm -Rf build
15313
15314
15315
15316
15317
0f836a62
AX
15318fi
15319 rm -Rf build
15320
15321
15322
15323
15324
15325fi
15326 rm -Rf build
15327
15328
15329 EXTRA_KCFLAGS="$tmp_flags"
15330
15331
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ctl_table has ctl_name" >&5
15333$as_echo_n "checking whether struct ctl_table has ctl_name... " >&6; }
15334
15335
15336cat confdefs.h - <<_ACEOF >conftest.c
15337
15338
15339 #include <linux/sysctl.h>
15340
15341int
15342main (void)
15343{
15344
15345 struct ctl_table ctl __attribute__ ((unused));
15346 ctl.ctl_name = 0;
15347
15348 ;
15349 return 0;
15350}
15351
15352_ACEOF
15353
15354
15355 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15356 echo "obj-m := conftest.o" >build/Makefile
15357 modpost_flag=''
15358 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15359 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15364 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15366 (eval $ac_try) 2>&5
15367 ac_status=$?
15368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15369 test $ac_status = 0; }; }; then :
15370
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15372$as_echo "yes" >&6; }
15373
15374$as_echo "#define HAVE_CTL_NAME 1" >>confdefs.h
15375
10946b02 15376
0f836a62
AX
15377else
15378 $as_echo "$as_me: failed program was:" >&5
15379sed 's/^/| /' conftest.$ac_ext >&5
10946b02 15380
0f836a62
AX
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15382$as_echo "no" >&6; }
10946b02
AX
15383
15384
15385
15386fi
15387 rm -Rf build
15388
15389
10946b02
AX
15390
15391
0f836a62
AX
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_TRIM_UNUSED_KSYM is disabled" >&5
15393$as_echo_n "checking whether CONFIG_TRIM_UNUSED_KSYM is disabled... " >&6; }
10946b02
AX
15394
15395
15396cat confdefs.h - <<_ACEOF >conftest.c
15397
15398
0f836a62
AX
15399 #if defined(CONFIG_TRIM_UNUSED_KSYMS)
15400 #error CONFIG_TRIM_UNUSED_KSYMS not defined
15401 #endif
10946b02
AX
15402
15403int
15404main (void)
15405{
15406
10946b02
AX
15407 ;
15408 return 0;
15409}
15410
15411_ACEOF
15412
15413
15414 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15415 echo "obj-m := conftest.o" >build/Makefile
15416 modpost_flag=''
15417 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15418 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15423 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15428 test $ac_status = 0; }; }; then :
15429
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15431$as_echo "yes" >&6; }
15432
10946b02
AX
15433else
15434 $as_echo "$as_me: failed program was:" >&5
15435sed 's/^/| /' conftest.$ac_ext >&5
15436
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15438$as_echo "no" >&6; }
0f836a62
AX
15439 as_fn_error $? "
15440 *** This kernel has unused symbols trimming enabled, please disable.
15441 *** Rebuild the kernel with CONFIG_TRIM_UNUSED_KSYMS=n set." "$LINENO" 5
10946b02
AX
15442
15443
15444
15445fi
15446 rm -Rf build
15447
15448
15449
15450
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PDE_DATA() is available" >&5
15452$as_echo_n "checking whether PDE_DATA() is available... " >&6; }
15453
15454
15455
15456cat confdefs.h - <<_ACEOF >conftest.c
15457
15458
15459 #include <linux/proc_fs.h>
15460
15461int
15462main (void)
15463{
15464
15465 PDE_DATA(NULL);
15466
15467 ;
15468 return 0;
15469}
15470
15471_ACEOF
15472
15473
15474 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15475 echo "obj-m := conftest.o" >build/Makefile
15476 modpost_flag=''
15477 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15478 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15480 (eval $ac_try) 2>&5
15481 ac_status=$?
15482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15483 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15488 test $ac_status = 0; }; }; then :
15489 rc=0
15490else
15491 $as_echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493 rc=1
15494
15495
15496fi
15497 rm -Rf build
15498
15499
15500 if test $rc -ne 0; then :
15501
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15503$as_echo "no" >&6; }
15504
15505 else
15506 if test "x$enable_linux_builtin" != xyes; then
15507
15508 grep -q -E '[[:space:]]PDE_DATA[[:space:]]' \
15509 $LINUX_OBJ/Module*.symvers 2>/dev/null
15510 rc=$?
15511 if test $rc -ne 0; then
15512 export=0
15513 for file in ; do
15514 grep -q -E "EXPORT_SYMBOL.*(PDE_DATA)" \
15515 "$LINUX_OBJ/$file" 2>/dev/null
15516 rc=$?
15517 if test $rc -eq 0; then
15518 export=1
15519 break;
15520 fi
15521 done
15522 if test $export -eq 0; then :
15523 rc=1
15524 else :
15525 rc=0
15526 fi
15527 else :
15528 rc=0
15529 fi
15530
15531 fi
15532 if test $rc -ne 0; then :
15533
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15535$as_echo "no" >&6; }
15536
15537 else :
15538
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15540$as_echo "yes" >&6; }
15541
15542$as_echo "#define HAVE_PDE_DATA 1" >>confdefs.h
15543
15544
15545 fi
15546 fi
15547
15548
15549 tmp_flags="$EXTRA_KCFLAGS"
15550 EXTRA_KCFLAGS="-Werror"
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_fs_pwd() requires const struct path *" >&5
15552$as_echo_n "checking whether set_fs_pwd() requires const struct path *... " >&6; }
15553
15554
15555cat confdefs.h - <<_ACEOF >conftest.c
15556
15557
15558 #include <linux/spinlock.h>
15559 #include <linux/fs_struct.h>
15560 #include <linux/path.h>
15561 void (*const set_fs_pwd_func)
15562 (struct fs_struct *, const struct path *)
15563 = set_fs_pwd;
15564
15565int
15566main (void)
15567{
15568
15569 return 0;
15570
15571 ;
15572 return 0;
15573}
15574
15575_ACEOF
15576
15577
15578 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15579 echo "obj-m := conftest.o" >build/Makefile
15580 modpost_flag=''
15581 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15582 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15584 (eval $ac_try) 2>&5
15585 ac_status=$?
15586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15587 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15592 test $ac_status = 0; }; }; then :
15593
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15595$as_echo "yes" >&6; }
15596
15597$as_echo "#define HAVE_SET_FS_PWD_WITH_CONST 1" >>confdefs.h
15598
15599
15600else
15601 $as_echo "$as_me: failed program was:" >&5
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
15604
15605
15606cat confdefs.h - <<_ACEOF >conftest.c
15607
15608
15609 #include <linux/spinlock.h>
15610 #include <linux/fs_struct.h>
15611 #include <linux/path.h>
15612 void (*const set_fs_pwd_func)
15613 (struct fs_struct *, struct path *)
15614 = set_fs_pwd;
15615
15616int
15617main (void)
15618{
15619
15620 return 0;
15621
15622 ;
15623 return 0;
15624}
15625
15626_ACEOF
15627
15628
15629 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15630 echo "obj-m := conftest.o" >build/Makefile
15631 modpost_flag=''
15632 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15633 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15638 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15643 test $ac_status = 0; }; }; then :
15644
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646$as_echo "no" >&6; }
15647
15648else
15649 $as_echo "$as_me: failed program was:" >&5
15650sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 as_fn_error $? "unknown" "$LINENO" 5
15653
15654
15655
15656fi
15657 rm -Rf build
15658
15659
15660
15661
15662
15663fi
15664 rm -Rf build
15665
15666
15667 EXTRA_KCFLAGS="$tmp_flags"
15668
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 2 args" >&5
15670$as_echo_n "checking whether vfs_unlink() wants 2 args... " >&6; }
15671
15672
15673cat confdefs.h - <<_ACEOF >conftest.c
15674
15675
15676 #include <linux/fs.h>
15677
15678int
15679main (void)
15680{
15681
15682 vfs_unlink((struct inode *) NULL, (struct dentry *) NULL);
15683
15684 ;
15685 return 0;
15686}
15687
15688_ACEOF
15689
15690
15691 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15692 echo "obj-m := conftest.o" >build/Makefile
15693 modpost_flag=''
15694 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15695 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15700 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15702 (eval $ac_try) 2>&5
15703 ac_status=$?
15704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15705 test $ac_status = 0; }; }; then :
15706
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15708$as_echo "yes" >&6; }
15709
15710$as_echo "#define HAVE_2ARGS_VFS_UNLINK 1" >>confdefs.h
15711
15712
15713else
15714 $as_echo "$as_me: failed program was:" >&5
15715sed 's/^/| /' conftest.$ac_ext >&5
15716
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15718$as_echo "no" >&6; }
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_unlink() wants 3 args" >&5
15720$as_echo_n "checking whether vfs_unlink() wants 3 args... " >&6; }
15721
15722
15723cat confdefs.h - <<_ACEOF >conftest.c
15724
15725
15726 #include <linux/fs.h>
15727
15728int
15729main (void)
15730{
15731
15732 vfs_unlink((struct inode *) NULL,
15733 (struct dentry *) NULL,
15734 (struct inode **) NULL);
15735
15736 ;
15737 return 0;
15738}
15739
15740_ACEOF
15741
15742
15743 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15744 echo "obj-m := conftest.o" >build/Makefile
15745 modpost_flag=''
15746 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15747 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15752 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757 test $ac_status = 0; }; }; then :
15758
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15760$as_echo "yes" >&6; }
15761
15762$as_echo "#define HAVE_3ARGS_VFS_UNLINK 1" >>confdefs.h
15763
15764
15765else
15766 $as_echo "$as_me: failed program was:" >&5
15767sed 's/^/| /' conftest.$ac_ext >&5
15768
15769 as_fn_error $? "no" "$LINENO" 5
15770
15771
15772
15773fi
15774 rm -Rf build
15775
15776
15777
15778
15779
15780
15781fi
15782 rm -Rf build
15783
15784
15785
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 4 args" >&5
15787$as_echo_n "checking whether vfs_rename() wants 4 args... " >&6; }
15788
15789
15790cat confdefs.h - <<_ACEOF >conftest.c
15791
15792
15793 #include <linux/fs.h>
15794
15795int
15796main (void)
15797{
15798
15799 vfs_rename((struct inode *) NULL, (struct dentry *) NULL,
15800 (struct inode *) NULL, (struct dentry *) NULL);
15801
15802 ;
15803 return 0;
15804}
15805
15806_ACEOF
15807
15808
15809 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15810 echo "obj-m := conftest.o" >build/Makefile
15811 modpost_flag=''
15812 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15813 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15818 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15823 test $ac_status = 0; }; }; then :
15824
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15826$as_echo "yes" >&6; }
15827
15828$as_echo "#define HAVE_4ARGS_VFS_RENAME 1" >>confdefs.h
15829
15830
15831else
15832 $as_echo "$as_me: failed program was:" >&5
15833sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15836$as_echo "no" >&6; }
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 5 args" >&5
15838$as_echo_n "checking whether vfs_rename() wants 5 args... " >&6; }
15839
15840
15841cat confdefs.h - <<_ACEOF >conftest.c
15842
15843
15844 #include <linux/fs.h>
15845
15846int
15847main (void)
15848{
15849
15850 vfs_rename((struct inode *) NULL,
15851 (struct dentry *) NULL,
15852 (struct inode *) NULL,
15853 (struct dentry *) NULL,
15854 (struct inode **) NULL);
15855
15856 ;
15857 return 0;
15858}
15859
15860_ACEOF
15861
15862
15863 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15864 echo "obj-m := conftest.o" >build/Makefile
15865 modpost_flag=''
15866 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15867 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15872 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15874 (eval $ac_try) 2>&5
15875 ac_status=$?
15876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877 test $ac_status = 0; }; }; then :
15878
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15880$as_echo "yes" >&6; }
15881
15882$as_echo "#define HAVE_5ARGS_VFS_RENAME 1" >>confdefs.h
15883
15884
15885else
15886 $as_echo "$as_me: failed program was:" >&5
15887sed 's/^/| /' conftest.$ac_ext >&5
15888
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15890$as_echo "no" >&6; }
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_rename() wants 6 args" >&5
15892$as_echo_n "checking whether vfs_rename() wants 6 args... " >&6; }
15893
15894
15895cat confdefs.h - <<_ACEOF >conftest.c
15896
15897
15898 #include <linux/fs.h>
15899
15900int
15901main (void)
15902{
15903
15904 vfs_rename((struct inode *) NULL,
15905 (struct dentry *) NULL,
15906 (struct inode *) NULL,
15907 (struct dentry *) NULL,
15908 (struct inode **) NULL,
15909 (unsigned int) 0);
15910
15911 ;
15912 return 0;
15913}
15914
15915_ACEOF
15916
15917
15918 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15919 echo "obj-m := conftest.o" >build/Makefile
15920 modpost_flag=''
15921 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15922 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15924 (eval $ac_try) 2>&5
15925 ac_status=$?
15926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15927 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
15928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15932 test $ac_status = 0; }; }; then :
15933
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15935$as_echo "yes" >&6; }
15936
15937$as_echo "#define HAVE_6ARGS_VFS_RENAME 1" >>confdefs.h
15938
15939
15940else
15941 $as_echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
15944 as_fn_error $? "no" "$LINENO" 5
15945
15946
15947
15948fi
15949 rm -Rf build
15950
15951
15952
15953
15954
15955fi
15956 rm -Rf build
15957
15958
15959
15960
15961
15962fi
15963 rm -Rf build
15964
15965
15966
15967
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_fsync() wants 2 args" >&5
15969$as_echo_n "checking whether vfs_fsync() wants 2 args... " >&6; }
15970
15971
15972cat confdefs.h - <<_ACEOF >conftest.c
15973
15974
15975 #include <linux/fs.h>
15976
15977int
15978main (void)
15979{
15980
15981 vfs_fsync(NULL, 0);
15982
15983 ;
15984 return 0;
15985}
15986
15987_ACEOF
15988
15989
15990 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
15991 echo "obj-m := conftest.o" >build/Makefile
15992 modpost_flag=''
15993 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
15994 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15999 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16001 (eval $ac_try) 2>&5
16002 ac_status=$?
16003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16004 test $ac_status = 0; }; }; then :
16005
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16007$as_echo "yes" >&6; }
16008
16009$as_echo "#define HAVE_2ARGS_VFS_FSYNC 1" >>confdefs.h
16010
16011
16012else
16013 $as_echo "$as_me: failed program was:" >&5
16014sed 's/^/| /' conftest.$ac_ext >&5
16015
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017$as_echo "no" >&6; }
16018
16019
16020
16021fi
16022 rm -Rf build
16023
16024
16025
16026
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_range() inode operation is available" >&5
16028$as_echo_n "checking whether truncate_range() inode operation is available... " >&6; }
16029
16030
16031cat confdefs.h - <<_ACEOF >conftest.c
16032
16033
16034 #include <linux/fs.h>
16035
16036int
16037main (void)
16038{
16039
16040 struct inode_operations ops;
16041 ops.truncate_range = NULL;
16042
16043 ;
16044 return 0;
16045}
16046
16047_ACEOF
16048
16049
16050 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16051 echo "obj-m := conftest.o" >build/Makefile
16052 modpost_flag=''
16053 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16054 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16056 (eval $ac_try) 2>&5
16057 ac_status=$?
16058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16059 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16061 (eval $ac_try) 2>&5
16062 ac_status=$?
16063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16064 test $ac_status = 0; }; }; then :
16065
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16067$as_echo "yes" >&6; }
16068
16069$as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
16070
16071
16072else
16073 $as_echo "$as_me: failed program was:" >&5
16074sed 's/^/| /' conftest.$ac_ext >&5
16075
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16077$as_echo "no" >&6; }
16078
16079
16080
16081fi
16082 rm -Rf build
16083
16084
16085
16086
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct fs_struct uses spinlock_t" >&5
16088$as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
16089 tmp_flags="$EXTRA_KCFLAGS"
16090 EXTRA_KCFLAGS="-Werror"
16091
16092
16093cat confdefs.h - <<_ACEOF >conftest.c
16094
16095
16096 #include <linux/sched.h>
16097 #include <linux/fs_struct.h>
16098
16099int
16100main (void)
16101{
16102
16103 static struct fs_struct fs;
16104 spin_lock_init(&fs.lock);
16105
16106 ;
16107 return 0;
16108}
16109
16110_ACEOF
16111
16112
16113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16114 echo "obj-m := conftest.o" >build/Makefile
16115 modpost_flag=''
16116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16117 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16119 (eval $ac_try) 2>&5
16120 ac_status=$?
16121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16122 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16127 test $ac_status = 0; }; }; then :
16128
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16130$as_echo "yes" >&6; }
16131
16132$as_echo "#define HAVE_FS_STRUCT_SPINLOCK 1" >>confdefs.h
16133
16134
16135else
16136 $as_echo "$as_me: failed program was:" >&5
16137sed 's/^/| /' conftest.$ac_ext >&5
16138
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16140$as_echo "no" >&6; }
16141
16142
16143
16144fi
16145 rm -Rf build
16146
16147
16148 EXTRA_KCFLAGS="$tmp_flags"
16149
16150
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_t/kgid_t is available" >&5
16152$as_echo_n "checking whether kuid_t/kgid_t is available... " >&6; }
16153
16154
16155cat confdefs.h - <<_ACEOF >conftest.c
16156
16157
16158 #include <linux/uidgid.h>
16159
16160int
16161main (void)
16162{
16163
16164 kuid_t userid = KUIDT_INIT(0);
16165 kgid_t groupid = KGIDT_INIT(0);
16166
16167 ;
16168 return 0;
16169}
16170
16171_ACEOF
16172
16173
16174 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16175 echo "obj-m := conftest.o" >build/Makefile
16176 modpost_flag=''
16177 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16178 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16180 (eval $ac_try) 2>&5
16181 ac_status=$?
16182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16183 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16188 test $ac_status = 0; }; }; then :
16189
16190
16191
16192cat confdefs.h - <<_ACEOF >conftest.c
16193
16194
16195 #include <linux/uidgid.h>
16196
16197int
16198main (void)
16199{
16200
16201 kuid_t userid = 0;
16202 kgid_t groupid = 0;
16203
16204 ;
16205 return 0;
16206}
16207
16208_ACEOF
16209
16210
16211 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16212 echo "obj-m := conftest.o" >build/Makefile
16213 modpost_flag=''
16214 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16215 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16217 (eval $ac_try) 2>&5
16218 ac_status=$?
16219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16222 (eval $ac_try) 2>&5
16223 ac_status=$?
16224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16225 test $ac_status = 0; }; }; then :
16226
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; optional" >&5
16228$as_echo "yes; optional" >&6; }
16229
16230else
16231 $as_echo "$as_me: failed program was:" >&5
16232sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; mandatory" >&5
16235$as_echo "yes; mandatory" >&6; }
16236
16237$as_echo "#define HAVE_KUIDGID_T 1" >>confdefs.h
16238
16239
16240
16241
16242fi
16243 rm -Rf build
16244
16245
16246
16247else
16248 $as_echo "$as_me: failed program was:" >&5
16249sed 's/^/| /' conftest.$ac_ext >&5
16250
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252$as_echo "no" >&6; }
16253
16254
16255
16256fi
16257 rm -Rf build
16258
16259
16260
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __put_task_struct() is available" >&5
16262$as_echo_n "checking whether __put_task_struct() is available... " >&6; }
16263
16264
16265
16266cat confdefs.h - <<_ACEOF >conftest.c
16267
16268
16269 #include <linux/sched.h>
16270
16271int
16272main (void)
16273{
16274
16275 __put_task_struct(NULL);
16276
16277 ;
16278 return 0;
16279}
16280
16281_ACEOF
16282
16283
16284 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16285 echo "obj-m := conftest.o" >build/Makefile
16286 modpost_flag=''
16287 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16288 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16290 (eval $ac_try) 2>&5
16291 ac_status=$?
16292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16293 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16298 test $ac_status = 0; }; }; then :
16299 rc=0
16300else
16301 $as_echo "$as_me: failed program was:" >&5
16302sed 's/^/| /' conftest.$ac_ext >&5
16303 rc=1
16304
16305
16306fi
16307 rm -Rf build
16308
16309
16310 if test $rc -ne 0; then :
16311
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313$as_echo "no" >&6; }
16314
16315 else
16316 if test "x$enable_linux_builtin" != xyes; then
16317
16318 grep -q -E '[[:space:]]__put_task_struct[[:space:]]' \
16319 $LINUX_OBJ/Module*.symvers 2>/dev/null
16320 rc=$?
16321 if test $rc -ne 0; then
16322 export=0
16323 for file in ; do
16324 grep -q -E "EXPORT_SYMBOL.*(__put_task_struct)" \
16325 "$LINUX_OBJ/$file" 2>/dev/null
16326 rc=$?
16327 if test $rc -eq 0; then
16328 export=1
16329 break;
16330 fi
16331 done
16332 if test $export -eq 0; then :
16333 rc=1
16334 else :
16335 rc=0
16336 fi
16337 else :
16338 rc=0
16339 fi
16340
16341 fi
16342 if test $rc -ne 0; then :
16343
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16345$as_echo "no" >&6; }
16346
16347 else :
16348
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16350$as_echo "yes" >&6; }
16351
16352$as_echo "#define HAVE_PUT_TASK_STRUCT 1" >>confdefs.h
16353
16354
16355 fi
16356 fi
16357
16358
10946b02
AX
16359
16360
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
16362$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16363
16364
16365cat confdefs.h - <<_ACEOF >conftest.c
16366
16367
16368 #include <linux/fs.h>
16369
16370int
16371main (void)
16372{
16373
16374 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16375 struct file_operations fops __attribute__ ((unused)) = {
16376 .fallocate = fallocate,
16377 };
16378
16379 ;
16380 return 0;
16381}
16382
16383_ACEOF
16384
16385
16386 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16387 echo "obj-m := conftest.o" >build/Makefile
16388 modpost_flag=''
16389 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16390 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16392 (eval $ac_try) 2>&5
16393 ac_status=$?
16394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16395 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16397 (eval $ac_try) 2>&5
16398 ac_status=$?
16399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16400 test $ac_status = 0; }; }; then :
16401
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16403$as_echo "yes" >&6; }
16404
16405$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
16406
16407
16408else
16409 $as_echo "$as_me: failed program was:" >&5
16410sed 's/^/| /' conftest.$ac_ext >&5
16411
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16413$as_echo "no" >&6; }
16414
16415
16416
16417fi
16418 rm -Rf build
16419
16420
16421
16422
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
16424$as_echo_n "checking whether iops->fallocate() exists... " >&6; }
16425
16426
16427cat confdefs.h - <<_ACEOF >conftest.c
16428
16429
16430 #include <linux/fs.h>
16431
16432int
16433main (void)
16434{
16435
16436 long (*fallocate) (struct inode *, int, loff_t, loff_t) = NULL;
16437 struct inode_operations fops __attribute__ ((unused)) = {
16438 .fallocate = fallocate,
16439 };
16440
16441 ;
16442 return 0;
16443}
16444
16445_ACEOF
16446
16447
16448 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16449 echo "obj-m := conftest.o" >build/Makefile
16450 modpost_flag=''
16451 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
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 $modpost_flag'
16453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16457 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16462 test $ac_status = 0; }; }; then :
16463
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16465$as_echo "yes" >&6; }
16466
16467$as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
16468
16469
16470else
16471 $as_echo "$as_me: failed program was:" >&5
16472sed 's/^/| /' conftest.$ac_ext >&5
16473
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16475$as_echo "no" >&6; }
16476
16477
16478
16479fi
16480 rm -Rf build
16481
16482
16483
16484
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
16486$as_echo_n "checking whether fops->fallocate() exists... " >&6; }
16487
16488
16489cat confdefs.h - <<_ACEOF >conftest.c
16490
16491
16492 #include <linux/fs.h>
16493
16494int
16495main (void)
16496{
16497
16498 long (*fallocate) (struct file *, int, loff_t, loff_t) = NULL;
16499 struct file_operations_no_const fops __attribute__ ((unused)) = {
16500 .fallocate = fallocate,
16501 };
16502
16503 ;
16504 return 0;
16505}
16506
16507_ACEOF
16508
16509
16510 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16511 echo "obj-m := conftest.o" >build/Makefile
16512 modpost_flag=''
16513 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16514 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16519 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16524 test $ac_status = 0; }; }; then :
16525
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16527$as_echo "yes" >&6; }
16528
16529$as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
16530
16531
16532else
16533 $as_echo "$as_me: failed program was:" >&5
16534sed 's/^/| /' conftest.$ac_ext >&5
16535
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16537$as_echo "no" >&6; }
16538
16539
16540
16541fi
16542 rm -Rf build
16543
16544
16545
16546
16547
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_INFLATE is defined" >&5
16549$as_echo_n "checking whether CONFIG_ZLIB_INFLATE is defined... " >&6; }
16550
16551
16552cat confdefs.h - <<_ACEOF >conftest.c
16553
16554
16555 #if !defined(CONFIG_ZLIB_INFLATE) && \
16556 !defined(CONFIG_ZLIB_INFLATE_MODULE)
16557 #error CONFIG_ZLIB_INFLATE not defined
16558 #endif
16559
16560int
16561main (void)
16562{
16563
16564 ;
16565 return 0;
16566}
16567
16568_ACEOF
16569
16570
16571 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16572 echo "obj-m := conftest.o" >build/Makefile
16573 modpost_flag=''
16574 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16575 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
16579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16580 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16585 test $ac_status = 0; }; }; then :
16586
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16588$as_echo "yes" >&6; }
16589
16590else
16591 $as_echo "$as_me: failed program was:" >&5
16592sed 's/^/| /' conftest.$ac_ext >&5
16593
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16595$as_echo "no" >&6; }
16596 as_fn_error $? "
16597 *** This kernel does not include the required zlib inflate support.
16598 *** Rebuild the kernel with CONFIG_ZLIB_INFLATE=y|m set." "$LINENO" 5
16599
16600
16601
16602fi
16603 rm -Rf build
16604
16605
16606
16607
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CONFIG_ZLIB_DEFLATE is defined" >&5
16609$as_echo_n "checking whether CONFIG_ZLIB_DEFLATE is defined... " >&6; }
16610
16611
16612cat confdefs.h - <<_ACEOF >conftest.c
16613
16614
16615 #if !defined(CONFIG_ZLIB_DEFLATE) && \
16616 !defined(CONFIG_ZLIB_DEFLATE_MODULE)
16617 #error CONFIG_ZLIB_DEFLATE not defined
16618 #endif
16619
16620int
16621main (void)
16622{
16623
16624 ;
16625 return 0;
16626}
16627
16628_ACEOF
16629
16630
16631 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16632 echo "obj-m := conftest.o" >build/Makefile
16633 modpost_flag=''
16634 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16635 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16640 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16642 (eval $ac_try) 2>&5
16643 ac_status=$?
16644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16645 test $ac_status = 0; }; }; then :
16646
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16648$as_echo "yes" >&6; }
16649
16650else
16651 $as_echo "$as_me: failed program was:" >&5
16652sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655$as_echo "no" >&6; }
16656 as_fn_error $? "
16657 *** This kernel does not include the required zlib deflate support.
16658 *** Rebuild the kernel with CONFIG_ZLIB_DEFLATE=y|m set." "$LINENO" 5
16659
16660
16661
16662fi
16663 rm -Rf build
16664
16665
16666
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zlib_deflate_workspacesize() wants 2 args" >&5
16668$as_echo_n "checking whether zlib_deflate_workspacesize() wants 2 args... " >&6; }
16669
16670
16671cat confdefs.h - <<_ACEOF >conftest.c
16672
16673
16674 #include <linux/zlib.h>
16675
16676int
16677main (void)
16678{
16679
16680 return zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL);
16681
16682 ;
16683 return 0;
16684}
16685
16686_ACEOF
16687
16688
16689 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16690 echo "obj-m := conftest.o" >build/Makefile
16691 modpost_flag=''
16692 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16693 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16698 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16700 (eval $ac_try) 2>&5
16701 ac_status=$?
16702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16703 test $ac_status = 0; }; }; then :
16704
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16706$as_echo "yes" >&6; }
16707
16708$as_echo "#define HAVE_2ARGS_ZLIB_DEFLATE_WORKSPACESIZE 1" >>confdefs.h
16709
16710
16711else
16712 $as_echo "$as_me: failed program was:" >&5
16713sed 's/^/| /' conftest.$ac_ext >&5
16714
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716$as_echo "no" >&6; }
16717
16718
16719
16720fi
16721 rm -Rf build
16722
16723
16724
16725
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct shrink_control exists" >&5
16727$as_echo_n "checking whether struct shrink_control exists... " >&6; }
16728
16729
16730cat confdefs.h - <<_ACEOF >conftest.c
16731
16732
16733 #include <linux/mm.h>
16734
16735int
16736main (void)
16737{
16738
16739 struct shrink_control sc __attribute__ ((unused));
16740
16741 sc.nr_to_scan = 0;
16742 sc.gfp_mask = GFP_KERNEL;
16743
16744 ;
16745 return 0;
16746}
16747
16748_ACEOF
16749
16750
16751 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16752 echo "obj-m := conftest.o" >build/Makefile
16753 modpost_flag=''
16754 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16755 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765 test $ac_status = 0; }; }; then :
16766
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16768$as_echo "yes" >&6; }
16769
16770$as_echo "#define HAVE_SHRINK_CONTROL_STRUCT 1" >>confdefs.h
16771
16772
16773else
16774 $as_echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778$as_echo "no" >&6; }
16779
16780
16781
16782fi
16783 rm -Rf build
16784
16785
16786
16787
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore member wait_lock is raw" >&5
16789$as_echo_n "checking whether struct rw_semaphore member wait_lock is raw... " >&6; }
16790 tmp_flags="$EXTRA_KCFLAGS"
16791 EXTRA_KCFLAGS="-Werror"
16792
16793
16794cat confdefs.h - <<_ACEOF >conftest.c
16795
16796
16797 #include <linux/rwsem.h>
16798
16799int
16800main (void)
16801{
16802
16803 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16804 raw_spinlock_t dummy_lock __attribute__ ((unused));
16805 dummy_semaphore.wait_lock = dummy_lock;
16806
16807 ;
16808 return 0;
16809}
16810
16811_ACEOF
16812
16813
16814 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16815 echo "obj-m := conftest.o" >build/Makefile
16816 modpost_flag=''
16817 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16818 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16823 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16825 (eval $ac_try) 2>&5
16826 ac_status=$?
16827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16828 test $ac_status = 0; }; }; then :
16829
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16831$as_echo "yes" >&6; }
16832
16833$as_echo "#define RWSEM_SPINLOCK_IS_RAW 1" >>confdefs.h
16834
16835
16836else
16837 $as_echo "$as_me: failed program was:" >&5
16838sed 's/^/| /' conftest.$ac_ext >&5
16839
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841$as_echo "no" >&6; }
16842
16843
16844
0f836a62
AX
16845fi
16846 rm -Rf build
16847
16848
16849 EXTRA_KCFLAGS="$tmp_flags"
16850
16851
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has member activity" >&5
16853$as_echo_n "checking whether struct rw_semaphore has member activity... " >&6; }
16854 tmp_flags="$EXTRA_KCFLAGS"
16855 EXTRA_KCFLAGS="-Werror"
16856
16857
16858cat confdefs.h - <<_ACEOF >conftest.c
16859
16860
16861 #include <linux/rwsem.h>
16862
16863int
16864main (void)
16865{
16866
16867 struct rw_semaphore dummy_semaphore __attribute__ ((unused));
16868 dummy_semaphore.activity = 0;
16869
16870 ;
16871 return 0;
16872}
16873
16874_ACEOF
16875
16876
16877 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16878 echo "obj-m := conftest.o" >build/Makefile
16879 modpost_flag=''
16880 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16881 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16883 (eval $ac_try) 2>&5
16884 ac_status=$?
16885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16886 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16888 (eval $ac_try) 2>&5
16889 ac_status=$?
16890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16891 test $ac_status = 0; }; }; then :
16892
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16894$as_echo "yes" >&6; }
16895
16896$as_echo "#define HAVE_RWSEM_ACTIVITY 1" >>confdefs.h
16897
16898
16899else
16900 $as_echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904$as_echo "no" >&6; }
16905
16906
16907
16908fi
16909 rm -Rf build
16910
16911
16912 EXTRA_KCFLAGS="$tmp_flags"
16913
16914
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct rw_semaphore has atomic_long_t member count" >&5
16916$as_echo_n "checking whether struct rw_semaphore has atomic_long_t member count... " >&6; }
16917 tmp_flags="$EXTRA_KCFLAGS"
16918 EXTRA_KCFLAGS="-Werror"
16919
16920
16921cat confdefs.h - <<_ACEOF >conftest.c
16922
16923
16924 #include <linux/rwsem.h>
16925
16926int
16927main (void)
16928{
16929
16930 DECLARE_RWSEM(dummy_semaphore);
16931 (void) atomic_long_read(&dummy_semaphore.count);
16932
16933 ;
16934 return 0;
16935}
16936
16937_ACEOF
16938
16939
16940 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
16941 echo "obj-m := conftest.o" >build/Makefile
16942 modpost_flag=''
16943 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
16944 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16946 (eval $ac_try) 2>&5
16947 ac_status=$?
16948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16949 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
16950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16954 test $ac_status = 0; }; }; then :
16955
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16957$as_echo "yes" >&6; }
16958
16959$as_echo "#define HAVE_RWSEM_ATOMIC_LONG_COUNT 1" >>confdefs.h
16960
16961
16962else
16963 $as_echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16967$as_echo "no" >&6; }
16968
16969
16970
10946b02
AX
16971fi
16972 rm -Rf build
16973
16974
16975 EXTRA_KCFLAGS="$tmp_flags"
16976
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether header linux/sched/rt.h exists" >&5
16978$as_echo_n "checking whether header linux/sched/rt.h exists... " >&6; }
16979
16980
16981cat confdefs.h - <<_ACEOF >conftest.c
16982
16983
16984 #include <linux/sched.h>
16985 #include <linux/sched/rt.h>
16986
16987int
16988main (void)
16989{
16990
16991 return 0;
16992
16993 ;
16994 return 0;
16995}
16996
16997_ACEOF
16998
16999
17000 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17001 echo "obj-m := conftest.o" >build/Makefile
17002 modpost_flag=''
17003 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17004 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17009 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17011 (eval $ac_try) 2>&5
17012 ac_status=$?
17013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17014 test $ac_status = 0; }; }; then :
17015
17016
17017$as_echo "#define HAVE_SCHED_RT_HEADER 1" >>confdefs.h
17018
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17020$as_echo "yes" >&6; }
17021
17022else
17023 $as_echo "$as_me: failed program was:" >&5
17024sed 's/^/| /' conftest.$ac_ext >&5
17025
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17027$as_echo "no" >&6; }
17028
17029
17030
17031fi
17032 rm -Rf build
17033
17034
17035
17036
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vfs_getattr() wants" >&5
17038$as_echo_n "checking whether vfs_getattr() wants... " >&6; }
17039
17040
17041cat confdefs.h - <<_ACEOF >conftest.c
17042
17043
17044 #include <linux/fs.h>
17045
17046int
17047main (void)
17048{
17049
17050 vfs_getattr((struct path *) NULL,
17051 (struct kstat *)NULL);
17052
17053 ;
17054 return 0;
17055}
17056
17057_ACEOF
17058
17059
17060 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17061 echo "obj-m := conftest.o" >build/Makefile
17062 modpost_flag=''
17063 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17064 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17069 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17074 test $ac_status = 0; }; }; then :
17075
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2 args" >&5
17077$as_echo "2 args" >&6; }
17078
17079$as_echo "#define HAVE_2ARGS_VFS_GETATTR 1" >>confdefs.h
17080
17081
17082else
17083 $as_echo "$as_me: failed program was:" >&5
17084sed 's/^/| /' conftest.$ac_ext >&5
17085
17086
17087
17088cat confdefs.h - <<_ACEOF >conftest.c
17089
17090
17091 #include <linux/fs.h>
17092
17093int
17094main (void)
17095{
17096
17097 vfs_getattr((struct vfsmount *)NULL,
17098 (struct dentry *)NULL,
17099 (struct kstat *)NULL);
17100
17101 ;
17102 return 0;
17103}
17104
17105_ACEOF
17106
17107
17108 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17109 echo "obj-m := conftest.o" >build/Makefile
17110 modpost_flag=''
17111 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17112 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17117 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17122 test $ac_status = 0; }; }; then :
17123
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3 args" >&5
17125$as_echo "3 args" >&6; }
17126
17127else
17128 $as_echo "$as_me: failed program was:" >&5
17129sed 's/^/| /' conftest.$ac_ext >&5
17130
17131 as_fn_error $? "unknown" "$LINENO" 5
17132
17133
17134
17135fi
17136 rm -Rf build
17137
17138
17139
17140
17141
17142fi
17143 rm -Rf build
17144
17145
17146
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep_range() is available" >&5
17149$as_echo_n "checking whether usleep_range() is available... " >&6; }
17150
17151
17152cat confdefs.h - <<_ACEOF >conftest.c
17153
17154
17155 #include <linux/delay.h>
17156
17157int
17158main (void)
17159{
17160
17161 usleep_range(0, 0);
17162
17163 ;
17164 return 0;
17165}
17166
17167_ACEOF
17168
17169
17170 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17171 echo "obj-m := conftest.o" >build/Makefile
17172 modpost_flag=''
17173 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17174 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17176 (eval $ac_try) 2>&5
17177 ac_status=$?
17178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17179 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17181 (eval $ac_try) 2>&5
17182 ac_status=$?
17183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184 test $ac_status = 0; }; }; then :
17185
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17187$as_echo "yes" >&6; }
17188
17189$as_echo "#define HAVE_USLEEP_RANGE 1" >>confdefs.h
17190
17191
17192else
17193 $as_echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197$as_echo "no" >&6; }
17198
17199
17200
17201fi
17202 rm -Rf build
17203
17204
17205
17206
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has allocflags" >&5
17208$as_echo_n "checking whether struct kmem_cache has allocflags... " >&6; }
17209
17210
17211cat confdefs.h - <<_ACEOF >conftest.c
17212
17213
17214 #include <linux/slab.h>
17215
17216int
17217main (void)
17218{
17219
17220 struct kmem_cache cachep __attribute__ ((unused));
17221 cachep.allocflags = GFP_KERNEL;
17222
17223 ;
17224 return 0;
17225}
17226
17227_ACEOF
17228
17229
17230 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17231 echo "obj-m := conftest.o" >build/Makefile
17232 modpost_flag=''
17233 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17234 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17236 (eval $ac_try) 2>&5
17237 ac_status=$?
17238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17239 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17241 (eval $ac_try) 2>&5
17242 ac_status=$?
17243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17244 test $ac_status = 0; }; }; then :
17245
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17247$as_echo "yes" >&6; }
17248
17249$as_echo "#define HAVE_KMEM_CACHE_ALLOCFLAGS 1" >>confdefs.h
17250
17251
17252else
17253 $as_echo "$as_me: failed program was:" >&5
17254sed 's/^/| /' conftest.$ac_ext >&5
17255
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17257$as_echo "no" >&6; }
17258
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct kmem_cache has gfpflags" >&5
17260$as_echo_n "checking whether struct kmem_cache has gfpflags... " >&6; }
17261
17262
17263cat confdefs.h - <<_ACEOF >conftest.c
17264
17265
17266 #include <linux/slab.h>
17267
17268int
17269main (void)
17270{
17271
17272 struct kmem_cache cachep __attribute__ ((unused));
17273 cachep.gfpflags = GFP_KERNEL;
17274
17275 ;
17276 return 0;
17277}
17278
17279_ACEOF
17280
17281
17282 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17283 echo "obj-m := conftest.o" >build/Makefile
17284 modpost_flag=''
17285 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17286 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17291 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17296 test $ac_status = 0; }; }; then :
17297
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17299$as_echo "yes" >&6; }
17300
17301$as_echo "#define HAVE_KMEM_CACHE_GFPFLAGS 1" >>confdefs.h
17302
17303
17304else
17305 $as_echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17309$as_echo "no" >&6; }
17310
17311
17312
17313fi
17314 rm -Rf build
17315
17316
17317
17318
17319
17320fi
17321 rm -Rf build
17322
17323
17324
17325
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wait_on_bit() takes an action" >&5
17327$as_echo_n "checking whether wait_on_bit() takes an action... " >&6; }
17328
17329
17330cat confdefs.h - <<_ACEOF >conftest.c
17331
17332
17333 #include <linux/wait.h>
17334
17335int
17336main (void)
17337{
17338
17339 int (*action)(void *) = NULL;
17340 wait_on_bit(NULL, 0, action, 0);
17341
17342 ;
17343 return 0;
17344}
17345
17346_ACEOF
17347
17348
17349 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17350 echo "obj-m := conftest.o" >build/Makefile
17351 modpost_flag=''
17352 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17353 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17358 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; }; }; then :
17364
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17366$as_echo "yes" >&6; }
17367
17368$as_echo "#define HAVE_WAIT_ON_BIT_ACTION 1" >>confdefs.h
17369
17370
17371else
17372 $as_echo "$as_me: failed program was:" >&5
17373sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17376$as_echo "no" >&6; }
17377
17378
17379
17380fi
17381 rm -Rf build
17382
17383
17384
17385
0f836a62
AX
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_lock_shared() exists" >&5
17387$as_echo_n "checking whether inode_lock_shared() exists... " >&6; }
17388 tmp_flags="$EXTRA_KCFLAGS"
17389 EXTRA_KCFLAGS="-Werror"
17390
17391
17392cat confdefs.h - <<_ACEOF >conftest.c
17393
17394
17395 #include <linux/fs.h>
17396
17397int
17398main (void)
17399{
17400
17401 struct inode *inode = NULL;
17402 inode_lock_shared(inode);
17403
17404 ;
17405 return 0;
17406}
17407
17408_ACEOF
17409
17410
17411 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17412 echo "obj-m := conftest.o" >build/Makefile
17413 modpost_flag=''
17414 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17415 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17420 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17425 test $ac_status = 0; }; }; then :
17426
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17428$as_echo "yes" >&6; }
17429
17430$as_echo "#define HAVE_INODE_LOCK_SHARED 1" >>confdefs.h
17431
17432
17433else
17434 $as_echo "$as_me: failed program was:" >&5
17435sed 's/^/| /' conftest.$ac_ext >&5
17436
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17438$as_echo "no" >&6; }
17439
17440
17441
17442fi
17443 rm -Rf build
17444
17445
17446 EXTRA_KCFLAGS="$tmp_flags"
17447
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex has owner" >&5
17450$as_echo_n "checking whether mutex has owner... " >&6; }
17451 tmp_flags="$EXTRA_KCFLAGS"
17452 EXTRA_KCFLAGS="-Werror"
17453
17454
17455cat confdefs.h - <<_ACEOF >conftest.c
17456
17457
17458 #include <linux/mutex.h>
17459 #include <linux/spinlock.h>
17460
17461int
17462main (void)
17463{
17464
17465 DEFINE_MUTEX(m);
17466 struct task_struct *t __attribute__ ((unused));
17467 t = m.owner;
17468
17469 ;
17470 return 0;
17471}
17472
17473_ACEOF
17474
17475
17476 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
17477 echo "obj-m := conftest.o" >build/Makefile
17478 modpost_flag=''
17479 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
17480 if { ac_try='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror-implicit-function-declaration $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17482 (eval $ac_try) 2>&5
17483 ac_status=$?
17484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485 test $ac_status = 0; }; } >/dev/null && { ac_try='test -s build/conftest.o'
17486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17490 test $ac_status = 0; }; }; then :
17491
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17493$as_echo "yes" >&6; }
17494
17495$as_echo "#define HAVE_MUTEX_OWNER 1" >>confdefs.h
17496
17497
17498else
17499 $as_echo "$as_me: failed program was:" >&5
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503$as_echo "no" >&6; }
17504
17505
17506
17507fi
17508 rm -Rf build
17509
17510
17511 EXTRA_KCFLAGS="$tmp_flags"
17512
17513
10946b02
AX
17514 ;;
17515 srpm) ;;
17516 *)
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
17518$as_echo "Error!" >&6; }
17519 as_fn_error $? "Bad value \"$SPL_CONFIG\" for --with-config,
17520 user kernel|user|all|srpm" "$LINENO" 5 ;;
17521 esac
17522
17523 if test "$SPL_CONFIG" = user -o "$SPL_CONFIG" = all; then
17524 CONFIG_USER_TRUE=
17525 CONFIG_USER_FALSE='#'
17526else
17527 CONFIG_USER_TRUE='#'
17528 CONFIG_USER_FALSE=
17529fi
17530
17531 if test "$SPL_CONFIG" = kernel -o "$SPL_CONFIG" = all &&
17532 test "x$enable_linux_builtin" != xyes ; then
17533 CONFIG_KERNEL_TRUE=
17534 CONFIG_KERNEL_FALSE='#'
17535else
17536 CONFIG_KERNEL_TRUE='#'
17537 CONFIG_KERNEL_FALSE=
17538fi
17539
17540
17541
17542ac_config_files="$ac_config_files Makefile man/Makefile man/man1/Makefile man/man5/Makefile lib/Makefile cmd/Makefile module/Makefile module/spl/Makefile module/splat/Makefile include/Makefile include/fs/Makefile include/linux/Makefile include/rpc/Makefile include/sharefs/Makefile include/sys/Makefile include/sys/fm/Makefile include/sys/fs/Makefile include/sys/sysevent/Makefile include/util/Makefile include/vm/Makefile scripts/Makefile rpm/Makefile rpm/redhat/Makefile rpm/redhat/spl.spec rpm/redhat/spl-kmod.spec rpm/redhat/spl-dkms.spec rpm/generic/Makefile rpm/generic/spl.spec rpm/generic/spl-kmod.spec rpm/generic/spl-dkms.spec spl.release"
17543
17544
17545cat >confcache <<\_ACEOF
17546# This file is a shell script that caches the results of configure
17547# tests run on this system so they can be shared between configure
17548# scripts and configure runs, see configure's option --config-cache.
17549# It is not useful on other systems. If it contains results you don't
17550# want to keep, you may remove or edit it.
17551#
17552# config.status only pays attention to the cache file if you give it
17553# the --recheck option to rerun configure.
17554#
17555# `ac_cv_env_foo' variables (set or unset) will be overridden when
17556# loading this file, other *unset* `ac_cv_foo' will be assigned the
17557# following values.
17558
17559_ACEOF
17560
17561# The following way of writing the cache mishandles newlines in values,
17562# but we know of no workaround that is simple, portable, and efficient.
17563# So, we kill variables containing newlines.
17564# Ultrix sh set writes to stderr and can't be redirected directly,
17565# and sets the high bit in the cache file unless we assign to the vars.
17566(
17567 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17568 eval ac_val=\$$ac_var
17569 case $ac_val in #(
17570 *${as_nl}*)
17571 case $ac_var in #(
17572 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17573$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17574 esac
17575 case $ac_var in #(
17576 _ | IFS | as_nl) ;; #(
17577 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17578 *) { eval $ac_var=; unset $ac_var;} ;;
17579 esac ;;
17580 esac
17581 done
17582
17583 (set) 2>&1 |
17584 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17585 *${as_nl}ac_space=\ *)
17586 # `set' does not quote correctly, so add quotes: double-quote
17587 # substitution turns \\\\ into \\, and sed turns \\ into \.
17588 sed -n \
17589 "s/'/'\\\\''/g;
17590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17591 ;; #(
17592 *)
17593 # `set' quotes correctly as required by POSIX, so do not add quotes.
17594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17595 ;;
17596 esac |
17597 sort
17598) |
17599 sed '
17600 /^ac_cv_env_/b end
17601 t clear
17602 :clear
17603 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17604 t end
17605 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17606 :end' >>confcache
17607if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17608 if test -w "$cache_file"; then
17609 if test "x$cache_file" != "x/dev/null"; then
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17611$as_echo "$as_me: updating cache $cache_file" >&6;}
17612 if test ! -f "$cache_file" || test -h "$cache_file"; then
17613 cat confcache >"$cache_file"
17614 else
17615 case $cache_file in #(
17616 */* | ?:*)
17617 mv -f confcache "$cache_file"$$ &&
17618 mv -f "$cache_file"$$ "$cache_file" ;; #(
17619 *)
17620 mv -f confcache "$cache_file" ;;
17621 esac
17622 fi
17623 fi
17624 else
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17626$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17627 fi
17628fi
17629rm -f confcache
17630
17631test "x$prefix" = xNONE && prefix=$ac_default_prefix
17632# Let make expand exec_prefix.
17633test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17634
17635DEFS=-DHAVE_CONFIG_H
17636
17637ac_libobjs=
17638ac_ltlibobjs=
17639U=
17640for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17641 # 1. Remove the extension, and $U if already installed.
17642 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17643 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17644 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17645 # will be set to the directory where LIBOBJS objects are built.
17646 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17647 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17648done
17649LIBOBJS=$ac_libobjs
17650
17651LTLIBOBJS=$ac_ltlibobjs
17652
17653
17654if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17655 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17656Usually this means the macro was only invoked conditionally." "$LINENO" 5
17657fi
17658 if test -n "$EXEEXT"; then
17659 am__EXEEXT_TRUE=
17660 am__EXEEXT_FALSE='#'
17661else
17662 am__EXEEXT_TRUE='#'
17663 am__EXEEXT_FALSE=
17664fi
17665
17666if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17667 as_fn_error $? "conditional \"AMDEP\" was never defined.
17668Usually this means the macro was only invoked conditionally." "$LINENO" 5
17669fi
17670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17671 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17672Usually this means the macro was only invoked conditionally." "$LINENO" 5
17673fi
17674if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
17675 as_fn_error $? "conditional \"CONFIG_USER\" was never defined.
17676Usually this means the macro was only invoked conditionally." "$LINENO" 5
17677fi
17678if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
17679 as_fn_error $? "conditional \"CONFIG_KERNEL\" was never defined.
17680Usually this means the macro was only invoked conditionally." "$LINENO" 5
17681fi
17682
17683: "${CONFIG_STATUS=./config.status}"
17684ac_write_fail=0
17685ac_clean_files_save=$ac_clean_files
17686ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17687{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17688$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17689as_write_fail=0
17690cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17691#! $SHELL
17692# Generated by $as_me.
17693# Run this file to recreate the current configuration.
17694# Compiler output produced by configure, useful for debugging
17695# configure, is in config.log if it exists.
17696
17697debug=false
17698ac_cs_recheck=false
17699ac_cs_silent=false
17700
17701SHELL=\${CONFIG_SHELL-$SHELL}
17702export SHELL
17703_ASEOF
17704cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17705## -------------------- ##
17706## M4sh Initialization. ##
17707## -------------------- ##
17708
17709# Be more Bourne compatible
17710DUALCASE=1; export DUALCASE # for MKS sh
17711if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17712 emulate sh
17713 NULLCMD=:
17714 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17715 # is contrary to our usage. Disable this feature.
17716 alias -g '${1+"$@"}'='"$@"'
17717 setopt NO_GLOB_SUBST
17718else
17719 case `(set -o) 2>/dev/null` in #(
17720 *posix*) :
17721 set -o posix ;; #(
17722 *) :
17723 ;;
17724esac
17725fi
17726
17727
17728as_nl='
17729'
17730export as_nl
17731# Printing a long string crashes Solaris 7 /usr/bin/printf.
17732as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17735# Prefer a ksh shell builtin over an external printf program on Solaris,
17736# but without wasting forks for bash or zsh.
17737if test -z "$BASH_VERSION$ZSH_VERSION" \
17738 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17739 as_echo='print -r --'
17740 as_echo_n='print -rn --'
17741elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17742 as_echo='printf %s\n'
17743 as_echo_n='printf %s'
17744else
17745 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17746 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17747 as_echo_n='/usr/ucb/echo -n'
17748 else
17749 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17750 as_echo_n_body='eval
17751 arg=$1;
17752 case $arg in #(
17753 *"$as_nl"*)
17754 expr "X$arg" : "X\\(.*\\)$as_nl";
17755 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17756 esac;
17757 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17758 '
17759 export as_echo_n_body
17760 as_echo_n='sh -c $as_echo_n_body as_echo'
17761 fi
17762 export as_echo_body
17763 as_echo='sh -c $as_echo_body as_echo'
17764fi
17765
17766# The user is always right.
17767if test "${PATH_SEPARATOR+set}" != set; then
17768 PATH_SEPARATOR=:
17769 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17770 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17771 PATH_SEPARATOR=';'
17772 }
17773fi
17774
17775
17776# IFS
17777# We need space, tab and new line, in precisely that order. Quoting is
17778# there to prevent editors from complaining about space-tab.
17779# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17780# splitting by setting IFS to empty value.)
17781IFS=" "" $as_nl"
17782
17783# Find who we are. Look in the path if we contain no directory separator.
17784as_myself=
17785case $0 in #((
17786 *[\\/]* ) as_myself=$0 ;;
17787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17788for as_dir in $PATH
17789do
17790 IFS=$as_save_IFS
17791 test -z "$as_dir" && as_dir=.
17792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17793 done
17794IFS=$as_save_IFS
17795
17796 ;;
17797esac
17798# We did not find ourselves, most probably we were run as `sh COMMAND'
17799# in which case we are not to be found in the path.
17800if test "x$as_myself" = x; then
17801 as_myself=$0
17802fi
17803if test ! -f "$as_myself"; then
17804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17805 exit 1
17806fi
17807
17808# Unset variables that we do not need and which cause bugs (e.g. in
17809# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17810# suppresses any "Segmentation fault" message there. '((' could
17811# trigger a bug in pdksh 5.2.14.
17812for as_var in BASH_ENV ENV MAIL MAILPATH
17813do eval test x\${$as_var+set} = xset \
17814 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17815done
17816PS1='$ '
17817PS2='> '
17818PS4='+ '
17819
17820# NLS nuisances.
17821LC_ALL=C
17822export LC_ALL
17823LANGUAGE=C
17824export LANGUAGE
17825
17826# CDPATH.
17827(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17828
17829
17830# as_fn_error STATUS ERROR [LINENO LOG_FD]
17831# ----------------------------------------
17832# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17833# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17834# script with STATUS, using 1 if that was 0.
17835as_fn_error ()
17836{
17837 as_status=$1; test $as_status -eq 0 && as_status=1
17838 if test "$4"; then
17839 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17840 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17841 fi
17842 $as_echo "$as_me: error: $2" >&2
17843 as_fn_exit $as_status
17844} # as_fn_error
17845
17846
17847# as_fn_set_status STATUS
17848# -----------------------
17849# Set $? to STATUS, without forking.
17850as_fn_set_status ()
17851{
17852 return $1
17853} # as_fn_set_status
17854
17855# as_fn_exit STATUS
17856# -----------------
17857# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17858as_fn_exit ()
17859{
17860 set +e
17861 as_fn_set_status $1
17862 exit $1
17863} # as_fn_exit
17864
17865# as_fn_unset VAR
17866# ---------------
17867# Portably unset VAR.
17868as_fn_unset ()
17869{
17870 { eval $1=; unset $1;}
17871}
17872as_unset=as_fn_unset
17873# as_fn_append VAR VALUE
17874# ----------------------
17875# Append the text in VALUE to the end of the definition contained in VAR. Take
17876# advantage of any shell optimizations that allow amortized linear growth over
17877# repeated appends, instead of the typical quadratic growth present in naive
17878# implementations.
17879if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17880 eval 'as_fn_append ()
17881 {
17882 eval $1+=\$2
17883 }'
17884else
17885 as_fn_append ()
17886 {
17887 eval $1=\$$1\$2
17888 }
17889fi # as_fn_append
17890
17891# as_fn_arith ARG...
17892# ------------------
17893# Perform arithmetic evaluation on the ARGs, and store the result in the
17894# global $as_val. Take advantage of shells that can avoid forks. The arguments
17895# must be portable across $(()) and expr.
17896if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17897 eval 'as_fn_arith ()
17898 {
17899 as_val=$(( $* ))
17900 }'
17901else
17902 as_fn_arith ()
17903 {
17904 as_val=`expr "$@" || test $? -eq 1`
17905 }
17906fi # as_fn_arith
17907
17908
17909if expr a : '\(a\)' >/dev/null 2>&1 &&
17910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17911 as_expr=expr
17912else
17913 as_expr=false
17914fi
17915
17916if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17917 as_basename=basename
17918else
17919 as_basename=false
17920fi
17921
17922if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17923 as_dirname=dirname
17924else
17925 as_dirname=false
17926fi
17927
17928as_me=`$as_basename -- "$0" ||
17929$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17930 X"$0" : 'X\(//\)$' \| \
17931 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17932$as_echo X/"$0" |
17933 sed '/^.*\/\([^/][^/]*\)\/*$/{
17934 s//\1/
17935 q
17936 }
17937 /^X\/\(\/\/\)$/{
17938 s//\1/
17939 q
17940 }
17941 /^X\/\(\/\).*/{
17942 s//\1/
17943 q
17944 }
17945 s/.*/./; q'`
17946
17947# Avoid depending upon Character Ranges.
17948as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17949as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17950as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17951as_cr_digits='0123456789'
17952as_cr_alnum=$as_cr_Letters$as_cr_digits
17953
17954ECHO_C= ECHO_N= ECHO_T=
17955case `echo -n x` in #(((((
17956-n*)
17957 case `echo 'xy\c'` in
17958 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17959 xy) ECHO_C='\c';;
17960 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17961 ECHO_T=' ';;
17962 esac;;
17963*)
17964 ECHO_N='-n';;
17965esac
17966
17967rm -f conf$$ conf$$.exe conf$$.file
17968if test -d conf$$.dir; then
17969 rm -f conf$$.dir/conf$$.file
17970else
17971 rm -f conf$$.dir
17972 mkdir conf$$.dir 2>/dev/null
17973fi
17974if (echo >conf$$.file) 2>/dev/null; then
17975 if ln -s conf$$.file conf$$ 2>/dev/null; then
17976 as_ln_s='ln -s'
17977 # ... but there are two gotchas:
17978 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17979 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17980 # In both cases, we have to default to `cp -p'.
17981 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17982 as_ln_s='cp -p'
17983 elif ln conf$$.file conf$$ 2>/dev/null; then
17984 as_ln_s=ln
17985 else
17986 as_ln_s='cp -p'
17987 fi
17988else
17989 as_ln_s='cp -p'
17990fi
17991rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17992rmdir conf$$.dir 2>/dev/null
17993
17994
17995# as_fn_mkdir_p
17996# -------------
17997# Create "$as_dir" as a directory, including parents if necessary.
17998as_fn_mkdir_p ()
17999{
18000
18001 case $as_dir in #(
18002 -*) as_dir=./$as_dir;;
18003 esac
18004 test -d "$as_dir" || eval $as_mkdir_p || {
18005 as_dirs=
18006 while :; do
18007 case $as_dir in #(
18008 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18009 *) as_qdir=$as_dir;;
18010 esac
18011 as_dirs="'$as_qdir' $as_dirs"
18012 as_dir=`$as_dirname -- "$as_dir" ||
18013$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18014 X"$as_dir" : 'X\(//\)[^/]' \| \
18015 X"$as_dir" : 'X\(//\)$' \| \
18016 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18017$as_echo X"$as_dir" |
18018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18019 s//\1/
18020 q
18021 }
18022 /^X\(\/\/\)[^/].*/{
18023 s//\1/
18024 q
18025 }
18026 /^X\(\/\/\)$/{
18027 s//\1/
18028 q
18029 }
18030 /^X\(\/\).*/{
18031 s//\1/
18032 q
18033 }
18034 s/.*/./; q'`
18035 test -d "$as_dir" && break
18036 done
18037 test -z "$as_dirs" || eval "mkdir $as_dirs"
18038 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18039
18040
18041} # as_fn_mkdir_p
18042if mkdir -p . 2>/dev/null; then
18043 as_mkdir_p='mkdir -p "$as_dir"'
18044else
18045 test -d ./-p && rmdir ./-p
18046 as_mkdir_p=false
18047fi
18048
18049if test -x / >/dev/null 2>&1; then
18050 as_test_x='test -x'
18051else
18052 if ls -dL / >/dev/null 2>&1; then
18053 as_ls_L_option=L
18054 else
18055 as_ls_L_option=
18056 fi
18057 as_test_x='
18058 eval sh -c '\''
18059 if test -d "$1"; then
18060 test -d "$1/.";
18061 else
18062 case $1 in #(
18063 -*)set "./$1";;
18064 esac;
18065 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18066 ???[sx]*):;;*)false;;esac;fi
18067 '\'' sh
18068 '
18069fi
18070as_executable_p=$as_test_x
18071
18072# Sed expression to map a string onto a valid CPP name.
18073as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18074
18075# Sed expression to map a string onto a valid variable name.
18076as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18077
18078
18079exec 6>&1
18080## ----------------------------------- ##
18081## Main body of $CONFIG_STATUS script. ##
18082## ----------------------------------- ##
18083_ASEOF
18084test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18085
18086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18087# Save the log message, to keep $0 and so on meaningful, and to
18088# report actual input values of CONFIG_FILES etc. instead of their
18089# values after options handling.
18090ac_log="
0f836a62 18091This file was extended by spl $as_me 0.6.5.8, which was
10946b02
AX
18092generated by GNU Autoconf 2.68. Invocation command line was
18093
18094 CONFIG_FILES = $CONFIG_FILES
18095 CONFIG_HEADERS = $CONFIG_HEADERS
18096 CONFIG_LINKS = $CONFIG_LINKS
18097 CONFIG_COMMANDS = $CONFIG_COMMANDS
18098 $ $0 $@
18099
18100on `(hostname || uname -n) 2>/dev/null | sed 1q`
18101"
18102
18103_ACEOF
18104
18105case $ac_config_files in *"
18106"*) set x $ac_config_files; shift; ac_config_files=$*;;
18107esac
18108
18109case $ac_config_headers in *"
18110"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18111esac
18112
18113
18114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18115# Files that config.status was made for.
18116config_files="$ac_config_files"
18117config_headers="$ac_config_headers"
18118config_commands="$ac_config_commands"
18119
18120_ACEOF
18121
18122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18123ac_cs_usage="\
18124\`$as_me' instantiates files and other configuration actions
18125from templates according to the current configuration. Unless the files
18126and actions are specified as TAGs, all are instantiated by default.
18127
18128Usage: $0 [OPTION]... [TAG]...
18129
18130 -h, --help print this help, then exit
18131 -V, --version print version number and configuration settings, then exit
18132 --config print configuration, then exit
18133 -q, --quiet, --silent
18134 do not print progress messages
18135 -d, --debug don't remove temporary files
18136 --recheck update $as_me by reconfiguring in the same conditions
18137 --file=FILE[:TEMPLATE]
18138 instantiate the configuration file FILE
18139 --header=FILE[:TEMPLATE]
18140 instantiate the configuration header FILE
18141
18142Configuration files:
18143$config_files
18144
18145Configuration headers:
18146$config_headers
18147
18148Configuration commands:
18149$config_commands
18150
18151Report bugs to the package provider."
18152
18153_ACEOF
18154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18155ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18156ac_cs_version="\\
0f836a62 18157spl config.status 0.6.5.8
10946b02
AX
18158configured by $0, generated by GNU Autoconf 2.68,
18159 with options \\"\$ac_cs_config\\"
18160
18161Copyright (C) 2010 Free Software Foundation, Inc.
18162This config.status script is free software; the Free Software Foundation
18163gives unlimited permission to copy, distribute and modify it."
18164
18165ac_pwd='$ac_pwd'
18166srcdir='$srcdir'
18167INSTALL='$INSTALL'
18168MKDIR_P='$MKDIR_P'
18169AWK='$AWK'
18170test -n "\$AWK" || AWK=awk
18171_ACEOF
18172
18173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18174# The default lists apply if the user does not specify any file.
18175ac_need_defaults=:
18176while test $# != 0
18177do
18178 case $1 in
18179 --*=?*)
18180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18181 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18182 ac_shift=:
18183 ;;
18184 --*=)
18185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18186 ac_optarg=
18187 ac_shift=:
18188 ;;
18189 *)
18190 ac_option=$1
18191 ac_optarg=$2
18192 ac_shift=shift
18193 ;;
18194 esac
18195
18196 case $ac_option in
18197 # Handling of the options.
18198 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18199 ac_cs_recheck=: ;;
18200 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18201 $as_echo "$ac_cs_version"; exit ;;
18202 --config | --confi | --conf | --con | --co | --c )
18203 $as_echo "$ac_cs_config"; exit ;;
18204 --debug | --debu | --deb | --de | --d | -d )
18205 debug=: ;;
18206 --file | --fil | --fi | --f )
18207 $ac_shift
18208 case $ac_optarg in
18209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18210 '') as_fn_error $? "missing file argument" ;;
18211 esac
18212 as_fn_append CONFIG_FILES " '$ac_optarg'"
18213 ac_need_defaults=false;;
18214 --header | --heade | --head | --hea )
18215 $ac_shift
18216 case $ac_optarg in
18217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18218 esac
18219 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18220 ac_need_defaults=false;;
18221 --he | --h)
18222 # Conflict between --help and --header
18223 as_fn_error $? "ambiguous option: \`$1'
18224Try \`$0 --help' for more information.";;
18225 --help | --hel | -h )
18226 $as_echo "$ac_cs_usage"; exit ;;
18227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18228 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18229 ac_cs_silent=: ;;
18230
18231 # This is an error.
18232 -*) as_fn_error $? "unrecognized option: \`$1'
18233Try \`$0 --help' for more information." ;;
18234
18235 *) as_fn_append ac_config_targets " $1"
18236 ac_need_defaults=false ;;
18237
18238 esac
18239 shift
18240done
18241
18242ac_configure_extra_args=
18243
18244if $ac_cs_silent; then
18245 exec 6>/dev/null
18246 ac_configure_extra_args="$ac_configure_extra_args --silent"
18247fi
18248
18249_ACEOF
18250cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18251if \$ac_cs_recheck; then
18252 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18253 shift
18254 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18255 CONFIG_SHELL='$SHELL'
18256 export CONFIG_SHELL
18257 exec "\$@"
18258fi
18259
18260_ACEOF
18261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18262exec 5>>config.log
18263{
18264 echo
18265 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18266## Running $as_me. ##
18267_ASBOX
18268 $as_echo "$ac_log"
18269} >&5
18270
18271_ACEOF
18272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18273#
18274# INIT-COMMANDS
18275#
18276AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18277
18278
18279# The HP-UX ksh and POSIX shell print the target directory to stdout
18280# if CDPATH is set.
18281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18282
18283sed_quote_subst='$sed_quote_subst'
18284double_quote_subst='$double_quote_subst'
18285delay_variable_subst='$delay_variable_subst'
18286macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18287macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18288enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18289enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18290pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18291enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18292SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18293ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18294PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18295host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18296host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18297host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18298build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18299build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18300build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18301SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18302Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18303GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18304EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18305FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18306LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18307NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18308LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18309max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18310ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18311exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18312lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18313lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18314lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18315lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18316lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18317reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18318reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18319OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18320deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18321file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18322file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18323want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18324DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18325sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18326AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18327AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18328archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18329STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18330RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18331old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18332old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18333old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18334lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18335CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18336CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18337compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18338GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18339lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18340lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18341lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18342lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18343nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18344lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18345objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18346MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18347lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18348lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18349lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18350lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18351lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18352need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18353MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18354DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18355NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18356LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18357OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18358OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18359libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18360shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18361extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18362archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18363enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18364export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18365whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18366compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18367old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18368old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18369archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18370archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18371module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18372module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18373with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18374allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18375no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18376hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18377hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18378hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18379hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18380hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18381hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18382hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18383inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18384link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18385always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18386export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18387exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18388include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18389prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18390postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18391file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18392variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18393need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18394need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18395version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18396runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18397shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18398shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18399libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18400library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18401soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18402install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18403postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18404postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18405finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18406finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18407hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18408sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18409sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18410hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18411enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18412enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18413enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18414old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18415striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18416
18417LTCC='$LTCC'
18418LTCFLAGS='$LTCFLAGS'
18419compiler='$compiler_DEFAULT'
18420
18421# A function that is used when there is no print builtin or printf.
18422func_fallback_echo ()
18423{
18424 eval 'cat <<_LTECHO_EOF
18425\$1
18426_LTECHO_EOF'
18427}
18428
18429# Quote evaled strings.
18430for var in SHELL \
18431ECHO \
18432PATH_SEPARATOR \
18433SED \
18434GREP \
18435EGREP \
18436FGREP \
18437LD \
18438NM \
18439LN_S \
18440lt_SP2NL \
18441lt_NL2SP \
18442reload_flag \
18443OBJDUMP \
18444deplibs_check_method \
18445file_magic_cmd \
18446file_magic_glob \
18447want_nocaseglob \
18448DLLTOOL \
18449sharedlib_from_linklib_cmd \
18450AR \
18451AR_FLAGS \
18452archiver_list_spec \
18453STRIP \
18454RANLIB \
18455CC \
18456CFLAGS \
18457compiler \
18458lt_cv_sys_global_symbol_pipe \
18459lt_cv_sys_global_symbol_to_cdecl \
18460lt_cv_sys_global_symbol_to_c_name_address \
18461lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18462nm_file_list_spec \
18463lt_prog_compiler_no_builtin_flag \
18464lt_prog_compiler_pic \
18465lt_prog_compiler_wl \
18466lt_prog_compiler_static \
18467lt_cv_prog_compiler_c_o \
18468need_locks \
18469MANIFEST_TOOL \
18470DSYMUTIL \
18471NMEDIT \
18472LIPO \
18473OTOOL \
18474OTOOL64 \
18475shrext_cmds \
18476export_dynamic_flag_spec \
18477whole_archive_flag_spec \
18478compiler_needs_object \
18479with_gnu_ld \
18480allow_undefined_flag \
18481no_undefined_flag \
18482hardcode_libdir_flag_spec \
18483hardcode_libdir_separator \
18484exclude_expsyms \
18485include_expsyms \
18486file_list_spec \
18487variables_saved_for_relink \
18488libname_spec \
18489library_names_spec \
18490soname_spec \
18491install_override_mode \
18492finish_eval \
18493old_striplib \
18494striplib; do
18495 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18496 *[\\\\\\\`\\"\\\$]*)
18497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18498 ;;
18499 *)
18500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18501 ;;
18502 esac
18503done
18504
18505# Double-quote double-evaled strings.
18506for var in reload_cmds \
18507old_postinstall_cmds \
18508old_postuninstall_cmds \
18509old_archive_cmds \
18510extract_expsyms_cmds \
18511old_archive_from_new_cmds \
18512old_archive_from_expsyms_cmds \
18513archive_cmds \
18514archive_expsym_cmds \
18515module_cmds \
18516module_expsym_cmds \
18517export_symbols_cmds \
18518prelink_cmds \
18519postlink_cmds \
18520postinstall_cmds \
18521postuninstall_cmds \
18522finish_cmds \
18523sys_lib_search_path_spec \
18524sys_lib_dlsearch_path_spec; do
18525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18526 *[\\\\\\\`\\"\\\$]*)
18527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18528 ;;
18529 *)
18530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18531 ;;
18532 esac
18533done
18534
18535ac_aux_dir='$ac_aux_dir'
18536xsi_shell='$xsi_shell'
18537lt_shell_append='$lt_shell_append'
18538
18539# See if we are running on zsh, and set the options which allow our
18540# commands through without removal of \ escapes INIT.
18541if test -n "\${ZSH_VERSION+set}" ; then
18542 setopt NO_GLOB_SUBST
18543fi
18544
18545
18546 PACKAGE='$PACKAGE'
18547 VERSION='$VERSION'
18548 TIMESTAMP='$TIMESTAMP'
18549 RM='$RM'
18550 ofile='$ofile'
18551
18552
18553
18554
18555_ACEOF
18556
18557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18558
18559# Handling of arguments.
18560for ac_config_target in $ac_config_targets
18561do
18562 case $ac_config_target in
18563 "spl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS spl_config.h" ;;
18564 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18565 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18566 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18567 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18568 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
18569 "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
18570 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18571 "cmd/Makefile") CONFIG_FILES="$CONFIG_FILES cmd/Makefile" ;;
18572 "module/Makefile") CONFIG_FILES="$CONFIG_FILES module/Makefile" ;;
18573 "module/spl/Makefile") CONFIG_FILES="$CONFIG_FILES module/spl/Makefile" ;;
18574 "module/splat/Makefile") CONFIG_FILES="$CONFIG_FILES module/splat/Makefile" ;;
18575 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18576 "include/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/fs/Makefile" ;;
18577 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
18578 "include/rpc/Makefile") CONFIG_FILES="$CONFIG_FILES include/rpc/Makefile" ;;
18579 "include/sharefs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sharefs/Makefile" ;;
18580 "include/sys/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/Makefile" ;;
18581 "include/sys/fm/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fm/Makefile" ;;
18582 "include/sys/fs/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/fs/Makefile" ;;
18583 "include/sys/sysevent/Makefile") CONFIG_FILES="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
18584 "include/util/Makefile") CONFIG_FILES="$CONFIG_FILES include/util/Makefile" ;;
18585 "include/vm/Makefile") CONFIG_FILES="$CONFIG_FILES include/vm/Makefile" ;;
18586 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18587 "rpm/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/Makefile" ;;
18588 "rpm/redhat/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/redhat/Makefile" ;;
18589 "rpm/redhat/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl.spec" ;;
18590 "rpm/redhat/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-kmod.spec" ;;
18591 "rpm/redhat/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/redhat/spl-dkms.spec" ;;
18592 "rpm/generic/Makefile") CONFIG_FILES="$CONFIG_FILES rpm/generic/Makefile" ;;
18593 "rpm/generic/spl.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl.spec" ;;
18594 "rpm/generic/spl-kmod.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-kmod.spec" ;;
18595 "rpm/generic/spl-dkms.spec") CONFIG_FILES="$CONFIG_FILES rpm/generic/spl-dkms.spec" ;;
18596 "spl.release") CONFIG_FILES="$CONFIG_FILES spl.release" ;;
18597
18598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18599 esac
18600done
18601
18602
18603# If the user did not use the arguments to specify the items to instantiate,
18604# then the envvar interface is used. Set only those that are not.
18605# We use the long form for the default assignment because of an extremely
18606# bizarre bug on SunOS 4.1.3.
18607if $ac_need_defaults; then
18608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18609 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18611fi
18612
18613# Have a temporary directory for convenience. Make it in the build tree
18614# simply because there is no reason against having it here, and in addition,
18615# creating and moving files from /tmp can sometimes cause problems.
18616# Hook for its removal unless debugging.
18617# Note that there is a small window in which the directory will not be cleaned:
18618# after its creation but before its name has been assigned to `$tmp'.
18619$debug ||
18620{
18621 tmp= ac_tmp=
18622 trap 'exit_status=$?
18623 : "${ac_tmp:=$tmp}"
18624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18625' 0
18626 trap 'as_fn_exit 1' 1 2 13 15
18627}
18628# Create a (secure) tmp directory for tmp files.
18629
18630{
18631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18632 test -d "$tmp"
18633} ||
18634{
18635 tmp=./conf$$-$RANDOM
18636 (umask 077 && mkdir "$tmp")
18637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18638ac_tmp=$tmp
18639
18640# Set up the scripts for CONFIG_FILES section.
18641# No need to generate them if there are no CONFIG_FILES.
18642# This happens for instance with `./config.status config.h'.
18643if test -n "$CONFIG_FILES"; then
18644
18645
18646ac_cr=`echo X | tr X '\015'`
18647# On cygwin, bash can eat \r inside `` if the user requested igncr.
18648# But we know of no other shell where ac_cr would be empty at this
18649# point, so we can use a bashism as a fallback.
18650if test "x$ac_cr" = x; then
18651 eval ac_cr=\$\'\\r\'
18652fi
18653ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18654if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18655 ac_cs_awk_cr='\\r'
18656else
18657 ac_cs_awk_cr=$ac_cr
18658fi
18659
18660echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18661_ACEOF
18662
18663
18664{
18665 echo "cat >conf$$subs.awk <<_ACEOF" &&
18666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18667 echo "_ACEOF"
18668} >conf$$subs.sh ||
18669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18670ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18671ac_delim='%!_!# '
18672for ac_last_try in false false false false false :; do
18673 . ./conf$$subs.sh ||
18674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18675
18676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18677 if test $ac_delim_n = $ac_delim_num; then
18678 break
18679 elif $ac_last_try; then
18680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18681 else
18682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18683 fi
18684done
18685rm -f conf$$subs.sh
18686
18687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18688cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18689_ACEOF
18690sed -n '
18691h
18692s/^/S["/; s/!.*/"]=/
18693p
18694g
18695s/^[^!]*!//
18696:repl
18697t repl
18698s/'"$ac_delim"'$//
18699t delim
18700:nl
18701h
18702s/\(.\{148\}\)..*/\1/
18703t more1
18704s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18705p
18706n
18707b repl
18708:more1
18709s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18710p
18711g
18712s/.\{148\}//
18713t nl
18714:delim
18715h
18716s/\(.\{148\}\)..*/\1/
18717t more2
18718s/["\\]/\\&/g; s/^/"/; s/$/"/
18719p
18720b
18721:more2
18722s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18723p
18724g
18725s/.\{148\}//
18726t delim
18727' <conf$$subs.awk | sed '
18728/^[^""]/{
18729 N
18730 s/\n//
18731}
18732' >>$CONFIG_STATUS || ac_write_fail=1
18733rm -f conf$$subs.awk
18734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18735_ACAWK
18736cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18737 for (key in S) S_is_set[key] = 1
18738 FS = "\a"
18739
18740}
18741{
18742 line = $ 0
18743 nfields = split(line, field, "@")
18744 substed = 0
18745 len = length(field[1])
18746 for (i = 2; i < nfields; i++) {
18747 key = field[i]
18748 keylen = length(key)
18749 if (S_is_set[key]) {
18750 value = S[key]
18751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18752 len += length(value) + length(field[++i])
18753 substed = 1
18754 } else
18755 len += 1 + keylen
18756 }
18757
18758 print line
18759}
18760
18761_ACAWK
18762_ACEOF
18763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18764if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18766else
18767 cat
18768fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18769 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18770_ACEOF
18771
18772# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18773# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18774# trailing colons and then remove the whole line if VPATH becomes empty
18775# (actually we leave an empty line to preserve line numbers).
18776if test "x$srcdir" = x.; then
18777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18778h
18779s///
18780s/^/:/
18781s/[ ]*$/:/
18782s/:\$(srcdir):/:/g
18783s/:\${srcdir}:/:/g
18784s/:@srcdir@:/:/g
18785s/^:*//
18786s/:*$//
18787x
18788s/\(=[ ]*\).*/\1/
18789G
18790s/\n//
18791s/^[^=]*=[ ]*$//
18792}'
18793fi
18794
18795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18796fi # test -n "$CONFIG_FILES"
18797
18798# Set up the scripts for CONFIG_HEADERS section.
18799# No need to generate them if there are no CONFIG_HEADERS.
18800# This happens for instance with `./config.status Makefile'.
18801if test -n "$CONFIG_HEADERS"; then
18802cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18803BEGIN {
18804_ACEOF
18805
18806# Transform confdefs.h into an awk script `defines.awk', embedded as
18807# here-document in config.status, that substitutes the proper values into
18808# config.h.in to produce config.h.
18809
18810# Create a delimiter string that does not exist in confdefs.h, to ease
18811# handling of long lines.
18812ac_delim='%!_!# '
18813for ac_last_try in false false :; do
18814 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18815 if test -z "$ac_tt"; then
18816 break
18817 elif $ac_last_try; then
18818 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18819 else
18820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18821 fi
18822done
18823
18824# For the awk script, D is an array of macro values keyed by name,
18825# likewise P contains macro parameters if any. Preserve backslash
18826# newline sequences.
18827
18828ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18829sed -n '
18830s/.\{148\}/&'"$ac_delim"'/g
18831t rset
18832:rset
18833s/^[ ]*#[ ]*define[ ][ ]*/ /
18834t def
18835d
18836:def
18837s/\\$//
18838t bsnl
18839s/["\\]/\\&/g
18840s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18841D["\1"]=" \3"/p
18842s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18843d
18844:bsnl
18845s/["\\]/\\&/g
18846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18847D["\1"]=" \3\\\\\\n"\\/p
18848t cont
18849s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18850t cont
18851d
18852:cont
18853n
18854s/.\{148\}/&'"$ac_delim"'/g
18855t clear
18856:clear
18857s/\\$//
18858t bsnlc
18859s/["\\]/\\&/g; s/^/"/; s/$/"/p
18860d
18861:bsnlc
18862s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18863b cont
18864' <confdefs.h | sed '
18865s/'"$ac_delim"'/"\\\
18866"/g' >>$CONFIG_STATUS || ac_write_fail=1
18867
18868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18869 for (key in D) D_is_set[key] = 1
18870 FS = "\a"
18871}
18872/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18873 line = \$ 0
18874 split(line, arg, " ")
18875 if (arg[1] == "#") {
18876 defundef = arg[2]
18877 mac1 = arg[3]
18878 } else {
18879 defundef = substr(arg[1], 2)
18880 mac1 = arg[2]
18881 }
18882 split(mac1, mac2, "(") #)
18883 macro = mac2[1]
18884 prefix = substr(line, 1, index(line, defundef) - 1)
18885 if (D_is_set[macro]) {
18886 # Preserve the white space surrounding the "#".
18887 print prefix "define", macro P[macro] D[macro]
18888 next
18889 } else {
18890 # Replace #undef with comments. This is necessary, for example,
18891 # in the case of _POSIX_SOURCE, which is predefined and required
18892 # on some systems where configure will not decide to define it.
18893 if (defundef == "undef") {
18894 print "/*", prefix defundef, macro, "*/"
18895 next
18896 }
18897 }
18898}
18899{ print }
18900_ACAWK
18901_ACEOF
18902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18903 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18904fi # test -n "$CONFIG_HEADERS"
18905
18906
18907eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18908shift
18909for ac_tag
18910do
18911 case $ac_tag in
18912 :[FHLC]) ac_mode=$ac_tag; continue;;
18913 esac
18914 case $ac_mode$ac_tag in
18915 :[FHL]*:*);;
18916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18917 :[FH]-) ac_tag=-:-;;
18918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18919 esac
18920 ac_save_IFS=$IFS
18921 IFS=:
18922 set x $ac_tag
18923 IFS=$ac_save_IFS
18924 shift
18925 ac_file=$1
18926 shift
18927
18928 case $ac_mode in
18929 :L) ac_source=$1;;
18930 :[FH])
18931 ac_file_inputs=
18932 for ac_f
18933 do
18934 case $ac_f in
18935 -) ac_f="$ac_tmp/stdin";;
18936 *) # Look for the file first in the build tree, then in the source tree
18937 # (if the path is not absolute). The absolute path cannot be DOS-style,
18938 # because $ac_f cannot contain `:'.
18939 test -f "$ac_f" ||
18940 case $ac_f in
18941 [\\/$]*) false;;
18942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18943 esac ||
18944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18945 esac
18946 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18947 as_fn_append ac_file_inputs " '$ac_f'"
18948 done
18949
18950 # Let's still pretend it is `configure' which instantiates (i.e., don't
18951 # use $as_me), people would be surprised to read:
18952 # /* config.h. Generated by config.status. */
18953 configure_input='Generated from '`
18954 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18955 `' by configure.'
18956 if test x"$ac_file" != x-; then
18957 configure_input="$ac_file. $configure_input"
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18959$as_echo "$as_me: creating $ac_file" >&6;}
18960 fi
18961 # Neutralize special characters interpreted by sed in replacement strings.
18962 case $configure_input in #(
18963 *\&* | *\|* | *\\* )
18964 ac_sed_conf_input=`$as_echo "$configure_input" |
18965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18966 *) ac_sed_conf_input=$configure_input;;
18967 esac
18968
18969 case $ac_tag in
18970 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18972 esac
18973 ;;
18974 esac
18975
18976 ac_dir=`$as_dirname -- "$ac_file" ||
18977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18978 X"$ac_file" : 'X\(//\)[^/]' \| \
18979 X"$ac_file" : 'X\(//\)$' \| \
18980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18981$as_echo X"$ac_file" |
18982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18983 s//\1/
18984 q
18985 }
18986 /^X\(\/\/\)[^/].*/{
18987 s//\1/
18988 q
18989 }
18990 /^X\(\/\/\)$/{
18991 s//\1/
18992 q
18993 }
18994 /^X\(\/\).*/{
18995 s//\1/
18996 q
18997 }
18998 s/.*/./; q'`
18999 as_dir="$ac_dir"; as_fn_mkdir_p
19000 ac_builddir=.
19001
19002case "$ac_dir" in
19003.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19004*)
19005 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19006 # A ".." for each directory in $ac_dir_suffix.
19007 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19008 case $ac_top_builddir_sub in
19009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19011 esac ;;
19012esac
19013ac_abs_top_builddir=$ac_pwd
19014ac_abs_builddir=$ac_pwd$ac_dir_suffix
19015# for backward compatibility:
19016ac_top_builddir=$ac_top_build_prefix
19017
19018case $srcdir in
19019 .) # We are building in place.
19020 ac_srcdir=.
19021 ac_top_srcdir=$ac_top_builddir_sub
19022 ac_abs_top_srcdir=$ac_pwd ;;
19023 [\\/]* | ?:[\\/]* ) # Absolute name.
19024 ac_srcdir=$srcdir$ac_dir_suffix;
19025 ac_top_srcdir=$srcdir
19026 ac_abs_top_srcdir=$srcdir ;;
19027 *) # Relative name.
19028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19029 ac_top_srcdir=$ac_top_build_prefix$srcdir
19030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19031esac
19032ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19033
19034
19035 case $ac_mode in
19036 :F)
19037 #
19038 # CONFIG_FILE
19039 #
19040
19041 case $INSTALL in
19042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19044 esac
19045 ac_MKDIR_P=$MKDIR_P
19046 case $MKDIR_P in
19047 [\\/$]* | ?:[\\/]* ) ;;
19048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19049 esac
19050_ACEOF
19051
19052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19053# If the template does not know about datarootdir, expand it.
19054# FIXME: This hack should be removed a few years after 2.60.
19055ac_datarootdir_hack=; ac_datarootdir_seen=
19056ac_sed_dataroot='
19057/datarootdir/ {
19058 p
19059 q
19060}
19061/@datadir@/p
19062/@docdir@/p
19063/@infodir@/p
19064/@localedir@/p
19065/@mandir@/p'
19066case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19067*datarootdir*) ac_datarootdir_seen=yes;;
19068*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19070$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19071_ACEOF
19072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19073 ac_datarootdir_hack='
19074 s&@datadir@&$datadir&g
19075 s&@docdir@&$docdir&g
19076 s&@infodir@&$infodir&g
19077 s&@localedir@&$localedir&g
19078 s&@mandir@&$mandir&g
19079 s&\\\${datarootdir}&$datarootdir&g' ;;
19080esac
19081_ACEOF
19082
19083# Neutralize VPATH when `$srcdir' = `.'.
19084# Shell code in configure.ac might set extrasub.
19085# FIXME: do we really want to maintain this feature?
19086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19087ac_sed_extra="$ac_vpsub
19088$extrasub
19089_ACEOF
19090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19091:t
19092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19093s|@configure_input@|$ac_sed_conf_input|;t t
19094s&@top_builddir@&$ac_top_builddir_sub&;t t
19095s&@top_build_prefix@&$ac_top_build_prefix&;t t
19096s&@srcdir@&$ac_srcdir&;t t
19097s&@abs_srcdir@&$ac_abs_srcdir&;t t
19098s&@top_srcdir@&$ac_top_srcdir&;t t
19099s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19100s&@builddir@&$ac_builddir&;t t
19101s&@abs_builddir@&$ac_abs_builddir&;t t
19102s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19103s&@INSTALL@&$ac_INSTALL&;t t
19104s&@MKDIR_P@&$ac_MKDIR_P&;t t
19105$ac_datarootdir_hack
19106"
19107eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19108 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19109
19110test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19111 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19113 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19115which seems to be undefined. Please make sure it is defined" >&5
19116$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19117which seems to be undefined. Please make sure it is defined" >&2;}
19118
19119 rm -f "$ac_tmp/stdin"
19120 case $ac_file in
19121 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19122 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19123 esac \
19124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19125 ;;
19126 :H)
19127 #
19128 # CONFIG_HEADER
19129 #
19130 if test x"$ac_file" != x-; then
19131 {
19132 $as_echo "/* $configure_input */" \
19133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19134 } >"$ac_tmp/config.h" \
19135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19136 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19138$as_echo "$as_me: $ac_file is unchanged" >&6;}
19139 else
19140 rm -f "$ac_file"
19141 mv "$ac_tmp/config.h" "$ac_file" \
19142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19143 fi
19144 else
19145 $as_echo "/* $configure_input */" \
19146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19147 || as_fn_error $? "could not create -" "$LINENO" 5
19148 fi
19149# Compute "$ac_file"'s index in $config_headers.
19150_am_arg="$ac_file"
19151_am_stamp_count=1
19152for _am_header in $config_headers :; do
19153 case $_am_header in
19154 $_am_arg | $_am_arg:* )
19155 break ;;
19156 * )
19157 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19158 esac
19159done
19160echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19161$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19162 X"$_am_arg" : 'X\(//\)[^/]' \| \
19163 X"$_am_arg" : 'X\(//\)$' \| \
19164 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19165$as_echo X"$_am_arg" |
19166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19167 s//\1/
19168 q
19169 }
19170 /^X\(\/\/\)[^/].*/{
19171 s//\1/
19172 q
19173 }
19174 /^X\(\/\/\)$/{
19175 s//\1/
19176 q
19177 }
19178 /^X\(\/\).*/{
19179 s//\1/
19180 q
19181 }
19182 s/.*/./; q'`/stamp-h$_am_stamp_count
19183 ;;
19184
19185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19186$as_echo "$as_me: executing $ac_file commands" >&6;}
19187 ;;
19188 esac
19189
19190
19191 case $ac_file$ac_mode in
19192 "spl_config.h":H)
19193 (mv spl_config.h spl_config.h.tmp &&
19194 awk -f ${ac_srcdir}/config/config.awk spl_config.h.tmp >spl_config.h &&
19195 rm spl_config.h.tmp) || exit 1 ;;
19196 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19197 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19198 # are listed without --file. Let's play safe and only enable the eval
19199 # if we detect the quoting.
19200 case $CONFIG_FILES in
19201 *\'*) eval set x "$CONFIG_FILES" ;;
19202 *) set x $CONFIG_FILES ;;
19203 esac
19204 shift
19205 for mf
19206 do
19207 # Strip MF so we end up with the name of the file.
19208 mf=`echo "$mf" | sed -e 's/:.*$//'`
19209 # Check whether this is an Automake generated Makefile or not.
19210 # We used to match only the files named `Makefile.in', but
19211 # some people rename them; so instead we look at the file content.
19212 # Grep'ing the first line is not enough: some people post-process
19213 # each Makefile.in and add a new line on top of each file to say so.
19214 # Grep'ing the whole file is not good either: AIX grep has a line
19215 # limit of 2048, but all sed's we know have understand at least 4000.
19216 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19217 dirpart=`$as_dirname -- "$mf" ||
19218$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19219 X"$mf" : 'X\(//\)[^/]' \| \
19220 X"$mf" : 'X\(//\)$' \| \
19221 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19222$as_echo X"$mf" |
19223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19224 s//\1/
19225 q
19226 }
19227 /^X\(\/\/\)[^/].*/{
19228 s//\1/
19229 q
19230 }
19231 /^X\(\/\/\)$/{
19232 s//\1/
19233 q
19234 }
19235 /^X\(\/\).*/{
19236 s//\1/
19237 q
19238 }
19239 s/.*/./; q'`
19240 else
19241 continue
19242 fi
19243 # Extract the definition of DEPDIR, am__include, and am__quote
19244 # from the Makefile without running `make'.
19245 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19246 test -z "$DEPDIR" && continue
19247 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19248 test -z "am__include" && continue
19249 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19250 # When using ansi2knr, U may be empty or an underscore; expand it
19251 U=`sed -n 's/^U = //p' < "$mf"`
19252 # Find all dependency output files, they are included files with
19253 # $(DEPDIR) in their names. We invoke sed twice because it is the
19254 # simplest approach to changing $(DEPDIR) to its actual value in the
19255 # expansion.
19256 for file in `sed -n "
19257 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19258 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19259 # Make sure the directory exists.
19260 test -f "$dirpart/$file" && continue
19261 fdir=`$as_dirname -- "$file" ||
19262$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19263 X"$file" : 'X\(//\)[^/]' \| \
19264 X"$file" : 'X\(//\)$' \| \
19265 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19266$as_echo X"$file" |
19267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19268 s//\1/
19269 q
19270 }
19271 /^X\(\/\/\)[^/].*/{
19272 s//\1/
19273 q
19274 }
19275 /^X\(\/\/\)$/{
19276 s//\1/
19277 q
19278 }
19279 /^X\(\/\).*/{
19280 s//\1/
19281 q
19282 }
19283 s/.*/./; q'`
19284 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19285 # echo "creating $dirpart/$file"
19286 echo '# dummy' > "$dirpart/$file"
19287 done
19288 done
19289}
19290 ;;
19291 "libtool":C)
19292
19293 # See if we are running on zsh, and set the options which allow our
19294 # commands through without removal of \ escapes.
19295 if test -n "${ZSH_VERSION+set}" ; then
19296 setopt NO_GLOB_SUBST
19297 fi
19298
19299 cfgfile="${ofile}T"
19300 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19301 $RM "$cfgfile"
19302
19303 cat <<_LT_EOF >> "$cfgfile"
19304#! $SHELL
19305
19306# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19307# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19308# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19309# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19310#
19311# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19312# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19313# Foundation, Inc.
19314# Written by Gordon Matzigkeit, 1996
19315#
19316# This file is part of GNU Libtool.
19317#
19318# GNU Libtool is free software; you can redistribute it and/or
19319# modify it under the terms of the GNU General Public License as
19320# published by the Free Software Foundation; either version 2 of
19321# the License, or (at your option) any later version.
19322#
19323# As a special exception to the GNU General Public License,
19324# if you distribute this file as part of a program or library that
19325# is built using GNU Libtool, you may include this file under the
19326# same distribution terms that you use for the rest of that program.
19327#
19328# GNU Libtool is distributed in the hope that it will be useful,
19329# but WITHOUT ANY WARRANTY; without even the implied warranty of
19330# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19331# GNU General Public License for more details.
19332#
19333# You should have received a copy of the GNU General Public License
19334# along with GNU Libtool; see the file COPYING. If not, a copy
19335# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19336# obtained by writing to the Free Software Foundation, Inc.,
19337# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19338
19339
19340# The names of the tagged configurations supported by this script.
19341available_tags=""
19342
19343# ### BEGIN LIBTOOL CONFIG
19344
19345# Which release of libtool.m4 was used?
19346macro_version=$macro_version
19347macro_revision=$macro_revision
19348
19349# Whether or not to build shared libraries.
19350build_libtool_libs=$enable_shared
19351
19352# Whether or not to build static libraries.
19353build_old_libs=$enable_static
19354
19355# What type of objects to build.
19356pic_mode=$pic_mode
19357
19358# Whether or not to optimize for fast installation.
19359fast_install=$enable_fast_install
19360
19361# Shell to use when invoking shell scripts.
19362SHELL=$lt_SHELL
19363
19364# An echo program that protects backslashes.
19365ECHO=$lt_ECHO
19366
19367# The PATH separator for the build system.
19368PATH_SEPARATOR=$lt_PATH_SEPARATOR
19369
19370# The host system.
19371host_alias=$host_alias
19372host=$host
19373host_os=$host_os
19374
19375# The build system.
19376build_alias=$build_alias
19377build=$build
19378build_os=$build_os
19379
19380# A sed program that does not truncate output.
19381SED=$lt_SED
19382
19383# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19384Xsed="\$SED -e 1s/^X//"
19385
19386# A grep program that handles long lines.
19387GREP=$lt_GREP
19388
19389# An ERE matcher.
19390EGREP=$lt_EGREP
19391
19392# A literal string matcher.
19393FGREP=$lt_FGREP
19394
19395# A BSD- or MS-compatible name lister.
19396NM=$lt_NM
19397
19398# Whether we need soft or hard links.
19399LN_S=$lt_LN_S
19400
19401# What is the maximum length of a command?
19402max_cmd_len=$max_cmd_len
19403
19404# Object file suffix (normally "o").
19405objext=$ac_objext
19406
19407# Executable file suffix (normally "").
19408exeext=$exeext
19409
19410# whether the shell understands "unset".
19411lt_unset=$lt_unset
19412
19413# turn spaces into newlines.
19414SP2NL=$lt_lt_SP2NL
19415
19416# turn newlines into spaces.
19417NL2SP=$lt_lt_NL2SP
19418
19419# convert \$build file names to \$host format.
19420to_host_file_cmd=$lt_cv_to_host_file_cmd
19421
19422# convert \$build files to toolchain format.
19423to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19424
19425# An object symbol dumper.
19426OBJDUMP=$lt_OBJDUMP
19427
19428# Method to check whether dependent libraries are shared objects.
19429deplibs_check_method=$lt_deplibs_check_method
19430
19431# Command to use when deplibs_check_method = "file_magic".
19432file_magic_cmd=$lt_file_magic_cmd
19433
19434# How to find potential files when deplibs_check_method = "file_magic".
19435file_magic_glob=$lt_file_magic_glob
19436
19437# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19438want_nocaseglob=$lt_want_nocaseglob
19439
19440# DLL creation program.
19441DLLTOOL=$lt_DLLTOOL
19442
19443# Command to associate shared and link libraries.
19444sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19445
19446# The archiver.
19447AR=$lt_AR
19448
19449# Flags to create an archive.
19450AR_FLAGS=$lt_AR_FLAGS
19451
19452# How to feed a file listing to the archiver.
19453archiver_list_spec=$lt_archiver_list_spec
19454
19455# A symbol stripping program.
19456STRIP=$lt_STRIP
19457
19458# Commands used to install an old-style archive.
19459RANLIB=$lt_RANLIB
19460old_postinstall_cmds=$lt_old_postinstall_cmds
19461old_postuninstall_cmds=$lt_old_postuninstall_cmds
19462
19463# Whether to use a lock for old archive extraction.
19464lock_old_archive_extraction=$lock_old_archive_extraction
19465
19466# A C compiler.
19467LTCC=$lt_CC
19468
19469# LTCC compiler flags.
19470LTCFLAGS=$lt_CFLAGS
19471
19472# Take the output of nm and produce a listing of raw symbols and C names.
19473global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19474
19475# Transform the output of nm in a proper C declaration.
19476global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19477
19478# Transform the output of nm in a C name address pair.
19479global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19480
19481# Transform the output of nm in a C name address pair when lib prefix is needed.
19482global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19483
19484# Specify filename containing input files for \$NM.
19485nm_file_list_spec=$lt_nm_file_list_spec
19486
19487# The root where to search for dependent libraries,and in which our libraries should be installed.
19488lt_sysroot=$lt_sysroot
19489
19490# The name of the directory that contains temporary libtool files.
19491objdir=$objdir
19492
19493# Used to examine libraries when file_magic_cmd begins with "file".
19494MAGIC_CMD=$MAGIC_CMD
19495
19496# Must we lock files when doing compilation?
19497need_locks=$lt_need_locks
19498
19499# Manifest tool.
19500MANIFEST_TOOL=$lt_MANIFEST_TOOL
19501
19502# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19503DSYMUTIL=$lt_DSYMUTIL
19504
19505# Tool to change global to local symbols on Mac OS X.
19506NMEDIT=$lt_NMEDIT
19507
19508# Tool to manipulate fat objects and archives on Mac OS X.
19509LIPO=$lt_LIPO
19510
19511# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19512OTOOL=$lt_OTOOL
19513
19514# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19515OTOOL64=$lt_OTOOL64
19516
19517# Old archive suffix (normally "a").
19518libext=$libext
19519
19520# Shared library suffix (normally ".so").
19521shrext_cmds=$lt_shrext_cmds
19522
19523# The commands to extract the exported symbol list from a shared archive.
19524extract_expsyms_cmds=$lt_extract_expsyms_cmds
19525
19526# Variables whose values should be saved in libtool wrapper scripts and
19527# restored at link time.
19528variables_saved_for_relink=$lt_variables_saved_for_relink
19529
19530# Do we need the "lib" prefix for modules?
19531need_lib_prefix=$need_lib_prefix
19532
19533# Do we need a version for libraries?
19534need_version=$need_version
19535
19536# Library versioning type.
19537version_type=$version_type
19538
19539# Shared library runtime path variable.
19540runpath_var=$runpath_var
19541
19542# Shared library path variable.
19543shlibpath_var=$shlibpath_var
19544
19545# Is shlibpath searched before the hard-coded library search path?
19546shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19547
19548# Format of library name prefix.
19549libname_spec=$lt_libname_spec
19550
19551# List of archive names. First name is the real one, the rest are links.
19552# The last name is the one that the linker finds with -lNAME
19553library_names_spec=$lt_library_names_spec
19554
19555# The coded name of the library, if different from the real name.
19556soname_spec=$lt_soname_spec
19557
19558# Permission mode override for installation of shared libraries.
19559install_override_mode=$lt_install_override_mode
19560
19561# Command to use after installation of a shared archive.
19562postinstall_cmds=$lt_postinstall_cmds
19563
19564# Command to use after uninstallation of a shared archive.
19565postuninstall_cmds=$lt_postuninstall_cmds
19566
19567# Commands used to finish a libtool library installation in a directory.
19568finish_cmds=$lt_finish_cmds
19569
19570# As "finish_cmds", except a single script fragment to be evaled but
19571# not shown.
19572finish_eval=$lt_finish_eval
19573
19574# Whether we should hardcode library paths into libraries.
19575hardcode_into_libs=$hardcode_into_libs
19576
19577# Compile-time system search path for libraries.
19578sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19579
19580# Run-time system search path for libraries.
19581sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19582
19583# Whether dlopen is supported.
19584dlopen_support=$enable_dlopen
19585
19586# Whether dlopen of programs is supported.
19587dlopen_self=$enable_dlopen_self
19588
19589# Whether dlopen of statically linked programs is supported.
19590dlopen_self_static=$enable_dlopen_self_static
19591
19592# Commands to strip libraries.
19593old_striplib=$lt_old_striplib
19594striplib=$lt_striplib
19595
19596
19597# The linker used to build libraries.
19598LD=$lt_LD
19599
19600# How to create reloadable object files.
19601reload_flag=$lt_reload_flag
19602reload_cmds=$lt_reload_cmds
19603
19604# Commands used to build an old-style archive.
19605old_archive_cmds=$lt_old_archive_cmds
19606
19607# A language specific compiler.
19608CC=$lt_compiler
19609
19610# Is the compiler the GNU compiler?
19611with_gcc=$GCC
19612
19613# Compiler flag to turn off builtin functions.
19614no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19615
19616# Additional compiler flags for building library objects.
19617pic_flag=$lt_lt_prog_compiler_pic
19618
19619# How to pass a linker flag through the compiler.
19620wl=$lt_lt_prog_compiler_wl
19621
19622# Compiler flag to prevent dynamic linking.
19623link_static_flag=$lt_lt_prog_compiler_static
19624
19625# Does compiler simultaneously support -c and -o options?
19626compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19627
19628# Whether or not to add -lc for building shared libraries.
19629build_libtool_need_lc=$archive_cmds_need_lc
19630
19631# Whether or not to disallow shared libs when runtime libs are static.
19632allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19633
19634# Compiler flag to allow reflexive dlopens.
19635export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19636
19637# Compiler flag to generate shared objects directly from archives.
19638whole_archive_flag_spec=$lt_whole_archive_flag_spec
19639
19640# Whether the compiler copes with passing no objects directly.
19641compiler_needs_object=$lt_compiler_needs_object
19642
19643# Create an old-style archive from a shared archive.
19644old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19645
19646# Create a temporary old-style archive to link instead of a shared archive.
19647old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19648
19649# Commands used to build a shared archive.
19650archive_cmds=$lt_archive_cmds
19651archive_expsym_cmds=$lt_archive_expsym_cmds
19652
19653# Commands used to build a loadable module if different from building
19654# a shared archive.
19655module_cmds=$lt_module_cmds
19656module_expsym_cmds=$lt_module_expsym_cmds
19657
19658# Whether we are building with GNU ld or not.
19659with_gnu_ld=$lt_with_gnu_ld
19660
19661# Flag that allows shared libraries with undefined symbols to be built.
19662allow_undefined_flag=$lt_allow_undefined_flag
19663
19664# Flag that enforces no undefined symbols.
19665no_undefined_flag=$lt_no_undefined_flag
19666
19667# Flag to hardcode \$libdir into a binary during linking.
19668# This must work even if \$libdir does not exist
19669hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19670
19671# Whether we need a single "-rpath" flag with a separated argument.
19672hardcode_libdir_separator=$lt_hardcode_libdir_separator
19673
19674# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19675# DIR into the resulting binary.
19676hardcode_direct=$hardcode_direct
19677
19678# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19679# DIR into the resulting binary and the resulting library dependency is
19680# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19681# library is relocated.
19682hardcode_direct_absolute=$hardcode_direct_absolute
19683
19684# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19685# into the resulting binary.
19686hardcode_minus_L=$hardcode_minus_L
19687
19688# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19689# into the resulting binary.
19690hardcode_shlibpath_var=$hardcode_shlibpath_var
19691
19692# Set to "yes" if building a shared library automatically hardcodes DIR
19693# into the library and all subsequent libraries and executables linked
19694# against it.
19695hardcode_automatic=$hardcode_automatic
19696
19697# Set to yes if linker adds runtime paths of dependent libraries
19698# to runtime path list.
19699inherit_rpath=$inherit_rpath
19700
19701# Whether libtool must link a program against all its dependency libraries.
19702link_all_deplibs=$link_all_deplibs
19703
19704# Set to "yes" if exported symbols are required.
19705always_export_symbols=$always_export_symbols
19706
19707# The commands to list exported symbols.
19708export_symbols_cmds=$lt_export_symbols_cmds
19709
19710# Symbols that should not be listed in the preloaded symbols.
19711exclude_expsyms=$lt_exclude_expsyms
19712
19713# Symbols that must always be exported.
19714include_expsyms=$lt_include_expsyms
19715
19716# Commands necessary for linking programs (against libraries) with templates.
19717prelink_cmds=$lt_prelink_cmds
19718
19719# Commands necessary for finishing linking programs.
19720postlink_cmds=$lt_postlink_cmds
19721
19722# Specify filename containing input files.
19723file_list_spec=$lt_file_list_spec
19724
19725# How to hardcode a shared library path into an executable.
19726hardcode_action=$hardcode_action
19727
19728# ### END LIBTOOL CONFIG
19729
19730_LT_EOF
19731
19732 case $host_os in
19733 aix3*)
19734 cat <<\_LT_EOF >> "$cfgfile"
19735# AIX sometimes has problems with the GCC collect2 program. For some
19736# reason, if we set the COLLECT_NAMES environment variable, the problems
19737# vanish in a puff of smoke.
19738if test "X${COLLECT_NAMES+set}" != Xset; then
19739 COLLECT_NAMES=
19740 export COLLECT_NAMES
19741fi
19742_LT_EOF
19743 ;;
19744 esac
19745
19746
19747ltmain="$ac_aux_dir/ltmain.sh"
19748
19749
19750 # We use sed instead of cat because bash on DJGPP gets confused if
19751 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19752 # text mode, it properly converts lines to CR/LF. This bash problem
19753 # is reportedly fixed, but why not run on old versions too?
19754 sed '$q' "$ltmain" >> "$cfgfile" \
19755 || (rm -f "$cfgfile"; exit 1)
19756
19757 if test x"$xsi_shell" = xyes; then
19758 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19759func_dirname ()\
19760{\
19761\ case ${1} in\
19762\ */*) func_dirname_result="${1%/*}${2}" ;;\
19763\ * ) func_dirname_result="${3}" ;;\
19764\ esac\
19765} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19766 && mv -f "$cfgfile.tmp" "$cfgfile" \
19767 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19768test 0 -eq $? || _lt_function_replace_fail=:
19769
19770
19771 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19772func_basename ()\
19773{\
19774\ func_basename_result="${1##*/}"\
19775} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19776 && mv -f "$cfgfile.tmp" "$cfgfile" \
19777 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19778test 0 -eq $? || _lt_function_replace_fail=:
19779
19780
19781 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19782func_dirname_and_basename ()\
19783{\
19784\ case ${1} in\
19785\ */*) func_dirname_result="${1%/*}${2}" ;;\
19786\ * ) func_dirname_result="${3}" ;;\
19787\ esac\
19788\ func_basename_result="${1##*/}"\
19789} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19790 && mv -f "$cfgfile.tmp" "$cfgfile" \
19791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19792test 0 -eq $? || _lt_function_replace_fail=:
19793
19794
19795 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19796func_stripname ()\
19797{\
19798\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19799\ # positional parameters, so assign one to ordinary parameter first.\
19800\ func_stripname_result=${3}\
19801\ func_stripname_result=${func_stripname_result#"${1}"}\
19802\ func_stripname_result=${func_stripname_result%"${2}"}\
19803} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19804 && mv -f "$cfgfile.tmp" "$cfgfile" \
19805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19806test 0 -eq $? || _lt_function_replace_fail=:
19807
19808
19809 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19810func_split_long_opt ()\
19811{\
19812\ func_split_long_opt_name=${1%%=*}\
19813\ func_split_long_opt_arg=${1#*=}\
19814} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19815 && mv -f "$cfgfile.tmp" "$cfgfile" \
19816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19817test 0 -eq $? || _lt_function_replace_fail=:
19818
19819
19820 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19821func_split_short_opt ()\
19822{\
19823\ func_split_short_opt_arg=${1#??}\
19824\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19825} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19826 && mv -f "$cfgfile.tmp" "$cfgfile" \
19827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19828test 0 -eq $? || _lt_function_replace_fail=:
19829
19830
19831 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19832func_lo2o ()\
19833{\
19834\ case ${1} in\
19835\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19836\ *) func_lo2o_result=${1} ;;\
19837\ esac\
19838} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19839 && mv -f "$cfgfile.tmp" "$cfgfile" \
19840 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19841test 0 -eq $? || _lt_function_replace_fail=:
19842
19843
19844 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19845func_xform ()\
19846{\
19847 func_xform_result=${1%.*}.lo\
19848} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19849 && mv -f "$cfgfile.tmp" "$cfgfile" \
19850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19851test 0 -eq $? || _lt_function_replace_fail=:
19852
19853
19854 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19855func_arith ()\
19856{\
19857 func_arith_result=$(( $* ))\
19858} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19859 && mv -f "$cfgfile.tmp" "$cfgfile" \
19860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19861test 0 -eq $? || _lt_function_replace_fail=:
19862
19863
19864 sed -e '/^func_len ()$/,/^} # func_len /c\
19865func_len ()\
19866{\
19867 func_len_result=${#1}\
19868} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19869 && mv -f "$cfgfile.tmp" "$cfgfile" \
19870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19871test 0 -eq $? || _lt_function_replace_fail=:
19872
19873fi
19874
19875if test x"$lt_shell_append" = xyes; then
19876 sed -e '/^func_append ()$/,/^} # func_append /c\
19877func_append ()\
19878{\
19879 eval "${1}+=\\${2}"\
19880} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19881 && mv -f "$cfgfile.tmp" "$cfgfile" \
19882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19883test 0 -eq $? || _lt_function_replace_fail=:
19884
19885
19886 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19887func_append_quoted ()\
19888{\
19889\ func_quote_for_eval "${2}"\
19890\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19891} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19892 && mv -f "$cfgfile.tmp" "$cfgfile" \
19893 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19894test 0 -eq $? || _lt_function_replace_fail=:
19895
19896
19897 # Save a `func_append' function call where possible by direct use of '+='
19898 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19899 && mv -f "$cfgfile.tmp" "$cfgfile" \
19900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19901 test 0 -eq $? || _lt_function_replace_fail=:
19902else
19903 # Save a `func_append' function call even when '+=' is not available
19904 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19905 && mv -f "$cfgfile.tmp" "$cfgfile" \
19906 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19907 test 0 -eq $? || _lt_function_replace_fail=:
19908fi
19909
19910if test x"$_lt_function_replace_fail" = x":"; then
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19912$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19913fi
19914
19915
19916 mv -f "$cfgfile" "$ofile" ||
19917 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19918 chmod +x "$ofile"
19919
19920 ;;
19921
19922 esac
19923done # for ac_tag
19924
19925
19926as_fn_exit 0
19927_ACEOF
19928ac_clean_files=$ac_clean_files_save
19929
19930test $ac_write_fail = 0 ||
19931 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19932
19933
19934# configure is writing to config.log, and then calls config.status.
19935# config.status does its own redirection, appending to config.log.
19936# Unfortunately, on DOS this fails, as config.log is still kept open
19937# by configure, so config.status won't be able to write to it; its
19938# output is simply discarded. So we exec the FD to /dev/null,
19939# effectively closing config.log, so it can be properly (re)opened and
19940# appended to by config.status. When coming back to configure, we
19941# need to make the FD available again.
19942if test "$no_create" != yes; then
19943 ac_cs_success=:
19944 ac_config_status_args=
19945 test "$silent" = yes &&
19946 ac_config_status_args="$ac_config_status_args --quiet"
19947 exec 5>/dev/null
19948 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19949 exec 5>>config.log
19950 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19951 # would make configure fail if this is the last instruction.
19952 $ac_cs_success || as_fn_exit 1
19953fi
19954if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19956$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19957fi
19958